query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
listlengths 3
101
| negative_scores
listlengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
args mapfilename//set the file name to load if no map it loads blank track//follow the first bird in the list draw//draw data lines sparrownumber// pigeonnumber// hawknumber// | public static void main(String[] args) {
mapName = "";
track = false;
drawingDataLines = false;
Log.getLog().setFilter(Log.NONE);
int argindex = 0;
while(argindex<args.length) {
String arg = args[argindex];
if(arg.compareTo("-map")==0) {
mapName = args[argindex+1];
argindex+=2;
}
else if(arg.compareTo("-pigeon")==0) {
try {
pigeonCt = Integer.parseInt(args[argindex+1]);
}catch (NumberFormatException e) {
System.out.println("Illegal argument: '"+args[argindex+1]+"'");
System.exit(1);
}
argindex+=2;
}
else if(arg.compareTo("-sparrow")==0) {
try {
sparrowCt = Integer.parseInt(args[argindex+1]);
}catch (NumberFormatException e) {
System.out.println("Illegal argument: '"+args[argindex+1]+"'");
System.exit(1);
}
argindex+=2;
}
else if(arg.compareTo("-hawk")==0) {
try {
hawkCt = Integer.parseInt(args[argindex+1]);
}catch (NumberFormatException e) {
System.out.println("Illegal argument: '"+args[argindex+1]+"'");
System.exit(1);
}
argindex+=2;
}
else if(arg.compareTo("-track")==0) {
track=true;
argindex+=1;
}
else if(arg.compareTo("-draw")==0) {
drawingDataLines=true;
argindex+=1;
}
else {
System.out.println("Unknown Argument: '"+arg+"'");
System.exit(1);
}
}
if(mapName.compareTo("")!=0) {
try {
loadmap(mapName);
}
catch(Exception e){
System.out.println("Could not load: '"+mapName+"'");
}
}
RandomBoids(pigeonCt,sparrowCt,hawkCt);
System.out.println("Welcome to Boids!");
Window = graphics.Screen.initScreen(1000,800);
Timer clock = new Timer("Clock",20);
//add birds to screen
for(int i=0;i<Bird.getAllBirds().size();i++) {
Window.getToDraw().add((Drawable)Bird.getAllBirds().get(i));
}
//add map objecst
for(int i=0;i<mapobjects.size();i++) {
Window.getToDraw().add(mapobjects.get(i));
}
//main loop
boolean done = false;
while(!done) {
//clear for calculations
for(int i=0;i<Bird.getAllBirds().size();i++) {
Bird.getAllBirds().get(i).preBehaviour();
}
//see each bird
for(int i=0;i<Bird.getAllBirds().size()-1;i++) {
for(int ii=i+1;ii<Bird.getAllBirds().size();ii++) {
Boid.sight(Bird.getAllBirds().get(i), Bird.getAllBirds().get(ii));
}
}
//run formula
for(int i=0;i<Bird.getAllBirds().size();i++) {
Bird.getAllBirds().get(i).behaviour();
}
//move birds
for(int i=0;i<Bird.getAllBirds().size();i++) {
Bird.getAllBirds().get(i).movement();
}
//myLog.println(a, DEBUG_CODE);
if(track) {
Window.getViewPoint().copy(Bird.getAllBirds().get(0).getPositionVector());
}
Window.updateFrameBuffer();
Window.repaint();
try {
clock.sleep();
} catch (InterruptedException e) {
e.printStackTrace();
done = true;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void loadData() {\n String[] animalsListRaw = loadStrings(\"data/animalList.csv\");\n //String[] animalsListRaw = loadStrings(\"data/mythical.creatures.csv\");\n String[] animalList = getList(animalsListRaw);\n SearchQuery newSearch = new SearchQuery(animalList); \n allMaps = newSearch.getMap();\n \n map = new UnfoldingMap(this);\n map.setBackgroundColor(color(179, 223, 222, 255));\n map.zoomAndPanTo(width/2, height/2, 2);\n //MapUtils.createDefaultEventDispatcher(this, map);\n countries = GeoJSONReader.loadData(this, \"countries.geo.json\");\n marks = new MarkerMaker(allMaps, countries);\n map.draw();\n}",
"public void loadDataFromFile() {\n startX = 0;\n startY = 540;\n\n }",
"public void paintComponent(Graphics g) {\r\n \tsuper.paintComponent(g);\r\n \t/*print the boat*/\r\n \tReadFile file = new ReadFile();\r\n \t\tfile.openFile(); \r\n \t\t/* Map include all the points of the boat*/\r\n \t\tMap <String,ArrayList<Point>> map = new HashMap<String,ArrayList<Point>>();\r\n \t\tmap = file.parseFile(); \r\n \t\tfor (String key : map.keySet()) {\r\n \t \tif (key.startsWith(\"line\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\t int y1 = (int) map.get(key).get(0).getY();\r\n \t \t\t int x2 = (int)map.get(key).get(1).getX();\r\n \t \t\t int y2 = (int)map.get(key).get(1).getY();\r\n \t \t\t drawLine(x1,y1,x2,y2,g);\t \t\t\r\n \t \t}\r\n \t \tif (key.startsWith(\"circle\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\t int y1 = (int) map.get(key).get(0).getY();\r\n \t \t\t int x2 = (int)map.get(key).get(1).getX();\r\n \t \t\t int y2 = (int)map.get(key).get(1).getY();\r\n \t \t\t drawCircle(x1,y1,x2,y2,g);\t \t\t\r\n \t \t}\r\n \t \tif (key.startsWith(\"curve\"))\r\n \t \t{\r\n \t \t System.out.println(key + \" \" + map.get(key));\r\n \t \t\tint x1 = (int) map.get(key).get(0).getX();\r\n \t \t\tint y1 = (int) map.get(key).get(0).getY();\r\n \t \t\tint x2 = (int)map.get(key).get(1).getX();\r\n \t \t\tint y2 = (int)map.get(key).get(1).getY();\r\n \t \t\tint x3 = (int)map.get(key).get(2).getX();\r\n\t \t\tint y3 = (int)map.get(key).get(2).getY();\r\n\t \t\tint x4 = (int)map.get(key).get(3).getX();\r\n \t \t\tint y4 = (int)map.get(key).get(3).getY();\r\n \t \t\tdrawCurve(x1,y1,x2,y2,x3,y3,x4,y4,200,g); \t \t} \t\t\r\n \t\t}\r\n \t\t\r\n \t\t\r\n \t\t\r\n \tfor (int i = 0; i < clicksforLine.size(); i++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforLine.get(i).getX()),(int) Math.round(clicksforLine.get(i).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforCircle.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforCircle.get(j).getX()),(int) Math.round(clicksforCircle.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforPoly.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforPoly.get(j).getX()),(int) Math.round(clicksforPoly.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \tfor (int j = 0; j < clicksforCurve.size(); j++ )\r\n\t\t{\r\n \t\tg.drawRect((int)Math.round(clicksforCurve.get(j).getX()),(int) Math.round(clicksforCurve.get(j).getY()),2,2);\r\n\r\n\t\t}\r\n \r\n \t\r\n \t//check is the list of the shape LINE has at least 2 points to draw line\r\n \tif (clicksforLine.size() >= 2)\r\n {\r\n \tfor (int i=0; i < clicksforLine.size(); i+=2 )\r\n \t \t\t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforLine.get(i).getX();\r\n \t\t\t y1 = (int) clicksforLine.get(i).getY();\r\n \t\t\t x2 = (int) clicksforLine.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforLine.get(i+1).getY();\r\n \t\t\t drawLine(x1,y1,x2,y2,g);\r\n \t \t \t\t\r\n \t \t}\r\n }\r\n //check is the list of the shape CIRCLE has at least 2 points to draw circle\r\n if (clicksforCircle.size() >= 2)\r\n {\t\r\n \tfor (int i=0; i < clicksforCircle.size(); i+=2 )\r\n \t\t \t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforCircle.get(i).getX();\r\n \t\t\t y1 = (int) clicksforCircle.get(i).getY();\r\n \t\t\t x2 = (int) clicksforCircle.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforCircle.get(i+1).getY();\r\n \t\t\t drawCircle(x1,y1,x2,y2,g);\r\n \t \t \t\t\r\n \t\t \t}\r\n \t }\r\n //check is the list of the shape LINE has at least 2 points to draw line\r\n if (clicksforPoly.size() >= 2)\r\n \t {\r\n \t\t \tfor (int i=0; i < clicksforPoly.size(); i+=2 )\r\n \t\t \t{\r\n \t\t int x1=0, y1=0, x2=0, y2=0;\r\n \t\t \t\tSystem.out.println(\"Line case\");\r\n \t\t\t x1 = (int) clicksforPoly.get(i).getX();\r\n \t\t\t y1 = (int) clicksforPoly.get(i).getY();\r\n \t\t\t x2 = (int) clicksforPoly.get(i+1).getX();\r\n \t\t\t y2 = (int) clicksforPoly.get(i+1).getY();\r\n \t\t\t String text = MyWindow.input.getText();\r\n \t\t\t drawPolygon(x1,y1,x2,y2,Integer.parseInt(text),g);\r\n \t \t \t\t\r\n \t\t \t}\r\n \t }\r\n //check is the list of the shape CURVE has at least 2 points to draw curve\r\n if (clicksforCurve.size() >= 4)\r\n \t {\r\n \t\t \tfor (int i=0; i < clicksforCurve.size(); i+=4 )\r\n \t\t \t{\r\n \t int x1=0, y1=0, x2=0, y2=0, x3=0,y3=0,x4=0,y4=0;\r\n \t \t\tSystem.out.println(\"Line case\");\r\n \t\t x1 = (int) clicksforCurve.get(i).getX();\r\n \t\t y1 = (int) clicksforCurve.get(i).getY();\r\n \t\t x2 = (int) clicksforCurve.get(i+1).getX();\r\n \t\t y2 = (int) clicksforCurve.get(i+1).getY();\r\n \t\t x3 = (int) clicksforCurve.get(i+2).getX();\r\n \t\t y3 = (int) clicksforCurve.get(i+2).getY();\r\n \t\t x4 = (int) clicksforCurve.get(i+3).getX();\r\n \t\t y4 = (int) clicksforCurve.get(i+3).getY();\r\n \t\t String text = MyWindow.input.getText();\r\n \t\t drawCurve(x1,y1,x2,y2,x3,y3,x4,y4,Integer.parseInt(text),g);\r\n \t \t}\r\n \t }\r\n\t\r\n }",
"public void readFromFile(String mapName, JTextField tR, JTextField oR) {\r\n\t\tint space1 = 0, space2 = 0;\r\n\t\tint count = 0;\r\n\r\n\t\ttry {\r\n\t\t\tFileInputStream fstream = new FileInputStream(mapName);\r\n\t\t\tDataInputStream in = new DataInputStream(fstream);\r\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\r\n\t\t\tString strLine;\r\n\t\t\tsavingList.clear();\r\n\t\t\tdrawList.clear();\r\n\t\t\tdrawXList.clear();\r\n\t\t\tdrawYList.clear();\r\n\r\n\t\t\tstrLine = br.readLine();\r\n\t\t\tfor (int j = 0; j < strLine.length(); j++) {\r\n\t\t\t\tif (strLine.charAt(j) == ' ') {\r\n\t\t\t\t\ttR.setText(strLine.substring(0, j));\r\n\t\t\t\t\toR.setText(strLine.substring(j + 1, strLine.length()));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\twhile ((strLine = br.readLine()) != null) {\r\n\t\t\t\tfor (int i = 0; i < strLine.length(); i++) {\r\n\t\t\t\t\tif (strLine.charAt(i) == ' ' && count == 0) {\r\n\t\t\t\t\t\tspace1 = i;\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (strLine.charAt(i) == ' ' && count == 1)\r\n\t\t\t\t\t\tspace2 = i;\r\n\t\t\t\t}\r\n\t\t\t\tiii = new ImageIcon(this.getClass().getResource(\r\n\t\t\t\t\t\tstrLine.substring(0, space1)));\r\n\t\t\t\tsavingList.add(strLine.substring(0, space1));\r\n\t\t\t\tImage im = iii.getImage();\r\n\t\t\t\tint x = Integer.parseInt(strLine.substring(space1 + 1, space2))\r\n\t\t\t\t\t\t- im.getWidth(null) / 2;\r\n\t\t\t\tint y = Integer.parseInt(strLine.substring(space2 + 1,\r\n\t\t\t\t\t\tstrLine.length()))\r\n\t\t\t\t\t\t- im.getHeight(null) / 2;\r\n\t\t\t\tdrawXList.add(x);\r\n\t\t\t\tdrawYList.add(y);\r\n\t\t\t\tdrawList.add(iii.getImage());\r\n\t\t\t\tcount = 0;\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t\trepaint();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.err.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\r\n\t}",
"public static void main(String[] args) { \n \tprintAvailableMaps();\n \t\n\t\tGame game = new Game();\n\t\tScanner input = game.openFile();\n \tgame.readMapFile(input);\n \tgame.prepareTable();\n \tTapeHead player = game.preparePlayer();\n \t//game.print();\n \twhile(true) {\n \t\tgame.GameRunning(player);\n \t} \n }",
"void readMap()\n {\n try {\n FileReader\t\tmapFile = new FileReader(file);\n StringBuffer\tbuf = new StringBuffer();\n int\t\t\t\tread;\n boolean\t\t\tdone = false;\n \n while (!done)\n {\n read = mapFile.read();\n if (read == -1)\n done = true;\n else\n buf.append((char) read);\n }\n \n mapFile.close();\n \n parseMap(buf.toString());\n \n } catch (Exception e) {\n ErrorHandler.displayError(\"Could not read the map file data.\", ErrorHandler.ERR_OPEN_FAIL);\n }\n }",
"public void loadMap(Player player) {\r\n\tregionChucks = RegionBuilder.findEmptyChunkBound(8, 8); \r\n\tRegionBuilder.copyAllPlanesMap(235, 667, regionChucks[0], regionChucks[1], 8);\r\n\t\r\n\t}",
"public void setMap01(){\n\t\tmapSelect = \"map01.txt\";\n\t\treloadMap(mapSelect);\n\t\tsetImg(mapSelect);\n\t}",
"public void loadMap(Maps map) throws FileNotFoundException{\n ArrayList<Station> stat; \n stat = new ArrayList<>();\n \n try {\n String hodnoty; //do premennej hodnoty budem nacitavat riadky z textaka\n int stanica_na_zapis = 1; //counter pre stanice\n \n //---------------------------------------- zaciatok nacitavania\n hodnoty = br.readLine(); //nacitam riadok z textaka\n int x,y; //x, y budu sluzit pre nacitane suradnice\n String nazov; \n String[] split; //split je pole stringov...tu rozdelim riadok na jednotlive hodnoty\n split = hodnoty.split(\"\\\\s+\"); //delim podla medzery\n nazov = split[0]; //nazov stanice bude prvy string\n x = Integer.parseInt(split[1]); //nasleduje konverzia suradnic\n y = Integer.parseInt(split[2]);\n \n Station st = new Station(nazov,stanica_na_zapis,x,y); //vytvorim novu stanicu\n \n stat.add(st); //a pridam do zoznamu stanic\n \n while(!\"\".equals(hodnoty = br.readLine())){ //toto robim, az kym nie som na prazdnom riadku\n stanica_na_zapis++;\n split = hodnoty.split(\"\\\\s+\");\n nazov = split[0];\n x = Integer.parseInt(split[1]);\n y = Integer.parseInt(split[2]);\n st = new Station(nazov,stanica_na_zapis,x,y); \n stat.add(st);\n }\n } catch (IOException ex) {\n Logger.getLogger(Maps.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n stations_loaded = stat.size(); \n map.setStations(stat); //nakoniec ukladam nahrany zoznam stanic\n }",
"private void loadMapData(Context context, int pixelsPerMeter,int px,int py){\n\n char c;\n\n //keep track of where we load our game objects\n int currentIndex = -1;\n\n //calculate the map's dimensions\n mapHeight = levelData.tiles.size();\n mapWidth = levelData.tiles.get(0).length();\n\n //iterate over the map to see if the object is empty space or a grass\n //if it's other than '.' - a switch is used to create the object at this location\n //if it's '1'- a new Grass object it's added to the arraylist\n //if it's 'p' the player it's initialized at the location\n\n for (int i = 0; i < levelData.tiles.size(); i++) {\n for (int j = 0; j < levelData.tiles.get(i).length(); j++) {\n\n c = levelData.tiles.get(i).charAt(j);\n //for empty spaces nothing to load\n if(c != '.'){\n currentIndex ++;\n switch (c){\n case '1' :\n //add grass object\n gameObjects.add(new Grass(j,i,c));\n break;\n\n case 'p':\n //add the player object\n gameObjects.add(new Player(context,px,py,pixelsPerMeter));\n playerIndex = currentIndex;\n //create a reference to the player\n player = (Player)gameObjects.get(playerIndex);\n break;\n }\n\n //check if a bitmap is prepared for the object that we just added in the gameobjects list\n //if not (the bitmap is still null) - it's have to be prepared\n if(bitmapsArray[getBitmapIndex(c)] == null){\n //prepare it and put in the bitmap array\n bitmapsArray[getBitmapIndex(c)] =\n gameObjects.get(currentIndex).prepareBitmap(context,\n gameObjects.get(currentIndex).getBitmapName(),\n pixelsPerMeter);\n }\n\n }\n\n }\n\n }\n }",
"public static Map readMap(File f)\n {\n Map map = new Map(1);\n try\n {\n MapReader run = new MapReader();\n Scanner mapReader = new Scanner(f);\n ArrayList<String[]> numberLines = new ArrayList<String[]>();\n int dim = mapReader.nextInt();\n mapReader.nextLine();\n for(int gh = 0 ; gh < dim; gh++)\n {\n String[] nums = mapReader.nextLine().split(\" \");\n numberLines.add(nums);\n }\n int[][] newMap = new int[numberLines.size()][numberLines.size()];\n \n for(int i = 0; i < numberLines.size();i++)\n {\n for(int h = 0; h < numberLines.get(i).length;h++)\n {\n newMap[i][h] = Integer.parseInt(numberLines.get(i)[h]);\n }\n }\n map.loadMap(newMap);\n \n TreeMap<Integer,ArrayList<Integer>> spawn1 = map.getSpawn1();\n TreeMap<Integer,ArrayList<Integer>> spawn2 = map.getSpawn2();\n \n String line = \"\";\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn1\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn1.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn1.get(x).add(in.nextInt());\n }\n }\n \n if(!line.equals(\"\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn2\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"Corrupted file!\");\n }\n return map;\n }",
"public static void main (String[] args) throws MapException, GraphException {\n\t\n\tbs hi=new bs(\"map0.txt\");\n\t}",
"private void loadMap(String path) {\n\t\ttry {\n\t\t\tfor(Player p : players)\tp.clear();\n\t\t\tmap.players = players;\n\t\t\tmap.setPlayerNumber(playerNumber);\n\t\t\tfor(Player p : map.players) {\n\t\t\t\tp.setMap(map);\n\t\t\t\tp.setArmies(map.getInitialArmiesNumber());\n\t\t\t}\n\t\t\tmap.setPlayerNumber(map.players.size());\n\t\t\tmap.load(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }",
"public void load(String mapData){\n try {\n JSONObject obj = new JSONObject(mapData);\n int rows = (int)Math.round(obj.getDouble(\"rows\"));\n int cols = (int)Math.round(obj.getDouble(\"columns\"));\n loomoMap.buildMap(rows,cols);\n loomoMap.setMapName(obj.getString(\"name\"));\n loomoMap.setCellSize(obj.getDouble(\"cellSize\"));\n addLandmarkFromJSONMap(C.LANDMARK_OBSTACLE,obj,\"obstacles\");\n addLandmarkFromJSONMap(C.LANDMARK_DESTINATIONS,obj,\"destinations\");\n addLandmarkFromJSONMap(C.LANDMARK_HOME,obj,\"homeStations\");\n Destination hl = loomoMap.getLandmarks().get(\"homeA\");\n homeDestination = hl;\n loomoApplication.updateHomeLocation(this.homeDestination);\n loomoMap.printMap();\n } catch (Exception e){\n Log.d(TAG, \"loadMap: \"+ e.getMessage());\n }\n }",
"public MapData(String mapName) {\n this.mapName = mapName;\n readFile();\n}",
"public void onMapEnd(FileInfo finfo) {\n \t\t// Add the map name\n \t\tmdrFile.addMap(finfo.getMapnameAsInt());\n \n \t\tString filename = finfo.getFilename();\n \t\tMapReader mr = null;\n \t\ttry {\n \t\t\tmr = new MapReader(filename);\n \n \t\t\taddCountries(mr);\n \t\t\taddRegions(mr);\n \t\t\tMap<Integer, Mdr5Record> cityMap = makeCityMap(mr);\n \t\t\taddPoints(mr, cityMap);\n \t\t\taddCities(cityMap);\n \t\t\taddStreets(mr);\n \t\t} catch (FileNotFoundException e) {\n \t\t\tthrow new ExitException(\"Could not open \" + filename + \" when creating mdr file\");\n \t\t} finally {\n \t\t\tUtils.closeFile(mr);\n \t\t}\n \t}",
"public void readMapFile(Scanner input) {\n this.height = input.nextInt();\n this.width = input.nextInt();\n if((this.height >= 20 && this.height <= 50) && (this.width >= 20 && this.width <= 50)) \n {\t \n\t while(input.hasNext())\n\t {\n\t this.map += input.next();\n\t }\n\t input.close();\n }\n else\n {\n \tSystem.err.println(\"Map you have chosen is corrupted, please report this map to your neareast administrator\");\n \tSystem.exit(1);\n }\n \t\n }",
"public static void main(String[] args){\n\t\t/* \n\t\t * Retrieve the variables for width and height of the dungeon\n\t\t */\n\t\tint width;\n\t\tint height;\n\t\ttry{\n\t\t\twidth = Integer.parseInt(args[0]);\n\t\t\theight = Integer.parseInt(args[1]);\n\t\t} catch(NumberFormatException e) { \n\t\t\tSystem.out.println(\"Invalid width and/or height\");\n\t\t\treturn;\n\t\t}\n\t\t\t\n\t\tchar[][] map = genMap(width, height, 3, 10);\n\t\t\n\t\tfor(int i=0; i<height; i++){\n String line = \"\";\n for(int j=0; j<width; j++){\n line += map[i][j];\n }\n System.out.println(line);\n }\n\t}",
"public static boolean loadMap(String path) throws FileNotFoundException {\n\n// System.out.println(\" Enter map file address\");\n// String path = sc.next();\n\n // ---------------- Reading file-------------------------------\n File file_map = new File(path.trim());\n HashMap<String, List<String>> neighborsList = new HashMap<>();\n\n if (file_map.exists()) {\n Scanner myReader = new Scanner(file_map);\n\n while (myReader.hasNextLine()) {\n\n String data = myReader.nextLine();\n\n if (\"[Continents]\".equals(data.trim())) {\n System.out.println(\"==>\" + data.trim());\n data = myReader.nextLine();\n\n while (!data.equals(\"[Territories]\")) {\n System.out.println(data);\n String split[] = data.split(\"=\");\n String continent_name = split[0];\n String no_of_countries = split[1];\n continents.put(continent_name, Integer.parseInt(no_of_countries));\n data = myReader.nextLine();\n }\n }\n\n System.out.println(\"continents: \" + continents.toString());\n board.setContinents(continents);\n\n if (\"[Territories]\".equals(data)) {\n\n while (myReader.hasNextLine()) {\n String country_input = myReader.nextLine();\n\n String split[] = country_input.split(\",\");\n String country = split[0];\n int x = Integer.parseInt(split[1]);\n int y = Integer.parseInt(split[2]);\n String continent = split[3];\n List<String> neighbours = new ArrayList<>();\n\n for (int i = 4; i < split.length; i++) {\n neighbours.add(split[i]);\n }\n\n board.createTile(country, x, y, continent);\n neighborsList.put(country, neighbours);\n\n }\n }\n\n for (Map.Entry entry : neighborsList.entrySet()) {\n board.setNeighbourTile((List<String>) entry.getValue(), (String) entry.getKey());\n }\n\n\n }\n System.out.println(\"Risk Map Loaded!\");\n HashMap<String, Tile> map = board.getTiles();\n\n System.out.println(\"Map\" + map.keySet().toString());\n\n if (board.getContinents().size() == 0 || board.getTiles().size() == 0)\n return false;\n return true;\n\n } else {\n System.out.println(\"File does not exist! \");\n return false;\n }\n\n }",
"public static Map readMap(MapName s)\n {\n Map map = new Map(1);\n try\n {\n MapReader run = new MapReader();\n System.out.println(s.toString());\n Scanner mapReader = new Scanner(run.getClass().getResourceAsStream(\"/\"+s.toString()+\".jwmap\"));\n ArrayList<String[]> numberLines = new ArrayList<String[]>();\n int dim = mapReader.nextInt();\n mapReader.nextLine();\n for(int gh = 0 ; gh < dim; gh++)\n {\n String[] nums = mapReader.nextLine().split(\" \");\n numberLines.add(nums);\n }\n int[][] newMap = new int[numberLines.size()][numberLines.size()];\n \n for(int i = 0; i < numberLines.size();i++)\n {\n for(int h = 0; h < numberLines.get(i).length;h++)\n {\n newMap[i][h] = Integer.parseInt(numberLines.get(i)[h]);\n }\n }\n map.loadMap(newMap);\n \n TreeMap<Integer,ArrayList<Integer>> spawn1 = map.getSpawn1();\n TreeMap<Integer,ArrayList<Integer>> spawn2 = map.getSpawn2();\n \n String line = \"\";\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn1\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn1.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn1.get(x).add(in.nextInt());\n }\n }\n \n if(!line.equals(\"\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n while(mapReader.hasNextLine() && (line = mapReader.nextLine()).contains(\"spawn2\"))\n {\n Scanner in = new Scanner(line);\n in.next();\n int x = in.nextInt();\n spawn2.put(x, new ArrayList<Integer>());\n while(in.hasNextInt())\n {\n spawn2.get(x).add(in.nextInt());\n }\n }\n }\n catch (Exception ex)\n {\n JOptionPane.showMessageDialog(null, \"Corrupted file!\");\n }\n return map;\n }",
"private void populateMap() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n //database.updateLatLng(\"Gym\", 34.181243783767364, -117.31866795569658);\n\n while (cursor.moveToNext()) {\n double lat = cursor.getDouble(cursor.getColumnIndex(database.COL_LAT));\n double lng = cursor.getDouble(cursor.getColumnIndex(database.COL_LONG));\n int image = database.getImage(cursor.getString(cursor.getColumnIndex(database.COL_LOC)));\n\n //Log.i(\"ROW\", R.drawable.library + \"\");\n LatLng coords = new LatLng(lat, lng);\n\n GroundOverlayOptions overlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(image))\n .position(coords, 30f, 30f);\n\n mMap.addGroundOverlay(overlayOptions);\n }\n }",
"public void initializeMaps() {\n\t\t//can use any map\n\n\t\t//left map\n\t int x = 0, y = 0;\n\t int Lvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyLeft.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tLvalue = Integer.parseInt(str);\n\t \t\t\tleftMap[x][y] = Lvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //right map\n\t x = 0;\n\t y = 0;\n\t int Rvalue;\n\t \n\t try {\n\t \t//***change to your local path for the map you want to test\n\t \t//change to map you want to test\n\t \tBufferedReader input = new BufferedReader(new FileReader(\"/Users/NeeCee/Classes/4444/MirrorUniverse/maps/g6maps/lessEasyRight.txt\"));\n\t \tString line;\n\t \twhile((line = input.readLine()) != null) {\n\t \t\tString[] vals = line.split(\" \");\n\t \t\tfor(String str : vals) {\n\t \t\t\tRvalue = Integer.parseInt(str);\n\t \t\t\trightMap[x][y] = Rvalue;\n\t \t\t\t++y;\n\t \t\t}\n\t \t\t++x;\n\t \t\ty = 0;\n\t \t}\n\t \t\n\t \tinput.close();\n\t } catch (IOException ioex) {\n\t \tSystem.out.println(\"error reading in map for testing\");\n\t }\n\t \n\t //print each map for testing\n\t for(int i = 0; i < leftMap.length; i++ )\n\t \tfor(int j = 0; j < leftMap[i].length; j++ )\n\t \t\tSystem.out.println(leftMap[i][j]);\n\t System.out.println(\"*-----------------*\");\n\t for(int i = 0; i < rightMap.length; i++ )\n\t \tfor(int j = 0; j < rightMap[i].length; j++ )\n\t \t\tSystem.out.println(rightMap[i][j]);\n\t}",
"@Override\r\n public void load()\r\n {\r\n\tLevel.openMap(\"maps/Level1.map\", _width, _height);\r\n\t_level = Level.getInstance();\r\n\tCamera.getInstance().setBounds(_level.getWorldBoundaries());\r\n\t_printText = new Text(TILESHEET_TEXTURE, \"0123456789xUPC\", 0, 244, 32, 37, 4, 24, 28);\r\n\t_coin = new Sprite(\"Coin\", 6, _height - 34, 24, 24, Tiles.get(COIN_ANIM), false);\r\n\t_1UP = new Sprite(\"1UP\", 200, _height - 42, 42, 42, Tiles.get(MUSHROOM_GREEN), false);\r\n\tSoundLibrary.getInstance().loop(MUSIC_LEVEL);\r\n\tMario.clearData();\r\n }",
"public void initMap(String path) {\n \tgameState = StateParser.makeGame(path);\n\t\tintel = gameState.getCtrlIntel();\t\n\t\tsnakes = gameState.getSnake();\n\t\tmap = gameState.getMap();\n }",
"private void initMapData() {\n\n\t\ttry {\n\n\t\t\t@SuppressWarnings(\"resource\")\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(mapFile));\n\t\t\t\n\t\t\tfor (int row = 0; row < height; row++) {\n\t\t\t\t\n\t\t\t\t// read a line\n\t\t\t\tString line = br.readLine();\n\t\t\t\t\n\t\t\t\t// if length of this line is different from width, then throw\n\t\t\t\tif (line.length() != width)\n\t\t\t\t\tthrow new InvalidLevelFormatException();\n\t\t\t\t\n\t\t\t\t// split all single characters of this string into array\n\t\t\t\tchar[] elements = line.toCharArray();\n\t\t\t\t\n\t\t\t\t// save these single characters into mapData array\n\t\t\t\tfor (int col = 0; col < width; col++) {\n\t\t\t\t\tmapElementStringArray[row][col] = String.valueOf(elements[col]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public void loadTilemap(File fileToLoad) \n {\n File levelFile = fileToLoad;\n boolean roverPainted = false; //Used to check if rover is painted twice\n try\n {\n Scanner scanner = new Scanner(levelFile);\n //Strict capture, instead of hasNextLine()\n // to enforce level grid size\n //Collect data for each column in row, then go to next row\n // 0 = surface, 1 = rover, 2 = rock, 3 = mineral\n for(int y = 0; y < Level.MAX_ROWS; y++)\n {\n for(int x = 0; x < Level.MAX_COLUMNS; x++)\n {\n if(scanner.hasNext())\n {\n tilemap[x][y] = scanner.nextInt();\n \n //Check if this tile paint was a rover\n if(tilemap[x][y] == 1)\n {\n //If rover has already been painted\n if(roverPainted)\n {\n System.out.println(\"WARNING: Multiple rovers exist. \"\n + \"Please fix level file. \");\n }\n roverPainted = true; //Set roverPainted to true\n }\n }\n else\n {\n tilemap[x][y] = 0;\n }\n }\n }\n scanner.close();\n repaint();\n }\n catch (FileNotFoundException e) \n {\n System.out.println(\"Invalid Level File\");\n e.printStackTrace();\n }\n }",
"public void loadMapGame(LoadedMap map)throws BadMapException{\n ArrayList<Boat> boats = createLoadedBoats(map);\n\n Board board = new Board(map.getInterMatrix().length, map.getInterMatrix()[0].length, 0);\n\n //CREATE A GAME\n GameData gameData = new GameData(board, boats, false);\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n }",
"public MapProcessor(String mapFile) throws IOException\n {\n validateReflexMapFile(mapFile);\n\n if (reflexValidated)\n {\n //Set the map file parameter\n this.mapFile = mapFile;\n\n //Initialize the map scanner\n mapScanner = new Scanner(new File(mapFile));\n\n //Tell the user everything is honky dory for the scanner\n System.out.println(\"\\nLoaded your file: \" + mapFile);\n\n //The name of the file with the modification in the name\n String partialFileName = mapFile.substring(0, mapFile.length() - 4);\n\n //Initialize the file writer\n mapWriter = new FileWriter(partialFileName + \"_BrushShifted.map\");\n\n //Tell the user everything is honky dory for the writer\n System.out.println(\"Initialized empty map file for writing: \" + partialFileName + \"_BrushShifted.map\");\n\n lines = new String[lineCount()];\n System.out.println(\"Created array of lines with size \" + lines.length + \"\\n\");\n }\n }",
"public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void parseMapData(String filename){\n\t\ttry{\n\t\t\tXMLInputFactory inputFactory = XMLInputFactory.newInstance();\n\t\t\tInputStream in = new FileInputStream(filename);\n\t\t\tXMLEventReader eventReader = inputFactory.createXMLEventReader(in);\n\t\t\t\n\t\t\t//Read through the .osm file\n\t\t\twhile(eventReader.hasNext()){\n\n\t\t\t\tXMLEvent event = eventReader.nextEvent();\n\t\t\t\t\n\t\t\t\t//At start of a new tag\n\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\tStartElement startElement = event.asStartElement();\n\t\t\t\t\t\n\t\t\t\t\t//If we have bounds tag\n\t\t\t\t\tif(startElement.getName().getLocalPart() == (BOUNDS)){\n\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Found bounds tag\");\n\t\t\t\t\t\tfloat maxlon = 0,minlat = 0;\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all bounds attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(MINLAT)) minlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MINLON)) minlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLAT)) maxlat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(MAXLON)) maxlon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Calculate scaling values for lon and lat to screen coordinates\n\t\t\t\t\t\tfloat latDiff = maxlat-minlat;\n\t\t\t\t\t\tfloat lonDiff = maxlon-minlon;\n\t\t\t\t\t\tscaleLonX = Frame.SIM_WINDOW_LENGTH / lonDiff;\n\t\t\t\t\t\tscaleLatY = -Frame.SIM_WINDOW_LENGTH / latDiff;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a node tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\tString id = \"\";\n\t\t\t\t\t\tfloat lon = 0, lat = 0;\n\t\t\t\t\t\t\n\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node attributes\n\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\tif(attribute.getName().toString().equals(ID)) id = attribute.getValue();\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LON)) lon = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(LAT)) lat = Float.parseFloat(attribute.getValue());\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tNode node = new Node(Math.round(scaleLonX*(lon-minlon)),Math.round(scaleLatY*(lat-maxlat)));\n\t\t\t\t\t\t\n\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Check if node has any tags\n\t\t\t\t\t\twhile(true){\n\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\t\t\t\t\t\t\t//Does this node have any tags?\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tattributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Go through all tag attributes\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t//K\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(K)){\n\t\t\t\t\t\t\t\t\t\t\t//SHOP\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(SHOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added shop\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SHOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.SHOP_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t//V\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().toString().equals(V)){\n\t\t\t\t\t\t\t\t\t\t\t//CROSSING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(CROSSING)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CROSSING\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CROSSING);\n\t\t\t\t\t\t\t\t\t\t\t\tnonTargetNodes.add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY ENTRANCE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY_ENTRANCE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added SUBWAY_ENTRANCE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(SUBWAY_ENTRANCE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BUS_STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STATION);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BUS STOP\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().equals(BUS_STOP)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BUS_STOP\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BUS_STOP);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//RESTAURANT\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(RESTAURANT)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added RESTAURANT\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(RESTAURANT);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.RESTAURANT_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CAFE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CAFE)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added CAFE\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(CAFE);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.CAFE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//TOILETS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(TOILETS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added Toilet\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(TOILETS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.TOILET_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WASTE BIN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WASTEBIN)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added WASTE BIN\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(WASTEBIN);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.WASTE_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//FAST FOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(FAST_FOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added FAST_FOOD\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(FAST_FOOD);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.FASTFOOD_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//DOCTORS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(DOCTORS)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added DOCTORS\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(DOCTORS);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//HOSPITAL\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(HOSPITAL)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added HOSPITAL\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(HOSPITAL);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PHARMACY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PHARMACY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added PHARMACY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(PHARMACY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.HEALTH.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LIBRARY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LIBRARY)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added LIBRARY\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(LIBRARY);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.STUDY.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BANK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BANK)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//ATM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(ATM)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(Frame.DEBUG)System.out.println(\"Added BANK\");\n\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(BANK);\n\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.BANK_I.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tif(node.getXPos() >= 0 && node.getXPos() < Frame.SIM_WINDOW_LENGTH && \n\t\t\t\t\t\t\t\t\t\t\t\t node.getYPos() >= 0 && node.getYPos() < Frame.SIM_WINDOW_LENGTH)\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\t\tif(Frame.DEBUG)System.out.println(\"Added STATION\");\n\t\t\t\t\t\t\t\t\t\t\t\t\tnode.setTag(STATION);\n\t\t\t\t\t\t\t\t\t\t\t\t\ttargets.get(TargetEnums.PUBLIC_TRANSPORT.ordinal()).add(node);\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t//END NODE\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (NODE)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tnodeMap.put(id, node); //Put our node into the node map\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//If we have a way tag\n\t\t\t\t\telse if(startElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\tLinkedList<Node> nodes = new LinkedList<Node>();\n\t\t\t\t\t\tMapObject mapObject = null;\n\t\t\t\t\t\tboolean ignore = false;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Go through all node references for way\n\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t//Is event a start element?\n\t\t\t\t\t\t\tif(event.isStartElement()){\n\t\t\t\t\t\t\t\tstartElement = event.asStartElement();\n\t\n\t\t\t\t\t\t\t\t//A new node has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (ND)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the single attribute the node reference\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(REF)) nodes.add(nodeMap.get(attribute.getValue()));\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//A tag has been detected for the way\n\t\t\t\t\t\t\t\tif(startElement.getName().getLocalPart() == (TAG)){\n\t\t\t\t\t\t\t\t\tIterator<Attribute> attributes = startElement.getAttributes();\n\t\t\t\t\t\t\t\t\t//Take the attribute the tag references\n\t\t\t\t\t\t\t\t\twhile(attributes.hasNext()){\n\t\t\t\t\t\t\t\t\t\tAttribute attribute = attributes.next();\n\t\t\t\t\t\t\t\t\t\t//Value\n\t\t\t\t\t\t\t\t\t\tif(attribute.getName().toString().equals(V)) {\n\t\t\t\t\t\t\t\t\t\t\t//FOOTWAY\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(FOOTWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(FOOTWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PEDESTRIAN\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PEDESTRIAN)){\n\t\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\t\tif(mapObject instanceof Area){\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\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\t//WAY\n\t\t\t\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PEDESTRIAN_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(PEDESTRIAN_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PEDESTRIAN_COLOR);\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//PARK\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PARK)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(PARK_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(PARK_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WOOD\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WOOD)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WOOD_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WOOD_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//STEPS\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(STEPS)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(FOOTWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(FOOTWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(STEPS_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SERVICE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SERVICE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(SERVICE_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(SERVICE_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(SERVICE_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//CYCLE WAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(CYCLEWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(CYCLEWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(CYCLEWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(CYCLEWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//PLATFORM\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(PLATFORM)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_PLATFORM_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_PLATFORM_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_PLATFORM_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//NARROW GAUGE (RAILWAY)\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(NARROW_GAUGE)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(RAILWAY_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(RAILWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(RAILWAY_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//SUBWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(SUBWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//EDUCATION\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(EDUCATION)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setTag(EDUCATION);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t//Key\n\t\t\t\t\t\t\t\t\t\telse if(attribute.getName().getLocalPart() == (K)){\n\t\t\t\t\t\t\t\t\t\t\t//BUILDING\n\t\t\t\t\t\t\t\t\t\t\tif(attribute.getValue().toString().equals(BUILDING)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Building();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(BUILDING_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BUILDING_COST);\n\t\t\t\t\t\t\t\t\t\t\t\tignore = false;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//WATERWAY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(WATERWAY)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setColor(WATER_COLOR);\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(WATER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(WATERWAY_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AREA\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AREA)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Area();\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//BARRIER\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(BARRIER)){\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t\t\t\t\t\t\tmapObject.setCost(BARRIER_COST);\n\t\t\t\t\t\t\t\t\t\t\t\t((Way)mapObject).setWidth(BARRIER_WIDTH);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//AMENITY\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(AMENITY)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//LANDUSE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(LANDUSE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t//MAN MADE\n\t\t\t\t\t\t\t\t\t\t\telse if(attribute.getValue().toString().equals(MAN_MADE)){\n\t\t\t\t\t\t\t\t\t\t\t\tignore = true;\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//Is event an end element?\n\t\t\t\t\t\t\telse if(event.isEndElement()){\n\t\t\t\t\t\t\t\tEndElement endElement = event.asEndElement();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//At the end of a Way element? (add way and onwards to next tag)\n\t\t\t\t\t\t\t\tif(endElement.getName().getLocalPart() == (WAY)){\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tevent = eventReader.nextEvent();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject == null && !ignore){\n\t\t\t\t\t\t\tmapObject = new Way();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(mapObject != null && !ignore) {\n\t\t\t\t\t\t\tmapObject.addNodes(nodes);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t//Calculate collision and add to collection\n\t\t\t\t\t\t\tif(mapObject instanceof Building){\n\t\t\t\t\t\t\t\t((Building)mapObject).checkTargetsInside(targets);\n\t\t\t\t\t\t\t\tbuildings.add((Building)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Area){\n\t\t\t\t\t\t\t\tareas.add((Area)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(mapObject instanceof Way){\n\t\t\t\t\t\t\t\tways.add((Way)mapObject);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmapObject.calculateCollision(collisionMatrix);\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\tprogress += 5;\n\t\t\tsetProgress(progress);\n\t\t\tcheckTargetsReachable();\n\t\t\tsetProgress(97);\n\t\t\treadIcons();\n\t\t\tsetProgress(98);\n\t\t\tsetTargetCosts();\n\t\t\tsetProgress(99);\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (XMLStreamException e) {\n \t \te.printStackTrace();\n\t\t}\n\t}",
"public void drawMap(ArrayList<Entity> entities){\n\t\t//draw map\n\t\tmap.draw(graphics, entities);\n\t}",
"public MapArchitect(String a_fileName, int rows, int cols)\n {\n m_fileName=a_fileName;\n m_waypoints = new LinkedList<Vector2d>();\n m_maxNumWaypoints = 10;\n m_brush = 4;\n m_startPoint = null;\n m_mousePosition = new Vector2d();\n\n this.m_grid =new char[rows][cols];\n\n for(int i=0;i< m_grid.length;i++)\n for(int j=0;j< m_grid[i].length;j++)\n m_grid[i][j]=EMPTY;\n\n this.addMouseListener(this);\n this.addMouseMotionListener(this);\n }",
"public void loadMapsModule(){\n Element rootElement = FileOperator.fileReader(MAPS_FILE_PATH);\n if(rootElement!=null){\n Iterator i = rootElement.elementIterator();\n while (i.hasNext()) {\n Element element = (Element) i.next();\n GridMap map =new GridMap();\n map.decode(element);\n mapsList.add(map);\n }\n }\n }",
"private void loadMap(BufferedImage[][] heroImages,\n\t\t\tBufferedImage[][] bossImages, BufferedImage[][] enemyImages) {\n\t\t// read in map graphics\n\t\tBufferedImage[] tiles = new BufferedImage[3];\n\t\tfor (int i = 0; i < tiles.length; i++)\n\t\t\ttiles[i] = Game.loadImage(\"ssTile\" + (i + 1) + \".png\");\n\n\t\t// create scanner\n\t\tScanner in = new Scanner(Game.loadStream(\"map2.txt\"));\n\n\t\t// read in map\n\t\tint width = in.nextInt(), height = in.nextInt();\n\t\tin.nextLine();\n\t\tin.nextLine();\n\t\tint[][] grid = new int[height][width];\n\t\tfor (int i = 0; i < height; i++)\n\t\t\tprocessMapLine(grid, in.nextLine(), width, i);\n\n\t\t// read in entities\n\t\thero = loadEntity(in, 200, heroImages, 32);\n\t\tboss = loadEntity(in, 1000, bossImages, 32);\n\t\tenemies = new ArrayList<SideScrollerEntity>();\n\t\tint numEnemies = in.nextInt();\n\t\tfor (int i = 0; i < numEnemies; i++)\n\t\t\tenemies.add(loadEntity(in, 1000, enemyImages, 32));\n\n\t\t// load shop graphics\n\t\tBufferedImage shopTile = Game.loadImage(\"shop2.png\");\n\n\t\tmap = new SideScrollerMap(this, this, hero, boss, enemies, 0,\n\t\t\t\t-32 * 32 + 600, sighting);\n\t\tmap.loadResources(tiles, grid, shopTile, 29, 5);\n\t}",
"public static void Load(String filename) throws IOException {\n\t\tLineNumberReader lnr = new LineNumberReader(new FileReader(filename));\r\n\t\t linenumber = 0;\r\n\t\t while (lnr.readLine() != null){\r\n\t\t\t linenumber++;\r\n\t\t }\r\n lnr.close();\r\n \tarrr=new String[linenumber][5];\r\n\t\tarr=arrr;\r\n\t\tBufferedReader br=new BufferedReader(new FileReader(filename));\r\n\t\t Scanner sc1=new Scanner(br);\r\n\t\t String ss=sc1.nextLine();\r\n\t\t String[] str1 = ss.split(\",\") ;\r\n\t\t String r=str1[0];\r\n\t\t String t=str1[1];\r\n\t\t String[] str2 = r.split(\":\") ;\r\n\t\t round= Integer.parseInt(str2[1]);\r\n\t\t String[] str3 = t.split(\":\") ;\r\n\t\t who=Integer.parseInt(str3[1]);\r\n\t\t arr=new String[linenumber][5];\r\n\t\t int num=0;\r\n\t\t while(sc1.hasNextLine()) {\t\r\n\t\t\t int i=0;\r\n\t\t\t num++;\r\n\t\t\t String x=sc1.nextLine();\r\n\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\twhile(i<5) {\r\n\t\t\t\tarr[num][i]=str[i];\r\n\t\t\t\ti++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t int c=1;\r\n\t ch=new Character[linenumber];\r\n\r\n\t\t\twhile(c<(linenumber)) {\r\n\t\t\t\t\r\n\t\t\t\tch[c]=new Character(Integer.parseInt(arr[c][0]),Integer.parseInt(arr[c][1]),Integer.parseInt(arr[c][2]),Integer.parseInt(arr[c][3]),arr[c][4]);\t\t\t\t\t\t\t\r\n\t\t\t\tc++;\r\n\t\t\t}\t\r\n\t\t\r\n\t\t sc1.close();\r\n\t\t String file=\"Land.txt\";\r\n\t\t\tBufferedReader br2=new BufferedReader(new FileReader(file));\r\n\t\t\tland=new String[20][2];\r\n\t\t\tland2=new String[20][2];\r\n\t\t\tland=land2;\r\n\t\t\tScanner sc2=new Scanner(br2);\r\n\t\t\tString strr=sc2.nextLine();\r\n\t\t\tnum=0;\r\n\t\t\t while(sc2.hasNextLine()) {\t\r\n\t\t\t\t int i=0;\r\n\t\t\t\t num++;\r\n\t\t\t\t String x=sc2.nextLine();\t\t\t\r\n\t\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\t\twhile(i<2) {\r\n\t\t\t\t\tland[num][i]=str[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t }\t\t\t\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t String url = \"//localhost:3306/checkpoint?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT\";\r\n\t\t // String url=\"//140.127.220.220/\";\r\n\t\t // String dbname=\"CHECKPOINT\";\r\n\t\t\t Connection conn = null;\r\n\t\t try{\r\n\t\t conn = DriverManager.getConnection(protocol + url,username,passwd);\r\n\t\t Statement s = conn.createStatement();\r\n\t\t String sql = \"SELECT PLACE_NUMBER,LAND_PRICE,TOLLS FROM LAND\";\r\n\t\t rs=s.executeQuery(sql);\r\n\t\t p_number=new int[20];\r\n\t\t l_price=new int[20];\r\n\t\t tolls=new int[20];\r\n\t\t grid=0;\r\n\t\t while(rs.next()){\r\n\t\t \tgrid++;\r\n\t\t \tp_number[grid]=rs.getInt(\"PLACE_NUMBER\");\r\n\t\t \tl_price[grid]=rs.getInt(\"LAND_PRICE\");\r\n\t\t \ttolls[grid]=rs.getInt(\"TOLLS\");\t \t\t \t\r\n\t\t }\t\t \t\t \r\n\t\t rs.close();\r\n\t\t conn.close();\r\n\t\t } catch(SQLException err){\r\n\t\t System.err.println(\"SQL error.\");\r\n\t\t err.printStackTrace(System.err);\r\n\t\t System.exit(0);\r\n\t\t }\r\n\t\t\t Land=new Land[20];\r\n\t\t\t Land2=new Land[20];\r\n\t\t\t Land=Land2;\t\t\t \r\n\t\t \tfor(int i=1;i<=grid;i++) {\r\n\t\t \t\tLand[i]=new Land(p_number[i],Integer.parseInt(land[i][1]),l_price[i],tolls[i]);\t \t\t\r\n\t\t \t}\r\n\t\t\t sc2.close();\r\n\t}",
"static void loadPgm() {\n String file;\n try {\n // Prompt for pgm\n System.out.print(\"Enter terrain file: \"); file = scan.nextLine();\n // Read pgm\n pgmInf = new PgmImageInfo( file );\n // More Interaction\n System.out.printf(\"Read terrain file: %d by %d, \", pgmInf.width, pgmInf.height );\n System.out.printf(\"height ranges from %d to %d.\\n\", 0, pgmInf.maxValue);\n }\n catch (Exception e) {\n System.out.println(\"readPgmFile: failed to read file! Error!: \" + e.getLocalizedMessage());\n loadPgm();\n }\n }",
"void parseMap(String mapData)\n {\n try {\n \n StringTokenizer\tst = new StringTokenizer(mapData);\n \n int\t\tsizeX, sizeY;\n int\t\tx = 0;\n int\t\ty = 0;\n int\t\te;\n char\tt;\n \n // Get the size of the map\n sizeX = Integer.parseInt(st.nextToken());\n sizeY = Integer.parseInt(st.nextToken());\n \n map = new MUXMap(sizeX, sizeY);\n \n // Loop thru each line\n while (st.hasMoreTokens())\n {\n String\t\t\tthisLine = st.nextToken();\n \n // Think the map is over if we hit this thing\n if (thisLine.equals(\"-1\") || thisLine.startsWith(\"-1 \"))\n break;\n \n for (x = 0; x < sizeX * 2; x+=2)\n {\n // Get terrain and elevation, then set the data in the map\n t = thisLine.charAt(x);\n e = Character.digit(thisLine.charAt(x + 1), 10);\n map.setHex(x/2, y, t, e);\n }\n \n // One more line down in y\n y++;\n } \n } catch (Exception e) {\n System.out.println(\"Error: readMap: \" + e);\n }\n \n }",
"public void setup() \n{\n size(1600, 1000, P2D); \n\n List<Feature> trwd = GeoJSONReader.loadData(this, \"Weekday.geojson\");\n Trajectorywd = MapUtils.createSimpleMarkers(trwd);\n\n List<Feature> trwk = GeoJSONReader.loadData(this, \"Weekend.geojson\");\n Trajectorywk = MapUtils.createSimpleMarkers(trwk);\n\n //map displaying weekday and weekend data with StamenMap as a basemap\n map1 = new UnfoldingMap(this, \"Weekday\", 40, 100, 670, 600, true, false, new StamenMapProvider.TonerLite());\n map1.zoomAndPanTo(BeijingLocation, 12);\n map1.addMarkers(Trajectorywd); \n \n map2 = new UnfoldingMap(this, \"Weekend\", 900, 100, 670, 600, true, false, new StamenMapProvider.TonerLite());\n map2.zoomAndPanTo(BeijingLocation, 12); \n map2.addMarkers(Trajectorywk);\n\n //map displaying weekday and weekend data with ThunderforestMap as a basemap\n map3 = new UnfoldingMap(this, \"Weekday\", 40, 100, 670, 600, true, false, new ThunderforestProvider.Transport());\n map3.zoomAndPanTo(BeijingLocation, 12);\n map3.addMarkers(Trajectorywd); \n\n map4 = new UnfoldingMap(this, \"Weekend\", 900, 100, 670, 600, true, false, new ThunderforestProvider.Transport());\n map4.zoomAndPanTo(BeijingLocation, 12); \n map4.addMarkers(Trajectorywk);\n\n mapwd = map1;\n mapwk = map2;\n MapUtils.createDefaultEventDispatcher(this, mapwd, mapwk, map1, map2, map3, map4);\n \n data1 = loadData(\"weekends.csv\");\n data2 = loadData(\"weekdays.csv\");\n\n //String datestarts = \"20090329\"; // 2009 03 7/8/14/15/21/22/28/29 \n rawdata = new ArrayList<ArrayList<Movement>>(); \n // Arraylist for interesting places: coordinates and names \n interestlo= new ArrayList<Location>(\n Arrays.asList(new Location(39.99f, 116.26f), new Location(40.01f, 116.30f), new Location(39.989f, 116.306f), \n new Location(40.00f, 116.32f), new Location(40.064f, 116.582f), new Location(40.068f, 116.129f), \n new Location(40.0261f, 116.388f), new Location(39.915f, 116.316f ), new Location(39.927f, 116.383f)));\n interestna= new ArrayList<String>(\n Arrays.asList(\"Summer Palace\", \"Yuanmingyuan Ruins Park\", \"Peking University\", \"Tsinghua University\", \"Capital Airport\", \n \"Beiqing Jiaoye Xiuxian Park\", \"Dongxiaokou Forest Park\", \"Yuyuantan Park\", \"Beihai Park\"));\n //The location of pointer for defining threshold \n pointerXt = width-180;\n pointerXd = width-20;\n filefolder = dataPath(\"\");\n println(filefolder);\n readFile();\n// f = new PFrame();\n compimage=loadImage(\"compass.png\");\n\n font = createFont(\"calibrib.ttf\", 50);\n textFont(font);\n\n drawslider();\n// switchButton = controlP5.addToggle(\"switchmode\")\n// .setPosition(80, 50)\n// .setSize(60, 30)\n// .setValue(modeswitch);\n \n logo = loadImage(\"beijing.png\");\n}",
"private void init_fields(String subor, Maps map) throws FileNotFoundException{ //inicializacia vsetkych zoznamov -> hlavne tych z triedy Maps\n map.setCars(new ArrayList<>());\n map.setStations(new ArrayList<>());\n Free_time_window free[][] = map.getFree_windows();\n Reserved_time_window reserved[][] = map.getReserved_windows();\n Road[][] road_matrix = map.getRoads();\n ArrayList<Car>cars;\n \n fr = new FileReader(subor); //nabijem do File Readera moj subor\n br = new BufferedReader(fr); //a budem ho citat\n \n cars = new ArrayList<>();\n \n for(int i= 0;i< max_NO_of_stations; i++){\n for(int j = 0;j< max_NO_of_stations; j++){\n if(i==j){ \n road_matrix[i][j] = new Road(0,-1,-1,-1);\n }\n else{\n road_matrix[i][j] = new Road(-1,-1,-1,-1);\n }\n }\n }\n \n for(int i= 0;i< max_NO_of_stations; i++){\n for(int j = 0;j< max_NO_of_windows; j++){\n free[i][j] = new Free_time_window(-1,-1,-1, -1);\n \n reserved[i][j] = new Reserved_time_window(-1,-1, new Car(-1));\n }\n }\n \n map.setFree_windows(free);\n map.setReserved_windows(reserved);\n map.setRoads(road_matrix);\n map.setCars(cars);\n }",
"private void drawMap(HashMap<String, TrailObj> trailCollection,\n\t\t\tGoogleMap mMap2) {\n\n\t\tfor (TrailObj trail : trailCollection.values()) {\n\t\t\tfor (PlacemarkObj p : trail.getPlacemarks()) {\n\t\t\t\tPolylineOptions rectOptions = new PolylineOptions();\n\t\t\t\tfor (LatLng g : p.getCoordinates()) {\n\t\t\t\t\trectOptions.add(g);\n\t\t\t\t}\n\t\t\t\tPolyline polyline = mMap2.addPolyline(rectOptions);\n\t\t\t\tpolyline.setColor(Color.RED);\n\t\t\t\tpolyline.setWidth(5);\n\t\t\t\tpolyline.setVisible(true);\n\t\t\t}\n\t\t}\n\t}",
"public void loadTroubleMarker(HashMap<Integer, TroubleMarker> TroubleMarker_HASH){\r\n \r\n try {\r\n Scanner scanner = new Scanner(new File(file_position+\"TroubleMarker.csv\"));\r\n Scanner dataScanner = null;\r\n int index = 0;\r\n \r\n while (scanner.hasNextLine()) {\r\n dataScanner = new Scanner(scanner.nextLine());\r\n \r\n if(TroubleMarker_HASH.size() == 0){\r\n dataScanner = new Scanner(scanner.nextLine());\r\n }\r\n \r\n dataScanner.useDelimiter(\",\");\r\n TroubleMarker troubleMarker = new TroubleMarker(-1, -1);\r\n \r\n while (dataScanner.hasNext()) {\r\n String data = dataScanner.next();\r\n if (index == 0) {\r\n troubleMarker.setId(Integer.parseInt(data));\r\n } else if (index == 1) {\r\n troubleMarker.setAreaNumber(Integer.parseInt(data));\r\n } else {\r\n System.out.println(\"invalid data::\" + data);\r\n }\r\n index++;\r\n }\r\n \r\n TroubleMarker_HASH.put(troubleMarker.getId(), troubleMarker);\r\n index = 0;\r\n }\r\n \r\n scanner.close();\r\n \r\n } catch (FileNotFoundException ex) {\r\n System.out.println(\"Error: FileNotFound - loadTroubleMarker\");\r\n }\r\n \r\n }",
"private void readFile() {\n\t\tint newPlayerScore = level.animal.getPoints();\n\t\t\n\t\tlevel.worDim = 30;\n\t\tlevel.wordShift = 25;\n\t\tlevel.digDim = 30;\n\t\tlevel.digShift = 25;\n\t\t\n\t\tfor( int y =0; y<10; y++ ) { //display placeholder numbers\n\t\t\tfor( int x=0; x<4; x++ ) {\n\t\t\t\tbackground.add(new Digit( 0, 30, 470 - (25*x), 200 + (35*y) ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry { //display highscores from highscores.txt\n\t\t\tScanner fileReader = new Scanner(new File( System.getProperty(\"user.dir\") + \"\\\\highscores.txt\"));\n\t\t\t\n\t\t\tint loopCount = 0;\n\t\t\twhile( loopCount < 10 ) {\n\t\t\t\tString playerName = fileReader.next() ;\n\t\t\t\tString playerScore = fileReader.next() ;\n\t\t\t\tint score=Integer.parseInt(playerScore);\n\t\t\t\t\n\t\t\t\tif( newPlayerScore >= score && newHighScore == false ) {\n\t\t\t\t\tstopAt = loopCount;\n\t\t\t\t\tnewHighScore = true;\n\t\t\t\t\tlevel.wordY = 200 + (35*loopCount);\n\t\t\t\t\t\n\t\t\t\t\tpointer = new Icon(\"pointer.png\", 30, 75, 200 + (35*loopCount) );// add pointer indicator\n\t\t\t\t\tbackground.add( pointer ); \n\t\t\t\t\tlevel.setNumber(newPlayerScore, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}else {\n\t\t\t\t\tlevel.setWord(playerName, 10, 100, 200 + (35*loopCount));\n\t\t\t\t\tlevel.setNumber(score, 470, 200 + (35*loopCount));\n\t\t\t\t\tloopCount += 1;\n\t\t\t\t}\n\t\t\t}//end while\n\t\t\tfileReader.close();\n\t\t\tif( newHighScore ) {\n\t\t\t\tnewHighScoreAlert();\n\t\t\t}else {\n\t\t\t\tgameOverAlert();\n\t\t\t}\n } catch (Exception e) {\n \tSystem.out.print(\"ERROR: Line 168: Unable to read file\");\n //e.printStackTrace();\n }\n\t}",
"@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad)throws IOException\r\n\t{\r\n\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column=0;\r\n\t\tint row=0;\r\n\t\tArrayList<String> ans= new ArrayList<String>();\r\n\t\twhile((line = read.readLine()) != null)\r\n\t\t{\r\n\t\t\tif (line.length() > row)\r\n\t\t\t{\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\tcolumn++;\r\n\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column,row);\r\n\t\tcolumn = 0;\r\n\t\tfor(String resualt: ans)\r\n\t\t{\r\n\r\n\t\t\tfor(int i=0;i<resualt.length();i++)\r\n\t\t\t{\r\n\t\t\t\tswitch(resualt.charAt(i))\r\n\t\t\t\t{\r\n\t\t\t\t\tcase ' ':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase '#':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 'A':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\t\tlevel.setMoveableMap(column,i,item);\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i, new AbstractItems(new Position2D(column,i), ' '));\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase '@':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\t\tlevel.setMoveableMap(column,i,item);\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i, new AbstractItems(new Position2D(column,i), ' '));\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcase 'o':\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tItem item = new AbstractItems(new Position2D(column,i));\r\n\t\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\t\tlevel.setUnmoveableMap(column,i,item);\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}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\r\n\t\treturn level;\r\n\t}",
"public void setMap()\n {\n gameManager.setMap( savedFilesFrame.getCurrent_index() );\n }",
"public void displaymap(AircraftData data);",
"public static Point[] readMap(int numPlayers, String fileName) throws IOException {\n int[] homes = new int[numPlayers];\n for (int i = 0; i < numPlayers; i++) {\n homes[i] = i;\n }\n for (int i = 0; i < numPlayers; i++) {\n int swap = pseudo(0, numPlayers - 1);\n int value = homes[i];\n homes[i] = homes[swap];\n homes[swap] = value;\n }\n BufferedReader br = new BufferedReader(new FileReader(\"map\" + File.separator + \"\"\n + numPlayers + File.separator\n + fileName));\n String line = br.readLine();\n while ((line != null) && (line.length() > 0) && (line.charAt(0) == '#')) {\n line = br.readLine();\n }\n int homeNum = 0;\n int neutralNum = numPlayers;\n Point[] points = new Point[Params.PLANETS];\n for (int i = 0; i < Params.PLANETS; i++) {\n points[i] = new Point(-1, -1);\n }\n for (int i = 0; i < Params.MAPY; i++) {\n if ((line == null) || (line.length() < Params.MAPX)) {\n throw new IOException(\"Insufficient map data.\");\n }\n int planetNum = 0;\n for (int j = 0; j < Params.MAPX; j++) {\n char c = line.charAt(j);\n if (c == EMPTY_SPACE) {\n continue;\n } else if (c == HOME_PLANET) {\n if (homeNum == numPlayers) {\n throw new IOException(\"Too many home planets.\");\n }\n planetNum = homes[homeNum];\n homeNum++;\n } else {\n planetNum = neutralNum;\n neutralNum++;\n }\n if (planetNum == Params.PLANETS) {\n throw new IOException(\"Too many neutral planets.\");\n }\n points[planetNum] = new Point(j, i);\n }\n line = br.readLine();\n }\n return points;\n }",
"public static void main(String[] args) throws FileNotFoundException {\n\t\tSkipList<String, Rectangle> list = new SkipList<String, Rectangle>();\n\t\tString file = args[0];\n\t\tScanner scan = new Scanner(new File(file));\n\t\t// FileProcessor fp = new FileProcessor();\n\t\t// fp.fileParser(line);\n\t\ttry {\n\t\t\tString lineReader = \"\";\n\t\t\twhile (scan.hasNextLine()) {\n\t\t\t\tlineReader = scan.nextLine();\n\t\t\t\t// regex string delimeter we need to figure out to get rid of excess whitespace\n\t\t\t\t// between parameters in text file\n\t\t\t\tString CMD = lineReader.trim();\n\t\t\t\tString[] lineCMD = CMD.split(\"\\\\s+\");\n\t\t\t\t// switch statement for all situations\n\t\t\t\tswitch (lineCMD[0]) {\n\t\t\t\tcase \"insert\":\n\t\t\t\t\tString name = lineCMD[1];\n\t\t\t\t\tint xCord = Integer.parseInt(lineCMD[2]);\n\t\t\t\t\tint yCord = Integer.parseInt(lineCMD[3]);\n\t\t\t\t\tint width = Integer.parseInt(lineCMD[4]);\n\t\t\t\t\tint height = Integer.parseInt(lineCMD[5]);\n\t\t\t\t\tRectangle rect = new Rectangle(name, xCord, yCord, width, height);\n\t\t\t\t\tKVPair<String, Rectangle> item = new KVPair<String, Rectangle>(name, rect);\n\t\t\t\t\tif (width <= 0 || height <= 0 || (xCord + width > 1024) || (xCord + width < 0)\n\t\t\t\t\t\t\t|| (yCord + height > 1024) || (yCord + height < 0) || (xCord < 0) || (yCord < 0)) {\n\t\t\t\t\t\tSystem.out.println(\"Rectangle rejected: (\" + name + \", \" + xCord + \", \" + yCord + \", \" + width\n\t\t\t\t\t\t\t\t+ \", \" + height + \")\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlist.insert(name, rect);\n\t\t\t\t\t\tSystem.out.println(\"Rectangle Inserted: (\" + name + \", \" + xCord + \", \" + yCord + \", \" + width\n\t\t\t\t\t\t\t\t+ \", \" + height + \")\");\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"remove\":\n\t\t\t\t\t// System.out.println(scan.nextLine());\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"regionsearch\":\n\t\t\t\t\t// System.out.println(scan.nextLine());\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"intersections\":\n\t\t\t\t\t// System.out.println(scan.nextLine());\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"search\":\n\t\t\t\t\t// System.out.println(scan.nextLine());\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase \"dump\":\n\t\t\t\t\tSystem.out.println(\"SkipList dump: \");\n\t\t\t\t\tbreak;\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(lineCMD[0]);\n\t\t\t}\n\t\t}\n\t\t// line = scan.nextLine();\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// String line = scan.nextLine();\n\t\t// System.out.println(line);\n\t\t// System.out.println(file);\n\t\t// fileParser(file);\n\t\t// Rectangle1 rect = new Rectangle1();\n\n\t}",
"public static void main(String[] args) throws IOException {\r\n\r\n File file = new File(\"Load_Shedding_All_Areas_Schedule_and_Map.clean.final.txt\");\r\n\r\n LSItemsArray = new LSItems[2976];\r\n Scanner scan;\r\n //Scanner scan = new Scanner(file);\r\n\r\n try {\r\n scan = new Scanner(file);\r\n int count = 0;\r\n while (scan.hasNextLine()){\r\n String line = scan.nextLine();\r\n String[] splitString = splitString(line);\r\n //System.out.println(Arrays.toString(splitString));\r\n LSItems lsItem = new LSItems(splitString[0], splitString[1]);\r\n LSItemsArray[count] = lsItem;\r\n count++;\r\n }\r\n scan.close();\r\n\r\n }\r\n catch(FileNotFoundException e) {\r\n throw new RuntimeException(e);\r\n }\r\n\r\n\r\n if (args.length != 0) {\r\n printAreas(args[0]);\r\n try {\r\n writeOperationsToTxt(args[0], opCount);\r\n writeOperationsToCSV(args[0], opCount);\r\n }\r\n catch(FileNotFoundException e) {\r\n throw new RuntimeException(e);\r\n }\r\n }\r\n else\r\n printAllAreas();\r\n\r\n }",
"public Load(String[] args) {\n\n\t\ttry {\n\t\t\tRandomAccessFile raf = new RandomAccessFile(new File(args[0]), \"rw\");\n\t\t\tthis.sfMap = raf.getChannel();\n\t\t\tthis.stataFile = sfMap.map(FileChannel.MapMode.READ_WRITE, 0, sfMap.size());\n\t\t\tthis.fileHeader = checkVersion(this.stataFile);\n\t\t\tif (this.release >= 113 && this.release <= 115) {\n\t\t\t\tthis.headerData = OldFormats.readHeader(stataFile, fileHeader);\n\t\t\t} else {\n\t\t\t\tthis.headerData = NewFormats.readHeader(stataFile, fileHeader);\n\t\t\t}\n\t\t\tparseHeader();\n\t\t\tif (this.release == 118) {\n\t\t\t\tthis.versionedFile = FileFormats.getVersion(this.sfMap, this.release,\n\t\t\t\t\t\tthis.endian, this.K, (Long) this.headerData.get(3),\n\t\t\t\t\t\tthis.datasetLabel, this.datasetTimeStamp, this.mapOffset);\n\t\t\t} else {\n\t\t\t\tthis.versionedFile = FileFormats.getVersion(this.sfMap, this.release,\n\t\t\t\t\t\tthis.endian, this.K, (Integer) this.headerData.get(3),\n\t\t\t\t\t\tthis.datasetLabel, this.datasetTimeStamp, this.mapOffset);\n\t\t\t}\n\t\t} catch (IOException | DtaCorrupt e) {\n\t\t\tSystem.out.println(String.valueOf(e));\n\t\t}\n\n\t}",
"public void drawMap() {\n\t\tRoad[] roads = map.getRoads();\r\n\t\tfor (Road r : roads) {\r\n\t\t\tif (r.turn) {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road = true;\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_vert = true;\r\n\t\t\t} else if (r.direction == Direction.NORTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_north = true;\r\n\t\t\telse if (r.direction == Direction.SOUTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_south = true;\r\n\t\t\telse if (r.direction == Direction.WEST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_west = true;\r\n\t\t\telse if (r.direction == Direction.EAST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_east = true;\r\n\t\t\ttry {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].updateImage();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void loadMap(String filepath) {\n\n\t\ttry {\n\n\t\t\tInputStream in = getClass().getResourceAsStream(filepath);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(in));\n\n\t\t\tnumCols = Integer.parseInt(br.readLine());\n\t\t\tnumRows = Integer.parseInt(br.readLine());\n\t\t\tmap = new int[numRows][numCols];\n\t\t\twidth = numCols * tileSize;\n\t\t\theight = numRows * tileSize;\n\n\t\t\tString delims = \"\\\\s+\";\n\t\t\tfor (int row = 0; row < numRows; row++) {\n\t\t\t\tString line = br.readLine();\n\t\t\t\tString[] tokens = line.split(delims);\n\t\t\t\tfor (int col = 0; col < numCols; col++) {\n\t\t\t\t\tmap[row][col] = Integer.parseInt(tokens[col]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static void readFileBronze(String filename) throws FileNotFoundException{\n try {\n //Scanners and readers and everything??\n File text = new File(filename);\n Scanner inf = new Scanner(text);\n BufferedReader brTest = new BufferedReader(new FileReader(filename));\n String firstLine = brTest.readLine();\n String[] firstLineArray = new String[4];\n firstLineArray = firstLine.split(\" \");\n\n //Determines rows, cols, elevation, number of instructions.\n r = Integer.parseInt(firstLineArray[0]);\n c = Integer.parseInt(firstLineArray[1]);\n e = Integer.parseInt(firstLineArray[2]);\n n = Integer.parseInt(firstLineArray[3]);\n\n //Initializes map.\n map = new int[r][c];\n inf.nextLine();\n for (int i = 0; i < r; i++){\n for (int j = 0; j < c; j++) {\n map[i][j] = inf.nextInt();\n }\n }\n //System.out.println(inf.nextLine());\n //System.out.println(inf.nextLine());\n\n //Instructions.\n\n instructions = new int[n][3];\n for (int i = 0; i < n; i++){\n inf.nextLine();\n for (int j = 0; j < 3; j++){\n instructions[i][j] = inf.nextInt();\n }\n }\n //Exceptions.\n } catch (FileNotFoundException ex){\n System.out.println(\"Yikes\");\n } catch (IOException ex){\n System.out.println(\"Yikes\");\n }\n }",
"@Override\n\tprotected void onDraw(Canvas canvas)\n\t{\n\t\tdrawMap(canvas);\n\t\t\n\t\t screenwidth= context.getResources().getDisplayMetrics().widthPixels;\n\t\t screenheight= context.getResources().getDisplayMetrics().heightPixels;\n//\t\t\n//\t\tFMDBDatabaseAccess fdb = new FMDBDatabaseAccess(context);\n//\t\tsm = fdb.getSnagsXYvalue(this.getTag().toString());\n//\t\t//sm[0].setXValue(0.4);\n\t\t//sm[0].setYValue(0.5);\n\t\t if(sm==null)\n\t\t {\n\t\t\t sm=getSnag();\n\t\t }\n\t\tif(isFirst)\n\t\t{\n\t\t\tisFirst=false;\n\t\t\ttry{\n\t\t\tfor(int i=0;i<sm.length;i++)\n\t\t\t{\n\t\t\t paint.setStrokeWidth(30);\n\t\t\t //String str=\"\"+(sm[i].getXValue()*screenwidth);\n\t\t\t x = sm[i].getXValue()*screenwidth;\n\t\t\t //str=\"\"+(sm[i].getYValue()*screenheight);\n\t\t\t y = sm[i].getYValue()*screenheight;\n\t\t\t paint.setColor(Color.RED);\n\t\t\t if(x!=0.0f && y!=0.0f)\n\t\t\t {\n\t\t\t\t // canvas.drawRect(x+7.5f, y+7.5f, x-7.5f, y-7.5f,paint);\n\t\t\t\t // canvas.drawRect(x+7.5f, y+7.5f, x-7.5f, y-7.5f,paint);\n\t\t\t\t SnagImageMapping objmap=(SnagImageMapping) context;\n//\t\t\t\t \n\t\t\t\t mapLayout =(RelativeLayout)(objmap).findViewById(R.id.plot_image_layout);\n\t\t\t\t ImageView mapImage = new ImageView(context);\n//\t\t\t\t \n\t\t\t float value;\n\t\t\t\t if(getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE)\n\t\t\t\t {\n\t\t\t\t\t value=screenheight*0.078125f;\n\t\t\t }\n\t\t\t\t else\n \t\t\t {\n\t\t\t\t\t value=screenheight*0.052083332f;\n \t\t\t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t float imght=value;\n\t\t\t\t float imgwdth=imght;\n\t\t\t\t RelativeLayout.LayoutParams par=new RelativeLayout.LayoutParams((int)imgwdth,(int)imght);\n\t\t\t\t par.leftMargin=(int)(x-(value/2));\n\t\t\t\t par.topMargin=(int)(y-(value/2));\n\t\t\t\t if(sm[i].getSnagStatus().equalsIgnoreCase(\"pending\"))\n\t\t\t\t {\n\t\t\t\t\t mapImage.setBackgroundResource(R.drawable.plot_yellow);\n\t\t\t\t }\n\t\t\t\t else if(sm[i].getSnagStatus().equalsIgnoreCase(\"reinspected & unresolved\"))\n\t\t\t\t {\n\t\t\t\t\t mapImage.setBackgroundResource(R.drawable.plot_red);\n\t\t\t\t }\n\t\t\t\t else if(sm[i].getSnagStatus().equalsIgnoreCase(\"resolved\"))\n\t\t\t\t {\n\t\t\t\t\t mapImage.setBackgroundResource(R.drawable.plot_green);\n\t\t\t\t }\n\t\t\t\t// R.drawable.pl\n\t\t\t\t mapImage.setId(i);\n\t\t\t\t // mapImage.setTag();\n\t\t\t\t mapImage.setOnClickListener(new OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t\n\t\t\t\t\t\tint id=v.getId();\n\t\t\t\t\t\tfloat setX,setY;\n\t\t\t\t\t\t String str2=\"\"+(sm[id].getXValue()*screenwidth);\n\t\t\t\t\t\t setX = Float.parseFloat(str2);\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t\t str2=\"\"+(sm[id].getYValue()*screenheight);\n\t\t\t\t\t\t setY = Float.parseFloat(str2);\n\t\t\t\t\t\t//Toast.makeText(getContext(), \"By image click\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t//Log.d(\"x y\",\"\"+setX+\" \"+setY);\n\t\t\t\t\t\t//Button img=new Button(context);\n\t\t\t\t\t\t//img.setBackgroundResource(R.drawable.back_blue_button);\n\t\t\t\t\t\t//img.setText(\"from\"+\"\"+sm[id].getID());\n//\t\t\t\t\t\t RelativeLayout.LayoutParams par2=new RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT,android.widget.RelativeLayout.LayoutParams.WRAP_CONTENT);\n//\t\t\t\t\t\t par2.leftMargin=(int)(setX);\n//\t\t\t\t\t\t par2.topMargin=(int)(setY);\n//\t\t\t\t\t\t popMsg.setLayoutParams(par2);\n//\t\t\t\t\t\t popMsg.setText(\"from\"+\"\"+sm[id].getID());\n//\t\t\t\t\t\t //popMsg.setText(\"from sfsf dfdfsfd dfdsf df dfdfdf d fdfedfd dfdfdf dfdf df dfdfd \");\n//\t\t\t\t\t\t popMsg.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t//RelativeLayout.LayoutParams par2=v.(RelativeLayout.LayoutParams)getTag();\n\t\t\t\t\t\t // img.setLayoutParams(par2);\n\t\t\t\t\t\t // mapLayout.addView(img);\n\t\t\t\t\t\t String text=\"Project - \"+sm[id].getProjectName()+\"\\n\"+\"Building - \"+sm[id].getBuildingName()+\"\\n\"+\"Floor - \"+sm[id].getFloor()+\"\\n\"+\"Apartment - \"+sm[id].getApartment()+\"\\n\"+\"Area - \"+sm[id].getAptAreaName()+\"\\n\"+\"SnagType - \"+sm[id].getSnagType()+\"\\n\"+\"FaultType - \"+sm[id].getFaultType()+\"\\n\"+\"Status - \"+sm[id].getSnagStatus()+\"\\n\"+\"ReportDate - \"+sm[id].getReportDate()+\"\\n\"+\"SnagDetails - \"+sm[id].getSnagDetails()+\"\\n\"+\"PriorityLevel - \"+sm[id].getSnagPriority()+\"\\n\"+\"Cost - \"+sm[id].getCost()+\"\\n\"+\"CostTO - \"+sm[id].getCostTo()+\"\\n\"+\"AllocatedToName - \"+sm[id].getAllocatedToName()+\"\\n\"+\"InspectorName - \"+sm[id].getInspectorName()+\"\\n\"+\"ContractorName - \"+sm[id].getContractorName()+\"\\n\"+\"SubContractorName - \"+sm[id].getSubContractorName()+\"\\n\"+\"ContractorStatus - \"+sm[id].getContractorStatus();\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n//\t\t\t\t\t\t \n\t\t\t\t\t\t final int loc=id;\n\t\t\t\t\t\t new AlertDialog.Builder(context)\n\t\t\t\t \t .setTitle(\"Snag Detail\")\n\t\t\t\t \t .setMessage(\"\"+text)\n\t\t\t\t \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t \t public void onClick(DialogInterface dialog, int which) { \n\t\t\t\t \t \t//Toast.makeText(context,\"\"+0.052083332*screenwidth+\" \"+0.078125*screenheight,Toast.LENGTH_LONG).show();\n\t\t\t\t \t // continue with delete\n\t\t\t\t \t }\n\t\t\t\t \t })\n\t\t\t\t \t .show();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t \n\t\t\t\t mapImage.setLayoutParams(par);\n\t\t\t\t mapLayout.addView(mapImage);\n\t\t\t\t \n\t\t\t }\n\t\t\t if(touched)\n\t\t\t {\n\t\t\t// if((currentX>=(x-7.5f) && currentX<=(x+7.5f)) && ((currentY<=(y+7.5f)) && currentY>=( y-7.5f)))\n\t\t\t // {\n\t\t\t\t if((currentX>=(x-7.5f) && currentX<=(x+7.5f)) && ((currentY<=(y+7.5f)) && currentY>=( y-7.5f)))\n\t\t\t\t {\n\t\t\t\t\t \n\t\t\t\t\t // Toast.makeText(getContext(), \"Click\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t// Log.d(\"in the touch\",\"\");\n //\t\t\t String strID=sm[i].getID();\n //\t\t\t \t\tSnagImageMapping objmap=(SnagImageMapping) context;\n////\t\t\t\t \n//\t\t\t\t RelativeLayout mapLayout =(RelativeLayout)(objmap).findViewById(R.id.plot_image_layout);\n//\t\t\t\t ImageView mapImage = new ImageView(context);\n////\t\t\t\t \n//\t\t\t\t RelativeLayout.LayoutParams par=new RelativeLayout.LayoutParams(300,300);\n//\t\t\t\t mapImage.setBackgroundResource(R.drawable.plot_pink_gray);\n//\t\t\t\t par.setMargins((int)(x+7.5f), (int)(y+7.5f), (int)(x-7.5f), (int)(y-7.5f));\n//\t\t\t\t mapImage.setLayoutParams(par);\n//\t\t\t\t mapLayout.addView(mapImage);\n//\t\t\t\t Toast.makeText(getContext(), \"Green\",Toast.LENGTH_SHORT).show();\n\t\t\t\t \n\t\t\t }\n\t\t\t touched=false;\n\t\t\t }\n\t\t\t \n\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t}\t\n\t }\n\t\t\n\t}",
"public void displayShapefile(File file) throws Exception {\n FileDataStore store = FileDataStoreFinder.getDataStore(file);\n featureSource = store.getFeatureSource();\n setGeometry(); //definimos la geometria\n\n /*\n * Crea el jmapFrame y lo configura para mostrar el shapefile con estilo por defecto\n */\n MapContent map = new MapContent();\n map.setTitle(\"Ejemplo seleccion y dibujo\");\n Style style = createDefaultStyle();\n Layer layer = new FeatureLayer(featureSource, style);\n map.addLayer(layer);\n mapFrame = new JMapFrame(map);\n mapFrame.enableToolBar(true);\n mapFrame.enableStatusBar(true);\n \n \n /**\n * Agregamos los atributos necesarios para crear los botones que permita dibujar un punto en el mapa y otro para seleccionar la figura\n * geometrica mas cercana a donde el usuario haga click\n */\n JToolBar toolBarDibujo = mapFrame.getToolBar();\n JButton botonDibujo = new JButton(\"Draw\");\n toolBarDibujo.addSeparator();\n toolBarDibujo.add(botonDibujo);\n\n botonDibujo.addActionListener(e -> mapFrame.getMapPane().setCursorTool(new CursorTool() { //accion al seleccionar el boton \"draw\"\n @Override\n public void onMouseClicked(MapMouseEvent ev) {\n \tint respuesta= JOptionPane.showConfirmDialog(null, \"¿Desea guardar este punto?\", \"Confirmar\",JOptionPane.YES_NO_OPTION);\n \tif(respuesta==0) {\n \t\tString texto=JOptionPane.showInputDialog(null, \"Nombre del lugar\");\n \t\tDirectPosition2D p = ev.getWorldPos();\n System.out.println(p.getX() + \" -- \" + p.getY());\n drawMyPoint(p.getX(), p.getY(), map, texto);\n \t}\n \telse{\n \t\tSystem.out.println(\"Punto no guardado\");\n \t}\n \n }\n })); \n\n JToolBar toolBar = mapFrame.getToolBar();\n JButton btn = new JButton(\"Select\"); //el boton que agregamos\n toolBar.addSeparator();\n toolBar.add(btn);\n\n\n btn.addActionListener(e ->mapFrame.getMapPane().setCursorTool(new CursorTool() {@Override //accion al seleccionar el boton \"select\"\n public void onMouseClicked(MapMouseEvent ev) {\n selectFeatures(ev);\n }\n }));\n\n \n mapFrame.setSize(600, 600);\n mapFrame.setVisible(true);\n}",
"public static void printAvailableMaps() {\n \tFile folder = new File(\"./examples/\");\n \tFile[] listOfFiles = folder.listFiles();\n \tSystem.out.println(\"Available maps (choose one and start game with command 'game map_name' ) : \");\n\n \t for (int i = 0; i < listOfFiles.length; i++) {\n \t if (listOfFiles[i].isFile()) {\n \t System.out.println(\"\\t\"+listOfFiles[i].getName());\n \t } \n \t }\n }",
"private void loadTiles(String filename) {\n\t\ttry {\n\t\t\tScanner s;\n\n\t\t\tif (StealthGame.EXPORT)\n\t\t\t\ts = new Scanner(ResourceLoader.load(filename));\n\t\t\telse\n\t\t\t\ts = new Scanner(new File(filename));\n\n\t\t\tif (s.hasNextLine()) {\n\t\t\t\tname = s.nextLine();\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Room has no name\");\n\t\t\t}\n\t\t\txSize = s.nextInt();\n\t\t\tySize = s.nextInt();\n\t\t\ttiles = new Tile[xSize][ySize];\n\t\t\tint xPos = 0;\n\t\t\tint yPos = 0;\n\t\t\tint tileNum = 0;\n\n\t\t\t// List of doors to be given destinations\n\n\t\t\twhile (s.hasNext()) {\n\n\t\t\t\tif (s.hasNextInt()) {\n\t\t\t\t\tparseInt(s, xPos, yPos, tileNum);\n\n\t\t\t\t\txPos++;\n\t\t\t\t\ttileNum++;\n\n\t\t\t\t\tif (xPos >= xSize) {\n\t\t\t\t\t\txPos = 0;\n\t\t\t\t\t\tyPos++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Not a basic floor, door or wall\n\t\t\t\telse {\n\t\t\t\t\tString str = s.next();\n\t\t\t\t\tif (str.length() == 1) {\n\t\t\t\t\t\tparseChar(xPos, yPos, tileNum, str);\n\n\t\t\t\t\t\txPos++;\n\t\t\t\t\t\ttileNum++;\n\n\t\t\t\t\t\tif (xPos >= xSize) {\n\t\t\t\t\t\t\txPos = 0;\n\t\t\t\t\t\t\tyPos++;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (str.equals(\"door\")) {\n\t\t\t\t\t\t\tparseDoorDestination(s);\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\ts.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Room - Error loading file - IOException : \"\n\t\t\t\t\t+ e.getMessage());\n\t\t}\n\t}",
"private void readLandmarks() {\n landmarks.readBathrooms();\n landmarks.readCampsTSV();\n landmarks.readFavoritesTSV();\n System.out.println();\n }",
"public MapPanel(String map, Object[] toLoad) {\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(Color.white);\n\t\tthis.setPreferredSize(new Dimension(WIDTH, HEIGHT));\n\t\tthis.setSize(this.getPreferredSize());\n\t\tthis.setVisible(true);\n\t\tthis.setFocusable(true);\n\t\tthis.requestFocus();\n\t\ttheMap = new Map(map, 50);\n\t\ttheTrainer = new Trainer(theMap, toLoad);\n\n\t\tinBattle = false;\n\t}",
"public void allartongs() throws IOException{\r\n writefiles data=new writefiles(\"d:\\\\documents\\\\textfiles\\\\AllArtSongs.txt\",true);\r\n Map<String,String> ArrangerNamesLineMap=new HashMap<>();\r\n for(int songid:ArrangerLinesMap.keySet()){\r\n int arrangerid=ArrangerLinesMap.get(songid);\r\n ArrangersMap.get((songid));\r\n ArrangerNamesLineMap.put(test.getsongName(songid), ArrangersMap.get(arrangerid));\r\n }\r\n for(String songname:ArrangerNamesLineMap.keySet()){\r\n System.out.println(\"The artist is:\"+ArrangerNamesLineMap.get(songname)+\" The song is:\"+songname);\r\n data.writeToFile(\"The artist is:\"+ArrangerNamesLineMap.get(songname)+\" The song is:\"+songname);\r\n }\r\n System.out.println(ArrangerNamesLineMap.size());\r\n }",
"public void update_map(Player player) \n\t{\n\t\tfor (int i = 0; i < this.map.length; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.map[i].length;j++) \n\t\t\t{\n\t\t\t\tswitch (map[i][j]) \n\t\t\t\t{\n\t\t\t\tcase GRASS:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase PATH:\n\t\t\t\t\tthis.gc.drawImage(PATH_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase CROSS_ROADS:\n\t\t\t\t\tthis.gc.drawImage(PATH_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TA:\n\t\t\t\t\tthis.gc.drawImage(TA_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase RESEARCHER:\n\t\t\t\t\tthis.gc.drawImage(RESEARCHER_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase FIRST_YEAR:\n\t\t\t\t\tthis.gc.drawImage(FIRST_YEAR_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SECOND_YEAR:\n\t\t\t\t\tthis.gc.drawImage(SECOND_YEAR_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SCORE_AREA:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tFont titleFont = Font.font(\"arial\", FontWeight.EXTRA_BOLD, 25);\n\t\t\t this.gc.setFont(titleFont);\n\t\t\t\t\tString text = \"GPA: \" + player.getGPA();\n\t\t\t\t\tthis.gc.fillText(text, j*64, i*64);\n\t\t\t\t\tthis.gc.strokeText(text, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\tcase TUITION_AREA:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tFont title = Font.font(\"arial\", FontWeight.EXTRA_BOLD, 25);\n\t\t\t this.gc.setFont(title);\n\t\t\t\t\tString Tuition = \"Tuition: \" + (player.getTuition());\n\t\t\t\t\tthis.gc.fillText(Tuition, j*64, i*64);\n\t\t\t\t\tthis.gc.strokeText(Tuition, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String args[]) {\r\n\t PApplet.main(new String[] { \"--present\", \"cs422.test.GeoMap\" });\r\n\t }",
"private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }",
"public void draw() \n{\n background(250, 243, 225);\n timer(); //control timing of the program\n mapwd.draw(); //visualize weekday trajectory\n shadeTra(t1); \n mapwk.draw(); //visualize weekend trajectory\n shadeTra(t2); \n transport(); //draw the transport legend\n infoDisplay(); //display almost text information\n \n\n stroke(0);\n \n gweekend();\n gweekday();\n frame();\n graduation();\n piechart();\n \n stroke(0);\n arrow();\n \n saveFrame(\"Output1/traffic_######.tif\");\n}",
"private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }",
"public void init(CommandArgs args) {\n \t\tString name = args.get(\"overview-mapname\", \"osmmap\");\n \n \t\tImgChannel mdrChan;\n \t\ttry {\n \t\t\t// Create the .img file system/archive\n \t\t\tFileSystemParam params = new FileSystemParam();\n \t\t\tFileSystem fs = ImgFS.createFs(name + \"_mdr.img\", params);\n \t\t\ttoClose.push(fs);\n \n \t\t\t// Create the MDR file within the .img\n \t\t\tmdrChan = fs.create(name.toUpperCase(Locale.ENGLISH) + \".MDR\");\n \t\t\ttoClose.push(mdrChan);\n \t\t} catch (IOException e) {\n \t\t\tthrow new ExitException(\"Could not create global index file\");\n \t\t}\n \n \t\t// Set the options that we are using for the mdr.\n \t\tMdrConfig config = new MdrConfig();\n \t\tconfig.setHeaderLen(286);\n \t\tconfig.setWritable(true);\n \t\tconfig.setForDevice(false);\n \t\tconfig.setNumberOfMaps(args.get(\"number-of-files\", 0));\n \n \t\t// Wrap the MDR channel with the MDRFile object\n \t\tmdrFile = new MDRFile(mdrChan, config);\n \t\ttoClose.push(mdrFile);\n \t}",
"private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }",
"@Override\n\tpublic void drawMap(Map map) {\n\t\tSystem.out.println(\"Draw map\"+map.getClass().getName()+\"on SD Screen\");\n\t}",
"private void plotData(){\n List<Entry> entriesMedidas = new ArrayList<Entry>();\n try{\n // #1\n FileInputStream fis = getApplicationContext().openFileInput(fileName);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n\n // #2. Skips the name, birthdate and gender of the baby\n reader.readLine();\n reader.readLine();\n reader.readLine();\n\n // #3\n String line = reader.readLine();//First line with data\n\n while (line != null) {\n double[] datum = obtainSubstring(line, mag);\n entriesMedidas.add(new Entry((float) datum[0], (float) datum[1]));\n\n line = reader.readLine();\n }\n\n reader.close();\n isr.close();\n fis.close();\n\n }catch(IOException e){\n e.printStackTrace();\n }\n\n // #4\n LineDataSet lineaMedidas = new LineDataSet(entriesMedidas, this.name);\n lineaMedidas.setAxisDependency(YAxis.AxisDependency.LEFT);\n lineaMedidas.setColor(ColorTemplate.rgb(\"0A0A0A\"));\n lineaMedidas.setCircleColor(ColorTemplate.rgb(\"0A0A0A\"));\n todasMedidas.add(lineaMedidas);\n\n }",
"Map(String input) {\n row = 0;\n col = 0;\n\n String line;\n Scanner fin = null;\n try\n {\n fin = new Scanner(new File(input));\n }\n catch (FileNotFoundException x)\n {\n System.out.println(\"Error: \" + x);\n System.exit(0);\n }\n // Take first line and get mapLength and mapHeight. Initialize map array\n line = fin.nextLine();\n String[] temp = line.split(\" \");\n maxR = Integer.parseInt(temp[0].toString());\n maxC = Integer.parseInt(temp[1].toString());\n map = new String[maxR][maxC];\n\n for(int j = 0; j < maxR; j++) {\n line = fin.nextLine();\n for(int i = 0; i < maxC; i++){\n map[j][i] = (line.charAt(i)) + \"\";\n }\n }\n }",
"public void drawMap() {\r\n\t\tfor (int x = 0; x < map.dimensionsx; x++) {\r\n\t\t\tfor (int y = 0; y < map.dimensionsy; y++) {\r\n\t\t\t\tRectangle rect = new Rectangle(x * scalingFactor, y * scalingFactor, scalingFactor, scalingFactor);\r\n\t\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\t\tif (islandMap[x][y]) {\r\n\t\t\t\t\tImage isl = new Image(\"island.jpg\", 50, 50, true, true);\r\n\t\t\t\t\tislandIV = new ImageView(isl);\r\n\t\t\t\t\tislandIV.setX(x * scalingFactor);\r\n\t\t\t\t\tislandIV.setY(y * scalingFactor);\r\n\t\t\t\t\troot.getChildren().add(islandIV);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trect.setFill(Color.PALETURQUOISE);\r\n\t\t\t\t\troot.getChildren().add(rect);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void load() {\n\t\n\t\tdataTable = new HashMap();\n\t\t\n\t\tArrayList musicArrayList = null;\n\t\tStringTokenizer st = null;\n\n\t\tMusicRecording myRecording;\n\t\tString line = \"\";\n\n\t\tString artist, title;\n\t\tString category, imageName;\n\t\tint numberOfTracks;\n\t\tint basePrice;\n\t\tdouble price;\n\n\t\tTrack[] trackList;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tlog(\"Loading File: \" + FILE_NAME + \"...\");\n\t\t\tBufferedReader inputFromFile = new BufferedReader(new FileReader(FILE_NAME));\n\t\t\t\n\t\t\t// read until end-of-file\n\t\t\twhile ( (line = inputFromFile.readLine()) != null ) {\t\t\t\n\t\t\t\n\t\t\t\t// create a tokenizer for a comma delimited line\n\t\t\t\tst = new StringTokenizer(line, \",\");\n\t\t\n\t\t\t\t// Parse the info line to read following items formatted as\n\t\t\t\t// - the artist, title, category, imageName, number of tracks\n\t\t\t\t//\n\t\t\t\tartist = st.nextToken().trim();\n\t\t\t\ttitle = st.nextToken().trim();\n\t\t\t\tcategory = st.nextToken().trim();\n\t\t\t\timageName = st.nextToken().trim();\n\t\t\t\tnumberOfTracks = Integer.parseInt(st.nextToken().trim());\n\t\t\t\t\t\t\n\t\t\t\t// read all of the tracks in\n\t\t\t\ttrackList = readTracks(inputFromFile, numberOfTracks);\n\n\t\t\t\t// select a random price between 9.99 and 15.99\n\t\t\t\tbasePrice = 9 + (int) (Math.random() * 7);\n\t\t\t\tprice = basePrice + .99;\n\n\t\t\t\t// create the music recording\n\t\t\t\tmyRecording = new MusicRecording(artist, trackList, title, \n\t\t\t\t\t\t\t\t\t\t\t\t price, category, imageName);\n\n\t\t\t\t// check to see if we have information on this category\n\t\t\t\tif (dataTable.containsKey(category)) {\n\t\t\t\t\n\t\t\t\t\t// get the list of recordings for this category\n\t\t\t\t\tmusicArrayList = (ArrayList) dataTable.get(category); \t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\n\t\t\t\t\t// this is a new category. simply add the category\n\t\t\t\t\t// to our dataTable\n\t\t\t\t\tmusicArrayList = new ArrayList();\n\t\t\t\t\tdataTable.put(category, musicArrayList);\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// add the recording\n\t\t\t\tmusicArrayList.add(myRecording);\n\t\t\t\t\n\t\t\t\t// move ahead and consume the line separator\n\t\t\t\tline = inputFromFile.readLine();\n\t\t\t}\n\n\t\t\tinputFromFile.close();\n\t\t\tlog(\"File loaded successfully!\");\n\t\t\tlog(\"READY!\\n\");\n\n\t\t}\n\t\tcatch (FileNotFoundException exc) {\n\t\t\tlog(\"Could not find the file \\\"\" + FILE_NAME + \"\\\".\");\n\t\t\tlog(\"Make sure it is in the current directory.\");\n\t\t\tlog(\"========>>> PLEASE CONTACT THE INSTRUCTOR.\\n\\n\\n\");\n\t\t\tlog(exc);\n\t\t\t\n\t\t}\n\t\tcatch (IOException exc) {\n\t\t\tlog(\"IO error occurred while reading file: \" + FILE_NAME);\n\t\t\tlog(\"========>>> PLEASE CONTACT THE INSTRUCTOR.\\n\\n\\n\");\n\t\t\tlog(exc);\n\n\t\t}\n\t\n\t}",
"public void loadingSequence(String filepath) {\n\t\tif(checkInputOk()) {\n\t\t\tload(songFromInput(), filepath);\n\t\t\tnew HomogeneousFileHandler().saveAs(\"songlist.list\", songList);\n\t\t} else {\n\t\t\tuploadPanel.setResponse(\"Fields cannot be empty\", false);\t \n\t\t}\n\t}",
"TiledMap loadMap(String path);",
"public Begin(Map<String, String> data) throws NullPointerException, IOException{\n String filename = data.get(FileName.INPUT.getValue());\n outputData = Files.readAllBytes(Paths.get(filename));\n }",
"private void drawMap(final Graphics2D theGraphics) {\n for (int y = 0; y < myGrid.length; y++) {\n final int topy = y * SQUARE_SIZE;\n\n for (int x = 0; x < myGrid[y].length; x++) {\n final int leftx = x * SQUARE_SIZE;\n\n switch (myGrid[y][x]) {\n case STREET:\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n drawStreetLines(theGraphics, x, y);\n break;\n\n case WALL:\n theGraphics.setPaint(Color.BLACK);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n\n case TRAIL:\n theGraphics.setPaint(Color.YELLOW.darker().darker());\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n\n case LIGHT:\n // draw a circle of appropriate color\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n theGraphics.setPaint(myLightColor);\n theGraphics.fillOval(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n \n case CROSSWALK:\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n \n drawCrossWalkLines(theGraphics, x, y);\n \n // draw a small circle of appropriate color centered in the square\n theGraphics.setPaint(myLightColor);\n theGraphics.fillOval(leftx + (int) (SQUARE_SIZE * CROSSWALK_SCALE),\n topy + (int) (SQUARE_SIZE * CROSSWALK_SCALE),\n SQUARE_SIZE / 2, SQUARE_SIZE / 2);\n break;\n\n default:\n }\n\n drawDebugInfo(theGraphics, x, y);\n }\n }\n }",
"public void loadGame(File fileLocation, boolean replay);",
"public void loadMapTiles(String[] paths) throws FileNotFoundException {\n\t\tthis.paths=paths;\n\t\tfor (int i = 0; i < tileMap.length; i++) {\n\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\n\t\t\t\tif (tileMap[i][j] < 0) {\n\t\t\t\t\ttiles[i][j] = null;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tTile tile = new Tile();\n\t\t\t\ttile.getPosition().setX(j*tileDimensions.getX());\n\t\t\t\ttile.getPosition().setY(i*tileDimensions.getY());\n\t\t\t\ttile.getDimensions().setX(tileDimensions.getX());\n\t\t\t\ttile.getDimensions().setY(tileDimensions.getY());\n\t\t\t\tFileInputStream fin = new FileInputStream(paths[tileMap[i][j]]);\n\t\t\t\tImage img = new Image(fin, tileDimensions.getX(), tileDimensions.getY(), false, false);\n\t\t\t\tSprite sprite = new Sprite(img);\n\t\t\t\ttile.setSprite(sprite);\n\t\t\t\ttiles[i][j] = tile;\n\t\t\t}\n\t\t}\n\t}",
"protected void readCSVToMap(String filename) throws Exception{ // IMPORTANT FUNCTION\n db = new HashMap<String, List<String>>();\n keys = new ArrayList<String>();\n InputStream is = getAssets().open(\"ABBREV_2.txt\");\n //File f = new File(path.toURI());\n //File f = new File(path.getFile());\n BufferedReader in = new BufferedReader(new InputStreamReader(is));//new BufferedReader(new FileReader(\"ABBREV_2.txt\"));\n String line = \"\";\n while ((line = in.readLine()) != null) {\n String parts[] = line.split(\"\\t\");\n List<String> nutrition = new ArrayList();\n for (int i = 1; i < parts.length; i++){\n nutrition.add(parts[i]);\n }\n db.put(parts[0], nutrition);\n keys.add(parts[0]);\n }\n in.close();\n\n }",
"public GameFrame(String title, int difficulty, String mapFileName) {\n super(title);\n setResizable(false);\n setSize(GAME_WIDTH, GAME_HEIGHT);\n this.difficulty = difficulty;\n mapObject = new Map(mapFileName, this);\n lastRender = -1;\n fpsHistory = new ArrayList<>(100);\n\n try {\n plantImage = ImageIO.read(new File(\"src/pictures/plant.png\"));\n gameOverImage = ImageIO.read(new File(\"src/pictures/gameOver.png\"));\n gameWonImage = ImageIO.read(new File(\"src/pictures/youWin.png\"));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"private void addArchitectureMarkers() {\n try {\n // Get the text file\n InputStream file = getResources().openRawResource(R.raw.architecture);\n\n // Read the file to get contents\n BufferedReader reader = new BufferedReader(new InputStreamReader(file));\n String line;\n\n // Read every line of the file one line at a time\n while ((line = reader.readLine()) != null) {\n String[] architecture = line.split(\";\", 6);\n\n String architectureName = architecture[0];\n String placeID = architecture[1];\n String architectureDate = architecture[2];\n String architectureInfo = architecture[3];\n String architectureStyle = architecture[4];\n String architect = architecture[5];\n\n // Initialize Places.\n Places.initialize(getApplicationContext(), getString(R.string.google_directions_key));\n // Create a new Places client instance.\n PlacesClient placesClient = Places.createClient(this);\n // Specify the fields to return.\n List<Place.Field> placeFields = Arrays.asList(Place.Field.NAME, Place.Field.LAT_LNG,\n Place.Field.PHOTO_METADATAS);\n // Construct a request object, passing the place ID and fields array.\n FetchPlaceRequest request = FetchPlaceRequest.builder(placeID, placeFields).build();\n\n placesClient.fetchPlace(request).addOnSuccessListener((response) -> {\n Place place = response.getPlace();\n Log.i(\"TAG\", \"Place found: \" + place.getName());\n LatLng latlng = place.getLatLng();\n\n //Get the photo metadata.\n if (place.getPhotoMetadatas() == null) {\n Log.i(\"mylog\", \"no photo\");\n } else {\n //choose better default pictures for these buildings\n PhotoMetadata photoMetadata = place.getPhotoMetadatas().get(0);\n if (place.getName().equals(\"The Cube\")) {\n photoMetadata = place.getPhotoMetadatas().get(2);\n }\n if (place.getName().equals(\"Millennium Point Car Park\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"School of Art\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"Saint Martin in the Bull Ring\")) {\n photoMetadata = place.getPhotoMetadatas().get(2);\n }\n if (place.getName().equals(\"Bullring & Grand Central\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"Mailbox Birmingham\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"The International Convention Centre\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n if (place.getName().equals(\"Birmingham Museum & Art Gallery\")) {\n photoMetadata = place.getPhotoMetadatas().get(1);\n }\n // Create a FetchPhotoRequest.\n FetchPhotoRequest photoRequest = FetchPhotoRequest.builder(photoMetadata)\n .setMaxWidth(200)\n .setMaxHeight(200)\n .build();\n\n placesClient.fetchPhoto(photoRequest).addOnSuccessListener((fetchPhotoResponse) -> {\n Bitmap bitmap = fetchPhotoResponse.getBitmap();\n // Add border to image\n Bitmap bitmapWithBorder = Bitmap.createBitmap(bitmap.getWidth() + 12, bitmap.getHeight()\n + 12, bitmap.getConfig());\n Canvas canvas = new Canvas(bitmapWithBorder);\n canvas.drawColor(Color.rgb(255, 128, 128));\n canvas.drawBitmap(bitmap, 6, 6, null);\n //Add marker onto map\n Marker marker = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(latlng.latitude, latlng.longitude))\n .title(architectureName)\n .icon(BitmapDescriptorFactory.fromBitmap(bitmapWithBorder)));\n marker.setTag(placeID);\n String url = getUrl(currentPosition, marker.getPosition(), \"walking\");\n new FetchURL(MapsActivity.this).execute(url, \"walking\");\n //Store marker info\n markersList.add(marker);\n markerHashmap.put(marker.getTitle(), bitmap);\n architectureDateHashmap.put(marker.getTitle(), architectureDate);\n architectureInfoHashmap.put(marker.getTitle(), architectureInfo);\n architectureStyleHashmap.put(marker.getTitle(), architectureStyle);\n architectHashmap.put(marker.getTitle(), architect);\n if (markersList.size() == 34) {\n //Set camera position once all markers loaded in\n setCameraPosition(mMap, markersList);\n }\n }).addOnFailureListener((exception) -> {\n if (exception instanceof ApiException) {\n ApiException apiException = (ApiException) exception;\n int statusCode = apiException.getStatusCode();\n // Handle error with given status code.\n Log.e(TAG, \"Photo not found: \" + exception.getMessage());\n }\n });\n }\n }).addOnFailureListener((exception) -> {\n if (exception instanceof ApiException) {\n ApiException apiException = (ApiException) exception;\n int statusCode = apiException.getStatusCode();\n // Handle error with given status code.\n Log.e(\"TAG\", \"Place not found: \" + placeID + exception.getMessage());\n\n }\n });\n }\n reader.close();\n } catch (NullPointerException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void open() {\r\n\t\tFile f = getOpenFile(\"Map Files\", \"tilemap\");\r\n\t\tif (f == null) return;\r\n\t\tfile = f;\r\n\t\tframe.setTitle(\"Tile Mapper - \"+file.getName());\r\n\t\tSystem.out.println(\"Opening \"+file.getAbsolutePath());\r\n\r\n\t\ttry {\r\n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n\t\t\tInputStream is = this.getClass().getClassLoader().getResourceAsStream(\"tilemapper/Map.xsd\");\r\n\t\t\tfactory.setSchema(SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI).newSchema(new StreamSource(is)));\r\n\r\n\t\t\tDocument dom = factory.newDocumentBuilder().parse(file);\r\n\r\n\t\t\t// we have a valid document\r\n\t\t\t//printNode(dom, \"\");\r\n\t\t\tNode mapNode = null;\r\n\t\t\tNodeList nodes = dom.getChildNodes();\r\n\t\t\tfor (int i=0; i<nodes.getLength(); i++) {\r\n\t\t\t\tNode node = nodes.item(i);\r\n\t\t\t\tif (node.getNodeName() == \"Map\") mapNode = node;\r\n\t\t\t}\r\n\t\t\tif (mapNode == null) return;\r\n\t\t\tmapPanel.parseDOM((Element)mapNode);\r\n\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\tSystem.out.println(\"The underlying parser does not support the requested features.\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (FactoryConfigurationError e) {\r\n\t\t\tSystem.out.println(\"Error occurred obtaining Document Builder Factory.\");\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void loadFile()\n {\n\n FileDialog fd = null; //no value\n fd = new FileDialog(fd , \"Pick up a bubble file: \" , FileDialog.LOAD); //create popup menu \n fd.setVisible(true); // make visible manu\n String directory = fd.getDirectory(); // give the location of file\n String name = fd.getFile(); // give us what file is it\n String fullName = directory + name; //put together in one sting \n \n File rideNameFile = new File(fullName); //open new file with above directory and name\n \n Scanner nameReader = null;\n //when I try to pick up it read as scanner what I choose\n try\n {\n nameReader = new Scanner(rideNameFile);\n }\n catch (FileNotFoundException fnfe)//if dont find return this message below\n {\n return; // immedaitely exit from here\n }\n \n //if load button pressed, it remove all ride lines in the world\n if(load.getFound()){\n removeAllLines();\n } \n \n //read until is no more stings inside of file and until fullfill max rides\n while(nameReader.hasNextLine()&¤tRide<MAX_RIDES)\n {\n \n String rd= nameReader.nextLine();//hold and read string with name of ride\n RideLines nova =new RideLines(rd);\n rides[currentRide]=nova;\n \n //Create a RideLine with string given from file\n addObject(rides[currentRide++], 650, 20 + 40*currentRide);\n }\n \n //when is no more strings inside it close reader\n nameReader.close();\n }",
"public void printImageMap(){\n for(int counter = savedMap.length-1 ; counter != -1;counter--)\n System.out.println(Arrays.toString(savedMap[counter]));\n }",
"public static int[][] loadMap(String fileName) throws Exception{\n FileReader fr=new FileReader(fileName);\n int c;\n String str=\"\";\n List<String> strA=new ArrayList<>(); //list of lines\n //process out newlines from midline\n while((c=fr.read())!=-1){\n System.out.print((char)c); //show map\n if(!(((char)c=='\\n') || ((char)c=='\\r'))){str=str+(char)c;}\n else if(((char)c=='\\n' || (char)c=='\\r')){\n if(strA.size()<1) {strA.add(str);str=\"\";}\n else if(strA.size()>0 && strA.get(0).length()>str.length()){} //newline char found midline\n else {strA.add(str);str=\"\";}\n }\n else System.out.println(\"Err: \"+(char)c);\n }\n strA.add(str);\n System.out.println(\"\\nWidth: \"+str.length()+\"\\nHeight: \"+strA.size());\n //now that size is known, fill info array\n int[][] map=fillMap(strA);\n \n return map;\n }",
"void doOpenRecent(String fileName) {\r\n\t\tif (saveSettings == null) {\r\n\t\t\tsaveSettings = new MapSaveSettings();\r\n\t\t\tsaveSettings.buildings = true;\r\n\t\t\tsaveSettings.surface = true;\r\n\t\t}\r\n\t\tsaveSettings.fileName = new File(fileName);\r\n\t\tdoLoad();\r\n\t}",
"private void createMap(File inFile)\r\n\t\tthrows Exception\r\n\t{\n\t\tBufferedReader in = new BufferedReader(new FileReader(inFile));\r\n\r\n\t\t// Chromosomes\r\n\t\tString[] chrms = in.readLine().split(\",\");\r\n\t\t// Marker positions\r\n\t\tString[] mrkrs = in.readLine().split(\",\");\r\n\t\tin.close();\r\n\r\n\r\n\t\t// Now rewrite it in Flapjack map format\r\n\t\tBufferedWriter out = new BufferedWriter(new FileWriter(new File(wrkDir, \"map\")));\r\n\t\tout.write(\"# fjFile = MAP\");\r\n\t\tout.newLine();\r\n\r\n\t\tfor (int i = 0; i < chrms.length; i++)\r\n\t\t{\r\n\t\t\tMarker m = new Marker(i, chrms[i], mrkrs[i]);\r\n\t\t\tmarkers.add(m);\r\n\r\n\t\t\tout.write(m.name + \"\\t\" + m.chr + \"\\t\" + m.pos);\r\n\t\t\tout.newLine();\r\n\t\t}\r\n\t\tout.close();\r\n\r\n\t\tmarkers.stream().forEach(marker -> {\r\n\r\n\t\t\tSystem.out.println(marker.name);\r\n\r\n\t\t});\r\n\t}",
"public DrawDataParser(String dataFilename, DrawList drawList, JLabel progress)\n {\n objectList = new ArrayList<>();\n\n this.dataFilename = dataFilename;\n this.progress = progress;\n\n this.drawList = drawList;\n drawList.getDrawInstructorList().clear();\n }",
"public void load(){\n\t\t\tArrayList<String> entries = readEntriesFromFile(FILENAME);\n\t\t\t\n\t\t\tfor(int i = 1; i < entries.size(); i++){\n\t\t\t\tString entry = entries.get(i);\n\t\t\t\tString[] entryParts = entry.split(\",\");\n\t\t\t\tString name = entryParts[0];\n\t\t\t\tString power = entryParts[1];\n\t\t\t\tString gold = entryParts[2];\n\t\t\t\tString xp = entryParts[3];\n\t\t\t\tString location = entryParts[4];\n\t\t\t\tint powerInt = Integer.parseInt(power);\n\t\t\t\tint goldInt = Integer.parseInt(gold);\n\t\t\t\tint XPInt = Integer.parseInt(xp);\n\t\t\t\tRegion regionR = RM.getRegion(location);\n\t\t\t\tTrap trap = new Trap(name, powerInt, goldInt, XPInt, regionR);\n\t\t\t\ttrapList[i-1] = trap;\n\t\t\t}\n\t}",
"public static void main(String[] args) {\n\n String dict = \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/dictionary-yawl.txt\";\n String[] boardPaths = new String[]{\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points0.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points1.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points100.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points1000.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points1111.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points1250.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points13464.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points1500.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points2.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points200.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points2000.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points26539.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points3.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points300.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points4.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points400.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points4410.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points4527.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points4540.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points5.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points500.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points750.txt\",\n \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-points777.txt\",\n };\n // String dict = \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/dictionary-common.txt\";\n // String[] boardPaths = new String[]{\n // \"/Users/jpenna/Documents/princeton-algs/WKb4_tries/samples/board-random1.txt\",\n // };\n In in = new In(dict);\n String[] dictionary = in.readAllStrings();\n BoggleSolver solver = new BoggleSolver(dictionary);\n\n int[] scores = new int[boardPaths.length];\n int[] counts = new int[boardPaths.length];\n for (int i = 0; i < boardPaths.length; i++) {\n BoggleBoard board = new BoggleBoard(boardPaths[i]);\n for (String word : solver.getAllValidWords(board)) {\n counts[i]++;\n StdOut.print(word + \", \");\n scores[i] += solver.scoreOf(word);\n }\n StdOut.println(\"\\n************************\\n\");\n }\n\n for (int i = 0; i < boardPaths.length; i++) {\n StdOut.println(boardPaths[i]);\n StdOut.println(\"Count: \" + counts[i]);\n StdOut.println(\"Score = \" + scores[i]);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n float zoomLevel = 7.0f;\n\n // Add a markers of every destination and move the camera\n Bundle b = this.getIntent().getExtras();\n String[] records = b.getStringArray(\"Records\");\n\n double lat;\n double lon;\n\n int index = 1;\n\n for(int r = 0; r < records.length; r++){\n\n if(index == records.length - 7){\n lat = Double.parseDouble(records[records.length - 4]);\n lon = Double.parseDouble(records[records.length - 3]);\n LatLng dest = new LatLng(lat, lon);\n mMap.addMarker(new MarkerOptions().position(dest).title(records[index])).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(dest, zoomLevel));\n break;\n }\n\n lat = Double.parseDouble(records[index+3]);\n lon = Double.parseDouble(records[index+4]);\n\n LatLng dest = new LatLng(lat, lon);\n mMap.addMarker(new MarkerOptions().position(dest).title(records[index])).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(dest, zoomLevel));\n index+=8;\n }\n\n\n /*\n // Царевец\n LatLng carevec = new LatLng(43.084030f, 25.652586f);\n mMap.addMarker(new MarkerOptions().position(carevec).title(\"Царевец\")).showInfoWindow();\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(carevec, zoomLevel));\n\n // Чудни мостове\n LatLng chydniMostove = new LatLng(41.819929f, 24.581748f);\n mMap.addMarker(new MarkerOptions().position(chydniMostove).title(\"„Чудните Мостове“\")).showInfoWindow();\n\n // Ягодинска Пещера\n LatLng yagodinskaPeshtera = new LatLng(41.628984f, 24.329589f);\n mMap.addMarker(new MarkerOptions().position(yagodinskaPeshtera).title(\"Ягодинска Пещера\")).showInfoWindow();\n\n // Връх Снежанка\n LatLng vruhSnejanka = new LatLng(41.638506f, 24.675594f);\n mMap.addMarker(new MarkerOptions().position(vruhSnejanka).title(\"Връх Снежанка\")).showInfoWindow();\n\n // Белоградчишки скали\n LatLng belogradchiskiSkali = new LatLng(43.623361f, 22.677964f);\n mMap.addMarker(new MarkerOptions().position(belogradchiskiSkali).title(\"Белоградчишки Скали\")).showInfoWindow();\n\n // Пещера „Леденика“\n LatLng peshteraLedenika = new LatLng(43.204703f, 23.493687f);\n mMap.addMarker(new MarkerOptions().position(peshteraLedenika).title(\"Пещера „Леденика“\")).showInfoWindow();\n\n // Паметник На Христо Ботев И Неговата Чета\n LatLng pametneikHristoBotev = new LatLng(43.798045f, 23.677926f);\n mMap.addMarker(new MarkerOptions().position(pametneikHristoBotev).title(\"Паметник На Христо Ботев И Неговата Чета\")).showInfoWindow();\n\n // Национален Музей \"Параход Радецки\"\n LatLng myzeiParahodRadecki = new LatLng(43.799125f, 23.676921f);\n mMap.addMarker(new MarkerOptions().position(myzeiParahodRadecki).title(\"Национален Музей 'Параход Радецки'\")).showInfoWindow();\n\n // Археологически Резерват „Калиакра”\n LatLng rezervatKaliakra = new LatLng(43.361190f, 28.465788f);\n mMap.addMarker(new MarkerOptions().position(rezervatKaliakra).title(\"Археологически Резерват „Калиакра”\")).showInfoWindow();\n\n // Перперикон\n LatLng perperikon = new LatLng(41.718126f, 25.468954f);\n mMap.addMarker(new MarkerOptions().position(perperikon).title(\"Перперикон\")).showInfoWindow();\n\n // Вр. Мусала (2925 М.) - Рила\n LatLng vruhMysala = new LatLng(42.180021f, 23.585167f);\n mMap.addMarker(new MarkerOptions().position(vruhMysala).title(\"Вр. Мусала (2925 М.) - Рила\")).showInfoWindow();\n\n // Връх Шипка – Национален Парк-Музей „Шипка“ - Паметник На Свободата\n LatLng vruhShipka = new LatLng(42.748281f, 25.321387f);\n mMap.addMarker(new MarkerOptions().position(vruhShipka).title(\"Връх Шипка – Национален Парк-Музей „Шипка“ - Паметник На Свободата\")).showInfoWindow();\n\n // Пещера – Пещера „Снежанка“ (Дължина: 145 М)\n LatLng peshteraSnejanka = new LatLng(42.004459f, 24.278645f);\n mMap.addMarker(new MarkerOptions().position(peshteraSnejanka).title(\"Пещера – Пещера „Снежанка“ (Дължина: 145 М)\")).showInfoWindow();\n\n // Античен Театър\n LatLng antichenTeatur = new LatLng(42.147109f, 24.751005f);\n mMap.addMarker(new MarkerOptions().position(antichenTeatur).title(\"Античен Театър\")).showInfoWindow();\n\n // Асенова Крепост\n LatLng asenovaKrepost = new LatLng(41.987020f, 24.873552f);\n mMap.addMarker(new MarkerOptions().position(asenovaKrepost).title(\"Асенова Крепост\")).showInfoWindow();\n\n // Бачковски Манастир\n LatLng bachkovskiManastir = new LatLng(41.942380f, 24.849340f);\n mMap.addMarker(new MarkerOptions().position(bachkovskiManastir).title(\"Бачковски Манастир\")).showInfoWindow();\n\n // Резерват „Сребърна“\n LatLng rezervatSreburna = new LatLng(44.115654f, 27.071807f);\n mMap.addMarker(new MarkerOptions().position(rezervatSreburna).title(\"Резерват „Сребърна“\")).showInfoWindow();\n\n // Мадарски Конник\n LatLng madarskiKonnik = new LatLng(43.277708f, 27.118949f);\n mMap.addMarker(new MarkerOptions().position(madarskiKonnik).title(\"Мадарски Конник\")).showInfoWindow();\n\n // Седемте Рилски езера\n LatLng sedemteRilskiEzera = new LatLng(42.203413f, 23.319871f);\n mMap.addMarker(new MarkerOptions().position(sedemteRilskiEzera).title(\"Седемте Рилски езера\")).showInfoWindow();\n\n //Храм-Паметник „Александър Невски“\n LatLng aleksandurNevski = new LatLng(42.696000f, 23.332879f);\n mMap.addMarker(new MarkerOptions().position(aleksandurNevski).title(\"Храм-Паметник „Александър Невски“\")).showInfoWindow();\n */\n\n }",
"private void setup()\r\n {\r\n \r\n char[][] examplemap = {\r\n { 'e','w','e','e','e','e','e','e','e','e' },\r\n { 'e','w','e','w','w','w','w','e','w','w' },\r\n { 'e','w','e','w','e','w','w','e','w','e' },\r\n { 'e','e','e','w','e','w','e','e','w','e' },\r\n { 'e','w','e','e','e','w','e','e','w','e' },\r\n { 'e','w','w','w','e','w','e','w','w','e' },\r\n { 'e','e','e','e','e','e','e','w','e','e' },\r\n { 'e','w','w','e','w','e','w','w','w','e' },\r\n { 'e','e','w','e','e','w','w','e','e','e' },\r\n { 'e','e','w','e','e','e','e','e','e','w' }};\r\n for (int i=0; i<map.length; i++)\r\n {\r\n for (int n=0; n<map[i].length; n++)\r\n {\r\n if (examplemap[n][i] == 'e')\r\n map[i][n].setBackground(Color.white);\r\n else\r\n map[i][n].setBackground(Color.black);\r\n }\r\n }\r\n \r\n map[0][0].setBackground(Color.red);\r\n this.Playerpos[0]=0;\r\n this.Playerpos[1]=0;\r\n \r\n \r\n map[9][8].setBackground(Color.blue);\r\n this.Goalpos[0]=9;\r\n this.Goalpos[1]=8;\r\n \r\n \r\n \r\n \r\n }",
"public void createMap() {\n\t\tArrayList<String>boardMap = new ArrayList<String>(); //boardmap on tiedostosta ladattu maailman malli\n\t\t\n\t\t//2. try catch blocki, ei jaksa laittaa metodeja heittämään poikkeuksia\n\t\ttry {\n\t\t\tboardMap = loadMap(); //ladataan data boardMap muuttujaan tiedostosta\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t// 3. j=rivit, i=merkit yksittäisellä rivillä\n\t\tfor(int j=0; j<boardMap.size();j++){ \t\t//..rivien lkm (boardMap.size) = alkioiden lkm. \n\t\t\tfor(int i=0; i<boardMap.get(j).length(); i++){\t\t//..merkkien lkm rivillä (alkion Stringin pituus .length)\n\t\t\t\tCharacter hexType = boardMap.get(j).charAt(i);\t//tuodaan tietyltä riviltä, yksittäinen MERKKI hexType -muuttujaan\n\t\t\t\tworld.add(new Hex(i, j, hexType.toString()));\t//Luodaan uusi HEXa maailmaan, Character -merkki muutetaan Stringiksi että Hex konstructori hyväksyy sen.\n\t\t\t}\n\t\t}\n\t\tconvertEmptyHex();\n\t}",
"public static Map loadMap(String MapFile){\n int Bottle =0;\n int Bottle1= 0;\n Map Object = new Map(0,0);\n \n try {\n \n Scanner scan = new Scanner(new File(MapFile));\n FileReader fr = new FileReader(MapFile);\n while(scan.hasNextLine()){\n if (scan.hasNextInt()){\n Bottle = scan.nextInt();\n Bottle1 = scan.nextInt();\n\n }\n Object = new Map(Bottle,Bottle1);\n }\n fr.close();\n }\n \n catch (Exception e){\n System.out.println(\"Sorry Nothing Found\");\n System.out.println(e.toString());\n e.printStackTrace(); \n } \n \n return Object;\n }",
"void readData(String fileName, boolean [] data, String wName){\n\t\tworld = new File(wName);\n\t\tDataProcessing dp = new DataProcessing(fileName, data);\n\t\tdp.findHotspots();\n\n\t\ttempVals = dp.hotspots;\n\t\t\t\n\t\t\t// create randomly permuted list of indices for traversal \n\t\t\tgenPermute(); \n\t\t\t\n\t\t\t// generate greyscale tempVals field image\n\t\t\tderiveImage();\n\n\t}",
"public void fileReadGameHistory(String filename)\n {\n \t//ArrayList<GameObject> gameObject = new ArrayList<>();\n\t\tFileReader file = null;\n\t\ttry {\n\t\t\tfile = new FileReader(filename);\n\t\t} catch (FileNotFoundException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(filename);\n\t\tBufferedReader br = new BufferedReader(file);\n\t\tString s = \"\";\n\t\ttry\n\t\t{\n\t\t\twhile((s = br.readLine()) != null )\n\t\t\t{\n\t\t\t\tString[] prop1 = s.split(\"#\");\n\t\t\t\tSystem.out.println(prop1[0] + \" fgdfsgfds \" + prop1[1]);\n\t\t\t\tString indexOfList = prop1[0];\n\t\t\t\tString[] prop2 = prop1[1].split(\",\");\n\t\t\t\tString[] prop3;\n\t\t\t\tString[] prop4 = indexOfList.split(\";\");\n\t\t\t\t//gameObject.add(new GameObject(indexOfList));\n\t\t\t\tcount = count +1;\n\t\t\t\texistCount = existCount + 1;\n\t\t\t\tif (indexOfList.charAt(0) == 's')//when this line is data of a swimming game\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(prop4[0]);\n\t\t\t\t\tgames.add(new Swimming(prop4[1],\"Swimming\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'c')//when this line is data of a cycling game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Cycling(prop4[1],\"Cycling\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'r')//when this line is data of a running game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Running(prop4[1],\"Running\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"@Override\r\n\tpublic Level LoadLevel(InputStream LevelLoad) throws IOException {\r\n\t\tBufferedReader read = new BufferedReader(new InputStreamReader(LevelLoad));\r\n\t\tString line;\r\n\t\tint column = 0;\r\n\t\tint row = 0;\r\n\t\tArrayList<String> ans = new ArrayList<String>();\r\n\t\tString name = read.readLine();\r\n\t\twhile ((line = read.readLine()) != null) {\r\n\t\t\tif (line.length() > row) {\r\n\t\t\t\trow = line.length();\r\n\t\t\t}\r\n\t\t\tcolumn++;\r\n\t\t\tans.add(line);\r\n\r\n\t\t}\r\n\t\tLevel level = new Level(column, row);\r\n\t\tlevel.setName(name);\r\n\t\tcolumn = 0;\r\n\t\tfor (String resualt : ans) {\r\n\t\t\tfor (int i = 0; i < resualt.length(); i++) {\r\n\t\t\t\tswitch (resualt.charAt(i)) {\r\n\t\t\t\tcase ' ': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive(' ');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '#': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('#');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'A': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('A');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase '@': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('@');\r\n\t\t\t\t\tlevel.setMoveableMap(column, i, item);\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, new AbstractItems(new Position2D(column, i), ' '));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tcase 'o': {\r\n\t\t\t\t\tItem item = new AbstractItems(new Position2D(column, i));\r\n\t\t\t\t\titem.setReprestive('o');\r\n\t\t\t\t\tlevel.setUnmoveableMap(column, i, item);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tcolumn++;\r\n\t\t}\r\n\r\n\t\treturn level;\r\n\t}",
"public static void main(String[] args) {\n\tif (args.length == 0) {\n\t System.out.println(\"ERROR: Provide filename of elevation data as command line argment.\");\n\t System.exit(1);\n\t}\n\tString filename = args[0];\n\tTerrain terrain = new Terrain(filename);\n }",
"private static void populateDataStructures(\r\n final String filename,\r\n final Map<String, List<String>> sessionsFromCustomer,\r\n Map<String, List<View>> viewsFromSessions,\r\n Map<String, List<Buy>> buysFromSessions\r\n\r\n /* add parameters as needed */\r\n )\r\n throws FileNotFoundException\r\n {\r\n try (Scanner input = new Scanner(new File(filename)))\r\n {\r\n processFile(input, sessionsFromCustomer,\r\n viewsFromSessions, buysFromSessions\r\n /* add arguments as needed */ );\r\n }\r\n }",
"public PGMN_Precipitation(final String title) {\n super(title);\n try{\n // Open the file that is the first \n // command line parameter\n FileInputStream fstream = new FileInputStream(\"Y:\\\\PGMN\\\\Precipitation\\\\1.txt\");\n // Get the object of DataInputStream\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n //Read File Line By Line\n int i = 0;\n while ((strLine = br.readLine()) != null) {\n //System.out.println(strLine.length());\n if((strLine.length() < 45)||(strLine.length() > 46)){\n continue;\n }\n if(!strLine.contains(\"csv\")){\n continue;\n }\n \n String wellId = strLine.substring(39, strLine.length()-4);\n System.out.println(wellId);\n //Double depth = (Double)hm.get(wellId);\n String lang = \"EN\";\n final XYDataset dataset = createDataset(wellId, lang);\n final JFreeChart chart = createChart(dataset, wellId, lang);\n XYPlot xyplot = (XYPlot)chart.getPlot();\n XYLineAndShapeRenderer renderer = (XYLineAndShapeRenderer)xyplot.getRenderer();\n renderer.setSeriesPaint(0, Color.blue);\n try {\n ChartUtilities.saveChartAsPNG(new File(\"Y:\\\\PGMN\\\\Precipitation\\\\\" + lang + \"\\\\\" + wellId + \".png\"), chart, 400, 300);\n }\n catch (Exception e) {\n System.err.println(e.getMessage());\n }\n \n lang = \"FR\";\n final XYDataset dataset_fr = createDataset(wellId, lang);\n final JFreeChart chart_fr = createChart(dataset_fr, wellId, lang);\n XYPlot xyplot_fr = (XYPlot)chart_fr.getPlot();\n XYLineAndShapeRenderer renderer_fr = (XYLineAndShapeRenderer)xyplot_fr.getRenderer();\n renderer_fr.setSeriesPaint(0, Color.blue);\n try {\n ChartUtilities.saveChartAsPNG(new File(\"Y:\\\\PGMN\\\\Precipitation\\\\\" + lang + \"\\\\\" + wellId + \".png\"), chart_fr, 400, 300);\n }\n catch (Exception e) {\n System.err.println(e.getMessage());\n }\n i++;\n }\n //Close the input stream\n in.close();\n }catch (Exception e){//Catch exception if any\n System.err.println(\"Error: \" + e.getMessage());\n }\n }"
]
| [
"0.62735283",
"0.61406046",
"0.60586786",
"0.6007027",
"0.59069526",
"0.59030694",
"0.58453786",
"0.5804971",
"0.5797796",
"0.5766052",
"0.57549644",
"0.57418144",
"0.57293195",
"0.5683919",
"0.56502753",
"0.56272423",
"0.5594923",
"0.55887353",
"0.55884236",
"0.5583315",
"0.5569005",
"0.5555029",
"0.5538201",
"0.55365866",
"0.55260646",
"0.5522371",
"0.55108845",
"0.55098426",
"0.54989964",
"0.5497199",
"0.54831195",
"0.5470395",
"0.5452831",
"0.5446392",
"0.5443918",
"0.5442316",
"0.54388463",
"0.5421514",
"0.54125273",
"0.5412258",
"0.540456",
"0.5398847",
"0.5388042",
"0.5375941",
"0.53616655",
"0.53520095",
"0.5335847",
"0.53292406",
"0.5327325",
"0.5323986",
"0.5314781",
"0.53124344",
"0.530629",
"0.53003186",
"0.5289824",
"0.5281699",
"0.5276629",
"0.5259018",
"0.52558404",
"0.5250447",
"0.52467626",
"0.5237552",
"0.5218031",
"0.52179545",
"0.521577",
"0.5201606",
"0.5195482",
"0.51902246",
"0.5189206",
"0.5179326",
"0.51740885",
"0.5165018",
"0.5159751",
"0.51529896",
"0.5143227",
"0.513596",
"0.513259",
"0.5130897",
"0.51250184",
"0.51244146",
"0.5120696",
"0.51193684",
"0.51136255",
"0.5111355",
"0.5110142",
"0.51052755",
"0.5103375",
"0.5101936",
"0.5094118",
"0.50907296",
"0.5088648",
"0.5087729",
"0.50859046",
"0.5079767",
"0.5070616",
"0.5069763",
"0.5068311",
"0.5059932",
"0.50528675",
"0.5050794"
]
| 0.6597359 | 0 |
Action for 'NO' Button | public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}",
"public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;\n\t\t\t\tcurrent = current.getRight();\n\n\t\t\t\t// if current is not a leaf\n\t\t\t\tif (current != null) {\n\t\t\t\t\tquestion.setText(current.getData().toString());\n\t\t\t\t\tvalidate();\n\t\t\t\t}\n\n\t\t\t\t// Once you hit a leaf, set a final message\n\t\t\t\telse {\n\t\t\t\t\t// Call the function that creates an option panel\n\t\t\t\t\toptionPane();\n\n\t\t\t\t\t// Save changes user made\n\t\t\t\t\tCommutativeExpressionWriter.writeCommutativeExpr(\n\t\t\t\t\t\t\tcontroller.tree, \"food.xml\");\n\n\t\t\t\t\t// add a restart button that restores the game\n\t\t\t\t\trestartGame();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// add No button to right\n\t\tsouth.add(no, BorderLayout.EAST);\n\t\tvalidate();\n\t}",
"@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}",
"public void onNo();",
"public Button getNo() {\n return no;\n }",
"public void handleNoConfirmButtonAction(ActionEvent event) {\n confirmPane.setVisible(false);\n maskPane.setVisible(false);\n }",
"protected boolean hasNegativeButton() {\n return false;\n }",
"void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }",
"void btnCancel();",
"@FXML\n private void cancelButtonAction(ActionEvent event) {\n //Change cancel button to help button\n cancelButton.setVisible(false);\n cancelButton.setDisable(true);\n helpButton.setVisible(true);\n helpButton.setDisable(false);\n \n help = false;\n\n // enable the sliders and checkbox\n enableSliderBoxes();\n // remove help informations\n clearInfo();\n }",
"public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}",
"protected boolean hasPositiveButton() {\n return false;\n }",
"@Override\n\tpublic void onNoButtonForTwoButtonDialogClickedX() {\n\t\ttwoBtnDialogFragment.dismiss();\n\t}",
"@Override\n protected void negativeClick() {\n\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_HIDE_LABEL);\n jbNewOrderButton.setVisible(true);\n jbConfirm.setVisible(false);\n jbCancel.setVisible(false);\n }",
"public boolean hasNeutralButton(){\n return true;\n }",
"@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }",
"public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n //Toast.makeText(getApplicationContext(), \"you clicked NO\",\n // Toast.LENGTH_SHORT).show();\n }",
"private void onClickReset(ActionEvent e) {\n\n }",
"public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }",
"@FXML\n\tvoid disapproveActionButton(ActionEvent event) {\n\t\tdeleteRequest();\n\t\tUsefulMethods.instance().close(event);\n\t}",
"public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void disableOkButton() {\n okButton.setEnabled(false);\n }",
"void onCancelClicked();",
"@FXML private void okButtonActivity() {\n if (activeUser != null && !activeUser.getUsername().equals(recipe.getAuthor())){\n okButton.setDisable(false);\n }\n }",
"@Override\r\n\tpublic void novo(ActionEvent actionEvent) {\n\t\t\r\n\t}",
"public void handleYesConfirmButtonAction(ActionEvent event) {\n if (updateItemPane.isVisible()){\n deleteItem();\n this.clearUpdateItemFields();\n }\n else if(updateCopyPane.isVisible()){\n deleteCopy();\n this.clearUpdateCopyFields();\n }\n maskPane.setVisible(false);\n confirmPane.setVisible(false);\n }",
"public void hileraNoNulaAction(ActionEvent event){\r\n cadena+=\"+\";\r\n escribirHilera.setText(cadena);\r\n concatenar.setDisable(false);\r\n union.setDisable(false);\r\n abreParentesis.setDisable(true);\r\n hileraNula.setDisable(true);\r\n hileraNoNula.setDisable(true);\r\n finSecuencia.setDisable(true);\r\n }",
"public void clickYes ();",
"private void disableButtons()\r\n {\r\n }",
"public void buttonShowIncomplete(ActionEvent actionEvent) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void onNegativeButtonClicked(int requestCode) {\n\n\t}",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\n\t\t\t\tButton cancelbutton = (Button) findViewById(R.id.calc_clear_txt_Prise);\n\t\t\t\tcancelbutton.setVisibility(0);\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Toast.makeText(this, \"No\", Toast.LENGTH_LONG).show();\n\n }",
"public void handleSkipAction(ActionEvent event){\n sender.sendInput(\"skip action\");\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}",
"private void hideButton(){\n // Si onget Client\n if(numOnglet() == 0 ){\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }\n }\n }",
"public void onCancelClick()\r\n {\r\n\r\n }",
"private void cancelButtonActionPerformed(ActionEvent e) {\n }",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e)\n {\n if (yesRadio.isSelected())\n {\n parent.unlockNextButton();\n }\n else\n {\n parent.lockNextButton();\n }\n }",
"public String btn_cancel_delete_action()\n {\n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n return null;\n }",
"@Override\r\n\tpublic void actionPerformed(GuiButton button) {\r\n switch (button.id) {\r\n case 0:\r\n GuiYesNo confirmGui = new GuiYesNo(this, \"Delete Waypoints\", \"Are you sure you want to delete the selected waypoints?\", \"Yes\", \"No\", 0);\r\n confirmGui.setButtonDelay(5);\r\n this.mc.displayGuiScreen(confirmGui);\r\n break;\r\n }\r\n\t}",
"public void onDiscardClick(){\n if (mHomeChecked){ // at Home Checkmark\n NavUtils.navigateUpFromSameTask(EditSymptomActivity.this);\n }\n if (!mHomeChecked) { // at BackPressed\n finish();\n }\n }",
"public boolean buttonNemo(View v) { return (v.getId() == R.id.bestRated); }",
"public void onClickCancel()\n\t{\n\t\tsetVisible(false);\n\t\tdispose();\t\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tACTION_B_DISABLE(arg0);\r\n\t\t\t}",
"@Override\n public void onBtnClick() {\n Log.i(\"TAG\", \"onClick: 您已经取消了生成一个新的歌单\");\n dialog.dismiss();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(false);\n\t\t\t\t\n\t\t\t}",
"public void actionPerformed(ActionEvent e)\n\t{\n\t\tview.removeButton();\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n\t\tif (e.getSource() == button1) {\r\n\t\t\tcancel();\r\n\t\t}\r\n\t}",
"public static int yesNoCancelPop(String title, String message, String yesButton, String noButton, String cancelButton) {\n\t\t\t//Custom button text\n\t\t\tObject[] options = {yesButton, noButton, cancelButton};\n\t\t\tint n = JOptionPane.showOptionDialog(null, message, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,\n\t\t\t options,\n\t\t\t options[2]);\n\t\t\t\n\t\t\treturn n;\n\t\t}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"String disabledButton();",
"public void userClickedOnTable()\r\n {\r\n this.detailedStudentViewButton.setDisable(false);\r\n }",
"@Override\n\tpublic boolean onClick(Player player, int buttonID) {\n\t\treturn false;\n\t}",
"@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}",
"public void hideStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }",
"HasClickHandlers getCancelButton();",
"@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 }",
"@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}",
"@Override\n public void onBtnClick() {\n dialog.dismiss();\n getMusicID(\"cancel\");\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\teliminarNota();\n\t\t\t}",
"public Button getYes() {\n return yes;\n }",
"@FXML\n private void handleBtnNovoAction (ActionEvent event) { \n \n //passa um ModelCliente vazio para limpar os campos\n setModelProdutosBinds( new ModelClientes() );\n \n //Retira o bind do modelProdutos com esse ModelProduto vazio\n setModelProdutosBinds(null);\n \n //Comfiguração dos componentes da tela\n edtNome.requestFocus();\n \n //No próximo click o botao executa a ação \"Cancelar\"\n btnNovo.setOnAction((e) -> { handleBtnCancelarAction(e); });\n }",
"private void jButtonCancelActionPerformed(ActionEvent e)\n {\n \tsetVisible(false);\n }",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent Event) {\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tint reply = JOptionPane.showConfirmDialog(null, getPanel(), \"Exit\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\tif (reply == JOptionPane.NO_OPTION)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t System.exit(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtPriece.setText(\"\");\n\t\t\t\tbtnSalvarEdicao.setEnabled(false);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tahoraNoOnClick();\n\t\t\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n\n //Do Nothing\n }",
"private JButton getJButtonCancel() {\n\t\tif (jButtonCancel == null) {\n\t\t\tjButtonCancel = new JButton();\n\t\t\tjButtonCancel.setText(\"I disagree\");\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = false;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonCancel;\n\t}",
"@Override\r\n\t \t\t\tpublic void onClick(View v) {\n\t \t\t\t\tdialogDetailConfirm.cancel();\r\n\t \t\t\t}",
"@Override\r\n\tprotected ActionListener deleteBtnAction() {\n\t\treturn null;\r\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this out\");\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) \n\t\t\t\t{\n\t\t\t\t\tv.setVisibility(View.GONE);\n\t\t\t\t\tdiscovry_do();\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n if (v == okButton)\n dismiss();\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Override\n public boolean play(String btn)\n {\n return btn.isEmpty();\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}",
"@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }",
"public boolean cancel();",
"public void dama_DamaCloseButtonListener() {\n this.buttonDisabled = false;\n }",
"public void actionPerformed(ActionEvent ae) {\r\n II.setVisible(false);\r\n II.setEnabled(false);\r\n }",
"protected abstract boolean onOkClicked();",
"@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n switch(which){\n case DialogInterface.BUTTON_POSITIVE: // yes\n t.setText(\"You have successfully deleted the Beacon\");\n// simpleSwitch.isChecked();\n// simpleSwitch.setChecked(false);\n// editText.getText().clear();\n// editText1.getText().clear();\n\n\n break;\n case DialogInterface.BUTTON_NEGATIVE: // no\n t.setText(\"The Beacon devise is still connected\");\n break;\n default:\n // nothing\n break;\n }\n }",
"private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }",
"void okButtonClicked();",
"@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_QUESTION_CONFIRMATION);\n jbNewOrderButton.setVisible(false);\n jbConfirm.setVisible(true);\n jbCancel.setVisible(true);\n }",
"@FXML\n void disableAnnualCode() {\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n hourlyAddText.setDisable(false);\n }",
"@Override\n public void onClick(View v) {\n cancel(v);\n }",
"public void removeWrongAnswer (char button)\n {\n if (button=='A')\n a.setEnabled(false);\n else if (button=='B')\n b.setEnabled(false);\n else if (button=='C')\n c.setEnabled(false);\n else\n d.setEnabled(false);\n feedbackLabel.setVisible(true);\n }",
"void deleteNotes(ActionEvent event){\n cm.hide();\n Alert alert = new Alert(Alert.AlertType.NONE, \"Delete notes for \"+this.podcast.getTitle()+\"?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.showAndWait();\n\n if(alert.getResult() == ButtonType.YES){\n if(model.DEBUG)\n System.err.println(\"[LibCell] Deleting \"+this.podcast.getTitle()+\"\\'s notes\");\n\n this.podcast.setNotes(Main.model.DEFAULT_NOTES);\n } else {\n alert.hide();\n }\n\n }"
]
| [
"0.80171525",
"0.7585753",
"0.7480166",
"0.7228392",
"0.6872744",
"0.6833464",
"0.6774446",
"0.6667443",
"0.6570705",
"0.6534198",
"0.6530623",
"0.6509868",
"0.64922786",
"0.6374137",
"0.6364834",
"0.6361135",
"0.62876844",
"0.62660784",
"0.6264709",
"0.62499034",
"0.62301147",
"0.62100613",
"0.61719865",
"0.6116096",
"0.6112664",
"0.6105649",
"0.6093044",
"0.60737634",
"0.6073626",
"0.6066377",
"0.6066011",
"0.6057349",
"0.6054361",
"0.6039235",
"0.6037411",
"0.6023841",
"0.602257",
"0.6017898",
"0.6012837",
"0.60102534",
"0.6004599",
"0.6004599",
"0.60031104",
"0.60014766",
"0.60009176",
"0.59852636",
"0.59811413",
"0.5979082",
"0.5972394",
"0.5964947",
"0.5956134",
"0.5949291",
"0.5945363",
"0.5942213",
"0.59396315",
"0.5935217",
"0.5934902",
"0.5922803",
"0.59191203",
"0.5907581",
"0.58996713",
"0.58943117",
"0.58838993",
"0.5883478",
"0.58791995",
"0.5871446",
"0.58654433",
"0.58538973",
"0.58460915",
"0.58448476",
"0.58432496",
"0.58408046",
"0.5840178",
"0.5839035",
"0.5828067",
"0.5827806",
"0.58211136",
"0.5816065",
"0.5815522",
"0.5809309",
"0.5803394",
"0.5803272",
"0.58021444",
"0.5797904",
"0.5797904",
"0.5790698",
"0.5779725",
"0.5777747",
"0.5774483",
"0.5773843",
"0.57698804",
"0.5765816",
"0.5760874",
"0.57542014",
"0.57523334",
"0.5752108",
"0.57481253",
"0.57314235",
"0.5728473",
"0.5728297",
"0.5727296"
]
| 0.0 | -1 |
Action for 'NO' Button | public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}",
"public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;\n\t\t\t\tcurrent = current.getRight();\n\n\t\t\t\t// if current is not a leaf\n\t\t\t\tif (current != null) {\n\t\t\t\t\tquestion.setText(current.getData().toString());\n\t\t\t\t\tvalidate();\n\t\t\t\t}\n\n\t\t\t\t// Once you hit a leaf, set a final message\n\t\t\t\telse {\n\t\t\t\t\t// Call the function that creates an option panel\n\t\t\t\t\toptionPane();\n\n\t\t\t\t\t// Save changes user made\n\t\t\t\t\tCommutativeExpressionWriter.writeCommutativeExpr(\n\t\t\t\t\t\t\tcontroller.tree, \"food.xml\");\n\n\t\t\t\t\t// add a restart button that restores the game\n\t\t\t\t\trestartGame();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// add No button to right\n\t\tsouth.add(no, BorderLayout.EAST);\n\t\tvalidate();\n\t}",
"@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}",
"public void onNo();",
"public Button getNo() {\n return no;\n }",
"public void handleNoConfirmButtonAction(ActionEvent event) {\n confirmPane.setVisible(false);\n maskPane.setVisible(false);\n }",
"protected boolean hasNegativeButton() {\n return false;\n }",
"void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }",
"void btnCancel();",
"@FXML\n private void cancelButtonAction(ActionEvent event) {\n //Change cancel button to help button\n cancelButton.setVisible(false);\n cancelButton.setDisable(true);\n helpButton.setVisible(true);\n helpButton.setDisable(false);\n \n help = false;\n\n // enable the sliders and checkbox\n enableSliderBoxes();\n // remove help informations\n clearInfo();\n }",
"public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}",
"protected boolean hasPositiveButton() {\n return false;\n }",
"@Override\n\tpublic void onNoButtonForTwoButtonDialogClickedX() {\n\t\ttwoBtnDialogFragment.dismiss();\n\t}",
"@Override\n protected void negativeClick() {\n\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_HIDE_LABEL);\n jbNewOrderButton.setVisible(true);\n jbConfirm.setVisible(false);\n jbCancel.setVisible(false);\n }",
"public boolean hasNeutralButton(){\n return true;\n }",
"@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }",
"public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n //Toast.makeText(getApplicationContext(), \"you clicked NO\",\n // Toast.LENGTH_SHORT).show();\n }",
"private void onClickReset(ActionEvent e) {\n\n }",
"public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }",
"@FXML\n\tvoid disapproveActionButton(ActionEvent event) {\n\t\tdeleteRequest();\n\t\tUsefulMethods.instance().close(event);\n\t}",
"public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void disableOkButton() {\n okButton.setEnabled(false);\n }",
"void onCancelClicked();",
"@FXML private void okButtonActivity() {\n if (activeUser != null && !activeUser.getUsername().equals(recipe.getAuthor())){\n okButton.setDisable(false);\n }\n }",
"@Override\r\n\tpublic void novo(ActionEvent actionEvent) {\n\t\t\r\n\t}",
"public void handleYesConfirmButtonAction(ActionEvent event) {\n if (updateItemPane.isVisible()){\n deleteItem();\n this.clearUpdateItemFields();\n }\n else if(updateCopyPane.isVisible()){\n deleteCopy();\n this.clearUpdateCopyFields();\n }\n maskPane.setVisible(false);\n confirmPane.setVisible(false);\n }",
"public void hileraNoNulaAction(ActionEvent event){\r\n cadena+=\"+\";\r\n escribirHilera.setText(cadena);\r\n concatenar.setDisable(false);\r\n union.setDisable(false);\r\n abreParentesis.setDisable(true);\r\n hileraNula.setDisable(true);\r\n hileraNoNula.setDisable(true);\r\n finSecuencia.setDisable(true);\r\n }",
"public void clickYes ();",
"private void disableButtons()\r\n {\r\n }",
"public void buttonShowIncomplete(ActionEvent actionEvent) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void onNegativeButtonClicked(int requestCode) {\n\n\t}",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\n\t\t\t\tButton cancelbutton = (Button) findViewById(R.id.calc_clear_txt_Prise);\n\t\t\t\tcancelbutton.setVisibility(0);\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Toast.makeText(this, \"No\", Toast.LENGTH_LONG).show();\n\n }",
"public void handleSkipAction(ActionEvent event){\n sender.sendInput(\"skip action\");\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}",
"private void hideButton(){\n // Si onget Client\n if(numOnglet() == 0 ){\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }\n }\n }",
"public void onCancelClick()\r\n {\r\n\r\n }",
"private void cancelButtonActionPerformed(ActionEvent e) {\n }",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e)\n {\n if (yesRadio.isSelected())\n {\n parent.unlockNextButton();\n }\n else\n {\n parent.lockNextButton();\n }\n }",
"public String btn_cancel_delete_action()\n {\n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n return null;\n }",
"@Override\r\n\tpublic void actionPerformed(GuiButton button) {\r\n switch (button.id) {\r\n case 0:\r\n GuiYesNo confirmGui = new GuiYesNo(this, \"Delete Waypoints\", \"Are you sure you want to delete the selected waypoints?\", \"Yes\", \"No\", 0);\r\n confirmGui.setButtonDelay(5);\r\n this.mc.displayGuiScreen(confirmGui);\r\n break;\r\n }\r\n\t}",
"public void onDiscardClick(){\n if (mHomeChecked){ // at Home Checkmark\n NavUtils.navigateUpFromSameTask(EditSymptomActivity.this);\n }\n if (!mHomeChecked) { // at BackPressed\n finish();\n }\n }",
"public boolean buttonNemo(View v) { return (v.getId() == R.id.bestRated); }",
"public void onClickCancel()\n\t{\n\t\tsetVisible(false);\n\t\tdispose();\t\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tACTION_B_DISABLE(arg0);\r\n\t\t\t}",
"@Override\n public void onBtnClick() {\n Log.i(\"TAG\", \"onClick: 您已经取消了生成一个新的歌单\");\n dialog.dismiss();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(false);\n\t\t\t\t\n\t\t\t}",
"public void actionPerformed(ActionEvent e)\n\t{\n\t\tview.removeButton();\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n\t\tif (e.getSource() == button1) {\r\n\t\t\tcancel();\r\n\t\t}\r\n\t}",
"public static int yesNoCancelPop(String title, String message, String yesButton, String noButton, String cancelButton) {\n\t\t\t//Custom button text\n\t\t\tObject[] options = {yesButton, noButton, cancelButton};\n\t\t\tint n = JOptionPane.showOptionDialog(null, message, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,\n\t\t\t options,\n\t\t\t options[2]);\n\t\t\t\n\t\t\treturn n;\n\t\t}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"String disabledButton();",
"public void userClickedOnTable()\r\n {\r\n this.detailedStudentViewButton.setDisable(false);\r\n }",
"@Override\n\tpublic boolean onClick(Player player, int buttonID) {\n\t\treturn false;\n\t}",
"@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}",
"public void hideStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }",
"HasClickHandlers getCancelButton();",
"@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 }",
"@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}",
"@Override\n public void onBtnClick() {\n dialog.dismiss();\n getMusicID(\"cancel\");\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\teliminarNota();\n\t\t\t}",
"public Button getYes() {\n return yes;\n }",
"@FXML\n private void handleBtnNovoAction (ActionEvent event) { \n \n //passa um ModelCliente vazio para limpar os campos\n setModelProdutosBinds( new ModelClientes() );\n \n //Retira o bind do modelProdutos com esse ModelProduto vazio\n setModelProdutosBinds(null);\n \n //Comfiguração dos componentes da tela\n edtNome.requestFocus();\n \n //No próximo click o botao executa a ação \"Cancelar\"\n btnNovo.setOnAction((e) -> { handleBtnCancelarAction(e); });\n }",
"private void jButtonCancelActionPerformed(ActionEvent e)\n {\n \tsetVisible(false);\n }",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent Event) {\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tint reply = JOptionPane.showConfirmDialog(null, getPanel(), \"Exit\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\tif (reply == JOptionPane.NO_OPTION)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t System.exit(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtPriece.setText(\"\");\n\t\t\t\tbtnSalvarEdicao.setEnabled(false);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tahoraNoOnClick();\n\t\t\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n\n //Do Nothing\n }",
"private JButton getJButtonCancel() {\n\t\tif (jButtonCancel == null) {\n\t\t\tjButtonCancel = new JButton();\n\t\t\tjButtonCancel.setText(\"I disagree\");\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = false;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonCancel;\n\t}",
"@Override\r\n\t \t\t\tpublic void onClick(View v) {\n\t \t\t\t\tdialogDetailConfirm.cancel();\r\n\t \t\t\t}",
"@Override\r\n\tprotected ActionListener deleteBtnAction() {\n\t\treturn null;\r\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this out\");\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) \n\t\t\t\t{\n\t\t\t\t\tv.setVisibility(View.GONE);\n\t\t\t\t\tdiscovry_do();\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n if (v == okButton)\n dismiss();\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Override\n public boolean play(String btn)\n {\n return btn.isEmpty();\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}",
"@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }",
"public boolean cancel();",
"public void dama_DamaCloseButtonListener() {\n this.buttonDisabled = false;\n }",
"public void actionPerformed(ActionEvent ae) {\r\n II.setVisible(false);\r\n II.setEnabled(false);\r\n }",
"protected abstract boolean onOkClicked();",
"@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n switch(which){\n case DialogInterface.BUTTON_POSITIVE: // yes\n t.setText(\"You have successfully deleted the Beacon\");\n// simpleSwitch.isChecked();\n// simpleSwitch.setChecked(false);\n// editText.getText().clear();\n// editText1.getText().clear();\n\n\n break;\n case DialogInterface.BUTTON_NEGATIVE: // no\n t.setText(\"The Beacon devise is still connected\");\n break;\n default:\n // nothing\n break;\n }\n }",
"private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }",
"void okButtonClicked();",
"@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_QUESTION_CONFIRMATION);\n jbNewOrderButton.setVisible(false);\n jbConfirm.setVisible(true);\n jbCancel.setVisible(true);\n }",
"@FXML\n void disableAnnualCode() {\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n hourlyAddText.setDisable(false);\n }",
"@Override\n public void onClick(View v) {\n cancel(v);\n }",
"public void removeWrongAnswer (char button)\n {\n if (button=='A')\n a.setEnabled(false);\n else if (button=='B')\n b.setEnabled(false);\n else if (button=='C')\n c.setEnabled(false);\n else\n d.setEnabled(false);\n feedbackLabel.setVisible(true);\n }",
"void deleteNotes(ActionEvent event){\n cm.hide();\n Alert alert = new Alert(Alert.AlertType.NONE, \"Delete notes for \"+this.podcast.getTitle()+\"?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.showAndWait();\n\n if(alert.getResult() == ButtonType.YES){\n if(model.DEBUG)\n System.err.println(\"[LibCell] Deleting \"+this.podcast.getTitle()+\"\\'s notes\");\n\n this.podcast.setNotes(Main.model.DEFAULT_NOTES);\n } else {\n alert.hide();\n }\n\n }"
]
| [
"0.80171525",
"0.7585753",
"0.7480166",
"0.7228392",
"0.6872744",
"0.6833464",
"0.6774446",
"0.6667443",
"0.6570705",
"0.6534198",
"0.6530623",
"0.6509868",
"0.64922786",
"0.6374137",
"0.6364834",
"0.6361135",
"0.62876844",
"0.62660784",
"0.6264709",
"0.62499034",
"0.62301147",
"0.62100613",
"0.61719865",
"0.6116096",
"0.6112664",
"0.6105649",
"0.6093044",
"0.60737634",
"0.6073626",
"0.6066377",
"0.6066011",
"0.6057349",
"0.6054361",
"0.6039235",
"0.6037411",
"0.6023841",
"0.602257",
"0.6017898",
"0.6012837",
"0.60102534",
"0.6004599",
"0.6004599",
"0.60031104",
"0.60014766",
"0.60009176",
"0.59852636",
"0.59811413",
"0.5979082",
"0.5972394",
"0.5964947",
"0.5956134",
"0.5949291",
"0.5945363",
"0.5942213",
"0.59396315",
"0.5935217",
"0.5934902",
"0.5922803",
"0.59191203",
"0.5907581",
"0.58996713",
"0.58943117",
"0.58838993",
"0.5883478",
"0.58791995",
"0.5871446",
"0.58654433",
"0.58538973",
"0.58460915",
"0.58448476",
"0.58432496",
"0.58408046",
"0.5840178",
"0.5839035",
"0.5828067",
"0.5827806",
"0.58211136",
"0.5816065",
"0.5815522",
"0.5809309",
"0.5803394",
"0.5803272",
"0.58021444",
"0.5797904",
"0.5797904",
"0.5790698",
"0.5779725",
"0.5777747",
"0.5774483",
"0.5773843",
"0.57698804",
"0.5765816",
"0.5760874",
"0.57542014",
"0.57523334",
"0.5752108",
"0.57481253",
"0.57314235",
"0.5728473",
"0.5728297",
"0.5727296"
]
| 0.0 | -1 |
Action for 'NO' Button | public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}",
"public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;\n\t\t\t\tcurrent = current.getRight();\n\n\t\t\t\t// if current is not a leaf\n\t\t\t\tif (current != null) {\n\t\t\t\t\tquestion.setText(current.getData().toString());\n\t\t\t\t\tvalidate();\n\t\t\t\t}\n\n\t\t\t\t// Once you hit a leaf, set a final message\n\t\t\t\telse {\n\t\t\t\t\t// Call the function that creates an option panel\n\t\t\t\t\toptionPane();\n\n\t\t\t\t\t// Save changes user made\n\t\t\t\t\tCommutativeExpressionWriter.writeCommutativeExpr(\n\t\t\t\t\t\t\tcontroller.tree, \"food.xml\");\n\n\t\t\t\t\t// add a restart button that restores the game\n\t\t\t\t\trestartGame();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// add No button to right\n\t\tsouth.add(no, BorderLayout.EAST);\n\t\tvalidate();\n\t}",
"@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}",
"public void onNo();",
"public Button getNo() {\n return no;\n }",
"public void handleNoConfirmButtonAction(ActionEvent event) {\n confirmPane.setVisible(false);\n maskPane.setVisible(false);\n }",
"protected boolean hasNegativeButton() {\n return false;\n }",
"void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }",
"void btnCancel();",
"@FXML\n private void cancelButtonAction(ActionEvent event) {\n //Change cancel button to help button\n cancelButton.setVisible(false);\n cancelButton.setDisable(true);\n helpButton.setVisible(true);\n helpButton.setDisable(false);\n \n help = false;\n\n // enable the sliders and checkbox\n enableSliderBoxes();\n // remove help informations\n clearInfo();\n }",
"public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}",
"protected boolean hasPositiveButton() {\n return false;\n }",
"@Override\n\tpublic void onNoButtonForTwoButtonDialogClickedX() {\n\t\ttwoBtnDialogFragment.dismiss();\n\t}",
"@Override\n protected void negativeClick() {\n\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_HIDE_LABEL);\n jbNewOrderButton.setVisible(true);\n jbConfirm.setVisible(false);\n jbCancel.setVisible(false);\n }",
"public boolean hasNeutralButton(){\n return true;\n }",
"@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }",
"public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n //Toast.makeText(getApplicationContext(), \"you clicked NO\",\n // Toast.LENGTH_SHORT).show();\n }",
"private void onClickReset(ActionEvent e) {\n\n }",
"public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }",
"@FXML\n\tvoid disapproveActionButton(ActionEvent event) {\n\t\tdeleteRequest();\n\t\tUsefulMethods.instance().close(event);\n\t}",
"public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void disableOkButton() {\n okButton.setEnabled(false);\n }",
"void onCancelClicked();",
"@FXML private void okButtonActivity() {\n if (activeUser != null && !activeUser.getUsername().equals(recipe.getAuthor())){\n okButton.setDisable(false);\n }\n }",
"@Override\r\n\tpublic void novo(ActionEvent actionEvent) {\n\t\t\r\n\t}",
"public void handleYesConfirmButtonAction(ActionEvent event) {\n if (updateItemPane.isVisible()){\n deleteItem();\n this.clearUpdateItemFields();\n }\n else if(updateCopyPane.isVisible()){\n deleteCopy();\n this.clearUpdateCopyFields();\n }\n maskPane.setVisible(false);\n confirmPane.setVisible(false);\n }",
"public void hileraNoNulaAction(ActionEvent event){\r\n cadena+=\"+\";\r\n escribirHilera.setText(cadena);\r\n concatenar.setDisable(false);\r\n union.setDisable(false);\r\n abreParentesis.setDisable(true);\r\n hileraNula.setDisable(true);\r\n hileraNoNula.setDisable(true);\r\n finSecuencia.setDisable(true);\r\n }",
"public void clickYes ();",
"private void disableButtons()\r\n {\r\n }",
"public void buttonShowIncomplete(ActionEvent actionEvent) {\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void onNegativeButtonClicked(int requestCode) {\n\n\t}",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\n\t\t\t\tButton cancelbutton = (Button) findViewById(R.id.calc_clear_txt_Prise);\n\t\t\t\tcancelbutton.setVisibility(0);\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Toast.makeText(this, \"No\", Toast.LENGTH_LONG).show();\n\n }",
"public void handleSkipAction(ActionEvent event){\n sender.sendInput(\"skip action\");\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}",
"private void hideButton(){\n // Si onget Client\n if(numOnglet() == 0 ){\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }\n }\n }",
"public void onCancelClick()\r\n {\r\n\r\n }",
"private void cancelButtonActionPerformed(ActionEvent e) {\n }",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e)\n {\n if (yesRadio.isSelected())\n {\n parent.unlockNextButton();\n }\n else\n {\n parent.lockNextButton();\n }\n }",
"public String btn_cancel_delete_action()\n {\n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n return null;\n }",
"@Override\r\n\tpublic void actionPerformed(GuiButton button) {\r\n switch (button.id) {\r\n case 0:\r\n GuiYesNo confirmGui = new GuiYesNo(this, \"Delete Waypoints\", \"Are you sure you want to delete the selected waypoints?\", \"Yes\", \"No\", 0);\r\n confirmGui.setButtonDelay(5);\r\n this.mc.displayGuiScreen(confirmGui);\r\n break;\r\n }\r\n\t}",
"public void onDiscardClick(){\n if (mHomeChecked){ // at Home Checkmark\n NavUtils.navigateUpFromSameTask(EditSymptomActivity.this);\n }\n if (!mHomeChecked) { // at BackPressed\n finish();\n }\n }",
"public boolean buttonNemo(View v) { return (v.getId() == R.id.bestRated); }",
"public void onClickCancel()\n\t{\n\t\tsetVisible(false);\n\t\tdispose();\t\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tACTION_B_DISABLE(arg0);\r\n\t\t\t}",
"@Override\n public void onBtnClick() {\n Log.i(\"TAG\", \"onClick: 您已经取消了生成一个新的歌单\");\n dialog.dismiss();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(false);\n\t\t\t\t\n\t\t\t}",
"public void actionPerformed(ActionEvent e)\n\t{\n\t\tview.removeButton();\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n\t\tif (e.getSource() == button1) {\r\n\t\t\tcancel();\r\n\t\t}\r\n\t}",
"public static int yesNoCancelPop(String title, String message, String yesButton, String noButton, String cancelButton) {\n\t\t\t//Custom button text\n\t\t\tObject[] options = {yesButton, noButton, cancelButton};\n\t\t\tint n = JOptionPane.showOptionDialog(null, message, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,\n\t\t\t options,\n\t\t\t options[2]);\n\t\t\t\n\t\t\treturn n;\n\t\t}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"String disabledButton();",
"public void userClickedOnTable()\r\n {\r\n this.detailedStudentViewButton.setDisable(false);\r\n }",
"@Override\n\tpublic boolean onClick(Player player, int buttonID) {\n\t\treturn false;\n\t}",
"@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}",
"public void hideStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }",
"HasClickHandlers getCancelButton();",
"@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 }",
"@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}",
"@Override\n public void onBtnClick() {\n dialog.dismiss();\n getMusicID(\"cancel\");\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\teliminarNota();\n\t\t\t}",
"public Button getYes() {\n return yes;\n }",
"@FXML\n private void handleBtnNovoAction (ActionEvent event) { \n \n //passa um ModelCliente vazio para limpar os campos\n setModelProdutosBinds( new ModelClientes() );\n \n //Retira o bind do modelProdutos com esse ModelProduto vazio\n setModelProdutosBinds(null);\n \n //Comfiguração dos componentes da tela\n edtNome.requestFocus();\n \n //No próximo click o botao executa a ação \"Cancelar\"\n btnNovo.setOnAction((e) -> { handleBtnCancelarAction(e); });\n }",
"private void jButtonCancelActionPerformed(ActionEvent e)\n {\n \tsetVisible(false);\n }",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent Event) {\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tint reply = JOptionPane.showConfirmDialog(null, getPanel(), \"Exit\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\tif (reply == JOptionPane.NO_OPTION)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t System.exit(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtPriece.setText(\"\");\n\t\t\t\tbtnSalvarEdicao.setEnabled(false);\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tahoraNoOnClick();\n\t\t\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n\n //Do Nothing\n }",
"private JButton getJButtonCancel() {\n\t\tif (jButtonCancel == null) {\n\t\t\tjButtonCancel = new JButton();\n\t\t\tjButtonCancel.setText(\"I disagree\");\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = false;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonCancel;\n\t}",
"@Override\r\n\t \t\t\tpublic void onClick(View v) {\n\t \t\t\t\tdialogDetailConfirm.cancel();\r\n\t \t\t\t}",
"@Override\r\n\tprotected ActionListener deleteBtnAction() {\n\t\treturn null;\r\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this out\");\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) \n\t\t\t\t{\n\t\t\t\t\tv.setVisibility(View.GONE);\n\t\t\t\t\tdiscovry_do();\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n if (v == okButton)\n dismiss();\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Override\n public boolean play(String btn)\n {\n return btn.isEmpty();\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}",
"@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }",
"public boolean cancel();",
"public void dama_DamaCloseButtonListener() {\n this.buttonDisabled = false;\n }",
"public void actionPerformed(ActionEvent ae) {\r\n II.setVisible(false);\r\n II.setEnabled(false);\r\n }",
"protected abstract boolean onOkClicked();",
"@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n switch(which){\n case DialogInterface.BUTTON_POSITIVE: // yes\n t.setText(\"You have successfully deleted the Beacon\");\n// simpleSwitch.isChecked();\n// simpleSwitch.setChecked(false);\n// editText.getText().clear();\n// editText1.getText().clear();\n\n\n break;\n case DialogInterface.BUTTON_NEGATIVE: // no\n t.setText(\"The Beacon devise is still connected\");\n break;\n default:\n // nothing\n break;\n }\n }",
"private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }",
"void okButtonClicked();",
"@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_QUESTION_CONFIRMATION);\n jbNewOrderButton.setVisible(false);\n jbConfirm.setVisible(true);\n jbCancel.setVisible(true);\n }",
"@FXML\n void disableAnnualCode() {\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n hourlyAddText.setDisable(false);\n }",
"@Override\n public void onClick(View v) {\n cancel(v);\n }",
"public void removeWrongAnswer (char button)\n {\n if (button=='A')\n a.setEnabled(false);\n else if (button=='B')\n b.setEnabled(false);\n else if (button=='C')\n c.setEnabled(false);\n else\n d.setEnabled(false);\n feedbackLabel.setVisible(true);\n }",
"void deleteNotes(ActionEvent event){\n cm.hide();\n Alert alert = new Alert(Alert.AlertType.NONE, \"Delete notes for \"+this.podcast.getTitle()+\"?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.showAndWait();\n\n if(alert.getResult() == ButtonType.YES){\n if(model.DEBUG)\n System.err.println(\"[LibCell] Deleting \"+this.podcast.getTitle()+\"\\'s notes\");\n\n this.podcast.setNotes(Main.model.DEFAULT_NOTES);\n } else {\n alert.hide();\n }\n\n }"
]
| [
"0.80171525",
"0.7585753",
"0.7480166",
"0.7228392",
"0.6872744",
"0.6833464",
"0.6774446",
"0.6667443",
"0.6570705",
"0.6534198",
"0.6530623",
"0.6509868",
"0.64922786",
"0.6374137",
"0.6364834",
"0.6361135",
"0.62876844",
"0.62660784",
"0.6264709",
"0.62499034",
"0.62301147",
"0.62100613",
"0.61719865",
"0.6116096",
"0.6112664",
"0.6105649",
"0.6093044",
"0.60737634",
"0.6073626",
"0.6066377",
"0.6066011",
"0.6057349",
"0.6054361",
"0.6039235",
"0.6037411",
"0.6023841",
"0.602257",
"0.6017898",
"0.6012837",
"0.60102534",
"0.6004599",
"0.6004599",
"0.60031104",
"0.60014766",
"0.60009176",
"0.59852636",
"0.59811413",
"0.5979082",
"0.5972394",
"0.5964947",
"0.5956134",
"0.5949291",
"0.5945363",
"0.5942213",
"0.59396315",
"0.5935217",
"0.5934902",
"0.5922803",
"0.59191203",
"0.5907581",
"0.58996713",
"0.58943117",
"0.58838993",
"0.5883478",
"0.58791995",
"0.5871446",
"0.58654433",
"0.58538973",
"0.58460915",
"0.58448476",
"0.58432496",
"0.58408046",
"0.5840178",
"0.5839035",
"0.5828067",
"0.5827806",
"0.58211136",
"0.5816065",
"0.5815522",
"0.5809309",
"0.5803394",
"0.5803272",
"0.58021444",
"0.5797904",
"0.5797904",
"0.5790698",
"0.5779725",
"0.5777747",
"0.5774483",
"0.5773843",
"0.57698804",
"0.5765816",
"0.5760874",
"0.57542014",
"0.57523334",
"0.5752108",
"0.57481253",
"0.57314235",
"0.5728473",
"0.5728297",
"0.5727296"
]
| 0.0 | -1 |
Action for 'NO' Button | public void onClick(DialogInterface dialog, int id) {
dialog.cancel();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void clickOnNOButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"No\"));\r\n\t}",
"public void no() {\n\n\t\tno = new JButton(\"No\");\n\n\t\tno.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tprevious = current;\n\t\t\t\tcurrent = current.getRight();\n\n\t\t\t\t// if current is not a leaf\n\t\t\t\tif (current != null) {\n\t\t\t\t\tquestion.setText(current.getData().toString());\n\t\t\t\t\tvalidate();\n\t\t\t\t}\n\n\t\t\t\t// Once you hit a leaf, set a final message\n\t\t\t\telse {\n\t\t\t\t\t// Call the function that creates an option panel\n\t\t\t\t\toptionPane();\n\n\t\t\t\t\t// Save changes user made\n\t\t\t\t\tCommutativeExpressionWriter.writeCommutativeExpr(\n\t\t\t\t\t\t\tcontroller.tree, \"food.xml\");\n\n\t\t\t\t\t// add a restart button that restores the game\n\t\t\t\t\trestartGame();\n\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// add No button to right\n\t\tsouth.add(no, BorderLayout.EAST);\n\t\tvalidate();\n\t}",
"@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}",
"public void onNo();",
"public Button getNo() {\n return no;\n }",
"public void handleNoConfirmButtonAction(ActionEvent event) {\n confirmPane.setVisible(false);\n maskPane.setVisible(false);\n }",
"protected boolean hasNegativeButton() {\n return false;\n }",
"void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }",
"void btnCancel();",
"@FXML\n private void cancelButtonAction(ActionEvent event) {\n //Change cancel button to help button\n cancelButton.setVisible(false);\n cancelButton.setDisable(true);\n helpButton.setVisible(true);\n helpButton.setDisable(false);\n \n help = false;\n\n // enable the sliders and checkbox\n enableSliderBoxes();\n // remove help informations\n clearInfo();\n }",
"public void cancel()\n\t{\n\t\t_buttonHit = true;\n\t}",
"protected boolean hasPositiveButton() {\n return false;\n }",
"@Override\n\tpublic void onNoButtonForTwoButtonDialogClickedX() {\n\t\ttwoBtnDialogFragment.dismiss();\n\t}",
"@Override\n protected void negativeClick() {\n\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_HIDE_LABEL);\n jbNewOrderButton.setVisible(true);\n jbConfirm.setVisible(false);\n jbCancel.setVisible(false);\n }",
"public boolean hasNeutralButton(){\n return true;\n }",
"@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }",
"public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n //Toast.makeText(getApplicationContext(), \"you clicked NO\",\n // Toast.LENGTH_SHORT).show();\n }",
"private void onClickReset(ActionEvent e) {\n\n }",
"public void cancelButton() {\n this.setMultQuestionSet(null);\n this.setSingleQuestionSet(null);\n this.setTextQuestionSet(null);\n this.setDateQuestionSet(null);\n System.out.println(\"Done pressing cancel button\");\n }",
"@FXML\n\tvoid disapproveActionButton(ActionEvent event) {\n\t\tdeleteRequest();\n\t\tUsefulMethods.instance().close(event);\n\t}",
"public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void disableOkButton() {\n okButton.setEnabled(false);\n }",
"void onCancelClicked();",
"@FXML private void okButtonActivity() {\n if (activeUser != null && !activeUser.getUsername().equals(recipe.getAuthor())){\n okButton.setDisable(false);\n }\n }",
"@Override\r\n\tpublic void novo(ActionEvent actionEvent) {\n\t\t\r\n\t}",
"public void handleYesConfirmButtonAction(ActionEvent event) {\n if (updateItemPane.isVisible()){\n deleteItem();\n this.clearUpdateItemFields();\n }\n else if(updateCopyPane.isVisible()){\n deleteCopy();\n this.clearUpdateCopyFields();\n }\n maskPane.setVisible(false);\n confirmPane.setVisible(false);\n }",
"public void clickYes ();",
"public void hileraNoNulaAction(ActionEvent event){\r\n cadena+=\"+\";\r\n escribirHilera.setText(cadena);\r\n concatenar.setDisable(false);\r\n union.setDisable(false);\r\n abreParentesis.setDisable(true);\r\n hileraNula.setDisable(true);\r\n hileraNoNula.setDisable(true);\r\n finSecuencia.setDisable(true);\r\n }",
"public void buttonShowIncomplete(ActionEvent actionEvent) {\n }",
"private void disableButtons()\r\n {\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint dialogButton = JOptionPane.YES_NO_OPTION;\n\t\t\t\tint dialogResult = JOptionPane.showConfirmDialog (null, new String(ApplicationSession.instance().getString(\"quit?\")),\"Warning\",dialogButton);\n\t\t\t\tif(dialogResult == JOptionPane.YES_OPTION){\n\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void onNegativeButtonClicked(int requestCode) {\n\n\t}",
"@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\n\t\t\t\tButton cancelbutton = (Button) findViewById(R.id.calc_clear_txt_Prise);\n\t\t\t\tcancelbutton.setVisibility(0);\n\t\t\t\treturn false;\n\t\t\t}",
"@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Toast.makeText(this, \"No\", Toast.LENGTH_LONG).show();\n\n }",
"public void handleSkipAction(ActionEvent event){\n sender.sendInput(\"skip action\");\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcancel();\n\t\t\t}",
"private void hideButton(){\n // Si onget Client\n if(numOnglet() == 0 ){\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }\n }\n }",
"public void onCancelClick()\r\n {\r\n\r\n }",
"private void cancelButtonActionPerformed(ActionEvent e) {\n }",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}",
"@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tnegativeButtonClickListener.onClick(dialog, DialogInterface.BUTTON_NEGATIVE);\n \t\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e)\n {\n if (yesRadio.isSelected())\n {\n parent.unlockNextButton();\n }\n else\n {\n parent.lockNextButton();\n }\n }",
"public String btn_cancel_delete_action()\n {\n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n return null;\n }",
"@Override\r\n\tpublic void actionPerformed(GuiButton button) {\r\n switch (button.id) {\r\n case 0:\r\n GuiYesNo confirmGui = new GuiYesNo(this, \"Delete Waypoints\", \"Are you sure you want to delete the selected waypoints?\", \"Yes\", \"No\", 0);\r\n confirmGui.setButtonDelay(5);\r\n this.mc.displayGuiScreen(confirmGui);\r\n break;\r\n }\r\n\t}",
"public void onDiscardClick(){\n if (mHomeChecked){ // at Home Checkmark\n NavUtils.navigateUpFromSameTask(EditSymptomActivity.this);\n }\n if (!mHomeChecked) { // at BackPressed\n finish();\n }\n }",
"public boolean buttonNemo(View v) { return (v.getId() == R.id.bestRated); }",
"public void onClickCancel()\n\t{\n\t\tsetVisible(false);\n\t\tdispose();\t\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tACTION_B_DISABLE(arg0);\r\n\t\t\t}",
"@Override\n public void onBtnClick() {\n Log.i(\"TAG\", \"onClick: 您已经取消了生成一个新的歌单\");\n dialog.dismiss();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(false);\n\t\t\t\t\n\t\t\t}",
"public void actionPerformed(ActionEvent e)\n\t{\n\t\tview.removeButton();\n\t}",
"public void actionPerformed(ActionEvent e) {\r\n\t\tif (e.getSource() == button1) {\r\n\t\t\tcancel();\r\n\t\t}\r\n\t}",
"public static int yesNoCancelPop(String title, String message, String yesButton, String noButton, String cancelButton) {\n\t\t\t//Custom button text\n\t\t\tObject[] options = {yesButton, noButton, cancelButton};\n\t\t\tint n = JOptionPane.showOptionDialog(null, message, title, JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,\n\t\t\t options,\n\t\t\t options[2]);\n\t\t\t\n\t\t\treturn n;\n\t\t}",
"public void cancel() { Common.exitWindow(cancelBtn); }",
"String disabledButton();",
"public void userClickedOnTable()\r\n {\r\n this.detailedStudentViewButton.setDisable(false);\r\n }",
"@Override\n\tpublic boolean onClick(Player player, int buttonID) {\n\t\treturn false;\n\t}",
"@FXML\n void setBtnCancelOnClick() {\n this.setDisableLocation(true);\n this.setDisableContent(true);\n this.setDisablePrice(true);\n this.setDisableAds(true);\n this.setDisableSelectedButtons(true);\n this.tableViewAds.setDisable(false);\n\n this.lblStatusValue.setText(\"The operation was canceled.\");\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"private void actionCancel() {\n\t\tselectedDownload.cancel();\n\t\tupdateButtons();\n\t}",
"public void hideStoreButton()\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.HIDE_STORE_BUTTON;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsetVisible(false);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n buttonCancelClicked();\n }",
"HasClickHandlers getCancelButton();",
"@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 }",
"@Override\r\n\tprotected ActionListener updateBtnAction() {\n\t\treturn null;\r\n\t}",
"@Override\n public void onBtnClick() {\n dialog.dismiss();\n getMusicID(\"cancel\");\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\teliminarNota();\n\t\t\t}",
"public Button getYes() {\n return yes;\n }",
"private void jButtonCancelActionPerformed(ActionEvent e)\n {\n \tsetVisible(false);\n }",
"@FXML\n private void handleBtnNovoAction (ActionEvent event) { \n \n //passa um ModelCliente vazio para limpar os campos\n setModelProdutosBinds( new ModelClientes() );\n \n //Retira o bind do modelProdutos com esse ModelProduto vazio\n setModelProdutosBinds(null);\n \n //Comfiguração dos componentes da tela\n edtNome.requestFocus();\n \n //No próximo click o botao executa a ação \"Cancelar\"\n btnNovo.setOnAction((e) -> { handleBtnCancelarAction(e); });\n }",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent Event) {\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tint reply = JOptionPane.showConfirmDialog(null, getPanel(), \"Exit\", JOptionPane.YES_NO_OPTION);\r\n\t\t\t\t\tif (reply == JOptionPane.NO_OPTION)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t System.exit(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tahoraNoOnClick();\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttxtPriece.setText(\"\");\n\t\t\t\tbtnSalvarEdicao.setEnabled(false);\n\t\t\t}",
"public void onClick(DialogInterface dialog, int whichButton) {\n\n //Do Nothing\n }",
"@Override\r\n\t \t\t\tpublic void onClick(View v) {\n\t \t\t\t\tdialogDetailConfirm.cancel();\r\n\t \t\t\t}",
"private JButton getJButtonCancel() {\n\t\tif (jButtonCancel == null) {\n\t\t\tjButtonCancel = new JButton();\n\t\t\tjButtonCancel.setText(\"I disagree\");\n\t\t\tjButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tok = false;\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jButtonCancel;\n\t}",
"@Override\r\n\tprotected ActionListener deleteBtnAction() {\n\t\treturn null;\r\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this out\");\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) \n\t\t\t\t{\n\t\t\t\t\tv.setVisibility(View.GONE);\n\t\t\t\t\tdiscovry_do();\n\t\t\t\t}",
"@Override\n public void onClick(View v) {\n if (v == okButton)\n dismiss();\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Action\n public void acCancel() {\n setChangeObj(false);\n }",
"@Override\n public boolean play(String btn)\n {\n return btn.isEmpty();\n }",
"@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}",
"@Override\n public void onNegativeClick() {\n AbDialogUtil.removeDialog(ApplyAcitivity.this);\n }",
"public boolean cancel();",
"public void dama_DamaCloseButtonListener() {\n this.buttonDisabled = false;\n }",
"public void actionPerformed(ActionEvent ae) {\r\n II.setVisible(false);\r\n II.setEnabled(false);\r\n }",
"protected abstract boolean onOkClicked();",
"@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n switch(which){\n case DialogInterface.BUTTON_POSITIVE: // yes\n t.setText(\"You have successfully deleted the Beacon\");\n// simpleSwitch.isChecked();\n// simpleSwitch.setChecked(false);\n// editText.getText().clear();\n// editText1.getText().clear();\n\n\n break;\n case DialogInterface.BUTTON_NEGATIVE: // no\n t.setText(\"The Beacon devise is still connected\");\n break;\n default:\n // nothing\n break;\n }\n }",
"void okButtonClicked();",
"private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n jlQuestion.setText(S_QUESTION_CONFIRMATION);\n jbNewOrderButton.setVisible(false);\n jbConfirm.setVisible(true);\n jbCancel.setVisible(true);\n }",
"@FXML\n void disableAnnualCode() {\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n hourlyAddText.setDisable(false);\n }",
"@Override\n public void onClick(View v) {\n cancel(v);\n }",
"public void removeWrongAnswer (char button)\n {\n if (button=='A')\n a.setEnabled(false);\n else if (button=='B')\n b.setEnabled(false);\n else if (button=='C')\n c.setEnabled(false);\n else\n d.setEnabled(false);\n feedbackLabel.setVisible(true);\n }",
"void deleteNotes(ActionEvent event){\n cm.hide();\n Alert alert = new Alert(Alert.AlertType.NONE, \"Delete notes for \"+this.podcast.getTitle()+\"?\", ButtonType.YES, ButtonType.NO, ButtonType.CANCEL);\n alert.showAndWait();\n\n if(alert.getResult() == ButtonType.YES){\n if(model.DEBUG)\n System.err.println(\"[LibCell] Deleting \"+this.podcast.getTitle()+\"\\'s notes\");\n\n this.podcast.setNotes(Main.model.DEFAULT_NOTES);\n } else {\n alert.hide();\n }\n\n }"
]
| [
"0.8016679",
"0.7583356",
"0.7479751",
"0.7227294",
"0.6871746",
"0.68325585",
"0.6774685",
"0.6668149",
"0.6571635",
"0.6534731",
"0.6531149",
"0.65112185",
"0.6491578",
"0.63744885",
"0.6366026",
"0.6361411",
"0.628921",
"0.6265854",
"0.6265429",
"0.62507087",
"0.6231551",
"0.62106663",
"0.6172504",
"0.61172885",
"0.6114432",
"0.61051124",
"0.60937136",
"0.60754406",
"0.60736096",
"0.6067713",
"0.6066581",
"0.60576653",
"0.60548085",
"0.60409105",
"0.6036283",
"0.60249954",
"0.60233116",
"0.60192406",
"0.6013935",
"0.6010959",
"0.60054666",
"0.60054666",
"0.60041153",
"0.60031503",
"0.6003082",
"0.5987249",
"0.5982993",
"0.5980191",
"0.5973204",
"0.5965795",
"0.5956847",
"0.5950552",
"0.59464926",
"0.5943093",
"0.5938783",
"0.5936226",
"0.59359264",
"0.59236026",
"0.5920674",
"0.5908399",
"0.5900251",
"0.58956915",
"0.5884603",
"0.5884131",
"0.5881006",
"0.5872852",
"0.5866992",
"0.58547133",
"0.58475596",
"0.5845507",
"0.58435005",
"0.58405143",
"0.5839896",
"0.58392644",
"0.582888",
"0.58281726",
"0.5822766",
"0.58165675",
"0.5816439",
"0.58103347",
"0.5805045",
"0.5804457",
"0.5804373",
"0.5797776",
"0.5797776",
"0.5792078",
"0.5780951",
"0.57787544",
"0.57750064",
"0.5774242",
"0.57706904",
"0.5768693",
"0.5762056",
"0.57552123",
"0.57549757",
"0.57524675",
"0.574938",
"0.5730735",
"0.5729436",
"0.5728733",
"0.5728179"
]
| 0.0 | -1 |
Created by james on 14/9/15. | @Repository
public interface UserRepo extends JpaRepository<User, Long> {
public List<User> findByEmail(String email);
public List<User> findByRole(String role);
@Query(value="SELECT new com.harmeetsingh13.dtos.UserPermissionsDto(user.id, perm.id, user.name, user.email, perm.url, perm.permission) FROM "
+ "UserPermission AS perm RIGHT OUTER JOIN perm.user AS user WHERE user.role = :role")
public List<UserPermissionsDto> findAllUsersPermissionsByRole(@Param("role")String role);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"public void method_4270() {}",
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"private stendhal() {\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tprotected void interr() {\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}",
"private void strin() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@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\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public void mo21877s() {\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"public abstract void mo70713b();",
"public void m23075a() {\n }",
"@Override\n public void init() {\n\n }",
"private void init() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"private void m50367F() {\n }",
"public void mo21779D() {\n }",
"public void skystonePos4() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tprotected void doF8() {\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}",
"public abstract void mo56925d();",
"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 mo12628c() {\n }",
"public void mo21825b() {\n }",
"public void mo21878t() {\n }",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void mo115190b() {\n }",
"@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\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\r\n\tpublic void init() {}",
"static void feladat9() {\n\t}",
"public void skystonePos6() {\n }",
"@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\tprotected void initialize() {\n\n\t}",
"public void mo21793R() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo21785J() {\n }",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"private void level7() {\n }",
"@Override\n protected void init() {\n }",
"@Override\n public void init() {}",
"public void mo23813b() {\n }",
"public abstract void mo27386d();",
"protected boolean func_70041_e_() { return false; }",
"public void mo12930a() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }"
]
| [
"0.56528205",
"0.5638197",
"0.5636575",
"0.56190884",
"0.5606511",
"0.56056315",
"0.560087",
"0.55784005",
"0.5550791",
"0.55479544",
"0.55212426",
"0.55146474",
"0.5506544",
"0.5502038",
"0.54513705",
"0.54513705",
"0.5441704",
"0.5416096",
"0.54159224",
"0.54030925",
"0.54015225",
"0.5395329",
"0.5386495",
"0.53750694",
"0.5348797",
"0.5348797",
"0.5348797",
"0.5348797",
"0.5348797",
"0.5345658",
"0.5326843",
"0.53161204",
"0.53112537",
"0.530487",
"0.529774",
"0.5276908",
"0.5275675",
"0.5273915",
"0.52637297",
"0.52637297",
"0.52543104",
"0.52519816",
"0.5249733",
"0.5244407",
"0.5232429",
"0.5215228",
"0.52123284",
"0.52040714",
"0.5202265",
"0.5196971",
"0.5196566",
"0.5193937",
"0.51856005",
"0.5182829",
"0.51789737",
"0.51789737",
"0.51789737",
"0.5165153",
"0.5161964",
"0.5161964",
"0.5161964",
"0.5161964",
"0.5161964",
"0.5161964",
"0.5161964",
"0.5160276",
"0.5156479",
"0.51503927",
"0.5141919",
"0.5135605",
"0.5134422",
"0.5129359",
"0.5129359",
"0.5129359",
"0.5129353",
"0.5128168",
"0.5127793",
"0.5118924",
"0.51167434",
"0.510891",
"0.51084274",
"0.5108019",
"0.5108019",
"0.5108019",
"0.51065093",
"0.510639",
"0.5104081",
"0.510239",
"0.5099025",
"0.5098046",
"0.50954044",
"0.5093908",
"0.50932455",
"0.5092773",
"0.50901407",
"0.5088272",
"0.508598",
"0.5085696",
"0.5083764",
"0.5082815",
"0.5082815"
]
| 0.0 | -1 |
Toast.makeText(context, "ripple clicked", //Toast.LENGTH_LONG).show(); / Intent i = new Intent(context, NewTabEventActivity.class); i.putExtra("position", position); String eventNamesArray[] = context.getResources().getStringArray(R.array.event_names_array); | @Override
public void onComplete(RippleView rippleView) {
Intent i = new Intent(context, MainTab.class);
i.putExtra(context.getString(R.string.position), position);
context.startActivity(i);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onClick(DialogInterface dialog, int which) {\n String[] myResArray = getResources().getStringArray(R.array.themes);\n List<String> myResArrayList = Arrays.asList(myResArray);\n Intent intent = new Intent(getActivity(), LivestreamBroadcastActivity.class);\n startActivity(intent);\n Toast.makeText(mContext, myResArrayList.get(which) , Toast.LENGTH_LONG).show();\n dialog.dismiss();\n }",
"@Override\n public void onClick(View v) {\n \tSystem.out.println(\"ss1ss\");\n //Toast.makeText(ListViewActivity.this, title[mPosition], Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + titles.get(position), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(RecycleTestActivity.this, pos + \"\", Toast.LENGTH_SHORT)\n .show();\n }",
"@Override\n public void onClick(View v) {\n\n String s = v.getTag().toString();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, s, duration);\n toast.show();\n }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n Toast.makeText(getApplicationContext(), strs[location][position], Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(context, \"You Clicked \" + result[position], Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View view) {\n Toast.makeText(contexto, contexto.getResources().getString(R.string.addFavoritos), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View view, int pos) {\n String tag = (String) view.getTag();\n Toast.makeText(XCArcMenuViewDemo.this, tag, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onItemClick(AdapterView<?> arg0, View arg1,\n int position, long arg3) {\n Toast.makeText(getApplicationContext(), strs[location][position], Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n Log.i(\"Tag\", myfamily.get(position));\n\n Toast.makeText(MainActivity.this, \"Hello \"+myfamily.get(position), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(mContext, \"You Clicked \" + position, Toast.LENGTH_LONG).show();\n }",
"public void btnYourBadges (View view){\n Intent intent = new Intent(this,YourBadges.class);\n intent.putExtra(\"status_Array\",stateArray);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(getContext(),\"hey uuuu clicked me \",Toast.LENGTH_SHORT).show();\n }",
"public void clickHistory(View v){\n\tIntent intent = new Intent(TimedWorkout.this, History.class);\n\tintent.putExtra(\"EXERCISE_NAME\", dayName);\n\tintent.putExtra(\"EXERCISE_TYPE\", 3);\n\tstartActivity(intent);\n}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n if (position == 0) {\n\n Intent intent = new Intent( getActivity(), TourDescription.class );\n intent.putExtra( \"loadsPosition\", getString(R.string.rloc_name_one ));\n intent.putExtra( \"loadsPosition2\", \"This is the place they always says. Stomach has no holiday\" );\n intent.putExtra( \"loadsPosition4\", \"Located right in the oil rich twin city\" );\n Bundle bundle = new Bundle();\n bundle.putInt( \"loadsPosition3\", R.drawable.erri );\n intent.putExtras( bundle );\n getActivity().startActivity( intent );\n\n }\n\n if (position == 1) {\n\n Intent intent = new Intent( getActivity(), TourDescription.class );\n\n Bundle bundle = new Bundle();\n bundle.putInt( \"loadsPosition3\", R.drawable.hamber );\n intent.putExtras( bundle );\n intent.putExtra( \"loadsPosition2\", \"One of the best in the sub region.\" );\n intent.putExtra( \"loadsPosition\", getString(R.string.rloc_name_two ));\n intent.putExtra( \"loadsPosition4\", \"Designed for the business minded people\" );\n\n getActivity().startActivity( intent );\n\n }\n\n if (position == 2) {\n\n Intent intent = new Intent( getActivity(), TourDescription.class );\n\n Bundle bundle = new Bundle();\n bundle.putInt( \"loadsPosition3\", R.drawable.ladc );\n intent.putExtras( bundle );\n intent.putExtra( \"loadsPosition2\", \"The place for all. You don't have to be rich to visit\" );\n intent.putExtra( \"loadsPosition\", getString(R.string.rloc_name_three ));\n intent.putExtra( \"loadsPosition4\", \"Food is good and varies every day. Breakfast is spectacular in terms of choice. \" );\n\n getActivity().startActivity( intent );\n\n\n }\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id)\n {\n \t Toast.makeText(getApplicationContext(),\n \t\t\t ((TextView) view).getText(), Toast.LENGTH_SHORT).show();\n \t Intent intent = new Intent(getApplicationContext(), RoomActivity.class);\n \t Bundle b = new Bundle();\n \t b.putString(\"title\", ((TextView) view).getText().toString());\n \t intent.putExtras(b);\n \t view.getContext().startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Toast.makeText(ct,\" Blood Group \"+bloodgroup[position], Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(getApplicationContext(), EventDetailsActivity.class);\n Event event= arrayList.get(position);\n // putting an object as an intent extra\n intent.putExtra(\"Event\",(Serializable) event);\n startActivity(intent);\n\n }",
"@Override\n public void onClick(View v) {\n Intent i = new Intent(getApplicationContext(), Prescription.class);\n Bundle bundle = new Bundle();\n bundle.putString(\"Chatroomcode\", chatCode);\n i.putExtras(bundle);\n startActivity(i);\n CustomIntent.customType(Chat.this, \"fadein-to-fadeout\");\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int pos, long id) {\n Intent intent = new Intent(getApplicationContext(), Detail.class);\n // intent.putExtra(\"i\",listAlarm.i);\n startActivity(intent);\n\n\n\n }",
"@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tString[] sa = context.getResources().getStringArray(R.array.fuzhe);\n\t\t\t\t\t\thexingDialog_v2(vo.getName(),sa);\n\t\t\t\t\t}",
"void onMessageToast(String string);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n startActivity(new Intent(AllLessonsActivity.this, MainActivity.class));\n // Toast.makeText(AllLessonsActivity.this, \"Hello\" , Toast.LENGTH_LONG).show();\n finish();\n// Intent intent = new Intent(AllLessonsActivity.this, MainActivity.class);\n// String message = \"abc\";\n// intent.putExtra(EXTRA_MESSAGE, message);\n// startActivity(intent);\n }",
"void toast(int resId);",
"@Override\n\t\t \t public void onItemClick(AdapterView<?> arg0, View arg1,int position, long arg3) {\n\t\t \t \n\t\t \t Toast.makeText(getApplicationContext(), \"Clicked at Position\"+position, Toast.LENGTH_SHORT).show();\n\t\t \t }",
"@Override\r\n public void onClick(View view) {\r\n Toast.makeText(context, \"satu\" +list_data.get(getAdapterPosition()), Toast.LENGTH_SHORT).show();\r\n\r\n }",
"@Override\n public void onClick(View image) {\n YoYo.with(Techniques.Pulse).duration(300).playOn(image);\n Toast.makeText(context, namesArray[position], Toast.LENGTH_SHORT).show();\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent =new Intent();\r\n\t\t\t\tintent.setAction(\"tijiaodingdan\");\r\n\t\t\t\tintent.putExtra(\"yisheng\", name);\r\n\t\t\t\tintent.putExtra(\"keshi\", keshitxt);\r\n\t\t\t\tintent.putExtra(\"yishengtype\", yisheng_type);\r\n//\t\t\t\tintent.putExtra(\"time\", shijian);\r\n\t\t\t\tintent.putExtra(\"free\", free);\r\n\t\t\t\tintent.putExtra(\"data\", data);\r\n\t\t\t\tintent.putExtra(\"postion\", postion);\r\n\t\t\t\t startActivity(intent);\r\n\t\t\t\t popuWindow.dismiss();\r\n\t\t\t\t WindowManager.LayoutParams params=context.getWindow().getAttributes(); \r\n\t\t\t params.alpha=1f; \r\n\t\t\t context.getWindow().setAttributes(params); \r\n\t\t\t}",
"@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n Toast.makeText(getApplicationContext(), znamkyItemList.get(position).popis, Toast.LENGTH_LONG).show();\n\n }",
"@Override\n public void onClick(View view) {\n\n Intent Main_Save_Intent = new Intent(getApplicationContext(),PingTestSetup.class);\n Bundle Main_Save_Bundle = new Bundle();\n Main_Save_Bundle.putSerializable(\"Play_TC_List\",Play_TC_List);\n Main_Save_Intent.putExtras(Main_Save_Bundle);\n startActivity(Main_Save_Intent);\n\n\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Bundle b = new Bundle(); //passing values to other activity\n b.putString(\"IP_position\", String.valueOf(position));\n //b.putStringArrayList(\"arrayIP\", peersStr);\n Intent i=new Intent(NeighbourAdd.this, MsgSenderActivity.class);\n i.putExtras(b);\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK); //caller activity eliminated\n startActivity(i);\n\n\n }",
"public void onClick(DialogInterface dialog,int id) {\n Intent in = new Intent(OnOffTime.this,AddTime.class);\n in.putExtra(\"posEdit\",position);\n in.putExtra(\"Start\", collections.get(position).get(\"Start\"));\n in.putExtra(\"Stop\",collections.get(position).get(\"Stop\"));\n in.putExtra(\"Switch\",collections.get(position).get(\"Switch\"));\n in.putExtra(\"DayOfWeeks\",collections.get(position).get(\"DayOfWeeks\"));\n //in.putExtra(\"Sex\",collections.get(position).get(\"Sex\"));\n startActivityForResult(in,202);\n }",
"public void onEventSelected(int position) {\n Toast toast=Toast.makeText(getApplicationContext(),\"Hello Javatpoint\",Toast.LENGTH_SHORT);\n toast.setMargin(50,50);\n toast.show();\n }",
"@Override\n public void onClick(View v) {\n CustomToast.show(getContext(),\"Service will be available Soon\");\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if(web[position]==\"Quad\"){\n Intent appInfo = new Intent(MainActivity.this, QuardView.class);\n startActivity(appInfo);\n\n }\n if(web[position]==\"Triangle\"){\n Intent appInfo = new Intent(MainActivity.this, TriangleView.class);\n startActivity(appInfo);\n\n }\n if(web[position]==\"Triangle2\"){\n Intent appInfo = new Intent(MainActivity.this, TriangleView2.class);\n startActivity(appInfo);\n\n }\n if(web[position]==\"Circle\"){\n Intent appInfo = new Intent(MainActivity.this, CircleView.class);\n startActivity(appInfo);\n\n }\n if(web[position]==\"Formula\"){\n Intent appInfo = new Intent(MainActivity.this, FormulaView.class);\n startActivity(appInfo);\n\n }\n\n\n }",
"@Override\n public void onClick(View v) {\n lastSelectedSpotIndex=position;\n Toast.makeText(context, \"You Clicked \"+categoryNames[position], Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n String toastText = \"Hello World\";\n\n // This is how long we want to show the toast\n int duration = Toast.LENGTH_SHORT;\n\n // Get the context\n Context context = getApplicationContext();\n\n // Create the toast\n Toast toast = Toast.makeText(context, toastText, duration);\n\n // Show the toast\n toast.show();\n }",
"@Override\n public void onClick(View view) {\n\n Intent intent = new Intent(mContext, HelpDetails.class);\n intent.putExtra(\"hid\", item.getHelpId());\n mContext.startActivity(intent);\n\n\n // Toast.makeText(mContext, \"clicked\", Toast.LENGTH_SHORT).show();\n // Toast.makeText(mContext, \"\"+user_id, Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Intent intent = new Intent(getActivity(), InstructionStartActivity.class);\n intent.putExtra(\"title\", MainHomeActivity.origamiTitles[position]);\n intent.putExtra(\"info\", MainHomeActivity.origamiInfo[position]);\n intent.putExtra(\"design\", MainHomeActivity.origamiDesigns[position]);\n startActivity(intent);\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(parent.getContext(), CreateNewAlarm.class);\n intent.putExtra(\"index\", position);\n ((Activity)parent.getContext()).startActivityForResult(intent,\n MainActivity.EDIT_ALARM_REQUEST);\n }",
"@Override\n public void onItemClick(int position, View v) {\n\n if (position == 0) {\n Intent intent = new Intent(getActivity(), Adorama.class);\n startActivity(intent);\n\n }\n\n if (position == 1) {\n Intent intent = new Intent(getActivity(), Apple.class);\n startActivity(intent);\n\n }\n\n if (position == 2) {\n Intent intent = new Intent(getActivity(), Craig.class);\n startActivity(intent);\n\n }\n\n if (position == 3) {\n Intent intent = new Intent(getActivity(), Frys.class);\n startActivity(intent);\n\n }\n\n if (position == 4) {\n Intent intent = new Intent(getActivity(), Rakuten.class);\n startActivity(intent);\n\n }\n\n if (position == 5) {\n Intent intent = new Intent(getActivity(), Sears.class);\n startActivity(intent);\n\n }\n\n if (position == 6) {\n Intent intent = new Intent(getActivity(), Tiger.class);\n startActivity(intent);\n\n }\n\n if (position == 7) {\n Intent intent = new Intent(getActivity(), Woot.class);\n startActivity(intent);\n\n }\n\n\n if (position == 8) {\n Intent intent = new Intent(getActivity(), Sony.class);\n startActivity(intent);\n\n }\n\n\n\n }",
"public void onListItemClick(ListView list, View v, int position, long id)\n {\n Intent intent = new Intent(MainActivity.this, EventActivities.class);\n intent.putExtra(\"c\", position);\n startActivity(intent);\n }",
"public void makeToast(String name,int time){\n toast = new Toast(context);\n// toast.setGravity(Gravity.BOTTOM|Gravity.CENTER_HORIZONTAL , 0, SecretMessageApplication.get720WScale(240));\n toast.setDuration(time);\n// toast.setView(layout);\n toast.show();\n\n }",
"public void recordSteps(View v) {\n\t \t Intent intent = new Intent(this, RecordingActivity.class);\n\t \t int position = (Integer) v.getTag();\n\t\t intent.putExtra(\"Test value\", testList);\n\t\t intent.putExtra(\"int value\", position);\n\t\t startActivity(intent);\n\t }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(context, DetailActivity.class);\n intent.putExtra(\"nb\", nama[position]);\n intent.putExtra(\"gb\", gambar[position]);\n intent.putExtra(\"dt\", detail[position]);\n context.startActivity(intent);\n\n\n\n\n }",
"@Override\n public void onClick(View view) {\n String moviename=pname5.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView textView = (TextView) view.findViewById(R.id.nameToNameTextView);\n String text = textView.getText().toString();\n\n Intent a = new Intent(MainActivity.this, StringUsernameMessages.class);\n a.putExtra(\"myUsername\",mUsername);\n a.putExtra(\"myPersonalMessages\",text);\n a.putExtra(\"secondName\",CHRIS);\n startActivity(a);\n\n //dettach the event listener so not to create duplicates\n if (mChildEventListener != null) {\n mMessagesDatabaseReferenceName.removeEventListener(mChildEventListener);\n mChildEventListener = null;\n }\n\n }",
"@Override\n public void onClick(View v) {\n repeat = \"\";\n if(eventName_array.length == 0){\n title = \"您還沒有創建任何事件\";\n }else{\n title = \"選擇事件\";\n }\n new AlertDialog.Builder(editBeacon.this)\n .setTitle(title)\n .setMultiChoiceItems(\n eventName_array,\n event_select,\n new DialogInterface.OnMultiChoiceClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n // TODO Auto-generated method stub\n\n }\n })\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n\n horizontalList_event=new ArrayList<>();\n\n for (int i = 0; i < event_select.length; i++) {\n if (event_select[i]) { //如果選擇的是true(被勾選)\n eventIdSelect.append(eventId_array[i]).append(\",\");\n //連接stringbuffer eventIdSelect(這是一段傳給Php的stringbuffer)\n\n horizontalList_event.add(eventName_array[i]);\n\n }\n }\n horizontalAdapter_event=new HorizontalAdapter(horizontalList_event);\n LinearLayoutManager horizontalLayoutManagaer\n = new LinearLayoutManager(editBeacon.this, LinearLayoutManager.HORIZONTAL, false);\n horizontal_recycler_view_event.setLayoutManager(horizontalLayoutManagaer);\n horizontal_recycler_view_event.setAdapter(horizontalAdapter_event);\n\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // TODO Auto-generated method stub\n\n }\n }).show();\n\n }",
"@Override\n public void onClick(View view) {\n String moviename=pname3.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }",
"@Override\n public void onClick(View view) {\n Intent sleepIntent = new Intent(MainActivity.this, Sleep_Playlist.class);\n // Start the new activity\n startActivity(sleepIntent);\n }",
"@Override\r\n public void onItemClick(AdapterView<?> parent, View view,\r\n int position, long id) {\n String Slecteditem = itemname[+position];\r\n Toast.makeText(getApplicationContext(), Slecteditem, Toast.LENGTH_SHORT).show();\r\n startActivity(new Intent(unlogin.this, product.class));\r\n }",
"@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int position, long l) {\n Toast.makeText(getActivity(), \"You Clicked \"+position+\" item. Wait For Coming Functions\",\n Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n TextView packagename = (TextView) view.findViewById(R.id.app_package);\n pname = (String) packagename.getText();\n\n TextView appname = (TextView) view.findViewById(R.id.app_name);\n aname = (String) appname.getText();\n\n try {\n //To start the selected application on selecting from the list\n Intent intent = packageManager.getLaunchIntentForPackage(pname);\n Intent sendStuff = new Intent(context.getApplicationContext(), MyAlert.class);\n PakageName = pname;\n AppName = aname;\n if (intent != null) {\n\n //startActivity(intent);\n //Toast.makeText(getApplicationContext(),PakageName,Toast.LENGTH_LONG).show();\n\n DialogUp();\n }\n\n } catch (ActivityNotFoundException nf) {\n } catch (Exception e) {\n }\n\n // Get instance of Vibrator from current Context\n Vibrator mVibrator = (Vibrator)getActivity().getSystemService(Context.VIBRATOR_SERVICE);\n mVibrator.vibrate(80);\n }",
"void setupBtnBack() {\n Intent intent = getIntent();\n Bundle bundle = intent.getExtras();\n String str = bundle.getString(\"str\");\n\n ToastTip(str);\n\n Button btn_back = (Button)findViewById(R.id.btn_btn_back);\n\n btn_back.setOnClickListener(back_listener);\n }",
"@Override\r\n public void onClick(View v) {\n String robodata=\"robot data\";\r\n String stringdata = \"throwing\";\r\n Intent mysqlintent = new Intent(collect_Data.this,mysql.class); //defining the intent.\r\n mysqlintent.putExtra(robodata, stringdata); //putting the data into the intent\r\n startActivity(mysqlintent); //launching the mysql activity\r\n }",
"@Override\n public void onClick(View view) {\n String moviename=pname.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }",
"@Override\n public void onClick(View view) {\n String moviename=pname4.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }",
"@Override\n public void onButtonClick(int nButtonIndex) {\n Toast.makeText(this, \"onButtonClick:\" + nButtonIndex, Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View view) {\n String moviename=pname2.getText().toString();\n\n Intent i=new Intent(getActivity(), dreamgirltrailer.class);\n i.putExtra(\"name\",moviename);\n startActivity(i);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tputExtra();\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View v) {\n\n Toast toast = Toast.makeText(getApplicationContext(), \"Coming soon.\", Toast.LENGTH_SHORT);\n toast.show();\n\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryNameThree[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryName[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }",
"@Override\r\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent();\r\n intent.setClass(Dayschedule.this, Spot_ListMenu.class);\r\n Bundle bundle = new Bundle();\r\n if(name.equals(\"\"))\r\n bundle.putString(\"Add_new_schedule\", \"新的專案唷\");\r\n else\r\n bundle.putString(\"Add_new_schedule\", name);\r\n bundle.putString(\"search_list\", \"自訂清單\");\r\n intent.putExtras(bundle);\r\n startActivity(intent);\r\n finish();\r\n }",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_menu);\n\t\t\n\t\tfinal ListView listview = (ListView) findViewById(R.id.listview); // Setup id list view\n\t String[] values = new String[] { \"Add Audit\",\"Delete Audit\",\"View Audit\",\"Back\"};\n\n\t final ArrayList<String> list = new ArrayList<String>();\n\t for (int i = 0; i < values.length; ++i) {\n\t list.add(values[i]); // add 4 String in String[] to list\n\t }\n\t final StableArrayAdapter adapter = new StableArrayAdapter(this,\n\t android.R.layout.simple_list_item_1, list);\n\t listview.setAdapter(adapter);\n\n\t listview.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\t \t// can hear \"CLICK!\"\n\n\t @Override\n\t public void onItemClick(AdapterView<?> parent, final View view,\n\t int position, long id) { // Keep Click position\n\t \t Bundle bundle = getIntent().getExtras(); // receive 3 values from pevious page\n\t \t int year = bundle.getInt(\"Year\"); // \"--------------------------------\"\n\t \t int month = bundle.getInt(\"Month\");\n\t \t int day = bundle.getInt(\"Day\");\n\t \t final String item = (String) parent.getItemAtPosition(position); // Keep position\n\t \t Toast.makeText(getApplicationContext(), item + \" : \" + day + \"/\" + month + \"/\" + year, Toast.LENGTH_LONG).show(); //Black-box popup\n\t \t if(item.equalsIgnoreCase(\"Back\")){\n\t \t\t finish(); // CLICK Back button then go pevious page\n\t \t }else if(item.equalsIgnoreCase(\"Add Audit\")){\n\t \t\t Toast.makeText(getApplicationContext(), day + \"/\" + month + \"/\" + year, Toast.LENGTH_LONG).show(); //Black-box popup\n\t\t\t\t\tIntent i = new Intent(getApplicationContext(), Add_audit.class); // Prepare go to Add_audit class & page\n\t\t\t\t\ti.putExtra(\"Year\", year); // passing 3 values\n\t\t\t\t\ti.putExtra(\"Month\", month);\n\t\t\t\t\ti.putExtra(\"Day\", day);\n\t\t\t\t\tstartActivity(i); // GO!\n\t \t }else if(item.equalsIgnoreCase(\"Delete Audit\")){\n\t \t\t \tIntent i = new Intent(getApplicationContext(), Delete_audit.class); // Prepare go to Delete_audit class & page\n\t\t\t\t\ti.putExtra(\"Year\", year); // passing 3 values\n\t\t\t\t\ti.putExtra(\"Month\", month);\n\t\t\t\t\ti.putExtra(\"Day\", day);\n\t\t\t\t\tstartActivity(i); // GO!\n\t \t }else if(item.equalsIgnoreCase(\"View Audit\")){\n\t \t\t Intent i = new Intent(getApplicationContext(), View_audit.class); // Prepare go to View_audit class & page\n\t\t\t\t\ti.putExtra(\"Year\", year); // passing 3 values\n\t\t\t\t\ti.putExtra(\"Month\", month);\n\t\t\t\t\ti.putExtra(\"Day\", day);\n\t\t\t\t\tstartActivity(i); // GO!\n\t \t }\n\t }\n\n\t });\n\t}",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(Cardio.this,cardios.get(position).getTitle(), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n String SlectedCountry = countryNameTwo[+position];\n Toast.makeText(getApplicationContext(), SlectedCountry, Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}",
"@Override\n public void onClick(View view) {\n insertLogEntry();\n\n Toast toast = Toast.makeText(getActivity(), \"Sighting logged\", Toast.LENGTH_SHORT);\n toast.show();\n\n // go to the log book activity\n Intent intent = new Intent(getActivity(), LogBookActivity.class);\n startActivity(intent);\n }",
"void toast(CharSequence sequence);",
"@Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) {\n if (isChecked) {\n Toast.makeText(MainActivity.this, item[which], Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void onClick(View view) {\n // Create a new intent\n Intent new_release_intent = new Intent(VietPopActivity.this, MainActivity.class);\n new_release_intent.putExtra(\"uniqueid\",\"from_viet\");\n // Start the new activity\n startActivity(new_release_intent);\n }",
"@Override\n public void onClick(View V) {\n\n int itemPosition = RC.getChildLayoutPosition(V);\n Session session = sessions.get(itemPosition);\n Intent intent = new Intent(context, CharOnSessActivity.class);\n intent.putExtra(\"session_id\", session.getId());\n intent.putExtra(\"player_id\", player_id);\n intent.putExtra(\"sess_date\", session.getStrDate());\n intent.putExtra(\"sess_city\", session.getCity());\n\n\n intent.putExtra(\"mode\", 1);\n parent.getContext().startActivity(intent);\n\n\n }",
"@Override\n public void onClick(View view, final int position) {\n positionSeleced=position;\n FamilyDetails familyMemberDetail=familyDetailsList.get(position);\n Toast.makeText(getApplicationContext(), \"Selected: \" + familyMemberDetail.getName() + \", \" + familyMemberDetail.getUbaindid().toString(), Toast.LENGTH_LONG).show();\n Intent i = new Intent(FamilyInfoActivity.this, FamilyDetailsActivity.class);\n i.putExtra(\"familyrecord\",familyRecord[position]);\n startActivity(i);\n \n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext,CheeseDetailActivity.class);\n intent.putExtra(CheeseDetailActivity.EXTRA_CHEESE_NAME,cheeseString);\n startActivity(intent);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent(context, MainActivity.class);\n intent.putExtra(MainActivity.SELECTED_TAB_EXTRA_KEY, MainActivity.EARNINGS_TAB);\n context.startActivity(intent);\n// Intent intent = new Intent(context, TvBetaActivity.class);\n// context.startActivity(intent);\n\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinal String info3[] = getResources().getStringArray(\r\n\t\t\t\t\t\tR.array.data3);\r\n\t\t\t\tintent = new Intent(context, AnActivity.class);\r\n\t\t\t\tintent.putExtra(\"plane1\", R.drawable.an2ru);\r\n\t\t\t\tintent.putExtra(\"plane2\", R.drawable.an3ru);\r\n\t\t\t\tintent.putExtra(\"plane3\", R.drawable.an6ru);\r\n\t\t\t\tintent.putExtra(\"plane4\", R.drawable.an14ru);\r\n\t\t\t\tintent.putExtra(\"plane5\", R.drawable.an32pru);\r\n\t\t\t\tintent.putExtra(\"plane6\", R.drawable.an74ru);\r\n\t\t\t\tintent.putExtra(\"data\", info3);\r\n\t\t\t\tintent.putExtra(\"switch\", 12);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Bundle bundle = new Bundle();\n bundle.putString(\"name\",daftarGuild.get(position).getNameGuild());\n bundle.putString(\"sub\",daftarGuild.get(position).getSubject());\n bundle.putInt(\"level\",daftarGuild.get(position).getLevelRequirement());\n Intent intent = new Intent(context, AdvGuildDetail.class);\n intent.putExtras(bundle);\n context.startActivity(intent);\n }",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tfinal String info[] = getResources().getStringArray(\r\n\t\t\t\t\t\tR.array.data);\r\n\t\t\t\tintent = new Intent(context, AnActivity.class);\r\n\t\t\t\tintent.putExtra(\"plane1\", R.drawable.an225ru);\r\n\t\t\t\tintent.putExtra(\"plane2\", R.drawable.an124ru);\r\n\t\t\t\tintent.putExtra(\"plane3\", R.drawable.an70ru);\r\n\t\t\t\tintent.putExtra(\"plane4\", R.drawable.an32ru);\r\n\t\t\t\tintent.putExtra(\"plane5\", R.drawable.an22ru);\r\n\t\t\t\tintent.putExtra(\"plane6\", R.drawable.an12ru);\r\n\t\t\t\tintent.putExtra(\"data\", info);\r\n\t\t\t\tintent.putExtra(\"switch\", 0);\r\n\r\n\t\t\t\tstartActivity(intent);\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Toast.makeText(getContext(), \"Not Ready Yet :(\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n int les=AppStart.GetInstance().pickstr.length;\n String[] cop=new String[les];\n\n cop=AppStart.GetInstance().pickstr;\n\n Intent myIntent = new Intent();\n myIntent = new Intent(picking.this, pickingquery.class);\n startActivity(myIntent);\n picking.this.finish();\n\n }",
"@Override\n public void onClick(View view, int position) {\n ArrayList<String> content = new ArrayList<String>();\n content.add(venues.get(position).getId());\n content.add(venues.get(position).getName());\n content.add(venues.get(position).getAddress());\n content.add(venues.get(position).getCategory());\n content.add(venues.get(position).getCheckins());\n Intent intent1 = new Intent(PlacesActivity.this, DescriptionActivity.class);\n intent1.putExtra(\"position\",position);\n intent1.putExtra(\"token\",token);\n intent1.putStringArrayListExtra(\"content\",content);\n startActivity(intent1);\n }",
"@Override\n public void onClick(View view)\n {\n String nameSend = strGPSName;\n\n // Intent from HeartRateFragment to NameActivity //\n Intent intentName = new Intent(getActivity(), GPSNameActivity.class);\n intentName.putExtra(\"nameSend\", nameSend); // Send the value of the status field to GPSNameActivity //\n startActivity(intentName);\n }",
"@Override\n public void onItemClick(View view, Item obj, int position) {\n switch(obj.getName().toString()){\n\n case \"Get Started\":\n Intent intent1 = new Intent(getActivity().getBaseContext(), TutorialGettingStarted.class);\n getActivity().startActivity(intent1);\n break;\n case \"C Hello World\":\n Intent intent2 = new Intent(getActivity().getBaseContext(), TutorialHelloWorld.class);\n getActivity().startActivity(intent2);\n break;\n case \"The a+b Problem\":\n Intent intent3 = new Intent(getActivity().getBaseContext(), TutorialAPlusBProblem.class);\n getActivity().startActivity(intent3);\n break;\n case \"Integers Sorting\":\n Intent intent4 = new Intent(getActivity().getBaseContext(), TutorialIntegersSorting.class);\n getActivity().startActivity(intent4);\n break;\n case \"Pointers in C\":\n Intent intent5 = new Intent(getActivity().getBaseContext(), TutorialPointers.class);\n getActivity().startActivity(intent5);\n break;\n }\n }",
"@Override\n public void onSkillClick(int skill_id, int position) {\n\n Intent intent = new Intent(MainActivity.this, SkillActivity.class);\n intent.putExtra(\"REQUESTED_SKILL\", skill_id);\n startActivity(intent);\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String deliveryOrder=order+\"\\t\"+noOfPlates;\n arrayList.add(deliveryOrder);\n Intent intent=new Intent(Confirm.this,DeliveryAddress.class);\n intent.putExtra(\"mylist\",arrayList);\n startActivity(intent);\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tToast.makeText(context, \"You Clicked \"+imageId[position], Toast.LENGTH_LONG).show();\n\t\t\t}",
"@Override\n public void onMenuClick() {\n Toast.makeText(activity.getApplicationContext(), \"Menu click\",\n Toast.LENGTH_LONG).show();\n }",
"@Override\n public void onClick(View v) {\n\n\n final String catID = v.getTag(R.id.relativeLayoutthumbnail).toString();\n File_Confix_Data.string_id_data = catID;\n // Toast.makeText(MainactivityMain_Healthy_S.this, File_Confix_Data.string_id_data, Toast.LENGTH_SHORT).show();\n\n\n for (int i = 0; i < File_Confix_Data.getOutput_List_Data.size(); i++) {\n\n if (File_Confix_Data.getOutput_List_Data.get(i).getHealthy_id().equals(File_Confix_Data.string_id_data)) {\n\n File_Confix_Data.position_id = i;\n }\n }\n //Toast.makeText(MainactivityMain_Healthy_S.this, File_Confix_Data.string_id_data+\" \"+File_Confix_Data.position_id, Toast.LENGTH_SHORT).show();\n\n Intent intent = new Intent(Mainactivity_Healthy.this, SuccessActivity_Healthy.class);\n startActivity(intent);\n }",
"private void toast(String aToast) {\n Toast.makeText(getApplicationContext(), aToast, Toast.LENGTH_LONG).show();\n }",
"public void onItemClick(AdapterView<?> parent, View v,\n int position, long id) {\n Intent intent = new Intent(TwitchGames.this, TwitchStreams.class);\n //pass the name of the game to the new intent\n intent.putExtra(\"gameName\", gameList.get(position));\n intent.putExtra(\"gameViewers\", channelViewersList.get(position));\n startActivity(intent);\n }",
"public void onClick(View v) {\n Toast.makeText( getActivity(),\"Voice Recognition\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onClick(View v) {\n if(handler!=null){\n Message msg = new Message();\n Bundle bundle = new Bundle();\n bundle.putInt(\"data\", loc);\n msg.what = CHOICE_CONTROL_TAIL;\n msg.setData(bundle);\n handler.sendMessage(msg);\n }\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(mContext, PlayListClass.class);\n intent.putExtra(\"PlayListname\" , playlistname.get(position));\n intent.putExtra(\"number\" , usernumber);\n intent.putExtra(\"status\" , status.get(position));\n mContext.startActivity(intent);\n }",
"@Override\n public void onClick(DialogInterface dialog, int which) {\n\n horizontalList_event=new ArrayList<>();\n\n for (int i = 0; i < event_select.length; i++) {\n if (event_select[i]) { //如果選擇的是true(被勾選)\n eventIdSelect.append(eventId_array[i]).append(\",\");\n //連接stringbuffer eventIdSelect(這是一段傳給Php的stringbuffer)\n\n horizontalList_event.add(eventName_array[i]);\n\n }\n }\n horizontalAdapter_event=new HorizontalAdapter(horizontalList_event);\n LinearLayoutManager horizontalLayoutManagaer\n = new LinearLayoutManager(editBeacon.this, LinearLayoutManager.HORIZONTAL, false);\n horizontal_recycler_view_event.setLayoutManager(horizontalLayoutManagaer);\n horizontal_recycler_view_event.setAdapter(horizontalAdapter_event);\n\n }",
"@Override\n public void onClick(View v) {\n if (mModelList.get(position).getMatchStarted()==\"true\") {\n String temp=mModelList.get(position).getWinner()+\" \"+mModelList.get(position).getTeam1()\n +\" \"+mModelList.get(position).getTeam2();\n Log.d(\"onClick: \",temp);\n Intent i = new Intent(mContext, Main3Activity.class);\n i.putExtra(\"Matches\",mModelList.get(position));\n mContext.startActivity(i);\n }\n else{\n Toast.makeText(mContext ,\"Match has not yet Started \"+mModelList.get(position).getWinner(), Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n public void OnItemClick(int position, View view) {\n switch (position) {\n case NOFITY_CENTER:\n CommHelper.insert_visit(getActivity(), \"notifypg\");\n Intent mintent = new Intent(getActivity(), ReportActivity.class);\n mintent.putExtra(\"pagenm\", getResources().getString(R.string.notifycenter));\n mintent.putExtra(\"gender\", SPHelper.getDetailMsg(getActivity(), Cons.APP_SEX, \"M\"));\n mintent.putExtra(\"url\", String.format(Cons.NOTIFYTEXT, \"notify\", \"step\", SPHelper.getBaseMsg(getActivity(), \"mid\", \"0\")));\n getActivity().startActivity(mintent);\n break;\n case REPORT:\n CommHelper.insert_visit(getActivity(), \"reportpg\");\n Intent rintent = getIntent(getResources().getString(R.string.report_title), SPHelper.getDetailMsg(getActivity(), Cons.APP_SEX, \"M\"), Cons.REPORT_URL + SPHelper.getBaseMsg(getActivity(), \"mid\", \"00000\"));\n getActivity().startActivity(rintent);\n break;\n case SETTING:\n CommHelper.insert_visit(getActivity(), \"settingpg\");\n Intent intent = new Intent(getActivity(), SettingActivity.class);\n getActivity().startActivity(intent);\n /* Intent iintentB = new Intent(getActivity(), TalkingPicsBActivity.class);\n getActivity().startActivity(iintentB);*/\n break;\n\n case QUES:\n Intent qintent = getIntent(getResources().getString(R.string.mine_item4), SPHelper.getDetailMsg(getActivity(), Cons.APP_SEX, \"M\"), String.format(Cons.NOTIFYTEXT, \"question\", \"step\", SPHelper.getBaseMsg(getActivity(), \"mid\", \"123\")));\n getActivity().startActivity(qintent);\n break;\n case HONOR_HALL:\n Intent iintent = new Intent(getActivity(), HonorHallActivity.class);\n getActivity().startActivity(iintent);\n /* Intent iintentA = new Intent(getActivity(), TalkingPicsActivity.class);\n getActivity().startActivity(iintentA);*/\n break;\n default:\n break;\n }\n }",
"@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int position, long id) {\n switch (position)\n {\n case 1:\n break;\n case 2:\n Toast.makeText(this,appointmentTypes[position],Toast.LENGTH_LONG).show();\n /*Intent intent = new Intent(getApplicationContext(), AppointmentRequests.class);\n Bundle b = new Bundle();\n b.putString(\"userid\",userid);\n intent.putExtras(b);\n startActivity(intent);*/\n break;\n case 3:\n break;\n }\n }",
"@Override\nprotected void onResume() {\n\tsuper.onResume();\n\t//Toast.makeText(getApplicationContext(), \"onResume\", 1).show();\n}"
]
| [
"0.69554234",
"0.63475025",
"0.6292452",
"0.62714696",
"0.6155653",
"0.6113391",
"0.6106886",
"0.6077149",
"0.60093707",
"0.59690636",
"0.59284645",
"0.59177536",
"0.5910356",
"0.5898368",
"0.5858284",
"0.58438",
"0.58203113",
"0.5819692",
"0.58196896",
"0.5818681",
"0.58115226",
"0.579191",
"0.5761271",
"0.5756075",
"0.5742242",
"0.57214993",
"0.5698494",
"0.56953746",
"0.5692776",
"0.56857437",
"0.56735057",
"0.5666561",
"0.5636275",
"0.5632017",
"0.5619465",
"0.55803066",
"0.55775565",
"0.55656135",
"0.55579287",
"0.55544746",
"0.555244",
"0.55466145",
"0.55449",
"0.55278444",
"0.5514892",
"0.5514539",
"0.55074406",
"0.55055755",
"0.55030125",
"0.5498881",
"0.54979545",
"0.54979396",
"0.54904115",
"0.5487013",
"0.54807794",
"0.54793054",
"0.5474741",
"0.54737604",
"0.546641",
"0.5464145",
"0.54629266",
"0.5456784",
"0.54547834",
"0.54538554",
"0.5447179",
"0.5443781",
"0.5443474",
"0.54424185",
"0.5438672",
"0.54374844",
"0.5434192",
"0.543398",
"0.54271036",
"0.54259485",
"0.5420499",
"0.5415875",
"0.5412859",
"0.5411006",
"0.5409999",
"0.54084575",
"0.54075813",
"0.5400793",
"0.539974",
"0.5398855",
"0.5392992",
"0.539071",
"0.538818",
"0.5387135",
"0.53862894",
"0.53851265",
"0.5372784",
"0.53678244",
"0.5364678",
"0.5361967",
"0.5356686",
"0.5356551",
"0.5352234",
"0.53515416",
"0.5351428",
"0.5347888"
]
| 0.64727545 | 1 |
Create a new state | public ControllerState(String stateString)
{
if (stateString == null)
throw new IllegalArgumentException("Null state string");
this.stateString = stateString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void create( State state );",
"StateType createStateType();",
"public State(){}",
"@Override\r\n public IObjectiveState createState(final Serializable staticState) {\r\n return new InternalState(this.m_func.createState(staticState));\r\n }",
"IfaceState createState(int nlocal,IfaceSafetyStatus sts);",
"public ActionState createActionState();",
"public State createState(final Point point) {\n\t\tint i = 0;\n\t\twhile (getStateWithID(i) != null) {\n\t\t\ti++;\n\t\t}\n\t\tfinal State state = new State(i, point, this);\n\t\taddState(state);\n\t\treturn state;\n\t}",
"public State () {\n\t\tthis.stateId = generateStateId();\n\t}",
"public State createState(Environment environmentIn, State oldState)\n\t{\n\t\treturn new MarioState(environmentIn, oldState);\n\t}",
"protected SceneGraphObjectState createState( SceneGraphObject obj, Controller control ) {\n\n return control.createState( obj );\n }",
"public void createStartState(){\n\t\tState startState = new State();\n\t\tstartState.setName(\"qStart\");\n\t\taddState(startState);\n\t\tthis.startState = startState;\n\t}",
"public abstract IState createState(ISemanticObject<?> observable, IContext context) throws ThinklabException;",
"public State getNewState() {\n return newState;\n }",
"public State(T state) {\r\n\t\tthis.state = state;\r\n\t}",
"public State getNewState() {\n\t\treturn newState;\n\t}",
"CompositeState createCompositeState();",
"private State(String name, int index) {\r\n \t\t\tthis.index = index;\r\n \t\t\tthis.name = name;\r\n \t\t}",
"public final com.francetelecom.admindm.model.Parameter createState()\n\t\t\tthrows Fault {\n\t\tcom.francetelecom.admindm.model.Parameter param;\n\t\tparam = data.createOrRetrieveParameter(basePath + \"State\");\n\t\tparam.setNotification(0);\n\t\tparam.setStorageMode(StorageMode.DM_ONLY);\n\t\tparam.setActiveNotificationDenied(true);\n\t\tparam.setType(ParameterType.STRING);\n\t\tparam.setValue(\"\");\n\t\tString[] values = { \"Running\", \"Sleeping\", \"Stopped\", \"Idle\",\n\t\t\t\t\"Uninterruptible\", \"Zombie\", };\n\t\tparam.addCheck(new CheckEnum(values));\n\t\tparam.setWritable(false);\n\t\treturn param;\n\t}",
"State.Builder<E, S, A> to(S state);",
"public State state();",
"public final State createStateWithId(final Point point, final int i) {\n\t\tfinal State state = new State(i, point, this);\n\t\taddState(state);\n\t\treturn state;\n\t}",
"public State(String fromString)\n {\n// Metrics.increment(\"State count\");\n //...\n }",
"State(String name)\n\t\t{\n\t\t\tthis.name = name;\n\t\t}",
"StateMachineType createStateMachineType();",
"StatePac build();",
"public State()\n {\n this(\"\");\n }",
"public TaskState getNewTaskState(){\n\n TaskState newState = new TaskState();\n\n newState.graph = new DescGraph();\n newState.moveStack = new Stack<>();\n newState.hasSolution = false;\n newState.isNew = true;\n\n newState.moveStack.push(\n new HorseMove(newState.graph.getFirst())\n );\n\n return newState;\n\n }",
"public DockableState getNewState() {\n\t\treturn newState;\n\t}",
"DeviceState createDeviceState();",
"public abstract S createWindowState();",
"@Override // kotlinx.coroutines.flow.internal.AbstractSharedFlow\n public StateFlowSlot createSlot() {\n return new StateFlowSlot();\n }",
"public StateInfo createStateInfo() {\n return new JJStateInfo();\n }",
"public NewTransitionRecord(){\r\n fromstate = 0;\r\n tostate = 0;\r\n rate = 0.0;\r\n }",
"StatePacBuilder operationalState(OperationalState operationalState);",
"public State() {\n resetTransitions();\n id = next_id++;\n }",
"ControllerState getNewObjectState();",
"<C, S> StateExp<C, S> createStateExp();",
"public abstract State clone();",
"private State createNewState(State oldState, SketchNode sk, OpNonterminalSymbol opSym, int argSize, int[] ks) {\n\n if (opSym.name.contains(\"repeat\") && Main.SYMBOLOC_ENABLED == 0 && ks == null) assert false;\n\n State newState = new State(oldState);\n assert (oldState.pp.numRefinementSketch == newState.pp.numRefinementSketch);\n\n VariableNode newV = newState.pp.findSelectedVar();\n\n if (newV.depth == Main.DEPTH_LIMIT) return null;\n\n Node[] args = new Node[argSize];\n OperatorNode add = newState.pp.mkOperatorNode(opSym, newV.parent, args);\n\n if (argSize == 1) {\n\n assert (opSym.name.equals(\"optional\") || opSym.name.equals(\"star\"));\n add.args.set(0, newState.pp.mkVarNode(sk, add, false, true, (newV.depth + 1)));\n\n } else if (argSize == 2) {\n\n assert (opSym.name.equals(\"repeat\") || opSym.name.equals(\"repeatatleast\"));\n add.args.set(0, newState.pp.mkVarNode(sk, add, false, true, (newV.depth + 1)));\n\n if (Main.SYMBOLOC_ENABLED == 0) {\n add.args.set(1, newState.pp.mkRealConstantNode(ks[0], add));\n } else {\n add.args.set(1, newState.pp.mkSymbolicConstantNode(add));\n }\n\n newState.pp.numRepeat++;\n } else if (argSize == 3) {\n assert (opSym.name.equals(\"repeatrange\"));\n add.args.set(0, newState.pp.mkVarNode(sk, add, false, true, (newV.depth + 1)));\n if (Main.SYMBOLOC_ENABLED == 0) {\n add.args.set(1, newState.pp.mkRealConstantNode(ks[0], add));\n add.args.set(2, newState.pp.mkRealConstantNode(ks[1], add));\n } else {\n add.args.set(1, newState.pp.mkSymbolicConstantNode(add));\n add.args.set(2, newState.pp.mkSymbolicConstantNode(add));\n }\n\n newState.pp.numRepeat++;\n } else {\n throw new RuntimeException();\n }\n\n newState.pp.substituteVar(newV, add);\n newState.cost += opSym.prod.cost;\n// newState.cost = Math.floor(newState.cost) + opSym.prod.cost;\n\n if (newState.pp.numRepeat > Main.EXTRA_REPEAT_THRESHOLD) newState.cost += Main.EXTRA_REPEAT_COST;\n if (checkConsecutiveRepeat(add)) newState.cost += Main.CONSECUTIVE_REPEAT_COST;\n if (newV.containNot) newState.cost += Main.REPEAT_WITHIN_NOT;\n\n if (newV.parent != null && !(newV.parent instanceof RepSketchNode)) {\n if (((OperatorNode) newV.parent).operatorName.equals(\"not\")) {\n newState.cost += Main.NOT_NOT_CONTAIN_SW_EW_PATTERN;\n }\n }\n\n\n assert (newState.pp.varNodes.size() >= newState.pp.numRefinementSketch) : newState.toString();\n\n return newState;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"New Game State\";\n\t}",
"private State createNewState(State oldState, SketchNode sk, OpNonterminalSymbol opSym) {\n\n assert (opSym.prod.operatorName.equals(\"not\"));\n\n State newState = new State(oldState);\n assert (oldState.pp.numRefinementSketch == newState.pp.numRefinementSketch);\n VariableNode newV = newState.pp.findSelectedVar();\n\n if (newV.depth == Main.DEPTH_LIMIT) return null;\n\n Node[] args = new Node[1];\n OperatorNode add = newState.pp.mkOperatorNode(opSym, newV.parent, args);\n\n add.args.set(0, newState.pp.mkVarNode(sk, add, true, false, (newV.depth + 1)));\n\n newState.pp.substituteVar(newV, add);\n newState.cost += opSym.prod.cost;\n// newState.cost = Math.floor(newState.cost) + opSym.prod.cost;\n\n if (newV.containNot) newState.cost += Main.MORE_THAN_ONE_NOT;\n\n assert (newState.pp.varNodes.size() >= newState.pp.numRefinementSketch) : newState.toString();\n return newState;\n }",
"public State addState(String name) {\r\n \t\tState state = states.get(name);\r\n \t\tif (state == null) {\r\n \t\t\tstate = new State(name, index++);\r\n \t\t\tstates.put(name, state);\r\n \t\t\ttransitions.put(name, new Transition(state));\r\n \t\t}\r\n \r\n \t\treturn state;\r\n \t}",
"public void getState();",
"LabState state();",
"private InterpreterState(final String statename) {\n name = statename;\n }",
"public State(String state_rep) {\n\t\tthis.state_rep = state_rep;\n\t}",
"public GameState(State.StateView state) {\n }",
"Stone create();",
"public String getNewState()\n\t{\n\t\treturn (UUID.randomUUID().toString());\n\t}",
"public static GameState createInstance() {\n\t\treturn new GameState();\n\t}",
"public Node(State state) {\r\n\t\t\tthis.state=state;\r\n\t\t}",
"public interface StateBuilder {\n\n /**\n * Creates the state.\n *\n * @return the state.\n */\n State build();\n\n /**\n * Changes the acceptance of the state, to the specified value.\n *\n * @param acceptance\n * new acceptance.\n */\n void changeAcceptance(final boolean acceptance);\n\n /**\n * Checks if a state is a accepting state.\n *\n * @return acceptance of the state.\n */\n boolean isAccepting();\n\n /**\n * Returns the state number.\n *\n * @return the state number.\n */\n String getId();\n}",
"public synchronized RegionState createRegionState(final HRegionInfo hri) {\n String regionName = hri.getEncodedName();\n RegionState regionState = regionStates.get(regionName);\n if (regionState != null) {\n LOG.warn(\"Tried to create a state of a region already in RegionStates \"\n + hri + \", used existing state: \" + regionState\n + \", ignored new state: state=OFFLINE, server=null\");\n } else {\n regionState = new RegionState(hri, State.OFFLINE);\n regionStates.put(regionName, regionState);\n }\n return regionState;\n }",
"public void applyNewState() {\n this.setAlive(this.newState);\n }",
"public TIndiaState createTIndiaState(final TIndiaState tIndiaState) {\n\t\tLOGGER.info(\"=========== Create TIndiaState ===========\");\n//\t\treturn gisDAO.store(tIndiaState);\n\t\treturn null;\n\t}",
"public GameState() {}",
"private State newBasicState(final boolean acceptance) {\n final State state = new BasicState(String.valueOf(states.size()));\n\n states.put(state.getId(), state);\n if (acceptance) {\n acceptStates.put(state.getId(), state);\n }\n\n return state;\n }",
"DynamicCompositeState createDynamicCompositeState();",
"private StateUtils() {}",
"Object getState();",
"StateMachineFactory getStateMachineFactory();",
"private static void generateState() {\n byte[] array = new byte[7]; // length is bounded by 7\n new Random().nextBytes(array);\n STATE = new String(array, Charset.forName(\"UTF-8\"));\n }",
"public DFAState(String name) {\n this.name = name;\n this.hashCode = name.hashCode();\n }",
"@Override\n public StateList addState(State state) {\n System.out.println(\"Adding state \" + this.name);\n ChaincodeStub stub = this.ctx.getStub();\n System.out.println(\"Stub=\" + stub);\n String[] splitKey = state.getSplitKey();\n System.out.println(\"Split key \" + Arrays.asList(splitKey));\n\n CompositeKey ledgerKey = stub.createCompositeKey(this.name, splitKey);\n System.out.println(\"ledgerkey is \");\n System.out.println(ledgerKey);\n\n byte[] data = State.serialize(state);\n System.out.println(\"ctx\" + this.ctx);\n System.out.println(\"stub\" + this.ctx.getStub());\n this.ctx.getStub().putState(ledgerKey.toString(), data);\n\n return this;\n }",
"public String getNewStateName() {\n\t\tstateCounter.getAndIncrement();\n\t\tString state = makeStateName(stateCounter.get(), false);\n\t\treturn state;\n\t}",
"public WorldState ()\n\t{\n\t\tproperties = new HashMap<String, WorldStateProperty>();\n\t}",
"public void testCtor() {\n assertNotNull(\"Failed to create a new AddActionStateAction instance.\", action);\n assertTrue(\"The state should be formatted.\", state.isSpecification());\n }",
"@Override\n\tpublic void setState(State state) \n\t\t{ current = new PuzzleState(state.getString(state.getState()),\n\t\t\t\t\t\t\t\t\tstate.getString(state.getGoalState())); \n\t\t}",
"public StateChange(String state) {\n\t\tthis(state, Change.ADD);\n\t}",
"Update withState(String state);",
"@Override\n\tpublic void addState(String name) {\n\t\tNFAState s = checkIfExists(name);\n\t\tif( s == null){\n\t\t\ts = new NFAState(name);\n\t\t\taddState(s);\n\t\t} else {\n\t\t\tSystem.out.println(\"WARNING: A state with name \" + name + \" already exists in the NFA\");\n\t\t}\n\t\t\n\t}",
"private OperatorStateBackend createOperatorStateBackend() throws Exception {\n\t\treturn getStateBackend().createOperatorStateBackend(\n\t\t\tnew DummyEnvironment(), \"test_op\", Collections.emptyList(), new CloseableRegistry());\n\t}",
"@Override\r\n public Serializable createStaticState() {\r\n return this.m_func.createStaticState();\r\n }",
"public States(Gameengine game) {\r\n\t\tthis.game = game;\r\n\t}",
"public StateofPancakes(StateofPancakes state) {\r\n N = state.N;\r\n\tcurr_state = new int[N];\r\n for(int i=0; i<N; i++) \r\n curr_state[i] = state.curr_state[i];\r\n}",
"public static void set_state (int state, String str, int n1, int n2) {\n stateList.add(new State(state,str,n1,n2)); // Add state into the list\n }",
"void newGame() {\n\t\tstate = new model.State () ; \n\t\tif(host != null ) host.show(state) ; \n\t}",
"State(Main aMain) {\n\tmain = aMain;\n\tback = Integer.parseInt(main.myProps.getProperty(\"yesterdays\"));\n\tfront = Integer.parseInt(main.myProps.getProperty(\"tomorrows\"));\n\tmaps = new Hashtable();\n availWeath = new Hashtable();\n\n main.myFrw.listen(new MapListener(), ScaledMap.TYPE, null);\n main.myFrw.announce(this);\n stateDoc = Framework.parse(main.myPath + \"state.xml\", \"state\");\n availWeath = loadFromDoc();\n }",
"public MenuState(Nifty nifty) {\n\t\tsuper();\n\t\tthis.nifty = nifty;\n\t}",
"State getState();",
"State getState();",
"State getState();",
"State getState();",
"@Test\n public void Test_Maintain_State() {\n Map<String, Integer> inMap = new HashMap<>();\n calc = new StomaStateCalculator(3, 800);\n\n inMap.put(\"UrineColour\", 2);\n inMap.put(\"UrineFrequency\", 3);\n inMap.put(\"Volume\", 600);\n inMap.put(\"Consistency\", 2);\n inMap.put(\"PhysicalCharacteristics\", 6);\n\n assertEquals(\"Green\", calc.getState());\n assertEquals(3.0, calc.getStateVal(), 0.0);\n\n calc.Calculate_New_State(inMap);\n\n assertEquals(\"Green\", calc.getState());\n assertEquals(3.0, calc.getStateVal(), 0.0);\n }",
"public InstructionsState(int stateID){\r\n\t\tthis.stateID = stateID;\r\n\t}",
"private SavedState(Parcel parcel) {\n super(parcel);\n boolean bl2 = parcel.readInt() != 0;\n this.isOpen = bl2;\n }",
"public S getRandomState();",
"public SavedState createFromParcel(Parcel parcel) {\r\n return new SavedState(parcel, null);\r\n }",
"public State(Machine machine, String name) {\n this.machine = machine;\n this.name = name;\n }",
"private State createNewState(State oldState, SketchNode sk, OpNonterminalSymbol opSym, int argSize, int mode) {\n\n State newState = new State(oldState);\n assert (oldState.pp.numRefinementSketch == newState.pp.numRefinementSketch);\n VariableNode newV = newState.pp.findSelectedVar();\n\n if (newV.depth == Main.DEPTH_LIMIT) return null;\n\n Node[] args = new Node[argSize];\n OperatorNode add = newState.pp.mkOperatorNode(opSym, newV.parent, args);\n\n if (argSize == 1) {\n add.args.set(0, newState.pp.mkVarNode(sk, add, false, newV.containRepeat, (newV.depth + 1)));\n if (opSym.name.equals(\"startwith\") || opSym.name.equals(\"endwith\") || opSym.name.equals(\"contain\")) {\n if (newV.containRepeat) {newState.cost += Main.SW_EW_CONTAIN_IN_REPEAT;}\n }\n } else {\n switch (mode) {\n case 0: {\n add.args.set(0, newState.pp.mkVarNode(sk, add, false, newV.containRepeat, (newV.depth + 1)));\n add.args.set(1, newState.pp.mkVarNode(sk, add, false, newV.containRepeat, (newV.depth + 1)));\n break;\n }\n case 1: {\n add.args.set(0, newState.pp.mkVarNode(add, false, newV.containRepeat, (newV.depth + 1)));\n add.args.set(1, newState.pp.mkVarNode(sk, add, false, newV.containRepeat, (newV.depth + 1)));\n break;\n }\n case 2: {\n add.args.set(0, newState.pp.mkVarNode(sk, add, false, newV.containRepeat, (newV.depth + 1)));\n add.args.set(1, newState.pp.mkVarNode(add, false, newV.containRepeat, (newV.depth + 1)));\n break;\n }\n default: {\n throw new RuntimeException();\n }\n }\n }\n\n newState.pp.substituteVar(newV, add);\n newState.cost += opSym.prod.cost;\n// newState.cost = Math.floor(newState.cost) + opSym.prod.cost;\n if (newV.parent != null && !(newV.parent instanceof RepSketchNode)) {\n if (((OperatorNode) newV.parent).operatorName.equals(\"not\")) {\n if (!(opSym.name.equals(\"startwith\") || opSym.name.equals(\"endwith\") || opSym.name.equals(\"contain\"))) {\n newState.cost += Main.NOT_NOT_CONTAIN_SW_EW_PATTERN;\n }\n }\n }\n\n assert (newState.pp.varNodes.size() >= newState.pp.numRefinementSketch) : newState.toString();\n//\n return newState;\n }",
"private Transition(State sourceState) {\r\n \t\t\tthis.sourceState = sourceState;\r\n \t\t\tthis.nextStateInfo = new ArrayList<NextStateInfo>();\r\n \t\t}",
"public State(String name) {\n\t\tthis.name = name;\n\t\tif (name.endsWith(\"a\")) {\n\t\t\tsetAccepting();\n\t\t} else if (name.endsWith(\"d\")) {\n\t\t\tsetDeclining();\n\t\t} else if (name.endsWith(\"f\")) {\n\t\t\tsetFinal(true);\n\t\t}\n\t}",
"public State (){\n for ( int i = 0 ; i < 5; i ++){\n philosopherNum[i] = i;\n currentState[i] = \"thinking\";\n conditions[i] = mutex.newCondition();\n }\n }",
"protected abstract int newState();",
"@Override\n public int addState(String stateName) {\n int status=0;\n StateTb s=new StateTb();\n s.setStateName(stateName);\n s.setIsActive(1);\n em.persist(s);\n status=1;\n return status;\n }",
"@Override\n\tpublic void setState(STATE state) {\n\n\t}",
"protected SceneGraphObject createNode( Class state ) {\n\tSceneGraphObject ret;\n\n\ttry {\n\t ret = (SceneGraphObject)state.newInstance();\n\n\t //System.err.println(\"Created J3D node for \"+className );\n\t} catch( IllegalAccessException exce ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tstate.getClass().getName()+\" - IllegalAccess\" );\n\t} catch( InstantiationException excep ) {\n\t throw new SGIORuntimeException( \"Broken State class for \"+\n\t\t\t\t\t\tstate.getClass().getName() );\n\t}\n\n\treturn ret;\n }",
"public ATNState newState(GrammarAST node) {\n ATNState n = new BasicState();\n if (currentRule != null) {\n n.setRuleIndex(currentRule.index);\n }\n atn.addState(n);\n return n;\n }",
"public void createTaskStateData() throws DataLayerException\r\n\t{\r\n\t\t// ---------------------------------------------------------------\r\n\t\t// Task States\r\n\t\t// ---------------------------------------------------------------\r\n\t\tState[] values = TaskState.State.values();\r\n\t\tfor (TaskState.State state : values)\r\n\t\t{\r\n\t\t\tTaskState taskState = createHelper.createTaskState(0);\r\n\t\t\ttaskState.setState(state);\r\n\t\t\ttaskStateDao.save(taskState);\r\n\r\n\t\t\tLOG.info(taskState.toString());\r\n\t\t}\r\n\t}",
"public static State startState() {\n return new State(StateTypes.q0);\n }",
"protected AGG_State( String s )\n {\n name = s;\n nameHash.put( s, this );\n intValue = index;\n intHash.put( new Integer( intValue ), this );\n }"
]
| [
"0.8538369",
"0.7393937",
"0.7296307",
"0.72710025",
"0.72092116",
"0.7118763",
"0.7009286",
"0.6974903",
"0.6969525",
"0.6947315",
"0.6854114",
"0.68307716",
"0.681365",
"0.67961276",
"0.6770595",
"0.67424214",
"0.6734293",
"0.6722289",
"0.66585094",
"0.66517335",
"0.6611772",
"0.6594548",
"0.6570655",
"0.6503478",
"0.6477781",
"0.6435992",
"0.6432988",
"0.64158016",
"0.64100957",
"0.64059824",
"0.6402398",
"0.640231",
"0.6398771",
"0.6376464",
"0.6367882",
"0.63261324",
"0.6325984",
"0.6323774",
"0.63085955",
"0.62888455",
"0.6282051",
"0.6280903",
"0.62782514",
"0.6273436",
"0.624197",
"0.622158",
"0.6214084",
"0.62103057",
"0.6195334",
"0.6192801",
"0.61768997",
"0.6175037",
"0.61411434",
"0.6137443",
"0.6126636",
"0.61175716",
"0.61140585",
"0.6113226",
"0.6108639",
"0.6103337",
"0.6093843",
"0.6085571",
"0.60703623",
"0.6068615",
"0.6056196",
"0.60383916",
"0.60205466",
"0.60122645",
"0.60094666",
"0.6004758",
"0.6000427",
"0.5999295",
"0.59983563",
"0.5992269",
"0.5990813",
"0.59821737",
"0.5977844",
"0.59597135",
"0.59542245",
"0.5951184",
"0.5951184",
"0.5951184",
"0.5951184",
"0.594761",
"0.5944568",
"0.594181",
"0.5920747",
"0.59186643",
"0.5914566",
"0.5909965",
"0.59065485",
"0.58951604",
"0.5877674",
"0.58709884",
"0.5851896",
"0.58407056",
"0.58339083",
"0.58274955",
"0.5824057",
"0.5823924",
"0.5813771"
]
| 0.0 | -1 |
Get the state string | public String getStateString()
{
return stateString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getState();",
"String getState();",
"String getState();",
"String getState();",
"public String getStateString()\r\n\t{\r\n\t\treturn stateString;\r\n\t}",
"public java.lang.String getState() {\r\n return state;\r\n }",
"public java.lang.String getState() {\n return state;\n }",
"public java.lang.String getState() {\n return state;\n }",
"public String getState() {\n\t\treturn state.toString();\n\t}",
"public java.lang.String getState () {\n\t\treturn state;\n\t}",
"public java.lang.String getState() {\n return State;\n }",
"public java.lang.String getState() {\n java.lang.Object ref = state_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n state_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getStateAsString() {\n return storeStateIntoString();\n }",
"public java.lang.String getState() {\n java.lang.Object ref = state_;\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 state_ = s;\n }\n return s;\n }\n }",
"public String getState() { return state; }",
"public String getState() {\n return state;\n }",
"public String getState() \n\t{\n\t\treturn state;\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state;\r\n\t}",
"public String getState()\n {\n \treturn state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"public String getState() {\n return state;\n }",
"@Override\n\tpublic String getState() {\n\t\treturn this.state;\n\t}",
"public String getState() {\r\n\t\treturn state;\t\t\r\n\t}",
"public String getState(){\n return state;\n }",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState() {\r\n\t\treturn state;\r\n\t}",
"public String getState()\n\t{\n\t\treturn state;\n\t}",
"public String getState() {\n\t\treturn state;\n\t}",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"@AutoEscape\n\tpublic String getState();",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn state.toString();\r\n\t}",
"@Output\n public String getState() {\n return state;\n }",
"public String getState() {\n return this.state;\n }",
"public String getState() {\n return this.state;\n }",
"public String state() {\n return this.state;\n }",
"public String state() {\n return this.state;\n }",
"public abstract String getState();",
"@Override\n public String toString()\n {\n return state.toString();\n }",
"@Override\n public String getState()\n {\n return state;\n }",
"public String getState() {\n\t\treturn this.state_rep;\n\t}",
"public String state() {\n\treturn state(points, temperature, currentStateEnergy);\n }",
"String getCurrentState() {\n return context.getString(allStates[currentIdx]);\n }",
"public String getState() {\n return this.State;\n }",
"public String getState()\n\t{\n\t\treturn State;\n\t\t\n\t}",
"public String getState()\r\n\t{\r\n\t\treturn state.getModelObjectAsString();\r\n\t}",
"public String toString() {\r\n\t\treturn gameState;\r\n\t}",
"public String getState( )\r\n {\r\n if (isEating)\r\n return \"Eating\"; // Exit method w/ current state\r\n\r\n if (isSleeping)\r\n return \"Sleeping\";\r\n\r\n return \"Error in State\";\r\n }",
"public String getState() {\n\t\treturn State;\n\t}",
"@Override\n\tpublic String getStateString() {\n\t\treturn null;\n\t}",
"public String get_state() throws Exception {\n\t\treturn this.state;\n\t}",
"public String get_state() throws Exception {\n\t\treturn this.state;\n\t}",
"public java.lang.CharSequence getState() {\n return state;\n }",
"public String toString(){\n \tif(state){\n\t\treturn (\"1\");\n\t }\n\t else{\n\t\t return(\"0\");\n\t }\n }",
"@Override\n\tpublic java.lang.String getStateName() {\n\t\treturn _state.getStateName();\n\t}",
"public java.lang.CharSequence getState() {\n return state;\n }",
"public String printState(){\n if (this.state.equals(\"unstarted\")) return \"unstarted 0\";\n\n else if (this.state.equals(\"terminated\")) return \"terminated 0\";\n else if (this.state.equals(\"blocked\")) {\n return String.format(\"blocked %d\", ioBurstTime);\n }\n else if (this.state.equals(\"ready\")) {\n if (remainingCPUBurstTime !=null){\n return String.format(\"ready %d\", remainingCPUBurstTime);\n }\n return \"ready 0\";\n }\n\n else if (this.state.equals(\"running\")){\n return String.format(\"running %d\", cpuBurstTime);\n }\n\n else return \"Something went wrong.\";\n }",
"public String toString() {\n\treturn state.toString() + \" \" + context.toString();\n }",
"private String gameStateToString() // Convert the game state into a string type.\n\t{\n\t\tString getGameStateString = \"\";\n\n\t\tswitch (gameState) // Check the state of the game and change the messages as needed.\n\t\t{\n\t\tcase waitingForStart:\n\t\t\tgetGameStateString = \"waitingForStart\";\n\t\t\tbreak;\n\t\tcase gameWelcome:\n\t\t\tgetGameStateString = \"gameWelcome\";\n\t\t\tbreak;\n\t\tcase decideWhoGoesFirst:\n\t\t\tgetGameStateString = \"decideWhoGoesFirst\";\n\t\t\tbreak;\n\t\tcase twoPlayersPlayerOneGoesFirst:\n\t\t\tgetGameStateString = \"twoPlayersPlayerOneGoesFirst\";\n\t\t\tbreak;\n\t\tcase twoPlayersPlayerTwoGoesFirst:\n\t\t\tgetGameStateString = \"twoPlayersPlayerTwoGoesFirst\";\n\t\t\tbreak;\n\t\tcase twoPlayersNowPlayerOnesTurn: \n\t\t\tgetGameStateString = \"twoPlayersNowPlayerOnesTurn\";\n\t\t\tbreak;\n\t\tcase twoPlayersNowPlayerTwosTurn:\n\t\t\tgetGameStateString = \"twoPlayersNowPlayerTwosTurn\";\n\t\t\tbreak;\n\t\tcase aPlayerHasWon:\n\t\t\tgetGameStateString = \"aPlayerHasWon\";\n\t\t\tbreak;\t\n\t\t}\n\n\t\treturn getGameStateString;\n\n\t}",
"public final String cur_modstate_string () {\n\t\treturn get_modstate_as_string (modstate);\n\t}",
"public String getState() {\n Scanner scanner = new Scanner(System.in);\n\n // Tell User to enter two digit state\n System.out.println(\"Enter state name: \");\n\n // Get the two digit state\n String state = scanner.next();\n\n return state;\n }",
"public String getState()\n {\n return null;\n }",
"public String toString() {\r\n\t\treturn (\"State: \" + this.key + \", Value: \" + this.val);\r\n\t}",
"public java.lang.String getStateMessage() {\n java.lang.Object ref = stateMessage_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n stateMessage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getState() {\n StringBuilder builder = new StringBuilder();\n //builder.append(muteMusic.getBackground().getLevel());\n //builder.append(',');\n builder.append(muteClicked);\n builder.append(',');\n builder.append(gameOver);\n builder.append(',');\n builder.append(wordsDetectedByUser.size());\n builder.append(',');\n for(int i =0;i<wordsDetectedByUser.size();i++)\n { builder.append(wordsDetectedByUser.get(i));\n builder.append(',');}\n builder.append(notValidWord);\n builder.append(',');\n // m1Handler.removeCallbacks(m1Runnable);\n mHandler.removeCallbacks(mRunnable);\n builder.append(phaseTwo);\n builder.append(',');\n builder.append(currentScore); //storing current score\n builder.append(',');\n builder.append(t); //storing timer state\n builder.append(',');\n Object a[] = DoneTiles.toArray();\n builder.append(a.length);\n builder.append(',');\n for(int i=0;i<a.length;i++) {\n builder.append(a[i].toString());\n builder.append(',');\n }\n builder.append(mLastLarge);\n builder.append(',');\n builder.append(mLastSmall);\n builder.append(',');\n for (int large = 0; large < 9; large++) {\n for (int small = 0; small < 9; small++) {\n builder.append(mSmallTiles[large][small].getOwner().name());\n builder.append(',');\n builder.append((((Button)mSmallTiles[large][small].getView()).getText()).toString());\n builder.append(',');\n //Log.d(DoneTiles);\n }\n }\n return builder.toString();\n }",
"@Override\n public String getState() {\n\n if(this.state == null){\n\n this.state = TestDatabase.getInstance().getClientField(token, id, \"state\");\n }\n\n return state;\n }",
"public String getStateName() {\n return name;\n }",
"@java.lang.Override\n public java.lang.String getStateMessage() {\n java.lang.Object ref = stateMessage_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n stateMessage_ = s;\n return s;\n }\n }",
"public String getPlayerState() {\n String playerState = name + \" \" + actionArray[0] \n + \" \" + actionArray[1] + \" \" + actionArray[2] + \" \" + colorID + \" \";\n return playerState;\n }",
"public String getCurrentState() {\n\t\treturn currentState;\n\t}",
"public String getNewStateName() {\n\t\tstateCounter.getAndIncrement();\n\t\tString state = makeStateName(stateCounter.get(), false);\n\t\treturn state;\n\t}",
"public String getLocalState()\n {\n return localState;\n }",
"String state() throws RemoteException;",
"private static String getStateInput() {\n\t\treturn getQuery(\"Valid State\");\n\t}",
"public String toString() {\n try {\n StringBuilder sb = new StringBuilder();\n sb.append((\"STATES\") + System.getProperty(\"line.separator\"));\n sb.append((\"-----------\") + System.getProperty(\"line.separator\"));\n sb.append(statesToString());\n sb.append((\"TRANSITIONS\") + System.getProperty(\"line.separator\"));\n sb.append((\"-------------------\") + System.getProperty(\"line.separator\"));\n sb.append(transitionsToString());\n return sb.toString();\n } catch (RuntimeException sbe) {\n throw sbe;\n } catch (Exception sbe) {\n throw new RuntimeException(sbe);\n }\n }",
"public String getStateCode() {\n return (String)getAttributeInternal(STATECODE);\n }",
"@Override\n public String toString ()\n {\n StringBuffer buffer = new StringBuffer();\n for (State value : stateMap.values()) {\n buffer.append(value.toString());\n buffer.append(\"\\n\");\n }\n return buffer.toString();\n }",
"State getState();",
"State getState();",
"State getState();",
"State getState();",
"@DISPID(94)\r\n\t// = 0x5e. The runtime will prefer the VTID if present\r\n\t@VTID(92)\r\n\tjava.lang.String stateDescription();",
"public String getStateDescription() {\n return (String)getAttributeInternal(STATEDESCRIPTION);\n }",
"public com.google.protobuf.ByteString\n getStateBytes() {\n java.lang.Object ref = state_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n state_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getState() {\r\n StringBuilder builder = new StringBuilder();\r\n builder.append(mLastLarge);\r\n builder.append(',');\r\n builder.append(mLastSmall);\r\n builder.append(',');\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n builder.append(mSmallTiles[large][small].getOwner().name());\r\n builder.append(',');\r\n }\r\n }\r\n return builder.toString();\r\n }"
]
| [
"0.87574226",
"0.85556614",
"0.85556614",
"0.85556614",
"0.8539578",
"0.8330874",
"0.83156073",
"0.83156073",
"0.8305101",
"0.81574595",
"0.8107628",
"0.8083293",
"0.80183464",
"0.80153334",
"0.79963017",
"0.7904302",
"0.79030645",
"0.79001856",
"0.79001856",
"0.78925085",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7885921",
"0.7869662",
"0.7866813",
"0.78593504",
"0.7851259",
"0.7851259",
"0.7851259",
"0.78444415",
"0.7826328",
"0.78255314",
"0.78255314",
"0.78255314",
"0.78255314",
"0.782485",
"0.7824043",
"0.7813884",
"0.7802598",
"0.7802598",
"0.77918017",
"0.77918017",
"0.77583677",
"0.7757534",
"0.77286476",
"0.77124053",
"0.77000046",
"0.766494",
"0.76550543",
"0.76455045",
"0.7643821",
"0.76373285",
"0.7600082",
"0.7587485",
"0.75707316",
"0.7556562",
"0.7556562",
"0.7501996",
"0.7480858",
"0.7466212",
"0.7452312",
"0.7449625",
"0.7447164",
"0.7373862",
"0.7340296",
"0.7317554",
"0.73090726",
"0.7301486",
"0.7296048",
"0.72526586",
"0.7233141",
"0.7179628",
"0.7167604",
"0.71326244",
"0.7092994",
"0.70800537",
"0.7070405",
"0.70138925",
"0.69776845",
"0.6975374",
"0.69707215",
"0.6962367",
"0.69438285",
"0.69438285",
"0.69438285",
"0.69438285",
"0.69379824",
"0.69376713",
"0.69363195",
"0.6927305"
]
| 0.85946685 | 1 |
The persistence interface for the hotel service. Caching information and settings can be found in portal.properties | public interface HotelPersistence extends BasePersistence<Hotel> {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify or reference this interface directly. Always use {@link HotelUtil} to access the hotel persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
*/
/**
* Returns all the hotels where uuid = ?.
*
* @param uuid the uuid
* @return the matching hotels
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.Hotel.model.Hotel> findByUuid(
java.lang.String uuid)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the hotels where uuid = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param uuid the uuid
* @param start the lower bound of the range of hotels
* @param end the upper bound of the range of hotels (not inclusive)
* @return the range of matching hotels
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.Hotel.model.Hotel> findByUuid(
java.lang.String uuid, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the hotels where uuid = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param uuid the uuid
* @param start the lower bound of the range of hotels
* @param end the upper bound of the range of hotels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching hotels
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.Hotel.model.Hotel> findByUuid(
java.lang.String uuid, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first hotel in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching hotel
* @throws com.Hotel.NoSuchHotelException if a matching hotel could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first hotel in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching hotel, or <code>null</code> if a matching hotel could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last hotel in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching hotel
* @throws com.Hotel.NoSuchHotelException if a matching hotel could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last hotel in the ordered set where uuid = ?.
*
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching hotel, or <code>null</code> if a matching hotel could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the hotels before and after the current hotel in the ordered set where uuid = ?.
*
* @param hotelId the primary key of the current hotel
* @param uuid the uuid
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next hotel
* @throws com.Hotel.NoSuchHotelException if a hotel with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel[] findByUuid_PrevAndNext(long hotelId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the hotels where uuid = ? from the database.
*
* @param uuid the uuid
* @throws SystemException if a system exception occurred
*/
public void removeByUuid(java.lang.String uuid)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of hotels where uuid = ?.
*
* @param uuid the uuid
* @return the number of matching hotels
* @throws SystemException if a system exception occurred
*/
public int countByUuid(java.lang.String uuid)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the hotels where name = ?.
*
* @param name the name
* @return the matching hotels
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.Hotel.model.Hotel> findByname(
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the hotels where name = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param name the name
* @param start the lower bound of the range of hotels
* @param end the upper bound of the range of hotels (not inclusive)
* @return the range of matching hotels
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.Hotel.model.Hotel> findByname(
java.lang.String name, int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the hotels where name = ?.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param name the name
* @param start the lower bound of the range of hotels
* @param end the upper bound of the range of hotels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of matching hotels
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.Hotel.model.Hotel> findByname(
java.lang.String name, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first hotel in the ordered set where name = ?.
*
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching hotel
* @throws com.Hotel.NoSuchHotelException if a matching hotel could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel findByname_First(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the first hotel in the ordered set where name = ?.
*
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the first matching hotel, or <code>null</code> if a matching hotel could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel fetchByname_First(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last hotel in the ordered set where name = ?.
*
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching hotel
* @throws com.Hotel.NoSuchHotelException if a matching hotel could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel findByname_Last(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the last hotel in the ordered set where name = ?.
*
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching hotel, or <code>null</code> if a matching hotel could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel fetchByname_Last(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the hotels before and after the current hotel in the ordered set where name = ?.
*
* @param hotelId the primary key of the current hotel
* @param name the name
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the previous, current, and next hotel
* @throws com.Hotel.NoSuchHotelException if a hotel with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel[] findByname_PrevAndNext(long hotelId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the hotels where name = ? from the database.
*
* @param name the name
* @throws SystemException if a system exception occurred
*/
public void removeByname(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of hotels where name = ?.
*
* @param name the name
* @return the number of matching hotels
* @throws SystemException if a system exception occurred
*/
public int countByname(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Caches the hotel in the entity cache if it is enabled.
*
* @param hotel the hotel
*/
public void cacheResult(com.Hotel.model.Hotel hotel);
/**
* Caches the hotels in the entity cache if it is enabled.
*
* @param hotels the hotels
*/
public void cacheResult(java.util.List<com.Hotel.model.Hotel> hotels);
/**
* Creates a new hotel with the primary key. Does not add the hotel to the database.
*
* @param hotelId the primary key for the new hotel
* @return the new hotel
*/
public com.Hotel.model.Hotel create(long hotelId);
/**
* Removes the hotel with the primary key from the database. Also notifies the appropriate model listeners.
*
* @param hotelId the primary key of the hotel
* @return the hotel that was removed
* @throws com.Hotel.NoSuchHotelException if a hotel with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel remove(long hotelId)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException;
public com.Hotel.model.Hotel updateImpl(com.Hotel.model.Hotel hotel)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the hotel with the primary key or throws a {@link com.Hotel.NoSuchHotelException} if it could not be found.
*
* @param hotelId the primary key of the hotel
* @return the hotel
* @throws com.Hotel.NoSuchHotelException if a hotel with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel findByPrimaryKey(long hotelId)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the hotel with the primary key or returns <code>null</code> if it could not be found.
*
* @param hotelId the primary key of the hotel
* @return the hotel, or <code>null</code> if a hotel with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
public com.Hotel.model.Hotel fetchByPrimaryKey(long hotelId)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns all the hotels.
*
* @return the hotels
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.Hotel.model.Hotel> findAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns a range of all the hotels.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of hotels
* @param end the upper bound of the range of hotels (not inclusive)
* @return the range of hotels
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.Hotel.model.Hotel> findAll(int start, int end)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns an ordered range of all the hotels.
*
* <p>
* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
* </p>
*
* @param start the lower bound of the range of hotels
* @param end the upper bound of the range of hotels (not inclusive)
* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
* @return the ordered range of hotels
* @throws SystemException if a system exception occurred
*/
public java.util.List<com.Hotel.model.Hotel> findAll(int start, int end,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Removes all the hotels from the database.
*
* @throws SystemException if a system exception occurred
*/
public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException;
/**
* Returns the number of hotels.
*
* @return the number of hotels
* @throws SystemException if a system exception occurred
*/
public int countAll()
throws com.liferay.portal.kernel.exception.SystemException;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PersistentDataStore() {\n datastore = DatastoreServiceFactory.getDatastoreService();\n }",
"protected PersistenceStructureService getPersistenceStructureService() {\r\n return persistenceStructureService;\r\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}",
"private static OfferDAO getOfferDAO() {\n DbConnection dbConnection = new DbConnection();\n DBI dbi = dbConnection.getDBConnection();\n OfferDAO offerDAO = dbi.onDemand(OfferDAO.class);\n return offerDAO;\n }",
"private PersistenceManager getPersistenceManager() {\n if(pmf==null) {\n getFacetHolder().getServiceInjector().injectServicesInto(this);\n }\n return pmf.getPersistenceManagerFactory().getPersistenceManager();\n }",
"@Override\n public URL getPersistenceUnitRootUrl() {\n return HibernatePersistenceProvider.class.getResource(\"/org/hibernate/jpa/persistence_1_0.xsd\");\n }",
"@RemoteServiceRelativePath(\"persistence\")\npublic interface PersistenceService extends RemoteService {\n\tvoid save(DTO obj) throws IllegalArgumentException;\n\tvoid delete(DTO obj) throws IllegalArgumentException;\n\tList<DTO> readAll(String className) throws IllegalArgumentException;\n}",
"@Inject\n private DataStore() {\n final StandardServiceRegistry registry = new StandardServiceRegistryBuilder()\n .configure()\n .build();\n try {\n sessionFactory = new MetadataSources(registry).buildMetadata().buildSessionFactory();\n } catch (Exception e) {\n LOGGER.error(\"Fehler beim initialisieren der Session\", e);\n StandardServiceRegistryBuilder.destroy(registry);\n }\n \n }",
"public InMemoryServiceInstancePersistence() {\n this.serviceInstances = new HashMap<>(); \n }",
"public interface LandService {\n\t//declare some methods \n\tpublic List<LandBean> getAllLands() ;\n\tpublic boolean deleteLand(int id);\n\tpublic boolean addLand(LandBean bean);\n\tboolean modifyLand(LandBean bean);\n\n}",
"PortalCacheModel getCacheModel();",
"public final PersistenceManager getPersistenceManager (){\n//\t\tSystem.out.println (\"returning persistent manager for properties \"+\tthis._dataStoreEnvironment.getDataStoreProperties ());\n\t\treturn this.pm;\n\t}",
"DataStore getDataStore ();",
"private static PersistenceSession getPersistenceSession() {\n return NakedObjectsContext.getPersistenceSession();\n }",
"private static PersistenceManager getPersistenceManager() {\n\t\treturn PMF.get().getPersistenceManager();\n\t}",
"public interface SiteAdminService {\n /**\n * Sets the site offline or online.\n * \n * @param b\n * the flag to indicate the offline state of the web site\n * @return the current state\n */\n boolean setOffline(boolean b);\n \n /**\n * Creates a guild or clan.\n * \n * @param gameId\n * the id of the game\n * @param title\n * the title of the clan\n * @param clanPrefix\n * a clan prefix, null is allowed\n * @return null, or the created guild\n */\n Guild createGuild(long gameId, String title, String clanPrefix);\n \n /**\n * Updates a guild.\n * \n * @param changeset\n * the guild to update\n * @return TRUE if the update was successful, otherwise FALSE\n */\n boolean updateGuild(Guild changeset);\n \n /**\n * Deletes a guild or clan.\n * \n * @param guildId\n * the id of the clan\n * @return TRUE if delete was successful, othewise FALSE\n */\n boolean deleteGuild(long guildId);\n \n /**\n * Adds a character to a guild.\n * \n * @param characterId\n * the id of the character\n * @param guildId\n * the id of the guild\n * @return TRUE if association was successful, otherwise FALSE\n */\n boolean addCharacterToGuild(long characterId, long guildId);\n \n /**\n * Removes the given character from the guild.\n * \n * @param characterId\n * the id of the character\n * @return TRUE if successful, otherwise FALSE\n */\n boolean leaveGuild(long characterId);\n \n /**\n * Creates a game.\n * \n * @param title\n * the name of the game\n * @param shortCode\n * a shortcode\n * @return null, or the game info\n */\n Game createGame(String title, String shortCode);\n \n /**\n * Returns the game with the given short code.\n * \n * @param shortCode\n * the short code of the game\n * @return null, or the game\n */\n Game getGameByShortcode(String shortCode);\n \n /**\n * Returns the game with the given id.\n * \n * @param id\n * the id of the game\n * @return null, or the game\n */\n Game getGameById(long id);\n \n /**\n * Returns a set of game short codes.\n * \n * @return an empty set, or a set of game short codes\n */\n Set<String> getGameShortcodes();\n \n /**\n * Adds a character type to the game.\n * \n * @param t\n * the type of the character\n * @param gameId\n * the id of the game\n * @return the updated character type, or null\n */\n CharacterType createCharacterType(CharacterType t, long gameId);\n \n /**\n * Updates the given character type.\n * \n * @param t\n * the type to update\n * @return TRUE if update was successful, otherwise FALSE\n */\n boolean updateCharacterType(CharacterType t);\n \n /**\n * Sets some rights for the website management.\n * \n * @param r\n * the right to change\n * @param b\n * the flag to enable or disable the right\n * @return TRUE if right setting was successful, otherwise FALSE\n */\n boolean setSiteRights(SiteAdminRights r, boolean b);\n}",
"public PersistenceServiceXStream() {\n storageServiceClassName = ConfigurationProperties.getConfiguredStorageService();\n }",
"public interface CoffeeProcessorDbService {\n void loadData();\n}",
"public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }",
"private static IOseeDatabaseService getDatabase() throws OseeDataStoreException {\n return ServiceUtil.getDatabaseService();\n }",
"public interface PortalModel extends BaseModel {\r\n\t/**\r\n\t * Returns the portal.\r\n\t * @return The portal.\r\n\t */\r\n\tPortal getPortal();\r\n\r\n\t/**\r\n\t * Returns the portal path.\r\n\t * @return The portal path.\r\n\t */\r\n\tPathSegments getPath();\r\n\r\n\t/**\r\n\t * Returns the portal URI Generator.\r\n\t * @return The portal URI Generator.\r\n\t */\r\n\tURIGenerator getURIGenerator();\r\n\r\n\t/**\r\n\t * Returns an started component module.\r\n\t * @param id Component module id.\r\n\t * @return Component module module.\r\n\t */\r\n\tStartedModule<?> getComponent(UUID id);\r\n\r\n\t/**\r\n\t * Returns the device capabilities provider.\r\n\t * @return The device capabilities provider.\r\n\t */\r\n\tDeviceCapabilitiesProvider getDeviceCapabilitiesProvider();\r\n\r\n\t/**\r\n\t * Returns the page resolver.\r\n\t * @return The page resolver.\r\n\t */\r\n\tPageResolver getPageResolver();\r\n\r\n\t/**\r\n\t * Returns a content loader for the portal.\r\n\t * @param context Client request context.\r\n\t * @return A content loader for the portal.\r\n\t */\r\n\tContentLoader getContentLoader(ClientRequestContext context);\r\n\r\n\t/**\r\n\t * Returns the portal pages.\r\n\t * @return The portal pages.\r\n\t */\r\n\tPages getPages();\r\n\r\n\t/**\r\n\t * Returns the cache model.\r\n\t * @return The cache model.\r\n\t */\r\n\tPortalCacheModel getCacheModel();\r\n}",
"public PersistenceStructureService getPersistenceStructureService() {\r\n return persistenceStructureService;\r\n }",
"public interface WebHotpointsDAO{\n public int getVersion() throws IOException;\n public int getNrHotpoints() throws IOException;\n public Hotpoint getNextHotpoint() throws IOException;\n}",
"public interface EntityStoreManager {\n\n /**\n * Stores the given information of a website in database.\n *\n * @param data the object containing website information that has to be saved in database\n */\n void store(WebCrawlerData data);\n\n\n /**\n * Retrieves the information of given url from database.\n *\n * @param url the url of the website whose data has to be retrieved from the database\n * @return the object containing all the information related to the given url\n */\n WebCrawlerData retrieve(String url);\n\n\n /**\n * Returns the list of all websites from database along with their information.\n *\n * @return the list of all websites from database\n */\n List<WebCrawlerData> retrieveAllEntity();\n}",
"public interface BackgroundPersistence extends BasePersistence<Background> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link BackgroundUtil} to access the background persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Caches the background in the entity cache if it is enabled.\n\t*\n\t* @param background the background\n\t*/\n\tpublic void cacheResult(\n\t\torg.politaktiv.map.infrastructure.model.Background background);\n\n\t/**\n\t* Caches the backgrounds in the entity cache if it is enabled.\n\t*\n\t* @param backgrounds the backgrounds\n\t*/\n\tpublic void cacheResult(\n\t\tjava.util.List<org.politaktiv.map.infrastructure.model.Background> backgrounds);\n\n\t/**\n\t* Creates a new background with the primary key. Does not add the background to the database.\n\t*\n\t* @param backgroundId the primary key for the new background\n\t* @return the new background\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background create(\n\t\tlong backgroundId);\n\n\t/**\n\t* Removes the background with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param backgroundId the primary key of the background\n\t* @return the background that was removed\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background remove(\n\t\tlong backgroundId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\tpublic org.politaktiv.map.infrastructure.model.Background updateImpl(\n\t\torg.politaktiv.map.infrastructure.model.Background background,\n\t\tboolean merge)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the background with the primary key or throws a {@link org.politaktiv.map.infrastructure.NoSuchBackgroundException} if it could not be found.\n\t*\n\t* @param backgroundId the primary key of the background\n\t* @return the background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background findByPrimaryKey(\n\t\tlong backgroundId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns the background with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param backgroundId the primary key of the background\n\t* @return the background, or <code>null</code> if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background fetchByPrimaryKey(\n\t\tlong backgroundId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the backgrounds where companyId = ? and groupId = ?.\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @return the matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findBycompanyIdAndGroupId(\n\t\tlong companyId, long groupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the backgrounds where companyId = ? and groupId = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @return the range of matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findBycompanyIdAndGroupId(\n\t\tlong companyId, long groupId, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the backgrounds where companyId = ? and groupId = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findBycompanyIdAndGroupId(\n\t\tlong companyId, long groupId, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first background in the ordered set where companyId = ? and groupId = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a matching background could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background findBycompanyIdAndGroupId_First(\n\t\tlong companyId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns the last background in the ordered set where companyId = ? and groupId = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a matching background could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background findBycompanyIdAndGroupId_Last(\n\t\tlong companyId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns the backgrounds before and after the current background in the ordered set where companyId = ? and groupId = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param backgroundId the primary key of the current background\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next background\n\t* @throws org.politaktiv.map.infrastructure.NoSuchBackgroundException if a background with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic org.politaktiv.map.infrastructure.model.Background[] findBycompanyIdAndGroupId_PrevAndNext(\n\t\tlong backgroundId, long companyId, long groupId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\torg.politaktiv.map.infrastructure.NoSuchBackgroundException;\n\n\t/**\n\t* Returns all the backgrounds.\n\t*\n\t* @return the backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the backgrounds.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @return the range of backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findAll(\n\t\tint start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the backgrounds.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of backgrounds\n\t* @param end the upper bound of the range of backgrounds (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<org.politaktiv.map.infrastructure.model.Background> findAll(\n\t\tint start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the backgrounds where companyId = ? and groupId = ? from the database.\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeBycompanyIdAndGroupId(long companyId, long groupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the backgrounds from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of backgrounds where companyId = ? and groupId = ?.\n\t*\n\t* @param companyId the company ID\n\t* @param groupId the group ID\n\t* @return the number of matching backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countBycompanyIdAndGroupId(long companyId, long groupId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of backgrounds.\n\t*\n\t* @return the number of backgrounds\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}",
"public IPersistence<T> getPersistence();",
"public abstract FHIRPersistence getPersistenceImpl() throws Exception;",
"public interface DBService {\n\n Offer save(Offer offer);\n\n}",
"public abstract int getPersistence();",
"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}",
"@Override\n\tpublic Datastore getDatastore() {\n\t\treturn SKBeanUtils.getDatastore();\n\t}",
"@Override\n public FileObject getPersistenceXml()\n {\n FileObject location = locationProvider.getLocation();\n if (location == null)\n {\n return null;\n }\n return location.getFileObject(\"persistence.xml\"); // NOI18N\n \n }",
"public void ejbStore() {\n }",
"public void ejbStore() {\n }",
"public interface PresentationManager extends CleanupableService {\n\n public static final String PRESENTATION_PROPERTIES_FOLDER = \"portfolioPropertyForms\";\n public static final String PRESENTATION_PROPERTIES_FOLDER_DISPNAME = \"portfolioPropertyForms.displayName\";\n public static final String PRESENTATION_PROPERTIES_FOLDER_DESC = \"portfolioPropertyForms.description\";\n public static final String PORTFOLIO_INTERACTION_FOLDER_DISPNAME = \"portfolioInteraction.displayName\";\n public static final String PORTFOLIO_INTERACTION_FOLDER_DESC = \"portfolioInteraction.description\";\n public static final String PRESENTATION_PROPERTIES_FOLDER_PATH = \"/\" + PRESENTATION_PROPERTIES_FOLDER + \"/\";\n public static final String PRESENTATION_MESSAGE_BUNDLE = \"org.theospi.portfolio.presentation.bundle.Messages\";\n \n public static final String PRESENTATION_FORMS_FOLDER = \"portfolioForms\";\n public static final String PRESENTATION_FORMS_FOLDER_DISPNAME = \"portfolioForms.displayName\";\n public static final String PRESENTATION_FORMS_FOLDER_DESC = \"portfolioForms.description\";\n \n public static final String PRESENTATION_VIEW_ALL = \"all\";\n public static final String PRESENTATION_VIEW_HIDDEN = \"hidden\";\n public static final String PRESENTATION_VIEW_VISIBLE = \"visible\"; // not hidden\n\n \n public PresentationTemplate storeTemplate(PresentationTemplate template);\n public PresentationTemplate storeTemplate(PresentationTemplate template, boolean checkAuthz, boolean updateDates);\n \n public boolean deletePresentationTemplate(Id id);\n public void deletePresentationLayout(Id id);\n\n public PresentationTemplate getPresentationTemplate(Id id);\n\n public PresentationItemDefinition getPresentationItemDefinition(Id item);\n\n public void deletePresentationItem(Id item);\n\n public Presentation getPresentation(Id id);\n public Presentation getPresentation(Id id, boolean checkAuth);\n public Presentation getLightweightPresentation(Id id);\n\n public Presentation storePresentation(Presentation presentation);\n public Presentation storePresentation(Presentation presentation, boolean checkAuthz, boolean updateDates);\n \n public void deletePresentation(Id presentation);\n\n public PresentationItem getPresentationItem(Id itemDef);\n\n public void updateItemDefintion(PresentationItemDefinition itemDef);\n\n public void deletePresentationItemDefinition(Id itemDef);\n\n public TemplateFileRef getTemplateFileRef(Id refId);\n public void updateTemplateFileRef(TemplateFileRef ref);\n public void deleteTemplateFileRef(Id refId);\n\n /**\n * returns a list of all presentation templates owned by agent.\n *\n * @param owner\n * @return\n */\n public Collection findTemplatesByOwner(Agent owner);\n\n /**\n * returns a list of all presentation templates owned by agent within the given siteId.\n *\n * @param owner\n * @return\n */\n public Collection findTemplatesByOwner(Agent owner, String siteId);\n\n public Collection findPublishedTemplates(String siteId);\n\n public Collection findGlobalTemplates();\n\n public Collection findPublishedTemplates();\n\n public Collection findPublishedLayouts(String siteId);\n public Collection findLayoutsByOwner(Agent owner, String siteId);\n public Collection findMyGlobalLayouts();\n public Collection findAllGlobalLayouts();\n\n public PresentationLayout storeLayout(PresentationLayout layout);\n public PresentationLayout storeLayout(PresentationLayout layout, boolean checkAuthz);\n \n public PresentationLayout getPresentationLayout(Id layoutId);\n \n public List getPresentationPagesByPresentation(Id presentationId);\n public PresentationPage getPresentationPage(Id id);\n public Document getPresentationLayoutAsXml(Presentation presentation, String pageId);\n \n /**\n * Creates an xml document represenation of the requested page from the \n * presentation passed in.\n * \n * @param presentation\n * @param pageId\n * @return xml representation of the requested page or null\n */\n public Document getPresentationPreviewLayoutAsXml(Presentation presentation, String pageId);\n\n /**\n * Return a list presentation ids of all publicly shared presentations (optionally filtered by site)\n *\n * @param siteId return only from this site if specified (may be null)\n * @return collection of presentations\n */\n public Collection findPublicPresentations(String siteId);\n\n /**\n * Return a list presentation ids of all publicly shared presentations (optionally filtered by toolId)\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findPublicPresentations(Agent viewer, String toolId, String showHidden);\n\n /** Return the XML document string corresponding to the specified public portfolio's propertyForm\n ** (portfolio must be publicly viewable).\n **\n ** @param portfolioId public portfolio\n ** @return XML document string or null if error\n **/\n public String getPublicPropertyForm( Presentation presentation );\n\n /**\n * Return a list of all presentations agent can view, optionally filtered by toolId.\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findAllPresentations(Agent viewer, String toolId, String showHidden);\n\n /**\n * Return a unrestricted list of presentations for given toolId\n * Portfolios returned may be unpublished/inactive/unshared, but the current user is not the owner\n * User must have permission and portfolio.unrestricted.view must be enabled\n *\n * @param owner current user\n * @param toolId current tool \n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findOtherPresentationsUnrestricted(Agent owner, String toolId, String showHidden);\n \n /**\n * Return a list of presentation shared with agent, optionally filtered by toolId.\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findSharedPresentations(Agent viewer, String toolId, String showHidden);\n \n /**\n * Return a list of all presentation owned by agent, optionally filtered by toolId.\n *\n * @param owner current user\n * @param toolId current tool (or null to ignore)\n * @param showHidden option to show all, hidden, not hidden portfolios\n * @return collection of presentations\n */\n public Collection findOwnerPresentations(Agent owner, String toolId, String showHidden);\n\n public void createComment(PresentationComment comment);\n public void createComment(PresentationComment comment, boolean checkAuthz, boolean updateDates);\n\n public List getPresentationComments(Id presentationId, Agent viewer);\n\n public PresentationComment getPresentationComment(Id id);\n\n public void deletePresentationComment(PresentationComment comment);\n\n public void updatePresentationComment(PresentationComment oldComment);\n\n /**\n * returns list of comments owned by agent in given tool. Includes comments created by the owner.\n * @param owner\n * @param sortBy\n * @return\n */\n public List getOwnerComments(Agent owner, CommentSortBy sortBy);\n\n /**\n * returns list of comments owned by agent in given tool. Includes comments created by the owner.\n * @param owner\n * @param toolId\n * @param sortBy\n * @param excludeOwner - set to true to exclude comments created by the owner\n * @return\n */\n public List getOwnerComments(Agent owner, String toolId, CommentSortBy sortBy, boolean excludeOwner);\n\n /**\n * returns list of comments owned by agent in given tool. Includes comments created by the owner.\n * @param owner\n * @param toolId\n * @param sortBy\n * @return\n */\n public List getOwnerComments(Agent owner, String toolId, CommentSortBy sortBy);\n\n public List getCreatorComments(Agent creator, CommentSortBy sortBy);\n\n /**\n * returns list of comments created by creator in given tool.\n * @param creator\n * @param toolId\n * @param sortBy\n * @return\n */\n public List getCreatorComments(Agent creator, String toolId, CommentSortBy sortBy);\n\n public PresentationTemplate copyTemplate(Id templateId);\n\n public String packageTemplateForExport(Id templateId, OutputStream os) throws IOException;\n\n public PresentationTemplate uploadTemplate(String templateFileName, String toContext, InputStream zipFileStream) throws IOException;\n\n public void storePresentationLog(PresentationLog log);\n\n public Collection findLogsByPresID(Id presID);\n\t\n public Presentation findPresentationByLogID(Id presID);\n\n public Collection getPresentationItems(Id artifactId);\n\n public Collection getPresentationsBasedOnTemplateFileRef(Id artifactId);\n\n public Collection findPresentationsByTool(Id id);\n \n public Node getNode(Id artifactId);\n\n public Node getNode(Reference ref);\n\n /**\n * Get node within the context of this presentation\n * @param ref\n * @param presentation\n * @return\n */\n public Node getNode(Reference ref, Presentation presentation);\n public Node getNode(Id artifactId, Presentation presentation);\n\n public Node getNode(Id artifactId, PresentationLayout layout);\n\n public ContentResourceArtifact loadArtifactForItem(PresentationItem item);\n public Collection loadArtifactsForItemDef(PresentationItemDefinition itemDef, Agent agent);\n \n public Document createDocument(Presentation presentation);\n\n public Collection getAllPresentationsForWarehouse();\n\n public Collection getAllPresentationLayouts();\n\n public Collection getAllPresentationTemplates();\n\n public Presentation getPresentation(Id id, String secretExportKey);\n \n public boolean isGlobal();\n\n /**\n * Copy an existing presentation,\n * this will duplicate the presentation for the current owner,\n * does not include comments\n * \n * @param presentationId the id for a presentation\n * @return the copy of the presentation\n */\n public Presentation copyPresentation(Id presentationId);\n\n}",
"public interface IPLMHmFeeService {\n\n void saveInfo(IMetaObjectImpl object);\n void delete(int objid);\n void deleteByIds_(String objids);\n Map getMapInfoById(int objid);\n IMetaDBQuery getSearchList(Map<String, String> map);\n Map getOnlyOneByProductId(int productid);\n IMetaObjectImpl getInfoById(int objid);\n public IMetaDBQuery queryByids(String objids);\n\n void deleteByProductid(int productid);\n List<Map> getSearchListByProductId(int productid);\n}",
"public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}",
"public interface LocativeService {\n public List<Locative> getAll();\n public Locative add(Locative locative);\n public Locative update(Locative locative);\n public Locative findById(int id);\n public void delete(int id);\n /*public List<Locative> findByProperty(Property property);\n public List<Locative> findByCity(City city);*/\n public double garanty(int id);\n // public List<Locative> getLocativeNotInContrat();\n public int countLocative();\n public List<Locative> export(int cpt, HttpServletRequest request);\n}",
"public void createDataStore (){\n\t\tcloseActiveStoreData ();\n\t\tif (_usablePersistenceManager){\n\t\t\tclosePersistence ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tthis.pm = DataStoreUtil.createDataStore (getDataStoreEnvironment (), true);\n\t\t_usablePersistenceManager = true;\n\t}",
"public interface WarehouseService {\n\n /**\n * This method returns all warehouses data from database by calling respective repository methods.\n *\n * @return set of {@link Warehouse}s\n */\n Set<Warehouse> getAllWarehouses();\n\n}",
"public interface HotelInfoService extends IProvider {\n HotelInfo getInfo();\n}",
"public FooPersistence getFooPersistence() {\n return fooPersistence;\n }",
"public void cacheResult(com.Hotel.model.Hotel hotel);",
"public interface RfpHotel extends RfpCompany {\n\n EntityImage getImage();\n\n int getRating();\n\n HotelChain getChain();\n\n List<String> getAmenities();\n\n HotelCategory getCategory();\n\n String getBrandChainName();\n\n String getMasterChainName();\n\n String getMasterChainId();\n}",
"private void store()\tthrows DAOSysException\t\t{\n\t\tif (_debug) System.out.println(\"AL:store()\");\n\t\tAnnualLeaseDAO dao = null;\n\t\ttry\t{\n\t\t\tdao = getDAO();\n\t\t\tdao.dbStore(getModel());\n\t\t} catch (Exception ex)\t{\n\t\t\tthrow new DAOSysException(ex.getMessage());\n\t\t}\n\t}",
"EMInitializer() {\r\n try {\r\n emf = Persistence.createEntityManagerFactory(\"pl.polsl_MatchStatist\"\r\n + \"icsWeb_war_4.0-SNAPSHOTPU\");\r\n em = emf.createEntityManager();\r\n } catch (Exception e) {\r\n em = null;\r\n emf = null;\r\n }\r\n\r\n }",
"public interface PersistenceAdapter extends Service {\n\n /**\n * Returns a set of all the\n * {@link org.apache.activemq.command.ActiveMQDestination} objects that the\n * persistence store is aware exist.\n *\n * @return active destinations\n */\n Set<ActiveMQDestination> getDestinations();\n\n /**\n * Factory method to create a new queue message store with the given\n * destination name\n *\n * @param destination\n * @return the message store\n * @throws IOException\n */\n MessageStore createQueueMessageStore(ActiveMQQueue destination) throws IOException;\n\n /**\n * Factory method to create a new topic message store with the given\n * destination name\n *\n * @param destination\n * @return the topic message store\n * @throws IOException\n */\n TopicMessageStore createTopicMessageStore(ActiveMQTopic destination) throws IOException;\n\n /**\n * Creates and returns a new Job Scheduler store instance.\n *\n * @return a new JobSchedulerStore instance if this Persistence adapter provides its own.\n *\n * @throws IOException If an error occurs while creating the new JobSchedulerStore.\n * @throws UnsupportedOperationException If this adapter does not provide its own\n * scheduler store implementation.\n */\n JobSchedulerStore createJobSchedulerStore() throws IOException, UnsupportedOperationException;\n\n /**\n * Cleanup method to remove any state associated with the given destination.\n * This method does not stop the message store (it might not be cached).\n *\n * @param destination\n * Destination to forget\n */\n void removeQueueMessageStore(ActiveMQQueue destination);\n\n /**\n * Cleanup method to remove any state associated with the given destination\n * This method does not stop the message store (it might not be cached).\n *\n * @param destination\n * Destination to forget\n */\n void removeTopicMessageStore(ActiveMQTopic destination);\n\n /**\n * Factory method to create a new persistent prepared transaction store for\n * XA recovery\n *\n * @return transaction store\n * @throws IOException\n */\n TransactionStore createTransactionStore() throws IOException;\n\n /**\n * This method starts a transaction on the persistent storage - which is\n * nothing to do with JMS or XA transactions - its purely a mechanism to\n * perform multiple writes to a persistent store in 1 transaction as a\n * performance optimization.\n * <p/>\n * Typically one transaction will require one disk synchronization point and\n * so for real high performance its usually faster to perform many writes\n * within the same transaction to minimize latency caused by disk\n * synchronization. This is especially true when using tools like Berkeley\n * Db or embedded JDBC servers.\n *\n * @param context\n * @throws IOException\n */\n void beginTransaction(ConnectionContext context) throws IOException;\n\n /**\n * Commit a persistence transaction\n *\n * @param context\n * @throws IOException\n *\n * @see PersistenceAdapter#beginTransaction(ConnectionContext context)\n */\n void commitTransaction(ConnectionContext context) throws IOException;\n\n /**\n * Rollback a persistence transaction\n *\n * @param context\n * @throws IOException\n *\n * @see PersistenceAdapter#beginTransaction(ConnectionContext context)\n */\n void rollbackTransaction(ConnectionContext context) throws IOException;\n\n /**\n *\n * @return last broker sequence\n * @throws IOException\n */\n long getLastMessageBrokerSequenceId() throws IOException;\n\n /**\n * Delete's all the messages in the persistent store.\n *\n * @throws IOException\n */\n void deleteAllMessages() throws IOException;\n\n /**\n * @param usageManager\n * The UsageManager that is controlling the broker's memory\n * usage.\n */\n void setUsageManager(SystemUsage usageManager);\n\n /**\n * Set the name of the broker using the adapter\n *\n * @param brokerName\n */\n void setBrokerName(String brokerName);\n\n /**\n * Set the directory where any data files should be created\n *\n * @param dir\n */\n void setDirectory(File dir);\n\n /**\n * @return the directory used by the persistence adaptor\n */\n File getDirectory();\n\n /**\n * checkpoint any\n *\n * @param cleanup\n * @throws IOException\n *\n */\n void checkpoint(boolean cleanup) throws IOException;\n\n /**\n * A hint to return the size of the store on disk\n *\n * @return disk space used in bytes of 0 if not implemented\n */\n long size();\n\n /**\n * return the last stored producer sequenceId for this producer Id used to\n * suppress duplicate sends on failover reconnect at the transport when a\n * reconnect occurs\n *\n * @param id\n * the producerId to find a sequenceId for\n * @return the last stored sequence id or -1 if no suppression needed\n */\n long getLastProducerSequenceId(ProducerId id) throws IOException;\n\n void allowIOResumption();\n}",
"public void initPersistence (){\n\t\tif (!this._onAppInit){\n\t\t\t/*\n\t\t\t * Evita stackoverflow\n\t\t\t */\n\t\t\tcloseActiveStoreData ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tfinal Properties properties = this._dataStoreEnvironment.getDataStoreProperties ();\n\t\tfinal PersistenceManagerFactory pmf =\n\t\t\t\t\t JDOHelper.getPersistenceManagerFactory(properties);\n\t\t\n//\t\tSystem.out.println (\"Setting persistent manager from \"+properties);\n\t\t\n\t\tthis.pm = pmf.getPersistenceManager();\n\t\t\n\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\tthis.pm.currentTransaction().commit();\n\t\t}\n\t\tthis.pm.currentTransaction().setOptimistic (false);\n//\t\tthis.pm.currentTransaction().begin();\n\t}",
"public interface AirlineService {\n\n /**\n * Get a list of all airlines\n *\n * @return - a list of airlines present in database or empty if none\n */\n Iterable<Airline> getAirlines();\n\n}",
"public Portal getPortal()\n {\n return portal;\n }",
"public FruitsDao() {\n\t\tthis.cacheManager = new CacheManager();\n\n\t}",
"public SSTBrexitDashboardService() {\n\t\tuserTeamDataService = new UserTeamDBDataService();\n\t\tindexDashboardService = new IndexDBDataService();\n\t}",
"public BLFacadeImplementation() {\t\t\r\n\t\tSystem.out.println(\"Creating BLFacadeImplementation instance\");\r\n\t\tConfigXML c=ConfigXML.getInstance();\r\n\t\t\r\n\t\tif (c.getDataBaseOpenMode().equals(\"initialize\")) {\r\n\t\t\tDataAccess dbManager=new DataAccess(c.getDataBaseOpenMode().equals(\"initialize\"));\r\n\t\t\tdbManager.initializeDB();\r\n\t\t\tdbManager.close();\r\n\t\t\t}\r\n\t\t\r\n\t}",
"public interface GuestDao {\r\n\tpublic boolean addGuest(Guest guest);\r\n\tpublic List<Guest> getAllGuests();\r\n}",
"public Persistence() {}",
"public interface DataStoreManager {\n\n\t/**\n\t * Create a database file.\n\t * \n\t * If only a file name is given, the database will create in %USER_HOME%/zoodb on Windows \n\t * or ~/zoodb on Linux/UNIX.\n\t * \n\t * If a full path is given, the full path will be used instead.\n\t * \n * Any necessary parent folders are created automatically.\n\n * It is recommended to use <code>.zdb</code> as file extension, for example \n * <code>myDatabase.zdb</code>.\n * \n\t * @param dbName The database file name or path \n\t * @see ZooJdoProperties#ZooJdoProperties(String)\n\t */\n\tvoid createDb(String dbName);\n\t\n\t/**\n\t * Check if a database exists. This checks only whether the file exists, not whether it is a \n\t * valid database file.\n\t * \n\t * @param dbName The database file name or path \n\t * @return <code>true</code> if the database exists.\n\t */\n\tboolean dbExists(String dbName);\n\n /**\n * Delete a database(-file).\n * @param dbName The database file name or path \n * @return {@code true} if the database could be removed, otherwise false\n */\n\tboolean removeDb(String dbName);\n\t\n /**\n * \n * @return The default database folder.\n */\n\tString getDefaultDbFolder();\n\t\n\t/**\n\t * Calculates the full path for the given database name, whether the database exists or not.\n\t * @param dbName The database file name or path \n\t * @return The full path of the database given by <code>dbName</code>.\n\t */\n\tString getDbPath(String dbName);\n}",
"private PackageExtraFacilityStore getPackageExtraFacilityStore()\r\n {\r\n final PackageExtraFacilityStore packageExtraFacilityStore =\r\n (PackageExtraFacilityStore) sessionService.getAttribute(\"PackageExtraFacilityStore\");\r\n if (packageExtraFacilityStore != null)\r\n {\r\n return packageExtraFacilityStore;\r\n }\r\n return new PackageExtraFacilityStore();\r\n }",
"public void loadPersistencePreferences() {\n SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(this);\n boolean persistent = sharedPreferences.getBoolean(\"TileCachePersistence\", true);\n Log.v(TAG, \"Cache Size: \" + sharedPreferences.getInt(\"TileCacheSize\", MapsActivity.FILE_SYSTEM_CACHE_SIZE_DEFAULT)\n + \", Persistent: \" + persistent);\n int capacity = Math.min(sharedPreferences.getInt(\"TileCacheSize\", MapsActivity.FILE_SYSTEM_CACHE_SIZE_DEFAULT),\n MapsActivity.FILE_SYSTEM_CACHE_SIZE_MAX);\n TileCache fileSystemTileCache = this.mapView.getFileSystemTileCache();\n\n fileSystemTileCache.setPersistent(persistent);\n fileSystemTileCache.setCapacity(capacity);\n // text size\n String textScaleDefault = getString(R.string.preferences_text_scale_default);\n this.mapView.setTextScale(Float.parseFloat(sharedPreferences.getString(\"mapTextScale\", textScaleDefault)));\n }",
"private UserInterface() {\r\n\t\tif (yesOrNo(\"Look for saved data and use it?\")) {\r\n\t\t\tretrieve();\r\n\t\t} else {\r\n\t\t\tstore = Store.instance();\r\n\t\t}\r\n\t}",
"public Hotel getHotel() {\n return hotel;\n }",
"public Hotel getHotel() {\n return hotel;\n }",
"public ElemFeatureDAOImpl() {\r\n\t\tsuper();\r\n\t}",
"public int getHotelId() {\n return hotelId;\n }",
"public Persistence() {\n\t\tconn = dbConnection();\n\t}",
"public interface DbServices {\n\n String getLocalStatus();\n\n void save(UserEntity userEntity);\n\n UserEntity read(long id);\n\n UserEntity readByName(String name);\n\n List<UserEntity> readAll();\n\n void shutdown();\n}",
"public interface SupplierIndexService {\n\n /**\n * 供应商全量脚本\n */\n @Export\n Response<Boolean> fullDump();\n\n /**\n * 供应商增量脚本\n * @param interval 时间间隔,单位分钟,一般为15分钟\n */\n @Export(paramNames = {\"interval\"})\n Response<Boolean> deltaDump(int interval);\n\n /**\n *\n * @param ids 供应商id列表\n * @param status 供应商状态\n */\n Response<Boolean> realTimeIndex(List<Long> ids, User.SearchStatus status);\n}",
"@Override\n\t\tpublic Repository loadRepository()\n\t\t{\n\t\t\tMemoryStore store = new MemoryStore(IWBFileUtil.getFileInDataFolder(Config.getConfig().getRepositoryName()));\n\t\t\t\n\t\t\t// create a lucenesail to wrap the memorystore\n\t\t\tLuceneSail luceneSail = new LuceneSail();\n\t\t\t// let the lucene index store its data in ram\n\t\t\tluceneSail.setParameter(LuceneSail.LUCENE_RAMDIR_KEY, \"true\");\n\t\t\t// wrap memorystore in a lucenesail\n\t\t\tluceneSail.setBaseSail(store);\n\t\t\t\n\t\t\t// create a Repository to access the sails\n\t\t\treturn new SailRepository(luceneSail);\n\t\t}",
"public interface IEngineDAO extends ISpagoBIDao{\n\t\n\t\n\t/**\n\t * Loads all detail information for an engine identified by its <code>engineID</code>. All these information,\n\t * achived by a query to the DB, are stored into an <code>engine</code> object, which is\n\t * returned.\n\t * \n\t * @param engineID The id for the engine to load\n\t * \n\t * @return An <code>engine</code> object containing all loaded information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic Engine loadEngineByID(Integer engineID) throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for an engine identified by its <code>engineLabel</code>. All these information,\n\t * achived by a query to the DB, are stored into an <code>engine</code> object, which is\n\t * returned.\n\t * \n\t * @param engineLabel The label for the engine to load\n\t * \n\t * @return An <code>engine</code> object containing all loaded information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic Engine loadEngineByLabel(String engineLabel) throws EMFUserError;\n\t\n\t/**\n\t * Loads all detail information for an engine identified by its <code>driver</code>. All these information,\n\t * achived by a query to the DB, are stored into an <code>engine</code> object, which is\n\t * returned.\n\t * \n\t * @param driver The name for the engine to load\n\t * \n\t * @return An <code>engine</code> object containing all loaded information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic Engine loadEngineByDriver(String driver) throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for all engines. For each of them, detail\n\t * information is stored into an <code>engine</code> object. After that, all engines\n\t * are stored into a <code>List</code>, which is returned.\n\t * \n\t * @return A list containing all engine objects\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEngines() throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for all engines in paged way. For each of them, detail\n\t * information is stored into an <code>engine</code> object. After that, all engines inside the paging logic\n\t * are stored into a <code>List</code>, which is returned.\n\t * \n\t * @return A list containing all engine objects\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadPagedEnginesList(Integer offset, Integer fetchSize) throws EMFUserError;\n\t\n\t\n\t/**\n\t * Loads all detail information for all engines filtered by tenant. For each of them, detail\n\t * information is stored into an <code>engine</code> object. After that, all engines\n\t * are stored into a <code>List</code>, which is returned.\n\t * \n\t * @return A list containing all engine objects\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEnginesByTenant() throws EMFUserError;\n\t/**\n\t * Loads all detail information for all engines compatible to the BIObject type specified \n\t * at input and the tenant. For each of them, detail information is stored into an <code>engine</code> object.\n\t * After that, all engines are stored into a <code>List</code>, which is returned.\n\t * \n\t * @param biobjectType the biobject type\n\t * \n\t * @return A list containing all engine objects compatible with the BIObject type passed at input\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEnginesForBIObjectTypeAndTenant(String biobjectType) throws EMFUserError;\n\t/**\n\t * Loads all detail information for all engines compatible to the BIObject type specified\n\t * at input. For each of them, detail information is stored into an <code>engine</code> object.\n\t * After that, all engines are stored into a <code>List</code>, which is returned.\n\t * \n\t * @param biobjectType the biobject type\n\t * \n\t * @return A list containing all engine objects compatible with the BIObject type passed at input\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic List<Engine> loadAllEnginesForBIObjectType(String biobjectType) throws EMFUserError;\n\t/**\n\t * Implements the query to modify an engine. All information needed is stored\n\t * into the input <code>engine</code> object.\n\t * \n\t * @param aEngine The object containing all modify information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic void modifyEngine(Engine aEngine) throws EMFUserError;\n\t\n\t/**\n\t * Implements the query to insert an engine. All information needed is stored\n\t * into the input <code>engine</code> object.\n\t * \n\t * @param aEngine The object containing all insert information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\tpublic void insertEngine(Engine aEngine) throws EMFUserError;\n\t\n\t/**\n\t * Implements the query to erase an engine. All information needed is stored\n\t * into the input <code>engine</code> object.\n\t * \n\t * @param aEngine The object containing all delete information\n\t * \n\t * @throws EMFUserError If an Exception occurred\n\t */\n\t\n\tpublic void eraseEngine(Engine aEngine) throws EMFUserError;\n\n\t/**\n\t * Tells if an engine is associated to any\n\t * BI Object. It is useful because an engine cannot be deleted\n\t * if it is used by one or more BI Objects.\n\t * \n\t * @param engineId The engine identifier\n\t * \n\t * @return True if the engine is used by one or more\n\t * objects, else false\n\t * \n\t * @throws EMFUserError If any exception occurred\n\t */\n\tpublic boolean hasBIObjAssociated (String engineId) throws EMFUserError;\n\n\n\t/**\n\t * Get all the associated Exporters\n\t * \n\t * @param engineId The engine identifier\n\t * \n\t * @return The list of associated Exporters\n\t * \n\t * @throws EMFUserError If any exception occurred\n\t */\n\tpublic List getAssociatedExporters (Engine engineId) throws EMFUserError;\n\n\t\n\t\n\tpublic Integer countEngines() throws EMFUserError;\n\n}",
"public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }",
"public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }",
"public interface DatabaseController {\n\n /**\n * loads all Portals\n *\n * @return all Portals in a List\n */\n List<Portal> loadPortals();\n\n /**\n * saves a portal\n *\n * @param portal a portal\n */\n void savePortal(Portal portal);\n\n /**\n * deletes a portal and resets the target of all portals it was connected to\n *\n * @param portal a portal\n */\n void deletePortal(Portal portal);\n\n /**\n * sets the portals target\n *\n * @param portal1 the source portal\n * @param portal2 the target the portal shall be connected to\n */\n void link(Portal portal1, Portal portal2);\n\n /**\n * locks a portal and makes it available to only the builder\n *\n * @param portal a portal\n */\n void lock(Portal portal);\n\n /**\n * unlocks a portal and makes it available to all players\n *\n * @param portal a portal\n */\n void unlock(Portal portal);\n\n /**\n * disabled all portals on a given world\n *\n * @param worldName the name of the world\n * @param server the server the sender is on\n * @return the number of portals that were disabled\n */\n int disableWorld(String worldName, Server server);\n\n /**\n * enables all portals on a given world if they are disabled\n *\n * @param worldName the name of the world\n * @param server currentServer the server the sender is on\n * @return the number of portals that were disabled\n */\n int enableWorld(String worldName, Server server);\n\n}",
"public interface CfgDocumentHome extends javax.ejb.EJBHome {\n\t/**\n\t * Creates an instance from a key for Entity Bean: CfgDocument\n\t */\n\t/*\n\tpublic com.hps.july.persistence.CfgDocument create(\n\t\tint document,\n\t\tcom.hps.july.persistence.Organization argOwner,\n\t\tcom.hps.july.persistence.StoragePlace argTo,\n\t\tcom.hps.july.persistence.Organization argContragent,\n\t\tcom.hps.july.persistence.StoragePlace argFrom,\n\t\tcom.hps.july.persistence.Worker argStorageManager)\n\t\tthrows javax.ejb.CreateException, java.rmi.RemoteException;\n\t*/\n\t/**\n\t * Finds an instance using a key for Entity Bean: CfgDocument\n\t */\n\tpublic com.hps.july.persistence.CfgDocument findByPrimaryKey(\n\t\tcom.hps.july.persistence.DocumentKey primaryKey)\n\t\tthrows javax.ejb.FinderException, java.rmi.RemoteException;\n\t\t\n\tpublic com.hps.july.persistence.CfgDocument create(\n\t\tint argDocument,\n\t\tInteger argOwner,\n\t\tInteger argFrom,\n\t\tInteger argTo,\n\t\tjava.sql.Date argBlankDate,\n\t\tint argBlankindex,\n\t\tString argBlankNumber,\n\t\tString argState,\n\t\tBoolean argProcessSource,\n\t\tBoolean argProcessDestination,\n\t\tint SavconfigIdOld,\n\t\tint SavconfigIdNew)\n\t\tthrows javax.ejb.CreateException, java.rmi.RemoteException;\n}",
"public ParcoursDataService() {\n this.repository = new JeeRepository();\n }",
"public EmpleadoService() {\n super();\n emf = Persistence.createEntityManagerFactory(\"up_h2\");\n empDAO = new EmpleadoDAO(emf);\n }",
"public interface IPLMBasicInfoPoolSupplyService {\n\n void save(IMetaObjectImpl object);\n void delete(int objid );\n void deleteByIds_(String objids);\n Map getMapInfoById(int objid);\n IMetaDBQuery getSearchList(Map<String, String> map);\n IPLMBasicInfoPoolSupply getById(int objid);\n public IMetaDBQuery queryByids(String objids);\n\n\n IMetaDBQuery selectModel(Map<String, Object> param);\n\n\n void deleteByEntityId(int EntityId,String entitName);\n IMetaDBQuery getSearchListByEntityId(int EntityId,String entitName);\n List<IMetaObjectImpl> getEntitySearchListByEntityId(int EntityId,String entitName);\n Map getOnlyOneByEntityId(int EntityId,String entitName);\n\n\n}",
"public com.hps.july.persistence.StoragePlaceAccessBean getStorage() {\n\treturn storage;\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}",
"abstract void initPersistance();",
"public interface IHibernatePersistenceModule extends IPersistenceModule {\r\n\t/**\r\n\t * Retorna a sessao do hibernate\r\n\t * \r\n\t * @return a sessao\r\n\t */\r\n\tSession getSession();\r\n}",
"public Session(){\n\t\tdb = ALiteOrmBuilder.getInstance().openWritableDatabase();\n\t\texternalsCallbacks = new ArrayList<EntityListener>();\n\t}",
"public interface DBManager {\n\n\t// Populate Data can have different Implementations\n\tvoid populateData();\n}",
"javax.management.ObjectName getPersistenceManager();",
"public interface ArticleService {\n /**\n * Adds Article <tt>a</tt> to the blog's permanent storage.\n * \n * @param a the Article object to be added\n * @throws IllegalArgumentException if a is null or not ready to be saved\n */\n void addArticle(Article a);\n \n /**\n * Returns a specific Article uniquely identified by <tt>id</tt>. \n * \n * @param id the Article's id\n * @return null if id does not refer to a valid article\n * @throws IllegalArgumentException if id is null\n */\n Article findArticleById(String id);\n\n /**\n * Returns the latest Article (by creation date) in the system.\n * \n * @return null if there is no latest Article\n */\n Article findLatestArticle();\n}",
"public DataGeocoderImpl() {\r\n\t\tmanager = DALLocator.getDataManager();\r\n\t}",
"public interface FitnessCentre {\r\n\r\n\t/**\r\n\t * Retrieve all <code>Room</code>s from the data store.\r\n\t * @return a <code>Collection</code> of <code>Room</code>s\r\n\t */\r\n\tCollection<Room> getRooms() throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Retrieve all <code>ActivityType</code>s from the data store.\r\n\t * @return a <code>Collection</code> of <code>ActivityType</code>s\r\n\t */\r\n\tCollection<ActivityType> getActivityTypes() throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Retrieve all <code>User</code>s from the data store.\r\n\t * @return a <code>Collection</code> of <code>User</code>s\r\n\t */\r\n\tCollection<User> getUsers() throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Retrieve all <code>instructor</code>s from the data store.\r\n\t * @return a <code>Collection</code> of <code>instructor</code>s\r\n\t */\r\n\tCollection<User> getInstructors() throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Retrieve all <code>staff</code>s from the data store.\r\n\t * @return a <code>Collection</code> of <code>staff</code>s\r\n\t */\r\n\tCollection<User> getStaffs() throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Retrieve all <code>Lesson</code>s from the data store.\r\n\t * @return a <code>Collection</code> of <code>Lesson</code>s\r\n\t */\r\n\tCollection<Lesson> getLessons() throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Retrieve all active <code>Lesson</code>s from the data store.\r\n\t * @return a <code>Collection</code> of active <code>Lesson</code>s\r\n\t */\r\n\tCollection<Lesson> getActiveLessons() throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Retrieve all <code>Reservation</code>s from the data store.\r\n\t * @return a <code>Collection</code> of <code>Reservation</code>s\r\n\t */\r\n\tCollection<Reservation> getReservations() throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Vrátí Místnost z data store podle id.\r\n\t * @param id id místnosti, kterou hledám\r\n\t * @return požadovaná Místnost, pokud byla nalezena\r\n\t * @throws DataAccessException\r\n\t */\r\n\tRoom loadRoom(int id) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Vrati Aktivitu z data store podle id.\r\n\t */\r\n\tActivityType loadActivityType(int id) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Vrati Uzivatelskou roli z data store dle zadaneho id.\r\n\t */\r\n\tUserRole loadUserRole(int id) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Vrati Uzivatele z data store dle zadaneho id.\r\n\t */\r\n\tUser loadUser(int id) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Vrati Lekci z data store podle id.\r\n\t */\r\n\tLesson loadLesson(int id) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Vrati Rezervaci z data store podle id.\r\n\t */\r\n\tReservation loadReservation(int id) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Uloží místnost do data store, ať už insertovanou nebo updatovanou.\r\n\t * @param room místnost, kterou chci uložit\r\n\t * @throws DataAccessException\r\n\t */\r\n\tvoid storeRoom(Room room) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Ulozi druh aktivity do data store, at uz insertovanou nebo updatovanou.\r\n\t * @param activityType\r\n\t * @throws DataAccessException\r\n\t */\r\n\tvoid storeActivityType(ActivityType activityType) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Ulozi uzivatele do data store, at uz insertovaneho nebo updatovaneho.\r\n\t * @param user\r\n\t * @throws DataAccessException\r\n\t */\r\n\tvoid storeUser(User user) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Ulozi Lekci do data store, at uz insertovaneho nebo updatovaneho.\r\n\t * @param lesson\r\n\t * @throws DataAccessException\r\n\t */\r\n\tvoid storeLesson(Lesson lesson) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Ulozi Rezervaci do data store, at uz insertovanou nebo updatovanou.\r\n\t * @param reservation\r\n\t * @throws DataAccessException\r\n\t */\r\n\tvoid storeReservation(Reservation reservation) throws DataAccessException;\r\n\r\n\t/**\r\n\t * Deletes a <code>Room</code> from the data store.\r\n\t */\r\n\tvoid deleteRoom(int id) throws DataAccessException;\r\n\t\t\r\n\t/**\r\n\t * Deletes a <code>ActivityType</code> from the data store.\r\n\t */\r\n\tvoid deleteActivityType(int id) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Deletes a <code>User</code> from the data store.\r\n\t */\r\n\tvoid deleteUser(int id) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Deletes a <code>Reservation</code> from the data store.\r\n\t */\r\n\tvoid deleteReservation(int id) throws DataAccessException;\r\n\t\r\n\t/**\r\n\t * Deletes a <code>Lesson</code> from the data store.\r\n\t */\r\n\tvoid deleteLesson(int id) throws DataAccessException;\r\n\r\n}",
"@Local\npublic interface PainterServiceBeanLocal {\n\n \n // ---------------- Create ------------------\n /**\n * Persists new Painter in the DB\n *\n * @param painter new Painter Entity class\n */\n public void createPainter(Painter painter);\n\n // ------------------- Retrieve -------------------\n /**\n * Finds and returns Painter by its ID\n *\n * @param id - PK of the Object being searched\n * @return found Painter Entity\n */\n public Painter findPainter(Integer id) throws NullPointerException;\n\n // ------------------- Update ---------------------\n /**\n * Updates ae entity by merging passing parameter if detached\n *\n * @param painter Painter to update\n * @throws IllegalArgumentException when the entity has not been found\n */\n public void updatePainter(Painter painter);\n // ------------------- Delete ---------------------\n /**\n * Deletes a passed Paitner from DB\n *\n * @param id of the Painter to be deleted\n * @throws IllegalArgumentException when the entity has not been found in the DB\n */\n public void removePainter(Integer id);\n\n /**\n * assigns a Painting to a Painter\n *\n * @param findPainterById id of the Painter of the Painting\n * @param painting Painting to be assigned\n */\n void assignPainting(Painter findPainterById, Painting painting);\n\n /**\n * assigns a Painting to a Painter\n *\n * @param chosenId id of the Painter of the Painting\n * @param id id of the Painting to be assigned\n */\n void assignPainting(int chosenId, Integer id);\n \n \n /**\n * Finds all Painters stored in the DB\n *\n * @return list of painters persisted\n */\n public List<Painter> findAllPainters();\n\n /**\n * Finds all painter's id in the DB\n *\n * @return list of all IDs\n */\n public List<Integer> findAllPaintersId();\n}",
"public interface LocalDatabase {\n void start();\n void stop();\n boolean isAvailable();\n\n String getUrl();\n String getDriver();\n String getUsername();\n String getPassword();\n String getDialect();\n}",
"public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }",
"public AlManageOnAirDAOImpl() {\r\n super();\r\n }",
"public interface VisitBLService {\n\n\n //得到一个新的id\n public int getID();\n\n //增加一条师生出访记录\n public String addItem(AcademicVO academicVO);\n\n //删除一条师生出访的记录\n public UniversalState deleteItem(int id);\n\n //更新一条师生出访的记录\n public UniversalState updateItem(AcademicVO academicVO);\n\n //获取一条师生出访的记录\n public AcademicVO getItem(int id);\n\n //获取全部师生出访的记录\n public ArrayList<AcademicVO> getAllItems(String language);\n\n\n\n}",
"public interface LocalityService {\n Locality saveLocality(RbcLocality rbcLocality);\n Integer getMaxId();\n}",
"public ItemPublicacaoPersistence getItemPublicacaoPersistence() {\n\t\treturn itemPublicacaoPersistence;\n\t}",
"public interface HotelReservations {\n\n void lookupHotels();\n Hotel getSelectedHotel();\n \n void destroy();\n}",
"public interface StoreDao {\n\n public List<Store> getStoreList();\n\n public Store getStore(int idStore);\n}",
"public interface ProgramFeedBackService {\n\n /**\n * Save a programFeedBack.\n *\n * @param programFeedBackDTO the entity to save\n * @return the persisted entity\n */\n ProgramFeedBackDTO save(ProgramFeedBackDTO programFeedBackDTO);\n\n /**\n * Get all the programFeedBacks.\n * \n * @return the list of entities\n */\n List<ProgramFeedBackDTO> findAll();\n\n /**\n * Get the \"id\" programFeedBack.\n *\n * @param id the id of the entity\n * @return the entity\n */\n ProgramFeedBackDTO findOne(Long id);\n\n /**\n * Delete the \"id\" programFeedBack.\n *\n * @param id the id of the entity\n */\n void delete(Long id);\n}",
"public ProduktRepositoryImpl() {\n this.conn = DatabaseConnectionManager.getDatabaseConnection();\n }",
"public interface DB2PermataFavoriteService {\n\n public abstract List<PermataFavorite> getPermataFavorite(int data);\n public abstract List<PermataFavorite> getPermataFavoriteByGcn(String gcn);\n public abstract List<PermataFavorite> getPermataFavoriteduplicate(int data);\n public abstract PermataFavorite savePermataFavorite(PermataFavorite permataFavorite);\n public abstract List<PermataFavorite> getAllPermataFavorite();\n}",
"public interface WorkloadManagementService\n{\n /**\n * @return for a given project a WorkloadManager object. Also applicable for older INCEpTION\n * version where the workload feature was not present. Also, if no entity can be found,\n * a new entry will be created and returned.\n * @param aProject\n * a project\n */\n WorkloadManager loadOrCreateWorkloadManagerConfiguration(Project aProject);\n\n WorkloadManagerExtension<?> getWorkloadManagerExtension(Project aProject);\n\n void saveConfiguration(WorkloadManager aManager);\n\n List<AnnotationDocument> listAnnotationDocumentsForSourceDocumentInState(\n SourceDocument aSourceDocument, AnnotationDocumentState aState);\n\n Long getNumberOfUsersWorkingOnADocument(SourceDocument aDocument);\n}",
"public int getHotelID() {\n return hotelID;\n }",
"private void setImpl() {\n Object obj = getConfigManager().getObject(\"SERVER_IMPL\");\n if (null == obj) {\n LoggingServices.getCurrent().logMsg(getClass().getName(), \"setImpl()\"\n , \"Could not instantiate SERVER_IMPL.\", \"Make sure loyalty.cfg contains SERVER_IMPL\"\n , LoggingServices.MAJOR);\n }\n LoyaltyServices.setCurrent((LoyaltyServices)obj);\n }"
]
| [
"0.57827246",
"0.55962586",
"0.55884904",
"0.557811",
"0.55646104",
"0.5552143",
"0.5479643",
"0.54600465",
"0.5449631",
"0.5438081",
"0.54296",
"0.5428505",
"0.54235774",
"0.5415061",
"0.5409673",
"0.5407431",
"0.53891814",
"0.53843945",
"0.538421",
"0.5374482",
"0.53700835",
"0.53696907",
"0.5359039",
"0.53307545",
"0.53056186",
"0.5304272",
"0.5299752",
"0.529762",
"0.52884614",
"0.52816963",
"0.52729183",
"0.52668226",
"0.52610254",
"0.52610254",
"0.5254768",
"0.52450454",
"0.523117",
"0.5230851",
"0.5229337",
"0.5226413",
"0.5225079",
"0.52181965",
"0.52139",
"0.5212419",
"0.5200071",
"0.5198711",
"0.5195749",
"0.5183106",
"0.51826864",
"0.5180791",
"0.51671785",
"0.51655334",
"0.51449364",
"0.5137297",
"0.5135917",
"0.5125036",
"0.51151615",
"0.5104512",
"0.50755227",
"0.50673455",
"0.50673455",
"0.50658846",
"0.50620645",
"0.50604147",
"0.50599486",
"0.5049239",
"0.50487405",
"0.50471723",
"0.5045913",
"0.5045913",
"0.50428057",
"0.5042658",
"0.5039844",
"0.50389165",
"0.50318754",
"0.50298715",
"0.50288767",
"0.50234574",
"0.50173473",
"0.5009804",
"0.49887264",
"0.49869627",
"0.4983886",
"0.49821573",
"0.49770248",
"0.49745044",
"0.4967309",
"0.49671462",
"0.49563265",
"0.49521714",
"0.49517387",
"0.49481606",
"0.494447",
"0.49419415",
"0.4941119",
"0.4936488",
"0.49360937",
"0.49340126",
"0.49327007",
"0.49227762"
]
| 0.6107384 | 0 |
Returns the first hotel in the ordered set where uuid = &63;. | public com.Hotel.model.Hotel findByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.Hotel.model.Hotel fetchByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public wsihash fetchByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator);",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer fetchByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public Todo fetchByUuid_First(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public DataEntry fetchByUuid_First(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public ItemEntity getItemByUUID(String uuid) {\n try {\n return entityManager.createNamedQuery(\"itemByUUID\", ItemEntity.class).setParameter(\"uuid\", uuid).getSingleResult();\n } catch (NoResultException nre) {\n return null;\n }\n }",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer findByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.i3mainz.flexgeo.portal.liferay.services.NoSuchOGCServiceLayerException;",
"@Override\n\tpublic Paper fetchByUuid_First(String uuid,\n\t\tOrderByComparator<Paper> orderByComparator) {\n\t\tList<Paper> list = findByUuid(uuid, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public Location getHome(UUID uuid, String name){\r\n\t\t//Load Map (Update)\r\n\t\tloadMap();\r\n\t\t//Combovar of Homename & UUID of Player\r\n\t\tString uniqhome = uuid.toString() + name;\r\n\r\n\t\t//Reads the HomePoint and returns its Location\r\n\t\ttry{\r\n\t\t\tStringTokenizer toker = new StringTokenizer(map.get(uniqhome), \";\");\r\n\t\t\tLocation loc = new Location(Bukkit.getWorld(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tDouble.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tFloat.valueOf(toker.nextToken()), Float.valueOf(toker.nextToken()));\r\n\r\n\t\t\treturn loc;\r\n\r\n\t\t} catch(NullPointerException e){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByUuid_First(uuid, orderByComparator);\n }",
"@Override\r\n\tpublic Share fetchByUuid_First(String uuid,\r\n\t\tOrderByComparator<Share> orderByComparator) {\r\n\t\tList<Share> list = findByUuid(uuid, 0, 1, orderByComparator);\r\n\r\n\t\tif (!list.isEmpty()) {\r\n\t\t\treturn list.get(0);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer fetchByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"@Override\n public StorePickStatus getByUuid(String uuid) {\n return getSqlSession().getMapper(StorePickStatusDao.class).getByUuid(uuid);\n }",
"public com.refcodes.portlets.businesscenter.model.BusinessUser fetchByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public static Job fetchByUuid_First(String uuid,\n\t\tOrderByComparator<Job> orderByComparator) {\n\t\treturn getPersistence().fetchByUuid_First(uuid, orderByComparator);\n\t}",
"User getUserByUUID(String uuid);",
"ConceptMap loadLatestConceptMapForUUID(String uuid) {\n \t\tArrayList<ConceptMap> listItems = loadConceptMapVersionsForUUID(uuid, 1);\n \t\tif (listItems == null || listItems.isEmpty()) return null;\n \t\treturn listItems.get(0);\n \t}",
"@Override\r\n\tpublic Unit getUnit(String uuid) {\n\r\n\t\treturn unitRepo.getUnit(uuid);\r\n\t}",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer findByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.i3mainz.flexgeo.portal.liferay.services.NoSuchOGCServiceLayerException;",
"public Beer getBeerById(UUID uuid){\n return restTemplate.getForObject(apiHost + BEER_SERVICE_PATH_V1\n + uuid.toString(), Beer.class);\n }",
"@Transactional(readOnly = false) \r\n public YadaBrowserId findOrCreate(UUID uuid) {\r\n \tYadaBrowserId yadaBrowserId = findByMostSigBitsAndLeastSigBits(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());\r\n \tif (yadaBrowserId==null) {\r\n \t\tyadaBrowserId = new YadaBrowserId();\r\n \t\tem.persist(yadaBrowserId);\r\n \t\tyadaBrowserId.setUUID(uuid);\r\n \t}\r\n \treturn yadaBrowserId;\r\n }",
"public DataEntry findByUuid_First(\n\t\t\tString uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchDataEntryException;",
"private Mapping getMappingByID(List<BaseMapping> mappings, String uuid) {\n Mapping objectMapping = null;\n if (mappings != null) {\n for (ListIterator<BaseMapping> iter = mappings.listIterator(); iter.hasNext();) {\n Mapping element = (Mapping)iter.next();\n if (element.getId().equals(uuid)) {\n objectMapping = element;\n break;\n }\n }\n }\n return objectMapping;\n }",
"public com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter fetchOneById(UUID value) {\n return fetchOne(Voter.VOTER.ID, value);\n }",
"public Todo fetchByUuid_C_First(\n\t\tString uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public DataEntry fetchByUuid_C_First(\n\t\tString uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public Seat bestAvailableSeat() {\r\n\t\tfor (Seat s : seats) {\r\n\t\t\tif (!s.reserved) {\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if no seats available return null\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Node getNodeByUUID(String uuid) throws ItemNotFoundException,\r\n\t\t\tRepositoryException {\n\t\treturn null;\r\n\t}",
"public Hotel bestHotel() {\r\n \tArrayList<Hotel> hotels = hotelDAO.getHotelList();\r\n \tHotel bestHotel=hotels.get(0);\r\n \tfor (int i=0; i<hotels.size();i++) {\r\n \t\tif(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) {\r\n \t\t\tbestHotel=hotels.get(i);\r\n \t\t}\r\n \t}\r\n \treturn bestHotel;\r\n }",
"public DataDict findOneDataDictById(String uuid) {\n\t\tDataDict dataDict = dataDictRepository.findOne(uuid);\r\n\t\treturn dataDict;\r\n\t}",
"public static Task fetchByUuid_First(String uuid,\n\t\tOrderByComparator<Task> orderByComparator) {\n\t\treturn getPersistence().fetchByUuid_First(uuid, orderByComparator);\n\t}",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence()\n .fetchByUuid_C_First(uuid, companyId, orderByComparator);\n }",
"private T getMinUnvisited(){\n if (unvisited.isEmpty()) return null;\n T min = unvisited.get(0);\n for (int i = 1; i < unvisited.size(); i++){\n T temp = unvisited.get(i);\n if (distances[vertexIndex(temp)] < distances[vertexIndex(min)]){\n min = temp;\n }\n }\n return min;\n }",
"@Override\n public Client get(String uuid) {\n return null;\n }",
"public static Pregnancy getOne(Connection conn, String uuid) throws SQLException, ServletException, ObjectNotFoundException {\r\n \tPregnancy item = null;\r\n \tString sql;\r\n \tArrayList values;\r\n \tsql = \"SELECT id, patient_id AS patientId, date_pregnancy_begin AS datePregnancyBegin, \" +\r\n \t\"pregnancy_begin_encounter_id AS pregnancyBeginEncounter, date_pregnancy_end AS datePregnancyEnd, \" +\r\n \t\"last_modified AS lastModified, created AS created, last_modified_by AS lastModifiedBy, \" +\r\n \t\"created_by AS createdBy, site_id AS siteId, created_site_id AS createdSiteId,\" +\r\n \t\"labour_admission_encounter_id AS labourAdmissionEncounterId, date_labour_admission AS dateActiveLabour, \" +\r\n \t\"import_pregnancy_id AS importPregnancyId, uuid, \" +\r\n\t\t\"pregnancy_begin_encounter_uuid AS pregnancyBeginEncounterUuid, pregnancy_end_encounter_id AS pregnancyEndEncounter, \" +\r\n\t\t\"pregnancy_end_encounter_uuid AS pregnancyEndEncounterUuid, \" +\r\n \t\"labour_admission_encounter_uuid AS labourAdmissionEncounterUuid \" +\r\n \t\"FROM pregnancy WHERE uuid=?\";\r\n \tvalues = new ArrayList();\r\n \tvalues.add(uuid);\r\n \titem = (Pregnancy) DatabaseUtils.getZEPRSBean(conn, Pregnancy.class, sql, values);\r\n \treturn item;\r\n }",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findByUuid_First(uuid, orderByComparator);\n }",
"@Override\n public Tile getFirst() {\n return tiles.iterator().next();\n }",
"Optional<Unit> getFirstSelectableUnitAt(final Player currentPlayer, final Location location) {\n Preconditions.checkNotNull(currentPlayer, \"Player is null\");\n Preconditions.checkNotNull(location, \"Location is null\");\n\n final List<Unit> playersUnitAtLocation = units.stream()\n .filter(unit -> currentPlayer.equals(unit.getOwner()))\n .filter(unit -> unit.isAtPlaceLocation())\n .filter(unit -> unit.getLocation().equals(location)).collect(Collectors.toList());\n\n final Optional<Unit> moveableUnit = playersUnitAtLocation.stream()\n .filter(unit -> unit.getActionPoints() > 0).findFirst();\n if (moveableUnit.isPresent()) {\n return moveableUnit;\n } else {\n return playersUnitAtLocation.stream().findFirst();\n }\n }",
"public Todo findByUuid_First(\n\t\t\tString uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchTodoException;",
"public wsihash fetchByUuid_C_First(java.lang.String uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator);",
"public static Term fetchByUuid_First(\n\t\tString uuid, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().fetchByUuid_First(uuid, orderByComparator);\n\t}",
"short getFirstOpenIndexInArgument(UUID id);",
"public wsihash findByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator)\n\t\tthrows NoSuchwsihashException;",
"public com.refcodes.portlets.businesscenter.model.BusinessUser findByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.refcodes.portlets.businesscenter.NoSuchBusinessUserException;",
"@Override\n public String getEarliestRevisionUUID(String apiUUID) throws APIManagementException {\n return apiMgtDAO.getEarliestRevision(apiUUID);\n }",
"public AnswerEntity getAnswerByUuId(String uuid) {\n try {\n return entityManager.createNamedQuery(\"answerByUuid\", AnswerEntity.class).setParameter(\"uuid\", uuid).getSingleResult();\n } catch (NoResultException nre) {\n return null;\n }\n }",
"private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}",
"public BoardCell pickLocation(Set<BoardCell> targets){\n\t\tfor (BoardCell i: targets)\r\n\t\t\tif (i.isRoom() && !(((RoomCell) i).getInitial() == lastRoomVisited))\r\n\t\t\t\treturn i;\r\n\t\t//\tpick random cell\r\n\t\tObject[] cell = targets.toArray();\r\n\t\tRandom generator = new Random();\r\n\t\tint random = generator.nextInt(cell.length);\r\n\t\treturn (BoardCell) cell[random];\r\n\t}",
"public RestaurantEntity restaurantByUUID(String restaurantUuid)throws RestaurantNotFoundException{\n if(restaurantUuid == null||restaurantUuid == \"\"){ //Checking for restaurantUuid to be null or empty to throw exception.\n throw new RestaurantNotFoundException(\"RNF-002\",\"Restaurant id field should not be empty\");\n }\n\n //Calls getRestaurantByUuid of restaurantDao to get the RestaurantEntity\n RestaurantEntity restaurantEntity = restaurantDao.getRestaurantByUUID(restaurantUuid);\n\n if (restaurantEntity == null){ //Checking for restaurantEntity to be null or empty to throw exception.\n throw new RestaurantNotFoundException(\"RNF-001\",\"No restaurant by this id\");\n }\n\n return restaurantEntity;\n\n\n }",
"public RestaurantEntity restaurantByUUID(String restaurantUuid)throws RestaurantNotFoundException{\n if(restaurantUuid == null||restaurantUuid == \"\"){ //Checking for restaurantUuid to be null or empty to throw exception.\n throw new RestaurantNotFoundException(\"RNF-002\",\"Restaurant id field should not be empty\");\n }\n\n //Calls getRestaurantByUuid of restaurantDao to get the RestaurantEntity\n RestaurantEntity restaurantEntity = restaurantDao.getRestaurantByUUID(restaurantUuid);\n\n if (restaurantEntity == null){ //Checking for restaurantEntity to be null or empty to throw exception.\n throw new RestaurantNotFoundException(\"RNF-001\",\"No restaurant by this id\");\n }\n\n return restaurantEntity;\n\n\n }",
"private Vertex getMinimum(Set<Vertex> vertexes) {\n // Use of Java 8 Optional container object.\n Optional<Vertex> minimum = Optional.empty();\n for (Vertex vertex : vertexes) {\n if (!minimum.isPresent()) {\n minimum = Optional.of(vertex);\n } else {\n if (distance.get(vertex) < distance.get(minimum.get())) {\n minimum = Optional.of(vertex);\n }\n }\n }\n\n return minimum.get();\n }",
"public com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"Position<T> first();",
"public VectorItem<O> firstVectorItem()\r\n {\r\n if (isEmpty()) return null; \r\n return first;\r\n }",
"public Vertex getNextVertex(List<Vertex> unvisitedNodes){\n Vertex smallest = null;\n for(Vertex vertex: unvisitedNodes){\n if(smallest==null)\n smallest = vertex;\n else if(distance.get(vertex)< distance.get(smallest))\n smallest = vertex;\n }\n return smallest;\n }",
"private Fruit findClosestFruit(Robot robot) {\n double min_dist = Double.MAX_VALUE;\n Fruit ans = null;\n for (int i = 0; i < my_game.getFruits().size(); i++) {\n Fruit fruit = my_game.getFruits().get(i);\n if(fruits_status.values().contains(fruit)) {\n continue;\n }\n double dist = algo_g.shortestPathDist(robot.getSrc(), fruit.getEdge().getSrc());\n if (dist < min_dist) {\n min_dist = dist;\n ans = fruit;\n }\n\n }\n\n return ans;\n }",
"@Override\n\tpublic StorePacks getPackByUuid(String uuid) throws WebApplicationException{\n\t\t\n\t\tStorePacks storePacks = null;\n\t\ttry {\n\t\t\tstorePacks= storeBusiness.getPackByUuid(uuid);\n\t\t} catch (StoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrowException(e.getStoreDetails());\n\t\t}\n\t\t\n\t\treturn storePacks;\n\t}",
"public ProductSpecificationMapping fetchByUuid_First(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public Optional<Employeee> findByUuid(String uuid) {\n\t\treturn employeerepo.findByUuid(uuid);\n\t}",
"public HotelCard searchHotel() {\n System.out.println(ANSI() + \"Here is your hotel card list:\" + ANSI_RESET);\n // Presentation of player's hotel card list\n for (HotelCard hc : hotel_list) {\n System.out.print(ANSI() + \"Hotel Name: \" + hc.getName() + ANSI_RESET);\n System.out.print(ANSI() + \", Hotel ID: \" + hc.getID() + ANSI_RESET);\n System.out.println(ANSI() + \", Hotel Ranking: \" + hc.getRank() + ANSI_RESET);\n }\n System.out.println(ANSI() + \"Please type the id of the hotel you choose\" + ANSI_RESET);\n boolean answer = false;\n while (answer == false) {\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int ID;\n try { \n ID = Integer.parseInt(str);\n // Search for the hotel card with user's given ID \n for (HotelCard hc : hotel_list) \n if (hc.getID() == ID) return hc; \n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET); \n } catch (Exception e) {\n System.out.println(ANSI() + \"Please type a valid ID\" + ANSI_RESET);\n }\n }\n // Junk \n return null;\n }",
"@Override\n\tpublic TvShow fetchByUuid_First(String uuid,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tList<TvShow> list = findByUuid(uuid, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public Recipe getFirstRecipe(){\n Recipe first = null;\n if(!recipes.isEmpty()){\n first = recipes.get(0);\n }\n return first;//este metodo se llama a partir de la respuesta que recibe del servicio recipeservices\n //que esta construido a su vez por el cliente\n }",
"private Node createUsedSubTreeRefMap(XmlProcessor simpleXmlProcessor, String uuid) {\n\t\tString xpathforUsedSubTreeMap = \"/measure/subTreeLookUp/subTree[@uuid='\" + uuid + \"']\";\n\t\tNode subTreeNode = null;\n\t\ttry {\n\t\t\tsubTreeNode = simpleXmlProcessor.findNode(simpleXmlProcessor.getOriginalDoc(), xpathforUsedSubTreeMap);\n\t\t} catch (XPathExpressionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn subTreeNode;\n\t}",
"public static Task findByUuid_First(String uuid,\n\t\tOrderByComparator<Task> orderByComparator)\n\t\tthrows serviceBuilder.exception.NoSuchTaskException {\n\t\treturn getPersistence().findByUuid_First(uuid, orderByComparator);\n\t}",
"public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }",
"@Override\n\tpublic Basket findOne(Integer arg0) {\n\t\treturn null;\n\t}",
"public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }",
"public static TownyWarsResident getResident(UUID uuid) {\n\t\treturn TownyWarsResident.allTownyWarsResidents.get(uuid);\n\t}",
"@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}",
"@Override\r\n\tpublic FyTestRecord findByUuid(String uuid) {\n\t\treturn testRecordDao.findByUuid(uuid);\r\n\t}",
"private CAUEntry findElementWithTID(CAUList ulist, int tid){\n\t\tList<CAUEntry> list = ulist.CAUEntries;\n\t\t\n\t\t// perform a binary search to check if the subset appears in level k-1.\n int first = 0;\n int last = list.size() - 1;\n \n // the binary search\n while( first <= last )\n {\n \tint middle = ( first + last ) >>> 1; // divide by 2\n\n if(list.get(middle).tid < tid){\n \tfirst = middle + 1; // the itemset compared is larger than the subset according to the lexical order\n }\n else if(list.get(middle).tid > tid){\n \tlast = middle - 1; // the itemset compared is smaller than the subset is smaller according to the lexical order\n }\n else{\n \treturn list.get(middle);\n }\n }\n\t\treturn null;\n\t}",
"java.lang.String getHotelId();",
"public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByUuid_C_First(uuid, companyId, orderByComparator);\n }",
"private Node getLowestNode(Set<Node> openSet)\r\n {\r\n // find the node with the least f\r\n double minF = Double.MAX_VALUE;\r\n Node[] openArray = openSet.toArray(new Node[0]);\r\n\r\n Node q = null;\r\n for (int i = 0; i < openArray.length; ++i)\r\n {\r\n if (openArray[i].f < minF) \r\n {\r\n minF = openArray[i].f;\r\n q = openArray[i];\r\n }\r\n }\r\n return q;\r\n }",
"@Override\n\tpublic Property selectById(String uuid) {\n\t\treturn pr.findByUuid(uuid);\n\t}",
"V get(UniqueId uniqueId);",
"public boolean offerFirst(E item);",
"public com.refcodes.portlets.businesscenter.model.BusinessUser fetchByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"@Override\r\n\tpublic Estates findOne(Integer arg0) {\n\t\treturn null;\r\n\t}",
"public com.Hotel.model.Hotel[] findByUuid_PrevAndNext(long hotelId,\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"String first(String collection);",
"public Item getFirst();",
"public DataDictType findOneDataDictTypeById(String uuid) {\n\t\tDataDictType dataDictType = dataDictTypeRepository.findOne(uuid);\r\n\t\treturn dataDictType;\r\n\t}",
"@Override\n\tpublic HotelDetails findHotel(int id) {\n\t\treturn bookingDao.findHotel(id);\n\t}",
"public String getAnimalOwnerID(String auuid){\r\n\t\t\r\n\t\tSet<String> farmers = plugin.getAnimalData().getConfigurationSection(\"Farmer\").getKeys(false);\r\n\t\tfor(String farmer : farmers){\r\n\t\t\tif(plugin.getAnimalData().contains(\"Farmer.\" + farmer +\".Animals.\" + auuid)){\r\n\t\t\t\treturn plugin.getAnimalData().getString(\"Farmer.\"+ farmer + \".Animals.\" + auuid + \".OwnerID\");\r\n\t\t\t}else{\r\n\t\t\t\treturn \"Unknown\";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"Unknown\";\r\n\t}",
"public QuestionEntity getQuestionById(final String uuid) {\n try {\n return entityManager.createNamedQuery(\"getQuestionByUuid\", QuestionEntity.class)\n .setParameter(\"uuid\", uuid).getSingleResult();\n } catch (NoResultException nre) {\n return null;\n }\n }",
"public Magasin findMagasinByDepotUnique(int depot) {\n\t\tQuery query= session.createQuery(\"select c from Magasin c where c.depot.id =:depot\");\n\t\n\t\tquery.setParameter(\"depot\", depot);\n\t\t\n\t\t return (Magasin)query.uniqueResult();\n\t\t\n\t}",
"public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }",
"public Optional<T> getFirstItem() {\n return getData().stream().findFirst();\n }",
"public E first() {\n if (isEmpty()) return null;\n return first.item;\n }",
"private Coordinate getNeighbour(boolean locked) {\n\t\tSet<Coordinate> set = locked ? lockedNeighbours : unlockedNeighbours;\n\t\tif (set.isEmpty()) return null;\n\t\treturn (Coordinate) set.toArray()[new Random().nextInt(set.size())];\n\t}",
"public Object firstElement();",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"private Item findItem(String code, int depart, Session session) {\n\t\tQuery<Item> query = session.createQuery(ITEM_QUERY, Item.class);\n\t\tquery.setParameter(CODE, code);\n\t\tquery.setParameter(DEPART, depart);\n\t\tList<Item> list = query.list(); // assert size <= 1\n\t\treturn list.isEmpty() ? null : list.get(0);\n\t}",
"public static Location worldLocsGet(UUID uuid) {\n\n\t\tLocation loc = null;\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM worldlocs WHERE uuid = '\" + uuid + \"'\");\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tdouble x = rs.getDouble(\"x\") + 0.5;\n\t\t\t\tdouble y = rs.getDouble(\"y\");\n\t\t\t\tdouble z = rs.getDouble(\"z\") + 0.5;\n\t\t\t\tloc = new Location(PvPTeleport.instance.getServer().getWorld(\"world\"), x, y, z);\n\n\t\t\t}\n\n\t\t\trs.close();\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t\treturn loc;\n\n\t}",
"public static Job findByUuid_First(String uuid,\n\t\tOrderByComparator<Job> orderByComparator)\n\t\tthrows com.kisti.osp.icebreaker.exception.NoSuchJobException {\n\t\treturn getPersistence().findByUuid_First(uuid, orderByComparator);\n\t}"
]
| [
"0.6750296",
"0.58709145",
"0.57352626",
"0.56453824",
"0.56198055",
"0.55836016",
"0.556967",
"0.5533279",
"0.54440254",
"0.53006256",
"0.5267993",
"0.52572733",
"0.5249488",
"0.5214664",
"0.516674",
"0.51666045",
"0.5130599",
"0.5128473",
"0.5118235",
"0.50935686",
"0.50707763",
"0.5035328",
"0.50257695",
"0.50134593",
"0.49817812",
"0.4980032",
"0.4977637",
"0.49713126",
"0.4966738",
"0.49619505",
"0.49139583",
"0.49107563",
"0.48974615",
"0.48864734",
"0.48472968",
"0.48329663",
"0.4831052",
"0.48230603",
"0.4814157",
"0.48131007",
"0.4809547",
"0.48035696",
"0.48014233",
"0.4779886",
"0.47761902",
"0.4771088",
"0.47324497",
"0.47318187",
"0.4730874",
"0.4730874",
"0.4730067",
"0.4700938",
"0.46972242",
"0.46945578",
"0.46943146",
"0.46846768",
"0.46801546",
"0.46716273",
"0.46706218",
"0.46596694",
"0.46442282",
"0.46401477",
"0.46399432",
"0.46379292",
"0.4636906",
"0.46115983",
"0.46043494",
"0.45972663",
"0.45955014",
"0.45885712",
"0.45831987",
"0.45823887",
"0.45600334",
"0.45556828",
"0.4550925",
"0.4542731",
"0.4541708",
"0.4541027",
"0.45384404",
"0.45384404",
"0.4538119",
"0.45282388",
"0.4515228",
"0.45083752",
"0.45008802",
"0.44971412",
"0.44965994",
"0.4493601",
"0.4491381",
"0.44845188",
"0.44797435",
"0.44762743",
"0.44691446",
"0.4466254",
"0.4466254",
"0.4466254",
"0.4466254",
"0.44613332",
"0.44572413",
"0.44552788"
]
| 0.68523103 | 0 |
Returns the first hotel in the ordered set where uuid = &63;. | public com.Hotel.model.Hotel fetchByUuid_First(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.Hotel.model.Hotel findByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public wsihash fetchByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator);",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer fetchByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public Todo fetchByUuid_First(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public DataEntry fetchByUuid_First(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public ItemEntity getItemByUUID(String uuid) {\n try {\n return entityManager.createNamedQuery(\"itemByUUID\", ItemEntity.class).setParameter(\"uuid\", uuid).getSingleResult();\n } catch (NoResultException nre) {\n return null;\n }\n }",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer findByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.i3mainz.flexgeo.portal.liferay.services.NoSuchOGCServiceLayerException;",
"@Override\n\tpublic Paper fetchByUuid_First(String uuid,\n\t\tOrderByComparator<Paper> orderByComparator) {\n\t\tList<Paper> list = findByUuid(uuid, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public Location getHome(UUID uuid, String name){\r\n\t\t//Load Map (Update)\r\n\t\tloadMap();\r\n\t\t//Combovar of Homename & UUID of Player\r\n\t\tString uniqhome = uuid.toString() + name;\r\n\r\n\t\t//Reads the HomePoint and returns its Location\r\n\t\ttry{\r\n\t\t\tStringTokenizer toker = new StringTokenizer(map.get(uniqhome), \";\");\r\n\t\t\tLocation loc = new Location(Bukkit.getWorld(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tDouble.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tFloat.valueOf(toker.nextToken()), Float.valueOf(toker.nextToken()));\r\n\r\n\t\t\treturn loc;\r\n\r\n\t\t} catch(NullPointerException e){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByUuid_First(uuid, orderByComparator);\n }",
"@Override\r\n\tpublic Share fetchByUuid_First(String uuid,\r\n\t\tOrderByComparator<Share> orderByComparator) {\r\n\t\tList<Share> list = findByUuid(uuid, 0, 1, orderByComparator);\r\n\r\n\t\tif (!list.isEmpty()) {\r\n\t\t\treturn list.get(0);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer fetchByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"@Override\n public StorePickStatus getByUuid(String uuid) {\n return getSqlSession().getMapper(StorePickStatusDao.class).getByUuid(uuid);\n }",
"public com.refcodes.portlets.businesscenter.model.BusinessUser fetchByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public static Job fetchByUuid_First(String uuid,\n\t\tOrderByComparator<Job> orderByComparator) {\n\t\treturn getPersistence().fetchByUuid_First(uuid, orderByComparator);\n\t}",
"User getUserByUUID(String uuid);",
"ConceptMap loadLatestConceptMapForUUID(String uuid) {\n \t\tArrayList<ConceptMap> listItems = loadConceptMapVersionsForUUID(uuid, 1);\n \t\tif (listItems == null || listItems.isEmpty()) return null;\n \t\treturn listItems.get(0);\n \t}",
"@Override\r\n\tpublic Unit getUnit(String uuid) {\n\r\n\t\treturn unitRepo.getUnit(uuid);\r\n\t}",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer findByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.i3mainz.flexgeo.portal.liferay.services.NoSuchOGCServiceLayerException;",
"public Beer getBeerById(UUID uuid){\n return restTemplate.getForObject(apiHost + BEER_SERVICE_PATH_V1\n + uuid.toString(), Beer.class);\n }",
"@Transactional(readOnly = false) \r\n public YadaBrowserId findOrCreate(UUID uuid) {\r\n \tYadaBrowserId yadaBrowserId = findByMostSigBitsAndLeastSigBits(uuid.getMostSignificantBits(), uuid.getLeastSignificantBits());\r\n \tif (yadaBrowserId==null) {\r\n \t\tyadaBrowserId = new YadaBrowserId();\r\n \t\tem.persist(yadaBrowserId);\r\n \t\tyadaBrowserId.setUUID(uuid);\r\n \t}\r\n \treturn yadaBrowserId;\r\n }",
"public DataEntry findByUuid_First(\n\t\t\tString uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchDataEntryException;",
"private Mapping getMappingByID(List<BaseMapping> mappings, String uuid) {\n Mapping objectMapping = null;\n if (mappings != null) {\n for (ListIterator<BaseMapping> iter = mappings.listIterator(); iter.hasNext();) {\n Mapping element = (Mapping)iter.next();\n if (element.getId().equals(uuid)) {\n objectMapping = element;\n break;\n }\n }\n }\n return objectMapping;\n }",
"public com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter fetchOneById(UUID value) {\n return fetchOne(Voter.VOTER.ID, value);\n }",
"public Todo fetchByUuid_C_First(\n\t\tString uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public DataEntry fetchByUuid_C_First(\n\t\tString uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public Seat bestAvailableSeat() {\r\n\t\tfor (Seat s : seats) {\r\n\t\t\tif (!s.reserved) {\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if no seats available return null\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Node getNodeByUUID(String uuid) throws ItemNotFoundException,\r\n\t\t\tRepositoryException {\n\t\treturn null;\r\n\t}",
"public Hotel bestHotel() {\r\n \tArrayList<Hotel> hotels = hotelDAO.getHotelList();\r\n \tHotel bestHotel=hotels.get(0);\r\n \tfor (int i=0; i<hotels.size();i++) {\r\n \t\tif(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) {\r\n \t\t\tbestHotel=hotels.get(i);\r\n \t\t}\r\n \t}\r\n \treturn bestHotel;\r\n }",
"public DataDict findOneDataDictById(String uuid) {\n\t\tDataDict dataDict = dataDictRepository.findOne(uuid);\r\n\t\treturn dataDict;\r\n\t}",
"public static Task fetchByUuid_First(String uuid,\n\t\tOrderByComparator<Task> orderByComparator) {\n\t\treturn getPersistence().fetchByUuid_First(uuid, orderByComparator);\n\t}",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence()\n .fetchByUuid_C_First(uuid, companyId, orderByComparator);\n }",
"private T getMinUnvisited(){\n if (unvisited.isEmpty()) return null;\n T min = unvisited.get(0);\n for (int i = 1; i < unvisited.size(); i++){\n T temp = unvisited.get(i);\n if (distances[vertexIndex(temp)] < distances[vertexIndex(min)]){\n min = temp;\n }\n }\n return min;\n }",
"@Override\n public Client get(String uuid) {\n return null;\n }",
"public static Pregnancy getOne(Connection conn, String uuid) throws SQLException, ServletException, ObjectNotFoundException {\r\n \tPregnancy item = null;\r\n \tString sql;\r\n \tArrayList values;\r\n \tsql = \"SELECT id, patient_id AS patientId, date_pregnancy_begin AS datePregnancyBegin, \" +\r\n \t\"pregnancy_begin_encounter_id AS pregnancyBeginEncounter, date_pregnancy_end AS datePregnancyEnd, \" +\r\n \t\"last_modified AS lastModified, created AS created, last_modified_by AS lastModifiedBy, \" +\r\n \t\"created_by AS createdBy, site_id AS siteId, created_site_id AS createdSiteId,\" +\r\n \t\"labour_admission_encounter_id AS labourAdmissionEncounterId, date_labour_admission AS dateActiveLabour, \" +\r\n \t\"import_pregnancy_id AS importPregnancyId, uuid, \" +\r\n\t\t\"pregnancy_begin_encounter_uuid AS pregnancyBeginEncounterUuid, pregnancy_end_encounter_id AS pregnancyEndEncounter, \" +\r\n\t\t\"pregnancy_end_encounter_uuid AS pregnancyEndEncounterUuid, \" +\r\n \t\"labour_admission_encounter_uuid AS labourAdmissionEncounterUuid \" +\r\n \t\"FROM pregnancy WHERE uuid=?\";\r\n \tvalues = new ArrayList();\r\n \tvalues.add(uuid);\r\n \titem = (Pregnancy) DatabaseUtils.getZEPRSBean(conn, Pregnancy.class, sql, values);\r\n \treturn item;\r\n }",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findByUuid_First(uuid, orderByComparator);\n }",
"@Override\n public Tile getFirst() {\n return tiles.iterator().next();\n }",
"Optional<Unit> getFirstSelectableUnitAt(final Player currentPlayer, final Location location) {\n Preconditions.checkNotNull(currentPlayer, \"Player is null\");\n Preconditions.checkNotNull(location, \"Location is null\");\n\n final List<Unit> playersUnitAtLocation = units.stream()\n .filter(unit -> currentPlayer.equals(unit.getOwner()))\n .filter(unit -> unit.isAtPlaceLocation())\n .filter(unit -> unit.getLocation().equals(location)).collect(Collectors.toList());\n\n final Optional<Unit> moveableUnit = playersUnitAtLocation.stream()\n .filter(unit -> unit.getActionPoints() > 0).findFirst();\n if (moveableUnit.isPresent()) {\n return moveableUnit;\n } else {\n return playersUnitAtLocation.stream().findFirst();\n }\n }",
"public Todo findByUuid_First(\n\t\t\tString uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchTodoException;",
"public wsihash fetchByUuid_C_First(java.lang.String uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator);",
"public static Term fetchByUuid_First(\n\t\tString uuid, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().fetchByUuid_First(uuid, orderByComparator);\n\t}",
"short getFirstOpenIndexInArgument(UUID id);",
"public wsihash findByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator)\n\t\tthrows NoSuchwsihashException;",
"public com.refcodes.portlets.businesscenter.model.BusinessUser findByUuid_First(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.refcodes.portlets.businesscenter.NoSuchBusinessUserException;",
"@Override\n public String getEarliestRevisionUUID(String apiUUID) throws APIManagementException {\n return apiMgtDAO.getEarliestRevision(apiUUID);\n }",
"public AnswerEntity getAnswerByUuId(String uuid) {\n try {\n return entityManager.createNamedQuery(\"answerByUuid\", AnswerEntity.class).setParameter(\"uuid\", uuid).getSingleResult();\n } catch (NoResultException nre) {\n return null;\n }\n }",
"private SearchNode findFirstNode(HashSet<SearchNode> set){\n\t\t\tSearchNode min = null;\n\t\t\tfor (SearchNode cur : set){\n\t\t\t\tif (min == null || cur.fScore < min.fScore)\n\t\t\t\t\tmin = cur;\n\t\t\t}\n\t\t\treturn min;\n\t\t}",
"public BoardCell pickLocation(Set<BoardCell> targets){\n\t\tfor (BoardCell i: targets)\r\n\t\t\tif (i.isRoom() && !(((RoomCell) i).getInitial() == lastRoomVisited))\r\n\t\t\t\treturn i;\r\n\t\t//\tpick random cell\r\n\t\tObject[] cell = targets.toArray();\r\n\t\tRandom generator = new Random();\r\n\t\tint random = generator.nextInt(cell.length);\r\n\t\treturn (BoardCell) cell[random];\r\n\t}",
"public RestaurantEntity restaurantByUUID(String restaurantUuid)throws RestaurantNotFoundException{\n if(restaurantUuid == null||restaurantUuid == \"\"){ //Checking for restaurantUuid to be null or empty to throw exception.\n throw new RestaurantNotFoundException(\"RNF-002\",\"Restaurant id field should not be empty\");\n }\n\n //Calls getRestaurantByUuid of restaurantDao to get the RestaurantEntity\n RestaurantEntity restaurantEntity = restaurantDao.getRestaurantByUUID(restaurantUuid);\n\n if (restaurantEntity == null){ //Checking for restaurantEntity to be null or empty to throw exception.\n throw new RestaurantNotFoundException(\"RNF-001\",\"No restaurant by this id\");\n }\n\n return restaurantEntity;\n\n\n }",
"public RestaurantEntity restaurantByUUID(String restaurantUuid)throws RestaurantNotFoundException{\n if(restaurantUuid == null||restaurantUuid == \"\"){ //Checking for restaurantUuid to be null or empty to throw exception.\n throw new RestaurantNotFoundException(\"RNF-002\",\"Restaurant id field should not be empty\");\n }\n\n //Calls getRestaurantByUuid of restaurantDao to get the RestaurantEntity\n RestaurantEntity restaurantEntity = restaurantDao.getRestaurantByUUID(restaurantUuid);\n\n if (restaurantEntity == null){ //Checking for restaurantEntity to be null or empty to throw exception.\n throw new RestaurantNotFoundException(\"RNF-001\",\"No restaurant by this id\");\n }\n\n return restaurantEntity;\n\n\n }",
"private Vertex getMinimum(Set<Vertex> vertexes) {\n // Use of Java 8 Optional container object.\n Optional<Vertex> minimum = Optional.empty();\n for (Vertex vertex : vertexes) {\n if (!minimum.isPresent()) {\n minimum = Optional.of(vertex);\n } else {\n if (distance.get(vertex) < distance.get(minimum.get())) {\n minimum = Optional.of(vertex);\n }\n }\n }\n\n return minimum.get();\n }",
"public com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"Position<T> first();",
"public VectorItem<O> firstVectorItem()\r\n {\r\n if (isEmpty()) return null; \r\n return first;\r\n }",
"public Vertex getNextVertex(List<Vertex> unvisitedNodes){\n Vertex smallest = null;\n for(Vertex vertex: unvisitedNodes){\n if(smallest==null)\n smallest = vertex;\n else if(distance.get(vertex)< distance.get(smallest))\n smallest = vertex;\n }\n return smallest;\n }",
"private Fruit findClosestFruit(Robot robot) {\n double min_dist = Double.MAX_VALUE;\n Fruit ans = null;\n for (int i = 0; i < my_game.getFruits().size(); i++) {\n Fruit fruit = my_game.getFruits().get(i);\n if(fruits_status.values().contains(fruit)) {\n continue;\n }\n double dist = algo_g.shortestPathDist(robot.getSrc(), fruit.getEdge().getSrc());\n if (dist < min_dist) {\n min_dist = dist;\n ans = fruit;\n }\n\n }\n\n return ans;\n }",
"@Override\n\tpublic StorePacks getPackByUuid(String uuid) throws WebApplicationException{\n\t\t\n\t\tStorePacks storePacks = null;\n\t\ttry {\n\t\t\tstorePacks= storeBusiness.getPackByUuid(uuid);\n\t\t} catch (StoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrowException(e.getStoreDetails());\n\t\t}\n\t\t\n\t\treturn storePacks;\n\t}",
"public ProductSpecificationMapping fetchByUuid_First(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public Optional<Employeee> findByUuid(String uuid) {\n\t\treturn employeerepo.findByUuid(uuid);\n\t}",
"public HotelCard searchHotel() {\n System.out.println(ANSI() + \"Here is your hotel card list:\" + ANSI_RESET);\n // Presentation of player's hotel card list\n for (HotelCard hc : hotel_list) {\n System.out.print(ANSI() + \"Hotel Name: \" + hc.getName() + ANSI_RESET);\n System.out.print(ANSI() + \", Hotel ID: \" + hc.getID() + ANSI_RESET);\n System.out.println(ANSI() + \", Hotel Ranking: \" + hc.getRank() + ANSI_RESET);\n }\n System.out.println(ANSI() + \"Please type the id of the hotel you choose\" + ANSI_RESET);\n boolean answer = false;\n while (answer == false) {\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int ID;\n try { \n ID = Integer.parseInt(str);\n // Search for the hotel card with user's given ID \n for (HotelCard hc : hotel_list) \n if (hc.getID() == ID) return hc; \n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET); \n } catch (Exception e) {\n System.out.println(ANSI() + \"Please type a valid ID\" + ANSI_RESET);\n }\n }\n // Junk \n return null;\n }",
"@Override\n\tpublic TvShow fetchByUuid_First(String uuid,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tList<TvShow> list = findByUuid(uuid, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public Recipe getFirstRecipe(){\n Recipe first = null;\n if(!recipes.isEmpty()){\n first = recipes.get(0);\n }\n return first;//este metodo se llama a partir de la respuesta que recibe del servicio recipeservices\n //que esta construido a su vez por el cliente\n }",
"private Node createUsedSubTreeRefMap(XmlProcessor simpleXmlProcessor, String uuid) {\n\t\tString xpathforUsedSubTreeMap = \"/measure/subTreeLookUp/subTree[@uuid='\" + uuid + \"']\";\n\t\tNode subTreeNode = null;\n\t\ttry {\n\t\t\tsubTreeNode = simpleXmlProcessor.findNode(simpleXmlProcessor.getOriginalDoc(), xpathforUsedSubTreeMap);\n\t\t} catch (XPathExpressionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn subTreeNode;\n\t}",
"public static Task findByUuid_First(String uuid,\n\t\tOrderByComparator<Task> orderByComparator)\n\t\tthrows serviceBuilder.exception.NoSuchTaskException {\n\t\treturn getPersistence().findByUuid_First(uuid, orderByComparator);\n\t}",
"public E queryFirst() {\n ValueHolder<E> result = ValueHolder.of(null);\n limit(1);\n doIterate(r -> {\n result.set(r);\n return false;\n });\n\n return result.get();\n }",
"@Override\n\tpublic Basket findOne(Integer arg0) {\n\t\treturn null;\n\t}",
"public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }",
"public static TownyWarsResident getResident(UUID uuid) {\n\t\treturn TownyWarsResident.allTownyWarsResidents.get(uuid);\n\t}",
"@Override\r\n\t\tpublic T getFirst() {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.getFirst();\r\n\t\t\t}\r\n\t\t}",
"@Override\r\n\tpublic FyTestRecord findByUuid(String uuid) {\n\t\treturn testRecordDao.findByUuid(uuid);\r\n\t}",
"private CAUEntry findElementWithTID(CAUList ulist, int tid){\n\t\tList<CAUEntry> list = ulist.CAUEntries;\n\t\t\n\t\t// perform a binary search to check if the subset appears in level k-1.\n int first = 0;\n int last = list.size() - 1;\n \n // the binary search\n while( first <= last )\n {\n \tint middle = ( first + last ) >>> 1; // divide by 2\n\n if(list.get(middle).tid < tid){\n \tfirst = middle + 1; // the itemset compared is larger than the subset according to the lexical order\n }\n else if(list.get(middle).tid > tid){\n \tlast = middle - 1; // the itemset compared is smaller than the subset is smaller according to the lexical order\n }\n else{\n \treturn list.get(middle);\n }\n }\n\t\treturn null;\n\t}",
"java.lang.String getHotelId();",
"public E first(){\n if (isEmpty()) return null;\n return arrayQueue[front];\n }",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByUuid_C_First(uuid, companyId, orderByComparator);\n }",
"private Node getLowestNode(Set<Node> openSet)\r\n {\r\n // find the node with the least f\r\n double minF = Double.MAX_VALUE;\r\n Node[] openArray = openSet.toArray(new Node[0]);\r\n\r\n Node q = null;\r\n for (int i = 0; i < openArray.length; ++i)\r\n {\r\n if (openArray[i].f < minF) \r\n {\r\n minF = openArray[i].f;\r\n q = openArray[i];\r\n }\r\n }\r\n return q;\r\n }",
"@Override\n\tpublic Property selectById(String uuid) {\n\t\treturn pr.findByUuid(uuid);\n\t}",
"V get(UniqueId uniqueId);",
"public boolean offerFirst(E item);",
"public com.refcodes.portlets.businesscenter.model.BusinessUser fetchByUuid_C_First(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"@Override\r\n\tpublic Estates findOne(Integer arg0) {\n\t\treturn null;\r\n\t}",
"public com.Hotel.model.Hotel[] findByUuid_PrevAndNext(long hotelId,\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"String first(String collection);",
"public Item getFirst();",
"public DataDictType findOneDataDictTypeById(String uuid) {\n\t\tDataDictType dataDictType = dataDictTypeRepository.findOne(uuid);\r\n\t\treturn dataDictType;\r\n\t}",
"@Override\n\tpublic HotelDetails findHotel(int id) {\n\t\treturn bookingDao.findHotel(id);\n\t}",
"public String getAnimalOwnerID(String auuid){\r\n\t\t\r\n\t\tSet<String> farmers = plugin.getAnimalData().getConfigurationSection(\"Farmer\").getKeys(false);\r\n\t\tfor(String farmer : farmers){\r\n\t\t\tif(plugin.getAnimalData().contains(\"Farmer.\" + farmer +\".Animals.\" + auuid)){\r\n\t\t\t\treturn plugin.getAnimalData().getString(\"Farmer.\"+ farmer + \".Animals.\" + auuid + \".OwnerID\");\r\n\t\t\t}else{\r\n\t\t\t\treturn \"Unknown\";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"Unknown\";\r\n\t}",
"public QuestionEntity getQuestionById(final String uuid) {\n try {\n return entityManager.createNamedQuery(\"getQuestionByUuid\", QuestionEntity.class)\n .setParameter(\"uuid\", uuid).getSingleResult();\n } catch (NoResultException nre) {\n return null;\n }\n }",
"public Magasin findMagasinByDepotUnique(int depot) {\n\t\tQuery query= session.createQuery(\"select c from Magasin c where c.depot.id =:depot\");\n\t\n\t\tquery.setParameter(\"depot\", depot);\n\t\t\n\t\t return (Magasin)query.uniqueResult();\n\t\t\n\t}",
"public O first()\r\n {\r\n if (isEmpty()) return null; \r\n return first.getObject();\r\n }",
"public Optional<T> getFirstItem() {\n return getData().stream().findFirst();\n }",
"public E first() {\n if (isEmpty()) return null;\n return first.item;\n }",
"private Coordinate getNeighbour(boolean locked) {\n\t\tSet<Coordinate> set = locked ? lockedNeighbours : unlockedNeighbours;\n\t\tif (set.isEmpty()) return null;\n\t\treturn (Coordinate) set.toArray()[new Random().nextInt(set.size())];\n\t}",
"public Object firstElement();",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"public void setUuid(String uuid) {\n this.uuid = uuid;\n }",
"private Item findItem(String code, int depart, Session session) {\n\t\tQuery<Item> query = session.createQuery(ITEM_QUERY, Item.class);\n\t\tquery.setParameter(CODE, code);\n\t\tquery.setParameter(DEPART, depart);\n\t\tList<Item> list = query.list(); // assert size <= 1\n\t\treturn list.isEmpty() ? null : list.get(0);\n\t}",
"public static Location worldLocsGet(UUID uuid) {\n\n\t\tLocation loc = null;\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM worldlocs WHERE uuid = '\" + uuid + \"'\");\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tdouble x = rs.getDouble(\"x\") + 0.5;\n\t\t\t\tdouble y = rs.getDouble(\"y\");\n\t\t\t\tdouble z = rs.getDouble(\"z\") + 0.5;\n\t\t\t\tloc = new Location(PvPTeleport.instance.getServer().getWorld(\"world\"), x, y, z);\n\n\t\t\t}\n\n\t\t\trs.close();\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t\treturn loc;\n\n\t}",
"public static Job findByUuid_First(String uuid,\n\t\tOrderByComparator<Job> orderByComparator)\n\t\tthrows com.kisti.osp.icebreaker.exception.NoSuchJobException {\n\t\treturn getPersistence().findByUuid_First(uuid, orderByComparator);\n\t}"
]
| [
"0.68523103",
"0.58709145",
"0.57352626",
"0.56453824",
"0.56198055",
"0.55836016",
"0.556967",
"0.5533279",
"0.54440254",
"0.53006256",
"0.5267993",
"0.52572733",
"0.5249488",
"0.5214664",
"0.516674",
"0.51666045",
"0.5130599",
"0.5128473",
"0.5118235",
"0.50935686",
"0.50707763",
"0.5035328",
"0.50257695",
"0.50134593",
"0.49817812",
"0.4980032",
"0.4977637",
"0.49713126",
"0.4966738",
"0.49619505",
"0.49139583",
"0.49107563",
"0.48974615",
"0.48864734",
"0.48472968",
"0.48329663",
"0.4831052",
"0.48230603",
"0.4814157",
"0.48131007",
"0.4809547",
"0.48035696",
"0.48014233",
"0.4779886",
"0.47761902",
"0.4771088",
"0.47324497",
"0.47318187",
"0.4730874",
"0.4730874",
"0.4730067",
"0.4700938",
"0.46972242",
"0.46945578",
"0.46943146",
"0.46846768",
"0.46801546",
"0.46716273",
"0.46706218",
"0.46596694",
"0.46442282",
"0.46401477",
"0.46399432",
"0.46379292",
"0.4636906",
"0.46115983",
"0.46043494",
"0.45972663",
"0.45955014",
"0.45885712",
"0.45831987",
"0.45823887",
"0.45600334",
"0.45556828",
"0.4550925",
"0.4542731",
"0.4541708",
"0.4541027",
"0.45384404",
"0.45384404",
"0.4538119",
"0.45282388",
"0.4515228",
"0.45083752",
"0.45008802",
"0.44971412",
"0.44965994",
"0.4493601",
"0.4491381",
"0.44845188",
"0.44797435",
"0.44762743",
"0.44691446",
"0.4466254",
"0.4466254",
"0.4466254",
"0.4466254",
"0.44613332",
"0.44572413",
"0.44552788"
]
| 0.6750296 | 1 |
Returns the last hotel in the ordered set where uuid = &63;. | public com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.Hotel.model.Hotel fetchByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public wsihash fetchByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator);",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer fetchByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer findByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.i3mainz.flexgeo.portal.liferay.services.NoSuchOGCServiceLayerException;",
"public Todo fetchByUuid_Last(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public DataEntry fetchByUuid_Last(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByUuid_Last(uuid, orderByComparator);\n }",
"public com.refcodes.portlets.businesscenter.model.BusinessUser fetchByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public Room getLastRoom(){return this.aLastRooms.pop();}",
"@Override\n\tpublic Paper fetchByUuid_Last(String uuid,\n\t\tOrderByComparator<Paper> orderByComparator) {\n\t\tint count = countByUuid(uuid);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<Paper> list = findByUuid(uuid, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public wsihash findByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator)\n\t\tthrows NoSuchwsihashException;",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer fetchByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public com.refcodes.portlets.businesscenter.model.BusinessUser findByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.refcodes.portlets.businesscenter.NoSuchBusinessUserException;",
"public DataEntry findByUuid_Last(\n\t\t\tString uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchDataEntryException;",
"public Room getLastRoom() // from my understanding this pops the last entry and replaces it with the one before\n { // might need a if test to prevent a null return and say there are no rooms previous.\n Room room = roomHistory.pop();\n return room;\n }",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer findByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.i3mainz.flexgeo.portal.liferay.services.NoSuchOGCServiceLayerException;",
"public static Term fetchByUuid_Last(\n\t\tString uuid, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().fetchByUuid_Last(uuid, orderByComparator);\n\t}",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findByUuid_Last(uuid, orderByComparator);\n }",
"@Override\r\n\tpublic Share fetchByUuid_Last(String uuid,\r\n\t\tOrderByComparator<Share> orderByComparator) {\r\n\t\tint count = countByUuid(uuid);\r\n\r\n\t\tif (count == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tList<Share> list = findByUuid(uuid, count - 1, count, orderByComparator);\r\n\r\n\t\tif (!list.isEmpty()) {\r\n\t\t\treturn list.get(0);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public static Job fetchByUuid_Last(String uuid,\n\t\tOrderByComparator<Job> orderByComparator) {\n\t\treturn getPersistence().fetchByUuid_Last(uuid, orderByComparator);\n\t}",
"@Override\n\tpublic TvShow fetchByUuid_Last(String uuid,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByUuid(uuid);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<TvShow> list = findByUuid(uuid, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence()\n .fetchByUuid_C_Last(uuid, companyId, orderByComparator);\n }",
"public Todo findByUuid_Last(\n\t\t\tString uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchTodoException;",
"public wsihash fetchByUuid_C_Last(java.lang.String uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator);",
"public static Reservation getLatestReservation() {\n return RESERVATIONS.size() == 0 ? null : RESERVATIONS.iterator().next();\n }",
"public TypeHere getLast() {\n return items[size - 1];\n }",
"public static Task fetchByUuid_Last(String uuid,\n\t\tOrderByComparator<Task> orderByComparator) {\n\t\treturn getPersistence().fetchByUuid_Last(uuid, orderByComparator);\n\t}",
"ConceptMap loadLatestConceptMapForUUID(String uuid) {\n \t\tArrayList<ConceptMap> listItems = loadConceptMapVersionsForUUID(uuid, 1);\n \t\tif (listItems == null || listItems.isEmpty()) return null;\n \t\treturn listItems.get(0);\n \t}",
"public Item getLast() {\n return items[size - 1];\n }",
"public Todo fetchByUuid_C_Last(\n\t\tString uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public static Items findLastRow() {\r\n Items item = dao().findLastRow();\r\n return item;\r\n }",
"public Item getLast();",
"@Override\n public E getLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n return dequeue[tail];\n }",
"public V getLatest() {\n return lastItemOfList(versions);\n }",
"@Override\n public String getLatestRevisionUUID(String apiUUID) throws APIManagementException {\n return apiMgtDAO.getLatestRevisionUUID(apiUUID);\n }",
"public DataEntry fetchByUuid_C_Last(\n\t\tString uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public E pollLast() {\r\n\t\tif (isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tE ret = (E) data.get(data.size() - 1);\r\n\t\tdata.remove(data.size() - 1);\r\n\t\treturn ret;\r\n\t}",
"public Object lastElement();",
"public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}",
"public static Task findByUuid_Last(String uuid,\n\t\tOrderByComparator<Task> orderByComparator)\n\t\tthrows serviceBuilder.exception.NoSuchTaskException {\n\t\treturn getPersistence().findByUuid_Last(uuid, orderByComparator);\n\t}",
"public Node getLast() {\r\n\t\treturn getNode(this.size());\r\n\t}",
"public static Term findByUuid_Last(\n\t\t\tString uuid, OrderByComparator<Term> orderByComparator)\n\t\tthrows com.liferay.cm.exception.NoSuchTermException {\n\n\t\treturn getPersistence().findByUuid_Last(uuid, orderByComparator);\n\t}",
"E last() throws NoSuchElementException;",
"public String getLastItem();",
"public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}",
"public com.refcodes.portlets.businesscenter.model.BusinessUser fetchByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public CoreCell getLastCellInUniverse (){\r\n return cellsUniverse.get(cellsUniverse.size()-1);\r\n }",
"public Hotel bestHotel() {\r\n \tArrayList<Hotel> hotels = hotelDAO.getHotelList();\r\n \tHotel bestHotel=hotels.get(0);\r\n \tfor (int i=0; i<hotels.size();i++) {\r\n \t\tif(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) {\r\n \t\t\tbestHotel=hotels.get(i);\r\n \t\t}\r\n \t}\r\n \treturn bestHotel;\r\n }",
"private int getLastIDRisposte() {\n\n\t\tArrayList<Integer> risposteIdList = new ArrayList<>();\n\t\trisposteIdList.add(0);\n\t\tDB db = getDB();\t\t\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\t\n\t\tfor(Map.Entry<Long, Risposta> risposta : risposte.entrySet())\n\t\t\tif(risposta.getValue() instanceof Risposta)\n\t\t\t\trisposteIdList.add(risposta.getValue().getId());\n\t\t\n\t\tInteger id = Collections.max(risposteIdList);\n\t\treturn id;\n\t}",
"public com.Hotel.model.Hotel fetchByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public com.Hotel.model.Hotel findByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public Seat bestAvailableSeat() {\r\n\t\tfor (Seat s : seats) {\r\n\t\t\tif (!s.reserved) {\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if no seats available return null\r\n\t\treturn null;\r\n\t}",
"public static Location getLatestLocation(){\n if(latestLocation!= null) {\n return latestLocation;\n }else{\n return null;\n }\n }",
"@GET(\"V2/eshopping/driver/getDriverLastLocation/{orderId}\")\n Observable<List<DriverLocation>> getLastDriverLocationByOrderId(@Path(\"orderId\") Long orderId);",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByUuid_C_Last(uuid, companyId, orderByComparator);\n }",
"public Location findLargest() {\n int max = -1;\n\n final LinkedList<Location> loc = new LinkedList<>();\n\n for (int r = 0; r < board.length; r++)\n for (int c = 0; c < board[0].length; c++)\n if (board[r][c] > max) {\n loc.clear();\n max = board[r][c];\n loc.add(new Location(r, c));\n } else if (board[r][c] == max)\n loc.add(new Location(r, c));\n\n Collections.shuffle(loc);\n\n return loc.pop();\n }",
"public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }",
"public com.refcodes.portlets.businesscenter.model.BusinessUser findByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.refcodes.portlets.businesscenter.NoSuchBusinessUserException;",
"@Override\r\n\tpublic Unit getUnit(String uuid) {\n\r\n\t\treturn unitRepo.getUnit(uuid);\r\n\t}",
"public E last() {\n\r\n if(tail == null) {\r\n return null;\r\n } else {\r\n return tail.getItem();\r\n\r\n }\r\n }",
"public O last()\r\n {\r\n if (isEmpty()) return null;\r\n return last.getObject();\r\n }",
"public Item getLast() {\n Node nextToLast = findNode(size-1);\n Node removed = nextToLast.next;\n nextToLast.next = head;\n removed.next = null;\n size--;\n return removed.item;\n }",
"T last();",
"public ProductSpecificationMapping fetchByUuid_Last(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public SubLocationHandler getLatestSubLocation (){\n\t\tString selectQuery = \"SELECT * FROM \" + table_subLocation + \" ORDER BY \" \n\t\t\t\t+ key_date_entry + \" DESC \" + \" LIMIT 1 \" ;\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif(cursor.getCount() == 0)\n\t\t\treturn null;\n\t\tcursor.moveToFirst();\n\t\tSubLocationHandler subLocationHandlerArray = new SubLocationHandler(\n\t\t\t\tcursor.getInt(0), \n\t\t\t\tcursor.getInt(1), \n\t\t\t\tcursor.getString(2), \n\t\t\t\tcursor.getString(3), \n\t\t\t\tcursor.getDouble(4), \n\t\t\t\tcursor.getDouble(5), \n\t\t\t\tcursor.getInt(6)\n\t\t\t\t);\n\t\tdb.close();\n\t\treturn subLocationHandlerArray;\n\t}",
"public Place tail(){\n return places.get(places.size()-1);\n }",
"public String getLast()\n {\n return lastItem;\n }",
"public String lastAsSlot();",
"public E getLast() {\r\n\t\tif (tail == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(size - 1).data;\t\r\n\t\t}\r\n\t}",
"public static Job findByUuid_Last(String uuid,\n\t\tOrderByComparator<Job> orderByComparator)\n\t\tthrows com.kisti.osp.icebreaker.exception.NoSuchJobException {\n\t\treturn getPersistence().findByUuid_Last(uuid, orderByComparator);\n\t}",
"protected long getLastDLRow() {\n List<String> res = dbconnector.execRead(\"SELECT id FROM DW_station_state \" +\n \"ORDER BY id DESC \" +\n \"LIMIT 1\").get(0);\n return Long.parseLong(res.get(0));\n }",
"public T last() throws EmptyCollectionException;",
"public Object getLastObject()\n {\n\tcurrentObject = lastObject;\n\n if (lastObject == null)\n \treturn null;\n else\n \treturn AL.get(AL.size()-1);\n }",
"public Object last()throws ListExeption;",
"public int getLatestWeather() { //This function goes through the readings Arraylist and gets the most recent weather Code and returns it.\n int code;\n code = readings.get(readings.size() - 1).code;\n return code;\n }",
"public static Location deathBanLocsGet(UUID uuid) {\n\n\t\tLocation loc = null;\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM deathbanlocs WHERE uuid = '\" + uuid + \"'\");\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tdouble x = rs.getDouble(\"x\") + 0.5;\n\t\t\t\tdouble y = rs.getDouble(\"y\");\n\t\t\t\tdouble z = rs.getDouble(\"z\") + 0.5;\n\t\t\t\tloc = new Location(PvPTeleport.instance.getServer().getWorld(\"deathban\"), x, y, z);\n\n\t\t\t}\n\n\t\t\trs.close();\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t\treturn loc;\n\n\t}",
"@Override\r\n\tpublic Users findLatest() {\n\t\treturn (Users) sessionFactory.getCurrentSession().createQuery(\"from Users order by id DESC\").setMaxResults(1).uniqueResult();\r\n\t}",
"@Override\r\n\tpublic Object last(){\r\n\t\tcheck();\r\n\t\treturn tail.value;\r\n\t}",
"Position<T> last();",
"Long getTemperatureForLastHour();",
"public node getLast() {\n\t\tif(head == null) {\n\t\t\treturn null;\n\t\t}\n\t\tnode tmp = head;\n\t\twhile(tmp.next !=null) {\n\t\t\ttmp = tmp.next;\n\t\t}\n\t\treturn tmp;\n\n\t\t//OR\n\t\t//getAt(size()-1);\n\t}",
"@Override\n public StorePickStatus getByUuid(String uuid) {\n return getSqlSession().getMapper(StorePickStatusDao.class).getByUuid(uuid);\n }",
"@Query(value = \"SELECT * FROM `ob_order` ORDER BY id DESC\", nativeQuery = true)\n List<Order> findHighestId();",
"public Square getLastSquare() {\n\t\treturn squares.get(squares.size()-1);\n\t}",
"public Location getHome(UUID uuid, String name){\r\n\t\t//Load Map (Update)\r\n\t\tloadMap();\r\n\t\t//Combovar of Homename & UUID of Player\r\n\t\tString uniqhome = uuid.toString() + name;\r\n\r\n\t\t//Reads the HomePoint and returns its Location\r\n\t\ttry{\r\n\t\t\tStringTokenizer toker = new StringTokenizer(map.get(uniqhome), \";\");\r\n\t\t\tLocation loc = new Location(Bukkit.getWorld(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tDouble.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tFloat.valueOf(toker.nextToken()), Float.valueOf(toker.nextToken()));\r\n\r\n\t\t\treturn loc;\r\n\r\n\t\t} catch(NullPointerException e){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public T getLast();",
"public T getLast();",
"public E pollLast();",
"public OSMNode lastNode() {\n return nodes.get(nodes.size() - 1);\n }",
"public com.Hotel.model.Hotel[] findByUuid_PrevAndNext(long hotelId,\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public E last() { // returns (but does not remove) the last element\n // TODO\n\n if ( isEmpty()) return null ;\n return tail.getElement();\n }",
"public frameTableElement findVictimLRU(){\n int smallestLastReferenceTime = Integer.MAX_VALUE;\n frameTableElement correspondingElement = null;\n\n for(int i=0; i< frameTable.getSize(); i++){\n frameTableElement currElement = frameTable.getElement(i);\n if(currElement.getLastTimeReferenced() < smallestLastReferenceTime){\n smallestLastReferenceTime = currElement.getLastTimeReferenced();\n correspondingElement = currElement;\n }\n }\n\n return correspondingElement;\n }",
"public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}",
"public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}",
"public wsihash findByUuid_C_Last(java.lang.String uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator)\n\t\tthrows NoSuchwsihashException;",
"public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\n }",
"private Neuron lastNeuron() {\n if (neurons.isEmpty())\n throw new IllegalStateException(\"Attempt to get last neuron from empty network\");\n else\n return neurons.get(neurons.size() - 1);\n }",
"public E last() {\n if (this.isEmpty()) return null;\r\n return this.tail.getElement();\r\n }",
"public String getLastUsedStationNumber()\n\t{\n\t\treturn getValue(WareHouse.LASTUSEDSTATIONNUMBER).toString();\n\t}",
"T butLast();"
]
| [
"0.69444746",
"0.64181435",
"0.6082692",
"0.60059655",
"0.5899702",
"0.584184",
"0.577957",
"0.569008",
"0.5680557",
"0.5649236",
"0.5479751",
"0.54444665",
"0.5441413",
"0.5393129",
"0.5352066",
"0.53446704",
"0.5279688",
"0.5271355",
"0.52562374",
"0.5235171",
"0.52348363",
"0.5214253",
"0.5173012",
"0.5161833",
"0.5152578",
"0.5147823",
"0.5142559",
"0.51264316",
"0.50330716",
"0.5018519",
"0.50161624",
"0.50086164",
"0.49905345",
"0.49857068",
"0.49754584",
"0.49749812",
"0.49597487",
"0.49452737",
"0.49305975",
"0.4922705",
"0.4904251",
"0.48673275",
"0.48607767",
"0.48538387",
"0.4853517",
"0.4846782",
"0.48412377",
"0.48372012",
"0.48356745",
"0.4827356",
"0.48239058",
"0.4819514",
"0.48181713",
"0.48144403",
"0.4802631",
"0.47922727",
"0.4739824",
"0.4739244",
"0.47366694",
"0.47323352",
"0.4726438",
"0.4710413",
"0.47095647",
"0.4703844",
"0.46957147",
"0.46934715",
"0.46829823",
"0.46803153",
"0.46733952",
"0.4673192",
"0.46566832",
"0.46561038",
"0.4649118",
"0.46322724",
"0.46226335",
"0.4615261",
"0.46050483",
"0.45992497",
"0.4599148",
"0.45899928",
"0.45833567",
"0.45821574",
"0.4581336",
"0.45693105",
"0.45692393",
"0.4568762",
"0.4568762",
"0.45631775",
"0.4561959",
"0.455629",
"0.45546007",
"0.45539382",
"0.45490813",
"0.45490813",
"0.45486018",
"0.45421228",
"0.4532086",
"0.45255616",
"0.45253164",
"0.45248377"
]
| 0.7111574 | 0 |
Returns the last hotel in the ordered set where uuid = &63;. | public com.Hotel.model.Hotel fetchByUuid_Last(java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public wsihash fetchByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator);",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer fetchByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer findByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.i3mainz.flexgeo.portal.liferay.services.NoSuchOGCServiceLayerException;",
"public Todo fetchByUuid_Last(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public DataEntry fetchByUuid_Last(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().fetchByUuid_Last(uuid, orderByComparator);\n }",
"public com.refcodes.portlets.businesscenter.model.BusinessUser fetchByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public Room getLastRoom(){return this.aLastRooms.pop();}",
"@Override\n\tpublic Paper fetchByUuid_Last(String uuid,\n\t\tOrderByComparator<Paper> orderByComparator) {\n\t\tint count = countByUuid(uuid);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<Paper> list = findByUuid(uuid, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public wsihash findByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator)\n\t\tthrows NoSuchwsihashException;",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer fetchByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public com.refcodes.portlets.businesscenter.model.BusinessUser findByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.refcodes.portlets.businesscenter.NoSuchBusinessUserException;",
"public DataEntry findByUuid_Last(\n\t\t\tString uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchDataEntryException;",
"public Room getLastRoom() // from my understanding this pops the last entry and replaces it with the one before\n { // might need a if test to prevent a null return and say there are no rooms previous.\n Room room = roomHistory.pop();\n return room;\n }",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer findByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.i3mainz.flexgeo.portal.liferay.services.NoSuchOGCServiceLayerException;",
"public static Term fetchByUuid_Last(\n\t\tString uuid, OrderByComparator<Term> orderByComparator) {\n\n\t\treturn getPersistence().fetchByUuid_Last(uuid, orderByComparator);\n\t}",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_Last(\n java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence().findByUuid_Last(uuid, orderByComparator);\n }",
"@Override\r\n\tpublic Share fetchByUuid_Last(String uuid,\r\n\t\tOrderByComparator<Share> orderByComparator) {\r\n\t\tint count = countByUuid(uuid);\r\n\r\n\t\tif (count == 0) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tList<Share> list = findByUuid(uuid, count - 1, count, orderByComparator);\r\n\r\n\t\tif (!list.isEmpty()) {\r\n\t\t\treturn list.get(0);\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic TvShow fetchByUuid_Last(String uuid,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByUuid(uuid);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<TvShow> list = findByUuid(uuid, count - 1, count, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public static Job fetchByUuid_Last(String uuid,\n\t\tOrderByComparator<Job> orderByComparator) {\n\t\treturn getPersistence().fetchByUuid_Last(uuid, orderByComparator);\n\t}",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue fetchByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence()\n .fetchByUuid_C_Last(uuid, companyId, orderByComparator);\n }",
"public Todo findByUuid_Last(\n\t\t\tString uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchTodoException;",
"public wsihash fetchByUuid_C_Last(java.lang.String uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator);",
"public static Reservation getLatestReservation() {\n return RESERVATIONS.size() == 0 ? null : RESERVATIONS.iterator().next();\n }",
"public TypeHere getLast() {\n return items[size - 1];\n }",
"public static Task fetchByUuid_Last(String uuid,\n\t\tOrderByComparator<Task> orderByComparator) {\n\t\treturn getPersistence().fetchByUuid_Last(uuid, orderByComparator);\n\t}",
"ConceptMap loadLatestConceptMapForUUID(String uuid) {\n \t\tArrayList<ConceptMap> listItems = loadConceptMapVersionsForUUID(uuid, 1);\n \t\tif (listItems == null || listItems.isEmpty()) return null;\n \t\treturn listItems.get(0);\n \t}",
"public Item getLast() {\n return items[size - 1];\n }",
"public Todo fetchByUuid_C_Last(\n\t\tString uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public static Items findLastRow() {\r\n Items item = dao().findLastRow();\r\n return item;\r\n }",
"public Item getLast();",
"@Override\n public E getLast() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n return dequeue[tail];\n }",
"public V getLatest() {\n return lastItemOfList(versions);\n }",
"public DataEntry fetchByUuid_C_Last(\n\t\tString uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"@Override\n public String getLatestRevisionUUID(String apiUUID) throws APIManagementException {\n return apiMgtDAO.getLatestRevisionUUID(apiUUID);\n }",
"public E pollLast() {\r\n\t\tif (isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tE ret = (E) data.get(data.size() - 1);\r\n\t\tdata.remove(data.size() - 1);\r\n\t\treturn ret;\r\n\t}",
"public Object lastElement();",
"public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}",
"public static Task findByUuid_Last(String uuid,\n\t\tOrderByComparator<Task> orderByComparator)\n\t\tthrows serviceBuilder.exception.NoSuchTaskException {\n\t\treturn getPersistence().findByUuid_Last(uuid, orderByComparator);\n\t}",
"public Node getLast() {\r\n\t\treturn getNode(this.size());\r\n\t}",
"public static Term findByUuid_Last(\n\t\t\tString uuid, OrderByComparator<Term> orderByComparator)\n\t\tthrows com.liferay.cm.exception.NoSuchTermException {\n\n\t\treturn getPersistence().findByUuid_Last(uuid, orderByComparator);\n\t}",
"E last() throws NoSuchElementException;",
"public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}",
"public String getLastItem();",
"public com.refcodes.portlets.businesscenter.model.BusinessUser fetchByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public CoreCell getLastCellInUniverse (){\r\n return cellsUniverse.get(cellsUniverse.size()-1);\r\n }",
"private int getLastIDRisposte() {\n\n\t\tArrayList<Integer> risposteIdList = new ArrayList<>();\n\t\trisposteIdList.add(0);\n\t\tDB db = getDB();\t\t\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\t\n\t\tfor(Map.Entry<Long, Risposta> risposta : risposte.entrySet())\n\t\t\tif(risposta.getValue() instanceof Risposta)\n\t\t\t\trisposteIdList.add(risposta.getValue().getId());\n\t\t\n\t\tInteger id = Collections.max(risposteIdList);\n\t\treturn id;\n\t}",
"public Hotel bestHotel() {\r\n \tArrayList<Hotel> hotels = hotelDAO.getHotelList();\r\n \tHotel bestHotel=hotels.get(0);\r\n \tfor (int i=0; i<hotels.size();i++) {\r\n \t\tif(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) {\r\n \t\t\tbestHotel=hotels.get(i);\r\n \t\t}\r\n \t}\r\n \treturn bestHotel;\r\n }",
"public com.Hotel.model.Hotel fetchByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public com.Hotel.model.Hotel findByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public static Location getLatestLocation(){\n if(latestLocation!= null) {\n return latestLocation;\n }else{\n return null;\n }\n }",
"public Seat bestAvailableSeat() {\r\n\t\tfor (Seat s : seats) {\r\n\t\t\tif (!s.reserved) {\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if no seats available return null\r\n\t\treturn null;\r\n\t}",
"@GET(\"V2/eshopping/driver/getDriverLastLocation/{orderId}\")\n Observable<List<DriverLocation>> getLastDriverLocationByOrderId(@Path(\"orderId\") Long orderId);",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue findByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByUuid_C_Last(uuid, companyId, orderByComparator);\n }",
"public Location findLargest() {\n int max = -1;\n\n final LinkedList<Location> loc = new LinkedList<>();\n\n for (int r = 0; r < board.length; r++)\n for (int c = 0; c < board[0].length; c++)\n if (board[r][c] > max) {\n loc.clear();\n max = board[r][c];\n loc.add(new Location(r, c));\n } else if (board[r][c] == max)\n loc.add(new Location(r, c));\n\n Collections.shuffle(loc);\n\n return loc.pop();\n }",
"public T getLast() {\n return this.getHelper(this.indexCorrespondingToTheLatestElement).data;\n }",
"public com.refcodes.portlets.businesscenter.model.BusinessUser findByUuid_C_Last(\n java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.refcodes.portlets.businesscenter.NoSuchBusinessUserException;",
"@Override\r\n\tpublic Unit getUnit(String uuid) {\n\r\n\t\treturn unitRepo.getUnit(uuid);\r\n\t}",
"public E last() {\n\r\n if(tail == null) {\r\n return null;\r\n } else {\r\n return tail.getItem();\r\n\r\n }\r\n }",
"public O last()\r\n {\r\n if (isEmpty()) return null;\r\n return last.getObject();\r\n }",
"public Item getLast() {\n Node nextToLast = findNode(size-1);\n Node removed = nextToLast.next;\n nextToLast.next = head;\n removed.next = null;\n size--;\n return removed.item;\n }",
"T last();",
"public ProductSpecificationMapping fetchByUuid_Last(\n\t\tString uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t<ProductSpecificationMapping> orderByComparator);",
"public SubLocationHandler getLatestSubLocation (){\n\t\tString selectQuery = \"SELECT * FROM \" + table_subLocation + \" ORDER BY \" \n\t\t\t\t+ key_date_entry + \" DESC \" + \" LIMIT 1 \" ;\n\t\tSQLiteDatabase db = this.getReadableDatabase();\n\t\tCursor cursor = db.rawQuery(selectQuery, null);\n\t\tif(cursor.getCount() == 0)\n\t\t\treturn null;\n\t\tcursor.moveToFirst();\n\t\tSubLocationHandler subLocationHandlerArray = new SubLocationHandler(\n\t\t\t\tcursor.getInt(0), \n\t\t\t\tcursor.getInt(1), \n\t\t\t\tcursor.getString(2), \n\t\t\t\tcursor.getString(3), \n\t\t\t\tcursor.getDouble(4), \n\t\t\t\tcursor.getDouble(5), \n\t\t\t\tcursor.getInt(6)\n\t\t\t\t);\n\t\tdb.close();\n\t\treturn subLocationHandlerArray;\n\t}",
"public Place tail(){\n return places.get(places.size()-1);\n }",
"public String getLast()\n {\n return lastItem;\n }",
"public String lastAsSlot();",
"public E getLast() {\r\n\t\tif (tail == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(size - 1).data;\t\r\n\t\t}\r\n\t}",
"public static Job findByUuid_Last(String uuid,\n\t\tOrderByComparator<Job> orderByComparator)\n\t\tthrows com.kisti.osp.icebreaker.exception.NoSuchJobException {\n\t\treturn getPersistence().findByUuid_Last(uuid, orderByComparator);\n\t}",
"public T last() throws EmptyCollectionException;",
"protected long getLastDLRow() {\n List<String> res = dbconnector.execRead(\"SELECT id FROM DW_station_state \" +\n \"ORDER BY id DESC \" +\n \"LIMIT 1\").get(0);\n return Long.parseLong(res.get(0));\n }",
"public Object getLastObject()\n {\n\tcurrentObject = lastObject;\n\n if (lastObject == null)\n \treturn null;\n else\n \treturn AL.get(AL.size()-1);\n }",
"public Object last()throws ListExeption;",
"public int getLatestWeather() { //This function goes through the readings Arraylist and gets the most recent weather Code and returns it.\n int code;\n code = readings.get(readings.size() - 1).code;\n return code;\n }",
"public static Location deathBanLocsGet(UUID uuid) {\n\n\t\tLocation loc = null;\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM deathbanlocs WHERE uuid = '\" + uuid + \"'\");\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tdouble x = rs.getDouble(\"x\") + 0.5;\n\t\t\t\tdouble y = rs.getDouble(\"y\");\n\t\t\t\tdouble z = rs.getDouble(\"z\") + 0.5;\n\t\t\t\tloc = new Location(PvPTeleport.instance.getServer().getWorld(\"deathban\"), x, y, z);\n\n\t\t\t}\n\n\t\t\trs.close();\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t\treturn loc;\n\n\t}",
"@Override\r\n\tpublic Users findLatest() {\n\t\treturn (Users) sessionFactory.getCurrentSession().createQuery(\"from Users order by id DESC\").setMaxResults(1).uniqueResult();\r\n\t}",
"@Override\r\n\tpublic Object last(){\r\n\t\tcheck();\r\n\t\treturn tail.value;\r\n\t}",
"Position<T> last();",
"Long getTemperatureForLastHour();",
"public node getLast() {\n\t\tif(head == null) {\n\t\t\treturn null;\n\t\t}\n\t\tnode tmp = head;\n\t\twhile(tmp.next !=null) {\n\t\t\ttmp = tmp.next;\n\t\t}\n\t\treturn tmp;\n\n\t\t//OR\n\t\t//getAt(size()-1);\n\t}",
"@Override\n public StorePickStatus getByUuid(String uuid) {\n return getSqlSession().getMapper(StorePickStatusDao.class).getByUuid(uuid);\n }",
"@Query(value = \"SELECT * FROM `ob_order` ORDER BY id DESC\", nativeQuery = true)\n List<Order> findHighestId();",
"public Square getLastSquare() {\n\t\treturn squares.get(squares.size()-1);\n\t}",
"public T getLast();",
"public T getLast();",
"public Location getHome(UUID uuid, String name){\r\n\t\t//Load Map (Update)\r\n\t\tloadMap();\r\n\t\t//Combovar of Homename & UUID of Player\r\n\t\tString uniqhome = uuid.toString() + name;\r\n\r\n\t\t//Reads the HomePoint and returns its Location\r\n\t\ttry{\r\n\t\t\tStringTokenizer toker = new StringTokenizer(map.get(uniqhome), \";\");\r\n\t\t\tLocation loc = new Location(Bukkit.getWorld(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tDouble.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tFloat.valueOf(toker.nextToken()), Float.valueOf(toker.nextToken()));\r\n\r\n\t\t\treturn loc;\r\n\r\n\t\t} catch(NullPointerException e){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public E pollLast();",
"public OSMNode lastNode() {\n return nodes.get(nodes.size() - 1);\n }",
"public E last() { // returns (but does not remove) the last element\n // TODO\n\n if ( isEmpty()) return null ;\n return tail.getElement();\n }",
"public com.Hotel.model.Hotel[] findByUuid_PrevAndNext(long hotelId,\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public frameTableElement findVictimLRU(){\n int smallestLastReferenceTime = Integer.MAX_VALUE;\n frameTableElement correspondingElement = null;\n\n for(int i=0; i< frameTable.getSize(); i++){\n frameTableElement currElement = frameTable.getElement(i);\n if(currElement.getLastTimeReferenced() < smallestLastReferenceTime){\n smallestLastReferenceTime = currElement.getLastTimeReferenced();\n correspondingElement = currElement;\n }\n }\n\n return correspondingElement;\n }",
"public wsihash findByUuid_C_Last(java.lang.String uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator)\n\t\tthrows NoSuchwsihashException;",
"public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}",
"public T getLast()\n\t{\n\t\treturn getLastNode().getData();\n\t}",
"public T getLast() {\n if (this.getSize() > 0) {\n return buffer[index];\n }\n return null;\n }",
"private Neuron lastNeuron() {\n if (neurons.isEmpty())\n throw new IllegalStateException(\"Attempt to get last neuron from empty network\");\n else\n return neurons.get(neurons.size() - 1);\n }",
"public E last() {\n if (this.isEmpty()) return null;\r\n return this.tail.getElement();\r\n }",
"T butLast();",
"public String getLastUsedStationNumber()\n\t{\n\t\treturn getValue(WareHouse.LASTUSEDSTATIONNUMBER).toString();\n\t}"
]
| [
"0.711305",
"0.6420331",
"0.6084709",
"0.60080695",
"0.5902182",
"0.58442605",
"0.5781495",
"0.56913424",
"0.5680166",
"0.56520075",
"0.5481458",
"0.544627",
"0.5442601",
"0.53949827",
"0.53518754",
"0.53465194",
"0.5281701",
"0.52726156",
"0.52585036",
"0.52368593",
"0.523681",
"0.52159435",
"0.5175012",
"0.51633775",
"0.5151696",
"0.5148873",
"0.51447684",
"0.51271594",
"0.50341576",
"0.5020558",
"0.5016701",
"0.50088364",
"0.49924138",
"0.49868283",
"0.49768597",
"0.49763113",
"0.49607813",
"0.49460867",
"0.49317977",
"0.49246165",
"0.49047756",
"0.4868645",
"0.48618767",
"0.48547137",
"0.48539248",
"0.4847784",
"0.48411068",
"0.48362595",
"0.483465",
"0.48263356",
"0.4822285",
"0.48175716",
"0.48174512",
"0.48161602",
"0.48036188",
"0.47933498",
"0.47409713",
"0.4740218",
"0.47363222",
"0.4733493",
"0.47269246",
"0.4711808",
"0.4710737",
"0.47065735",
"0.46954906",
"0.46952173",
"0.4683415",
"0.46801656",
"0.46747267",
"0.46744165",
"0.4657424",
"0.46571398",
"0.46496785",
"0.46330875",
"0.46231902",
"0.46148583",
"0.46049026",
"0.4600869",
"0.46002284",
"0.45897153",
"0.45845753",
"0.45832068",
"0.4582279",
"0.45709532",
"0.45696875",
"0.45696875",
"0.45676687",
"0.45638794",
"0.45612115",
"0.45560217",
"0.45552456",
"0.45538858",
"0.45498475",
"0.45495126",
"0.45495126",
"0.4543311",
"0.45314053",
"0.4527079",
"0.4525831",
"0.45245275"
]
| 0.6946448 | 1 |
Returns the hotels before and after the current hotel in the ordered set where uuid = &63;. | public com.Hotel.model.Hotel[] findByUuid_PrevAndNext(long hotelId,
java.lang.String uuid,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Location> getPreviousLocations();",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer[] findByUuid_PrevAndNext(\n long layerId, java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.i3mainz.flexgeo.portal.liferay.services.NoSuchOGCServiceLayerException;",
"public List<com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter> fetchRangeOfId(UUID lowerInclusive, UUID upperInclusive) {\n return fetchRange(Voter.VOTER.ID, lowerInclusive, upperInclusive);\n }",
"public wsihash[] findByUuid_PrevAndNext(long wsihashId,\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator)\n\t\tthrows NoSuchwsihashException;",
"List<Tile> getAdjacentTiles();",
"public de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer[] findByUuid_C_PrevAndNext(\n long layerId, java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n de.i3mainz.flexgeo.portal.liferay.services.NoSuchOGCServiceLayerException;",
"public com.refcodes.portlets.businesscenter.model.BusinessUser[] findByUuid_PrevAndNext(\n long businessUserId, java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.refcodes.portlets.businesscenter.NoSuchBusinessUserException;",
"public java.util.List<Todo> findByUuid(String uuid, int start, int end);",
"public java.util.List<Todo> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator);",
"public HotelCard searchAdjacentHotels(Board board, Tuple res) {\n ArrayList<HotelCard> hotels = board.getHotels();\n ArrayList<HotelCard> adjacent_hotels = new ArrayList<>();\n ArrayList<Integer> ids = new ArrayList<>();\n int x1, x2, y1, y2, x3, y3, x4, y4;\n\n // Presentation of player's adjacent hotels\n System.out.println(ANSI() + \"Here are the available adjacent hotels:\" + ANSI_RESET);\n // right\n x1 = res.a;\n y1 = res.b + 1;\n // up \n x2 = res.a - 1;\n y2 = res.b;\n // left\n x3 = res.a;\n y3 = res.b - 1; \n // down\n x4 = res.a + 1;\n y4 = res.b;\n \n if (isNum(board.board[x1][y1]) != -1) {\n ids.add(isNum(board.board[x1][y1]));\n }\n if (isNum(board.board[x2][y2]) != -1) {\n ids.add(isNum(board.board[x2][y2]));\n }\n if (isNum(board.board[x3][y3]) != -1) {\n ids.add(isNum(board.board[x3][y3]));\n }\n if (isNum(board.board[x4][y4]) != -1) {\n ids.add(isNum(board.board[x4][y4]));\n }\n for (int id : ids) {\n for (HotelCard hc : hotels) {\n if (hc.getID() == id) {\n System.out.print(ANSI() + \"Hotel Name: \" + hc.getName() + ANSI_RESET);\n System.out.print(ANSI() + \", Hotel ID: \" + hc.getID() + ANSI_RESET); \n System.out.println(ANSI() + \", Hotel Ranking: \" + hc.getRank() + ANSI_RESET); \n adjacent_hotels.add(hc); \n }\n }\n }\n\n // Choose one adjacent hotel\n System.out.println(\"Please type the id of the hotel you want to buy\");\n boolean answer = false;\n while (answer == false) {\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int ID;\n try { \n ID = Integer.parseInt(str);\n // Search for the hotel card with user's given ID \n for (HotelCard hc : adjacent_hotels) \n if (hc.getID() == ID) return hc; \n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET);\n } catch (Exception e) {\n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET);\n }\n }\n return null;\n }",
"@Override\n\tpublic Gesture get()\n\t{\n\t\tint sizeToFind = history.size() > 6 ? 6 : history.size() - 1; \n\t\t\n\t\twhile (sizeToFind >= 3) {\n\t\t\tint recentStart = history.size() - sizeToFind;\n\t\t\tint recentEnd = history.size();\n\t\t\t\n\t\t\tfor (int i = 0; i < history.size() - sizeToFind - 1; i++) {\n\t\t\t\tint setEnd = i + sizeToFind;\n\t\t\t\t\n\t\t\t\t// both intervals are the same size\n\t\t\t\tassert recentEnd - recentStart == setEnd - i;\n\t\t\t\t\n\t\t\t\tif (same(recentStart, recentEnd, i, setEnd)) {\n\t\t\t\t\treturn Gesture.fromInt(history.get(i + sizeToFind)[0]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsizeToFind--;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"int[] getGivenByOrder();",
"public java.util.List<Todo> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public List<Equipment> findByPriceRange(int from, int to){\n List<Equipment> foundEquipment = new ArrayList<>();\n for(Equipment e: equipment){\n if (e.getPrice() <= to && e.getPrice() >= from){\n foundEquipment.add(e);\n }\n }\n return foundEquipment;\n }",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator);",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue[] findByUuid_PrevAndNext(\n long sensorValueId, java.lang.String uuid,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByUuid_PrevAndNext(sensorValueId, uuid,\n orderByComparator);\n }",
"@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)\n\tpublic List<Artwork> getArtworksByUuidAndCompanyId(\n\t\tString uuid, long companyId, int start, int end,\n\t\tOrderByComparator<Artwork> orderByComparator);",
"public List<Hotel> findByPriceBetween(double low, double high);",
"public List<ReservationFlightInfo> getPreviousReservations(String email) {\n\n System.out.println(\"Email \" + email);\n\n Customer customer = customerRepository.findByEmail(email);\n\n if (customer == null) {\n return null;\n }\n\n List<Reservation> reservations = reservationRepository.findByCustomerid(customer.getCustomerid());\n\n System.out.println(\"reservation list size \" + reservations.size());\n\n List<ReservationFlightInfo> reservationInfo= new ArrayList<ReservationFlightInfo>();\n\n for (int i = 0; i < reservations.size(); i++) {\n Reservation r = reservations.get(i);\n Flight previousFlight = flightRepository.findByFlightid(r.getDepartureflightid());\n System.out.println(\"Flight Departure Airport (Flight) \" + previousFlight.getDepartureairport());\n\n\n ReservationFlightInfo tempInfo = new ReservationFlightInfo(r.getReservationid(), previousFlight.getFlightid(), previousFlight.getDepartureairport(), previousFlight.getArrivalairport(), previousFlight.getDeparturedate(), previousFlight.getStatus(), r.getBookingStatus(), r.getReservationorigin());\n String testStatus = tempInfo.getBookingStatus();\n String testOrigin = tempInfo.getReservationOrigin();\n System.out.println(\"test status = \" + testStatus);\n System.out.println(\"test origin = \" + testOrigin);\n\n if (testStatus.equals(\"confirmed\") && testOrigin.equals(\"kana\")) {\n reservationInfo.add(tempInfo);\n System.out.println(\"Flight Departure Airport (FlightInfo) \" + tempInfo.getDepartureAirport());\n System.out.println(\"Reservation ID: \" + tempInfo.getReservationId());\n }\n }\n\n System.out.println(\"Reservation Info List Contents:\" + reservationInfo);\n return reservationInfo;\n }",
"public TimeRange getBooking(UUID eventUUID) {\n return this.uuidToTimeRange.get(eventUUID);\n }",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\torderByComparator,\n\t\tboolean useFinderCache);",
"public static java.util.List<it.vmt.gh.sb.model.Environment>\n\t\tgetEnvironmentsByUuidAndCompanyId(\n\t\t\tString uuid, long companyId, int start, int end,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator\n\t\t\t\t<it.vmt.gh.sb.model.Environment> orderByComparator) {\n\n\t\treturn getService().getEnvironmentsByUuidAndCompanyId(\n\t\t\tuuid, companyId, start, end, orderByComparator);\n\t}",
"public java.util.List getOrderedAncestors();",
"public static Location deathBanLocsGet(UUID uuid) {\n\n\t\tLocation loc = null;\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM deathbanlocs WHERE uuid = '\" + uuid + \"'\");\n\t\t\twhile (rs.next()) {\n\n\t\t\t\tdouble x = rs.getDouble(\"x\") + 0.5;\n\t\t\t\tdouble y = rs.getDouble(\"y\");\n\t\t\t\tdouble z = rs.getDouble(\"z\") + 0.5;\n\t\t\t\tloc = new Location(PvPTeleport.instance.getServer().getWorld(\"deathban\"), x, y, z);\n\n\t\t\t}\n\n\t\t\trs.close();\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t\treturn loc;\n\n\t}",
"public ArrayList<Hotel> getCustomerHotels(Integer customerId);",
"private Cell findPrev(ArrayList<Cell> list, Cell current) {\r\n\t\t\tint index = isInList(list, current);\r\n\t\t\treturn list.get(index).prev;\r\n\t\t}",
"public DataEntry[] findByUuid_PrevAndNext(\n\t\t\tlong dataEntryId, String uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<DataEntry>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchDataEntryException;",
"public void XOr(UUID uuid) {\n int i = 0;\n for (byte b : uuid.GetBytes()) {\n data[i++] ^= b;\n }\n }",
"public interface HotelPersistence extends BasePersistence<Hotel> {\n\t/*\n\t * NOTE FOR DEVELOPERS:\n\t *\n\t * Never modify or reference this interface directly. Always use {@link HotelUtil} to access the hotel persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.\n\t */\n\n\t/**\n\t* Returns all the hotels where uuid = ?.\n\t*\n\t* @param uuid the uuid\n\t* @return the matching hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.Hotel.model.Hotel> findByUuid(\n\t\tjava.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the hotels where uuid = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param start the lower bound of the range of hotels\n\t* @param end the upper bound of the range of hotels (not inclusive)\n\t* @return the range of matching hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.Hotel.model.Hotel> findByUuid(\n\t\tjava.lang.String uuid, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the hotels where uuid = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param uuid the uuid\n\t* @param start the lower bound of the range of hotels\n\t* @param end the upper bound of the range of hotels (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.Hotel.model.Hotel> findByUuid(\n\t\tjava.lang.String uuid, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first hotel in the ordered set where uuid = ?.\n\t*\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching hotel\n\t* @throws com.Hotel.NoSuchHotelException if a matching hotel could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel findByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first hotel in the ordered set where uuid = ?.\n\t*\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching hotel, or <code>null</code> if a matching hotel could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel fetchByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last hotel in the ordered set where uuid = ?.\n\t*\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching hotel\n\t* @throws com.Hotel.NoSuchHotelException if a matching hotel could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last hotel in the ordered set where uuid = ?.\n\t*\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching hotel, or <code>null</code> if a matching hotel could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel fetchByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the hotels before and after the current hotel in the ordered set where uuid = ?.\n\t*\n\t* @param hotelId the primary key of the current hotel\n\t* @param uuid the uuid\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next hotel\n\t* @throws com.Hotel.NoSuchHotelException if a hotel with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel[] findByUuid_PrevAndNext(long hotelId,\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the hotels where uuid = ? from the database.\n\t*\n\t* @param uuid the uuid\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByUuid(java.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of hotels where uuid = ?.\n\t*\n\t* @param uuid the uuid\n\t* @return the number of matching hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByUuid(java.lang.String uuid)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the hotels where name = ?.\n\t*\n\t* @param name the name\n\t* @return the matching hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.Hotel.model.Hotel> findByname(\n\t\tjava.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the hotels where name = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param name the name\n\t* @param start the lower bound of the range of hotels\n\t* @param end the upper bound of the range of hotels (not inclusive)\n\t* @return the range of matching hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.Hotel.model.Hotel> findByname(\n\t\tjava.lang.String name, int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the hotels where name = ?.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param name the name\n\t* @param start the lower bound of the range of hotels\n\t* @param end the upper bound of the range of hotels (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of matching hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.Hotel.model.Hotel> findByname(\n\t\tjava.lang.String name, int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first hotel in the ordered set where name = ?.\n\t*\n\t* @param name the name\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching hotel\n\t* @throws com.Hotel.NoSuchHotelException if a matching hotel could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel findByname_First(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the first hotel in the ordered set where name = ?.\n\t*\n\t* @param name the name\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the first matching hotel, or <code>null</code> if a matching hotel could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel fetchByname_First(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last hotel in the ordered set where name = ?.\n\t*\n\t* @param name the name\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching hotel\n\t* @throws com.Hotel.NoSuchHotelException if a matching hotel could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel findByname_Last(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the last hotel in the ordered set where name = ?.\n\t*\n\t* @param name the name\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the last matching hotel, or <code>null</code> if a matching hotel could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel fetchByname_Last(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the hotels before and after the current hotel in the ordered set where name = ?.\n\t*\n\t* @param hotelId the primary key of the current hotel\n\t* @param name the name\n\t* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)\n\t* @return the previous, current, and next hotel\n\t* @throws com.Hotel.NoSuchHotelException if a hotel with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel[] findByname_PrevAndNext(long hotelId,\n\t\tjava.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the hotels where name = ? from the database.\n\t*\n\t* @param name the name\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeByname(java.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of hotels where name = ?.\n\t*\n\t* @param name the name\n\t* @return the number of matching hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countByname(java.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Caches the hotel in the entity cache if it is enabled.\n\t*\n\t* @param hotel the hotel\n\t*/\n\tpublic void cacheResult(com.Hotel.model.Hotel hotel);\n\n\t/**\n\t* Caches the hotels in the entity cache if it is enabled.\n\t*\n\t* @param hotels the hotels\n\t*/\n\tpublic void cacheResult(java.util.List<com.Hotel.model.Hotel> hotels);\n\n\t/**\n\t* Creates a new hotel with the primary key. Does not add the hotel to the database.\n\t*\n\t* @param hotelId the primary key for the new hotel\n\t* @return the new hotel\n\t*/\n\tpublic com.Hotel.model.Hotel create(long hotelId);\n\n\t/**\n\t* Removes the hotel with the primary key from the database. Also notifies the appropriate model listeners.\n\t*\n\t* @param hotelId the primary key of the hotel\n\t* @return the hotel that was removed\n\t* @throws com.Hotel.NoSuchHotelException if a hotel with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel remove(long hotelId)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;\n\n\tpublic com.Hotel.model.Hotel updateImpl(com.Hotel.model.Hotel hotel)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the hotel with the primary key or throws a {@link com.Hotel.NoSuchHotelException} if it could not be found.\n\t*\n\t* @param hotelId the primary key of the hotel\n\t* @return the hotel\n\t* @throws com.Hotel.NoSuchHotelException if a hotel with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel findByPrimaryKey(long hotelId)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the hotel with the primary key or returns <code>null</code> if it could not be found.\n\t*\n\t* @param hotelId the primary key of the hotel\n\t* @return the hotel, or <code>null</code> if a hotel with the primary key could not be found\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic com.Hotel.model.Hotel fetchByPrimaryKey(long hotelId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns all the hotels.\n\t*\n\t* @return the hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.Hotel.model.Hotel> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns a range of all the hotels.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of hotels\n\t* @param end the upper bound of the range of hotels (not inclusive)\n\t* @return the range of hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.Hotel.model.Hotel> findAll(int start, int end)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns an ordered range of all the hotels.\n\t*\n\t* <p>\n\t* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.Hotel.model.impl.HotelModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.\n\t* </p>\n\t*\n\t* @param start the lower bound of the range of hotels\n\t* @param end the upper bound of the range of hotels (not inclusive)\n\t* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)\n\t* @return the ordered range of hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic java.util.List<com.Hotel.model.Hotel> findAll(int start, int end,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Removes all the hotels from the database.\n\t*\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic void removeAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n\n\t/**\n\t* Returns the number of hotels.\n\t*\n\t* @return the number of hotels\n\t* @throws SystemException if a system exception occurred\n\t*/\n\tpublic int countAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;\n}",
"public Todo[] findByUuid_PrevAndNext(\n\t\t\tlong todoId, String uuid,\n\t\t\tcom.liferay.portal.kernel.util.OrderByComparator<Todo>\n\t\t\t\torderByComparator)\n\t\tthrows NoSuchTodoException;",
"public com.Hotel.model.Hotel fetchByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"@Override\n\tpublic Paper[] findByUuid_PrevAndNext(long paperId, String uuid,\n\t\tOrderByComparator<Paper> orderByComparator) throws NoSuchPaperException {\n\t\tPaper paper = findByPrimaryKey(paperId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tPaper[] array = new PaperImpl[3];\n\n\t\t\tarray[0] = getByUuid_PrevAndNext(session, paper, uuid,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = paper;\n\n\t\t\tarray[2] = getByUuid_PrevAndNext(session, paper, uuid,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}",
"@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }",
"public com.Hotel.model.Hotel[] findByname_PrevAndNext(long hotelId,\n\t\tjava.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"default List<PendingAttestation> get_matching_head_attestations(BeaconState state, EpochNumber epoch) {\n return get_matching_source_attestations(state, epoch).stream()\n .filter(a -> a.getData().getBeaconBlockRoot().equals(\n get_block_root_at_slot(state, get_attestation_slot(state, a.getData()))))\n .collect(toList());\n }",
"public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }",
"public List<Order> getOrderHistory();",
"List<Node> getAdjacentNodes(String data) {\n return adjacentNodes.get(new Node(data));\n }",
"public List<String> getHotels() {\n\t\t// FILL IN CODE\n\t\tlock.lockRead();\n\t\ttry{\n\t\t\tList<String> hotelIds = new ArrayList<>();\n\t\t\tif(hotelIds != null){\n\t\t\t\thotelIds = new ArrayList<String>(hotelMap.keySet());\n\t\t\t}\n\t\t\treturn hotelIds;\n\t\t}\n\t\tfinally{\n\t\t\tlock.unlockRead();\n\t\t}\n\t}",
"protected abstract Iterable<E> getIntersecting(D lower, D upper);",
"OIterator<V> before();",
"private void findPrev() {\n \tthis.find(false);\n }",
"public String getOrder(String uuid) {\n\n\t\treturn getJson(API_VERSION, ACCOUNT, \"getorder\", returnCorrectMap(\"uuid\", uuid));\n\t}",
"public com.Hotel.model.Hotel fetchByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"@Override\r\n public void getRange(ArrayList<Piece> pieces){\r\n this.range.clear();\r\n int pieceX = this.getX(); int pieceY = this.getY(); // X and Y coordinates for the king piece\r\n\r\n // getPiece: 0 = empty; 1 = same color; 2 = opposite color\r\n //Up\r\n if (this.getPiece(pieceX, pieceY+1, pieces) == 0 || this.getPiece(pieceX, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Up-right\r\n if (this.getPiece(pieceX+1, pieceY+1, pieces) == 0 || this.getPiece(pieceX+1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Right\r\n if (this.getPiece(pieceX+1, pieceY, pieces) == 0 || this.getPiece(pieceX+1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Down-right\r\n if (this.getPiece(pieceX+1, pieceY-1, pieces) == 0 || this.getPiece(pieceX+1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down\r\n if (this.getPiece(pieceX, pieceY-1, pieces) == 0 || this.getPiece(pieceX, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down-left\r\n if (this.getPiece(pieceX-1, pieceY-1, pieces) == 0 || this.getPiece(pieceX-1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Left\r\n if (this.getPiece(pieceX-1, pieceY, pieces) == 0 || this.getPiece(pieceX-1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Up-left\r\n if (this.getPiece(pieceX-1, pieceY+1, pieces) == 0 || this.getPiece(pieceX-1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Castling\r\n for (Piece piece : pieces) {\r\n if (piece instanceof Rook) {\r\n if (piece.getColor() == this.getColor()) {\r\n if (validCastling(pieces, (Rook)piece)) {\r\n int targetX = (piece.getX() < getX()) ? (this.getX() - 2) : (this.getX() + 2);\r\n this.range.add(new int[] {targetX, this.getY()});\r\n }\r\n }\r\n }\r\n }\r\n }",
"private List<SeatHold> getHoldTickets(Instant instant) {\n List<SeatHold> seatHolds = seatHoldMap.values()\n .stream()\n .filter(seatHold -> seatHold.getDate()\n .isBefore(LocalDateTime.ofInstant(instant, ZoneId.systemDefault())))\n .collect(Collectors.toList());\n return seatHolds;\n }",
"public ArrayList<Integer> order(ArrayList<Integer> heights, ArrayList<Integer> infronts, ArrayList<Integer> current) {\n\t int pos=0;\n\t for ( int i = 0; i < heights.size(); i++ ){\n\t if ( current.get(i)!=0) pos++;\n\t }\n\t \n\t if ( pos == heights.size()) return current; //We're done.\n\t \n\t //Get the height we'll be working with.\n\t int thisHeight = heights.get(pos);\n\t \n\t //Look for the next available positions.\n\t int occupiedPositions = 0;\n\t for ( int i = 0; i < current.size();i++){\n\t if (current.get(i)== 0){//Let's consider this position.\n\t if (infronts.get(i)-occupiedPositions == i){\n\t //This is a possibility.\n\t //Create a new current array and call the method again.\n\t ArrayList<Integer> current2 = new ArrayList<Integer> (current);\n\t current2.set(i,thisHeight);\n\t ArrayList<Integer> current3 = order (heights,infronts,current2);\n\t if ( current3 != null ) return current3;\n\t }\n\t }\n\t else {\n\t occupiedPositions++;\n\t }\n\t }\n\t return null;\n\t\t}",
"public java.util.List<DataEntry> findByUuid(\n\t\tString uuid, int start, int end);",
"@Override\n\tpublic TvShow[] findByUuid_PrevAndNext(long tvShowId, String uuid,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchTvShowException, SystemException {\n\t\tTvShow tvShow = findByPrimaryKey(tvShowId);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tTvShow[] array = new TvShowImpl[3];\n\n\t\t\tarray[0] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = tvShow;\n\n\t\t\tarray[2] = getByUuid_PrevAndNext(session, tvShow, uuid,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}",
"List<State> findStatesBetweenOrders( int nOrder1, int nOrder2, int nIdWorkflow );",
"public ArrayList<Hotel> getUserHotels(Integer userId, Integer customerId);",
"public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}",
"public Map<UUID, TimeRange> getUUIDToTimeRange() {\n return new HashMap<>(uuidToTimeRange);\n }",
"@Override\n\tpublic List<Cell> getOrderedNeighbors(Cell cell) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tint northwest, north, northeast, east, southeast, south, southwest, west;\n\t\t\n\t\tnorthwest = getNorthWestCell(cell);\n\t\tnorth = getNorthCell(cell);\n\t\tnortheast = getNorthEastCell(cell);\n\t\teast = getEastCell(cell);\n\t\tsoutheast = getSouthEastCell(cell);\n\t\tsouth = getSouthCell(cell);\n\t\tsouthwest = getSouthWestCell(cell);\n\t\twest = getWestCell(cell);\n\t\t\n\t\tneighbors.add(getCellList().get(northwest));\n\t\tneighbors.add(getCellList().get(north));\n\t\tneighbors.add(getCellList().get(northeast));\n\t\tneighbors.add(getCellList().get(east));\n\t\tneighbors.add(getCellList().get(southeast));\n\t\tneighbors.add(getCellList().get(south));\n\t\tneighbors.add(getCellList().get(southwest));\n\t\tneighbors.add(getCellList().get(west));\n\t\t\n\t\treturn neighbors;\n\t}",
"public List<com.heman.bysj.jooq.tables.pojos.Teacher> fetchRangeOfPosition(String lowerInclusive, String upperInclusive) {\n return fetchRange(Teacher.TEACHER.POSITION, lowerInclusive, upperInclusive);\n }",
"public Iterable<Point2D> range(RectHV rect) {\n if (rect == null) throw new NullPointerException();\n TreeSet<Point2D> inRangeSet = new TreeSet<>();\n for (Point2D point : pointSet) {\n if (rect.contains(point)) {\n inRangeSet.add(point);\n }\n }\n return inRangeSet;\n }",
"public Location getHome(UUID uuid, String name){\r\n\t\t//Load Map (Update)\r\n\t\tloadMap();\r\n\t\t//Combovar of Homename & UUID of Player\r\n\t\tString uniqhome = uuid.toString() + name;\r\n\r\n\t\t//Reads the HomePoint and returns its Location\r\n\t\ttry{\r\n\t\t\tStringTokenizer toker = new StringTokenizer(map.get(uniqhome), \";\");\r\n\t\t\tLocation loc = new Location(Bukkit.getWorld(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tDouble.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tFloat.valueOf(toker.nextToken()), Float.valueOf(toker.nextToken()));\r\n\r\n\t\t\treturn loc;\r\n\r\n\t\t} catch(NullPointerException e){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public Iterable<Point2D> range(RectHV rect) {\n if (isEmpty())\n return null;\n IntersectingPoints ip = new IntersectingPoints(rect);\n return new KdTreeIterable(ip.intersecting, ip.lenIntersecting);\n }",
"public List<Point> getPoints() {\n return pointRepository.findAll()//\n .stream() //\n .sorted((p1, p2) -> Integer.compare(p1.getPosition(), p2.getPosition()))//\n .collect(Collectors.toList());\n }",
"public int[] getPrevious() {\n if (currentRound == -1 || currentHeat == -1 || rounds.size() == 0) {\n return new int[] {-1, -1};\n }\n\n int[] last = new int[2];\n\n // Check if current round was the first heat (if so there was no previous heat)\n if (currentRound == 0 && currentHeat == 0) {\n // This is the first heat - return invalid\n return new int[] {-1, -1};\n }\n // There was a previous heat\n else {\n // Check if this was the first heat of the round\n if (currentHeat == 0) {\n // It was the first heat, so we need to get the last heat of the previous round\n last[0] = currentRound - 1;\n last[1] = rounds.get(currentRound - 1).length() - 1;\n }\n else {\n // There was a previous heat in this round\n last[0] = currentRound;\n last[1] = currentHeat - 1;\n }\n }\n\n return last;\n }",
"public com.refcodes.portlets.businesscenter.model.BusinessUser[] findByUuid_C_PrevAndNext(\n long businessUserId, java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.refcodes.portlets.businesscenter.NoSuchBusinessUserException;",
"public List<ReservationFlightInfo> getPreviousReservationsRest(String email) {\n\n System.out.println(\"Email \" + email);\n\n Customer customer = customerRepository.findByEmail(email);\n\n if (customer == null) {\n return null;\n }\n\n\n List<Reservation> reservations = reservationRepository.findByCustomerid(customer.getCustomerid());\n\n System.out.println(\"reservation list size \" + reservations.size());\n\n List<ReservationFlightInfo> reservationInfo= new ArrayList<ReservationFlightInfo>();\n\n for (int i = 0; i < reservations.size(); i++) {\n Reservation r = reservations.get(i);\n Flight previousFlight = flightRepository.findByFlightid(r.getDepartureflightid());\n System.out.println(\"Flight Departure Airport (Flight) \" + previousFlight.getDepartureairport());\n\n\n ReservationFlightInfo tempInfo = new ReservationFlightInfo(r.getReservationid(), previousFlight.getFlightid(), previousFlight.getDepartureairport(), previousFlight.getArrivalairport(), previousFlight.getDeparturedate(), previousFlight.getStatus(), r.getBookingStatus(), r.getReservationorigin());\n String testStatus = tempInfo.getBookingStatus();\n String testOrigin = tempInfo.getReservationOrigin();\n System.out.println(\"test status = \" + testStatus);\n System.out.println(\"test origin = \" + testOrigin);\n\n if (testStatus.equals(\"confirmed\") && testOrigin.equals(\"planner\")) {\n reservationInfo.add(tempInfo);\n System.out.println(\"Flight Departure Airport (FlightInfo) \" + tempInfo.getDepartureAirport());\n System.out.println(\"Reservation ID: \" + tempInfo.getReservationId());\n } else {\n System.out.println(\"Not confirmed or planner\");\n }\n }\n\n System.out.println(\"Reservation Info List Contents:\" + reservationInfo);\n return reservationInfo;\n }",
"public ArrayList<Point> getAdjacentLoosePoints(Point p, Set<Point> loose) {\n \tArrayList<Point> points = new ArrayList<Point>();\n \t\n \t// check point directly to the left\n \tif (p.getX() + 1 < width) {\n \t\tPoint possible = new Point((int) p.getX() + 1, (int) p.getY());\n \t\tif (loose.contains(possible)) {\n \t\t\tpoints.add(possible);\n \t\t}\n \t}\n \t//check point directly to the right\n \tif (p.getX() - 1 > 0) {\n \t\tPoint possible = new Point((int) p.getX() - 1, (int) p.getY());\n \t\tif (loose.contains(possible)) {\n \t\t\tpoints.add(possible);\n \t\t}\n \t}\n \t//check point directly above\n \tif (p.getY() + 1 < height) {\n \t\tPoint possible = new Point((int) p.getX(), (int) p.getY() + 1);\n \t\tif (loose.contains(possible)) {\n \t\t\tpoints.add(possible);\n \t\t}\n \t}\n \t//check point directly above\n \tif (p.getY() - 1 > 0) {\n \t\tPoint possible = new Point((int) p.getX(), (int) p.getY() - 1);\n \t\tif (loose.contains(possible)) {\n \t\t\tpoints.add(possible);\n \t\t}\n \t}\n \treturn points;\n }",
"public static com.lrexperts.liferay.liferayofthings.model.SensorValue[] findByUuid_C_PrevAndNext(\n long sensorValueId, java.lang.String uuid, long companyId,\n com.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n throws com.liferay.portal.kernel.exception.SystemException,\n com.lrexperts.liferay.liferayofthings.NoSuchSensorValueException {\n return getPersistence()\n .findByUuid_C_PrevAndNext(sensorValueId, uuid, companyId,\n orderByComparator);\n }",
"protected abstract D getPrevious(D d);",
"private Intersection[] getExtremIntersection(){\n if(!mapLoaded){\n return null;\n }\n Intersection northernmost = intersectionList.get(0);\n Intersection southernmost = intersectionList.get(0);\n Intersection easternmost = intersectionList.get(0);\n Intersection westernmost = intersectionList.get(0);\n\n for(int i=0 ; i<intersectionList.size() ; i++){\n Intersection testedIntersection = intersectionList.get(i);\n //north\n if(northernmost.getLatitude() < testedIntersection.getLatitude()) {\n northernmost = testedIntersection;\n }\n //south\n if(southernmost.getLatitude() > testedIntersection.getLatitude()) {\n southernmost = testedIntersection;\n }\n //east\n if(easternmost.getLongitude() < testedIntersection.getLongitude()) {\n easternmost = testedIntersection;\n }\n //west\n if(westernmost.getLongitude() > testedIntersection.getLongitude()) {\n westernmost = testedIntersection;\n }\n }\n Intersection[] extremum = {northernmost , southernmost , easternmost , westernmost};\n return extremum;\n }",
"public com.Hotel.model.Hotel findByUuid_First(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public wsihash fetchByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator);",
"public static Task[] findByUuid_PrevAndNext(long taskId, String uuid,\n\t\tOrderByComparator<Task> orderByComparator)\n\t\tthrows serviceBuilder.exception.NoSuchTaskException {\n\t\treturn getPersistence()\n\t\t\t\t .findByUuid_PrevAndNext(taskId, uuid, orderByComparator);\n\t}",
"@Override\n public int hashCode()\n {\n return Objects.hash(startAt, lookingAt);\n }",
"private ArrayList<Float> FindRasterCellOnLine(int x1, int y1, int x2, int y2) {\n // delta of exact value and rounded value of the dependant variable\n ArrayList<Float> zvalue = new ArrayList<Float>();\n int d = 0;\n\n int dy = Math.abs(y2 - y1);\n int dx = Math.abs(x2 - x1);\n\n int dy2 = (dy << 1); // slope scaling factors to avoid floating\n int dx2 = (dx << 1); // point\n int ix = x1 < x2 ? 1 : -1; // increment direction\n int iy = y1 < y2 ? 1 : -1;\n\n if (dy <= dx) {\n for (;;) {\n //get a new pair of x1, y1\n float zvaluenow = nctest.GetAttribute(x1, y1);\n if (zvaluenow==-100000000)\n break;\n zvalue.add(zvaluenow);\n \n \n if (x1 >= x2) {\n break;\n }\n x1 += ix;\n d += dy2;\n if (d > dx) {\n y1 += iy;\n d -= dx2;\n }\n }\n } else {\n for (;;) {\n //get a new pair of x1, y1\n float zvaluenow = nctest.GetAttribute(x1, y1);\n if (zvaluenow==-100000000)\n break;\n zvalue.add(zvaluenow);\n if (y1 >= y2) {\n break;\n }\n y1 += iy;\n d += dx2;\n if (d > dy) {\n x1 += ix;\n d -= dy2;\n }\n }\n }\n\n return zvalue;\n }",
"public wsihash[] findByUuid_C_PrevAndNext(long wsihashId,\n\t\tjava.lang.String uuid, long companyId,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator<wsihash> orderByComparator)\n\t\tthrows NoSuchwsihashException;",
"public List<Equipment> sortByEquipmentWeight(){\n List<Equipment> sortedEquipment = equipment;\n Collections.sort(sortedEquipment);\n return sortedEquipment;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n TreeSet<Point2D> ret = new TreeSet<Point2D>();\n for (Point2D p: mPoints) {\n if (rect.contains(p)) {\n ret.add(p);\n }\n }\n return ret;\n }",
"public Iterable<Point2D> range(RectHV rect) {\n //rect\n Queue<Point2D> range = new Queue<Point2D>();\n \n for (Point2D p: bst.keys()) {\n if (rect.contains(p)) {\n range.enqueue(p);\n }\n }\n return range; \n }",
"default List<PendingAttestation> get_matching_source_attestations(BeaconState state, EpochNumber epoch) {\n assertTrue(epoch.equals(get_current_epoch(state)) || epoch.equals(get_previous_epoch(state)));\n return epoch.equals(get_current_epoch(state)) ?\n state.getCurrentEpochAttestations().listCopy() : state.getPreviousEpochAttestations().listCopy();\n }",
"public void updateFrontUnknown() {\n\t\tfrontUnknown = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < unknown.size(); i++) {\n\t\t\tint[] pair = unknown.get(i).clone();\n\t\t\tif (findAdjacentSafe(pair).size() != 0) {\n\t\t\t\tfrontUnknown.add(pair);\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<Location> getLine(Location from, Location to) {\n // Add delta X and add delta Y (if vertical, delta x = 0, if horizontal, delta y = 0)\n if (to == null) {\n return new ArrayList();\n } // In the future need a way to get all the points up to the border so that it draws a complete line.\n\n ArrayList<Location> result = new ArrayList();\n int deltaX = (from.getX() - to.getX())/getPixelSize(); // Amount of \"pixels\" between two the locations (x-wise) if delta = 10, 2 pixels so increase by 5 each time //<>//\n int deltaY = (from.getY() - to.getY())/getPixelSize();\n\n // Ensures that the deltaX and deltaY are valid (might not need this because we already know the location is valid)\n //if (deltaX % getPixelSize() != 0 || deltaY % getPixelSize() != 0) { throw new IllegalArgumentException(); }\n\n int currentX = from.getX();\n int currentY = from.getY();\n\n // Code from: https://stackoverflow.com/questions/13988805/fastest-way-to-get-sign-in-java\n int xSign = (int) Math.signum(deltaX);\n int ySign = (int) Math.signum(deltaY);\n\n for (int i=0; i<Math.abs(deltaX + deltaY); i++) { // This should include \"to\". deltaX + deltaY will be the amount of blocks to go up/horizontal because one should always be 0.\n currentX -= xSign * getPixelSize();\n currentY -= ySign * getPixelSize();\n Location loc = getLocation(currentX, currentY);\n\n result.add(loc);\n if (loc == null) {\n return result;\n }\n }\n\n return result;\n }",
"public ArrayList<HexLocation> getShuffledLocations() {\n\t\t\n\t\tArrayList<HexLocation> locations = new ArrayList<>();\n\t\t\n\t\tHex[][] h = hexGrid.getHexes();\n\t\tlocations.add(h[4][1].getLocation());\n\t\tlocations.add(h[2][2].getLocation());\n\t\tlocations.add(h[5][2].getLocation());\n\t\tlocations.add(h[1][2].getLocation());\n\t\tlocations.add(h[4][3].getLocation());\n\t\tlocations.add(h[3][1].getLocation());\n\t\tlocations.add(h[3][4].getLocation());\n\t\tlocations.add(h[3][5].getLocation());\n\t\tlocations.add(h[5][1].getLocation());\n\t\tlocations.add(h[2][1].getLocation());\n\t\tlocations.add(h[5][3].getLocation());\n\t\tlocations.add(h[2][3].getLocation());\n\t\tlocations.add(h[4][2].getLocation());\n\t\tlocations.add(h[3][2].getLocation());\n\t\tlocations.add(h[4][4].getLocation());\n\t\tlocations.add(h[1][3].getLocation());\n\t\tlocations.add(h[3][3].getLocation());\n\t\tlocations.add(h[2][4].getLocation());\n\t\t\n\t\tCollections.shuffle(locations);\n\t\treturn locations;\n\t}",
"@Override\n public Set<Event> getNextEvents(LocalDateTime to) {\n return null;\n }",
"public static Term[] findByUuid_PrevAndNext(\n\t\t\tlong termId, String uuid, OrderByComparator<Term> orderByComparator)\n\t\tthrows com.liferay.cm.exception.NoSuchTermException {\n\n\t\treturn getPersistence().findByUuid_PrevAndNext(\n\t\t\ttermId, uuid, orderByComparator);\n\t}",
"public List rangeSearch(int x, int y){\n List list = new List(y-x);\n Node current = findClosest(x);\n Node end = findClosest(y);\n\n // list.append(current);\n // System.out.print(\"end 1 = \" + end.key+\" \");\n while(current.key<=end.key)\n {\n\n // System.out.print(\"current 2= \" + current.key+\" \");\n if(current.key<=y){ // ใส่ node ที่มีค่าไม่เกิน rangeSearch\n list.append(current);\n }\n\n if(current.key>=end.key){break;}\n\n current = findNext(current);\n\n\n\n // System.out.print(\"current 3= \" + current.key);\n\n }\n\n\n return list;\n }",
"private Points getTransactions(long startTimestamp, long endTimestamp) {\n if (startTimestamp > endTimestamp) {\n long tmp = startTimestamp;\n startTimestamp = endTimestamp;\n endTimestamp = tmp;\n }\n int low = 0;\n int high = transactionList.size() - 1;\n int x = -1;\n int y = -1;\n while (low <= high) {\n int mid = (high + low) >> 1;\n if (transactionList.get(mid).transactionTimestamp >= startTimestamp) {\n x = mid;\n high = mid - 1;\n } else {\n low = mid + 1;\n }\n }\n if (x == -1) {\n return new Points(-1, -1);\n }\n\n low = 0;\n high = transactionList.size() - 1;\n while (low <= high) {\n int mid = (high + low) >> 1;\n if (transactionList.get(mid).transactionTimestamp <= endTimestamp) {\n y = mid;\n low = mid + 1;\n } else {\n high = mid - 1;\n }\n }\n if (y == -1) {\n return new Points(-1, -1);\n }\n return new Points(x, y);\n }",
"public com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public List <Press> getArticlesByOffset(int offset){\n if(offset == 0){\n return getSession().createQuery(\"from Press WHERE timestamp between CURDATE() and CURDATE()+1\").list();\n } else {\n return getSession().createQuery(\"from Press WHERE timestamp between CURDATE()-\" + offset + \" and CURDATE()\").list();\n }\n }",
"public List<com.wuda.foundation.jooq.code.generation.user.tables.pojos.UserEmail> fetchRangeOfUsedFor(UByte lowerInclusive, UByte upperInclusive) {\n return fetchRange(UserEmail.USER_EMAIL.USED_FOR, lowerInclusive, upperInclusive);\n }",
"public ArrayList<BackupImage> getAncestors(BackupInfo backupInfo, TableName table)\n throws IOException {\n ArrayList<BackupImage> ancestors = getAncestors(backupInfo);\n ArrayList<BackupImage> tableAncestors = new ArrayList<>();\n for (BackupImage image : ancestors) {\n if (image.hasTable(table)) {\n tableAncestors.add(image);\n if (image.getType() == BackupType.FULL) {\n break;\n }\n }\n }\n return tableAncestors;\n }",
"public ArrayList< Vertex > adjacentVertices( ) {\n return adjacentVertices;\n }",
"private List<Node> getAdjacentNodes(Node current, List<Node> closedSet, Node dest) {\n\t\tList<Node> adjacent = new ArrayList<Node>();\n\t\t\n\t\tfor (int i = -1; i <=1; i++) {\n\t\t\tinner:\n\t\t\tfor (int j = -1; j <=1; j++) {\n\t\t\t\tif (i == 0 && j == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint x = current.getX() + i;\n\t\t\t\tint y = current.getY() + j;\n\t\t\t\tif (!currentState.inBounds(x, y)\n\t\t\t\t\t\t|| board.getHasTree(x, y)\n\t\t\t\t\t\t|| peasantAt(x,y)\n\t\t\t\t\t\t|| board.getTowerProbability(x, y) == 1\n\t\t\t\t\t\t|| isTownHallAt(x, y, dest)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tNode node = new Node(x, y, getHitProbability(x, y), current);\n\t\t\t\tfor (Node visitedNode : closedSet) {\n\t\t\t\t\tif (node.equals(visitedNode)) {\n\t\t\t\t\t\tcontinue inner;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tadjacent.add(node);\n\t\t\t}\n\t\t}\n//\t\tSystem.out.println(\"AT \" + current);\n//\t\tSystem.out.println(\"NEIGHBORS:\");\n//\t\tfor (Node node : adjacent) {\n//\t\t\tSystem.out.println(\"\\t\" + node);\n//\t\t}\n\t\t\n\t\treturn adjacent;\n\t}",
"public List<com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter> fetchRangeOfFirstName(String lowerInclusive, String upperInclusive) {\n return fetchRange(Voter.VOTER.FIRST_NAME, lowerInclusive, upperInclusive);\n }",
"public RangesByEndpoint getAddressReplicas(TokenMetadata metadata)\n {\n RangesByEndpoint.Builder map = new RangesByEndpoint.Builder();\n\n for (Token token : metadata.sortedTokens())\n {\n Range<Token> range = metadata.getPrimaryRangeFor(token);\n for (Replica replica : calculateNaturalReplicas(token, metadata))\n {\n // LocalStrategy always returns (min, min] ranges for it's replicas, so we skip the check here\n Preconditions.checkState(range.equals(replica.range()) || this instanceof LocalStrategy);\n map.put(replica.endpoint(), replica);\n }\n }\n\n return map.build();\n }",
"public List<moneytree.persist.db.generated.tables.pojos.Income> fetchRangeOfId(UUID lowerInclusive, UUID upperInclusive) {\n return fetchRange(Income.INCOME.ID, lowerInclusive, upperInclusive);\n }",
"public List<Order> getOrdersByPrice(Integer low, Integer height) throws Exception;",
"@Test\n public void findReservationBetweenTest() {\n Collection<Reservation> expected = new HashSet<>();\n expected.add(reservation1);\n expected.add(reservation2);\n expected.add(reservation3);\n expected.add(reservation4);\n Mockito.when(reservationDao.findReservationBetween(Mockito.any(LocalDate.class), Mockito.any(LocalDate.class)))\n .thenReturn(expected);\n Collection<Reservation> result = reservationService.findReservationsBetween(LocalDate.now().minusDays(4),\n LocalDate.now().plusDays(15));\n Assert.assertEquals(result.size(), 4);\n Assert.assertTrue(result.contains(reservation1));\n Assert.assertTrue(result.contains(reservation2));\n Assert.assertTrue(result.contains(reservation3));\n Assert.assertTrue(result.contains(reservation4));\n }",
"public RegionLocations findForBeforeRow(byte[] row, int replicaId) {\n boolean isEmptyStopRow = isEmptyStopRow(row);\n Map.Entry<byte[], RegionLocations> entry =\n isEmptyStopRow ? cache.lastEntry() : cache.lowerEntry(row);\n if (entry == null) {\n return null;\n }\n RegionLocations locs = entry.getValue();\n if (locs == null) {\n return null;\n }\n HRegionLocation loc = locs.getRegionLocation(replicaId);\n if (loc == null) {\n return null;\n }\n if (\n isEmptyStopRow(loc.getRegion().getEndKey())\n || (!isEmptyStopRow && Bytes.compareTo(loc.getRegion().getEndKey(), row) >= 0)\n ) {\n if (LOG.isTraceEnabled()) {\n LOG.trace(\"Found {} in cache for {}, row='{}', locateType={}, replicaId={}\", loc, tableName,\n Bytes.toStringBinary(row), RegionLocateType.BEFORE, replicaId);\n }\n return locs;\n } else {\n return null;\n }\n }",
"@Override\n public ImmutableList<Id> topsortIdList() {\n return idDag.topsortIdList();\n }",
"public Hashtable<Integer, Hashtable<String, Obs>> remove_handovers(Hashtable<Integer, Hashtable<String, Obs>> obs,\n\t\t\tHashtable<Integer, ArrayList<Integer>> vor_neighbours) {\n\n\t\tHashtable<Integer, Hashtable<String, Obs>> tmp_obs = new Hashtable<>();\n\n\t\tfor (Map.Entry<Integer, Hashtable<String, Obs>> entrySet : obs.entrySet()) {\n\t\t\tInteger usr_key = entrySet.getKey();\n\t\t\tHashtable<String, Obs> obs_raw_data = entrySet.getValue();\n\t\t\tHashtable<String, Obs> tmp_obs_raw_data = new Hashtable<>();\n\t\t\tfor (Map.Entry<String, Obs> obs_raw_entrySet : obs_raw_data.entrySet()) {\n\n\t\t\t\tString day_key = obs_raw_entrySet.getKey();\n\t\t\t\tObs day_val = obs_raw_entrySet.getValue();\n\n\t\t\t\tString[] twrs = day_val.getSeq().split(CLM);\n\t\t\t\tString[] tstamps = day_val.getTimeStamp().split(CLM);\n\n\t\t\t\tString handled_twrs = twrs[0];\n\t\t\t\tString handled_tstamps = tstamps[0];\n\n\t\t\t\tfor (int i = 0; i < tstamps.length - 1; i++) {\n\t\t\t\t\tString tstamp = tstamps[i];\n\t\t\t\t\tString htstamp = tstamps[i + 1];\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Tue 19 May 2015 07:10:49 AM JST to be completed .......\n\t\t\t\t\t * <-- for a sequence of observations:\n\t\t\t\t\t * {{x0,t0},{x1,t1},{x2,t2},{x3,t3},...{xn,tn}}\n\t\t\t\t\t *\n\t\t\t\t\t * if(t1=t2) then handover(x2|x1) else if((x1 is neighbor to\n\t\t\t\t\t * x2 )&& (x1==x3)) then handover(x2) end if --!>\n\t\t\t\t\t */\n\t\t\t\t}\n\t\t\t\ttmp_obs_raw_data.put(day_key, new Obs(handled_twrs, handled_tstamps));\n\n\t\t\t}\n\t\t\ttmp_obs.put(usr_key, tmp_obs_raw_data);\n\n\t\t}\n\t\treturn tmp_obs;\n\t}",
"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 }",
"List<Coord> allActiveCells();",
"private static List<Element> getXMLLocations(Model model) {\n Set<Location> locations = new TreeSet<>(Comparators.objectsById());\n locations.addAll(model.getLocations(null));\n List<Element> result = new ArrayList<>();\n for (Location curLoc : locations) {\n Element locElement = new Element(\"location\");\n locElement.setAttribute(\"id\", String.valueOf(curLoc.getId()));\n locElement.setAttribute(\"name\", curLoc.getName());\n locElement.setAttribute(\"xPosition\",\n String.valueOf(curLoc.getPosition().getX()));\n locElement.setAttribute(\"yPosition\",\n String.valueOf(curLoc.getPosition().getY()));\n locElement.setAttribute(\"zPosition\",\n String.valueOf(curLoc.getPosition().getZ()));\n locElement.setAttribute(\"type\", curLoc.getType().getName());\n for (Location.Link curLink : curLoc.getAttachedLinks()) {\n Element linkElement = new Element(\"link\");\n linkElement.setAttribute(\"point\", curLink.getPoint().getName());\n for (String operation : curLink.getAllowedOperations()) {\n Element allowedOpElement = new Element(\"allowedOperation\");\n allowedOpElement.setAttribute(\"name\", operation);\n linkElement.addContent(allowedOpElement);\n }\n locElement.addContent(linkElement);\n }\n for (Map.Entry<String, String> curEntry\n : curLoc.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n locElement.addContent(propertyElement);\n }\n result.add(locElement);\n }\n return result;\n }"
]
| [
"0.5120966",
"0.49411535",
"0.4766296",
"0.46166503",
"0.4589731",
"0.4562653",
"0.45596686",
"0.45516348",
"0.44504187",
"0.44060364",
"0.43965572",
"0.43472493",
"0.43412268",
"0.43283048",
"0.43196872",
"0.42996398",
"0.42693603",
"0.42622638",
"0.42546186",
"0.4252749",
"0.42441058",
"0.42376995",
"0.42350712",
"0.4208741",
"0.42023072",
"0.42019737",
"0.41938794",
"0.41840118",
"0.41762638",
"0.41666374",
"0.41644484",
"0.41629443",
"0.41186422",
"0.4099388",
"0.40989378",
"0.40964267",
"0.40891728",
"0.408405",
"0.40803704",
"0.40778875",
"0.40736485",
"0.4065435",
"0.40641686",
"0.40524098",
"0.4051315",
"0.4037525",
"0.40300578",
"0.4028563",
"0.40231043",
"0.4007981",
"0.40062842",
"0.3996981",
"0.3995535",
"0.3994473",
"0.3993069",
"0.39866665",
"0.39864677",
"0.39844278",
"0.39807984",
"0.39784768",
"0.39740902",
"0.39499244",
"0.3946194",
"0.3943059",
"0.3938822",
"0.39337322",
"0.39330548",
"0.39279717",
"0.3922838",
"0.39211613",
"0.39206392",
"0.3912882",
"0.39102048",
"0.39072412",
"0.3905814",
"0.39038956",
"0.39033917",
"0.38682842",
"0.38674337",
"0.38666928",
"0.3866004",
"0.38635695",
"0.386292",
"0.38612026",
"0.38513163",
"0.38433212",
"0.38413194",
"0.38409388",
"0.38321298",
"0.38318062",
"0.38315487",
"0.38309416",
"0.3828745",
"0.38247147",
"0.38099653",
"0.38089967",
"0.38074002",
"0.3806211",
"0.38037124",
"0.37907118"
]
| 0.6348289 | 0 |
Removes all the hotels where uuid = &63; from the database. | public void removeByUuid(java.lang.String uuid)
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeByUuid(String uuid);",
"public void removeByUuid(String uuid);",
"public void removeByUuid(String uuid);",
"public void removeByUuid(java.lang.String uuid);",
"public static void worldLocsRemove(UUID uuid) {\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tst.executeUpdate(\"DELETE FROM worldlocs WHERE uuid='\" + uuid + \"';\");\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t}",
"public static void deathBanLocsRemove(UUID uuid) {\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tString query = \"DELETE FROM deathbanlocs WHERE uuid='\" + uuid + \"';\";\n\t\t\tst.executeUpdate(query);\n\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t}",
"@Override\n\tpublic void removeByUuid(String uuid) {\n\t\tfor (Paper paper : findByUuid(uuid, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(paper);\n\t\t}\n\t}",
"void unregister(String uuid);",
"void delete(String uuid);",
"@Override\n\tpublic void removeByUuid(String uuid) throws SystemException {\n\t\tfor (TvShow tvShow : findByUuid(uuid, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}",
"public static void removeByUuid(String uuid) {\n\t\tgetPersistence().removeByUuid(uuid);\n\t}",
"public static void removeByUuid(String uuid) {\n\t\tgetPersistence().removeByUuid(uuid);\n\t}",
"public static void removeByUuid(String uuid) {\n\t\tgetPersistence().removeByUuid(uuid);\n\t}",
"public static void removeByUuid(String uuid) {\n\t\tgetPersistence().removeByUuid(uuid);\n\t}",
"private static void removeHotelNotInZeusLists(Collection<HotelMapping> hotelMappings, int destinationId) {\n Set<String> supplierIdsInZeusList = getSuppliersInZeusList(hotelMappings);\n\n // retrieve all hotel lists from database\n List<HotelSupplierProduct> allHotelSupplierProducts =\n getHotelSupplierProducts(\"/home/jchen/aChenBox/Desktop/hotel-28628-from-db.csv\", \",\");\n// getAllHotelListForSupplierAndProducts(supplierIdsInZeusList, destinationId);\n\n // find the hotels that do not have in Zeus list\n List<HotelSupplierProduct> hotelSupplierProductsNotInZeusList =\n allHotelSupplierProducts.stream().filter(h -> isHotelNotInZeusList(h, hotelMappings))\n .collect(Collectors.toList());\n\n String hotelRemovedListString =\n hotelSupplierProductsNotInZeusList.stream()\n .map(HotelSupplierProduct::getHotelId).collect(Collectors.joining(\",\"));\n\n System.out.println(\"Remove hotel list: \" + hotelRemovedListString);\n }",
"public void removeHome(UUID uuid, String name){\r\n\t\t//Load Map (Update)\r\n\t\tloadMap();\r\n\r\n\t\t//Combovar of Homename & UUID of Player\r\n\t\tString uniqhome = uuid.toString() + name;\r\n\r\n\t\t//Remove HomePoint from Map\r\n\t\tmap.remove(uniqhome);\r\n\r\n\t\t//Save Map\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(homeFileLocation));\r\n\t\t\toos.writeObject(map);\r\n\t\t\toos.flush();\r\n\t\t\toos.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void removeByUuid(String uuid) {\r\n\t\tfor (Share share : findByUuid(uuid, QueryUtil.ALL_POS,\r\n\t\t\t\tQueryUtil.ALL_POS, null)) {\r\n\t\t\tremove(share);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Legacydb legacydb : findAll()) {\n\t\t\tremove(legacydb);\n\t\t}\n\t}",
"private void deleteAttacks(){\n while(!attacksToDelete.isEmpty()){\n attacks.remove(attacksToDelete.remove());\n }\n }",
"private void removeTempProperty(final UUID uuid){\n TraversalDescription tempTraversal = this.database.traversalDescription()\n .depthFirst()\n .uniqueness(Uniqueness.RELATIONSHIP_GLOBAL);\n String uuidString = \"flw-\"+uuid.toString();\n Transaction tx = database.beginTx();\n try {\n for(Relationship r : tempTraversal.traverse(this.nSource)\n .relationships()){\n if (r.hasProperty(\"weight\"))\n r.removeProperty(uuidString);\n }\n tx.success();\n } catch (Exception e) {\n System.err.println(\"MaximumFlow.removeTempProperty: \" + e);\n tx.failure();\n } finally {\n tx.close();\n }\n }",
"int deleteByPrimaryKey(String uuid);",
"public void removeByUuid_C(java.lang.String uuid, long companyId);",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Facility_Host facility_Host : findAll()) {\n\t\t\tremove(facility_Host);\n\t\t}\n\t}",
"public void removeByequip_id(long equip_id);",
"public static void RecipeTipsFirebaseDeleteAll() {\n\n databaseReference = FirebaseDatabase.getInstance().getReference(TABLE_RECIPE_TIPS);\n\n firebaseQuery = databaseReference.orderByChild(FIELD_RECIPE_TIPS_RECIPE).equalTo(sCurrentRecipeNumber);\n\n firebaseQuery.addValueEventListener(new ValueEventListener() {\n\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n\n if (dataSnapshot.exists()) {\n\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n\n snapshot.getRef().removeValue();\n\n }\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n new SupportHandlingDatabaseError(this.getClass().getSimpleName(), databaseError);\n\n }\n });\n }",
"void unpublish(List<String> uuids) throws GWTJahiaServiceException;",
"public void removeByUuid_C(String uuid, long companyId);",
"public void removeByUuid_C(String uuid, long companyId);",
"public void removeByUuid_C(String uuid, long companyId);",
"public static void delete(List<String> uuids) throws SQLException {\n\t\tfinal String methodName = \"delete(List<String>)\";\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = Common.getConnection();\n\t\t\tCommon.beginTransaction(con);\n\t\t\tfor (String uuid : uuids) {\n\t\t\t\tdelete(uuid, con);\n\t\t\t}\n\t\t\tCommon.endTransaction(con);\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(methodName, \"Caught SQLException e: \" + e.getMessage(), e);\n\t\t\tCommon.doRollback(con);\n\t\t\tthrow e;\n\t\t} finally {\n\t\t\tCommon.safeClose(con);\n\t\t}\n\t}",
"public void deleteHistory() {\n weatherRepo.deleteAll();\n }",
"void purge() {\n\t\t\t\t\n\t\tlong now = System.currentTimeMillis();\n\t\t\n\t\t// when sending out I_BEACON we do change the UUID based on temp exposure keys\n\t\t// and thus need to purge these occasionally....\n\t\tif ( now - getPurgedObsoleteTempExpKeysTS() > getPurgeTempExpKeysInterval()) {\n\t\t\tpurgeObsoleteTempExpKeys( now);\n\t\t}\n\t\t\n\t\t// when in I_BEACON MODE, we don't store any IDs...\n\t\tif ( this.getAppType() == Beacon.AppType.I_BEACON) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif ( now - getPurgedEphemeralIDsTS() > getPurgeEphemeralIDsInterval()) {\n\t\t\tpurgeEphemeralIDs( now);\t\t\t\n\t\t}\n\t\t\n\t\tif ( now - getPurgedObsoleteExposureIDsTS() > getPurgeExpIDsInterval()) {\n\t\t\tpurgeObsoleteExposureIDs( now);\n\t\t}\n\t}",
"@Override\n public void removeAll() throws SystemException {\n for (EntityDealer entityDealer : findAll()) {\n remove(entityDealer);\n }\n }",
"@Override\r\n\tpublic boolean deleteHotelAreas(String hotelAreas) {\n\t\t\r\n\t\tString areaId[] = hotelAreas.split(\",\");\r\n\t\t//System.out.println(\" hotelid:::\" + hotelId.length);\r\n\t\tfor(int i = 0 ; i < areaId.length; i ++)\r\n\t\t{\r\n\t\t\tHotelArea hi = new HotelArea();\r\n\t\t\thi.setId(Integer.parseInt(areaId[i]));\r\n\t\t\t//System.out.println(\" hotelid+++\" + Integer.parseInt(hotelId[i]));\r\n\t\t\thotelAreaDao.delete(hi);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Candidate candidate : findAll()) {\n\t\t\tremove(candidate);\n\t\t}\n\t}",
"@Override\n public void deleteHotel(String hotelId) {\n Optional<Hotel> optionalHotel = hotelRepository.findByHotelId(hotelId);\n Hotel hotel = optionalHotel.orElseThrow(() -> {\n logger.error(\"Hotel information not found | hotelId:{}\", hotelId);\n return new BookingServiceException(\"Hotel information not found | hotelId:\" + hotelId);\n });\n if (hotel.isDeleted()) {\n logger.info(\"Hotel is inactive | hotelId:{}\", hotelId);\n throw new BookingServiceException(\"Hotel is inactive | hotelId:\" + hotelId);\n }\n hotel.setDeleted(true);\n Date lastModifiedDate = new Date();\n hotel.setLastModifiedDate(lastModifiedDate);\n hotelRepository.save(hotel);\n\n List<Room> rooms = hotel.getRooms();\n if (rooms != null && rooms.size() > 0) {\n List<Room> roomList = rooms.stream()\n .filter(room -> !room.isDeleted())\n .peek(room -> {\n room.setDeleted(true);\n room.setLastModifiedDate(lastModifiedDate);\n })\n .collect(Collectors.toList());\n roomRepository.saveAll(roomList);\n }\n logger.info(\"Deleted hotel information successfully | hotelId:{}\", hotelId);\n }",
"public void removePowerUp(PowerUp p) {\n for (Location loc : p.getLocations()) {\n Location replacement = new Location(loc.getX(), loc.getY());\n gridCache.add(replacement);\n }\n\n powerUps.remove(p);\n render();\n}",
"public HashMap<Integer, Hotel> deleteHotel(Hotel hotel) {\n hotels.remove(hotel.getId());\n RoomsController roomsController = new RoomsController();\n roomsController.deleteRoomByHotel(hotel);\n roomsController.flush();\n return hotels;\n }",
"private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }",
"public void resetUUID() {\n sp.edit().remove(UUID_SP_KEY).commit();\n }",
"@Override\n\tpublic void removeByUuid_C(String uuid, long companyId)\n\t\tthrows SystemException {\n\t\tfor (TvShow tvShow : findByUuid_C(uuid, companyId, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}",
"public void removeFromHashes() {\n getBrowser().getDrbdResHash().remove(getName());\n getBrowser().putDrbdResHash();\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n removeDrbdVolumeFromHashes(dvi);\n }\n }",
"public void removeByUuid(java.lang.String uuid)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public void removeByUuid(java.lang.String uuid)\n throws com.liferay.portal.kernel.exception.SystemException;",
"@Override\n public void cleanup(GL2 gl)\n {\n for(int i = 0; i < 6; i++)\n {\n Integer t_id = (Integer)textureIdMap[i].remove(gl);\n if(t_id != null)\n {\n int tex_id_tmp[] = { t_id.intValue() };\n gl.glDeleteTextures(1, tex_id_tmp, 0);\n }\n }\n }",
"public void deleteAllRepeaters() {\n new DeleteAllRepeatersAsyncTask(repeaterDao).execute();\n }",
"public void removeUnavailableRooms(){\n\t}",
"void clearUnactivatedAccounts(int unactivatedDays);",
"void delete(UUID id);",
"void delete(UUID id);",
"void delete(UUID id);",
"void delete(UUID id);",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (DmHistoryGoods dmHistoryGoods : findAll()) {\n\t\t\tremove(dmHistoryGoods);\n\t\t}\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (LocalRichInfo localRichInfo : findAll()) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (TvShow tvShow : findAll()) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}",
"private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }",
"@Override\n\tpublic void removeByUuid_C(String uuid, long companyId) {\n\t\tfor (Paper paper : findByUuid_C(uuid, companyId, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(paper);\n\t\t}\n\t}",
"void eliminarPedido(UUID idPedido);",
"public void clearRegistry() {\r\n implementedDatabases.clear();\r\n }",
"public void clearSeeds() {\n\t\tseedList = new ArrayList<String>();\n\t}",
"public static void delete(String uuid) {\n\t\tfinal String methodName = \"delete(String)\";\n\t\tConnection con = null;\n\t\ttry {\n\t\t\tcon = Common.getConnection();\n\t\t\tCommon.beginTransaction(con);\n\t\t\tdelete(uuid, con);\n\t\t\tCommon.endTransaction(con);\n\t\t} catch (SQLException e) {\n\t\t\tlog.error(methodName, \"Caught SQLException: \" + e.getMessage(), e);\n\t\t\tCommon.doRollback(con);\n\t\t} finally {\n\t\t\tCommon.safeClose(con);\n\t\t}\n\t}",
"@Override\n\tpublic void clearDBUsers() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"users\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t}",
"@Override\n protected void onDestroy() {\n db.collection(\"users\").document(userId).update(\"room\", FieldValue.delete());\n\n super.onDestroy();\n }",
"public void DeleteAllActivityUser(iconnectionpool connectionPool, String id){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement(); \n String sql=\"delete from similarplaces where id_user=\"+id;\n stmt.executeUpdate(sql); \n }catch(Exception e){}\n }",
"public void removerAllPontosTuristicosFavoritosBD() {\n this.db.delete(TABLE_NAME, null, null);\n }",
"public void removeAllData() {\n dbHelper.removeAllData(db);\n }",
"public void removeAllGuests(ArrayList <Invitato> Guests){\n AssegnamentiTavolo.removeAll(Guests);\n num_posti = num_posti + Guests.size();\n openAssignment();\n\n }",
"@Override\n public void removeFromDb() {\n }",
"public abstract BossBar removePlayer(UUID uuid);",
"@Override\n\tpublic void removeAll() {\n\t\tfor (TestUnit testUnit : findAll()) {\n\t\t\tremove(testUnit);\n\t\t}\n\t}",
"public void removeGuestPlayerFromDB(String username) throws SQLException {\n PreparedStatement stm = T3DB.getConnection().prepareStatement(\n \"delete from GuestPlayer where displayname=?\");\n stm.setString(1, username);\n stm.executeUpdate();\n }",
"public void removeFromAll(String path) {\n for (String device : this.execAdbDevices())\n this.remove(device, path);\n }",
"private void purgeStaleClients() {\n\t\tsynchronized (clients) {\n\t\t\tclients = clients.values().stream()\n\t\t\t .filter(od -> this.server.getClients().stream().anyMatch(c -> c.getName().equals(od.deviceId))\n\t\t\t || !od.purgeable())\n\t\t\t .collect(Collectors.toMap(od -> od.name, od -> od));\n\t\t}\n\t}",
"public void removeMember(String uuid) {\n this.members.remove(uuid);\n }",
"public void purgeRelations() {\n this.purged = true;\n for (AS tCust : this.customers) {\n tCust.providers.remove(this);\n tCust.purgedNeighbors.add(this.asn);\n }\n for (AS tProv : this.providers) {\n tProv.customers.remove(this);\n tProv.purgedNeighbors.add(this.asn);\n }\n for (AS tPeer : this.peers) {\n tPeer.peers.remove(this);\n tPeer.purgedNeighbors.add(this.asn);\n }\n }",
"void removePC(UUID uID);",
"private void removeEnchantRecipe() {\n Iterator<Recipe> it = Bukkit.recipeIterator();\n\n while (it.hasNext()) {\n Recipe res = it.next();\n\n if (res.getResult().getType() == ENCHANT_TABLE.getType()) {\n it.remove();\n }\n }\n }",
"public void deleteallWishlist() {\n db = helper.getWritableDatabase();\n db.execSQL(\"delete from \" + DatabaseConstant.TABLE_NAME_WISHLIST);\n db.close();\n }",
"@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}",
"IDeviceState deleteDeviceState(UUID id) throws SiteWhereException;",
"@Override\r\n\tpublic void removeByUuid_C(String uuid, long companyId) {\r\n\t\tfor (Share share : findByUuid_C(uuid, companyId, QueryUtil.ALL_POS,\r\n\t\t\t\tQueryUtil.ALL_POS, null)) {\r\n\t\t\tremove(share);\r\n\t\t}\r\n\t}",
"public void clearNeighborhoods()\n\t{\n\t\tfor (int i=0; i<numberOfNeighborhoods; i++)\n\t\t{\n\t\t\t(listOfNeighborhoods.get(i)).clear();\n\t\t}\n\t}",
"public void unRegAll(){\n \t\t\n \t\tfor(ShopItem shopItem : itemList){\n \t\t\t//TODO: process more then one item at the same time.\n \t\t\t/*\n \t\t\tint position = shopItem.getShopPosition().getSlot();\n \t\t\tif(processedPositions.contains(position))\n \t\t\t\tcontinue;\n \t\t\tprocessedPositions.add(position);\n \t\t\tint amount = getItemAmount(position);\n \t\t\t*/\n \t\t\tint amount = 1;\n \t\t\tgetOwner().getClient().sendPacket(Type.U_SHOP, \"unreg\", 1, shopItem.getShopPosition().getSlot(), amount);\n \t\t\t\n \t\t\t//int[] freePosition = getOwner().getInventory().getFreeSlots(shopItem.getItem(), -1);\n \t\t\t//InventoryPosition inventoryPosition = new InventoryPosition(freePosition[1],freePosition[2],freePosition[0]);\n \t\t\t//InventoryItem inventoryItem = new InventoryItem(shopItem.getItem(),\tinventoryPosition);\n \t\t\t//getOwner().getInventory().addInventoryItem(inventoryItem);\n \t\t\tInventoryItem inventoryItem = getOwner().getInventory().storeItem(shopItem.getItem(), -1);\n \t\t\tgetOwner().getClient().sendPacket(Type.INVEN, inventoryItem, getOwner().getClient().getVersion());\n \t\t}\n \t\titemList.clear();\n \t}",
"public void removeVehicles() {\r\n numberOfVehicles = 0;\r\n for (Lane lane : lanes) {\r\n lane.removeVehicles();\r\n }\r\n }",
"public void removeByUuid_C(java.lang.String uuid, long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public void removeByUuid_C(java.lang.String uuid, long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;",
"void clearInstances();",
"@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}",
"public void removeGuest(Guest guest) {\n guestList.remove(guest);\n storeData();\n }",
"public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }",
"@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }",
"private void deleteOldData() {\n Date today = SunshineDateUtils.getNormalizedUtcDateForToday();\n weatherDao.deleteOldWeather(today);\n }",
"@AfterEach\n\tvoid clearDatabase() {\n\t\t//Clear the table\n\t\taccountRepository.deleteAll();\n\t}",
"public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }",
"@After\n public void cleanDatabase() {\n\n databaseInstance.setTaxpayersArrayList(new ArrayList<Taxpayer>());\n }",
"public void flush() {\n try {\n dhi.set(hotels);\n } catch (Exception e) {\n e.getMessage();\n }\n }",
"public void clearLearnedTable() {\n\t\tswitchTenantVirtualNetworkMap.clear();\n\t}",
"public void clearProteges(){\n ActiveAndroid.execSQL(\"delete from proteges\");\n }"
]
| [
"0.6291677",
"0.6291677",
"0.6291677",
"0.62129444",
"0.61928993",
"0.6159114",
"0.5720603",
"0.5700471",
"0.56456774",
"0.56376475",
"0.54002804",
"0.54002804",
"0.54002804",
"0.54002804",
"0.53519773",
"0.5234642",
"0.52312696",
"0.52222836",
"0.521875",
"0.5192571",
"0.5173807",
"0.5128802",
"0.51273686",
"0.51186293",
"0.5115302",
"0.51065177",
"0.5106448",
"0.5106448",
"0.5106448",
"0.51041675",
"0.50832605",
"0.5075746",
"0.50686044",
"0.5059105",
"0.50550985",
"0.5018219",
"0.5010775",
"0.49969053",
"0.49948323",
"0.499156",
"0.4988339",
"0.4980937",
"0.49805278",
"0.49805278",
"0.49803963",
"0.4971152",
"0.49587807",
"0.4903022",
"0.49012107",
"0.49012107",
"0.49012107",
"0.49012107",
"0.48801187",
"0.4875621",
"0.4870027",
"0.4852772",
"0.48154432",
"0.4814745",
"0.4813149",
"0.48003924",
"0.4798396",
"0.47927514",
"0.47794622",
"0.47754323",
"0.4762212",
"0.47501773",
"0.47495988",
"0.47321394",
"0.4713745",
"0.47036391",
"0.47008902",
"0.4698337",
"0.4689788",
"0.46796006",
"0.46784052",
"0.46744764",
"0.46693277",
"0.46693096",
"0.46687725",
"0.46646962",
"0.46532485",
"0.46463645",
"0.46441126",
"0.4643995",
"0.46385705",
"0.46340793",
"0.46340793",
"0.4628357",
"0.4628087",
"0.4625776",
"0.46206793",
"0.46175689",
"0.4603101",
"0.459935",
"0.45980674",
"0.4592146",
"0.45783198",
"0.45762557",
"0.45748216"
]
| 0.4947545 | 48 |
Returns the number of hotels where uuid = &63;. | public int countByUuid(java.lang.String uuid)
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int countByUuid(String uuid);",
"public int countByUuid(String uuid);",
"public int countByUuid(String uuid);",
"public int countByUuid(java.lang.String uuid);",
"@Override\r\n\tpublic int countByUuid(String uuid) {\r\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID;\r\n\r\n\t\tObject[] finderArgs = new Object[] { uuid };\r\n\r\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tStringBundler query = new StringBundler(2);\r\n\r\n\t\t\tquery.append(_SQL_COUNT_SHARE_WHERE);\r\n\r\n\t\t\tboolean bindUuid = false;\r\n\r\n\t\t\tif (uuid == null) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_UUID_1);\r\n\t\t\t}\r\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_UUID_3);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tbindUuid = true;\r\n\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_UUID_2);\r\n\t\t\t}\r\n\r\n\t\t\tString sql = query.toString();\r\n\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(sql);\r\n\r\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\r\n\r\n\t\t\t\tif (bindUuid) {\r\n\t\t\t\t\tqPos.add(uuid);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}",
"@Override\n\tpublic int countByUuid(String uuid) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID;\n\n\t\tObject[] finderArgs = new Object[] { uuid };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_PAPER_WHERE);\n\n\t\t\tboolean bindUuid = false;\n\n\t\t\tif (uuid == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_UUID_1);\n\t\t\t}\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_UUID_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindUuid = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_UUID_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindUuid) {\n\t\t\t\t\tqPos.add(uuid);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"public static int countByUuid(String uuid) {\n\t\treturn getPersistence().countByUuid(uuid);\n\t}",
"public static int countByUuid(String uuid) {\n\t\treturn getPersistence().countByUuid(uuid);\n\t}",
"public static int countByUuid(String uuid) {\n\t\treturn getPersistence().countByUuid(uuid);\n\t}",
"public static int countByUuid(String uuid) {\n\t\treturn getPersistence().countByUuid(uuid);\n\t}",
"@Override\n\tpublic int countByUuid(String uuid) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID;\n\n\t\tObject[] finderArgs = new Object[] { uuid };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_TVSHOW_WHERE);\n\n\t\t\tboolean bindUuid = false;\n\n\t\t\tif (uuid == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_UUID_1);\n\t\t\t}\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_UUID_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindUuid = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_UUID_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindUuid) {\n\t\t\t\t\tqPos.add(uuid);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"public int countByUuid(java.lang.String uuid)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public int countByUuid(java.lang.String uuid)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public int numberOfHotels() {\r\n \tint anzahlHotel=hotelDAO.getHotelList().size();\r\n \treturn anzahlHotel;\r\n }",
"int getDeleteUserMonsterUuidsCount();",
"public static int countByUuid(java.lang.String uuid)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().countByUuid(uuid);\n }",
"public int getActivePortalCount(UUID uuid) {\n\n if (!getConfig().getBoolean(\"metadata.track-active-portal-counts\")) {\n return 0;\n }\n ConfigurationSection ymlPlayerActivePortalCounts =\n metadataYaml.getConfigurationSection(\"player-active-portal-counts\");\n\n if (ymlPlayerActivePortalCounts == null) {\n metadataYaml.createSection(\"player-active-portal-counts\");\n return 0;\n }\n String key = uuid.toString();\n if (ymlPlayerActivePortalCounts.contains(key)) {\n return ymlPlayerActivePortalCounts.getInt(key);\n }\n return 0;\n }",
"public int countByUUID_G(String uuid, long groupId);",
"public int countByUUID_G(String uuid, long groupId);",
"public int countByUUID_G(java.lang.String uuid, long groupId);",
"@Test\n public void uuidCountTest() {\n // TODO: test uuidCount\n }",
"public int countByUuid_C(java.lang.String uuid, long companyId);",
"int getUniqueNumbersCount();",
"public int countByUuid_C(java.lang.String uuid, long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public int countByUuid_C(java.lang.String uuid, long companyId)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public int countByUuid_C(String uuid, long companyId);",
"public int countByUuid_C(String uuid, long companyId);",
"public int countByUuid_C(String uuid, long companyId);",
"int getNumberOfGuests();",
"protected short getCount() \r\n {\r\n // We could move this to the individual implementing classes\r\n // so they have their own count\r\n synchronized(AbstractUUIDGenerator.class) \r\n {\r\n if (counter < 0)\r\n {\r\n counter = 0;\r\n }\r\n return counter++;\r\n }\r\n }",
"public int countByUUID_G(java.lang.String uuid, long groupId)\n throws com.liferay.portal.kernel.exception.SystemException;",
"public int countByUUID_G(java.lang.String uuid, long groupId)\n throws com.liferay.portal.kernel.exception.SystemException;",
"@Override\n\tpublic int countByUuid_C(String uuid, long companyId) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C;\n\n\t\tObject[] finderArgs = new Object[] { uuid, companyId };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_PAPER_WHERE);\n\n\t\t\tboolean bindUuid = false;\n\n\t\t\tif (uuid == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_C_UUID_1);\n\t\t\t}\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_C_UUID_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindUuid = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_C_UUID_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_UUID_C_COMPANYID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindUuid) {\n\t\t\t\t\tqPos.add(uuid);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(companyId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Override\r\n\tpublic int countByUuid_C(String uuid, long companyId) {\r\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C;\r\n\r\n\t\tObject[] finderArgs = new Object[] { uuid, companyId };\r\n\r\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tStringBundler query = new StringBundler(3);\r\n\r\n\t\t\tquery.append(_SQL_COUNT_SHARE_WHERE);\r\n\r\n\t\t\tboolean bindUuid = false;\r\n\r\n\t\t\tif (uuid == null) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_C_UUID_1);\r\n\t\t\t}\r\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_C_UUID_3);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tbindUuid = true;\r\n\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_C_UUID_2);\r\n\t\t\t}\r\n\r\n\t\t\tquery.append(_FINDER_COLUMN_UUID_C_COMPANYID_2);\r\n\r\n\t\t\tString sql = query.toString();\r\n\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(sql);\r\n\r\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\r\n\r\n\t\t\t\tif (bindUuid) {\r\n\t\t\t\t\tqPos.add(uuid);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tqPos.add(companyId);\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}",
"public static int countByUuid_C(String uuid, long companyId) {\n\t\treturn getPersistence().countByUuid_C(uuid, companyId);\n\t}",
"public static int countByUuid_C(String uuid, long companyId) {\n\t\treturn getPersistence().countByUuid_C(uuid, companyId);\n\t}",
"public static int countByUuid_C(String uuid, long companyId) {\n\t\treturn getPersistence().countByUuid_C(uuid, companyId);\n\t}",
"public int getWallItemsCount(String userUuid);",
"int getNumberOfArgumentsByUser(UUID id);",
"public static int countByUUID_G(String uuid, long groupId) {\n\t\treturn getPersistence().countByUUID_G(uuid, groupId);\n\t}",
"public static int countByUUID_G(String uuid, long groupId) {\n\t\treturn getPersistence().countByUUID_G(uuid, groupId);\n\t}",
"public static int countByUUID_G(String uuid, long groupId) {\n\t\treturn getPersistence().countByUUID_G(uuid, groupId);\n\t}",
"@Override\n\tpublic int countByUUID_G(String uuid, long groupId) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_G;\n\n\t\tObject[] finderArgs = new Object[] { uuid, groupId };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_PAPER_WHERE);\n\n\t\t\tboolean bindUuid = false;\n\n\t\t\tif (uuid == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_1);\n\t\t\t}\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindUuid = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_UUID_G_GROUPID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindUuid) {\n\t\t\t\t\tqPos.add(uuid);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"@Override\n\tpublic int countByUuid_C(String uuid, long companyId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_C;\n\n\t\tObject[] finderArgs = new Object[] { uuid, companyId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_TVSHOW_WHERE);\n\n\t\t\tboolean bindUuid = false;\n\n\t\t\tif (uuid == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_C_UUID_1);\n\t\t\t}\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_C_UUID_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindUuid = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_C_UUID_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_UUID_C_COMPANYID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindUuid) {\n\t\t\t\t\tqPos.add(uuid);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(companyId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"public static int countByUuid_C(java.lang.String uuid, long companyId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().countByUuid_C(uuid, companyId);\n }",
"private int getFromSellableInventoryService() {\n Map<String, String> pathVars = Maps.newHashMap();\n pathVars.put(\"location\", LOCATION);\n pathVars.put(\"sku\", SKU);\n try {\n InventoryDto inventory = restTemplate.getForObject(\n \"http://localhost:9093/inventory/locations/{location}/skus/{sku}\", InventoryDto.class, pathVars);\n\n return inventory.getCount();\n } catch (RestClientException e) {\n return 0;\n }\n }",
"@Override\n\tpublic int countByUUID_G(String uuid, long groupId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_G;\n\n\t\tObject[] finderArgs = new Object[] { uuid, groupId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_TVSHOW_WHERE);\n\n\t\t\tboolean bindUuid = false;\n\n\t\t\tif (uuid == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_1);\n\t\t\t}\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindUuid = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_UUID_G_GROUPID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindUuid) {\n\t\t\t\t\tqPos.add(uuid);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(groupId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"int getReservePokemonCount();",
"public int getNumberShips();",
"int getListSnIdCount();",
"@Override\r\n\tpublic int countByUUID_G(String uuid, long groupId) {\r\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_UUID_G;\r\n\r\n\t\tObject[] finderArgs = new Object[] { uuid, groupId };\r\n\r\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\r\n\r\n\t\tif (count == null) {\r\n\t\t\tStringBundler query = new StringBundler(3);\r\n\r\n\t\t\tquery.append(_SQL_COUNT_SHARE_WHERE);\r\n\r\n\t\t\tboolean bindUuid = false;\r\n\r\n\t\t\tif (uuid == null) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_1);\r\n\t\t\t}\r\n\t\t\telse if (uuid.equals(StringPool.BLANK)) {\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_3);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tbindUuid = true;\r\n\r\n\t\t\t\tquery.append(_FINDER_COLUMN_UUID_G_UUID_2);\r\n\t\t\t}\r\n\r\n\t\t\tquery.append(_FINDER_COLUMN_UUID_G_GROUPID_2);\r\n\r\n\t\t\tString sql = query.toString();\r\n\r\n\t\t\tSession session = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tsession = openSession();\r\n\r\n\t\t\t\tQuery q = session.createQuery(sql);\r\n\r\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\r\n\r\n\t\t\t\tif (bindUuid) {\r\n\t\t\t\t\tqPos.add(uuid);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tqPos.add(groupId);\r\n\r\n\t\t\t\tcount = (Long)q.uniqueResult();\r\n\r\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\r\n\r\n\t\t\t\tthrow processException(e);\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcloseSession(session);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn count.intValue();\r\n\t}",
"static int countingValleys(int n, String s) {\n int count = 0;\n int altitude = 0;\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == 'U' && altitude == -1) {\n count++;\n }\n altitude += s.charAt(i) == 'U' ? 1 : -1;\n }\n return count;\n }",
"public static int countByUUID_G(java.lang.String uuid, long groupId)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().countByUUID_G(uuid, groupId);\n }",
"int getSnInfoCount();",
"int getSnInfoCount();",
"int getSnInfoCount();",
"public Integer findNumOfUsers(String username);",
"int getReplicaCount(Type type);",
"int getWifisCount();",
"short getNumberOfCardsInArgument(UUID argumentId);",
"public static int deathBanGetPoints(UUID uuid) {\n\n\t\tint points = -1;\n\n\t\ttry {\n\n\t\t\tStatement st = conn.createStatement();\n\n\t\t\tString query = \"SELECT * FROM deathbandata WHERE uuid ='\" + uuid + \"';\";\n\t\t\tResultSet rs = st.executeQuery(query);\n\n\t\t\twhile ( rs.next() ) {\n\t\t\t\tpoints = rs.getInt(\"points\");\n\t\t\t}\n\n\t\t\trs.close();\n\t\t\tst.close();\n\n\t\t} catch (Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t\treturn points;\n\n\t}",
"int findAllCount() ;",
"int getPurchasableOffersCount();",
"int numSeatsAvailable();",
"int getHotelImageURLsCount();",
"int countByExample(SrHotelRoomInfoExample example);",
"public Integer getAllShelfCount(String filter, String username);",
"private int getNbAccountForHost(String host)\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n ArrayList<AccountID> registeredAccounts \n = factory.getRegisteredAccounts();\n int total = 0;\n\n for (int i = 0; i < registeredAccounts.size(); i++)\n {\n AccountID accountID = registeredAccounts.get(i);\n\n // The host is always stored at the start\n if (accountID.getUserID().startsWith(host.toLowerCase()))\n {\n total++;\n }\n }\n return total;\n }",
"public int getDeleteUserMonsterUuidsCount() {\n return deleteUserMonsterUuids_.size();\n }",
"public int countByequip_id(long equip_id);",
"int getPlayerVersion(UUID uuid);",
"Integer getPortMappingCount() throws NotDiscoverUpnpGatewayException, UpnpException;",
"@DISPID(11) //= 0xb. The runtime will prefer the VTID if present\r\n @VTID(18)\r\n int count();",
"public static int numNickels(double money) {\n // REPLACE THIS WITH YOUR CODE\n return 0;\n }",
"long getRecipesCount();",
"private int getNumberOfAccounts()\n {\n ProtocolProviderFactory factory =\n DictAccRegWizzActivator.getDictProtocolProviderFactory();\n\n return factory.getRegisteredAccounts().size();\n }",
"public static int registeredSize() {\n\t\tInteger count = new Integer(0);\n\t\tObject object = cache.get(FQN_COUNT, LOGGED_COUNT);\n\t\tif (object != null) {\n\t\t\tcount = (Integer) object;\n\t\t}\n\n\t\treturn (count == null ? 0 : count.intValue());\n\t}",
"public int getDeleteUserMonsterUuidsCount() {\n return deleteUserMonsterUuids_.size();\n }",
"int getNumberOfTextureCoordinates();",
"boolean hasUUID();",
"public int countUniqueIPs(){\n ArrayList<String> uniqueIps = new ArrayList<String>();\n for(LogEntry le : records){\n String iprAddr = le.getIpAddress();\n if(!uniqueIps.contains(iprAddr)){\n uniqueIps.add(iprAddr);\n } \n } \n return uniqueIps.size();\n }",
"@Query\n\tpublic int countFreeUin();",
"int getNumberOfStonesOnBoard();",
"int getPeersCount();",
"int getGuestAcceleratorsCount();",
"int getMonstersCount();",
"int getMonstersCount();",
"int getLocationsCount();",
"public int getPinCount();",
"public int weaponCount(){\n\t\treturn weaponList.size();\n\t}",
"boolean hasUuid();",
"boolean hasUuid();",
"int getFaintedPokemonCount();",
"private long getTotalNumberOfRooms(Hotel hotel) {\n return hotel.getRooms().stream()\n .filter(room -> !room.isDeleted())\n .collect(Collectors.summarizingInt(Room::getNumberOfRooms))\n .getSum();\n }",
"int getDataScansCount();",
"int getIdsCount();",
"public Integer getCount(String tag) {\n\t\treturn tagList.get(tag);\n\t}",
"int getNumYTiles(Long id) throws RemoteException;",
"@Override\r\n\tpublic int getGeunTaeCnt(HashMap<String, String> params) {\n\t\treturn sqlsession.selectOne(\"GeuntaeMgnt.getGeunTaeCnt\",params);\r\n\t}"
]
| [
"0.7359687",
"0.7359687",
"0.7359687",
"0.729551",
"0.66732115",
"0.65503025",
"0.65435505",
"0.65435505",
"0.65435505",
"0.65435505",
"0.65299785",
"0.6498628",
"0.6498628",
"0.61116356",
"0.59621227",
"0.5955101",
"0.5867925",
"0.5857139",
"0.5857139",
"0.5842075",
"0.58337885",
"0.57634014",
"0.57054675",
"0.5661613",
"0.5661613",
"0.5627397",
"0.5627397",
"0.5627397",
"0.56159246",
"0.56004435",
"0.55922824",
"0.55922824",
"0.5566149",
"0.5562898",
"0.5549869",
"0.5549869",
"0.5549869",
"0.55395645",
"0.5538189",
"0.55228287",
"0.55228287",
"0.55228287",
"0.5480612",
"0.54693395",
"0.5455518",
"0.5405176",
"0.5392191",
"0.5358043",
"0.5324356",
"0.5321191",
"0.5313548",
"0.5301906",
"0.5298032",
"0.5293559",
"0.5293559",
"0.5293559",
"0.52728194",
"0.5263039",
"0.5259009",
"0.5252374",
"0.5242391",
"0.52076834",
"0.5199931",
"0.5187043",
"0.51843417",
"0.5168212",
"0.51681095",
"0.51669383",
"0.51534826",
"0.5150302",
"0.51494646",
"0.5131419",
"0.51149386",
"0.51076293",
"0.50919724",
"0.5087282",
"0.5083245",
"0.5075178",
"0.50644225",
"0.50576615",
"0.5052614",
"0.5051321",
"0.50334805",
"0.50329995",
"0.5031961",
"0.5005978",
"0.5005978",
"0.49954388",
"0.49819326",
"0.49730545",
"0.49690393",
"0.49690393",
"0.4944345",
"0.493973",
"0.49391052",
"0.49365842",
"0.49289763",
"0.49243593",
"0.49236158"
]
| 0.6461074 | 14 |
Returns all the hotels where name = &63;. | public java.util.List<com.Hotel.model.Hotel> findByname(
java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Hotel> newHotelList = new ArrayList<>();\r\n\t\tfor(Hotel Hotel : showHotelList())\r\n\t\t{\r\n\t\t\tif(Hotel.getHotelName().equals(Name))\r\n\t\t\t\tnewHotelList.add(Hotel);\r\n\t\t}\r\n\t\treturn newHotelList;\r\n\t}",
"public ArrayList<Guest> searchGuestList(String name) {\n \tString checkName = name.toUpperCase();\n \tArrayList<Guest> result = new ArrayList<>();\n \tfor(Guest guest : guestList){\n if(guest.getName().toUpperCase() != null && guest.getName().toUpperCase().contains(checkName)) {\n \tresult.add(guest);\n }\n }\n \treturn result;\n }",
"public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }",
"@Override\r\n\tpublic List<Hotel> getAllHotels() {\n\t\treturn showHotelList();\r\n\t}",
"@Override\n\tpublic List<Hotel> getHotelsInCity(String cityName, Session session) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tList<Hotel> hotelList = new ArrayList<Hotel>();\n\t\tCriteria cr = session.createCriteria(Hotel.class).add(Restrictions.eq(\"city\", cityName));\n\t\thotelList = cr.list();\n\t\treturn hotelList;\n\t}",
"public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB }, null, null, null, null, null, null);\r\n }",
"public List<String> getHotels() {\n\t\t// FILL IN CODE\n\t\tlock.lockRead();\n\t\ttry{\n\t\t\tList<String> hotelIds = new ArrayList<>();\n\t\t\tif(hotelIds != null){\n\t\t\t\thotelIds = new ArrayList<String>(hotelMap.keySet());\n\t\t\t}\n\t\t\treturn hotelIds;\n\t\t}\n\t\tfinally{\n\t\t\tlock.unlockRead();\n\t\t}\n\t}",
"public List<Map<String, String>> searchByName(String name) throws IOException {\n\t\tString queryString = \n\t\t\t\"PREFIX pkm: <http://pokedex.dataincubator.org/pkm/> \" +\n\t\t\t\"SELECT \" +\n\t\t\t\" ?number\" +\n\t\t\t\" ?name\" +\n\t\t\t\" ?numberAndName\" + \n\t\t\t\" (GROUP_CONCAT(?typeName;separator=\\\"|\\\") as ?types)\" +\n\t\t\t\" ?color\" +\n\t\t\t\" ?height\" +\n\t\t\t\" ?weight\" +\n\t\t\t\" (str(?image) as ?imageUrl)\" + // get url string from image RDF node\n\t\t\t\" ?attack\" +\n\t\t\t\" ?defense\" +\n\t\t\t\" ?spAttack\" +\n\t\t\t\" ?spDefense\" +\n\t\t\t\" ?speed\" +\n\t\t\t\" ?hp\" +\n\t\t\t\" ?description \" +\n\t\t\t\"WHERE {\" +\n\t\t\t\" ?pokemon <http://www.w3.org/2000/01/rdf-schema#label> ?name. \" +\n\t\t\t\" ?pokemon pkm:nationalNumber ?number. \" +\n\t\t\t\" BIND(CONCAT(?name, \\\" #\\\", str(?number)) as ?numberAndName) \" + // used for UI search\n\t\t\t\" ?pokemon pkm:type ?type. \" +\n\t\t\t\" ?type <http://www.w3.org/2000/01/rdf-schema#label> ?typeDescription. \" +\n\t\t\t\"\t BIND(REPLACE(?typeDescription, \\\" Type\\\", \\\"\\\") AS ?typeName). \" +\n\t\t\t\" ?pokemon pkm:colour ?color. \" +\n\t\t\t\" ?pokemon pkm:description ?description. \" +\n\t\t\t\" ?pokemon pkm:length ?height. \" +\n\t\t\t\" ?pokemon pkm:weight ?weight. \" +\n\t\t\t\" ?pokemon <http://xmlns.com/foaf/0.1/depiction> ?image. \" +\n\t\t\t\" ?pokemon pkm:baseAttack ?attack. \" +\n\t\t\t\" ?pokemon pkm:baseDefense ?defense. \" +\n\t\t\t\" ?pokemon pkm:baseSpAtk ?spAttack. \" +\n\t\t\t\" ?pokemon pkm:baseSpDef ?spDefense. \" +\n\t\t\t\" ?pokemon pkm:baseSpeed ?speed. \" +\n\t\t\t\" ?pokemon pkm:baseHP ?hp. \" +\n\t\t\t\" FILTER strStarts(?name, \\\"\" + name + \"\\\" ) \" +\n\t\t\t\"\t FILTER (langMatches(lang(?description), \\\"EN\\\")) \" +\t// only return English description\n\t\t\t\"\t FILTER contains(str(?image), \\\"legendarypokemon.net\\\") \" + // only return url of image from legendarypokemon.net\n\t\t\t\"}\" +\n\t\t\t\"GROUP BY ?number ?name ?numberAndName ?color ?description ?height ?weight ?image ?attack ?defense ?spAttack ?spDefense ?speed ?hp \" +\n\t\t\t\"ORDER BY ?name LIMIT 10\"; // return 10 results ordered by name\n\t\treturn runQuery(queryString);\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate List<Gene> getAllByName(String name, Session session) {\n\t\tQuery query = session.createQuery(\"select distinct(g) from Xref as x1, Xref as x2, TranscriptToXref as tx1, TranscriptToXref as tx2, Dbname as db, Gene as g where\" +\n\t\t\t\t\" x1.displayId= :name and\" +\n\t\t\t\t\" x1.xrefId=tx1.xref and\" +\n\t\t\t\t\" tx1.transcript=tx2.transcript and\" +\n\t\t\t\t\" tx2.xref=x2.xrefId and\" +\n\t\t\t\t\" x2.dbname=db.dbnameId and\" +\n\t\t\t\t\" db.name='ensembl_gene' and\" +\n\t\t\t\t\" x2.displayId=g.stableId\").setParameter(\"name\", name.trim()); //and t.gene=g.geneId\" , Transcript as t\n\t\treturn (List<Gene>)query.list();\n\t}",
"public String getHotelName() {\n\t\treturn this.name;\n\t}",
"public Keeper[] searchByName(String name){\r\n ArrayList<Keeper> keeperList = new ArrayList<Keeper>();\r\n for(Keeper keeper:keepers){\r\n if(keeper.getName().contains(name)){\r\n keeperList.add(keeper);\r\n }\r\n }\r\n if(keeperList.isEmpty()){return null;}\r\n return keeperList.toArray(new Keeper[keeperList.size()]); \r\n }",
"ResultSet searchName(String name) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon WHERE Name = \" + \"'\" + name + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }",
"List<Map<String, Object>> searchIngredient(String name);",
"public Guest getGuest(String name) {\n\t\tString checkName = name.toUpperCase();\n for (Guest guest : guestList) {\n if (guest.getName().toUpperCase().equals(checkName)){\n return guest;\n }\n }\n return null;\n }",
"public Hotel(String name, String address) {\n\t\tthis.name = name;\n\t\tthis.address = address;\n\t}",
"public void loadHotels();",
"java.lang.String getHotelName();",
"public void showHotels() {\n System.out.println(\"-----Hotels: ------\");\n hotelsService.getHotels().forEach(System.out::println);\n }",
"public void addHotelName(String name) {\n\t\t\tName = name;\r\n\t\t}",
"public String getHotelName() {\n\t\t\treturn Name;\r\n\t\t}",
"@Override\n\tpublic List<Hotel> getLowPricedHotels(String cityName, Session session) {\n\t\t// TODO Auto-generated method stub\n\t\tList<Hotel> hotelList = new ArrayList<Hotel>();\n\t\tCriteria cr = session.createCriteria(Hotel.class).add(Restrictions.eq(\"city\", cityName)).addOrder(Order.asc(\"tariff\")).setMaxResults(5);\n\t\thotelList = cr.list();\n\t\treturn hotelList;\n\t}",
"@Override\n\tpublic List<Airport> searchAirports(String name) {\n\t\tList<Airport> airports = AirportDaoObject.searchAirports(name);\n\t\treturn airports;\n\t}",
"public List<String> getAlphaVesselNameSuggest(String name) {\n List<String> alphaNameList = new ArrayList<String>();\n \n try {\n // create http entity class with common headers\n HttpEntity entity = new HttpEntity(headers);\n NodeServiceListResponse<AlphaVessel> response = new NodeServiceListResponse<AlphaVessel>(\n AlphaVessel.class);\n\n // retrieve the response from the node service call\n response = NodeServicesUtil.getNodeListResponse(targetUrl + \"vessel/filterAlphas?q=\" + name,\n entity, HttpMethod.GET, response, null);\n\n // retrieve data from the response object\n List<AlphaVessel> vslList = response.getConvertedData();\n\n // remove duplicates from result set\n for (AlphaVessel vsl : vslList) {\n if (!alphaNameList.contains(vsl.getName())) {\n alphaNameList.add(vsl.getName());\n }\n }\n\n // sort the results set\n Collections.sort(alphaNameList, String.CASE_INSENSITIVE_ORDER);\n\n // catch and log all errors from the service\n } catch (Exception e) {\n // error getting data\n LOG.error(\"There was an error getting alpha vessel names: \" + e);\n }\n\n return alphaNameList;\n }",
"com.google.protobuf.ByteString\n getHotelNameBytes();",
"public com.google.protobuf.ByteString\n getHotelNameBytes() {\n java.lang.Object ref = hotelName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hotelName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public List<Coach> findByName(String name) {\n\t\tStringBuilder builder = new StringBuilder(\"%\");\n\t\tbuilder.append(name).append(\"%\");\n\t\treturn list(\n\t\t\t\tnamedQuery(\"de.hummelflug.clubapp.server.core.Coach.findByName\")\n\t\t\t\t.setParameter(\"name\", builder.toString()));\n\t}",
"public List<Plant> findByName(String name) throws SQLException {\n\t\t// Declaring our variables\n\t\tConnection conn = null;\n\t\tPreparedStatement stmt = null;\n\t\tList<Plant> pl = new ArrayList<Plant>();\n\n\t\t// Lets start the connection\n\t\ttry {\n\t\t\tconn = getConnection();\n\t\t\t// We will add LOWER and then toLower case so it wont be case sensitive\n\t\t\tstmt = conn.prepareStatement(\"SELECT * FROM garden WHERE LOWER(plant) LIKE ?\");\n\t\t\t// Here we going to add \"%\"'s in case of the name be between other words\n\t\t\tstmt.setString(1, \"%\" + name.toLowerCase() + \"%\");\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\t// Now we may have more than one result, so lets pass with a while\n\t\t\t// using method next on the result\n\t\t\twhile (rs.next()) {\n\t\t\t\t// The result wont return a Plant Object, so we first make it happen\n\t\t\t\tPlant p = createPlant(rs);\n\t\t\t\t// Now we can pass the resulting plant in his object format\n\t\t\t\tpl.add(p);\n\t\t\t}\n\t\t\trs.close();\n\t\t} finally {\n\t\t\t// If the Statement or the Connection, hasn't been closed, we close it\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t\tif (stmt != null) {\n\t\t\t\tstmt.close();\n\t\t\t}\n\t\t}\n\t\treturn pl;\n\t}",
"public ArrayList<ItemBean> getItemsByName(String name) throws SQLException\n\t{\n//\t\tSystem.out.println(\"Searching by name!!!\");\n\t\t//SQL query\n\t\tString query = \"select * from roumani.item where name like ? or number like ?\";\n\t\t\n\t\tArrayList<ItemBean> itemList = new ArrayList<ItemBean>();\n\t\t\n\t\ttry{\n\t\t\t//Open connection to database\n\t\tConnection con = dataSource.getConnection();\n\t\t\t//Create prepared statement\n\t\tPreparedStatement statement = con.prepareStatement(query);\n\n\t\t\t//Replace ? in query with values\n\t\tstatement.setString(1, \"%\"+name+\"%\");\n\t\tstatement.setString(2, \"%\"+name+\"%\");\n\t\t\n\t\t\t//Query the database\n\t\tResultSet rs = statement.executeQuery();\n\t\t\n\t\t\n\t\t\t//If there are remaining items matching search criteria, place them in list\n\t\twhile(rs.next() != false)\n\t\t\titemList.add(new ItemBean(rs.getString(\"name\"),(double) Math.round(rs.getDouble(\"price\")*100)/100));\n\t\t\n\t\tcon.close();\n\t\tstatement.close();\n\t\trs.close();\n\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t//Return list of found items\n//\t\tSystem.out.println(\"Done searching by name\");\n\t\t\t//Close all connections\n\t\t\n\t\treturn itemList;\n\t}",
"public com.google.protobuf.ByteString\n getHotelNameBytes() {\n java.lang.Object ref = hotelName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hotelName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }",
"public PokemonSpecies findSeenSpeciesData(String name) throws PokedexException {\n PokemonSpecies rv = null;\n String nameLower = name.toLowerCase();\n Iterator<PokemonSpecies> it = pokedex.iterator();\n PokemonSpecies currentSpecies;\n while(it.hasNext()) {\n currentSpecies = it.next();\n if(currentSpecies.getSpeciesName().equals(nameLower)) {\n rv = currentSpecies;\n break;\n }\n }\n if(rv == null) {\n throw new PokedexException(String.format(Config.UNSEEN_POKEMON, name));\n }\n return rv;\n }",
"public ArrayList<TakeStock> findMemberByName(String name) {\n\n matches.clear();\n\n for(TakeStock member : mTakeStockList) {\n\n if(member.getProducts_name().toLowerCase().contains(name)){\n matches.add(member);\n }\n\n }\n return matches; // return the matches, which is empty when no member with the given name was found\n }",
"@Override\r\n\tpublic List<Supplies> findbyname(String name) {\n\t\treturn suppliesDao.findbyname(name);\r\n\t}",
"public ArrayList<Hotel> getCustomerHotels(Integer customerId);",
"@Override\n\tpublic List<Hotel> listar() {\n\t\treturn null;\n\t}",
"public List<Eetakemon> findEetakemonContain(String name){\n List<Eetakemon>resultlist = new ArrayList<Eetakemon>();\n for (String key: eetakemonmap.keySet()){\n Eetakemon e = eetakemonmap.get(key);\n if(e.getName().contains(name)){\n resultlist.add(e);\n }\n }\n return resultlist;\n }",
"public java.util.List<com.Hotel.model.Hotel> findAll()\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"List<Menu> findByHotelHotelName(String hotelName);",
"public Iterable<Waste> getWastesByName(String name) {\n return wastes.get().find(\"{name: #}\",name).as(Waste.class);\n }",
"public List<Employee> findEmployee(String name) {\n\t\tCriteriaQuery<Employee> createQuery = emp.getCriteriaBuilder().createQuery(Employee.class);\n\t\tRoot<Employee> root = createQuery.from(Employee.class);\n\t\tcreateQuery.where(root.get(\"name\").in(name));\n\t\treturn emp.createQuery(createQuery).getResultList();\n\t}",
"public List<String> getNamedStreetIDs(String name)\n {\n return null;\n }",
"public FoodInfo searchFoodInfo(String foodname){\n\t\t//boolean result = false;\n\t\tFoodInfo foodInfo = null;\n\t\ttry {\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\n\t\t\t\t\t\"SELECT * FROM foodinfo WHERE foodname=(?)\");\n\t\t\tstmt.setString(1,foodname);\n\t\t\tResultSet rs = stmt.executeQuery();\n\n\t\t\twhile(rs.next()) {\n\t\t\t\tfoodInfo = new FoodInfo();\n\t\t\t\tfoodInfo.setFoodName(rs.getString(1));\n\t\t\t\tfoodInfo.setEnergy(rs.getDouble(2));\n\t\t\t\tfoodInfo.setProtein(rs.getDouble(3));\n\t\t\t\tfoodInfo.setFiber(rs.getDouble(4));\n\t\t\t\tfoodInfo.setPrice(rs.getInt(5));\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tconnection.close();\n\n\n\t\t} catch (Exception e) {\n\t\t\tlog.info(e.getMessage());\n\t\t}\n\t\tfinally {\n\n\t\t}\n\t\treturn foodInfo;\n\t}",
"public Iterator<R> reservationsByName(String name){\n // Return an iterator of active reservations for a name.\n //loop through the arrayList\n for(Reservation r: listR){\n //if we find the name that equals our given name, add that reservation to our temp list\n if(r.getName().equals(name)){\n newList.add(r);\n }\n }\n //return iterator for temp list\n IterName iter = new IterName();\n return iter;\n }",
"public static List<Book> searchEBookByName(String name) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByName\").setString(\"name\", name);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }",
"public ArrayList<Product> findProductByName(String name) {\n\t\tConnection connection = null;\n\t\tStatement statement = null;\n\t\tResultSet resultSet = null;\n\n\t\tArrayList<Product> listProduct = new ArrayList<Product>();\n\t\ttry {\n\t\t\tconnection = ConnectionFatory.getConnectinon();\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(\"SELECT * FROM product WHERE product_name = '\" + name + \"'\");\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tlistProduct.add(convertToProduct(resultSet));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (connection != null) {\n\t\t\t\ttry {\n\t\t\t\t\tconnection.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (statement != null) {\n\t\t\t\ttry {\n\t\t\t\t\tstatement.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (resultSet != null) {\n\t\t\t\ttry {\n\t\t\t\t\tresultSet.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn listProduct;\n\t}",
"public Optional<List<Pokemon>> findByName(String name);",
"@Override\n public List<FoodItem> filterByName(String substring) {\n if (foodItemList == null || foodItemList.size() == 0)\n return foodItemList;\n List<FoodItem> foodCandidate = new ArrayList<>();\n \tfor (FoodItem food : foodItemList) {\n if (food.getName().equals(substring)) {\n foodCandidate.add(food);\n }\n \t}\n return foodCandidate;\n \n }",
"public List<Album> findAlbumsByName(String name){\n\t\tList<Album> albums = new ArrayList<Album>();\n\t\ttry {\n\t\t\tString sql = \"SELECT * FROM Album WHERE Name LIKE ?;\";\n\t\t\tPreparedStatement statement = connection.prepareStatement(sql);\n\t\t\tstatement.setString(1, \"%\" + name + \"%\");\n\t\t\tResultSet set = statement.executeQuery();\n\t\t\tif (set.next()){\n\t\t\t\talbums.add(readAlbum(set));\n\t\t\t}\n\t\t\tstatement.close();\n\t\t\t//connection.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn albums;\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif (obj == this) {\n\t\t\treturn true;\n\t\t}\n\n\t\tif (!(obj instanceof Hotel)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tHotel other = (Hotel) obj;\n\n\t\treturn this.name.equals(other.name);\n\t}",
"@Override\n\tpublic List<Product> getAllProductByName(String name) {\n\t\treturn productRepository.findByName(name);\n\t}",
"List<Whisky> findWhiskiesByAgeAndDistilleryNamed(String name, int age);",
"public FriendList getFriendListByName(String name);",
"public List<Brand> getBrands(String name) throws IOException {\n return getBrands(name,25,0);\n }",
"public StringList lookupNames(String name) throws UnknownHostException\n {\n StringList names=new StringList(); \n \n // cached lookup \n InetAddress[] addres = lookup(name); \n \n for (InetAddress addr:addres)\n {\n // only add unique hostnames\n names.add(addr.getHostName(),true); // getHostName()); \n }\n \n return names; \n }",
"public List<Goods> listByhot() {\n\t\treturn sm.selectList(\"com.huyu.entity.Goods.listByhot\");\n\t}",
"public @NotNull Set<Bidder> findBidders(@NotNull final Name name) throws BazaarException;",
"public List<Service> list(String name){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \tcriteria.add(Restrictions.like(\"name\",\"%\"+name+\"%\"));\r\n \treturn criteria.list();\r\n }",
"@Override\n\tpublic Zongjie findByname(String name) {\n\t\treturn zongjieDao.findByname(name);\n\t}",
"public String searchPerson(String name){\n String string = \"\";\n ArrayList<Person> list = new ArrayList<Person>();\n \n for(Person person: getPersons().values()){\n String _name = person.getName();\n if(_name.contains(name)){\n list.add(person);\n }\n }\n list.sort(Comparator.comparing(Person::getName));\n for (int i = 0; i < list.size(); i++){\n string += list.get(i).toString();\n }\n\n return string;\n }",
"@Override\n public List<FoodItem> filterByName(String substring) {\n //turn foodItemList into a stream to filter the list and check if any food item matched \n return foodItemList.stream().filter(x -> x.getName().toLowerCase() \n .contains(substring.toLowerCase())).collect(Collectors.toList());\n }",
"public List<T> getAll(String name) {\n\t\tList<T> result = new ArrayList<T>();\n\t\tint sz = size();\n\t\tfor (int i = 0; i < sz; i++) {\n\t\t\tString n = getName(i);\n\t\t\tif (name == n || (name != null && name.equals(n))) {\n\t\t\t\tresult.add(getVal(i));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"@Override\r\n\tpublic java.util.List<Inventory> findAll(String nameProduct) {\n\t\tsession=HibernateUlits.getSessionFactory().openSession();\r\n\t\t\r\n\t\tInventory inventory = new Inventory();\r\n\t\t\r\n\t\tQuery query = session.createQuery(\"FROM Inventory WHERE invName = '\" + nameProduct + \"'\");\r\n\t\t\r\n\t\tList inventor = query.list();\r\n\t\t\r\n\t\tList<Inventory> invent= new ArrayList<>();\r\n\t\t\r\n\t\tfor (Iterator iter = inventor.iterator();iter.hasNext();) {\r\n\t\t\tInventory in = (Inventory)iter.next();\r\n\t\t\tInteger id= in.getInvId();\r\n\t\t\tString name = in.getInvName();\r\n\t\t\tString description = in.getInvDescription();\r\n\t\t\tString location = in.getInvLocation();\r\n\t\t\tBigDecimal price = in.getInvPrice();\r\n\t\t\tShort stock = in.getInvStock();\r\n\t\t\tShort weight = in.getInvWeight();\r\n\t\t\tShort size = in.getInvSize();\r\n\t\t\t\r\n\t\t\tInventory tempInv = new Inventory(id,name,description,location,price,stock,weight,size);\r\n\t\t\tinvent.add(tempInv);\r\n\t\t }\r\n\t \r\n\t \r\n\t\treturn invent;\r\n\t}",
"public StringList lookupAddresses(String name) throws UnknownHostException\n {\n StringList names=new StringList(); \n // cached lookup \n InetAddress[] addres = lookup(name); \n \n for (InetAddress addr:addres)\n {\n // only add unique address\n names.add(addr.getHostAddress(),true); // getHostName()); \n }\n \n return names; \n }",
"public ArrayList<User> getUsersVisitingVenueByName(String venueName){\n\t\tArrayList<User> users = new ArrayList<User>();\n\t\t\n\t\tString queryString = \n\t\t\t \"PREFIX sweb: <\" + Config.NS + \"> \" +\n\t\t\t \"select ?user \" +\n\t\t\t \"where { \" +\n\t\t\t \t\"?user sweb:visited ?venue.\" +\n\t\t\t \t\"?venue sweb:name ?name.\" +\n\t\t\t \t\"FILTER regex(?name, \\\"\"+ venueName +\"\\\", \\\"i\\\" )\" +\n\t\t\t \"} \\n \";\n\n\t Query query = QueryFactory.create(queryString);\n\t \n\t QueryExecution qe = QueryExecutionFactory.create(query, this.model);\n\t ResultSet results = qe.execSelect();\n\t \n\t while(results.hasNext()) {\n\t \tQuerySolution solution = results.nextSolution() ;\n\t Resource currentResource = solution.getResource(\"user\");\n\n\t users.add(this.buildUserFromResource(currentResource));\n\t }\n\t \n\t return users;\n\t}",
"public static ArrayList<Character> getArray(String name){\n int ID = Integer.parseInt(Pokemon.nameToID(name));\n return getArray(ID);\n }",
"public List<BookData> searchBookbyTitle (String name) throws SQLException{\n\t\tList<BookData> list = new ArrayList<>();\n\t\t\n\t\tPreparedStatement myStmt = null;\n\t\tResultSet myRs = null;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tmyStmt = myConn.prepareStatement(\"select title, author_name, publisher_name, book_id from books natural join book_authors where title = ?\");\n\t\t\tmyStmt.setString(1, name);\n\t\t\tmyRs = myStmt.executeQuery();\n\t\t\t\n\t\t\twhile (myRs.next()) {\n\t\t\t\tBookData tempbook = convertRowToBook(myRs);\n\t\t\t\tlist.add(tempbook);\n\t\t\t}\n\t\t\t\n\t\t\treturn list;\n\t\t}\n\t\tfinally {\n\t\t\tmyRs.close();\n\t\t\tmyStmt.close();\n\t\t\n\t\t}\n\t\t\n\t}",
"@Override\n public List<Order> findByTuoteName(String name) {\n List<Order> ordersByProductName = new ArrayList<>();\n for (int i = 0; i < this.orders.size(); i++) {\n \n if (this.orders.get(i).getProduct().getName().equals(name)) {\n ordersByProductName.add(this.orders.get(i));\n }\n }\n return ordersByProductName;\n }",
"public ArrayList<Hotel> getUserHotels(Integer userId, Integer customerId);",
"@GetMapping(\"/findAllStateCountry/name\")\n\tpublic ResponseEntity<List<State>> stateNameCountry(@RequestParam String name) {\n\t\tList<State> STATES = stateService.stateNameCountry(name);\n\t\treturn new ResponseEntity<List<State>>(STATES, HttpStatus.OK);\n\t}",
"@Override\n\tpublic List<Account> getAccountsByName(String name) {\n\t\treturn jdbcTemplate.query(\"select * from account where locate(?, name)>0 \", new Object[]{name}, new BeanPropertyRowMapper(Account.class));\n\t}",
"public List<Product> getProductByName() {\n \n List<Product> listProduct= productBean.getProductByName(productName);\n return listProduct;\n }",
"public List<Product> findByNameIs(String name);",
"public void searchHotelRoomTypes(Connection connection, String hotel_name, int branch_ID) throws SQLException {\n\n ResultSet rs = null;\n String sql = \"SELECT type, quantity FROM Hotel_Rooms WHERE hotel_name = ? AND branch_ID = ?\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n setHotelName(hotel_name);\n pStmt.setString(1, getHotelName());\n setBranchID(branch_ID);\n pStmt.setInt(2, getBranchID());\n\n try {\n\n System.out.printf(\" Room types available at %S, branch ID (%d)\", getHotelName(), getBranchID());\n System.out.println(\"+------------------------------------------------------------------------------+\");\n\n rs = pStmt.executeQuery();\n\n while (rs.next()) {\n System.out.println(rs.getString(1) + \" \" + rs.getInt(2));\n }\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n if(rs != null) { rs.close(); }\n }\n }",
"public List<Product> findHot() {\n\t\t\treturn productDao.findHot();\n\t\t}",
"public List<productmodel> getproductbyname(String name);",
"public Gift getGift(String name) {\r\n return GiftList.get(name);\r\n }",
"public List<T> searchByName(String name) throws DAOException {\n Helper.checkNullAndEmpty(name, \"name\");\n Helper.checkEntityManager(entityManager);\n\n String queryString = \"select e from \"\n + entityBeanType.getCanonicalName() + \" as e\"\n + \" where e.name = :name\" + \" and e.deleted = false\";\n\n try {\n return Helper.getEntities(\"name\", name, entityManager, queryString);\n } catch (Exception e) {\n throw new DAOException(\"Failed to search entities by name:\" + name + \".\", e);\n }\n }",
"@GetMapping(\"/findAllState/name\")\n\tpublic ResponseEntity<List<State>> stateName(@RequestParam String name) {\n\t\tList<State> STATES = stateService.stateName(name);\n\t\treturn new ResponseEntity<List<State>>(STATES, HttpStatus.OK);\n\t}",
"public static List<Bunny> getListOfVeryCuteBunniesNamedSteve() {\n String selectionString = \"name='steve' AND cuteValue > 66\";\n// Long time = Calendar.getInstance().getTimeInMillis();\n QueryResultIterable<Bunny> iterable =\n cupboard().withDatabase(db).query(Bunny.class).withSelection(selectionString).query();\n List<Bunny> list = getListFromQueryResultIterator(iterable);\n return list;\n }",
"public String searchByName(String name){\n for(Thing things: everything){\n if(things.getName().equalsIgnoreCase(name)){\n return things.toString();\n }\n }\n return \"Cannot Find given Name\";\n }",
"@RequestMapping(value=\"/search\",method=RequestMethod.GET)\r\n\tpublic List<ProductBean> searchByProductName(String name)throws SearchException {\r\n\t\treturn service.searchProductByName(name); \r\n\t}",
"public List<MmathFighter> searchByName(String name) {\n String searchQuery = \"%\" + name + \"%\";\n\n String[] nameSplit = name.split(\" \");\n ExecutorService exec = Executors.newFixedThreadPool(nameSplit.length + 2);\n\n List<Future<List<MmathFighter>>> futures = new ArrayList<>();\n\n futures.add(exec.submit(() -> getDsl().select().from(FIGHTERS)\n .where(FIGHTERS.NAME.like(searchQuery))\n .orderBy(FIGHTERS.SEARCH_RANK)\n .limit(10)\n .fetch(recordMapper)));\n\n futures.add(exec.submit(() -> getDsl().select().from(FIGHTERS)\n .where(FIGHTERS.NICKNAME.like(searchQuery))\n .orderBy(FIGHTERS.SEARCH_RANK)\n .limit(10)\n .fetch(recordMapper)));\n\n if (nameSplit.length > 1) {\n futures.addAll(\n Stream.of(nameSplit)\n .map(s -> exec.submit(() -> getDsl().select().from(FIGHTERS)\n .where(FIGHTERS.NAME.like(s))\n .or(FIGHTERS.NICKNAME.like(s))\n .orderBy(FIGHTERS.SEARCH_RANK)\n .limit(10)\n .fetch(recordMapper)\n )).collect(Collectors.toList())\n );\n }\n return futures.stream()\n .flatMap(f -> {\n try {\n return f.get().stream();\n } catch (InterruptedException | ExecutionException e) {\n return null;\n }\n })\n .filter(s -> s != null)\n .filter(distinctByKey(MmathFighter::getSherdogUrl)).limit(10).collect(Collectors.toList());\n }",
"public static List<Book> searchBookByNameAndLocation(String name,String location) throws HibernateException{\r\n \r\n session = sessionFactory.openSession();\r\n session.beginTransaction();\r\n\r\n Query query = session.getNamedQuery(\"INVENTORY_searchBookByNameAndLocation\").setString(\"name\", name).setString(\"location\", location);\r\n\r\n List<Book> resultList = query.list();\r\n \r\n session.getTransaction().commit();\r\n session.close();\r\n \r\n return resultList;\r\n \r\n }",
"public List<Goods> goodsFindByTypeName(String name) {\n\t\treturn null;\r\n\t}",
"public java.lang.String getHotelName() {\n java.lang.Object ref = hotelName_;\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 hotelName_ = s;\n return s;\n }\n }",
"public java.lang.String getHotelName() {\n java.lang.Object ref = hotelName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n hotelName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Override\r\n\tpublic List<User> search(String name) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic List<Product> findHots() throws Exception {\n\t\treturn null;\r\n\t}",
"List<AirportDTO> getAirportsByName(String name);",
"public List<Component> searchComponent(String name) {\n\t\treturn sessionFactory.getCurrentSession().createQuery(\"from Component c where c.name like '%\"+name+\"%'\")\n\t\t.setMaxResults(10)\n\t\t.list();\n\t}",
"public Hotel getHotel() {\n return hotel;\n }",
"public Hotel getHotel() {\n return hotel;\n }",
"private static Person findPersonByNameWithAllDogs(EntityManager em, String name) {\n\t\tQuery query = em.createQuery(\"select p from Person p join fetch p.dogs where p.name = :name\", Person.class);\n\t\tquery.setParameter(\"name\", name);\n\t\treturn (Person) query.getSingleResult();\n\t}",
"public List<Client> findByName(String name) {\n\t\treturn null;\r\n\t}",
"public Hotel(String name, String address, double price, boolean pool, boolean gym, boolean bar, boolean pets,\n\t\t\tint stars, String imgPath) {\n\t\tthis.name = name;\n\t\tthis.address = address;\n\t\tthis.price = price;\n\t\tthis.pool = pool;\n\t\tthis.gym = gym;\n\t\tthis.bar = bar;\n\t\tthis.pets = pets;\n\t\tthis.stars = stars;\n\t\t// ny\n\t\tthis.imgPath = imgPath;\n\t}",
"@Override\n\tpublic List<Product> getByHot() throws SQLException {\n\t\treturn productDao.getByHot();\n\t}",
"List<Cloth> findByNameContaining(String name);",
"@Override\n public List<Client> filterByName(String searchString){\n log.trace(\"filterByName -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).filter((c)->c.getName().contains(searchString)).collect(Collectors.toList());\n log.trace(\"filterByName: result = {}\", result);\n return result;\n\n }",
"public void listBooksByName(String name) {\n String sql = \"SELECT ISBN, BookName, AuthorName, Price \" +\n \"FROM books \" +\n \"WHERE BookName = ?\";\n\n try (Connection conn = this.connect();\n PreparedStatement pstmt = conn.prepareStatement(sql)) {\n\n // Set values\n pstmt.setString(1, name);\n\n ResultSet rs = pstmt.executeQuery();\n\n // Print results\n while(rs.next()) {\n System.out.println(rs.getInt(\"ISBN\") + \"\\t\" +\n rs.getString(\"BookName\") + \"\\t\" +\n rs.getString(\"AuthorName\") + \"\\t\" +\n rs.getInt(\"Price\"));\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"@Override\n\tpublic Set<Person> getfindByNameContaining(String name) {\n\t\treturn null;\n\t}"
]
| [
"0.75052583",
"0.65346074",
"0.6195111",
"0.6053121",
"0.59853214",
"0.59210664",
"0.59158564",
"0.5910619",
"0.58460987",
"0.5841385",
"0.5802232",
"0.5793141",
"0.57684976",
"0.57642543",
"0.5751965",
"0.5688433",
"0.56845134",
"0.5657778",
"0.5657418",
"0.56423306",
"0.56204295",
"0.56079423",
"0.5598085",
"0.55544025",
"0.55476093",
"0.5541421",
"0.5535011",
"0.55339414",
"0.5529097",
"0.55219615",
"0.55110925",
"0.5482303",
"0.54775685",
"0.54715896",
"0.54464066",
"0.5437761",
"0.5430837",
"0.5414205",
"0.54078406",
"0.5401253",
"0.5398185",
"0.53958344",
"0.5367589",
"0.53630304",
"0.53542656",
"0.5341043",
"0.53371507",
"0.5335014",
"0.533015",
"0.5316938",
"0.5295399",
"0.529315",
"0.5290336",
"0.5280864",
"0.5254923",
"0.5250846",
"0.524904",
"0.5225321",
"0.52246565",
"0.52054554",
"0.51964754",
"0.5194777",
"0.5189355",
"0.5185589",
"0.51820856",
"0.51794213",
"0.51747376",
"0.51682794",
"0.5165551",
"0.51632696",
"0.51584375",
"0.51441926",
"0.51395315",
"0.5137139",
"0.51362395",
"0.51145345",
"0.5110411",
"0.5109348",
"0.5106814",
"0.51059854",
"0.5098471",
"0.50946814",
"0.5094056",
"0.5092965",
"0.50903153",
"0.50887424",
"0.50802374",
"0.50793064",
"0.507851",
"0.5074427",
"0.5072199",
"0.5072199",
"0.5062539",
"0.5058112",
"0.5054706",
"0.5051879",
"0.5047353",
"0.5036092",
"0.501805",
"0.5010037"
]
| 0.68468714 | 1 |
Returns the first hotel in the ordered set where name = &63;. | public com.Hotel.model.Hotel findByname_First(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Hotel> newHotelList = new ArrayList<>();\r\n\t\tfor(Hotel Hotel : showHotelList())\r\n\t\t{\r\n\t\t\tif(Hotel.getHotelName().equals(Name))\r\n\t\t\t\tnewHotelList.add(Hotel);\r\n\t\t}\r\n\t\treturn newHotelList;\r\n\t}",
"@Override\r\n\tpublic Product findCheapestProduct(String name) {\r\n\t\t\r\n\t\t// Build the url to match the products with provided name and return \r\n\t\t// them sorted by sale price in ascending order.\r\n\t\tString url = apiBaseUrl + \"/search?apiKey={apiKey}&query={name}&format={format}&sort={sort}&ord={ord}&numItems={numItems}\";\r\n\t\t\r\n\t\t// Create the parameters to replace in the url.\r\n\t\tMap<String, String> params = new HashMap<String, String>();\r\n\t\tparams.put(\"name\", name);\r\n\t\tparams.put(\"apiKey\", apiKey);\r\n\t\tparams.put(\"format\", \"json\");\r\n\t\tparams.put(\"sort\", \"price\");\r\n\t\tparams.put(\"ord\", \"asc\");\r\n\t\tparams.put(\"numItems\", \"1\");\r\n\t\t\r\n\t\tRestTemplate template = new RestTemplate();\r\n\t\tWalmartSearchResponse response = template.getForObject(url, WalmartSearchResponse.class, params);\r\n\t\tif (response.getTotalResults() > 0) {\r\n\t\t\tWalmartSearchResponseItem[] responseProducts = response.getItems();\r\n\t\t\treturn new Product(\r\n\t\t\t\t\tresponseProducts[0].getName(),\r\n\t\t\t\t\tresponseProducts[0].getSalePrice(),\r\n\t\t\t\t\tWALMART_LOCATION);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public com.Hotel.model.Hotel fetchByname_First(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public Amount<Mineral> searchByName(String name){\n\t\tfor(int i=0; i<this.mineralList.size(); i++) {\n\t\t\tif(this.mineralList.get(i).getObject().getName() == name)\n\t\t\t\treturn this.mineralList.get(i);\n\t\t}\n\t\treturn null;\n\t}",
"public Town getVertex(String name) {\n\t\tfor (Town t : towns) {\n\t\t\tif (t.getName().equals(name)) {\n\t\t\t\treturn t;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Hotel bestHotel() {\r\n \tArrayList<Hotel> hotels = hotelDAO.getHotelList();\r\n \tHotel bestHotel=hotels.get(0);\r\n \tfor (int i=0; i<hotels.size();i++) {\r\n \t\tif(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) {\r\n \t\t\tbestHotel=hotels.get(i);\r\n \t\t}\r\n \t}\r\n \treturn bestHotel;\r\n }",
"public Booking getBooking(String name) {\n\t\t\tint i = 0;\r\n\t\t\tBooking buffer;\r\n\t\t\t\r\n\t\t\twhile(i < Bookings.size()) {\r\n\t\t\t\tbuffer = Bookings.get(i);\r\n\t\t\t\tString Name = buffer.getBooker();\r\n\t\t\t\tif (name.contentEquals(Name)) {\r\n\t\t\t\t\treturn buffer;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}",
"public Guest getGuest(String name) {\n\t\tString checkName = name.toUpperCase();\n for (Guest guest : guestList) {\n if (guest.getName().toUpperCase().equals(checkName)){\n return guest;\n }\n }\n return null;\n }",
"public Location getLocationByName(String name) {\n\t\tfor (Location x : locations) {\n\t\t\tif (x.getName().equals(name))\n\t\t\t\treturn x;\n\t\t}\n\t\treturn null; \n\t}",
"public String getHotelName() {\n\t\treturn this.name;\n\t}",
"public Symbol findEntryLocal(String name){\n\t\tList<SymbolEntry> l = symbolMap.get(name);\n\t\tif(l == null || (l.get(0).level < scopeLevel))\n\t\t\treturn null;\n\t\treturn l.get(0).symbol;\n\t}",
"public Handle search(String name) {\n int homePos = hash(table, name);\n int pos;\n\n // QUADRATIC PROBE\n for (int i = 0; i < table.length; i++) {\n // possibly iterate over entire table, but will\n // likely stop before then\n pos = (homePos + i * i) % table.length;\n if (table[pos] == null) {\n break;\n }\n else if (table[pos] != GRAVESTONE\n && table[pos].getStringAt().equals(name)) {\n return table[pos];\n }\n } // end for\n\n return null;\n }",
"@Override\n\tpublic List<Hotel> getLowPricedHotels(String cityName, Session session) {\n\t\t// TODO Auto-generated method stub\n\t\tList<Hotel> hotelList = new ArrayList<Hotel>();\n\t\tCriteria cr = session.createCriteria(Hotel.class).add(Restrictions.eq(\"city\", cityName)).addOrder(Order.asc(\"tariff\")).setMaxResults(5);\n\t\thotelList = cr.list();\n\t\treturn hotelList;\n\t}",
"public static LinkedList<Actor> nameSearch(String name) {\n //sets name to lower case\n String hname = name.toLowerCase();\n //hashes the lower cased name\n int hash = Math.abs(hname.hashCode()) % ActorList.nameHashlist.length;\n //finds the location of the linked list\n LinkedList<Actor> location = ActorList.nameHashlist[hash];\n //sets the head to the head of the linked list\n LinkedList.DataLink head = location.header;\n\n\n while (head.nextDataLink != null) {\n //runs until next data link is null and gets each Actor\n Actor actor = (Actor) head.nextDataLink.data;\n //checks the name of the actor to inputted name\n if (actor.getName().toLowerCase().equals(hname)) {\n //if it's the same it returns the actor\n return location;\n //or moves to next link\n } else {\n head = head.nextDataLink;\n }\n }\n //returns null if the list does not match input\n return null;\n\n\n }",
"public java.util.List<com.Hotel.model.Hotel> findByname(\n\t\tjava.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"java.lang.String getHotelName();",
"private DTOCity cityFromName(String name) {\n\t\tfor(DTOCity c : this.cities) {\n\t\t\tif(c.getName().equals(name))\n\t\t\t\treturn c;\n\t\t}\n\t\tthrow new NoSuchElementException(\"Error in creating the DTO graph!\");\n\t}",
"public Address searchByName(String name) {\n if (name == null || !addressBook.containsKey(name))\n throw new NullPointerException();\n return addressBook.get(name);\n }",
"@Override\r\n\tpublic Plate findByName(String nom) {\n\t\treturn null;\r\n\t}",
"private int findIngredientByName(String name){\r\n for(int i = 0; i < ingredients.size(); i++){\r\n if(ingredients.get(i).getName().equals(name)){\r\n return i;\r\n }\r\n }\r\n\r\n return -1;\r\n }",
"private Node getNode(String name) {\n for(Iterator<Node> i = nodes.iterator(); i.hasNext();) {\n Node n = i.next();\n if(n.getName().equalsIgnoreCase(name)){\n return n;\n };\n }\n return null;\n }",
"public static Animal getByName(String name) {\n for(var animal : animals){\n if(animal.getName().equalsIgnoreCase(name))\n return animal;\n }\n return null;\n\n //Diffrent way of finding the animal\n /*return animals.stream()\n .filter(a -> a.getName().equalsIgnoreCase(name))\n .findAny()\n .orElse(null);*/\n }",
"public FoodInfo searchFoodInfo(String foodname){\n\t\t//boolean result = false;\n\t\tFoodInfo foodInfo = null;\n\t\ttry {\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\n\t\t\t\t\t\"SELECT * FROM foodinfo WHERE foodname=(?)\");\n\t\t\tstmt.setString(1,foodname);\n\t\t\tResultSet rs = stmt.executeQuery();\n\n\t\t\twhile(rs.next()) {\n\t\t\t\tfoodInfo = new FoodInfo();\n\t\t\t\tfoodInfo.setFoodName(rs.getString(1));\n\t\t\t\tfoodInfo.setEnergy(rs.getDouble(2));\n\t\t\t\tfoodInfo.setProtein(rs.getDouble(3));\n\t\t\t\tfoodInfo.setFiber(rs.getDouble(4));\n\t\t\t\tfoodInfo.setPrice(rs.getInt(5));\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tconnection.close();\n\n\n\t\t} catch (Exception e) {\n\t\t\tlog.info(e.getMessage());\n\t\t}\n\t\tfinally {\n\n\t\t}\n\t\treturn foodInfo;\n\t}",
"public Product getProductWithName(String name) {\n for (Product s : products) {\n if (s.getName() == name) { return s;}\n }\n return null;\n }",
"public Element findByName(String name) {\n for (Element element : this){\n if (element.getName().equals(name)) return element;\n }\n return null;\n }",
"public Person find(String name) {\n\t\tfor (Person person : listOfPeople) {\n\t\t\tif(person.getName().contains(name)) {\n\t\t\t\treturn person;\n\t\t\t}\n\t\t}\n\t\treturn null; // only reached if person with name not found by search.\n\t}",
"static BigDecimal FindMinPrice(String productname){\n\t\tLong prdname=Long.parseLong(productname);\n\t\tBigDecimal returnVal=new BigDecimal(0);\n\t\tif(productListOnNames.containsKey(prdname)){\n\t\t\tTreeMap<Long,BigDecimal> existingSet=productListOnNames.get(prdname);\n\n\t\t\treturnVal=Collections.min(existingSet.values());\n\n\t\t}\n\n\t\treturn returnVal;\n\n\t}",
"Heaver findByName(String name);",
"public SaveGameNode getFirstChild(String name) {\r\n SaveGameNode node;\r\n node = this.children.stream().filter(child -> child.equals(name)).findFirst().get();\r\n return node;\r\n }",
"public User getPlayer(String name) {\n\t\tUser ret = null;\n\t\tList<User> searchResult = this.players.stream().filter(x->x.name.equals(name)).collect(Collectors.toList());\n\t\tif (!searchResult.isEmpty()) {\n\t\t\tret = searchResult.get(0);\n\t\t}\n\t\treturn ret;\n\t}",
"public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }",
"public int search(String name){\n\t\tfor(Map.Entry<String, Integer> e : map.entrySet()){\n\t\t\tif(e.getKey().equals(name)){\n\t\t\t\treturn e.getValue();\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t/*\n\t\twhile(pointer < locations.length){\n\t\t\tif(locations[pointer].getName() == name){\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t\treturn locations[pointer - 1].getID();\n\t\t\t} else {\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t*/\n\t}",
"public Exercise getExercise(Name name) throws ExerciseNotFoundException {\n for (Exercise e : this.exercises) {\n if (e.getName().equals(name)) {\n return e;\n }\n }\n throw new ExerciseNotFoundException();\n }",
"@Override\n\tpublic Pizza getPizzaByName(String pizzaName) {\n\t\treturn mongoTemplate.findOne(Query.query(Criteria.where(\"name\").in(pizzaName)), Pizza.class);\n\t}",
"public PokemonSpecies findSeenSpeciesData(String name) throws PokedexException {\n PokemonSpecies rv = null;\n String nameLower = name.toLowerCase();\n Iterator<PokemonSpecies> it = pokedex.iterator();\n PokemonSpecies currentSpecies;\n while(it.hasNext()) {\n currentSpecies = it.next();\n if(currentSpecies.getSpeciesName().equals(nameLower)) {\n rv = currentSpecies;\n break;\n }\n }\n if(rv == null) {\n throw new PokedexException(String.format(Config.UNSEEN_POKEMON, name));\n }\n return rv;\n }",
"public String getHotelName() {\n\t\t\treturn Name;\r\n\t\t}",
"@Override\n\tpublic Editore getOneByName(String name) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Order1> selOrder1(String name, String foodname, String time) {\n\t\treturn order1Mapper.selOrder1(name, foodname, time);\n\t}",
"ResultSet searchName(String name) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon WHERE Name = \" + \"'\" + name + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }",
"public HotelCard searchHotel() {\n System.out.println(ANSI() + \"Here is your hotel card list:\" + ANSI_RESET);\n // Presentation of player's hotel card list\n for (HotelCard hc : hotel_list) {\n System.out.print(ANSI() + \"Hotel Name: \" + hc.getName() + ANSI_RESET);\n System.out.print(ANSI() + \", Hotel ID: \" + hc.getID() + ANSI_RESET);\n System.out.println(ANSI() + \", Hotel Ranking: \" + hc.getRank() + ANSI_RESET);\n }\n System.out.println(ANSI() + \"Please type the id of the hotel you choose\" + ANSI_RESET);\n boolean answer = false;\n while (answer == false) {\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int ID;\n try { \n ID = Integer.parseInt(str);\n // Search for the hotel card with user's given ID \n for (HotelCard hc : hotel_list) \n if (hc.getID() == ID) return hc; \n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET); \n } catch (Exception e) {\n System.out.println(ANSI() + \"Please type a valid ID\" + ANSI_RESET);\n }\n }\n // Junk \n return null;\n }",
"public Customer getSpecificCustomerByName(String name){\n Customer specificCustomer = null;\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer WHERE FirstName LIKE ? OR LastName LIKE ?\");\n preparedStatement.setString(1, name);\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n specificCustomer = new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n );\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return specificCustomer;\n }",
"private Order findRecentOrder(String productName) {\r\n for (int i = 0; i < orderHistory.size(); i++) {\r\n if (orderHistory.get(i).getProductName().equalsIgnoreCase(productName)) {\r\n return orderHistory.get(i);\r\n }\r\n }\r\n return null;\r\n }",
"@Override\n\tpublic ComplitedOrderInfo findOne(String arg0) {\n\t\treturn null;\n\t}",
"public Location getHome(UUID uuid, String name){\r\n\t\t//Load Map (Update)\r\n\t\tloadMap();\r\n\t\t//Combovar of Homename & UUID of Player\r\n\t\tString uniqhome = uuid.toString() + name;\r\n\r\n\t\t//Reads the HomePoint and returns its Location\r\n\t\ttry{\r\n\t\t\tStringTokenizer toker = new StringTokenizer(map.get(uniqhome), \";\");\r\n\t\t\tLocation loc = new Location(Bukkit.getWorld(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tDouble.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tFloat.valueOf(toker.nextToken()), Float.valueOf(toker.nextToken()));\r\n\r\n\t\t\treturn loc;\r\n\r\n\t\t} catch(NullPointerException e){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"E getByName(String name);",
"public T get(String name) {\n for (int i = maps.size() - 1; i >= 0; i--) {\n HashMap<String, T> scope = maps.get(i);\n T t = scope.get(name);\n if (t != null) return t; // Found it!\n }\n return null; // Not found\n }",
"public static Item getItemByName(String name)\n\t{\n\t\tfor(Item i : itemCollections)\n\t\t{\n\t\t\tif(i.getName() == name)\n\t\t\t\treturn i;\n\t\t}\n\t\tfor(Equipment equ : equipmentCollections)\n\t\t{\n\t\t\tif(equ.getName() == name)\n\t\t\t\treturn equ;\n\t\t}\n\t\treturn null;\n\t}",
"public NameSurferEntry findEntry(String name) {\n\t\tchar ch = name.charAt(0);\n\t\tif(Character.isLowerCase(ch) == true) {\n\t\t\tch = Character.toUpperCase(ch);\n\t\t}\n\t\tString otherLetters = name.substring(1);\n\t\totherLetters = otherLetters.toLowerCase();\n\t\tname = ch + otherLetters;\n\t\tif (nameFromDatabase.containsKey(name)) {\n\t\t\treturn nameFromDatabase.get(name);\n\t\t}\t\t\t\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}",
"Road findByName(String toFind, ArrayList<Road> list)\n\t{\n\t\tRoad tmp;\n\t\tIterator<Road> it = list.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\ttmp = it.next();\n\t\t\tif(tmp.getName().equals(toFind))\n\t\t\t{\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Service consultName(String name){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \tcriteria.add(Restrictions.like(\"name\",name));\r\n \treturn (Service)criteria.list().get(0);\r\n }",
"Sym lookupLocal(String name) throws EmptySymTableException {\n\n\t\tfirstMap = list.getFirst(); // First hashmap in list\n\n\t\t// if SymTable's list empty, throw Empty\n\t\tif (list.isEmpty()) {\n\t\t\tthrow new EmptySymTableException();\n\t\t} else { // else, if the first HashMap in list contains name as key\n\t\t\tsym = firstMap.get(name);// return associated sym\n\t\t}\n\t\treturn sym;\n\t}",
"private Jogador getJogadorByName(String nomeJogador) throws Exception {\n for (int i = 0; i < this.listaJogadores.size(); i++) {\n Jogador j = this.listaJogadores.get(i);\n\n if (j.getNome().equals(nomeJogador)) {\n return j;\n }\n }\n\n throw new Exception(\"Player doesn't exist\");\n }",
"public Individual getIndividualByName(String name) throws ObjectNotFoundException{\n \t\n\t\tList<Individual> individualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter = 0;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\n\t\t\tif (individual.getName().equals(name)) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (size == individualList.size() && counter == 0)\n\t\t\tthrow new ObjectNotFoundException(\"individual\", \"name\", name);\n\n\t\treturn individual;\n\n\n }",
"@Override\n\tpublic Legacydb fetchByName_First(String name,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tList<Legacydb> list = findByName(name, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic City getCityByName(String cityName, String countryName) {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\r\n\t\tList<City> list=new ArrayList<City>();\r\n\r\n\t\tQuery query=session.createQuery(\"from City where name= :cityName and country.name = :countryName\");\r\n\t\tquery.setParameter(\"cityName\", cityName);\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tlist=query.list();\r\n\t\t\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\tif(list.size()>0)\r\n\t\t\treturn list.get(0);\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"private Employee findEmployee(String employeeName)\n {\n int index = -1;\n //nameJRadioButtonMenuItem.doClick();\n for(int i = 0; i < employees.size(); i++)\n {\n if(employeeName.equals(employees.get(i).getName()))\n index = i;\n }\n if(index >= 0)\n return employees.get(index);\n else\n return null;\n }",
"public Emp getEmpByName(String name, Dept deptname) throws Exception {\n\t\tEmp emp = null;\n\t\tSession session=null;\n\ttry{\n\t\tsession= sf.openSession();\n\t\tDetachedCriteria dc = DetachedCriteria.forClass(Emp.class);\n\t\t/*\n\t\t * if (name != null) { dc.add(Restrictions.eq(\"ename\", name)); }\n\t\t */if (name != null) {\n\t\t\tdc.add(Restrictions.and(Restrictions.eq(\"ename\", name),\n\t\t\t\t\tRestrictions.eq(\"dept\", deptname)));\n\t\t}\n\t\t/*\n\t\t * if (deptname != null) { dc.add(Restrictions.eq(\"dept_id\", deptname));\n\t\t * }\n\t\t */\n\t\tCriteria c = dc.getExecutableCriteria(session);\n\t\tList<Emp> list = c.list();\n\t\tif (list.size() > 0) {\n\t\t\temp = list.get(0);\n\t\t}\n\t}catch (Exception e) {\n\t\t// TODO: handle exception\n\t\te.printStackTrace();\n\t}finally{\n\t\tif(session!=null)\n\t\t\tsession.close();\n\t}\n\t\treturn emp;\n\t}",
"public Book getBookByName(final String name) {\n final TypedQuery<Book> query = entityManager.createQuery(\"select b from Book b where b.name like :name\",\n Book.class).setParameter(\"name\", name);\n try {\n return query.getSingleResult();\n } catch (final PersistenceException ex) {\n return null;\n }\n }",
"@Override\n @Transactional\n public City getCityByName(String name) {\n List<City> city = cityRepository.findByNameIgnoreCase(name).get();\n if (city.isEmpty()) {\n throw new NotFoundException(\"Did not find city: \" + name);\n }\n return city.get(0);\n }",
"public NodeP findPatient (String name){\r\n NodeP current = front;\r\n \r\n while (!current.getPatient().getName().trim().equalsIgnoreCase(name)){\r\n current = current.getNext();\r\n }\r\n return current;\r\n }",
"public Stock getFromMap(String name){\n\tif(table.containsKey(name)){\n\tStock rval = table.get(name);\n\treturn rval;\n\t}\n\telse{\n\t\t//call pull from URL and return newStock \n\t\taddToMap(String name, Stock newStock);\n\t\tgetFromMap(name);\n\t}\n}",
"public UserGroup findByName(String name) {\n\t\tQuery q;\n\t\tUserGroup results = null;\n\t\tq = sessionFactory.getCurrentSession().createQuery(\"from UserGroup where webaddress=:name\").setParameter(\"name\", name);\n\t\ttry {\n\t\t\tresults = (UserGroup) q.getResultList().get(0);\n\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(\"array index out of bound\" + \" result not found\");\n\t\t}\n\n\t\treturn results;\n\t}",
"public ListWord findAList(String name) {\n for (ListWord list: list) {\n if (list.getName().equals(name)) {\n return list;\n }\n }\n return null;\n }",
"private Node find(Order ord){\n\t\tNode position=head;\n\t\tOrder ItemPosition;\n\t\twhile (position!=null){\n\t\t\tItemPosition = position.ord;\n\t\t\tif(ItemPosition.equals(ord)) {\n\t\t\t\tposition=bestBid;\n\t\t\t\treturn position;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private int findEmp(String name) {\n int i;\n for (i = 0; i <= counter; i++) {\n \tif(employees[i].name.equals(name))\n \t\treturn i;\n }\n return -1;\n\t}",
"public Landmark getByName(String name){\n if( name == null ){\n return null;\n }\n else{\n return this.map.get(name);\n }\n }",
"public synchronized OptionSet findOneOptSetByName(String name) {\n ArrayList<OptionSet> optionSets = this.getOptionSet();\n for (int i = 0; i < optionSets.size(); ++i) {\n if (name.equals(optionSets.get(i).getName())) {\n return optionSets.get(i);\n }\n }\n return null;\n }",
"Object find(String name);",
"RiceCooker getByName(String name);",
"@Override\r\n\tpublic Customer search(String name) {\n\t\treturn null;\r\n\t}",
"private T getMinUnvisited(){\n if (unvisited.isEmpty()) return null;\n T min = unvisited.get(0);\n for (int i = 1; i < unvisited.size(); i++){\n T temp = unvisited.get(i);\n if (distances[vertexIndex(temp)] < distances[vertexIndex(min)]){\n min = temp;\n }\n }\n return min;\n }",
"@Override\n\tpublic Zongjie findByname(String name) {\n\t\treturn zongjieDao.findByname(name);\n\t}",
"public List<String> getAlphaVesselNameSuggest(String name) {\n List<String> alphaNameList = new ArrayList<String>();\n \n try {\n // create http entity class with common headers\n HttpEntity entity = new HttpEntity(headers);\n NodeServiceListResponse<AlphaVessel> response = new NodeServiceListResponse<AlphaVessel>(\n AlphaVessel.class);\n\n // retrieve the response from the node service call\n response = NodeServicesUtil.getNodeListResponse(targetUrl + \"vessel/filterAlphas?q=\" + name,\n entity, HttpMethod.GET, response, null);\n\n // retrieve data from the response object\n List<AlphaVessel> vslList = response.getConvertedData();\n\n // remove duplicates from result set\n for (AlphaVessel vsl : vslList) {\n if (!alphaNameList.contains(vsl.getName())) {\n alphaNameList.add(vsl.getName());\n }\n }\n\n // sort the results set\n Collections.sort(alphaNameList, String.CASE_INSENSITIVE_ORDER);\n\n // catch and log all errors from the service\n } catch (Exception e) {\n // error getting data\n LOG.error(\"There was an error getting alpha vessel names: \" + e);\n }\n\n return alphaNameList;\n }",
"public City<E> city(String name){\n\t\tint index = -1;\n\t\tint i;\n\t\tint size = graphList.size();\n\t\tfor(i=0;i<size;i++){\n\t\t\tif(graphList.get(i).getName().equals(name)){\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\tif(index == -1){\n\t\t\tSystem.out.println(\"Edge can't be built because city cant be found, in Graph city method\");\n\t\t\treturn null;\n\t\t}\n\t\treturn graphList.get(index);\n\t}",
"public static Node lookupNode(Universe universe, String name) {\n return getAutoNodeIndex(universe).get(\"name\", name).getSingle();\n }",
"static public Person searchPerson(String name) {\n return personMap.get(name);\n }",
"public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }",
"public Person getPerson(String personName)\n {\n Person currentPerson = characters.get(0);\n // get each person object in characters's array list.\n for (Person person : characters){\n if (person.getName().equals(personName)){\n currentPerson = person;\n }\n }\n return currentPerson;\n }",
"public Room getRoom(String name) {\n\n if (room1.getGuest() != null && room1.getGuest().getName().equals(name)) { // If room 1 has a guest and that guest has the name of the guest being requested\n\n return room1;\n\n } else if(room2.getGuest() != null && room2.getGuest().getName().equals(name)) { // If room 2 has a guest and that guest has the name of the guest being requested\n\n return room2;\n\n }\n\n else return null; // If no guest with such name occupies room\n }",
"public static Element addOrGet(String name)\n\t{\n\t\tString lowerName = name.toLowerCase();\n\t\t\n\t\tif(LIST_OF_ACTIVE_ELEMENT.containsKey(lowerName))\n\t\t\treturn LIST_OF_ACTIVE_ELEMENT.get(lowerName);\n\t\telse if(LIST_OF_UNACTIVE_ELEMENT.containsKey(lowerName))\n\t\t\treturn LIST_OF_UNACTIVE_ELEMENT.get(lowerName);\n\t\telse\n\t\t\treturn new Element(lowerName);\n\t}",
"public static Sensor getSensor(String name, String address) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\tif (mSensors.get(x).mAddress.equals(address))\n\t\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic Hoja1S getHoja1SByName(String nameHoja1S) {\n\t\treturn (Hoja1S) getCxcSession().createQuery(\"from Hoja1S where nombre = :nameHoja1S\")\n\t\t\t\t.setParameter(\"nameHoja1S\", nameHoja1S).uniqueResult();\n\t}",
"public Integer findFoodName(String food_name) {\n\t\treturn foodDao.findFoodName(food_name);\r\n\t}",
"private int findIndexByName(String name) {\n // for each item in stock, while item var isn't unassigned:\n for (int i = 0; i < this._noOfItems; i++) {\n // if name is the same, return current index - to the first place where the same name was found\n if (this._stock[i].getName().equals(name))\n return i;\n }\n // if not found, return -1\n return -1;\n }",
"public Symbol findEntryGlobal(String name){\n\t\tList<SymbolEntry> l = symbolMap.get(name);\n\t\tif(l == null)\n\t\t\treturn null;\n\t\treturn l.get(0).symbol;\n\t}",
"public static RefinementPhases getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tRefinementPhases result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private static PizzaModel getCheapest(ArrayList<PizzaModel> pizzaGroup){\n\t\tPizzaModel cheapestPizza = pizzaGroup.get(0);\n\t\tfor(PizzaModel p : pizzaGroup){\n\t\t\tif(p.getPrice()<= cheapestPizza.getPrice())\n\t\t\t\tcheapestPizza = p;\n\t\t}\n\t\treturn cheapestPizza;\n\t}",
"Optional<Restaurante> findFirstByNomeContaining(String nome);",
"private Node search(Node traverse, String name)\r\n\t{\t\r\n\t\t// Haven't reached a dead-end yet\r\n\t\tif(traverse != null)\r\n\t\t{\r\n\t\t\t// Check to see if the current Node matches the String\r\n\t\t\tif(name.equalsIgnoreCase(traverse.getName()))\r\n\t\t\t{\r\n\t\t\t\t// return the location of the node\r\n\t\t\t\treturn traverse;\r\n\t\t\t}\r\n\t\t\t// The name is lexicographically less than the current Node's name\r\n\t\t\telse if(name.compareToIgnoreCase(traverse.getName()) < 0)\r\n\t\t\t{\r\n\t\t\t\t// Keep searching through the left subtree\r\n\t\t\t\treturn search(traverse.getLeftChild(), name); \r\n\t\t\t}\r\n\t\t\t// The name is lexicographically greater than the current Node's name\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Keep searching through the right subtree\r\n\t\t\t\treturn search(traverse.getRightChild(), name);\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t// Node not found in the Binary Tree\r\n\t\treturn null;\r\n\t}",
"public ETLHop getETLHop(String etlStepName) {\r\n\t\tETLHop etlHopFound = null;\r\n\t\tfor (ETLHop etlHop : etlHops) {\r\n\t\t\tif (etlStepName.equals(etlHop.getFromStepName())) {\r\n\t\t\t\t// We found the hop that starts at etlStep\r\n\t\t\t\tetlHopFound = new ETLHop(etlHop);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn etlHopFound;\r\n\t}",
"public static Item getItem(String itemName)\n {\n Item temp = null;\n for (Item inventory1 : inventory) {\n if (inventory1.getName().equals(itemName)) {\n temp = inventory1;\n }\n }\n return temp;\n }",
"public static Sensor getSensor(String name) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public int searchFriends(String name) {\n\n int index = -1;\n\n if (name != null) {\n\n Schedule sched;\n for (int i = 0; i < buddies.size(); i++) {\n\n sched = buddies.get(i);\n\n if (name.equals(sched.getWhosSchedule())) {\n \n index = i;\n break;\n }\n }\n }\n\n return index;\n }",
"AirlineEntity findByName(String name);",
"public Element getOneEnemy(String name){\r\n\t\t//follow the commentarys of the player group, getOneCharacter, just doesn´t have its own where\r\n\t\treturn loadFile(getFile(getWanted(getFile(getWanted(RPGSystem.getRPGSystem().getWhere(), \"Enemys\")), name)));\r\n\t}",
"@Override\n\tpublic Coach findCoachByCoach_name(String coach_name) {\n\t\tString hql = \"from Coach where coach_name = ?\";\n\t\tList<Coach> list = (List<Coach>) this.getHibernateTemplate().find(hql, coach_name);\n\t\tif(list != null && list.size() > 0){\n\t\t\treturn list.get(0);\n\t\t}\n\t\treturn null;\n\t}",
"public static DistributionState getByName(String name) {\r\n for(int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n DistributionState result = VALUES_ARRAY[i];\r\n if(result.getName().equals(name)) {\r\n return result;\r\n }\r\n }\r\n return null;\r\n }",
"public void addHotelName(String name) {\n\t\t\tName = name;\r\n\t\t}",
"private Node search(String name)\r\n\t{\r\n\t\t// Check to see if the list is empty\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\t// Return null which will be checked for by the method that called it\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Tree is not empty so use the recursive search method starting at the root reference \r\n\t\t// to find the correct Node containing the String name\r\n\t\treturn search(getRoot(), name);\r\n\t}",
"public static Instance<PlaceNode> findPlaceByName(String name, List<Instance<PlaceNode>> allPlaces)\r\n\t{\t\r\n\t\tfor (Instance<PlaceNode> p : allPlaces)\r\n\t\t{\r\n\t\t\tif (p.toString().equals(name))\r\n\t\t\t{\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new java.lang.Error(\"No place with this name could be found.\");\r\n\t}"
]
| [
"0.6262221",
"0.611033",
"0.59959286",
"0.59717435",
"0.5886934",
"0.5831933",
"0.5822948",
"0.5535157",
"0.55270195",
"0.55180293",
"0.55007845",
"0.54946",
"0.5483882",
"0.54671806",
"0.5456379",
"0.5452976",
"0.54373497",
"0.54180944",
"0.539823",
"0.53969425",
"0.53903645",
"0.5365347",
"0.535946",
"0.53582424",
"0.5326874",
"0.5326205",
"0.5289925",
"0.52896947",
"0.5279597",
"0.5270574",
"0.5268654",
"0.5266437",
"0.525964",
"0.52419794",
"0.5237107",
"0.5237028",
"0.52307385",
"0.5218989",
"0.5204756",
"0.51802355",
"0.516087",
"0.5154389",
"0.51503396",
"0.5145846",
"0.51409304",
"0.51347965",
"0.5131849",
"0.5131742",
"0.51288843",
"0.5126874",
"0.51192075",
"0.5114783",
"0.5104141",
"0.50986737",
"0.50771475",
"0.50733125",
"0.5068471",
"0.5064188",
"0.5058194",
"0.50508887",
"0.5049972",
"0.50420403",
"0.5041913",
"0.5039508",
"0.5037953",
"0.503776",
"0.5029152",
"0.50263864",
"0.5024214",
"0.50214887",
"0.5016433",
"0.50145435",
"0.5014314",
"0.5005316",
"0.49973923",
"0.49967974",
"0.49949047",
"0.49897665",
"0.49887288",
"0.49756086",
"0.49740294",
"0.49711847",
"0.49620748",
"0.49515367",
"0.495075",
"0.49459732",
"0.49457836",
"0.49455258",
"0.49420354",
"0.4930493",
"0.49301067",
"0.4929305",
"0.49286082",
"0.4926371",
"0.4925084",
"0.49193132",
"0.49160376",
"0.4915843",
"0.4911648",
"0.4910777"
]
| 0.6026059 | 2 |
Returns the first hotel in the ordered set where name = &63;. | public com.Hotel.model.Hotel fetchByname_First(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Hotel> newHotelList = new ArrayList<>();\r\n\t\tfor(Hotel Hotel : showHotelList())\r\n\t\t{\r\n\t\t\tif(Hotel.getHotelName().equals(Name))\r\n\t\t\t\tnewHotelList.add(Hotel);\r\n\t\t}\r\n\t\treturn newHotelList;\r\n\t}",
"@Override\r\n\tpublic Product findCheapestProduct(String name) {\r\n\t\t\r\n\t\t// Build the url to match the products with provided name and return \r\n\t\t// them sorted by sale price in ascending order.\r\n\t\tString url = apiBaseUrl + \"/search?apiKey={apiKey}&query={name}&format={format}&sort={sort}&ord={ord}&numItems={numItems}\";\r\n\t\t\r\n\t\t// Create the parameters to replace in the url.\r\n\t\tMap<String, String> params = new HashMap<String, String>();\r\n\t\tparams.put(\"name\", name);\r\n\t\tparams.put(\"apiKey\", apiKey);\r\n\t\tparams.put(\"format\", \"json\");\r\n\t\tparams.put(\"sort\", \"price\");\r\n\t\tparams.put(\"ord\", \"asc\");\r\n\t\tparams.put(\"numItems\", \"1\");\r\n\t\t\r\n\t\tRestTemplate template = new RestTemplate();\r\n\t\tWalmartSearchResponse response = template.getForObject(url, WalmartSearchResponse.class, params);\r\n\t\tif (response.getTotalResults() > 0) {\r\n\t\t\tWalmartSearchResponseItem[] responseProducts = response.getItems();\r\n\t\t\treturn new Product(\r\n\t\t\t\t\tresponseProducts[0].getName(),\r\n\t\t\t\t\tresponseProducts[0].getSalePrice(),\r\n\t\t\t\t\tWALMART_LOCATION);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public com.Hotel.model.Hotel findByname_First(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public Amount<Mineral> searchByName(String name){\n\t\tfor(int i=0; i<this.mineralList.size(); i++) {\n\t\t\tif(this.mineralList.get(i).getObject().getName() == name)\n\t\t\t\treturn this.mineralList.get(i);\n\t\t}\n\t\treturn null;\n\t}",
"public Town getVertex(String name) {\n\t\tfor (Town t : towns) {\n\t\t\tif (t.getName().equals(name)) {\n\t\t\t\treturn t;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Hotel bestHotel() {\r\n \tArrayList<Hotel> hotels = hotelDAO.getHotelList();\r\n \tHotel bestHotel=hotels.get(0);\r\n \tfor (int i=0; i<hotels.size();i++) {\r\n \t\tif(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) {\r\n \t\t\tbestHotel=hotels.get(i);\r\n \t\t}\r\n \t}\r\n \treturn bestHotel;\r\n }",
"public Booking getBooking(String name) {\n\t\t\tint i = 0;\r\n\t\t\tBooking buffer;\r\n\t\t\t\r\n\t\t\twhile(i < Bookings.size()) {\r\n\t\t\t\tbuffer = Bookings.get(i);\r\n\t\t\t\tString Name = buffer.getBooker();\r\n\t\t\t\tif (name.contentEquals(Name)) {\r\n\t\t\t\t\treturn buffer;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}",
"public Guest getGuest(String name) {\n\t\tString checkName = name.toUpperCase();\n for (Guest guest : guestList) {\n if (guest.getName().toUpperCase().equals(checkName)){\n return guest;\n }\n }\n return null;\n }",
"public Location getLocationByName(String name) {\n\t\tfor (Location x : locations) {\n\t\t\tif (x.getName().equals(name))\n\t\t\t\treturn x;\n\t\t}\n\t\treturn null; \n\t}",
"public String getHotelName() {\n\t\treturn this.name;\n\t}",
"public Symbol findEntryLocal(String name){\n\t\tList<SymbolEntry> l = symbolMap.get(name);\n\t\tif(l == null || (l.get(0).level < scopeLevel))\n\t\t\treturn null;\n\t\treturn l.get(0).symbol;\n\t}",
"public Handle search(String name) {\n int homePos = hash(table, name);\n int pos;\n\n // QUADRATIC PROBE\n for (int i = 0; i < table.length; i++) {\n // possibly iterate over entire table, but will\n // likely stop before then\n pos = (homePos + i * i) % table.length;\n if (table[pos] == null) {\n break;\n }\n else if (table[pos] != GRAVESTONE\n && table[pos].getStringAt().equals(name)) {\n return table[pos];\n }\n } // end for\n\n return null;\n }",
"@Override\n\tpublic List<Hotel> getLowPricedHotels(String cityName, Session session) {\n\t\t// TODO Auto-generated method stub\n\t\tList<Hotel> hotelList = new ArrayList<Hotel>();\n\t\tCriteria cr = session.createCriteria(Hotel.class).add(Restrictions.eq(\"city\", cityName)).addOrder(Order.asc(\"tariff\")).setMaxResults(5);\n\t\thotelList = cr.list();\n\t\treturn hotelList;\n\t}",
"public static LinkedList<Actor> nameSearch(String name) {\n //sets name to lower case\n String hname = name.toLowerCase();\n //hashes the lower cased name\n int hash = Math.abs(hname.hashCode()) % ActorList.nameHashlist.length;\n //finds the location of the linked list\n LinkedList<Actor> location = ActorList.nameHashlist[hash];\n //sets the head to the head of the linked list\n LinkedList.DataLink head = location.header;\n\n\n while (head.nextDataLink != null) {\n //runs until next data link is null and gets each Actor\n Actor actor = (Actor) head.nextDataLink.data;\n //checks the name of the actor to inputted name\n if (actor.getName().toLowerCase().equals(hname)) {\n //if it's the same it returns the actor\n return location;\n //or moves to next link\n } else {\n head = head.nextDataLink;\n }\n }\n //returns null if the list does not match input\n return null;\n\n\n }",
"public java.util.List<com.Hotel.model.Hotel> findByname(\n\t\tjava.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"java.lang.String getHotelName();",
"private DTOCity cityFromName(String name) {\n\t\tfor(DTOCity c : this.cities) {\n\t\t\tif(c.getName().equals(name))\n\t\t\t\treturn c;\n\t\t}\n\t\tthrow new NoSuchElementException(\"Error in creating the DTO graph!\");\n\t}",
"public Address searchByName(String name) {\n if (name == null || !addressBook.containsKey(name))\n throw new NullPointerException();\n return addressBook.get(name);\n }",
"@Override\r\n\tpublic Plate findByName(String nom) {\n\t\treturn null;\r\n\t}",
"private int findIngredientByName(String name){\r\n for(int i = 0; i < ingredients.size(); i++){\r\n if(ingredients.get(i).getName().equals(name)){\r\n return i;\r\n }\r\n }\r\n\r\n return -1;\r\n }",
"private Node getNode(String name) {\n for(Iterator<Node> i = nodes.iterator(); i.hasNext();) {\n Node n = i.next();\n if(n.getName().equalsIgnoreCase(name)){\n return n;\n };\n }\n return null;\n }",
"public static Animal getByName(String name) {\n for(var animal : animals){\n if(animal.getName().equalsIgnoreCase(name))\n return animal;\n }\n return null;\n\n //Diffrent way of finding the animal\n /*return animals.stream()\n .filter(a -> a.getName().equalsIgnoreCase(name))\n .findAny()\n .orElse(null);*/\n }",
"public FoodInfo searchFoodInfo(String foodname){\n\t\t//boolean result = false;\n\t\tFoodInfo foodInfo = null;\n\t\ttry {\n\t\t\tConnection connection = this.getConnection();\n\t\t\tPreparedStatement stmt = connection.prepareStatement(\n\t\t\t\t\t\"SELECT * FROM foodinfo WHERE foodname=(?)\");\n\t\t\tstmt.setString(1,foodname);\n\t\t\tResultSet rs = stmt.executeQuery();\n\n\t\t\twhile(rs.next()) {\n\t\t\t\tfoodInfo = new FoodInfo();\n\t\t\t\tfoodInfo.setFoodName(rs.getString(1));\n\t\t\t\tfoodInfo.setEnergy(rs.getDouble(2));\n\t\t\t\tfoodInfo.setProtein(rs.getDouble(3));\n\t\t\t\tfoodInfo.setFiber(rs.getDouble(4));\n\t\t\t\tfoodInfo.setPrice(rs.getInt(5));\n\t\t\t}\n\t\t\trs.close();\n\t\t\tstmt.close();\n\t\t\tconnection.close();\n\n\n\t\t} catch (Exception e) {\n\t\t\tlog.info(e.getMessage());\n\t\t}\n\t\tfinally {\n\n\t\t}\n\t\treturn foodInfo;\n\t}",
"public Product getProductWithName(String name) {\n for (Product s : products) {\n if (s.getName() == name) { return s;}\n }\n return null;\n }",
"public Element findByName(String name) {\n for (Element element : this){\n if (element.getName().equals(name)) return element;\n }\n return null;\n }",
"public Person find(String name) {\n\t\tfor (Person person : listOfPeople) {\n\t\t\tif(person.getName().contains(name)) {\n\t\t\t\treturn person;\n\t\t\t}\n\t\t}\n\t\treturn null; // only reached if person with name not found by search.\n\t}",
"static BigDecimal FindMinPrice(String productname){\n\t\tLong prdname=Long.parseLong(productname);\n\t\tBigDecimal returnVal=new BigDecimal(0);\n\t\tif(productListOnNames.containsKey(prdname)){\n\t\t\tTreeMap<Long,BigDecimal> existingSet=productListOnNames.get(prdname);\n\n\t\t\treturnVal=Collections.min(existingSet.values());\n\n\t\t}\n\n\t\treturn returnVal;\n\n\t}",
"Heaver findByName(String name);",
"public SaveGameNode getFirstChild(String name) {\r\n SaveGameNode node;\r\n node = this.children.stream().filter(child -> child.equals(name)).findFirst().get();\r\n return node;\r\n }",
"public User getPlayer(String name) {\n\t\tUser ret = null;\n\t\tList<User> searchResult = this.players.stream().filter(x->x.name.equals(name)).collect(Collectors.toList());\n\t\tif (!searchResult.isEmpty()) {\n\t\t\tret = searchResult.get(0);\n\t\t}\n\t\treturn ret;\n\t}",
"public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }",
"public int search(String name){\n\t\tfor(Map.Entry<String, Integer> e : map.entrySet()){\n\t\t\tif(e.getKey().equals(name)){\n\t\t\t\treturn e.getValue();\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t/*\n\t\twhile(pointer < locations.length){\n\t\t\tif(locations[pointer].getName() == name){\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t\treturn locations[pointer - 1].getID();\n\t\t\t} else {\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t*/\n\t}",
"public Exercise getExercise(Name name) throws ExerciseNotFoundException {\n for (Exercise e : this.exercises) {\n if (e.getName().equals(name)) {\n return e;\n }\n }\n throw new ExerciseNotFoundException();\n }",
"@Override\n\tpublic Pizza getPizzaByName(String pizzaName) {\n\t\treturn mongoTemplate.findOne(Query.query(Criteria.where(\"name\").in(pizzaName)), Pizza.class);\n\t}",
"public PokemonSpecies findSeenSpeciesData(String name) throws PokedexException {\n PokemonSpecies rv = null;\n String nameLower = name.toLowerCase();\n Iterator<PokemonSpecies> it = pokedex.iterator();\n PokemonSpecies currentSpecies;\n while(it.hasNext()) {\n currentSpecies = it.next();\n if(currentSpecies.getSpeciesName().equals(nameLower)) {\n rv = currentSpecies;\n break;\n }\n }\n if(rv == null) {\n throw new PokedexException(String.format(Config.UNSEEN_POKEMON, name));\n }\n return rv;\n }",
"public String getHotelName() {\n\t\t\treturn Name;\r\n\t\t}",
"@Override\n\tpublic Editore getOneByName(String name) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Order1> selOrder1(String name, String foodname, String time) {\n\t\treturn order1Mapper.selOrder1(name, foodname, time);\n\t}",
"ResultSet searchName(String name) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon WHERE Name = \" + \"'\" + name + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }",
"public HotelCard searchHotel() {\n System.out.println(ANSI() + \"Here is your hotel card list:\" + ANSI_RESET);\n // Presentation of player's hotel card list\n for (HotelCard hc : hotel_list) {\n System.out.print(ANSI() + \"Hotel Name: \" + hc.getName() + ANSI_RESET);\n System.out.print(ANSI() + \", Hotel ID: \" + hc.getID() + ANSI_RESET);\n System.out.println(ANSI() + \", Hotel Ranking: \" + hc.getRank() + ANSI_RESET);\n }\n System.out.println(ANSI() + \"Please type the id of the hotel you choose\" + ANSI_RESET);\n boolean answer = false;\n while (answer == false) {\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int ID;\n try { \n ID = Integer.parseInt(str);\n // Search for the hotel card with user's given ID \n for (HotelCard hc : hotel_list) \n if (hc.getID() == ID) return hc; \n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET); \n } catch (Exception e) {\n System.out.println(ANSI() + \"Please type a valid ID\" + ANSI_RESET);\n }\n }\n // Junk \n return null;\n }",
"public Customer getSpecificCustomerByName(String name){\n Customer specificCustomer = null;\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer WHERE FirstName LIKE ? OR LastName LIKE ?\");\n preparedStatement.setString(1, name);\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n specificCustomer = new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n );\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return specificCustomer;\n }",
"private Order findRecentOrder(String productName) {\r\n for (int i = 0; i < orderHistory.size(); i++) {\r\n if (orderHistory.get(i).getProductName().equalsIgnoreCase(productName)) {\r\n return orderHistory.get(i);\r\n }\r\n }\r\n return null;\r\n }",
"@Override\n\tpublic ComplitedOrderInfo findOne(String arg0) {\n\t\treturn null;\n\t}",
"public Location getHome(UUID uuid, String name){\r\n\t\t//Load Map (Update)\r\n\t\tloadMap();\r\n\t\t//Combovar of Homename & UUID of Player\r\n\t\tString uniqhome = uuid.toString() + name;\r\n\r\n\t\t//Reads the HomePoint and returns its Location\r\n\t\ttry{\r\n\t\t\tStringTokenizer toker = new StringTokenizer(map.get(uniqhome), \";\");\r\n\t\t\tLocation loc = new Location(Bukkit.getWorld(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tDouble.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()), Double.valueOf(toker.nextToken()),\r\n\t\t\t\t\t\t\t\t\t\tFloat.valueOf(toker.nextToken()), Float.valueOf(toker.nextToken()));\r\n\r\n\t\t\treturn loc;\r\n\r\n\t\t} catch(NullPointerException e){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"E getByName(String name);",
"public T get(String name) {\n for (int i = maps.size() - 1; i >= 0; i--) {\n HashMap<String, T> scope = maps.get(i);\n T t = scope.get(name);\n if (t != null) return t; // Found it!\n }\n return null; // Not found\n }",
"public static Item getItemByName(String name)\n\t{\n\t\tfor(Item i : itemCollections)\n\t\t{\n\t\t\tif(i.getName() == name)\n\t\t\t\treturn i;\n\t\t}\n\t\tfor(Equipment equ : equipmentCollections)\n\t\t{\n\t\t\tif(equ.getName() == name)\n\t\t\t\treturn equ;\n\t\t}\n\t\treturn null;\n\t}",
"public NameSurferEntry findEntry(String name) {\n\t\tchar ch = name.charAt(0);\n\t\tif(Character.isLowerCase(ch) == true) {\n\t\t\tch = Character.toUpperCase(ch);\n\t\t}\n\t\tString otherLetters = name.substring(1);\n\t\totherLetters = otherLetters.toLowerCase();\n\t\tname = ch + otherLetters;\n\t\tif (nameFromDatabase.containsKey(name)) {\n\t\t\treturn nameFromDatabase.get(name);\n\t\t}\t\t\t\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}",
"Road findByName(String toFind, ArrayList<Road> list)\n\t{\n\t\tRoad tmp;\n\t\tIterator<Road> it = list.iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\ttmp = it.next();\n\t\t\tif(tmp.getName().equals(toFind))\n\t\t\t{\n\t\t\t\treturn tmp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public Service consultName(String name){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \tcriteria.add(Restrictions.like(\"name\",name));\r\n \treturn (Service)criteria.list().get(0);\r\n }",
"Sym lookupLocal(String name) throws EmptySymTableException {\n\n\t\tfirstMap = list.getFirst(); // First hashmap in list\n\n\t\t// if SymTable's list empty, throw Empty\n\t\tif (list.isEmpty()) {\n\t\t\tthrow new EmptySymTableException();\n\t\t} else { // else, if the first HashMap in list contains name as key\n\t\t\tsym = firstMap.get(name);// return associated sym\n\t\t}\n\t\treturn sym;\n\t}",
"private Jogador getJogadorByName(String nomeJogador) throws Exception {\n for (int i = 0; i < this.listaJogadores.size(); i++) {\n Jogador j = this.listaJogadores.get(i);\n\n if (j.getNome().equals(nomeJogador)) {\n return j;\n }\n }\n\n throw new Exception(\"Player doesn't exist\");\n }",
"public Individual getIndividualByName(String name) throws ObjectNotFoundException{\n \t\n\t\tList<Individual> individualList = new ArrayList<>();\n\t\tindividualList = (new TeamsJsonReader()).getListOfIndividuals();\n\t\tIndividual individual = null;\n\t\tint size, counter = 0;\n\t\tfor (size = 0; size < individualList.size(); size++) {\n\t\t\tcounter = 0;\n\n\t\t\tindividual = individualList.get(size);\n\n\t\t\tif (individual.getName().equals(name)) {\n\t\t\t\tcounter = 1;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif (size == individualList.size() && counter == 0)\n\t\t\tthrow new ObjectNotFoundException(\"individual\", \"name\", name);\n\n\t\treturn individual;\n\n\n }",
"@Override\n\tpublic Legacydb fetchByName_First(String name,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tList<Legacydb> list = findByName(name, 0, 1, orderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic City getCityByName(String cityName, String countryName) {\n\t\t\r\n\t\tSession session=HibernateUtil.getSessionFactory().getCurrentSession();\r\n\t\tsession.beginTransaction();\r\n\r\n\t\tList<City> list=new ArrayList<City>();\r\n\r\n\t\tQuery query=session.createQuery(\"from City where name= :cityName and country.name = :countryName\");\r\n\t\tquery.setParameter(\"cityName\", cityName);\r\n\t\tquery.setParameter(\"countryName\", countryName);\r\n\t\tlist=query.list();\r\n\t\t\r\n\t\tsession.getTransaction().commit();\r\n\t\t//session.flush();\r\n\t\t//session.close();\r\n\t\tif(list.size()>0)\r\n\t\t\treturn list.get(0);\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"private Employee findEmployee(String employeeName)\n {\n int index = -1;\n //nameJRadioButtonMenuItem.doClick();\n for(int i = 0; i < employees.size(); i++)\n {\n if(employeeName.equals(employees.get(i).getName()))\n index = i;\n }\n if(index >= 0)\n return employees.get(index);\n else\n return null;\n }",
"public Emp getEmpByName(String name, Dept deptname) throws Exception {\n\t\tEmp emp = null;\n\t\tSession session=null;\n\ttry{\n\t\tsession= sf.openSession();\n\t\tDetachedCriteria dc = DetachedCriteria.forClass(Emp.class);\n\t\t/*\n\t\t * if (name != null) { dc.add(Restrictions.eq(\"ename\", name)); }\n\t\t */if (name != null) {\n\t\t\tdc.add(Restrictions.and(Restrictions.eq(\"ename\", name),\n\t\t\t\t\tRestrictions.eq(\"dept\", deptname)));\n\t\t}\n\t\t/*\n\t\t * if (deptname != null) { dc.add(Restrictions.eq(\"dept_id\", deptname));\n\t\t * }\n\t\t */\n\t\tCriteria c = dc.getExecutableCriteria(session);\n\t\tList<Emp> list = c.list();\n\t\tif (list.size() > 0) {\n\t\t\temp = list.get(0);\n\t\t}\n\t}catch (Exception e) {\n\t\t// TODO: handle exception\n\t\te.printStackTrace();\n\t}finally{\n\t\tif(session!=null)\n\t\t\tsession.close();\n\t}\n\t\treturn emp;\n\t}",
"public Book getBookByName(final String name) {\n final TypedQuery<Book> query = entityManager.createQuery(\"select b from Book b where b.name like :name\",\n Book.class).setParameter(\"name\", name);\n try {\n return query.getSingleResult();\n } catch (final PersistenceException ex) {\n return null;\n }\n }",
"@Override\n @Transactional\n public City getCityByName(String name) {\n List<City> city = cityRepository.findByNameIgnoreCase(name).get();\n if (city.isEmpty()) {\n throw new NotFoundException(\"Did not find city: \" + name);\n }\n return city.get(0);\n }",
"public NodeP findPatient (String name){\r\n NodeP current = front;\r\n \r\n while (!current.getPatient().getName().trim().equalsIgnoreCase(name)){\r\n current = current.getNext();\r\n }\r\n return current;\r\n }",
"public Stock getFromMap(String name){\n\tif(table.containsKey(name)){\n\tStock rval = table.get(name);\n\treturn rval;\n\t}\n\telse{\n\t\t//call pull from URL and return newStock \n\t\taddToMap(String name, Stock newStock);\n\t\tgetFromMap(name);\n\t}\n}",
"public UserGroup findByName(String name) {\n\t\tQuery q;\n\t\tUserGroup results = null;\n\t\tq = sessionFactory.getCurrentSession().createQuery(\"from UserGroup where webaddress=:name\").setParameter(\"name\", name);\n\t\ttry {\n\t\t\tresults = (UserGroup) q.getResultList().get(0);\n\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n\t\t\tSystem.out.println(\"array index out of bound\" + \" result not found\");\n\t\t}\n\n\t\treturn results;\n\t}",
"public ListWord findAList(String name) {\n for (ListWord list: list) {\n if (list.getName().equals(name)) {\n return list;\n }\n }\n return null;\n }",
"private Node find(Order ord){\n\t\tNode position=head;\n\t\tOrder ItemPosition;\n\t\twhile (position!=null){\n\t\t\tItemPosition = position.ord;\n\t\t\tif(ItemPosition.equals(ord)) {\n\t\t\t\tposition=bestBid;\n\t\t\t\treturn position;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private int findEmp(String name) {\n int i;\n for (i = 0; i <= counter; i++) {\n \tif(employees[i].name.equals(name))\n \t\treturn i;\n }\n return -1;\n\t}",
"public Landmark getByName(String name){\n if( name == null ){\n return null;\n }\n else{\n return this.map.get(name);\n }\n }",
"public synchronized OptionSet findOneOptSetByName(String name) {\n ArrayList<OptionSet> optionSets = this.getOptionSet();\n for (int i = 0; i < optionSets.size(); ++i) {\n if (name.equals(optionSets.get(i).getName())) {\n return optionSets.get(i);\n }\n }\n return null;\n }",
"Object find(String name);",
"RiceCooker getByName(String name);",
"@Override\r\n\tpublic Customer search(String name) {\n\t\treturn null;\r\n\t}",
"private T getMinUnvisited(){\n if (unvisited.isEmpty()) return null;\n T min = unvisited.get(0);\n for (int i = 1; i < unvisited.size(); i++){\n T temp = unvisited.get(i);\n if (distances[vertexIndex(temp)] < distances[vertexIndex(min)]){\n min = temp;\n }\n }\n return min;\n }",
"@Override\n\tpublic Zongjie findByname(String name) {\n\t\treturn zongjieDao.findByname(name);\n\t}",
"public List<String> getAlphaVesselNameSuggest(String name) {\n List<String> alphaNameList = new ArrayList<String>();\n \n try {\n // create http entity class with common headers\n HttpEntity entity = new HttpEntity(headers);\n NodeServiceListResponse<AlphaVessel> response = new NodeServiceListResponse<AlphaVessel>(\n AlphaVessel.class);\n\n // retrieve the response from the node service call\n response = NodeServicesUtil.getNodeListResponse(targetUrl + \"vessel/filterAlphas?q=\" + name,\n entity, HttpMethod.GET, response, null);\n\n // retrieve data from the response object\n List<AlphaVessel> vslList = response.getConvertedData();\n\n // remove duplicates from result set\n for (AlphaVessel vsl : vslList) {\n if (!alphaNameList.contains(vsl.getName())) {\n alphaNameList.add(vsl.getName());\n }\n }\n\n // sort the results set\n Collections.sort(alphaNameList, String.CASE_INSENSITIVE_ORDER);\n\n // catch and log all errors from the service\n } catch (Exception e) {\n // error getting data\n LOG.error(\"There was an error getting alpha vessel names: \" + e);\n }\n\n return alphaNameList;\n }",
"public City<E> city(String name){\n\t\tint index = -1;\n\t\tint i;\n\t\tint size = graphList.size();\n\t\tfor(i=0;i<size;i++){\n\t\t\tif(graphList.get(i).getName().equals(name)){\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\tif(index == -1){\n\t\t\tSystem.out.println(\"Edge can't be built because city cant be found, in Graph city method\");\n\t\t\treturn null;\n\t\t}\n\t\treturn graphList.get(index);\n\t}",
"public static Node lookupNode(Universe universe, String name) {\n return getAutoNodeIndex(universe).get(\"name\", name).getSingle();\n }",
"static public Person searchPerson(String name) {\n return personMap.get(name);\n }",
"public Movie findMovie(String name){\n\n Movie find = null ;\n\n for (Movie movie :movies) {\n\n if(movie.getTitle().equals(name)){\n\n find = movie;\n\n }\n\n }\n\n return find;\n\n }",
"public Person getPerson(String personName)\n {\n Person currentPerson = characters.get(0);\n // get each person object in characters's array list.\n for (Person person : characters){\n if (person.getName().equals(personName)){\n currentPerson = person;\n }\n }\n return currentPerson;\n }",
"public Room getRoom(String name) {\n\n if (room1.getGuest() != null && room1.getGuest().getName().equals(name)) { // If room 1 has a guest and that guest has the name of the guest being requested\n\n return room1;\n\n } else if(room2.getGuest() != null && room2.getGuest().getName().equals(name)) { // If room 2 has a guest and that guest has the name of the guest being requested\n\n return room2;\n\n }\n\n else return null; // If no guest with such name occupies room\n }",
"public static Element addOrGet(String name)\n\t{\n\t\tString lowerName = name.toLowerCase();\n\t\t\n\t\tif(LIST_OF_ACTIVE_ELEMENT.containsKey(lowerName))\n\t\t\treturn LIST_OF_ACTIVE_ELEMENT.get(lowerName);\n\t\telse if(LIST_OF_UNACTIVE_ELEMENT.containsKey(lowerName))\n\t\t\treturn LIST_OF_UNACTIVE_ELEMENT.get(lowerName);\n\t\telse\n\t\t\treturn new Element(lowerName);\n\t}",
"public static Sensor getSensor(String name, String address) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\tif (mSensors.get(x).mAddress.equals(address))\n\t\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic Hoja1S getHoja1SByName(String nameHoja1S) {\n\t\treturn (Hoja1S) getCxcSession().createQuery(\"from Hoja1S where nombre = :nameHoja1S\")\n\t\t\t\t.setParameter(\"nameHoja1S\", nameHoja1S).uniqueResult();\n\t}",
"public Integer findFoodName(String food_name) {\n\t\treturn foodDao.findFoodName(food_name);\r\n\t}",
"private int findIndexByName(String name) {\n // for each item in stock, while item var isn't unassigned:\n for (int i = 0; i < this._noOfItems; i++) {\n // if name is the same, return current index - to the first place where the same name was found\n if (this._stock[i].getName().equals(name))\n return i;\n }\n // if not found, return -1\n return -1;\n }",
"public Symbol findEntryGlobal(String name){\n\t\tList<SymbolEntry> l = symbolMap.get(name);\n\t\tif(l == null)\n\t\t\treturn null;\n\t\treturn l.get(0).symbol;\n\t}",
"public static RefinementPhases getByName(String name) {\n\t\tfor (int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tRefinementPhases result = VALUES_ARRAY[i];\n\t\t\tif (result.getName().equals(name)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private static PizzaModel getCheapest(ArrayList<PizzaModel> pizzaGroup){\n\t\tPizzaModel cheapestPizza = pizzaGroup.get(0);\n\t\tfor(PizzaModel p : pizzaGroup){\n\t\t\tif(p.getPrice()<= cheapestPizza.getPrice())\n\t\t\t\tcheapestPizza = p;\n\t\t}\n\t\treturn cheapestPizza;\n\t}",
"Optional<Restaurante> findFirstByNomeContaining(String nome);",
"private Node search(Node traverse, String name)\r\n\t{\t\r\n\t\t// Haven't reached a dead-end yet\r\n\t\tif(traverse != null)\r\n\t\t{\r\n\t\t\t// Check to see if the current Node matches the String\r\n\t\t\tif(name.equalsIgnoreCase(traverse.getName()))\r\n\t\t\t{\r\n\t\t\t\t// return the location of the node\r\n\t\t\t\treturn traverse;\r\n\t\t\t}\r\n\t\t\t// The name is lexicographically less than the current Node's name\r\n\t\t\telse if(name.compareToIgnoreCase(traverse.getName()) < 0)\r\n\t\t\t{\r\n\t\t\t\t// Keep searching through the left subtree\r\n\t\t\t\treturn search(traverse.getLeftChild(), name); \r\n\t\t\t}\r\n\t\t\t// The name is lexicographically greater than the current Node's name\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Keep searching through the right subtree\r\n\t\t\t\treturn search(traverse.getRightChild(), name);\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t// Node not found in the Binary Tree\r\n\t\treturn null;\r\n\t}",
"public ETLHop getETLHop(String etlStepName) {\r\n\t\tETLHop etlHopFound = null;\r\n\t\tfor (ETLHop etlHop : etlHops) {\r\n\t\t\tif (etlStepName.equals(etlHop.getFromStepName())) {\r\n\t\t\t\t// We found the hop that starts at etlStep\r\n\t\t\t\tetlHopFound = new ETLHop(etlHop);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn etlHopFound;\r\n\t}",
"public static Item getItem(String itemName)\n {\n Item temp = null;\n for (Item inventory1 : inventory) {\n if (inventory1.getName().equals(itemName)) {\n temp = inventory1;\n }\n }\n return temp;\n }",
"public static Sensor getSensor(String name) {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tif (mSensors.get(x).mName.equals(name)) {\n\t\t\t\treturn mSensors.get(x);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public int searchFriends(String name) {\n\n int index = -1;\n\n if (name != null) {\n\n Schedule sched;\n for (int i = 0; i < buddies.size(); i++) {\n\n sched = buddies.get(i);\n\n if (name.equals(sched.getWhosSchedule())) {\n \n index = i;\n break;\n }\n }\n }\n\n return index;\n }",
"AirlineEntity findByName(String name);",
"public Element getOneEnemy(String name){\r\n\t\t//follow the commentarys of the player group, getOneCharacter, just doesn´t have its own where\r\n\t\treturn loadFile(getFile(getWanted(getFile(getWanted(RPGSystem.getRPGSystem().getWhere(), \"Enemys\")), name)));\r\n\t}",
"@Override\n\tpublic Coach findCoachByCoach_name(String coach_name) {\n\t\tString hql = \"from Coach where coach_name = ?\";\n\t\tList<Coach> list = (List<Coach>) this.getHibernateTemplate().find(hql, coach_name);\n\t\tif(list != null && list.size() > 0){\n\t\t\treturn list.get(0);\n\t\t}\n\t\treturn null;\n\t}",
"public static DistributionState getByName(String name) {\r\n for(int i = 0; i < VALUES_ARRAY.length; ++i) {\r\n DistributionState result = VALUES_ARRAY[i];\r\n if(result.getName().equals(name)) {\r\n return result;\r\n }\r\n }\r\n return null;\r\n }",
"public void addHotelName(String name) {\n\t\t\tName = name;\r\n\t\t}",
"private Node search(String name)\r\n\t{\r\n\t\t// Check to see if the list is empty\r\n\t\tif(isEmpty())\r\n\t\t{\r\n\t\t\t// Return null which will be checked for by the method that called it\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t// Tree is not empty so use the recursive search method starting at the root reference \r\n\t\t// to find the correct Node containing the String name\r\n\t\treturn search(getRoot(), name);\r\n\t}",
"public static Instance<PlaceNode> findPlaceByName(String name, List<Instance<PlaceNode>> allPlaces)\r\n\t{\t\r\n\t\tfor (Instance<PlaceNode> p : allPlaces)\r\n\t\t{\r\n\t\t\tif (p.toString().equals(name))\r\n\t\t\t{\r\n\t\t\t\treturn p;\r\n\t\t\t}\r\n\t\t}\r\n\t\tthrow new java.lang.Error(\"No place with this name could be found.\");\r\n\t}"
]
| [
"0.6262221",
"0.611033",
"0.6026059",
"0.59717435",
"0.5886934",
"0.5831933",
"0.5822948",
"0.5535157",
"0.55270195",
"0.55180293",
"0.55007845",
"0.54946",
"0.5483882",
"0.54671806",
"0.5456379",
"0.5452976",
"0.54373497",
"0.54180944",
"0.539823",
"0.53969425",
"0.53903645",
"0.5365347",
"0.535946",
"0.53582424",
"0.5326874",
"0.5326205",
"0.5289925",
"0.52896947",
"0.5279597",
"0.5270574",
"0.5268654",
"0.5266437",
"0.525964",
"0.52419794",
"0.5237107",
"0.5237028",
"0.52307385",
"0.5218989",
"0.5204756",
"0.51802355",
"0.516087",
"0.5154389",
"0.51503396",
"0.5145846",
"0.51409304",
"0.51347965",
"0.5131849",
"0.5131742",
"0.51288843",
"0.5126874",
"0.51192075",
"0.5114783",
"0.5104141",
"0.50986737",
"0.50771475",
"0.50733125",
"0.5068471",
"0.5064188",
"0.5058194",
"0.50508887",
"0.5049972",
"0.50420403",
"0.5041913",
"0.5039508",
"0.5037953",
"0.503776",
"0.5029152",
"0.50263864",
"0.5024214",
"0.50214887",
"0.5016433",
"0.50145435",
"0.5014314",
"0.5005316",
"0.49973923",
"0.49967974",
"0.49949047",
"0.49897665",
"0.49887288",
"0.49756086",
"0.49740294",
"0.49711847",
"0.49620748",
"0.49515367",
"0.495075",
"0.49459732",
"0.49457836",
"0.49455258",
"0.49420354",
"0.4930493",
"0.49301067",
"0.4929305",
"0.49286082",
"0.4926371",
"0.4925084",
"0.49193132",
"0.49160376",
"0.4915843",
"0.4911648",
"0.4910777"
]
| 0.59959286 | 3 |
Returns the last hotel in the ordered set where name = &63;. | public com.Hotel.model.Hotel findByname_Last(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.Hotel.model.Hotel fetchByname_Last(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"@Override\n\tpublic Legacydb fetchByName_Last(String name,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByName(name);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<Legacydb> list = findByName(name, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public Himmelskoerper remove(String name) {\r\n\t\tHimmelskoerper himmelskoerper = null;\r\n\t\tfor (Himmelskoerper hTemp : ladung.keySet()) {\r\n\t\t\tif (hTemp.getName().equals(name)) {\r\n\t\t\t\thimmelskoerper = hTemp;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (himmelskoerper != null) {\r\n\t\t\tthis.aktuelleLast -= this.ladung.get(himmelskoerper).getGewicht();\r\n\t\t\tthis.ladung.remove(himmelskoerper);\r\n\t\t}\r\n\r\n\t\treturn himmelskoerper;\r\n\t}",
"public Hotel bestHotel() {\r\n \tArrayList<Hotel> hotels = hotelDAO.getHotelList();\r\n \tHotel bestHotel=hotels.get(0);\r\n \tfor (int i=0; i<hotels.size();i++) {\r\n \t\tif(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) {\r\n \t\t\tbestHotel=hotels.get(i);\r\n \t\t}\r\n \t}\r\n \treturn bestHotel;\r\n }",
"private Order findRecentOrder(String productName) {\r\n for (int i = 0; i < orderHistory.size(); i++) {\r\n if (orderHistory.get(i).getProductName().equalsIgnoreCase(productName)) {\r\n return orderHistory.get(i);\r\n }\r\n }\r\n return null;\r\n }",
"static BigDecimal FindMaxPrice(String productname){\n\t\tLong prdname=Long.parseLong(productname);\n\t\tBigDecimal returnVal=new BigDecimal(0);\n\t\tif(productListOnNames.containsKey(prdname)){\n\t\t\tTreeMap<Long,BigDecimal> existingSet=productListOnNames.get(prdname);\n\n\t\t\treturnVal=Collections.max(existingSet.values());\n\n\t\t}\n\n\t\treturn returnVal;\n\n\t}",
"public String getHotelName() {\n\t\treturn this.name;\n\t}",
"public irestads.model.AdsItem fetchByProductName_Last(\n\t\tjava.lang.String productName,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public Room getLastRoom() // from my understanding this pops the last entry and replaces it with the one before\n { // might need a if test to prevent a null return and say there are no rooms previous.\n Room room = roomHistory.pop();\n return room;\n }",
"public Room getLastRoom(){return this.aLastRooms.pop();}",
"@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Hotel> newHotelList = new ArrayList<>();\r\n\t\tfor(Hotel Hotel : showHotelList())\r\n\t\t{\r\n\t\t\tif(Hotel.getHotelName().equals(Name))\r\n\t\t\t\tnewHotelList.add(Hotel);\r\n\t\t}\r\n\t\treturn newHotelList;\r\n\t}",
"public String getName() {\n return \"last\";\n }",
"public Booking getBooking(String name) {\n\t\t\tint i = 0;\r\n\t\t\tBooking buffer;\r\n\t\t\t\r\n\t\t\twhile(i < Bookings.size()) {\r\n\t\t\t\tbuffer = Bookings.get(i);\r\n\t\t\t\tString Name = buffer.getBooker();\r\n\t\t\t\tif (name.contentEquals(Name)) {\r\n\t\t\t\t\treturn buffer;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}",
"java.lang.String getHotelName();",
"@Override\n\tpublic Legacydb findByName_Last(String name,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchLegacydbException, SystemException {\n\t\tLegacydb legacydb = fetchByName_Last(name, orderByComparator);\n\n\t\tif (legacydb != null) {\n\t\t\treturn legacydb;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"name=\");\n\t\tmsg.append(name);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchLegacydbException(msg.toString());\n\t}",
"public irestads.model.AdsItem findByProductName_Last(\n\t\tjava.lang.String productName,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;",
"public static String mostName(String name) {\n int lastDot = name.lastIndexOf('.');\n return lastDot == -1 ? \"\" : name.substring(0, lastDot);\n }",
"public String getHotelName() {\n\t\t\treturn Name;\r\n\t\t}",
"public T get(String name) {\n for (int i = maps.size() - 1; i >= 0; i--) {\n HashMap<String, T> scope = maps.get(i);\n T t = scope.get(name);\n if (t != null) return t; // Found it!\n }\n return null; // Not found\n }",
"public Location findLargest() {\n int max = -1;\n\n final LinkedList<Location> loc = new LinkedList<>();\n\n for (int r = 0; r < board.length; r++)\n for (int c = 0; c < board[0].length; c++)\n if (board[r][c] > max) {\n loc.clear();\n max = board[r][c];\n loc.add(new Location(r, c));\n } else if (board[r][c] == max)\n loc.add(new Location(r, c));\n\n Collections.shuffle(loc);\n\n return loc.pop();\n }",
"public String getLastItem();",
"public Building mostFitInPopulation(){\n\t\tCollections.sort(population);\n\t\treturn population.get(population.size() - 1);\n\t}",
"public Object lastElement();",
"public Place tail(){\n return places.get(places.size()-1);\n }",
"public CoreCell getLastCellInUniverse (){\r\n return cellsUniverse.get(cellsUniverse.size()-1);\r\n }",
"public Item getLast();",
"public java.util.List<com.Hotel.model.Hotel> findByname(\n\t\tjava.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public E pollLast() {\r\n\t\tif (isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tE ret = (E) data.get(data.size() - 1);\r\n\t\tdata.remove(data.size() - 1);\r\n\t\treturn ret;\r\n\t}",
"public TypeHere getLast() {\n return items[size - 1];\n }",
"public Room getExit(String roomName) {\n\t\tRoom room = null;\n\t\tRoom tempRooms;\n\t\tfor(int i = 0; i < Exits.size(); i++) {\n\t\t\ttempRooms = Exits.get(i);\n\t\t\tif (tempRooms.name.contains(roomName)) {\n\t\t\t\treturn tempRooms;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//TODO: Make this a proper exception thrown, \n\t\t//\t\totherwise this code will break if it meets this error \n\t\t//\t\tand this will be the only hint as to why\n\t\tSystem.out.println(\"ERROR: Could not find room\");\n\t\treturn room;\n\t}",
"private static void last(String name){\n int last= name.length();\n System.out.print(name.toLowerCase().substring(last-1));\n }",
"public Book mostExpensive() {\n //create variable that stores the book thats most expensive\n Book mostExpensive = bookList.get(0);//most expensive book is set as the first in the array\n for (Book book : bookList) {\n if(book.getPrice() > mostExpensive.getPrice()){\n mostExpensive = book;\n }\n } return mostExpensive;//returns only one (theFIRST) most expensive in the array if tehre are several with the same price\n }",
"public Item getLast() {\n return items[size - 1];\n }",
"public String getNameLast() {\n\t\t\treturn nameLast;\n\t\t}",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"Employee getOldestEmployee() {\n\t}",
"public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}",
"public Node getLast() {\r\n\t\treturn getNode(this.size());\r\n\t}",
"public static Items findLastRow() {\r\n Items item = dao().findLastRow();\r\n return item;\r\n }",
"public com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public Dog findYoungest() {\n\t\t\tif(this.younger == null) return this.d;\r\n\t\t\telse{\r\n\t\t\t\treturn this.younger.findYoungest();\r\n\t\t\t}\r\n\t\t}",
"public Location getLocationByName(String name) {\n\t\tfor (Location x : locations) {\n\t\t\tif (x.getName().equals(name))\n\t\t\t\treturn x;\n\t\t}\n\t\treturn null; \n\t}",
"E last() throws NoSuchElementException;",
"public Employe findLastHired() {\n\t\treturn null;\n\t}",
"public String getAttribute(String name) {\n if (_lastTag == null)\n return null;\n return _lastTag.getAttribute(name);\n }",
"@Override\n\tpublic java.lang.String getLastName() {\n\t\treturn _candidate.getLastName();\n\t}",
"public FoodItem mostExpensive() {\n FoodItem mostExpensive = null;\n for (int i = 0; i < this._noOfItems; i++) {\n FoodItem currentItem = this._stock[i];\n // if not first, compare the most expensive yet to current,\n // and change the most expensive if current's price is grater\n if (i != 0) {\n // if price is bigger than all tested yet\n if (currentItem.getPrice() > mostExpensive.getPrice()) {\n // set it as biggest yet\n mostExpensive = new FoodItem(currentItem); // avoid aliasing\n }\n }\n else \n mostExpensive = new FoodItem(currentItem); //avoid aliasing\n }\n // return biggest\n return mostExpensive;\n }",
"@Override\r\n\tpublic Product findCheapestProduct(String name) {\r\n\t\t\r\n\t\t// Build the url to match the products with provided name and return \r\n\t\t// them sorted by sale price in ascending order.\r\n\t\tString url = apiBaseUrl + \"/search?apiKey={apiKey}&query={name}&format={format}&sort={sort}&ord={ord}&numItems={numItems}\";\r\n\t\t\r\n\t\t// Create the parameters to replace in the url.\r\n\t\tMap<String, String> params = new HashMap<String, String>();\r\n\t\tparams.put(\"name\", name);\r\n\t\tparams.put(\"apiKey\", apiKey);\r\n\t\tparams.put(\"format\", \"json\");\r\n\t\tparams.put(\"sort\", \"price\");\r\n\t\tparams.put(\"ord\", \"asc\");\r\n\t\tparams.put(\"numItems\", \"1\");\r\n\t\t\r\n\t\tRestTemplate template = new RestTemplate();\r\n\t\tWalmartSearchResponse response = template.getForObject(url, WalmartSearchResponse.class, params);\r\n\t\tif (response.getTotalResults() > 0) {\r\n\t\t\tWalmartSearchResponseItem[] responseProducts = response.getItems();\r\n\t\t\treturn new Product(\r\n\t\t\t\t\tresponseProducts[0].getName(),\r\n\t\t\t\t\tresponseProducts[0].getSalePrice(),\r\n\t\t\t\t\tWALMART_LOCATION);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List<Kinobillett> lastAlleBilletter(){\n String sql = \"SELECT * FROM Kinobillett\";\n return database.query(sql, new BeanPropertyRowMapper(Kinobillett.class));\n }",
"public static Reservation getLatestReservation() {\n return RESERVATIONS.size() == 0 ? null : RESERVATIONS.iterator().next();\n }",
"private ILocation GetWarp(IPlayer owner, String name)\r\n\t{\r\n\t\tString key = cacheKey(owner, name);\r\n\t\tILocation location = cache.Cache(key);\r\n\t\tif (location != null)\r\n\t\t\treturn location;\r\n\r\n\t\tif (owner == null)\r\n\t\t\tlocation = database.queryLocation(\r\n\t\t\t\t\"SELECT world, x, y, z, yaw, pitch FROM warpdrive_locations WHERE name=? AND `public`=1\",\r\n\t\t\t\tname\r\n\t\t\t);\r\n\t\telse\r\n\t\t\tlocation = database.queryLocation(\r\n\t\t\t\t\"SELECT world, x, y, z, yaw, pitch FROM warpdrive_locations WHERE name=? AND `public`=0 AND creator=?\",\r\n\t\t\t\tname, owner\r\n\t\t\t);\r\n\r\n\t\treturn cache.Cache(key, location);\r\n\t}",
"@Override\n public Earthquake getLatestEarthquake() {\n return this.earthquakeRepository.findFirstByOrderByHappenedOnDesc();\n }",
"public static String getLastWord(ArrayList<String> s) {\n int i = s.size();\n return s.get(i - 1);\n }",
"public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}",
"public O last()\r\n {\r\n if (isEmpty()) return null;\r\n return last.getObject();\r\n }",
"private Restaurant findHighestRevenueRestaurant(){\r\n Restaurant tempRestaurant = new Restaurant(\"dummy\", OrderType.BOTH);\r\n for(Restaurant restaurant : restaurantMap.getRestaurantMap().values()){\r\n if(restaurant.getRevenue() > tempRestaurant.getRevenue()){\r\n tempRestaurant = restaurant;\r\n }\r\n }\r\n return tempRestaurant;\r\n }",
"public Individual getWorst() {\n\t\treturn individuals[individuals.length-1];\n\t}",
"public String getLast()\n {\n return lastItem;\n }",
"DefaultNamedTreeNode<T> getLastChild()\r\n {\r\n NamedTreeNode<T> last = null;\r\n for(NamedTreeNode<T> n:this) {\r\n last = n;\r\n }\r\n return (DefaultNamedTreeNode<T>)last;\r\n }",
"public OccurrenceInfo getLastOccurrence() throws ServiceLocalException {\n\t\treturn (OccurrenceInfo) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(\n\t\t\t\t\t\tAppointmentSchema.FirstOccurrence);\n\t}",
"public Town getVertex(String name) {\n\t\tfor (Town t : towns) {\n\t\t\tif (t.getName().equals(name)) {\n\t\t\t\treturn t;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public L2Character getMostHated()\n\t{\n\t\tif (getAggroListRP().isEmpty() || isAlikeDead())\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tL2Character mostHated = null;\n\t\t\n\t\tint maxHate = 0;\n\t\t\n\t\t// While Interating over This Map Removing Object is Not Allowed\n\t\tsynchronized (getAggroList())\n\t\t{\n\t\t\t// Go through the aggroList of the L2Attackable\n\t\t\tfor (final AggroInfoHolder ai : getAggroListRP().values())\n\t\t\t{\n\t\t\t\tif (ai == null)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ai.getAttacker().isAlikeDead() || !getKnownList().knowsObject(ai.getAttacker()) || !ai.getAttacker().isVisible() || ai.getAttacker() instanceof L2PcInstance && !((L2PcInstance) ai.getAttacker()).isOnline() && !((L2PcInstance) ai.getAttacker()).isInOfflineMode()) // if player go\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// in offline\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mode, he\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// must be hated\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// however\n\t\t\t\t{\n\t\t\t\t\tai.initHate();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ai.getHate() > maxHate)\n\t\t\t\t{\n\t\t\t\t\tmostHated = ai.getAttacker();\n\t\t\t\t\tmaxHate = ai.getHate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (mostHated != null)\n\t\t{\n\t\t\tthis.mostHated = mostHated;\n\t\t}\n\t\t\n\t\treturn mostHated;\n\t}",
"public String getLastName()\n\t{\n\t\treturn getLastName( getSession().getSessionContext() );\n\t}",
"public String getLastName()\n\t{\n\t\treturn getLastName( getSession().getSessionContext() );\n\t}",
"public Object getLastObject()\n {\n\tcurrentObject = lastObject;\n\n if (lastObject == null)\n \treturn null;\n else\n \treturn AL.get(AL.size()-1);\n }",
"public Object last()throws ListExeption;",
"Name findNameByIdPersonAndMaxDate(int idPerson, Date maxDate);",
"com.google.protobuf.ByteString getLastNameBytes();",
"public com.google.protobuf.ByteString\n getHotelNameBytes() {\n java.lang.Object ref = hotelName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hotelName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getLastName() {\n \treturn lName;\n }",
"public TeleportDestination get(String name) {\n\t\tfor (TeleportDestination warp : destinations) {\n\t\t\tif (warp.getName().equalsIgnoreCase(name)) {\n\t\t\t\treturn warp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic String findLastWarehouseCode() {\n\t\treturn null;\n\t}",
"public tudresden.ocl20.core.jmi.ocl.commonmodel.AssociationEnd lookupAssociationEnd(java.lang.String name) {\n //Iterator ownEnds = this.getAssociation().\n //the \"association\" reference is missing in the UML-Metamodel!\n \tIterator ownEnds = null;\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\townEnds = instance.getAssociationEnds(this.refMofId()).iterator();\n \t}\n \telse\n \t\townEnds = ((CorePackage)this.refImmediatePackage()).getAParticipantAssociation().getAssociation(this).iterator();\n \t\n while(ownEnds.hasNext()){\n AssociationEnd ownEnd = (AssociationEnd) ownEnds.next();\n Association a = ownEnd.getAssociation();\n Iterator oppositeEnds = a.getConnection().iterator();\n while(oppositeEnds.hasNext()){\n AssociationEnd oppositeEnd = (AssociationEnd) oppositeEnds.next();\n if(!oppositeEnd.equals(ownEnd) && name.equals(oppositeEnd.getNameA())){\n return oppositeEnd;\n //Issue: What about unnamed AssociationEnds?\n }\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n AssociationEnd ae = (AssociationEnd) parent.lookupAssociationEnd(name);\n if(ae != null){\n return ae;\n }\n }\n \n //In addition to the specification, we consider the case, where this is\n //an AssociationClass as well and look for the AssociationEnds being parts\n //of this Association\n if(this instanceof AssociationClass){\n Iterator ends = ((Association) this).getConnection().iterator();\n while(ends.hasNext()){\n AssociationEnd ae = (AssociationEnd) ends.next();\n if(name.equals(ae.getNameA())){\n return ae;\n //Issue: What about unnamed AssociationEnds?\n }\n }\n }\n \n return null;\n }",
"public com.google.protobuf.ByteString\n getHotelNameBytes() {\n java.lang.Object ref = hotelName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hotelName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public E getLast()// you finish (part of HW#4)\n\t{\n\t\t// If the tree is empty, return null\n\t\t// FIND THE RIGHT-MOST RIGHT CHILD\n\t\t// WHEN you can't go RIGHT anymore, return the node's data to last Item\n\t\tif (root == null)\n\t\t\treturn null;\n\t\tBinaryNode<E> iteratorNode = root;\n\t\twhile (iteratorNode.hasRightChild())\n\t\t\titeratorNode = iteratorNode.getRightChild();\n\t\treturn iteratorNode.getData();\n\t}",
"public Amount<Mineral> searchByName(String name){\n\t\tfor(int i=0; i<this.mineralList.size(); i++) {\n\t\t\tif(this.mineralList.get(i).getObject().getName() == name)\n\t\t\t\treturn this.mineralList.get(i);\n\t\t}\n\t\treturn null;\n\t}",
"public Dog findOldest() {\r\n\t\tif (root == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn root.findOldest();\r\n\t}",
"public GPoint getLastPoint() {\n\t\treturn (points.size() > 0) ? points.get(points.size() - 1) : null;\n\t}",
"public Computer findMostExpensiveComputerV4( ) { \n\n\t\tComputer highest= computers.get(0);\n\t\tIterator<Computer> it= computers.iterator();\n\t\tComputer current=null; // a temporary copy of has.next() to perform multiple actions on it inside the loop\n\t\twhile(it.hasNext()) {\n\t\t\tcurrent=it.next();\n\t\t\tif (highest.getPrice()<current.getPrice()) \n\t\t\t\thighest=current;\n\n\n\t\t}\n\n\t\treturn highest;\n\n\t}",
"com.google.protobuf.ByteString\n getHotelNameBytes();",
"public Computer findMostExpensiveComputerV1( ) { \n\t\tComputer highest= computers.get(0);\n\t\tfor (int index=1; index<computers.size();index++){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t}\n\t\treturn highest;\n\t}",
"public java.lang.String getHotelName() {\n java.lang.Object ref = hotelName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n hotelName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getHotelName() {\n java.lang.Object ref = hotelName_;\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 hotelName_ = s;\n return s;\n }\n }",
"public T lookupCurrLevelOnly(String name) {\n\t\tif (encSymTable != null && encSymTable.containsName(name)) {\n\t\t\treturn encSymTable.lookupCurrLevelOnly(name);\n\t\t} else {\n\t\t\tif (containsName(name)) {\n\t\t\t\treturn dict.get(getSize() - 1).get(name); // in dict\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}",
"public SeleniumQueryObject last() {\n\t\treturn LastFunction.last(this, this.elements);\n\t}",
"public void addHotelName(String name) {\n\t\t\tName = name;\r\n\t\t}",
"public Staff findHighestEarningLabour() {\n Staff highest = new Labourer(null,0,null,0,0);\n \n for (int i = 0; i < staffList.length; i++) { \n if (staffList[i] instanceof Labourer) {\n if (((Labourer)staffList[i]).getWage() >= ((Labourer)highest).getWage()){\n highest = staffList[i];\n }\n }\n }\n return highest;\n }",
"public final int findWorkoutByName(String name) {\r\n\t\tint index = 0;\r\n\r\n\t\tfor (Workout i : workoutList) {\r\n\t\t\tindex++;\r\n\t\t\tif (i.getName() == name) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn index;\r\n\t}",
"public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }",
"public static void printLongestNamedPeople(){\n ArrayList<Person> longests = query.getLongestNamed();\n if (longests.size() == 1) {\n System.out.println(\"The person with the longest name is: \");\n } else {\n System.out.println(\"The people with the longest names are: \");\n }\n for (Person p : longests) {\n System.out.println(p);\n }\n }",
"public int getLastOrderId() {\r\n ArrayList<OrderRecord> result = new ArrayList<>();\r\n String sqlQuery = \"SELECT * FROM `orders`\";\r\n try {\r\n PreparedStatement p = myConn.prepareStatement(sqlQuery);\r\n ResultSet rs = p.executeQuery(sqlQuery);\r\n rs.last();\r\n return rs.getInt(\"id\");\r\n } catch (Exception e) {\r\n System.out.println(\"Could not get orders \" + e.toString());\r\n System.out.println(myStmt);\r\n }\r\n return 0;\r\n }",
"public Dog findYoungest() {\r\n\t\tif (root == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn root.findYoungest();\r\n\t}",
"@Override\n public Persona Last() {\n return array.get(tamano - 1);\n }",
"public Guest getGuest(String name) {\n\t\tString checkName = name.toUpperCase();\n for (Guest guest : guestList) {\n if (guest.getName().toUpperCase().equals(checkName)){\n return guest;\n }\n }\n return null;\n }",
"public Move getLastMove()\r\n\t{\r\n\t\tif (appliedMoves == null || appliedMoves.isEmpty()) return null;\r\n\t\treturn appliedMoves.get(appliedMoves.size() - 1);\r\n\t}",
"public Scholl last() {\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" ORDER BY \" + Value.COLUMN_NODE + \" DESC LIMIT 1\";\n\n Cursor c = db.rawQuery(sql, null);\n\n if (c != null)\n c.moveToFirst();\n\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n c.close();\n\n return scholl;\n }",
"public com.Hotel.model.Hotel[] findByname_PrevAndNext(long hotelId,\n\t\tjava.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public String searchWomenByName() {\n getNavigate(Locators.LINK_SEARCH);\n String selectedTextInDropDown = getTextFromDropDownSelectedValue(Locators.DROP_DOWN_LIST_SORT_BY, \"name\");\n return selectedTextInDropDown;\n }",
"public static Location getLatestLocation(){\n if(latestLocation!= null) {\n return latestLocation;\n }else{\n return null;\n }\n }",
"public Cell highestCell() {\n for (Cell c : this.board) {\n if (c.height == ForbiddenIslandWorld.ISLAND_SIZE / 2 && !c.isCoastCell()) {\n return c;\n }\n }\n return highestCell();\n }"
]
| [
"0.6502635",
"0.59843236",
"0.5649817",
"0.55578554",
"0.55294794",
"0.54970837",
"0.54887193",
"0.54660046",
"0.5447745",
"0.5444826",
"0.542708",
"0.5404107",
"0.5382546",
"0.53806955",
"0.53500754",
"0.53207636",
"0.5292816",
"0.52732813",
"0.5268207",
"0.5229641",
"0.52290493",
"0.52147734",
"0.5199496",
"0.51882094",
"0.51565987",
"0.5150479",
"0.5150043",
"0.51344484",
"0.51285607",
"0.51163095",
"0.5106009",
"0.50920665",
"0.50916797",
"0.5079045",
"0.5068679",
"0.5052194",
"0.50434023",
"0.50406283",
"0.50377196",
"0.50179857",
"0.50168514",
"0.5003907",
"0.5001748",
"0.49938574",
"0.499034",
"0.49854445",
"0.49712607",
"0.49573517",
"0.49557263",
"0.49525964",
"0.49501675",
"0.4943995",
"0.4935548",
"0.4929914",
"0.49291247",
"0.49287242",
"0.49255756",
"0.4922592",
"0.49208352",
"0.49192953",
"0.49180248",
"0.49153018",
"0.49152854",
"0.49152854",
"0.49076653",
"0.49071696",
"0.49068588",
"0.48936367",
"0.4892459",
"0.4890821",
"0.488937",
"0.48884806",
"0.48841384",
"0.48803034",
"0.48764327",
"0.4875927",
"0.4872729",
"0.4870417",
"0.48669887",
"0.4850617",
"0.48498732",
"0.4848165",
"0.48479548",
"0.4834677",
"0.48317012",
"0.4830373",
"0.4820463",
"0.48180553",
"0.48089248",
"0.48049235",
"0.4800965",
"0.47945312",
"0.4786614",
"0.47787",
"0.4765044",
"0.47643435",
"0.47633728",
"0.47545397",
"0.47500554",
"0.47485918"
]
| 0.662868 | 0 |
Returns the last hotel in the ordered set where name = &63;. | public com.Hotel.model.Hotel fetchByname_Last(java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public com.Hotel.model.Hotel findByname_Last(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"@Override\n\tpublic Legacydb fetchByName_Last(String name,\n\t\tOrderByComparator orderByComparator) throws SystemException {\n\t\tint count = countByName(name);\n\n\t\tif (count == 0) {\n\t\t\treturn null;\n\t\t}\n\n\t\tList<Legacydb> list = findByName(name, count - 1, count,\n\t\t\t\torderByComparator);\n\n\t\tif (!list.isEmpty()) {\n\t\t\treturn list.get(0);\n\t\t}\n\n\t\treturn null;\n\t}",
"public Himmelskoerper remove(String name) {\r\n\t\tHimmelskoerper himmelskoerper = null;\r\n\t\tfor (Himmelskoerper hTemp : ladung.keySet()) {\r\n\t\t\tif (hTemp.getName().equals(name)) {\r\n\t\t\t\thimmelskoerper = hTemp;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (himmelskoerper != null) {\r\n\t\t\tthis.aktuelleLast -= this.ladung.get(himmelskoerper).getGewicht();\r\n\t\t\tthis.ladung.remove(himmelskoerper);\r\n\t\t}\r\n\r\n\t\treturn himmelskoerper;\r\n\t}",
"public Hotel bestHotel() {\r\n \tArrayList<Hotel> hotels = hotelDAO.getHotelList();\r\n \tHotel bestHotel=hotels.get(0);\r\n \tfor (int i=0; i<hotels.size();i++) {\r\n \t\tif(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) {\r\n \t\t\tbestHotel=hotels.get(i);\r\n \t\t}\r\n \t}\r\n \treturn bestHotel;\r\n }",
"private Order findRecentOrder(String productName) {\r\n for (int i = 0; i < orderHistory.size(); i++) {\r\n if (orderHistory.get(i).getProductName().equalsIgnoreCase(productName)) {\r\n return orderHistory.get(i);\r\n }\r\n }\r\n return null;\r\n }",
"static BigDecimal FindMaxPrice(String productname){\n\t\tLong prdname=Long.parseLong(productname);\n\t\tBigDecimal returnVal=new BigDecimal(0);\n\t\tif(productListOnNames.containsKey(prdname)){\n\t\t\tTreeMap<Long,BigDecimal> existingSet=productListOnNames.get(prdname);\n\n\t\t\treturnVal=Collections.max(existingSet.values());\n\n\t\t}\n\n\t\treturn returnVal;\n\n\t}",
"public String getHotelName() {\n\t\treturn this.name;\n\t}",
"public irestads.model.AdsItem fetchByProductName_Last(\n\t\tjava.lang.String productName,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public Room getLastRoom() // from my understanding this pops the last entry and replaces it with the one before\n { // might need a if test to prevent a null return and say there are no rooms previous.\n Room room = roomHistory.pop();\n return room;\n }",
"public Room getLastRoom(){return this.aLastRooms.pop();}",
"@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Hotel> newHotelList = new ArrayList<>();\r\n\t\tfor(Hotel Hotel : showHotelList())\r\n\t\t{\r\n\t\t\tif(Hotel.getHotelName().equals(Name))\r\n\t\t\t\tnewHotelList.add(Hotel);\r\n\t\t}\r\n\t\treturn newHotelList;\r\n\t}",
"public String getName() {\n return \"last\";\n }",
"public Booking getBooking(String name) {\n\t\t\tint i = 0;\r\n\t\t\tBooking buffer;\r\n\t\t\t\r\n\t\t\twhile(i < Bookings.size()) {\r\n\t\t\t\tbuffer = Bookings.get(i);\r\n\t\t\t\tString Name = buffer.getBooker();\r\n\t\t\t\tif (name.contentEquals(Name)) {\r\n\t\t\t\t\treturn buffer;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}",
"java.lang.String getHotelName();",
"@Override\n\tpublic Legacydb findByName_Last(String name,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchLegacydbException, SystemException {\n\t\tLegacydb legacydb = fetchByName_Last(name, orderByComparator);\n\n\t\tif (legacydb != null) {\n\t\t\treturn legacydb;\n\t\t}\n\n\t\tStringBundler msg = new StringBundler(4);\n\n\t\tmsg.append(_NO_SUCH_ENTITY_WITH_KEY);\n\n\t\tmsg.append(\"name=\");\n\t\tmsg.append(name);\n\n\t\tmsg.append(StringPool.CLOSE_CURLY_BRACE);\n\n\t\tthrow new NoSuchLegacydbException(msg.toString());\n\t}",
"public irestads.model.AdsItem findByProductName_Last(\n\t\tjava.lang.String productName,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException,\n\t\t\tirestads.NoSuchItemException;",
"public static String mostName(String name) {\n int lastDot = name.lastIndexOf('.');\n return lastDot == -1 ? \"\" : name.substring(0, lastDot);\n }",
"public String getHotelName() {\n\t\t\treturn Name;\r\n\t\t}",
"public T get(String name) {\n for (int i = maps.size() - 1; i >= 0; i--) {\n HashMap<String, T> scope = maps.get(i);\n T t = scope.get(name);\n if (t != null) return t; // Found it!\n }\n return null; // Not found\n }",
"public Location findLargest() {\n int max = -1;\n\n final LinkedList<Location> loc = new LinkedList<>();\n\n for (int r = 0; r < board.length; r++)\n for (int c = 0; c < board[0].length; c++)\n if (board[r][c] > max) {\n loc.clear();\n max = board[r][c];\n loc.add(new Location(r, c));\n } else if (board[r][c] == max)\n loc.add(new Location(r, c));\n\n Collections.shuffle(loc);\n\n return loc.pop();\n }",
"public String getLastItem();",
"public Building mostFitInPopulation(){\n\t\tCollections.sort(population);\n\t\treturn population.get(population.size() - 1);\n\t}",
"public Object lastElement();",
"public Place tail(){\n return places.get(places.size()-1);\n }",
"public CoreCell getLastCellInUniverse (){\r\n return cellsUniverse.get(cellsUniverse.size()-1);\r\n }",
"public java.util.List<com.Hotel.model.Hotel> findByname(\n\t\tjava.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public Item getLast();",
"public E pollLast() {\r\n\t\tif (isEmpty()) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tE ret = (E) data.get(data.size() - 1);\r\n\t\tdata.remove(data.size() - 1);\r\n\t\treturn ret;\r\n\t}",
"public TypeHere getLast() {\n return items[size - 1];\n }",
"public Room getExit(String roomName) {\n\t\tRoom room = null;\n\t\tRoom tempRooms;\n\t\tfor(int i = 0; i < Exits.size(); i++) {\n\t\t\ttempRooms = Exits.get(i);\n\t\t\tif (tempRooms.name.contains(roomName)) {\n\t\t\t\treturn tempRooms;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//TODO: Make this a proper exception thrown, \n\t\t//\t\totherwise this code will break if it meets this error \n\t\t//\t\tand this will be the only hint as to why\n\t\tSystem.out.println(\"ERROR: Could not find room\");\n\t\treturn room;\n\t}",
"private static void last(String name){\n int last= name.length();\n System.out.print(name.toLowerCase().substring(last-1));\n }",
"public Book mostExpensive() {\n //create variable that stores the book thats most expensive\n Book mostExpensive = bookList.get(0);//most expensive book is set as the first in the array\n for (Book book : bookList) {\n if(book.getPrice() > mostExpensive.getPrice()){\n mostExpensive = book;\n }\n } return mostExpensive;//returns only one (theFIRST) most expensive in the array if tehre are several with the same price\n }",
"public Item getLast() {\n return items[size - 1];\n }",
"public String getNameLast() {\n\t\t\treturn nameLast;\n\t\t}",
"public Score getHighScore(String name){\n Score playerscore = new Score();\n ResultSet rs = null;\n String sqlS = \"\";\n \n try{\n sqlS = \"select max(HIGHSCORE) from TEAMGLEN.SCORE where NICKNAME = ?\";\n ps = connect.prepareStatement(sqlS);\n ps.setString(1, name);\n rs = ps.executeQuery();\n rs.next();\n playerscore.setHighscore(rs.getInt(0));\n }catch(Exception ex){\n ex.printStackTrace();\n }\n return playerscore;\n }",
"Employee getOldestEmployee() {\n\t}",
"public E getLast() {\r\n\r\n\t\treturn (E) data.get(data.size() - 1);\r\n\t}",
"public Node getLast() {\r\n\t\treturn getNode(this.size());\r\n\t}",
"public static Items findLastRow() {\r\n Items item = dao().findLastRow();\r\n return item;\r\n }",
"public com.Hotel.model.Hotel findByUuid_Last(java.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public Dog findYoungest() {\n\t\t\tif(this.younger == null) return this.d;\r\n\t\t\telse{\r\n\t\t\t\treturn this.younger.findYoungest();\r\n\t\t\t}\r\n\t\t}",
"public Location getLocationByName(String name) {\n\t\tfor (Location x : locations) {\n\t\t\tif (x.getName().equals(name))\n\t\t\t\treturn x;\n\t\t}\n\t\treturn null; \n\t}",
"E last() throws NoSuchElementException;",
"public Employe findLastHired() {\n\t\treturn null;\n\t}",
"public String getAttribute(String name) {\n if (_lastTag == null)\n return null;\n return _lastTag.getAttribute(name);\n }",
"@Override\n\tpublic java.lang.String getLastName() {\n\t\treturn _candidate.getLastName();\n\t}",
"public FoodItem mostExpensive() {\n FoodItem mostExpensive = null;\n for (int i = 0; i < this._noOfItems; i++) {\n FoodItem currentItem = this._stock[i];\n // if not first, compare the most expensive yet to current,\n // and change the most expensive if current's price is grater\n if (i != 0) {\n // if price is bigger than all tested yet\n if (currentItem.getPrice() > mostExpensive.getPrice()) {\n // set it as biggest yet\n mostExpensive = new FoodItem(currentItem); // avoid aliasing\n }\n }\n else \n mostExpensive = new FoodItem(currentItem); //avoid aliasing\n }\n // return biggest\n return mostExpensive;\n }",
"@Override\r\n\tpublic Product findCheapestProduct(String name) {\r\n\t\t\r\n\t\t// Build the url to match the products with provided name and return \r\n\t\t// them sorted by sale price in ascending order.\r\n\t\tString url = apiBaseUrl + \"/search?apiKey={apiKey}&query={name}&format={format}&sort={sort}&ord={ord}&numItems={numItems}\";\r\n\t\t\r\n\t\t// Create the parameters to replace in the url.\r\n\t\tMap<String, String> params = new HashMap<String, String>();\r\n\t\tparams.put(\"name\", name);\r\n\t\tparams.put(\"apiKey\", apiKey);\r\n\t\tparams.put(\"format\", \"json\");\r\n\t\tparams.put(\"sort\", \"price\");\r\n\t\tparams.put(\"ord\", \"asc\");\r\n\t\tparams.put(\"numItems\", \"1\");\r\n\t\t\r\n\t\tRestTemplate template = new RestTemplate();\r\n\t\tWalmartSearchResponse response = template.getForObject(url, WalmartSearchResponse.class, params);\r\n\t\tif (response.getTotalResults() > 0) {\r\n\t\t\tWalmartSearchResponseItem[] responseProducts = response.getItems();\r\n\t\t\treturn new Product(\r\n\t\t\t\t\tresponseProducts[0].getName(),\r\n\t\t\t\t\tresponseProducts[0].getSalePrice(),\r\n\t\t\t\t\tWALMART_LOCATION);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List<Kinobillett> lastAlleBilletter(){\n String sql = \"SELECT * FROM Kinobillett\";\n return database.query(sql, new BeanPropertyRowMapper(Kinobillett.class));\n }",
"public static Reservation getLatestReservation() {\n return RESERVATIONS.size() == 0 ? null : RESERVATIONS.iterator().next();\n }",
"private ILocation GetWarp(IPlayer owner, String name)\r\n\t{\r\n\t\tString key = cacheKey(owner, name);\r\n\t\tILocation location = cache.Cache(key);\r\n\t\tif (location != null)\r\n\t\t\treturn location;\r\n\r\n\t\tif (owner == null)\r\n\t\t\tlocation = database.queryLocation(\r\n\t\t\t\t\"SELECT world, x, y, z, yaw, pitch FROM warpdrive_locations WHERE name=? AND `public`=1\",\r\n\t\t\t\tname\r\n\t\t\t);\r\n\t\telse\r\n\t\t\tlocation = database.queryLocation(\r\n\t\t\t\t\"SELECT world, x, y, z, yaw, pitch FROM warpdrive_locations WHERE name=? AND `public`=0 AND creator=?\",\r\n\t\t\t\tname, owner\r\n\t\t\t);\r\n\r\n\t\treturn cache.Cache(key, location);\r\n\t}",
"@Override\n public Earthquake getLatestEarthquake() {\n return this.earthquakeRepository.findFirstByOrderByHappenedOnDesc();\n }",
"public static String getLastWord(ArrayList<String> s) {\n int i = s.size();\n return s.get(i - 1);\n }",
"public Object last() {\r\n\t\treturn elements.get(size() - 1);\r\n\t}",
"public O last()\r\n {\r\n if (isEmpty()) return null;\r\n return last.getObject();\r\n }",
"private Restaurant findHighestRevenueRestaurant(){\r\n Restaurant tempRestaurant = new Restaurant(\"dummy\", OrderType.BOTH);\r\n for(Restaurant restaurant : restaurantMap.getRestaurantMap().values()){\r\n if(restaurant.getRevenue() > tempRestaurant.getRevenue()){\r\n tempRestaurant = restaurant;\r\n }\r\n }\r\n return tempRestaurant;\r\n }",
"public Individual getWorst() {\n\t\treturn individuals[individuals.length-1];\n\t}",
"public Town getVertex(String name) {\n\t\tfor (Town t : towns) {\n\t\t\tif (t.getName().equals(name)) {\n\t\t\t\treturn t;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"DefaultNamedTreeNode<T> getLastChild()\r\n {\r\n NamedTreeNode<T> last = null;\r\n for(NamedTreeNode<T> n:this) {\r\n last = n;\r\n }\r\n return (DefaultNamedTreeNode<T>)last;\r\n }",
"public String getLast()\n {\n return lastItem;\n }",
"public OccurrenceInfo getLastOccurrence() throws ServiceLocalException {\n\t\treturn (OccurrenceInfo) this.getPropertyBag()\n\t\t\t\t.getObjectFromPropertyDefinition(\n\t\t\t\t\t\tAppointmentSchema.FirstOccurrence);\n\t}",
"public L2Character getMostHated()\n\t{\n\t\tif (getAggroListRP().isEmpty() || isAlikeDead())\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tL2Character mostHated = null;\n\t\t\n\t\tint maxHate = 0;\n\t\t\n\t\t// While Interating over This Map Removing Object is Not Allowed\n\t\tsynchronized (getAggroList())\n\t\t{\n\t\t\t// Go through the aggroList of the L2Attackable\n\t\t\tfor (final AggroInfoHolder ai : getAggroListRP().values())\n\t\t\t{\n\t\t\t\tif (ai == null)\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ai.getAttacker().isAlikeDead() || !getKnownList().knowsObject(ai.getAttacker()) || !ai.getAttacker().isVisible() || ai.getAttacker() instanceof L2PcInstance && !((L2PcInstance) ai.getAttacker()).isOnline() && !((L2PcInstance) ai.getAttacker()).isInOfflineMode()) // if player go\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// in offline\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mode, he\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// must be hated\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// however\n\t\t\t\t{\n\t\t\t\t\tai.initHate();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (ai.getHate() > maxHate)\n\t\t\t\t{\n\t\t\t\t\tmostHated = ai.getAttacker();\n\t\t\t\t\tmaxHate = ai.getHate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (mostHated != null)\n\t\t{\n\t\t\tthis.mostHated = mostHated;\n\t\t}\n\t\t\n\t\treturn mostHated;\n\t}",
"public String getLastName()\n\t{\n\t\treturn getLastName( getSession().getSessionContext() );\n\t}",
"public String getLastName()\n\t{\n\t\treturn getLastName( getSession().getSessionContext() );\n\t}",
"public Object getLastObject()\n {\n\tcurrentObject = lastObject;\n\n if (lastObject == null)\n \treturn null;\n else\n \treturn AL.get(AL.size()-1);\n }",
"public Object last()throws ListExeption;",
"Name findNameByIdPersonAndMaxDate(int idPerson, Date maxDate);",
"public TeleportDestination get(String name) {\n\t\tfor (TeleportDestination warp : destinations) {\n\t\t\tif (warp.getName().equalsIgnoreCase(name)) {\n\t\t\t\treturn warp;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public com.google.protobuf.ByteString\n getHotelNameBytes() {\n java.lang.Object ref = hotelName_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hotelName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"com.google.protobuf.ByteString getLastNameBytes();",
"@Override\n\tpublic String findLastWarehouseCode() {\n\t\treturn null;\n\t}",
"public String getLastName() {\n \treturn lName;\n }",
"public tudresden.ocl20.core.jmi.ocl.commonmodel.AssociationEnd lookupAssociationEnd(java.lang.String name) {\n //Iterator ownEnds = this.getAssociation().\n //the \"association\" reference is missing in the UML-Metamodel!\n \tIterator ownEnds = null;\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\townEnds = instance.getAssociationEnds(this.refMofId()).iterator();\n \t}\n \telse\n \t\townEnds = ((CorePackage)this.refImmediatePackage()).getAParticipantAssociation().getAssociation(this).iterator();\n \t\n while(ownEnds.hasNext()){\n AssociationEnd ownEnd = (AssociationEnd) ownEnds.next();\n Association a = ownEnd.getAssociation();\n Iterator oppositeEnds = a.getConnection().iterator();\n while(oppositeEnds.hasNext()){\n AssociationEnd oppositeEnd = (AssociationEnd) oppositeEnds.next();\n if(!oppositeEnd.equals(ownEnd) && name.equals(oppositeEnd.getNameA())){\n return oppositeEnd;\n //Issue: What about unnamed AssociationEnds?\n }\n }\n }\n Iterator parentsIt = this.getParents().iterator();//getGeneralization().iterator();\n while(parentsIt.hasNext()){\n Classifier parent = (Classifier) parentsIt.next();//((GeneralizationImpl) parentsIt.next()).getParent();\n AssociationEnd ae = (AssociationEnd) parent.lookupAssociationEnd(name);\n if(ae != null){\n return ae;\n }\n }\n \n //In addition to the specification, we consider the case, where this is\n //an AssociationClass as well and look for the AssociationEnds being parts\n //of this Association\n if(this instanceof AssociationClass){\n Iterator ends = ((Association) this).getConnection().iterator();\n while(ends.hasNext()){\n AssociationEnd ae = (AssociationEnd) ends.next();\n if(name.equals(ae.getNameA())){\n return ae;\n //Issue: What about unnamed AssociationEnds?\n }\n }\n }\n \n return null;\n }",
"public com.google.protobuf.ByteString\n getHotelNameBytes() {\n java.lang.Object ref = hotelName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hotelName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Amount<Mineral> searchByName(String name){\n\t\tfor(int i=0; i<this.mineralList.size(); i++) {\n\t\t\tif(this.mineralList.get(i).getObject().getName() == name)\n\t\t\t\treturn this.mineralList.get(i);\n\t\t}\n\t\treturn null;\n\t}",
"public E getLast()// you finish (part of HW#4)\n\t{\n\t\t// If the tree is empty, return null\n\t\t// FIND THE RIGHT-MOST RIGHT CHILD\n\t\t// WHEN you can't go RIGHT anymore, return the node's data to last Item\n\t\tif (root == null)\n\t\t\treturn null;\n\t\tBinaryNode<E> iteratorNode = root;\n\t\twhile (iteratorNode.hasRightChild())\n\t\t\titeratorNode = iteratorNode.getRightChild();\n\t\treturn iteratorNode.getData();\n\t}",
"public Dog findOldest() {\r\n\t\tif (root == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn root.findOldest();\r\n\t}",
"public GPoint getLastPoint() {\n\t\treturn (points.size() > 0) ? points.get(points.size() - 1) : null;\n\t}",
"public Computer findMostExpensiveComputerV4( ) { \n\n\t\tComputer highest= computers.get(0);\n\t\tIterator<Computer> it= computers.iterator();\n\t\tComputer current=null; // a temporary copy of has.next() to perform multiple actions on it inside the loop\n\t\twhile(it.hasNext()) {\n\t\t\tcurrent=it.next();\n\t\t\tif (highest.getPrice()<current.getPrice()) \n\t\t\t\thighest=current;\n\n\n\t\t}\n\n\t\treturn highest;\n\n\t}",
"public Computer findMostExpensiveComputerV1( ) { \n\t\tComputer highest= computers.get(0);\n\t\tfor (int index=1; index<computers.size();index++){\n\t\t\tif (highest.getPrice()<computers.get(index).getPrice()) {\n\t\t\t\thighest= computers.get(index);\n\n\t\t\t}\n\t\t}\n\t\treturn highest;\n\t}",
"com.google.protobuf.ByteString\n getHotelNameBytes();",
"public java.lang.String getHotelName() {\n java.lang.Object ref = hotelName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n hotelName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getHotelName() {\n java.lang.Object ref = hotelName_;\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 hotelName_ = s;\n return s;\n }\n }",
"public T lookupCurrLevelOnly(String name) {\n\t\tif (encSymTable != null && encSymTable.containsName(name)) {\n\t\t\treturn encSymTable.lookupCurrLevelOnly(name);\n\t\t} else {\n\t\t\tif (containsName(name)) {\n\t\t\t\treturn dict.get(getSize() - 1).get(name); // in dict\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}",
"public void addHotelName(String name) {\n\t\t\tName = name;\r\n\t\t}",
"public SeleniumQueryObject last() {\n\t\treturn LastFunction.last(this, this.elements);\n\t}",
"public final int findWorkoutByName(String name) {\r\n\t\tint index = 0;\r\n\r\n\t\tfor (Workout i : workoutList) {\r\n\t\t\tindex++;\r\n\t\t\tif (i.getName() == name) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn index;\r\n\t}",
"public Staff findHighestEarningLabour() {\n Staff highest = new Labourer(null,0,null,0,0);\n \n for (int i = 0; i < staffList.length; i++) { \n if (staffList[i] instanceof Labourer) {\n if (((Labourer)staffList[i]).getWage() >= ((Labourer)highest).getWage()){\n highest = staffList[i];\n }\n }\n }\n return highest;\n }",
"public String getLastName() {\n return (String)getAttributeInternal(LASTNAME);\n }",
"public static void printLongestNamedPeople(){\n ArrayList<Person> longests = query.getLongestNamed();\n if (longests.size() == 1) {\n System.out.println(\"The person with the longest name is: \");\n } else {\n System.out.println(\"The people with the longest names are: \");\n }\n for (Person p : longests) {\n System.out.println(p);\n }\n }",
"public int getLastOrderId() {\r\n ArrayList<OrderRecord> result = new ArrayList<>();\r\n String sqlQuery = \"SELECT * FROM `orders`\";\r\n try {\r\n PreparedStatement p = myConn.prepareStatement(sqlQuery);\r\n ResultSet rs = p.executeQuery(sqlQuery);\r\n rs.last();\r\n return rs.getInt(\"id\");\r\n } catch (Exception e) {\r\n System.out.println(\"Could not get orders \" + e.toString());\r\n System.out.println(myStmt);\r\n }\r\n return 0;\r\n }",
"public Dog findYoungest() {\r\n\t\tif (root == null)\r\n\t\t\treturn null;\r\n\t\t\r\n\t\treturn root.findYoungest();\r\n\t}",
"@Override\n public Persona Last() {\n return array.get(tamano - 1);\n }",
"public Guest getGuest(String name) {\n\t\tString checkName = name.toUpperCase();\n for (Guest guest : guestList) {\n if (guest.getName().toUpperCase().equals(checkName)){\n return guest;\n }\n }\n return null;\n }",
"public com.Hotel.model.Hotel[] findByname_PrevAndNext(long hotelId,\n\t\tjava.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public Move getLastMove()\r\n\t{\r\n\t\tif (appliedMoves == null || appliedMoves.isEmpty()) return null;\r\n\t\treturn appliedMoves.get(appliedMoves.size() - 1);\r\n\t}",
"public Scholl last() {\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" ORDER BY \" + Value.COLUMN_NODE + \" DESC LIMIT 1\";\n\n Cursor c = db.rawQuery(sql, null);\n\n if (c != null)\n c.moveToFirst();\n\n Scholl scholl = new Scholl();\n scholl.setUid((c.getString(c.getColumnIndex(Value.COLUMN_UID))));\n scholl.setNode(c.getString(c.getColumnIndex(Value.COLUMN_NODE)));\n scholl.setCaption(c.getString(c.getColumnIndex(Value.COLUMN_CAPTION)));\n scholl.setImage(c.getString(c.getColumnIndex(Value.COLUMN_IMAGE)));\n scholl.setCreated(c.getString(c.getColumnIndex(Value.COLUMN_CREATED)));\n scholl.setStatus(c.getString(c.getColumnIndex(Value.COLUMN_STATUS)));\n scholl.setRead(c.getString(c.getColumnIndex(Value.COLUMN_READ)));\n\n c.close();\n\n return scholl;\n }",
"public String searchWomenByName() {\n getNavigate(Locators.LINK_SEARCH);\n String selectedTextInDropDown = getTextFromDropDownSelectedValue(Locators.DROP_DOWN_LIST_SORT_BY, \"name\");\n return selectedTextInDropDown;\n }",
"public Cell highestCell() {\n for (Cell c : this.board) {\n if (c.height == ForbiddenIslandWorld.ISLAND_SIZE / 2 && !c.isCoastCell()) {\n return c;\n }\n }\n return highestCell();\n }",
"public static Location getLatestLocation(){\n if(latestLocation!= null) {\n return latestLocation;\n }else{\n return null;\n }\n }"
]
| [
"0.66289204",
"0.598462",
"0.5651495",
"0.55574703",
"0.5528785",
"0.5495779",
"0.54883295",
"0.5466108",
"0.544518",
"0.5441826",
"0.5428539",
"0.5401506",
"0.5383286",
"0.53782743",
"0.53501534",
"0.53198504",
"0.5289749",
"0.52728665",
"0.526951",
"0.52280253",
"0.52255094",
"0.5212922",
"0.5197623",
"0.5186821",
"0.5155634",
"0.5152842",
"0.51481086",
"0.5133814",
"0.5125986",
"0.51167876",
"0.51024824",
"0.50899917",
"0.50894284",
"0.50751555",
"0.5068795",
"0.50503564",
"0.5042081",
"0.503954",
"0.5036581",
"0.50160134",
"0.5014281",
"0.50051296",
"0.5000477",
"0.49925917",
"0.49911594",
"0.49807054",
"0.4969519",
"0.4958327",
"0.49538004",
"0.49527392",
"0.49508902",
"0.49420744",
"0.49317804",
"0.49283198",
"0.49279085",
"0.49269333",
"0.4923366",
"0.49210674",
"0.49193636",
"0.4918959",
"0.49174002",
"0.4914615",
"0.49115065",
"0.49115065",
"0.49059287",
"0.49052846",
"0.49030626",
"0.48915195",
"0.48905686",
"0.4888545",
"0.48868278",
"0.48855996",
"0.48833945",
"0.4878324",
"0.4877039",
"0.48752603",
"0.48717755",
"0.48687634",
"0.48660502",
"0.48495507",
"0.48486465",
"0.48461995",
"0.48460194",
"0.48374188",
"0.4830937",
"0.48304495",
"0.48194054",
"0.4816602",
"0.48047084",
"0.48004326",
"0.47993302",
"0.47930726",
"0.4783782",
"0.47800905",
"0.47641397",
"0.4763901",
"0.47638565",
"0.47536677",
"0.47485012",
"0.47476357"
]
| 0.6503706 | 1 |
Returns the hotels before and after the current hotel in the ordered set where name = &63;. | public com.Hotel.model.Hotel[] findByname_PrevAndNext(long hotelId,
java.lang.String name,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Location> getPreviousLocations();",
"public Iterable<Vertex> adjacentTo(String name) {\n Vertex v = getVertex(name);\n if (v == null) return EMPTY_SET;\n return mAdjList.get(getVertex(name));\n }",
"@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Hotel> newHotelList = new ArrayList<>();\r\n\t\tfor(Hotel Hotel : showHotelList())\r\n\t\t{\r\n\t\t\tif(Hotel.getHotelName().equals(Name))\r\n\t\t\t\tnewHotelList.add(Hotel);\r\n\t\t}\r\n\t\treturn newHotelList;\r\n\t}",
"public com.Hotel.model.Hotel[] findByUuid_PrevAndNext(long hotelId,\n\t\tjava.lang.String uuid,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.Hotel.NoSuchHotelException,\n\t\t\tcom.liferay.portal.kernel.exception.SystemException;",
"public LinkedHashSet<String> getPrevNames(){\r\n\t\treturn prevNames;\r\n\t}",
"@Override\n\tpublic List<Hotel> getLowPricedHotels(String cityName, Session session) {\n\t\t// TODO Auto-generated method stub\n\t\tList<Hotel> hotelList = new ArrayList<Hotel>();\n\t\tCriteria cr = session.createCriteria(Hotel.class).add(Restrictions.eq(\"city\", cityName)).addOrder(Order.asc(\"tariff\")).setMaxResults(5);\n\t\thotelList = cr.list();\n\t\treturn hotelList;\n\t}",
"private Cell findPrev(ArrayList<Cell> list, Cell current) {\r\n\t\t\tint index = isInList(list, current);\r\n\t\t\treturn list.get(index).prev;\r\n\t\t}",
"public Urls getUrlsOrderedByName() {\n\t\treturn getUrls(\"name\", true);\n\t}",
"public java.util.List<com.Hotel.model.Hotel> findByname(\n\t\tjava.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"private void addPrevNames(String name){\r\n\t\tif (!prevNames.contains(name)){\r\n\t\t\tprevNames.add(name);\r\n\t\t}\r\n\t}",
"public java.util.List getOrderedAncestors();",
"public ListElement<T> getPrev()\n\t{\n\t\treturn prev;\n\t}",
"private void findPrev() {\n \tthis.find(false);\n }",
"public java.util.Enumeration findAllOrderByNameAsc() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n com.hps.july.persistence.EquipmentSetHome localHome = ejbHome();\n java.util.Enumeration ejbs = localHome.findAllOrderByNameAsc();\n return (java.util.Enumeration) createAccessBeans(ejbs);\n }",
"public Iterator<R> reservationsByName(String name){\n // Return an iterator of active reservations for a name.\n //loop through the arrayList\n for(Reservation r: listR){\n //if we find the name that equals our given name, add that reservation to our temp list\n if(r.getName().equals(name)){\n newList.add(r);\n }\n }\n //return iterator for temp list\n IterName iter = new IterName();\n return iter;\n }",
"public String[] prevHotWords( String hotWord ){\r\n //Created vector to push the variable amount of hotwords before the one in the arguments\r\n Vector<String> output = new Vector<String>();\r\n //The output string array which is returned\r\n String[] out;\r\n //Turns the hotword to lowercase for it to be compatible anc checkable\r\n String chk = hotWord.toLowerCase();\r\n //Created iterator to move through indeces of consec\r\n int i = 0;\r\n //Loops through every hotword in consec\r\n for (String x : consec.subList(0, count())) {\r\n //if the hotword equals the argument hotword then go to the next check\r\n if(x.equals(chk)){\r\n //As long as the iterator is greater than 1, reach to the previous hot word\r\n //in the series and put it in the vector\r\n if(i > 1){\r\n output.add(consec.get(i-1));\r\n }\r\n }\r\n i++;\r\n }\r\n //Set the out array to the size of the vector that has all the previous hotwords\r\n out = new String[output.size()];\r\n //Copy the items in\r\n for(int j = 0; j < output.size(); j++){\r\n out[j] = output.get(j);\r\n }\r\n \r\n return out;\r\n\t}",
"public boolean isBefore(Book b1, Book b2);",
"public ArrayList<Point> getAdjacentLoosePoints(Point p, Set<Point> loose) {\n \tArrayList<Point> points = new ArrayList<Point>();\n \t\n \t// check point directly to the left\n \tif (p.getX() + 1 < width) {\n \t\tPoint possible = new Point((int) p.getX() + 1, (int) p.getY());\n \t\tif (loose.contains(possible)) {\n \t\t\tpoints.add(possible);\n \t\t}\n \t}\n \t//check point directly to the right\n \tif (p.getX() - 1 > 0) {\n \t\tPoint possible = new Point((int) p.getX() - 1, (int) p.getY());\n \t\tif (loose.contains(possible)) {\n \t\t\tpoints.add(possible);\n \t\t}\n \t}\n \t//check point directly above\n \tif (p.getY() + 1 < height) {\n \t\tPoint possible = new Point((int) p.getX(), (int) p.getY() + 1);\n \t\tif (loose.contains(possible)) {\n \t\t\tpoints.add(possible);\n \t\t}\n \t}\n \t//check point directly above\n \tif (p.getY() - 1 > 0) {\n \t\tPoint possible = new Point((int) p.getX(), (int) p.getY() - 1);\n \t\tif (loose.contains(possible)) {\n \t\t\tpoints.add(possible);\n \t\t}\n \t}\n \treturn points;\n }",
"public ArrayList<String> alwaysLessPopular(){\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\tfor (NameRecord n : list){\n\t\t\tif (n.lessPop()){\n\t\t\t\tresult.add(n.getName());\n\t\t\t}\n\t\t}\t\n\t\treturn result;\n\t}",
"public Town getVertex(String name) {\n\t\tfor (Town t : towns) {\n\t\t\tif (t.getName().equals(name)) {\n\t\t\t\treturn t;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Cell> getOrderedNeighbors(Cell cell) {\n\t\tList<Cell> neighbors = new ArrayList<Cell>();\n\t\tint northwest, north, northeast, east, southeast, south, southwest, west;\n\t\t\n\t\tnorthwest = getNorthWestCell(cell);\n\t\tnorth = getNorthCell(cell);\n\t\tnortheast = getNorthEastCell(cell);\n\t\teast = getEastCell(cell);\n\t\tsoutheast = getSouthEastCell(cell);\n\t\tsouth = getSouthCell(cell);\n\t\tsouthwest = getSouthWestCell(cell);\n\t\twest = getWestCell(cell);\n\t\t\n\t\tneighbors.add(getCellList().get(northwest));\n\t\tneighbors.add(getCellList().get(north));\n\t\tneighbors.add(getCellList().get(northeast));\n\t\tneighbors.add(getCellList().get(east));\n\t\tneighbors.add(getCellList().get(southeast));\n\t\tneighbors.add(getCellList().get(south));\n\t\tneighbors.add(getCellList().get(southwest));\n\t\tneighbors.add(getCellList().get(west));\n\t\t\n\t\treturn neighbors;\n\t}",
"public void sortByName()\n {\n boolean swapMade;//has a swap been made in the most recent pass?\n \n //repeat looking for swaps\n do\n {\n swapMade=false;//just starting this pass, so no swap yet\n \n //for each RideLines's index\n for(int i = 0; i<currentRide; i++)\n {\n //assume thet the smallest name is the one we start with \n int minIndex= i;\n \n //finding the index of the(alphabetically) lowest RideLines name, \n //k: the index to start searching for the lowest name\n for(int k= minIndex+1; k<currentRide; k++)\n {\n //if the other RideLines has a lower name, they are the low name\n if(rides[k].getName().compareTo(rides[minIndex].getName())<0)\n { \n // standard swap, using a temporary. swap the smallest name\n RideLines temp = rides[k];\n rides[k]=rides[i];\n rides[i]=temp;\n \n swapMade=true; //remember this pass made at least one swap\n } \n\n }\n\n } \n }while(swapMade);//until no swaps were found in the most recent past\n \n redrawLines();//redraw the image\n \n }",
"String getPrevious();",
"public\t\tMiPart\t\tgetPrevious()\n\t\t{\n\t\tMiPart obj = iterator.getPrevious();\n\t\twhile ((obj == null) || ((filter != null) && ((obj = filter.accept(obj)) == null)))\n\t\t\t{\n\t\t\tif (!hasLayers)\n\t\t\t\treturn(null);\n\t\t\tif (!iterateThroughAllLayers)\n\t\t\t\treturn(null);\n\t\t\tMiContainerIterator iter = getPreviousIterator();\n\t\t\tif (iter == null)\n\t\t\t\treturn(null);\n\t\t\titerator = iter;\n\t\t\tobj = iterator.getPrevious();\n\t\t\t}\n\t\treturn(obj);\n\t\t}",
"public List<PHighlight> getNamedHighlightsOverlapping(String highlighterName, int beginOffset, int endOffset) {\n getLock().getReadLock();\n try {\n return highlights.getNamedHighlightsOverlapping(highlighterName, beginOffset, endOffset);\n } finally {\n getLock().relinquishReadLock();\n }\n }",
"public List<Artikel> getArtikelBestandSortiertNachBezeichnung() {\n\t\tList<Artikel> ergebnis = new Vector<Artikel>();\n\t\tergebnis.addAll(artikelBestand);\n\t\tCollections.sort(ergebnis, new SortierungNachBezeichnung());\n\t\treturn ergebnis;\n\t}",
"public List<String> getAlphaVesselNameSuggest(String name) {\n List<String> alphaNameList = new ArrayList<String>();\n \n try {\n // create http entity class with common headers\n HttpEntity entity = new HttpEntity(headers);\n NodeServiceListResponse<AlphaVessel> response = new NodeServiceListResponse<AlphaVessel>(\n AlphaVessel.class);\n\n // retrieve the response from the node service call\n response = NodeServicesUtil.getNodeListResponse(targetUrl + \"vessel/filterAlphas?q=\" + name,\n entity, HttpMethod.GET, response, null);\n\n // retrieve data from the response object\n List<AlphaVessel> vslList = response.getConvertedData();\n\n // remove duplicates from result set\n for (AlphaVessel vsl : vslList) {\n if (!alphaNameList.contains(vsl.getName())) {\n alphaNameList.add(vsl.getName());\n }\n }\n\n // sort the results set\n Collections.sort(alphaNameList, String.CASE_INSENSITIVE_ORDER);\n\n // catch and log all errors from the service\n } catch (Exception e) {\n // error getting data\n LOG.error(\"There was an error getting alpha vessel names: \" + e);\n }\n\n return alphaNameList;\n }",
"public ListElement getPrevious()\n\t {\n\t return this.previous;\n\t }",
"public DSALinkedList getAdjacent(String label)\n\t{\n\t\tDSAGraphVertex vx = getVertex(label);\n\t\treturn vx.getAdjacent();\n\t}",
"public java.lang.String getBIndPrevAfcars()\r\n {\r\n return this._bIndPrevAfcars;\r\n }",
"public O before(O a)\r\n {\r\n int index = indexOf(a);\r\n if (index != -1 && index != 0) //is defined and not first\r\n return get(index-1);\r\n else return null;\r\n }",
"public ArrayList<Literal> lookAround(String agName){\r\n\t\tperceptModel = MapEnv.model;\r\n\t\tArrayList<Literal> lookArr = new ArrayList<Literal>();\r\n\t\tint \t id \t \t = perceptModel.getAgentID(agName);\r\n\t\tLocation lplayer \t = perceptModel.getAgPos(id); \r\n\t\tif(agName != null){\r\n\t\t\t/** Searching direct neighbours to the Agent's location*/\r\n\t\t\tfor(int y = -1; y <= 1; y++){\r\n\t\t\t\tfor(int x = -1; x <= 1; x++){\r\n\t\t\t\t\tif(!(x == 0 && y == 0)){\r\n\t\t\t\t\t\tLocation l = new Location(lplayer.x + x, lplayer.y + y);\r\n//\t\t\t\t\t\tSystem.out.println(\"Player 1 Loc: (\" + lplayer.x + \",\" + lplayer.y + \"):: See Loc (\" + l.x + \",\" + l.y + \")\");\r\n\t\t\t\t\t\tif(perceptModel.getAgAtPos(l) != -1){\r\n\t\t\t\t\t\t\tint agt = perceptModel.getAgAtPos(l);\r\n\t\t\t\t\t\t\tString plyr = perceptModel.getAgName(agt);\r\n\t\t\t\t\t\t\t/** Detects and adds nearby agents flagholder status perception */\r\n\t\t\t\t\t\t\tif(perceptModel.flag.agentCarrying == perceptModel.getAgentID(plyr)){\r\n\t\t\t\t\t\t\t\tLiteral nfh = Literal.parseLiteral(\"flagholder(\" + plyr + \")\");\r\n\t\t\t\t\t\t\t\tlookArr.add(nfh);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tLiteral np = Literal.parseLiteral(\"close(\" + plyr + \")\"); \r\n\t\t\t\t\t\t\t\tlookArr.add(np);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/** Searching an single space further in the cardinal directions*/\r\n\t\t\tfor(int y = -2; y <= 2; y+=4){\r\n\t\t\t\tfor(int x = -2; x <= 2; x+=4){\r\n\t\t\t\t\tLocation l = new Location(lplayer.x + x, lplayer.y + y);\r\n\t//\t\t\t\tSystem.out.println(\"Player Loc: (\" + lplayer.x + \",\" + lplayer.y + \"):: See Loc (\" + l.x + \",\" + l.y + \")\");\r\n\t\t\t\t\tif(perceptModel.getAgAtPos(l) != -1 ){\r\n\t\t\t\t\t\tint \tagt = perceptModel.getAgAtPos(l);\r\n\t\t\t\t\t\tString plyr = perceptModel.getAgName(agt);\r\n\t\t\t\t\t\t/** Detects and adds nearby agents flagholder status perception */\r\n\t\t\t\t\t\tif(perceptModel.flag.agentCarrying == perceptModel.getAgentID(plyr)){\r\n\t\t\t\t\t\t\tLiteral nfh = Literal.parseLiteral(\"flagholder(\" + plyr + \")\");\r\n\t\t\t\t\t\t\tlookArr.add(nfh);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tLiteral np = Literal.parseLiteral(\"close\" + plyr + \")\"); \r\n\t\t\t\t\t\t\tlookArr.add(np);\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\t/** Returns completed ArrayList */ \r\n\t\t\treturn lookArr;\r\n\t\t} else return null;\r\n\t}",
"@Override\n\tpublic List zhye(String name) {\n\t\treturn deal.zhye(name);\n\t}",
"public ExtremeEntry previous() {\n\n\t\tsetLastReturned(getLastReturned().getPrevious());\n//\t\tnextIndex--;\n\t\tcheckForComodification();\n\t\treturn getLastReturned();\n\t}",
"public Set<Vertex> pre(Vertex start){\n\t\tSet<Vertex> reach = new HashSet<Vertex>();\n\t\tif(this.edgesByEnd.get(start) == null)\n\t\t\treturn reach;\n\t\tfor(LabeledEdge trans : this.edgesByEnd.get(start)){\n\t\t\treach.add(trans.getStart());\n\t\t}\n\t\treturn reach;\n\t}",
"private Intersection[] getExtremIntersection(){\n if(!mapLoaded){\n return null;\n }\n Intersection northernmost = intersectionList.get(0);\n Intersection southernmost = intersectionList.get(0);\n Intersection easternmost = intersectionList.get(0);\n Intersection westernmost = intersectionList.get(0);\n\n for(int i=0 ; i<intersectionList.size() ; i++){\n Intersection testedIntersection = intersectionList.get(i);\n //north\n if(northernmost.getLatitude() < testedIntersection.getLatitude()) {\n northernmost = testedIntersection;\n }\n //south\n if(southernmost.getLatitude() > testedIntersection.getLatitude()) {\n southernmost = testedIntersection;\n }\n //east\n if(easternmost.getLongitude() < testedIntersection.getLongitude()) {\n easternmost = testedIntersection;\n }\n //west\n if(westernmost.getLongitude() > testedIntersection.getLongitude()) {\n westernmost = testedIntersection;\n }\n }\n Intersection[] extremum = {northernmost , southernmost , easternmost , westernmost};\n return extremum;\n }",
"private Order findRecentOrder(String productName) {\r\n for (int i = 0; i < orderHistory.size(); i++) {\r\n if (orderHistory.get(i).getProductName().equalsIgnoreCase(productName)) {\r\n return orderHistory.get(i);\r\n }\r\n }\r\n return null;\r\n }",
"@Override\n public List<Order> findByTuoteName(String name) {\n List<Order> ordersByProductName = new ArrayList<>();\n for (int i = 0; i < this.orders.size(); i++) {\n \n if (this.orders.get(i).getProduct().getName().equals(name)) {\n ordersByProductName.add(this.orders.get(i));\n }\n }\n return ordersByProductName;\n }",
"public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }",
"public E getPrevious() {\n\t\tif (!super.isEmpty()) {\n\t\t\tif (index <= 0)\n\t\t\t\tindex = this.size();\n\t\t\treturn this.get(--index);\n\t\t}\n\t\treturn null;\n\t}",
"public String getHotelName() {\n\t\treturn this.name;\n\t}",
"public HotelCard searchAdjacentHotels(Board board, Tuple res) {\n ArrayList<HotelCard> hotels = board.getHotels();\n ArrayList<HotelCard> adjacent_hotels = new ArrayList<>();\n ArrayList<Integer> ids = new ArrayList<>();\n int x1, x2, y1, y2, x3, y3, x4, y4;\n\n // Presentation of player's adjacent hotels\n System.out.println(ANSI() + \"Here are the available adjacent hotels:\" + ANSI_RESET);\n // right\n x1 = res.a;\n y1 = res.b + 1;\n // up \n x2 = res.a - 1;\n y2 = res.b;\n // left\n x3 = res.a;\n y3 = res.b - 1; \n // down\n x4 = res.a + 1;\n y4 = res.b;\n \n if (isNum(board.board[x1][y1]) != -1) {\n ids.add(isNum(board.board[x1][y1]));\n }\n if (isNum(board.board[x2][y2]) != -1) {\n ids.add(isNum(board.board[x2][y2]));\n }\n if (isNum(board.board[x3][y3]) != -1) {\n ids.add(isNum(board.board[x3][y3]));\n }\n if (isNum(board.board[x4][y4]) != -1) {\n ids.add(isNum(board.board[x4][y4]));\n }\n for (int id : ids) {\n for (HotelCard hc : hotels) {\n if (hc.getID() == id) {\n System.out.print(ANSI() + \"Hotel Name: \" + hc.getName() + ANSI_RESET);\n System.out.print(ANSI() + \", Hotel ID: \" + hc.getID() + ANSI_RESET); \n System.out.println(ANSI() + \", Hotel Ranking: \" + hc.getRank() + ANSI_RESET); \n adjacent_hotels.add(hc); \n }\n }\n }\n\n // Choose one adjacent hotel\n System.out.println(\"Please type the id of the hotel you want to buy\");\n boolean answer = false;\n while (answer == false) {\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int ID;\n try { \n ID = Integer.parseInt(str);\n // Search for the hotel card with user's given ID \n for (HotelCard hc : adjacent_hotels) \n if (hc.getID() == ID) return hc; \n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET);\n } catch (Exception e) {\n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET);\n }\n }\n return null;\n }",
"private void removePrevNames(String name){\r\n\t\tif (prevNames.contains(name)){\r\n\t\t\tprevNames.remove(name);\r\n\t\t}\r\n\t}",
"String getPrevMoves() {\n return this.prevMoves;\n }",
"public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}",
"public Element[] getPrecedingSiblings(Element element, String localName) {\n return DocumentHelper.getPrecedingSiblings(element, getNamespaceURI(), localName);\n }",
"@Override\n\tpublic Legacydb[] findByName_PrevAndNext(long legacydbid, String name,\n\t\tOrderByComparator orderByComparator)\n\t\tthrows NoSuchLegacydbException, SystemException {\n\t\tLegacydb legacydb = findByPrimaryKey(legacydbid);\n\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tLegacydb[] array = new LegacydbImpl[3];\n\n\t\t\tarray[0] = getByName_PrevAndNext(session, legacydb, name,\n\t\t\t\t\torderByComparator, true);\n\n\t\t\tarray[1] = legacydb;\n\n\t\t\tarray[2] = getByName_PrevAndNext(session, legacydb, name,\n\t\t\t\t\torderByComparator, false);\n\n\t\t\treturn array;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}",
"public E previous() {\r\n current--;\r\n return elem[current];\r\n }",
"int[] getGivenByOrder();",
"public List getUserListCurrentOrderByOffice() {\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n Query query;\n\n try {\n /*\n * Build HQL (Hibernate Query Language) query to retrieve a list\n * of all the items currently stored by Hibernate.\n */\n query = session.createQuery(\"select user from app.user.User user where user.currentEmployee = 'true' order by user.Location.locationId, user.lastName, user.firstName\");\n return query.list();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n }",
"public PlayerPosition getPrevious() {\n\n\t\tswitch (this) {\n\t\t\tcase BOTTOM:\n\t\t\t\treturn RIGHT;\n\t\t\tcase LEFT:\n\t\t\t\treturn BOTTOM;\n\t\t\tcase TOP:\n\t\t\t\treturn LEFT;\n\t\t\tcase RIGHT:\n\t\t\t\treturn TOP;\n\t\t\tdefault:\n\t\t\t\t// must not happen\n\t\t\t\treturn null;\n\t\t}\n\t}",
"public Vertex getPrev() {\n return prev;\n }",
"java.lang.String getHotelName();",
"public int[] getPrevious() {\n if (currentRound == -1 || currentHeat == -1 || rounds.size() == 0) {\n return new int[] {-1, -1};\n }\n\n int[] last = new int[2];\n\n // Check if current round was the first heat (if so there was no previous heat)\n if (currentRound == 0 && currentHeat == 0) {\n // This is the first heat - return invalid\n return new int[] {-1, -1};\n }\n // There was a previous heat\n else {\n // Check if this was the first heat of the round\n if (currentHeat == 0) {\n // It was the first heat, so we need to get the last heat of the previous round\n last[0] = currentRound - 1;\n last[1] = rounds.get(currentRound - 1).length() - 1;\n }\n else {\n // There was a previous heat in this round\n last[0] = currentRound;\n last[1] = currentHeat - 1;\n }\n }\n\n return last;\n }",
"private List<EObject> getElements(ISelector s) {\n\t\tList<EObject> result = new ArrayList<EObject>();\n\t\t\n\t\tfor (EObject next : charStartMap.keySet()) {\n\t\t\tint start = charStartMap.get(next);\n\t\t\tint end = charEndMap.get(next);\n\t\t\tif (s.accept(start, end)) {\n\t\t\t\tresult.add(next);\n\t\t\t}\n\t\t}\n\t\tCollections.sort(result, new Comparator<EObject>() {\n\t\t\tpublic int compare(EObject objectA, EObject objectB) {\n\t\t\t\tint lengthA = getCharEnd(objectA) - getCharStart(objectA);\n\t\t\t\tint lengthB = getCharEnd(objectB) - getCharStart(objectB);\n\t\t\t\treturn lengthA - lengthB;\n\t\t\t}\n\t\t});\n\t\treturn result;\n\t}",
"List<Node> getAdjacentNodes(String data) {\n return adjacentNodes.get(new Node(data));\n }",
"public ArrayList orderToppings() {\r\n\t\t//left blank on purpose\r\n\t\treturn toppings;\r\n\t}",
"public Point getLowerPoint() {\n return lower;\n }",
"public ArrayList<String> getCurCusHis(String name)\n {\n createHisMap(Customer.getInstance());\n return hisMap.get(name);\n }",
"public void Prev();",
"List<State> adj() {\n\t\t\tList<State> adj = new ArrayList<State>();\n\t\t\tList<Edge> edgeList = edgeMap.get(city);\n\n\t\t\tfor (Edge e : edgeList) {\n\t\t\t\tboolean isPlane = e.cost == 0;\n\t\t\t\tif (ticketUsed == true && isPlane) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tint toCity = e.to;\n\t\t\t\tState s = new State(toCity, isPlane, dist + e.cost);\n\n\t\t\t\tadj.add(s);\n\t\t\t}\n\n\t\t\treturn adj;\n\t\t}",
"public DependencyElement previous() {\n\t\treturn prev;\n\t}",
"@Override\n public Set PatientsOlderThenEnlistedAfter() {\n Set<Patient> patients = new HashSet<>();\n patientRepository.findAll().forEach(patients::add);\n Set<Patient>olderThanEnlistedSince = new HashSet<>();\n if(patients != null)\n {\n patients.forEach((patient) ->\n {\n if(patient.getAge() > 21 && patient.getEnlistmentDate().after(new Date(01-01-2020))){\n olderThanEnlistedSince.add(patient);\n }else {\n System.out.println(\"No patients older than 21 enlisted after 1.1.2020.\");\n }\n });\n }\n\n return olderThanEnlistedSince;\n }",
"public T prev() {\n cursor = ((Entry<T>) cursor).prev;\n ready = true;\n return cursor.element;\n }",
"public ArrayList<Guest> searchGuestList(String name) {\n \tString checkName = name.toUpperCase();\n \tArrayList<Guest> result = new ArrayList<>();\n \tfor(Guest guest : guestList){\n if(guest.getName().toUpperCase() != null && guest.getName().toUpperCase().contains(checkName)) {\n \tresult.add(guest);\n }\n }\n \treturn result;\n }",
"@Override\r\n public Iterable<V> neighbors(V vertexName) {\r\n try {\r\n Iterator<Vertex> vertexIterator = map.values().iterator();\r\n while(vertexIterator.hasNext()) {\r\n Vertex v = vertexIterator.next();\r\n if(vertexName.compareTo(v.vertexName) == 0)\r\n return v.destinations;\r\n }\r\n vertexIterator.next();\r\n return null;\r\n }\r\n catch(NoSuchElementException e) {\r\n throw e;\r\n }\r\n }",
"@When(\"^Order and print the products by name ascendant$\")\n public void order_and_print_the_products_by_name_ascendant() throws Throwable {\n \tint i=0;\n \tfor(i=0;i<5;i++) { \t\t\n \t\t\n \t\tSystem.out.println(pageHome.product2().get(i).getText());\n\n \t}\n }",
"@Override\n\tpublic List<Order1> selOrder1(String name, String foodname, String time) {\n\t\treturn order1Mapper.selOrder1(name, foodname, time);\n\t}",
"public NodeD getSelecPrev(){\n if (this.selec == this.head){\n return this.head;\n }else{\n this.selec = this.selec.getPrev();\n return selec;\n }\n }",
"public Booking getBooking(String name) {\n\t\t\tint i = 0;\r\n\t\t\tBooking buffer;\r\n\t\t\t\r\n\t\t\twhile(i < Bookings.size()) {\r\n\t\t\t\tbuffer = Bookings.get(i);\r\n\t\t\t\tString Name = buffer.getBooker();\r\n\t\t\t\tif (name.contentEquals(Name)) {\r\n\t\t\t\t\treturn buffer;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\treturn null;\r\n\t\t}",
"public ArrayList<String> getOffendersRanking() {\n if (damages.isEmpty())\n return new ArrayList<>();\n\n ArrayList<String> tempNames = new ArrayList<>();\n int[] ricorrenze = new int[12];\n //TODO Do this with an HashMap like in KillShotTrack.getRanking()\n for (int i = 0; i < 12; i++)\n ricorrenze[i] = 0;\n\n Iterator i = damages.iterator();\n\n while (i.hasNext()) {\n String t = (String) i.next();\n if (tempNames.contains(t)) {\n ricorrenze[tempNames.indexOf(t)]++;\n } else {\n tempNames.add(t);\n ricorrenze[tempNames.indexOf(t)]++;\n }\n }\n\n return tempNames;\n /*return players who gave damages to this.player in order(in 0 highest damage)*/\n }",
"List<WayBill> getWayBillVisited();",
"ComponentAgent getPreviousSibling();",
"public List<Slot> getSlotOffsets(String name, boolean ignoreEmpty);",
"public List getPrevList() {\n\t\treturn prevList;\n\t}",
"public List<String> getHotels() {\n\t\t// FILL IN CODE\n\t\tlock.lockRead();\n\t\ttry{\n\t\t\tList<String> hotelIds = new ArrayList<>();\n\t\t\tif(hotelIds != null){\n\t\t\t\thotelIds = new ArrayList<String>(hotelMap.keySet());\n\t\t\t}\n\t\t\treturn hotelIds;\n\t\t}\n\t\tfinally{\n\t\t\tlock.unlockRead();\n\t\t}\n\t}",
"List<State> findStatesBetweenOrders( int nOrder1, int nOrder2, int nIdWorkflow );",
"public List<com.hexarchbootdemo.adapter.output.persistence.h2.generated_sources.jooq.tables.pojos.Voter> fetchRangeOfFirstName(String lowerInclusive, String upperInclusive) {\n return fetchRange(Voter.VOTER.FIRST_NAME, lowerInclusive, upperInclusive);\n }",
"public String[] getNames(){\n \t\tString[] outStrings = new String[otherNames.length+1];\n \t\toutStrings[0] = this.name;\n\t\tfor(int i=1;i<otherNames.length;i++)\n \t\t\toutStrings[i] = this.otherNames[i-1];\n \t\treturn outStrings;\n \t}",
"public com.Hotel.model.Hotel fetchByname_Last(java.lang.String name,\n\t\tcom.liferay.portal.kernel.util.OrderByComparator orderByComparator)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public Vertex getPrevious(){\n return previous;\n }",
"public String getHotelName() {\n\t\t\treturn Name;\r\n\t\t}",
"public Coords getLowerLeft()\r\n {\r\n return new Coords(x, y + height);\r\n }",
"public void addHotelName(String name) {\n\t\t\tName = name;\r\n\t\t}",
"private Location[] overrunsTop () {\n Location nextLocation;\n Location nextCenter;\n \n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(getX(), 0);\n nextCenter = new Location(getX(), myCanvasBounds.getHeight());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = FULL_TURN_DEGREES - getHeading();\n if (getHeading() < THREE_QUARTER_TURN_DEGREES) {\n angle = -(getHeading() - HALF_TURN_DEGREES);\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(getX() + getY() / Math.tan(angle), 0);\n nextCenter = new Location(getX() + getY() / Math.tan(angle),\n myCanvasBounds.getHeight());\n \n // eliminates race condition - if next location overruns left/right AND top/bottom it checks\n // to see which is overrun first and corrects\n if (nextLocation.getX() > myCanvasBounds.getWidth())\n // right\n return overrunRight();\n else if (nextLocation.getX() < 0) // left\n return overrunLeft();\n \n return new Location[] { nextLocation, nextCenter };\n }",
"public List<Enemy> lowestLine() {\r\n List<Enemy> low = new ArrayList<>();\r\n for (Double x : this.xOfEachCol()) {\r\n List<Enemy> colList = new ArrayList<>();\r\n for (Enemy e : enemies) {\r\n if (e.getCollisionRectangle().getUpperLeft().getX() == x) {\r\n colList.add(e);\r\n }\r\n }\r\n low.add(this.lowestEnemyInCol(colList));\r\n }\r\n return low;\r\n }",
"@Nonnull\n public Optional<ENTITY> previous()\n {\n currentItem = Optional.of(items.get(--index));\n update();\n return currentItem;\n }",
"protected abstract D getPrevious(D d);",
"List<Tile> getAdjacentTiles();",
"public int seekAlphabeticPosition(String name) {\r\n\tList<FileSystem> list = this.getDir().getList();\r\n\tint pos = 0;\r\n\tfor(int i = 0; i < list.size(); i++) {\r\n\t\tif(name.charAt(0) < list.get(i).getName().charAt(0)) {\r\n\t\t\tpos = i; \r\n\t\t}\r\n\t\tif(name.charAt(0) == list.get(i).getName().charAt(0)) {\r\n\t\t\tfor(int j = 1; j < list.get(i).getName().length();j++) {\r\n\t\t\t\tif(name.charAt(j) < list.get(i).getName().charAt(j)) {\r\n\t\t\t\t\tpos = i; \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\treturn pos; \r\n}",
"public void showBeforeAfterLocation() {\n\t\tfor (Integer key : afterLoc.keySet()) {\n\t\t\tdouble[] ary = afterLoc.get(key);\n\n\t\t\tString locationA = \"\";\n\t\t\tfor (int i = 0; i < ary.length; i++) {\n\t\t\t\tlocationA += Config.roundTwoDecimals(ary[i]) + \"\\t\";\n\t\t\t}\n\n\t\t\tdouble[] ary2 = beforeLoc.get(key);\n\n\t\t\tString locationB = \"\";\n\t\t\tfor (int i = 0; i < ary2.length; i++) {\n\t\t\t\tlocationB += Config.roundTwoDecimals(ary2[i]) + \"\\t\";\n\t\t\t}\n\t\t\tCaller.log(\" AFTER: \" + key + \" | \" + locationA + \"\\t|\" + attractors.get(key).count);\n\t\t}\n\t}",
"HNode getPreviousSibling();",
"public Position[] getWinningPositions();",
"@Nonnull\n @CheckReturnValue\n public SplitString previous() {\n if (offset == 0) {\n throw new IllegalStateException(\"Already at the beginning\");\n }\n return array[--offset];\n }",
"public DNode getPrev() { return prev; }",
"public List<Artikel> getArtikelBestand() {\n\t\tList<Artikel> ergebnis = new Vector<Artikel>();\n\t\tergebnis.addAll(artikelBestand);\n\t\treturn ergebnis;\n\t}",
"OIterator<V> before();",
"public Node getPrev()\r\n\t{\r\n\t\treturn prev;\r\n\t}",
"public ArrayList<Cell> findPlacesToGiveBirth() {\r\n\r\n // Randomly choose the number of babies.\r\n int numOfBabyToBeBorn = new Random().nextInt(this.numOfBaby()) + 1;\r\n\r\n ArrayList<Cell> newEmpty = this.getNeighbours(1);\r\n Collections.shuffle(newEmpty);\r\n\r\n ArrayList<Cell> placeToBeBorn = new ArrayList<Cell>();\r\n\r\n int countEmptyCell = 0;\r\n\r\n for (int findEmpt = 0; findEmpt < newEmpty.size()\r\n && countEmptyCell < numOfBabyToBeBorn; findEmpt++, countEmptyCell++) {\r\n if (newEmpty.get(findEmpt).getInhabit() == null \r\n && isTerrainAccessiable(newEmpty.get(findEmpt))) {\r\n placeToBeBorn.add(newEmpty.get(findEmpt));\r\n }\r\n }\r\n return placeToBeBorn;\r\n }",
"public ArrayList< Vertex > adjacentVertices( ) {\n return adjacentVertices;\n }"
]
| [
"0.57647157",
"0.5751379",
"0.53712827",
"0.48424268",
"0.48179293",
"0.47894156",
"0.47866654",
"0.47398865",
"0.47383946",
"0.47077918",
"0.46167547",
"0.45915806",
"0.45871568",
"0.45793557",
"0.4548533",
"0.45301682",
"0.45226166",
"0.45199633",
"0.45198652",
"0.45147747",
"0.44610828",
"0.44368464",
"0.44352117",
"0.44251478",
"0.44180077",
"0.44176868",
"0.44173825",
"0.44170928",
"0.44081503",
"0.44044763",
"0.4401124",
"0.43876025",
"0.43734846",
"0.43733248",
"0.43658227",
"0.43617404",
"0.43595502",
"0.4359323",
"0.4327449",
"0.43157062",
"0.43104836",
"0.42970145",
"0.42927197",
"0.428894",
"0.42860782",
"0.42844746",
"0.42736077",
"0.42707455",
"0.42629185",
"0.42625442",
"0.42582086",
"0.4257617",
"0.42488062",
"0.4245515",
"0.42434698",
"0.42388356",
"0.42362043",
"0.42361602",
"0.42334718",
"0.42287427",
"0.42276132",
"0.42228565",
"0.4220221",
"0.42166477",
"0.4207285",
"0.419813",
"0.4196779",
"0.418424",
"0.41831398",
"0.4176048",
"0.41744608",
"0.4169932",
"0.41685897",
"0.41591418",
"0.41589487",
"0.41530028",
"0.41454598",
"0.41440764",
"0.41429824",
"0.41429004",
"0.41409189",
"0.41407907",
"0.41395316",
"0.41378242",
"0.4133094",
"0.41301644",
"0.41267824",
"0.4126427",
"0.41255882",
"0.41187268",
"0.41173548",
"0.4116735",
"0.4114151",
"0.4109297",
"0.41032147",
"0.4102576",
"0.41023302",
"0.40962702",
"0.4092583",
"0.4083984"
]
| 0.6333013 | 0 |
Removes all the hotels where name = &63; from the database. | public void removeByname(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void cleanWarps(String name, FlatDB warpsDB) {\n List<OwnedWarp> plWarps = warps.get(name);\n List<String> warpNames = new ArrayList<String>();\n for(OwnedWarp warp : plWarps)\n warpNames.add(warp.getName());\n for(Row row : warpsDB.getAll())\n if(!warpNames.contains(row.getIndex()))\n warpsDB.removeRow(row.getIndex());\n warpsDB.update();\n }",
"@Override\n\tpublic void removeByName(String name) throws SystemException {\n\t\tfor (Legacydb legacydb : findByName(name, QueryUtil.ALL_POS,\n\t\t\t\tQueryUtil.ALL_POS, null)) {\n\t\t\tremove(legacydb);\n\t\t}\n\t}",
"public void del(String name) {\n\t\tfor (AddrBean ad : addrlist) {\n\t\t\tif (name.equals(ad.getUsername())) {\n\t\t\t\taddrlist.remove(ad);\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void deleteByName(String name) {\n\t\tint del = name.toUpperCase().charAt(0) - 'A';\r\n\t\tfor (int i = 0; i < array[del].size(); i++) {\r\n\t\t\tif (array[del].get(i).name == name) {\r\n\t\t\t\tarray[del].remove(i);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean destroyBooking(String name) {\n\t\t\tint i = 0;\r\n\t\t\tBooking buff = null;\r\n\t\t\t\r\n\t\t\twhile(i < Bookings.size()) {\r\n\t\t\t\tbuff = Bookings.get(i);\r\n\t\t\t\tif(name.contentEquals(buff.getBooker())) {\r\n\t\t\t\t\tBookings.remove(buff);\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t}",
"public void removeFromHashes() {\n getBrowser().getDrbdResHash().remove(getName());\n getBrowser().putDrbdResHash();\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n removeDrbdVolumeFromHashes(dvi);\n }\n }",
"public void removeRoomFromList(String roomname){\n\t\troomlist.remove(roomname);\t\t\t\n\t}",
"public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }",
"private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }",
"public final void removeFromChest(String name) {\n chestCharacters.remove(name);\n }",
"@Override\n\tpublic void deleteByName(String name) {\n\t\t\n\t}",
"public void deleteByName(String name){\r\n repository.deleteByName(name);\r\n }",
"public void deleteallWishlist() {\n db = helper.getWritableDatabase();\n db.execSQL(\"delete from \" + DatabaseConstant.TABLE_NAME_WISHLIST);\n db.close();\n }",
"public void remove(String name);",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Legacydb legacydb : findAll()) {\n\t\t\tremove(legacydb);\n\t\t}\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (LocalRichInfo localRichInfo : findAll()) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}",
"private void remove(String name) {\n if (team.getPokemon(name) != null) {\n System.out.println(\"You are going to remove \" + name);\n System.out.println(\"This process is inrevertable, are you sure? [y/n]\");\n String command = input.next();\n if (command.equals(\"y\") || command.equals(\"yes\")) {\n team.remove(name);\n System.out.println(name + \" has been removed form your team\");\n System.out.println(\"You currently have \" + team.count() + \" pokemons in your team\");\n }\n } else {\n System.out.println(name + \" is not found within your team\");\n }\n }",
"public void clear(String name) {\n/* 95 */ this.texturesLinear.remove(name);\n/* 96 */ this.texturesNearest.remove(name);\n/* */ }",
"@Override\n\tpublic void eliminarUsuaris(String name) {\n\t\treposUsuarios.deleteById(name);\n\t}",
"void remove(String name);",
"void remove(String name);",
"@SuppressWarnings({ \"unused\", \"boxing\" })\n private void dropUnmatched(String name, Instances data) {\n for (int i = 0; i < data.numAttributes(); i++) {\n if (data.classIndex() == i) {\n continue;\n }\n\n if (name.equals(\"train\") && !this.attributes.containsKey(i)) {\n data.deleteAttributeAt(i);\n }\n\n if (name.equals(\"test\") && !this.attributes.containsValue(i)) {\n data.deleteAttributeAt(i);\n }\n }\n }",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Candidate candidate : findAll()) {\n\t\t\tremove(candidate);\n\t\t}\n\t}",
"public void remove(ResourceLocation name) {\n data.remove(name.toString());\n }",
"public void removeWorld(String name){\n worlds.remove(getWorld(name));\n }",
"public void searchAndRemove(ArrayList<String> list, String name) {\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tif (name.equals(list.get(i))) {\n\t\t\t\tlist.remove(i);\n\t\t\t}\n\t\t}\n\n\t}",
"public void deleteAllPeople() {\n }",
"public boolean removeFromFavourites(String name){\n SQLiteDatabase db =this.getReadableDatabase();\n ContentValues contentVal = new ContentValues();\n contentVal.put(FAVOURITES,false);\n db.update(Db_Table,contentVal, \"movie_name = ?\",new String[]{ name });\n return true;\n }",
"public void removePowerUp(PowerUp p) {\n for (Location loc : p.getLocations()) {\n Location replacement = new Location(loc.getX(), loc.getY());\n gridCache.add(replacement);\n }\n\n powerUps.remove(p);\n render();\n}",
"public void removeGuestPlayerFromDB(String username) throws SQLException {\n PreparedStatement stm = T3DB.getConnection().prepareStatement(\n \"delete from GuestPlayer where displayname=?\");\n stm.setString(1, username);\n stm.executeUpdate();\n }",
"@Override\n\tpublic int delete(String name) {\n\t\treturn super.getJdbcTemplate().update(\"DELETE FROM GOODSINFO WHERE NAME=?\", new Object[] { name });\n\t}",
"@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }",
"@Override\n\tpublic void eliminaCategoria(String nome) {\n\t\tDB db = getDB();\n\t\tMap<Long, Categoria> categorie = db.getTreeMap(\"categorie\");\n\t\tlong hash = nome.hashCode();\n\t\tcategorie.remove(hash);\n\t\tdb.commit();\n\t}",
"public synchronized void unRegisterAll()\r\n {\r\n clearNameObjectMaps();\r\n }",
"public void removeHome(UUID uuid, String name){\r\n\t\t//Load Map (Update)\r\n\t\tloadMap();\r\n\r\n\t\t//Combovar of Homename & UUID of Player\r\n\t\tString uniqhome = uuid.toString() + name;\r\n\r\n\t\t//Remove HomePoint from Map\r\n\t\tmap.remove(uniqhome);\r\n\r\n\t\t//Save Map\r\n\t\ttry {\r\n\t\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(homeFileLocation));\r\n\t\t\toos.writeObject(map);\r\n\t\t\toos.flush();\r\n\t\t\toos.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }",
"public void removeConnection(String name) {\n String nameInLowerCase = Ascii.toLowerCase(name);\n Preconditions.checkState(!registered);\n Preconditions.checkArgument(connections.containsKey(nameInLowerCase), \"missing key: %s\", name);\n connections.remove(nameInLowerCase);\n }",
"@Override\n\tpublic void delete(String name) {\n\t\tdocument.removeChild(document.getElementsByTagName(name).item(0));\n\t\tsaveDocument();\n\t}",
"public void remove(final String name) {\r\n\t\tremove(names.indexOf(name));\r\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}",
"public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$8, 0);\n }\n }",
"public void removeExprColumnInOIFitsCollection(final String name) {\n modifyExprColumnInOIFitsCollection(name, null, true);\n }",
"public void clearNames() {\n eventTitles = null;\n guestTitles = null;\n }",
"public void deleteStock(String name){\n Log.d(TAG, \"deleteStock: \"+name);\n int cnt = database.delete(TABLE_NAME, STOCK_NAME + \" = ?\", new String[]{name});\n Log.d(TAG, \"deleteStock: \"+cnt);\n }",
"public void deletingArticlesByName(String string) {\n\t\tSystem.out.println(\"\\nArticles anomenats \" + string + \" :\");\n\t\t\n\t\tObjectSet<Article> articles = db.query(new Predicate<Article>() {\n\t\t\tpublic boolean match(Article article) {\n\t\t\t\treturn article.getName().equalsIgnoreCase(string);\n\t\t\t}\n\t\t});\n\t\tarticles.stream()\n\t\t\t\t.peek(System.out::println)\n\t\t\t\t.forEach(db::delete);\n\t}",
"public void deleteWordLevel() {\n\t\ttry {\n \t\t\tClass.forName(DRIVER);\n \t\t} catch (ClassNotFoundException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t}\t\t\n\t\ttry ( Connection con = DriverManager.getConnection(URL, USER, PW)) {\n\t\t\tStatement stmt = con.createStatement();\n//\t\t\tString sql = \"DELETE FROM \" + TblName_KNOW + \" WHERE UID = \" + uid + \";\";\n\t\t\tString sql = \"UPDATE \" + tbl_USER_DIC + \" SET \" + Constants.FLD_KNOW + \"=\" + Constants.WORD_UNKNOWN + \";\";\t\t\t\n\t\t\tstmt.executeUpdate(sql);\n\t\t\t\n\t stmt.close();\n\t con.close();\n\t\t} catch(Exception e) {\n\t\t\tlogger.info(\"fail to open mysql\");\n\t\t\te.printStackTrace();\n\t\t}\t\n\t}",
"@Override\n public void removeFromDb() {\n }",
"@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}",
"public void removeEnemy(String name){\n\t\tint remove = findEnemyNamePosition(name);\r\n\t\t\r\n\t\t//subtract in one the size of the array\r\n\t\tsize--;\r\n\t\t\r\n\t\t//make all the values in the array down in one position, in the position to remove\r\n\t\tfor(int i = remove + 1; i < size; i++){\r\n\t\t\tenemy[i - 1] = enemy[i];\r\n\t\t}\r\n\t}",
"public void clearPersons() throws DataAccessException {\n try (Statement stmt = conn.createStatement()) {\n String sql = \"DELETE FROM persons\";\n stmt.executeUpdate(sql);\n } catch (SQLException e) {\n throw new DataAccessException(\"SQL Error encountered while clearing persons table\");\n }\n }",
"public void removeAdjacentCountry(String name) {\n this.adjacentCountries.remove(new String(name));\n }",
"private void deleteAttacks(){\n while(!attacksToDelete.isEmpty()){\n attacks.remove(attacksToDelete.remove());\n }\n }",
"@SuppressWarnings(\"serial\")\n\tpublic void delAllMember(final String name) throws Exception{\n\t\tUserRegistry ur = UserRegistry.findOrCreate(doc);\n\t\tGroups groups = Groups.findOrCreate(ur);\t\t\n\t\tfor (Group group:groups.getElementsByTagName(Group.TAG,Group.class))\n\t\t\tgroup.deleteChildren(Member.TAG, new HashMap<String, String>(){{\n\t\t\t\tput(\"username\",name);\n\t\t\t}});\n\t}",
"public void removeList(String name){\n }",
"private void removeItemFromList(String nameStr) {\n for (int i = 0; i < ingredientList.size(); i++) {\n if (ingredientList.get(i).getName().toLowerCase().equals(nameStr.toLowerCase())) {\n ingredientList.remove(i);\n return;\n }\n }\n }",
"private void removeAntFromBoard(Board inputBoard, String name) {\nfor (int k = 0; k < inputBoard.getAntsOnBoard().size(); k++) {\nString currentName = inputBoard.getAntsOnBoard().get(k).getName();\nif (currentName.equalsIgnoreCase(name)) {\nint antPosX = inputBoard.getAntsOnBoard().get(k).getAntPosX();\nint antPosY = inputBoard.getAntsOnBoard().get(k).getAntPosY();\ninputBoard.getAntsOnBoard().remove(k);\ninputBoard.getCellCordinates(antPosX, antPosY).removeAnt();\n}\n}\n}",
"@Override\r\n\tpublic boolean deleteHotelAreas(String hotelAreas) {\n\t\t\r\n\t\tString areaId[] = hotelAreas.split(\",\");\r\n\t\t//System.out.println(\" hotelid:::\" + hotelId.length);\r\n\t\tfor(int i = 0 ; i < areaId.length; i ++)\r\n\t\t{\r\n\t\t\tHotelArea hi = new HotelArea();\r\n\t\t\thi.setId(Integer.parseInt(areaId[i]));\r\n\t\t\t//System.out.println(\" hotelid+++\" + Integer.parseInt(hotelId[i]));\r\n\t\t\thotelAreaDao.delete(hi);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn true;\r\n\t}",
"public static void removeVisitor(String name){\n\t\t\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tvisitorListMap.remove(name);\n\t\t\t\tvisitorListModel.removeElement(name);\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"public void deleteRecord(String name) {\n if (name == null || !addressBook.containsKey(name))\n throw new NullPointerException();\n addressBook.remove(name);\n }",
"public void deleteHistory() {\n weatherRepo.deleteAll();\n }",
"private boolean DelWarp(IPlayer owner, String name)\r\n\t{\r\n\t\tif (!doesWarpExist(owner, name))\r\n\t\t\treturn false;\r\n\t\tboolean success;\r\n\t\tif (owner == null)\r\n\t\t\tsuccess = database.execute(\"DELETE FROM warpdrive_locations WHERE name=? AND public=1\", name);\r\n\t\telse\r\n\t\t\tsuccess = database.execute(\"DELETE FROM warpdrive_locations WHERE name=? AND public=0 AND creator=?\", name, owner);\r\n\t\tcache.Invalidate(cacheKey(owner, name));\r\n\t\treturn success;\r\n\t}",
"public void removeAllData() {\n dbHelper.removeAllData(db);\n }",
"public void removePlayer(String name) {\n for (Player player : players) {\n if (player.getName() != null && player.getName().equals(name)) {\n player.setState(false);\n for (Piece piece : player.getPieces()) {\n piece.setPosition(0);\n }\n\n // PLAYERLISTENER : Trigger playerEvent for player that LEFTGAME\n for (PlayerListener listener : playerListeners) {\n PlayerEvent event = new PlayerEvent(this, player.getColour(), PlayerEvent.LEFTGAME);\n listener.playerStateChanged(event);\n }\n\n if (player.getName().equals(players.get(activePlayer).getName())) {\n this.setNextActivePlayer();\n }\n }\n }\n }",
"String removeEdible(String name);",
"public void deleteMapName(String name){\n\t\tLinkedList<String> names=new LinkedList<String>();\n\t\t\n\t\tboolean present = false;\n\t\tFileReader r;\n\t\ttry {\n\t\t\tr = new FileReader (\"mapRecords.txt\");\n\t\t\tBufferedReader b = new BufferedReader (r);\n\t\t\tString s=b.readLine();\n\t\t\t\n\t\t\twhile(s!=null){\n\t\t\t\tif(s.equals(name))\n\t\t\t\t\tpresent =true; \n\t\t\t\t\n\t\t\t\tnames.add(s);\n\t\t\t\ts=b.readLine();\n\t\t\t\t\n\t\t\t}\n\n\t\t\tr.close();\n\t\t\tb.close();\n\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\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t\tSystem.out.println(\"Can't read file\");\n\t\t}\n\t\t\n\n\t\tif (present){\n\t\t\tnames.remove(name);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tFileWriter w= new FileWriter(new File(\"mapRecords.txt\"));\n\t\t\t\tfor (String n: names){\n\t\t\t\t\tw.write(n+\"\\n\");\n\t\t\t\t\tw.write(System.lineSeparator())\t;\n\t\t\t\t}\t\n\t\t\t\tw.flush();\n\t\t\t\tw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e.printStackTrace();\n\t\t\t\tSystem.out.println(\"Can't write to the file\");\n\t\t\t}\n\t\t}\n\t\telse //there is nothing to remove the file is not present \n\t\t\treturn;\n\t\t\n\t}",
"private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }",
"public java.util.List<com.Hotel.model.Hotel> findByname(\n\t\tjava.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public void removeFacility(String name) {\r\n\t\tfacilities.remove(name);\r\n\t}",
"Object removeTemp(String name);",
"public void clearRegistry() {\r\n implementedDatabases.clear();\r\n }",
"public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$0, 0);\n }\n }",
"public void unsetName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(NAME$0, 0);\n }\n }",
"@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Eliminar los datos del equipo\");\r\n\t}",
"public static void clearWorld() {\n\t\t// Complete this method.\n\t\tfor(Critter i: population){\n\t\t\tpopulation.remove(i);\n\t\t}\n\t\tfor(Critter j: babies){\n\t\t\tbabies.remove(j);\n\t\t}\n\t\tpopulation.clear();\n\t\tbabies.clear();\n\n\n\t}",
"public void deleteAllTags(boolean toResetName){\r\n\t\ttags.clear();\r\n\t\tsetChanged();\r\n\t\tnotifyObservers();\r\n\t\tclearChanged();\r\n\t\tdeleteObservers();\t\r\n\t\t\r\n\t\tif (toResetName){\r\n\t\t\tsetName();\r\n\t\t}\r\n\t}",
"void remove(String name) throws Exception;",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}",
"public void clearNeighborhoods()\n\t{\n\t\tfor (int i=0; i<numberOfNeighborhoods; i++)\n\t\t{\n\t\t\t(listOfNeighborhoods.get(i)).clear();\n\t\t}\n\t}",
"public void removeTerm(String name) {\n ArrayList<String> temp = new ArrayList<>();\n\n for (Term t: listOfTerms) {\n String termName = t.getTermName();\n temp.add(termName);\n }\n\n int index = temp.indexOf(name);\n listOfTerms.remove(index);\n }",
"public abstract boolean remove(String name);",
"public void DeleteAllActivityUser(iconnectionpool connectionPool, String id){\n try{\n Connection con=null;\n //get connection from Pool\n con=connectionPool.getConnection();\n Statement stmt=con.createStatement(); \n String sql=\"delete from similarplaces where id_user=\"+id;\n stmt.executeUpdate(sql); \n }catch(Exception e){}\n }",
"public static void clearWorld() {\r\n \tbabies.clear();\r\n \tpopulation.clear();\r\n }",
"public void removePlayer(String name) {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getName().equals(name)) {\n\t\t\t\toccupiedPositions.remove(p.getPosition());\n\t\t\t\tif(p.getType() == Player.PlayerType.Agent) {\n\t\t\t\t\treAssignRobots(p);\n\t\t\t\t\tthis.agents -= 1;\n\t\t\t\t}\n\t\t\t\tplayerList.remove(p);\n\t\t\t}\n\t\t}\n\t\tserver.broadcastToClient(name, SendSetting.RemovePlayer, null, null);\n\t\tserver.updateGameplane();\n\t}",
"public static void clearName() {\n\t\tfor (int i = 0; i < count; i++)\n\t\t\t ((IdentifierResolver) bIdents.get(i)).clearNName();\n\t}",
"public static Object remove(String name) {\n PersistentRootEntry entry = (PersistentRootEntry)Native.getPersistentMemoryTable();\n while (entry != null) {\n String ename = entry.name;\n if (ename != null && ename.equals(name)) {\n Object o = entry.value;\n entry.name = null;\n entry.value = null;\n return o;\n }\n entry = entry.next;\n }\n return null;\n }",
"public void eliminarAlergia(String alergia){\n String[] alergiaBorrar = {alergia};\n db.delete(\"alergia\",\"alergia=?\",alergiaBorrar);\n }",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Facility_Host facility_Host : findAll()) {\n\t\t\tremove(facility_Host);\n\t\t}\n\t}",
"public void unsetFriendlyName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(FRIENDLYNAME$2, 0);\r\n }\r\n }",
"public Builder clearHotelName() {\n \n hotelName_ = getDefaultInstance().getHotelName();\n onChanged();\n return this;\n }",
"private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }",
"public void unsetName()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(NAME$0, 0);\r\n }\r\n }",
"public void removeSimpleTable(String name) {\n String nameInLowerCase = Ascii.toLowerCase(name);\n Preconditions.checkState(!registered);\n Preconditions.checkArgument(tables.containsKey(nameInLowerCase), \"missing key: %s\", name);\n Preconditions.checkArgument(globalNames.contains(nameInLowerCase), \"missing key: %s\", name);\n SimpleTable table = tables.remove(nameInLowerCase);\n tablesById.remove(table.getId());\n globalNames.remove(nameInLowerCase);\n }",
"@Override\n\tpublic void clearDBDomande() {\n\t\tDB db = getDB();\n\t\tMap<Long, Domanda> domande = db.getTreeMap(\"domande\");\n\t\tdomande.clear();\n\t\tdb.commit();\n\t}",
"@Override\n public void removeAll() throws SystemException {\n for (EntityDealer entityDealer : findAll()) {\n remove(entityDealer);\n }\n }",
"static void wipeLocations(){\n\t \tfor (int i= 0; i < places.length; i++){\n\t\t\t\tfor (int j = 0; j < places[i].items.size(); j++)\n\t\t\t\t\tplaces[i].items.clear();\n\t\t\t\tfor (int k = 0; k < places[i].receptacle.size(); k++)\n\t\t\t\t\tplaces[i].receptacle.clear();\n\t \t}\n\t \tContainer.emptyContainer();\n\t }",
"private void deleteAllPets() {\n// int rowsDeleted = getContentResolver().delete(ArtistsContracts.GenderEntry.CONTENT_URI, null, null);\n// Log.v(\"CatalogActivity\", rowsDeleted + \" rows deleted from pet database\");\n }",
"void unsetName();",
"@Override\r\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino los datos del equipo\");\r\n\t}",
"public void clearProteges(){\n ActiveAndroid.execSQL(\"delete from proteges\");\n }",
"public void removePlaces(){\n List<Place> copies = new ArrayList<>(places);\n for(Place p : copies){\n p.reset();\n }\n }"
]
| [
"0.65210855",
"0.63957345",
"0.6186716",
"0.57610554",
"0.5580432",
"0.5551882",
"0.5540711",
"0.55396074",
"0.5530932",
"0.5482711",
"0.5468323",
"0.54460037",
"0.54253584",
"0.54185057",
"0.540156",
"0.5393013",
"0.5386406",
"0.5351842",
"0.5348072",
"0.5315304",
"0.5315304",
"0.5309272",
"0.5307141",
"0.53066427",
"0.53025085",
"0.52840704",
"0.5279141",
"0.52732724",
"0.52690935",
"0.5260834",
"0.5256571",
"0.52558476",
"0.52413905",
"0.5241332",
"0.5239288",
"0.5236635",
"0.52365625",
"0.5223596",
"0.5209864",
"0.5204507",
"0.5201002",
"0.5200739",
"0.5189298",
"0.5186049",
"0.5183551",
"0.5167381",
"0.516639",
"0.5165516",
"0.5153612",
"0.51513016",
"0.51429206",
"0.5134848",
"0.5129106",
"0.51277524",
"0.5126417",
"0.512586",
"0.51193064",
"0.5116319",
"0.5115702",
"0.51140606",
"0.511229",
"0.5105012",
"0.51000845",
"0.5093289",
"0.5088359",
"0.5084549",
"0.507582",
"0.5075479",
"0.50754035",
"0.50655603",
"0.5058703",
"0.5058703",
"0.50565857",
"0.50553185",
"0.50525105",
"0.50517523",
"0.50467765",
"0.5043652",
"0.5041696",
"0.5041451",
"0.50355905",
"0.50315064",
"0.5026934",
"0.5025117",
"0.50236565",
"0.5022109",
"0.501878",
"0.5016802",
"0.5014466",
"0.5013417",
"0.50120616",
"0.50059825",
"0.50022256",
"0.50012934",
"0.5000112",
"0.49973628",
"0.49922538",
"0.49858415",
"0.49854523",
"0.49849454"
]
| 0.51152825 | 59 |
Returns the number of hotels where name = &63;. | public int countByname(java.lang.String name)
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int searchCountByName(Object name) {\n\t\treturn 0;\r\n\t}",
"public int countByname(java.lang.String name);",
"@Override\n\tpublic int countByName(String name) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic Long getPlantNameCount(String name) {\n\t\tIterator<Object> iterator = null;\r\n\t\tLong i = 0l;\r\n\t\ttry {\r\n\t\t\tsql = \"select count(*) from Plant p where p.plantName='\" + name\r\n\t\t\t\t\t+ \"'\";\r\n\t\t\tList<Object> list = getHibernateTemplate().find(sql);\r\n\t\t\titerator = list.iterator();\r\n\r\n\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\tObject object = (Object) iterator.next();\r\n\t\t\t\ti = (Long) object;\r\n\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn i;\r\n\t}",
"public int numberOfHotels() {\r\n \tint anzahlHotel=hotelDAO.getHotelList().size();\r\n \treturn anzahlHotel;\r\n }",
"@Override\n\tpublic int countByname(String name) {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_NAME;\n\n\t\tObject[] finderArgs = new Object[] { name };\n\n\t\tLong count = (Long)finderCache.getResult(finderPath, finderArgs, this);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_CAMPUS_WHERE);\n\n\t\t\tboolean bindName = false;\n\n\t\t\tif (name == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_1);\n\t\t\t}\n\t\t\telse if (name.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindName = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindName) {\n\t\t\t\t\tqPos.add(name);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"public int getCount(String name)\n\t{\n\t\tfor (int i = 0; i < users.length; i++)\n\t\t{\n\t\t\tif (users[i] != null && users[i].equals(name))\n\t\t\t{\n\t\t\t\treturn count[i];\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int countByName(String name) throws SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_NAME;\n\n\t\tObject[] finderArgs = new Object[] { name };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(2);\n\n\t\t\tquery.append(_SQL_COUNT_LEGACYDB_WHERE);\n\n\t\t\tboolean bindName = false;\n\n\t\t\tif (name == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_1);\n\t\t\t}\n\t\t\telse if (name.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindName = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_NAME_NAME_2);\n\t\t\t}\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindName) {\n\t\t\t\t\tqPos.add(name);\n\t\t\t\t}\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"public int search(String name) {\n Node newNode = new Node(name, 0);\n Node temp = head;\n\t\tint counter = 0;\n while(temp != null) {\n \tif (temp.name == newNode.name) {\n \t\treturn counter;\n\t\t\t}\n\t\t\telse {\n \t\ttemp = temp.next;\n \t\tcounter++;\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public int sizeOfNameArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(NAME$8);\n }\n }",
"int getFaintedPokemonCount();",
"public int countOrderByCustomerName(String name) {\n return customers.stream()\n .filter(x -> x.getName().equals(name))\n .findFirst()\n .get()\n .friendOrders().size();\n }",
"public Integer findFoodName(String food_name) {\n\t\treturn foodDao.findFoodName(food_name);\r\n\t}",
"public int count(String goods_name) {\n\t\treturn sm.selectOne(\"com.huyu.entity.Goods.getCount\", goods_name);\n\t}",
"private int findIngredientByName(String name){\r\n for(int i = 0; i < ingredients.size(); i++){\r\n if(ingredients.get(i).getName().equals(name)){\r\n return i;\r\n }\r\n }\r\n\r\n return -1;\r\n }",
"public int getCount() {\n return arName.size();\n }",
"int getLocationsCount();",
"@Override\r\n\tpublic int getCountWith(String name) {\n\t\treturn 0;\r\n\t}",
"public int count( String hotWord ){\r\n String x = hotWord.toLowerCase();\r\n //If the word is a hotword then get the count and return it\r\n if(words.containsKey(x)){\r\n return words.get(x);\r\n }\r\n //If not, then return -1\r\n else{\r\n return -1;\r\n }\r\n\t}",
"public final int findWorkoutByName(String name) {\r\n\t\tint index = 0;\r\n\r\n\t\tfor (Workout i : workoutList) {\r\n\t\t\tindex++;\r\n\t\t\tif (i.getName() == name) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn index;\r\n\t}",
"int getReservePokemonCount();",
"private int numTags(int tagname) {\n\t\tCVSTag[] tags = logEntry.getTags();\n\t\tint count = 0;\n\t\tfor (CVSTag tag : tags) {\n\t\t\tif (tag.getType() == tagname) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"int getNumberOfGuests();",
"int getTermIndexFromName(String name) {\n int count = 0;\n for (Term term : terms) {\n if (term.getName().equals(name)) {\n return count;\n }\n count++;\n }\n throw new RuntimeException(\"couldn't find index by name\");\n }",
"public static int lookup (String name)\n {\n\tInteger result = MAP.get (name.toLowerCase ());\n\n\treturn (result == null) ? -1 : result;\n }",
"@Override\n\tpublic int countByName(MemberBean member) {\n\t\treturn 0;\n\t}",
"public static int countByregionName(java.lang.String name)\n throws com.liferay.portal.kernel.exception.SystemException {\n return getPersistence().countByregionName(name);\n }",
"public static int countByNam(int nam) {\n\t\treturn getPersistence().countByNam(nam);\n\t}",
"@Override\n\tpublic int getNoofSupplier(String supplierName) {\n\t\t String sql=\"SELECT COUNT(h.supplier_supplier_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t\treturn total;\n\t}",
"@Step(\"Method 'getCountOfPetsWithName' calculates the total number of pets with name 'doggie'\")\n\tpublic void getCountOfPetsWithName() {\n\t\tresponse = restClient.doGetRequest(\"/pet/findByStatus\", property.getProperty(\"status\"));\n\t\t\n\t\t//This step gets the name of all the pets in the list\n\t\tList<String> petsNames=response.then()\n\t\t\t\t\t\t\t\t\t .extract()\n\t\t\t\t\t\t\t\t\t .path(\"name\");\n\n\t\t//For each is used to iterate over the list of names and verify with name- doggie and gets the total count\n\t\tfor(String petsName:petsNames) {\n\t\t\ttry {\n\t\t\t\tif(petsName.equalsIgnoreCase(petDoggie)) {\n\t\t\t\t\tpetCount = petCount+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//This is to handle the exception when Pet has No Name\n\t\t\tcatch(NullPointerException e) {\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Pet Count is- \"+petCount);\n\t}",
"public int stockCount(String stockname) {\n return accountFactory.allStockCount(stockname);\n }",
"int getMonstersCount();",
"int getMonstersCount();",
"long countNameIdNameByIdPerson(int idPerson);",
"public Integer getAllShelfCount(String filter, String username);",
"@Override\n public int getAttributeCount(String name)\n {\n return getAttributes(name).size();\n }",
"@Override\n\tpublic int getNoofProduct(String supplierName) {\n\t String sql=\"SELECT COUNT(h.product_product_id) FROM supplier s INNER JOIN supplier_product h on s.supplier_id=h.supplier_supplier_id WHERE supplier_name=?\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class, supplierName);\n\t return total;\n\t}",
"@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic Integer querycountName(String name) {\n\t\tInteger integer = musicdao.selectcountName(name);\r\n\t\treturn integer;\r\n\t}",
"public Integer findNumOfUsers(String username);",
"public int search(String name){\n\t\tfor(Map.Entry<String, Integer> e : map.entrySet()){\n\t\t\tif(e.getKey().equals(name)){\n\t\t\t\treturn e.getValue();\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t/*\n\t\twhile(pointer < locations.length){\n\t\t\tif(locations[pointer].getName() == name){\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t\treturn locations[pointer - 1].getID();\n\t\t\t} else {\n\t\t\t\tmap.put(locations[pointer].getName(), locations[pointer].getID());\n\t\t\t\tpointer++;\n\t\t\t}\n\t\t}\n\t\tthrow new NullPointerException();\n\t\t*/\n\t}",
"public int getPoints(String name) {\n int points = 0;\n ArrayList<IAgent> iAgentList = playersAgentsMap.get(name);\n for (Iterator<IAgent> iterator2 = iAgentList.iterator(); iterator2.hasNext();) {\n IAgent iAgent = iterator2.next();\n try {\n points = points + iAgent.getPoints();\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n return points;\n }",
"int getWifisCount();",
"int getStrLngth(String name){\r\n int l= name.length();\r\n return l;}",
"public static int numNickels(double money) {\n // REPLACE THIS WITH YOUR CODE\n return 0;\n }",
"public java.util.List<com.Hotel.model.Hotel> findByname(\n\t\tjava.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"private int findEmp(String name) {\n int i;\n for (i = 0; i <= counter; i++) {\n \tif(employees[i].name.equals(name))\n \t\treturn i;\n }\n return -1;\n\t}",
"public int getNumberShips();",
"public int searchFriends(String name) {\n\n int index = -1;\n\n if (name != null) {\n\n Schedule sched;\n for (int i = 0; i < buddies.size(); i++) {\n\n sched = buddies.get(i);\n\n if (name.equals(sched.getWhosSchedule())) {\n \n index = i;\n break;\n }\n }\n }\n\n return index;\n }",
"int getBlockLocationsCount();",
"@Override\n public int countByName(long companyId, String name)\n throws SystemException {\n FinderPath finderPath = FINDER_PATH_COUNT_BY_NAME;\n\n Object[] finderArgs = new Object[] { companyId, name };\n\n Long count = (Long) FinderCacheUtil.getResult(finderPath, finderArgs,\n this);\n\n if (count == null) {\n StringBundler query = new StringBundler(3);\n\n query.append(_SQL_COUNT_BROKERMESSAGELISTENER_WHERE);\n\n query.append(_FINDER_COLUMN_NAME_COMPANYID_2);\n\n boolean bindName = false;\n\n if (name == null) {\n query.append(_FINDER_COLUMN_NAME_NAME_1);\n } else if (name.equals(StringPool.BLANK)) {\n query.append(_FINDER_COLUMN_NAME_NAME_3);\n } else {\n bindName = true;\n\n query.append(_FINDER_COLUMN_NAME_NAME_2);\n }\n\n String sql = query.toString();\n\n Session session = null;\n\n try {\n session = openSession();\n\n Query q = session.createQuery(sql);\n\n QueryPos qPos = QueryPos.getInstance(q);\n\n qPos.add(companyId);\n\n if (bindName) {\n qPos.add(name);\n }\n\n count = (Long) q.uniqueResult();\n\n FinderCacheUtil.putResult(finderPath, finderArgs, count);\n } catch (Exception e) {\n FinderCacheUtil.removeResult(finderPath, finderArgs);\n\n throw processException(e);\n } finally {\n closeSession(session);\n }\n }\n\n return count.intValue();\n }",
"int getHotelImageURLsCount();",
"public int getCount() {\n return listName.length;\n }",
"public void addHotelName(String name) {\n\t\t\tName = name;\r\n\t\t}",
"public int numAlivePokemon() {\r\n\t\tint count = 0;\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tif (p.getCurrentHP() > 0) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"@Override\n\tpublic int selectCountByName(String menuName) {\n\t\treturn menuMapper.selectCountByName(menuName);\n\t}",
"public int register(String name) {\n\t\tint ticketNumber = nextTicketNumber;\n\t\tnextTicketNumber++;\n\t\tallowedPassengers.put(ticketNumber, name);\n\t\treturn ticketNumber;\n\t}",
"int getFeatureCount();",
"int getPersonInfoCount();",
"@Override\n\tpublic int getAvailableCount(Object obj){\n\t\tString name= (String) obj;\n\t\tint counter = 0;\n\t\tsql=\"select count(*) from news_sort where sort_name like ? \";\n\t\tDBUtil db = new DBUtil(sql);\n\t\ttry {\n\t\t\tdb.ps.setString(1, \"%\"+name+\"%\");\n\t\t\trs=db.ps.executeQuery();\n\t\t\twhile(rs.next()){\n\t\t\t\tcounter = rs.getInt(1);\n\t\t\t}\n\t\t\treturn counter;\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\ttry {\n\t\t\t\trs.close();\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}db.close();\n\t\t}\n\t\treturn 0;\n\t\t\n\t\t\n\t}",
"public int getNumberOfNames() {\n\t\treturn 0;\n\t}",
"public int getEquipmentCount() {\r\n\t\tint ret = 0;\r\n\t\tPerson p = model.getData();\r\n\t\tif ( p!=null ) {\r\n\t\t\tret = p.getEquipmentCount();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"@Override\n\tpublic int countUsers(String partialName) {\n\t\tlong lcount = uDao.countUsers(partialName);\n\t\tif (lcount > Integer.MAX_VALUE) {\n\t\t\t// I know this won't ever happen, but I want to make the static code\n\t\t\t// checkers happy.\n\t\t\tlogger.error(\"Too many workspaces\");\n\t\t\treturn Integer.MAX_VALUE;\n\t\t} else {\n\t\t\treturn (int) lcount;\n\t\t}\n\t}",
"public int size() {\r\n\t\treturn names.size();\r\n\t}",
"public static int getVisitedHouses(final String input) {\n final Map<String, Integer> houses = new ConcurrentHashMap<String, Integer>();\n houses.put(\"0:0\", 1);\n\n int x = 0;\n int y = 0;\n\n for (final char movement : input.toCharArray()) {\n switch (movement) {\n case '>':\n x += 1;\n break;\n case '^':\n y += 1;\n break;\n case '<':\n x -= 1;\n break;\n case 'v':\n y -= 1;\n break;\n default:\n break;\n }\n\n final String key = x + \":\" + y;\n\n houses.put(key, houses.getOrDefault(key, 0) + 1);\n }\n\n return houses.size();\n }",
"public int countryCount(){\n\t\treturn this.countries.size();\n\t}",
"@Override\r\n\tpublic List<Employee> countByName() {\n\t\treturn null;\r\n\t}",
"int getTrucksCount();",
"public int getCount() {\n\t\t\treturn foods.size();\n\t\t}",
"private int getPoints(final String name) {\n\t\treturn getValue(name, POINTS);\n\t}",
"@Override\n public int getHash(String name) {\n int x = 0;\n int sum = 0;\n while (x < name.length()) {\n sum += name.charAt(x);\n x++;\n }\n int result = sum % size;\n return result;\n }",
"public int getElfCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public int weaponCount(){\n\t\treturn weaponList.size();\n\t}",
"@Override\r\n\tpublic int getGeunTaeCnt(HashMap<String, String> params) {\n\t\treturn sqlsession.selectOne(\"GeuntaeMgnt.getGeunTaeCnt\",params);\r\n\t}",
"@Override\r\n\tpublic long count(HttpSession session,String name,String unit)\r\n\t{\n\t\tString sql = \"select count(id) \" + createSql(session, name, unit);\r\n\t\treturn Sel.getcount(sql);\r\n\t}",
"public int getCount(String username);",
"public int getPartyCount()\n\t{\n\t\tint r = 0;\n\t\tfor(int i = 0; i < m_pokemon.length; i++)\n\t\t\tif(m_pokemon[i] != null)\n\t\t\t\tr++;\n\t\treturn r;\n\t}",
"int getPurchasableOffersCount();",
"public static int getEnchantability(String name) {\n\n EnumMoreSwords swordType = getType(name);\n\n if (swordType != null) {\n\n return swordType.swordEnchantability;\n }\n\n return -1;\n }",
"public int findDoctors(String name) {\n\t\tint i;\n\t\tfor (i = 0; i < doc.size(); i++) {\n\t\t\tif (name.equals(doc.get(i).getName())) {\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\treturn -1;\n\t}",
"public int getNumTowns() {\n \t\treturn towns;\n \t}",
"public int user_check(String name) {\n\t\treturn Sdao.seat_numselect(name);\r\n\t}",
"public int getSoupKitchenCount() {\n\n MapSqlParameterSource params = new MapSqlParameterSource();\n //here we want to get total from food pantry table\n String sql = \"SELECT COUNT(*) FROM cs6400_sp17_team073.Soup_kitchen\";\n\n Integer skcount = jdbc.queryForObject(sql,params,Integer.class);\n\n return skcount;\n }",
"com.google.protobuf.ByteString\n getHotelNameBytes();",
"public int numHouses() {\n\t\treturn buildings;\n\t}",
"public int isIn(String name){\r\n\t\tfor(ParamRanking prAux : ranking){\r\n\t\t\tif(prAux.getName().equals(name))\r\n\t\t\t\treturn ranking.indexOf(prAux);\r\n\t\t}\r\n\t\treturn -1;\r\n\t}",
"@Override\n\tpublic int countByNameAndDevision(String name, long devisionId)\n\t\tthrows SystemException {\n\t\tFinderPath finderPath = FINDER_PATH_COUNT_BY_NAMEANDDEVISION;\n\n\t\tObject[] finderArgs = new Object[] { name, devisionId };\n\n\t\tLong count = (Long)FinderCacheUtil.getResult(finderPath, finderArgs,\n\t\t\t\tthis);\n\n\t\tif (count == null) {\n\t\t\tStringBundler query = new StringBundler(3);\n\n\t\t\tquery.append(_SQL_COUNT_DEPARTMENT_WHERE);\n\n\t\t\tboolean bindName = false;\n\n\t\t\tif (name == null) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_1);\n\t\t\t}\n\t\t\telse if (name.equals(StringPool.BLANK)) {\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_3);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbindName = true;\n\n\t\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_NAME_2);\n\t\t\t}\n\n\t\t\tquery.append(_FINDER_COLUMN_NAMEANDDEVISION_DEVISIONID_2);\n\n\t\t\tString sql = query.toString();\n\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(sql);\n\n\t\t\t\tQueryPos qPos = QueryPos.getInstance(q);\n\n\t\t\t\tif (bindName) {\n\t\t\t\t\tqPos.add(name);\n\t\t\t\t}\n\n\t\t\t\tqPos.add(devisionId);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tFinderCacheUtil.putResult(finderPath, finderArgs, count);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tFinderCacheUtil.removeResult(finderPath, finderArgs);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}",
"int getSnInfoCount();",
"int getSnInfoCount();",
"int getSnInfoCount();",
"private int getVariablesNumberInMap() {\n\t\tSet<String> variables = KeyValue.getFirstLevelKeys();\n\t\tint count = 0;\n\t\tfor (String name : variables) {\n\t\t\tif (!name.contains(\"~\")) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\treturn count;\n\t}",
"public int stockCount(String id, String stockname) {\n \treturn accountFactory.stockCount(id, stockname);\n }",
"int countByExample(SrHotelRoomInfoExample example);",
"public int numEdges(String edgeTypeName)\r\n {\r\n\tfinal EdgeTypeHolder eth = ethMap.get(edgeTypeName);\r\n\treturn (eth == null) ? 0 : eth.numEdges();\r\n }",
"int getPickupsCount();",
"public int countByRegionId_Name(long regionId, java.lang.String name)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public int foodCount() {\r\n\t\treturn this.food;\r\n\t}",
"public int countOfKnownWord() {\n\t\tint count = 0;\t\t\n\t\ttry {\n \t\t\tClass.forName(DRIVER);\n \t\t} catch (ClassNotFoundException e1) {\n \t\t\t// TODO Auto-generated catch block\n \t\t\te1.printStackTrace();\n \t\t}\t\t\n\t\ttry ( Connection con = DriverManager.getConnection(URL, USER, PW)) {\n\t\t\tStatement stmt = con.createStatement();\n\t\t\tString sql;\n\t\t\tsql = \"SELECT count(*) countWordLevel from \" + tbl_USER_DIC + \" WHERE \" + Constants.FLD_KNOW + \" = \" + Constants.WORD_KNOWN + \";\";\n\t\t\tResultSet rs = stmt.executeQuery(sql);\n\t\t\twhile (rs.next()) {\n\t\t\t\tcount = rs.getInt(\"countWordLevel\");\n\t\t\t}\n\t\t\t\n\t stmt.close();\n\t con.close();\n\t\t} catch(Exception e) {\n\t\t\tlogger.info(\"fail to open mysql\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn count;\t\n\t}",
"public PokemonSpecies findSeenSpeciesData(String name) throws PokedexException {\n PokemonSpecies rv = null;\n String nameLower = name.toLowerCase();\n Iterator<PokemonSpecies> it = pokedex.iterator();\n PokemonSpecies currentSpecies;\n while(it.hasNext()) {\n currentSpecies = it.next();\n if(currentSpecies.getSpeciesName().equals(nameLower)) {\n rv = currentSpecies;\n break;\n }\n }\n if(rv == null) {\n throw new PokedexException(String.format(Config.UNSEEN_POKEMON, name));\n }\n return rv;\n }",
"public Hotel(String name, String address) {\n\t\tthis.name = name;\n\t\tthis.address = address;\n\t}",
"public int getPersonIndex(String name) {\r\n for (int i = 0; i < this.personList.size(); i++) {\r\n if (this.personList.get(i).getName().equals(name)) {\r\n return i;\r\n }\r\n }\r\n return -1;\r\n }"
]
| [
"0.6917564",
"0.6669573",
"0.6512877",
"0.64620274",
"0.6388392",
"0.62638634",
"0.6221429",
"0.6043356",
"0.57945347",
"0.5782753",
"0.5721079",
"0.5713924",
"0.5657848",
"0.56573564",
"0.56449616",
"0.55336523",
"0.5530288",
"0.5482401",
"0.5475577",
"0.5466945",
"0.5460526",
"0.5452238",
"0.54251206",
"0.54215825",
"0.5404877",
"0.5401052",
"0.5399152",
"0.5393588",
"0.53777057",
"0.53492355",
"0.5346376",
"0.5331788",
"0.5331788",
"0.5327941",
"0.5311696",
"0.5302531",
"0.5291984",
"0.5288994",
"0.5285934",
"0.52714944",
"0.5254966",
"0.52494466",
"0.5242967",
"0.5238486",
"0.52218974",
"0.5220933",
"0.52072877",
"0.51826274",
"0.5175389",
"0.51722157",
"0.51693773",
"0.5162774",
"0.5155487",
"0.5153439",
"0.5150673",
"0.5147399",
"0.5146019",
"0.51431626",
"0.5142455",
"0.5128962",
"0.5098508",
"0.5095687",
"0.5094283",
"0.509264",
"0.5090816",
"0.50771886",
"0.5075079",
"0.50725484",
"0.50677603",
"0.506535",
"0.50609344",
"0.50493747",
"0.5048413",
"0.5048298",
"0.5045894",
"0.50448745",
"0.5041271",
"0.5034988",
"0.5029276",
"0.5020501",
"0.50201356",
"0.5019456",
"0.50167865",
"0.50137615",
"0.5013604",
"0.50108856",
"0.5010352",
"0.5010352",
"0.5010352",
"0.5009562",
"0.5007711",
"0.5005722",
"0.5005588",
"0.5001739",
"0.500028",
"0.49997965",
"0.49990472",
"0.49988258",
"0.49908754",
"0.49815857"
]
| 0.6172279 | 7 |
Caches the hotel in the entity cache if it is enabled. | public void cacheResult(com.Hotel.model.Hotel hotel); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cacheResult(java.util.List<com.Hotel.model.Hotel> hotels);",
"@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n entityDealer.resetOriginalValues();\n }",
"public void flushEntityCache() {\n super.flushEntityCache();\n }",
"protected Entity cacheLoadOrStore(Entity entity) {\n Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId());\n if (cachedEntity != null) {\n return cachedEntity;\n }\n entityCache.put(entity, true);\n return entity;\n }",
"@Override\n public void updateCache(List<FavoriteEntity> ltEntity)\n {\n super.delAll();\n this.appendCache(ltEntity);\n }",
"@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\n }\n }",
"@Override\n\tpublic void cacheResult(Facility_Host facility_Host) {\n\t\tEntityCacheUtil.putResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tFacility_HostImpl.class, facility_Host.getPrimaryKey(),\n\t\t\tfacility_Host);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FACILITYID,\n\t\t\tnew Object[] { facility_Host.getFacilityId() }, facility_Host);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_HOSTID,\n\t\t\tnew Object[] { facility_Host.getHostId() }, facility_Host);\n\n\t\tfacility_Host.resetOriginalValues();\n\t}",
"public void refreshObjectCache();",
"boolean isCachingEnabled();",
"@Override\n @SuppressWarnings(\"unchecked\")\n public <T> void putEntity(Key<T> key, T entity)\n {\n // Add to both caches\n session.getCache().put((Class<T>)key.getType(), entity, key.getId());\n queryCache.putEntity(key, entity);\n }",
"boolean isCacheable();",
"public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }",
"@Override\n public void cacheResult(List<EntityDealer> entityDealers) {\n for (EntityDealer entityDealer : entityDealers) {\n if (EntityCacheUtil.getResult(\n EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey()) == null) {\n cacheResult(entityDealer);\n } else {\n entityDealer.resetOriginalValues();\n }\n }\n }",
"@Override\n public boolean isCaching() {\n return false;\n }",
"public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }",
"@Override\n\tpublic void cacheResult(List<Facility_Host> facility_Hosts) {\n\t\tfor (Facility_Host facility_Host : facility_Hosts) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tFacility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tFacility_HostImpl.class, facility_Host.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(facility_Host);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfacility_Host.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }",
"public boolean existCache() {\n return false;\n }",
"public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }",
"public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}",
"@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}",
"public void setCached() {\n }",
"public void addToCache () {\n ArrayList <Location> gridCache = getGridCache();\n for (Location l : imageLocs) {\n gridCache.add (l);\n }\n }",
"@Override\n public <T> T getEntity(Key<T> key)\n {\n // Check the session first in case we've loaded the entity in another query or 'get' then fall back to the query cache\n return session.getCache().get(key)\n .map(entity -> {\n if (logger.isTraceEnabled())\n {\n logger.trace(\"Session cache hit {0}[{1}]\", key.getType().getSimpleName(), key.getId());\n }\n\n session.getStats().cacheHit();\n stats().incHits();\n return entity;\n })\n .orElseGet(() -> queryCache.getEntity(key));\n }",
"@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }",
"@RequestMapping(value = \"/cache\", method = RequestMethod.GET)\n public ResponseEntity<List<LocationEntity>> getCache(){\n ResponseEntity<List<LocationEntity>> responseEntity = null;\n\n // Get last 10 geocode lookups\n List<LocationEntity> location = geoLocationService.getLocationCache();\n\n if (location != null && location.size() > 0){\n responseEntity= new ResponseEntity<List<LocationEntity>>(location, HttpStatus.OK);\n }else{\n responseEntity= new ResponseEntity<List<LocationEntity>>(location, HttpStatus.NO_CONTENT);\n }\n\n\n return responseEntity;\n }",
"public boolean inCache(String key);",
"void invalidateCache();",
"@Override\n public <T> void putProxy(Key<T> key, T entityProxy)\n {\n queryCache.putProxy(key, entityProxy);\n }",
"public boolean isCached() {\n return true;\n }",
"protected void addTileToCache(ElevationTile tile, BufferWrapper elevations)\n {\n if (tile.getLevelNumber() == 0)\n this.levelZeroTiles.put(tile.getTileKey(), tile);\n else\n this.getMemoryCache().add(tile.getTileKey(), tile, elevations.getSizeInBytes());\n }",
"@Override\n\tpublic void cacheResult(Legacydb legacydb) {\n\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey(), legacydb);\n\n\t\tlegacydb.resetOriginalValues();\n\t}",
"public void cacheResult(CompanyAg companyAg) {\n\t\tEntityCacheUtil.putResult(CompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey(), companyAg);\n\n\t\tcompanyAg.resetOriginalValues();\n\t}",
"private void addEntitiesToEntityCache(ModelReader modelReader,\n\t\t ResourceHandler resourceHandler,\n String loaderEnt,\n String locationEnt) throws OfbizDataException {\n\t\tif (modelReader == null || resourceHandler == null) {\n\t\t\tLOG.warn(String.format(\"Null reader or resource handler\" +\n\t\t\t\t\t \" in addEntitiesToEntityCache() method. Model\" +\n \" reader: %s Resource handler: %s\",\n modelReader, resourceHandler));\n\t\t\treturn;\n\t\t}\n\t\ttry {\n Document document;\n\t\t\tMap<String, ModelEntity> entityCache = modelReader.getEntityCache();\n List<ModelViewEntity> tempViewEntityList\n = new LinkedList<ModelViewEntity>();\n Hashtable<String, String> docElementValues\n = new Hashtable<String, String>();\n\n\t\t\tsynchronized (ModelReader.class) {\n\t\t\t\ttry {\n\t\t\t\t\tdocument = resourceHandler.getDocument();\n\t\t\t\t} catch (GenericConfigException e) {\n String msg = \"Error getting document from resource handler\";\n LOG.error(msg);\n\t\t\t\t\tthrow new GenericEntityConfException(msg, e);\n\t\t\t\t}\n\t\t\t\tif(document == null) {\n\t\t\t\t\tString msg = String.format(\"Could not get document for %s\",\n resourceHandler);\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\n\t\t\t\tElement docElement = document.getDocumentElement();\n\n\t\t\t\tif (docElement == null) {\n\t\t\t\t\tString msg = \"NULL doc element.\";\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\t\t\t\tdocElement.normalize();\n\t\t\t\tNode curChild = docElement.getFirstChild();\n\n\t\t\t\tint i = 0;\n\n\t\t\t\tif (curChild != null) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tboolean isEntity = \"entity\".equals(curChild.getNodeName());\n\t\t\t\t\t\tboolean isViewEntity = \"view-entity\".equals(curChild.getNodeName());\n\n\t\t\t\t\t\tif ((isEntity || isViewEntity) &&\n\t\t\t\t\t\t\tcurChild.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\tElement curEntity = (Element) curChild;\n\t\t\t\t\t\t\tString entityName =\n\t\t\t\t\t\t\t\tUtilXml.checkEmpty(curEntity.getAttribute(\"entity-name\"));\n\n\t\t\t\t\t\t\t// check to see if entity with same name has already\n\t\t\t\t\t\t\t// been read\n\t\t\t\t\t\t\tif (entityCache.containsKey(entityName)) {\n if(LOG.isDebugEnabled()) {\n LOG.debug(String.format(\n \"Entity %s is defined more than once, most \" +\n \"recent will overwrite previous definition\",\n entityName));\n }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// add entity to entityResourceHandlerMap map\n\t\t\t\t\t\t\tmodelReader.addEntityToResourceHandler(entityName,\n\t\t\t\t\t\t\t\t loaderEnt,\n locationEnt);\n\n\t\t\t\t\t\t\tModelEntity entity;\n\n\t\t\t\t\t\t\tif (isEntity) {\n\t\t\t\t\t\t\t\tentity = createModelEntity(modelReader,\n curEntity,\n\t\t\t\t\t\t\t\t\t\t docElement,\n null,\n docElementValues);\n if(LOG.isDebugEnabled()){\n LOG.debug(String.format(\"[Entity]: # %d: %s\",\n i, entityName));\n }\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tentity = createModelViewEntity(modelReader,\n curEntity,\n\t\t\t\t\t\t\t\t\t\t docElement,\n null,\n docElementValues);\n\t\t\t\t\t\t\t\t// put the view entity in a list to get ready\n\t\t\t\t\t\t\t\t// for the second pass to populate fields...\n\t\t\t\t\t\t\t\ttempViewEntityList.add((ModelViewEntity)entity);\n if(LOG.isDebugEnabled()){\n String msg = String.format(\"[ViewEntity]: # %d: %s\",\n i, entityName);\n LOG.debug(msg);\n }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (entity != null) {\n safelyMapAdd(entityCache, entityName, entity);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLOG.warn(String.format(\"Could not create entity \" +\n \"for entityName: %s\",\n\t\t\t\t\t\t\t\t\t\t entityName));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} while ((curChild = curChild.getNextSibling()) != null);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.warn(\"No child nodes found.\");\n\t\t\t\t}\n\n\t\t\t\tmodelReader.rebuildResourceHandlerEntities();\n\n\t\t\t\t// do a pass on all of the view entities now that all of the\n\t\t\t\t// entities have loaded and populate the fields\n for (ModelViewEntity me : tempViewEntityList) {\n me.populateFields(entityCache);\n }\n\t\t\t\tLOG.debug(\"FINISHED LOADING ENTITIES.\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tString msg = String.format(\"Got exception when adding entities \" +\n\t\t\t\t\t\"from resource handler: %s\", resourceHandler);\n\t\t\tLOG.error(msg, ex);\n\t\t\tthrow new OfbizDataException(msg, ex);\n\t\t}\n\t}",
"public void updateCache() {\n\n log.info(\"Updating solar flare cache\");\n Date fallbackStartDate = DateHelper.getFallbackDate();\n solarFlareRepository.count()\n .map(total -> {\n if (total > 0) {\n solarFlareRepository.findTopByBeginTimeIsNotNullOrderByBeginTimeDesc()\n .map(solarFlare -> {\n log.info(\"Entries exist, performing incremental update\");\n log.info(\n \"Last entry found at {}\",\n DateHelper.getPrintableString(solarFlare.getBeginTime())\n );\n collectForRange(solarFlare.getBeginTime(), null);\n return solarFlare;\n })\n .subscribe();\n } else {\n log.info(\"No entries found, performing a full import\");\n collectForRange(fallbackStartDate, null);\n }\n return total;\n })\n .subscribe();\n }",
"public void cacheResult(TrabajadorEmpresa trabajadorEmpresa) {\n\t\tEntityCacheUtil.putResult(TrabajadorEmpresaModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTrabajadorEmpresaImpl.class, trabajadorEmpresa.getPrimaryKey(),\n\t\t\ttrabajadorEmpresa);\n\n\t\ttrabajadorEmpresa.resetOriginalValues();\n\t}",
"@Override\n\tpublic void cacheResult(LocalRichInfo localRichInfo) {\n\t\tentityCache.putResult(LocalRichInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLocalRichInfoImpl.class, localRichInfo.getPrimaryKey(),\n\t\t\tlocalRichInfo);\n\n\t\tlocalRichInfo.resetOriginalValues();\n\t}",
"private void cacheLocation(final byte [] tableName,\n final HRegionLocation location) {\n byte [] startKey = location.getRegionInfo().getStartKey();\n Map<byte [], HRegionLocation> tableLocations =\n getTableLocations(tableName);\n boolean hasNewCache = false;\n synchronized (this.cachedRegionLocations) {\n cachedServers.add(location.getHostnamePort());\n hasNewCache = (tableLocations.put(startKey, location) == null);\n }\n if (hasNewCache) {\n LOG.debug(\"Cached location for \" +\n location.getRegionInfo().getRegionNameAsString() +\n \" is \" + location.getHostnamePort());\n }\n }",
"public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}",
"abstract public IWorldStateCache clientWorldStateCache();",
"private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }",
"@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}",
"@Override\n\tpublic void cacheResult(Approvatore approvatore) {\n\t\tentityCache.putResult(ApprovatoreModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tApprovatoreImpl.class, approvatore.getPrimaryKey(), approvatore);\n\n\t\tapprovatore.resetOriginalValues();\n\t}",
"protected boolean shouldUseCache()\n/* */ {\n/* 384 */ return ((isCacheable()) && (this.painters != null) && (this.painters.length > 0)) || (super.shouldUseCache());\n/* */ }",
"@PostConstruct\n public void initCache() {\n cache = Collections.synchronizedMap(new HashMap<>(cacheCapacity, 1));\n }",
"@Override\n\tpublic void cacheResult(TvShow tvShow) {\n\t\tEntityCacheUtil.putResult(TvShowModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tTvShowImpl.class, tvShow.getPrimaryKey(), tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_UUID_G,\n\t\t\tnew Object[] { tvShow.getUuid(), tvShow.getGroupId() }, tvShow);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_G_T,\n\t\t\tnew Object[] { tvShow.getTvShowId(), tvShow.getGroupId() }, tvShow);\n\n\t\ttvShow.resetOriginalValues();\n\t}",
"public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }",
"public void cacheableQuery() throws HibException;",
"public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}",
"@Override\n\tpublic void cacheResult(InterviewSchedule interviewSchedule) {\n\t\tEntityCacheUtil.putResult(InterviewScheduleModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tInterviewScheduleImpl.class, interviewSchedule.getPrimaryKey(),\n\t\t\tinterviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDINTERVIEW,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getInterviewId()\n\t\t\t}, interviewSchedule);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_VACANCYCANDIDATEANDSTATUS,\n\t\t\tnew Object[] {\n\t\t\t\tinterviewSchedule.getVacancyCandidateId(),\n\t\t\t\tinterviewSchedule.getStatus()\n\t\t\t}, interviewSchedule);\n\n\t\tinterviewSchedule.resetOriginalValues();\n\t}",
"public static void enableCache(boolean useCache) {\n OntologyTextProvider.useCache = useCache;\n }",
"public void cacheResult(\n de.i3mainz.flexgeo.portal.liferay.services.model.OGCServiceLayer ogcServiceLayer);",
"public interface WeatherCache {\n\n// boolean isExpired();\n// boolean isCached();\n// Observable<WeatherEntity> get();\n// void put(WeatherEntity weatherEntity);\n}",
"private void invalidateCache() {\n\t}",
"public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }",
"protected void createLookupCache() {\n }",
"public DBMaker enableSoftCache() {\n cacheType = DBCacheRef.SOFT;\n return this;\n }",
"@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}",
"boolean isCacheInitialized();",
"@Service\npublic interface CityCacheService {\n\n CityCache findById(Long id);\n CityCache create(CityCache city);\n void deleteCache(Long id);\n}",
"@Override\n\tpublic void cacheResult(RigoDocumento rigoDocumento) {\n\t\tEntityCacheUtil.putResult(RigoDocumentoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tRigoDocumentoImpl.class, rigoDocumento.getPrimaryKey(),\n\t\t\trigoDocumento);\n\n\t\trigoDocumento.resetOriginalValues();\n\t}",
"@Override\n\tpublic void cacheResult(\n\t\tESFInstructsShootingDirector esfInstructsShootingDirector) {\n\t\tEntityCacheUtil.putResult(ESFInstructsShootingDirectorModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tESFInstructsShootingDirectorImpl.class,\n\t\t\tesfInstructsShootingDirector.getPrimaryKey(),\n\t\t\tesfInstructsShootingDirector);\n\n\t\tesfInstructsShootingDirector.resetOriginalValues();\n\t}",
"protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }",
"@Override\n public Boolean exists(Key<?> key)\n {\n return session.getCache().contains(key) || queryCache.exists(key);\n }",
"private boolean updateCache(String type) {\n\t\treturn false;\n\t}",
"@CacheEvict(value={WorkArea.CACHE_NAME}, allEntries = true)\n void saveOrUpdate(WorkArea workArea);",
"public void cacheResult(List<CompanyAg> companyAgs) {\n\t\tfor (CompanyAg companyAg : companyAgs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tCompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(companyAg);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcompanyAg.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void cacheResult(EmployeeComplaint employeeComplaint) {\n\t\tEntityCacheUtil.putResult(EmployeeComplaintModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tEmployeeComplaintImpl.class, employeeComplaint.getPrimaryKey(),\n\t\t\temployeeComplaint);\n\n\t\temployeeComplaint.resetOriginalValues();\n\t}",
"@Override\n public void clearCache() {\n }",
"@Override\n public void add(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().add(ent);\n }",
"private void saveProductInCache(Product product) {\n if(product!=null) {\n String cacheKey = productServiceUtils.generateProductCacheKey(product.getId());\n if (cache.put(cacheKey, product)) {\n logger.debug(\"product value cached: \" + product);\n }\n // clear all products cache\n cache.evict(ALL_PRODUCTS_CACHE_KEY);\n logger.debug(\"all products cache cleared\");\n }\n }",
"@Override\n\tpublic void cacheResult(\n\t\tStepDefsCompositeStepDefDBE stepDefsCompositeStepDefDBE) {\n\t\tEntityCacheUtil.putResult(StepDefsCompositeStepDefDBEModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tStepDefsCompositeStepDefDBEImpl.class,\n\t\t\tstepDefsCompositeStepDefDBE.getPrimaryKey(),\n\t\t\tstepDefsCompositeStepDefDBE);\n\n\t\tstepDefsCompositeStepDefDBE.resetOriginalValues();\n\t}",
"@CacheEvict(value = \"meals\", allEntries = true)\n @Override\n public void evictCache() {\n }",
"AgentPolicyBuilder setBypassCache(boolean bypassCache);",
"@Test\n public void testFindViaCache() {\n Integer hitRate1 = hitRate;\n Integer foundId = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate1, hitRate); // No change expected yet\n \n Integer hitRate2 = hitRate;\n Integer foundId2 = accessPointDimensionDao.foreignKeyValueFor(connection, AccessPointIdentifier.TEST);\n assertEquals(hitRate, new Integer(hitRate2+1)); // A cache hit is expected\n }",
"@Activate\n\tprotected synchronized void activate(final ComponentContext componentContext) {\n\t\tLOGGER.info(\"Activating Caching Component...\");\n\n\t\tthis.m_cache = CacheBuilder.newBuilder().concurrencyLevel(5).weakValues().maximumSize(50000)\n\t\t\t\t.expireAfterWrite(3, TimeUnit.HOURS).removalListener(new RemoveRealtimeDataListener()).build();\n\n\t\tLOGGER.info(\"Activating Caching Component...Done\");\n\t}",
"protected void initCacheIfNeeded(@Nullable Level world) {\n if (!initialized) {\n initialized = true;\n initCache(recipeType.getRecipes(world));\n }\n }",
"@Override\n\tpublic void cacheResult(LMSLeaveInformation lmsLeaveInformation) {\n\t\tEntityCacheUtil.putResult(LMSLeaveInformationModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLMSLeaveInformationImpl.class, lmsLeaveInformation.getPrimaryKey(),\n\t\t\tlmsLeaveInformation);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_LEAVEREQUESTID,\n\t\t\tnew Object[] { lmsLeaveInformation.getLeaveRequestId() },\n\t\t\tlmsLeaveInformation);\n\n\t\tlmsLeaveInformation.resetOriginalValues();\n\t}",
"@Override\n protected void forceRefresh() {\n if (getEntity() != null) {\n super.forceRefresh();\n }\n }",
"public abstract void clearCache();",
"public void cacheIdentities(Key key, Set<ILocator> locators) {\r\n\t\tif (identities == null) {\r\n\t\t\tidentities = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tidentities.put(key, locators);\r\n\t}",
"public abstract boolean isCachable();",
"public void clearCache();",
"private void evictCache(ExtUser entity) {\n\t}",
"void evictFromCache( Long id );",
"public interface CacheInvalidationStrategyIF {\n\t\n}",
"public Object setCachedObject(String key, Object obj) {\n return cache.put(key, obj);\n }",
"public void updateCache(Player player) {\n\t\tif (this.caching.contains(player)) {\n\t\t\tPlayerState state = new PlayerState();\n\t\t\tstate.setLocation(player.getLocation());\n\t\t\tstate.setVelocity(player.getVelocity());\n\t\t\tstate.setArmorContents(player.getEquipment().getArmorContents());\n\t\t\tstate.setInventoryContents(player.getInventory().getContents());\n\t\t\tstate.setSlot(player.getInventory().getHeldItemSlot());\n\t\t\tstate.setGameMode(player.getGameMode());\n\n\t\t\tPlayerContinuousSnap snap = this.cached.get(player);\n\t\t\tsynchronized (snap) {\n\t\t\t\tsnap.getCachedStates().add(state);\n\t\t\t}\n\t\t}\n\t}",
"public boolean shouldCache() {\n return this.shouldCache;\n }",
"public static <T extends Entity> EntityCache<T> getMemoryEntityCache() {\n\t\tEntityMap<T> entityMap = new MemoryEntityMap<T>();\n\t\treturn new EntityCache<T>(entityMap);\n\t}",
"@Override\n\tpublic void addToCache(T obj) {\n\t\tcache.add(obj);\n\t}",
"public CacheStrategy getCacheStrategy();",
"@Override\n\tpublic void cacheResult(List<Candidate> candidates) {\n\t\tfor (Candidate candidate : candidates) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tCandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCandidateImpl.class, candidate.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(candidate);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcandidate.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void cacheResult(Candidate candidate) {\n\t\tEntityCacheUtil.putResult(CandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tCandidateImpl.class, candidate.getPrimaryKey(), candidate);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_CONTACTNUMBER,\n\t\t\tnew Object[] { candidate.getContactNumber() }, candidate);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_IDENTITYCARDNO,\n\t\t\tnew Object[] { candidate.getIdentityCardNo() }, candidate);\n\n\t\tcandidate.resetOriginalValues();\n\t}",
"@Override\n\tpublic void cacheResult(List<TvShow> tvShows) {\n\t\tfor (TvShow tvShow : tvShows) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tTvShowModelImpl.ENTITY_CACHE_ENABLED, TvShowImpl.class,\n\t\t\t\t\t\ttvShow.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(tvShow);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttvShow.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"PortalCacheModel getCacheModel();",
"public void loadHotels();",
"public interface ArticlesCache {\n}",
"protected boolean evictAndReplace(String key) throws KeyDoesntExistException, Exception {\n \tif (map.containsKey(key)) {\n \t\treturn false; // already in cache so already primed and ready to go; false means update\n \t} else {\n \t\t// If above capacity (incl inserted key), evict LFU:\n\t\t\tif (map.size() + 1 >= capacity) {\n\t\t\t\t// TODO O(n) search for LFU - can easily make more efficient!\n \t\t\tString lfuKey = null;\n \t\t\tInteger lfuCnt = null;\n \t\t\tIterator<String> it = map.keySet().iterator();\n \t\t\twhile (it.hasNext()) {\n \t\t\t\tString k = it.next();\n \t\t\t\tInteger c = usageCounter.get(k);\n \t\t\t\tif (lfuCnt == null || c < lfuCnt ) {\n \t\t\t\t\tlfuKey = k;\n \t\t\t\t\tlfuCnt = c;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (lfuKey != null) {\n \t\t\t\tevict(lfuKey);\n \t\t\t}\n\t\t\t}\n \t\t\n \t\tif (kvdb.inStorage(key)) { \t\t\t\t// storage hit\n \t\t\tString value = kvdb.get(key);\n \t\t\tmap.put(key, value);\n \t\t\tusageCounter.put(key, 0);\n \t\t\treturn false; // update\n \t\t} else {\t\t\t\t\t\t\t\t// storage miss\n \t\t\t// Create placeholder\n \t\t\tmap.put(key, \"\");\n \t\t\tusageCounter.put(key, 0);\n \t\t\treturn true; // insert\n \t\t}\n \t}\n }",
"public void save(Session session) {\n session.save(this);\n ModelMeta meta = ModelMeta.getModelMeta(this.getClass());\n if(meta.isCacheable()){\n RedisTemplate.save(this);\n }\n }"
]
| [
"0.66325927",
"0.6011899",
"0.5950112",
"0.59293056",
"0.5637785",
"0.5573217",
"0.555637",
"0.54848427",
"0.54837203",
"0.5452768",
"0.54464155",
"0.5436073",
"0.5425836",
"0.5422735",
"0.5408155",
"0.53597903",
"0.5345709",
"0.53314865",
"0.5326829",
"0.5323728",
"0.5323095",
"0.5276376",
"0.52523434",
"0.524832",
"0.5231753",
"0.52214664",
"0.5216999",
"0.520988",
"0.5203909",
"0.5184709",
"0.5164416",
"0.5154387",
"0.51472634",
"0.5142386",
"0.5139791",
"0.51265514",
"0.5124243",
"0.5123188",
"0.5121469",
"0.51192963",
"0.5111499",
"0.50905675",
"0.50847",
"0.506555",
"0.50599384",
"0.50582653",
"0.50576407",
"0.50523907",
"0.5028565",
"0.502729",
"0.5016038",
"0.5010134",
"0.50095046",
"0.49964175",
"0.49935228",
"0.49865803",
"0.49788606",
"0.49767527",
"0.49677444",
"0.49619463",
"0.49578223",
"0.49542528",
"0.49438164",
"0.49324286",
"0.49290642",
"0.49271002",
"0.49169478",
"0.49142537",
"0.49141613",
"0.49063176",
"0.48978037",
"0.48966956",
"0.4894573",
"0.48795947",
"0.48745516",
"0.48736858",
"0.48724443",
"0.48714557",
"0.48702702",
"0.48655427",
"0.48563012",
"0.48497683",
"0.48486158",
"0.4847213",
"0.48462752",
"0.48404625",
"0.4838543",
"0.48308763",
"0.4829878",
"0.48272967",
"0.48270845",
"0.4823586",
"0.48210788",
"0.48186716",
"0.48143163",
"0.48069555",
"0.48007283",
"0.47960228",
"0.47955996",
"0.47922936"
]
| 0.71625686 | 0 |
Caches the hotels in the entity cache if it is enabled. | public void cacheResult(java.util.List<com.Hotel.model.Hotel> hotels); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cacheResult(com.Hotel.model.Hotel hotel);",
"public void flushEntityCache() {\n super.flushEntityCache();\n }",
"@Override\n public void appendCache(List<FavoriteEntity> ltEntity)\n {\n for (FavoriteEntity entity : ltEntity)\n {\n addWithCheckExistID(entity);\n }\n }",
"@Override\n public void updateCache(List<FavoriteEntity> ltEntity)\n {\n super.delAll();\n this.appendCache(ltEntity);\n }",
"public void addToCache () {\n ArrayList <Location> gridCache = getGridCache();\n for (Location l : imageLocs) {\n gridCache.add (l);\n }\n }",
"@Override\n\tpublic void cacheResult(List<Facility_Host> facility_Hosts) {\n\t\tfor (Facility_Host facility_Host : facility_Hosts) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tFacility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tFacility_HostImpl.class, facility_Host.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(facility_Host);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tfacility_Host.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void cacheResult(List<EntityDealer> entityDealers) {\n for (EntityDealer entityDealer : entityDealers) {\n if (EntityCacheUtil.getResult(\n EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey()) == null) {\n cacheResult(entityDealer);\n } else {\n entityDealer.resetOriginalValues();\n }\n }\n }",
"private void registerCaches(){\n // Initialize region arraylist\n prisoners = new HashMap<>();\n regions = QueryManager.getRegions();\n prisonBlocks = QueryManager.getPrisonBlocks();\n portals = QueryManager.getPortals();\n }",
"protected Entity cacheLoadOrStore(Entity entity) {\n Entity cachedEntity = entityCache.findInCache(entity.getClass(), entity.getId());\n if (cachedEntity != null) {\n return cachedEntity;\n }\n entityCache.put(entity, true);\n return entity;\n }",
"public void loadHotels();",
"@Override\n public void cacheResult(EntityDealer entityDealer) {\n EntityCacheUtil.putResult(EntityDealerModelImpl.ENTITY_CACHE_ENABLED,\n EntityDealerImpl.class, entityDealer.getPrimaryKey(), entityDealer);\n\n entityDealer.resetOriginalValues();\n }",
"public void cacheIdentities(Key key, Set<ILocator> locators) {\r\n\t\tif (identities == null) {\r\n\t\t\tidentities = HashUtil.getHashMap();\r\n\t\t}\r\n\t\tidentities.put(key, locators);\r\n\t}",
"public void loadCache() {\r\n\t\tint rango = getEmpleadoActual().getRango();\r\n\t\tArrayList<String> idsDptos = getEmpleadoActual().getDepartamentosId();\r\n\t\t\r\n\t\t// Para todos los departamentos a los que pertenezca el empleado\r\n\t\tfor (int nd=0; nd<idsDptos.size(); nd++){\r\n\t\t\tString dep = idsDptos.get(nd);\r\n\t\t\tint numvendedor = getEmpleadoActual().getEmplId();\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 50);\r\n\t\t\tcontratos = controlador.getListaContratosDpto(dep);\r\n\t\t\tsetProgreso(\"Cargando contratos dpto \"+dep, 100);\r\n\r\n\t\t\tif (!alive) return;\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 25);\r\n\t\t\templeados = controlador.getEmpleadosDepartamento(getEmpleadoActual().getEmplId(),dep);\r\n\t\t\tsetProgreso(\"Cargando empleados dpto \"+dep, 100);\r\n\t\t\t\r\n\t\t\t//Prueba ordenación empleados\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\tordenaEmpleados();\r\n//\t\t\tfor (int i = 0; i < empleados.size(); i++) {\r\n//\t\t\t\tSystem.out.println(empleados.get(i).getPosicion());\r\n//\t\t\t}\r\n\t\t\t//Fin PRueba\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tif (!alive) return;\r\n\t\t\tif (rango == 1) { // Si es un empleado, coger turnos de su departamento\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tturnos = controlador.getListaTurnosEmpleadosDpto(dep);\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t} else if (rango == 2) { // Si es un jefe, coger turnos de todos los departamentos\r\n\t\t\t\tArrayList<String> temp = new ArrayList<String>();\r\n\t\t\t\ttemp = controlador.getDepartamentosJefe(numvendedor);\r\n\t\t\t\tfor (int i=0; i<temp.size(); i++)\r\n\t\t\t\t\tdepartamentosJefe.add(controlador.getDepartamento(temp.get(i)));\r\n\t\t\t\t//TODO borrar si al final no se usa\r\n\t//\t\t\tsetProgreso(\"Cargando jefes de departamento\", 60);\r\n\t//\t\t\tnumeroJefesDepartamento = controlador.getNumVendedorTodosJefes();\r\n\t//\t\t\tnombreJefesDepartamento = controlador.getNombreTodosJefes();\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 70);\r\n\t\t\t\tArrayList<Turno> turnosDep = new ArrayList<Turno>();\r\n\t\t\t\tfor (int i=0; i<departamentosJefe.size(); i++) {\r\n\t\t\t\t\tturnosDep = controlador.getListaTurnosEmpleadosDpto(departamentosJefe.get(i).getNombreDepartamento());\r\n\t\t\t\t\tfor (int j=0; j<turnosDep.size(); j++) {\r\n\t\t\t\t\t\tturnos.add(turnosDep.get(j));\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tsetProgreso(\"Cargando turnos dpto \"+dep, 100);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tSystem.err.println(\"Vista\\t:: Tipo de empleado inválido para cargar la cache.\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(rango==1){//si es un empleado guardamos las ventas que éste ha hecho en un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentas(this.getEmpleadoActual().getEmplId(),fecha.getYear()+1900);\r\n\t\t}else if(rango==2){//si es un jefe almacenamos la suma de las ventas de todos los empleados de este departamento durante un año\r\n\t\t\tjava.util.Date fecha = new java.util.Date();//cogemos la fecha del sistema\r\n\t\t\tvector_ventas=controlador.getVentasJefe(this.empleados,fecha.getYear()+1900);\r\n\t\t}\r\n\t\tSystem.out.println(\"Cache cargada\");\r\n\t}",
"@PostConstruct\n public void initCache() {\n cache = Collections.synchronizedMap(new HashMap<>(cacheCapacity, 1));\n }",
"abstract public IWorldStateCache clientWorldStateCache();",
"@Override\n @SuppressWarnings(\"unchecked\")\n public <T> void putEntity(Key<T> key, T entity)\n {\n // Add to both caches\n session.getCache().put((Class<T>)key.getType(), entity, key.getId());\n queryCache.putEntity(key, entity);\n }",
"private void refreshDataCache(){\n this.stageplaatsen = dbFacade.getAllStageplaatsen();\n this.bedrijven = dbFacade.getAllBedrijven();\n }",
"boolean isCachingEnabled();",
"private void addEntitiesToEntityCache(ModelReader modelReader,\n\t\t ResourceHandler resourceHandler,\n String loaderEnt,\n String locationEnt) throws OfbizDataException {\n\t\tif (modelReader == null || resourceHandler == null) {\n\t\t\tLOG.warn(String.format(\"Null reader or resource handler\" +\n\t\t\t\t\t \" in addEntitiesToEntityCache() method. Model\" +\n \" reader: %s Resource handler: %s\",\n modelReader, resourceHandler));\n\t\t\treturn;\n\t\t}\n\t\ttry {\n Document document;\n\t\t\tMap<String, ModelEntity> entityCache = modelReader.getEntityCache();\n List<ModelViewEntity> tempViewEntityList\n = new LinkedList<ModelViewEntity>();\n Hashtable<String, String> docElementValues\n = new Hashtable<String, String>();\n\n\t\t\tsynchronized (ModelReader.class) {\n\t\t\t\ttry {\n\t\t\t\t\tdocument = resourceHandler.getDocument();\n\t\t\t\t} catch (GenericConfigException e) {\n String msg = \"Error getting document from resource handler\";\n LOG.error(msg);\n\t\t\t\t\tthrow new GenericEntityConfException(msg, e);\n\t\t\t\t}\n\t\t\t\tif(document == null) {\n\t\t\t\t\tString msg = String.format(\"Could not get document for %s\",\n resourceHandler);\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\n\t\t\t\tElement docElement = document.getDocumentElement();\n\n\t\t\t\tif (docElement == null) {\n\t\t\t\t\tString msg = \"NULL doc element.\";\n\t\t\t\t\tLOG.error(msg);\n\t\t\t\t\tthrow new OfbizDataException(msg);\n\t\t\t\t}\n\t\t\t\tdocElement.normalize();\n\t\t\t\tNode curChild = docElement.getFirstChild();\n\n\t\t\t\tint i = 0;\n\n\t\t\t\tif (curChild != null) {\n\t\t\t\t\tdo {\n\t\t\t\t\t\tboolean isEntity = \"entity\".equals(curChild.getNodeName());\n\t\t\t\t\t\tboolean isViewEntity = \"view-entity\".equals(curChild.getNodeName());\n\n\t\t\t\t\t\tif ((isEntity || isViewEntity) &&\n\t\t\t\t\t\t\tcurChild.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t\tElement curEntity = (Element) curChild;\n\t\t\t\t\t\t\tString entityName =\n\t\t\t\t\t\t\t\tUtilXml.checkEmpty(curEntity.getAttribute(\"entity-name\"));\n\n\t\t\t\t\t\t\t// check to see if entity with same name has already\n\t\t\t\t\t\t\t// been read\n\t\t\t\t\t\t\tif (entityCache.containsKey(entityName)) {\n if(LOG.isDebugEnabled()) {\n LOG.debug(String.format(\n \"Entity %s is defined more than once, most \" +\n \"recent will overwrite previous definition\",\n entityName));\n }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t// add entity to entityResourceHandlerMap map\n\t\t\t\t\t\t\tmodelReader.addEntityToResourceHandler(entityName,\n\t\t\t\t\t\t\t\t loaderEnt,\n locationEnt);\n\n\t\t\t\t\t\t\tModelEntity entity;\n\n\t\t\t\t\t\t\tif (isEntity) {\n\t\t\t\t\t\t\t\tentity = createModelEntity(modelReader,\n curEntity,\n\t\t\t\t\t\t\t\t\t\t docElement,\n null,\n docElementValues);\n if(LOG.isDebugEnabled()){\n LOG.debug(String.format(\"[Entity]: # %d: %s\",\n i, entityName));\n }\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tentity = createModelViewEntity(modelReader,\n curEntity,\n\t\t\t\t\t\t\t\t\t\t docElement,\n null,\n docElementValues);\n\t\t\t\t\t\t\t\t// put the view entity in a list to get ready\n\t\t\t\t\t\t\t\t// for the second pass to populate fields...\n\t\t\t\t\t\t\t\ttempViewEntityList.add((ModelViewEntity)entity);\n if(LOG.isDebugEnabled()){\n String msg = String.format(\"[ViewEntity]: # %d: %s\",\n i, entityName);\n LOG.debug(msg);\n }\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif (entity != null) {\n safelyMapAdd(entityCache, entityName, entity);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tLOG.warn(String.format(\"Could not create entity \" +\n \"for entityName: %s\",\n\t\t\t\t\t\t\t\t\t\t entityName));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} while ((curChild = curChild.getNextSibling()) != null);\n\t\t\t\t} else {\n\t\t\t\t\tLOG.warn(\"No child nodes found.\");\n\t\t\t\t}\n\n\t\t\t\tmodelReader.rebuildResourceHandlerEntities();\n\n\t\t\t\t// do a pass on all of the view entities now that all of the\n\t\t\t\t// entities have loaded and populate the fields\n for (ModelViewEntity me : tempViewEntityList) {\n me.populateFields(entityCache);\n }\n\t\t\t\tLOG.debug(\"FINISHED LOADING ENTITIES.\");\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tString msg = String.format(\"Got exception when adding entities \" +\n\t\t\t\t\t\"from resource handler: %s\", resourceHandler);\n\t\t\tLOG.error(msg, ex);\n\t\t\tthrow new OfbizDataException(msg, ex);\n\t\t}\n\t}",
"public static void startCaching() {\n\t\t/*\n\t\t * component caching happens if the collection exists\n\t\t */\n\t\tfor (ComponentType aType : ComponentType.values()) {\n\t\t\tif (aType.preLoaded == false) {\n\t\t\t\taType.cachedOnes = new HashMap<String, Object>();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public boolean isCaching() {\n return false;\n }",
"@RequestMapping(value = \"/cache\", method = RequestMethod.GET)\n public ResponseEntity<List<LocationEntity>> getCache(){\n ResponseEntity<List<LocationEntity>> responseEntity = null;\n\n // Get last 10 geocode lookups\n List<LocationEntity> location = geoLocationService.getLocationCache();\n\n if (location != null && location.size() > 0){\n responseEntity= new ResponseEntity<List<LocationEntity>>(location, HttpStatus.OK);\n }else{\n responseEntity= new ResponseEntity<List<LocationEntity>>(location, HttpStatus.NO_CONTENT);\n }\n\n\n return responseEntity;\n }",
"public void updateNeighborhood(){\n\t\tList<AnimalEntity> holdingCell = new ArrayList<AnimalEntity>();\n\t\t\n\t\t//add all entities to cell\n\t\tfor(int key: creatureEntities.keySet()){\n\t\t\tfor(AnimalEntity entity: creatureEntities.get(key)){\n\t\t\t\tholdingCell.add(entity);\n\t\t\t}\n\t\t}\n\t\t//clear the neighborhood\n\t\tfor(int key: creatureEntities.keySet()){\n\t\t\tcreatureEntities.get(key).clear();\n\t\t}\n\t\t//add them back\n\t\tfor(AnimalEntity entity: holdingCell){\n\t\t\taddAnimal(entity);\n\t\t}\n\t}",
"protected boolean shouldUseCache()\n/* */ {\n/* 384 */ return ((isCacheable()) && (this.painters != null) && (this.painters.length > 0)) || (super.shouldUseCache());\n/* */ }",
"public void refreshObjectCache();",
"@Override\n\tpublic void cacheResult(Facility_Host facility_Host) {\n\t\tEntityCacheUtil.putResult(Facility_HostModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tFacility_HostImpl.class, facility_Host.getPrimaryKey(),\n\t\t\tfacility_Host);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_FACILITYID,\n\t\t\tnew Object[] { facility_Host.getFacilityId() }, facility_Host);\n\n\t\tFinderCacheUtil.putResult(FINDER_PATH_FETCH_BY_HOSTID,\n\t\t\tnew Object[] { facility_Host.getHostId() }, facility_Host);\n\n\t\tfacility_Host.resetOriginalValues();\n\t}",
"protected void createLookupCache() {\n }",
"public boolean useCache() {\n return !pathRepositoryCache.isEmpty();\n }",
"public boolean requiresViewEntityCacheInvalidation() {\n return !tableToViewDescMap.isEmpty();\n }",
"public interface UserEntityCache {\n int getHitCount();\n int getMissCount();\n\n void put(long key, CacheElement<UserEntity> cacheElement);\n\n CacheElement<UserEntity> get(long key);\n}",
"public void updateCache() {\n\n log.info(\"Updating solar flare cache\");\n Date fallbackStartDate = DateHelper.getFallbackDate();\n solarFlareRepository.count()\n .map(total -> {\n if (total > 0) {\n solarFlareRepository.findTopByBeginTimeIsNotNullOrderByBeginTimeDesc()\n .map(solarFlare -> {\n log.info(\"Entries exist, performing incremental update\");\n log.info(\n \"Last entry found at {}\",\n DateHelper.getPrintableString(solarFlare.getBeginTime())\n );\n collectForRange(solarFlare.getBeginTime(), null);\n return solarFlare;\n })\n .subscribe();\n } else {\n log.info(\"No entries found, performing a full import\");\n collectForRange(fallbackStartDate, null);\n }\n return total;\n })\n .subscribe();\n }",
"protected synchronized MemoryCache getExtremesLookupCache()\n {\n // Note that the extremes lookup cache does not belong to the WorldWind memory cache set, therefore it will not\n // be automatically cleared and disposed when World Wind is shutdown. However, since the extremes lookup cache\n // is a local reference to this elevation model, it will be reclaimed by the JVM garbage collector when this\n // elevation model is reclaimed by the GC.\n\n if (this.extremesLookupCache == null)\n {\n // Default cache size holds 1250 min/max pairs. This size was experimentally determined to hold enough\n // value lookups to prevent cache thrashing.\n long size = Configuration.getLongValue(AVKey.ELEVATION_EXTREMES_LOOKUP_CACHE_SIZE, 20000L);\n this.extremesLookupCache = new BasicMemoryCache((long) (0.85 * size), size);\n }\n\n return this.extremesLookupCache;\n }",
"public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }",
"@Override\n\tpublic void cacheResult(List<Department> departments) {\n\t\tfor (Department department : departments) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tDepartmentModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tDepartmentImpl.class, department.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(department);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdepartment.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"protected abstract void initCache(List<RECIPE> recipes);",
"protected void initCacheIfNeeded(@Nullable Level world) {\n if (!initialized) {\n initialized = true;\n initCache(recipeType.getRecipes(world));\n }\n }",
"public static void loadCache() {\n\t\t // it is the temporary replacement to database. We should use DB instead\n\t Circle circle = new Circle();\n\t circle.setId(\"1\");\n\t shapeMap.put(circle.getId(),circle);\n\n\t Square square = new Square();\n\t square.setId(\"2\");\n\t shapeMap.put(square.getId(),square);\n\n\t Rectangle rectangle = new Rectangle();\n\t rectangle.setId(\"3\");\n\t \n\t Circle circle2 = new Circle();\n\t circle2.setId(\"4\");\n\t circle2.setType(\"Big Circle\");\n\t shapeMap.put(circle2.getId(),circle2);\n\t shapeMap.put(rectangle.getId(), rectangle);\n\t }",
"@Override\n\tpublic boolean isCaching() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void cacheResult(List<TvShow> tvShows) {\n\t\tfor (TvShow tvShow : tvShows) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tTvShowModelImpl.ENTITY_CACHE_ENABLED, TvShowImpl.class,\n\t\t\t\t\t\ttvShow.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(tvShow);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttvShow.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"boolean isCacheable();",
"public static <T extends Entity> EntityCache<T> getMemoryEntityCache() {\n\t\tEntityMap<T> entityMap = new MemoryEntityMap<T>();\n\t\treturn new EntityCache<T>(entityMap);\n\t}",
"public boolean existCache() {\n return false;\n }",
"public void updateFakeEntities() { \n for(ViewableEntity playerEntity : replicatedEntites.values()) {\n playerEntity.update();\n }\n }",
"@Override\n public <T> void putProxy(Key<T> key, T entityProxy)\n {\n queryCache.putProxy(key, entityProxy);\n }",
"public static synchronized void refresh() {\n homes = new HashMap();\n prvHomes = new HashMap();\n ejb30Cache = new HashMap();\n iniCtx = null;\n }",
"@Override\n public <T> T getEntity(Key<T> key)\n {\n // Check the session first in case we've loaded the entity in another query or 'get' then fall back to the query cache\n return session.getCache().get(key)\n .map(entity -> {\n if (logger.isTraceEnabled())\n {\n logger.trace(\"Session cache hit {0}[{1}]\", key.getType().getSimpleName(), key.getId());\n }\n\n session.getStats().cacheHit();\n stats().incHits();\n return entity;\n })\n .orElseGet(() -> queryCache.getEntity(key));\n }",
"@Override\n\tpublic void cacheResult(List<Legacydb> legacydbs) {\n\t\tfor (Legacydb legacydb : legacydbs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tLegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(legacydb);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tlegacydb.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"public void cacheResult(List<CompanyAg> companyAgs) {\n\t\tfor (CompanyAg companyAg : companyAgs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tCompanyAgModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCompanyAgImpl.class, companyAg.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(companyAg);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcompanyAg.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void cacheResult(List<DmHistoryGoods> dmHistoryGoodses) {\n\t\tfor (DmHistoryGoods dmHistoryGoods : dmHistoryGoodses) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tDmHistoryGoodsModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tDmHistoryGoodsImpl.class, dmHistoryGoods.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(dmHistoryGoods);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tdmHistoryGoods.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"public void setCached() {\n }",
"@Override\n\tpublic void cacheResult(List<Candidate> candidates) {\n\t\tfor (Candidate candidate : candidates) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tCandidateModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tCandidateImpl.class, candidate.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(candidate);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcandidate.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"protected void addTileToCache(ElevationTile tile, BufferWrapper elevations)\n {\n if (tile.getLevelNumber() == 0)\n this.levelZeroTiles.put(tile.getTileKey(), tile);\n else\n this.getMemoryCache().add(tile.getTileKey(), tile, elevations.getSizeInBytes());\n }",
"public void cacheableQuery() throws HibException;",
"public static void enableCache(boolean useCache) {\n OntologyTextProvider.useCache = useCache;\n }",
"public DBMaker enableHardCache() {\n cacheType = DBCacheRef.HARD;\n return this;\n }",
"private void populateEntitiesLists() {\n\t\tfor (StaticEntity entity : ((ClientTiledMap) map).staticEntities) {\n\t\t\tregisterStaticEntity(entity);\n\t\t}\n\t}",
"public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}",
"void cachePositions(Collection<Position> positions);",
"@Override\n\tpublic void cacheResult(List<PhatVay> phatVaies) {\n\t\tfor (PhatVay phatVay : phatVaies) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tPhatVayModelImpl.ENTITY_CACHE_ENABLED, PhatVayImpl.class,\n\t\t\t\t\tphatVay.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(phatVay);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tphatVay.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\t\tprotected void setCache(List<E> cache) {\n\t\t\t\t}",
"@Override\n\tpublic void cacheResult(List<Paper> papers) {\n\t\tfor (Paper paper : papers) {\n\t\t\tif (entityCache.getResult(PaperModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tPaperImpl.class, paper.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(paper);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tpaper.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"protected void createLookupCache()\n/* */ {\n/* 1260 */ this.lookup = new SimpleCache(1, Math.max(getSize() * 2, 64));\n/* */ }",
"@Service\npublic interface CityCacheService {\n\n CityCache findById(Long id);\n CityCache create(CityCache city);\n void deleteCache(Long id);\n}",
"protected void initializeCache() {\n if (cacheResults && initialized) {\n dataCache = new HashMap<String, Map<String, Map<String, BaseAttribute>>>();\n }\n }",
"private void evictCache(ExtUser entity) {\n\t}",
"@Override\n public void initSessionFactories() {\n super.initSessionFactories();\n\n sessionFactories.put(EntityCache.class, new SessionFactory() {\n\n @Override\n public Class<?> getSessionType() {\n return EntityCache.class;\n }\n @Override\n public Session openSession(CommandContext commandContext) {\n return new EntityCacheImpl();\n }\n });\n }",
"public static void updatePlayerCaches() {\n\t\tfor (Player player : getOnlinePlayers()) {\n\t\t\tPlayerCache cache = getCache(player);\n\n\t\t\tcache.reloadCache();\n\t\t}\n\t}",
"@Override\n\tpublic void cacheResult(Legacydb legacydb) {\n\t\tEntityCacheUtil.putResult(LegacydbModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\tLegacydbImpl.class, legacydb.getPrimaryKey(), legacydb);\n\n\t\tlegacydb.resetOriginalValues();\n\t}",
"protected List cacheLoadOrStore(List<Object> loadedObjects) {\n if (loadedObjects.isEmpty()) {\n return loadedObjects;\n }\n if (!(loadedObjects.get(0) instanceof Entity)) {\n return loadedObjects;\n }\n\n List<Entity> filteredObjects = new ArrayList<>(loadedObjects.size());\n for (Object loadedObject : loadedObjects) {\n Entity cachedEntity = cacheLoadOrStore((Entity) loadedObject);\n filteredObjects.add(cachedEntity);\n }\n return filteredObjects;\n }",
"public void cache() {\n cache.clear();\n for (String s : getConfig().getKeys(true)) {\n if (getConfig().get(s) instanceof String)\n cache.put(s, getConfig().getString(s));\n }\n }",
"public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\n }",
"@Override\n\tpublic void cacheResult(List<Category> categories) {\n\t\tfor (Category category : categories) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tentityCacheEnabled, CategoryImpl.class,\n\t\t\t\t\tcategory.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(category);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcategory.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"private void cacheLocation(final byte [] tableName,\n final HRegionLocation location) {\n byte [] startKey = location.getRegionInfo().getStartKey();\n Map<byte [], HRegionLocation> tableLocations =\n getTableLocations(tableName);\n boolean hasNewCache = false;\n synchronized (this.cachedRegionLocations) {\n cachedServers.add(location.getHostnamePort());\n hasNewCache = (tableLocations.put(startKey, location) == null);\n }\n if (hasNewCache) {\n LOG.debug(\"Cached location for \" +\n location.getRegionInfo().getRegionNameAsString() +\n \" is \" + location.getHostnamePort());\n }\n }",
"public interface ArticlesCache {\n}",
"@Override\n\tpublic void cacheResult(List<TestUnit> testUnits) {\n\t\tfor (TestUnit testUnit : testUnits) {\n\t\t\tif (entityCache.getResult(TestUnitModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tTestUnitImpl.class, testUnit.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(testUnit);\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttestUnit.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void update(IBasicEntity ent) throws CachingException {\n EntityCachingServiceLocator.getEntityCachingService().update(ent);\n }",
"public void resetCache() {\n logger.info(\"resetCache(): refilling clinical attribute cache\");\n\n Date dateOfCurrentCacheRefresh = new Date();\n ArrayList<ClinicalAttributeMetadata> latestClinicalAttributeMetadata = null;\n // latestOverrides is a map of study-id to list of overridden ClinicalAttributeMetadata objects\n Map<String, ArrayList<ClinicalAttributeMetadata>> latestOverrides = null;\n\n // attempt to refresh ehcache stores seperately and store success status\n boolean failedClinicalAttributeMetadataCacheRefresh = false;\n boolean failedOverridesCacheRefresh = false;\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull clinical attributes from repository. Error message returned: \" + e.getMessage());\n failedClinicalAttributeMetadataCacheRefresh = true;\n }\n\n try {\n clinicalAttributeMetadataPersistentCache.updateClinicalAttributeMetadataOverridesInPersistentCache();\n } catch (RuntimeException e) {\n logger.error(\"resetCache(): failed to pull overrides from repository. Error message returned: \" + e.getMessage());\n failedOverridesCacheRefresh = true;\n }\n\n // regardless of whether ehcache was updated with new data - use that data to populate modeled object caches\n // ensures app starts up (between tomcat restarts) if TopBraid is down\n logger.info(\"Loading modeled object cache from EHCache\");\n try {\n // this will throw an exception if we cannot connect to TopBraid AND cache is corrupt\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCache();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCache();\n } catch (Exception e) {\n try {\n // this will throw an exception if backup is unavailable\n logger.error(\"Unable to load modeled object cache from default EHCache... attempting to read from backup\");\n latestClinicalAttributeMetadata = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataFromPersistentCacheBackup();\n latestOverrides = clinicalAttributeMetadataPersistentCache.getClinicalAttributeMetadataOverridesFromPersistentCacheBackup();\n if (latestClinicalAttributeMetadata == null || latestOverrides == null) {\n throw new FailedCacheRefreshException(\"No data found in specified backup cache location...\", new Exception());\n }\n } catch (Exception e2) {\n logger.error(\"Unable to load modeled object cache from backup EHCache...\");\n throw new FailedCacheRefreshException(\"Unable to load data from all backup caches...\", new Exception());\n }\n }\n\n // backup cache at this point (maybe backup after each successful update above?)\n if (!failedClinicalAttributeMetadataCacheRefresh && !failedOverridesCacheRefresh) {\n logger.info(\"resetCache(): cache update succeeded, backing up cache...\");\n try {\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataPersistentCache(latestClinicalAttributeMetadata);\n clinicalAttributeMetadataPersistentCache.backupClinicalAttributeMetadataOverridesPersistentCache(latestOverrides);\n logger.info(\"resetCache(): succesfully backed up cache\");\n } catch (Exception e) {\n logger.error(\"resetCache(): failed to backup cache: \" + e.getMessage());\n }\n }\n\n HashMap<String, ClinicalAttributeMetadata> latestClinicalAttributeMetadataCache = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : latestClinicalAttributeMetadata) {\n latestClinicalAttributeMetadataCache.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n\n // latestOverridesCache is a map of study-id to map of clinical attribute name to overridden ClinicalAttributeMetadata object\n HashMap<String, Map<String,ClinicalAttributeMetadata>> latestOverridesCache = new HashMap<String, Map<String, ClinicalAttributeMetadata>>();\n for (Map.Entry<String, ArrayList<ClinicalAttributeMetadata>> entry : latestOverrides.entrySet()) {\n HashMap<String, ClinicalAttributeMetadata> clinicalAttributesMetadataMapping = new HashMap<String, ClinicalAttributeMetadata>();\n for (ClinicalAttributeMetadata clinicalAttributeMetadata : entry.getValue()) {\n fillOverrideAttributeWithDefaultValues(clinicalAttributeMetadata, latestClinicalAttributeMetadataCache.get(clinicalAttributeMetadata.getColumnHeader()));\n clinicalAttributesMetadataMapping.put(clinicalAttributeMetadata.getColumnHeader(), clinicalAttributeMetadata);\n }\n latestOverridesCache.put(entry.getKey(), clinicalAttributesMetadataMapping);\n }\n\n clinicalAttributeCache = latestClinicalAttributeMetadataCache;\n logger.info(\"resetCache(): refilled cache with \" + latestClinicalAttributeMetadata.size() + \" clinical attributes\");\n overridesCache = latestOverridesCache;\n logger.info(\"resetCache(): refilled overrides cache with \" + latestOverrides.size() + \" overrides\");\n\n if (failedClinicalAttributeMetadataCacheRefresh || failedOverridesCacheRefresh) {\n logger.info(\"Unable to update cache with latest data from TopBraid... falling back on EHCache store.\");\n throw new FailedCacheRefreshException(\"Failed to refresh cache\", new Exception());\n } else {\n dateOfLastCacheRefresh = dateOfCurrentCacheRefresh;\n logger.info(\"resetCache(): cache last refreshed on: \" + dateOfLastCacheRefresh.toString());\n }\n }",
"@Override\n\tpublic void cacheResult(List<Answer> answers) {\n\t\tfor (Answer answer : answers) {\n\t\t\tif (entityCache.getResult(\n\t\t\t\t\tentityCacheEnabled, AnswerImpl.class,\n\t\t\t\t\tanswer.getPrimaryKey()) == null) {\n\n\t\t\t\tcacheResult(answer);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tanswer.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"private void initializeEntities() {\n arrAttack = new ArrayList<>();\n arrCollidable = new ArrayList<>();\n entities = new ArrayList<>();\n\n arrAttack = scene.entityManager.getEntitiesWithComponents(attackComponent.getClass(), tool.getClass());\n\n arrCollidable = scene.entityManager.getEntitiesWithComponents(collidable.getClass(), Playable.class);\n\n for (int i = 0; i < arrAttack.size(); i++) {\n\n tool = scene.entityManager.getEntityComponentInstance(arrAttack.get(i), tool.getClass());\n\n //A -1 means that the entity is not attacking, at least with that weapon\n if (tool.currentActive != -1) {\n entities.add(arrAttack.get(i));\n }\n }\n\n //adding collidables to entities\n for (int i = 0; i < arrCollidable.size(); i++) {\n entities.add(arrCollidable.get(i));\n }\n }",
"public void flushCaches() {\n LOCAL_SMALL_CACHE.clear();\n LOCAL_LARGE_CACHE.clear();\n }",
"long getCacheHits();",
"@Override\r\n\tpublic List<Hotel> getAllHotels() {\n\t\treturn showHotelList();\r\n\t}",
"boolean isCacheInitialized();",
"public boolean isCached() {\n return true;\n }",
"public interface WeatherCache {\n\n// boolean isExpired();\n// boolean isCached();\n// Observable<WeatherEntity> get();\n// void put(WeatherEntity weatherEntity);\n}",
"@Cacheable(cacheNames = \"allEmployeesCache\")\n\tpublic List<Employee> getAllEmployees() throws Exception {\n\t\tIterable<Employee> iterable = employeeRepository.findAll();\n\t List<Employee> result = new ArrayList<>();\n\t iterable.forEach(result::add);\n\t\treturn result;\n\t}",
"protected void initializeCache() {\n\t\tif (cache == null){\n\t\t\tcache = Collections.synchronizedMap(new HashMap());\n\t\t}\n\t\telse{\n\t\t\tcache.clear();\n\t\t}\n\t}",
"public boolean inCache(String key);",
"@Override\n\tpublic void cacheResult(\n\t\tList<StepDefsCompositeStepDefDBE> stepDefsCompositeStepDefDBEs) {\n\t\tfor (StepDefsCompositeStepDefDBE stepDefsCompositeStepDefDBE : stepDefsCompositeStepDefDBEs) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tStepDefsCompositeStepDefDBEModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tStepDefsCompositeStepDefDBEImpl.class,\n\t\t\t\t\t\tstepDefsCompositeStepDefDBE.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(stepDefsCompositeStepDefDBE);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tstepDefsCompositeStepDefDBE.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"@CacheEvict(value = \"meals\", allEntries = true)\n @Override\n public void evictCache() {\n }",
"public void testMultiEMCachingTrue() {\n Map props = new HashMap(System.getProperties());\n props.put(\"openjpa.MetaDataFactory\", \"jpa(Types=\" + Person.class.getName() + \")\");\n props.put(\"openjpa.jdbc.QuerySQLCache\", \"true\");\n runMultiEMCaching(props);\n }",
"public void registerCacheHits(ResultSet<V> resultSet) {\n threadPoolExecutor.execute(() -> resultSet.stream()\n .forEach(v -> {\n if (!cache.isClosed()) {\n cache.get(cacheKeyMaker.makeKey(v));\n }\n }));\n }",
"void initCaches(Map<EObject, String> eObjectToIdMap, Map<String, EObject> idToEObjectMap);",
"protected net.sf.ehcache.Ehcache getCache() {\n return cache;\n }",
"void invalidateCache();",
"@Override\n\tpublic boolean hasCachedData() {\n\t\treturn false;\n\t}",
"public void cacheResult(List<AnnotationInfo> annotationInfos) {\n\t\tfor (AnnotationInfo annotationInfo : annotationInfos) {\n\t\t\tif (EntityCacheUtil.getResult(\n\t\t\t\t\t\tAnnotationInfoModelImpl.ENTITY_CACHE_ENABLED,\n\t\t\t\t\t\tAnnotationInfoImpl.class, annotationInfo.getPrimaryKey()) == null) {\n\t\t\t\tcacheResult(annotationInfo);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tannotationInfo.resetOriginalValues();\n\t\t\t}\n\t\t}\n\t}",
"public void reload() {\r\n\t\tList<Object> data = currencyImpl.getAll();\r\n\t\twrite.lock();\r\n\t\tIterator<ConcurrentHashMap<String, List<Object>>> iter = cachedData.values().iterator();\r\n\t\twhile (iter.hasNext()) {\r\n\t\t\tConcurrentHashMap<String, List<Object>> map = (ConcurrentHashMap<String, List<Object>>) iter.next();\r\n\t\t\tmap.clear();\r\n\t\t}\r\n\t\tpopulateCachedData((List<Object>)data);\r\n\t\twrite.unlock();\r\n\t}",
"public NeighbourhoodCache(boolean disable) {\n this.disable = disable;\n this.cachedNeighborhoods = new HashMap<CacheKey, List<AdjacentVertexWithEdge>>(MaxCacheSize);\n this.lruQueue = new ArrayDeque<CacheKey>(MaxCacheSize);\n }",
"FixedTextureCache()\n {\n textureMap = new HashMap();\n componentMap = new HashMap();\n }"
]
| [
"0.6359236",
"0.595379",
"0.59401876",
"0.5890721",
"0.5771216",
"0.5726575",
"0.5707409",
"0.5556968",
"0.5526289",
"0.5502874",
"0.5491006",
"0.54426855",
"0.54330987",
"0.5324245",
"0.5300257",
"0.5287562",
"0.5263624",
"0.52616256",
"0.52582115",
"0.52380735",
"0.5236436",
"0.5226085",
"0.52095735",
"0.52022016",
"0.5187681",
"0.5182842",
"0.5173517",
"0.5165457",
"0.51633453",
"0.51579094",
"0.5150408",
"0.5150201",
"0.5134659",
"0.5133302",
"0.5122726",
"0.5115118",
"0.510205",
"0.50896823",
"0.50788754",
"0.5063621",
"0.50620276",
"0.5036987",
"0.5033595",
"0.5016118",
"0.5005801",
"0.50026214",
"0.50025713",
"0.49856946",
"0.49844012",
"0.49758357",
"0.49711835",
"0.49388176",
"0.49327588",
"0.49289832",
"0.49275544",
"0.49234322",
"0.4918597",
"0.4899227",
"0.48941588",
"0.4890885",
"0.4881221",
"0.4877032",
"0.48697576",
"0.48684618",
"0.4862308",
"0.4860269",
"0.4856723",
"0.4853135",
"0.48407403",
"0.48390153",
"0.4838773",
"0.4823628",
"0.4822693",
"0.4818227",
"0.4809492",
"0.48071414",
"0.48048282",
"0.48010972",
"0.47999984",
"0.47928",
"0.47852403",
"0.47804543",
"0.4778896",
"0.47779617",
"0.47725967",
"0.47696894",
"0.47678274",
"0.47672114",
"0.47625569",
"0.47624937",
"0.4740298",
"0.47363982",
"0.472401",
"0.47239453",
"0.47225413",
"0.47173706",
"0.47094825",
"0.47068998",
"0.47003493",
"0.46998996"
]
| 0.682166 | 0 |
Creates a new hotel with the primary key. Does not add the hotel to the database. | public com.Hotel.model.Hotel create(long hotelId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Hotel saveHotel(Hotel hotel);",
"@PostMapping(value=\"/insert/hotel\", consumes=MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic ResponseClient insertNewRoom(@RequestBody Hotel hotel){\r\n\t\thotelSer.save(hotel);\r\n\t\tResponseClient res = new ResponseClient();\r\n\t\tres.setResponse(\"successfull hotel_id: \");\r\n\t\treturn res;\r\n\t}",
"@POST\r\n\t\t@Path(\"/hotel\")\r\n\t\t@Consumes({ MediaType.APPLICATION_JSON })\r\n\t\t@Produces({ MediaType.APPLICATION_JSON })\r\n\t\tpublic Response postHotel(Hotel hotel) {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tAlohaTransactionManager tm = new AlohaTransactionManager(getPath());\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttm.addHotel(hotel);\r\n\t\t\t\t\r\n\t\t\t\treturn Response.status(200).entity(hotel).build();\r\n\t\t\t} \r\n\t\t\tcatch (Exception e) {\r\n\t\t\t\treturn Response.status(500).entity(doErrorMessage(e)).build();\r\n\t\t\t}\r\n\t\t}",
"public void createHotel(String name, int numberSingleRooms,int numberDoubleRooms, double priceSingleRooms,\r\n\t\t\tdouble priceDoubleRooms, int category, UUID userID, int postalCode, String adress) {\r\n\t\tif(session instanceof Hotelier) {\t\t// nur erlaubt für Hoteliers\r\n\t\t\tHotel hotel=new Hotel(name, numberSingleRooms, numberDoubleRooms, priceSingleRooms, \r\n\t\t\t\t\tpriceDoubleRooms, category, userID, postalCode, adress);\r\n\t\t\tfor (int i=0;i<numberDoubleRooms;i++) {\t\t\t// erstelllt und speichert die Zimmer des Hotels (param: HotelID, RoomType, bookedDates)\r\n\t\t\t\tcreateRoom(hotel.getHotelID(),0, new ArrayList <DateTime>());\r\n\t\t\t}\r\n\t\t\tfor (int i=0;i<numberSingleRooms;i++) {\r\n\t\t\t\tcreateRoom(hotel.getHotelID(),1, new ArrayList <DateTime>());\r\n\t\t\t}\t\t\r\n\t\t\thotelDAO.saveHotel(hotel);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tnew IllegalArgumentException(\"Die Aktion 'createHotel' kann nur von einem Hotelier durchgeführt werden.\");\r\n\t\t}\r\n\t}",
"public void persistHotel(Hotel hotel) throws SQLException{\n\t\tPlace place = new Place(hotel.getName(), hotel.getCoord(), hotel.getDescriptionFile());\n\t\tpersistPlace(place);\n\t\tpersistPlace(hotel.getBeach());\n\t\t\n\t\tString readPlacePKQuery = \"SELECT id FROM Place WHERE name = ? AND descriptionFile = ?\";\n\t\tString readBeachPKQuery = \"SELECT id FROM Place WHERE name = ? AND descriptionFile = ?\";\n\t\tString insertHotelQuery = \"INSERT INTO Hotel (id_place, pricePerDay, id_beach) VALUES (?,?,?)\";\n\n\t\t//Then, get the primary key of the Place part and the beach\n\t\tPreparedStatement preparedStatement = conn.prepareStatement(readPlacePKQuery);\n\t\t\n\t\tpreparedStatement.setString(1, place.getName());\n\t\tpreparedStatement.setString(2, place.getDescriptionFile());\n\t\t\n\t\tResultSet result = preparedStatement.executeQuery();\n\t\tresult.next();\n\t\t\n\t\tint placePK = result.getInt(\"id\");\n\t\t\n\t\tpreparedStatement.close();\n\t\t\n\t\tpreparedStatement = conn.prepareStatement(readBeachPKQuery);\n\t\t\n\t\tpreparedStatement.setString(1, hotel.getBeach().getName());\n\t\tpreparedStatement.setString(2, hotel.getBeach().getDescriptionFile());\n\t\t\n\t\tresult = preparedStatement.executeQuery();\n\t\tresult.next();\n\t\t\n\t\tint beachPK = result.getInt(\"id\");\n\n\t\t//Set place in the database\n\t\tpreparedStatement = conn.prepareStatement(insertHotelQuery);\n\t\t\n\t\tpreparedStatement.setInt(1, placePK);\n\t\tpreparedStatement.setFloat(2, hotel.getPricePerDay());\n\t\tpreparedStatement.setInt(3, beachPK);\n\n\t\tpreparedStatement.executeUpdate();\n\n\t\tpreparedStatement.close();\n\t\t\n\t}",
"public void addHotel(String hotelId, String hotelName, String city, String state, String streetAddress, double lat,\n\t\t\tdouble lon, String country) {\n\t\tlock.lockWrite();\n\t\ttry{\n\t\t\tif(hotelMap.get(hotelId) == null){\n\t\t\t\tAddress address = new Address(streetAddress, city, state, lat, lon);\n\t\t\t\tHotel hotel = new Hotel(hotelId, hotelName, address, country, lat, lon);\n\t\t\t\t\n\t\t\t\t//put the hotel information into the hotelMap.\n\t\t\t\thotelMap.put(hotelId, hotel);\n\t\t\t}\n\t\t}\n\t\tfinally{\n\t\t\tlock.unlockWrite();\n\t\t}\n\t}",
"@PostMapping\n public ResponseEntity<HotelResource> saveHotel(@RequestBody Hotel hotel){\n return new ResponseEntity<>(\n hotelService.saveHotel(hotel), HttpStatus.CREATED\n );\n }",
"public void setHotelId(Integer hotelId) {\r\n this.hotelId = hotelId;\r\n }",
"public void setHotelId(Integer hotelId) {\n this.hotelId = hotelId;\n }",
"public void setHotelId(Integer hotelId) {\n this.hotelId = hotelId;\n }",
"public void createHotel(Connection connection) throws SQLException {\n\n Scanner scan = new Scanner(System.in);\n\n DatabaseMetaData dmd = connection.getMetaData();\n ResultSet rs1 = dmd.getTables(null, null, \"HOTEL\", null);\n ResultSet rs2 = dmd.getTables(null, null, \"HOTEL_ADDRESS\", null);\n\n // Must successfully locate HOTEL and HOTEL_ADDRESS before proceeding:\n if (rs1.next() && rs2.next()){\n\n createAddress(connection, scan); // Creates an address to link HOTEL with ADDRESS\n\n String sql = \"INSERT INTO Hotel VALUES (?, ?, ?)\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n System.out.print(\"Please provide a hotel name: \");\n setHotelName(scan.nextLine());\n pStmt.setString(1, getHotelName());\n\n System.out.print(\"Please provide a branch ID: \");\n setBranchID(Integer.parseInt(scan.nextLine()));\n pStmt.setInt(2, getBranchID());\n\n\n System.out.print(\"Please provide a phone number: \");\n setPhone(scan.nextLine());\n pStmt.setString(3, getPhone());\n\n try { pStmt.executeUpdate(); }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs1.close();\n rs2.close();\n }\n\n linkHotelAddress(connection); // Links HOTEL with ADDRESS entities in HOTEL_ADDRESS relation\n\n do {\n createRoom(connection, scan);\n System.out.println(\"Would you like to add another room type to this hotel (Y, N): \");\n } while ((String.valueOf(scan.next())).toUpperCase().equals(\"Y\"));\n }\n else {\n System.out.println(\"ERROR: Error loading HOTEL or HOTEL_ADDRESS Table.\");\n }\n }",
"public void addNewPassenger() throws SQLException {\n\t\tScanner input = new Scanner(System.in);\n\t\tConnection conn = null;\n\t\ttry {\n\t\t\tconn = connUtil.getConnection();\n\t\t\t// call needed DAOs here\n\t\t\tPassengerDAO pdao = new PassengerDAO(conn);\n\t\t\tFlightDAO fdao = new FlightDAO(conn);\n\t\t\tRouteDAO rdao = new RouteDAO(conn);\n\t\t\tAirportDAO apodao = new AirportDAO(conn);\n\t\t\tAirplaneDAO apldao = new AirplaneDAO(conn);\n\n\t\t\tPassenger passenger = new Passenger();\n\t\t\tpassenger.setId(pdao.nextAvailableId());\n\t\t\tpassenger.setBookingId(1);\n\n\t\t\t// Sets passenger name\n\t\t\tSystem.out.println(\"Enter the passenger given name\");\n\t\t\tpassenger.setGivenName(input.nextLine());\n\t\t\tSystem.out.println(\"Enter the passenger family name\");\n\t\t\tpassenger.setFamilyName(input.nextLine());\n\n\t\t\t// Sets birthday\n\t\t\tSystem.out.println(\"Enter DOB (yyyy-mm-dd)\");\n\t\t\tDate date = Date.valueOf(input.nextLine());\n\t\t\tpassenger.setDob(date);\n\n\t\t\t// Sets gender\n\t\t\tSystem.out.println(\"Enter gender (male/female/other)\");\n\t\t\tpassenger.setGender(input.nextLine());\n\n\t\t\t// Sets address\n\t\t\tSystem.out.println(\"Enter the address of the passenger\");\n\t\t\tpassenger.setAddress(input.nextLine());\n\n\t\t\t// Adds passenger to passenger table\n\t\t\tpdao.addPassenger(passenger);\n\n\t\t\tconn.commit();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tconn.rollback();\n\t\t} finally {\n\t\t\tconn.close();\n\t\t}\n\t}",
"public Hotel(int hotelId, String name, String address, double price, boolean pool, boolean gym, boolean bar,\n\t\t\tboolean pets, int stars, String imgPath) {\n\t\tthis.hotelId = hotelId;\n\t\tthis.name = name;\n\t\tthis.address = address;\n\t\tthis.price = price;\n\t\tthis.pool = pool;\n\t\tthis.gym = gym;\n\t\tthis.bar = bar;\n\t\tthis.pets = pets;\n\t\tthis.stars = stars;\n\t\tthis.imgPath = imgPath;\n\n\t}",
"public HashMap<Integer, Hotel> addHotel(Hotel hotel) {\n hotels.put(hotel.getId(), hotel);\n return hotels;\n }",
"@Override\n @Transactional\n public HotelResponseDTO createHotel(AddHotelRequestDTO addHotelRequest) {\n Hotel hotel = new Hotel();\n String generatedHotelId = CommonUtil.getGeneratedId();\n hotel.setHotelId(generatedHotelId);\n hotel.setName(addHotelRequest.getName());\n hotel.setDescription(addHotelRequest.getDescription());\n hotel.setLocation(addHotelRequest.getLocation());\n hotel.setDefaultCheckInTime(addHotelRequest.getDefaultCheckInTime());\n hotel.setDefaultCheckOutTime(addHotelRequest.getDefaultCheckOutTime());\n if (addHotelRequest.getFacilities() != null) {\n hotel.setFacilities(String.join(\",\", addHotelRequest.getFacilities()));\n }\n hotel.setDeleted(false);\n Date createdDate = new Date();\n hotel.setCreatedDate(createdDate);\n hotel.setLastModifiedDate(createdDate);\n hotelRepository.save(hotel);\n\n List<AddRoomRequestDTO> roomRequests = addHotelRequest.getRooms();\n if (roomRequests != null && roomRequests.size() > 0) {\n List<Room> rooms = roomRequests.stream().map(roomRequest -> {\n Room room = new Room();\n String generatedRoomId = CommonUtil.getGeneratedId();\n room.setRoomId(generatedRoomId);\n RoomType roomType = RoomType.fromCode(roomRequest.getRoomType());\n room.setRoomType(roomType);\n BedType bedType = BedType.fromCode(roomRequest.getBedType());\n room.setBedType(bedType);\n room.setNumberOfAdults(roomRequest.getNumberOfAdults());\n room.setNumberOfChildren(roomRequest.getNumberOfChildren());\n room.setBasicFare(roomRequest.getBasicFare());\n room.setTaxPercentage(roomRequest.getTaxPercentage());\n if (roomRequest.getFacilities() != null) {\n room.setFacilities(String.join(\",\", roomRequest.getFacilities()));\n }\n room.setCreatedDate(createdDate);\n room.setLastModifiedDate(createdDate);\n room.setDeleted(false);\n room.setHotel(hotel);\n return room;\n }).collect(Collectors.toList());\n roomRepository.saveAll(rooms);\n hotel.setRooms(rooms);\n }\n logger.info(\"Created hotel information successfully | hotelId:{}\", generatedHotelId);\n return makeHotelResponseDTO(hotel);\n }",
"public void setIdHotel(Integer idHotel) {\r\n this.idHotel = idHotel;\r\n }",
"int insert(HotelType record);",
"public boolean addOrUpdateHotel(String name, String ip, String port, String capacity){\n boolean result = false;\n try {\n Hotel hotel = new Hotel();\n hotel.setName(name);\n hotel.setIp(ip);\n hotel.setPort(Integer.parseInt(port));\n hotel.setCapacity(Integer.parseInt(capacity));\n result = databaseManager.addOrUpdateHotel(hotel);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return result;\n }",
"Booking createBooking(Booking newBooking) throws Exception;",
"@Override\n\tpublic HotelBooking bookRoom(HotelForm hotelForm, Session session) throws HibernateException, Exception{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tHotelBooking hotelBooking = setDAOValues(hotelForm);\n\t\tsession.save(hotelBooking);\n\t\t\n\t\treturn null;\n\t}",
"org.landxml.schema.landXML11.RoadwayDocument.Roadway addNewRoadway();",
"public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }",
"public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }",
"@Override\r\n\tpublic boolean createBooking(Booking_IF bk) {\r\n\t\tPreparedStatement myStatement = null;\r\n\t\tString query = null;\r\n\t\tint count = 0;\r\n\t\ttry{\r\n\t\t\tquery = \"insert into Booking values(?,?);\";\r\n\t\t\tmyStatement = myCon.prepareStatement(query);\r\n\t\t\tmyStatement.setInt(2, bk.getUserid());\r\n\t\t\tmyStatement.setInt(1, bk.getShiftid());\r\n\t\t\tcount = myStatement.executeUpdate();\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally{\r\n\t\t\ttry {\r\n\t\t\t\tif (myStatement != null)\r\n\t\t\t\t\tmyStatement.close();\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(count!=1){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\telse{\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}",
"public void addHotel(int hotelId, List<Hotel_Room_Detail> hotelRoomDetailList){\n\n }",
"@Override\r\n\tpublic int create(Dish dish) {\r\n\t\t\r\n//\t\thashMap.put(dish.getId(), dish);\r\n\t\tSystem.out.println(\" Creating Dish\");\r\n\t\tSession session = HibernateUtil.getSessionFactory().openSession();\r\n\t\tsession.beginTransaction();\r\n\t\tsession.save(dish);\r\n\t\tsession.getTransaction().commit();\r\n\t\tsession.close();\r\n//\t\tSystem.out.println(\"Dish create successfully\" +dish.toString());\r\n\t\treturn dish.getId();\r\n\t\t\r\n\t}",
"@Override\n\tpublic boolean create(Eleve o) {\n\t\tmap.put(o.getId(),o);\n\t\treturn true;\n\t}",
"public Integer getHotelId() {\r\n return hotelId;\r\n }",
"public Event createBooking(RequestContext context) {\n\tHotel hotel = (Hotel) context.getFlowScope().get(\"hotel\");\n\tUser user = (User) context.getConversationScope().get(\"user\");\n\tBooking booking = new Booking(hotel, user);\n\tEntityManager em = (EntityManager) context.getFlowScope().get(\"entityManager\");\n\tem.persist(booking);\n\tcontext.getFlowScope().put(\"booking\", booking);\n\treturn success();\n }",
"public void setHotelId(int value) {\n this.hotelId = value;\n }",
"public com.huqiwen.demo.book.model.Books create(long bookId);",
"public Integer getHotelId() {\n return hotelId;\n }",
"public Integer getHotelId() {\n return hotelId;\n }",
"public Builder setHotelId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n hotelId_ = value;\n onChanged();\n return this;\n }",
"int insert(SrHotelRoomInfo record);",
"public int getHotelId() {\n return hotelId;\n }",
"public com.Hotel.model.Hotel fetchByPrimaryKey(long hotelId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"@Test\r\n\t public void addAnExistingRouteFather(){\r\n\t\tRouteFather toAdd = new RouteFather();\r\n\t\ttoAdd = routeFatherDAO.create(toAdd);\r\n\t\tAssert.assertNull(toAdd);\r\n\t\t\r\n\t }",
"public long createEntry(String name, String hotness) throws SQLException {\n\t\tContentValues cv = new ContentValues();\n\t\tcv.put(KEY_NAME, name);\n\t\tcv.put(KEY_HOTNESS, hotness);\n\n\t\t// return the ROW_ID of new inserted row or -1 if error occurred\n\t\treturn ourDatabase.insert(DATABASE_TABLE, null, cv);\n\n\t}",
"@Override\r\n\tpublic boolean addHotelArea(HotelArea hotelArea) {\n\t\tInteger result = hotelAreaDao.insert(hotelArea);\r\n\t\t\r\n\t\treturn result > 0;\r\n\t}",
"public long createHotel(String type, String name, String desc, String mins, String addr, float rate, String phone, String web ) {\r\n ContentValues initialValues = new ContentValues();\r\n initialValues.put(KEY_TYPE, type);\r\n initialValues.put(KEY_NAME, name);\r\n initialValues.put(KEY_DESC, desc);\r\n initialValues.put(KEY_MINS, mins);\r\n initialValues.put(KEY_ADDR, addr);\r\n initialValues.put(KEY_RATE, rate);\r\n initialValues.put(KEY_PHONE, phone);\r\n initialValues.put(KEY_WEB, web);\r\n\r\n return mDb.insert(DATABASE_TABLE, null, initialValues);\r\n }",
"@Override\n\tpublic int addJewel(Jewel jewel) {\n\t\treturn jewelDao.insert(jewel);\n\t}",
"private void linkHotelAddress(Connection connection) throws SQLException {\n\n String sql = \"INSERT INTO Hotel_Address VALUES (?, ?, ?, ?, ?)\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n pStmt.setString(1, getHotelName());\n pStmt.setInt(2, getBranchID());\n pStmt.setString(3, getCity());\n pStmt.setString(4, getState());\n pStmt.setInt(5, getZip());\n\n try { pStmt.executeUpdate(); }\n catch (SQLException e) { throw e; }\n finally { pStmt.close(); }\n }",
"public Builder setHotelIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n hotelId_ = value;\n onChanged();\n return this;\n }",
"@Test\n @Transactional\n void createRestaurantWithExistingId() throws Exception {\n restaurant.setId(1L);\n RestaurantDTO restaurantDTO = restaurantMapper.toDto(restaurant);\n\n int databaseSizeBeforeCreate = restaurantRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restRestaurantMockMvc\n .perform(post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(restaurantDTO)))\n .andExpect(status().isBadRequest());\n\n // Validate the Restaurant in the database\n List<Restaurant> restaurantList = restaurantRepository.findAll();\n assertThat(restaurantList).hasSize(databaseSizeBeforeCreate);\n }",
"public static SavedHotelFragment newInstance() {\n SavedHotelFragment fragment = new SavedHotelFragment();\n return fragment;\n }",
"Purchase create(Purchase purchase) throws SQLException, DAOException;",
"public Highway createHighway(RoadMap r) {\n\t\tHighway newHighway;\n\t\ttry {\n\t\t\tnewHighway = new Highway(roadID, length, maxVel, verifyJunction(r,\n\t\t\t\t\tini), verifyJunction(r, end), lanes);\n\n\t\t} catch (IllegalArgumentException | ObjectNotFoundException e) {\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Error: Could not create Highway \" + roadID + \" at time \"\n\t\t\t\t\t\t\t+ getTime() + \".\\n\" + e.getMessage(), e);\n\t\t}\n\t\treturn newHighway;\n\t}",
"org.landxml.schema.landXML11.RoadsideDocument.Roadside addNewRoadside();",
"@Override\n public void addHotelToOrganization(HotelTO hotelTO, Organization organization) throws InsufficientPrivilegeException {\n Hotel newHotel = new Hotel();\n newHotel.setHotelName(hotelTO.getHotelName());\n newHotel.setOrganizationID(organization.getId());\n\n // Create the contact object.\n Contact contact = new Contact();\n contact.setAddressLine1(hotelTO.getAddressLine1());\n contact.setAddressLine2(hotelTO.getAddressLine2());\n contact.setCityName(hotelTO.getCityName());\n contact.setPostalCode(Integer.parseInt(hotelTO.getPostalCode()));\n contact.setProvidenceCode(hotelTO.getStateCode());\n\n contact.setOfficeNumber(hotelTO.getOfficePhoneNumber());\n contact.setFaxNumber(hotelTO.getFaxPhoneNumber());\n\n newHotel.setHotelContact(contact);\n\n hotelDao.save(newHotel);\n }",
"public void setHotelID(int value) {\n this.hotelID = value;\n }",
"@Override\n @Transactional\n public HotelResponseDTO addReview(String hotelId, AddReviewRequestDTO addReviewRequest) {\n Optional<Hotel> optionalHotel = hotelRepository.findByHotelId(hotelId);\n Hotel hotel = optionalHotel.orElseThrow(() -> {\n logger.error(\"Hotel information not found | hotelId:{}\", hotelId);\n return new BookingServiceException(\"Hotel information not found | hotelId:\" + hotelId);\n });\n if (hotel.isDeleted()) {\n logger.info(\"Hotel is inactive | hotelId:{}\", hotelId);\n throw new BookingServiceException(\"Hotel is inactive | hotelId:\" + hotelId);\n }\n Review review = new Review();\n String generatedReviewId = CommonUtil.getGeneratedId();\n review.setReviewId(generatedReviewId);\n review.setHotel(hotel);\n review.setComment(addReviewRequest.getComment());\n review.setRatingValue(addReviewRequest.getRatingValue());\n Optional<User> optionalUser = userRepository.findByUserId(addReviewRequest.getUserId());\n optionalUser.ifPresent(review::setReviewedBy);\n Date reviewedDate = new Date();\n review.setReviewedDate(reviewedDate);\n review.setDeleted(false);\n reviewRepository.save(review);\n logger.info(\"Created hotel review information successfully | hotelId:{}\", hotelId);\n return makeHotelResponseDTO(hotel);\n }",
"@Test\n public void createHouseholdUsingPostTest() throws ApiException {\n Household household = null;\n Household response = api.createHouseholdUsingPost(household);\n\n // TODO: test validations\n }",
"public int getHotelID() {\n return hotelID;\n }",
"public Hotel(ArrayList<Room> rooms) {\n this.rooms = rooms;\n }",
"public Triplet add(Triplet t) throws DAOException;",
"public Todo create(long todoId);",
"int insertSelective(HotelType record);",
"public Hotel(String name, String address, double price, boolean pool, boolean gym, boolean bar, boolean pets,\n\t\t\tint stars, String imgPath) {\n\t\tthis.name = name;\n\t\tthis.address = address;\n\t\tthis.price = price;\n\t\tthis.pool = pool;\n\t\tthis.gym = gym;\n\t\tthis.bar = bar;\n\t\tthis.pets = pets;\n\t\tthis.stars = stars;\n\t\t// ny\n\t\tthis.imgPath = imgPath;\n\t}",
"Reservierung insert(Reservierung reservierung) throws ReservierungException;",
"public Hotel(String name, String address) {\n\t\tthis.name = name;\n\t\tthis.address = address;\n\t}",
"public long createOffer (OfferModel offerModel) {\n SQLiteDatabase db = getWritableDatabase() ;\n\n ContentValues values = new ContentValues() ;\n values.put(KEY_OFFERS_PRODUCT_ID, offerModel.getProductId());\n values.put(KEY_OFFERS_NAME, offerModel.getName());\n values.put(KEY_OFFERS_PRICE, offerModel.getPrice());\n values.put(KEY_OFFERS_IMAGE_URL, offerModel.getImageUrl()) ;\n values.put(KEY_OFFERS_IN_STOCK_STATUS, offerModel.getImageUrl());\n values.put(KEY_OFFERS_DISCOUNT, offerModel.getDiscount());\n values.put(KEY_OFFERS_BEACON_ID, offerModel.getBeaconId());\n\n long offer_id = db.insert(TABLE_OFFERS, null, values) ;\n return offer_id ;\n }",
"@Override\n public EntityDealer create(String dealerId) {\n EntityDealer entityDealer = new EntityDealerImpl();\n\n entityDealer.setNew(true);\n entityDealer.setPrimaryKey(dealerId);\n\n return entityDealer;\n }",
"@Override\n public Reservation createReservation(String reservationID, Reservation newReservation) {\n Reservation reservation = new Reservation(getHostName(), getHostAddress(), getUID(), generateNextNumber());\n\n //Plan: Add new reservation into the list, then update it on firebase\n reservationList.add(reservation);\n\n //Get reference to reservation\n DatabaseReference userSpaceRef = FirebaseDatabase.getInstance().getReference().child(\"Host/\" + UID);\n return null;\n }",
"public Hoppy insert(Hoppy hoppy, IdGenerateService<Long> idGenerateService) throws DataAccessException;",
"@Override\n\tpublic void createResident(Resident resident) {\n\t\tgetSession().saveOrUpdate(resident);\n\t\tSystem.out.println(\"Resident stored successfully\");\n\t\t\n\t}",
"@RequestMapping(\"/create\")\n\tpublic Booking create(Booking booking) {\n\t\tbooking.setTravelDate(new Date());\n\t\tbooking = bookingRepository.save(booking);\n\t return booking;\n\t}",
"@RequiresApi(api = Build.VERSION_CODES.N)\n private void insertBreakfastHabbit() {\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n // Create a ContentValues object where column names are the keys,\n // and Breakfast attributes are the values.\n ContentValues values = new ContentValues();\n values.put(HabbitContract.HabbitEntry.COLUMN_HAD_BREAKFAST, 1);\n values.put(HabbitContract.HabbitEntry.COLUMN_BREAKFAST_MEAL, \"porridge with honey and banana\");\n values.put(HabbitContract.HabbitEntry.COLUMN_ADDITIONAL_DATA, \"300 calories meal\");\n values.put(HabbitContract.HabbitEntry.COLUMN_DATETIME_STAMP, getDateTime());\n\n // Insert a new row for Breakfast in the database, returning the ID of that new row.\n // The first argument for db.insert() is the nutrition table name.\n // The second argument provides the name of a column in which the framework\n // can insert NULL in the event that the ContentValues is empty (if\n // this is set to \"null\", then the framework will not insert a row when\n // there are no values).\n // The third argument is the ContentValues object containing the info for Breakfast Entry.\n long newRowId = db.insert(HabbitContract.HabbitEntry.TABLE_NAME, null, values);\n\n Log.v(\"MainActivity\", \"New Rod ID: \" + newRowId);\n }",
"public void insertBooking(Booking booking) throws SQLException, Exception;",
"public static void addKitchen(KitchenModel kitchen) {\n //Creating session\n Session session = SetupPersistence.getSession();\n //Saving object to database\n session.save(kitchen);\n //Closing session\n SetupPersistence.closeSession(session);\n }",
"int insertSelective(SrHotelRoomInfo record);",
"@POST\n @Produces({\"application/json; charset=iso-8859-1\"})\n @Path(\"admin\")\n public Lehrer createLehrer(Lehrer l) {\n Log.d(\"Neuen Lehrer anlegen \" + l);\n em.persist(l);\n em.flush();\n return l;\n }",
"@Test\r\n\t public void addANullRouteFather(){\r\n\t\t RouteFather test = routeFatherDAO.create(new RouteFather(null, null, null, null, null));\r\n\t\t Assert.assertNull(\"it should returns null\", test);\r\n\t }",
"@Override\n\tpublic void create(Board board) throws Exception {\n\t\tdao.insert(board);\n\t}",
"@Override\r\n public void onCreate(SQLiteDatabase db) {\n db.execSQL(\r\n \"create table HALL \" +\r\n \"(id integer primary key AUTOINCREMENT , hallName text,rent text,capacity text,floors text, location text)\"\r\n );\r\n }",
"public boolean checkHotelPresent(int hotelId);",
"@Test\r\n\tpublic void addToDb() {\r\n\t\tservice.save(opinion);\r\n\t\tassertNotEquals(opinion.getId(), 0);\r\n\t\tassertTrue(service.exists(opinion.getId()));\r\n\t}",
"public void create(Book book) {\n\t\tentityManager.persist(book);\n\t\tSystem.out.println(\"BookDao.create()\" +book.getId());\n\t\t\n\t}",
"public Tour createTour(String title, String tourType, String dateFrom, String dateTo, String cost, String description, String transportType, String hotelId, String isHot, String photoUrl) throws ServiceException, InvalidDateException {\n Hotel hotel = hotelRepository.findById(Long.parseLong(hotelId)).orElseThrow(() -> new ServiceException(\"Cant find hotel by id: \" + hotelId));\n Date from = localTimeToDate(dateFrom);\n Date to = localTimeToDate(dateTo);\n if (from.after(to) || from.before(new Date())) {\n throw new InvalidDateException(\"Invalid date\");\n }\n Tour tour = new Tour();\n tour.setTitle(title);\n tour.setTourType(TourType.valueOf(tourType));\n tour.setDateTo(to);\n tour.setDateFrom(from);\n tour.setCost(Double.parseDouble(cost));\n tour.setDescription(description);\n tour.setTransportType(TransportType.valueOf(transportType));\n tour.setHotel(hotel);\n tour.setHot(Boolean.valueOf(isHot));\n tour.setPhoto(photoUrl);\n tour.setId(tourRepository.save(tour));\n LOGGER.info(tour.toString());\n return tour;\n }",
"@Override\n\tpublic Penguin createPenguin(Penguin penguin) {\n\t\tPenguin saved = this.repo.save(penguin);\n\t\treturn saved; // penguin with an id (has been saved)\n\t}",
"@TargetApi(Build.VERSION_CODES.KITKAT)\n @RequiresApi(api = Build.VERSION_CODES.KITKAT)\n public void createReservation() {\n Time timeObj = null;\n DateFormat formatter= new SimpleDateFormat(\"kk:mm\");\n try {\n timeObj = new Time(formatter.parse(time).getTime());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n Bitmap generatedQR = generateQR();\n //Create reservation & save to Repository\n Reservation reservation = new Reservation(film, timeObj, listPlaces, generatedQR);\n Repository.addReservation(reservation);\n }",
"public SingleRoom(Hotel hotel, String nomor_kamar)\n {\n // initialise instance variables\n super(hotel,nomor_kamar);\n\n }",
"@PostMapping(\"/createNewGameRoom\")\n @ResponseStatus(HttpStatus.CREATED)\n public Game generateNewGameRoom() {\n String entrycode = service.generateEntryCode();\n currentGame.setEntrycode(entrycode);\n currentGame = gameDao.add(currentGame);\n return currentGame;\n }",
"public Edge createEdge(String description, int sourceId, int destId, int weight) throws SQLException {\n\t\tVertex source = findVertById(sourceId);\n\t\tVertex destination = findVertById(destId);\n\t\tEdge newEdge = new Edge(description, weight, destination, source);\n\t\treturn rDb.createEdge(newEdge);\n\t}",
"public void setClHotelId(String clHotelId) {\r\n this.clHotelId = clHotelId;\r\n }",
"Reservation createReservation();",
"PrimaryKey createPrimaryKey();",
"@Override\n\tpublic void AddLid(LidPOJO lid) throws Exception {\n try {\n \tConnection connect = getConnection();\n\n\n preparedStatement = connect.prepareStatement(\"INSERT INTO Leden(Naam, Achternaam, Leeftijd, teamcode, password) VALUES(?, ?, ?, ?, ?)\");\n preparedStatement.setString(1, lid.getNaam());\n preparedStatement.setString(2, lid.getAchternaam());\n preparedStatement.setInt(3, lid.getLeeftijd());\n preparedStatement.setInt(4, lid.getTeamcode());\n preparedStatement.setString(5, lid.getPasw());\n\n\n\n\n preparedStatement.executeUpdate();\n connect.close();\n\n\n } catch (Exception e) {\n throw e;\n } finally {\n \tif (resultSet != null) {\n resultSet.close();\n }\n\n if (statement != null) {\n statement.close();\n } }\n\n }",
"RentalAgency createRentalAgency();",
"public void createRoute(Route route) throws SQLException {\n\t\trDb.createRoute(route);\n\t}",
"@Override\n\tpublic Candidate create(long candidateId) {\n\t\tCandidate candidate = new CandidateImpl();\n\n\t\tcandidate.setNew(true);\n\t\tcandidate.setPrimaryKey(candidateId);\n\n\t\treturn candidate;\n\t}",
"public Builder clearHotelId() {\n \n hotelId_ = getDefaultInstance().getHotelId();\n onChanged();\n return this;\n }",
"@Override\n public void createRecipe(RecipeEntity recipeEntity)\n {\n this.save(recipeEntity);\n }",
"@Override\n\tpublic void add(Plane p) {\n\t\tString query = \"INSERT INTO fleet(model,planeid)\" + \"VALUES ('\" + p.getName() + \"',\" + p.getPlaneID() + \")\";\n\t\tDBManager.getInstance().addToDB(query);\n\t}",
"@Test\r\n public void createTest() {\r\n repo = ctx.getBean(KitchenRepository.class);\r\n Kitchen k = new Kitchen();\r\n k.setStove(\"Defy\");\r\n k.setFridge(\"LG\");\r\n k.setBasin(\"Cobra Stainless Steel\");\r\n repo.save(k);\r\n id = k.getId();\r\n k.toString();\r\n Assert.assertNotNull(id);\r\n }",
"@Test\n @Transactional\n void createIndActivationWithExistingId() throws Exception {\n indActivation.setId(1L);\n IndActivationDTO indActivationDTO = indActivationMapper.toDto(indActivation);\n\n int databaseSizeBeforeCreate = indActivationRepository.findAll().size();\n\n // An entity with an existing ID cannot be created, so this API call must fail\n restIndActivationMockMvc\n .perform(\n post(ENTITY_API_URL).contentType(MediaType.APPLICATION_JSON).content(TestUtil.convertObjectToJsonBytes(indActivationDTO))\n )\n .andExpect(status().isBadRequest());\n\n // Validate the IndActivation in the database\n List<IndActivation> indActivationList = indActivationRepository.findAll();\n assertThat(indActivationList).hasSize(databaseSizeBeforeCreate);\n }",
"public Hotel getHotel(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel res ){\n\t\tHotel hotel = new Hotel();\n\t\t\n\t\t//set the gdsHotelCode\n\t\thotel.setGdsHotelCode(res.getGdsHotelCode());\n\t\thotel.setVendorHotelCode(res.getVendorHotelCode());\n\t\thotel.setHotelCode( res.getHotelCode() );\n\t\thotel.setHotelChain( res.getHotelChain() );\n\t\thotel.setHotelName( res.getHotelName() );\n\t\thotel.setAppleRating( res.getAppleRating() );\n\t\thotel.setCurrency( res.getCurrency() );\n\t\thotel.setHotelCityCode( res.getHotelCityCode() );\n\t\thotel.setOriginLocation( res.getOriginLocation() );\n\t\thotel.setNoOfNights( res.getNoOfNights() ); \n\t\thotel.setHbsiPNR(res.getHbsiPNRNo());\n\t\thotel.setHBSI(res.isIsHBSi()!=null?res.isIsHBSi():false);\n\n\t\tif( res.getHotelId() != null ){\n\t\t\thotel.setHotelId( res.getHotelId().intValue() );\n\t\t}\n\t\tif( res.getNoOfRequestedRooms() != null ){\n\t\t\thotel.setNoOfRequestedRooms( res.getNoOfRequestedRooms().intValue() );\n\t\t}\n\t\tif( res.getNoOfRooms() != null ){\n\t\t\thotel.setNoOfRooms( res.getNoOfRooms().intValue() );\n\t\t}\n\t\tif( res.getMinRate() != null ){\n\t\t\thotel.setMinRate( res.getMinRate().doubleValue() );\n\t\t}\n\t\tif( res.isAppleSpecialsAndSavers() != null ){\n\t\t\thotel.setAppleSpecialsAndSavers( res.isAppleSpecialsAndSavers().booleanValue() );\n\t\t}\n\t\tif( res.isRiskHotel() != null ){\n\t\t\thotel.setRiskHotel( res.isRiskHotel().booleanValue() );\n\t\t}\n\t\tif( res.getCheckInDate() != null ){\n\t\t\thotel.setCheckInDate( this.getDate( res.getCheckInDate() ) );\n\t\t}\n\t\tif( res.getCheckOutDate() != null ){\n\t\t\thotel.setCheckOutDate( this.getDate( res.getCheckOutDate() ) );\n\t\t}\n\t\tif( res.getVendor() != null ){\n\t\t\thotel.setVendor( this.getVendor( res.getVendor()) );\n\t\t}\n\t\tif( res.getOccupancy() != null ){\n\t\t\thotel.setOccupancy( this.getOccupancy( res.getOccupancy() ) );\n\t\t}\n\t\tif( res.getResortArea() != null ){\n\t\t\thotel.setResortArea( this.getResortArea( res.getResortArea() ) );\n\t\t}\n\t\tif( res.getDisplayRoomCategory() != null ){\n\t\t\thotel.setDisplayRoomCategory( this.getRoomCategory( res.getDisplayRoomCategory() ) );\n\t\t}\n\t\tif( (res.getPreselectedRooms() != null) && (res.getPreselectedRooms().size() > 0) ){\n\t\t\tList<RoomPrice> preselectedRooms = new ArrayList<RoomPrice>();\n\t\t\tfor(int i=0; i < res.getPreselectedRooms().size(); i++){\n\t\t\t\tif( res.getPreselectedRooms().get(i) != null ){\n\t\t\t\t\tpreselectedRooms.add( this.getRoomPrice( res.getPreselectedRooms().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setPreselectedRooms(preselectedRooms);\n\t\t}\n\t\tif( (res.getSelectedRooms() != null) && (res.getSelectedRooms().size() > 0) ){\n\t\t\tList<RoomPrice> selectedRooms = new ArrayList<RoomPrice>();\n\t\t\tfor(int i=0; i < res.getSelectedRooms().size(); i++){\n\t\t\t\tif( res.getSelectedRooms().get(i) != null ){\n\t\t\t\t\tselectedRooms.add( this.getRoomPrice( res.getSelectedRooms().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setSelectedRooms(selectedRooms);\n\t\t}\n\t\tif( (res.getRequestedDatesForAvailabilities() != null) && (res.getRequestedDatesForAvailabilities().size() > 0) ){\n\t\t\tList<RequestedDatesForAvailability> requestedDatesForAvailabilities = \n\t\t\t\t\t\t\tnew ArrayList<RequestedDatesForAvailability>();\n\t\t\tfor(int i=0; i < res.getRequestedDatesForAvailabilities().size(); i++){\n\t\t\t\tif( res.getRequestedDatesForAvailabilities().get(i) != null ){\n\t\t\t\t\trequestedDatesForAvailabilities.add( this.getRequestedDatesForAvailability( res.getRequestedDatesForAvailabilities().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setRequestedDatesForAvailabilities(requestedDatesForAvailabilities);\n\t\t}\n\t\tif( (res.getRoomCategories() != null) && (res.getRoomCategories().size() > 0) ){\n\t\t\tList<RoomCategory> roomCategories = new ArrayList<RoomCategory>();\n\t\t\tfor(int i=0; i < res.getRoomCategories().size(); i++){\n\t\t\t\tif( res.getRoomCategories().get(i) != null ){\n\t\t\t\t\troomCategories.add( this.getRoomCategory( res.getRoomCategories().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setRoomCategories(roomCategories);\n\t\t}\n\t\tif( (res.getVendorServices() != null) && (res.getVendorServices().size() > 0) ){\n\t\t\tList<VendorService> vendorServices = new ArrayList<VendorService>();\n\t\t\tfor(int i=0; i < res.getVendorServices().size(); i++){\n\t\t\t\tif( res.getVendorServices().get(i) != null ){\n\t\t\t\t\tvendorServices.add( this.getVendorService( res.getVendorServices().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setVendorServices(vendorServices);\n\t\t}\n\t\t\n\t\t//set cancellation policy\n\t\t\n\t\tif(res.getCancellationPolicy()!=null && res.getCancellationPolicy().size()>0)\n\t\t//if(res.getCancellationPolicy()==null)\n\t\t{\n\t\t\t\n\t\t\thotel.setCancellationPolicy(res.getCancellationPolicy());\n\t\t\n\t\t}\n\t\t\n\t\treturn hotel;\n\t}",
"public PlanoSaude create(long plano_id);",
"public void create(Pizza pizza){\n pizza.setID(counter++);\n pizzas.add(pizza);\n }",
"public void save(int reservationID, int customerId,String airline, int flightNumber, int HotelId, int carId,\n\t\t\tint numberOfReservedRooms, int numberOfReservedSuites, int numberOfReservedCars, int numberOfreservedSeats,\n\t\t\tint numNightsPerRooms, int numberNightPerSuites, int numDaysPerCars, int numSeats)\n\t\n\t{\n\t}"
]
| [
"0.6696896",
"0.6471638",
"0.6219385",
"0.6087694",
"0.6075578",
"0.6030887",
"0.5970459",
"0.59168696",
"0.5913048",
"0.5913048",
"0.5773375",
"0.5713795",
"0.5674828",
"0.5639386",
"0.56350064",
"0.5489617",
"0.5461243",
"0.54429775",
"0.5416073",
"0.5399359",
"0.53720087",
"0.536209",
"0.536209",
"0.5326977",
"0.5323368",
"0.530944",
"0.52793056",
"0.5269501",
"0.52675086",
"0.52461594",
"0.5244631",
"0.52438784",
"0.52438784",
"0.5239338",
"0.5238715",
"0.523735",
"0.522149",
"0.5210915",
"0.51965785",
"0.5188674",
"0.51410705",
"0.5108429",
"0.5095065",
"0.5090779",
"0.5080835",
"0.5070278",
"0.5069159",
"0.50674695",
"0.5065544",
"0.50442195",
"0.50421506",
"0.5042129",
"0.5029686",
"0.50242394",
"0.5023519",
"0.50149816",
"0.5004569",
"0.50043106",
"0.5003933",
"0.5001171",
"0.5000242",
"0.49921396",
"0.49916795",
"0.4987844",
"0.49865687",
"0.49838728",
"0.49794918",
"0.49695757",
"0.49672458",
"0.4964168",
"0.49577233",
"0.4955122",
"0.49491063",
"0.4941926",
"0.49327916",
"0.49314612",
"0.4917195",
"0.49124405",
"0.4894472",
"0.48918274",
"0.4886458",
"0.48857793",
"0.48857126",
"0.4878105",
"0.48760262",
"0.48754612",
"0.487039",
"0.48671693",
"0.4865309",
"0.48627594",
"0.4837305",
"0.48368654",
"0.48276126",
"0.482701",
"0.4819272",
"0.48110896",
"0.4797805",
"0.47937265",
"0.4792251",
"0.4792063"
]
| 0.83485925 | 0 |
Removes the hotel with the primary key from the database. Also notifies the appropriate model listeners. | public com.Hotel.model.Hotel remove(long hotelId)
throws com.Hotel.NoSuchHotelException,
com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void deleteHotel(String hotelId) {\n Optional<Hotel> optionalHotel = hotelRepository.findByHotelId(hotelId);\n Hotel hotel = optionalHotel.orElseThrow(() -> {\n logger.error(\"Hotel information not found | hotelId:{}\", hotelId);\n return new BookingServiceException(\"Hotel information not found | hotelId:\" + hotelId);\n });\n if (hotel.isDeleted()) {\n logger.info(\"Hotel is inactive | hotelId:{}\", hotelId);\n throw new BookingServiceException(\"Hotel is inactive | hotelId:\" + hotelId);\n }\n hotel.setDeleted(true);\n Date lastModifiedDate = new Date();\n hotel.setLastModifiedDate(lastModifiedDate);\n hotelRepository.save(hotel);\n\n List<Room> rooms = hotel.getRooms();\n if (rooms != null && rooms.size() > 0) {\n List<Room> roomList = rooms.stream()\n .filter(room -> !room.isDeleted())\n .peek(room -> {\n room.setDeleted(true);\n room.setLastModifiedDate(lastModifiedDate);\n })\n .collect(Collectors.toList());\n roomRepository.saveAll(roomList);\n }\n logger.info(\"Deleted hotel information successfully | hotelId:{}\", hotelId);\n }",
"public HashMap<Integer, Hotel> deleteHotel(Hotel hotel) {\n hotels.remove(hotel.getId());\n RoomsController roomsController = new RoomsController();\n roomsController.deleteRoomByHotel(hotel);\n roomsController.flush();\n return hotels;\n }",
"@RequestMapping(\"/hotel/delete/{id}\")\r\n public String deleteTrip(@PathVariable(\"id\") String hotelId) {\r\n Long idhotel = Long.parseLong(hotelId);\r\n this.hotel.removeById(idhotel);\r\n\r\n return \"redirect:/hotel/list\";\r\n }",
"@DeleteMapping(\"/{hotelId}\")\n public ResponseEntity<Void> deleteHotelWithId(@PathVariable Long hotelId){\n hotelService.deleteHotelById(hotelId);\n return new ResponseEntity<>(HttpStatus.OK);\n }",
"public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}",
"public void deletePromocion (Long id_p_Promocion_hotel){\n proveedorPromocionHotelPersistence.delete(id_p_Promocion_hotel);\n }",
"public void remove() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.delete(this);\n\t\tsession.getTransaction().commit();\n\t}",
"@Override\n\tpublic int deleteByPrimaryKey(String id) {\n\t\treturn siteReservoirInfoMapper.deleteByPrimaryKey(id);\n\t}",
"void deleteBookingById(BookingKey bookingKey);",
"@Override\n\tpublic boolean deleteHotelroom(int hotelID, int roomID) {\n\t\tString hotelroomId = String.valueOf(hotelID)\n\t\t\t\t+String.valueOf(roomID);\n\t\tif(map.get(hotelroomId)!=null) {\n\t\t\thotelroomDataHelper.deleteHotelroom(roomID, hotelID);;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public static void deleteKitchen(Integer id) {\n //Creating session\n Session session = SetupPersistence.getSession();\n //Searching the database for the object with the provided ID\n KitchenModel kitchen = session.find(KitchenModel.class, id);\n //Deleting the object that was found\n session.delete(kitchen);\n //Closing session\n SetupPersistence.closeSession(session);\n }",
"@Override\n public void removeFromDb() {\n }",
"public Builder clearHotelId() {\n \n hotelId_ = getDefaultInstance().getHotelId();\n onChanged();\n return this;\n }",
"private void deleteEmployeeBooking() {\n BookingModel bookingModel1 = new BookingModel();\n try {\n bookingModel1.deleteBooking(employeeID);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic void removeById(int id) {\n\t\tem.remove(em.find(Restaurant.class, id));\n\t}",
"public void delete() {\r\n\t\tCampLeaseDAO leaseDao = (CampLeaseDAO) getApplicationContext().getBean(\"leaseDaoBean\", CampLeaseDAO.class);\r\n\t\tleaseDao.delete(this);\r\n\t}",
"public void remove() {\n removed = true;\n if (room == null)\n return;\n room.removeEntity(this);\n }",
"public void removeByequip_id(long equip_id);",
"void remove(PK id);",
"@Override\n public Book removeBookById(int id) throws DaoException {\n DataBaseHelper helper = new DataBaseHelper();\n Book book = Book.newBuilder().build();\n try (Connection connection = SqlConnector.connect();\n PreparedStatement statementSelectById =\n helper.prepareStatementSelectById(connection, id);\n ResultSet resultSet = statementSelectById.executeQuery()) {\n while (resultSet.next()) {\n BookCreator bookCreator = new BookCreator();\n book = bookCreator.create(resultSet);\n resultSet.deleteRow();\n }\n if (book.getId() == 0) {\n throw new DaoException(\"There is no such book in warehouse!\");\n }\n } catch (SQLException e) {\n throw new DaoException(e);\n }\n return book;\n }",
"@Override\r\n\tpublic boolean deleteHotelArea(HotelArea hotelArea) {\n\t\thotelAreaDao.delete(hotelArea);\t\t\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic int deleteByPrimaryKey(String modelid) {\n\t\treturn equipmentSetvalMapper.deleteByPrimaryKey(modelid);\n\t}",
"@Override\n\tpublic void deletRow(HongXunWorkNum hongXunWorkNum) {\n\t\tgetHibernateTemplate().delete(hongXunWorkNum);\n\t}",
"public void delete() {\n \t\t try(Connection con = DB.sql2o.open()) {\n \t\t\t String sql = \"DELETE FROM sightings where id=:id\";\n\t\t\t con.createQuery(sql)\n\t\t\t.addParameter(\"id\", this.id)\n\t\t\t.executeUpdate();\n\n \t\t }\n \t }",
"public void delete(E model) {\n\t\tgetHibernateTemplate().delete(model);\r\n\t}",
"@Override\n public HotelResponseDTO deleteRoom(String hotelId, String roomId) {\n Optional<Hotel> optionalHotel = hotelRepository.findByHotelId(hotelId);\n Hotel hotel = optionalHotel.orElseThrow(() -> {\n logger.error(\"Hotel information not found | hotelId:{}\", hotelId);\n return new BookingServiceException(\"Hotel information not found | hotelId:\" + hotelId);\n });\n if (hotel.isDeleted()) {\n logger.info(\"Hotel is inactive | hotelId:{}\", hotelId);\n throw new BookingServiceException(\"Hotel is inactive | hotelId:\" + hotelId);\n }\n Optional<Room> optionalRoom = roomRepository.findByRoomIdAndHotel(roomId, hotel);\n Room room = optionalRoom.orElseThrow(() -> {\n logger.error(\"Hotel room information not found | hotelId:{},roomId:{}\", hotelId, roomId);\n return new BookingServiceException(\"Hotel room information not found | hotelId:\" + hotelId + \",roomId:\" + roomId);\n });\n if (room.isDeleted()) {\n logger.info(\"Hotel room is inactive | hotelId:{}\", hotelId);\n throw new BookingServiceException(\"Hotel room is inactive | hotelId:\" + hotelId);\n }\n room.setDeleted(true);\n Date lastModifiedDate = new Date();\n room.setLastModifiedDate(lastModifiedDate);\n roomRepository.save(room);\n logger.info(\"Deleted hotel room information successfully | hotelId:{},roomId:{}\", hotelId, roomId);\n return makeHotelResponseDTO(hotel);\n }",
"@Override\n\tpublic void eliminar(int id) {\n\t\tdao.deleteById(id);;\n\t}",
"void deletById(Integer id);",
"public void deleteRoom(Room room);",
"@Override\n\tpublic void delete(Long primaryKey) {\n\t\t\n\t}",
"public void removeListingById(int id) throws SQLException;",
"public void setHotelId(Integer hotelId) {\r\n this.hotelId = hotelId;\r\n }",
"public void _unlinkSupplier(ModelElement supplier1);",
"E remove(Id id);",
"public void delete(Long id) {\n log.debug(\"Request to delete HotelUser : {}\", id);\n hotelUserRepository.delete(id);\n }",
"public void setHotelId(Integer hotelId) {\n this.hotelId = hotelId;\n }",
"public void setHotelId(Integer hotelId) {\n this.hotelId = hotelId;\n }",
"@Override\n\tpublic void deletRow(HongXunWorkItem hongXunWorkItem) {\n\t\tgetHibernateTemplate().delete(hongXunWorkItem);\n\t}",
"void eliminar(PK id);",
"public boolean deleteHotel(long rowId) {\r\n\r\n return mDb.delete(DATABASE_TABLE, KEY_ROWID + \"=\" + rowId, null) > 0;\r\n }",
"public void delete(String book_id){\n\t\tmap.remove(book_id);\n\t\t\n\t}",
"public void deletar() {\n\t\tClienteDAO Clientedao = new ClienteDAO();\t\r\n\t\tClientedao.delete(this);\r\n\t\t\r\n\t\tnovoRegistro();\r\n\t\tnotifyObservers();\r\n\t}",
"void deleteLocationById(long id);",
"void removeById(Long id) throws DaoException;",
"public void eliminarTripulante(Long id);",
"public void removeFromLocation() {\n if (getAssignedLocation() != location) {\n this.location.fireEmployee(this);\n this.location = null;\n //bidirectional relationship!\n }\n System.out.println(\"We are firing an employee! \" + getName());\n }",
"public void remove() {\n int size = itinerary.size();\n if (size != 1) {\n \n // Removes last Flight in this Itinerary.\n Flight removedFlight = this.itinerary.remove(size - 1);\n \n // Gets the new last Flight in this Itinerary.\n Flight flight = this.itinerary.get(size - 2);\n \n // Updates all the relevant fields in this Itinerary.\n this.price -= removedFlight.getCost();\n this.arrivalDateTime = flight.getArrivalDateTime();\n this.destination = flight.getDestination();\n this.travelTime = arrivalDateTime.timeDiff(departDateTime);\n this.places.remove(size);\n }\n }",
"@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}",
"public void deleteOffice(Office office) {\n this.getSessionFactory().getCurrentSession().delete(office);\n\t\t//getSession().createQuery(\"delete from ProductLine where pid >=8\").executeUpdate();\n\t}",
"public void eliminar(Long Id){\r\n EspecieEntity productoEliminar=em.find(EspecieEntity.class, Id);\r\n em.remove(productoEliminar);\r\n }",
"@ApiMethod(name=\"beers.delete\")\n public Beer removeBeer(@Named(\"id\") Long id) {\n PersistenceManager mgr = getPersistenceManager();\n Beer beer = null;\n try {\n beer = mgr.getObjectById(Beer.class, id);\n mgr.deletePersistent(beer);\n } finally {\n mgr.close();\n }\n return beer;\n }",
"@Override\n\tpublic void delByPrimaryKey(int id) throws SQLException {\n\n\t}",
"public Integer getHotelId() {\r\n return hotelId;\r\n }",
"@Override\n public void remove() {\n deleteFromModel();\n deleteEdgeEndpoints();\n\n setDeleted(true);\n if (!isCached()) {\n HBaseEdge cachedEdge = (HBaseEdge) graph.findEdge(id, false);\n if (cachedEdge != null) cachedEdge.setDeleted(true);\n }\n }",
"public void deleteOfferById(Long offerToBeDeleted) {\n if (offerRepository.existsById(offerToBeDeleted)) {\n\n Optional<Offer> optionalOffer = offerRepository.findById(offerToBeDeleted);\n if (optionalOffer.isPresent()) {\n\n HashMap<Long, OfferBook> currentOrderBook = getOfferBooks();\n\n OfferBook offerBook = currentOrderBook.get(optionalOffer.get().getAsset().getAssetId());\n Offer offer = optionalOffer.get();\n if (offer.getType().equals(OfferType.BUY)) {\n offerBook.getBuyOffers().remove(offer);\n } else {\n offerBook.getSellOffers().remove(offer);\n }\n offerBook.getBuyOffers().remove(optionalOffer.get());\n offerBook.removeExistingOffer(offerToBeDeleted);\n\n offerRepository.deleteById(offerToBeDeleted);\n\n }\n\n } else {\n throw new NotFoundException(String.format(\"Could not find offer with id %d\", offerToBeDeleted));\n }\n\n }",
"int delRouteByIdSupplier(Long id_supplier);",
"int deleteByPrimaryKey(Integer locationId);",
"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}",
"int deleteByPrimaryKey(Long integralBookId);",
"void removeAirport(Long id);",
"@Override\n\tpublic void excluir(Long id) {\n\t\tdao.delete(id);\n\t}",
"@RequestMapping(value=\"/Infrastrecture/{id}\",method=RequestMethod.DELETE)\n\tpublic boolean supprimer(@PathVariable Long id){\n\t\tinfrastrectureRepository.delete(id);\n\t\treturn true;\n\t}",
"public void deleteItineraryItem(String key) {\n\t\tmEditor.remove(key);\n\t\tmEditor.commit();\n\t}",
"public void eliminar(Long id) throws AppException;",
"@Override\n\tpublic int dbRemove(MovementPK primarykey)\tthrows DAOSysException\t{\n\t\treturn dbRemove(primarykey, MovementDAO.DELETE_STM);\n\t}",
"public void delete(Room room) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tsession.delete(room);\n\t\tsession.flush();\n\t}",
"public void removeById(long id) {\r\n\t\tpersistenceManager.deletePersistent(this.getById(id));\r\n\t\t\r\n\t}",
"int deleteByPrimaryKey(Integer hId);",
"public com.Hotel.model.Hotel fetchByPrimaryKey(long hotelId)\n\t\tthrows com.liferay.portal.kernel.exception.SystemException;",
"public Integer getHotelId() {\n return hotelId;\n }",
"public Integer getHotelId() {\n return hotelId;\n }",
"public void setIdHotel(Integer idHotel) {\r\n this.idHotel = idHotel;\r\n }",
"int deleteByPrimaryKey(String registerId);",
"public void remove(java.lang.Object primaryKey)\n throws RemoveException, EJBException;",
"int deleteByPrimaryKey(String maperId);",
"public int getHotelId() {\n return hotelId;\n }",
"@Override\n\tpublic void removeLecture(int id) {\n\t\tSession session = this.sessionFactory.getCurrentSession();\n\t\tLecture l = (Lecture) session.load(Lecture.class, new Integer(id));\n\t\tif(null != l){\n\t\t\tsession.delete(l);\n\t\t}\n\t}",
"@Override\n\tpublic Candidate remove(Serializable primaryKey)\n\t\tthrows NoSuchCandidateException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tCandidate candidate = (Candidate)session.get(CandidateImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (candidate == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchCandidateException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(candidate);\n\t\t}\n\t\tcatch (NoSuchCandidateException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}",
"@Override\n\tpublic int delete(Long id) {\n\t\treturn floorDao.delete(id);\n\t}",
"public Builder clearHotelName() {\n \n hotelName_ = getDefaultInstance().getHotelName();\n onChanged();\n return this;\n }",
"@DELETE\n public void delete() {\n try {\n dao.delete(dao.retrieveById(id));\n } catch (EntityInUse eiu) {\n throw new WebApplicationException(WSUtils.buildError(400, EntityInUse.ERROR_MESSAGE));\n }\n }",
"@Override\n\tpublic void remove(Long id) throws ApplicationException {\n\n\t}",
"int deleteByExample(SrHotelRoomInfoExample example);",
"public void removeGuest(Guest guest) {\n guestList.remove(guest);\n storeData();\n }",
"void remove(Long id);",
"void remove(Long id);",
"public void removeByid_(long id_);",
"int delWayBillById(Long id_wayBill) throws WayBillNotFoundException;",
"int deleteByPrimaryKey(String goodsId);",
"@Override\n public EntityDealer remove(Serializable primaryKey)\n throws NoSuchEntityDealerException, SystemException {\n Session session = null;\n\n try {\n session = openSession();\n\n EntityDealer entityDealer = (EntityDealer) session.get(EntityDealerImpl.class,\n primaryKey);\n\n if (entityDealer == null) {\n if (_log.isWarnEnabled()) {\n _log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n }\n\n throw new NoSuchEntityDealerException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n primaryKey);\n }\n\n return remove(entityDealer);\n } catch (NoSuchEntityDealerException nsee) {\n throw nsee;\n } catch (Exception e) {\n throw processException(e);\n } finally {\n closeSession(session);\n }\n }",
"@RequestMapping(value = \"/Reservation/{reservation_reservationId}\", method = RequestMethod.DELETE)\n\t@ResponseBody\n\tpublic void deleteReservation(@PathVariable Integer reservation_reservationId) {\n\t\tReservation reservation = reservationDAO.findReservationByPrimaryKey(reservation_reservationId);\n\t\treservationService.deleteReservation(reservation);\n\t}",
"@Override\r\n\tpublic void delete(int id) {\n\t\tshipperDao.delete(id);\r\n\t}",
"int deleteByPrimaryKey(String industryId);",
"@Override\n\t@Transactional\n\tpublic void removeLecture(int id) {\n\t\tthis.lectureDao.removeLecture(id);\n\t}",
"@GET\n @Path(\"/removewl/{beerId}\")\n @Produces({MediaType.TEXT_XML, MediaType.APPLICATION_JSON , MediaType.APPLICATION_XML })\n public long removeBeerFromWishList( @PathParam(\"beerId\") Long beerId) {\n\t\t\n \t\n \t\thelper = new Helper();\n\t\tsoapService = helper.getSoapService();\n\t\tUser user = helper.getUserByUsername(username);\n Beer beer = soapService.readBeer(beerId);\n \n soapService.removeBeerToUser(user, beer);\n \n System.out.println(\"beer removed to wishlist...\"); \n \t\treturn beerId;\n \t\n \t\n }",
"int deleteByPrimaryKey(Long moepId);",
"public void deleteHostel(int id) {\n hostelRepository.deleteById(id);\n\n }",
"public void delete( final T model )\n\t{\n\t\tthis.dao.delete( model );\n\t}",
"public void removeVehicle() {\n\t\tmVehicles.removeFirst();\n\t}",
"@Override\n\tpublic Facility_Host remove(Serializable primaryKey)\n\t\tthrows NoSuchFacility_HostException, SystemException {\n\t\tSession session = null;\n\n\t\ttry {\n\t\t\tsession = openSession();\n\n\t\t\tFacility_Host facility_Host = (Facility_Host)session.get(Facility_HostImpl.class,\n\t\t\t\t\tprimaryKey);\n\n\t\t\tif (facility_Host == null) {\n\t\t\t\tif (_log.isWarnEnabled()) {\n\t\t\t\t\t_log.warn(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY + primaryKey);\n\t\t\t\t}\n\n\t\t\t\tthrow new NoSuchFacility_HostException(_NO_SUCH_ENTITY_WITH_PRIMARY_KEY +\n\t\t\t\t\tprimaryKey);\n\t\t\t}\n\n\t\t\treturn remove(facility_Host);\n\t\t}\n\t\tcatch (NoSuchFacility_HostException nsee) {\n\t\t\tthrow nsee;\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tthrow processException(e);\n\t\t}\n\t\tfinally {\n\t\t\tcloseSession(session);\n\t\t}\n\t}"
]
| [
"0.65709466",
"0.65599734",
"0.64431465",
"0.6061609",
"0.60309863",
"0.59544635",
"0.58961755",
"0.58899313",
"0.5886743",
"0.5848518",
"0.5767583",
"0.574281",
"0.57190156",
"0.5690825",
"0.56547666",
"0.5653426",
"0.56177866",
"0.5532382",
"0.5529763",
"0.55138355",
"0.5465948",
"0.54433703",
"0.54397756",
"0.54347664",
"0.54175997",
"0.529194",
"0.52789015",
"0.5273562",
"0.52721614",
"0.5260278",
"0.5246137",
"0.5240533",
"0.52383345",
"0.5238117",
"0.523204",
"0.5231405",
"0.5231405",
"0.52139",
"0.52136123",
"0.52132404",
"0.5205717",
"0.5191409",
"0.5177867",
"0.5171877",
"0.5163963",
"0.5163745",
"0.5158768",
"0.51562154",
"0.51523215",
"0.5150902",
"0.5138338",
"0.5135154",
"0.5131238",
"0.5126687",
"0.5118895",
"0.511875",
"0.51181984",
"0.5099116",
"0.50966406",
"0.5095458",
"0.5088932",
"0.5088019",
"0.5087324",
"0.50865877",
"0.50847006",
"0.5084297",
"0.5081863",
"0.50769854",
"0.50687355",
"0.5063961",
"0.5063961",
"0.50600135",
"0.5059777",
"0.50540286",
"0.50535524",
"0.5052266",
"0.50482047",
"0.50441664",
"0.5043392",
"0.5039714",
"0.50348085",
"0.5033704",
"0.50163853",
"0.50146794",
"0.50065774",
"0.50065774",
"0.5006407",
"0.5002646",
"0.50001514",
"0.49992406",
"0.4995146",
"0.49949166",
"0.49934354",
"0.49906805",
"0.49898034",
"0.49876553",
"0.49848434",
"0.498269",
"0.49771175",
"0.4974242"
]
| 0.56197757 | 16 |
Returns the hotel with the primary key or returns null if it could not be found. | public com.Hotel.model.Hotel fetchByPrimaryKey(long hotelId)
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic HotelDetails findHotel(int id) {\n\t\treturn bookingDao.findHotel(id);\n\t}",
"@Override\r\n\tpublic Hotel getById(int Id) {\n\t\tfor(Hotel Hotel : showHotelList() ) {\r\n\t\t\tif(Hotel.getHotelId()==Id)\r\n\t\t\t\t\treturn Hotel;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Integer getHotelId() {\n return hotelId;\n }",
"public Integer getHotelId() {\n return hotelId;\n }",
"public Integer getHotelId() {\r\n return hotelId;\r\n }",
"public Hotel getHotel() {\n return hotel;\n }",
"public Hotel getHotel() {\n return hotel;\n }",
"public int getHotelId() {\n return hotelId;\n }",
"public int getHotelID() {\n return hotelID;\n }",
"@GetMapping(value=\"/selecthotel/{id}\", produces=MediaType.APPLICATION_JSON_VALUE)\r\n\tpublic Hotel fetchRoomDetails(@PathVariable(\"id\") String hotelId){\r\n\t\tif(!hotelSer.existsById(hotelId)){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn hotelSer.findById(hotelId).get();\r\n\t}",
"public Integer getIdHotel() {\r\n return idHotel;\r\n }",
"@Override\n\tpublic HotelroomPo getHotelroom(int hotelID, int roomID) {\n\t\t\n\t\tString hotelroomId = String.valueOf(hotelID)\n\t\t\t\t+String.valueOf(roomID);\n\t\treturn map.get(hotelroomId);\n\t}",
"java.lang.String getHotelId();",
"public Hotel bestHotel() {\r\n \tArrayList<Hotel> hotels = hotelDAO.getHotelList();\r\n \tHotel bestHotel=hotels.get(0);\r\n \tfor (int i=0; i<hotels.size();i++) {\r\n \t\tif(averageBewertungHotel(bestHotel)<averageBewertungHotel(hotels.get(i))) {\r\n \t\t\tbestHotel=hotels.get(i);\r\n \t\t}\r\n \t}\r\n \treturn bestHotel;\r\n }",
"public String getHotelcode() {\n return hotelcode;\n }",
"public Cursor fetchHotel(long rowId) throws SQLException {\r\n\r\n Cursor mCursor =\r\n\r\n mDb.query(true, DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB}, KEY_ROWID + \"=\" + rowId, null,\r\n null, null, null, null);\r\n if (mCursor != null) {\r\n mCursor.moveToFirst();\r\n }\r\n return mCursor;\r\n\r\n }",
"public boolean checkHotelPresent(int hotelId);",
"public boolean validateHotel(int id) throws SQLException {\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\t\n\t\ttry {\n\t\t\tconn = JavaDatabaseConnection.getConnection();\n\t\t\t\n\t\t\tps = conn.prepareStatement(\"SELECT * FROM hotel WHERE hotelID=?\");\n\t\t\tps.setInt(1, id);\n\t\t\t\n\t\t\tfinal ResultSet results = ps.executeQuery();\n\t\t\treturn results.next();\n\t\t\t\n\t\t} finally {\n\t\t\tDBUtil.closeConnection(conn, ps);\n\t\t}\n\t}",
"SrHotelRoomInfo selectByPrimaryKey(Long id);",
"public java.lang.String getHotelId() {\n java.lang.Object ref = hotelId_;\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 hotelId_ = s;\n return s;\n }\n }",
"public void setHotelId(Integer hotelId) {\r\n this.hotelId = hotelId;\r\n }",
"public void setHotelId(Integer hotelId) {\n this.hotelId = hotelId;\n }",
"public void setHotelId(Integer hotelId) {\n this.hotelId = hotelId;\n }",
"public java.lang.String getHotelId() {\n java.lang.Object ref = hotelId_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n hotelId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Transactional(readOnly = true)\n public HotelUser findOne(Long id) {\n log.debug(\"Request to get HotelUser : {}\", id);\n HotelUser hotelUser = hotelUserRepository.findOne(id);\n return hotelUser;\n }",
"@Override\r\n\tpublic Room loadById(Long pId) throws SQLException {\r\n\t\tPreparedStatement stmt = null;\r\n\t\tResultSet rset = null;\r\n\t\tif (pId == null) {\r\n\t\t\tthrow new RuntimeException(\"loadById - NULL pID\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tstmt = mConnection.prepareStatement(\r\n\t\t\t\t\t\"SELECT ID,FLOOR_NBR,ROOM_NBR,BED_NBR,AVAILABLE_FOR_RENT, HOTEL_ID FROM HOTEL.ROOM WHERE ID=?\");\r\n\t\t\tstmt.setLong(1, pId);\r\n\t\t\trset = stmt.executeQuery();\r\n\t\t\tif (rset.next()) {\r\n\t\t\t\tRoom room = new Room();\r\n\t\t\t\troom.setId(rset.getLong(1));\r\n\t\t\t\troom.setFloor(rset.getInt(2));\r\n\t\t\t\troom.setNumber(rset.getString(3));\r\n\t\t\t\troom.setNumberOfBeds(rset.getInt(4));\r\n\t\t\t\troom.setAvailableForRent(rset.getBoolean(5));\r\n\t\t\t\t// cust.setAddress(mAddrDAO.loadById(rset.getLong(6)));\r\n\t\t\t\treturn room;\r\n\t\t\t} else {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t} finally {\r\n\t\t\tif (rset != null) {\r\n\t\t\t\trset.close();\r\n\t\t\t}\r\n\t\t\tif (stmt != null) {\r\n\t\t\t\tstmt.close();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public HotelCard searchHotel() {\n System.out.println(ANSI() + \"Here is your hotel card list:\" + ANSI_RESET);\n // Presentation of player's hotel card list\n for (HotelCard hc : hotel_list) {\n System.out.print(ANSI() + \"Hotel Name: \" + hc.getName() + ANSI_RESET);\n System.out.print(ANSI() + \", Hotel ID: \" + hc.getID() + ANSI_RESET);\n System.out.println(ANSI() + \", Hotel Ranking: \" + hc.getRank() + ANSI_RESET);\n }\n System.out.println(ANSI() + \"Please type the id of the hotel you choose\" + ANSI_RESET);\n boolean answer = false;\n while (answer == false) {\n Scanner s = new Scanner(System.in);\n String str = s.nextLine();\n int ID;\n try { \n ID = Integer.parseInt(str);\n // Search for the hotel card with user's given ID \n for (HotelCard hc : hotel_list) \n if (hc.getID() == ID) return hc; \n System.out.println(ANSI() + \"Please type a valid Hotel ID from the above Hotels shown\" + ANSI_RESET); \n } catch (Exception e) {\n System.out.println(ANSI() + \"Please type a valid ID\" + ANSI_RESET);\n }\n }\n // Junk \n return null;\n }",
"@GetMapping(\"/{hotelId}\")\n public ResponseEntity<HotelResource> findHotelById(@PathVariable Long hotelId){\n //TODO Add HATEOAS links\n return new ResponseEntity<>(\n hotelService.findHotelById(hotelId), HttpStatus.OK\n );\n }",
"public com.google.protobuf.ByteString\n getHotelIdBytes() {\n java.lang.Object ref = hotelId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hotelId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getHotelIdBytes() {\n java.lang.Object ref = hotelId_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hotelId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Hotel getHotel(com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel res ){\n\t\tHotel hotel = new Hotel();\n\t\t\n\t\t//set the gdsHotelCode\n\t\thotel.setGdsHotelCode(res.getGdsHotelCode());\n\t\thotel.setVendorHotelCode(res.getVendorHotelCode());\n\t\thotel.setHotelCode( res.getHotelCode() );\n\t\thotel.setHotelChain( res.getHotelChain() );\n\t\thotel.setHotelName( res.getHotelName() );\n\t\thotel.setAppleRating( res.getAppleRating() );\n\t\thotel.setCurrency( res.getCurrency() );\n\t\thotel.setHotelCityCode( res.getHotelCityCode() );\n\t\thotel.setOriginLocation( res.getOriginLocation() );\n\t\thotel.setNoOfNights( res.getNoOfNights() ); \n\t\thotel.setHbsiPNR(res.getHbsiPNRNo());\n\t\thotel.setHBSI(res.isIsHBSi()!=null?res.isIsHBSi():false);\n\n\t\tif( res.getHotelId() != null ){\n\t\t\thotel.setHotelId( res.getHotelId().intValue() );\n\t\t}\n\t\tif( res.getNoOfRequestedRooms() != null ){\n\t\t\thotel.setNoOfRequestedRooms( res.getNoOfRequestedRooms().intValue() );\n\t\t}\n\t\tif( res.getNoOfRooms() != null ){\n\t\t\thotel.setNoOfRooms( res.getNoOfRooms().intValue() );\n\t\t}\n\t\tif( res.getMinRate() != null ){\n\t\t\thotel.setMinRate( res.getMinRate().doubleValue() );\n\t\t}\n\t\tif( res.isAppleSpecialsAndSavers() != null ){\n\t\t\thotel.setAppleSpecialsAndSavers( res.isAppleSpecialsAndSavers().booleanValue() );\n\t\t}\n\t\tif( res.isRiskHotel() != null ){\n\t\t\thotel.setRiskHotel( res.isRiskHotel().booleanValue() );\n\t\t}\n\t\tif( res.getCheckInDate() != null ){\n\t\t\thotel.setCheckInDate( this.getDate( res.getCheckInDate() ) );\n\t\t}\n\t\tif( res.getCheckOutDate() != null ){\n\t\t\thotel.setCheckOutDate( this.getDate( res.getCheckOutDate() ) );\n\t\t}\n\t\tif( res.getVendor() != null ){\n\t\t\thotel.setVendor( this.getVendor( res.getVendor()) );\n\t\t}\n\t\tif( res.getOccupancy() != null ){\n\t\t\thotel.setOccupancy( this.getOccupancy( res.getOccupancy() ) );\n\t\t}\n\t\tif( res.getResortArea() != null ){\n\t\t\thotel.setResortArea( this.getResortArea( res.getResortArea() ) );\n\t\t}\n\t\tif( res.getDisplayRoomCategory() != null ){\n\t\t\thotel.setDisplayRoomCategory( this.getRoomCategory( res.getDisplayRoomCategory() ) );\n\t\t}\n\t\tif( (res.getPreselectedRooms() != null) && (res.getPreselectedRooms().size() > 0) ){\n\t\t\tList<RoomPrice> preselectedRooms = new ArrayList<RoomPrice>();\n\t\t\tfor(int i=0; i < res.getPreselectedRooms().size(); i++){\n\t\t\t\tif( res.getPreselectedRooms().get(i) != null ){\n\t\t\t\t\tpreselectedRooms.add( this.getRoomPrice( res.getPreselectedRooms().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setPreselectedRooms(preselectedRooms);\n\t\t}\n\t\tif( (res.getSelectedRooms() != null) && (res.getSelectedRooms().size() > 0) ){\n\t\t\tList<RoomPrice> selectedRooms = new ArrayList<RoomPrice>();\n\t\t\tfor(int i=0; i < res.getSelectedRooms().size(); i++){\n\t\t\t\tif( res.getSelectedRooms().get(i) != null ){\n\t\t\t\t\tselectedRooms.add( this.getRoomPrice( res.getSelectedRooms().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setSelectedRooms(selectedRooms);\n\t\t}\n\t\tif( (res.getRequestedDatesForAvailabilities() != null) && (res.getRequestedDatesForAvailabilities().size() > 0) ){\n\t\t\tList<RequestedDatesForAvailability> requestedDatesForAvailabilities = \n\t\t\t\t\t\t\tnew ArrayList<RequestedDatesForAvailability>();\n\t\t\tfor(int i=0; i < res.getRequestedDatesForAvailabilities().size(); i++){\n\t\t\t\tif( res.getRequestedDatesForAvailabilities().get(i) != null ){\n\t\t\t\t\trequestedDatesForAvailabilities.add( this.getRequestedDatesForAvailability( res.getRequestedDatesForAvailabilities().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setRequestedDatesForAvailabilities(requestedDatesForAvailabilities);\n\t\t}\n\t\tif( (res.getRoomCategories() != null) && (res.getRoomCategories().size() > 0) ){\n\t\t\tList<RoomCategory> roomCategories = new ArrayList<RoomCategory>();\n\t\t\tfor(int i=0; i < res.getRoomCategories().size(); i++){\n\t\t\t\tif( res.getRoomCategories().get(i) != null ){\n\t\t\t\t\troomCategories.add( this.getRoomCategory( res.getRoomCategories().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setRoomCategories(roomCategories);\n\t\t}\n\t\tif( (res.getVendorServices() != null) && (res.getVendorServices().size() > 0) ){\n\t\t\tList<VendorService> vendorServices = new ArrayList<VendorService>();\n\t\t\tfor(int i=0; i < res.getVendorServices().size(); i++){\n\t\t\t\tif( res.getVendorServices().get(i) != null ){\n\t\t\t\t\tvendorServices.add( this.getVendorService( res.getVendorServices().get(i) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t\thotel.setVendorServices(vendorServices);\n\t\t}\n\t\t\n\t\t//set cancellation policy\n\t\t\n\t\tif(res.getCancellationPolicy()!=null && res.getCancellationPolicy().size()>0)\n\t\t//if(res.getCancellationPolicy()==null)\n\t\t{\n\t\t\t\n\t\t\thotel.setCancellationPolicy(res.getCancellationPolicy());\n\t\t\n\t\t}\n\t\t\n\t\treturn hotel;\n\t}",
"public Guest getGuest(int guest_ID) {\n for (Guest guest : guestList) {\n if (guest.getGuest_ID() == guest_ID)\n return guest;\n }\n return null;\n }",
"public String getClHotelId() {\r\n\t\treturn clHotelId;\r\n\t}",
"public String getClHotelId() {\r\n return clHotelId;\r\n }",
"public static KitchenModel getKitchenById(Integer id) {\n //Creating session\n Session session = SetupPersistence.getSession();\n //Searching the database for the object with the provided ID\n KitchenModel kitchen = session.find(KitchenModel.class, id);\n //Closing session\n SetupPersistence.closeSession(session);\n //Returning the found object\n return kitchen;\n }",
"public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }",
"public void setHotel(Hotel hotel) {\n this.hotel = hotel;\n }",
"Booking getBookingById(BookingKey bookingKey);",
"public Away getSingleAway(Integer id) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from Away as away where away.awayId = ?\",\n new Object[]{id},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (Away) results.get(0);\n }\n\n }",
"public E findOne(ID primaryKey) {\n if ((primaryKey != null) && getDao().existsById(primaryKey)) {\n return getOne(primaryKey);\n }\n\n return null;\n }",
"public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }",
"@Override\n\tpublic List<HotelroomPo> getHotelroomByHotelID(int hotelID) {\n\t\t\n\t\tList<HotelroomPo> rooms = new ArrayList<HotelroomPo>();\n\t\tIterator<Entry<String, HotelroomPo>> iterator = map.entrySet().iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tEntry<String, HotelroomPo> entry = iterator.next();\n\t\t\tHotelroomPo hotelroomPo = entry.getValue();\n\t\t\t\n\t\t\tif(hotelroomPo.getHotelID()==hotelID)\n\t\t\t\trooms.add(hotelroomPo);\n\t\t}\n\t\treturn rooms;\n\t}",
"RiceCooker getById(long id);",
"public Equipment findEquipmentById(int id){\n Optional<Equipment> equipment = equipmentRepository.findById(id);\n return equipment.orElse(null);\n }",
"public String getSHotelID() {\n return sHotelID;\n }",
"@Override\n\tpublic Equipo get(Long id)\n\t{\n\t\tOptional<Equipo> entity = equipoRepository.findById(id);\n\t\treturn entity.orElse(null);\n\t}",
"private SiteReservation findById(Integer id){\n SiteReservation reservation;\n try {\n reservation = repo.findById(id).get();\n } catch (NoSuchElementException e){\n throw new ReservationNotFoundException(id);\n }\n return reservation;\n }",
"public java.lang.String getHotelAddress() {\n java.lang.Object ref = hotelAddress_;\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 hotelAddress_ = s;\n return s;\n }\n }",
"public String getHotelName() {\n\t\treturn this.name;\n\t}",
"public String getHotelAddress() {\n\t\treturn this.address;\n\t}",
"public static Location find(int id) {\n try (DatabaseContext db = new DatabaseContext()) {\n Object[] obj = db.fetchFirst(\"SELECT id, street, zipCode, city, amountParkingSpaces FROM locations WHERE id = ?\", Integer.toString(id));\n Location location = new Location();\n location.setId((int) obj[0]);\n location.setStreet(obj[1].toString());\n location.setZipCode(obj[2].toString());\n location.setCity(obj[3].toString());\n location.setParkingSpaces((int) obj[4]);\n return location;\n } catch (Exception ex) {\n log.error(ex, \"Could not connect to database.\");\n }\n return null;\n }",
"public java.lang.String getHotelAddress() {\n java.lang.Object ref = hotelAddress_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n hotelAddress_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.hps.july.trailcom.beans.HopAccessBean getHopid() throws java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException {\n instantiateEJB();\n com.hps.july.trailcom.beans.Hop localEJBRef = ejbRef().getHopid();\n if ( localEJBRef != null )\n return new com.hps.july.trailcom.beans.HopAccessBean(localEJBRef);\n else\n return null;\n }",
"public Booking findOne(int id) {\n String sql = getJoinedQuery() + \" WHERE b.id = ?\";\n List<Booking> bookings = jdbc.query(sql, new Object[] {id}, resultSetExtractor);\n return bookings.get(0);\n }",
"Optional<Computer> findOne(long idToSelect);",
"public ProveedorPromocionHotelEntity getPromocion(Long id_p_Promocion_hotel){\n ProveedorPromocionHotelEntity proveedorPromocionHotelEntity = proveedorPromocionHotelPersistence.find(id_p_Promocion_hotel);\n if(proveedorPromocionHotelEntity == null){\n throw new IllegalArgumentException(\"La promocion solicitada no existe\");\n }\n return proveedorPromocionHotelEntity;\n }",
"@Nullable\n public static BookData getBook(ResourceLocation id) {\n return books.getOrDefault(id, null);\n }",
"HotelType selectByPrimaryKey(Integer typeiId);",
"@Override\r\n\tpublic Employee findOne(Long arg0) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Reservation findById(Integer id) {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<Hotel> listar() {\n\t\treturn null;\n\t}",
"public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel getHotelReq(Hotel hotel){com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel hotelReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.hotel.v1.Hotel();\n\t\t\n\t\t//set the hotelGdsCode\n\t\thotelReq.setGdsHotelCode(hotel.getGdsHotelCode());\n\t\thotelReq.setVendorHotelCode(hotel.getVendorHotelCode());\n\t\thotelReq.setHotelId( new Integer( hotel.getHotelId() ) );\n\t\thotelReq.setHotelCode( hotel.getHotelCode() );\n\t\thotelReq.setHotelChain( hotel.getHotelChain() );\n\t\thotelReq.setHotelName( hotel.getHotelName() );\n\t\thotelReq.setNoOfRooms( new Integer( hotel.getNoOfRooms() ) );\n\t\thotelReq.setAppleRating( hotel.getAppleRating() );\n\t\thotelReq.setHbsiPNRNo(hotel.getHbsiPNR());\n\t\thotelReq.setIsHBSi(hotel.isHBSI());\n\t\tif( hotel.getCheckInDate() != null ){\n\t\t\thotelReq.setCheckInDate( this.getDate( hotel.getCheckInDate() ) );\n\t\t}\n\t\tif( hotel.getCheckOutDate() != null ){\n\t\t\thotelReq.setCheckOutDate( this.getDate( hotel.getCheckOutDate() ) );\n\t\t}\n\t\thotelReq.setMinRate( new Double(hotel.getMinRate()) );\n\t\thotelReq.setCurrency( hotel.getCurrency() );\n\t\thotelReq.setHotelCityCode( hotel.getHotelCityCode() );\n\t\thotelReq.setOriginLocation( hotel.getOriginLocation() );\n\t\thotelReq.setRiskHotel( new Boolean( hotel.isRiskHotel() ) );\n\t\thotelReq.setNoOfNights( hotel.getNoOfNights() );\n\t\thotelReq.setAppleSpecialsAndSavers( new Boolean( hotel.isAppleSpecialsAndSavers() ) ); \n\t\thotelReq.setNoOfRequestedRooms( new Integer( hotel.getNoOfRequestedRooms() ) );\n\t\tif( hotel.getOccupancy() != null ){\n\t\t\thotelReq.setOccupancy( this.getOccupancyReq( hotel.getOccupancy() ) );\n\t\t}\n\t\tif( hotel.getResortArea() != null ){\n\t\t\thotelReq.setResortArea( this.getResortAreaReq( hotel.getResortArea() ) );\n\t\t}\n\t\tif( hotel.getDisplayRoomCategory() != null ){\n\t\t\thotelReq.setDisplayRoomCategory( this.getRoomCategoryReq( hotel.getDisplayRoomCategory() ));\n\t\t}\n\t\tif( (hotel.getSelectedRooms() != null) && (hotel.getSelectedRooms().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getSelectedRooms().size(); i++){\n\t\t\t\thotelReq.getSelectedRooms().add( this.getRoomPriceReq( hotel.getSelectedRooms().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getPreselectedRooms() != null) && (hotel.getPreselectedRooms().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getPreselectedRooms().size(); i++){\n\t\t\t\thotelReq.getPreselectedRooms().add( this.getRoomPriceReq( hotel.getPreselectedRooms().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getRoomCategories() != null) && (hotel.getRoomCategories().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getRoomCategories().size(); i++){\n\t\t\t\thotelReq.getRoomCategories().add( this.getRoomCategoryReq( hotel.getRoomCategories().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getVendorServices() != null) && (hotel.getVendorServices().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getVendorServices().size(); i++){\n\t\t\t\thotelReq.getVendorServices().add( this.getVendorServiceReq( hotel.getVendorServices().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (hotel.getRequestedDatesForAvailabilities() != null) && (hotel.getRequestedDatesForAvailabilities().size() > 0) ){\n\t\t\tfor(int i=0; i < hotel.getRequestedDatesForAvailabilities().size(); i++){\n\t\t\t\thotelReq.getRequestedDatesForAvailabilities().add( \n\t\t\t\t\t\tthis.getRequestedDatesForAvailabilityReq( hotel.getRequestedDatesForAvailabilities().get(i) ) );\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (hotel.getVendor() != null) {\n//\t\t\thotelReq.getVendor().setCity(hotel.getVendor().getCity()); \n\t\t\thotelReq.setVendor(this.getVendorReq(hotel.getVendor()));\n\t\t}\n\t\t\n\t\t//setting search criteria\n\t\t\n\t\tif(hotel.getSearchCriteria()!=null)\n\t\t{\n\t\t\thotelReq.setSearchCriteria(this.getSearchCriteriaReq(hotel.getSearchCriteria()));\n\t\t}\n\t\t\n\t\t//Set the Cancellation Policy\n\t\t\n\t\tif(hotel.getCancellationPolicy()!=null)\n\t\t{\n\t\t\thotelReq.getCancellationPolicy().addAll(hotel.getCancellationPolicy());\n\t\t}\n\t\t\n\t\treturn hotelReq;\n\t}",
"@Override\r\n\tpublic Etudiant GetById(int id) throws SQLException {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Book findById(Long id) {\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Estates findOne(Integer arg0) {\n\t\treturn null;\r\n\t}",
"Chofer findOne(Long id);",
"@Override\r\n\tpublic Plate findById(long id) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Basket findOne(Integer arg0) {\n\t\treturn null;\n\t}",
"public Location getSingleLocationByLocId(Integer locId) {\n\n /*\n * Use the ConnectionFactory to retrieve an open\n * Hibernate Session.\n *\n */\n Session session = ConnectionFactory.getInstance().getSession();\n List results = null;\n try {\n\n results = session.find(\"from Location as location where location.locationId = ?\",\n new Object[]{locId},\n new Type[]{Hibernate.INTEGER});\n\n\n\n } /*\n * If the object is not found, i.e., no Item exists with the\n * requested id, we want the method to return null rather\n * than throwing an Exception.\n *\n */ catch (ObjectNotFoundException onfe) {\n return null;\n } catch (HibernateException e) {\n /*\n * All Hibernate Exceptions are transformed into an unchecked\n * RuntimeException. This will have the effect of causing the\n * user's request to return an error.\n *\n */\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n } /*\n * Regardless of whether the above processing resulted in an Exception\n * or proceeded normally, we want to close the Hibernate session. When\n * closing the session, we must allow for the possibility of a Hibernate\n * Exception.\n *\n */ finally {\n if (session != null) {\n try {\n session.close();\n } catch (HibernateException e) {\n System.err.println(\"Hibernate Exception\" + e.getMessage());\n throw new RuntimeException(e);\n }\n\n }\n }\n if (results.isEmpty()) {\n return null;\n } else {\n return (Location) results.get(0);\n }\n\n }",
"public void setIdHotel(Integer idHotel) {\r\n this.idHotel = idHotel;\r\n }",
"private static AvailEntry getAvailEntry(String key) {\n AvailEntry ae = null;\n Map lcache = null;\n if (GET_AVAILABLE_CACHE != null) {\n lcache = (Map) GET_AVAILABLE_CACHE.get();\n if (lcache != null) {\n ae = (AvailEntry) lcache.get(key);\n }\n }\n\n if (ae == null) {\n ae = new AvailEntry(key);\n if (lcache == null) {\n lcache = new HashMap();\n lcache.put(key, ae);\n GET_AVAILABLE_CACHE = new SoftReference(lcache);\n } else {\n lcache.put(key, ae);\n }\n }\n\n return ae;\n }",
"Livre findOne(Long id);",
"public com.google.protobuf.ByteString\n getHotelAddressBytes() {\n java.lang.Object ref = hotelAddress_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hotelAddress_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n\tpublic Pessoa findOne(Integer arg0) {\n\t\treturn null;\n\t}",
"@Override\n public HotelResponseDTO getHotelDetails(String hotelId) {\n Optional<Hotel> optionalHotel = hotelRepository.findByHotelId(hotelId);\n Hotel hotel = optionalHotel.orElseThrow(() -> {\n logger.error(\"Hotel information not found | hotelId:{}\", hotelId);\n return new BookingServiceException(\"Hotel information not found | hotelId:\" + hotelId);\n });\n if (hotel.isDeleted()) {\n logger.info(\"Hotel is inactive | hotelId:{}\", hotelId);\n throw new BookingServiceException(\"Hotel is inactive | hotelId:\" + hotelId);\n }\n logger.info(\"Fetched hotel information successfully | hotelId:{}\", hotelId);\n return makeHotelResponseDTO(hotel);\n }",
"public SupplyPO get(Integer pk)\r\n\t{\r\n\t\ttry{\r\n\t\t\r\n\t\t\tSupplyDAO dao = new SupplyDAO();\r\n\t\t\treturn (SupplyPO)dao.getObject(SupplyPO.class, pk);\r\n\t\t\t\r\n\t\t}catch (Exception e){\r\n\t\t\r\n\t\t\tlog.error(e.toString());\r\n\t\t\treturn null;\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public com.google.protobuf.ByteString\n getHotelAddressBytes() {\n java.lang.Object ref = hotelAddress_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n hotelAddress_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Object lookup(String id) {\n return null;\n }",
"@Override\n public Lekar findOne(Long id) {\n return lekarRepozitorijum.getOne(id);\n }",
"public java.lang.String getHotelName() {\n java.lang.Object ref = hotelName_;\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 hotelName_ = s;\n return s;\n }\n }",
"@Override\n\tpublic Eleve findById(int id) {\n\t\treturn map.get(id);\n\t}",
"public java.lang.String getHotelName() {\n java.lang.Object ref = hotelName_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n hotelName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getHotness(long l) throws SQLException {\n\t\tString[] columns = new String[] { KEY_ROWID, KEY_NAME, KEY_HOTNESS };\n\t\tCursor c = ourDatabase.query(DATABASE_TABLE, columns, KEY_ROWID + \"=\"\n\t\t\t\t+ l, null, null, null, null);\n\t\tif (c != null) {\n\t\t\tc.moveToFirst();\n\t\t\tString hotness = c.getString(2);\n\t\t\treturn hotness;\n\t\t}\n\t\treturn null;\n\t}",
"@Transactional\r\n\tpublic Room getRoom(Long id) {\r\n\t\tOptional<Room> o= this.roomRepository.findById(id);\r\n\t\treturn o.orElse(null);\r\n\t}",
"public com.Hotel.model.Hotel create(long hotelId);",
"public static Monster getNearbyMonster() {\n String monsterId = checkMonster(currentBoard, hero); //Obtain id of monster\n if (monsterId != null) { //If monster exists in front of the player\n int length = currentLevelScreen.getMonstersList().size();\n for (int i = 0; i < length; i++) { //Look for monster object using id in ArrayList\n Monster monster = currentLevelScreen.getMonstersList().get(i);\n if (monsterId.equals(monster.getId())) { //If found\n return monster;\n }\n }\n }\n return null;\n }",
"public Product lookupProduct(int productId) {\n for( Product product : allProducts ) {\n if(product.getId() == productId) {\n return product;\n }\n }\n return null;\n }",
"public HashMap<Integer, Hotel> addHotel(Hotel hotel) {\n hotels.put(hotel.getId(), hotel);\n return hotels;\n }",
"public Book getBook(int bookID) throws SQLException {\n if (books.getBook(bookID)!=null){\n return books.getBook(bookID);}\n else\n return null;\n }",
"public Restaurant getRestaurant(Long id) {\n\t\treturn restaurantRepository.findOne(id);\n\t}",
"public ArrayList<Hotel> getCustomerHotels(Integer customerId);",
"public Product lookupProduct(int productId) {\n for(Product product : allProducts) {\n if(product.getId() == productId) {\n return product;\n }\n }\n \n return null;\n }",
"public Room getOne(Room room) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\treturn session.get(Room.class, room.getId());\n\t}",
"@Override\n\tpublic Reservation getById(Long id) {\n\t\treturn reservationRepository.findById(id).get();\n\t}",
"public HashMap<Integer, Hotel> deleteHotel(Hotel hotel) {\n hotels.remove(hotel.getId());\n RoomsController roomsController = new RoomsController();\n roomsController.deleteRoomByHotel(hotel);\n roomsController.flush();\n return hotels;\n }",
"E getById(long id);",
"@Transactional(readOnly = true) \n public Heater findOne(Long id) {\n log.debug(\"Request to get Heater : {}\", id);\n Heater heater = heaterRepository.findOne(id);\n return heater;\n }",
"@Override\n\tpublic BikeAdvert getBikeAdvert(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t//now retrive /read from db using the primary key\n\t\tBikeAdvert theBikeAdvert = currentSession.get(BikeAdvert.class,theId);\n\t\t\n\t\treturn theBikeAdvert;\n\t}",
"@Override\r\n\tpublic ReservaBean obtienePorPK(int id) throws Exception {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Food getFoodById(int id) {\n\t\tString sql=\"select * from food where id=?\";\r\n\t\tList<Food> list=(List<Food>) BaseDao.select(sql, Food.class,id);\r\n\t\tif(list.size()>0) {\r\n\t\t\treturn list.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}"
]
| [
"0.7006675",
"0.69968206",
"0.6843682",
"0.6843682",
"0.6836689",
"0.67394775",
"0.67394775",
"0.67177373",
"0.6523632",
"0.6272163",
"0.62078774",
"0.6177289",
"0.61589056",
"0.589762",
"0.5890599",
"0.5888801",
"0.5836777",
"0.5834935",
"0.5826656",
"0.5754054",
"0.5748442",
"0.5739077",
"0.5739077",
"0.57386416",
"0.57188296",
"0.56908035",
"0.5684393",
"0.5673972",
"0.5638017",
"0.56238306",
"0.5554261",
"0.5553497",
"0.55151427",
"0.548623",
"0.5462928",
"0.5406485",
"0.5406485",
"0.5388741",
"0.53685695",
"0.5360208",
"0.53408074",
"0.529718",
"0.52920157",
"0.52895415",
"0.525606",
"0.5239026",
"0.52319616",
"0.521559",
"0.5207221",
"0.5197506",
"0.5172854",
"0.5165185",
"0.51630807",
"0.5148429",
"0.51422614",
"0.5135374",
"0.51293284",
"0.5113632",
"0.5100749",
"0.50888693",
"0.50876474",
"0.5081989",
"0.5062723",
"0.50610465",
"0.50580585",
"0.50561893",
"0.50548846",
"0.50521356",
"0.5050812",
"0.5043729",
"0.50409514",
"0.5037381",
"0.50329536",
"0.5031886",
"0.5031789",
"0.5030456",
"0.50287956",
"0.502314",
"0.5022251",
"0.5021285",
"0.5020575",
"0.5013208",
"0.50097156",
"0.50063235",
"0.500246",
"0.49988008",
"0.49979886",
"0.49969307",
"0.49964988",
"0.49953815",
"0.49851227",
"0.4977705",
"0.4976264",
"0.4975599",
"0.49749273",
"0.4966048",
"0.49573845",
"0.4940882",
"0.49392453",
"0.49385414"
]
| 0.675392 | 5 |
Returns all the hotels. | public java.util.List<com.Hotel.model.Hotel> findAll()
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic List<Hotel> getAllHotels() {\n\t\treturn showHotelList();\r\n\t}",
"public List<Hotel> getAvailableHotels(){\n return databaseManager.findAvailableHotels();\n }",
"public Cursor fetchAllHotels() {\r\n\r\n return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_TYPE,\r\n KEY_NAME, KEY_DESC, KEY_ADDR, KEY_MINS, KEY_RATE, KEY_PHONE, KEY_WEB }, null, null, null, null, null, null);\r\n }",
"public List<String> getHotels() {\n\t\t// FILL IN CODE\n\t\tlock.lockRead();\n\t\ttry{\n\t\t\tList<String> hotelIds = new ArrayList<>();\n\t\t\tif(hotelIds != null){\n\t\t\t\thotelIds = new ArrayList<String>(hotelMap.keySet());\n\t\t\t}\n\t\t\treturn hotelIds;\n\t\t}\n\t\tfinally{\n\t\t\tlock.unlockRead();\n\t\t}\n\t}",
"public void showHotels() {\n System.out.println(\"-----Hotels: ------\");\n hotelsService.getHotels().forEach(System.out::println);\n }",
"@Override\n\tpublic List<Hotel> listar() {\n\t\treturn null;\n\t}",
"public void loadHotels();",
"public Vector<HotelInfo> getAllHotels(){\n Session session=null;\n List result=null;\n Vector<HotelInfo> hotelInfos = null;\n try\n {\n session= HibernateUtil.getSessionFactory().getCurrentSession();\n session.beginTransaction();\n result=session.createQuery(\"from Hotel\").list();\n System.out.println(\"Successfully return hotels from database\");\n session.getTransaction().commit();\n hotelInfos= new Vector<HotelInfo>();\n for (int i = 0; i < result.size(); i++)\n {\n HotelInfo myHotel=new HotelInfo();\n myHotel.setHotelId(((Hotel)result.get(i)).getHotelId());\n myHotel.setName(((Hotel)result.get(i)).getName());\n myHotel.setUsername((((Hotel)result.get(i)).getUsername()));\n myHotel.setPassword((((Hotel)result.get(i)).getPassword()));\n myHotel.setIpaddress((((Hotel)result.get(i)).getIpaddress()));\n myHotel.setPort((((Hotel)result.get(i)).getPort()));\n myHotel.setContextpath((((Hotel)result.get(i)).getContextPath()));\n hotelInfos.add(myHotel);\n }\n }\n catch(Exception e)\n {\n System.out.println(e.getMessage());\n }\n return hotelInfos;\n }",
"@GetMapping\n public ResponseEntity<Resources<HotelResource>> getAllHotels(){\n return new ResponseEntity<>(\n hotelService.findAllHotels(), HttpStatus.OK\n );\n }",
"public List<Product> findHot() {\n\t\t\treturn productDao.findHot();\n\t\t}",
"public Hotel getHotel() {\n return hotel;\n }",
"public Hotel getHotel() {\n return hotel;\n }",
"public List<Tour> getHotTours() {\n return tourRepository.findHotTours();\n }",
"public List<Goods> listByhot() {\n\t\treturn sm.selectList(\"com.huyu.entity.Goods.listByhot\");\n\t}",
"@Override\r\n\tpublic List<Product> findHots() throws Exception {\n\t\treturn null;\r\n\t}",
"public List<Pokemon> showAllPokemon() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Pokemon> allPokemon = em.createQuery(\"SELECT p FROM Pokemon p\").getResultList();\r\n\t\treturn allPokemon;\r\n\t}",
"public ArrayList<Hotel> getCustomerHotels(Integer customerId);",
"public List<Equipment> findAllEquipment() {\n Iterable<Equipment> itEquipment = equipmentRepository.findAll();\n List<Equipment> equipment = new ArrayList<>();\n\n itEquipment.forEach(equipment::add);\n\n return equipment;\n }",
"@Transactional(readOnly = true) \n public List<Heater> findAll() {\n log.debug(\"Request to get all Heaters\");\n List<Heater> result = heaterRepository.findAll();\n return result;\n }",
"@Override\n\tpublic List<Equipo> getAll()\n\t{\n\t\treturn (ArrayList<Equipo>)equipoRepository.findAll();\n\t}",
"@Override\n\tpublic List<Equipment> getAllEquipmet() {\n\t\treturn dao.getAllEquipmet();\n\t}",
"public HotelsController() {\n try {\n hotels = dhi.get();\n } catch (Exception e) {\n e.getMessage();\n }\n }",
"@RequestMapping(value = \"/allCharite\")\n\tpublic List<Charite> getAllCharite() {\n\t\treturn chariteDAO.getAllChariteList();\n\t}",
"@Override\n\tpublic List<Product> getByHot() throws SQLException {\n\t\treturn productDao.getByHot();\n\t}",
"public List<Laptop> findAll() {\n\t\treturn laptopDao.findAll();\r\n\t}",
"@Override\n public List<Vessel> getVessels() {\n return new ArrayList<>(boats);\n }",
"public List<equipment> getAllEquipments (){\n return equiomentResprositery.findAll();\n }",
"public void cacheResult(java.util.List<com.Hotel.model.Hotel> hotels);",
"@GetMapping(\"/equipment\")\n\tpublic List<Equipment> findAll() {\n\t\treturn inventoryService.findAll();\n\t}",
"public List<Neighbour> getAvailableHosts() {\n return new ArrayList<>(routes.keySet());\n }",
"@Override\n\tpublic Iterable<Oglas> findAll() {\n\t\treturn repository.findAll();\n\t}",
"public Weet[] getWeets() {\n return array.getWeetsFromStore();\n //return tree.toArray();\n }",
"@Override\r\n\tpublic List<HouseState> queryAllHState() {\n\t\treturn adi.queryAllHState();\r\n\t}",
"@Override\n\tpublic Collection<Eleve> findAll() {\n\t\treturn map.values();\n\t}",
"@Override\r\n\tpublic List<Hotel> getByHotelName(String Name) {\n\t\tList<Hotel> newHotelList = new ArrayList<>();\r\n\t\tfor(Hotel Hotel : showHotelList())\r\n\t\t{\r\n\t\t\tif(Hotel.getHotelName().equals(Name))\r\n\t\t\t\tnewHotelList.add(Hotel);\r\n\t\t}\r\n\t\treturn newHotelList;\r\n\t}",
"public Hotel(ArrayList<Room> rooms) {\n this.rooms = rooms;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic List<DbLotniskoEntity> getAll() {\n \tList<DbLotniskoEntity> airports = (List<DbLotniskoEntity>)getSession().createQuery(\"from kiwi.models.DbLotniskoEntity\").list();\n\n \treturn airports;\n }",
"public List<Ingredient> getAll() {\n return ingredientRepository.findAll();\n }",
"@Override\n\tpublic List<Hotel> getHotelsInCity(String cityName, Session session) {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tList<Hotel> hotelList = new ArrayList<Hotel>();\n\t\tCriteria cr = session.createCriteria(Hotel.class).add(Restrictions.eq(\"city\", cityName));\n\t\thotelList = cr.list();\n\t\treturn hotelList;\n\t}",
"public com.google.protobuf.ProtocolStringList\n getHotelImageURLsList() {\n return hotelImageURLs_.getUnmodifiableView();\n }",
"@Override\n\tpublic List<Room> getAll() {\n\t\tArrayList<Room> list = new ArrayList<>();\n\t\tConnection cn = ConnectionPool.getInstance().getConnection();\n\t\ttry {\n\t\t\tStatement st = cn.createStatement();\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM room\");\n\t\t\twhile(rs.next()) {\n\t\t\t\tlist.add(new Room(rs.getInt(1), rs.getInt(2)));\n\t\t\t}\n\t\t\treturn list;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tConnectionPool.getInstance().closeConnection(cn);\n\t\t}\n\t\treturn new ArrayList<Room>();\n\t}",
"public com.google.protobuf.ProtocolStringList\n getHotelImageURLsList() {\n return hotelImageURLs_;\n }",
"@Override\n\tpublic List<Inventory> getAllInventories() {\n\t\tArrayList<Inventory> inventories = new ArrayList<Inventory>();\n\t\tinventoryDao.findAll().forEach(inventories::add);\n\t\treturn inventories;\n\t}",
"public List<HotspotClient> getHotspotClientsList() {\n List<HotspotClient> clients = new ArrayList<HotspotClient>();\n synchronized (mHotspotClients) {\n for (HotspotClient client : mHotspotClients.values()) {\n clients.add(new HotspotClient(client));\n }\n }\n return clients;\n }",
"public ArrayList<Pokemon> getAllPokemon(){\n\t\treturn caughtPokemon; \n\t}",
"public List<Food> findAllfood() {\n\t\treturn foodDao.findAllfood();\r\n\t}",
"@Override\n\tpublic List<WechatsBean> findAll() {\n\t\treturn mapper.findAll();\n\t}",
"@Override\r\n\tpublic List<shopPet> getAll() {\n\t\treturn dao.getAll();\r\n\t}",
"public List<Office> getNearbyOffices() {\n return nearbyOffices;\n }",
"@Override\n\tpublic List<Equipment> getAllAviableEquipmet() {\n\t\treturn dao.getAllAviableEquipmet();\n\t}",
"public List<Computer> getAll(){\n\t\treturn getWithLimit(-1,-1);\n\t}",
"@Override\n\tpublic ArrayList<CityPO> getAll() throws RemoteException {\n\t\t\n\t\t\n\t\treturn cities;\n\t}",
"List<Chofer> findAll();",
"@Override\r\n\tpublic List<Food> getFoods() {\n\t\tString sql=\"select state from food group by state\";\r\n\t\tList<Food> s=(List<Food>) BaseDao.select(sql, Food.class);\r\n\t\treturn s;\r\n\t}",
"@Override\r\n\tpublic List<Areas> queryAllHArea() {\n\t\treturn adi.queryAllHArea();\r\n\t}",
"public List<Restaurant> getAllRestaurants() {\n\t\tList<Restaurant> restaurantList = new ArrayList<>();\n\t\trestaurantRepository.findAll()\n\t\t.forEach(r->restaurantList.add(r));\n\t\treturn restaurantList;\n\t}",
"public ArrayList<CoffeeShop> returnShops(){\r\n return allShops;\r\n }",
"@Override\n\tpublic Etape[] getAll() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<AvailableHotelsResponse> getAvailableHotels(AvailableHotelRequest request)\n\t\t\tthrows CommunationFailedException, BusinessException {\n\n\t\tList<AvailableHotelsResponse> hotelResponses = new ArrayList<AvailableHotelsResponse>();\n\t\tif (request == null) {\n\t\t\tthrow new IllegalArgumentException(\"Invalid request data\");\n\t\t}\n\t\ttry {\n\n\t\t\tGson gson = new Gson();\n\t\t\tString jsonRequestString = gson.toJson(request);\n\n\t\t\tlogger.info(\"AvailableHotelRequest Json String \" + jsonRequestString);\n\n\t\t\tApplicationUrlsHolder applicationUrlsHolder = new ApplicationUrlsHolder();\n\t\t\tMap<HotelProviders, String> providersUrls = applicationUrlsHolder.getHotelProvidersUrls();\n\n\t\t\tfor (Entry<HotelProviders, String> entry : providersUrls.entrySet()) {\n\t\t\t\tHotelProviders hotelProvider = entry.getKey();\n\t\t\t\tString providerUrl = entry.getValue();\n\n\t\t\t\tString jsonResponse = httpCaller.performHttpRequest(jsonRequestString, providerUrl);\n\n\t\t\t\thotelResponses.addAll(ProvidersHotelResponseMapper.mappingHotelResponse(hotelProvider, jsonResponse));\n\t\t\t}\n\n\t\t\tCollections.sort(hotelResponses);\n\n\t\t} catch (BusinessException e) {\n\n\t\t} catch (CommunationFailedException e) {\n\t\t\tthrow e;\n\t\t} catch (Exception e) {\n\n\t\t\tErrorObj errorObj = new ErrorObj();\n\t\t\terrorObj.setErrorCode(ApplicationConstants.UNKNOWN_EXCEPTION);\n\t\t\terrorObj.setErrorMessage(\"Sorry, Service currently unavailable\");\n\n\t\t\tthrow new BusinessException(errorObj);\n\t\t}\n\n\t\treturn hotelResponses;\n\t}",
"@Override\r\n\tpublic List<HouseType> queryAllHtype() {\n\t\treturn adi.queryAllHtype();\r\n\t}",
"public List<OwnedWarp> getAll() {\n List<OwnedWarp> ret = new ArrayList<OwnedWarp>();\n Set<String> keyset = warps.keySet();\n for(String key : keyset)\n ret.addAll(warps.get(key));\n return ret;\n }",
"public List<Tour> findAllTours(){\n\t\treturn tourRepository.findAll();\n\t}",
"@Override\r\n\tpublic List<HotelArea> queryHotelArea(HotelAreaQuery query) {\n\t\tList<HotelArea> hotelAreaLs = hotelAreaDao.selectEntityList(query);\r\n\t\treturn hotelAreaLs;\r\n\t}",
"public List<Vet> getAllVets() {\n\t\tentityManager = JPAUtils.getEntityManager();\n\t\tentityManager.getTransaction().begin();\n\t\tvets = entityManager.createQuery(\"from Vet\", Vet.class).getResultList();\n\t\tentityManager.getTransaction().commit();\n\t\tentityManager.close();\n\t\treturn vets;\n\t}",
"public void displayAllRooms(){\n for(int i=0;i<roomCounter;i++){\n myHotel[i].Display();\n System.out.println();\n }\n }",
"ArrayList<Habit> getHabits();",
"public Bebawy_Hotels() \n\t{\n\t\tinitComponent();\n\t\tcreateEvent();\t\n\t}",
"public int numberOfHotels() {\r\n \tint anzahlHotel=hotelDAO.getHotelList().size();\r\n \treturn anzahlHotel;\r\n }",
"public List<Poruke> getAllPoruke(){\r\n return porukeBeanLocal.getAllPoruke();\r\n }",
"public List<Food> getAllFood() {\n\t\t\n\t\treturn foodDao.getAllFood();\n\t\t\n\t}",
"@Override\n @Transactional(readOnly = true)\n public List<HabilitationDTO> findAll() {\n log.debug(\"Request to get all Habilitations\");\n return habilitationRepository.findAll().stream()\n .map(habilitationMapper::toDto)\n .collect(Collectors.toCollection(LinkedList::new));\n }",
"@Override\n public Stream<City> getAll() {\n return idToCity.values().stream();\n }",
"public Iterable<Place> places(){\n return places;\n }",
"public ArrayList<Chromosome> getEliteChromosomes() {\n // SortedMap instead of HashMap? Duplicate key values? \n ArrayList<Chromosome> elites = new ArrayList<Chromosome>();\n// ArrayList<Chromosome> sortedList = this.getChromosomesSorted();\n boolean firstRun = true;\n\n //this.sort();\n Collections.sort(this.chromosomes);\n\n while (elites.size() < Defines.eliteCt) {\n for (Chromosome chromosome : this.chromosomes) {\n if (elites.size() < Defines.eliteCt) {\n if (firstRun && chromosome.isValid()) {\n elites.add(chromosome);\n } else {\n elites.add(chromosome);\n }\n }\n }\n firstRun = false;\n }\n return elites;\n }",
"public List<Boek> alleBoekenLijst () {\n return em.createNamedQuery(\"BoekEntity.zoekAllen\", Boek.class).getResultList();\n //return em.createQuery(\"SELECT b FROM Book b\", Book.class).getResultList();\n }",
"@Override\r\n\tpublic List<Units> queryAllHx() {\n\t\treturn adi.queryAllHx();\r\n\t}",
"public List<ServiceInstance> getAllInstances();",
"public List<Ship> getAllShips() {return allShips; }",
"public Ebook[] getAll() {\n return ebooks;\n }",
"public ArrayList<Hotel> getUserHotels(Integer userId, Integer customerId);",
"@Override\n public Set<Shelf> getShelves() {\n return new HashSet<>(shelves);\n }",
"public static List<CauHinhThuTienTet> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public List<Ubigeo> getUbigeoFindAll() {\n return em.createNamedQuery(\"Ubigeo.findAll\", Ubigeo.class).getResultList();\n }",
"@Override\n\tpublic List<HotelroomPo> getHotelroomByHotelID(int hotelID) {\n\t\t\n\t\tList<HotelroomPo> rooms = new ArrayList<HotelroomPo>();\n\t\tIterator<Entry<String, HotelroomPo>> iterator = map.entrySet().iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tEntry<String, HotelroomPo> entry = iterator.next();\n\t\t\tHotelroomPo hotelroomPo = entry.getValue();\n\t\t\t\n\t\t\tif(hotelroomPo.getHotelID()==hotelID)\n\t\t\t\trooms.add(hotelroomPo);\n\t\t}\n\t\treturn rooms;\n\t}",
"public List<Warehouse> findWarehouseAll() {\n\t\t return warehouseDAO.findWarehouseAll();\r\n\t}",
"@GetMapping(value=\"/\")\n\t\tpublic static Collection<Lobby> lobbies(){\n\t\t\treturn lobbies.values();\n\t\t}",
"public Iterable<Shop> getAllShops() {\n return this.shopRepository.findAll();\n }",
"public List<Book> getAll() {\n return bookFacade.findAll(); \n }",
"public static void showAllHouse(){\n ArrayList<House> houseList = getListFromCSV(FuncGeneric.EntityType.HOUSE);\n displayList(houseList);\n showServices();\n }",
"public ArrayList<ArrayList<Pokemon>> getlistOfNeighborhoods()\n\t{\n\t\treturn ((ArrayList<ArrayList<Pokemon>>)(listOfNeighborhoods.clone()));\n\t}",
"@Override\n public List<Room> findAll() {\n return roomRepository.findAll();\n }",
"public List<Food> getFoods() {\n return FoodListManager.convertListToFoods(foodEntries);\n }",
"@Override\n\tpublic List<Hotel> getLowPricedHotels(String cityName, Session session) {\n\t\t// TODO Auto-generated method stub\n\t\tList<Hotel> hotelList = new ArrayList<Hotel>();\n\t\tCriteria cr = session.createCriteria(Hotel.class).add(Restrictions.eq(\"city\", cityName)).addOrder(Order.asc(\"tariff\")).setMaxResults(5);\n\t\thotelList = cr.list();\n\t\treturn hotelList;\n\t}",
"public Object[] getHomeList(){\r\n\t\t//Map laden\r\n\t\tloadMap();\r\n\t\treturn map.keySet().toArray();\r\n\t}",
"@Override\r\n\tpublic ArrayList<Board1> getAll() {\n\t\treturn dao.selectAll();\r\n\t}",
"public List<Seat> listAll() {\n\t\treturn repository.findAll();\n\t}",
"@Override\n\tpublic List<BookshelfinfoEntity> queryAllBookshelfinfo() {\n\t\treturn this.sqlSessionTemplate.selectList(\"bookshelfinfo.select\");\n\t}",
"public List showAll() {\n\t\tSession session = null;\n\t\tList temp = new ArrayList();\n\t\ttry {\n\n\t\t\tsession = MyUtility.getSession();// Static Method which makes only\n\t\t\t\t\t\t\t\t\t\t\t\t// one object as method is\n\t\t\t\t\t\t\t\t\t\t\t\t// static\n\n\t\t\tQuery q = session.createQuery(\"FROM AuctionVO \");\n\n\t\t\ttemp = q.list();\n\n\t\t} catch (Exception e) {\n\t\t\t//System.out.println(e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t//session.close();\n\t\t}\n\t\treturn temp;\n\t}",
"@Override\n\tpublic Iterable<Sach> findAll() {\n\t\treturn sachRepository.findAll();\n\t}",
"@GET\n @Produces(\"application/json\")\n public static List<CRoom> roomAll() {\n return (List<CRoom>) sCrudRoom.findWithNamedQuery(CRoom.FIND_ROOM_BY_ALL);\n }"
]
| [
"0.8266437",
"0.8087453",
"0.7544197",
"0.73604923",
"0.7318938",
"0.7092373",
"0.7052918",
"0.7018973",
"0.6879773",
"0.6519848",
"0.6448525",
"0.6448525",
"0.6412932",
"0.6296177",
"0.6292579",
"0.6184976",
"0.615412",
"0.61465037",
"0.60965353",
"0.6061201",
"0.6050074",
"0.60469353",
"0.5963435",
"0.59516066",
"0.59159374",
"0.589859",
"0.5882909",
"0.58704036",
"0.5863163",
"0.58592904",
"0.5853405",
"0.58446336",
"0.5817969",
"0.58173716",
"0.5802885",
"0.57630503",
"0.5757085",
"0.5747636",
"0.5745981",
"0.5742782",
"0.5740105",
"0.57307917",
"0.57246727",
"0.5722978",
"0.57036453",
"0.5701409",
"0.56959444",
"0.5689632",
"0.5668503",
"0.5667731",
"0.5663451",
"0.56630415",
"0.56486326",
"0.56432587",
"0.563805",
"0.5625378",
"0.56213063",
"0.56148267",
"0.560426",
"0.5603435",
"0.56026113",
"0.5596873",
"0.55953",
"0.5581116",
"0.55806416",
"0.55798185",
"0.5577591",
"0.5573912",
"0.5573539",
"0.5571511",
"0.55679816",
"0.55628246",
"0.55612123",
"0.55586755",
"0.5558565",
"0.55567366",
"0.5549943",
"0.5546381",
"0.5544638",
"0.554111",
"0.5540567",
"0.5522203",
"0.5521178",
"0.55195653",
"0.55102074",
"0.5509038",
"0.5505333",
"0.5502749",
"0.5502334",
"0.54975426",
"0.54933465",
"0.5476555",
"0.54725915",
"0.5468224",
"0.5464317",
"0.54615825",
"0.54588467",
"0.54510707",
"0.544651",
"0.54411083"
]
| 0.7247932 | 5 |
Removes all the hotels from the database. | public void removeAll()
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeAll()\r\n {\n db = this.getWritableDatabase(); // helper is object extends SQLiteOpenHelper\r\n db.execSQL(\"drop table \"+\"campaing\");\r\n db.execSQL(\"drop table \"+\"cafe\");\r\n db.execSQL(\"drop table \"+\"points\");\r\n\r\n db.close ();\r\n }",
"private void clearAll(){\r\n List<FantasyMatch> allMatches = fmatchBean.findAll();\r\n for(FantasyMatch fm : allMatches){\r\n fmatchBean.remove(fm);\r\n }\r\n \r\n List<RosterPlayer> allRps= rpBean.findAll();\r\n for(RosterPlayer rp : allRps){\r\n rpBean.remove(rp);\r\n }\r\n \r\n List<FantasyTeam> allTeams = ftBean.findAll();\r\n for(FantasyTeam ft : allTeams){\r\n ftBean.remove(ft);\r\n }\r\n \r\n List<FantasyLeague> allLeagues = flBean.findAll();\r\n for(FantasyLeague fl : allLeagues){\r\n flBean.remove(fl);\r\n }\r\n \r\n List<FantasyUser> allUsers = fUserBean.findAll();\r\n for(FantasyUser fu : allUsers){\r\n fUserBean.remove(fu);\r\n }\r\n }",
"public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Legacydb legacydb : findAll()) {\n\t\t\tremove(legacydb);\n\t\t}\n\t}",
"private static void clearDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n clearTable(\"myRooms\");\n clearTable(\"myReservations\");\n }",
"public void removeAllData() {\n dbHelper.removeAllData(db);\n }",
"public void clearDatabase(){\n\t\tem.createNativeQuery(\"DELETE FROM CAMINHO\").executeUpdate();\r\n\t\tem.createNativeQuery(\"DELETE FROM MAPA\").executeUpdate();\r\n\t\t\r\n\t\tlog.info(\"Limpou a base de dados\");\r\n\t\r\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\tdao.deleteAll();\n\n\t}",
"public void deleteallWishlist() {\n db = helper.getWritableDatabase();\n db.execSQL(\"delete from \" + DatabaseConstant.TABLE_NAME_WISHLIST);\n db.close();\n }",
"public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }",
"public void clearDatabase() {\n\t\tstudentRepository.deleteAll();\n\t}",
"public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}",
"public void deleteAll()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.deleteAll();\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void deleteHistory() {\n weatherRepo.deleteAll();\n }",
"@Override\r\n public void removeAll() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n em.getTransaction().begin();\r\n Query query = em.createQuery(\"DELETE FROM Assunto \");\r\n query.executeUpdate();\r\n em.getTransaction().commit();\r\n }",
"@Override\n public void removeAll() throws SystemException {\n for (EntityDealer entityDealer : findAll()) {\n remove(entityDealer);\n }\n }",
"public void deleteAll() {\n Session session = getSessionFactory().openSession();\n\n try {\n session.beginTransaction();\n Query query = session.createQuery(\"DELETE FROM Person \");\n query.executeUpdate();\n session.getTransaction().commit();\n LOGGER.log(Level.INFO,\"Successfully deleted all persons.\");\n }\n catch (Exception e){\n session.getTransaction().rollback();\n LOGGER.log(Level.INFO,\"Deletion of all persons failed\");\n }\n finally {\n session.close();\n }\n }",
"public void clearDatabase();",
"private void clearData() {\n em.createQuery(\"delete from ViajeroEntity\").executeUpdate();\n }",
"public static void deleteAll() throws RocksDBException {\n RocksIterator iter = db.newIterator();\n\n for (iter.seekToFirst(); iter.isValid(); iter.next()) {\n db.delete(iter.key());\n }\n\n iter.close();\n }",
"@AfterEach\n\tvoid clearDatabase() {\n\t\t//Clear the table\n\t\taccountRepository.deleteAll();\n\t}",
"protected void deleteAllTag() {\n\t\tReaderDataBase.deleteAll(this);\n\t}",
"public void deleteAll() {\n repository.deleteAll();\n }",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Candidate candidate : findAll()) {\n\t\t\tremove(candidate);\n\t\t}\n\t}",
"@Override\r\n\tpublic void clearDatabase() {\n\t\t\r\n\t}",
"public void deleteAllRepeaters() {\n new DeleteAllRepeatersAsyncTask(repeaterDao).execute();\n }",
"public void flush() {\n try {\n dhi.set(hotels);\n } catch (Exception e) {\n e.getMessage();\n }\n }",
"public void clearRegistry() {\r\n implementedDatabases.clear();\r\n }",
"@Query(\"DELETE FROM train_stations\")\n\tvoid deleteAll();",
"public void deleteAll() {\n try (Connection connection = dataSource.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.DELETE_ALL.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"public void clearAll() {\n\n realm.beginTransaction();\n realm.clear(PhotoGalleryModel.class);\n realm.commitTransaction();\n }",
"@Override\n\tpublic void deleteAll() {\n\t\tmDB.execSQL(\"DROP TABLE EVENT\");\n\t}",
"public void deleteAll();",
"public void deleteAll();",
"public void deleteAll();",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Facility_Host facility_Host : findAll()) {\n\t\t\tremove(facility_Host);\n\t\t}\n\t}",
"private void clearData() {\r\n em.createQuery(\"delete from MonitoriaEntity\").executeUpdate();\r\n }",
"private void deleteAttacks(){\n while(!attacksToDelete.isEmpty()){\n attacks.remove(attacksToDelete.remove());\n }\n }",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"public void cleanAll() {\n\t\tfor (VirtualPet p : shelterPets.values()) {\n\t\t\tp.cleanPet();\n\t\t}\n\t}",
"public void removeAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_GAS_SENSOR, null, null);\n // db.delete(DatabaseHelper.TAB_USERS_GROUP, null, null);\n }",
"@Override\n\tpublic void clearDBRisposte() {\n\t\tDB db = getDB();\n\t\tMap<Long, Risposta> risposte = db.getTreeMap(\"risposte\");\n\t\trisposte.clear();\n\t\tdb.commit();\n\t}",
"public void DeleteAllRecordsInTable() {\n\n final List<Address> gndPlan = GetAllRecordsFromTable();\n for (int i = 0; i < gndPlan.size(); i++) {\n\n gndPlan.get(i).delete();\n //delete all item in table House\n }\n\n }",
"@Override\n\tpublic void removeAll() {\n\t\tfor (PhatVay phatVay : findAll()) {\n\t\t\tremove(phatVay);\n\t\t}\n\t}",
"public void clear() {\n\t\tfor (int i = 0; i < table.size(); i++) {\n\t\t\ttable.get(i).clear();\n\t\t}\n\t}",
"public void clearNeighborhoods()\n\t{\n\t\tfor (int i=0; i<numberOfNeighborhoods; i++)\n\t\t{\n\t\t\t(listOfNeighborhoods.get(i)).clear();\n\t\t}\n\t}",
"private void deleteAllPets() {\n// int rowsDeleted = getContentResolver().delete(ArtistsContracts.GenderEntry.CONTENT_URI, null, null);\n// Log.v(\"CatalogActivity\", rowsDeleted + \" rows deleted from pet database\");\n }",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Campus campus : findAll()) {\n\t\t\tremove(campus);\n\t\t}\n\t}",
"public void clearEntities()\n\t{\n\t\twhile(!this.entities.isEmpty())\n\t\t{\n\t\t\t//Can use 0 index because we use swap with last anyway\n\t\t\tthis.removeEntity(0); //Important because onDespawn and to remove from hash grid\n\t\t}\n\t}",
"public void deleteAllItineraryItems() {\n\t\tmEditor.clear();\n\t\tmEditor.commit();\n\t}",
"@After\n public void cleanDatabase() {\n\n databaseInstance.setTaxpayersArrayList(new ArrayList<Taxpayer>());\n }",
"public void removerAllPontosTuristicosFavoritosBD() {\n this.db.delete(TABLE_NAME, null, null);\n }",
"public void deleteAllMappings() {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(TABLE_APP, null, null);\n\t\t\n\t\tsynchronized(mappingLock) {\n\t\t\tinvalidateCache();\n\t\t}\n\n\t}",
"private void cleanDB() {\n // the database will contain a maximum of MAX_DB_SIZE wallpapers (default N=50)\n // when the db gets bigger then N, the oldest wallpapers are deleted from the database\n // the user will set if he wants to delete also the wallpaper or the database entry only\n if (maxDbSize != -1 && getOldWallpapersID().size() > maxDbSize) {\n try (ResultSet rs = db.executeQuery(\"SELECT wp FROM WALLPAPERS ORDER BY date FETCH FIRST 20 PERCENT ROWS ONLY\")) {\n while (!keepWallpapers && rs.next()) {\n Wallpaper wp = (Wallpaper) rs.getObject(\"wp\");\n log.log(Level.FINEST, wp::toString);\n log.log(Level.FINE, () -> \"Cleaning of DB, removing \" + wp.getID());\n\n new File(wp.getPath()).delete();\n }\n db.executeUpdate(\"DELETE FROM WALLPAPERS WHERE id IN (SELECT id FROM WALLPAPERS ORDER BY date fetch FIRST 20 PERCENT rows only)\");\n\n } catch (SQLException throwables) {\n log.log(Level.WARNING, \"Query Error in cleanDB()\");\n log.log(Level.FINEST, throwables.getMessage());\n }\n }\n }",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (DmHistoryGoods dmHistoryGoods : findAll()) {\n\t\t\tremove(dmHistoryGoods);\n\t\t}\n\t}",
"@Transactional\r\n\tpublic void deleteAllBlogs() {\n\t\tsessionFactory.getCurrentSession().delete(getClass());\r\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (LocalRichInfo localRichInfo : findAll()) {\n\t\t\tremove(localRichInfo);\n\t\t}\n\t}",
"@Override\n public void deleteAll() {\n String deleteAllQuery = \"DELETE FROM \" + getTableName();\n getJdbcTemplate().execute(deleteAllQuery);\n }",
"public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n }\r\n super.getBasebo().remove(uploads);\r\n }",
"public void wipeDB() {\n\t\tSQLiteDatabase db = nodeData.getReadableDatabase();\n\t\tdb.delete(EventDataSQLHelper.TABLE, null, null);\n\t\tdb.close();\n }",
"public void deleteAllStocks(){\n this.open();\n database.execSQL(\"DELETE FROM \" + SQLiteHelper.TABLE_STOCK);\n this.close();\n }",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Paper paper : findAll()) {\n\t\t\tremove(paper);\n\t\t}\n\t}",
"public void deleteAll() {\n\t\t\n\t}",
"@Override\n public void cleanUsersTable() {\n\n Session session = sessionFactory.openSession();\n Transaction tx = session.beginTransaction();\n session.createQuery(\"delete from User\").executeUpdate();\n tx.commit();\n System.out.println(\"HibCleaning users table\");\n session.close();\n\n }",
"public void deleteAll() {\n\n\t}",
"@Override\n\tpublic void clearDBDomande() {\n\t\tDB db = getDB();\n\t\tMap<Long, Domanda> domande = db.getTreeMap(\"domande\");\n\t\tdomande.clear();\n\t\tdb.commit();\n\t}",
"void deleteAll();",
"void deleteAll();",
"void deleteAll();",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (TvShow tvShow : findAll()) {\n\t\t\tremove(tvShow);\n\t\t}\n\t}",
"@BeforeEach\n @AfterEach\n public void clearDatabase() {\n \taddressRepository.deleteAll();\n \tcartRepository.deleteAll();\n \tuserRepository.deleteAll();\n }",
"@Override\n\t@Transactional\n\tpublic void deleteAllRoutes() {\n\t\trouteDAO.deleteAllRoutes();\t\t\n\t}",
"@Override\n\tpublic void unloadAllChunks() {\n\t\tfor (Column column : this.loadedColumns.values()) {\n\t\t\tfor (Cube cube : column.getCubes()) {\n\t\t\t\tthis.cubesToUnload.add(cube.getAddress());\n\t\t\t}\n\t\t}\n\t}",
"public void deleteAll();",
"public void deleteAll() {\n\t\ttry{\t\n\t\t\tbanco.delete(meuBancoHelper.TABELA_MTAG,null,null);\n\t\t\t}\n\t\t\tcatch(NullPointerException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t}",
"public void deleteAll()\n\t{\n\t}",
"public void deleteAll()\n\t{\n\t}",
"@Override\n\tpublic void removeAll() {\n\t\tfor (Answer answer : findAll()) {\n\t\t\tremove(answer);\n\t\t}\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"public void deleteAll() {\n new Thread(new DeleteAllRunnable(dao)).start();\n }",
"public void clearTables() {\r\n // your code here\r\n\t\ttry {\r\n\t\t\tdeleteReservationStatement.executeUpdate();\r\n\t\t\tdeleteBookingStatement.executeUpdate();\r\n\t\t\tdeleteUserStatement.executeUpdate();\r\n\t\t} catch (SQLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n }",
"public void removeAll() {\n db.delete(TABLE_NAME, null, null);\n Log.d(\"deleteHistoryCS\", \"Remove All HistoryCS\");\n }",
"@Modifying\n @Transactional\n @Query(\"DELETE FROM \" + dbName)\n void deleteAllFromTable();",
"void removeAllData() throws DatabaseNotAccessibleException;",
"private static void removeDB()\n {\n if(getStatus().equals(\"no database\"))\n return;\n\n dropTable(\"myRooms\");\n dropTable(\"myReservations\");\n }",
"public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}",
"@Override\n\tpublic void removeAll() throws SystemException {\n\t\tfor (Department department : findAll()) {\n\t\t\tremove(department);\n\t\t}\n\t}",
"public void dropAll () {\n\t\tdbCol=mdb.getCollection(\"genericCollection\");\n\t\tif (dbCol.getIndexInfo().size()>0)\n\t\t\tdbCol.dropIndexes();\n\t\tdbCol.drop();\n\t\t\t \n\t\t\n\t}"
]
| [
"0.64615124",
"0.64099354",
"0.6292047",
"0.6286399",
"0.6256058",
"0.6154456",
"0.6148605",
"0.61409855",
"0.61386466",
"0.6134823",
"0.60985535",
"0.609442",
"0.60941094",
"0.6063846",
"0.6061042",
"0.60524017",
"0.60464686",
"0.6031622",
"0.60149163",
"0.60105616",
"0.5984112",
"0.59789544",
"0.5969878",
"0.59600663",
"0.5946451",
"0.5935385",
"0.5924649",
"0.59225607",
"0.591493",
"0.59074366",
"0.5907375",
"0.59005433",
"0.5890829",
"0.5890829",
"0.5890829",
"0.58815956",
"0.58620965",
"0.5810516",
"0.57977784",
"0.57977784",
"0.57977784",
"0.57977784",
"0.5796472",
"0.57950395",
"0.5791223",
"0.57889867",
"0.5776297",
"0.5765897",
"0.5763854",
"0.5758486",
"0.5745661",
"0.574493",
"0.5741364",
"0.57309204",
"0.5718657",
"0.5706141",
"0.57010263",
"0.5699201",
"0.5697846",
"0.567732",
"0.5676615",
"0.5675487",
"0.56736094",
"0.5668392",
"0.5665724",
"0.56641996",
"0.5663702",
"0.56560504",
"0.5645164",
"0.5634846",
"0.5634846",
"0.5634846",
"0.5634229",
"0.56328535",
"0.562833",
"0.5628114",
"0.5619804",
"0.56116915",
"0.561024",
"0.561024",
"0.55999404",
"0.5595437",
"0.5595437",
"0.5595437",
"0.5588074",
"0.5588074",
"0.5588074",
"0.5588074",
"0.5588074",
"0.5588074",
"0.5588074",
"0.5588074",
"0.5586213",
"0.55773646",
"0.5574448",
"0.5572616",
"0.5566566",
"0.5564501",
"0.556164",
"0.5561491",
"0.5560137"
]
| 0.0 | -1 |
Returns the number of hotels. | public int countAll()
throws com.liferay.portal.kernel.exception.SystemException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int numberOfHotels() {\r\n \tint anzahlHotel=hotelDAO.getHotelList().size();\r\n \treturn anzahlHotel;\r\n }",
"public int getHotelImageURLsCount() {\n return hotelImageURLs_.size();\n }",
"public int getHotelImageURLsCount() {\n return hotelImageURLs_.size();\n }",
"int getMonstersCount();",
"int getMonstersCount();",
"int getFaintedPokemonCount();",
"int getNumberOfGuests();",
"int getReservePokemonCount();",
"int getNumberOfStonesOnBoard();",
"int getLocationsCount();",
"public int numHouses() {\n\t\treturn buildings;\n\t}",
"int getHotelImageURLsCount();",
"public int getNumberShips();",
"public int weaponCount(){\n\t\treturn weaponList.size();\n\t}",
"int getWifisCount();",
"public int getShipsAlive() {\n return this.numberOfShips;\n }",
"int getFeaturesCount();",
"public int getEquipmentCount() {\r\n\t\tint ret = 0;\r\n\t\tPerson p = model.getData();\r\n\t\tif ( p!=null ) {\r\n\t\t\tret = p.getEquipmentCount();\r\n\t\t}\r\n\t\treturn ret;\r\n\t}",
"public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }",
"int getFeatureCount();",
"private int getNumberOfBoxesOfAllShips() {\r\n int count = 30;\r\n return count;\r\n }",
"public int size()\n\t{\n\t\tint size = 0;\n\t\tfor(List<Registry.Entry> li : this.reg.values())\n\t\t\tsize += li.size();\n\t\treturn size;\n\t}",
"@Override\n\tpublic int getWeathersCount() {\n\t\treturn _weatherLocalService.getWeathersCount();\n\t}",
"public int countryCount(){\n\t\treturn this.countries.size();\n\t}",
"public int getNumChips() {\n\t\treturn numChips;\n\t}",
"public int getCellsUniverseSize(){\r\n return cellsUniverse.size();\r\n }",
"public int getNumEquips() {\n\t\treturn (n_equips);\n\t}",
"public int getMonstersCount() {\n return monsters_.size();\n }",
"public int getMonstersCount() {\n return monsters_.size();\n }",
"public int numAlivePokemon() {\r\n\t\tint count = 0;\r\n\t\tfor (Pokemon p : ownedPokemon) {\r\n\t\t\tif (p.getCurrentHP() > 0) {\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn count;\r\n\t}",
"int getCellsCount();",
"int getWayCount();",
"public int countNeighbours() {\n\t\tint count = 0;\n\t\tif (this.hasNeighbour(0))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(1))\n\t\t\tcount++;\n\t\tif (this.hasNeighbour(2))\n\t\t\tcount++;\n\t\treturn count;\n\t}",
"public int numberOfFeatures(){\n\t\treturn indexByFeature.keySet().size();\n\t}",
"@Override\r\n\tpublic Integer getBind_house_cnt() {\n\t\treturn super.getBind_house_cnt();\r\n\t}",
"int getTrucksCount();",
"public int numEdges()\r\n {\r\n\tint s = 0;\r\n\tfor (final EdgeTypeHolder eth : ethMap.values())\r\n\t s += eth.numEdges();\r\n\treturn s;\r\n }",
"public int pixelCount()\n {\n int pixelCount = cat.getWidth() * cat.getHeight();\n return pixelCount;\n\n }",
"public int foodCount() {\r\n\t\treturn this.food;\r\n\t}",
"public int getFeaturesCount();",
"public int getNumberOfShips() {\r\n\t\treturn numberOfShips;\r\n\t}",
"public int getCount() {\n\t\t\treturn foods.size();\n\t\t}",
"int getBlockLocationsCount();",
"public int getNickels()\n {\n\treturn nickels;\n }",
"long getRecipesCount();",
"public int getReservePokemonCount() {\n if (reservePokemonBuilder_ == null) {\n return reservePokemon_.size();\n } else {\n return reservePokemonBuilder_.getCount();\n }\n }",
"public int getNumMonsters()\n\t{\n\t\treturn monsters.size();\n\t}",
"public int getMonstersCount() {\n if (monstersBuilder_ == null) {\n return monsters_.size();\n } else {\n return monstersBuilder_.getCount();\n }\n }",
"public int getMonstersCount() {\n if (monstersBuilder_ == null) {\n return monsters_.size();\n } else {\n return monstersBuilder_.getCount();\n }\n }",
"public static int size() {\n return cells.size();\n }",
"public int get_count() {\n return (int)getUIntBEElement(offsetBits_count(), 16);\n }",
"public int getNumChromosomes();",
"int getDataScansCount();",
"public static Integer getNumberOfships() {\n\t\treturn NUMBEROFSHIPS;\n\t}",
"public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }",
"int getNodesCount();",
"int getNodesCount();",
"protected int getWoodCount() {\n\t\treturn ent.getItemCount(Block.wood.blockID);\n\t}",
"public int getHats() {\n return totalHats;\n }",
"public int numberOfEntries();",
"public int getNumberOfEntries();",
"public int getNumElements() {\n return theMap.size();\n }",
"public int size()\r\n\t{\r\n\t\treturn _tiles.size();\r\n\t}",
"public int numberOfStates();",
"public int getHops() {\n\t\treturn hopCount;\n\t}",
"int count() {\n return index.capacity() / 24;\n }",
"public int getAvailDoorCount() {\n int count = 0;\n for (Door d: getDoors()) {\n if (!d.getUsed()) {\n count++;\n }\n }\n return count;\n }",
"int getPurchasableOffersCount();",
"@Override\r\n\tpublic int getPegCount() {\r\n\t\tint shipSize = 3;\r\n\t\treturn shipSize;\r\n\t}",
"public int getCellsCount() {\n return cells_.size();\n }",
"public int getFeatureCount() {\n\r\n\t\treturn _features.length;\r\n\t}",
"public int getFoodCount()\r\n\t{\r\n\t\treturn foodCount;\r\n\t}",
"public int getElfCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getElf() != null) {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"public int getActiveRunwaysCount();",
"public int countPoolMaps(){\n\n\t\treturn poolMaps.size();\n\t}",
"public Integer getHot() {\n return hot;\n }",
"public int getNumberOfBeds() {\n\t\tint total;\n\t\ttotal = getNbrOfBeds()[0] + getNbrOfBeds()[1] + getNbrOfBeds()[2];\n\t\treturn total;\n\t}",
"int numberofhc()\n{\n\treturn hc.size();}",
"public int sizeOfWatershedsArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(WATERSHEDS$4);\r\n }\r\n }",
"int getAreaCount();",
"int getAreaCount();",
"int getAreaCount();",
"public int count( String hotWord ){\r\n String x = hotWord.toLowerCase();\r\n //If the word is a hotword then get the count and return it\r\n if(words.containsKey(x)){\r\n return words.get(x);\r\n }\r\n //If not, then return -1\r\n else{\r\n return -1;\r\n }\r\n\t}",
"public static int registeredSize() {\n\t\tInteger count = new Integer(0);\n\t\tObject object = cache.get(FQN_COUNT, LOGGED_COUNT);\n\t\tif (object != null) {\n\t\t\tcount = (Integer) object;\n\t\t}\n\n\t\treturn (count == null ? 0 : count.intValue());\n\t}",
"public int getWifisCount() {\n return wifis_.size();\n }",
"public int getPinCount();",
"public int getHandKarteCount(){\n return getHandKarte().size();\n }",
"public int getMountainCount() {\n\t\tcounter = 0;\n\t\tfor (int row = 0; row < battlefield.length; row++) {\n\t\t\tfor (int column = 0; column < battlefield[row].length; column++) {\n\t\t\t\tif (battlefield[row][column].getTerrain().getIcon() == \"M\") {\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn counter;\n\t}",
"int getSnInfoCount();",
"int getSnInfoCount();",
"int getSnInfoCount();",
"public int getAvailableCount();",
"int getGuestAcceleratorsCount();",
"@Override\n public int getG2HashTableNumberOfEntries() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.G2_HASH_TABLE_NUMBER_OF_ENTRIES_);\n return ((Integer)retnValue).intValue ();\n }",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int getFaintedPokemonCount() {\n if (faintedPokemonBuilder_ == null) {\n return faintedPokemon_.size();\n } else {\n return faintedPokemonBuilder_.getCount();\n }\n }",
"public int getNumRecipes()\n {\n return _recipes.size();\n }",
"int getProcessorCount();",
"int countFeatures();",
"int countFeatures();",
"public int getFleetSize() {\n return fleet.size();\n }"
]
| [
"0.8321212",
"0.68615705",
"0.68293613",
"0.6791339",
"0.6791339",
"0.6612925",
"0.6575759",
"0.65719074",
"0.6547172",
"0.65090126",
"0.65041053",
"0.6481675",
"0.6477293",
"0.6465855",
"0.6458362",
"0.64307934",
"0.6428514",
"0.6418192",
"0.6417807",
"0.6417274",
"0.6411352",
"0.6403179",
"0.6397259",
"0.63932055",
"0.6366833",
"0.63563997",
"0.635261",
"0.63359636",
"0.63351184",
"0.63294274",
"0.63249296",
"0.62822044",
"0.6279907",
"0.62765706",
"0.6271142",
"0.62655467",
"0.62590885",
"0.62507594",
"0.62505686",
"0.6248393",
"0.6246194",
"0.62193674",
"0.6206718",
"0.6202853",
"0.6187705",
"0.6179168",
"0.6176692",
"0.61572206",
"0.61559194",
"0.6147761",
"0.61394",
"0.6137163",
"0.613512",
"0.61125165",
"0.6110475",
"0.61049354",
"0.61049354",
"0.6102949",
"0.6094564",
"0.6093526",
"0.6093067",
"0.60889816",
"0.60871214",
"0.60842603",
"0.60832924",
"0.6066936",
"0.6060533",
"0.60595447",
"0.6055277",
"0.60511684",
"0.6051058",
"0.60487837",
"0.6045444",
"0.6040777",
"0.6038006",
"0.6036287",
"0.6035776",
"0.60318255",
"0.6024397",
"0.60232216",
"0.60232216",
"0.60232216",
"0.60221946",
"0.6019986",
"0.6011029",
"0.6005627",
"0.600291",
"0.6001728",
"0.6000633",
"0.6000633",
"0.6000633",
"0.59874195",
"0.59838486",
"0.59830964",
"0.59785986",
"0.59735197",
"0.5970634",
"0.5968837",
"0.59669423",
"0.59669423",
"0.5963427"
]
| 0.0 | -1 |
Creates new form uitax | public uitax() {
initComponents();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"FORM createFORM();",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public SignUpForm(Context ctx) {\n super(ctx);\n init();\n }",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"public frm_tutor_subida_prueba() {\n }",
"public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}",
"@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}",
"public UserForm(){ }",
"public FormUtama() {\n initComponents();\n }",
"@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\tuf = new UserForm(AktuellerAnwender.getAnwender());\r\n\t\t\tRootPanel.get(\"details\").add(uf);\r\n\t\t}",
"public signup() {\n initComponents();\n }",
"@GetMapping(\"/addPharmacist\")\n public String pharmacistForm(Model model) {\n model.addAttribute(\"pharmacist\", new Pharmacist());\n return \"addPharmacist\";\n }",
"@GetMapping(\"/userAddForm\")\n\tpublic String userAddForm(Model theModel) {\n\t\tUser theUser = new User();\n\t\ttheModel.addAttribute(\"user\", theUser);\n\t\treturn \"registration-form\";\n\t}",
"public SignUpForm(Context ctx, AttributeSet attrs) {\n super(ctx, attrs);\n init();\n }",
"public FormInserir() {\n initComponents();\n }",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}",
"private void submitNewUser() {\n\t\tboolean validationFlag = true;\n\t\tArrayList<HashMap<String, String>> signUpFields = new ArrayList<HashMap<String, String>>();\n\t\tint size = lnr_form.getChildCount();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tLinearLayout v = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tHashMap<String, String> field = (HashMap<String, String>) v.getTag();\n\n\t\t\tIjoomerEditText edtValue = null;\n\t\t\tSpinner spnrValue = null;\n\n\t\t\tif (field != null) {\n\t\t\t\tif (field.get(TYPE).equals(TEXT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEdit)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditArea)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditMap)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(\"type\").equals(LABEL)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrLabel)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\n\t\t\t\t\tif (edtValue.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\tif (!IjoomerUtilities.birthdateValidator(edtValue.getText().toString().trim())) {\n\t\t\t\t\t\t\tedtValue.setFocusable(true);\n\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_invalid_birth_date));\n\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\t\t\t\tif (field.get(TYPE).equals(TIME)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\n\t\t\t\tif (field.get(TYPE).equals(SELECT)) {\n\t\t\t\t\tspnrValue = (Spinner) ((LinearLayout) v.findViewById(R.id.lnrSpin)).findViewById(R.id.txtValue);\n\t\t\t\t\tfield.put(VALUE, spnrValue.getSelectedItem().toString());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Retype Password\")) {\n\t\t\t\t\tint len = lnr_form.getChildCount();\n\t\t\t\t\tfor (int j = 0; j < len; j++) {\n\t\t\t\t\t\tLinearLayout view = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) view.getTag();\n\t\t\t\t\t\tif (row.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Password\")) {\n\t\t\t\t\t\t\tString password = ((IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue)).getText().toString();\n\t\t\t\t\t\t\tif (password.equals(edtValue.getText().toString())) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_password_not_match));\n\t\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (edtValue != null && edtValue.getText().toString().trim().length() <= 0 && (field.get(REQUIRED).equals(\"1\"))) {\n\t\t\t\t\tedtValue.setError(getString(R.string.validation_value_required));\n\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t} else {\n\t\t\t\t\tfield.put(VALUE, edtValue.getText().toString().trim());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (validationFlag) {\n\t\t\tfinal SeekBar proSeekBar = IjoomerUtilities.getLoadingDialog(getString(R.string.dialog_loading_register_newuser));\n\t\t\tnew IjoomerRegistration(this).submitNewUser(signUpFields, new WebCallListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onProgressUpdate(int progressCount) {\n\t\t\t\t\tproSeekBar.setProgress(progressCount);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCallComplete(final int responseCode, String errorMessage, ArrayList<HashMap<String, String>> data1, Object data2) {\n\t\t\t\t\tif (responseCode == 200) {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile), getString(R.string.registration_successfully), getString(R.string.ok),\n\t\t\t\t\t\t\t\tR.layout.ijoomer_ok_dialog, new CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\n\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\"clearStackActivity\");\n\t\t\t\t\t\t\t\t\t\tintent.setType(\"text/plain\");\n\t\t\t\t\t\t\t\t\t\tsendBroadcast(intent);\n\t\t\t\t\t\t\t\t\t\tIjoomerWebService.cookies = null;\n\n\t\t\t\t\t\t\t\t\t\tloadNew(IjoomerLoginActivity.class, IPropertyRegistrationActivity.this, true);\n\t\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile),\n\t\t\t\t\t\t\t\tgetString(getResources().getIdentifier(\"code\" + responseCode, \"string\", getPackageName())), getString(R.string.ok), R.layout.ijoomer_ok_dialog,\n\t\t\t\t\t\t\t\tnew CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\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}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"@GetMapping(\"/showAddFormUser\")\n\tpublic String showAddForm(Model model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\t\n\t\t// add page title\n\t\tmodel.addAttribute(\"pageTitle\", \"Add User\");\n\t\treturn \"user-form\";\n\t}",
"@ModelAttribute(\"student\")\n public Student_gra_84 setupAddForm() {\n return new Student_gra_84();\n }",
"public NewUser() {\n initComponents();\n }",
"public String create() {\n\n if (log.isDebugEnabled()) {\n log.debug(\"create()\");\n }\n FacesContext context = FacesContext.getCurrentInstance();\n StringBuffer sb = registration(context);\n sb.append(\"?action=Create\");\n forward(context, sb.toString());\n return (null);\n\n }",
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}",
"@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }",
"@PostMapping( value = \"/new\", params = \"auto\" )\n public String createEventFormAutoPopulate( @ModelAttribute CreateEventForm createEventForm )\n {\n // provide default values to make user submission easier\n createEventForm.setSummary( \"A new event....\" );\n createEventForm.setDescription( \"This was autopopulated to save time creating a valid event.\" );\n createEventForm.setWhen( new Date() );\n\n // make the attendee not the current user\n CalendarUser currentUser = userContext.getCurrentUser();\n int attendeeId = currentUser.getId() == 0 ? 1 : 0;\n CalendarUser attendee = calendarService.getUser( attendeeId );\n createEventForm.setAttendeeEmail( attendee.getEmail() );\n\n return \"events/create\";\n }",
"public Signup() {\n initComponents();\n }",
"@RequestMapping(value = { \"/new\" }, method = RequestMethod.GET)\r\n public String newuser(ModelMap model) {\r\n User user = new User();\r\n model.addAttribute(\"user\", user);\r\n model.addAttribute(\"edit\", false);\r\n return \"registration\";\r\n\r\n }",
"@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}",
"public ProfilsFIForm() {\r\n\t\tsuper();\r\n\t}",
"public UserTypeForm() {\n\t\tthis(null);\n\t}",
"public Sign_up() {\n initComponents();\n }",
"@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}",
"public SignUp() {\n initComponents();\n }",
"public SignUp() {\n initComponents();\n }",
"public sign_up_page() {\n initComponents();\n }",
"@GetMapping(\"/new\")\n public ModelAndView addAttributesForm() {\n return new ModelAndView(\"/sessions/session-create.html\");\n }",
"public FundsVolunteerCreate(AppState appState) {\n initComponents();\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n btCancelar.setVisible(false);\n btSave.setVisible(false);\n btnRemove.setVisible(false);\n btnSaveEdit.setVisible(false);\n enableFields(false);\n this.appState = appState;\n }",
"@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public SignUP() {\n initComponents();\n }",
"public CreateProfile() {\n initComponents();\n }",
"@RequestMapping(value = \"/createPublisher\", method = RequestMethod.GET)\n\tpublic String setUpPublisherForm(@ModelAttribute Publisher publisher) { // equivalent to model.addAttribute(\"publisher\", new\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // Publisher());\n\t\treturn \"form/publisherForm\";\n\t}",
"public Sign_Up() {\n initComponents();\n }",
"private FormLayout initRegisterForm() {\r\n final FormLayout formLayout = new FormLayout();\r\n formLayout.getElement().getThemeList().removeAll(formLayout.getElement().getThemeList());\r\n formLayout.setClassName(StyleConstants.REGISTER_CONTENT.getName());\r\n\r\n nameField = new VTextField(getTranslation(\"name.label\"));\r\n\r\n lastNameField = new VTextField(getTranslation(\"lastName.label\"));\r\n\r\n birthDate = new VDatePicker(getTranslation(\"birthDate.label\"));\r\n birthDate.setMax(LocalDate.now().minusYears(5));\r\n birthDate.setMin(LocalDate.now().minusYears(100));\r\n final DatePickerI18n calendarLocalization = new DatePickerI18n();\r\n birthDate.setI18n(calendarLocalization);\r\n\r\n identificationNumberField = new VTextField(getTranslation(\"identificationNumber.label\"));\r\n identificationNumberField.addValueChangeListener(e -> {\r\n if (setErrorIfRequired(e.getSource().getElement(), !e.getValue().matches(\"^[0-9]*$\"), \"field.onlyNumbers\")) {\r\n return;\r\n }\r\n setErrorIfRequired(e.getSource().getElement(), e.getValue().length() < e.getSource().getMinLength(), \"field.minLength\", 4);\r\n });\r\n identificationNumberField.setMinLength(4);\r\n identificationNumberField.setMaxLength(8);\r\n identificationNumberField.setValueChangeMode(ValueChangeMode.EAGER);\r\n\r\n emailField = new VEmailField(getTranslation(\"email.label\"));\r\n emailField.setValueChangeMode(ValueChangeMode.EAGER);\r\n emailField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(), !e.getValue().matches(\"^\\\\w+@[a-zA-Z_]+?\\\\.[a-zA-Z]{2,3}$\"), \"field.notEmail\");\r\n });\r\n usernameField = new VTextField(getTranslation(\"username.label\"));\r\n\r\n passwordField = new VPasswordField(getTranslation(\"password.label\"));\r\n repeatPasswordField = new VPasswordField(getTranslation(\"repeatPassword.label\"));\r\n passwordField.setValueChangeMode(ValueChangeMode.EAGER);\r\n passwordField.setMinLength(5);\r\n passwordField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(), e.getValue().length() < e.getSource().getMinLength(), \"field.minLength\", 5);\r\n });\r\n\r\n repeatPasswordField.setValueChangeMode(ValueChangeMode.EAGER);\r\n repeatPasswordField.addValueChangeListener(e -> {\r\n setErrorIfRequired(e.getSource().getElement(),\r\n !e.getValue().equals(passwordField.getValue()) && StringUtils.isNotBlank(passwordField.getValue()), \"field.passwordNotMatch\");\r\n });\r\n\r\n professionSelect = new VSelect<>(getTranslation(\"profession.label\"));\r\n professionSelect.setItemLabelGenerator(item -> getTranslation(item.getProfessionTranslationKey()));\r\n professionSelect.setItems(Arrays.asList(Professions.values()));\r\n\r\n organizationSelect = new VSelect<>(getTranslation(\"organization.label\"));\r\n organizationSelect.setItemLabelGenerator(item -> item.getName());\r\n\r\n final VButton requestAccessButton = new VButton(getTranslation(\"requestAccess.label\"));\r\n requestAccessButton.addClassName(StyleConstants.BUTTON_BLUE.getName());\r\n requestAccessButton.addClickListener(e -> requestAccess());\r\n\r\n final RouterLink signInButton = new RouterLink(getTranslation(\"signIn.label\"), LoginView.class);\r\n\r\n formLayout.add(nameField, lastNameField, birthDate, identificationNumberField, emailField, usernameField, passwordField, repeatPasswordField,\r\n professionSelect, organizationSelect);\r\n formLayout.setColspan(requestAccessButton, 2);\r\n\r\n formLayout.add(requestAccessButton, signInButton);\r\n requestAccessButton.addClickListener(e -> {\r\n\r\n });\r\n return formLayout;\r\n }",
"public FormularioPregunta() {\n initComponents();\n \n setLocationRelativeTo(this);\n }",
"private void initForm() {\n\t\tfor (int i = 0; i < userRoles.size(); i++) {\n\t\t\tlb.addItem(userRoles.get(i).value);\n\t\t}\n\t}",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"public JFrmPagoCuotaAnulacion() {\n setTitle(\"JFrmPagoCuotaAnulacion\");\n initComponents();\n }",
"@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}",
"public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }",
"private void createForm(ArrayList<HashMap<String, String>> data) {\n\t\tLayoutInflater inflater = LayoutInflater.from(IPropertyRegistrationActivity.this);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT,\n\t\t\t\tandroid.widget.LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\tparams.topMargin = 10;\n\n\t\tfields = data;\n\t\tLinearLayout layout = null;\n\t\tint len = fields.size();\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tfinal HashMap<String, String> field = fields.get(j);\n\t\t\tView fieldView = inflater.inflate(R.layout.iproperty_registration_dynamic_view_item, null);\n\n\t\t\tif (field.get(TYPE).equals(LABEL)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrLabel));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditArea));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\n\t\t\t\tif (field.get(VALUE).toString().trim().length() > 0) {\n\t\t\t\t\tedit.setText(field.get(VALUE));\n\t\t\t\t} else {\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tfinal ImageView imgMap;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditMap));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\timgMap = ((ImageView) layout.findViewById(R.id.imgMap));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.state))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getAdminArea().replace(address.getCountryName() == null ? \"\" : address.getCountryName(), \"\")\n\t\t\t\t\t\t\t\t.replace(address.getPostalCode() == null ? \"\" : address.getPostalCode(), \"\"));\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(NAME).equalsIgnoreCase(getString(R.string.city_town))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getSubAdminArea());\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\timgMap.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditMap = edit;\n\t\t\t\t\t\tIntent intent = new Intent(IPropertyRegistrationActivity.this, IjoomerMapAddress.class);\n\t\t\t\t\t\tstartActivityForResult(intent, GET_ADDRESS_FROM_MAP);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(SELECT)) {\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrSpin));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tfinal Spinner spn;\n\t\t\t\tspn = ((Spinner) layout.findViewById(R.id.txtValue));\n\t\t\t\tspn.setAdapter(IjoomerUtilities.getSpinnerAdapter(field));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.country))) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tString country = address.getCountryName();\n\t\t\t\t\t\tint selectedIndex = 0;\n\t\t\t\t\t\tJSONArray jsonArray = null;\n\n\t\t\t\t\t\tjsonArray = new JSONArray(field.get(OPTIONS));\n\t\t\t\t\t\tint optionSize = jsonArray.length();\n\t\t\t\t\t\tfor (int k = 0; k < optionSize; k++) {\n\t\t\t\t\t\t\tJSONObject options = (JSONObject) jsonArray.get(k);\n\n\t\t\t\t\t\t\tif (options.getString(VALUE).equalsIgnoreCase(country)) {\n\t\t\t\t\t\t\t\tselectedIndex = k;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tspn.setSelection(selectedIndex);\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tspn.setSelection(0);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getDateDialog(((IjoomerEditText) v).getText().toString(), true, new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(TIME)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getTimeDialog(((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getMultiSelectionDialog(field.get(NAME), field.get(OPTIONS), ((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (field.get(REQUIRED).equalsIgnoreCase(\"1\")) {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME) + \" *\");\n\t\t\t} else {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t}\n\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\n\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrReadOnly));\n\t\t\tlayout.setVisibility(View.VISIBLE);\n\n\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t((IjoomerEditText) layout.findViewById(R.id.txtValue)).setText(field.get(VALUE));\n\t\t\tfieldView.setTag(field);\n\t\t\tlnr_form.addView(fieldView, params);\n\t\t}\n\t}",
"public abstract void addEditorForm();",
"public RegisterForm() {\n initComponents();\n }",
"public RegisterForm() {\n initComponents();\n }",
"public RegisterForm() {\n initComponents();\n }",
"public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\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}",
"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 AddUserView() {\n initComponents();\n }",
"public adduser() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public Formulario() {\n initComponents();\n }",
"public Admin_SignUp() {\n initComponents();\n }",
"public SignUpForm(Context ctx, AttributeSet attrs, int defStyle) {\n super(ctx, attrs, defStyle);\n init();\n }",
"public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}",
"public frmAfiliado() {\n initComponents();\n \n }",
"public SignUpController(SignupForm signup){\r\n this.signup = signup;\r\n }",
"@Token(save = true, validate = false)\n @Execute\n public HtmlResponse createpage(final SuggestBadWordEditForm form) {\n form.initialize();\n form.crudMode = CrudMode.CREATE;\n return asHtml(path_AdminSuggestbadword_EditJsp);\n }",
"U getCreateby();",
"public void register(String form /* should be a Form from GUI */){\n String email = \"email\";\n String nome_completo = \"full_name\";\n Date data_nascimento = new Date(1996-10-21);\n String password = getMd5(\"password\");\n String nif = \"nif\";\n String morada = \"morada\";\n String telemovel = \"telemovel\";\n User user = new User(email);\n if (!user.exists()){\n user.setNome_completo(nome_completo);\n user.setData_nascimento(data_nascimento);\n user.setPassword(password);\n user.setNif(nif);\n user.setMorada(morada);\n user.setTelemovel(telemovel);\n user.setAdmin(FALSE);\n //System registers person\n //db.register(user)\n }\n }",
"@GetMapping(\"register\")\n public String registerForm(Model model){\n model.addAttribute(\"user\", new User());\n return \"register_form\";\n }",
"@RequestMapping(\"/newuser\")\r\n\tpublic ModelAndView newUser() {\t\t\r\n\t\tRegister reg = new Register();\r\n\t\treg.setUser_type(\"ROLE_INDIVIDUAL\");\r\n\t\treg.setEmail_id(\"[email protected]\");\r\n\t\treg.setFirst_name(\"First Name\");\r\n\t\treg.setCity(\"pune\");\r\n\t\treg.setMb_no(new BigInteger(\"9876543210\"));\r\n\t\treturn new ModelAndView(\"register\", \"rg\", reg);\r\n\t}",
"private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }",
"@RequestMapping( method = RequestMethod.GET )\n\tpublic String showUserForm( ModelMap model, HttpServletRequest request ) {\n\t\tUsuario usuario = new Usuario();\n\t\tmodel.addAttribute( \"usuario\", usuario );\n\t\treturn \"Formulario\";\n\t}",
"@RequestMapping(value = \"/create\", method = RequestMethod.GET)\n public final String create(final ModelMap model) {\n model.addAttribute(REGISTER, new Register());\n return \"create\";\n }",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }",
"@Override\n\tpublic Pane generateForm() {\n\t\treturn painelPrincipal;\n\t}",
"@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}",
"@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}",
"@RequestMapping(\"/showForm\")\n\tpublic String showForm(Model theModel) {\n\t\tRegister theRegister = new Register();\n\t\t\n\t // add register object to the model\n\t\ttheModel.addAttribute(\"register\", theRegister);\n\t\t\n\t\treturn \"register-form\";\n\t}",
"public FormDataBuku() { //method FormDataBuku dengan hak akses publik\n initComponents(); //adalah method yang di generate oleh netbeans secara default. Kemudian juga terlihat ada method getter dan setter untuk variabel userList\n }",
"public formPrincipal() {\n initComponents();\n }",
"@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }",
"@RequestMapping(value = {\"/register\"}, method = RequestMethod.GET)\n public String newUser(ModelMap model) {\n User user = new User();\n Customer customer = new Customer();\n List<UserProfile> userProfileList = new ArrayList();\n user.setCustomer(customer);\n user.setUserProfileList(userProfileList);\n model.addAttribute(\"user\", user);\n model.addAttribute(\"edit\", false);\n model.addAttribute(\"action\", \"newuser\");\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n return \"registration\";\n }",
"public AddUser() {\n initComponents();\n }",
"public AddUser() {\n initComponents();\n }",
"public AddUser() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"protected abstract void addFormComponents(final Form<T> form);",
"public Element addForm(int screenId, int itemCount, FormProportion proportion, String title, String url) {\r\n\t\tElement form = mDocument.createElement(\"IppForm\");\r\n\t\tform.setAttribute(\"ItemCount\", String.valueOf(itemCount));\r\n\t\tform.setAttribute(\"Proportion\", proportion.getValue());\r\n\t\tmScreens.get(screenId).appendChild(form);\r\n\r\n\t\taddTextNode(form, \"Title\", title);\r\n\r\n\t\taddTextNode(form, \"Url\", url);\r\n\r\n\t\treturn form;\r\n\t}",
"private void createUIComponents() {\n }",
"public void actionPerformed(ActionEvent e)\n {\n UpravView v = new UpravView(view.getController());\n JFrame UprFrm = ViewFrame.CreateUpravView(v);\n }",
"@RequestMapping(value = { \"/newuser\" }, method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String newUser(ModelMap model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\tmodel.addAttribute(\"edit\", false);\n\t\treturn \"registration\";\n\t}",
"@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }",
"@GetMapping(\"/registration\")\n public String registration(Model model) {\n \t\n model.addAttribute(\"userForm\", new User());\n\n return \"registration\";\n }",
"@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}"
]
| [
"0.6708867",
"0.6115469",
"0.6083489",
"0.6075215",
"0.60476",
"0.6040203",
"0.59783113",
"0.5941599",
"0.59322196",
"0.59239274",
"0.5914983",
"0.5882518",
"0.58646184",
"0.5857528",
"0.5845491",
"0.5830408",
"0.57939243",
"0.57695526",
"0.5766027",
"0.57448673",
"0.573962",
"0.5724965",
"0.57231873",
"0.5711003",
"0.56904894",
"0.5686583",
"0.56859195",
"0.5671465",
"0.5652284",
"0.56516933",
"0.5650398",
"0.56358266",
"0.5630781",
"0.56210446",
"0.56153464",
"0.56073195",
"0.56017303",
"0.56017303",
"0.55997306",
"0.5598457",
"0.55905235",
"0.55697125",
"0.5566847",
"0.5564428",
"0.554837",
"0.5534348",
"0.5519248",
"0.5515509",
"0.55105186",
"0.55098605",
"0.5508778",
"0.55080014",
"0.5507739",
"0.5507117",
"0.5506723",
"0.55016863",
"0.55016863",
"0.55016863",
"0.5483108",
"0.54725885",
"0.54709893",
"0.5469547",
"0.5461303",
"0.5461141",
"0.54595727",
"0.54464024",
"0.54381096",
"0.5438042",
"0.54321957",
"0.5428267",
"0.5421619",
"0.5413678",
"0.54115754",
"0.54089606",
"0.5400024",
"0.53941196",
"0.5393778",
"0.5392216",
"0.53918314",
"0.53892976",
"0.538782",
"0.538097",
"0.53786314",
"0.53670424",
"0.5366313",
"0.5365348",
"0.53649265",
"0.53626454",
"0.5360209",
"0.5360209",
"0.5360209",
"0.53583705",
"0.5354336",
"0.53435075",
"0.5343285",
"0.5343253",
"0.5340792",
"0.53403443",
"0.5333891",
"0.5333079"
]
| 0.5493566 | 58 |
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() {
jTabbedPane2 = new javax.swing.JTabbedPane();
tab1 = new javax.swing.JPanel();
dividend = new javax.swing.JSpinner();
bonus = new javax.swing.JSpinner();
jLabel11 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
jLabel18 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
jLabel20 = new javax.swing.JLabel();
sumIncome = new javax.swing.JTextField();
jLabel21 = new javax.swing.JLabel();
jLabel22 = new javax.swing.JLabel();
salary = new javax.swing.JSpinner();
salaryYear = new javax.swing.JCheckBox();
anotherIncome = new javax.swing.JSpinner();
sumReduce = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jLabel23 = new javax.swing.JLabel();
jLabel24 = new javax.swing.JLabel();
jLabel25 = new javax.swing.JLabel();
jLabel26 = new javax.swing.JLabel();
jLabel27 = new javax.swing.JLabel();
jLabel28 = new javax.swing.JLabel();
jLabel29 = new javax.swing.JLabel();
childIn = new javax.swing.JSpinner();
parent = new javax.swing.JSpinner();
joint = new javax.swing.JCheckBox();
out = new javax.swing.JSpinner();
self = new javax.swing.JSpinner();
parentMoney = new javax.swing.JSpinner();
childInMoney = new javax.swing.JSpinner();
life = new javax.swing.JSpinner();
health = new javax.swing.JSpinner();
social = new javax.swing.JSpinner();
RMF = new javax.swing.JSpinner();
LTF = new javax.swing.JSpinner();
travelIn = new javax.swing.JSpinner();
buyHouse = new javax.swing.JSpinner();
buyIn = new javax.swing.JSpinner();
donateEdu = new javax.swing.JSpinner();
donate = new javax.swing.JSpinner();
marry = new javax.swing.JSpinner();
jLabel30 = new javax.swing.JLabel();
jLabel31 = new javax.swing.JLabel();
jLabel32 = new javax.swing.JLabel();
jLabel33 = new javax.swing.JLabel();
jLabel34 = new javax.swing.JLabel();
jLabel35 = new javax.swing.JLabel();
jLabel36 = new javax.swing.JLabel();
jLabel37 = new javax.swing.JLabel();
jLabel38 = new javax.swing.JLabel();
jLabel39 = new javax.swing.JLabel();
jLabel40 = new javax.swing.JLabel();
jLabel41 = new javax.swing.JLabel();
jLabel43 = new javax.swing.JLabel();
jLabel44 = new javax.swing.JLabel();
jLabel45 = new javax.swing.JLabel();
jLabel46 = new javax.swing.JLabel();
jLabel42 = new javax.swing.JLabel();
donateJing = new javax.swing.JSpinner();
jLabel47 = new javax.swing.JLabel();
sumDe = new javax.swing.JSpinner();
net = new javax.swing.JPanel();
jLabel4 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel48 = new javax.swing.JLabel();
netSum = new javax.swing.JTextField();
taxRe = new javax.swing.JTextField();
taxPlus = new javax.swing.JTextField();
taxbefore = new javax.swing.JSpinner();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jTabbedPane2.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
jTabbedPane2MouseClicked(evt);
}
});
tab1.setBackground(new java.awt.Color(255, 204, 204));
dividend.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
dividendStateChanged(evt);
}
});
bonus.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
bonusStateChanged(evt);
}
});
jLabel11.setText("บาท");
jLabel14.setText("เงินเดือน");
jLabel15.setText("บาท");
jLabel16.setText("โบนัส ");
jLabel17.setText("บาท");
jLabel18.setText("เงินปันผล");
jLabel19.setText("บาท");
jLabel20.setText("รายได้อื่นๆ");
sumIncome.setText(" 0");
sumIncome.addInputMethodListener(new java.awt.event.InputMethodListener() {
public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
}
public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
sumIncomeInputMethodTextChanged(evt);
}
});
sumIncome.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
sumIncomeActionPerformed(evt);
}
});
jLabel21.setText("รวมรายได้");
jLabel22.setText("บาท");
salary.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
salaryStateChanged(evt);
}
});
salaryYear.setBackground(new java.awt.Color(255, 204, 204));
salaryYear.setText("รวมยอดทั้งปี");
salaryYear.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
salaryYearStateChanged(evt);
}
});
salaryYear.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
salaryYearActionPerformed(evt);
}
});
anotherIncome.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
anotherIncomeStateChanged(evt);
}
});
javax.swing.GroupLayout tab1Layout = new javax.swing.GroupLayout(tab1);
tab1.setLayout(tab1Layout);
tab1Layout.setHorizontalGroup(
tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 424, Short.MAX_VALUE)
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(tab1Layout.createSequentialGroup()
.addGap(62, 62, 62)
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(tab1Layout.createSequentialGroup()
.addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(2, 2, 2)
.addComponent(salaryYear))
.addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel16, javax.swing.GroupLayout.PREFERRED_SIZE, 74, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel21))
.addGap(34, 34, 34)
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(tab1Layout.createSequentialGroup()
.addComponent(bonus, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel15))
.addGroup(tab1Layout.createSequentialGroup()
.addComponent(dividend, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel17))
.addGroup(tab1Layout.createSequentialGroup()
.addComponent(salary, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jLabel11))
.addGroup(tab1Layout.createSequentialGroup()
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(anotherIncome)
.addComponent(sumIncome))
.addGap(18, 18, 18)
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel19)
.addComponent(jLabel22))))
.addContainerGap(53, Short.MAX_VALUE)))
);
tab1Layout.setVerticalGroup(
tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 543, Short.MAX_VALUE)
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(tab1Layout.createSequentialGroup()
.addGap(104, 104, 104)
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel14)
.addComponent(salary, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(salaryYear)
.addComponent(jLabel11))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel16)
.addComponent(bonus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel15))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel18)
.addComponent(dividend, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel17))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel20)
.addComponent(anotherIncome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel19))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(tab1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel21)
.addComponent(sumIncome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel22))
.addContainerGap(314, Short.MAX_VALUE)))
);
jTabbedPane2.addTab("เงินได้พึงประเมิน", tab1);
sumReduce.setBackground(new java.awt.Color(204, 255, 204));
jLabel1.setText("ค่าใช้จ่าย");
jLabel2.setText("ค่าลดหย่อนส่วนตัว");
jLabel3.setText("ค่าลดหย่อนคู่สมรส");
jLabel5.setText("บุตร");
jLabel7.setText("ลดหย่อนบิดา-มารดา");
jLabel8.setText("เบี้ยประกันชีวิต");
jLabel10.setText("เบี้ยประกันสุขภาพบิดา-มารดา");
jLabel12.setText("เงินสมทบกองทุนประกันสังคม");
jLabel13.setText("ค่าซื้อหน่วยลงทุนในกองทุนรวมเพื่อการเลี้ยงชีพ");
jLabel23.setText("ค่าซื้อหน่วยลงทุนในกองทุนรวมหุ้นระยะยาว");
jLabel24.setText("ดอกเบี้ยเงินกู้ยืมเพื่อซื้อ เช่าซื้อ สร้างที่อยู่อาศัย");
jLabel25.setText("ค่าเดินทางท่องเที่ยวภายในประเทศ");
jLabel26.setText("ค่าซื้อสินค้าหรือบริการภายในประเทศ");
jLabel27.setText("เงินบริจาคสนับสนุนการศึกษา / กีฬา จ่ายจริง");
jLabel28.setText("เงินบริจาคอื่นๆ");
jLabel29.setText("รวมค่าใช้จ่าย รายการลดหย่อนและเงินได้ที่ได้รับการยกเว้นภาษี ");
childIn.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
childInStateChanged(evt);
}
});
parent.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
parentStateChanged(evt);
}
});
joint.setText("ยื่นร่วมกัน");
joint.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jointActionPerformed(evt);
}
});
out.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
outStateChanged(evt);
}
});
self.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
selfStateChanged(evt);
}
});
life.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
lifeStateChanged(evt);
}
});
health.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
healthStateChanged(evt);
}
});
social.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
socialStateChanged(evt);
}
});
RMF.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
RMFStateChanged(evt);
}
});
LTF.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
LTFStateChanged(evt);
}
});
travelIn.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
travelInStateChanged(evt);
}
});
buyHouse.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
buyHouseStateChanged(evt);
}
});
buyIn.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
buyInStateChanged(evt);
}
});
donateEdu.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
donateEduStateChanged(evt);
}
});
donate.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
donateStateChanged(evt);
}
});
jLabel30.setText("บาท");
jLabel31.setText("บาท");
jLabel32.setText("บาท");
jLabel33.setText("บาท");
jLabel34.setText("บาท");
jLabel35.setText("บาท");
jLabel36.setText("บาท");
jLabel37.setText("บาท");
jLabel38.setText("บาท");
jLabel39.setText("บาท");
jLabel40.setText("บาท");
jLabel41.setText("บาท");
jLabel43.setText("บาท");
jLabel44.setText("บาท");
jLabel45.setText("บาท");
jLabel46.setText("บาท");
jLabel42.setText("ที่ลดหย่อนได้(2เท่าแต่ไม่เกิน 10%หลังหักค่าใช้จ่าย)");
donateJing.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
donateJingStateChanged(evt);
}
});
jLabel47.setText("บาท");
sumDe.addChangeListener(new javax.swing.event.ChangeListener() {
public void stateChanged(javax.swing.event.ChangeEvent evt) {
sumDeStateChanged(evt);
}
});
javax.swing.GroupLayout sumReduceLayout = new javax.swing.GroupLayout(sumReduce);
sumReduce.setLayout(sumReduceLayout);
sumReduceLayout.setHorizontalGroup(
sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(sumReduceLayout.createSequentialGroup()
.addContainerGap()
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(sumReduceLayout.createSequentialGroup()
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jLabel12)
.addComponent(jLabel10)
.addGroup(sumReduceLayout.createSequentialGroup()
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel26)
.addComponent(jLabel24)
.addComponent(jLabel25)
.addComponent(jLabel23)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, sumReduceLayout.createSequentialGroup()
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(joint))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING, sumReduceLayout.createSequentialGroup()
.addComponent(jLabel7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(parent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(sumReduceLayout.createSequentialGroup()
.addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(childIn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING))
.addComponent(jLabel8)
.addComponent(jLabel2)
.addComponent(jLabel1)
.addComponent(jLabel27))
.addGap(95, 95, 95)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(life)
.addComponent(RMF)
.addComponent(LTF)
.addComponent(travelIn)
.addComponent(buyHouse)
.addComponent(buyIn)
.addComponent(social)
.addComponent(health)
.addComponent(childInMoney)
.addComponent(parentMoney)
.addComponent(out)
.addComponent(self)
.addComponent(marry)
.addComponent(donateEdu, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(sumReduceLayout.createSequentialGroup()
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel28)
.addComponent(jLabel29))
.addGap(23, 23, 23)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(donate)
.addComponent(sumDe))))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel30)
.addComponent(jLabel41)
.addComponent(jLabel38)
.addComponent(jLabel37)
.addComponent(jLabel36)
.addComponent(jLabel34)
.addComponent(jLabel35)
.addComponent(jLabel32)
.addComponent(jLabel33)
.addComponent(jLabel31)
.addComponent(jLabel43)
.addComponent(jLabel44)
.addComponent(jLabel46)
.addComponent(jLabel45)
.addComponent(jLabel39)
.addComponent(jLabel40)))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, sumReduceLayout.createSequentialGroup()
.addComponent(jLabel42)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(donateJing, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel47)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
sumReduceLayout.setVerticalGroup(
sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(sumReduceLayout.createSequentialGroup()
.addContainerGap()
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(out, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel46)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(self, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel45))
.addGap(18, 18, 18)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(joint))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(marry, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel43)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(childIn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(childInMoney, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel44)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(parent, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(parentMoney, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel30))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(life, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel31)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel10)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(health, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel33)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel12, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(social, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel32)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(RMF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel35)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel23, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(LTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel34)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel25, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(travelIn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel36)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(buyHouse, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel37)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(buyIn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel38)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel27)
.addComponent(donateEdu, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel40))
.addGap(18, 18, 18)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel42)
.addComponent(donateJing, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel47))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel28)
.addComponent(donate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel39))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(sumReduceLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel29)
.addComponent(jLabel41)
.addComponent(sumDe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(54, Short.MAX_VALUE))
);
jTabbedPane2.addTab("ค่าใช้จ่าย ค่าลดหย่อน", sumReduce);
net.setBackground(new java.awt.Color(0, 204, 204));
jLabel4.setText("ภาษีหัก ณ ที่จ่าย");
jLabel6.setText("รายได้พึงประเมิน สำหรับคำนวนภาษี");
jLabel9.setText("ภาษีที่ท่านสามารถขอคืน");
jLabel48.setText("ภาษีที่ท่านต้องจ่ายเพิ่ม");
netSum.setText(" 0");
netSum.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
netSumActionPerformed(evt);
}
});
taxRe.setText(" 0");
taxPlus.setText(" 0");
javax.swing.GroupLayout netLayout = new javax.swing.GroupLayout(net);
net.setLayout(netLayout);
netLayout.setHorizontalGroup(
netLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(netLayout.createSequentialGroup()
.addGap(83, 83, 83)
.addGroup(netLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(netLayout.createSequentialGroup()
.addComponent(jLabel9)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(taxRe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(netLayout.createSequentialGroup()
.addComponent(jLabel48)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(taxPlus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, netLayout.createSequentialGroup()
.addGroup(netLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, netLayout.createSequentialGroup()
.addComponent(jLabel6)
.addGap(18, 18, 18))
.addGroup(netLayout.createSequentialGroup()
.addComponent(jLabel4)
.addGap(105, 105, 105)))
.addGroup(netLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(taxbefore)
.addComponent(netSum))))
.addContainerGap(105, Short.MAX_VALUE))
);
netLayout.setVerticalGroup(
netLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(netLayout.createSequentialGroup()
.addGap(81, 81, 81)
.addGroup(netLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6)
.addComponent(netSum, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(netLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(taxbefore, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(netLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel9)
.addComponent(taxRe, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(netLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel48)
.addComponent(taxPlus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(365, Short.MAX_VALUE))
);
jTabbedPane2.addTab("ภาษีที่ต้องชำระ", net);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 429, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jTabbedPane2)
.addContainerGap())
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public MusteriEkle() {\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 UploadForm() {\n initComponents();\n }",
"public FormHorarioSSE() {\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 JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\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.73197734",
"0.72914416",
"0.72914416",
"0.72914416",
"0.72862023",
"0.72487676",
"0.7213741",
"0.7207628",
"0.7196503",
"0.7190263",
"0.71850693",
"0.71594703",
"0.7147939",
"0.7093137",
"0.70808756",
"0.70566356",
"0.6987119",
"0.69778043",
"0.6955563",
"0.6953879",
"0.6945632",
"0.6943359",
"0.69363457",
"0.6931661",
"0.6927987",
"0.6925778",
"0.6925381",
"0.69117576",
"0.6911631",
"0.68930036",
"0.6892348",
"0.6890817",
"0.68904495",
"0.6889411",
"0.68838716",
"0.6881747",
"0.6881229",
"0.68778914",
"0.6876094",
"0.6874808",
"0.68713",
"0.6859444",
"0.6856188",
"0.68556464",
"0.6855074",
"0.68549985",
"0.6853093",
"0.6853093",
"0.68530816",
"0.6843091",
"0.6837124",
"0.6836549",
"0.6828579",
"0.68282986",
"0.68268806",
"0.682426",
"0.6823653",
"0.6817904",
"0.68167645",
"0.68102163",
"0.6808751",
"0.680847",
"0.68083245",
"0.6807882",
"0.6802814",
"0.6795573",
"0.6794048",
"0.6792466",
"0.67904556",
"0.67893785",
"0.6789265",
"0.6788365",
"0.67824304",
"0.6766916",
"0.6765524",
"0.6765339",
"0.67571205",
"0.6755559",
"0.6751974",
"0.67510027",
"0.67433685",
"0.67390305",
"0.6737053",
"0.673608",
"0.6733373",
"0.67271507",
"0.67262334",
"0.67205364",
"0.6716807",
"0.67148036",
"0.6714143",
"0.67090863",
"0.67077154",
"0.67046666",
"0.6701339",
"0.67006236",
"0.6699842",
"0.66981244",
"0.6694887",
"0.6691074",
"0.66904294"
]
| 0.0 | -1 |
This method is called when the order button is clicked. | public void submitOrder(View view) {
String order = gatherOrder(view);
Uri uri = Uri.parse("mailto:" + "[email protected]")
.buildUpon()
.appendQueryParameter("to", "[email protected]")
.appendQueryParameter("subject", "Your pizza order")
.appendQueryParameter("body", order)
.build();
sendEmail(uri, "Select Email");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void orderClicked(View view) {\n Log.d(\"Method\", \"orderClicked()\");\n orderPlace();\n }",
"@Override\n\tpublic void processViewOrderButtonClick(ProcessViewOrderObjectEvent e) {\n\t\t\n\t}",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.btnOrder:\n onBtnOrderClick();\n break;\n default:\n break;\n }\n }",
"public void myorders() {\r\n\t\t\tdriver.findElement(orders).click();\r\n\t\t\t\r\n\t\t\t}",
"@Override\r\n public void run() {\n\r\n setNewOrder();\r\n canClick(true);\r\n }",
"@Override\n\tpublic void mousePressed(MouseEvent e)\n\t{\n\t\tif (e.getComponent() == jLTill)\n\t\t{\n\t\t\tArrayList<Order> tempOL = globalFrame.getTill().getOrders();\n\t\t\tglobalFrame.setOrder(tempOL.get(jLTill.getSelectedIndex()));\n\t\t\tglobalFrame.updateOrderItemList();\n\t\t\tglobalFrame.updateOrderList();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tPageUtil.jumpTo(MyOrderActivity.this, MyOrderAll.class);\n\t\t\t}",
"@Override\n\tpublic void eventSelectOrder() {\n\t\t\n\t}",
"private void orderHomePage() {\n setLayout(new FlowLayout(FlowLayout.CENTER));\n\n JButton button = new JButton(\"New Order\");\n add(button);\n\n button.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if (e.getSource() instanceof JButton) {\n JButton button1 = (JButton)e.getSource();\n\n if (button1.getText().equals(button.getText())) {\n removeAll(); // Removes everything from the panel\n message();\n orderFood();\n }\n }\n }\n });\n }",
"@Override\n public void onClick(View v) {\n CommonUtils.sendMsg(\"订单备餐中\", DeliveryActivity.SHOW_LOADING_TEXT, handler);\n List<String> list = new ArrayList<String>();\n list.add(odi.order_id);\n setDeliveryOrderDoing(list, position);\n\n }",
"@Override\r\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tnextOrder();\r\n\t\t\t\t\t\t}",
"@FXML\n\tpublic void newOrderButtonAction() {\n\t\t\n\t\tcurrentOrder = new NewOrder();\n\t\tVBox main = new VBox();\n\t\tVBox.setVgrow(main, Priority.ALWAYS);\n\t\tVBox.setMargin(main, new Insets(5));\n\t\tmain.setStyle(\"-fx-border-insets: 0; \"\n\t\t\t\t+ \"-fx-border-width: 2; \"\n\t\t\t\t+ \"-fx-border-color: black lightgray lightgray black\");\n\t\t/*\n\t\t * Create top and bottom part of the OrderBox and\n\t\t * update currentOrder with this Order's variables to \n\t\t * be referenced later.\n\t\t */\n\t\tHBox top = createTopOrderBox();\n\t\tVBox bot = createBottomOrderBox();\n\t\t\n\t\t//Combine the top and bottom part od the OrderBox\n\t\tmain.getChildren().addAll(top, bot);\n\t\t\n\t\t//Iterate the total number of orders for display on labels.\n\t\tnoOfOrders++;\n\t\t\n\t\tSeparator sep = new Separator();\n\t\t\n\t\t//Add the display pieces together and add to the Window\n\t\torderEntryBox.getChildren().addAll(main, sep);\n\t\t\n\t\t/*\n\t\t * Add the currentOrder now that it is complete.\n\t\t * These will be used to create ConfigOrders to\n\t\t * complete the ConfigFile.\n\t\t */\n\t\tnewOrders.add(currentOrder);\n\t}",
"@Override\n public void onClick(View v) {\n orderField = \"orderTime\";\n btn_single_time.setTextColor(getResources().getColor(R.color.colorff6c02));\n btn_array_time.setTextColor(getResources().getColor(R.color.color000000));\n submitInitOrRefreshOrSearch();\n }",
"@Override\n\tpublic void processNewOrderButtonClick(ProcessNewOrderObjectEvent e) {\n\t\n\t\tthis.currentAmount = 0.0;\t\t\n\t\tthis.currentItems.clear();\n\t\n\t}",
"@Override\n public void onClick(View v) {\n AddingToCartList();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(!order.get(position).getKitchenStaus().contentEquals(\"Completed\"))\n\t\t\t\t{\n\t\t\t\t\tString description=order.get(position).getVchFoodDescription();\n\t\t\t\t\tif (description != null && !description.isEmpty() && !description.equals(\"null\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tdescription=order.get(position).getVchFoodDescription();\n\t\t\t\t\t}else\n\t\t\t\t\t{\n\t\t\t\t\t\tdescription=\" \";\n\t\t\t\t\t}\n\t\t\t\t\tEditOrderDetailsActivity editOrderDetailsActivity = new EditOrderDetailsActivity();\n\t\t\t\t\tBundle args = new Bundle();\n\t\t\t\t\targs.putString(\"Id\", order.get(position).getId());\n\t\t\t\t\targs.putString(\"MenuName\", order.get(position).getMenu_Name());\n\t\t\t\t\targs.putString(\"Qty\", order.get(position).getQty());\n\t\t\t\t\targs.putString(\"Price\", order.get(position).getPrice());\n\t\t\t\t\targs.putString(\"OrderId\", order.get(position).getOrder_Id());\n\t\t\t\t\targs.putString(\"TableName\", order.get(position).getTable_Name());\n\t\t\t\t\targs.putString(\"pagename\",pagenamee);\n\t\t\t\t\targs.putString(\"FoodDescription\",description);\n\t\t\t\t\teditOrderDetailsActivity.setArguments(args);\n\t\t\t\t\tMainActivity.fragmentManager.beginTransaction().replace(R.id.content_main, editOrderDetailsActivity).commitAllowingStateLoss();\n\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(context,\"You Cannot Edited Or Delete this Order\",Toast.LENGTH_SHORT);\n\t\t\t\t}\n\n\t\t\t}",
"@Override\n public void onClick(View view) {\n String location = \"\";\n boolean met = false;\n if(method == 0){\n location = spTableChoice.getSelectedItem().toString();\n met = true;\n }else if(method == 1 && !etPickupName.getText().toString().isEmpty()){\n met = true;\n location = etPickupName.getText().toString();\n }else{\n Toast.makeText(getApplicationContext(), \"Please enter a pickup name!\", Toast.LENGTH_SHORT).show();\n }\n\n if(met){\n // Finalise the order as an order object\n order.setDestination(location);\n order.setOrderItems(orderHeld);\n order.setTotalPrice(totalPrice);\n\n addOrderDB();\n Toast.makeText(getApplicationContext(), \"Placed!\", Toast.LENGTH_SHORT).show();\n\n // Move to payment now\n //PayPalPay(totalPrice);\n }\n\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n adaptee.btnOrderTicket_actionPerformed(e);\r\n\t}",
"@Override\n public void onClick(View v) {\n\n new DrinkDatabase(getBaseContext()).DrinkaddToCart(new DrinkOrder(\n// new Database(getBaseContext()).addToCart(new Order(\n drinkId,\n currentDrink.getDrinkName(),\n drink_numberButton.getNumber(), //null,//use null to check or to run the program\n currentDrink.getDrinkPrice(),\n currentDrink.getDrinkDiscount()\n\n\n ));\n\n Toast.makeText(DrinkDetail.this, \"Added to chart\", Toast.LENGTH_SHORT).show();\n }",
"public void actionPerformed(ActionEvent e)\n\t\t\t\t\t{\n\t\t\t\t\t\tBuyerUIItem thisUIItem = (BuyerUIItem)order.getParent();\n\t\t\t\t\t\tint amountDesired = (int)spinner.getValue();\n\t\t\t\t\t\tif(_item.getQuantity() >= amountDesired && _item.inStock()) {\n\t\t\t\t\t\t\titemHelper.orderItem(thisUIItem, _item, amountDesired);\n\t\t\t\t\t\t\tquantity.setText(String.valueOf(_item.getQuantity()));\n\t\t\t\t\t\t\tnumModel.setValue(1);\t\t\t\t\t\t\t\n\t\t\t\t\t\t} else if(_item.inStock()) {\n\t\t\t\t\t\t\titemHelper.underStock(_item);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\titemHelper.stockOut(_item);\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"private void requestOrderDetail() {\n\n ModelHandler.OrderRequestor.requestOrderDetail(client, mViewData.getOrder().getId(), (order) -> {\n mViewData.setOrder(order);\n onViewDataChanged();\n }, this::showErrorMessage);\n }",
"private void acceptOrder() {\n buttonAcceptOrder.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n order.setDriver(ParseUser.getCurrentUser());\n order.saveInBackground();\n Log.i(TAG, \"driver!!: \" + order.getDriver().getUsername());\n ParseUser.getCurrentUser().put(KEY_HAS_ORDER, true);\n ParseUser.getCurrentUser().saveInBackground();\n\n finish();\n }\n });\n }",
"public void submitOrder() {\n int price = quantity*5;\n displayPrice(price);\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tboolean allOK = true;//boolean allOk is set to true\n\t\t\t\t\tString order = orderTextField.getText();//get text within the textfield\n\t\t\t\t\tif (order.equals(\"\")) {//if the textfield is blank nothing happens...\n\t\t\t\t\t\tallOK=false;\n\t\t\t\t\t}\n\t\t\t\t\tif (allOK==true) {//if allOk is set to true then....\n\t\t\t\t\t\t//Order orders = new Order(order);//\n\t\t\t\t\t\tRestaurant.runMyRestaurant(order);//Restaurant class is called\n\t\t\t\t\t}\n\t\t\t\t\t}",
"public void ordersToDoControl()\n\t{\n\t\tviewOrdersToDo = new OrdersToDoView();\n\t\ttry\n\t\t{\n\t\t\tArrayList<BookInformation> allBooks = adminModel.loadOrdersToDo();\n\t\t\tviewOrdersToDo.showTable(allBooks);\n\t\t}\n\t\tcatch(NullPointerException e)\n\t\t{\n\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t}\n\t\tcatch(SQLException e)\n\t\t{\n\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t}\n\t\tviewOrdersToDo.showMe();\n\t \n\t\tviewOrdersToDo.setMainMenuActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tAdminController con = new AdminController(adminModel);\n\t\t\t\tcon.adminMainMenuControl();\n\t\t\t\tviewOrdersToDo.closeFrame();\t\n\n\t\t\t}\n\t\t});\n\t\tviewOrdersToDo.setMakeOrderActionListener(new ActionListener(){\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tArrayList<Integer> ordersToDo = viewOrdersToDo.getSelectedOrders();\n\t\t\t\t\tfor(Integer id : ordersToDo)\n\t\t\t\t\t{\n\t\t\t\t\t\tadminModel.confirmOrder(id);\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tcatch(NullPointerException e)\n\t\t\t\t{\n\t\t\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t\t\t}\n\t\t\t\tcatch(SQLException e)\n\t\t\t\t{\n\t\t\t\t\tviewOrdersToDo.showMessage(\"Blad polaczenia z baza : \"+ e);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t}",
"public void onClickOrder(View view) {\n\n //The Functions bellow are converting intiger values into strings which can then be written to the arduino via a Serial Connection\n String VodkaOrder = Integer.toString(Vodka_Measure);\n String RumOrder = Integer.toString(Rum_Measure);\n String GinOrder = Integer.toString(Gin_Measure);\n String WhiskeyOrder = Integer.toString(Whiskey_Measure);\n String TonicWaterOrder = Integer.toString(TonicWater_Measure);\n String CranberryJuiceOrder = Integer.toString(CranberryJuice_Measure);\n String OrangeJuiceOrder = Integer.toString(OrangeJuice_Measure);\n String PineappleJuiceOrder = Integer.toString(Pineapple_Measure);\n String MintOrder = Integer.toString(Mint_Measure);\n String SugarOrder = Integer.toString(Sugar_Measure);\n String LimeJuiceOrder = Integer.toString(Lime_Measure);\n String LimeSliceOrder = Integer.toString(Lime_Slice);\n String StirOrder = Integer.toString(Stir);\n String MashOrder = Integer.toString(Mash);\n String ShakeOrder = Integer.toString(Shake);\n String IceOrder = Integer.toString(Ice_Measure);\n String KaluaOrder = Integer.toString(Kalua);\n String CointreauOrder = Integer.toString(Cointreau);\n String VermouthOrder = Integer.toString(Vermouth);\n String PeachSchnappsOrder = Integer.toString(Peach_Schnapps);\n String CreamDeCacoOrder = Integer.toString(Cream_De_Cacao);\n String DrinkSizeOrder = Integer.toString(DrinkSize);\n\n //Actually writing the data to the arduino using the new strings created above\n serialPort.write(VodkaOrder.getBytes());\n serialPort.write(RumOrder.getBytes());\n serialPort.write(GinOrder.getBytes());\n serialPort.write(WhiskeyOrder.getBytes());\n serialPort.write(TonicWaterOrder.getBytes());\n serialPort.write(CranberryJuiceOrder.getBytes());\n serialPort.write(OrangeJuiceOrder.getBytes());\n serialPort.write(PineappleJuiceOrder.getBytes());\n serialPort.write(MintOrder.getBytes());\n serialPort.write(SugarOrder.getBytes());\n serialPort.write(LimeJuiceOrder.getBytes());\n serialPort.write(LimeSliceOrder.getBytes());\n serialPort.write(StirOrder.getBytes());\n serialPort.write(MashOrder.getBytes());\n serialPort.write(ShakeOrder.getBytes());\n serialPort.write(IceOrder.getBytes());\n serialPort.write(KaluaOrder.getBytes());\n serialPort.write(CointreauOrder.getBytes());\n serialPort.write(VermouthOrder.getBytes());\n serialPort.write(PeachSchnappsOrder.getBytes());\n serialPort.write(CreamDeCacoOrder.getBytes());\n serialPort.write(DrinkSizeOrder.getBytes());\n\n //A small text so the user knows what he/she ordered!\n\n tvAppend(textView, \"\\nYour Drink Order is one \" + DrinkSizeText + \" \" + DrinkName + \" (\" + DrinkType + \")\" + \"\\n\");\n\n\n\n\n myDialog.dismiss(); //Closes the popup after the order button is pressed, and order data is sent\n\n\n\n }",
"public void viewOrderDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"OrdersTab\"), \"OrdersTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnOrderDetails\"), \"Order Details Button\");\t\n\t}",
"public void setOrder(Order order){\n this.order = order;\n }",
"@Override\r\n\tpublic void onButtonClicked() {\n\t\tclientFactory.getPlaceController().goTo(\r\n\t\t\t\tnew CellTableSortingPlace(\"sortingtable\"));\r\n\t}",
"void navigateToOrderingDonut() {\n Intent gotoOrderDonut = new Intent(this, OrderingDonutActivity.class);\n startActivity(gotoOrderDonut);\n }",
"@Override\n\tpublic void processFinishOrderButtonClick(ProcessFinishOrderObjectEvent e) {\n\t\t\n\t}",
"@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tbizOrder.SaveOrder(order);\r\n\t\t\t\t\t\t\tbizOrder.PrintOrder(order);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(\r\n\t\t\t\t\t\t\t\t\tUITable.this);\r\n\t\t\t\t\t\t\tbuilder.setMessage(\"Connect error\").show();\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}",
"public void EditOrderTest() {\n wait.until(ExpectedConditions.visibilityOfElementLocated(editOrderQuantityLocator));\n WebElement editOrderQuantity = driver.findElement(editOrderQuantityLocator);\n editOrderQuantity.click();\n // Click on the checkout button\n By goToCheckOutBtnLocator = By.xpath(\"//div[@class='Basket-bf28b64c20927ec7']//button[contains(@class,'ccl-d0484b0360a2b432')]\");\n wait.until(ExpectedConditions.visibilityOfElementLocated(goToCheckOutBtnLocator));\n WebElement goToCheckOutBtn = driver.findElement(goToCheckOutBtnLocator);\n goToCheckOutBtn.click();\n // Check that the order added to the basket\n By basketSectionSummaryLocator = By.className(\"ccl-9aab795066526b4d ccl-24c197eb36c1c3d3\");\n wait.until(ExpectedConditions.visibilityOfElementLocated(basketSectionSummaryLocator));\n\n }",
"public void clickOrders() throws InterruptedException{\n\t\tThread.sleep(1000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"OrdersLnk\"), \"Orders\"); \n\t\tThread.sleep(1000);\n\t}",
"@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}",
"@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}",
"@Override\n\tpublic void confirmOrders() {\n\t\t\n\t}",
"public void onClickDelivery(View view) {\n savePreferences();\n Intent intent = new Intent(this, ActDelivery.class);\n\n // Passing order information using Intent.putString();\n intent.putExtra(\"items\", new String[]{(String) spEntree.getSelectedItem(),\n (String) spDrink.getSelectedItem(), (String) spDessert.getSelectedItem()});\n intent.putExtra(\"subtotal\", subtotal);\n\n startActivity(intent);\n }",
"@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tcommmitAllOrders(orderList);\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent();\n\t\t\t\tintent.setClass(WxcOrderActivity.this, WxcMainActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}",
"void navigateToCurrentOrder() {\n Intent gotoCurrentOrder = new Intent(this, CurrentOrderActivity.class);\n startActivity(gotoCurrentOrder);\n }",
"public void submitOrder(View view) {\n //int price = calculatePrice();\n String priceMessage = createOrderSummary();\n\n displayMessage(priceMessage);\n\n }",
"public void actionPerformed(ActionEvent event) {\n\t\t\t//Finds the source of the ActionEvent\n\t Object source = event.getSource();\n\t\t\t\n\t //If the add random order button was clicked it calls a method to add a random order\n\t\t\tif(source == addO)\n\t\t\t{\n\t\t\t\taddOrder();\n\t\t\t}\n\t\t\t//If the add random order button was clicked it calls a method to add a random order\n\t\t\telse if(source == serveO)\n\t\t\t{\n\t\t\t\tserveOrder();\n\t\t\t}\n\t\t\t//Updates view\n\t\t\tconeList.validate();\n\t\t\trepaint();\n\t\t\t\n\t\t}",
"public void addToOrder() {\n OrderLine orderLine = new OrderLine(order.lineNumber++, sandwhich, sandwhich.price());\n order.add(orderLine);\n ObservableList<Extra> selected = extraSelected.getItems();\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n extraOptions.getItems().addAll(selected);\n extraSelected.getItems().removeAll(selected);\n pickSandwhich();\n\n\n\n }",
"public confirm_order() {\n initComponents();\n }",
"public void linktomyorderseditbuttonPressed(javafx.event.ActionEvent event) throws IOException {\r\n Parent myorderseditParent = FXMLLoader.load(getClass().getResource(\"myOrdersEdit.fxml\"));\r\n Scene myorderseditScene = new Scene(myorderseditParent);\r\n Stage window = (Stage)((Node)event.getSource()).getScene().getWindow();\r\n window.setScene(myorderseditScene);\r\n window.show();\r\n }",
"private void onPaymentButtonClicked() {\n if (cartList == null || cartList.size() < 1) {\n Toast.makeText(getContext(), \"Your cart is empty!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (studentDetails[0] == null) {\n Toast.makeText(getContext(), \"Enter Student ID first\", Toast.LENGTH_SHORT).show();\n studentIdText.requestFocus();\n return;\n }\n\n final PaymentDialog dialog = new PaymentDialog(getActivity(), total, studentDetails[0]);\n\n if (dialog.getWindow() != null) {\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);\n }\n\n dialog.setCancelable(false);\n dialog.show();\n dialog.setOnOrderCompleteListener(transactionList -> {\n showProgressDialog();\n orderCompleted(transactionList);\n\n dialog.dismiss();\n });\n Objects.requireNonNull(dialog.getWindow()).clearFlags(WindowManager.\n LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);\n }",
"void showOrdersGui();",
"@Override\n public void onClick(View v) {\n CommonUtils.sendMsg(\"获取订单详情\", DeliveryActivity.SHOW_LOADING_TEXT, handler);\n\n ApisManager.getOrderDetailInfoByOrderId(odi.order_id, new ApiCallback() {\n @Override\n public void success(Object object) {\n CommonUtils.sendMsg(\"\", DeliveryActivity.HIDE_LOADING, handler);\n OrderDetailInfo odi = new OrderDetailInfo();\n JSONObject obj = (JSONObject) object;\n JSONObject objSO = obj.getJSONObject(\"store_order\");\n StoreOrder so = com.alibaba.fastjson.JSONObject.parseObject(CommonUtils.converBooleanToInt(objSO.toString()), StoreOrder.class);\n odi.store_order = so;\n odi.take_serial_number = so.take_serial_number;\n odi.list_charge_items_all = so.order_items;\n\n Message msg = new Message();\n msg.what = DeliveryActivity.SHOW_ORDER_DETAIL_INFO;\n msg.obj = odi;\n handler.sendMessage(msg);\n }\n\n @Override\n public void error(BaseApi.ApiResponse response) {\n CommonUtils.sendMsg(\"\", DeliveryActivity.HIDE_LOADING, handler);\n CommonUtils.sendMsg(response.error_message, DeliveryActivity.SHOW_ERROR_MESSAGE, handler);\n }\n });\n\n }",
"public void onClickOrderName(View view){\n Intent intent = new Intent(this, ViewOrderedCWListActivity.class); //create a new intent and point it at the ViewOrderedCWList activity\n intent.putExtra(EXTRA_MESSAGE, \"Name\"); //add the \"Name\" string as a message in the intent, used to differentiate the calls to ViewOrderedCWList\n startActivity(intent); //start the new activity\n\n }",
"@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 }",
"@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}",
"private void setOrderField() \n\t{\n\t\tString size = currentOrder.get(\"size\");\n\t\tString temperature = currentOrder.get(\"drinkTemperature\");\n\t\tString drinkName = currentOrder.get(\"name\");\n\t\t\n\t\torderField.setText(\"Order Status: \" + size + \" \" + temperature + \" \" + drinkName);\n\t}",
"private void receiveOrder() {\n Intent intent = getIntent();\n MyOrder order = (MyOrder) intent.getSerializableExtra(getResources().getString(R.string.intentMesOrder));\n String help;\n final ArrayList<String> listing = new ArrayList<String>();\n ArrayAdapter<String> adap = new ArrayAdapter<String>(this,\n android.R.layout.simple_list_item_1, listing);\n tableSauceString = order.findTableSauce();\n\n switch (intent.getExtras().getInt(getResources().getString(R.string.intentMesOrderType))) { // depending on the order type the received information are displayed\n case 1:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption) +\" \" +\n getResources().getString(R.string.rdbtPizzeria).toString());\n firstInfo.setText(getResources().getString(R.string.stringPartTable) + \" \" +\n String.valueOf(intent.getExtras().getInt(getResources()\n .getString(R.string.intentMesTable))));\n break;\n case 2:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption)+ \" \" +\n getResources().getString(R.string.rdbtTakeaway).toString());\n firstInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesPacking)));\n secondInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesTime)));\n break;\n case 3:\n txtOrderType.setText(getResources().getString(R.string.stringPartOption)+ \" \" +\n getResources().getString(R.string.rdbtDelivery).toString());\n firstInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesAddress)));\n secondInfo.setText(intent.getExtras().getString(getResources().getString(R.string.intentMesPhone)));\n break;\n }\n help = String.format(\"%.2f\", order.getTotal());\n txtMoney.setText(help + getResources()\n .getString(R.string.currency));\n\n if(!(tableSauceString.equals(getResources().getString(R.string.stringNone)))){\n help = String.format(\"%.2f\", order.getTableSaucePrice());\n txtTableSauce.setText(getResources().getString(R.string.stringPartSauce)+\" \"\n + tableSauceString + \"(\" + help+ getResources().getString(R.string.currency) +\" )\");\n }\n\n helpTitle = order.writeOrder();\n helpInfo = order.getMoreOrder();\n for (int i = 0; i < helpTitle.length; i++) {\n if (helpTitle[i] != null) {\n listing.add(helpTitle[i]);\n }\n }\n list.setAdapter(adap);\n list.setOnItemLongClickListener(this);\n }",
"public void orderPlace() {\n Log.d(\"Method\", \"orderPlaced()\");\n\n if (coffeeCount < getResources().getInteger(R.integer.min_coffee)) {\n Log.e(\"\", \"coffeeCount < minimum coffee order\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.min_order_message), getResources().getInteger(R.integer.min_coffee)));\n } else if (coffeeCount > getResources().getInteger(R.integer.max_coffee)) {\n Log.e(\"\", \"coffeeCount > maximum coffee order\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.max_order_message), getResources().getInteger(R.integer.max_coffee)));\n } else {\n Log.i(\"\", \"Order placed: \" + coffeeCount + \" coffee.\");\n displayMessage(String.format(Locale.getDefault(), getString(R.string.order_thanks), 176));\n }\n resetQuantity();\n }",
"public static void viewOrder() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out.println(\"************Viewing existing orders************\");\n\t\t// TODO - implement RRPSS.viewOrder\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\t\tOrderedPackageManager orderedPackageManager = new OrderedPackageManager();\n\t\tList listOfOrderedPromotionalPackage = null;\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\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\ttry {\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 view 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\tlistOfOrderedItems = orderedItemManager\n\t\t\t\t\t.retrieveOrderedItemsByOrderID(order.getId());\n\t\t\tlistOfOrderedPromotionalPackage = orderedPackageManager\n\t\t\t\t\t.retrieveOrderedPackageByOrderID(order.getId());\n\n\t\t\tif (listOfOrderedItems.size() == 0\n\t\t\t\t\t&& listOfOrderedPromotionalPackage.size() == 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\tSystem.out.println(\"Order is empty!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t\tif (listOfOrderedItems.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"All Cart Items Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedItems.size(); j++) {\n\t\t\t\t\tOrderedItem orderedItem = (OrderedItem) listOfOrderedItems\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedItem.getItem().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedItem.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tif (listOfOrderedPromotionalPackage.size() > 0) {\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println(\"Promotional Packages Ordered:\");\n\n\t\t\t\tfor (int j = 0; j < listOfOrderedPromotionalPackage.size(); j++) {\n\t\t\t\t\tOrderedPackage orderedPackage = (OrderedPackage) listOfOrderedPromotionalPackage\n\t\t\t\t\t\t\t.get(j);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((j + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ orderedPackage.getPackage().getName() + \" | $\"\n\t\t\t\t\t\t\t+ orderedPackage.getPrice());\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\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 viewing orders************\");\n\t}",
"public void onAction(IClientContext context, IGuiElement button) throws Exception\n\t{\n IDataTableRecord activeCampaign = TC.getActiveCampagne(context);\n \n // check whether the given object already has an order in the future\n //\n IDataTableRecord objectRecord = context.getSelectedRecord();\n IDataAccessor accessor = context.getDataAccessor();\n accessor.qbeClearAll();\n \n IDataTable orderTable = accessor.getTable(\"tc_order\");\n orderTable.qbeSetKeyValue(\"tc_object_key\", objectRecord.getValue(\"pkey\"));\n \n IDataTable capacityTable = accessor.getTable(\"tc_capacity\");\n capacityTable.qbeSetKeyValue(\"tc_campaign_key\", activeCampaign.getValue(\"pkey\"));\n capacityTable.qbeSetValue(\"slot\", \">now\");\n \n IDataBrowser orderBrowser = accessor.getBrowser(\"tc_orderBrowser\");\n orderBrowser.search(\"r_tc_order\", Filldirection.BACKWARD);\n if (orderBrowser.recordCount() > 0)\n {\n IOkCancelDialog dialog = context.createOkCancelDialog(\"Für das Fahrzeug wurde bereits eine Buchung angelegt.\\\\n Buchung des Fahrzeuges anzeigen?\", new ObjectOrderExistsCallback(orderBrowser));\n dialog.show();\n return;\n }\n\n // check whether a customer has been selected\n //\n IDataTableRecord customerRecord = context.getDataTable(\"tc_customer\").getSelectedRecord();\n if (customerRecord == null)\n {\n throw new BusinessException(\"Es wurde bisher kein Kunde ausgewählt!\");\n }\n \n // check whether the given customer already has an order in the future\n //\n accessor.qbeClearAll();\n orderTable.qbeSetKeyValue(\"tc_customer_key\", customerRecord.getValue(\"pkey\"));\n capacityTable.qbeSetKeyValue(\"tc_campaign_key\", activeCampaign.getValue(\"pkey\"));\n capacityTable.qbeSetValue(\"slot\", \">now\");\n \n orderBrowser.search(\"r_tc_order\", Filldirection.BACKWARD);\n if (orderBrowser.recordCount() > 0)\n {\n FormLayout layout = new FormLayout(\"10dlu,p,10dlu\", \"20dlu,p,20dlu\");\n\n IFormDialog dialog = context.createFormDialog(\"Buchung vorhanden\", layout, new CustomerOrderExistsCallback(orderBrowser));\n CellConstraints c = new CellConstraints();\n if (orderBrowser.recordCount() == 1)\n dialog.addLabel(\"Der Kunde hat bereits eine Buchung beauftragt. Mit der Terminberechnung fortfahren oder Buchung anzeigen?\", c.xy(1, 1));\n else\n dialog.addLabel(\"Der Kunde hat bereits mehrere Buchungen beauftragt. Mit der Terminberechnung fortfahren oder Buchungen anzeigen?\", c.xy(1, 1));\n\n dialog.addSubmitButton(PROCEED_BUTTON_ID, \"Fortfahren\");\n if (orderBrowser.recordCount() == 1)\n dialog.addSubmitButton(SHOW_ORDER_BUTTON_ID, \"Buchung anzeigen\");\n else\n dialog.addSubmitButton(SHOW_ORDER_BUTTON_ID, \"Buchungen anzeigen\");\n dialog.setCancelButton(\"Abbrechen\");\n\n dialog.show(350, 120);\n return;\n }\n\n // everything already -> proceed\n doit(context);\n\t}",
"public void payForOrder(){\n\t\tcurrentOrder.setDate(new Date()); // setting date to current\n\t\t\n\t\t//Checking if tendered money is enough to pay for the order.\n\t\tfor(;;){\n\t\t\tJOptionPane.showMessageDialog(this.getParent(), new CheckoutPanel(currentOrder), \"\", JOptionPane.PLAIN_MESSAGE);\n\t\t\tif(currentOrder.getTendered().compareTo(currentOrder.getSubtotal())==-1){\n\t\t\t\tJOptionPane.showMessageDialog(this.getParent(), \"Not enough money tendered\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//Setting order number.\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tString str = df.format(currentOrder.getDate());\n\t\tString number = Integer.toString(till.getOrders().size()+1) +\"/\"+str;\n\t\tcurrentOrder.setNumber(number);\n\t\t\n\t\t//Setting customer name.\n\t\tcurrentOrder.setCustomerName(custNameField.getText());\n\t\t\n\t\t//Adding current order to orders list.\n\t\ttill.getOrders().add(currentOrder); \n\t\t\n\t\t//Displays the receipt.\n\t\tJOptionPane.showMessageDialog(this.getParent(), new ReceiptPanel(currentOrder), \"Receipt\", \n\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\t\n\t\t//Resets OrderPanel.\n\t\tthis.resetOrder();\n\t}",
"public void submitOrder(BeverageOrder order);",
"private void checkToMyOrder() {\n toolbar.setTitle(R.string.my_order);\n MyOrderFragment myOrderFragment = new MyOrderFragment();\n displaySelectedFragment(myOrderFragment);\n }",
"@Override\n public void OnOkButtonPressed(OrderDetail detail) {\n orderListAdpater.addOrderDetail(detail);\n orderListAdpater.setSelectedIndex(orderListAdpater.getCount() - 1);\n orderList.setSelection(orderListAdpater.getCount());\n\n// if (orderListAdpater.orderDetailList.size() == 1) {\n orderListAdpater.notifyDataSetChanged();\n// }\n onOrderUpdate();\n\n }",
"public void submitOrder(View view) {\n EditText getName = (EditText)findViewById(R.id.name_field);\n String nameValue = getName.getText().toString();\n\n CheckBox whippedCreamCheckBox = (CheckBox) findViewById(R.id.Whipped_cream_checkbox);\n boolean hasWhippedCream = whippedCreamCheckBox.isChecked();\n\n CheckBox chocolateCheckBox = (CheckBox) findViewById(R.id.Chocolate_checkbox);\n boolean hasChocolate = chocolateCheckBox.isChecked();\n\n CheckBox CinnamonCheckBox = (CheckBox) findViewById(R.id.Cinnamon_checkbox);\n boolean hasCinnamon = CinnamonCheckBox.isChecked();\n\n CheckBox MarshmallowsCheckBox = (CheckBox) findViewById(R.id.Marshmallows_checkbox);\n boolean hasMarshmallows = MarshmallowsCheckBox.isChecked();\n\n int price = calculatePrice(hasWhippedCream, hasChocolate, hasMarshmallows, hasCinnamon);\n String priceMessage = createOrderSummary(nameValue, price, hasWhippedCream,hasChocolate, hasCinnamon, hasMarshmallows);\n /*displayMessage(priceMessage);*/\n // Use an intent to launch an email app.\n // Send the order summary in the email body.\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\n intent.putExtra(Intent.EXTRA_SUBJECT, \"JustJava order for \" + nameValue);\n intent.putExtra(Intent.EXTRA_TEXT, priceMessage);\n\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"public void actionPerformed(ActionEvent event) {\n\t\t\n\t\tint order = drawing.getOrder();\n\t\tif (event.getSource() == increase) {\n\t\t\tif (order < MAX)\n\t\t\t\torder++;\n\t\t}\n\t\telse {\n\t\t\tif (order > MIN)\n\t\t\t\torder--;\n\t\t}\n\t\torderLabel.setText(\"Order: \" + order);\n\t\tdrawing.setOrder(order);\n\t\trepaint();\n\t}",
"public orderView() {\n initComponents();\n }",
"@Override\n public void onClick(View view) {\n String enteredQuantity = etEditQuantity.getText().toString().trim();\n\n // Check to see if quantity has been entered and set it as the quantity if it has.\n if (!enteredQuantity.equals(\"\")) {\n quantity = Integer.parseInt(enteredQuantity);\n }\n\n // Set the quantity to zero if quantity has been entered and then removed,\n // so that the buttons work properly.\n if (enteredQuantity.equals(\"\")) {\n quantity = 0;\n }\n\n // Perform action on click.\n switch (view.getId()) {\n // Action to perform when the decrease button is clicked.\n case R.id.btn_decrease:\n // Don't allow quantity to go below zero.\n if (quantity == 0) {\n Toast.makeText(this, R.string.minimum_quantity,\n Toast.LENGTH_SHORT).show();\n return;\n }\n\n // Decrease the quantity and set the value in the quantity TextView.\n quantity--;\n etEditQuantity.setText(String.valueOf(quantity));\n break;\n\n // Action to perform when the increase button is clicked.\n case R.id.btn_increase:\n // Increase the quantity and set the value in the quantity TextView.\n quantity++;\n etEditQuantity.setText(String.valueOf(quantity));\n break;\n\n // Action to perform when the order button is clicked.\n case R.id.btn_order:\n // Create an intent to call the supplier.\n Intent callSupplier = new Intent(Intent.ACTION_DIAL);\n callSupplier.setData(Uri.parse(\"tel:\" + supplierPhoneNumber));\n // Make sure an app is installed to complete this action.\n if (callSupplier.resolveActivity(getPackageManager()) != null) {\n // Start the intent if there is an app installed to handle the intent.\n startActivity(callSupplier);\n } else {\n // Show a toast if there isn't an app installed to handle the intent.\n Toast.makeText(getApplication(), R.string.install_phone_app,\n Toast.LENGTH_SHORT).show();\n }\n }\n }",
"public SMplace_order() {\n initComponents();\n table();\n }",
"@Override\n public void onClick(View view) {\n switch (view.getId()) {\n\n // If the addWeight FAB is clicked\n case R.id.weightTableAddButton:\n if (mSelectedWeightPosition != RecyclerView.NO_POSITION) {\n mActionMode.finish();\n }\n Navigation.findNavController(getView()).navigate(R.id.navigation_add_weight);\n break;\n default:\n if (mActionMode != null) {\n mActionMode.finish();\n }\n break;\n }\n }",
"public void onClickOrderWeight(View view){\n Intent intent = new Intent(this, ViewOrderedCWListActivity.class); //create a new intent and point it at the ViewOrderedCWList activity\n intent.putExtra(EXTRA_MESSAGE, \"Weight\"); //add the \"Weight\" string as a message in the intent, used to differentiate the calls to ViewOrderedCWList\n startActivity(intent); //start the new activity\n\n }",
"public void onOrderAdded(OrderEntry orderEntry);",
"@Override\n public void actionPerformed(ActionEvent e) {\n int id = waiterGraphicalUserInterface.getId();\n Order order = restaurant.getOrder(id);\n FileWriter fileWriter = new FileWriter(restaurant,order);\n }",
"public void submitOrder(View view) {\n /* invoke email app and include order summary in the mail body */\n final Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, Constants.NEW_ORDER_SUBJECT);\n emailIntent.putExtra(Intent.EXTRA_TEXT, getOrderSummary());\n if (emailIntent.resolveActivity(getPackageManager()) != null) {\n startActivity(emailIntent);\n }\n }",
"public void Cart() {\r\n\t\tthis.cart.click();\r\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tgetDeliveryList(true, solverMan);\n\t\t\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n initiateOrder(request, response);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n if(e.getSource()==autopay){\n model.getCustomer().getOrder().orderStatus=OrderStatus.paid;\n dispose();\n }\n\n if(e.getSource()==Paywithanothercard){\n if(model.getCustomer().getOrder().orderStatus.name().equals(\"unpaid\")){\n //String orNUm=model.getCustomer().or.orderNumber;\n new Payment(model.getCustomer().getOrder(),model.getCustomer().getOrder().orderType);\n // System.out.println(model.getCustomer().or.orderNumber+\" \"+model.getCustomer().or.orderStatus);\n }else{\n JOptionPane.showMessageDialog(this,\n \"Your order has paied\", \"Error Message\",\n JOptionPane.ERROR_MESSAGE);\n }\n dispose();\n }\n\n\n if(e.getSource()==cancel){\n dispose();\n }\n\n }",
"public void submitOrder(View view) {\n EditText nameText = (EditText) findViewById(R.id.edt_Name);\n String name = nameText.getText().toString();\n\n CheckBox whippedCream = (CheckBox) findViewById(R.id.chx_WhippedCream);\n boolean cream = whippedCream.isChecked();\n\n CheckBox hasChocolate = (CheckBox) findViewById(R.id.chx_Chocolate);\n boolean chocolate = hasChocolate.isChecked();\n\n int price = calculatePrice(cream, chocolate);\n displayMessage(createOrderSummary(price, cream, chocolate, name));\n sendReceipt(name, createOrderSummary(price,cream,chocolate,name));\n }",
"public void view() {\n\t\t\t\n\t\t\tSystem.out.println(\"Poping up window to show each order of customer @ AdminSaleController\");\n\t\t\tCustomerOrderMain vo = new CustomerOrderMain();\n\t\t vo.start(ps);\n\t\t\t\n\t\t}",
"@Override\n public void onClick(View v) {\n \tTextView text1 = (TextView) findViewById(R.id.quantity);\n \tItem.setQuantity(Integer.parseInt(text1.getText().toString()));\n EditText instr = (EditText) findViewById(R.id.instr);\n Item.setInstr(instr.getText().toString());\n // call fragment order\n Intent callIntent = new Intent(Intent.ACTION_CALL); \n callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n callIntent.setClass(c, HomeActivity.class);\n Home.setOrder(true);\n startActivity(callIntent);\n }",
"public void submitOrder(View view) {\n\n String priceMesage = \"Amount due R\" + price;\n displayMessage(priceMesage);\n }",
"@FXML\n\tpublic void createNewOrder(ActionEvent event) {\n\t\t// TODO Autogenerated\n\t}",
"void setOrder(int order){\r\n\t\t\tthis.order = order;\r\n\t\t}",
"public void clickOnAddToCartButton()\n \t{\n \t\tproductRequirementsPageLocators.clickAddToCartButton.click();\n\n \t}",
"public void setOrder(int order) {\n this.order = order;\n }",
"public void setOrder(int order) {\n this.order = order;\n }",
"public void submitOrder(View view) {\n\n EditText nameField = (EditText) findViewById(R.id.name_field);\n String name = nameField.getText().toString();\n //Figure out if you want to add whipped cream\n CheckBox whippedCream = (CheckBox) findViewById(R.id.whipped_cream_checkbox);\n Boolean hasWhippedCream = whippedCream.isChecked();\n //Figure out if you want to add chocolate\n CheckBox chocolate = (CheckBox) findViewById(R.id.chocolate_checkbox);\n Boolean hasChocolate = chocolate.isChecked();\n\n int price = calculatePrice(hasWhippedCream, hasChocolate);\n\n// // Log.v(\"MainActivity\", \"This price is \" + price);\n\n String priceMessage = createOrderSummary(name, price, hasWhippedCream, hasChocolate);\n\n\n// composeEmail(\"[email protected]\", name, priceMessage);\n displayText(priceMessage);\n }",
"public void showOrderGui(int ID) throws OrderNotFoundException;",
"private void newOrderbutton(String txt) {\n Button btn = new Button(txt);\n newBtnStyle(btn);\n\n boolean containsbtn = false;\n btn.setId(txt);\n for (Node node : activeOrders.getChildren()) {\n String button = ((Button) node).getText();\n if (txt.equals(button))\n containsbtn = true;\n\n }\n if (!containsbtn) {\n activeOrders.getChildren().add(btn);\n\n changeActive(btn);\n } else {\n //Alert clerc about the amount to pay back.\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Nyt bord\");\n alert.setHeaderText(\"Bord: \" + txt + \" eksistere allerede\");\n alert.showAndWait();\n }\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent intent = new Intent(context, CustomerDueDetails.class);\n\t\t\t\t\tintent.putExtra(\"shopper_id\", \"\"+list.get(position).get_shopper_id());\n\t\t\t\t\tintent.putExtra(\"name\", \"\"+list.get(position).get_shopper_name());\n\t\t\t\t\tintent.putExtra(\"amount\", \"\"+list.get(position).get_outstanding_amount());\n\t\t\t\t\tintent.putExtra(\"order_id\", \"\"+list.get(position).getOrder_id());\n\t\t\t\t\tintent.putExtra(\"strdt\", txt_str_date.getText().toString());\n\n\t\t\t\t\tintent.putExtra(\"enddt\", txt_str_end.getText().toString());\n\n\t\t\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\tcontext.startActivity(intent);\n\t\t\t\t}",
"public AddOrderFrame() throws Exception {\n initComponents();\n this.orderService = new OrderService();\n this.loadProducts(new ProductService());\n this.getSelectedProducts(); \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}",
"public void orderNow() throws Exception {\n\t\tQTiumAutomation.sleep(10);\n\t\tint item = 0;\n\t\tint range = 10;\n\t\tString clientName = Constants.CLIENT_NAME;\n\t\tString clientPhone = Constants.CLIENT_PHONE;\n\t\tSystem.out.println(\"click Order Now button & fill client info at RankingPage...\");\n\t\tdo {\n\t\t\titem = QTiumAutomation.randomIntNumber(range);\n\t\t\tString xpath = String.format(RankingPageEntity.ORDER_NOW_BUTTON, item);\n\t\t\tSystem.out.println(\">>>>> trying to click item: \" + xpath);\n\t\t\tBy element = By.xpath(xpath);\n\t\t\tif (QTiumAutomation.waitForElement(element)) {\n\t\t\t\tQTiumAutomation.scrollPageToElementAndClick(element);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.err.println(\"NoSuchElement: \" + xpath);\n\t\t\t\trange = range / 2;\n\t\t\t}\n\t\t} while (range > 1);\n\t\tQTiumAutomation.sleep(5);\n\t\tdo {\n\t\t\tQTiumAutomation.enter(RankingPageEntity.CLIENT_NAME_TEXTBOX, clientName);\n\t\t\tQTiumAutomation.enter(RankingPageEntity.CLIENT_PHONE_TEXTBOX, clientPhone);\n\t\t\tQTiumAutomation.click(RankingPageEntity.SUBMIT_BUTTON);\n\t\t} while (QTiumAutomation.waitForElement(RankingPageEntity.NAME_ERROR)||\n\t\t\t\tQTiumAutomation.waitForElement(RankingPageEntity.PHONE_ERROR));\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew sell().execute(CartActivity.sendObject.toString());\n\t\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t\tif (e.getSource() == logoutButton) {\n\t\t\tdispose();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (e.getSource() == itemModificationButton) {\n\t\t\tdispose();\n\t\t\tMain.openItemModification(User.EMPLOYEE_POSITION, itemBank);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < ordersOnPage(); i++) {\n\t\t\t\n\t\t\tif (e.getSource() == deleteOrderButtons[i]) {\n\t\t\t\tremoveOrders();\n\t\t\t\tPostgresConnection db = new PostgresConnection();\n\t\t\t\tdb.deleteOrder(orderBank.get(i));\n\t\t\t\tdb.close();\n\t\t\t\torderBank.remove(i);\n\t\t\t\tif (orderBank.size() > 3) {\n\t\t\t\t\torderList.add(orderBank.get(4));\n\t\t\t\t}\n\t\t\t\trepaintContainer();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif (e.getSource() == approveOrderButtons[i]) {\n\t\t\t\tremoveOrders();\n\t\t\t\tPostgresConnection db = new PostgresConnection();\n\t\t\t\tdb.deleteOrder(orderBank.get(i));\n\t\t\t\tdb.close();\n\t\t\t\torderBank.remove(i);\n\t\t\t\tif (orderBank.size() > 3) {\n\t\t\t\t\torderList.add(orderBank.get(4));\n\t\t\t\t}\n\t\t\t\trepaintContainer();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t}",
"public void submitOrder(){\t\n\t\tSharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);\n\t\tint tableNumber = Integer.parseInt(sharedPref.getString(\"table_num\", \"\"));\n\t\t\n\t\tif(menu != null){\n\t\t\tParseUser user = ParseUser.getCurrentUser();\n\t\t\tParseObject order = new ParseObject(\"Order\");\n\t\t\torder.put(\"user\", user);\n\t\t\torder.put(\"paid\", false);\n\t\t\torder.put(\"tableNumber\", tableNumber); // Fix this -- currently hard coding table number\n\t\t\t\n\t\t\tParseRelation<ParseObject> items = order.getRelation(\"items\");\n\t\t\t\n\t\t\tfor(ParseObject item : selectedItems) {\n\t\t\t\titems.add(item);\n\t\t\t}\n\t\t\t\n\t\t\torder.saveInBackground(new SaveCallback(){\n\n\t\t\t\t@Override\n\t\t\t\tpublic void done(ParseException e) {\n\t\t\t\t\tif(e == null){\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Order Submitted!\", 5).show();\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tToast.makeText(getApplicationContext(), \"Submitting Order Failed!\", 5).show();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t}\n\t}",
"public PlaceOrder() {\n initComponents();\n this.setSize(1090, 750);\n \n System.out.println(\"new Order().getAllOrders() = \" + new Order().getAllOrders());\n \n this.products = new ArrayList<>();\n \n this.productsList = new ItemList(ProductOrderPanel.WIDTH);\n this.getAllCustomers();\n \n pnlAddProducts.add(productsList, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 260, ProductOrderPanel.WIDTH, 250));\n \n UIUtils.setIcon(this.jbPlaceOrder, \"save\");\n UIUtils.setIcon(this.jbAdd, \"add\");\n \n \n \n }",
"@Override\n public void onClick(View view) {\n addCredit();\n }",
"@FXML\r\n void submitNewOrder(MouseEvent event) {\r\n\t\t\t//everything is ok, now we will add casual traveler order.\r\n\t\t\tif ( order != null && WorkerControllerClient.createNewOrder(order) ) {\r\n\t\t\t\torderSucceed = true;\r\n\t\t\t\tAlert alert = new Alert(AlertType.INFORMATION);\r\n\t\t\t\talert.setHeaderText(\"succeed!\");\r\n\t\t\t\talert.setContentText(\"order created successfully\");\r\n\t\t\t\talert.showAndWait();\r\n\t\t\t\tsubmitButton.getScene().getWindow().hide();\r\n\t\t\t} else {\r\n\t\t\t\tAlert alert = new Alert(AlertType.ERROR);\r\n\t\t\t\talert.setHeaderText(\"Failed!\");\r\n\t\t\t\talert.setContentText(\"Order Failed\");\r\n\t\t\t\talert.showAndWait();\r\n\t\t\t\tsubmitButton.getScene().getWindow().hide();\r\n\t\t\t}\r\n\t\t\r\n }",
"public void submitOrder(View view) {\n\n displayQuantity(myQuantity);\n int total = calculatePrice(myPrice,myQuantity);\n String orderMessage = displayOrder(total);\n Context context = getApplicationContext();\n Toast myToast = Toast.makeText(context,\"Thanks:\" + myName,Toast.LENGTH_SHORT);\n myToast.show();\n // intent to maps\n //Intent myIntent = new Intent(Intent.ACTION_VIEW);\n //myIntent.setData(Uri.parse(\"geo:47.6, -122.3\"));\n Intent myIntent = new Intent(Intent.ACTION_SENDTO);\n myIntent.setData(Uri.parse(\"mailto:\"));\n myIntent.putExtra(Intent.EXTRA_EMAIL, \"[email protected]\");\n myIntent.putExtra(Intent.EXTRA_SUBJECT,\"Java Order\");\n myIntent.putExtra(Intent.EXTRA_TEXT,orderMessage);\n if(myIntent.resolveActivity(getPackageManager())!= null) {startActivity(myIntent);}\n\n }",
"@Override public void onClick(View arg0) {\n Intent intent = new Intent(OweActivity.this, ReceiveMoneyActivity.class);\n startActivity(intent);\n }"
]
| [
"0.75124985",
"0.7374948",
"0.7363519",
"0.7091973",
"0.695491",
"0.6912256",
"0.68484765",
"0.6825866",
"0.67753494",
"0.677003",
"0.6716067",
"0.67064244",
"0.6697459",
"0.6653181",
"0.66437024",
"0.6601551",
"0.6595429",
"0.65919274",
"0.6582205",
"0.6554549",
"0.65519637",
"0.6539889",
"0.65290135",
"0.6523082",
"0.65045935",
"0.6484599",
"0.6477645",
"0.6463587",
"0.64560467",
"0.6452719",
"0.64224833",
"0.64183843",
"0.64121634",
"0.6403444",
"0.63998556",
"0.63998556",
"0.63998556",
"0.6399707",
"0.63919437",
"0.63839316",
"0.637512",
"0.63514006",
"0.6343895",
"0.6327674",
"0.63087106",
"0.63044894",
"0.62940717",
"0.62928283",
"0.6292142",
"0.62643385",
"0.62631714",
"0.625989",
"0.6253945",
"0.62538785",
"0.6228488",
"0.6223611",
"0.6219391",
"0.62078756",
"0.6193763",
"0.6182861",
"0.61793506",
"0.61679125",
"0.616786",
"0.6164061",
"0.61637384",
"0.6157874",
"0.61544037",
"0.61524236",
"0.6148161",
"0.6146245",
"0.6114587",
"0.611453",
"0.6109453",
"0.6109054",
"0.61087584",
"0.61064094",
"0.6104837",
"0.6100103",
"0.60950017",
"0.60910386",
"0.6089648",
"0.6084971",
"0.6081838",
"0.6081838",
"0.60740334",
"0.6070613",
"0.60628223",
"0.6062209",
"0.6060281",
"0.6059158",
"0.60553724",
"0.60538554",
"0.60516024",
"0.6041824",
"0.60414445",
"0.60332286",
"0.6029694",
"0.602519",
"0.60220224",
"0.60218585"
]
| 0.61906743 | 59 |
Helper function to gather order details into a string | public String gatherOrder(View view) {
// get user input
EditText userInputNameView = (EditText) findViewById(R.id.user_input);
String userInputName = userInputNameView.getText().toString();
// check if whipped cream is selected
CheckBox extraCheese = (CheckBox) findViewById(R.id.extra_cheese_checked);
boolean hasExtraCheese = extraCheese.isChecked();
// check if pepperoni is selected
CheckBox pepperoni = (CheckBox) findViewById(R.id.pepperoni_checked);
boolean hasPepperoni = pepperoni.isChecked();
// check if pepperoni is selected
CheckBox hawaiian = (CheckBox) findViewById(R.id.hawaiian_checked);
boolean hasHawaiin = hawaiian.isChecked();
Spinner crust = (Spinner) findViewById(R.id.crust_spinner);
String crustType = crust.getSelectedItem().toString();
Spinner size = (Spinner) findViewById(R.id.size_spinner);
String sizeVal = size.getSelectedItem().toString();
// calculate and store the total price
double totalPrice = calculatePrice(hasExtraCheese, hasPepperoni, hasHawaiin, sizeVal);
// create and store the order summary
String orderSummaryMessage = createOrderSummary(userInputName, hasExtraCheese, hasPepperoni,
hasHawaiin, crustType, sizeVal, totalPrice);
// Write the relevant code for making the buttons work(i.e implement the implicit and explicit intents
return orderSummaryMessage;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String getOrderDetails(Order order) {\n String message = getString(R.string.total) + \"\\n\" + getString(R.string.name) + \": \" + order.getCustomerName() +\n \"\\n\" + getString(R.string.add_cream) + \"? \" + String.valueOf(order.isHasWhippedCream()) +\n \"\\n\" + getString(R.string.add_chocolate) + \"? \" + String.valueOf(order.isHasChocolate()) +\n \"\\n\" + getString(R.string.quantity) + \": \" + order.getCupsNumber() + \"\\n\" + getString(R.string.resut) +\n \": $\" + MainActivity.calculatePrice(order) + \"\\n\" + getString(R.string.thanks) + \"!\";\n return message;\n }",
"@Override\n public String toString(){\n return \"\\n\"+String.valueOf(orderId) + \" $\"+String.valueOf(amount)+ \" Name:\"+String.valueOf(vendor);\n }",
"String getOrderSummary(){\n String s = \"\";\n\n for (Pizza p : pizzas) {\n s += p.getInfo() + \"\\n\";\n }\n\n return s;\n }",
"public String toStringOrder(){\n\t\treturn \" CustomerID: \" + customerID + \"\\n Name: \" + name + \"\\n Address: \" + address + \"\\n Email: \" + email + \"\\n\\n\";\n\t}",
"private String getOrderReport() {\n String result = \"Number of items in order: \" + items.size() + System.getProperty(\"line.separator\") +\n \"List of items: \" + System.getProperty(\"line.separator\");\n for (Item i : items) {\n result += i.getListOfPlants();\n }\n result += \"Total price: \" + calculateTotalPrice() + System.getProperty(\"line.separator\") +\n \"Delivery strategy: \" + delivery.toString() + System.getProperty(\"line.separator\") +\n \"Payment strategy: \" + payment.toString();\n return result;\n }",
"private String getOrderSummary() {\n final int numberOfCoffees = getNumberOfCoffees();\n if (numberOfCoffees == 0) {\n return Constants.FREE_MESSAGE;\n }\n\n final String name = ((EditText) findViewById(R.id.name_edit_text))\n .getText().toString();\n\n return Constants.NAME + \": \" +\n (name.isEmpty() ? Constants.DEFAULT_NAME : name) + \"\\n\" +\n getToppingsSummary() + \"\\n\" +\n Constants.QUANTITY + \": \" + numberOfCoffees + \"\\n\" +\n Constants.TOTAL + \": \" +\n NumberFormat.getCurrencyInstance().format(getTotalPrice()) + \"\\n\" +\n Constants.BYE_GREETING;\n }",
"@Override\n\tpublic String toString(){\n\t\tString out = \"\";\n\t\tfor (Order o : orders){\n\t\t\tout += o.toString() + \"\\n\";\n\t\t}\n\t\treturn out;\n\t}",
"public String listOfOrders() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Order> it = orders.iterator(); it.hasNext();){\r\n\t\t\t Order o = (Order) it.next();\r\n \t sb.append(o.toString() + NL);\r\n }\r\n return sb.toString();\r\n }",
"public String getOrderDetails(ArrayList<Item> items){\n String detailsToString=\"\";\n\n Set<Item> setOrderItems = new HashSet<>();\n for(Item each: items){ //remove duplicates and increase quanity of item instead.\n if(!setOrderItems.add(each)){\n setOrderItems.remove(each);\n each.incQuantity();\n setOrderItems.add(each);\n }\n }\n\n for(Item each: setOrderItems){\n detailsToString = \"x\"+each.getQuantity()+\" \"+each.getName()+\"\\n\"+detailsToString;\n }\n\n return detailsToString;\n }",
"public String getStringRecord() {\n NumberFormat nf = new DecimalFormat(\"0000.00\");\n String delimiter = \",\";\n\n return String.format(\"%05d\", orderLineId) + delimiter + String.format(\"%05d\", orderId) + delimiter\n + String.format(\"%05d\", userId) + delimiter + String.format(\"%05d\", productId) + delimiter\n + String.format(\"%05d\", orderLineQuantity) + delimiter + nf.format(salesPrice)\n + System.getProperty(\"line.separator\");\n }",
"@Override\n public String toString() {\n var str = \"[\" + _id + \"] \" + _firstName + \" \" + _lastName + \", \" + _emailAddress.getEmail() + \", \" + _address.getWholeAdress(); //added adress in ToString\n if (_orders.size() > 0) {\n str += \", Orders: (\";\n for (var i = 0; i < _orders.size(); i++) {\n str += \"#\" + _orders.get(i).getId();\n if (i < _orders.size() - 1) str += \", \";\n }\n str += \")\";\n }\n return str;\n }",
"public String showCurrentOrder(){\n stringBuilder = new StringBuilder();\n for (int i = 0; i < OrderManager.getInstance().getOrder().size(); i++) {\n stringBuilder.append((i + 1) + \". \" + OrderManager.getInstance().getOrder().get(i).toString() + \"\\n\");\n }\n return stringBuilder.toString();\n }",
"@SuppressWarnings(\"Duplicates\")\n private double printOrderDetails(@NotNull Order o) {\n printHeader(\"Order #\" + o.getOrderID() + \"\", 60);\n System.out.println(\"Order ID: \" + o.getOrderID());\n System.out.println(\"Order State: \" + ((o.getOrderState() == Order.OrderState.ORDER_PAID) ? \"Paid\" : \"Unpaid\"));\n System.out.println(\"Order Started On: \" + DateTimeFormatHelper.formatMillisToDateTime(o.getCreatedAt()));\n System.out.println(\"Staff Handling Order: \" + ((o.getStaff() == null) ? \"Unknown Staff\" : \"[\" + o.getStaff().getStaffId() + \"] \" + o.getStaff().getStaffName()));\n System.out.println(\"Table Number: \" + ((o.getTable() == null) ? \"Unknown Table\" : o.getTable().getTableNum()));\n System.out.println(\"List of Order Items:\");\n printBreaks(60);\n if (o.getOrderItems().size() == 0) System.out.println(\"No Items in Order\");\n else {\n o.calculateSubtotal(); // Calculate Subtotal\n OrderMenuUI.printOrderItems(o.getOrderItems(), true);\n }\n printBreaks(60);\n // Do final caclulation\n o.calculateSubtotal();\n double tax = 0.07 * o.getSubtotal();\n double total = tax + o.getSubtotal();\n System.out.printf(\"%50s $%-6.2f\\n\", \"Order Subtotal: \", o.getSubtotal());\n System.out.printf(\"%50s $%-6.2f\\n\", \"GST (7%): \", tax);\n printBreaks(60);\n System.out.printf(\"%50s $%-6.2f\\n\", \"Total: \", total);\n printBreaks(60);\n System.out.println(\"\\n\");\n return total;\n }",
"public String displayOrderList(){\r\n // display = addFood() + \"\\n\" + addDrink() + \"\\n\" + addDessert();\r\n ArrayList<String> output = new ArrayList<>(); \r\n for(int i =0; i < allOrder.size(); i++){\r\n output.add(allOrder.get(i));\r\n }\r\n return String.valueOf(output);\r\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder\n\t\t\t\t.append(\"ID \").append(id).append(\"\\n\")\n\t\t\t\t.append(\"Date \").append(date).append(\"\\n\")\n\t\t\t\t.append(\"INVOICE_NUMBER \").append(invoiceNumber).append(\"\\n\")\n\t\t\t\t.append(\"CUSTOMER_ID \").append(customer.getId()).append(\"\\n\")\n\t\t\t\t.append(\"Name \").append(customer.getName()).append(\"\\n\")\n\t\t\t\t.append(\"Address \").append(customer.getAddress()).append(\"\\n\")\n\t\t\t\t.append(\"Products == \").append(\"\\n\");\n\t\tfor (Order o : orderList){\n\t\t\tstringBuilder\n\t\t\t\t\t.append(\"Product Manufac \").append(o.getManufacturer()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product model \").append(o.getModel()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product IEMI \").append(o.getImeiNumber()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product Rate \").append(o.getRate()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product ID\").append(o.getP().getId()).append(\"\\n\");\n\t\t}\n\t\tstringBuilder.append(\"Payment Mode \").append(paymentMode).append(\"\\n\");\n\t\treturn stringBuilder.toString();\n\t}",
"public String buildOutputFromCollection(Collection<ShippingOrder> orders){\r\n if (orders != null) {\r\n StringBuilder result = new StringBuilder();\r\n for (ShippingOrder order : orders) {\r\n result.append(order.toString() + \"\\n\");\r\n }\r\n return result.toString();\r\n } else {\r\n return null;\r\n }\r\n }",
"public String toString () {\n String lLineFeed = System.getProperty(\"line.separator\");\n StringBuffer lStringBuffer = new StringBuffer();\n lStringBuffer.append (lLineFeed);\n lStringBuffer.append (\"***************************************************\" + lLineFeed);\n lStringBuffer.append (\" Order Appeasement \" + lLineFeed);\n lStringBuffer.append (\"Appeasement ID .................. \" + getId() + lLineFeed); \n lStringBuffer.append (\"Appeasement Code ................ \" + getAppeaseCode() + lLineFeed); \n lStringBuffer.append (\"Appeasement Description ......... \" + getAppeaseDescription() + lLineFeed); \n lStringBuffer.append (\"Reference ....................... \" + getReference() + lLineFeed); \n lStringBuffer.append (\"Appeasement Date ................ \" + getAppeaseDate() + lLineFeed); \n lStringBuffer.append (\"Amount .......................... \" + getAmount() + lLineFeed); \n lStringBuffer.append (\"***************************************************\");\n return lStringBuffer.toString();\n }",
"@Override\n public String toString()\n {\n String str = \"\";\n str += \"\\n********* Receipt *********\\n\";\n str += \"Order Number: \" + orderNum + \"\\nDate: \" + date + \"\\n\";\n str += \"Bartender: \" + bartenderName + \", \" + \"Customer: \" + customerName + \"\\n\";\n str += \"Drinks: \";\n\n for(DrinkAndQuantity d : drinksAndQuantities){\n str += d.toString() + \", \";\n }\n str = str.substring(0, str.length() - 2);\n \n //get payment info\n String payValue = \"\";\n String payType = \"\";\n if(paid){\n payValue = \" Yes,\";\n payType = paymentType;\n }else{\n payValue = \" No,\";\n payType = paymentType;\n }\n \n str += \"\\n\";\n str += \"Paid: \" + payValue + \" \" + paymentType;\n \n //get price\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n String totalCurrency = formatter.format(totalPrice);\n str += \"\\n\";\n str += \"Total: \" + totalCurrency;\n str += \"\\n***************************\\n\";\n return str;\n }",
"public String parseOrder(Orden orden) {\n StringBuffer buffer = new StringBuffer(\"\");\n \n buffer.append(\"{\");\n buffer.append(\"\\\"horaOpen\\\" :\\\"\"+ orden.getHoraOpen()+\"\\\",\");\n buffer.append(\"\\\"grafica\\\" :\\\"\"+orden.getGrafId()+\"\\\",\");\n buffer.append(\"\\\"account\\\" :\\\"\" + orden.getAccount()+\"\\\",\");\n buffer.append(\"\\\"execID\\\" : \\\"\" + orden.getExecId()+ \"\\\",\");\n buffer.append(\"\\\"OrderID\\\" :\\\"\" + orden.getId()+ \"\\\",\");\n buffer.append(\"\\\"noOrder\\\" :\" + orden.getBrokerOrdId() + \",\");\n buffer.append(\"\\\"MAGICMA\\\" :\" +orden.getMagic()+ \",\");\n buffer.append(\"\\\"size\\\" :\" + orden.getLotes() + \",\");\n buffer.append(\"\\\"type\\\" :\"+ orden.getSide() + \",\");\n buffer.append(\"\\\"symbol\\\" :\\\"\"+ orden.getSymbol()+ \"\\\" ,\");\n buffer.append(\"\\\"price\\\" :\" + orden.getOpenPrice() + \",\");\n buffer.append(\"\\\"cPrice\\\" :\" + orden.getClosePrice()+ \",\");\n buffer.append(\"\\\"sl\\\" :\" + orden.getSl()+\",\");\n buffer.append(\"\\\"tp\\\" :\" + orden.getTp()+\",\");\n buffer.append(\"\\\"horaClose\\\" : \\\"\" + orden.getHoraClose()+ \"\\\",\");\n buffer.append(\"\\\"razon\\\" : \\\"\" + orden.getReason()+ \"\\\",\");\n buffer.append(\"\\\"comision\\\":\" + \"10, \" );\n buffer.append(\"}\");\n return buffer.toString();\n }",
"public synchronized String getItemDetails(){\n \tString s = \"\\n========================================\";\n \ts += \"\\nID: \"+ ID;\n \ts += \"\\nName: \"+ item_name;\n \ts += \"\\nStarting Price: \"+ start_price;\n \ts += \"\\nNumber Of bidders: \" + bids.size();\n \ts += \"\\n status: \" + status;\n\n \tif(status == \"open\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: No bids yet\";\n \t\t}else{\n \t\t\ts += \"\\n last_bidder: \"+ last_bidderName;\n \t\t}\n \t}else if(status == \"closed\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: Closed with No bids\";\n \t\t}else{\n \t\t\ts += \"\\n Won by: \"+ last_bidderName +\" at price of \"+ start_price;\n \t\t}\n \t}\n \ts += \"\\n========================================\";\n return s;\n }",
"public String getDetailString()\n {\n short type = this.getType();\n StringBuffer buffer = new StringBuffer(PriceAdjustmentTypes.toString(type));\n switch(type)\n {\n case PriceAdjustmentTypes.SPLIT:\n buffer.append(\": \");\n buffer.append(this.getSplitNumerator()).append(\" for \").append(this.getSplitDenominator());\n break;\n // SYMBOL_CHANGE and MERGER only change the product symbol\n case PriceAdjustmentTypes.SYMBOL_CHANGE:\n case PriceAdjustmentTypes.MERGER:\n buffer.append(\": \");\n String symbol = getNewProductSymbol();\n if (symbol!=null && symbol.length() > 0)\n {\n buffer.append(\"New Symbol: \").append(symbol);\n }\n else\n {\n buffer.append(\"No Symbol Change.\");\n }\n break;\n case PriceAdjustmentTypes.DIVIDEND_CASH:\n buffer.append(\": \");\n buffer.append('$').append(this.getCashDividend().toString());\n break;\n case PriceAdjustmentTypes.DIVIDEND_STOCK:\n buffer.append(\": \");\n buffer.append(this.getStockDividend().toString()).append(\" shares.\");\n break;\n case PriceAdjustmentTypes.DIVIDEND_PERCENT:\n buffer.append(\": \");\n buffer.append(this.getStockDividend().toString()).append('%');\n break;\n case PriceAdjustmentTypes.COMMON_DISTRIBUTION:\n break;\n case PriceAdjustmentTypes.LEAP_ROLLOVER:\n break;\n default:\n break;\n }\n return buffer.toString();\n }",
"private void getOrderFromDatabase() {\r\n Cursor cursor = helper.getOrderMoreDetails(orderId);\r\n cursor.moveToFirst();\r\n try {\r\n JSONObject senderObject = new JSONObject(cursor.getString(0));\r\n sender = senderObject.getString(\"name\");\r\n JSONObject receiverObject = new JSONObject(cursor.getString(1));\r\n receiver = receiverObject.getString(\"name\");\r\n JSONObject departureObject = new JSONObject(cursor.getString(2));\r\n if (departureObject.getString(\"type\").equals(\"SpecifyAddress\"))\r\n departure = departureObject.getString(\"long_name\");\r\n else\r\n departure = departureObject.getString(\"short_name\");\r\n JSONObject destinationObject = new JSONObject(cursor.getString(3));\r\n if (destinationObject.getString(\"type\").equals(\"SpecifyAddress\"))\r\n destination = destinationObject.getString(\"long_name\");\r\n else\r\n destination = destinationObject.getString(\"short_name\");\r\n numberOfGoods = cursor.getInt(4);\r\n orderTime = cursor.getString(5);\r\n state = cursor.getString(6);\r\n JSONArray goodIdArray = new JSONArray(cursor.getString(7));\r\n goodId = new String[goodIdArray.length()];\r\n for (int i = 0; i < goodIdArray.length(); i++) {\r\n goodId[i] = goodIdArray.getString(i);\r\n }\r\n orderType = cursor.getString(8);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n cursor.close();\r\n }",
"private void showOrderDetails(Order order) {\n\t\tString status, shownOption;\n\n\t\tif (order.getStatus()) {\n\t\t\tstatus = new String();\n\t\t\tstatus = \"Processed\";\n\n\t\t\tshownOption = new String();\n\t\t\tshownOption = \"Return\";\n\t\t}\n\t\telse {\n\t\t\tstatus = new String();\n\t\t\tshownOption = new String();\n\n\t\t\tstatus = \"Pending\";\n\t\t\tshownOption = \"Set Processed\";\n\t\t}\n\n\t\tString orderDetailsMessage = \"ORDER DATE : \" + order.getDate();\n\t\torderDetailsMessage += \"\\nSTATUS: \" + status;\n\t\torderDetailsMessage += \"\\nITEMS: \";\n\t\tfor (StockItem stockItem : order.getOrderEntryList()) {\n\t\t\torderDetailsMessage += \"\\n \" + stockItem.getQuantity() + \" \\t x \\t \"\n\t\t\t\t\t+ stockItem.getProduct().getProductName() + \" \\t\\t\\t Subtotal: \\t\\u20ac\"\n\t\t\t\t\t+ (stockItem.getProduct().getRetailPrice() * stockItem.getQuantity());\n\t\t}\n\n\t\torderDetailsMessage += \"\\n\\nCUSTOMER ID: \" + order.getPerson().getId()\n\t\t\t\t+ \"\\nPersonal Details: \";\n\t\torderDetailsMessage += \"\\n Name: \\t\" + order.getPerson().getName();\n\t\torderDetailsMessage += \"\\n Phone: \\t\" + order.getPerson().getContactNumber();\n\t\torderDetailsMessage += \"\\n Address: \\t\" + order.getPerson().getAddress();\n\t\torderDetailsMessage += \"\\n\\nThe total order value is \\t\\u20ac\"\n\t\t\t\t+ order.getGrandTotalOfOrder() + \"\\n\";\n\n\t\tObject[] options = { \"OK\", shownOption };\n\t\tint n = JOptionPane.showOptionDialog(null, orderDetailsMessage, \"ORDER ID: \"\n\t\t\t\t+ (order.getId()) + \" STAFF ID: \" + order.getCurrentlyLoggedInStaff().getId()\n\t\t\t\t+ \" STATUS : \" + status /* order.isStatus() */, JOptionPane.YES_NO_OPTION,\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, options, options[0]);\n\t\tif (n == 1) {\n\t\t\torder.setStatus(true);\n\t\t}\n\t}",
"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 String createOrderSummary(int price, String name, boolean hasWhippedCream,\n boolean hasChocolate){\n return getString(R.string.order_summary_name, name) +\n \"\\n\" + getString(R.string.add_whipped_cream, hasWhippedCream) +\n \"\\n\" + getString(R.string.add_chocolate, hasChocolate) +\n \"\\n\" + getString(R.string.order_quantity, quantity) +\n \"\\n\" + getString(R.string.order_total, price) +\n \"\\n\" + getString(R.string.thank_you);\n }",
"public List getOrderDetails(OrderDetail orderDetail);",
"@Override\n public String toString() {\n return String.format( \"%1$s UTC: Cancel Order: (%2$s) - %3$s\", getTime(), orderId, getTag() ) + \" Status: \" + getStatus();\n }",
"@Override\n public String toString() {\n return Objects.toStringHelper(this) //\n .add(\"orderId\", getOrderId()) //\n .add(\"billingId\", getBillingId()) //\n .add(\"invoiceId\", getInvoiceId()) //\n .add(\"userId\", getUserId()) //\n .add(\"username\", getUsername()) //\n .add(\"orderFormNo\", getOrderFormNo()) //\n .add(\"orderType\", getOrderType()) //\n .add(\"orderStatus\", getOrderStatus()) //\n .add(\"orderActive\", getOrderActive()) //\n .add(\"orderChangeHistory\", getOrderChangeHistory()) //\n .add(\"orderPriority\", getOrderPriority()) //\n .add(\"orderCorporateType\", getOrderCorporateType()) //\n .add(\"orderBulkType\", getOrderBulkType()) //\n .add(\"orderDiscountCouponCode\", getOrderDiscountCouponCode()) //\n .add(\"productId\", getProductId()) //\n .add(\"productName\", getProductName()) //\n .add(\"productQuantity\", getProductQuantity()) //\n .add(\"assignedToUserid\", getAssignedToUserid()) //\n .add(\"assignedToUseridDate\", getAssignedToUseridDate()) //\n .add(\"billingPhone1Blocked\", getBillingPhone1Blocked()) //\n .add(\"billingPhone2Blocked\", getBillingPhone2Blocked()) //\n .add(\"billingFirstname\", getBillingFirstname()) //\n .add(\"billingLastname\", getBillingLastname()) //\n .add(\"billingEmail\", getBillingEmail()) //\n .add(\"billingPhone1\", getBillingPhone1()) //\n .add(\"billingPhone2\", getBillingPhone2()) //\n .add(\"billingAddressline1\", getBillingAddressline1()) //\n .add(\"billingAddressline2\", getBillingAddressline2()) //\n .add(\"billingCityId\", getBillingCityId()) //\n .add(\"billingZip\", getBillingZip()) //\n .add(\"billingStateId\", getBillingStateId()) //\n .add(\"billingCountryId\", getBillingCountryId()) //\n .add(\"billingTotalAmount\", getBillingTotalAmount()) //\n .add(\"billingAdvanceAmount\", getBillingAdvanceAmount()) //\n .add(\"billingBalanceAmount\", getBillingBalanceAmount()) //\n .add(\"billingMarginAmount\", getBillingMarginAmount()) //\n .add(\"billingTaxrate\", getBillingTaxrate()) //\n .add(\"billingPaymentGatewayRate\", getBillingPaymentGatewayRate()) //\n .add(\"shipmentRate\", getShipmentRate()) //\n .add(\"billingGrossAmount\", getBillingGrossAmount()) //\n .add(\"billingNettCost\", getBillingNettCost()) //\n .add(\"custPaymentMode\", getCustPaymentMode()) //\n .add(\"custPaymentStatus\", getCustPaymentStatus()) //\n .add(\"custPaymentDate\", getCustPaymentDate()) //\n .add(\"custPaymentComments\", getCustPaymentComments()) //\n .add(\"custPaymentId1\", getCustPaymentId1()) //\n .add(\"custPaymentId2\", getCustPaymentId2()) //\n .add(\"vendorPaymentMode\", getVendorPaymentMode()) //\n .add(\"vendorPaymentDate\", getVendorPaymentDate()) //\n .add(\"vendorPaymentComments\", getVendorPaymentComments()) //\n .add(\"shipmentFirstname\", getShipmentFirstname()) //\n .add(\"shipmentLastname\", getShipmentLastname()) //\n .add(\"shipmentEmail\", getShipmentEmail()) //\n .add(\"shipmentPhone1\", getShipmentPhone1()) //\n .add(\"shipmentPhone2\", getShipmentPhone2()) //\n .add(\"shipmentAddressline1\", getShipmentAddressline1()) //\n .add(\"shipmentAddressline2\", getShipmentAddressline2()) //\n .add(\"shipmentCityId\", getShipmentCityId()) //\n .add(\"shipmentZip\", getShipmentZip()) //\n .add(\"shipmentStateId\", getShipmentStateId()) //\n .add(\"shipmentCountryId\", getShipmentCountryId()) //\n .add(\"shipmentComments\", getShipmentComments()) //\n .add(\"orderOriginIpaddress\", getOrderOriginIpaddress()) //\n .add(\"orderOriginCity\", getOrderOriginCity()) //\n .add(\"orderOriginCountryCode\", getOrderOriginCountryCode()) //\n .add(\"orderOriginCountryId\", getOrderOriginCountryId()) //\n .add(\"orderLeadsubmitUrl\", getOrderLeadsubmitUrl()) //\n .add(\"orderOriginRefUrl\", getOrderOriginRefUrl()) //\n .add(\"orderOriginalRefUrl\", getOrderOriginalRefUrl()) //\n .add(\"orderBrowsingHistory\", getOrderBrowsingHistory()) //\n .add(\"orderRefKeywords\", getOrderRefKeywords()) //\n .add(\"orderRefSourceId1\", getOrderRefSourceId1()) //\n .add(\"orderRefSourceId2\", getOrderRefSourceId2()) //\n .add(\"orderRefCid\", getOrderRefCid()) //\n .add(\"orderCreationDate\", getOrderCreationDate()) //\n .add(\"orderFirstUpdationDate\", getOrderFirstUpdationDate()) //\n .add(\"orderAvailabilityStatus\", getOrderAvailabilityStatus()) //\n .add(\"orderAvailabilityStatusUpdationDate\", getOrderAvailabilityStatusUpdationDate()) //\n .add(\"dispatchAirwayId\", getDispatchAirwayId()) //\n .add(\"dispatchDate\", getDispatchDate()) //\n .add(\"deliveryDate\", getDeliveryDate()) //\n .add(\"deliveryStatus\", getDeliveryStatus()) //\n .add(\"mailedReminderToVendorStatus\", getMailedReminderToVendorStatus()) //\n .add(\"mailedReminderToVendorDate\", getMailedReminderToVendorDate()) //\n .add(\"orderCancelRequestStatus\", getOrderCancelRequestStatus()) //\n .add(\"orderCancelRequestDate\", getOrderCancelRequestDate()) //\n .add(\"orderCancellationToVendorStatus\", getOrderCancellationToVendorStatus()) //\n .add(\"orderCancellationToVendorDate\", getOrderCancellationToVendorDate()) //\n .add(\"orderConversionDate\", getOrderConversionDate()) //\n .add(\"orderConfirmationDate\", getOrderConfirmationDate()) //\n .add(\"orderConfirmationComments\", getOrderConfirmationComments()) //\n .add(\"orderReconfirmationDate\", getOrderReconfirmationDate()) //\n .add(\"orderReconfirmationComments\", getOrderReconfirmationComments()) //\n .add(\"orderCancellationType\", getOrderCancellationType()) //\n .add(\"orderCancellationComments\", getOrderCancellationComments()) //\n .add(\"orderCancellationDate\", getOrderCancellationDate()) //\n .add(\"orderRefundType\", getOrderRefundType()) //\n .add(\"orderRefundComments\", getOrderRefundComments()) //\n .add(\"orderRefundDate\", getOrderRefundDate()) //\n .add(\"disputeRaisedStatus\", getDisputeRaisedStatus()) //\n .add(\"disputeRaisedDate\", getDisputeRaisedDate()) //\n .add(\"disputeRaisedComments\", getDisputeRaisedComments()) //\n .add(\"orderLastUpdationDate\", getOrderLastUpdationDate()) //\n .add(\"orderAcceptNewsletter\", getOrderAcceptNewsletter()) //\n .add(\"orderAcceptPromotionalMaterial\", getOrderAcceptPromotionalMaterial()) //\n .add(\"orderInternalNarration\", getOrderInternalNarration()) //\n .add(\"custom1\", getCustom1()) //\n .add(\"custom2\", getCustom2()) //\n .add(\"customint1\", getCustomint1()) //\n .add(\"customint2\", getCustomint2()) //\n .add(\"ipaddress\", getIpaddress()) //\n .add(\"carMake\", getCarMake()) //\n .add(\"carModel\", getCarModel()) //\n .add(\"carYear\", getCarYear()) //\n .add(\"fuelType\", getFuelType()) //\n .add(\"orderOriginRegion\", getOrderOriginRegion()) //\n .toString();\n }",
"public static String sendOrder(ArrayList<MenuItem> orders) {\n try {\n JSONObject obj = new JSONObject();\n obj.put(\"name\", new String(\"Person1\"));\n obj.put(\"storeId\", storeId);\n JSONArray array = new JSONArray(); //array of items ordered\n JSONObject orderDetails = new JSONObject(); //for each item ordered\n\n int orderSize = orders.size();\n for (int i = 0; i < orderSize; i++) {\n //add order details\n orderDetails.put(\"itemId\", orders.get(i).getId());\n orderDetails.put(\"quantity\", orders.get(i).getQuantity());\n //put order details into this array\n array.put(orderDetails);\n orderDetails = new JSONObject(); //reset the orderDetail for a new item.\n }\n obj.put(\"order\", array);\n// obj.put(\"name\", new String(\"John\")); //name on the order\n// obj.put(\"storeId\", storeId);\n\n// LinkedHashMap<String, String> jsonOrderedMap = new LinkedHashMap<String, String>();\n//\n// jsonOrderedMap.put(\"name\",new String(\"John\"));\n// jsonOrderedMap.put(\"storeId\", storeId);\n// jsonOrderedMap.put(\"order\", array);\n//\n// JSONObject orderedJson = new JSONObject(jsonOrderedMap);\n//\n// JSONArray jsonArray = new JSONArray(Arrays.asList(orderedJson));\n\n return obj.toString();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return null;\n }",
"java.lang.String getOrderDate();",
"@Override\n\tpublic String toString() {\n\t\treturn description + \", \" + billAmount + \", \" + tipAmount + \", \" + totalAmount;\n\t}",
"public String toString()\n {\n \treturn \"\" + purchases;\n }",
"public String getDetails() {\n String result = \"\";\n result += String.format(\"Key: %d%n\", id);\n result += String.format(\"Date created: %s%n\", date);\n result += String.format(\"Location type: %s%n\", locationType);\n result += String.format(\"Zip code: %s%n\", zipCode);\n result += String.format(\"Address: %s%n\", address);\n result += String.format(\"City: %s%n\", city);\n result += String.format(\"Borough: %s%n\", borough);\n result += String.format(\"Latitude: %s%n\", latitude);\n result += String.format(\"Longitude: %s%n\", longitude);\n return result;\n }",
"public String getOrder(String orderId) {\n\t SQLiteDatabase db = this.getReadableDatabase();\n\t \n\t String orderSQLSelect = \"SELECT * FROM \" + ORDER_RECORDS_TABLE + \" WHERE \" + ORDER_NUMBER + \" = '\" + orderId + \"'\";\n\t Cursor cursor = db.rawQuery(orderSQLSelect, null);\n\t \n\t if (cursor != null) { \n\t \tif(cursor.moveToFirst()) {\n\t \t\treturn cursor.getString(0) + \" \" + cursor.getString(3);\n\t \t} else {\n\t \t\treturn null;\n\t \t}\n\t }\n\t\n\t return null;\n\t}",
"private String createOrderSummary (String name, int price, boolean addWhippedCream, boolean addChocolate) {\n String priceMessage = getString(R.string.order_summary_name, name);\n priceMessage += \"\\n\" + getString(R.string.order_summary_whipped_cream, addWhippedCream);\n priceMessage += \"\\n\" + getString(R.string.order_summary_chocolate, addChocolate);\n priceMessage += \"\\n\" + getString(R.string.order_summary_quantity, quantity);\n priceMessage += \"\\nTotal: \" + price;\n priceMessage += \"\\n\" + getString(R.string.thank_you);\n return priceMessage;\n }",
"String getOrderId();",
"com.google.protobuf.StringValue getOrderId();",
"private String displayOrder(int number) {\n TextView priceTextView = (TextView) findViewById(R.id.order_summary_text_view);\n EditText myNameText = (EditText) findViewById(R.id.enter_name_view);\n myName = myNameText.getText().toString();\n\n String message = \"Name: \" + myName + \"\\n\" +\n \"Add whipped cream? \" + myCheckedStateWhipped + \"\\n\"+\n \"Add chocolate? \" + myCheckedStateChocolate + \"\\n\"+\n \"Quantity: \" + myQuantity + \"\\n\" +\n \"Total: \" + NumberFormat.getCurrencyInstance().format(number) +\"\\n\";\n priceTextView.setText(message);\n\n return message;\n }",
"public String toString(){\n\t\treturn String.format(\"Address: %s\\nType: %s\\nPrice: %.2f\\nOwner: %s\",getAddress(),getType(),getPrice(),getOwner());\n\t}",
"public String toString(){\n return String.format(\"%s, %s, %s, %s, %s, %s\",make,model,variant, year, quantity,price);\n }",
"public String printOrders(String customerID) {\n\t\tString out = \"Ordrene til kunde \" + customerID + \"\\n\";\n\t\tString theOrders = \"\";\n\n\t\tfor (Order o : orders) {\n\t\t\tif (o.getUserID().equals(customerID)) {\n\t\t\t\ttheOrders += o.printOrder() + \"\\n\";\n\t\t\t}\n\t\t}\n\t\tif (theOrders.equals(\"\")) {\n\t\t\tout = \"\";\n\t\t} else {\n\t\t\tout += theOrders;\n\t\t}\n\t\treturn out;\n\t}",
"public String toString(){\n\t String output = String.format(\"Ticket ##: %d\\nPrice: $%.2f\\n\", this.ticketNumber, this.getPrice());\n\t\treturn output;\n\t}",
"@Override\n \tpublic String toString(){\n\t\treturn \n\t\t\t\"pojos.DeliveryDetails{\" +\n\t\t\t\"phone = '\" + phone + '\\'' + \n\t\t\t\",name = '\" + name + '\\'' + \n\t\t\t\",deliverTo = '\" + deliverTo + '\\'' + \n\t\t\t\"}\";\n\t\t}",
"public String getOrderDetails(String symbol,String currency) \r\n\t{\r\n\t\t//timestamp is mandatory one \t\t\r\n\t\tWebTarget target = getTarget().path(RESOURCE_OPENORDER);\r\n\t\t Map<String, String> postData = new TreeMap<String, String>();\r\n\t\t//symbol is not mandatory one\r\n\t\tif(symbol!= null && !symbol.equalsIgnoreCase(\"\") && currency!=null && !currency.equalsIgnoreCase(\"\")) \r\n\t\t{\r\n\t\t\t postData.put(CURRENCY_PAIR, getSymbolForExchange(symbol,currency));\r\n\t\t}\t\r\n\t\t\r\n String queryString = buildQueryString(postData);\r\n TradeLogger.LOGGER.finest(\"QueryString to generate the signature \" + queryString);\t\r\n \r\n\t\tString signature = generateSignature(queryString);\r\n\t\tTradeLogger.LOGGER.finest(\"Signature Genereated \" + signature);\r\n\t\tString returnValue= null;\r\n\t\tif(signature!= null )\r\n\t\t{\t\r\n\t\t\ttarget = addParametersToRequest(postData, target);\r\n\t\t\tTradeLogger.LOGGER.finest(\"Final Request URL : \"+ target.getUri().toString());\r\n\t\t\tResponse response = target.request(MediaType.APPLICATION_JSON).header(APIKEY_HEADER_KEY,API_KEY).header(\"Sign\", signature).get();\r\n\t\t\t\t\r\n\t\t\tif(response.getStatus() == 200) \r\n\t\t\t{\r\n\t\t\t\treturnValue = response.readEntity(String.class);\r\n\t\t\t\tTradeLogger.LOGGER.info(returnValue);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tTradeLogger.LOGGER.severe(\"Response Code \" + response.getStatus());\r\n\t\t\t\tTradeLogger.LOGGER.severe(\"Response Data \" + response.readEntity(String.class));\r\n\t\t\t}\r\n\t\t\tresponse.close();\r\n\t\t}\r\n\t\treturn returnValue;\r\n\r\n\t}",
"public String toString(){\n return storeName + \"\\n\" + \n \t\tstoreAdress + \"\\n\" +\n \t\tdate + \"\\n\" + \n \t\ttime + \"\\n\" +\n \t\titemList + \"\\n\" +\n \t\t\"total price \" + totalPrice + \"\\n\" +\n \t\t\"total VAT price \" + String.format(\"%.2f\",totalVATPrice) + \"\\n\" +\n \t\t\"payed amount \" + cash + \"\\n\" +\n \t\t\"money back \" + change + \"\\n\" +\n \t\t\"discount \" + discount + \"\\n\";\n }",
"public String toString()\n\t{\n\t\tStringBuilder sb =new StringBuilder();\n\t\tsb.append(\"\\tCustomer ID: \"+ custID);\n\t\tsb.append(\"\\n\\tName: \" + name);\n\t\tsb.append(\"\\n\\tAddress: \"+ address);\n\t\tsb.append(\"\\n\\tCity: \" + city);\n\t\tsb.append(\"\\n\\tState: \" + state);\n\t\tsb.append(\"\\n\\tZip code\" + zip);\n\t\tsb.append(\"\\n\\tPhone #: \" + phone);\n\t\tsb.append(\"\\n\");\n\t\treturn sb.toString();\n\n\t}",
"public String toString(){\n StringBuffer sb = new StringBuffer();\n sb.append(\"*****\" + title + \"*****\");\n sb.append( \"\\n\" + description + \"\\n\");\n sb.append(\"Business Contact: \" + contact + \"\\n\");\n sb.append(\"Supply List: \\n\");\n for (String s : supplies){\n sb.append(\"- \"+ s + \"\\n\");\n\n }\n sb.append(\"Price: $\" + price + \"\\n\");\n return sb.toString();\n }",
"public Map<String, String> createOrder(boolean debug) throws IOException {\n Map<String, String> map = new HashMap<>();\n OrdersCreateRequest request = new OrdersCreateRequest();\n request.prefer(\"return=representation\");\n request.requestBody(buildRequestBody());\n //3. Call PayPal to set up a transaction\n HttpResponse<Order> response = client().execute(request);\n System.out.println(\"Response: \" + response.toString());\n // if (true) {\n if (response.statusCode() == 201) {\n System.out.println(\"Status Code: \" + response.statusCode());\n System.out.println(\"Status: \" + response.result().status());\n System.out.println(\"Order ID: \" + response.result().id());\n System.out.println(\"Intent: \" + response.result().intent());\n System.out.println(\"Links: \");\n for (LinkDescription link : response.result().links()) {\n System.out.println(\"\\t\" + link.rel() + \": \" + link.href() + \"\\tCall Type: \" + link.method());\n }\n System.out.println(\"Total Amount: \" + response.result().purchaseUnits().get(0).amount().currencyCode()\n + \" \" + response.result().purchaseUnits().get(0).amount().value());\n\n\n map.put(\"statusCode\" , response.statusCode()+\"\");\n map.put(\"status\" , response.result().status());\n map.put(\"orderID\" , response.result().id());\n\n //return response.result().id();\n } else {\n System.out.println(\"Response: \" + response.toString());\n map.put(\"Reponse\",response.toString());\n //return response.toString();\n }\n\n return map;\n //}\n }",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n if(validItem) {\n builder.append(amount);\n builder.append(\"x\\t\" + itemInfo.getName() + \"\\n\");\n builder.append(\"Item description:\\n\" + itemInfo.getDescription() + \"\\n\");\n } else {\n builder.append(\"INVALID ITEM\\n\");\n }\n builder.append(\"Running total: \");\n builder.append(salePrice);\n builder.append(\"\\n\");\n return builder.toString();\n }",
"public void displayOrder(Order order) {\n ProductType productType;\n// State state;\n \n productType = order.getProductType();\n// state = order.getState();\n \n ui.say(\n \"Customer Name: \" + order.getCustomerName() + \"\\n\" +\n \"State: \" + order.getState().getName() + \"\\n\" + \n \"Product Type: \" + productType.getName() + \"\\n\" +\n \"Area: \" + order.getArea()+ \" sq ft\\n\" + \n// \"Material Cost Per Square Foot: $\" + productType.getMaterialCostPerSquareFoot() + \"\\n\" +\n \"Material Cost: $\" + order.getMaterialCost() + \"\\n\" +\n// \"Labor Cost Per Square Foot: $\" + productType.getLaborCostPerSquareFoot() + \"\\n\" +\n \"Labor Cost: $\" + order.getLaborCost() + \"\\n\" + \n// \"Tax Rate: \" + state.getTaxRate() + \"\\n\" +\n \"Tax: $\" + order.getTax() + \"\\n\" +\n \"Total: $\" + order.getTotal() \n );\n }",
"public String toString(){\n String reply = \"|\\n\";\n\t\t reply += \"| Product's name: \"+name+\"\\n\";\n\t\t reply += \"| Product's code: \"+code+\"\\n\";\n\t\t reply += \"| Water required for manufacture: \"+waterRequired4Manufacturing+\" litres\\n\";\n\t\t reply += \"| Units in inventory: \"+unitsInventory+\" COP\\n\";\n\t\t reply += \"|\\n\";\n\t\t reply += \"+-------------------------------------------------------------------------------------------------------------+\\n\";\n\t\t if (invima != null) {\n\t\t \treply += invima.toString();\n\t\t }\n\t\t\t \n\n\t\treturn reply;\n\n\t}",
"public StringBuffer getSkuDetail() {\n List<CheckoutCommerceItemBean> commerceItems;\n productsInfo.append(\"\");\n if (null != reviewOrderBean) {\n if (null != reviewOrderBean.getComponent()) {\n if (null != reviewOrderBean.getComponent()\n .getPaymentDetails()) {\n if (null != reviewOrderBean.getComponent()\n .getPaymentDetails().getCommerceItems()) {\n commerceItems = reviewOrderBean.getComponent()\n .getPaymentDetails().getCommerceItems();\n for (int i = 0; i < commerceItems.size(); i++) {\n\n productsInfo.append(commerceItems.get(i)\n .getCatalogRefId());\n productsInfo.append(\";\");\n /* sku quantity\n productsInfo.append(commerceItems.get(i)\n .getQuantity());\n productsInfo.append(\";\");*/\n productsInfo.append(String.format(\n \"%.2f\", Double.valueOf(commerceItems.get(i)\n .getAmount())));\n if (i != commerceItems.size() - 1) //avoid adding \"|\" at last product\n productsInfo.append(\"|\");\n\n }\n\n\n }\n }\n }\n }\n return productsInfo;\n }",
"public String toString(){\r\n String output = \"\";\r\n //Display the name \r\n output += this.name;\r\n //Turn the cost int in cents to a string in dollars\r\n String totalcost = DessertShoppe.cents2dollarsAndCents(getCost());\r\n //Print out a space between the name and where the cost needs to be\r\n for (int i = this.name.length(); i < DessertShoppe.RECEIPT_WIDTH - totalcost.length(); i++){\r\n output+=\" \";\r\n }\r\n //Print outt he cost string with the dollar sign\r\n output += totalcost;\r\n return output;\r\n \r\n }",
"public java.lang.String getOrderID(){\n return localOrderID;\n }",
"public java.lang.String getOrderID(){\n return localOrderID;\n }",
"public String toString(){\n\t\tNumberFormat nf = NumberFormat.getCurrencyInstance();\r\n\t\tString lastprice = nf.format(this.price);\r\n\t\tString lasttprice = nf.format(this.bulkP);\r\n\t\tif (this.bulkQ == 0){\r\n\t\t\treturn (this.name + \", \" + lastprice);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn this.name + \", \" + lastprice + \" (\" + bulkQ + \" for \" + lasttprice + \")\";\r\n\t\t}\r\n\t\t\r\n\t}",
"@Test\n public void testToString() {\n Order order = new Order(\"Test\", LocalTime.NOON, GridCoordinate.ZERO);\n\n Assert.assertEquals(\"Compare toString.\",\n \"Order [orderId=Test, orderTime=12:00, customerLocation=GridCoordinate [x=0, y=0]]\",\n order.toString());\n }",
"public String toString()\r\n\t{\r\n\t\treturn String.format(\"%6d \" + super.getDescription() + \" \" +\r\n\t\t\t\tsuper.getPriority() + \" \" + \"%5d \" + super.getStatus() + \r\n\t\t\t\tdate, super.getIDNumber(), super.getOrder()); //make the Strings both a set length somehow\r\n\t}",
"private ArrayList<String> GetOrderContent() {\n ArrayList<String> order_content = new ArrayList<>();\n boolean added = false;\n for (String line : receipt_lines) {\n if (IsReceiptHeader(line) || IsReceiptFooter(line) || ColesReceiptItem.Is_So_On_Keyword(line) || ColesReceiptItem.Is_Empty(line))\n continue;\n if (ColesReceiptItem.Is_Total_Line(line)) break;\n if (ColesReceiptItem.Is_Order_Summary_Keyword(line))\n added = true;\n else if (added) order_content.add(line);\n }\n return order_content;\n }",
"void showOrderText(int ID) throws OrderNotFoundException;",
"public java.lang.CharSequence getORDERDESCRIPTION() {\n return ORDER_DESCRIPTION;\n }",
"private String createOrderSummary(int price,boolean addWhippedCream,boolean addChocolate,String name){\n String priceMessage=\"Name :\"+name;\n priceMessage+=\"\\nadd whipped cream ? \"+addWhippedCream;\n priceMessage+=\"\\nadd chocolate ? \"+addChocolate;\n priceMessage+=\"\\nQuantity \"+quantity;\n priceMessage+=\"\\nTotal :$ \"+price;\n priceMessage+=\"\\nThank you!\";\n return priceMessage;\n }",
"@Override\n public String toString() {\n\n //convert cents to dollars using cents2dollarsAndCents\n String output = DessertShoppe.cents2dollarsAndCents(this.getCost());\n //create string storing cost in a string \n String costLength = Integer.toString(this.getCost());\n //find spacing needed between name and cost in reciept by subtracting 30(total spaces) by \n //length of name and length of cost\n int spacing = 30 - super.getName().length() - costLength.length() - 1;\n //loop through an add a space each time up to \"spacing\" integer\n for (int i = 0; i < spacing; i++) {\n output = \" \" + output;\n }\n //return name of cookie along with cost along with the right format posting amount of pounds with cost per pound\n return this.weight + \" lbs. \" + \"@ $\" + DessertShoppe.cents2dollarsAndCents(this.pricePerLbs) + \" /lb.\\n\" + this.getName() + output;\n }",
"public String toString() {\n String ret = \"\\n*****\" + title + \"*****\" + \"\\n\" + description + \"\\nBusiness Contact: \" + contact\n + \"\\nSupply List: \";\n for (String supply : supplies) {\n ret += \"\\n-\" + supply;\n }\n ret += \"\\nPrice: $\" + price + \"\\n\";\n return ret;\n }",
"@Override\r\n public String toString()\r\n {\r\n return String.format(\"%s: %n%s: %s (%s) %n%s: %d %n%s: $%,.2f\", \r\n \"invoice\", \"part number\", getPartNumber(), getPartDescription(), \r\n \"quantity\", getQuantity(), \"price per item\", getPricePerItem());\r\n }",
"public String toString()\r\n\t{\r\n\t\tString output = \" \";\r\n\t\tString specialModifier = \" \";\r\n\t\tif(this.isSpecial())\r\n\t\t{\r\n\t\t\tspecialModifier = \" *\";\r\n\t\t}\r\n\t\t\t\r\n\t\toutput = String.format(\"%-9s%-5s%-19s%s%.2f\",getType(), specialModifier, this.getName(),\"$ \", this.getPrice());\r\n\t\t//code to be done here\r\n\t\t\r\n\t\t\r\n\t\treturn output;\r\n\t}",
"@Override\n public String toString(){\n String printString = profile.toString();\n printString = printString + \"Payment $\";\n printString = printString + payDue;\n return printString;\n }",
"public String toString()\n\t{\n\t\treturn String.format(\"%-25s%-15s\\n%-25s%-15s\\n%-25s%-15s\\n%-25s%-15d\\n%-25s%-15s\\n%-25s$%,-13.2f\", \n\t\t\t\t \t\t \t \"Name\", this.getName(), \"Address:\", this.getAddress(), \"Telephone number:\", this.getTelephone(), \n\t\t\t\t \t\t \t \"Customer Number:\", this.getCustNum(), \"Email notifications:\", this.getSignedUp() == true ? \"Yes\" : \"No\",\n\t\t\t\t \t\t \t \"Purchase amount:\", this.getCustomerPurchase());\n\t}",
"public static String printOutput(ArrayList<ArrayList<Furniture>> purchased, boolean gui){\n StringBuilder sb = new StringBuilder();\n int price = 0;\n sb.append(\"Purchase \");\n for(int i = 0; i < purchased.size(); i++){\n price = price + getComboPrice(purchased.get(i));\n for(int j = 0; j < purchased.get(i).size(); j++){\n if(i == 0 && j == 0){\n sb.append(purchased.get(i).get(j).getID() + \", \");\n }else if(i == (purchased.size() - 1) && j == (purchased.get(i).size() - 1)){\n sb.append(\"and \" + purchased.get(i).get(j).getID());\n }else{\n sb.append(purchased.get(i).get(j).getID() + \", \");\n }\n }\n }\n sb.append(\" for $\" + price + \".\\n\");\n // create order form\n writeOrderForm(purchased, price);\n // print order summary message to console or GUI\n if(gui){\n return sb.toString();\n }\n System.out.println(\"\\n\" + sb.toString());\n return \"\";\n }",
"public String toString() {\r\n int totalPrice = 0;\r\n for (Ticket ticket : tickets) {\r\n totalPrice += ticket.price;\r\n }\r\n StringBuilder stringBuilder = new StringBuilder();\r\n stringBuilder.append(\"Costo totale : \").append(totalPrice);\r\n stringBuilder.append(String.format(\" Itinerario numero: \", itinerary.id+1));\r\n for (Ticket ticket : tickets) {\r\n stringBuilder.append(String.format(\"(Ticket numero %d prezzo %d) + \",ticket.ticketNumber, ticket.price));\r\n }\r\n if (tickets.size() == 0)\r\n stringBuilder.append(\"Itinerario non possibile\");\r\n else\r\n stringBuilder.setLength(stringBuilder.length()-2);\r\n return stringBuilder.toString();\r\n\r\n }",
"public static String getObjectDetailDescription(Context ctx, ObjectDetail element) {\n String body = \"\";\n\n if (element.bIsDevice) {\n body = ctx.getString(R.string.od_serial) + \" \" + element.serial\n + \"\\n\" + ctx.getString(R.string.od_location) + \" \" + element.location\n + \"\\n\" + ctx.getString(R.string.od_osver) + \" \" + element.ver\n + \"\\n\" + ctx.getString(R.string.od_updated) + \" \" + Utils.unNormalizeDate(ctx, element.installDate);\n } else {\n body = ctx.getString(R.string.od_version) + \" \" + element.ver\n + \"\\n\" + ctx.getString(R.string.od_installdate) + \" \" + Utils.unNormalizeDate(ctx, element.installDate)\n + \"\\n\" + ctx.getString(R.string.od_count) + \" \" + DBUtils.countApp(ctx, element.pkg);\n }\n return body;\n }",
"public String displayDetails()\n\t{\n\t\tString displayDetail = \"\";\n\t\t \n\t\tdisplayDetail = (\"Make of your System\\t\\t=>\\t\" + make + \n\t\t\t\t\t\t\"\\nModel of your System\\t\\t=>\\t\" + model + \n\t\t\t\t\t\t\"\\nSpeed of your System\\t\\t=>\\t\" + speed + \n\t\t\t\t\t\t\"\\nMemory of your System\\t\\t=>\\t\" + memorySize + \" MB \" +\n\t\t\t\t\t\t\"\\nHard Disk of your System\\t=>\\t\" + hardDiskSize + \" GB \" +\n\t\t\t\t\t\t\"\\nPurchase Cost of your System\\t=>\\t\" + purchaseCost);\n\t\t\n\t\treturn displayDetail;\n\t}",
"public java.lang.CharSequence getORDERDESCRIPTION() {\n return ORDER_DESCRIPTION;\n }",
"public String toString(){\n\t\treturn getClass() + \" has tracking number \" + trackingNumber + \", weighs \" + weight + \" lb(s), and shipping cost of \" + shippingCost;\n\t}",
"protected String stringGoodsInfo() {\n String ret = \"Goods Supply\";\n for (G good : this.goods) {\n ret += \"\\nN = \" + good.supply;\n }\n return ret;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"FlightOrder [flight=\" + flight.getFlightNumber() + \", order=\" + order\n\t\t\t\t+ \", totalAmount=\" + totalAmount\n\t\t\t\t+ \", flight tickets=\" + tickets + \"]\";\n\t}",
"private String getOrderCode(int pkgCode){\n\t\tint a = pkgCode ;\n\t\tint b = a/10 ;\n\t\tint c = b*10 ;\n//\t\tSystem.out.println(c);\n\t\treturn c+\"\" ;\n\t}",
"public String toString(){\n\t\tString msg = \"\";\n\t\tmsg += messageInfo[0] + \" \" + messageInfo[1] + \" \" + messageInfo[2] + \"\\n\";\n\t\tif (!headerLines.isEmpty()){\n\t\t\tfor (int i = 0; i < headerLines.size(); i++){\n\t\t\t\tmsg += headerLines.get(i).get(0) + \" \" + headerLines.get(i).get(1) + \"\\n\";\n\t\t\t}\n\t\t}\n\t\tmsg += \"\\n\";\n\t\tif (entity.length > 0){\n\t\t\t\tmsg += entity;\n\t\t}\n\t\treturn msg;\n\t}",
"public String toString(){\r\n //your code here\r\n return(\"Withdrawal of: $\" + amount + \"Date: \" + date + \"from account: \" + account);\r\n }",
"public String toString(){\n return getName() + getDetails() + getPhone();\n }",
"@Override\r\n public String toString() \r\n { \r\n //Referenced: https://javarevisited.blogspot.com/2012/03/how-to-format-decimal-number-in-java.html\r\n DecimalFormat twoPlace = new DecimalFormat(\"##.00\");\r\n \r\n \r\n //Referenced: https://stackoverflow.com/questions/29038627/how-can-i-print-a-new-line-in-a-tostring-method-in-java\r\n return \"\\tFirst Name: \" + getFirstName() + \"\\n\" + \"\\tLast Name: \" + getLastName() + \"\\n\" + \"\\tTicket: \" + getTicketType() + \"(\" +getDesc() + \")\" \r\n + \"\\n\" + \"\\tPrice: $\" + twoPlace.format(getPrice()) + \"\\n\" + \"\\tVenue: \" + getVenueName() + \"\\n\" + \"\\tPerformance: \" + getPerformanceName() +\r\n \"\\n\" + \"\\tDate: \" + getPerformanceDate() + \"\\n\" + \"\\tTime: \" + getPerformanceTime();\r\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuffer result = new StringBuffer();\n\t\t\n\t\tresult.append(\"orderYear:\" + this.orderYear);\n\t\tresult.append(\"clashDate:\" + this.clashDate);\n\t\tresult.append(\"clashBirthYear:\" + this.clashBirthYear);\n\t\tresult.append(\"name:\" + this.name);\n\t\tresult.append(\"householder:\" + this.householder);\n\t\t\n\t\treturn result.toString();\n\t}",
"private String createOrderSummary(String userName, int price, boolean addWhippedCream, boolean addChocolate, boolean addCinnamon, boolean addMarshmallows){\n String priceMessage = \"Name: \" + userName;\n priceMessage = priceMessage + \"\\nAdd Marshmallows? \" + addMarshmallows;\n priceMessage = priceMessage + \"\\nAdd Cinnamon? \" + addCinnamon;\n priceMessage = priceMessage + \"\\nAdd Whipped Cream? \" + addWhippedCream;\n priceMessage = priceMessage + \"\\nAdd Chocolate? \" + addChocolate;\n priceMessage = priceMessage + \"\\nQuantity: \" + quantity;\n priceMessage = priceMessage + \"\\nTotal: $\" + price;\n priceMessage = priceMessage + \"\\nThank you!\";\n return priceMessage;\n }",
"public String toString()\n\t{\n\treturn\n\t\t\t//is the customer a student ? \"Yes, do it\" : \"No, do it\"\n\t\t\t\"CUSTOMER DETAILS: \" + this.name + \" age: \" + this.age + \" Student? \" + (this.isStudent ? \"Yes\" : \"No\")\n\t\t\t+ \"\\n\" + \n\t\t\t//returns the final price of the ticket using the get method\n\t\t\t//the String.format gives the decimal ccurrent format for currency\n\t\t\tString.format(\"TOTAL COST: $%1.2f\", cost())\n\t\t\t+ \"\\n\" + \n\t\t\t\"------------------------------------------------------------\";\n\t}",
"public String toString()\n {\n /**\n * Set the format as [timestamp] account number : command\n */\n String transaction = \"[\" + timestamp + \"] \" + accountInfo.getAccountNumber() + \" : \" + command.name(); \n \n /**\n * Return the string.\n */\n return transaction;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Refueling [OrderID=\" + OrderID + \", ownerID=\" + ownerID + \", CarNumber=\" + CarNumber + \", GasStation=\"\r\n\t\t\t\t+ GasStation + \", address=\" + address + \", GasType=\" + GasType + \", RateForLiter=\" + RateForLiter\r\n\t\t\t\t+ \", Qunatity=\" + Qunatity + \", Price=\" + Price + \", Date=\" + Date + \", pumpNumber=\" + pumpNumber\r\n\t\t\t\t+ \", service=\" + service + \", time=\" + time + \", saleID=\" + saleID + \"]\";\r\n\t}",
"public String toString() {\n\t\tString result=\"\";\n\t\tString a = street;\n\t\tString b = Integer.toString(number);\n\t\tString c = zipCode;\n\t\tString d = city;\n\t\tresult = a + \" \"+ b+\" \"+ c + \" \"+d;\n\t\t\n\t\treturn result;\n\t}",
"String getPaymentInformation();",
"public String toSortString() {\r\n\t\t\r\n\t\t// to seperate between each attribute.\r\n\t\tString separator = (char) 0 + \"\"; \r\n\t\t\r\n\t\tString line = this.getLastName() + separator\r\n\t\t\t+this.getFirstName() + separator\t\t\t\r\n\t\t\t+this.getPhoneNumber();\r\n\t\t\r\n\t\treturn line;\r\n\t}",
"private static String getDataToNotify(FoodOrder foodOrder) {\n EntityManager entityManager = DatabaseManager.getInstance().getEntityManager();\n OrderStatus orderStatus = foodOrder.getStatus();\n // some default message.\n String message = \"{\\\"hello\\\":\\\"world\\\"}\";\n // The order has just been confirmed we send all the orders to update the page.\n if (orderStatus == OrderStatus.COOKING) {\n List<FoodOrder> foodOrders = entityManager.createQuery(\"from FoodOrder foodOrder \"\n + \"where foodOrder.status = :orderStatus\",\n FoodOrder.class).setParameter(\"orderStatus\", OrderStatus.COOKING)\n .getResultList();\n // We have to add the order in question because the change hasn't been committed yet.\n foodOrders.add(foodOrder);\n\n foodOrders.sort(Comparator.comparing(FoodOrder::getTimeConfirmed));\n\n OrderData[] orderData = new OrderData[foodOrders.size()];\n for (int i = 0; i < orderData.length; i++) {\n orderData[i] = new OrderData(foodOrders.get(i));\n }\n message = JsonUtil.getInstance().toJson(orderData);\n } else if (orderStatus == OrderStatus.READY_TO_DELIVER) {\n message = \"An Order is Ready to Deliver!\";\n } else if (orderStatus == OrderStatus.READY_TO_CONFIRM) {\n message = \"A table is ready to confirm their order!\";\n }\n entityManager.close();\n\n return message;\n }",
"public List<String> dumpOrders(Galaxy g, Player player){\r\n\t\tList<String> ordersTextList = new ArrayList<String>();\r\n\t\t// add expenses\r\n\t\tfor (Expense anExpence : expenses){\r\n\t\t\tordersTextList.add(\"Expense: \" + anExpence.getText(g,this));\r\n\t\t}\r\n\r\n\t\t// add ship movements\r\n\t\tfor (ShipMovement aShipMovement : shipMoves){\r\n\t\t\tordersTextList.add(aShipMovement.getText(g));\r\n\t\t}\r\n\t\t\r\n\t\t// add squadron moves to carriers\r\n\t\tfor (ShipToCarrierMovement aShipToCarrierMovement : shipToCarrierMoves) {\r\n\t\t\tordersTextList.add(aShipToCarrierMovement.getText(g));\r\n\t\t}\r\n\r\n\t\t// add changes in planet visibility\r\n\t\tfor (String aPlanetName : planetVisibilities){\r\n\t\t\tStringBuffer sb = new StringBuffer();\r\n\t\t\tPlanet tempPlanet = g.findPlanet(aPlanetName);\r\n\t\t\tsb.append(\"Change planet \" + tempPlanet.getName() + \" to \");\r\n\t\t\tif (tempPlanet.isOpen()){ // change to closed\r\n\t\t\t\tsb.append(\"closed\");\r\n\t\t\t}else{ // change to open\r\n\t\t\t\tsb.append(\"open\");\r\n\t\t\t}\r\n\t\t\tsb.append(\" status.\");\r\n\t\t\tordersTextList.add(sb.toString());\r\n\t\t}\r\n\r\n\t\t// add changes in abandoning planets\r\n\t\tfor (String aPlanetName : abandonPlanets){\r\n\t\t\tPlanet tempPlanet = g.findPlanet(aPlanetName);\r\n\t\t\tordersTextList.add(\"Planet \" + tempPlanet.getName() + \" is to be abandoned.\");\r\n\t\t}\r\n\r\n\t\t// add ships do be selfdestroyed\r\n\t\tfor (Integer shipId : shipSelfDestructs){\r\n\t\t\tSpaceship tempss = g.findSpaceship(shipId);\r\n\t\t\tordersTextList.add(\"Spaceship \" + tempss.getName() + \" is to be destroyed.\");\r\n\t\t}\r\n\r\n\t\t// add VIPs do be selfdestroyed\r\n\t\tfor (Integer vipId : VIPSelfDestructs){\r\n\t\t\tVIP tempVIP = g.findVIP(vipId);\r\n\t\t\tordersTextList.add(\"VIP \" + tempVIP.getName() + \" is to be retired.\");\r\n\t\t}\r\n\r\n\t\t// add ships do be selfdestroyed\r\n\t\tfor (Integer buildingId : buildingSelfDestructs){\r\n\t\t\tBuilding tempBuilding = g.findBuilding(buildingId,player);\r\n\t\t\tordersTextList.add(\"Building \" + tempBuilding.getBuildingType().getName() + \" at \" + tempBuilding.getLocation().getName() + \" is to be destroyed.\");\r\n\t\t}\r\n\r\n\t\t// add VIP movements\r\n\t\tfor (VIPMovement aVIPMovement : VIPMoves){\r\n\t\t\tordersTextList.add(aVIPMovement.getText(g));\r\n\t\t}\r\n\r\n\t\t// Change planet notes\r\n\t\tfor (PlanetNotesChange change : planetNotesChanges) {\r\n\t\t\tordersTextList.add(change.getText());\r\n\t\t}\r\n\r\n\t\t// other orders (i.e. abandon game)\r\n\t\tif (abandonGame){\r\n\t\t\tordersTextList.add(\"Abandon game\");\r\n\t\t}\r\n\r\n\t\tif (ordersTextList.size() == 0){\r\n\t\t\tordersTextList.add(\"No orders exist\");\r\n\t\t}\r\n\t\t\r\n\t\treturn ordersTextList;\r\n\t}",
"public String getOrderno() {\n return orderno;\n }",
"public String getOrderno() {\n return orderno;\n }",
"public OrderDetail getOrderDetail(final String id);",
"public String getOrderRemark() {\n return orderRemark;\n }",
"public String toString (){\r\n \r\n DecimalFormat formatter = new DecimalFormat(\"$###,###.00\");\r\n String formatTotal = formatter.format(total);\r\n \r\n String spacer = \"--------------------\";\r\n String printName = \"Name: \" + this.name;\r\n String printTriage = \"Urgency of visit (1 = urgent, 5 = routine): \" + this.triage;\r\n String printCoverage = \"Percent of bill covered by insurance: \" + this.coverage;\r\n String printTotal = \"Amount owed to hospital before insurance: \" + formatTotal;\r\n String combined = spacer + \"\\n\\n\" + printName + \"\\n\\n\" + printTriage + \"\\n\\n\" + printCoverage + \"\\n\\n\" + printTotal + \"\\n\\n\" + spacer;\r\n return combined;\r\n }",
"public String toString(){\n String out = \"\";\n for(Flight currentFlight : flights){\n out += currentFlight.toString() + \"\\n\";\n }\n for(Availability currentAvailability : availabilities){\n out += currentAvailability.toString() + \"\\n\";\n }\n for(Price currentPrice : prices){\n out += currentPrice.toString() + \"\\n\";\n }\n out += flightSponsored.toString() + \"\\n\";\n return out;\n }",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(itemName + \" \" + price + \"kr \" + tax + \"% \");\n return builder.toString();\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tString toReturn = \"\";\r\n\t\ttoReturn = String.format(\"Warehouse Name: %s%nPhone Number: %s%nAddress: %s\", this.name, this.phone, this.address);\r\n\t\ttoReturn += String.format(\"%nInventory Stock:%n%-30s|%-15s|%-15s|%-20s|%-15s|%-10s\", \"Product Name\", \"Wholesale Cost\", \"Retail Price\", \"Product Category\", \"Quantity Sold\", \"In Stock\");\r\n\t\tIterator<Integer> productCodes = inventory.keySet().iterator();\r\n\t\twhile(productCodes.hasNext()) {\r\n\t\t\tint code = productCodes.next();\r\n\t\t\tint inStock = inventory.get(code);\r\n\t\t\tif(inStock >= 0) {\r\n\t\t\t\tfor(Product p : Data.productArr) {\r\n\t\t\t\t\tif(p.getID() == code) {\r\n\t\t\t\t\t\ttoReturn += \"\\n\" + p.toString() + \"|\" + inStock;\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}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}",
"java.lang.String getDetails();"
]
| [
"0.7663892",
"0.725494",
"0.7232107",
"0.7228493",
"0.70202917",
"0.6913711",
"0.68694997",
"0.6848003",
"0.682083",
"0.6721722",
"0.6700569",
"0.6606326",
"0.65711564",
"0.6549575",
"0.6546579",
"0.65352684",
"0.64531565",
"0.6388167",
"0.63617283",
"0.632425",
"0.62593454",
"0.62218994",
"0.6201452",
"0.619563",
"0.6187469",
"0.61059976",
"0.6081295",
"0.60715514",
"0.6066468",
"0.6035639",
"0.6001792",
"0.5972085",
"0.5968115",
"0.5963967",
"0.5942414",
"0.593383",
"0.5920066",
"0.59028745",
"0.5888026",
"0.5883",
"0.58790314",
"0.58740145",
"0.5868116",
"0.5862617",
"0.58625096",
"0.58437914",
"0.5840086",
"0.58348346",
"0.5820599",
"0.58162296",
"0.5813571",
"0.58098376",
"0.5806284",
"0.5804803",
"0.5804803",
"0.5800195",
"0.57931095",
"0.57800597",
"0.5776948",
"0.5770642",
"0.57701254",
"0.57678056",
"0.57617193",
"0.57563424",
"0.5751931",
"0.57436377",
"0.57406884",
"0.5740524",
"0.5730591",
"0.57293797",
"0.57172114",
"0.57020473",
"0.5698405",
"0.5685922",
"0.56842095",
"0.56809705",
"0.56786543",
"0.56633145",
"0.56565243",
"0.5656108",
"0.56521636",
"0.5651888",
"0.5648441",
"0.5645248",
"0.5637803",
"0.5637529",
"0.56344163",
"0.56327677",
"0.5628837",
"0.56282157",
"0.56273025",
"0.56217295",
"0.56217295",
"0.56176186",
"0.5607623",
"0.56062865",
"0.5604927",
"0.5600751",
"0.559589",
"0.5594761"
]
| 0.5671036 | 77 |
On click destination for the summary button | public void orderSummaryPage(View v){
String order = gatherOrder(v);
Intent redirect = new Intent(this, SummaryActivity.class);
redirect.putExtra(EXTRA_MESSAGE,order);
startActivity(redirect);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@When(\"^I click on statististics button$\")\n public void i_click_on_statististics_button() {\n onViewWithId(R.id.btnStatistics).click();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (isDetailed) {\n\t\t\t\t\tcloseDetail();\n\t\t\t\t} else {\n\t\t\t\t\tshowDetail();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View view) {\n\n shareDetails(getAdapterPosition());\n }",
"public void clickDetailViewButton() {\n\t\tfilePicker.stickyButton(locDetailBtn);\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\texportall();\n\t\t\t}",
"public void onClick(View btn) {\n String paintingDescription = (String) btn.getContentDescription();\n\n // MAKE A METHOD CALL TO DISPLAY THE INFORMATION\n displayToast(paintingDescription);\n }",
"public void onReportClick(){\r\n\t\tmyView.advanceToReport();\r\n\t}",
"@Override \n public void onClick(View v) {\n simpandata();\n }",
"public void onClick(View v) {\n FragmentManager fm = getFragmentManager();\n List<SummaryPoint> summary = getExpensesSummary();\n SummaryFragment dialog = SummaryFragment.newInstance(summary.toArray(new SummaryPoint[summary.size()]));\n dialog.show(fm, SUMMARY_DIALOG_TAG);\n\n mTracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Budget\")\n .setAction(\"Click\")\n .build());\n materialDesignFAM.close(animate);\n }",
"public void click_Continue_ShippingSummary()\n\t{\n\t\twaitForVisibility(continueShippingSummary);\n\t\tcontinueShippingSummary.click();\n\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\texport100();\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfireDetailEvent(new DetailEvent(this,'P'));\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View arg0)\r\n\t\t\t{\r\n\t\t\t\tsaveUserDetails();\r\n\r\n\t\t\t\tActivity a = getActivity();\r\n\r\n\t\t\t\tif (a instanceof LauncherActivity)\r\n\t\t\t\t{\r\n\t\t\t\t\t((LauncherActivity) a).loadWeightMeasuringUI();\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tpulllist();\n\t\t\t}",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tif (moreSummaryBtn.getText().toString().equals(getResources().getString(com.rs.mobile.wportal.R.string.more))) {\n\t\t\t\t\t\n\t\t\t\t\t\tmoreSummaryBtn.setText(getResources().getString(com.rs.mobile.wportal.R.string.hide));\n\t\t\t\t\t\t\n\t\t\t\t\t\tsummaryTextView.setSingleLine(false);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsummaryTextView.invalidate();\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t\tmoreSummaryBtn.setText(getResources().getString(com.rs.mobile.wportal.R.string.more));\n\t\t\t\t\t\t\n\t\t\t\t\t\tsummaryTextView.setMaxLines(4);\n\t\t\t\t\t\t\n\t\t\t\t\t\tsummaryTextView.invalidate();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfireDetailEvent(new DetailEvent(this, 'R'));\r\n\t\t\t}",
"@When(\"^I see a statistics button$\")\n public void i_see_a_statistics_button() {\n onViewWithId(R.id.btnStatistics).isDisplayed();\n }",
"public void onClick(View v) {\n toViewBudget();\n }",
"@Override\n public void onClick(View view) {\n int id = view.getId();\n switch (id) {\n case R.id.popup_button:\n showPopup(view);\n break;\n case R.id.parent_card_view:\n DataResult dataResult = (DataResult) view.getTag();\n DetailedDataResultController.toDetailedDataResultsActivity(context, dataResult);\n break;\n }\n }",
"public void clickpublish() {\n\tthis.publish.click();\n}",
"@Override\n\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\n\t\t\t\t\tshowwindow(presentadd_group);\n\t\t\t\t}",
"public void onClick(View v) {\n\t\t\t\t Intent intentBatteryUsage = new Intent(Intent.ACTION_POWER_USAGE_SUMMARY); \n\t\t\t startActivity(intentBatteryUsage);\n\t\t\t}",
"@FXML\n private void copySummary() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(SUMMARY_MESSAGE);\n clipboard.setContent(url);\n }",
"public void showCustomSummary() {\n editSummaryFragment.show();\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\topenInterestDialog();\n\t\t\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfireDetailEvent(new DetailEvent(this, 'H'));\r\n\t\t\t}",
"@Override\n public void onButtonClicked(View v) {\n\n Log.e(getClass().getSimpleName(),\"Button clicked !\");\n startActivity(new Intent(this,DetailActivity.class));\n\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t}",
"public void clickDemandSideManagement();",
"@Override\n\t\t\tpublic void onClick(View v) {\n\n\n\t\t\t\tfnCreditAndStockCal(1);\n\n\n\t\t\t}",
"@Override\n public void onClick(View v) {\n updateInformation();\n\n }",
"void btnGenReport_actionPerformed(ActionEvent e) {\n JButtonQueryButtonAction(e);\r\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tgeti();\n\t\t\t}",
"public void clickNextButton() {\n if (editSummaryFragment.isActive()) {\n //we're showing the custom edit summary window, so close it and\n //apply the provided summary.\n editSummaryFragment.hide();\n editPreviewFragment.setCustomSummary(editSummaryFragment.getSummary());\n } else if (editPreviewFragment.isActive()) {\n //we're showing the Preview window, which means that the next step is to save it!\n if (abusefilterEditResult != null) {\n //if the user was already shown an AbuseFilter warning, and they're ignoring it:\n funnel.logAbuseFilterWarningIgnore(abusefilterEditResult.getCode());\n }\n getEditTokenThenSave(false);\n funnel.logSaveAttempt();\n } else {\n //we must be showing the editing window, so show the Preview.\n hideSoftKeyboard(this);\n editPreviewFragment.showPreview(title, sectionText.getText().toString());\n funnel.logPreview();\n }\n }",
"@Override\n public void onClick(View v) {\n showMemoriesPopover();\n }",
"@Override\n public void onClick(View v) {\n ArticleUtil.launchDetailActivity(mContext, bean.getAid(), bean.getSid(), bean.getAl(), false, bean);\n GoogleAnalyticsTracker.setGoogleAnalyticsEvent(mContext, \"Related Article\", \"Related article: Article Clicked\", \"Article detail page\");\n FlurryAgent.logEvent(\"Related Article: \" + \"Article Clicked\");\n }",
"public void buttonClicked();",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdct5++;\r\n\t\t\t\tdtAdd5.setText(\"\" + dct5);\r\n\t\t\t\tdttotal = dttotal + 200;\r\n\t\t\t\tdtotal.setText(\"Bill Scratch Pad : To Pay tk. \" + dttotal);\r\n\t\t\t}",
"@Override\n public void onClick(View v) {\n viewModel.holderClicked();\n }",
"public void onButtonTouched(int index, View anchor ){\n WorkflowStepDescriptor descr = descriptors.get(index);\n descr.status_completed = true;\n FutureVisitActivity.this.showMessageDialog(index, anchor);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\n\t\t\t}",
"@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tLinkLikeButton source = (LinkLikeButton) e.getSource();\r\n\t\tif(e.getClickCount()==1){\r\n\t\tif (source.getName().equals(\"TableLinkLikeButton\")) {\r\n\t\t\tif (source.getText().equals(\"Tags\") || source.getText().equals(\"Ingress\") || source.getText().equals(\"Egress\") || source.getText().equals(\"Rules\") || source.getText().equals(\"All Actions\") || source.getText().equals(\"All Conditions\")\r\n\t\t\t\t\t|| source.getText().equals(\"Redirect\") || source.getText().startsWith(\"ELBs\") || source.getText().contains(\"targetgroup\") || source.getText().contains(\"Method Settings\")) {\r\n\t\t\t\t// Do nothing\r\n\t\t\t} else {\r\n\t\t\t\tsource.getCustomAWSObject().showDetailesFrame(getAccount(), source.getCustomAWSObject(), jScrollableDesktopPan);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t\tsource.getCustomAWSObject().showDetailesFrame(getAccount(), source.getCustomAWSObject(), jScrollableDesktopPan);\r\n\t\t}\r\n\t\t}\r\n\t}",
"PreViewPopUpPage clickImageLink();",
"@Override\n\tprotected void OnClick() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\n\t\t\t}",
"@Override\n\tpublic void onClick(View view) {\n\t\tswitch (view.getId()) {\n\t\tcase R.id.tv_income_time:\n\t\t\tshowTime();\n\t\t\tbreak;\n\t\tcase R.id.btn_save_income:\n\t\t\tsaveIncomeInfo();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\tMenu.currentCard = 2;\r\n\t\t\tCardLayout cl = (CardLayout)(Menu.cardPanel.getLayout());\r\n\t\t\tSystem.out.println( ((JButton)evt.getSource()).getText() );\r\n\t\t\tcl.show(Menu.cardPanel, \"MATCH_RESULTS_SCREEN\");\r\n\t\t}",
"@Override\n public void onClick(View v) {\n MainActivity.getMainActivity().loadDetailScreen(station);\n\n }",
"@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t}",
"@Override\n\t\tpublic void onClick(Widget sender) {\n\t\t\t\n\t\t}",
"@Override\r\n\t\t\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\t\t\tWindow.open(result.get(\"description\"), \"description\", result.get(\"description\"));\r\n\r\n\t\t\t\t\t\t}",
"@Override\n public void onClick(View v) {\n counter[0] = counter[0] + 1;\n holder.quantity.setText(String.valueOf(counter[0]));\n sum[0] += newItem.getPrice();\n items.add(newItem.getTitle());\n adapterInterface.onClick(sum[0], items);\n }",
"@Override\n public void onClick(View v) {\n\n switch (v.getId()){\n\n case R.id.tv_clear:\n tv_sum.setText(\"\");\n break;\n case R.id.tv_subtract:\n break;\n case R.id.tv_proceeds:\n Bundle bundle=new Bundle();\n bundle.putString(\"money\",tv_sum.getText().toString());\n Skip.mNextFroData(mActivity, CashierActivity.class,bundle);\n break;\n case R.id.tv_point:\n tv_sum.setText(\".\");\n break;\n case R.id.tv_zero:\n tv_sum.setText(\"zero\");\n break;\n case R.id.iv_remark:\n Skip.mNext(mActivity, CashierRemarkActivity.class);\n break;\n \n case R.id.tv_title_left:\n \tSkip.mBack(mActivity);\n \tbreak;\n }\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tshowProgress();\n\t\t\t\tgetVedioMainInfo(vedioMainUrl);\n\t\t\t}",
"void onTopQDMPasteClicked();",
"@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tfnCreditAndStockCal(2);\n\n\n\t\t\t}",
"@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}",
"@Override\r\n public void onClick(ClickEvent event) {\n }",
"private static final void displayAttractionSummary()\r\n {\r\n System.out.println(\"Display Attraction Summary Feature Selected!\");\r\n System.out.println(\"--------------------------------------\");\r\n \r\n // step through array of attractions with for loop\r\n for(int i = 0; i < attractionCount; i++)\r\n {\r\n attractionList[i].printDetails();\r\n System.out.println();\r\n }\r\n }",
"public void onclickmrc(View v){\n Button b = (Button)v;\n String t;\n t=df2.format(total);\n screen.setText(t);\n }",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tfnCreditAndStockCal(3);\n\n\n\t\t\t}",
"@Override\n public void onClick(View view) {\n Intent intent = MeasurementResultActivity.newIntent(getActivity(), null);\n startActivity(intent);\n }",
"@Override\n public void onClick() {\n System.out.println(\"Button has been JUST clicked\");\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdct6++;\r\n\t\t\t\tdtAdd6.setText(\"\" + dct6);\r\n\t\t\t\tdttotal = dttotal + 130;\r\n\t\t\t\tdtotal.setText(\"Bill Scratch Pad : To Pay tk. \" + dttotal);\r\n\t\t\t}",
"@Override\n public void onClick() {\n }",
"@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tdct1++;\r\n\t\t\t\tdtAdd1.setText(\"\" + dct1);\r\n\t\t\t\tdttotal = dttotal + 120;\r\n\t\t\t\tdtotal.setText(\"Bill Scratch Pad : To Pay tk. \" + dttotal);\r\n\t\t\t}",
"public void onClick(View v) {\n\t\t\t\t\tinvokeResults();\r\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTestDownload();\r\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\topenMacrosCalculator(v);\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onClick(View view) {\n launchGridProfile(view);\n }",
"@Override\n public void onClick(View view) {\n launchGridProfile(view);\n }",
"public void viewTaskDetails(){\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"StatisticsTab\"), \"StatisticsTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"TasksTab\"), \"TasksTab\");\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"BtnTaskDetails\"), \"Task Details Button\");\n\n\t}"
]
| [
"0.66370964",
"0.65887713",
"0.6514845",
"0.6370037",
"0.6242644",
"0.62287563",
"0.62185305",
"0.6196365",
"0.6187509",
"0.61789405",
"0.6154108",
"0.6140861",
"0.60757786",
"0.6044197",
"0.60359347",
"0.6010437",
"0.5997502",
"0.5971758",
"0.5968788",
"0.5966565",
"0.5952432",
"0.59490395",
"0.5934509",
"0.5923",
"0.5916019",
"0.5904803",
"0.5892649",
"0.5890864",
"0.5890864",
"0.5890864",
"0.58894056",
"0.58893037",
"0.58834237",
"0.5878256",
"0.58673364",
"0.5867188",
"0.5849549",
"0.584251",
"0.5839415",
"0.5834643",
"0.582799",
"0.5814289",
"0.58127385",
"0.5811152",
"0.5811152",
"0.5811152",
"0.5811152",
"0.58004606",
"0.5797491",
"0.5797352",
"0.5790516",
"0.57699984",
"0.57639456",
"0.5761661",
"0.5760147",
"0.5751535",
"0.5750889",
"0.5750368",
"0.57488686",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.574597",
"0.5743484",
"0.57427335",
"0.57413125",
"0.57351196",
"0.57242197",
"0.57180685",
"0.57124984",
"0.5709484",
"0.5708823",
"0.5705495",
"0.5703342",
"0.5699812",
"0.5699547",
"0.5696331",
"0.5680585",
"0.568039",
"0.5678252",
"0.5673917",
"0.5673917",
"0.56700206"
]
| 0.615639 | 10 |
Helper function to start the email application | public void sendEmail(Uri uri, String chooserTitle) {
Intent emailIntent = new Intent(Intent.ACTION_SENDTO, uri);
startActivity(Intent.createChooser(emailIntent, chooserTitle));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void launchEmail(){\n\t\tIntent sendIntent = new Intent(Intent.ACTION_MAIN); \n \tsendIntent.addCategory(Intent.CATEGORY_APP_EMAIL);\n\n if (sendIntent.resolveActivity(pacman) != null) {\n \tstartActivity(sendIntent);\n \treturn;\n } else {\n \tToast.makeText(context, \"No Email App Availible\", Toast.LENGTH_SHORT).show();\n \treturn;\n }\n\t}",
"public static void main(String[] args) {\n MailAdapter mailAdapter = MailAdapter.getInstance();\n mailAdapter.sendEmail(\"[email protected]\", \"[email protected]\", \"We are doing Java\", true);\n mailAdapter.receiveEmail();\n\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tif(desktop == null) return ;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tdesktop.mail(uri);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}",
"public static void main(String[] args) {\n\n\t\tPolyMorphismExample polyMorphism = new PolyMorphismReference();\n\t\tpolyMorphism.loginToGmailApp();\n\t\tpolyMorphism.sendEmail();\n\t\t\n\t}",
"public static void main(String[] args) {\n\n // run EmailReceiverServer\n try {\n EmailReceiverServer.main();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n // run EmailSenderServer\n EmailSenderServer.main();\n\n }",
"public void email() {\n\t\t\t\temailGUI = new EmailGUI();\n\t\t\t\tpopUpWindow = emailGUI.getFrame();\n\t\t\t\tpopUpWindow.setVisible(true);\n\t\t\t\temailGUI.setListeners(new mailListener());\n\t\t\t}",
"public static void main(String[] args) {\n\t\tEmail email1 = new Email(\"Monis\",\"Saeed\");\r\n\t\temail1.SetAlternateEmail(\"[email protected]\");\r\n\t\temail1.SetMailBoxCapacity(500);\r\n\t\t\r\n\t\tSystem.out.println(email1.ShowInfo());\r\n\t}",
"public static void main(String[] args) throws AddressException, MessagingException, IOException {\n MonitoringMail mail = new MonitoringMail();\n mail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, TestConfig.messageBody, TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}",
"SendEmail() {\t\n\t}",
"public static void start() {\r\n\t\ttry {\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\tDate dtnow = new Date();\r\n\t\t\t//Verify email queue\r\n\t\t\tIterator<Mailtogo> it = new MailtogoDAO().getQueue().iterator();\r\n\t\t\twhile(it.hasNext())\r\n\t\t\t{\r\n\t\t\t\tMailtogo mtg = (Mailtogo)it.next();\r\n\t\t\t\tmtg.setMtg_status(\"P\");\r\n\t\t\t\tmtg.save();\r\n\t\t\t\tdtnow = new Date();\r\n\t\t\t\tSystem.out.println(format.format(dtnow) + \" -> Sending message \" + mtg.getMtg_id());\r\n\t\t\t\tsend(mtg);\r\n\t\t\t}\r\n\t\t} catch (Exception e)\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void startEmailActivity(String email, String subject, String text) {\n try {\n StringBuilder builder = new StringBuilder();\n builder.append(\"mailto:\");\n builder.append(email);\n\n Intent intent = new Intent(Intent.ACTION_SENDTO, Uri.parse(builder.toString()));\n intent.putExtra(Intent.EXTRA_SUBJECT, subject);\n intent.putExtra(Intent.EXTRA_TEXT, text);\n startActivity(intent);\n overridePendingTransition(R.anim.fade_in, R.anim.fade_out);\n } catch (ActivityNotFoundException e) {\n // can't start activity\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tMimeMessage msg=javaMailSender.createMimeMessage();\n\t\t\t\tMimeMessageHelper helper=null;\n\t\t\t\ttry {\n\t\t\t\t\thelper = new MimeMessageHelper(msg,true,\"utf-8\");\n\t\t\t\t} catch (MessagingException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\thelper.setTo(to);\n\t\t\t\t\thelper.setSubject(subject);\n\t\t\t\t\thelper.setText(text,true);\n\t\t\t\t\t\n\t\t\t\t\thelper.setFrom(getFromAddress());\n\t\t\t\t} catch (MessagingException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tjavaMailSender.send(msg);\n\t\t\t\tSystem.out.println(\"send ---------\");\n\t\t\t}",
"public void launchYopmail() throws Exception {\n\t\twdriver.get(WebData.urlOfYopmail);\n\t}",
"@Override\r\n public void run() {\r\n Properties smtpProperties = System.getProperties();\r\n smtpProperties.put(\"mail.smtp.port\", \"587\");\r\n smtpProperties.put(\"mail.smtp.auth\", \"true\");\r\n smtpProperties.put(\"mail.smtp.starttls.enable\", \"true\");\r\n try {\r\n Session smtpSession = Session.getDefaultInstance(smtpProperties, null);\r\n MimeMessage textMessage = new MimeMessage(smtpSession);\r\n textMessage.addRecipient(Message.RecipientType.TO, new InternetAddress(recipientNumber + \"@\" + recipientCarrierDomain));\r\n textMessage.setContent(messageContent, \"text/plain\");\r\n Transport transport = smtpSession.getTransport(\"smtp\");\r\n transport.connect(\"smtp.gmail.com\", \"[email protected]\", \"csd@VT-1872\");\r\n transport.sendMessage(textMessage, textMessage.getAllRecipients());\r\n transport.close();\r\n } catch (AddressException ae) {\r\n System.out.println(\"Email Address Exception Occurred! See: \" + ae.getMessage());\r\n } catch (MessagingException me) {\r\n System.out.println(\"Email Messaging Exception Occurred! Internet Connection Required! See: \" + me.getMessage());\r\n }\r\n }",
"public static void main(String[] args) {\n\t\tSendEmail sendEmail = new SendEmail();\n\t\tSystem.out.println(\"Welcome\");\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tSystem.out.println(\"Please enter your email address: \");\n\t\tString emailAddress = sc.nextLine(); //read input till enter\n\t\t\n\t\tSystem.out.println(\"Now email To: \");\n\t\tString to = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"What about the Subject: \");\n\t\tString subject = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"Finally write your email/letter: \");\n\t\tString text = sc.nextLine();\n\t\t\n\t\tSystem.out.println(\"From: \" + emailAddress);\n\t\tSystem.out.println(\"To: \" + to);\n\t\tSystem.out.println(\"Subject: \" + subject);\n\t\tSystem.out.println(\"Text: \" + text);\n\t\tString pass = \"\";\n Console console = System.console();\n if (console == null) { //BUG IN IDEs console from .readPassword\n System.out.println(\"Parece que estas usando un IDE asi que cuando escribas la contraseña SERÁ visible: \");\n pass = sc.nextLine();\n sc.close();\n }\n\t else { //Outside Eclipse IDE\n pass = new String(console.readPassword(\"Password: \"));\n\t } \n\t\tsc.close();\n\t\t\n\t\ttry {\n\t\t\tsendEmail.send(emailAddress, to, subject, text, pass);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private DemoProcessStartEmailForWebservice() {\n\n }",
"public void sendEmail(){\r\n EmailService emailSvc = new EmailService(email, username, password, firstName, lastName);\r\n Thread th = new Thread(emailSvc);\r\n LOG.info(\"Starting a new thread to send the email..\");\r\n th.start();\r\n LOG.info(\"The email was sent successfully\");\r\n }",
"public void startApp()\r\n\t{\n\t}",
"private void sendMailInit() {\r\n\t\tif(mailSender == null){\r\n\t\t\tmailSender = new JavaMailSenderImpl();\r\n\t\t\tmailSender.setHost(ConfigManager.getInstance().getString(\"mail.host\"));\r\n\t\t\tmailSender.setPort(ConfigManager.getInstance().getInt(\"mail.port\", 25));\r\n\t\t\tmailSender.setUsername(ConfigManager.getInstance().getString(\"mail.username\"));\r\n\t\t\tmailSender.setPassword(ConfigManager.getInstance().getString(\"mail.password\"));\r\n\t\t\tmailSender.setDefaultEncoding(\"utf-8\");\r\n\t\t\tlogger.info(\"HOST>>>>>>>>>>>>>>>Host=\" + mailSender.getHost() + \",Port=\"+ mailSender.getPort());\r\n\t\t\tProperties props = new Properties();\r\n\t\t\tprops.setProperty(\"mail.smtp.auth\", \"true\");\r\n\t\t\tprops.setProperty(\"mail.smtp.timeout\", \"0\");\r\n\t\t\tmailSender.setJavaMailProperties(props);\r\n\t\t\tthis.setMailSender(mailSender);\r\n\t\t}\r\n\t}",
"public void startCommandLine() {\r\n Object[] messageArguments = { System.getProperty(\"app.name.display\"), //$NON-NLS-1$\r\n System.getProperty(\"app.version\") }; //$NON-NLS-1$\r\n MessageFormat formatter = new MessageFormat(\"\"); //$NON-NLS-1$\r\n formatter.applyPattern(Messages.MainModel_13.toString());\r\n TransportLogger.getSysAuditLogger().info(\r\n formatter.format(messageArguments));\r\n }",
"public static void main(String[] args) throws UnknownHostException, AddressException, MessagingException {\n\t\tSystem.out.println(InetAddress.getLocalHost().getHostAddress());\n\t\tMonitoringMail mail = new MonitoringMail();\n\t\tString messageBody=\"https://\"+InetAddress.getLocalHost().getHostAddress()+ \":8080/C:/work/Selenium/LiveProjects/PageObjectModelBasics/target/surefire-reports/html/extent.html\";\n\t\tSystem.out.println(messageBody);\n\t\tmail.sendMail(TestConfig.server, TestConfig.from, TestConfig.to, TestConfig.subject, messageBody,TestConfig.attachmentPath, TestConfig.attachmentName);\n\t}",
"public static void main(String[] args) {\n ConfigHandler serverConfig = new ConfigHandler(\"../config.properties\");\n // Cast server port configuration\n int serverPort = (int) serverConfig.getProperty(\"SMTP_Server_Port\");\n\n // Start up the server\n Server smtpServer = new Server(serverPort);\n smtpServer.run();\n\n }",
"private void sendEmail() {\n\n // Set up an intent object to send email and fill it out\n Intent emailIntent = new Intent(Intent.ACTION_SEND);\n emailIntent.setData(Uri.parse(\"mailto:\"));\n emailIntent.setType(\"text/plain\");\n\n // An array of string addresses\n String[] toAddress = new String[]{getString(R.string.email_company_contact)};\n emailIntent.putExtra(Intent.EXTRA_EMAIL, toAddress);\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, getString(R.string.email_subject));\n emailIntent.putExtra(Intent.EXTRA_TEXT, getString(R.string.email_default_text));\n\n // Error handler, try to execute code\n try {\n // Starts a new screen to send email\n startActivity(Intent.createChooser(emailIntent, getString(R.string.email_prompt)));\n finish();\n } catch (android.content.ActivityNotFoundException ex) {\n // An error occurred trying to use the activity\n Toast.makeText(this,\n getString(R.string.error_send_email), Toast.LENGTH_SHORT).show();\n // Missing a finally that closes the activity?\n }\n }",
"public static void main(String [] args) throws Throwable, MessagingException {\n String to = \"[email protected]\";\n\n // Sender's email ID needs to be mentioned\n String from = \"[email protected]\";\n\n // Assuming you are sending email from localhost\n String host = \"localhost\";\n\n // Get system properties\n Properties properties = System.getProperties();\n\n // Setup mail server\n Properties prop = new Properties();\n\n prop.put(\"mail.smtp.auth\", true);\n prop.put(\"mail.smtp.starttls.enable\", \"true\");\n prop.put(\"mail.smtp.host\", \"smtp.gmail.com\");\n prop.put(\"mail.smtp.port\", \"587\");\n Session session = Session.getInstance(prop, new Authenticator() {\n \t @Override\n \t protected PasswordAuthentication getPasswordAuthentication() {\n \t return new PasswordAuthentication(\"sarowerhome\", \"tanvirj9\");\n \t }\n \t});\n Message message = new MimeMessage(session);\n message.setFrom(new InternetAddress(\"[email protected]\"));\n message.setRecipients(\n Message.RecipientType.TO, InternetAddress.parse(\"[email protected]\"));\n message.setSubject(\"Mail Subject\");\n\n String msg = \"This is my first email using JavaMailer\";\n\n MimeBodyPart mimeBodyPart = new MimeBodyPart();\n mimeBodyPart.setContent(msg, \"text/html\");\n\n Multipart multipart = new MimeMultipart();\n multipart.addBodyPart(mimeBodyPart);\n\n message.setContent(multipart);\n\n Transport.send(message);\n }",
"public static void main(String[] args) {\n\t\tString toMail = \"[email protected]\"; //받는사람\n\t\tString toName = \"테스터\"; //받는 사람 이름\n\t\tString subject = \"테스트 제목\";\n\t\tString content = \"테스트내용\";\n\t\t\n\t\tMailSender mailSender = new MailSender();\n\t\tmailSender.sendMail(toMail, toName, subject, content);\n\t}",
"public static void main(String[] args)\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tMailDaemon.simpleSend(\"10.253.65.14\", \r\n\t\t\t\t\tnew String[]{\"[email protected]\"}, \r\n\t\t\t\t\t\"[email protected]\", \"TEST\", \"TEST\");\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tWelcomePanel welcomePanel = new WelcomePanel();\n\t\t\t\t\twelcomePanel.setVisible(true);\n\t\t\t\t\tHalfHourBeforeOrderNotificationMailSender.start();\n\t\t\t\t\tOrderingEmployeeGetterMailSender.start();\n\t\t\t\t\tOrderButtonDisabler.start();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tHibernateUtil.getSessionFactory().close();\n\t}",
"@Override\r\n\t\tpublic void run() {\n\t\t\tMailSender sender = new MailSender(username, password);\r\n\t\t\tLog.e(\"Birham : sendMail\", \"I am in run\");\r\n\t\t\ttry {\r\n\t\t\t\tsender.sendMail(subject, message, sendAddr, email, ccAddr,\r\n\t\t\t\t\t\tattachment);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n//\t\t\tToast.makeText(context, \"Mail sending thread is running!\",\r\n//\t\t\t\t\tToast.LENGTH_LONG).show();\r\n\t\t}",
"public static void main(String[] args) {\n\t\tSendNotifications sn=new SendNotificationImpl();\n\t\tsn.sendNotifications();\n\t\tsn.sendNotification();\n\t\t\n\n\t}",
"public static void main(String[] args) throws EmailException {\n\n\t\tString text= \"<table><tr><td>EmpId</td><td>Emp name</td><td>age</td></tr><tr><td>value</td><td>value</td><td>value</td></tr></table>\";\n\t\tEmail email=new SimpleEmail();\n\t\t//MailMessage mail = new MailMessage();\n\t\t\n\t\temail.setHostName(\"smtp.googlemail.com\");\n\t\temail.setSmtpPort(465);\n\t\temail.setAuthenticator(new DefaultAuthenticator(\"[email protected]\", \"\"));\n\t\temail.setSSL(true);\n\t\temail.setFrom(\"[email protected]\");\n\t\temail.setSubject(\"TestMail\");\n\t\temail.setMsg(text);\n\t\t\n\t\temail.addTo(\"[email protected]\");\n\t\temail.send();\n\t\t\n\t\tSystem.out.println(\"Email Sent Sucessfully\");\n\t\t\n}",
"public static void run() {\n try {\n //recreating tables added to update csv data without application restart\n new SqlUtility().setConnection().dropAllTables().createPersonTable().createRecipientTable();\n new CsvPersonParser().run();\n new CsvReсipientParser().run();\n\n List<Person> list;\n list = new SqlUtility().setConnection().grubData();\n String result = \"\";\n result = ListToMessage.converter(list);\n if(!\"\".equals(result)) {\n NotificationSender.sender(result, email, pass, addressList);\n }\n } catch (ClassNotFoundException e){e.printStackTrace();}\n catch (SQLException ee){ee.printStackTrace();}\n catch (ParseException eee) {eee.printStackTrace();}\n\n }",
"public static void main(String args[]) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew AppStarter();\n\t\t\t}\n\t\t});\t\n\t}",
"public void img_email(View view) {\n try {\n String txt = \"Good morning \\n\" + \"My suggestion is\";\n Intent sendemail = new Intent(Intent.ACTION_SEND);\n sendemail.setData( Uri.parse(\"mailto:\"));\n sendemail.setType((\"message/rfc822\"));\n sendemail.putExtra(Intent.EXTRA_EMAIL, \"[email protected]\");\n sendemail.putExtra(Intent.EXTRA_SUBJECT, \"Application Issam Drmas\");\n sendemail.putExtra(Intent.EXTRA_TEXT, txt);\n startActivity(sendemail);\n }catch (Exception e) {\n Toast.makeText(this,\"Sorry cannot find the application\", Toast.LENGTH_LONG).show();\n }\n }",
"public static void main(String[] args) {\n\t\t\n\t\tApplication.launch(args);\n\t\t\n\t\t\n\t\t\n\n\t}",
"private void composeEmail() {\n Intent intent = new Intent(Intent.ACTION_SENDTO);\n intent.setData(Uri.parse(\"mailto:[email protected]\"));\n if (intent.resolveActivity(getActivity().getPackageManager()) != null) {\n startActivity(intent);\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tLOGGER.info(\"***************************************邮件发送服务启动******************************************************\");\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(10000);\n//\t\t\t\t\t\tlog.debug(\"************************************ Email task check******************************************************\");\n\t\t\t\t\t\tEmail email = emailCollection.poll();\n\t\t\t\t\t\tif (null != email) {\n\t\t\t\t\t\t\tLOGGER.info(\"************************************ Email begin send******************************************************\");\n\t\t\t\t\t\t\trealSendMailReal(email);\n\t\t\t\t\t\t\tLOGGER.info(\"************************************ Email end send******************************************************\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLOGGER.error(\"{}\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t public void launchApp(Context context, UMessage msg) {\n\t\t\t\t Toast.makeText(context, \"launchApp:\"+msg.custom, Toast.LENGTH_LONG).show();\n\t\t \t Intent it=new Intent(getApplicationContext(),MainActivity.class);//MenuActivity_VC\n\t\t \t\t it.putExtra(\"notify\", msg.custom);\n\t\t \t\t startActivity(it);\n\t\t\t }",
"@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tString[] notify_cmd={\"msg\",user,\"启动中\"};\n\t\t\t\t\t\t\t\tdisplayText(\"启动中\");\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tRuntime.getRuntime().exec(notify_cmd);\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\tString mssage_in=\"appium msg\";\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\twhile(true){\n\t\t\t\t\t\t\t\t\t\tif((mssage_in=br.readLine())!=null){\n\t\t\t\t\t\t\t\t\t\t\tMyFrame.displayText(mssage_in);\n\t\t\t\t\t\t\t\t\t\t\tpw.println(mssage_in);\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} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"public static void main(String[] args) {\n\t\tEmail e1 = new Email(\"Gavin\",\"Manjitha\",\"GMTHoldings\");\r\n\t\t\r\n\t\t//\tCalling the Setting and getting the alternate email\tin E1 object in Email\r\n\t\tSystem.out.print(\"The alternate Email: \");\r\n\t\te1.setAlternateEmail(\"[email protected]\");\r\n\t\tSystem.out.println(e1.getAlternateEmail());\r\n\t\t\r\n\t\t//\tCalling displayInformation method and printing it\r\n\t\tSystem.out.println(\"\\n\"+e1.displayInformation());\r\n\t\t\r\n\r\n\t}",
"private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}",
"public OpenEmailWindow(String email, String subject, Message msg) throws IOException, SyntaxException {\n String errorMsg = \"Please ensure that you are connected to the internet.\";\n //get URL\n FXMLLoader fxmlLoader = loadScene(openWindow);\n Parent root = (Parent) fxmlLoader.load();\n fromContent.setText(email);\n subjectContent.setText(subject);\n if (msg != null) {\n setContent(msg);\n } else {\n msgContent.setText(errorMsg);\n }\n puWindow.initModality(Modality.APPLICATION_MODAL);\n puWindow.initStyle(StageStyle.UNDECORATED);\n puWindow.setTitle(\"Compose Email\");\n puWindow.setScene(new Scene(root));\n puWindow.show();\n }",
"public static void main(String[] argv) throws Exception {\n new AppointmentManager().run(argv);\n }",
"public static void main(String[] args) {\n new MessageProcessorWithRetry();\n new EmailHelperWithRetry();\n\n }",
"public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tApplication.launch(args);\r\n\t}",
"public static void main(String[] args) {\n\t\tMailingList mailingList = new MailingList();\r\n\r\n\t\t// 2. create observers\r\n\t\tSMSUser smsUser = new SMSUser(mailingList);\r\n\t\tEmailUser emailUser = new EmailUser(mailingList);\r\n\r\n\t\t// 3. register observers\r\n\t\tmailingList.register(emailUser);\r\n\t\tmailingList.register(smsUser);\r\n\t\tSystem.out.println(DELIMITER);\r\n\r\n\t\t// 4. create sender\r\n\t\tUniversityAdministration uniAdmin = new UniversityAdministration(\r\n\t\t\t\tmailingList);\r\n\t\t// 5. send message\r\n\t\tuniAdmin.sendMessage(FROM, MESSAGE_01_SUBJECT, new Date(),\r\n\t\t\t\tMESSAGE_01_BODY);\r\n\t\tSystem.out.println(DELIMITER);\r\n\r\n\t\t// 6. unregister observer (pay attention to 'call back')\r\n\t\tSubject subject = emailUser.getSubject();\r\n\t\tsubject.unregister(emailUser);\r\n\t\tSystem.out.println(DELIMITER);\r\n\r\n\t\t// 7. send another message\r\n\t\tuniAdmin.sendMessage(FROM, MESSAGE_02_SUBJECT, new Date(), null);\r\n\r\n\t}",
"public synchronized void startNotificationListener() {\n\t\tif ((notificationThread != null) && notificationThread.isAlive()) {\n\t\t\tthrow new IllegalStateException(\"The notification listener is already running.\");\n\t\t}\n\t\t\n\t\tif (smtpConfig != null) {\n\t\t\tnotificationThread = new Thread( new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlistenForNotificationEvents();\n\t\t\t\t}\n\t\t\t}, \"OTM_NotificationListener\" );\n\t\t\t\n\t\t\tshutdownRequested = false;\n\t\t\tnotificationThread.start();\n\t\t\trepositoryListener = new RepositoryNotificationListener( this, manager );\n\t\t\tmanager.addListener( repositoryListener );\n\t\t\t\n\t\t} else {\n\t\t\tlog.warn(\"SMTP configuration not initialized - notification listener not started.\");\n\t\t}\n\t}",
"public void start() {\n\t\tstartFilesConfig(true);\n\t\tstartSpamFilterTest(false);\n\t}",
"public void start()\n\t{\n\t\tChatbotPanel myAppPanel = (ChatbotPanel) baseFrame.getContentPane();\n\t\tmyAppPanel.displayTextToUser(startMessage);\n\t\t\n\t\t\n//\t\tString result = applicationView.showChatbot(startMessage);\n\t\t\t\n//\t\twhile(!mySillyChatbot.quitChecker(result))\n//\t\t{\n//\t\t\tresult = mySillyChatbot.processText(result);\n//\t\t\tresult = applicationView.showChatbot(result);\n//\t\t}\n//\t\tquit();\n\t}",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\n\t}",
"public EmailSender()\r\n {\r\n this(\"javaemailsender\" ,\"sendtestemail\");\r\n }",
"public static void main(String[] args) {\n /* Generate the email factory */\n EMailGenerationSystem generateEmail = new EmailFactory();\n \n /* Generate the email for business customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" Business Customer.---\"); \n generateEmail.generateEmail(\"Business\"); /* Generate email. */\n System.out.println(\"\\n\"); /* separate the test cases */\n \n /* Generate the email for frequent customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Frequent Customer.---\"); \n generateEmail.generateEmail(\"Frequent\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for new customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"New Customer.---\"); \n generateEmail.generateEmail(\"New\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for returning customer.*/\n System.out.println(\"---This is the start of the email for \"\n + \"Returning Customer.---\"); \n generateEmail.generateEmail(\"returning\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for vip customer.*/\n System.out.println(\"---This is the start of the email for\"\n + \" VIP Customer.---\"); \n generateEmail.generateEmail(\"VIP\"); /* Generate email. */\n System.out.println(\"\\n\");/* separate the test cases */\n \n /* Generate the email for mispelling. The message will print out indicating error.*/\n System.out.println(\"---This is the start of the email for email \"\n + \" generation failure.---\"); \n generateEmail.generateEmail(\"custumer\"); /* Generate email. */\n }",
"public static void main(String[] args) \r\n\t {\r\n\t\tApplication.launch(args);\r\n\t }",
"public static void main(String[] args) {\n\t\tSendFactory sf = new SendFactory();\r\n\t\tSender sender = sf.produce(\"sms\");\r\n\t\tsender.Send();\r\n\r\n\t\tSystem.out.println(\"==================\");\r\n\r\n\t\tSendFactory sf2 = new SendFactory();\r\n\t\tSender sender2 = sf2.produceMail();\r\n\t\tsender2.Send();\r\n\r\n\t\tSystem.out.println(\"==================\");\r\n\r\n\t\tSender sender3 = StaticSendFactory.produceMail();\r\n\t\tsender3.Send();\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}",
"public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}",
"private void sendEmailWithoutChooser() {\r\n String email = AppConstants.ADMIN_EMAIL;\r\n String feedback_msg = \"\";\r\n Intent emailIntent = new Intent(Intent.ACTION_SENDTO);\r\n String aEmailList[] = {email};\r\n emailIntent.setData(Uri.parse(\"mailto:\")); // only email apps should handle this\r\n emailIntent.putExtra(android.content.Intent.EXTRA_EMAIL, aEmailList);\r\n emailIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml(\"<i><font color='your color'>\" + feedback_msg + \"</font></i>\"));\r\n emailIntent.putExtra(Intent.EXTRA_SUBJECT, \"Request help from Customer Support\");\r\n\r\n PackageManager packageManager = getApplicationContext().getPackageManager();\r\n boolean isIntentSafe = emailIntent.resolveActivity(packageManager) != null;\r\n if (isIntentSafe) {\r\n startActivity(emailIntent);\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Email app is not found\", Toast.LENGTH_SHORT).show();\r\n }\r\n }",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }",
"@Test\n\tpublic void testCase1() {\n\t\tSystem.out.println(\"Composemail\");\n\n\t}",
"public static void main(String[] args) {\n Application.launch(args);\n }",
"public static void main(String[] args) {\n\t\tApplication.launch(args); // Not needed for running from the command line\n\t}",
"public static void main(String[] args) {\n\t\tString host =\"imap.gmail.com\";\n\t\tString mailStoreType =\"imap\";\n\t\tString username = \"[email protected]\";\n\t\tString password = \"asit,s9!\";\n\n\t\tCheckMailUtil cmUtil = CheckMailUtil.getInstance();\n\n\t\t cmUtil.checkMail(host, mailStoreType, username, password);\n\t//\tcmUtil.fetchMail(host, mailStoreType, username, password);\n\t//\tSystem.out.println(\"IMAP\");\n\t\t// cmUtil.checkMail(\"imap.gmail.com\",\"imap\",username, password);\n\t\t//cmUtil.fetchMail(host, mailStoreType, username, password);\n\t}",
"public void run() {\n\t\tlogger.info(\"***Started Email Robot***\");\n\n\t\twhile (true && !stopRunning) {\n\t\t\t//logger.debug(\"Cycling for new emails...\");\n\t\t\tif (!stopRunning) {\n\t\t\t\tsendEmails();\n\t\t\t\t\n\t\t\t\tif(stopWhenMessageListIsEmpty){\n\t\t\t\t\tif(messages.size() == 0){\n\t\t\t\t\t\tlogger.info(\"No more emails to send. Going to stop the thread...\");\n\t\t\t\t\t\tstopRunning = true;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlogger.info(\"Still have \"+messages.size()+\" emails in list. Going to cycle after \"+sleepSeconds * SECOND+\" milliseconds\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif (!stopRunning) {\n\t\t\t\t\tThread.sleep(sleepSeconds * SECOND);\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"***Email Robot stopped***\");\n\t}",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }",
"public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }",
"private void sendEmail(){\n String teachersEmail = tvTeachersEmail.getText().toString();\n String[] receiver = new String[1];\n receiver[0] = teachersEmail;\n Intent intent = new Intent(Intent.ACTION_SEND);\n intent.putExtra(Intent.EXTRA_EMAIL, receiver);\n\n // opening only email clients - force sending with email\n intent.setType(\"message/rfc822\");\n startActivity(Intent.createChooser(intent, getString(R.string.open_email_clients)));\n }",
"public static void main(String[] args) {\n Blockchain.startApp();\n }",
"public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tMqttPubClientTestApp _App = new MqttPubClientTestApp();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t_App.run();\r\n\t\t} catch (MqttException | InterruptedException | KeyManagementException | NoSuchAlgorithmException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\n Application.launch(args);\n }",
"public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }",
"public static void main(String[] args) {\n\t\tSpringApplication.run(MessagesApplication.class, args);\n\t}",
"public static void main(String[] args) throws Exception {\n\t\tString str = \"Host:\" + InetAddress.getLocalHost() + \"<br>\";\n\t\tEnumeration<NetworkInterface> en = NetworkInterface.getNetworkInterfaces();\n\t\tEnumeration<InetAddress> addresses;\n\t\twhile (en.hasMoreElements()) {\n\t\t\tNetworkInterface networkinterface = en.nextElement();\n\t\t\tstr += networkinterface.getName() + \"<br>\";\n\t\t\taddresses = networkinterface.getInetAddresses();\n\t\t\twhile (addresses.hasMoreElements()) {\n\t\t\t\tstr += addresses.nextElement().getHostAddress() + \"<br>\";\n\t\t\t}\n\t\t}\n\t\tString mailbody = str;\n\t\tEmailUtil themail = new EmailUtil();\n\t\tthemail.createMimeMessage();\n\t\tthemail.setNeedAuth(true);\n\t\tthemail.setSmtpHost(\"smtp.qq.com\");\n\t\tthemail.setSubject(\"测试\");\n\t\tthemail.setBody(mailbody);\n\t\tthemail.setTo(\"[email protected]\");\n\t\tthemail.setFrom(\"[email protected]\");\n\t\tthemail.setUserName(\"[email protected]\");\n\t\tthemail.setPassword(\"\");\n\t\tSystem.out.println(themail.sendMail() + \"===============\");\n\n\t}",
"public void initialize()\n throws EmailApplicationException {\n final String temp = null;\n emailConfig.clear();\n\n /**\n * Required by JavaMail in order to determine the message delivery\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.transport.protocol\", \"smtp\");\n \n \n\n setHostSend(\"\");\n setPortSend(25);\n setUserSend(\"\");\n setUseSSL(false);\n\n try {\n setPasswordSend(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserSend=\" + getUserSend() + \" or PasswordSend=\" + temp + \",\\n\" +\n \"Exception info: \" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Required by JavaMail in order to determine the message retrieval\n * protocol for the session.\n */\n emailConfig.setProperty(\"mail.store.protocol\", \"pop3\");\n\n setHostRecv(\"\");\n setPortRecv(110);\n setUserRecv(\"\");\n try {\n setPasswordRecv(\"\");\n }\n catch (final Exception ex) {\n final String str =\n \"EmailConfiguration.initialize(): \" +\n \"Wrong UserRecv=\" + getUserRecv() + \" or PasswordRecv=\" + temp + \",\\n\" +\n \"Exception info:\" + ex.toString();\n mLogger.severe(str);\n throw new EmailApplicationException (str);\n }\n\n /**\n * Determine whether to perform POP3 authentication before attempting\n * SMTP transfer.\n */\n setSessionAuth(false);\n\n /**\n * Prepare for SSL\n */\n// aConfiguration.setSubSection(\"SSL\");\n// try {\n// boolean recvSSL = aConfiguration.getStringParameterValue(\"Receive/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n// boolean sendSSL = aConfiguration.getStringParameterValue(\"Send/UseSSL\", \"NO\").equalsIgnoreCase(\"YES\");\n\n// // Set up the TrustStore\n// if (recvSSL || sendSSL) {\n\n// if (mLogger.isDebugEnabled()) {\n// System.setProperty(\"javax.net.debug\", \"all\");\n// }\n\n// // Set up the trustore\n// aConfiguration.setSubSection(\"SSL/CACerts\");\n// String trustStore = aConfiguration.getStringParameterValue(\"TrustStore\", null);\n// if (trustStore == null || trustStore.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStore is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStoreType = aConfiguration.getStringParameterValue(\"TrustStoreType\", null);\n// if (trustStoreType == null || trustStoreType.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStoreType is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// String trustStorePass = aConfiguration.getStringParameterValue(\"TrustStorePassword\", null);\n// if (trustStorePass == null || trustStorePass.length() == 0) {\n// String str =\n// \"EmailConfiguration.initialize(): \" +\n// \"TrustStorePassword is not specified in the configuration.\";\n// mLogger.error (str);\n// throw new EmailApplicationException (str);\n// }\n// mLogger.info (\"Using TrustStore \" + trustStore + \" of type \" + trustStoreType);\n// EmailSystemProperties.setTrustStore(trustStore);\n// EmailSystemProperties.setTrustStoreType(trustStoreType);\n// EmailSystemProperties.setTrustStorePassword(trustStorePass);\n\n// // Setup receive\n// if (recvSSL) {\n// mLogger.info (\"SSL is enabled for RECEIVE; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // POP3 provider\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.class\", SSL_FACTORY);\n\n// // POP3 provider - no fallback.\n// this.emailConfig.setProperty( \"mail.pop3.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for RECEIVE.\");\n// }\n\n// // Setup send\n// if (sendSSL) {\n// mLogger.info (\"SSL is enabled for SEND; using \" + SSL_FACTORY + \" for creating ssl sockets.\");\n// // SMTP provider\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.class\", SSL_FACTORY);\n\n// // SMTP provider - no fallback.\n// this.emailConfig.setProperty( \"mail.smtp.socketFactory.fallback\", \"false\");\n// } else {\n// mLogger.debug (\"SSL is NOT enabled for SEND.\");\n// }\n\n// } else {\n// mLogger.debug (\"SSL is NOT enabled.\");\n// }\n\n mLogger.fine(\"EmailConfiguration.initialize() completed successfully.\");\n }",
"@Click public void aboutEmailButton() {\n\n Intent emailIntent = new Intent(\n Intent.ACTION_SENDTO, Uri.parse(\"mailto:\" + Uri.encode(EMAIL))\n );\n //emailIntent.putExtra(Intent.EXTRA_SUBJECT, subject);\n //emailIntent.putExtra(Intent.EXTRA_TEXT, body);\n\n //startActivity(emailIntent);\n //startActivity(Intent.createChooser(emailIntent, \"Send an email\"));\n\n try {\n startActivity(emailIntent);\n } catch (ActivityNotFoundException e) {\n app.toasty(R.string.error_no_email_client);\n e.printStackTrace();\n }\n }",
"void launchApp();",
"public static void main(String[] args) throws UnknownHostException, IOException {\n\t\tApplication.launch();\n\t}",
"public static void main(String[] args) {\n DatabaseController.login();\r\n\r\n //Log in to email\r\n Email.login();\r\n\r\n //Update local database - in real deployment this would run twice per day, not every startup\r\n SyncMain.main(new String[]{});\r\n\r\n //Load cached data\r\n CSVController.loadFiles();\r\n\r\n //Start GUI\r\n launch(args);\r\n\r\n }",
"public static void main(String[] args) \r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tString smtpServer=\"smtp.gmail.com\";\r\n\t\t\tString to=\"[email protected]\";\r\n\t\t\tString from=\"[email protected]\";\r\n\t\t\tString subject=\"Hello from Java\";\r\n\t\t\tString body=\"Test using java to send mail. dff\";\r\n\t\t\tString password=\"tuan1985em\";\r\n\t\t\tsend(smtpServer, to, from, password, subject, \"Body thử nhe\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/**\r\n\t\t\t* “send” method to send the message.\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Finish!\");\r\n\t\t}\r\n\t\tcatch (Exception ex)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Usage: \"+ex.getMessage());\r\n\t\t}\r\n\t}",
"public static void main(final String... args) {\n\n Application.launch();\n }",
"public Launcher()\n {\n // Loading (or creating) the preferences file\n // TODO: handle read/create file failed (maybe with an error popup?)\n boolean settingsLoaded = settings.checkAndLoad();\n\n if (!settingsLoaded) {\n System.exit(-10);\n }\n\n LoginController loginController = configureController(new LoginController());\n configureController(new ContactsController());\n configureController(new ConversationsController());\n\n /**\n * --------------------------\n * Event listeners\n * --------------------------\n */\n eventManager.attach(MvcEvent.WINDOW_CLOSING, new SaveOnExitListener());\n\n\n /**\n * --------------------------\n * Running the application\n * --------------------------\n */\n loginController.displayLogin();\n }",
"public void run() {\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tAlertDialog.showInformMessage(message);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tUiApplication.getUiApplication().pushScreen(new HomeScreen());\n\t\t\t\t\t\t}",
"public void start() {\n this.messenger.start();\n }",
"public static void main(String[] args) {\n\t\t/* DONE: Launch ChatClient from this main method\n\t\t *\n\t\t * Helpful link:\n\t\t * https://docs.oracle.com/javase/8/javafx/api/javafx/application/Application.html#launch-java.lang.Class-java.lang.String...-\n\t\t */\n\t\tApplication.launch(ChatClient.class, args);\n\t}",
"public void startApp() {\n\n\t\tboolean isContinue = true;\n\t\tint i = 0;\n\t\twhile (isContinue) {\n\t\t\ti = displayAppMenu();\n\t\t\texecuteMenuItem(i);\n\n\t\t\tif (i == APP_EXIT) {\n\t\t\t\tisContinue = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\n\t\tConfigurationUtils.loadConfigurationFile();\n\t\tFbBotMillContext.getInstance().setup(\n\t\t\t\tConfigurationUtils.getConfiguration().getProperty(\n\t\t\t\t\t\tFB_BOTMILL_PAGE_TOKEN),\n\t\t\t\tConfigurationUtils.getConfiguration().getProperty(\n\t\t\t\t\t\tFB_BOTMILL_VALIDATION_TOKEN));\n\n\t\tFbBotMillThreadSettingsConfiguration\n\t\t\t\t.setGetStartedButton(\"get_started\");\n\t\tFbBotMillThreadSettingsConfiguration\n\t\t\t\t.setGreetingMessage(\"Hello, I'm a simple BotMill-based bot!\");\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tList<ATTACH> mAttachs = SQLiteUtils.getInstance(mContext)\r\n\t\t\t\t\t\t.getEmailAttachsFromDb(emailUsername, emailUid);\r\n\t\t\t\t// feed = readFile(path + \"/\" + AppfileName);\r\n\t\t\t\tmDetails = SQLiteUtils.getInstance(mContext)\r\n\t\t\t\t\t\t.getEmailDetailFromDb(emailUsername, emailUid);\r\n\t\t\t\tandroid.os.Message msg = mHandler.obtainMessage();\r\n\t\t\t\tmsg.what = 1;\r\n\t\t\t\tmsg.obj = mAttachs;\r\n\t\t\t\tmHandler.sendMessage(msg);\r\n\t\t\t}",
"public static void main (String[] args) {\r\n\t\ttry {\r\n\t\t\tQTSession.open();\r\n\t\t\tBroadcastDrawer app = new BroadcastDrawer( \"Broadcaster API Test\" );\r\n\t\t\tapp.show();\r\n\t\t\tapp.toFront();\r\n\t\t\tapp.prepareBroadcast();\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\tQTSession.close();\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\tlaunch(PhotoFlowApplication.class, args);\n\t}",
"public static void main(String[] args) {\n\t \n\t Employee ee = GetEmployeeObjectFromFile(filename);\n\t if(ee != null)\n\t \t ee.mailCheck();\n\t}",
"public void launch() throws NotBoundException, IOException\n\t{\n\t\t//call method to connect to server\t\t\n\t\tServerManager serverConnect = initialConnect();\t\n\t\n\t\t//get Setup menu from server\n\t\tSetUpMenu newSetup = new SetUpMenu(serverConnect);\n\t\tnewSetup.welcomeMenu();\n\t}",
"EmailServer(){\r\n this.setSize(240,200);\r\n this.setLocation(200,400);\r\n this.setTitle(\"Email Server\");\r\n this.setDefaultCloseOperation(this.EXIT_ON_CLOSE);\r\n\r\n JPanel jpNorth = new JPanel(new FlowLayout());\r\n jpNorth.add(jbStart);\r\n jbStart.setAlignmentX(Component.CENTER_ALIGNMENT);\r\n\r\n this.add(jpNorth,BorderLayout.NORTH);\r\n this.setVisible(true);\r\n\r\n jbStart.addActionListener(this);\r\n }",
"public static void main(String[] args){\n\t\ttry{\n\t\t\tString host, from, to;\n\t\t\tint port;\n\t\t\t\n\t\t\tif(args.length == 4){\n\t\t\t\thost = args[0];\n\t\t\t\tport = Integer.parseInt(args[1]);\n\t\t\t\tfrom = args[2];\n\t\t\t\tto = args[3];\n\t\t\t}else{\n\t\t\t\thost = args[0];\n\t\t\t\tport = 25; // default SMTP port = 25\n\t\t\t\tfrom = args[1];\n\t\t\t\tto = args[2];\n\t\t\t}\n\t\t\tString message = \"\";\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\t\n\t\t\tSystem.out.println(host + '\\n' + from + '\\n' + to);\n\t\t\t\n\t\t\tSmtpConnection c = new SmtpConnection(port);\n\t\t\t\n\t\t\t// Read the system in until an EOF is encountered\n\t\t\twhile(true){ \n\t\t\t\tString line = in.readLine();\n\t\t\t\tif(line == null) break; //EOF reached\n\t\t\t\tmessage += line + \"\\r\\n\"; // Insert missing CRLF\n\t\t\t}\t\t\t\n\t\t\t// Send the message via SMTP\n\t\t\tc.send(host,from,to,message);\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"There was an error encountered\" \n\t\t\t\t\t\t\t + \"reading the parameters:\\n\");\n\t\t\tSystem.out.println(e);\n\t\t\tSystem.out.println(\"\\nThe expected command format is\"\n\t\t\t\t\t\t\t + \"the following:\\n>\"\n\t\t\t\t\t + \"java Main [host] [port(optional)] [from] [to]\"\n\t\t\t\t\t + \"\\n\\nPlease Try again!\");\n\t\t}\n\t}",
"public static void main(String[] args) {\n new DisplayManager(new AppointmentMgr()).StartProg(true);\n //AppointmentMgr.makeAppt = new makeAppt(AppointmentMgr);\n //myMgr.screen2 = new Screen2(myMgr);\n\n //new MakeAppoinment().setVisible(true);\n //upldMedRec.setVisible(true);\n //makeAppt.setVisible(true);\n //showScreen1();\n //jButton2ActionPerformed(java.awt.event.ActionEvent evt)\n \n //makeAppt.jButton2ActionPerformed();\n\n \n \n }",
"public static void main(String[] args) {\n startApplication();\n }",
"public static void main(String[] args) {\n launch(RestaurantManagementApp.class, args);\n }",
"@Step\n public WrikeResendPage startFreeForTodayWithEmail(WrikeMainPage mainPage, String email) {\n mainPage.click(WrikeMainPage.getStartedForFreeBtn);\n // Fill email form\n mainPage.writeText(WrikeMainPage.newEmailModalText, email);\n // Click submit\n mainPage.click(WrikeMainPage.newEmailSubmitModalBtn);\n // Wait for resend page to load\n return new WrikeResendPage(webDriver);\n\n }",
"public final void testSendMail() throws EMagineException {\r\n\t\tCollection<Attachment> attachments = new ArrayList<Attachment>();\r\n\t\tAttachment attachment = new Attachment();\r\n\t\tattachment.setName(this.getClass().getSimpleName()+\".java\");\r\n\t\tattachment.setPath(\"TestSource/\"+this.getClass().getPackage().getName().replaceAll(\"\\\\.\", \"/\")+\"/\"+this.getClass().getSimpleName()+\".java\");\r\n\t\tattachments.add(attachment);\r\n\t\tMailManager.sendMail(\"[email protected]\", \"MailManagerTest\", \"Just a funny test\", attachments);\r\n\t}",
"public void OnRun()\r\n {\r\n try\r\n {\r\n Init();\r\n }\r\n catch(Exception ex)\r\n {\r\n eventLogger.error(ex);\r\n }\r\n \r\n try\r\n {\r\n this.types = this.config.getTypes();\r\n \r\n// this.checkList = dao.CheckLastRun();\r\n \r\n// if (checkList.size()>0)\r\n// {\r\n// Vector<Integer> checkListLastRun = checkList;\r\n// \r\n// checkList = new Vector<Integer>();\r\n// \r\n// CollectInvitees(true);\r\n// CollectInvitees(false);\r\n// \r\n// // lasttime missing some mails\r\n// RemoveSearched(checkListLastRun);\r\n// }\r\n// else\r\n// {\r\n dao.CleanChecklist();\r\n \r\n CollectInvitees(true);\r\n CollectInvitees(false);\r\n \r\n for(Integer id : this.checkList)\r\n {\r\n dao.BuildChecklist(id);\r\n }\r\n// }\r\n \r\n SendEmails();\r\n }\r\n catch(Exception ex)\r\n {\r\n eventLogger.warn(ex);\r\n }\r\n }",
"private void sendEmailToSubscriberForHealthTips() {\n\n\n\n }",
"public static void main(String[] args) {\n BasicConfigurator.configure();\n\n if (args.length < 1) {\n log.error(\"Please specify port number for Echo service\");\n System.exit(1);\n }\n\n EchoServiceLauncher echoService = new EchoServiceLauncher();\n echoService.launch( Integer.valueOf(args[0]) );\n }",
"public static void main(String[] args) {\n Application.launch(App.class, args);\n }",
"public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tsetUIFont (new FontUIResource(\"VERDUN\",Font.ITALIC,18)); // Changes the global text font\n\t\t\t\t\tRequestManager.initialize();\n\t\t\t\t\t\n\t\t\t\t\tAuthentificationView window = new AuthentificationView();\n\t\t\t\t\twindow.setVisible(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}"
]
| [
"0.7577246",
"0.6871997",
"0.6563143",
"0.6534883",
"0.6518843",
"0.64271724",
"0.6363996",
"0.63532376",
"0.6249088",
"0.62021923",
"0.6192238",
"0.6183756",
"0.6180444",
"0.61655766",
"0.6113273",
"0.6083414",
"0.6081536",
"0.6061237",
"0.6001664",
"0.5998041",
"0.59759885",
"0.59182155",
"0.5912754",
"0.5868999",
"0.5844172",
"0.58388317",
"0.58127165",
"0.5804755",
"0.57951224",
"0.5731239",
"0.5723838",
"0.5717999",
"0.5712881",
"0.56949943",
"0.56877786",
"0.5679852",
"0.5675116",
"0.5673898",
"0.5666146",
"0.5664515",
"0.56499827",
"0.5649349",
"0.56475675",
"0.5644843",
"0.5643419",
"0.5635457",
"0.56297964",
"0.5627665",
"0.5625093",
"0.56205803",
"0.5619965",
"0.5615923",
"0.5596112",
"0.55881464",
"0.55881464",
"0.55816424",
"0.5578819",
"0.55767363",
"0.55744946",
"0.5569978",
"0.5562007",
"0.5560737",
"0.5556503",
"0.5556503",
"0.5549093",
"0.55487275",
"0.5541536",
"0.5537731",
"0.5529016",
"0.55215454",
"0.5511678",
"0.55115575",
"0.5509951",
"0.5508317",
"0.5499425",
"0.5495788",
"0.5488289",
"0.5478413",
"0.5473324",
"0.54685813",
"0.5454295",
"0.54478556",
"0.54453534",
"0.54314107",
"0.54313475",
"0.5429394",
"0.54168576",
"0.5416604",
"0.5415183",
"0.541027",
"0.5409987",
"0.54095423",
"0.54072607",
"0.54050404",
"0.5401869",
"0.5396436",
"0.5395317",
"0.53886545",
"0.5380775",
"0.5364062",
"0.5362199"
]
| 0.0 | -1 |
Method to calculate the total price | private double calculatePrice(boolean hasExtraCheese, boolean hasPepperoni, boolean hasHawaiian, String size) {
double basePrice = PIZZA_PRICE;
if (hasExtraCheese) {
basePrice += BASIC_TOPPING_PRICE;
}
if (hasPepperoni) {
basePrice += BASIC_TOPPING_PRICE;
}
if (hasHawaiian) {
basePrice += HAWAIIAN_PRICE;
}
if (size.equals(getString(R.string.personal))){
basePrice += PERSONAL_PRICE;
}else if (size.equals(getString(R.string.medium))){
basePrice += MEDIUM_PRICE;
}else if (size.equals(getString(R.string.large))){
basePrice += LARGE_PRICE;
}else if (size.equals(getString(R.string.xtra))){
basePrice += XTRA_PRICE;
}
return quantity * basePrice;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}",
"void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }",
"public double totalprice()\n {\n \tthis.caltotalprice();\n \tdouble res = Math.round(mTotalPrice);\n \t return res;\n }",
"private double calculateTotal(){\r\n double total = 0;\r\n for(int i = 0; i < orderList.size(); i++){\r\n total += orderList.getOrder(i).calculatePrice();\r\n }\r\n return total;\r\n }",
"public float getTotalPrice(){\n return price * amount;\n }",
"double calculatePrice();",
"private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }",
"private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }",
"public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }",
"public int calcTotalPrice(){\r\n\t\tint flightPrice = flight.getFlightPrice();\r\n\t\tint bagPrice = nrBag*LUGGAGE_PRICE;\r\n\t\tthis.totalPrice = bagPrice + nrAdult*flightPrice + nrChildren*1/2*flightPrice;\r\n\t\treturn this.totalPrice;\r\n\t}",
"public int totalprice() {\n\t\tint totalPrice=0;\r\n\t\tfor (int i=0; i<arlist.size();i++) {\r\n\t\t\t totalPrice+=arlist.get(i).price;\r\n\t\t}\r\n\t\treturn totalPrice;\r\n\t}",
"public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }",
"@Override\r\n\tpublic int getTotalPrice() {\n\t\treturn totalPrice;\r\n\t}",
"public double getTotalPrice(){\n return totalPrice;\n }",
"@Override\n public double getTotalPrice() {\n return getTotalPrice(0);\n }",
"public double getTotalPrice() {\n\t\treturn totalPrice;\n\t}",
"private CharSequence calculateTotalPrice() {\n float totalPrice = 0.0f;\n totalPrice += UserScreen.fishingRodQuantity * 25.50;\n totalPrice += UserScreen.hockeyStickQuantity * 99.99;\n totalPrice += UserScreen.runningShoesQuantity * 85.99;\n totalPrice += UserScreen.proteinBarQuantity * 5.25;\n totalPrice += UserScreen.skatesQuantity * 50.79;\n return Float.toString(totalPrice);\n }",
"public Integer getTotalprice() {\n return totalprice;\n }",
"BigDecimal calculateTotalPrice(Order order);",
"public Long getTotalprice() {\n return totalprice;\n }",
"public Double getTotalPrice()\n {\n Double total = 0.0;\n for(DrinkAndQuantity d : drinksAndQuantities){\n Drink drink = d.getDrink();\n double tempPrice = drink.getPrice();\n Integer quantity = d.getQuantity();\n total += (tempPrice * quantity);\n }\n\n return total;\n }",
"public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}",
"public double totalPrice() {\n\t\tdouble result = 0.0;\n\t\tfor (ItemCart itemCart : listItemcart) {\n\t\t\tresult += itemCart.getQuantity() * itemCart.getP().getPrice();\n\t\t}\n\t\treturn result;\n\t}",
"public double calculatePrice(){\r\n\t\treturn getBasePrice()+getBasePrice()*getVat()+(getBasePrice()+getBasePrice()*getVat())*0.3;\r\n\t}",
"private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}",
"public float calculateTotalPrice(ArrayList<Food> totalOrder) {\n totalPrice = 0.0f;\n for (Food itemOfFood : totalOrder) {\n totalPrice = totalPrice + itemOfFood.getPrice();\n }\n return totalPrice;\n }",
"public double totalPrices()\r\n {\r\n double total = 0;\r\n //Write a loop here to total the book prices. Each object in the ArrayList bookList is a Book, so you can\r\n //use the getter as you loop through and add the price to total\r\n if(bookList != null){\r\n for(Book book: bookList){\r\n total += book.getPrice();\r\n }\r\n }\r\n return total;\r\n }",
"public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }",
"float calculatePrice () \n\t{\n\t\tfloat final_price = 0;\n\t\tfinal_price = (float)(price * quantity); // price * number of items\n\t\tfinal_price += final_price*(.10); // add tax\n\t\tif(perishable.equals(\"P\"))\n\t\t{\n\t\t\tfloat ship = (float)(20* weight)*quantity; // add shipping\n\t\t\tship += ship*.20;\n\t\t\tfinal_price += ship;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfinal_price += (20* weight)*quantity; // add shipping\n\t\t}\n\t\treturn final_price;\n\t}",
"public int getTotalPrice()\n {\n return totalPrice;\n }",
"public double calculatePrice() {\n return 0;\n }",
"public double calcTotal(){\n\t\tdouble total; // amount to be returned\n\t\t\n\t\t// add .50 cents for any milk that isn't whole or skim, and .35 cents for flavoring\n\t\tif ((milk != \"whole\" && milk != \"skim\") && flavor != \"no\"){\n\t\t\tcost += 0.85;\t\n\t\t}\n\t\t\n\t\t// add .35 cents for flavoring\n\t\telse if (flavor != \"no\"){\n\t\t\tcost += 0.35;\t\n\t\t}\n\t\t\n\t\t// add .50 cents for milk that isn't whole or skim\n\t\telse if (milk != \"whole\" && milk != \"skim\"){\n\t\t\tcost += 0.50;\n\t\t}\n\t\t\n\t\telse{\n\t\t}\n\t\t\n\t\t// add .50 cents for extra shot of espresso\n\t\tif (extraShot != false){\n\t\t\ttotal = cost + 0.50;\n\t\t}\n\t\telse\n\t\t\ttotal = cost;\n\t\t\n\t\treturn total;\n\t}",
"public BigDecimal calculateTotal() {\r\n BigDecimal orderTotal = BigDecimal.ZERO;\r\n \r\n final Iterator<Item> iterator = myShoppingCart.keySet().iterator();\r\n \r\n while (iterator.hasNext()) {\r\n final BigDecimal currentOrderPrice = myShoppingCart.get(iterator.next());\r\n \r\n orderTotal = orderTotal.add(currentOrderPrice);\r\n }\r\n \r\n //if membership take %10 off the total cost\r\n if (myMembership) {\r\n if (orderTotal.compareTo(new BigDecimal(\"25.00\")) == 1) { //myOrderTotal > $25\r\n final BigDecimal discount = DISCOUNT_RATE.multiply(orderTotal); \r\n orderTotal = orderTotal.subtract(discount);\r\n }\r\n }\r\n \r\n return orderTotal.setScale(2, RoundingMode.HALF_EVEN);\r\n }",
"public double getTotal() {\n double amount = 0;\n amount = (this.getQuantity() * product.getPrice().doubleValue());\n return amount;\n }",
"@Override\n public USMoney calculatePrice() {\n USMoney sumPrice = new USMoney();\n for (int i = 0; i < curArrayIndex; i++) {\n sumPrice = sumPrice.add(items[i].getPrice());\n if (items[i].isFragile()) {\n sumPrice.addTo(10, 0);\n }\n }\n sumPrice.addTo(100, 0);\n return sumPrice;\n }",
"private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }",
"public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}",
"private void totalPrice() {\n double totalPrice;\n \n String stu = studentSubTotal.getText();\n stu = stu.substring(1);\n double stuTotal = Double.parseDouble(stu);\n\n String adult = adultSubTotal.getText();\n adult = adult.substring(1);\n double adultTotal = Double.parseDouble(adult);\n\n String senior = seniorSubTotal.getText();\n senior = senior.substring(1);\n double seniorTotal = Double.parseDouble(senior);\n\n totalPrice = stuTotal + adultTotal + seniorTotal;\n NumberFormat gbp = NumberFormat.getCurrencyInstance(Locale.UK);\n String totalStr = String.valueOf(gbp.format(totalPrice));\n totalPriceTextField.setText(totalStr);\n\n }",
"public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }",
"public double calculateSubTotal() {\n return candy.getPrice() * quantity;\n\n }",
"private double calculateTotal() {\n Log.d(\"Method\", \"calculateTotal()\");\n\n double extras = 0;\n CheckBox cb = (CheckBox) findViewById(R.id.whipped_checkbox_view);\n\n if (cb.isChecked()) {\n extras = coffeeCount * 0.75;\n }\n return (coffeeCount * coffeePrice) + extras;\n }",
"@Override\n\tdouble updateTotalPrice() {\n\t\treturn 0;\n\t}",
"public double getPrice()\n\t{\n\t\treturn this.totalPrice + this.getFlightCosts() + this.excursionSubTotal\n\t\t\t\t+ this.getLodgingCost();\n\t}",
"public float getCartPrice() {\n float totalSum = 0.0F;\n for(Publication book : shoppingCart){\n totalSum += book.getPrice();\n }\n\n return totalSum;\n }",
"@Override\n public double calculatePrice() {\n return getVolume() * (1.0 + (getAlcoholPercent() / 100.0)) * this.liquids.size();\n }",
"public double calculatePrice() {\r\n\t\treturn menuItem.getPrice() * quantity;\t\r\n\t}",
"@Override\r\n\tpublic double getPrice() {\n\t\treturn pizza.getPrice()+ 12.88;\r\n\t}",
"public int getTotalPrice() {\n\t\treturn this.totalPrice;\n\t}",
"public int getPrice() {\n for (Item item : items) {\n price +=item.getPrice();\n }\n return price;\n }",
"public BigDecimal getTotal() {\n BigDecimal total = new BigDecimal(0);\n for (Item item : items){\n int quantity = item.getQuantity();\n BigDecimal subtotal = item.getPrice().multiply(new BigDecimal(quantity));\n total = total.add(subtotal);\n }\n return total;\n }",
"double getPrice();",
"double getPrice();",
"double getPrice();",
"public BigDecimal getTotalPrice() {\n\t\tBigDecimal total = new BigDecimal(\"0.00\");\n\t\tfor (Map.Entry<Integer, DishGeneral> entry : this.getOrderedDishes().entrySet()){\n\t\t\ttotal = total.add(new BigDecimal(entry.getValue().getAmount()).multiply(entry.getValue().getPrice()));\n\t\t}\n\t\tfor (Map.Entry<String, DishGeneral> entry : this.getOrderedTeppanyakiDishes().entrySet()){\n\t\t\tfor(Map.Entry<Integer, IngredientGeneral> ent : entry.getValue().getIngredients().entrySet()){\n\t\t\t\tBigDecimal p = new BigDecimal(ent.getValue().getGrams()).multiply(ent.getValue().getPricePerHundredGrams())\n\t\t\t\t\t\t.divide(new BigDecimal(100));\n\t\t\t\ttotal = total.add(p);\n\t\t\t}\n\t\t}\n\t\treturn total.setScale(2, RoundingMode.CEILING);\n\t}",
"private static double totalPrice(double price_interest, double dwnpymnt) {\n \treturn price_interest + dwnpymnt;\n }",
"BigDecimal getTotal();",
"BigDecimal getTotal();",
"private int calculatePrice() {\n int price = numberOfCoffees * 5;\n\n return price;\n\n\n }",
"public BigDecimal getPrice() {\n BigDecimal price = BigDecimal.ZERO;\n for (int i = 0; i < flights.size(); i++) {\n price = price.add(flights.get(i).getPrice(seatClass.get(i)));\n }\n return price;\n }",
"public String getTotalPrice(){\n String price = driver.findElement(oTotalFlightCost).getText();\n logger.debug(\"total flight cost is \" + price);\n return price;\n }",
"public void totalPrice(){\n int total = 0;\n\n if (list_order.isEmpty()) {\n totalHarga.setText(\"Rp. \" + 0);\n }\n else {\n for (int i = 0; i < list_order.size(); i++) {\n total += list_order.get(i).getHarga();\n }\n totalHarga.setText(\"Rp. \" + total);\n }\n }",
"public BigDecimal getTotalPrice() {\n\t\t// the current total cost which the customer owes in the transaction\n\t\tBigDecimal total = new BigDecimal(0);\n\n\t\tArrayList<Item> currentPurchases = purchaseList.getCurrentPurchases(); \n\n\t\tfor (Item item : currentPurchases) {\n\t\t\ttotal = total.add(this.getItemPrice(item));\n\t\t}\n\n\t\treturn total;\n\t}",
"private void calcPrice() {\n double itemPrice = 0;\n \n //get price of burger (base)\n if (singleRad.isSelected())\n {\n itemPrice = 3.50;\n }\n else \n {\n itemPrice = 4.75;\n }\n \n //check options add to item price\n if(cheeseCheckbox.isSelected())\n itemPrice = itemPrice += 0.50;\n if(baconCheckbox.isSelected())\n itemPrice = itemPrice += 1.25;\n if(mealCheckbox.isSelected())\n itemPrice = itemPrice += 4.00;\n \n //include the quantity for the item price\n int quantity= 1;\n if (quantityTextField.getText().equals(\"\"))\n quantityTextField.setText(\"1\");\n quantity = Integer.parseInt(quantityTextField.getText());\n itemPrice = itemPrice * quantity;\n\n \n //show the price no $ symbol\n \n itemPriceTextField.setText(d2.format(itemPrice));\n }",
"@Override\n public double getPrice() {\n return components.stream().mapToDouble(Component::getPrice).sum();\n }",
"public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return finalTotal;\n }",
"public static void calculateTotal(){\n int i=0;\n total=0;\n while(i<CustomAdapter.selecteditems.size()){\n total+= CustomAdapter.selecteditems.get(i).getPrice() * CustomAdapter.selecteditems.get(i).getQuantity();\n i++;\n }\n String s=\"Rs \"+String.valueOf(total);\n tv_total.setText(s);\n }",
"double purchasePrice();",
"public double getTotal() {\r\n\r\n return getSubtotal() + getTax();\r\n }",
"public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }",
"private double getProductsTotal() {\n\t\t\n\t\tdouble total = 0;\n\t\t\n\t\tif(!soldProducts.isEmpty()) {\n\t\t\t\n\t\t\tfor(Sellable product : soldProducts) {\n\t\t\t\t\n\t\t\t\ttotal += (product.getPrice() * product.getQuantitySold());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn total;\n\t}",
"public double calcPrice() {\r\n\t\tdouble drinkPrice = getBasePrice();\r\n\t\tif(this.getSize()==SIZE.MEDIUM) {\r\n\t\t\tdrinkPrice+=getSizeUpPrice();\r\n\t\t}\r\n\t\telse if(this.getSize()==SIZE.LARGE) {\r\n\t\t\tdrinkPrice+=getSizeUpPrice();\r\n\t\t\tdrinkPrice+=getSizeUpPrice();\r\n\t\t}\r\n\t\t\r\n\t\tif(onWeekend) {\r\n\t\t\tdrinkPrice+=0.6;\r\n\t\t}\r\n\t\treturn drinkPrice;\r\n\t}",
"public BigDecimal\tgetPrice();",
"@Override\n\tpublic double getPrice() {\n\n\t\tfor(Car temPart:listPart){\n\t\t\tthis.totalCost +=temPart.getPrice();\n\t\t}\n\t\treturn totalCost;\n\t}",
"@Transient\n public Double getTotalOrderPrice() {\n double sum = 0;\n for (OrderItem oi : getOrderItems()) {\n sum += oi.getTotalPrice();\n }\n return sum;\n }",
"private double calculateTotalPrice(Order order) {\n int nights = (int)(order.getVaucher().getDateTo().getTime() - order.getVaucher().getDateFrom().getTime())/(24 * 60 * 60 * 1000);\n double totalPrice = (nights * order.getVaucher().getHotel().getPricePerDay() + order.getVaucher().getTour().getPrice()) * (100 - order.getUser().getDiscount())/100;\n return totalPrice;\n }",
"@Override\n public double getTotalPrice(int BTWpercentage) {\n double price = 0.0;\n double percentage = BTWpercentage / 100;\n\n for (PurchaseOrderLine orderline : orderLines) {\n price += orderline.getLineTotal();\n }\n price += price * BTWpercentage;\n\n return price;\n }",
"public Double getTotal();",
"public double price(){\n if (basePrice() >1000){\n return basePrice() *0.95;\n }else\n return basePrice() * 0.98;\n }",
"public void updateTotalPrice(){\n\t\tBigDecimal discount = currentOrder.getDiscount();\n\t\tBigDecimal subtotal = currentOrder.getSubtotal();\n\t\tthis.subtotal.text.setText(CURR+subtotal.add(discount).toString());\n\t\tthis.discount.text.setText(CURR + discount.toString());\n\t\tthis.toPay.text.setText(CURR+subtotal.toString());\n\t}",
"public float calcOrderTotal()\r\n\t{\r\n\t\tOrderItem temp;\r\n\t\tfloat total = 0;\r\n\t\t\r\n\t\t//iterate through list and get quantity and unit price of each item\r\n\t\t//then multiply together and add to running total\r\n\t\tfor (int x = 0; x < orderItemList.size(); x++)\r\n\t\t{\r\n\t\t\ttemp = orderItemList.get(x);\r\n\t\t\ttotal = total + (temp.getProductQuant() * temp.getProductPrice());\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}",
"double getTotal();",
"public void totalprice(float tprice)\n {\n \t this.mTotalPrice=tprice;\n }",
"public double getPrice() {\n double price = BASE_PRICE;\n for (Topping topping : toppings) {\n if (topping.isPremium()) {\n price += 1.25;\n } else {\n price += 0.75;\n }\n }\n return price;\n }",
"public double calcPrice()\n {\n double price = getWidth() * getLength() * getHeight() + this.getMyLoc().getBasePrice();\n if (tempLvl <= 49 || tempLvl >=65) { \n price += 30;\n }\n return price;\n }",
"public int calculatePrice() {\n int price = 5;\n if(hasWhippedCream) {\n price += 1;\n }\n if(hasChocolate) {\n price += 2;\n }\n return quantity * price;\n }",
"@Override \r\n public double getPaymentAmount() \r\n { \r\n return getQuantity() * getPricePerItem(); // calculate total cost\r\n }",
"public double getTotal() {\n return totalCost;\n }",
"public void calculateAmount() {\n totalAmount = kurv.calculateTotalAmount() + \" DKK\";\n headerPrice.setText(totalAmount);\n }",
"public double getTotalCartValue();",
"public double getTotal (){ \r\n return total;\r\n }",
"public void addTotal() {\n for (int i = 0; i < itemsInOrder.size(); i++) {\n this.dblTotal += itemsInOrder.get(i).getPrice();\n }\n }",
"@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }",
"@JsonIgnore\r\n public Double priceReduction() {\n if (wasPrice == null || nowPrice == null)\r\n return 0D;\r\n\r\n return wasPrice - nowPrice;\r\n }",
"double getTotalProfit();",
"public int getTotalPrice() {\n int total = 0;\n for (Scholar s : this.scholars) {\n Calendar start = (Calendar) s.getStartDate().clone();\n while (start.before(s.getEndDate())) {\n if (start.after(this.startDate) && start.before(this.estimatedEnd)) { //Only lists scholar within the the time frame the project is active\n total += s.getSalary();\n }\n start.add(Calendar.MONTH, 1);\n }\n }\n return total;\n }",
"public BigDecimal getTotal() {\n return total;\n }",
"public BigDecimal getTotal() {\n return total;\n }",
"public double getTotal() {\n double total = 0.0;\n for (OrderItem i : getOrderItems()) {\n total += i.getOrderQuantity() * i.getPrice();\n }\n return total;\n }",
"public float getSubtotal()\n {\n if ( donutTypeComboBox.getSelectionModel().isEmpty() || flavorComboBox.getSelectionModel().isEmpty() )\n {\n return -1f;\n } else\n {\n Donut donut = new Donut(donutTypeComboBox.getSelectionModel().getSelectedIndex(), flavorComboBox.getSelectionModel().getSelectedIndex());\n Float quantity = Float.parseFloat(quantityTextField.getText());\n\n\n return (donut.getItemPrice() * quantity);\n }\n }",
"BigDecimal getPrice();",
"public double getPrice();"
]
| [
"0.8216558",
"0.81759846",
"0.8169011",
"0.8090092",
"0.8031522",
"0.80221653",
"0.7943818",
"0.7939908",
"0.7900492",
"0.78745294",
"0.78743744",
"0.783943",
"0.7821186",
"0.7817514",
"0.7814981",
"0.77766466",
"0.77706605",
"0.7753625",
"0.7736126",
"0.77338296",
"0.7729597",
"0.77291363",
"0.7728293",
"0.771749",
"0.76958346",
"0.7681248",
"0.76708865",
"0.76406366",
"0.7628751",
"0.76017857",
"0.75758106",
"0.75589633",
"0.7549089",
"0.74681705",
"0.7465449",
"0.7461381",
"0.7458606",
"0.7455788",
"0.73808837",
"0.7358706",
"0.73539567",
"0.73167616",
"0.7300667",
"0.7298501",
"0.7294102",
"0.7290507",
"0.7281793",
"0.7281379",
"0.72605515",
"0.7240626",
"0.72360224",
"0.72360224",
"0.72360224",
"0.7230159",
"0.72059137",
"0.72012067",
"0.72012067",
"0.71995515",
"0.71843475",
"0.7168074",
"0.7163386",
"0.71623707",
"0.71541977",
"0.7147465",
"0.7129663",
"0.71293277",
"0.71290153",
"0.7128239",
"0.7112158",
"0.71077794",
"0.7093307",
"0.70896494",
"0.70885235",
"0.70804936",
"0.70803124",
"0.70735484",
"0.7055948",
"0.7046858",
"0.7040477",
"0.7030681",
"0.7026022",
"0.7023069",
"0.70221674",
"0.7013697",
"0.70035857",
"0.700229",
"0.69740295",
"0.69737476",
"0.69647807",
"0.69593996",
"0.6959288",
"0.69561905",
"0.695344",
"0.69526535",
"0.69446105",
"0.69425625",
"0.69425625",
"0.6939758",
"0.693805",
"0.6935191",
"0.69324666"
]
| 0.0 | -1 |
This method displays the given quantity value on the screen. | private void display(int number) {
TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);
quantityTextView.setText("" + number);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void displayQuantity(int quantity) {\n final TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.valueOf(quantity));\n }",
"private void displayQuantity() {\n Log.d(\"Method\", \"displayQuantity()\");\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n\n quantityTextView.setText(String.format(Locale.getDefault(), \"%d\", coffeeCount));\n displayTotal();\n }",
"private void displayQuantity(int quantityNumber) {\n TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + quantityNumber);\n }",
"private void displayQuantity(int number) {\n TextView ob = findViewById(R.id.quantity_text_view);\n ob.setText(\"\"+number);\n }",
"private void displayQuantity(int number) {\n TextView quantityTextView = findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }",
"private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.valueOf(number));\n //quantityTextView.setText(new Integer(number).toString());\n }",
"private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(number);\n }",
"private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }",
"private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }",
"private void displayQuantity(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\"+ number);\n }",
"private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(String.format(\"%d\", number));\n }",
"private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }",
"private void display(int number)\n {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n }",
"private void display(int number) {\n TextView quantityTextView = (TextView)\n findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n\n }",
"void printTotalQuantity();",
"private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + number);\n\n }",
"private void display(int number) {\r\n TextView quantity_txt = (TextView) findViewById(R.id.quantity_textview);\r\n quantity_txt.setText(\"\" + number);\r\n }",
"void printQuantity(Quantity iQuantity)\n {\n System.out.println(iQuantity.getElementValue());\n }",
"private void display(int number) {\n TextView quantityText = findViewById(R.id.textCups);\n quantityText.setText(\"\" + number);\n }",
"private void displayQuantity(int numOfCoffeee) {\n TextView quantityTextView = (TextView) findViewById(R.id.quantity_text_view);\n quantityTextView.setText(\"\" + numOfCoffeee);\n }",
"BigDecimal getDisplayQuantity();",
"public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }",
"private void display(int number){\n TextView quantTV = (TextView) findViewById(R.id.quant_tv);\n quantTV.setText(\"\"+ number);\n }",
"void setQuantity(int quantity) {\n mQuantityTextView.setText(String.valueOf(quantity));\n }",
"public void setQuantity(int value) {\n this.quantity = value;\n }",
"public void setQuantity(int value) {\n this.quantity = value;\n }",
"public void setQuantity(int value) {\n this.quantity = value;\n }",
"private void displayquintity(int numberOFCoffee){\n TextView quintityText= findViewById(R.id.quantity_text_view);\n quintityText.setText(\"\"+numberOFCoffee);\n\n }",
"public void setQuantity(float value) {\n this.quantity = value;\n }",
"@Override\n public String toString() {\n String output = quantity + \" x \" + product;\n\n return output;\n }",
"private void display(int number) {\n TextView quantityTextView = (TextView) findViewById(R.id.minute_text_view);\n quantityTextView.setText(\"\" + number);\n\n }",
"String getQuantity() {\n return Integer.toString(quantity);\n }",
"private void displayQuantity(int numberOfCoffees) {\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n quantityTextView.setText(\"\" + numberOfCoffees);\n }",
"public void setQuantity(int quantity) {\r\n this.quantity = quantity;\r\n }",
"void setDisplayQuantity(BigDecimal inDisplayQuantity);",
"public void setQuantity(int quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(int quantity) {\n this.quantity = quantity;\n }",
"public void printOrderItem(){\r\n\t\tSystem.out.print(this.quantity+\" x \"+this.menuItem.getName()+\" ---- \");\r\n\t\tSystem.out.printf(\"$%.2f\\n\",this.calculatePrice());\r\n\t}",
"public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(String quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(Integer quantity) {\r\n this.quantity = quantity;\r\n }",
"public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }",
"public String getQuantity() {\n return quantity;\n }",
"public void setQuantity(int quantity) {\r\n\t\tthis.quantity = quantity;\r\n\t}",
"public void setQuantity(Float quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(int quantity)\n\t{\n\t\tthis.quantity = quantity;\n\t}",
"public void submitOrder(int quantity) {\n display(quantity);\n displayPrice(quantity * pintPrice);\n }",
"public static String formatQuantity(int quantity) {\n return formatQuantity((double) quantity);\n }",
"private void displayPrice(int number) {\n }",
"public void setQuantity(int quantity) {\n\t\tthis.quantity = quantity;\n\t}",
"public String asText() {\n String quantityStr;\n\n // we don't want to display decimal digits for int values (6.0 TBSP)\n // so check if quantity is int (check rounded-down value of quantity is the same as quantity)\n if (Math.floor(quantity) == quantity) {\n // quantity can be display as int\n quantityStr = String.valueOf(Math.round(quantity));\n } else {\n // quantity should be double\n quantityStr = String.valueOf(quantity);\n }\n\n return name + \" (\" + quantityStr + \" \" + measureUnit + \")\";\n }",
"public void submitOrder() {\n int price = quantity*5;\n displayPrice(price);\n }",
"private void printCheckItemQuantityMenu(Shop shop) {\n System.out.println(\"What is the ID of the tool you would like to look up?\");\n int itemId = receiveNumberInput();\n if (shop.searchInventory(itemId)) {\n System.out.println(\"Quantity: \" + shop.checkToolStock(itemId));\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }",
"public void incQty() {\n b.qty.setText(\"\" + ++qty);\n\n }",
"public void addQuantity()\n {\n int quantity = Integer.parseInt(quantityTextField.getText());\n quantity++;\n quantityTextField.setText(\"\" + quantity);\n\n changeSubtotalTextField();\n }",
"public void display()\r\n\t{\r\n\t\tSystem.out.println(\"Dollar: $\"+getAmount());\r\n\t\tSystem.out.println(\"Rupiah: Rp.\"+dollarTorp());\r\n\t}",
"public void increaseQuantity (View view){\n if(quantity == 100){\n Toast.makeText(this, \"You cannot order more than 100 coffee\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity + 1;\n displayQuantity(quantity);\n }",
"public float getQuantity() {\n return quantity;\n }",
"@Override\n public String toString() {\n return product.toString() + \", Quantity: \" + quantity;\n }",
"@Override\r\n public void ItemQuantity(int quantity) {\n this.quantity = quantity;\r\n }",
"public void setQuantity(int qty) {\r\n\t\tthis.quantity = qty;\r\n\t}",
"public void printCost() {\r\n double cost;\r\n cost = quantity * price;\r\n System.out.printf(\"Total cost = $%.2f\", cost);\r\n }",
"public void showProducts() {\n\t\t\tfor(int i = 0; i < products.size(); i++) {\n\t\t\t\tif(products.get(i).quantity > 0) {\n\t\t\t\t\tSystem.out.println(alphabet.substring(i, i+1).toUpperCase() + \") \" + products.get(i).toString());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tproducts.remove(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tquantity++;\r\n\t\t\tquantityText.setText(\"\" + quantity);\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (quantity > 0) {\r\n\t\t\t\t\tquantity--;\r\n\t\t\t\t\tquantityText.setText(\"\" + quantity);\r\n\t\t\t\t\t}\r\n\t\t\t\t}",
"public void display() {\r\n System.out.println(\" Cart Information \" + System.lineSeparator() +\r\n \"=========================\" + System.lineSeparator() +\r\n \"Customer ID: \" + getCustID() + System.lineSeparator() + \r\n \"Cart Total: \" + getTotal()+ System.lineSeparator());\r\n items.display();\r\n }",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n total = total * amount3;\n String.valueOf(total);\n //displaying what user chose\n JOptionPane.showMessageDialog(null, total + \" seconds \" + nameItem +\" \"+ amount3 );\n }",
"public static String formatQuantity(Integer quantity) {\n if (quantity == null)\n return \"\";\n else\n return formatQuantity(quantity.doubleValue());\n }",
"public void setQuantity(int quantity) {\r\n if (quantity >= 0) {\r\n this.quantity = quantity;\r\n }\r\n else {\r\n System.out.print(\"Sorry no negative quantities -- setting to 1\");\r\n this.quantity = 1;\r\n }\r\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\tint qty = quantity;\n\n\t\tif ( qty > 999 )\n\t\t\tqty = 999;\n\n\t\treturn Utility.pad(title, TITLE_LENGTH) + ' ' + Utility.pad(qty, QUANTITY_LENGTH) + ' ' + status.getCode() + ' ' + Utility.pad(price, PRICE_LENGTH);\n\t}",
"public void increment(View view) {\n quantity = quantity + 1;\n display(quantity);\n\n }",
"public void increment(View view) {\n quantity = quantity + 1;\n display(quantity);\n\n }",
"public int getQuantity() {\r\n return quantity;\r\n }",
"public double getQuantity() {\n return quantity;\n }",
"public void increament(View view) {\n if(!(quantity>=100)) {\n quantity++;\n display(quantity);\n }\n }",
"public Float getQuantity() {\n return quantity;\n }",
"public void show() {\n super.show(color, value.toString());\n }",
"private void quantityActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"public int getQuantity() {\r\n return quantity;\r\n }",
"public void setQuantity(int quantity) {\n this.quantity = quantity;\n this.updateTotalPrice();\n }",
"@Override\r\n\tpublic void display() {\n\t\tSystem.out.println(\"Discount Code: \" + discode);\r\n\t\tSystem.out.println(\"Group Size: \" + groupsize);\r\n\t\t\r\n\t}",
"public void setQuantity(Long quantity) {\r\n this.quantity = quantity;\r\n }",
"public void showValor() {\n String out = new String();\n this.setText(Integer.toString(valor));\n }",
"public int getQuantity()\n {\n return quantity;\n }",
"public int getQuantity() {\r\n return quantity;\r\n }",
"public Integer getQuantity() {\n return this.quantity;\n }",
"public void setQuantity(Long quantity) {\n this.quantity = quantity;\n }",
"public Integer getQuantity() {\n return quantity;\n }",
"public Integer getQuantity() {\n return quantity;\n }",
"public void submitOrder(View view){\n int price = quant*5;\n String priceMsg = \"Total: $\" + price +\"\\nThank you!\";\n displayMessage(priceMsg);\n }",
"protected void increment(View view){\r\n\r\n if (quantity==99){\r\n return;\r\n }\r\n quantity++;\r\n display(quantity);\r\n }",
"private void display(int key, String value)\n {\n System.out.println(\"Value for id \" + key + \": \" + value);\n }",
"public int getQuantity() {\n return quantity;\n }"
]
| [
"0.8212803",
"0.77711016",
"0.76877415",
"0.7662505",
"0.7607749",
"0.7584019",
"0.75392795",
"0.7531482",
"0.751727",
"0.7496429",
"0.7365862",
"0.73060924",
"0.7296504",
"0.72939616",
"0.72937334",
"0.7285382",
"0.7280069",
"0.72360295",
"0.719142",
"0.7120275",
"0.6995672",
"0.69645816",
"0.6940701",
"0.69129074",
"0.69003445",
"0.69003445",
"0.69003445",
"0.6878102",
"0.68029755",
"0.6777009",
"0.6769854",
"0.67520666",
"0.6664371",
"0.6628615",
"0.662705",
"0.6593638",
"0.6593638",
"0.65879893",
"0.65842634",
"0.6577138",
"0.65546554",
"0.6540382",
"0.6540382",
"0.6527058",
"0.65233666",
"0.6517486",
"0.6502649",
"0.64929175",
"0.6480117",
"0.64426535",
"0.64191055",
"0.64136827",
"0.6376049",
"0.6376026",
"0.6353568",
"0.632953",
"0.6323544",
"0.6315674",
"0.6288812",
"0.6275203",
"0.6272808",
"0.6271178",
"0.62583876",
"0.62528765",
"0.6251978",
"0.623782",
"0.6211649",
"0.6188196",
"0.61861086",
"0.617065",
"0.6167093",
"0.614308",
"0.614308",
"0.61370635",
"0.61241055",
"0.6120923",
"0.61181074",
"0.61083686",
"0.61006445",
"0.60940456",
"0.6074703",
"0.6068643",
"0.60666996",
"0.60645384",
"0.6062184",
"0.6060983",
"0.60561746",
"0.60555786",
"0.60550165",
"0.60550165",
"0.60522115",
"0.60477585",
"0.6039227",
"0.6026105"
]
| 0.7305023 | 18 |
This method increments the quantity of coffee cups by one | public void increment(View view) {
if (quantity < 100) {
quantity = quantity + 1;
display(quantity);
} else {
Log.i("MainActivity", "Please select less than one hundred cups of coffee");
Context context = getApplicationContext();
String lowerLimitToast = getString(R.string.too_much_pizza);
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(context, lowerLimitToast, duration);
toast.show();
return;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void incrementOrder(View view) {\n final int numberOfCoffees = getNumberOfCoffees();\n if (numberOfCoffees == Constants.MAX_NUM_COFFEES_IN_ORDER) {\n Toast.makeText(getApplicationContext(),\n \"Maximum number of coffees in one order reached\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n displayQuantity(numberOfCoffees+1);\n }",
"public void increment(View view) {\n if(quantity ==100) {\n Toast.makeText(this, \"You cannot have more than 100 cups of coffee\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity + 1;\n displayQuantity(quantity);\n }",
"public void increment(View view) {\n if(quantity == 100){\n Toast t = Toast.makeText(this, \"You cannot have more than 100 coffees\", Toast.LENGTH_LONG);\n t.show();\n return;\n }\n\n quantity = quantity + 1;\n displayQuantity(quantity);\n }",
"public void increment(View view) {\n if(quantity==100) {\n // Show an error message as a toast\n Toast.makeText(this, \"You cannot have more than a 100 coffees\", Toast.LENGTH_SHORT).show();\n //Exit this method early because there is nothing left to do\n return;\n }\n quantity=quantity+1;\n displayQuantity(quantity);\n\n }",
"public void increaseQuantity() {\n this.quantity++;\n this.updateTotalPrice();\n }",
"public void increment(View view) {\n if (quantity == 15) {\n // Show an error message as a toast\n Toast.makeText(this, \"You cannot have more than 15 coffees\", Toast.LENGTH_SHORT).show();\n // Exit this method early because there's nothing left to do\n return;\n }\n quantity = quantity + 1;\n displayQuantity(quantity);\n }",
"public void increase()\n {\n setCount(getCount() + 1);\n }",
"public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}",
"public void increment() {\n items++;\n }",
"public void increaseQuantityOfProductByOne() {\n int intQuantity = Integer.parseInt(quantityOfProducts.getAttribute(\"value\"));\n plusButton.click();\n testClass.waitTillValueOfElementIsIncreasedByOne(\n QUANTITY_OF_PRODUCTS_XPATH, intQuantity + 1);\n }",
"public void increaseQuantity (View view){\n if(quantity == 100){\n Toast.makeText(this, \"You cannot order more than 100 coffee\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity + 1;\n displayQuantity(quantity);\n }",
"public void increaseQty_CNCItem(int qtytoincrease) throws InterruptedException {\n UtilityHelper.waitUntilClickable(plusIcon1stunderCNCsectionShoppingCartPage);\n for (int i = 0; i < qtytoincrease; i++) {\n plusIcon1stunderCNCsectionShoppingCartPage.click();\n }\n Thread.sleep(3000);\n }",
"public static void increase(){\n c++;\n }",
"public void Increase()\n {\n Increase(1);\n }",
"private int countProductsInCart_UPDATED() {\n System.out.println(\"-=====================Shopping Cart List========================================-\");\n int count, value;\n count = 0;\n List<WebElement> cakes = getDriver().findElements(By.xpath(\"//*[text()='Edit Your Cake']\"));\n List<WebElement> sthAndCnC = getDriver().findElements(By.xpath(\"//*[starts-with(@id, 'basketBody_') and @type='number']\"));\n System.out.println(\" === adding \" + cakes.size() + \" cakes to count\");\n count += cakes.size();\n for (WebElement product : sthAndCnC) {\n if ((!product.getAttribute(\"value\").equals(\"\")) && (product.getAttribute(\"value\") != null)) {\n String checkForLB = product.getAttribute(\"data-qtyincrement\");\n if (checkForLB.contains(\"0.\")) { //To validate for LB(s) items\n value = 1;\n } else {\n value = Integer.valueOf(product.getAttribute(\"value\"));\n }\n System.out.println(\"=== adding \" + value + \" cnc or sth item to cart\");\n count += value;\n } else {\n System.out.println(\"=== error adding product quantity\");\n }\n }\n System.out.println(\" === Count was: \" + count);\n System.out.println(\"-=====================Shopping Cart List========================================-\");\n return count;\n }",
"public void incrementAmountBought() {\n amountBought++;\n }",
"private void updateQuantity(int number) {\n Log.d(\"Method\", \"updateQuantity()\");\n coffeeCount += number;\n if (coffeeCount < getResources().getInteger(R.integer.min_coffee)) {\n Log.w(\"\", \"coffeeCount < minimum coffee order. Resetting to \" + getResources().getInteger(R.integer.min_coffee) + \".\");\n coffeeCount = getResources().getInteger(R.integer.min_coffee);\n } else if ((coffeeCount > getResources().getInteger(R.integer.high_coffee_count)) && (!quantityAlert)) {\n Log.i(\"\", \"Alerting user about a high coffee count order.\");\n displayMessage(getResources().getString(R.string.high_coffee_message));\n quantityAlert = true;\n } else if (coffeeCount > getResources().getInteger(R.integer.max_coffee)) {\n Log.w(\"\", \"coffeeCount > maximum coffee order. Resetting to \" + getResources().getInteger(R.integer.max_coffee) + \".\");\n coffeeCount = getResources().getInteger(R.integer.max_coffee);\n displayMessage(getResources().getString(R.string.max_coffee_message));\n }\n displayQuantity();\n }",
"public void nextCostume() { \n costumeNumber++;\n if (costumeNumber > numberOfCostumes-1) costumeNumber=0;\n }",
"private void increaseOneToQuantity() {\n String previousValueString = mQuantityEditText.getText().toString();\n int previousValue;\n if (previousValueString.isEmpty() || previousValueString.equals(\"0\")) {\n return;\n }\n else {\n previousValue = Integer.parseInt(previousValueString);\n mQuantityEditText.setText(String.valueOf(previousValue + 1));\n }\n }",
"public void incQty() {\n b.qty.setText(\"\" + ++qty);\n\n }",
"public void increaseQuantity(int amount) {\n this.currentQuantity += amount;\n }",
"@NonNull\n public BasketItemBuilder incrementQuantity() {\n this.quantity++;\n return this;\n }",
"public void increment() {\n increment(1);\n }",
"public void increment(View view) {\n if (quantity == 100){\n return;\n }\n quantity = quantity + 1;\n displayQuantity(quantity);\n }",
"public void increment(View view) {\n if(quantity < 100)\n quantity++;\n displayQuantity(quantity);\n }",
"public void incrementCount() {\n count++;\n }",
"private void calculatePrice(int quantity) {\n int price = quantity * priceOfCoffee;\n }",
"public void increment (View view)\n {\n numOfCufee++;\n display(numOfCufee);\n }",
"public void increase() {\n balance.multiply(1.001);\n }",
"public void incrementNumOfBoats() {\n\t\tnumOfBoats++;\n\t}",
"public void incrementCount() {\n\t\tcount++;\n\t}",
"public void increaseQuantity(View view) {\n Log.d(\"Method\", \"increaseQuantity()\");\n updateQuantity(1);\n }",
"public void increase(int number) {\r\n this.count += number;\r\n }",
"public void increase(int number) {\r\n this.count += number;\r\n }",
"public int increase()\n {\n return this.increase(1);\n }",
"private void promote() {\r\n //promote gives more money\r\n increment();\r\n }",
"private void displayQuantity(int numberOfCoffees) {\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n quantityTextView.setText(\"\" + numberOfCoffees);\n }",
"void increase();",
"void increase();",
"void incrementCount();",
"public void incrementNumberOfShips(int value) {\r\n\t\tnumberOfShips = numberOfShips + value;\r\n\t}",
"public void changeCount(final int c) {\n\t\tcount += c;\n\t}",
"public void incrementAmount() { amount++; }",
"public void increment(View view) {\n quantity = (quantity + 1);\n submitOrder(quantity);\n\n }",
"public void makeCoffee(){\n size();\n temp();\n type();\n }",
"public void addCart(View view) {\n TextView textView = findViewById(R.id.price_total2);\n double price = Double.parseDouble(textView.getText().toString().replace(\"$\", \"\"));\n String text = \"$\" + String.valueOf(++price);\n textView.setText(text);\n Log.i(TAG, \"Value Successfully Increased! :\" /**+ ++i**/);\n }",
"public void increment(View view) {\n String msg = getString(R.string.too_many_message);\n\n if(quantity < 100){\n quantity++;\n } else{\n Toast.makeText(this, msg, Toast.LENGTH_SHORT)\n .show();\n }\n displayQuantity(quantity);\n }",
"public void incrementCoinCount() {\n coinCount++;\n System.out.println(\"Rich! Coin count = \" + coinCount);\n }",
"public void increment() {\r\n\t\tcurrentSheeps++;\r\n\t}",
"private int getNumberOfCoffees() {\n return Integer.parseInt(((TextView)findViewById(R.id.quantity_text_view)).getText().toString());\n }",
"protected void increment(View view){\r\n\r\n if (quantity==99){\r\n return;\r\n }\r\n quantity++;\r\n display(quantity);\r\n }",
"@Override\r\n\tpublic int increase() throws Exception {\n\t\treturn 0;\r\n\t}",
"public void increaseFruitQuantity(double amount) {\r\n\t\tif (amount > 0) {\r\n\t\t\tthis.fruitQuantity += amount;\r\n\t\t}\r\n\t}",
"public void increment(View view) {\n quantity = quantity + 1;\n display(quantity);\n\n }",
"public void increment(View view) {\n quantity = quantity + 1;\n display(quantity);\n\n }",
"public void incCount() { }",
"private void calculatePrice(int quantity, int pricePerCup) {\n int price = quantity * pricePerCup;\n }",
"public void incPieceCount () {\n m_PieceCount++;\n\t}",
"public void increment() {\n mNewNotificationCount.setValue(mNewNotificationCount.getValue() + 1);\n }",
"private int calculatePrice(boolean addWhippedCream, boolean addChocolate) {\n int basePrice=5; //price of one cup of coffee\n if(addWhippedCream) //add $1 if user wants whipped cream\n basePrice+=1;\n if(addChocolate) //add $2 if user wants whipped cream\n basePrice+=2;\n\n return quantity * basePrice;\n }",
"public void increment(View view){\n quant++;\n display(quant);\n }",
"public void incrementCount(){\n count+=1;\n }",
"public void increaseCount(){\n myCount++;\n }",
"private void increment() {\n for (int i=0; i < 10000; i++) {\n count++;\n }\n }",
"public void incrementTotal() {\n\t\t\ttotal++;\n\t\t}",
"public void incrementTotal(){\n total++;\n }",
"public static void buyCandy3() {\n int funds = 100;\n int itemsBought = 0;\n for (int price = 10; funds >= price; price += 10) {\n //System.out.println(\"price \" + price);\n itemsBought++;\n funds -= price;\n }\n //4 items bought.\n System.out.println(itemsBought + \" items bought.\");\n //Change: $0.00\n System.out.println(\"Change: $\" + funds);\n }",
"private int calculatePrice() {\n int price = numberOfCoffees * 5;\n\n return price;\n\n\n }",
"public void stock(int number) {\r\n quantity += number;\r\n }",
"private int calculatePrice(boolean addWhippedCream, boolean addChocolate, boolean addCinnamon, boolean addMarshmallows) {\n int basePrice = 5;\n if (addWhippedCream){\n basePrice = basePrice + 1;\n }\n if (addChocolate){\n basePrice = basePrice + 1;\n }\n if (addCinnamon){\n basePrice = basePrice + 1;\n }\n if (addMarshmallows){\n basePrice = basePrice + 1;\n }\n return quantity * basePrice;\n\n }",
"private int calculatePrice(boolean hasWhippedCream, boolean hasChocolate) {\n int toppings = 0;\n\n if(hasWhippedCream){\n toppings += 1;\n }\n\n if(hasChocolate){\n toppings += 2;\n }\n\n return quantity * (priceOfCoffee + toppings);\n }",
"public void increament(View view) {\n if(!(quantity>=100)) {\n quantity++;\n display(quantity);\n }\n }",
"public void itemsSold() {\n quanitySnacks--;\n }",
"private void incrementCounter()\r\n\t{\r\n\t\tthis.counter++;\r\n\t}",
"public void incdrum(String quantity1, String capacity) {\nString countQuery = \"SELECT \"+Drum_Quantity + \" FROM \" + DATABASE_TABLE4+\" WHERE \"+Drum_Capacity+\" ='\"+capacity+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(Drum_Quantity);\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\tint cur=Integer.parseInt(cbal);\n\t\tcur=cur+Integer.parseInt(quantity1);\n\t ContentValues up=new ContentValues();\n\t up.put(Drum_Quantity, cur);\n\t\tourDatabase.update(DATABASE_TABLE4, up, Drum_Capacity+\" = '\"+capacity+\"'\", null);\n\t\t\n\t}",
"public void increase(int quantity) {\r\n\r\n\t\tif (getAmount() == Integer.MAX_VALUE)\r\n\r\n\t\t\treturn;\r\n\r\n\t\tsetAmount(getAmount() + quantity);\r\n\r\n\t}",
"public void increaseCount(View view) {\n count++;\n display(count);\n }",
"public int increase() {\r\n return ++value;\r\n }",
"private int calculatePrice(boolean cream , boolean choco) {\n //Price per one cup is $5\n int pricePerCup = 5;\n\n\n //Cream topping costs $2\n if(cream == true & pricePerCup > 0){\n pricePerCup += 1;\n }\n\n //Chocolate topping costs $3\n if(choco == true & pricePerCup > 0){\n pricePerCup += 2;\n }\n\n return quantity * pricePerCup;\n }",
"public void addCount()\n {\n \tcount++;\n }",
"public Integer checkcups() { return cups; }",
"public int increase(int amount)\n {\n this.setCount(this.getCount() + amount);\n return this.getCount();\n }",
"@Test\r\n public void testPurchaseBeverage() {\r\n coffeeMaker.addRecipe(recipe1);\r\n assertEquals(25, coffeeMaker.makeCoffee(0, 75));\r\n assertEquals(0, coffeeMaker.makeCoffee(0, 50));\r\n }",
"public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}",
"public static void increment() {\n\t\tcount.incrementAndGet();\n//\t\tcount++;\n\t}",
"public void increaseQtyStepperOfRandomProductsInShoppingCartPage(WebElement element, int clickPlus) {\n UtilityHelper.moveToViewElement(element);\n for (int i = 0; i < clickPlus; i++) {\n String itemCountIcon = UtilityHelper.elementGetText(ITEM_COUNT_ON_SHOPPING_CART);\n WebElement qtyInput = element.findElement(By.xpath(\".//*[contains(@class,'qtyInput')]\"));\n String qtyStep = UtilityHelper.elementGetAttribute(qtyInput, \"step\");\n UtilityHelper.click(element.findElement(By.xpath(\".//*[contains(@id,'plus')]\")));\n if (!(qtyStep.equals(\"0.25\"))) {\n // If Alt UoM != LB, calculate quantity\n waitUntilQuantityUpdate(\"plus\", itemCountIcon);\n }\n }\n }",
"public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }",
"public void decrementOrder(View view) {\n final int numberOfCoffees = getNumberOfCoffees();\n if (numberOfCoffees == Constants.MIN_NUM_COFFEES_IN_ORDER) {\n Toast.makeText(getApplicationContext(),\n \"Minimum number of coffees in one order reached\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n displayQuantity(numberOfCoffees-1);\n }",
"private static void incrementFlightTakeOffCounter()\r\n\t{\r\n\t\tflightTakeOffCounter++;\r\n\t}",
"public void increment(){\n value+=1;\n }",
"public void incrementLoopCounter() throws EndTaskException {\n\t\tgoToBeeperStock();\n\t\tpickBeeper();\n\t\tgoToLoopCounter();\n\t\tputBeeper();\n\t}",
"public void addToCoins(int more) {\r\n\t\tint coins = more;\r\n\t\tif (goods.containsKey(Resource.COIN)) {\r\n\t\t\tcoins = goods.get(Resource.COIN);\r\n\t\t\tcoins += more;\r\n\t\t}\r\n\t\tgoods.put(Resource.COIN, coins);\r\n\t}",
"public void increasecounter() {\n\t\tmPref.edit().putInt(PREF_CONVERTED, counter + 1).commit();\r\n\t}",
"public void zugInsDepot() {\n depot++;\n }",
"public void buyFuelGainMultiply() {\n this.fuelGainMultiply++;\n }",
"public void sizeIncrease1() {\n\t\t _size++;\n\t}",
"@Override\n public void onClick(View v)\n {\n // Increase purchased quantity\n productQuantityTextView.setText(Integer.toString(++productQuantity));\n }",
"public void inc() {\n inc(1);\n }",
"@Override\n public void onClick(View v) {\n snapshot.getReference().update(FooditemTransaction.FIELD_STATUS,\n Const.getInstance().TRANSACTION_STATUS.get(\"Cancelled\"));\n foodRef.update(\"count\", FieldValue.increment(1));\n }",
"public int calculatePrice() {\n int price = 5;\n if(hasWhippedCream) {\n price += 1;\n }\n if(hasChocolate) {\n price += 2;\n }\n return quantity * price;\n }"
]
| [
"0.73041344",
"0.7123678",
"0.7000166",
"0.6944523",
"0.6874585",
"0.6866751",
"0.6621702",
"0.66129464",
"0.65552783",
"0.6547654",
"0.6546013",
"0.65441453",
"0.6504078",
"0.6486318",
"0.6422295",
"0.6308083",
"0.62888956",
"0.62809443",
"0.6274412",
"0.62525296",
"0.62403905",
"0.62231684",
"0.6166556",
"0.61657923",
"0.6155627",
"0.61035436",
"0.6077045",
"0.6076822",
"0.60612875",
"0.604167",
"0.60297966",
"0.60284245",
"0.6022919",
"0.6022919",
"0.6015888",
"0.6004936",
"0.6003707",
"0.6003141",
"0.6003141",
"0.5998993",
"0.5987482",
"0.5983493",
"0.59707177",
"0.5969714",
"0.5950432",
"0.5939678",
"0.59371275",
"0.59328896",
"0.593196",
"0.5921922",
"0.5916463",
"0.5915816",
"0.59096473",
"0.59085745",
"0.59085745",
"0.59045327",
"0.58956265",
"0.5884413",
"0.58823574",
"0.5872076",
"0.58665854",
"0.58498025",
"0.5824139",
"0.5819953",
"0.58139247",
"0.58059794",
"0.5794055",
"0.5792075",
"0.5788696",
"0.5771042",
"0.57703304",
"0.57674515",
"0.5760785",
"0.5748113",
"0.5735559",
"0.57240736",
"0.57206947",
"0.57190776",
"0.5704839",
"0.5689776",
"0.56868833",
"0.56817174",
"0.5665218",
"0.56526685",
"0.56422174",
"0.5625864",
"0.5619658",
"0.5616456",
"0.5615299",
"0.56131494",
"0.56108266",
"0.5608044",
"0.560123",
"0.5596373",
"0.5582843",
"0.55809265",
"0.5574419",
"0.55653363",
"0.556439",
"0.55616117"
]
| 0.65296566 | 12 |
This method decrements the quantity of coffee cups by one | public void decrement(View view) {
if (quantity > 1) {
quantity = quantity - 1;
display(quantity);
} else {
Log.i("MainActivity", "Please select atleast one cup of coffee");
Context context = getApplicationContext();
String upperLimitToast = getString(R.string.too_little_pizza);
int duration = Toast.LENGTH_SHORT;
Toast toast = Toast.makeText(context, upperLimitToast, duration);
toast.show();
return;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void decrementOrder(View view) {\n final int numberOfCoffees = getNumberOfCoffees();\n if (numberOfCoffees == Constants.MIN_NUM_COFFEES_IN_ORDER) {\n Toast.makeText(getApplicationContext(),\n \"Minimum number of coffees in one order reached\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n displayQuantity(numberOfCoffees-1);\n }",
"public void decrement (View view) {\n if(quantity==0) {\n Toast.makeText(this, \"You cannot have less than 1 cup of coffee\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity - 1;\n displayQuantity(quantity);\n }",
"public void decrement(View view) {\n if(quantity==1) {\n // Show an error message as a toast\n Toast.makeText(this, \"You cannot have less than 1 coffee\", Toast.LENGTH_SHORT).show();\n //Exit this method early because there is nothing left to do\n return;\n }\n quantity=quantity-1;\n displayQuantity(quantity);\n\n }",
"public void decrement(View view) {\n if (quantity == 1) {\n // Show an error message as a toast\n Toast.makeText(this, \"You cannot have less than 1 coffee\", Toast.LENGTH_SHORT).show();\n // Exit this method early because there's nothing left to do\n return;\n }\n quantity = quantity - 1;\n displayQuantity(quantity);\n }",
"public void decrement(View view){\n if(quantity == 1) {\n Toast t = Toast.makeText(this, \"You cannot order 0 coffees\", Toast.LENGTH_LONG);\n t.show();\n return;\n }//could be error if ever set not to a positive number\n\n quantity = quantity - 1;\n displayQuantity(quantity);\n }",
"public void decrement() {\n items--;\n }",
"public void decreaseQuantity (View view){\n if(quantity == 1) {\n\n Toast.makeText(this, \"You cannot order less than 1 coffee\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity - 1;\n displayQuantity(quantity);\n }",
"public void decreaseQuantity() {\n this.quantity--;\n this.updateTotalPrice();\n }",
"public void decrementAmount() {\n this.amount--;\n amountSold++;\n }",
"public void itemsSold() {\n quanitySnacks--;\n }",
"public void resetQuantity() {\n Log.d(\"Method\", \"resetQuantity()\");\n CheckBox cb = (CheckBox) findViewById(R.id.whipped_checkbox_view);\n\n coffeeCount = getResources().getInteger(R.integer.min_coffee);\n quantityAlert = false;\n cb.setChecked(false);\n displayQuantity();\n }",
"public void decrementTotal(){\n total--;\n }",
"public void decrease() {\r\n\r\n\t\tdecrease(1);\r\n\r\n\t}",
"public void decrement() {\n sync.decrement();\n }",
"public void increment(View view) {\n if(quantity ==100) {\n Toast.makeText(this, \"You cannot have more than 100 cups of coffee\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity + 1;\n displayQuantity(quantity);\n }",
"public void incrementOrder(View view) {\n final int numberOfCoffees = getNumberOfCoffees();\n if (numberOfCoffees == Constants.MAX_NUM_COFFEES_IN_ORDER) {\n Toast.makeText(getApplicationContext(),\n \"Maximum number of coffees in one order reached\",\n Toast.LENGTH_SHORT).show();\n return;\n }\n displayQuantity(numberOfCoffees+1);\n }",
"void decrementAddedCount() {\n addedCount.decrementAndGet();\n }",
"public void decreaseQuantity(View view) {\n Log.d(\"Method\", \"decreaseQuantity()\");\n updateQuantity(-1);\n }",
"private void decrementCounter()\r\n\t{\r\n\t\tthis.counter--;\r\n\t}",
"public void increment(View view) {\n if(quantity == 100){\n Toast t = Toast.makeText(this, \"You cannot have more than 100 coffees\", Toast.LENGTH_LONG);\n t.show();\n return;\n }\n\n quantity = quantity + 1;\n displayQuantity(quantity);\n }",
"public void decrease(int number) {\r\n this.count -= number;\r\n }",
"public void decrease(int number) {\r\n this.count -= number;\r\n }",
"void decrease();",
"void decrease();",
"public void decrement() {\r\n\t\tcurrentSheeps--;\r\n\t}",
"public void decreaseQuantity(int amount) {\n this.currentQuantity -= amount;\n }",
"public void increment(View view) {\n if(quantity==100) {\n // Show an error message as a toast\n Toast.makeText(this, \"You cannot have more than a 100 coffees\", Toast.LENGTH_SHORT).show();\n //Exit this method early because there is nothing left to do\n return;\n }\n quantity=quantity+1;\n displayQuantity(quantity);\n\n }",
"protected void dropFood() {\r\n\t\tthis.food++;\r\n\t}",
"public void decrement(){\n if (value >0) {\n value -= 1;\n }\n }",
"protected void decrement(View view){\r\n if (quantity==1){\r\n return;\r\n }\r\n quantity--;\r\n display(quantity);\r\n }",
"public void decrement(View view) {\n quantity = quantity - 1;\n display(quantity);\n\n }",
"public void decrement(View view) {\n quantity = quantity - 1;\n display(quantity);\n\n }",
"public void decrementNumberOfBoats() {\n\t\tnumOfBoats--;\n\t}",
"public void increment(View view) {\n if (quantity == 15) {\n // Show an error message as a toast\n Toast.makeText(this, \"You cannot have more than 15 coffees\", Toast.LENGTH_SHORT).show();\n // Exit this method early because there's nothing left to do\n return;\n }\n quantity = quantity + 1;\n displayQuantity(quantity);\n }",
"public void decrement() {\n\t\tnumber--;\n\t}",
"public void decrement(View view){\n quant--;\n display(quant);\n }",
"public void decreasePigsCounter() {\n --_pigsCounter;\n }",
"public void decreaseRemainingPausesCount() {\r\n remainingPausesCount--;\r\n }",
"public void previousCostume() {\n costumeNumber--;\n if (costumeNumber < 0) costumeNumber=numberOfCostumes-1;\n }",
"public int decrease()\n {\n return this.decrease(1);\n }",
"public void decrement(View view) {\n if (quantity > 0) {\n quantity = (quantity - 1);\n submitOrder(quantity);\n } else {\n submitOrder(quantity);\n }\n }",
"private void subtractOneToQuantity() {\n String previousValueString = mQuantityEditText.getText().toString();\n int previousValue;\n if (previousValueString.isEmpty() || previousValueString.equals(\"0\")) {\n return;\n }\n else {\n previousValue = Integer.parseInt(previousValueString);\n mQuantityEditText.setText(String.valueOf(previousValue - 1));\n }\n }",
"public void removeCount() {\n \t\tdupCount--;\n \t}",
"public void decrement(View view) {\n if(quantity > 0)\n quantity--;\n displayQuantity(quantity);\n }",
"public void decPieceCount () {\n\t\tm_PieceCount --;\n\t}",
"public void decrementStunCountdown()\n {\n addStunCountdown(-1);\n }",
"@Override\n public void clearCupsMade() {\n LOG.info(\"Clear the ammount of cups made.\");\n cupState.getCupsMade().set(0);\n syncCupWithDataStore(LogicalDatastoreType.OPERATIONAL,\n CupMapper.getCupIid(),\n buildOperationalCup());\n }",
"public void removeOrder(){\n foods.clear();\n price = 0;\n }",
"public void decrementRechargeTimes();",
"protected void pickupFood() {\r\n\t\tif(this.food > 0){\r\n\t\t\tthis.food--;\r\n\t\t}\r\n\t}",
"private void updateQuantity(int number) {\n Log.d(\"Method\", \"updateQuantity()\");\n coffeeCount += number;\n if (coffeeCount < getResources().getInteger(R.integer.min_coffee)) {\n Log.w(\"\", \"coffeeCount < minimum coffee order. Resetting to \" + getResources().getInteger(R.integer.min_coffee) + \".\");\n coffeeCount = getResources().getInteger(R.integer.min_coffee);\n } else if ((coffeeCount > getResources().getInteger(R.integer.high_coffee_count)) && (!quantityAlert)) {\n Log.i(\"\", \"Alerting user about a high coffee count order.\");\n displayMessage(getResources().getString(R.string.high_coffee_message));\n quantityAlert = true;\n } else if (coffeeCount > getResources().getInteger(R.integer.max_coffee)) {\n Log.w(\"\", \"coffeeCount > maximum coffee order. Resetting to \" + getResources().getInteger(R.integer.max_coffee) + \".\");\n coffeeCount = getResources().getInteger(R.integer.max_coffee);\n displayMessage(getResources().getString(R.string.max_coffee_message));\n }\n displayQuantity();\n }",
"public void decrementa(View view) {\n TextView mensagem = findViewById(R.id.Mensagem);\n count--;\n\n Integer i = new Integer(count);\n mensagem.setText(i.toString());\n\n }",
"public void decreaseCount(View view) {\n if (count > 0) {\n count--;\n }\n display(count);\n }",
"public void decrement(View view) {\n String msg = getString(R.string.too_few_message);\n if(quantity > 0){\n quantity--;\n } else{\n Toast.makeText(this, msg, Toast.LENGTH_SHORT)\n .show();\n }\n\n displayQuantity(quantity);\n }",
"public void deductCoin(int c) {\n setCoin(getCoin() - c);\n }",
"public void decrementCurrentNumberOfRegisterPushed(){\n currentNumberOfRegisterPushed--;\n }",
"public void decrement(View view) {\n if(quantity <= 1){\n //Creates toast that will show error on the screen\n Toast.makeText(getApplicationContext(), getString(R.string.decrement), Toast.LENGTH_LONG).show();\n //Exits statement earlier\n return;\n }\n --quantity;\n displayQuantity(quantity);\n }",
"void unsetValueQuantity();",
"public void buyDecreaseDamage() {\n this.decreaseDamage++;\n }",
"public void increaseQuantity (View view){\n if(quantity == 100){\n Toast.makeText(this, \"You cannot order more than 100 coffee\", Toast.LENGTH_SHORT).show();\n return;\n }\n quantity = quantity + 1;\n displayQuantity(quantity);\n }",
"public void decreaseFruitQuantity(double amount) {\r\n\t\tif (amount > 0) {\r\n\t\t\tthis.fruitQuantity -= amount;\r\n\t\t}\r\n\t}",
"@NonNull\n public BasketItemBuilder decrementQuantity() {\n this.quantity--;\n return this;\n }",
"public void decrease() {\r\n --lives;\r\n }",
"public abstract void decrement(int delta);",
"public void onClickSubtract(View view) {\n countJB--;\n updateCountTV();\n }",
"public void decdrum(String quantity1, String capacity) {\nString countQuery = \"SELECT \"+Drum_Quantity + \" FROM \" + DATABASE_TABLE4+\" WHERE \"+Drum_Capacity+\" ='\"+capacity+\"'\";\n\t \n\t Cursor cursor = ourDatabase.rawQuery(countQuery, null);\n\t int d=cursor.getColumnIndex(Drum_Quantity);\n\t\tString cbal=null;\n\t\tfor(cursor.moveToFirst();!cursor.isAfterLast();cursor.moveToNext()){\n\t\t\tcbal=cursor.getString(d);\n\t\t\t\n\t\t}\n\t\tint cur=Integer.parseInt(cbal);\n\t\t\n\t\tcur=cur-Integer.parseInt(quantity1);\n\t ContentValues up=new ContentValues();\n\t up.put(Drum_Quantity, cur);\n\t\tSystem.out.println(\"Final stat=\"+cur);\n\t ourDatabase.update(DATABASE_TABLE4, up, Drum_Capacity+\" = '\"+capacity+\"'\", null);\n\t\t\n\t}",
"public void nextCostume() { \n costumeNumber++;\n if (costumeNumber > numberOfCostumes-1) costumeNumber=0;\n }",
"public int decrease(int amount)\n {\n this.setCount(this.getCount() - amount);\n return this.getCount();\n }",
"public void decrementLoopCounter() throws EndTaskException {\n\t\tgoToLoopCounter();\n\t\tpickBeeper();\n\t\tgoToBeeperStock();\n\t\tputBeeper();\n\t}",
"public void depleteSugar() {\n currentSugar = 0;\n }",
"public void decrementTotalScore(){\n totalScore -= 1;\n }",
"void recount();",
"public void decreaseQtyStepperOfRandomProductsInShoppingCartPage(WebElement element, int clickMinus) {\n UtilityHelper.moveToViewElement(element);\n for (int i = 0; i < clickMinus; i++) {\n WebElement qtyInput = element.findElement(By.xpath(\".//*[contains(@class,'qtyInput')]\"));\n String qtyValue = UtilityHelper.elementGetAttribute(qtyInput, \"value\");\n String qtyStep = UtilityHelper.elementGetAttribute(qtyInput, \"step\");\n if (((Double.valueOf(qtyValue) != 1.00) || qtyStep.equals(\"0.25\")) && Double.valueOf(qtyValue) != 0.25) {\n String itemCountIcon = UtilityHelper.elementGetText(ITEM_COUNT_ON_SHOPPING_CART);\n UtilityHelper.click(element.findElement(By.xpath(\".//*[contains(@id,'minus')]\")));\n if (!(qtyStep.equals(\"0.25\"))) {\n // If Alt UoM != LB, calculate quantity\n waitUntilQuantityUpdate(\"minus\", itemCountIcon);\n }\n }\n }\n }",
"public void decrease() {\r\n\t\t\tsynchronized (activity.getTaskTracker()) {\r\n\t\t\t\tactivity.getTaskTracker().count--;\r\n\t\t\t\tLog.d(LOGTAG, \"Decremented task count to \" + count);\r\n\t\t\t}\r\n\t\t}",
"public void reduceQty_CNCItem(int qtytoreduce) throws InterruptedException {\n UtilityHelper.waitUntilClickable(minusIcon1stunderCNCsectionShoppingCartPage);\n for (int i = 0; i < qtytoreduce; i++) {\n minusIcon1stunderCNCsectionShoppingCartPage.click();\n }\n Thread.sleep(3000);\n }",
"@Override\n public void onClick(View v) {\n snapshot.getReference().update(FooditemTransaction.FIELD_STATUS,\n Const.getInstance().TRANSACTION_STATUS.get(\"Cancelled\"));\n foodRef.update(\"count\", FieldValue.increment(1));\n }",
"public void decrementHops() {\n\t\tthis.hopCount--;\n\t}",
"protected void incrementHunger()\n {\n food_level--;\n if(food_level <= 0) {\n setDead();\n }\n }",
"@Override\n public void onClick(View v) {\n if (counter[0] > 0)\n {\n counter[0] = counter[0] - 1;\n holder.quantity.setText(String.valueOf(counter[0]));\n sum[0] -= newItem.getPrice();\n items.remove(newItem.getTitle());\n adapterInterface.onClick(sum[0], items);\n }\n }",
"public void decreaseQuantity(int quantity) {\n\t\tif (quantity < 0) {\n\t\t\tthrow new IllegalArgumentException(\"null barcode\");\n\t\t}\n\t\ttotalNumOfItems -= quantity;\n\t}",
"public void decrementLiveCount() {\n liveCount = liveCount - 15;\n System.out.println(\"You're bad, live: \" + liveCount);\n }",
"private void promote() {\r\n //promote gives more money\r\n increment();\r\n }",
"public void decrementWorkload() {\n workload--;\n }",
"public void markUnsold(){\n\n myMaxRejectCountCount--;\n }",
"public void decrementVictoryPoints() {\n\t\tthis.totalVictoryPoints++;\n\t}",
"public void Increase()\n {\n Increase(1);\n }",
"@Test\n public void testDecrementInventory() throws Exception {\n int firstDecrement;\n int secondDecrement;\n\n List<VendingItem> items;\n VendingItem twix;\n\n try {\n fillInventoryFileWithTestData(VALID);\n dao.loadItems();\n } catch (VendingMachinePersistenceException ex) {\n }\n\n items = dao.getItems();\n\n assertEquals(1, items.size());\n\n twix = items.get(0);\n\n // firstDecrement = 19\n firstDecrement = twix.decrementStock();\n\n // secondDecrement = 18\n secondDecrement = twix.decrementStock();\n\n assertEquals(1, firstDecrement - secondDecrement);\n }",
"public void decBombs() {\n\t\tthis.counter--;\n\t}",
"@CallSuper\n public long decrementAndGet() {\n return addAndGet(-1);\n }",
"public static void increase(){\n c++;\n }",
"public void substract1() {\r\n value--;\r\n }",
"public int remove(int value)\n {\n amount=amount-value;\n return amount;\n }",
"private void increaseOneToQuantity() {\n String previousValueString = mQuantityEditText.getText().toString();\n int previousValue;\n if (previousValueString.isEmpty() || previousValueString.equals(\"0\")) {\n return;\n }\n else {\n previousValue = Integer.parseInt(previousValueString);\n mQuantityEditText.setText(String.valueOf(previousValue + 1));\n }\n }",
"public static void decreaseNumberOfClients()\n {\n --numberOfClients;\n }",
"void removeStock(int i);",
"public void descontarUnidad() {\r\n\t\tcantidad--;\r\n\t}",
"private void decrementGazingCount() {\n // TODO - You fill in here.\n mGazingThreads.decrementAndGet();\n }",
"public void decrease() {\n if(this.value>0){\n value--;\n }\n }",
"public void increase() {\r\n\r\n\t\tincrease(1);\r\n\r\n\t}",
"public void increaseQuantity() {\n this.quantity++;\n this.updateTotalPrice();\n }"
]
| [
"0.72077644",
"0.70689213",
"0.69222826",
"0.6917526",
"0.6889792",
"0.66497004",
"0.6598407",
"0.63814086",
"0.63208324",
"0.628817",
"0.6254791",
"0.62474555",
"0.6212521",
"0.61589545",
"0.61506873",
"0.6116589",
"0.6098711",
"0.6073969",
"0.60561925",
"0.60436106",
"0.6034125",
"0.6034125",
"0.6022333",
"0.6022333",
"0.60199666",
"0.6009627",
"0.5998858",
"0.5995164",
"0.59929836",
"0.59767056",
"0.5951158",
"0.5951158",
"0.5945951",
"0.59251416",
"0.59235066",
"0.5922572",
"0.59191066",
"0.5918255",
"0.5900684",
"0.58954656",
"0.5870366",
"0.5852049",
"0.5847812",
"0.5841522",
"0.58263195",
"0.58220917",
"0.58111715",
"0.58013976",
"0.5799634",
"0.5790999",
"0.57735026",
"0.5765795",
"0.57595795",
"0.5748086",
"0.5738223",
"0.5731874",
"0.57154304",
"0.5710762",
"0.57020915",
"0.5697699",
"0.5688023",
"0.56539875",
"0.56366843",
"0.5634511",
"0.561539",
"0.558779",
"0.5585922",
"0.5568079",
"0.556313",
"0.5555987",
"0.5538923",
"0.55387163",
"0.5534448",
"0.5525094",
"0.5524789",
"0.551792",
"0.55153733",
"0.54996896",
"0.5491537",
"0.5490075",
"0.54860526",
"0.5483566",
"0.54770327",
"0.5471908",
"0.54563475",
"0.54448956",
"0.5441574",
"0.54373246",
"0.5430505",
"0.5419548",
"0.5419322",
"0.5414014",
"0.54131866",
"0.54121953",
"0.5386189",
"0.53848827",
"0.5381182",
"0.53790396",
"0.5377845",
"0.5368553"
]
| 0.64776134 | 7 |
Do nothing because it cannot be destroy | @Override
public void destroy(){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void destroy() {\n\t\t// Do nothing\n\t}",
"public void destroy ()\n {\n // do nothing\n }",
"@Override\n public void destroy() {\n }",
"public void notDestroyable()\n\t{\n\t\tdestroyable = false;\n\t}",
"@Override\r\n\t\tpublic void destroy() {\n\t\t\t\r\n\t\t}",
"@Override\n public void destroy() {\n }",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}",
"@Override\r\n public void destroy() {\n }",
"@Override\r\n public void destroy() {\n }",
"@Override\r\n\tpublic void destroy()\r\n\t{\n\t\t\r\n\t}",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n }",
"public void destroy() {}",
"public void destroy() {}",
"public void destroy() {\n // NO OPERATION\n }",
"@Override\n public void destroy() {\n\n }",
"@Override\n public void destroy() {\n }",
"@Override\r\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n\tpublic void destroy() {\n\t\t\n\t}",
"@Override\n public void destroy() {\n }",
"@Override\n public void destroy() {\n\n }",
"@Override\n public void destroy() {\n\n }",
"@Override\n public void destroy() {\n\n }",
"public void destroy()\r\n\t{\r\n\t\tlog.fine(\"destroy\");\r\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}",
"@Override\n\tpublic void destroy() {\n\n\t}"
]
| [
"0.79803765",
"0.7670037",
"0.76459223",
"0.76409596",
"0.7632528",
"0.7605976",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7571392",
"0.7535817",
"0.7535817",
"0.75339514",
"0.7532716",
"0.7532716",
"0.7532716",
"0.7532716",
"0.7532716",
"0.750847",
"0.750847",
"0.74972147",
"0.74776447",
"0.747641",
"0.7475126",
"0.7468849",
"0.7468849",
"0.7468849",
"0.7468849",
"0.7468849",
"0.7468849",
"0.7468849",
"0.7468849",
"0.7468849",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7438579",
"0.7437341",
"0.7430581",
"0.7430581",
"0.7430581",
"0.7427523",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964",
"0.74266964"
]
| 0.74323374 | 66 |
Spring Data Jpa specialization of OperatorStatus repository | public interface SpringDataJpaOperatorStatusRepository extends OperatorStatusRepository, Repository<OperatorStatus, Integer> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Repository\npublic interface StatusRepository extends IRepository<Status, String> {\n\n}",
"@Repository\npublic interface ProviderRepository extends JpaRepository<Provider, Long> {\n long countByStatus(String status);\n}",
"@Repository\npublic interface EnumTypeRepository extends BaseRepository<EnumTypeBean,Long> {\n}",
"public interface ProductInfoRepository extends JpaRepository<ProductInfo,String>{\n\n List<ProductInfo> findByProductStatus(Integer status);\n\n}",
"public interface PointsRuleRepository extends BaseRepository<PointsRule, String> {\n\n PointsRule findByOrganizationIdAndStatus(String loginUserFirstOrganizationId, int code);\n}",
"public interface OrderRepository extends JpaRepository<Order, Long>{\r\n\t\r\n\t// We need a response containing only PEDDING products ordered from older to new\r\n\t//Using JPQL query (similar to SQL)\r\n\t// After \"FROM\" clause you need to use the class name\r\n\t// JOIN FETCH does a INNER JOIN\r\n\t// The enum type PENDDING corresponds to 0 \r\n\t@Query(\"SELECT DISTINCT obj FROM Order obj JOIN FETCH obj.products \" \r\n\t\t\t\t+ \" WHERE obj.status = 0 ORDER BY obj.moment ASC\" )\r\n\tList<Order> findOrdersWithProducts();\r\n}",
"public interface ReleaseRepository extends CrudRepository<Release, Long>, QueryDslPredicateExecutor {\n\n}",
"public interface BookStatusRepository extends JpaRepository<BookStatus, Integer> {\n Optional<BookStatus> findByBookStatusName(BookStatusName bookStatusName);\n}",
"@Repository \npublic interface MtStoreRepository extends BaseRepository<MtStore, Integer> {\n\n /**\n * 根据创建日期查找店铺列表\n *\n * @return\n */\n @Query(\"select t from MtStore t where t.status = 1 and t.createTime >= :beginTime and t.createTime<= :endTime\")\n List<MtStore> queryEffectiveStoreRange(@Param(\"beginTime\") Date beginTime, @Param(\"endTime\") Date endTime);\n\n /**\n * 根据名称查找店铺列表\n *\n * @return\n */\n @Query(\"select t from MtStore t where t.name = :storeName\")\n MtStore queryStoreByName(@Param(\"storeName\") String storeName);\n\n\n /**\n * 根据活动Id获取店铺信息列表\n *\n * @return\n */\n @Query(\"select t from MtStore t where t.status ='A' and t.id in (:ids) order by t.id desc\")\n List<MtStore> findStoresByIds(@Param(\"ids\") List<Integer> ids);\n\n\n /**\n * 根据更新状态\n *\n * @return\n */\n @Transactional\n @Modifying\n @Query(value = \"update MtStore p set p.status =:statusenum where p.id in (:ids)\")\n int updateStatus(@Param(\"ids\") List<Integer> ids, @Param(\"statusenum\") String statusenum);\n}",
"public interface ProductInfoRepository extends JpaRepository<ProductInfo, String> {\n /**\n * 通过商品状态来查询商品信息\n */\n List<ProductInfo> findByProductStatusIn(Integer productStatus);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface MMatchEnvironmentRepository extends JpaRepository<MMatchEnvironment, Long>, JpaSpecificationExecutor<MMatchEnvironment> {\n\n}",
"public interface LossRepository extends JpaRepository<Loss,Long> {\n\n}",
"@Repository\npublic interface OrderRepository extends JpaRepository<Order, Long> {\n\n\tpublic List<Order> findByStatus(String status);\n\t\n\tpublic Optional<Order> findByBuyerIdAndPaidStatus(Long buyerId, String paidStatus);\n\n\tpublic Boolean existsByBuyerIdAndPaidStatus(Long buyerId, String paidStatus);\n\n\tpublic Optional<Order> findByIdAndStatus(Long id, String status);\n\t\n}",
"public interface ProjectRepository extends BasePagingAndSortingRepository<ProjectEntity, Long> {\n\n boolean changeStatus(ProjectEntity project, StatusEnum newStatus);\n\n List<ProjectEntity> findByOwner(String client);\n\n List<ProjectEntity> findForUser(String client);\n\n List<ProjectEntity> findForMember(Long memberId, String client);\n\n\n}",
"public interface TypeRepositoryCustom extends JpaRepository<Type, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface NonConformanceTypeRepository extends JpaRepository<NonConformanceType, Long> {\n\n}",
"public interface ActionRepository extends JpaRepository<Action, Integer> {\n\n}",
"@Repository\npublic interface OrderRepository extends CrudRepository<Order, Long> {\n\n Order findByOrderCode(Long orderCode);\n List<Order> findByStatus(OrderRequestStatus status);\n\t\n}",
"@Repository\npublic interface QualityParameterRepository extends JpaRepository<QualityParameter, Integer> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface MatchRelationRepository extends JpaRepository<MatchRelation, Long> {\n}",
"public interface OrderConceptRepository<O extends OrderConcept> extends JpaRepository<O, Long> {\n}",
"@SuppressWarnings(\"unused\")\npublic interface EventTypeRepository extends JpaRepository<EventType,Long> {\n\n}",
"@Repository\npublic interface InspectionOptionRepository extends JpaRepository<InspectionOption, Integer> {\n\n}",
"public interface AggregateCurrentTimeRepository extends CrudRepository<AggregateEntityCurrentTime, Long> {\n}",
"public interface RoomBanningRepository extends JpaRepository<RoomBanning, Long> {\n}",
"public interface PollVisibilityRepository extends JpaRepository<TbPollVisibility, Long> {\n List<TbPollVisibility> findByPoll_Node_Id(Long pollNodeId);\n\n @Query(\"SELECT COUNT(1) FROM TbPollVisibility t WHERE t.poll.id = ?1 AND t.user.id = ?2\")\n long countByPollIdAndUserId(Long pollId, Long userId);\n\n @Query(\"SELECT COUNT(1) FROM TbPollVisibility t WHERE t.poll.id = ?1\")\n long countByPollId(Long pollId);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface TipoEventoRepository extends JpaRepository<TipoEvento, Long>, JpaSpecificationExecutor<TipoEvento> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface OrdOrderItemRepository extends JpaRepository<OrdOrderItem, Long>, JpaSpecificationExecutor<OrdOrderItem> {}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface BonusPriceRepository extends JpaRepository<BonusPrice, Long> {\n\n Optional<BonusPrice> findByActive(boolean b);\n}",
"public interface TaskRepository extends CrudRepository<Tasks,Long> {\n @Query(\"select t from Tasks t where t.status=:status\")\n List<Tasks> getTasksforStatus(@Param(\"status\") Status status);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ClassDurationRepository extends JpaRepository<ClassDuration, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventTimesRepository extends JpaRepository<EventTimes, Long>, JpaSpecificationExecutor<EventTimes> {\n}",
"public interface DlContTypeSetRepository extends JpaRepository<DlContTypeSet,Long> {\n\n @Query(\"select dlContTypeSet from DlContTypeSet dlContTypeSet where dlContTypeSet.name = :name\")\n Optional<DlContTypeSet> findOneByName(@Param(\"name\") String name);\n\n @Query(\"select dlContTypeSet from DlContTypeSet dlContTypeSet where dlContTypeSet.code = :code\")\n Optional<DlContTypeSet> findOneByCode(@Param(\"code\") String code);\n\n @Query(\"select dlContTypeSet from DlContTypeSet dlContTypeSet where dlContTypeSet.pStatus = 1 \")\n Page<DlContTypeSet> activecontenttypes(org.springframework.data.domain.Pageable pageable);\n\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DisabilityTypeRepository extends JpaRepository<DisabilityType, Long>, JpaSpecificationExecutor<DisabilityType> {\n}",
"public interface RoleRepository extends BaseRepository<Role, Integer> {\r\n\t\r\n\t@Query(value = \"select * from role where id in (select role_id from user_role where user_id = :userId)\", nativeQuery = true)\r\n\tList<Role> findByUserId(@Param(\"userId\") Integer userId);\r\n\t\r\n\t@Modifying\r\n\t@Query(value = \"update role set locked = :locked where id = :id\", nativeQuery=true)\r\n\tint updateLocked(@Param(\"id\") Integer id, @Param(\"locked\") Boolean locked);\r\n\r\n\tlong countByCode(String name);\r\n\t\r\n\tlong countByName(String name);\r\n}",
"@Repository\npublic interface ClientTypeRepository extends JpaRepository<ClientType, Integer> {\n\n}",
"public interface AssignmentRepository extends JpaRepository<Assignment, Integer>, JpaSpecificationExecutor<Assignment> {\n}",
"public interface TbPromotionRepository extends PagingAndSortingRepository<TbPromotion, Long>, JpaSpecificationExecutor<TbPromotion> {\n TbPromotion findByPoCoup(@Param(\"poCoup\") String poCoup);\n}",
"@Repository\npublic interface StudentRepository extends JpaRepository<Student, Integer>\n , QueryDslPredicateExecutor<Student>{\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface LocationExtensionRepository extends JpaRepository<Location, Long> {\n\n Location findByEventId(Long id);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface PmCorMeasureStatesRepository extends JpaRepository<PmCorMeasureStates, Long> {\n PmCorMeasureStates findByCode(String code);\n\n}",
"public interface JpSkillLevelRepository extends JpaRepository<JpSkillLevel,Long> {\n\n @Query(\"SELECT jpSkillLevel from JpSkillLevel jpSkillLevel where lower(jpSkillLevel.name) = :name\")\n JpSkillLevel findOneByName(@Param(\"name\") String name);\n\n @Query(\"SELECT jpSkillLevel from JpSkillLevel jpSkillLevel where jpSkillLevel.status = :status\")\n Page<JpSkillLevel> findAllActive(Pageable pageable, @Param(\"status\") Boolean status);\n}",
"public interface ResourceReposity extends CustomRepository<Resource, Long> {\n\n Optional<Resource> findByNameAndValidFlag(String name, ValidFlag validFlag);\n\n}",
"public interface ApplianceRepository extends JpaRepository<Appliance, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\n@JaversSpringDataAuditable\npublic interface ReservoirCapacityRepository extends JpaRepository<ReservoirCapacity, Long> {\n\n}",
"public interface ISingleMenuRepository extends JpaRepository<SingleMenu, Long>, JpaSpecificationExecutor<SingleMenu> {\n}",
"public interface RimWideRepository extends JpaRepository<RimWide, Long> {\n}",
"public interface MenuGroupRepository extends JpaRepository<MenuGroup,String>\n , QuerydslPredicateExecutor<MenuGroup> {\n}",
"@Repository\npublic interface UserRolesRepository extends JpaRepository<UserRoles, Integer>, JpaSpecificationExecutor<UserRoles>, QuerydslPredicateExecutor<UserRoles> {\n\n}",
"public interface IModeratorProposalRepository extends JpaRepository<ModeratorProposal, Integer> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface BookingtimeRepository extends JpaRepository<Bookingtime, Long>, JpaSpecificationExecutor<Bookingtime> {}",
"public interface MediaTypeRepository extends JpaRepository<MediaType, Long> {\n}",
"public interface AuditRepository extends PagingAndSortingRepository<Audit, Long>, JpaSpecificationExecutor<Audit> {\n}",
"@Repository\npublic interface StateRepository extends JpaRepository<State, Long> {\n\n Optional<State> findByName(String name);\n\n Optional<State> findByNameContaining(String name);\n\n}",
"@Persistent\npublic interface WarehouseOperatorDao extends CommonRepository<WarehouseOperatorEntity, String> {\n\n @Query(\"from WarehouseOperatorEntity wo where wo.creatorName=:name\")\n WarehouseOperatorEntity findByCreatorName(@Param(\"name\") String name);\n\n @Query(\"from WarehouseOperatorEntity wo where wo.warehouseId=:id\")\n WarehouseOperatorEntity findByOperatorId(@Param(\"id\") int id);\n\n @Query(\"select new map(w.id as id,w.name as name) from WarehouseEntity w , WarehouseOperatorEntity wo \" +\n \"where w.id=wo.warehouseId and wo.operatorId=:id\")\n List<Map<String,Object>> findWarehouseByUserId(@Param(\"id\") int id);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ShipmentActivityRepository extends JpaRepository<ShipmentActivity, Long> {}",
"@Repository\npublic interface ClClassificationSchemeConRepository extends AXBootJPAQueryDSLRepository<ClClassificationSchemeCon, ClClassificationSchemeCon.ClClassificationSchemeId>\n{\n\n}",
"@Repository\npublic interface SuiteRepository extends JpaRepository<SuiteRoom, Integer> {\n}",
"public interface PersonRepository extends JpaRepository<Person, Long>, PersonRepositoryQuery {\n}",
"public interface SystemDefaultPropertyRepository extends DomainRepository<SystemDefaultProperty>{\n\n SystemDefaultProperty findByActive(boolean active);\n}",
"@Repository\npublic interface LocationRepository extends JpaRepository<Location, Long> {\n}",
"@Repository\npublic interface UserRepository extends JpaRepository<User, Long> {\n\n User findByMobileNumber(String mobileNumber);\n User findByMobileNumberAndActiveIsTrue(String mobileNumber);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface PartnerTypeRepository extends JpaRepository<PartnerType, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ModeEvacuationEauUseeRepository\n extends JpaRepository<ModeEvacuationEauUsee, Long>, JpaSpecificationExecutor<ModeEvacuationEauUsee> {}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface BalanceCalculationRepository extends JpaRepository<BalanceCalculation, Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface FestivalAllowancePaymentDtlRepository extends JpaRepository<FestivalAllowancePaymentDtl, Long>, JpaSpecificationExecutor<FestivalAllowancePaymentDtl> {\n}",
"public interface UMergeLogRepository extends JpaRepository<UMergeLog,Integer> {\n}",
"@Repository\npublic interface RoomRepository extends JpaRepository<Room, Long> {\n\n\n}",
"public interface ManualRepository extends BaseRepository<ManualBo, Long>, ManualRepositoryCustom{\n}",
"public interface YaOrderRepository extends JpaRepository<YaOrder,Long> {\n\n}",
"public interface OrderDetailRepository extends JpaRepository<OrderDetail, String> {\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface HrmsActionDisciplinaryRepository extends JpaRepository<HrmsActionDisciplinary, Long> {\n\n}",
"public interface TypeQuestionRepository extends JpaRepository<TypeQuestion, Integer> {\n\n}",
"public interface QQConfigRepository extends JpaRepository<QQConfig, Integer>, JpaSpecificationExecutor {\n QQConfig findByConfigName(String enabled_robot);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface EventLanguageRepository extends JpaRepository<EventLanguage, Long> {\n\t\n}",
"public interface RunnerRepository extends JpaRepository<Runner,Long> {\n}",
"public interface IssueCategoryRepository extends JpaRepository<IssueCategory,Long> {\n}",
"@NoRepositoryBean\r\npublic interface BaseRepository<T,ID extends Serializable> extends PagingAndSortingRepository<T,ID> {\r\n\r\n List<T> findByActiveIsTrueOrderByNameAsc();\r\n}",
"public interface CustomerAuditRepository extends JpaRepository<CustomerAudit, Long>{\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface SuspendedusersRepository extends JpaRepository<Suspendedusers, Long> {\n\n}",
"public interface GoalRepository extends JpaRepository<Goal,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface MWeeklyQuestStageRewardRepository extends JpaRepository<MWeeklyQuestStageReward, Long>, JpaSpecificationExecutor<MWeeklyQuestStageReward> {\n\n}",
"public interface NotificationRepository extends CrudRepository<Notification,String>, NotificationRepositoryAddon {\r\n\r\n Notification findByPublisherIdAndPublisherNotificationId (String publisherId, String publisherNotificationId);\r\n \r\n List<Notification> findByPublisherId (String publisherId);\r\n\r\n List<Notification> findByPublisherIdAndTopic (String publisherId, String topic);\r\n \r\n List<Notification> findDeletableNotification(Date date);\r\n\r\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface DsColumnTypesRepository extends JpaRepository<DsColumnTypes, Long>, JpaSpecificationExecutor<DsColumnTypes> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface ApplicantPersonalInfoRepository extends JpaRepository<ApplicantPersonalInfo, Long>, JpaSpecificationExecutor<ApplicantPersonalInfo> {\n}",
"public interface SurveyTemplateRepository extends MongoRepository<SurveyTemplateEntity, String>, SurveyTemplateRepositoryCustom {\n\n /**\n * Method returns all non-deleted(active) surveys.\n *\n * @return all non-deleted(active) surveys.\n */\n public List<SurveyTemplateEntity> findByActiveIsTrue();\n\n /**\n * Find surveys that match with given arguments/properties.\n *\n * @param active is survey active or not.\n * @param unitId survey in the given unit with this id\n * @return list of surveys, never return null.\n */\n @Query(value = \"{ 'active': ?0, 'unit.id' : ?1 }\")\n public List<SurveyTemplateEntity> findByActiveAndUnitId(Boolean active, String unitId);\n\n}",
"public interface RequestInfoRepository extends JpaRepository<RequestInfo, Integer> {\n}",
"public interface RoomBookRepository extends Repository<RoomBookPo, Integer> {\n\n void save(RoomBookPo roomBookPo);\n\n RoomBookPo getById(Integer id);\n\n List<RoomBookPo> findByConsumerAndStatus(Integer consumer, Boolean status);\n\n List<RoomBookPo> findByConsumer(Integer consumer);\n\n @Modifying\n @Query(\"UPDATE RoomBookPo rb SET rb.status = true, rb.settlementPrice = ?1, rb.status = true WHERE rb.id = ?2\")\n void updateSettlementPrice(BigDecimal settlementPrice, Integer id);\n\n}",
"public interface StockFamilyRepository extends JpaRepository<StockFamily,Long> {\n\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface CarerClientRelationRepository extends JpaRepository<CarerClientRelation, Long>, JpaSpecificationExecutor<CarerClientRelation> {\n}",
"public interface SizeCostTypeRepository extends Repository<SizeCostType, Long> {\n}",
"public interface RemoteConnectionsDao extends JpaRepository<RemoteConnectionsDomain, Long> {\n\n List<RemoteConnectionsDomain> findAllByDeletedFalseAndTryCountIsLessThanEqual(Integer tryCount);\n}",
"@SuppressWarnings(\"unused\")\n@Repository\npublic interface QmsSupplierClassRepository extends JpaRepository<QmsSupplierClass, Long>,JpaSpecificationExecutor<QmsSupplierClass> {\n List<QmsSupplierClass> findByIdAndFlagStatus(Long id,String flag);\n List<QmsSupplierClass> findBySuppkierClass(String s);\n}",
"public interface RoomRepository extends JpaRepository<Room, Long> {\n}",
"@Repository\npublic interface PingRepository extends CrudRepository<PingEntity, Long> {\n\t//\n}",
"public interface LabelRepository extends JpaRepository<Label, String> {\n}",
"@Transactional(readOnly = true)\npublic interface OrderRepository extends CrudRepository<Order, Long>, JpaSpecificationExecutor {\n List<Order> findByStatus(Status status);\n\n @Query(\n \"SELECT sum(o.cost) FROM Order o WHERE o.orderSource = :os\"\n )\n public BigDecimal fullCostFromOrderSource(@Param(value = \"os\") OrderSource orderSource);\n\n @Query(\n \"SELECT sum(o.cost) FROM Order o WHERE o.orderSource = :os AND o.sourceUTM = :utm\"\n )\n public BigDecimal fullCostFromOrderSourceAndSourceUTM(\n @Param(value = \"os\") OrderSource orderSource,\n @Param(value = \"utm\") SourceUTM sourceUTM\n );\n\n @Query(\n \"SELECT sum(o.price) FROM Order o WHERE o.orderSource = :os AND o.client is not null\"\n )\n public BigDecimal fullPriceFromOrderSourceHasClient(\n @Param(value = \"os\") OrderSource orderSource\n );\n\n @Query(\n \"SELECT sum(o.price) FROM Order o WHERE \" +\n \"o.orderSource = :os AND \" +\n \"o.sourceUTM = :utm AND \" +\n \"o.client is not null\"\n )\n public BigDecimal fullPriceFromOrderSourceAndSourceUTMHasClient(\n @Param(value = \"os\") OrderSource orderSource,\n @Param(value = \"utm\") SourceUTM sourceUTM\n );\n}",
"@SuppressWarnings(\"unused\")\npublic interface TaskRepository extends JpaRepository<Task,Long>, QueryDslPredicateExecutor<Task> {\n\n Task findByName(String name);\n}",
"interface NetworkRepository extends JpaRepository<Network, Long> {\n\n}",
"public interface FavoriteJourneyRepository extends JpaRepository<FavoriteJourney,Long> {\n}"
]
| [
"0.6978497",
"0.69029784",
"0.6886267",
"0.6789563",
"0.6735895",
"0.6725979",
"0.6664233",
"0.66611344",
"0.6609276",
"0.6581394",
"0.6579466",
"0.6560007",
"0.6545457",
"0.6530392",
"0.6501481",
"0.64990354",
"0.6491114",
"0.6481964",
"0.6473596",
"0.64692736",
"0.6456872",
"0.64540005",
"0.6441576",
"0.6434668",
"0.64290875",
"0.64117867",
"0.6409224",
"0.640766",
"0.64022857",
"0.6388856",
"0.6375202",
"0.6361723",
"0.63469255",
"0.63454676",
"0.6342537",
"0.63394165",
"0.63373184",
"0.63322335",
"0.6331531",
"0.63192075",
"0.631876",
"0.6315047",
"0.631074",
"0.6305345",
"0.6303485",
"0.6302981",
"0.6301651",
"0.63010925",
"0.629726",
"0.62915194",
"0.62875247",
"0.62866837",
"0.62838924",
"0.6280243",
"0.627931",
"0.62722003",
"0.62698865",
"0.6269316",
"0.62629116",
"0.62609196",
"0.62547415",
"0.62521577",
"0.6250769",
"0.62469393",
"0.6245442",
"0.6244114",
"0.62436223",
"0.6241242",
"0.62393147",
"0.62351227",
"0.6235098",
"0.62261945",
"0.6225088",
"0.62218934",
"0.6216196",
"0.62142825",
"0.62136525",
"0.621264",
"0.6212381",
"0.62085974",
"0.6205735",
"0.62035304",
"0.6197443",
"0.619735",
"0.6197086",
"0.61896753",
"0.61868864",
"0.6184439",
"0.6184201",
"0.61800164",
"0.6179907",
"0.6179475",
"0.6178383",
"0.6174538",
"0.6173824",
"0.61711115",
"0.61640036",
"0.61581284",
"0.61550444",
"0.61525863"
]
| 0.8142968 | 0 |
Renders user position on the map | public Bitmap renderMapWithUserPosition(Bitmap map, Point userPosition) {
final Bitmap bitmap = map.copy(Bitmap.Config.ARGB_8888, true);
final Canvas canvas = new Canvas(bitmap);
canvas.drawOval(getUserPositionOval(userPosition), userPositionPaint);
return bitmap;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateUserPosition()\n {\n LatLng current = new LatLng(mCurrentLocation.getLatitude(), mCurrentLocation.getLongitude());\n circle.setCenter(current);\n Log.i(\"ZOOM:\", \" \" + mMap.getCameraPosition().zoom);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(current));//move map to the user's position\n updateMap();\n }",
"public void draw(WorldLocation coord){\n \n }",
"private void drawUserMarker(Location location) {\n LatLng current_position = new LatLng(location.getLatitude(), location.getLongitude());\n if(mUserMarker == null) {\n mUserMarker = mMap.addMarker(\n new MarkerOptions()\n .position(current_position)\n .snippet(\"Lat:\" + location.getLatitude() + \" Lng:\" + location.getLongitude())\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE))\n .title(\"My Position\")\n );\n }\n else {\n mUserMarker.setPosition(current_position);\n mUserMarker.setSnippet(\"Lat:\" + location.getLatitude() + \" Lng:\" + location.getLongitude());\n }\n }",
"@Override\n public void onLocationChanged(Location location) {\n drawUserMarker(location);\n }",
"@Override\n public void onLocationChange(Location loc) {\n user.setRelativePosition(loc.getX(), loc.getY());\n map.addStep(new PointF(loc.getX(), loc.getY()));\n //messageHandler.sendEmptyMessage(MESSAGE_REFRESH);\n }",
"private void render(Vec3d playerPos) {\n GlStateManager.pushMatrix();\n GlStateManager.translated(- playerPos.getX(), - playerPos.getY(), - playerPos.getZ());//The render starts at the player, so we subtract the player coords and move the render to 0,0,0\n GlStateManager.callList(callList);\n GlStateManager.popMatrix();\n }",
"private void displayWorldCoordinates() {\n int n = trackerPanel == null ? 0 : trackerPanel.getFrameNumber();\n OffsetOriginStep step = (OffsetOriginStep) getStep(n);\n if (step == null) {\n xField.setText(null);\n yField.setText(null);\n } else {\n xField.setValue(step.worldX);\n yField.setValue(step.worldY);\n }\n }",
"private void updatePosition(){\n updateXPosition(true);\n updateYPosition(true);\n }",
"private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }",
"@Override\r\n\tpublic void onLocationChange(Location loc) {\n\t\tuser.setRelativePosition(loc.getX(), loc.getY());\r\n\t\tmap.addStep(new PointF(loc.getX(),loc.getY()));\r\n\t\tmessageHandler.sendEmptyMessage(MESSAGE_REFRESH);\r\n\t}",
"public void displayCoordsInDegrees() {\n DecimalFormat formatter = new DecimalFormat(\"0.000\");\n\n String latFormat = formatter.format(posMarker.getPosition().latitude);\n String lonFormat = formatter.format(posMarker.getPosition().longitude);\n\n TextView latitude = (TextView) findViewById(R.id.image_latitude);\n TextView longitude = (TextView) findViewById(R.id.image_longitude);\n\n latitude.setText(latFormat); //Use posMarker location as field actually reflects marker position\n longitude.setText(lonFormat); //Use posMarker location as field actually reflects marker position\n }",
"@Override\n\tpublic void updatePosition() {\n\t\t\n\t}",
"public void setMapPosition() {\n\t\txmap = levelState.getx();\n\t\tymap = levelState.gety();\n\t}",
"private void render() {\n\t\ttheMap.draw(g);\n\t\ttheTrainer.draw(g);\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 }",
"public void displayMyCoords(TextView txtCoord, MarkerOptions markerOptions, DecimalFormat formater, double myLatitude, double myLongitude) {\n txtCoord.setText(\"Your Coordinates: \" + formater.format(myLatitude) + \"° N\" + \", \" + formater.format(myLongitude) + \"° W\");\n LatLng userCoords = new LatLng(myLatitude, myLongitude);\n gMap.addMarker(new MarkerOptions()\n .position(userCoords)\n .title(\"Your Coordinates: \" + formater.format(myLatitude) + \"° N\" + \", \" + formater.format(myLongitude) + \"° W\"));\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(userCoords, 15));\n }",
"public void getCoord(MouseEvent me){\n if(mapImage.getImage()!=null) {\n double xPos = me.getX();\n double yPos = me.getY();\n Main.ps.setTitle(xPos + \" \" + yPos);\n }\n }",
"private void updatePopupPosition() {\n // get the annotation's screen coordinates\n SKScreenPoint screenPoint = mapView.coordinateToPoint(selectedAnnotation.getLocation());\n // change the popup's (screen) position\n mapPopup.changePosition(screenPoint.getX(), screenPoint.getY(), 65);\n }",
"@Override\n\tpublic Point getLocation() {\n\t\treturn position;\n\t}",
"private void drawMembersLocation () {\n // Ve tat ca cac vi tri thanh vien tren ban do\n ArrayList<TourMember> tourMembers = OnlineManager.getInstance().mTourList.get(tourOrder).getmTourMember();\n for (int i = 0; i < tourMembers.size(); i++) {\n TourMember tourMember = tourMembers.get(i);\n // Neu khong co vi tri thi khong ve\n if (tourMember.getmLocation() == null) {\n break;\n }\n // Thay doi mau vi tri thanh vien\n MapMemberPositionLayoutBinding memberLocationLayoutBinding = DataBindingUtil.inflate(getLayoutInflater(), R.layout.map_member_position_layout, null, false);\n // Thay doi trang thai markup\n // Kiem tra xem vai tro cua thanh vien trong tour\n int function = tourMember.getmFunction();\n // Kiem tra xem tour da dien ra chua\n if (function == 1) {\n // Truong doan, thay doi mau sac markup thanh do\n memberLocationLayoutBinding.memberLocationImage.setColorFilter(Color.RED, PorterDuff.Mode.SRC_ATOP);\n } else {\n // Cac thanh vien con lai, thay doi mau sac markup thanh xanh\n memberLocationLayoutBinding.memberLocationImage.setColorFilter(Color.BLUE, PorterDuff.Mode.SRC_ATOP);\n }\n // Marker google map\n View markerView = memberLocationLayoutBinding.getRoot();\n // Khoi tao marker\n MarkerOptions markerOptions = new MarkerOptions()\n .draggable(false)\n .title(tourMember.getUserInfo().getFullName())\n .position(tourMember.getmLocation())\n .icon(BitmapDescriptorFactory.fromBitmap(getMemberLocationBitmapFromView(markerView)));\n if (tourMember.getmFunction() == 0) {\n // Thanh vien\n markerOptions.snippet(getString(R.string.tour_function_member));\n } else if (tourMember.getmFunction() == 1) {\n // Truong doan\n markerOptions.snippet(getString(R.string.tour_function_leader));\n } else if (tourMember.getmFunction() == 2) {\n // Pho doan\n markerOptions.snippet(getString(R.string.tour_function_vice_leader));\n } else {\n // Phu huynh\n markerOptions.snippet(getString(R.string.tour_function_parent));\n }\n mMap.addMarker(markerOptions);\n\n // Goi su kien khi nhan vao tieu de thanh vien\n mMap.setOnInfoWindowClickListener(new GoogleMap.OnInfoWindowClickListener() {\n @Override\n public void onInfoWindowClick(Marker marker) {\n // TODO: Chuyen sang man hinh nhan tin khi nhan vao tieu de thanh vien\n return;\n// openTimesheetInfo(marker.getTitle());\n }\n });\n }\n }",
"public void focusMapOnUser()\n {\n if(mapFragment==null)\n {\n mapFragment = (SupportMapFragment)(getChildFragmentManager().findFragmentById(R.id.map));\n }\n map = mapFragment.getMap();\n\n\n MapsInitializer.initialize(getActivity());\n\n\n map.setMyLocationEnabled(true);\n LocationManager locationManager = (LocationManager)getActivity().getSystemService(Context.LOCATION_SERVICE);\n Criteria criteria = new Criteria();\n mlocation = locationManager.getLastKnownLocation(locationManager.getBestProvider(criteria, false));\n\n\n\n //set the location of the user\n\n if(mlocation != null)\n {\n //move the camera to the users location with a suitable zoom level\n map.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(mlocation.getLatitude(), mlocation.getLongitude()),13));\n CameraPosition cameraPosition = new CameraPosition.Builder().target(new LatLng(mlocation.getLatitude(), mlocation.getLongitude())).zoom(15).bearing(0).tilt(0).build();\n map.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n }\n\n }",
"public Point getPos(){\n return new Point(getUserFriendlyXPos(),getUserFriendlyYPos());\n }",
"public void updateLocation()\r\n {\r\n\t\timg.setUserCoordinator(latitude, longitude);\r\n\t\timg.invalidate();\r\n\t}",
"public void setUserLocation(double lat, double lon) {\n\tuserLocation = new Point2D.Double(lon,lat);\n }",
"void setPosition(Unit unit, MapLocation position);",
"public void draw(Point location) {\n\t}",
"void setPosition(double xPos, double yPos);",
"public void update() {\n\t\tgetLocation().offsetX(getDirection().getXOffset());\n\t\tgetLocation().offsetY(getDirection().getYOffset());\n\t\t\n\t\tChunk center = World.getMap().getCenterChunk();\n\t\t\n\t\tint localX = (int) (getLocation().getX() - center.getData().getRealX());\n\t\tint localY = (int) (getLocation().getY() - center.getData().getRealY());\n\t\t\n\t\tif(localX < 0 ||localY< 0\n\t\t\t|| localX > 256 || localY > 256) {\n\t\t\t\tWorld.getMap().load(getLocation());\n\t\t}\n\t}",
"public void addPositionCell(int user, String position){\n int posXY[] = {Character.getNumericValue(position.charAt(0)), Character.getNumericValue(position.charAt(2))};\n if(user==1){\n gameBoard[posXY[0]][posXY[1]] = \"O\";\n }\n else{\n gameBoard[posXY[0]][posXY[1]] = \"X\";\n }\n }",
"protected void update(){\n\t\t_offx = _x.valueToPosition(0);\n\t\t_offy = _y.valueToPosition(0);\n\t}",
"public void Render(){\n //player rect\n glPushMatrix();\n glTranslatef(px, py, 0.0f);\n glBegin(GL_TRIANGLES);\n glColor3f(1.0f, 1.0f, 1.0f);\n glVertex2f(-sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, sy);\n glVertex2f(sx, sy);\n glVertex2f(-sx, -sy);\n glVertex2f(sx, -sy);\n glEnd();\n glPopMatrix();\n \n if(debug){\n glPushMatrix();\n glBegin(GL_LINES);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py+sy/2);\n glVertex2f(px+sx, py+sy/2);\n glColor3f(0f, 1f, 0f);\n glVertex2f(px-sx, py-sy/2);\n glVertex2f(px+sx, py-sy/2);\n glEnd();\n glPopMatrix();\n }\n \n }",
"public void centerUserLocation(){\n ImageButton userLocation = (ImageButton) findViewById(R.id.userLocation);\n LatLng latLngUser = new LatLng(mapboxMap.getLocationComponent().getLastKnownLocation().getLatitude(),\n mapboxMap.getLocationComponent().getLastKnownLocation().getLongitude());\n\n userLocation.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n CameraPosition position = new CameraPosition.Builder()\n .target(latLngUser)\n .zoom(18)\n .tilt(0) // inclinaison de la camera max:60\n .build();\n\n mapboxMap.animateCamera(CameraUpdateFactory.newCameraPosition(position), 500);\n }\n });\n\n }",
"public void displayMap() {\n MapMenuView mapMenu = new MapMenuView();\r\n mapMenu.display();\r\n \r\n }",
"public void renderMap(GameMap gameMap, Player player)\n\t{\n\t\tthis.drawMapGlyphs(gameMap, player);\n\t\t// this.getGlyphs(gameMap, player);\n\t\t// for(Text text : this.getGlyphs(gameMap))\n\t\t// window.getRenderWindow().draw(text);\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n DecimalFormat formater = new DecimalFormat(\"#.####\");\n gMap = googleMap;\n LatLng userCoords = new LatLng(myLatitude, myLongitude);\n gMap.addMarker(new MarkerOptions()\n .position(userCoords)\n .title(\"Your Coordinates: \" + formater.format(myLatitude) + \"° N\" + \", \" + formater.format(myLongitude) + \"° W\"));\n gMap.animateCamera(CameraUpdateFactory.newLatLngZoom(userCoords, 15));\n }",
"public void updateLocation();",
"public void setPosition(Point position);",
"@Override\n public void onMouseClicked(MapMouseEvent ev) {\n \tint respuesta= JOptionPane.showConfirmDialog(null, \"¿Desea guardar este punto?\", \"Confirmar\",JOptionPane.YES_NO_OPTION);\n \tif(respuesta==0) {\n \t\tString texto=JOptionPane.showInputDialog(null, \"Nombre del lugar\");\n \t\tDirectPosition2D p = ev.getWorldPos();\n System.out.println(p.getX() + \" -- \" + p.getY());\n drawMyPoint(p.getX(), p.getY(), map, texto);\n \t}\n \telse{\n \t\tSystem.out.println(\"Punto no guardado\");\n \t}\n \n }",
"public void render(Renderer screen) {\t\r\n\t\tsprite = chosenSprite.getSprite();\r\n\t\tscreen.renderEntity(x-16, y-16, this); //-16 centres player as it is a 32x32 sprite\r\n\t\tfont.render(this.getUsername(), this.getX() - (this.getUsername().length()*8/2), this.getY() - 25, true, 0xffffffff, screen, false);\r\n\t}",
"public void updatePosition() {\n\n this.x = this.temp_x;\n this.y = this.temp_y;\n this.ax = 0;\n this.ay = 0;\n\t\tthis.axplusone = 0;\n this.ayplusone = 0;\n \n }",
"PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }",
"public static void map(int location)\n\t{\n\t\tswitch(location)\n\t\t{\t\n\t\t\tcase 1:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # X # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * X # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # X # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # X # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 5:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * X # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 6:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # X # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 7:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # X * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 8:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * X # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 9:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # X * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 10:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * X # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 11:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # X # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 12:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # X # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\");\n\t\t}//end switch(location)\n\t\t\n\t}",
"private void viewMap() {\r\n \r\n // Get the current game \r\n theGame = cityofaaron.CityOfAaron.getTheGame();\r\n \r\n // Get the map \r\n Map map = theGame.getMap();\r\n Location locations = null;\r\n \r\n // Print the map's title\r\n System.out.println(\"\\n*** Map: CITY OF AARON and Surrounding Area ***\\n\");\r\n // Print the column numbers \r\n System.out.println(\" 1 2 3 4 5\");\r\n // for every row:\r\n for (int i = 0; i < max; i++){\r\n // Print a row divider\r\n System.out.println(\" -------------------------------\");\r\n // Print the row number\r\n System.out.print((i + 1) + \" \");\r\n // for every column:\r\n for(int j = 0; j<max; j++){\r\n // Print a column divider\r\n System.out.print(\"|\");\r\n // Get the symbols and locations(row, column) for the map\r\n locations = map.getLocation(i, j);\r\n System.out.print(\" \" + locations.getSymbol() + \" \");\r\n }\r\n // Print the ending column divider\r\n System.out.println(\"|\");\r\n }\r\n // Print the ending row divider\r\n System.out.println(\" -------------------------------\\n\");\r\n \r\n // Print a key for the map\r\n System.out.println(\"Key:\\n\" + \"|=| - Temple\\n\" + \"~~~ - River\\n\" \r\n + \"!!! - Farmland\\n\" + \"^^^ - Mountains\\n\" + \"[*] - Playground\\n\" \r\n + \"$$$ - Capital \" + \"City of Aaron\\n\" + \"### - Chief Judge/Courthouse\\n\" \r\n + \"YYY - Forest\\n\" + \"TTT - Toolshed\\n\" +\"xxx - Pasture with \"\r\n + \"Animals\\n\" + \"+++ - Storehouse\\n\" +\">>> - Undeveloped Land\\n\");\r\n }",
"@Override\n public String toString() {\n return String.format(\"position X is='%s' ,position Y is='%s'\" , positionX , positionY);\n }",
"private void position(){\n\t\tpositionX=x;//coordonnees(dans la minimap) de la case ou on a clicke ou la fourmiliere(au debut).\n\t\tpositionY=y;\n\t\tboolean posX=false,posY=false;//Ces boolean me servent a savoir s'il a eu des changements sur les coordonnees.\n\t\tif(positionY-zoom/2<=0 ){//si ordonnee negative,ca veut dire qu'on est sorti de la minimap.\n\t\t\tpositionY=0;//pour pas etre hors du tableau on met l'ordonnee a 0\n\t\t\tposY=true;//et on indique qu'on a change les ordonnees.\n\t\t\t\t}\n\t\tif(positionX-zoom/2<=0){//si abscisse negative\n\t\t\tpositionX=0;\n\t\t\tposX=true;//on indique qu'on a change les abscisses.\n\t\t}\n\t\tif(positionY+zoom>=(finY-debutY)+1){//si ordonnee plus grand que la taille de la minimap.\n\t\t\tpositionY=heightCase*(finY-debutY)-zoom*heightCase;//on met donc ordonnees a la fin de la minimap (heightCase*(finY-debutY)) et on enleve la place(px) prise par le zoom. \n\t\t\tposY=true;//et on indique qu'on a change les ordonnees.\n\t\t}\n\t\tif(positionX+zoom>=(finX-debutX)+1){//si abscisse plus grand que la taille de la minimap.\n\t\t\tpositionX=widthCase*(finX-debutX)-zoom*widthCase;\n\t\t\tposX=true;\n\t\t}\n\t\tif(!posX) {//si on a pas change les abscisses\n\t\t\t\tpositionX=widthCase*positionX-zoom*widthCase/2;//pour trouver l'abscisse en px en multiplie positionX par la taille d'une case puis on enleve la place(px) prise par le zoom\n\t\t\t}\n\t\tif(!posY)//si on a pas change les ordonnees.\n\t\t\tpositionY=heightCase*positionY-zoom*heightCase/2;\n\t\t}",
"private void setUpStartPosition()\n {\n \tthis.xPos = startTile.xPos;\n this.yPos = startTile.yPos - startTile.tileHeight;\n yPos--;\n \n System.out.println(\"Player is on level \" + level + \n \" at position x: \" + xPos + \", y: \" + yPos); \n }",
"public void setPositionOnMap(Point positionOnMap)\n {\n this.positionOnMap = positionOnMap;\n }",
"public void setPosition(Position pos) {\n \tthis.position = pos;\n \t//setGrade();\n }",
"void updatePosition() {\n if (gameScreen.cursorIsOnLeft()) \n {\n // set the panel's rightmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 11/12 - getWidth(), \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n else // Otherwise the cursor must be on the right half of the screen\n {\n // set the panel's leftmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 1/12, \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n }",
"public void display() {\n PVector d = location.get();\n float diam = d.y/height;\n println(diam);\n\n stroke(0);\n fill(255,0,0);\n ellipse (location.x, location.y, diameter, diameter);\n }",
"protected void renderMap(float mouseLocationX, float mouseLocationY)\n {\n float tileSize = zoom;\n\n //Calculate the number of tiles that can fit on screen\n int tiles_x = (int) Math.ceil(screenSizeX / tileSize) + 2;\n int tiles_y = (int) Math.ceil(screenSizeY / tileSize) + 2;\n\n //Offset tile position based on camera\n int center_x = (int) (cameraPosX - (zoom / 2f));\n int center_y = (int) (cameraPosY - (zoom / 2f));\n\n //Calculate the offset to make tiles render from the center\n int renderOffsetX = (tiles_x - 1) / 2;\n int renderOffsetY = (tiles_y - 1) / 2;\n\n //Get the position of the mouse based on screen size and tile scale\n float mouseScreenPosXScaled = mouseLocationX * screenSizeX / tileSize;\n float mouseScreenPosYScaled = mouseLocationY * screenSizeY / tileSize;\n\n //Get the position of the mouse relative to the map\n int mouseMapPosX = (int) Math.floor(center_x + mouseScreenPosXScaled);\n int mouseMapPosY = (int) Math.floor(center_y + mouseScreenPosYScaled);\n\n //Get the tile the mouse is currently over\n Tile tileUnderMouse = game.getWorld().getTile(mouseMapPosX, mouseMapPosY, cameraPosZ);\n\n //Render tiles\n for (int x = -renderOffsetX; x < renderOffsetX; x++)\n {\n for (int y = -renderOffsetY; y < renderOffsetY; y++)\n {\n int tile_x = x + center_x;\n int tile_y = y + center_y;\n Tile tile = game.getWorld().getTile(tile_x, tile_y, cameraPosZ);\n if (tile != Tiles.AIR)\n {\n TileRender.render(tile, x * tileSize, y * tileSize, zoom);\n }\n }\n }\n\n //Render entities\n for (Entity entity : game.getWorld().getEntities())\n {\n //Ensure the entity is on the floor we are rendering\n if (entity.zi() == cameraPosZ)\n {\n float tile_x = (entity.xf() - center_x) * tileSize;\n float tile_y = (entity.yf() - center_y) * tileSize;\n\n //Ensure the entity is in the camera view\n if (tile_x >= cameraBoundLeft && tile_x <= cameraBoundRight)\n {\n if (tile_y >= cameraBoundBottom && tile_y <= cameraBoundTop)\n {\n EntityRender.render(entity, tile_x, tile_y, 0, zoom);\n\n if (mouseMapPosX == entity.xi() && mouseMapPosY == entity.yi())\n {\n String s = entity.getDisplayName();\n fontRender.render(s, mouseLocationX * screenSizeX, mouseLocationY * screenSizeY, 0, 0, .5f * zoom);\n }\n }\n }\n }\n }\n\n float x = mouseMapPosX * tileSize;\n float y = mouseMapPosY * tileSize;\n\n //System.out.println(x + \" \" + y + \" \" + zoom + \" \" + tx + \" \" + ty + \" \" + tile);\n\n if (currentGuiComponetInUse != null)\n {\n target_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n else\n {\n box_render.render(x - center_x * tileSize, y - center_y * tileSize, 0, 0, zoom);\n }\n\n if (!MouseInput.leftClick() && clickLeft)\n {\n clickLeft = false;\n doLeftClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n\n if (!MouseInput.rightClick() && clickRight)\n {\n clickRight = false;\n doRightClickAction(mouseMapPosX, mouseMapPosY, cameraPosZ, mouseLocationX, mouseLocationY);\n }\n }",
"@Override\n public void setPosition(float x, float y) {\n }",
"public void recordLocation(){\n\t\tg2d.setColor(Color.blue);\n\t\n int x = (int)(sd.getLocationX() * scale) + width/2;\n int y = (int)(sd.getLocationY() * scale) + height/2;\n g2d.fillRect(x,y,8,8);\n\t\n\t}",
"public void printMap()\n {\n if(this.firstTime)\n {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() { setVisible(true); }\n });\n this.firstTime = false;\n }\n screen.repaint();\n }",
"@Override\n public void onSuccess(Location location) {\n if (location != null) {\n // Logic to handle location object\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n mUserLocation = new LatLng(location.getLatitude(), location.getLongitude());\n CameraUpdate update = CameraUpdateFactory.newLatLngZoom(mUserLocation, 16);\n mMap.animateCamera(update);\n mMap.addMarker(new MarkerOptions().position(mUserLocation).title(\"Mischief Managed!\"));\n\n }\n }",
"public void setPosition(float x, float y);",
"public String display(PlayMap aPlayMap) {\r\n String tmpOutput = \"\";\r\n Field tmpField;\r\n \r\n tmpOutput = \"<div class=\\\"map\\\" id=\\\"map\\\" style=\\\"width:\" + aPlayMap.getXDimension() * 34.75 + \"px; \";\r\n tmpOutput += \"height:\" + aPlayMap.getYDimension() * 34.75 + \"px;\\\">\\n\";\r\n // loop for row\r\n for (int i = 0; i < aPlayMap.getYDimension(); i++) {\r\n // loop for column\r\n for (int j = 0; j < aPlayMap.getXDimension(); j++) {\r\n tmpField = aPlayMap.getField(j, i);\r\n tmpOutput += \"<div id=\\\"\" + j + \"/\" + i + \"\\\" \";\r\n try {\r\n tmpOutput += \"class=\\\"field \" + Ground.getGroundLabeling(tmpField.getGround()) + \"\\\" \";\r\n } catch (UnknownFieldGroundException e) {\r\n e.printStackTrace();\r\n }\r\n Placeable tmpSetter = tmpField.getSetter();\r\n String tmpColor = new String (\"#000000\");\r\n String tmpPlacable = new String (\"item\");\r\n if (tmpSetter != null) {\r\n if (tmpSetter instanceof Figure) {\r\n tmpColor = new String();\r\n switch (tmpField.getSetter().getId()) {\r\n case 'A':\r\n tmpColor = \"#ff0000\";\r\n break;\r\n case 'B':\r\n tmpColor = \"#0000ff\";\r\n break;\r\n }\r\n tmpPlacable = \"figure\";\r\n }\r\n tmpOutput += \"onClick=\\\"checkUserAction(this);\\\" \";\r\n tmpOutput += \"onMouseOver=\\\"hoverOn(this);\\\" onMouseOut=\\\"hoverOff(this);\\\" status=\\\"placed\\\" filled=\\\"\" + tmpPlacable + \"\\\" placablecolor=\\\"\" + tmpColor + \"\\\" >\";\r\n String tmpImage = tmpSetter.getImage();\r\n tmpOutput += \"<img src=\\\"resources/pictures/\" + tmpImage + \"\\\">\";\r\n } else {\r\n tmpOutput += \"onClick=\\\"checkUserAction(this);\\\" \";\r\n tmpOutput += \"onMouseOver=\\\"hoverOn(this);\\\" onMouseOut=\\\"hoverOff(this);\\\" status=\\\"empty\\\" filled=\\\"no\\\" placablecolor=\\\"#000000\\\" >\";\r\n }\r\n tmpOutput += \"</div>\\n\";\r\n }\r\n }\r\n tmpOutput += \"</div>\\n\";\r\n\r\n return tmpOutput;\r\n }",
"@Override\n public void onLocationChanged(Location location) {\n //Log.i(TAG, \"New Location: \" + location.getLatitude() + \" \" + location.getLongitude());\n if (isDrawing) {\n //We are drawing so add a point and move the camera accordingly\n currentDrawing.addPoint(new LatLng(location.getLatitude(), location.getLongitude()), currentColor);\n LatLng userLocation = new LatLng(location.getLatitude(), location.getLongitude());\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(userLocation, 20));\n }\n }",
"public PointF get_position() { return _position; }",
"@Override\r\n\tpublic void draw() {\n\t\tPoint p = this.getP();\r\n\t\tint start_point = p.getX();\r\n\t\tint end_point = p.getY();\r\n\t\t\r\n\t\tint width = this.getWidth();\r\n\t\tint height = this.getHeight();\r\n\t\t\r\n\t\tSystem.out.println(\"�l�p�`��`�� �_(\" + start_point +\",\"+ end_point + \")����Ƃ��āA��\"+ width +\"����\"+ height +\"�̎l�p�`\");\r\n\t}",
"@Override\n public void run() {\n LatLng myLoc = new LatLng(myLatitude, myLongitude);\n myMarker.setPosition(myLoc);\n }",
"@Override\n\tpublic void changeMapPointer(ImageView posView) {\n\t\tif (room.equals(properties.getRoomFromProperties().get(1))) {\n\t\t\tposView.relocate(789, 272);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(2))) {\n\t\t\tposView.relocate(788, 185);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(3))) {\n\t\t\tposView.relocate(880.0, 281);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(4))) {\n\t\t\tposView.relocate(867.0, 200);\n\n\t\t} else if (room.equals(properties.getRoomFromProperties().get(5))) {\n\t\t\tposView.relocate(880.0, 64.0);\n\n\t\t} else {\n\t\t\tposView.relocate(788.0, 60.0);\n\t\t}\n\t}",
"@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n DrawPoint(msg.arg1,msg.arg2);\n }",
"public void setPosition(ScreenPoint p) {\n setX(p.x);\n setY(p.y);\n }",
"public void updatePosition() {\n \t\r\n \tx += dx;\r\n \ty += dy;\r\n \t\r\n\t}",
"void setPosition(Point point);",
"double getMapPositionX();",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n// LatLng sydney = new LatLng(-34, 151);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n LatLng sydney = new LatLng(40.362552, -94.767392);\n\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Joseph Location\"));\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(40.362552,-94.767392), 12.0f));\n\n LatLng publicUser1 = new LatLng(40.332692, -94.870458);\n mMap.addMarker(new MarkerOptions().position(publicUser1).title(\"David Location\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(publicUser1));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(40.332692,-94.870458), 12.0f));\n\n LatLng publicUser2 = new LatLng(40.350650, -94.886080);\n mMap.addMarker(new MarkerOptions().position(publicUser2).title(\"Alex Location\"));\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(publicUser2));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(40.350650,-94.886080), 12.0f));\n\n LatLng publicUser3 = new LatLng(40.357818, -94.890868);\n mMap.addMarker(new MarkerOptions().position(publicUser3).title(\"Johnson Location\"));\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(publicUser1));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(40.357818,-94.890868), 12.0f));\n\n LatLng publicUser4 = new LatLng(40.348272, -94.871527);\n mMap.addMarker(new MarkerOptions().position(publicUser4).title(\"Mike Location\"));\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(publicUser2));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(40.348272,-94.871527), 12.0f));\n }",
"public void setPosition(Point newPosition);",
"MapLocation getPosition(Unit unit);",
"void setPos(float x, float y);",
"public void updateXLoc();",
"public void setLocation(float x, float y);",
"public void onLocationChanged(Location location) {\n\n //Display the current location\n double latitude = location.getLatitude();\n double longitude = location.getLongitude();\n MapProjection mapProjection = MapProjection.getDefault();\n GridPoint gp = mapProjection.toGridPoint(latitude,longitude);\n mGPSon.setText(\"Latitude: \"+Math.round(gp.x)+\"\\nLongitude: \"+Math.round(gp.y));\n\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 }",
"private void userInput(){\n if(mousePressed){\n rX -= (mouseY - pmouseY) * 0.002f;//map(mouseY,0,height,-PI,PI);\n rY -= (mouseX - pmouseX) * 0.002f;// map(mouseX,0,width,PI,-PI);\n }\n rotateX(rX);\n rotateY(rY);\n\n if(keyPressed){\n if(keyCode == UP){\n zoom += 0.01f;\n }\n if(keyCode == DOWN){\n zoom -= 0.01f;\n }\n }\n }",
"public void render() { image.drawFromTopLeft(getX(), getY()); }",
"void updatePosition() {\n\t\t\n\t\tcoords.x = body.getPosition().x*Simulation.meterToPixel;\n\t\tcoords.y = body.getPosition().y*Simulation.meterToPixel;\n\t\tspeed.x = body.m_linearVelocity.x;\n\t\tspeed.y = body.m_linearVelocity.y;\n\t}",
"@Override\n public void draw() {\n /** preparacion de la ventana **/\n background(255);\n lights();\n directionalLight(40, 90, 100, 1, 40, 40);\n\n translate(origin.x,origin.y);\n scale(zoom);\n\n\n /** entrada del usuario **/\n userInput();\n /** ejes X Y Z **/\n drawAxes();\n /** aplicar ik **/\n writePos();\n\n /** escala de los objetos**/\n scale(-1.2f);\n\n /** esfera que muestra la posicion en coord X Y Z\n *\n * X -> coord[0]\n * Y -> coord[1]\n * Z -> coord[2]\n *\n * **/\n pushMatrix();\n noStroke();\n fill(250, 100, 1);\n translate(-coord_cartesian[1] ,-coord_cartesian[2] -11,-coord_cartesian[0] );\n sphere(2);\n popMatrix();\n\n\n /**\n * Dibuja el brazo\n */\n pushMatrix();\n arm.drawArm();\n popMatrix();\n }",
"public interface GeoScreen\n{\n \n// //----------------------------------------------------------------------\n// /**\n// * Get the latitude.\n// *\n// * @return the latitude.\n// */\n// public float getLatitude();\n \n// //----------------------------------------------------------------------\n// /**\n// * Set the latitude.\n// *\n// * @param latitude the latitude.\n// */\n// public void setLatitude(float latitude);\n\n \n// //----------------------------------------------------------------------\n// /**\n// * Get the longitude.\n// *\n// * @return the longitude.\n// */\n// public float getLongitude();\n \n// //----------------------------------------------------------------------\n// /**\n// * Set the longitude.\n// *\n// * @param longitude the longitude.\n// */\n// public void setLongitude(float longitude);\n\n// //----------------------------------------------------------------------\n// /**\n// * Get the x coordinate on screen.\n// *\n// * @return the x coordinate on screen.\n// */\n// public int getX();\n \n// //----------------------------------------------------------------------\n// /**\n// * Set the x coordinate on screen.\n// *\n// * @param x the x coordinate on screen.\n// */\n// public void setX(int x);\n\n \n// //----------------------------------------------------------------------\n// /**\n// * Get the y coordinate on screen.\n// *\n// * @return the y coordinate on screen.\n// */\n// public int getY();\n \n// //----------------------------------------------------------------------\n// /**\n// * Set the y coordinate on screen.\n// *\n// * @param y the y coordinate on screen.\n// */\n// public void setY(int y);\n\n// //----------------------------------------------------------------------\n// /**\n// * Get the location on screen.\n// *\n// * @return the screen location.\n// */\n// public Point getScreenLocation();\n \n// //----------------------------------------------------------------------\n// /**\n// * Set the location on screen.\n// *\n// * @param location the screen location.\n// */\n// public void setScreenLocation(Point location);\n\n\n// //----------------------------------------------------------------------\n// /**\n// * Get the geographical location.\n// *\n// * @return the geographical location.\n// */\n// public LatLonPoint getGeoLocation();\n \n// //----------------------------------------------------------------------\n// /**\n// * Set the geographical location.\n// *\n// * @param geolocation the geographical location.\n// */\n// public void setGeoLocation(LatLonPoint geolocation);\n\n \n//----------------------------------------------------------------------\n/**\n * Use the geographical coordinates (have to be set prior to calling\n * this method) and the given projection to calculate the screen\n * coordinates of this GeoScreenPoint.\n *\n * @param projection the projection to use.\n */\n public void forward(Projection projection);\n\n//----------------------------------------------------------------------\n/**\n * Use the screen coordinates (have to be set prior to calling this\n * method) and the given projection to calculate the geographical\n * coordinates of this GeoScreenPoint.\n *\n * @param projection the projection to use.\n */\n public void inverse(Projection projection);\n\n\n \n}",
"@Override\n public void update(){\n getNextPosition();\n checkTileMapCollision();\n setPosition(xtemp, ytemp);\n animation.update();\n }",
"public void showRegionAndExpectedPlayerLocation(ShapeRenderer shapeBatch, Vector3 position) {\n\t\t// enable transparency\n\t\tGdx.gl.glEnable(GL20.GL_BLEND);\n\t\tGdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA);\n\n\t\t// draw active region\n\t\tshapeBatch.begin(ShapeType.Filled);\n\n\t\tshapeBatch.setColor(new Color(0.8f, 0, 0, 0.2f));\n\t\tint regionIndex = getRegionIndex(position, this.team);\n\t\tRectangle region = this.regions.get(regionIndex);\n\t\tVector3 regionLocation = PitchUtils.pitchToGlobal(region.x, region.y);\n\t\tshapeBatch.rect(regionLocation.x, regionLocation.y, region.width, region.height);\n\n\t\t// draw player location\n\t\tfor (int playerIndex = 0; playerIndex < 10; playerIndex++) {\n\t\t\tshapeBatch.setColor(new Color(1.0f, 0.5f, 0, 0.4f));\n\t\t\tVector3 playerLocation = this.team.getPlayers().get(playerIndex).getDestination();\n\t\t\tshapeBatch.circle(playerLocation.x, playerLocation.y, 8);\n\t\t}\n\n\t\tshapeBatch.end();\n\n\t\tGdx.gl.glDisable(GL20.GL_BLEND);\n\t}",
"public synchronized void visitorPositionChanged (CityMap sender) {\n cityMap.getVisitorXY (tmpXY);\n visitorX = tmpXY[CityMap.X];\n visitorY = tmpXY[CityMap.Y];\n repaint ();\n }",
"@Override\n public Location getDisplayedLocation() {\n this.displayedLocation = new Location((int)pane.getHvalue(), (int)pane.getVvalue(), curFloor, \"Unknown\");\n return displayedLocation;\n }",
"public void draw() {\r\n /* DO NOT MODIFY */\r\n StdDraw.point(x, y);\r\n }",
"private void drawPosition(Position pos, TextColor color, char c, boolean wide) {\n TextGraphics text = screen.newTextGraphics();\n text.setForegroundColor(color);\n text.putString(pos.getX() * 2, pos.getY() + 1, String.valueOf(c));\n\n if (wide) {\n text.putString(pos.getX() * 2 + 1, pos.getY() + 1, String.valueOf(c));\n }\n }",
"public void tick() {\n\t\ta = Window.frame.getMousePosition();\n\t\tif (a != null) {\n\t\t\tmx = (int)a.getX();\n\t\t\tmy = (int)a.getY();\n\t\t}\n\t\t//System.out.println(a);\n\t}",
"public void updatePlayerPoints() {\n setText(Integer.toString(owner.getPlayerPoints()) + \" points\");\n }",
"public void setUserLocation(Room setRoom)\n {\n\n // Gets each person from the characters' array list.\n for(Person person: characters){\n\n // Check if found the player.\n if(person.getName().equals(PLAYER)){\n\n // sets the location of the player to the specifed room.\n person.setLocation(setRoom);\n }\n }\n }",
"protected void setUserPosition(HttpServletRequest request,ModelAndView mv){\n\t\tHttpSession hs = request.getSession();\n\t\tif(hs.getAttribute(\"user\") != null){\n\t\t\tUser loginUser = (User) hs.getAttribute(\"user\");\n\t\t\tmv.addObject(\"userPosition\", loginUser.getPositionId());\n\t\t}\n\t}",
"public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }",
"public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }",
"public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }",
"public void draw() {\n /* DO NOT MODIFY */\n StdDraw.point(x, y);\n }",
"RealLocalizable getPosition();",
"public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}",
"public void position() {\n System.out.println(this.position.getX()+\",\"+this.position.getY()+\",\"+this.position.getDirection());\n }",
"private void panMap(int x, int y){\r\n Point p = map.getMapCenter();\r\n p.x += x;\r\n p.y += y;\r\n map.setMapCenter(p);\r\n mapPane.render();\r\n }",
"public void printMap()\n {\n this.mapFrame.paint();\n this.miniMapFrame.paint();\n }",
"public GeoPoint position(){\n return position;\n }"
]
| [
"0.6520102",
"0.64474565",
"0.63293606",
"0.6252387",
"0.6220058",
"0.6094933",
"0.60916793",
"0.60798943",
"0.606417",
"0.6041735",
"0.59986126",
"0.5986103",
"0.59427863",
"0.5859767",
"0.5831117",
"0.5778265",
"0.576449",
"0.5750847",
"0.57268476",
"0.57220256",
"0.57070255",
"0.5684108",
"0.5675154",
"0.56720364",
"0.5668514",
"0.56333435",
"0.5606019",
"0.56012297",
"0.5601025",
"0.5585149",
"0.5576843",
"0.55703855",
"0.55664456",
"0.5557158",
"0.5535539",
"0.552984",
"0.552108",
"0.55203146",
"0.551305",
"0.5494437",
"0.54921556",
"0.5459701",
"0.5450249",
"0.5446792",
"0.54358476",
"0.54318446",
"0.5429213",
"0.5421396",
"0.5419292",
"0.5417976",
"0.5417493",
"0.541708",
"0.5415413",
"0.5411729",
"0.5411476",
"0.5404633",
"0.54021424",
"0.54017884",
"0.5400612",
"0.53975356",
"0.5396334",
"0.53946525",
"0.5383564",
"0.538041",
"0.53754747",
"0.53708863",
"0.5370232",
"0.53699625",
"0.5363582",
"0.53626466",
"0.53594553",
"0.5355881",
"0.5354832",
"0.53354704",
"0.5333114",
"0.53283334",
"0.5327406",
"0.5325851",
"0.5322434",
"0.5319137",
"0.53140455",
"0.5313844",
"0.53120154",
"0.53072983",
"0.5307032",
"0.52999043",
"0.5295364",
"0.5293485",
"0.5293476",
"0.52867603",
"0.52866113",
"0.52866113",
"0.52866113",
"0.52866113",
"0.52830625",
"0.5282168",
"0.5272055",
"0.52654135",
"0.5263854",
"0.5263564"
]
| 0.689593 | 0 |
Creates new form VCategorias | private void ejecutarAccion(int i) {
try {
// TODO add your handling code here:
GCategorias gestorCategorias = new GCategorias(i);
gestorCategorias.setVisible(true);
} catch (SQLException ex) {
Logger.getLogger(VCategorias.class.getName()).log(Level.SEVERE, null, ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public VentanaCreaCategoria(VentanaPrincipal v, Categoria c) {\r\n\t\tthis.vp = v;\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tsetTitle(\"Crear categor\\u00EDa\");\r\n\t\tsetBounds(100, 100, 441, 237);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\tcontentPanel.add(getBtnCrear());\r\n\t\tcontentPanel.add(getBtnCancelar());\r\n\t\tcontentPanel.add(getLblNombre());\r\n\t\tcontentPanel.add(getTfNombre());\r\n\t\tcontentPanel.add(getLblSexo());\r\n\t\tcontentPanel.add(getComboSexo());\r\n\t\tcontentPanel.add(getLblEdadDesde());\r\n\t\tcontentPanel.add(getTfedadMinima());\r\n\t\tcontentPanel.add(getLblHasta());\r\n\t\tcontentPanel.add(getTfEdadMaxima());\r\n\r\n\t\t// Cargamos los datos en las tf\r\n\t\tcargarDatosCategoria(c);\r\n\t}",
"public View_Categoria() {\n c = new Categoria();\n daoCategoria = new Dao_CadastroCategoria();\n categorias = new ArrayList<>();\n initComponents();\n TextCodigo.setDocument(new LimitaDigitosNum(11));\n TextNome.setDocument(new LimitaDigitos(30));\n TextNomeCons.setDocument(new LimitaDigitos(30));\n atualizarTabela();\n inicio();\n }",
"public Cgg_veh_categoria(){}",
"public controladorCategorias() {\r\n }",
"public void ajouterCategorie(View v) {\n Intent intent = new Intent(this, AjouterCategorie.class);\n startActivity(intent);\n }",
"public Categorias() {\n this.id = 0;\n this.categoria = \"\";\n }",
"public Categorie addCategorie(Categorie c);",
"public void create(int id, DVD dvd, Categorie categorie);",
"public CadastrarCategoria() {\n initComponents();\n }",
"public void crearCategoria(Categoria categoria){\n categoriaRepo.save(categoria); \n }",
"@Test\n public void postCadastrarCategoriaTest() throws ApiException {\n Integer productCategoryCode = null;\n String product = null;\n api.postCadastrarCategoria(productCategoryCode, product);\n\n // TODO: test validations\n }",
"@GetMapping(\"/form\")\n public String form(@RequestParam(name = \"id\", required = false, defaultValue = \"0\") int id, Model model) {\n Categoria categoria = new Categoria();\n if (id != 0) {\n categoria = categoriaService.findById(id);\n }\n model.addAttribute(\"categoria\", categoria);\n return FORM_VIEW;\n }",
"public AlterarCategoria() {\n initComponents();\n }",
"public Categoria() {\n initComponents();\n desabilitarComponentes();\n carregarTabela();\n }",
"public es.davinciti.liferay.model.LineaGastoCategoria create(\n\t\tlong categoriaId);",
"private void triggerValiderCategorie() {\n JSONObject categorie = new JSONObject();\n String categorie_nom = this.editTextCategorie.getText().toString();\n try {\n categorie.put(Metier.CLE_CATEGORIE_NOM, categorie_nom);\n categorie.put(Metier.CLE_PRODUIT_NOM, \"\");\n for (int i = 0; i < this.listViewChampAdapter.getCount(); i++) {\n JSONObject champ = this.listViewChampAdapter.getItem(i);\n categorie.put(champ.optString(Metier.CLE_CHAMP_NOM), \"\");\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n insererCategorie(categorie);\n }",
"public SubcategoriaController() {\n emf = EntityProvider.provider();\n System.out.println(\"creado\");\n FacesContext.getCurrentInstance().getViewRoot().setLocale(\n new Locale(\"es-Mx\"));\n this.subcategoria = new Subcategorias();\n this.categoria = new Categoria();\n //descripcion = \"nada\";\n nombresubcategoria = \"\";\n nombrecategoria = \"\";\n }",
"private void addNewCategory() {\n Utils.replaceFragment(getActivity(),new AddCategoriesFragment());\n }",
"CreateCategoryResponse createCategory(CreateCategoryRequest request);",
"public FrameNuevaCategoria() {\n initComponents();\n limpiar();\n }",
"public void LlenarC(){\n for(int i=0;i< new GestionCategorias().getListCategoria().size();i++){\n catBox.addItem(new GestionCategorias().getListCategoria().get(i).getCat_nombre());\n \n }\n }",
"private void insererCategorie(final JSONObject categorie) {\n //preparation du JSON pour le passer dans le corps de la requete HTTP\n StringEntity entityJson = null;\n try {\n entityJson = new StringEntity(categorie.toString());\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n //preparation de l'URL\n String url = WebService.buildUrlForRequest(Metier.DOMAIN, Metier.NOM_MODELE_CATEGORIES, WebService.ACTION_INSERT, null);\n\n //requete pour inserer la nouvelle categorie (asynchrone)\n asyncHttpClient.post(getActivity(), url, entityJson, DATA_TYPE, new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n dialogCreationCategorieBuilder\n .setMessage(getString(R.string.dialog_ajout_categorie_succes))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n FormulaireCategorieFragment.this.listener.OnValidCategorie();\n }\n }).show();\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n dialogCreationCategorieBuilder\n .setMessage(getString(R.string.dialog_ajout_categorie_echec))\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n }).show();\n }\n });\n }",
"private void saveNewCategory() {\n String name = newCategory_name.getText()\n .toString();\n int defaultSizeType = categoryDefaultSize.getSelectedItemPosition() - 1;\n String color = String.format(\"%06X\", (0xFFFFFF & categoryColor.getExactColor()));\n int parentCategoryId = -1;\n if (parentCategory != null) {\n parentCategoryId = parentCategory.getId();\n }\n String icon = categoryIcon.getSelectedItem();\n categoryDataSource.editCategory(categoryId, name, name, parentCategoryId, defaultSizeType,\n icon, color);\n\n setResult(Activity.RESULT_OK);\n this.finish();\n }",
"public AltaCategoria() {\n initComponents();\n }",
"public String createCategory()\n {\n logger.info(\"**** In createCategory in Controller ****\");\n if (category != null && StringUtils.isNotEmpty(category.getCategoryName()))\n {\n String creationMessage = categoryService.createCategory(category);\n if (creationMessage.equalsIgnoreCase(Constants.CATEGORY_CREATION_SUCCESS))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.CATEGORY_CREATION_SUCCESS, Constants.CATEGORY_CREATION_SUCCESS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n else if (creationMessage.equalsIgnoreCase(Constants.CATEGORY_ALREADY_EXISTS))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, Constants.CATEGORY_ALREADY_EXISTS, Constants.CATEGORY_ALREADY_EXISTS);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n else if (creationMessage.equalsIgnoreCase(Constants.CATEGORY_CREATION_EXCEPTION))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, Constants.CATEGORY_CREATION_EXCEPTION, Constants.CATEGORY_CREATION_EXCEPTION);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n else if (creationMessage.equalsIgnoreCase(Constants.FAILURE))\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, Constants.CATEGORY_CREATION_FAILURE, Constants.CATEGORY_CREATION_FAILURE);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n }\n\n return Constants.CREATE_CATEGORY_VIEW;\n }",
"@Override\n\tpublic Categoria crearCategoria(String nombreCategoria, String descripcionCategoria) {\n\t\treturn null;\n\t}",
"private void gestionarCategoria(OperacionForm opForm, Operacion op){\r\n\t\r\n\t\t//MODIFICACION DE OPERACION\r\n\t\tif (opForm.getId()!=null){\r\n\t\t\t//Obtengo el usuario logado\r\n\t\t\tUser userLogado = userService.getUserById(((User) SecurityContextHolder.getContext().getAuthentication().getPrincipal()).getIdUser());\r\n\r\n\t\t\t//Obtengo la operacion a modificar con todas las categorizaciones\r\n\t\t\tOperacion opAntAllCat=operacionDao.findById(opForm.getId());\r\n\t\t\t\r\n\t\t\t//Obtengo la categorizacion anterior del usuario\r\n\t\t\tCategoria catAntUser=categoriaDao.findCategorizacionUsuarioByIdOperacion(opForm.getId(), userLogado.getIdUser());\r\n\r\n\t\t\t\r\n\t\t\t//Si antes no tenia y ahora si tiene\r\n\t\t\tif (catAntUser==null){\r\n\t\t\t\tif (opForm.getIdCategoria()!=null)\r\n\t\t\t\t\tcrearCategorizacion(opForm.getIdCategoria(), op);\r\n\t\t\t}\r\n\t\t\t//Si antes tenia categoria\r\n\t\t\telse{\r\n\t\t\t\t//Si ahora no tiene categoria\r\n\t\t\t\tif (opForm.getIdCategoria()==null)\r\n\t\t\t\t\tborrarCategorizacionAnterior(catAntUser, opAntAllCat);\t\t\t\t\r\n\t\t\t\t//Si ahora tiene una categoria diferente que antes\r\n\t\t\t\telse if(opForm.getIdCategoria().compareTo(catAntUser.getIdCategoria())!=0){\r\n\t\t\t\t\tborrarCategorizacionAnterior(catAntUser, opAntAllCat);\r\n\t\t\t\t\tcrearCategorizacion(opForm.getIdCategoria(), op);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//CREAR NUEVA OPERACION\r\n\t\telse{\r\n\t\t\t//Si el usuario ha seleccionado una categoria para la operacion \r\n\t\t\tif (opForm.getIdCategoria()!=null)\r\n\t\t\t\tcrearCategorizacion(opForm.getIdCategoria(), op);\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public com.alain.puntocoma.model.Catalogo create(long catalogoId);",
"private void listadoCategorias() {\r\n sessionProyecto.getCategorias().clear();\r\n sessionProyecto.setCategorias(itemService.buscarPorCatalogo(CatalogoEnum.CATALOGOPROYECTO.getTipo()));\r\n }",
"@Override\n\tpublic Categories create(Categories cate) {\n\t\treturn categoriesDAO.create(cate);\n\t}",
"public void newCategory() {\n btNewCategory().push();\n }",
"@Override\n\t@Transactional\n\n\tpublic void initCategorie() {\n\t\tStream.of(\"Action\",\"Drame\",\"Guerre\",\"Fantastique\",\"Science-fiction\",\"Thriller\").forEach(cat->{\n\t\t\tCategorie categorie=new Categorie();\n\t\t\tcategorie.setName(cat);\n\t\t\tcategorieRepository.save(categorie);\n\t\t});\n\t}",
"public void seleccionarCategoria(String name);",
"public final void readCategoria() {\n cmbCategoria.removeAllItems();\n cmbCategoria.addItem(\"\");\n categoryMapCategoria.clear();\n AtividadePreparoDAO atvprepDAO = new AtividadePreparoDAO();\n for (AtividadePreparo atvprep : atvprepDAO.readMotivoRetrabalho(\"Categoria\")) {\n Integer id = atvprep.getMotivo_retrabalho_id();\n String name = atvprep.getMotivo_retrabalho();\n cmbCategoria.addItem(name);\n categoryMapCategoria.put(id, name);\n }\n }",
"@GetMapping(\"/showFormForAdd\")\n public String showFormForAdd(Model theModel) {\n Categories theCategories = new Categories();\n theModel.addAttribute(\"categories\", theCategories);\n //theModel.addAttribute(\"update\", false);\n return \"loaisanpham-form\"; }",
"public void createCategory(String categoryName) {\n wait.until(ExpectedConditions.visibilityOf(driver.findElement(By.className(\"page-title\"))));\n Actions builder = new Actions(driver);\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCatalog\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminProducts\")));\n builder.moveToElement(driver.findElement(By.id(\"subtab-AdminCategories\")));\n builder.click(driver.findElement(By.id(\"subtab-AdminCategories\"))).perform();\n\n waitForContentLoad(\"Women\");\n WebElement creatNew = driver.findElement(By.id(\"page-header-desc-category-new_category\"));\n creatNew.click();\n WebElement newName = driver.findElement(By.id(\"name_1\"));\n newName.sendKeys(categoryName);\n WebElement saveBtn = driver.findElement(By.id(\"category_form_submit_btn\"));\n saveBtn.click();\n // TODO implement logic for new category creation\n if (categoryName == null) {\n throw new UnsupportedOperationException();\n }\n }",
"CategoriaDTO insertarCategoria(CategoriaDTO categoria);",
"public CatProveedores() {\n initComponents();\n cargartabla();\n }",
"public void mostrarCategoria(JComboBox<Categoria>jComboBoxCategoria){\n \n try{\n con = ConexionBD.getConexion();\n String sql=\"SELECT * FROM categorias WHERE id_estado = 1 ORDER BY id_categoria\";\n sent = con.createStatement();\n ResultSet rs = sent.executeQuery(sql);\n \n \n while (rs.next()){\n jComboBoxCategoria.addItem(\n new Categoria (\n rs.getString(\"id_categoria\"), \n rs.getString(\"nombre_categoria\")\n )\n );\n }\n \n }catch(SQLException e){\n JOptionPane.showMessageDialog(null,\"error\");\n \n \n \n }\n \n }",
"public JIFrameAtividadesInserir() {\n initComponents();\n this.selecionaDadosCategoria(conn);\n }",
"@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}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n lblNome = new javax.swing.JLabel();\n txtNome = new javax.swing.JTextField();\n btnSalvar = new javax.swing.JButton();\n btnCancelar = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n lblCodigo = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Cadastrar Categoria\\n\");\n setPreferredSize(new java.awt.Dimension(800, 600));\n\n lblNome.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n lblNome.setText(\"Nome :\");\n\n btnSalvar.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n btnSalvar.setText(\"Salvar\");\n btnSalvar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnSalvarActionPerformed(evt);\n }\n });\n\n btnCancelar.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n btnCancelar.setText(\"Cancelar\");\n\n jLabel1.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n jLabel1.setText(\"Código : \");\n\n lblCodigo.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n lblCodigo.setText(\"0000\");\n\n jLabel2.setFont(new java.awt.Font(\"Arial\", 1, 24)); // NOI18N\n jLabel2.setText(\"Cadastrar Categoria \");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(56, 56, 56)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(lblCodigo))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(lblNome)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(84, 84, 84)\n .addComponent(btnCancelar)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnSalvar)))\n .addGap(125, 125, 125))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(256, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addGap(294, 294, 294))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(30, 30, 30)\n .addComponent(jLabel2)\n .addGap(74, 74, 74)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(lblCodigo))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lblNome)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 22, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 272, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnSalvar)\n .addComponent(btnCancelar))\n .addGap(60, 60, 60))\n );\n\n pack();\n }",
"public String redirectCrearCategoria() {\n\t\treturn \"crear-categoria.xhtml\";\n\t}",
"private void populaNoticiaCat()\n {\n NoticiaCat n1 = new NoticiaCat(\"Avisos\", \"Help\");\n noticiaCatDAO.insert(n1);\n NoticiaCat n2 = new NoticiaCat(\"Noticias\", \"Document Notes\");\n noticiaCatDAO.insert(n2);\n NoticiaCat n3 = new NoticiaCat(\"Dicas\", \"Tag\");\n noticiaCatDAO.insert(n3);\n }",
"public Cgg_veh_categoria(\n\t\tString inCvctg_codigo,\n\t\tString inCgg_cvctg_codigo,\n\t\tString inCvctg_nombre,\n\t\tString inCvctg_observacion,\n\t\tboolean inCvctg_estado,\n\t\tString inCvctg_usuario_insert,\n\t\tString inCvctg_usuario_update\n\t){\n\t\tthis.setCVCTG_CODIGO(inCvctg_codigo);\n\t\tthis.setCGG_CVCTG_CODIGO(inCgg_cvctg_codigo);\n\t\tthis.setCVCTG_NOMBRE(inCvctg_nombre);\n\t\tthis.setCVCTG_OBSERVACION(inCvctg_observacion);\n\t\tthis.setCVCTG_ESTADO(inCvctg_estado);\n\t\tthis.setCVCTG_USUARIO_INSERT(inCvctg_usuario_insert);\n\t\tthis.setCVCTG_USUARIO_UPDATE(inCvctg_usuario_update);\n\t}",
"private void populaObjetivoCat()\n {\n objetivoCatDAO.insert(new ObjetivoCat(\"Hipertrofia\", \"weight\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Saude\", \"apple\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Emagrecer\", \"gloves\"));\n }",
"public void createProductCategory(HttpServletRequest request){\n \n HttpSession session = request.getSession();\n \n DAOFactory mySqlFactory = DAOFactory.getDAOFactory();\n ProductCategoryDAO riverProductCategoryDAO = mySqlFactory.getProductCategoryDAO();\n ProductCategoryDAO productCategoryDAO = new MySQLProductCategoryDAOImpl();\n \n List productCategories = productCategoryDAO.getAllProductCategories();\n \n //productCategories\n ProductCategory tmp3 = null;\n String[][] productCategoriesMatrix = new String[productCategories.size()][2];\n\n for(int i=0; i<productCategories.size(); i++){\n\n tmp3 = (ProductCategory)productCategories.get(i);\n\n productCategoriesMatrix[i][0] = Integer.toString(tmp3.getPCID());\n productCategoriesMatrix[i][1] = tmp3.getName();\n \n }\n \n session.setAttribute(\"productCategories\", productCategoriesMatrix);\n \n }",
"public void showInputCategoryCreateDialog() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_INPUT_CATEGORY_CREATE_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_INPUT_CATEGORY_CREATE_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Create Input Category\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n InputCategoryCreateDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n\r\n stage.showAndWait();\r\n }",
"@RequestMapping(value=\"/formcategory\",method=RequestMethod.POST,params=\"insert\")\r\n\tpublic ModelAndView addnewCategory(@RequestParam(value=\"bcat\")String baseCategory,@ModelAttribute(\"category\")Category category,BindingResult result,SessionStatus status,Model model)\r\n\t{\r\n\t\tList<?> jewlType=jeweltypeDao.listgoldOrnaments();\r\n\t\tmodel.addAttribute(\"JewelName\",jewlType);\r\n\t\tList<?> categoryList=categoryDao.listCategoryName();\r\n\t\tmodel.addAttribute(\"categoryList\", categoryList);\r\n\t\tcategoryValidator.validate(category, result);//validation of the category entity fields\r\n\t\tif(result.hasErrors())\r\n\t\t{\r\n\t\t\tModelMap map = new ModelMap();\r\n\t\t\tmap.put(\"command\",category);\r\n\t\t\tmap.addAttribute(\"errorType\",\"insertError\");\r\n\t\t\treturn new ModelAndView(\"formcategory\",map);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tcategory.setCategoryName(utilDao.capitalizeFirstLetter(category.getCategoryName()));\t\t\r\n\t\tcategoryDao.insertCategory(category);\r\n\t\treturn new ModelAndView(new RedirectView(\"categoryList.htm?bcat=\"+baseCategory));\r\n\t}",
"@GetMapping(\"/kategori\")\n public String createIndex(Model model, @RequestParam(defaultValue = \"0\", name = \"page\") int page) {\n model.addAttribute(\"kategoris\", kategoriRepository.findAll(PageRequest.of(page, 8)));\n model.addAttribute(\"buatPageKategori\", page);\n model.addAttribute ( \"buatKategori\", new Kategori());\n return \"/kategori/kategori.html\";\n }",
"CategoriesType createCategoriesType();",
"CategoriesType createCategoriesType();",
"public void setCategoriaId(Long id);",
"Category addNewCategory(Category category);",
"public JButtonOperator btNewCategory() {\n if (_btNewCategory==null) {\n _btNewCategory = new JButtonOperator(this, \"New Category...\"); // NOI18N\n }\n return _btNewCategory;\n }",
"public Categoria(String pNombre){\n this.nombre = pNombre;\n }",
"@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}",
"public void create(CategoriaDTO dto) throws SQLException{\n getConnection();\n CallableStatement callableStatement = null;\n \n try {\n callableStatement = (CallableStatement) connection.prepareCall(SQL_INSERT);\n callableStatement.setString(1, dto.getEntidad().getNombreCategoria());\n callableStatement.setString(2, dto.getEntidad().getDescripcionCategoria());\n callableStatement.executeUpdate(); // review\n } finally {\n if(callableStatement != null){\n callableStatement.close();\n }\n if(connection != null){\n connection.close();\n }\n }\n }",
"@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 List listarCategoriasForm() throws Exception {\n PreparedStatement ps = null;\n Connection conn = null;\n ResultSet rs = null;\n\n try {\n conn = this.conn;\n ps = conn.prepareStatement(\"select idRemedio, categoria from Remedios group by categoria order by categoria ASC \");\n rs = ps.executeQuery();\n List<Produto> list = new ArrayList<Produto>();\n while (rs.next()) {\n int idRemedio = rs.getInt(1);\n String categoria = rs.getString(2);\n list.add(new Produto(idRemedio, null, null, null,null, null, null, null, null, null, null, null, null, null, categoria, null));\n\n }\n return list;\n\n } catch (SQLException sqle) {\n throw new Exception(sqle);\n } finally {\n Conexao.closeConnection(conn, ps, rs);\n }\n }",
"public ControllerNewCRV(newCRV fenetre, DAOProduit DaoProd, DAOCategorie DaoCat,DAOMedecin daoMed,DAOVisiteur daoVisi, DAOCompteRendu daoCRV) {\n\t\t\n\t\tthis.fenetre = fenetre;\n\t\tthis.daoCat = DaoCat;\n\t\tthis.daoProd = DaoProd;\n\t\tthis.daoMed = daoMed;\n\t\tthis.daoVisi = daoVisi;\n\t\tthis.daoCRV = daoCRV;\n\t\tfenetre.getBtnRetour().addActionListener(this);\n\t\tfenetre.getBtnValider().addActionListener(this);\n\t\tfenetre.getBtnAjouter().addActionListener(this);\n\t\tfenetre.getComboBox_cat().addActionListener(new ActionListener() {\n\t public void actionPerformed(ActionEvent event) {\n\t //\n\t // Get the source of the component, which is our combo\n\t // box.\n\t //\n\t JComboBox comboBox = (JComboBox) event.getSource();\n\t String comboBoxname = comboBox.getName();\n\t \t\t\n\t \t\tswitch (comboBoxname) {\n\t \t\tcase \"selectionner\":\n\t \t\t\tviewProduit();\n\t \t\t\tbreak;\t\n\n\t \t\tdefault:\n\t \t\t\tbreak;\n\t \t\t}\t\t\n\t \n\n\t }\n\t });\n\t}",
"@RequestMapping(value=\"/formcategory\",method=RequestMethod.GET)\r\n\tpublic String newForm(@RequestParam(value=\"bcat\")String baseCategory,@ModelAttribute(\"category\")Category category,Model model)\r\n\t{\r\n\t\tList<?> jewlType=jeweltypeDao.listgoldOrnaments();\r\n\t\tList<?> categoryList=categoryDao.listCategoryName();\r\n\t\tList<?>bCat=jeweltypeDao.searchJewel(baseCategory);\r\n\t\tmodel.addAttribute(\"bCat\",bCat);\r\n\t\tmodel.addAttribute(\"categoryList\", categoryList);\r\n\t\tmodel.addAttribute(\"JewelName\",jewlType);\r\n\t\treturn \"formcategory\";\r\n\t}",
"@RequestMapping(value = \"/add\", method = GET)\n public String addCategory(Model model) {\n model.addAttribute(\"action\", ADD_ACTION);\n model.addAttribute(\"category\", new Category());\n return FORM_VIEW;\n }",
"public @NotNull Category newCategory();",
"@RequestMapping(value = \"addCategory\", method = RequestMethod.POST)\r\n\tpublic ModelAndView addCategory(@ModelAttribute AdminFormBean formBean) {\r\n\t\tCategory category = formBean.getCategory();\r\n\t\tcategoryService.addCategory(category);\r\n\t\treturn new ModelAndView(\"redirect:/admin\");\r\n\t}",
"public Optional<Produto> cadastroCat(Long idCategoria, @Valid Produto newProduto) {\n\t\treturn null;\n\t}",
"@Override\r\n\tpublic void addCategory() {\n\t\tCategory cat=new Category();\r\n\t\tcat.setNameCategory(\"Computing Tools\");\r\n\t\tem.persist(cat);\r\n\t\t\r\n\t}",
"public void llenarComboCategoria() {\n comboCategoria.removeAllItems();\n getIDCategoria();\n comboCategoria.setVisible(true);\n labelCategoria.setVisible(true);\n if (IDCategoria < 0) {\n comboCategoria.setVisible(false);\n comboCategoria.setEditable(false);\n labelCategoria.setVisible(false);\n this.repaint();\n } else {\n try {\n ResultSet resultado = buscador.getResultSet(\"select ID, valor from INSTANCIACATEGORIA where IDTIpoCategoria = \" + IDCategoria + \";\");\n while (resultado.next()) {\n String ID = resultado.getObject(\"ID\").toString();\n String valor = resultado.getObject(\"valor\").toString();\n comboCategoria.addItem(makeObj(valor, Integer.parseInt(ID)));\n }\n } catch (SQLException e) {\n System.out.println(\"*SQL Exception: *\" + e.toString());\n }\n }\n }",
"public CrearQuedadaVista() {\n }",
"@PostMapping(\"/saveCategories\")\n public String saveCategories(@ModelAttribute(\"categories\") Categories theCategories) {\n List<Product> products =null;\n if(theCategories.getId()!= 0)\n {\n products= categoriesService.getProducts(theCategories.getId());\n }\n theCategories.setProducts(products);\n categoriesService.saveCategories(theCategories);\t\n return \"redirect:/admin/loaisanpham/list\";\n }",
"public void setIdTipoCategoria( Integer idTipoCategoria ) {\n this.idTipoCategoria = idTipoCategoria ;\n }",
"@PostMapping(path = \"menus/{id}/categories\")\n ResponseEntity<?> post(@RequestBody Category body, @PathVariable String id) {\n Menu findMenu = menuRepository.findById(id)\n .orElseThrow(() -> new CategoryNotFound(\"Category with id: \" + id + \" Not Found\"));\n Category newCategory = repository.save(body);\n findMenu.getCategories().add(newCategory);\n Menu SavedMenu = menuRepository.save(findMenu);\n // must be created\n return ResponseEntity.ok(SavedMenu);\n }",
"public Category() {\n }",
"public JFrameCadastroCategoria() {\n initComponents();\n }",
"public List<CategoriaVO> mostrarCategorias() {\n\t\tJDBCTemplate mysql = MysqlConnection.getConnection();\n\t\ttry {\n\t\t\tmysql.connect();\n\t\t\tCategoriaDAO OwlDAO = new CategoriaDAO();\n\t\t\tList<CategoriaVO> resultado = new ArrayList();\n\t\t\tresultado = OwlDAO.obtenerCategorias(mysql);\n\t\t\treturn resultado;\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace(System.err);\n\t\t\treturn null;\n\n\t\t} finally {\n\t\t\tmysql.disconnect();\n\t\t}\n\t}",
"public Category() {}",
"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 }",
"@PostMapping(\"/categorie/save\")\n CategorieProduitDTO saveCategorie(@RequestBody CategorieProduitDTO categorieProduitDTO) {\n return categorieProduitMetier.saveCategorie(categorieProduitDTO);\n }",
"@RequestMapping(path = \"/create_category\", method = { RequestMethod.GET })\n public Category createCategoryGet(@RequestParam(name = \"name\", required = true) String name) {\n\n Category category = new Category(name);\n categoryRepository.save(category);\n return category;\n }",
"public Category() {\n super();\n }",
"public List<DVDCategorie> listDVDCategorie();",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jbVisualizarCategoria = new javax.swing.JButton();\n jbAnadirCategoria = new javax.swing.JButton();\n jbMoficarCategoria = new javax.swing.JButton();\n jbEliminarCategoria = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Gestión de categorias\");\n\n jbVisualizarCategoria.setText(\"Visualizar\");\n jbVisualizarCategoria.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbVisualizarCategoriaActionPerformed(evt);\n }\n });\n\n jbAnadirCategoria.setText(\"Añadir\");\n jbAnadirCategoria.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbAnadirCategoriaActionPerformed(evt);\n }\n });\n\n jbMoficarCategoria.setText(\"Modificar\");\n jbMoficarCategoria.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbMoficarCategoriaActionPerformed(evt);\n }\n });\n\n jbEliminarCategoria.setText(\"Eliminar\");\n jbEliminarCategoria.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jbEliminarCategoriaActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jbVisualizarCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jbAnadirCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jbMoficarCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jbEliminarCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jbVisualizarCategoria)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jbAnadirCategoria)\n .addGap(11, 11, 11)\n .addComponent(jbMoficarCategoria)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jbEliminarCategoria)\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(14, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap(14, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tcp.mostraGestioCategories();\n\t\t\t}",
"public Carta() {\n initComponents();\n \n \n \n items[0] = \"Entradas\";\n items[1] = \"Fuertes\";\n items[2] = \"Postres\";\n comboCategorias.setModel(new javax.swing.DefaultComboBoxModel(items));\n comboCategoriasM.setModel(new javax.swing.DefaultComboBoxModel(items));\n\n }",
"public Categorie getCategorieById(long id);",
"public Categorie updateCategorie(Categorie c);",
"public ProductCategoryController() {\n }",
"public void deleteCategorie(Categorie c);",
"public CadastroProdutoNew() {\n initComponents();\n }",
"public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }",
"public category() {\r\n }",
"private void populaFaixaEtariaCat()\n {\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Até 15 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 16 a 19 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 20 a 30 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 31 a 45 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 46 a 60 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Mais de 60 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Todas as idades\"));\n\n }",
"public VentanaEventos(String categoria) {\n //usuarioMostrar = ControladorUsuario.buscarUsuario(nickUsuario);\n categoriaActual=categoria;\n initComponents();\n mostrarTabla();\n\n\n }",
"public static List<Categorias> obtenerCategorias(){\n List<Categorias> categorias = new ArrayList<>();\n \n Categorias c = new Categorias();\n \n c.conectar();\n \n c.crearQuery(\"select * from categoria_libro\");\n \n ResultSet informacion = c.getResultSet();\n \n try {\n while (informacion.next())\n categorias.add(new Categorias(informacion));\n } catch (Exception error) {}\n \n c.desconectar();\n \n return categorias;\n }",
"public DVDCategorie getDVDCategorie(int id);",
"public Vehiculo() {\r\n }",
"public ArrayList<Categoria> listarCategorias();",
"@PostMapping(path=\"/category/add\")\n\tpublic @ResponseBody String addNewCategory(@RequestBody Category n) {\n\t\tcategoryRepository.save(n);\n\t\treturn \"Saved\";\n\t}",
"public void clearForm()\n {\n this.category = new Category();\n }",
"public CategoriesFragment() {\n }"
]
| [
"0.75349164",
"0.69532037",
"0.69355124",
"0.668776",
"0.6668192",
"0.66164464",
"0.6608735",
"0.6506599",
"0.6452649",
"0.6309919",
"0.6258289",
"0.6228045",
"0.618735",
"0.6181445",
"0.6179728",
"0.61007667",
"0.606417",
"0.60476154",
"0.6031591",
"0.59992075",
"0.5996016",
"0.5993926",
"0.5989179",
"0.59825975",
"0.5954436",
"0.59521025",
"0.593954",
"0.5933967",
"0.59250325",
"0.5915464",
"0.5866491",
"0.58651304",
"0.5861713",
"0.58509564",
"0.5811476",
"0.5805747",
"0.57744634",
"0.5757136",
"0.57364124",
"0.5735202",
"0.5731846",
"0.57315564",
"0.57195336",
"0.5718926",
"0.5714249",
"0.5706258",
"0.5699292",
"0.56903636",
"0.5683093",
"0.5663946",
"0.56623745",
"0.5651149",
"0.5651149",
"0.5624568",
"0.5623905",
"0.56117976",
"0.5600535",
"0.5583113",
"0.5579104",
"0.5577196",
"0.55725193",
"0.5553555",
"0.55520666",
"0.5539107",
"0.5526006",
"0.55160284",
"0.5515488",
"0.5513441",
"0.55108595",
"0.5510118",
"0.54724526",
"0.54719794",
"0.5468781",
"0.54457206",
"0.5429644",
"0.5397503",
"0.5396008",
"0.5394829",
"0.53944945",
"0.53882617",
"0.5382107",
"0.5372792",
"0.5372315",
"0.53681713",
"0.5365296",
"0.536423",
"0.53613603",
"0.5347789",
"0.5347781",
"0.5343107",
"0.533192",
"0.5327725",
"0.5311087",
"0.53108454",
"0.53103083",
"0.5307996",
"0.5301735",
"0.5299517",
"0.5296253",
"0.52924234",
"0.52867496"
]
| 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jbVisualizarCategoria = new javax.swing.JButton();
jbAnadirCategoria = new javax.swing.JButton();
jbMoficarCategoria = new javax.swing.JButton();
jbEliminarCategoria = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel1.setText("Gestión de categorias");
jbVisualizarCategoria.setText("Visualizar");
jbVisualizarCategoria.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbVisualizarCategoriaActionPerformed(evt);
}
});
jbAnadirCategoria.setText("Añadir");
jbAnadirCategoria.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbAnadirCategoriaActionPerformed(evt);
}
});
jbMoficarCategoria.setText("Modificar");
jbMoficarCategoria.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbMoficarCategoriaActionPerformed(evt);
}
});
jbEliminarCategoria.setText("Eliminar");
jbEliminarCategoria.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jbEliminarCategoriaActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jbVisualizarCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jbAnadirCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jbMoficarCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jbEliminarCategoria, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap())
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGap(18, 18, 18)
.addComponent(jbVisualizarCategoria)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jbAnadirCategoria)
.addGap(11, 11, 11)
.addComponent(jbMoficarCategoria)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jbEliminarCategoria)
.addContainerGap(18, Short.MAX_VALUE))
);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(14, Short.MAX_VALUE)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap(14, Short.MAX_VALUE))
);
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 BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public MusteriEkle() {\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 UploadForm() {\n initComponents();\n }",
"public FormHorarioSSE() {\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 JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\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.73197734",
"0.72914416",
"0.72914416",
"0.72914416",
"0.72862023",
"0.72487676",
"0.7213741",
"0.7207628",
"0.7196503",
"0.7190263",
"0.71850693",
"0.71594703",
"0.7147939",
"0.7093137",
"0.70808756",
"0.70566356",
"0.6987119",
"0.69778043",
"0.6955563",
"0.6953879",
"0.6945632",
"0.6943359",
"0.69363457",
"0.6931661",
"0.6927987",
"0.6925778",
"0.6925381",
"0.69117576",
"0.6911631",
"0.68930036",
"0.6892348",
"0.6890817",
"0.68904495",
"0.6889411",
"0.68838716",
"0.6881747",
"0.6881229",
"0.68778914",
"0.6876094",
"0.6874808",
"0.68713",
"0.6859444",
"0.6856188",
"0.68556464",
"0.6855074",
"0.68549985",
"0.6853093",
"0.6853093",
"0.68530816",
"0.6843091",
"0.6837124",
"0.6836549",
"0.6828579",
"0.68282986",
"0.68268806",
"0.682426",
"0.6823653",
"0.6817904",
"0.68167645",
"0.68102163",
"0.6808751",
"0.680847",
"0.68083245",
"0.6807882",
"0.6802814",
"0.6795573",
"0.6794048",
"0.6792466",
"0.67904556",
"0.67893785",
"0.6789265",
"0.6788365",
"0.67824304",
"0.6766916",
"0.6765524",
"0.6765339",
"0.67571205",
"0.6755559",
"0.6751974",
"0.67510027",
"0.67433685",
"0.67390305",
"0.6737053",
"0.673608",
"0.6733373",
"0.67271507",
"0.67262334",
"0.67205364",
"0.6716807",
"0.67148036",
"0.6714143",
"0.67090863",
"0.67077154",
"0.67046666",
"0.6701339",
"0.67006236",
"0.6699842",
"0.66981244",
"0.6694887",
"0.6691074",
"0.66904294"
]
| 0.0 | -1 |
/ Empty Tiles Locator depends on number of unstarted goal containers | public boolean verifyRetirementTile(String tileName) {
log("Verifying the " + tileName + " is displayed...");
return (isElementDisplayed(retirementTile, tileName));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeAllPawns(){\n\n for (Map.Entry<Integer, ImageView> entry : actionButtons.entrySet()) {\n Image image = null;\n entry.getValue().setImage(image);\n }\n\n for (Map.Entry<Integer, ImageView> entry : harvestBox.entrySet()) {\n\n Image image = null;\n entry.getValue().setImage(image);\n harvestBoxFreeSlot = 0;\n\n }\n\n for (Map.Entry<Integer, ImageView> entry : productionBox.entrySet()) {\n\n Image image = null;\n entry.getValue().setImage(image);\n productionBoxFreeSlot = 0;\n\n }\n\n for (Map.Entry<Integer, ImageView> entry : gridMap.entrySet()) {\n Image image = null;\n entry.getValue().setImage(image);\n gridFreeSlot = 0;\n }\n }",
"public void blank() {\r\n\t\trunning = false;// sets the simulation to stopped\r\n\t\tfor (int i = 0; i < TOTAL_TILES; i++)// loops through all tiles\r\n\t\t\tnodes[i] = new Node(new Point(i / WIDTH_TILES * SIZE_TILES, i % HEIGHT_TILES * SIZE_TILES), new ImageIcon(\"empty.png\").getImage(), false, \"empty\");// sets empty tile\r\n\t}",
"public void clearTiles() {\n \tfor (int x = 0; x < (mAbsoluteTileCount.getX()); x++) {\n for (int y = 0; y < (mAbsoluteTileCount.getY()); y++) {\n setTile(0, x, y);\n }\n }\n }",
"private void updateClearedTiles() {\r\n int count = 0;\r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n if (!grid[r][c].isHidden() && !grid[r][c].isBomb()) {\r\n count++;\r\n }\r\n }\r\n }\r\n clearedTiles = count;\r\n }",
"public void waitUntilLoadingDoesNotExistAndVerifyContainerDisplayed(){\n\t\tverifyContainerDisplayedResultsPage();\r\n\t}",
"protected static LinkedList<Location> generateLocations() {\n int i = 0;\n LinkedList<Location> list = new LinkedList<Location>();\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n ImagePacker gearImgs = new ImagePacker();\n\n try {\n gearImgs.readDirectory(new File(Objects.requireNonNull(classLoader.getResource(\"assets/gear-tiles\")).getPath()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n for (i = 0; i < GEARTILES; i++) {\n list.add(new Location(LocationType.GEAR).withImg(gearImgs.popImg()));\n }\n list.get((int)(Math.random()*list.size())).toggleStartingLoc();\n\n Image waterImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-tile.jpg\")).toString());\n for (i = 0; i < WATERTILES; i++) {\n list.add(new Location(LocationType.WELL).withImg(waterImg));\n }\n\n Image waterFakeImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-fake-tile.jpg\")).toString());\n for (i = 0; i < WATERFAKETILES; i++) {\n list.add(new Location(LocationType.MIRAGE).withImg(waterFakeImg));\n }\n\n //TODO: Finish images\n for (i = 0; i < LANDINGPADTILES; i++) {\n list.add(new Location(LocationType.LANDINGPAD).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/landing-pad.jpg\")).toString())));\n }\n for (i = 0; i < TUNNELTILES; i++) {\n list.add(new Location(LocationType.TUNNEL).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/tunnel.jpg\")).toString())));\n }\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-LR.jpg\")).toString())));\n\n return list;\n }",
"public boolean hasTiles()\r\n\t{\r\n\t\treturn _tiles.size() != 0;\r\n\t}",
"@Override\n protected void generateTiles() {\n }",
"public void clearSubbedTiles() { subbedTiles.clear(); }",
"@Test\n public void myNeighboursList_shouldNotBeEmpty() {\n // First scroll to the position that needs to be matched and click on it.\n onView(allOf(withId(R.id.list_neighbours),isDisplayed()))\n .check(matches(hasMinimumChildCount(1)));\n }",
"@Test\n public void myNeighboursList_shouldNotBeEmpty() {\n // First scroll to the position that needs to be matched and click on it.\n onView(ViewMatchers.withId(R.id.list_neighbours))\n .check(matches(hasMinimumChildCount(1)));\n }",
"void clear_missiles() {\n // Remove ship missiles\n ship.missiles.clear();\n for (ImageView ship_missile_image_view : ship_missile_image_views) {\n game_pane.getChildren().remove(ship_missile_image_view);\n }\n ship_missile_image_views.clear();\n\n // Remove alien missiles\n Alien.missiles.clear();\n for (ImageView alien_missile_image_view : alien_missile_image_views) {\n game_pane.getChildren().remove(alien_missile_image_view);\n }\n alien_missile_image_views.clear();\n }",
"void delete_missiles() {\n // Player missiles\n for (int i = ship.missiles.size()-1; i >= 0; i --) {\n Missile missile = ship.missiles.get(i);\n if (missile.y_position <= Dimensions.LINE_Y) {\n ImageView ship_missile_image_view = ship_missile_image_views.get(i);\n game_pane.getChildren().remove(ship_missile_image_view);\n ship_missile_image_views.remove(i);\n ship.missiles.remove(missile);\n }\n }\n\n // Enemy missiles\n for (int i = Alien.missiles.size()-1; i >= 0; i --) {\n Missile missile = Alien.missiles.get(i);\n if (missile.y_position > scene_height) {\n ImageView alien_missile_image_view = alien_missile_image_views.get(i);\n game_pane.getChildren().remove(alien_missile_image_view);\n alien_missile_image_views.remove(i);\n Alien.missiles.remove(missile);\n }\n }\n }",
"@Override\n\tprotected void generateTiles() {\n\t}",
"public void createTiles() {\r\n Session session = sessionService.getCurrentSession();\r\n Campaign campaign = session.getCampaign();\r\n\r\n tilePane.getChildren().clear();\r\n List<Pc> pcs = null;\r\n try {\r\n pcs = characterService.getPlayerCharacters();\r\n } catch (MultiplePlayersException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (pcs != null) {\r\n pcs = pcs.stream().filter(pc -> campaign.getPcs().stream().anyMatch(\r\n campaignPc -> campaignPc.getId().equalsIgnoreCase(pc.getId())\r\n )).collect(Collectors.toList());\r\n\r\n for (Pc pc : pcs) {\r\n SortedMap<String, String> items = getTileItems(pc);\r\n Tile tile = new Tile(pc.getId(), pc.getName(), items);\r\n tile.setOnMouseClicked(mouseEvent -> {\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), tile.getObjectId());\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n parentController.updateSession(sessionService.getCurrentSession());\r\n parentController.switchView();\r\n });\r\n tilePane.getChildren().add(tile);\r\n }\r\n }\r\n }",
"private int[] blankFinder(){\n for(int x = 0; x < n; x++){\n for(int y = 0; y < n; y++){\n if(tiles[x][y] == 0){\n return new int[]{x, y};\n }\n }\n }\n return null;\n }",
"public Tile[] generateTiles() {\n return null;\n }",
"public int tilesRemain() {\n return tiles.size();\n }",
"@Before\r\n\tpublic void init() {\n\t\tfinal List<Integer> container3 = createContainer((int) Math.pow(3, 2));\r\n\t\tcontainer3.set(container3.size() - 1, null);\r\n\t\tgoal3 = new BoardListImpl<>(3, container3);\r\n\r\n\t\t// 4 x 4 board\r\n\t\tfinal List<Integer> container4 = createContainer((int) Math.pow(4, 2));\r\n\t\tcontainer4.set(container4.size() - 1, null);\r\n\t\tgoal4 = new BoardListImpl<>(4, container4);\r\n\t}",
"public int size()\r\n\t{\r\n\t\treturn _tiles.size();\r\n\t}",
"public void testWorkspace_items_not_merged_in_next_screen() throws Exception {\n long[][][] ids = createGrid(new int[][][]{{\n { 0, 0, 0, 1},\n { 3, 1, 0, 4},\n { -1, -1, -1, -1},\n { 5, 2, -1, 6},\n },{\n { -1, 0, -1, 1},\n { 3, 1, -1, 4},\n { -1, -1, -1, -1},\n { 5, 2, -1, 6},\n }});\n\n new GridSizeMigrationTask(getMockContext(), mIdp, mValidPackages, new HashMap<String, Point>(),\n new Point(4, 4), new Point(3, 3)).migrateWorkspace();\n\n // Items in the second column of the first screen should get placed on a new screen.\n verifyWorkspace(new long[][][] {{\n {ids[0][0][0], ids[0][0][1], ids[0][0][3]},\n {ids[0][1][0], ids[0][1][1], ids[0][1][3]},\n {ids[0][3][0], ids[0][3][1], ids[0][3][3]},\n }, {\n { -1, ids[1][0][1], ids[1][0][3]},\n {ids[1][1][0], ids[1][1][1], ids[1][1][3]},\n {ids[1][3][0], ids[1][3][1], ids[1][3][3]},\n }, {\n {ids[0][0][2], ids[0][1][2], -1},\n }});\n }",
"private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }",
"static void wipeLocations(){\n\t \tfor (int i= 0; i < places.length; i++){\n\t\t\t\tfor (int j = 0; j < places[i].items.size(); j++)\n\t\t\t\t\tplaces[i].items.clear();\n\t\t\t\tfor (int k = 0; k < places[i].receptacle.size(); k++)\n\t\t\t\t\tplaces[i].receptacle.clear();\n\t \t}\n\t \tContainer.emptyContainer();\n\t }",
"public void clearLoci() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }",
"private void cleanUpTile(ArrayList<Move> moves)\n {\n for(Move m1 : moves)\n {\n gb.getTile(m1.getX(),m1.getY()).setStyle(null);\n gb.getTile(m1.getX(),m1.getY()).setOnMouseClicked(null);\n }\n gb.setTurn(gb.getTurn() + 1);\n }",
"public SpecialDepot() {\n specialContainers = new ArrayList<>();\n }",
"public void tiles()\n{\n if(m.getActiveManager() != 0)\n {\n m.hideButtonsOfManager(1);\n m.hideButtonsOfManager(2);\n m.showButtonsOfManager(0);\n m.activateManager(0);\n m.getTileManager().getActiveTile().setShowHover(true);\n }\n}",
"void examineContainers(){\n\t\t\tif (this.receptacle != null)//checks and sees if there's any containers in the location.\n\t\t\t\tfor (int i = 0; i < this.receptacle.size(); i++)\n\t\t\t\t\tif (!(this.receptacle.get(i) instanceof SpecialtyContainer))//if it's a hidden container, you don't know it's there, but it is...\n\t\t\t\t\t\tSystem.out.print(this.receptacle.get(i).contName + \", \");\n\t\t}",
"public boolean allDestroyed()\n {\n\n \tcalculateTotalHitsRequired();\n \tint hits = 0;\n \tfor (int row = 0; row < NUM_ROWS; row++){\n \t\tfor(int col = 0; col < NUM_COLS; col++){\n \t\t\tif(grid[row][col] == HIT)\n \t\t\t\thits++;\n \t\t}\n \t}\n \tif(hits == totalHitsRequired)\n \t\treturn true;\n\n return false;\n }",
"public void updateOpenTiles(){\r\n\t\tthis.openTiles = getOpenTiles() - 1;\r\n\t}",
"@Test\n public void TestScrapeMgr() throws Exception {\n ExecutorService e = Executors.newFixedThreadPool(4);\n ScrapeManager sm = new ScrapeManager(e);\n\n DALManager dm = new DALManager();\n Account a = dm.AllAccounts().get(0);\n Campaign c = a.getSelectCampaign();\n for (AConfiguration cf : c.getConfigurations()) {\n if (cf.getQueries() == null) {\n cf.setQueries(new ArrayList<AQuery>());\n }\n AQuery nw = new AQuery(\"fashion\", null, PinterestObject.PinterestObjectResources.External);\n cf.getQueries().add(nw);\n\n System.err.println(\"\" + cf.getClass().getSimpleName() + \" \" + cf.toString());\n Map<PinterestObject, Board> lst = new HashMap<>();\n Map<PinterestObject, Board> scraped = sm.Scrape(cf, a, null); //page 1 ; may return null !!!\n if (scraped == null) {\n System.err.println(\"nothing to scrape***\");\n } else {\n lst.putAll(scraped);\n scraped.clear(); /// !!!!!!!!!\n\n scraped = sm.Scrape(cf, a, null);//page 2\n lst.putAll(scraped);\n scraped.clear(); /// !!!!!!!!!\n\n int i = 1;\n for (Map.Entry<PinterestObject, Board> kv : lst.entrySet()) {\n System.err.println(\n (i++) + \" \" + ((Pin) kv.getKey()).getHashUrl()\n );\n }\n }\n System.err.println(\"__\");\n System.err.println(\"__\");\n }\n\n }",
"public void setRemainingToScenery(){\n\t\tfor(int i=0;i<grid.length;i++){\n\t\t\tfor(int j=0;j<grid[0].length;j++){\n\t\t\t\tif(grid[i][j]==null)\n\t\t\t\t\tgrid[i][j]=new Scenery(i*grid[0].length+j);\n\t\t\t}\n\t\t}\n\t}",
"public void clearTiles() {\r\n\r\n for (int i = 0; i < 16; i += 1) {\r\n tiles[i] = 0;\r\n }\r\n boardView.invalidate();\r\n placedShips = 0;\r\n }",
"public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }",
"public TrapTiles()\r\n {\r\n id = 604 ; \r\n }",
"void removeAllSpawn();",
"@Test\n public void TestPlaceSourceOccupied() throws Exception {\n for (int i = 0; i < WIDTH; i++) {\n heatGrid.placeSource(\"l\", i, i);\n }\n\n // Now try to place a bunch of glaciers along the diagonal\n for (int i = 0; i < WIDTH; i++) {\n assertFalse(heatGrid.placeSource(\"g\", i, i));\n }\n }",
"protected void calculatePathfindingGrid(Tile[] tiles) {\n \n if(tiles == null) {\n return;\n }\n \n /**\n * Problem:\n * Because the tile size used by the path finding engine will most likely be\n * different from that of the visual effect size, we have to\n * look at all the visual tiles and judge whether they are blocking of\n * particular kinds of unit.\n * \n * Algorithm:\n * For land, air and sea take a look at the number of blocking/non-blocking\n * tiles there are and if there is over 50% either way then that will be the\n * PathTiles result.\n */\n \n // First get the size of the map in PathTile(s)\n int rows = getActualHeightInTiles();\n int cols = getActualWidthInTiles();\n \n // Calculate the number of tiles to a PathTile\n int tilesPerActualTilesX = getActualTileWidth() / getTileWidth();\n int tilesPerActualTilesY = getActualTileHeight() / getTileHeight();\n int tileCount = tilesPerActualTilesX * tilesPerActualTilesY;\n \n int tileCols = getWidthInTiles();\n \n // Create an array\n mPathTiles = new PathTile[ rows * cols ];\n \n // Iterate through these tiles\n for(int x = 0; x < cols ; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Setup some variables\n int blockSea, blockAir, blockLand;\n blockAir = blockLand = blockSea = 0;\n \n // Figure out the percentage of each block\n for(int tx = 0; tx < tilesPerActualTilesX; tx++) {\n for(int ty = 0; ty < tilesPerActualTilesY; ty++) {\n \n int tileX = (x * tilesPerActualTilesX) + tx;\n int tileY = (y * tilesPerActualTilesY) + ty;\n \n Tile thisTile = tiles[ (tileY * tileCols) + tileX ];\n \n if(thisTile.blockAir()) {\n blockAir++;\n }\n \n if(thisTile.blockLand()) {\n blockLand++;\n }\n \n if(thisTile.blockSea()) {\n blockSea++;\n }\n \n }\n }\n \n // Calculate percentage\n float a,b,c;\n a = (float)blockAir / (float)tileCount;\n b = (float)blockLand / (float)tileCount;\n c = (float)blockSea / (float)tileCount;\n \n // Set the new tile\n mPathTiles[ (y * cols) + x ] = new PathTile( (a >= .5f), (b >= .5f), (c >= .5f) );\n \n // System.out.println(\"Grid \" + ((y * cols) + x) + \" (\" + x + \", \" + y + \") Air: \" + a + \" Land: \" + b + \" Sea: \" + c);\n \n }\n }\n \n }",
"public void reset() {\n\t\ttilePath.clear();\n\t}",
"public Tiles() {\n basketWeave();\n med1();\n med2();\n }",
"@Override\n public void clear()\n {\n explore(null);\n }",
"@WorkerThread\n private static void checkTiles(final HashMap<String, String> missingTiles, final ArrayList<Download> missingDownloads, final AtomicBoolean hasUnsupportedTiles) {\n final List<ContentStorage.FileInformation> files = ContentStorage.get().list(PersistableFolder.ROUTING_TILES.getFolder());\n for (ContentStorage.FileInformation fi : files) {\n if (fi.name.endsWith(BROUTER_TILE_FILEEXTENSION)) {\n missingTiles.remove(fi.name);\n }\n }\n\n // read list of available tiles from the server, if necessary\n if (!missingTiles.isEmpty()) {\n final HashMap<String, Download> tiles = BRouterTileDownloader.getInstance().getAvailableTiles();\n final ArrayList<String> filenames = new ArrayList<>(missingTiles.values()); // work on copy to avoid concurrent modification\n for (String filename : filenames) {\n if (tiles.containsKey(filename)) {\n missingDownloads.add(tiles.get(filename));\n } else {\n missingTiles.remove(filename);\n hasUnsupportedTiles.set(true);\n }\n }\n }\n }",
"private void spawnTrees() {\n int spawnNum = this.random.nextInt(10) + 20;\n if (this.treeTiles.size() >= 30) { // max 30 trees\n spawnNum = 0;\n }\n for (int i = 0; i < spawnNum; i++) {\n String tree = trees[this.random.nextInt(trees.length)];\n int y = this.random.nextInt(this.getMap().length);\n Tile spawnTile = this.getMapAt(this.random.nextInt(this.getMap()[y].length), y);\n Tile centerTile;\n if ((spawnTile != null) && this.inMap(spawnTile.getX()-2, spawnTile.getY()-1)) {\n centerTile = this.getMapAt(spawnTile.getX()-2, spawnTile.getY()-1);\n } else {\n centerTile = null;\n }\n if ((spawnTile != null) && (spawnTile instanceof GroundTile)\n && (centerTile != null) && (centerTile instanceof GroundTile)\n && (spawnTile.getContent() == null)) {\n ExtrinsicTree newTree = new ExtrinsicTree(tree);\n newTree.setStage(17);\n spawnTile.setContent(newTree);\n this.treeTiles.add(spawnTile);\n }\n }\n }",
"public static int getCount()\n\t{\n\t\treturn projectileCount;\n\t}",
"private void computeMovableTilesToDisplayToPlayer() {\n \tfor (Entity enemyEntity : allCreaturesOfCurrentRoom) {\n \t\tAIComponent aiComponent = Mappers.aiComponent.get(enemyEntity);\n \t\tif (aiComponent.getSubSystem() != null) {\n \t\t\tboolean handledInSubSystem = aiComponent.getSubSystem().computeMovableTilesToDisplayToPlayer(this, enemyEntity, room);\n \t\t\tif (handledInSubSystem) continue;\n \t\t}\n \t\t\n \tMoveComponent moveCompo = Mappers.moveComponent.get(enemyEntity);\n \tAttackComponent attackCompo = Mappers.attackComponent.get(enemyEntity);\n \t\n \t\t//clear the movable tile\n \t\tmoveCompo.clearMovableTiles();\n \t\tif (attackCompo != null) attackCompo.clearAttackableTiles();\n \t\t\n \t\tmoveCompo.setMoveRemaining(moveCompo.getMoveSpeed());\n \t\t\n \t//Build the movable tiles list\n \t\ttileSearchService.buildMoveTilesSet(enemyEntity, room);\n \t\tif (attackCompo != null) attackTileSearchService.buildAttackTilesSet(enemyEntity, room, false, true);\n \t\tmoveCompo.hideMovableTiles();\n \t\tif (attackCompo != null) attackCompo.hideAttackableTiles();\n \t}\n }",
"private void shootLaser() {\n\t\tfor(int i = 0; i<lasers.size(); i++) {\n\t\t\tif(lasers.get(i).getLayoutY() > -lasers.get(i).getBoundsInParent().getHeight() ) { //-37 wenn unterhalb des windows \n\t\t\t\tlasers.get(i).relocate(lasers.get(i).getLayoutX(), lasers.get(i).getLayoutY() - 3); //um 3 pixel nach oben bewegen\n\t\t\t}\n\t\t\telse { //wenn oberhalb des windows \n\t\t\t\t\n\t\t\t\tgamePane.getChildren().remove(lasers.get(i));\n\t\t\t\tlasers.remove(i);\n\t\t\t\tSystem.out.println(lasers.size());\n\t\t\t}\n\t\t}\n\t}",
"private ContainerWithMostWater() {\n }",
"protected Tile[] newTiles() {\n int len = getWidthInTiles() * getHeightInTiles();\n Tile[] t = new Tile[ len ];\n for(int i = 0; i < len; i++) {\n t[i] = null;\n }\n return t;\n }",
"private void layTiles(TiledMapManager mapManager) {\n board = new Tile[height][width];\n for (int row = 0; row < height; row++) {\n for (int col = 0; col < width; col++) {\n TiledMapTile tile = mapManager.getCell(\"TILES\", row, col).getTile();\n String tileType = (String) tile.getProperties().get(\"Type\");\n Tile currentTile;\n switch (tileType) {\n case \"GEAR\":\n boolean clockwise = (boolean) tile.getProperties().get(\"Clockwise\");\n currentTile = new Gear(row, col, clockwise);\n break;\n case \"HOLE\":\n currentTile = new Hole(row, col);\n break;\n case \"DOCK\":\n int number = (Integer) tile.getProperties().get(\"Number\");\n currentTile = new Dock(number, row, col);\n docks.add((Dock) currentTile);\n break;\n case \"CONVEYOR_BELT\":\n currentTile = installConveyorBelt(mapManager, row, col);\n break;\n case \"REPAIR_SITE\":\n currentTile = new RepairSite(row, col);\n break;\n default:\n currentTile = new Tile(row, col);\n break;\n }\n layTile(currentTile);\n }\n }\n Collections.sort(docks);\n }",
"private void getAllContainers() {\n AID ams = getAMS();\n QueryPlatformLocationsAction queryPlatformLocationsAction = new QueryPlatformLocationsAction();\n sendRequest(new Action(ams, queryPlatformLocationsAction));\n MessageTemplate mt = MessageTemplate.and(\n MessageTemplate.MatchSender(getAMS()),\n MessageTemplate.MatchPerformative(ACLMessage.INFORM));\n ACLMessage resp = blockingReceive(mt);\n ContentElement ce = null;\n try {\n ce = getContentManager().extractContent(resp);\n } catch (Codec.CodecException e) {\n e.printStackTrace();\n } catch (OntologyException e) {\n e.printStackTrace();\n }\n Result result = (Result) ce;\n jade.util.leap.Iterator it = result.getItems().iterator();\n while (it.hasNext()) {\n Location loc = (Location) it.next();\n containersOnPlatform.put(loc.getName(), loc);\n }\n }",
"public Tour(){\n for (int i = 0; i < TourManager.numberOfCities(); i++) {\n tour.add(null);\n }\n }",
"public boolean placementDone() {return placedShips == 4;}",
"public static byte[] getGoalTiles() {\n return GOAL_TILES;\n }",
"public void displayTiles() {\n System.out.println(\"\\n Tiles of this game : \");\n String phrase = \"No army deployed on this tile !\";\n for (Tile tile : this.board.getAllTiles()) {\n if (!tile.isEmpty()) {\n System.out.print(\" { Type tile : \" + tile.getCharacter() + \", Position Y : \" + tile.getPosX() +\", Position X : \" + tile.getPosY() + \", State : Occuped, Player : \" + tile.getPlayer().getName() + \", Army : \" + tile.getPersonnage().getName() + \", Army size : \" +((Army) tile.getPersonnage()).getArmySize() + \"}\\n\");\n } else {\n System.out.print(\" { Type tile : \" + tile.getCharacter() +\", Position Y : \" + tile.getPosX() +\", Position X : \" + tile.getPosY()+ \", State : \"+ phrase + \" }\\n\");\n }\n }\n }",
"void getPlacements() {\n previousTotalPlacement = 0;\n loadingPlacement = true;\n page_to_call_placement = 1;\n isFirstRunPlacement = true;\n isLastPageLoadedPlacement = false;\n lastPageFlagPlacement = 0;\n Log.d(\"PlacmentTesting\", \"previousTotalPlacement: \" + previousTotalPlacement);\n Log.d(\"PlacmentTesting\", \"page_to_call_placement: \" + page_to_call_placement);\n Log.d(\"PlacmentTesting\", \"lastPageFlagPlacement: \" + lastPageFlagPlacement);\n\n GetPlacementsByAdminMetadata();\n\n }",
"@Test\n public void testReportIteration_noIterationSet() throws Throwable {\n ArgumentCaptor<Description> captor = ArgumentCaptor.forClass(Description.class);\n RunNotifier notifier = mock(RunNotifier.class);\n mRunner = spy(new LongevityClassRunner(NoOpTest.class));\n mRunner.run(notifier);\n verify(notifier).fireTestStarted(captor.capture());\n Assert.assertFalse(\n \"Description class name should not contain the iteration number.\",\n captor.getValue()\n .getClassName()\n .matches(\n String.join(\n LongevityClassRunner.ITERATION_SEP_DEFAULT,\n \"^.*\",\n \"[0-9]+$\")));\n }",
"public void reset() {\n unvisitedPOIs = new LinkedList<>(instance.getPlaceOfInterests());\n unvisitedPOIs.remove(instance.getStartPOI());\n unvisitedPOIs.remove(instance.getEndPOI());\n\n // initially, all the unvisited POIs should be feasible.\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n feasiblePOIs.remove(instance.getStartPOI());\n feasiblePOIs.remove(instance.getEndPOI());\n\n tour.reset(instance);\n currDay = 0;\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }",
"private void cp1PlaceShips(){\n\t\tint start = 0;\n\t\tint stop = 4;\n\t\tboolean placed;\n\n\t\tfor(int x = start; x <= stop; x++){\n\t\t\tplaced = false;\n\n\t\t\twhile(!placed)\n\t\t\t{\n\t\t\t\tranX = ranNum.nextInt(600);\n\t\t\t\tranY = ranNum.nextInt(600);\n\t\t\t\tplaced = true;\n\n\t\t\t\tships[x] = new Ship(x, shipNames[x], 'H', shipPlayer[x], shipWidth[x], shipHeight[x], ranX, ranY, shipSize[x]);\n\t\t\t\tships[x].setLocation(ships[x].getX(), ships[x].getY());\n\t\t\t\tships[x].setSize(ships[x].getWidth(), ships[x].getHeight());\n\n\t\t\t\tif(ships[x].getX() + ships[x].getWidth() < boardOne.getWidth() && ships[x].getY() + ships[x].getHeight() < boardOne.getHeight()){\n\t\t\t\t\tfor(int y = start; y < x; y++){\n\t\t\t\t\t\tif(ships[x].getBounds().intersects(ships[y].getBounds())){\n\t\t\t\t\t\t\tplaced = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tplaced = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tboardOne.add(ships[x]);\n\t\t}\n\t}",
"public boolean isGoal() {\n boolean result = false; \n for (int i = 0; i < this.N; i++) {\n for (int j = 0; j < this.N; j++) {\n int idx = (i * this.N) + (j + 1);\n if (idx != N * N - 1 && tiles[i][j] != idx) {\n return false;\n } \n if (idx == N * N - 1) {\n if (tiles[N - 1][N - 1] == 0) return true;\n return false;\n }\n }\n }\n return result;\n }",
"public void removeAllAgents()\n/* 76: */ {\n/* 77:125 */ this.mapPanel.removeAllAgents();\n/* 78: */ }",
"public static void other() {\n // This is how to generate test data for the grid. (Use the VisibilityGraph algorithm to generate optimal path lengths)\n// ArrayList<Point> points = ReachableNodes.computeReachable(gridGraph, 5, 5);\n// System.out.println(points.size());\n//\n// generateRandomTestDataAndPrint(gridGraph);\n\n //This is how to conduct a running time / path length test for tha algorithm:\n// TestResult test1 = testAlgorithm(gridGraph, sx, sy, ex, ey, 1, 1);\n// System.out.println(test1);\n// TestResult test2 = testAlgorithm(gridGraph, sx, sy, ex, ey, 30, 25);\n// System.out.println(test2);\n }",
"@Test\n\tpublic void testTiles() throws Exception {\n\n\t\tRelatedTilesUtils.testTiles(geoPackage);\n\n\t}",
"public static List<MapTile> findPath(MovableObject mO, GameObject destination) {\n List<MapTile> openList = new LinkedList<>();\n List<MapTile> closedList = new LinkedList<>();\n List<MapTile> neighbours = new ArrayList<>();\n Point objectTileCoord = mO.getGridCoordinates();\n Point destinationTileCoord = destination.getGridCoordinates();\n MapTile currentTile;\n try {\n currentTile = mapGrid.mapGrid[objectTileCoord.x][objectTileCoord.y];\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.print(\"Error while getting current tile for pathfinding. Trying to adapt coords.\");\n if (mO.getX() >= MapManager.getWorldWidth()) {\n objectTileCoord.x -= 1;\n }\n if (mO.getY() >= MapManager.getWorldHeight()) {\n objectTileCoord.y -= 1;\n }\n if (mO.getY() >= MapManager.getWorldHeight() && mO.getX() >= MapManager.getWorldWidth()) {\n objectTileCoord.x -= 1;\n objectTileCoord.y -= 1;\n }\n currentTile = mapGrid.mapGrid[objectTileCoord.x][objectTileCoord.y];\n }\n\n currentTile.setParentMapTile(null);\n currentTile.totalMovementCost = 0;\n openList.add(currentTile);\n\n boolean notDone = true;\n\n while (notDone) {\n neighbours.clear();\n currentTile = getLowestCostTileFromOpenList(openList, currentTile);\n closedList.add(currentTile);\n openList.remove(currentTile);\n\n //ReachedGoal?\n if ((currentTile.xTileCoord == destinationTileCoord.x) && (currentTile.yTileCoord == destinationTileCoord.y)) {\n try {\n return getResultListOfMapTiles(currentTile);\n } catch (Exception e) {\n System.out.println(\"closed list size: \" + closedList.size());\n throw e;\n }\n }\n\n neighbours.addAll(currentTile.getNeighbourTiles());\n neighbours.removeAll(closedList);\n\n for (MapTile mapTile : neighbours) {\n if (openList.contains(mapTile)) {\n // compare total movement costs.\n if (mapTile.totalMovementCost > currentTile.getMovementCostToTile(mapTile) + currentTile.totalMovementCost) {\n mapTile.setParentMapTile(currentTile);\n mapTile.totalMovementCost = currentTile.getMovementCostToTile(mapTile) + currentTile.totalMovementCost;\n }\n } else {\n mapTile.setParentMapTile(currentTile);\n mapTile.totalMovementCost = currentTile.totalMovementCost + currentTile.getMovementCostToTile(mapTile);\n openList.add(mapTile);\n }\n }\n }\n return null;\n }",
"public void makeEmpty() {\n // remove Squares until empty\n while (!exploreList.isEmpty()) {\n exploreList.getNext();\n }\n }",
"@Test\n public void testSmallPillarNeighbors(){\n //test pillar at (0,0)\n pillar = smallPillarMap.get(Maze.position(0,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (1,0)\n pillar = smallPillarMap.get(Maze.position(1,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n\n //test pillar at (2,0)\n pillar = smallPillarMap.get(Maze.position(2,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n\n //test pillar at (0,1)\n pillar = smallPillarMap.get(Maze.position(0,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 2)));\n\n //test pillar at (1,1)\n pillar = smallPillarMap.get(Maze.position(1,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(4, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (2,1)\n pillar = smallPillarMap.get(Maze.position(2,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 0)));\n\n //test pillar at (0,2)\n pillar = smallPillarMap.get(Maze.position(0,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (1,2)\n pillar = smallPillarMap.get(Maze.position(1,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n\n //test pillar at (2,2)\n pillar = smallPillarMap.get(Maze.position(2,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n }",
"private void setAvailableFromLastMove(int large, int smallx) {\n clearAvailable();\n // Make all the tiles at the destination available\n if (large != -1) {\n\n\n for (int i = 0; i < 9; i++) {\n for (int dest = 0; dest < 9; dest++) {\n if (!phaseTwo) {\n if (!done) {\n if (i == large) {\n TileAssignment5 tile = mSmallTiles[large][dest];\n if ((tile.getOwner() == TileAssignment5.Owner.NOTCLICKED))\n addAvailable(tile);\n\n switch (smallx) {\n case 0:\n int a[] = adjacencyList.get(0);\n\n for (int x : a) {\n TileAssignment5 tile1 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n //}\n }\n break;\n case 1:\n int a1[] = adjacencyList.get(1);\n\n for (int x : a1) {\n TileAssignment5 tile2 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n //}\n }\n break;\n case 2:\n int a2[] = adjacencyList.get(2);\n for (int x : a2) {\n TileAssignment5 tile3 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile3)) {\n mAvailable.remove(tile3);\n // }\n }\n break;\n case 3:\n int a3[] = adjacencyList.get(3);\n for (int x : a3) {\n TileAssignment5 tile4 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile4)) {\n mAvailable.remove(tile4);\n // }\n }\n break;\n case 4:\n int a4[] = adjacencyList.get(4);\n for (int x : a4) {\n TileAssignment5 tile5 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile5)) {\n mAvailable.remove(tile5);//}\n\n }\n break;\n case 5:\n int a5[] = adjacencyList.get(5);\n for (int x : a5) {\n TileAssignment5 tile6 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile6)) {\n mAvailable.remove(tile6);//}\n\n }\n break;\n case 6:\n int a6[] = adjacencyList.get(6);\n for (int x : a6) {\n TileAssignment5 tile7 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile7)) {\n mAvailable.remove(tile7);//}\n\n }\n break;\n case 7:\n int a7[] = adjacencyList.get(7);\n for (int x : a7) {\n TileAssignment5 tile8 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile8)) {\n mAvailable.remove(tile8);//}\n\n }\n break;\n case 8:\n int a8[] = adjacencyList.get(8);\n for (int x : a8) {\n TileAssignment5 tile9 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile9)) {\n mAvailable.remove(tile9);//}\n\n }\n break;\n }\n\n } else {\n if (DoneTiles.contains(i)) {\n continue;\n }\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.FREEZED);\n tile.updateDrawableState('a', 0);\n }\n } else { //OnDOnePressed\n if (DoneTiles.contains(i)) {\n continue;\n }\n\n // Log.d(\"Comes \", \"Hereeee\");\n if (i != large) {//Correct answer\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.NOTCLICKED);\n addAvailable(tile);\n tile.updateDrawableState('a', 0);\n //done =false;\n }\n }\n\n\n }else {\n/*\n ileAssignment5 thistile = mSmallTiles[i][dest];\n if(((Button)thistile.getView()).getText().charAt(0)==' '){\n mAvailable.remove(thistile);\n thistile.updateDrawableState('a', 0);\n }\n*/\n\n\n if (i == large) {\n if (dest == smallx) {\n TileAssignment5 tile1 = mSmallTiles[large][dest];\n tile1.setOwner(TileAssignment5.Owner.CLICKED);\n if (mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n }\n tile1.updateDrawableState('a', 0);\n\n } else {\n TileAssignment5 tile2 = mSmallTiles[large][dest];\n if (!(tile2.getOwner() == TileAssignment5.Owner.CLICKED)) {\n\n tile2.setOwner(TileAssignment5.Owner.FREEZED);\n }\n if (mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n }\n tile2.updateDrawableState('a', 0);\n }\n\n\n } else {\n\n\n TileAssignment5 tile3 = mSmallTiles[i][dest];\n if (!(tile3.getOwner() == TileAssignment5.Owner.CLICKED)) {\n tile3.setOwner(TileAssignment5.Owner.NOTCLICKED);\n }\n // if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n\n if ((!mAvailable.contains(tile3))&&(tile3.getView().toString().charAt(0)!=' ')){\n mAvailable.add(tile3);\n }\n\n\n tile3.updateDrawableState('a', 0);\n\n\n\n TileAssignment5 tile = mSmallTiles[i][dest];\n if(((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' '){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }\n\n\n\n\n\n\n\n\n\n /*\n\n\n\n\n\n\n ileAssignment5 tile = mSmallTiles[i][dest];\n ileAssignment5 tile = mSmallTiles[i][dest];\n try{\n if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }}catch (ArrayIndexOutOfBoundsException e){\n\n\n }catch ( StringIndexOutOfBoundsException e){\n\n }\n\n*/\n }\n\n }\n }\n }\n }\n // If there were none available, make all squares available\n if (mAvailable.isEmpty()&&large==-1) {\n setAllAvailable();\n }\n }",
"private void cleanUpAfterMove(Unit unit){\n\t\t\t//add current location\n\t\t\tpastLocations.add(unit.location().mapLocation());\n\t\t\t//get rid of oldest to maintain recent locations\n\t\t\tif (pastLocations.size()>9)\n\t\t\t\tpastLocations.remove(0);\t\n\t}",
"private void reset() {\n clearSolutions();\n clearHeapUsages(this.pm_heap);\n placeMappings(this.pm_heap, this.instance.getPhysicalMachines(), this.mappings);\n }",
"@Test\r\n\tpublic void arenaHasNoFightersAtStart() {\r\n\t\tSystem.out.println(\"+++++arenaIsEmptyAtStart++++++\");\r\n\t\tArena arena = new Arena();\r\n\t\tassertTrue(arena.isEmpty());\r\n\t}",
"@Override\n\tpublic BoardLocation findBestLocWhenStuck() {\n\t\treturn null;\n\t}",
"public void testBoardAvailablePositions() {\n \tassertTrue(board6.hasAvailablePositionsForTile());\n \tList<PlacementLocation> expected = new ArrayList<PlacementLocation>();\n \tboard6.place(new Placement(Color.RED, 5, 21, Color.RED, 4, 16));\n \tboard6.place(new Placement(Color.RED, 4, 12, Color.RED, 5, 14));\n \tboard6.place(new Placement(Color.RED, 4, 8, Color.RED, 5, 11));\n \tboard6.place(new Placement(Color.RED, 5, 4, Color.RED, 4, 4));\n \tboard6.place(new Placement(Color.RED, 5, 1, Color.RED, 4, 0));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(5, 26))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 20))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(5, 24))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 29))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 30))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(6, 31))));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(5, 23))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(3, 15))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(5, 27))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 33))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 35))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 37))));\n \t\n \t\n \tfor (PlacementLocation location : board6.getAvailablePositionsForTile()) {\n \t\tif (!expected.contains(location))\n \t\t\tSystem.out.println(\"expected does not contain location: \" + location);\n \t}\n \tSet<PlacementLocation> locations = board6.getAvailablePositionsForTile();\n \tfor (PlacementLocation location : locations) {\n \t\tSystem.out.println(location);\n \t}\n \tfor (PlacementLocation location : expected) {\n \t\tif (!locations.contains(location))\n \t\t\tSystem.out.println(\"expected2 does not contain location: \" + location);\n \t}\n \t\n \tassertEquals(expected, board6.getAvailablePositionsForTile());\n \t\n \t\n }",
"void reset() {\n setPosition(-(TILE_WIDTH * CYCLE), TOP_Y);\n mySequenceIndex = 0;\n setAnimatedTile(myAnimatedTileIndex, FRAME_SEQUENCE[mySequenceIndex]);\n }",
"@Test\n public void testNoLinkPillars(){\n try {\n smallMaze.linkPillars(Maze.position(0, 0), Maze.position(2,0));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown.\");\n }\n\n pillar = smallPillarMap.get(Maze.position(0,0));\n pillarNeighbors = pillar.getNeighbors();\n assertFalse(pillarNeighbors.containsKey(new Pillar(2, 0)));\n\n try {\n smallMaze.linkPillars(Maze.position(1, 0), Maze.position(2,2));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown.\");\n }\n\n pillar = smallPillarMap.get(Maze.position(1,0));\n pillarNeighbors = pillar.getNeighbors();\n assertFalse(pillarNeighbors.containsKey(new Pillar(2, 2)));\n\n try {\n smallMaze.linkPillars(Maze.position(1, 2), Maze.position(0,0));\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown.\");\n }\n\n pillar = smallPillarMap.get(Maze.position(1,2));\n pillarNeighbors = pillar.getNeighbors();\n assertFalse(pillarNeighbors.containsKey(new Pillar(0, 0)));\n }",
"private void prepare()\n {\n /**build the outer wall actor\n * width of wall: 50\n */\n //top wall\n for(int top = 0; top < 59; top++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25 + top * 50, 25);\n }\n //down wall\n for(int down = 0; down < 59; down++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25 + down * 50, 675);\n }\n //left wall\n for(int left = 1; left < 13; left++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25, 25 + left * 50);\n }\n //right wall\n for(int right = 1; right < 13; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2925, 25 + right * 50);\n }\n \n /**starting point of the cat */\n P1 p1 = new P1();\n addObject(p1, 133, 321);\n p1.setLocation(575, 125);\n \n //attach obsever to the cat\n HealthPointObserver hpObserver = new HealthPointObserver(p1);\n addObject(hpObserver, 800, 100);\n \n \n \n \n \n /**first page\n * x: 25 - 1025\n */\n //starting location\n for(int start = 0; start < 17; start++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(175 + start * 50, 175);\n }\n //page seperator\n for(int right = 1; right < 10; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1025, 25 + right * 50);\n }\n //jumpers\n Wall wall1 = new Wall();\n addObject(wall1, 32, 382);\n wall1.setLocation(175, 625);\n for(int jump = 0; jump < 2; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(275, 575 + jump * 50);\n }\n for(int jump = 0; jump < 4; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(375, 475 + jump * 50);\n }\n for(int jump = 0; jump < 4; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(525, 475 + jump * 50);\n }\n //set thorn\n Thorn thorn1 = new Thorn();\n addObject(thorn1, 32, 382);\n thorn1.setLocation(625, 625);\n Thorn thorn2 = new Thorn();\n addObject(thorn2, 32, 382);\n thorn2.setLocation(775, 625);\n Thorn thorn3 = new Thorn();\n addObject(thorn3, 32, 382);\n thorn3.setLocation(825, 625);\n \n /**second page \n * x: 1025 - 1975\n */\n //steps for left-top area\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1225 + step * 50, 575);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1075 + step * 50, 475);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1225 + step * 50, 375);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1075 + step * 50, 275);\n }\n Wall step1 = new Wall();\n addObject(step1, 32, 382);\n step1.setLocation(1225, 175);\n Wall step2 = new Wall();\n addObject(step2, 32, 382);\n step2.setLocation(1775, 125);\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1875 + step * 50, 125);\n }\n //area seperator\n for(int right = 3; right < 13; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1325, 25 + right * 50);\n }\n for(int right = 0; right < 8; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1375 + right * 50, 175);\n }\n //steps for right-down area\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1575 + step * 50, 575);\n }\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1375 + step * 50, 475);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1825, step * 50 + 275);\n }\n for(int step = 0; step < 7; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1575 + step * 50, 375);\n }\n for(int step = 0; step < 5; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1775, step * 50 + 425);\n }\n //page seperator\n for(int right = 1; right < 11; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1975, 25 + right * 50);\n }\n //set thorn\n Thorn thorn4 = new Thorn();\n addObject(thorn4, 32, 382);\n thorn4.setLocation(1125, 225);\n Thorn thorn5 = new Thorn();\n addObject(thorn5, 32, 382);\n thorn5.setLocation(1275, 325);\n Thorn thorn6 = new Thorn();\n addObject(thorn6, 32, 382);\n thorn6.setLocation(1875, 325);\n Thorn thorn7 = new Thorn();\n addObject(thorn7, 32, 382);\n thorn7.setLocation(1825, 625);\n Thorn thorn8 = new Thorn();\n addObject(thorn8, 32, 382);\n thorn8.setLocation(1825, 225);\n \n /**third page \n * x: 1975 - 2925\n */\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2125 + step * 150, 625);\n }\n //jumper\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2025, step * 150 + 225);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2125, step * 150 + 175);\n }\n // Wall jump1 = new Wall();\n //addObject(jump1, 32, 382);\n //jump1.setLocation(2125, 525);\n for(int step = 0; step < 8; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2175, step * 50 + 175);\n }\n //hidden thorn\n Thorn thorn9 = new Thorn();\n addObject(thorn9, 32, 382);\n thorn9.setLocation(2225, 165);\n Wall jump2 = new Wall();\n addObject(jump2, 32, 382);\n jump2.setLocation(2275, 175);\n Wall jump3 = new Wall();\n addObject(jump3, 32, 382);\n jump3.setLocation(2225, 175);\n Wall jump4 = new Wall();\n addObject(jump4, 32, 382);\n jump4.setLocation(2325, 275);\n Wall jump5 = new Wall();\n addObject(jump5, 32, 382);\n jump5.setLocation(2525, 275);\n Wall jump6 = new Wall();\n addObject(jump6, 32, 382);\n jump6.setLocation(2225, 375);\n Wall jump7 = new Wall();\n addObject(jump7, 32, 382);\n jump7.setLocation(2275, 425);\n for(int step = 0; step < 6; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2425 + step * 50, 425);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2625 + step * 50, 375);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2725 + step * 50, 325);\n }\n Wall jump8 = new Wall();\n addObject(jump8, 32, 382);\n jump8.setLocation(2825, 275);\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2825 + step * 50, 125);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2675, step * 50 + 475);\n }\n //set thorn\n Thorn thorn10 = new Thorn();\n addObject(thorn10, 32, 382);\n thorn10.setLocation(2825, 175);\n Thorn thorn11 = new Thorn();\n addObject(thorn11, 32, 382);\n thorn11.setLocation(2825, 625);\n Thorn thorn12 = new Thorn();\n addObject(thorn12, 32, 382);\n thorn12.setLocation(2775, 275);\n Thorn thorn13 = new Thorn();\n addObject(thorn13, 32, 382);\n thorn13.setLocation(2675, 325);\n Thorn thorn14 = new Thorn();\n addObject(thorn14, 32, 382);\n thorn14.setLocation(2875, 425);\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2025, sharp * 150 + 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2125, sharp * 150 + 225);\n }\n //wheel-thorn\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 200, 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 200, 225);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2375 + sharp * 200, 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 200, 325);\n }\n //three-limit\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 150, 475);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 150, 575);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2225 + sharp * 150, 525);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 150, 525);\n }\n }",
"void check_missile_collisions() {\n for (int i = ship.missiles.size()-1; i >= 0; i --) {\n Missile missile = ship.missiles.get(i);\n for (int j = aliens.size()-1; j >= 0; j --) {\n Alien alien = aliens.get(j);\n boolean hit = alien.checkMissileCollisions(missile);\n if (hit) {\n alien_destroyed_audio.play();\n\n // Move the missile off-screen to be deleted by delete_missiles()\n missile.moveOffScreen();\n\n // Update the score, speed up remaining aliens, remove the alien\n update_score(alien.points);\n Alien.speed_up();\n alien_audio_intervals = (long) (500000000 - (100000000 * Alien.alien_speed));\n ImageView alien_image_view = alien_image_views.get(j);\n game_pane.getChildren().remove(alien_image_view);\n alien_image_views.remove(j);\n aliens.remove(alien);\n break;\n }\n }\n }\n\n // Check if any alien missiles hit the ship\n for (int i = Alien.missiles.size()-1; i >= 0; i --) {\n Missile missile = Alien.missiles.get(i);\n // Only check missiles that have reached the y-coordinate of the player\n if (missile.y_position+missile.missile_height >= ship.y_position) {\n boolean hit = ship.checkMissileCollisions(missile);\n if (hit) {\n ship_destroyed_clip.play();\n\n // Player loses a life\n lives -= 1;\n lives_text.setText(\"Lives: \" + lives);\n\n // Ship and missiles not respawn/removed for last life so that player can see how they died\n if (lives > 0){\n // Move the missile off-screen, deleted by delete_missiles()\n missile.moveOffScreen();\n ship_respawn();\n }\n break;\n }\n }\n }\n }",
"public void endOfLife() {\r\n for (SeleneseQueue frameQ : frameAddressToSeleneseQueue.values()) {\r\n frameQ.endOfLife();\r\n }\r\n }",
"private static void addUnexploredAdjacentTiles(Board board, DisplayTile startTile, HashMap<DisplayTile, DisplayTile> chainedTiles, LinkedList<DisplayTile> tilesToExplore) {\n\t\tif (startTile.isRoomTile()) {\n\t\t\tfor (DisplayTile exitTile : board.getFreeExitTiles(startTile.getRoom())) \n\t\t\t\taddUnexploredTile(exitTile, chainedTiles, tilesToExplore);\n\t\t}\n\t\telse {\n\t\t\tfor (Direction direction : DisplayTile.Direction.values()) {\n\t\t\t\tDisplayTile adjacentTile = board.getAdjacentTile(startTile, direction);\n\t\t\t\tif (isTileAvailable(adjacentTile, direction, chainedTiles))\n\t\t\t\t\taddUnexploredTile(adjacentTile, chainedTiles, tilesToExplore);\n\t\t\t}\n\t\t}\n\t}",
"public void resetHitsLeft(){\n int count = 0;\n for(Ship ship: ships){\n count += ship.getLocation().size();\n }\n hitsLeft = count;\n }",
"public void updateGoalPositions() {\n // Convert angle to unit vector\n double downUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI));\n double sideUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI / 2));\n double sideUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI / 2));\n\n // Create troops and set starting positions for each troop\n double topX = anchorX - (width - 1) * unitStats.spacing * sideUnitX / 2;\n double topY = anchorY - (width - 1) * unitStats.spacing * sideUnitY / 2;\n\n // Update troops goal positions\n for (int row = 0; row < aliveTroopsFormation.length; row++) {\n for (int col = 0; col < aliveTroopsFormation[0].length; col++) {\n BaseSingle troop = aliveTroopsFormation[row][col];\n if (troop == null) continue;\n double xGoalSingle;\n double yGoalSingle;\n // If the person is the flanker, go straight to the assigned position in flankers offset.\n if (state == UnitState.FIGHTING) {\n if (row < flankersCount[col]) {\n double offsetSide = flankerOffsets[col].get(row)[0];\n double offsetDown = flankerOffsets[col].get(row)[1];\n xGoalSingle = this.unitFoughtAgainst.getAverageX() + offsetSide * sideUnitX + offsetDown * downUnitX;\n yGoalSingle = this.unitFoughtAgainst.getAverageY() + offsetSide * sideUnitY + offsetDown * downUnitY;\n } else {\n xGoalSingle = topX + col * unitStats.spacing * sideUnitX\n + (row - flankersCount[col]) * unitStats.spacing * downUnitX;\n yGoalSingle = topY + col * unitStats.spacing * sideUnitY\n + (row - flankersCount[col]) * unitStats.spacing * downUnitY;\n }\n } else {\n xGoalSingle = topX + col * unitStats.spacing * sideUnitX\n + row * unitStats.spacing * downUnitX;\n yGoalSingle = topY + col * unitStats.spacing * sideUnitY\n + row * unitStats.spacing * downUnitY;\n }\n // Set the goal and change the state\n troop.setxGoal(xGoalSingle);\n troop.setyGoal(yGoalSingle);\n troop.setAngleGoal(anchorAngle);\n }\n }\n }",
"@Test(timeout = 4000)\n public void test253() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Component component0 = errorPage0.ol();\n assertEquals(\"wheel_ErrorPage\", errorPage0.getComponentId());\n assertEquals(\"Block_1\", component0.getComponentId());\n }",
"private int findNumOpenSpots(Point p) {\n boolean[][] visited = new boolean[17][17];\n Queue<Point> queue = new LinkedList<Point>();\n queue.add(p);\n\n int numEmpty = 0;\n while (!queue.isEmpty()) {\n Point cp = queue.poll();\n if (gameState[cp.x][cp.y] == States.EMPTY && !visited[cp.x][cp.y]) {\n numEmpty++;\n visited[cp.x][cp.y] = true;\n\n if (cp.x - 1 > 0) {\n queue.add(new Point(cp.x - 1, cp.y));\n }\n if (cp.x + 1 < 16) {\n queue.add(new Point(cp.x + 1, cp.y));\n }\n if (cp.y - 1 > 0) {\n queue.add(new Point(cp.x, cp.y - 1));\n }\n if (cp.y + 1 < 16) {\n queue.add(new Point(cp.x, cp.y + 1));\n }\n }\n }\n return numEmpty;\n }",
"void initAgents() {\n Runtime rt = Runtime.instance();\n\n //Create a container to host the Default Agent\n Profile p = new ProfileImpl();\n p.setParameter(Profile.MAIN_HOST, \"localhost\");\n //p.setParameter(Profile.MAIN_PORT, \"10098\");\n p.setParameter(Profile.GUI, \"false\");\n ContainerController cc = rt.createMainContainer(p);\n\n HashMap<Integer, String> neighbors = new HashMap <Integer, String>();\n neighbors.put(1, \"2, 4, 3\");\n neighbors.put(2, \"1, 3\");\n neighbors.put(3, \"1, 2, 4\");\n neighbors.put(4, \"1, 3, 5\");\n neighbors.put(5, \"4\");\n\n//Create a container to host the Default Agent\n try {\n for (int i = 1; i <= MainController.numberOfAgents; i++) {\n AgentController agent = cc.createNewAgent(Integer.toString(i), \"ru.spbu.mas.DefaultAgent\",\n new Object[]{neighbors.get(i)});\n agent.start();\n }\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n }",
"public void resetHitMarker() {}",
"private void fetchTile() {\n\t\t\tif (tile.getRequest().isCancelled() || tile.isFinal()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tMapSource source = tile.getRequest().getSource();\n\t\t\tProjObj proj = tile.getRequest().getProjection();\n\t\t\tfinal int ppd = tile.getRequest().getPPD();\n\t\t\t\n\t\t\tfor (int fuzzyPPD = ppd/2 ; fuzzyPPD > 1 ; fuzzyPPD /= 2){\t\t\t\t\n\t\t\t\tint ratio = ppd / fuzzyPPD;\n\t\t\t\t\n\t\t\t\t// A tile has 256 pixels on a side.\n\t\t\t\t// Using this method, we can't upscale data to be fuzzy if it's more than 256 times larger \n\t\t\t\t// than the area we are looking to fill. Upscaling data more than 16 times seems unlikely to provide\n\t\t\t\t// any real benefit to the user, so we will quit our search at this point\n\t\t\t\tif (ratio>16) break;\n\t\t\t\t\n\t\t\t\tString tileName = CacheManager.getTileName(\n\t\t\t\t\tsource.getName(), proj, fuzzyPPD,\n\t\t\t\t\ttile.getXtile()/ratio, tile.getYtile()/ratio,\n\t\t\t\t\tsource.hasNumericKeyword());\n\t\t\t\t\n\t\t\t\tBufferedImage tileImage = CacheManager.getTile(source, tileName);\n\t\t\t\t\n\t\t\t\tif (tileImage==null) {\t\t\t\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint xtileindex = tile.getXtile() % ratio;\n\t\t\t\tint ytileindex = ratio - (tile.getYtile() % ratio) - 1;\n\t\t\t\t\n\t\t\t\tdouble fuzzyxstep = MapRetriever.tiler.getPixelWidth() / ratio;\n\t\t\t\tdouble fuzzyystep = MapRetriever.tiler.getPixelHeight() / ratio;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\ttileImage = tileImage.getSubimage((int)(xtileindex * fuzzyxstep), (int)(ytileindex * fuzzyystep), (int)fuzzyxstep, (int)fuzzyystep);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog(e);\n\t\t\t\t\tlog(\"xtileindex:\"+xtileindex+\" fuzzyxstep:\"+fuzzyxstep+\" ytileindex:\"+ytileindex+\" fuzzyystep:\"+fuzzyystep);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlong outputImageSize = (tileImage.getWidth()*ratio)*(tileImage.getHeight()*ratio);\n\t\t\t\tif (outputImageSize <= 0 || outputImageSize > Integer.MAX_VALUE){\n\t\t\t\t\tlog(\"Scaling tile from \"+fuzzyPPD+\" to \"+ppd+\" will result in image size overflow.\"+\n\t\t\t\t\t\t\t\" Stopping further search for lower PPDs for this tile.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttileImage = CacheManager.scaleImage(tileImage, ratio);\n\t\t\t\t\n\t\t\t\tmyRetriever.fuzzyResponse(tile, tileImage);\n\t\t\t}\t\t\t\t\t\t\n\t\t}",
"@Test\n void emptyingTest(){\n Container container = new Container();\n container.fillContainer(Resource.SHIELD);\n container.takeResource();\n assertTrue(container.isEmpty());\n }",
"public void checkForHits(){\n\t\tfor(Missile missile : this.missiles){\n\t\t\tif(missile != null && !missile.isDestroyed()){\n\t\t\t\t// Check buildings\n\t\t\t\tfor (int i = 0; i < this.buildings.length; i++) {\n\t\t\t\t\tif(!this.buildings[i].isDestroyed()){\n\t\t\t\t\t\tif (this.buildings[i].getHitBox().intersects(missile.getHitBox())) {\n\t\t\t\t\t\t\tthis.buildings[i].destroy();\n\t\t\t\t\t\t\tmissile.setDestroyed(true);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Check turrets\n\t\t\t\tfor (int i = 0; i < this.turrets.length; i++ ) {\n\t\t\t\t\tif(!this.turrets[i].isDestroyed()){\n\t\t\t\t\t\tif (!missile.isFriendly() && this.turrets[i].getHitBox().intersects(missile.getHitBox())) {\n\t\t\t\t\t\t\tthis.turrets[i].destroy();\n\t\t\t\t\t\t\tmissile.setDestroyed(true);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Checks Missile vs. Friendly Missile collisions\n\t\t\t\tfor (Missile fMissile : this.friendlyMissiles){\n\t\t\t\t\tif(!fMissile.isDestroyed() && fMissile != null){\n\t\t\t\t\t\tif (missile.getHitBox().intersects(fMissile.getHitBox())) {\n\t\t\t\t\t\t\tfMissile.setDestroyed(true);\n\t\t\t\t\t\t\tmissile.setDestroyed(true);\n\t\t\t\t\t\t\tthis.incrementScore(this.SCORE_INCREASE);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<Location> getEmptyLocations(){\n\n\t\tArrayList<Tile> emptyTiles = getEmptyTiles();\n\t\tArrayList<Location> emptyLocations = new ArrayList<Location>();\n\n\t\tfor (Tile t : emptyTiles) {\n\n\t\t\temptyLocations.add(t.getLocation());\n\t\t}\n\t\treturn emptyLocations;\n\t}",
"void checkPositions() {\n //check if any bullets have hit any asteroids\n for (int i = 0; i < bullets.size(); i++) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHit(bullets.get(i).pos)) {\n shotsHit++;\n bullets.remove(i);//remove bullet\n score +=1;\n break;\n }\n }\n }\n //check if player has been hit\n if (immortalityTimer <=0) {\n for (int j = 0; j < asteroids.size(); j++) {\n if (asteroids.get(j).checkIfHitPlayer(position)) {\n playerHit();\n }\n }\n }\n }",
"public static Tile[][] setUpMap() {\n\n Tile[][] tiles = new Tile[5][9];\n String[][] defaultMapLayout = GameMap.getMapLayout();\n\n for (int i = 0; i < 5; i++) {\n\n for (int j = 0; j < 9; j++) {\n\n String tileType = defaultMapLayout[i][j];\n\n if (tileType.equals(\"P\")) {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"R\")) {\n Tile newTileName = new River();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M1\")) {\n Tile newTileName = new Mountain1();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M2\")) {\n Tile newTileName = new Mountain2();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M3\")) {\n Tile newTileName = new Mountain3();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"SM\")) {\n Tile newTileName = new SwampMonster();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"O\")) {\n Tile newTileName = new Ocean();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"G\")) {\n Tile newTileName = new Grass();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"V\")) {\n Tile newTileName = new Volcano();\n tiles[i][j] = newTileName;\n\n }else {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n newTileName.setOwner(null);\n }\n\n }\n }\n return tiles;\n }",
"public void createLocations() {\n createAirports();\n createDocks();\n createEdges();\n createCrossroads();\n }",
"@Test\n void reEmptyingContainerTest() {\n Container container = new Container();\n container.fillContainer(Resource.SHIELD);\n container.takeResource();\n container.fillContainer(Resource.COIN);\n container.takeResource();\n assertTrue(container.isEmpty());\n }",
"public abstract int getSpotsNeeded();",
"public void fillTable() {\n\t\tif (scroll.getWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tboolean showedNew = false;\n\t\tArrayList<Placeable> currentView = new ArrayList<Placeable>();\n\t\tif (viewing == ViewingMode.MATERIAL) {\n\t\t\tif (loadedMats == null)\n\t\t\t\tloadedMats = repo.getAllMats();\n\t\t\tfor (NamedMaterial m: loadedMats) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t}\n\t\telse if (viewing == ViewingMode.PIECE){\n\t\t\tif (loadedPieces == null)\n\t\t\t\tloadedPieces = repo.getAllPieces();\n\t\t\tfor (Piece m: loadedPieces) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t\tshowedNew = true;\n\t\t}\n\t\t\n\t\ttiles.clearChildren();\n\t\tfloat cellWidth = 64.0f;\n\t\tint numAcross = (int)(scroll.getWidth() / cellWidth);\n\t\tif (numAcross <= 0) {\n\t\t\tnumAcross = 1;\n\t\t}\n\t\tint count = 0;\n\t\tActor tile;\n\t\twhile (count < currentView.size()) {\n\t\t\tfor (int y = 0; y < numAcross; y++) {\n\t\t\t\tif (!showedNew) {\n\t\t\t\t\ttile = new Label(\"New\", TextureOrganizer.getSkin());\n\t\t\t\t\t((Label)tile).setAlignment(Align.center);\n\t\t\t\t\ttile.addListener(new ClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t public void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\t\t\tmakeNew();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tshowedNew = true;\n\t\t\t\t}\n\t\t\t\telse if (count >= currentView.size()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttile = new ColoredRectActor(currentView.get(count++));\n\t\t\t\t\ttile.addListener(new TileListener((ColoredRectActor)tile));\n\t\t\t\t}\n\t\t\t\ttiles.add(tile).width(cellWidth).height(cellWidth).fill();\n\t\t\t}\n\t\t\tif (count < currentView.size())\n\t\t\t\ttiles.row();\n\t\t}\n\t}",
"public void hunt() {\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tif(cells[i].visited == false) {\n\t\t\t\t\n\t\t\t\tint currentIndex = i;\n\t\t\t\t\n\t\t\t\tArrayList<Integer> neighbors = setVisitedNeighbors(i);\n\t\t\t\tint nextIndex = getRandomVisitedNeighborIndex(neighbors);\n\t\t\t\t\t\t\t\t\n\t\t\t\tif(neighbors.size() != 0 ) {\n\t\t\t\t\tcells[currentIndex].visited = true;\n\t\t\t\t\t\n\t\t\t\t\tif(nextIndex == NOT_EXIST) {\n\t\t\t\t\t\tbreak; \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//if there is NO not visited neighbors \n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == -1) {\n\t\t\t\t\t\tcells[currentIndex].border[EAST] = NO_WALL; \t\t\t\t\t\t\t//neighbor is right \n\t\t\t\t\t\tcells[nextIndex].border[WEST] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == width) {\n\t\t\t\t\t\tcells[currentIndex].border[NORTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is up\n\t\t\t\t\t\tcells[nextIndex].border[SOUTH] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == -width) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcells[currentIndex].border[SOUTH] = NO_WALL;\t\t\t\t\t\t\t//neighbor is down\n\t\t\t\t\t\tcells[nextIndex].border[NORTH] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentIndex - nextIndex == 1) {\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tcells[currentIndex].border[WEST] = NO_WALL;\t\t\t\t\t\t\t\t//neighbor is left\n\t\t\t\t\t\tcells[nextIndex].border[EAST] = NO_WALL;\n\t\t\t\t\t}\n\t\t\t\t\tkill(nextIndex);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void reset() {\n state = new boolean[gridSize - 1][gridSize - 1];\n /* Clear state and pellets arrays */\n for (int i = 0; i < state.length; i++) {\n for (int j = 0; j < state.length; j++) {\n state[i][j] = true;\n }\n }\n\n for (int i = 0; i < state.length; i++) {\n for (int j = 0; j < state.length; j++) {\n if (state[i][j])\n pellets[i][j] = true;\n }\n }\n\n //reset traversed\n for (int i = 0; i < traversedTiles.length; i++) {\n for (int j = 0; j < traversedTiles.length; j++) {\n traversedTiles[i][j] = false;\n }\n }\n\n// plannedPoint = new Point();\n plannedPath = new ArrayList<>();\n player.resetPlayer(200, 300);\n ghosts.get(0).resetGhost(180, 180);\n ghosts.get(1).resetGhost(200, 180);\n ghosts.get(2).resetGhost(220, 180);\n updateStateAccordingToMap();\n\n //Resetting total pellet counter\n totalPellets = 0;\n pellets[9][7] = false;\n pellets[8][8] = false;\n pellets[9][8] = false;\n pellets[10][8] = false;\n\n for (int i = 0; i < pellets.length; i++)\n for (int j = 0; j < pellets.length; j++)\n if (pellets[i][j])\n totalPellets++;\n\n System.out.println(\"Total pellets on the map: \" + totalPellets);\n }",
"@Override\n public int getNumXTiles() {\n return getMaxTileX() - getMinTileX() + 1;\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tshowProgress(false, null);\n\t\t\tboolean canRoute = false;\n\t\t\tfor (FloorInfo floorInfo : floorList) {\n\t\t\t\tArrayList<LocatorGeocodeResult> shelfList = floorInfo\n\t\t\t\t\t\t.getShelfList();\n\t\t\t\tif (shelfList.size() > 0) {\n\t\t\t\t\tStopGraphic points[] = new StopGraphic[shelfList.size()];\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tfor (LocatorGeocodeResult result : shelfList) {\n\t\t\t\t\t\tString address = result.getAddress();\n\t\t\t\t\t\tif (index >= shelfList.size()\n\t\t\t\t\t\t\t\t&& !address.equals(floorInfo.getStartPoint())) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tPoint p = (Point) GeometryEngine.project(\n\t\t\t\t\t\t\t\tresult.getLocation(), wm, egs);\n\t\t\t\t\t\tif (address.equals(floorInfo.getStartPoint())) {\n\t\t\t\t\t\t\tpoints[0] = new StopGraphic(p);\n\n\t\t\t\t\t\t\tSystem.out.println(\"起始点x:\" + p.getX() + \" y:\"\n\t\t\t\t\t\t\t\t\t+ p.getY());\n\n\t\t\t\t\t\t} else if (floorInfo.getEndPoint() != null\n\t\t\t\t\t\t\t\t&& address.equals(floorInfo.getEndPoint())) {\n\t\t\t\t\t\t\tpoints[shelfList.size() - 1] = new StopGraphic(p);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpoints[index++] = new StopGraphic(p);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tif (points[0] != null && points.length >= 2) {\n\t\t\t\t\t\tcanRoute = true;\n\t\t\t\t\t\trouteCount++;\n\t\t\t\t\t}\n\t\t\t\t\tfloorInfo.setPoints(points);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tclearAll();\n\t\t\tif (!canRoute) {\n\t\t\t\tToast.makeText(MapActivity.this, \"没有找到足够的点,无法导航\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t} else {\n\t\t\t\tQueryDirections();\n\t\t\t}\n\t\t}",
"@Test\n public void testGetPillars(){\n largePillarMap = largeMaze.getPillars();\n assertEquals(25, largePillarMap.size());\n }",
"private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_width,\n\t\t\t\t\t\trow * tile_height, tile_width, tile_height);\n\n\t\t\t\t// if final, Tile -> blank\n\t\t\t\tif ((row == gridSize - 1) && (column == gridSize - 1)) {\n\t\t\t\t\tbm = Bitmap.createBitmap(tile_width, tile_height,\n\t\t\t\t\t\t\tbm.getConfig());\n\t\t\t\t\tbm.eraseColor(Color.WHITE);\n\t\t\t\t\ttheBlankTile = new Tile(bm, row, column);\n\t\t\t\t\ttiles.add(theBlankTile);\n\t\t\t\t} else {\n\t\t\t\t\ttiles.add(new Tile(bm, row, column));\n\t\t\t\t}\n\t\t\t} // end column\n\t\t} // end row\n\t\tbitmap.recycle();\n\n\t}",
"public ArrayList<Tile> getEmptyTiles(){\n\t\tArrayList<Tile> emptyTiles = new ArrayList<Tile>();\n\t\tArrayList<Tile> boardTiles = getAllBoardTiles();\n\t\tfor (Tile tile : boardTiles) {\n\t\t\tif(tile.getPiece()== null && tile.getColor1()== PrimaryColor.BLACK) {\n\t\t\t\temptyTiles.add(tile);\n\t\t\t}\n\t\t}\n\t\treturn emptyTiles;\n\t}",
"private void setAllAvailable() {\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n Tile tile = mSmallTiles[large][small];\r\n if (tile.getOwner() == Tile.Owner.NEITHER)\r\n addAvailable(tile);\r\n }\r\n }\r\n }"
]
| [
"0.5614898",
"0.54917526",
"0.5220455",
"0.5205102",
"0.5194499",
"0.51744163",
"0.5164465",
"0.51475716",
"0.51364815",
"0.5123781",
"0.5093403",
"0.5089135",
"0.500945",
"0.49993435",
"0.49953637",
"0.4979837",
"0.49792087",
"0.49534273",
"0.4947555",
"0.49452868",
"0.4932134",
"0.49098316",
"0.48914447",
"0.48787123",
"0.4863744",
"0.48578322",
"0.4857592",
"0.4855362",
"0.48265278",
"0.48246458",
"0.48241588",
"0.4823811",
"0.48127767",
"0.4808832",
"0.47906023",
"0.47854275",
"0.47578672",
"0.4750396",
"0.47357276",
"0.47335753",
"0.47224694",
"0.4717008",
"0.47001302",
"0.46989262",
"0.46861544",
"0.4682996",
"0.46768624",
"0.46757472",
"0.46656722",
"0.46603426",
"0.46397784",
"0.46381864",
"0.46300557",
"0.46239403",
"0.462306",
"0.46209684",
"0.46196085",
"0.46123412",
"0.46094635",
"0.45923215",
"0.4584837",
"0.4580909",
"0.45793912",
"0.45791608",
"0.45773184",
"0.4571873",
"0.45629275",
"0.45628825",
"0.45613873",
"0.45595166",
"0.45578378",
"0.45501402",
"0.4548934",
"0.4546439",
"0.45410517",
"0.45404178",
"0.4540081",
"0.45315737",
"0.45306543",
"0.45259202",
"0.45255044",
"0.45246926",
"0.45218888",
"0.45212317",
"0.4517147",
"0.4510769",
"0.45037577",
"0.4497709",
"0.44972712",
"0.4496393",
"0.44942328",
"0.4493115",
"0.44909802",
"0.44902688",
"0.44851643",
"0.4484577",
"0.44843408",
"0.44837087",
"0.4480197",
"0.44772473",
"0.44770393"
]
| 0.0 | -1 |
parameter retirement: true if retirement Start button should be present; false otherwise | public boolean verifyAddInvestmentGoalModalContents(Boolean retirement) {
log("Verifying the contents of the Add Investment Goal modal");
Boolean college = false;
Boolean retire = true;
if ((retirement == true) && (isElementDisplayed(retirementStartBtn, "Start button for retirement") == false)) {
retire = false;
}
if (isElementDisplayed(collegeStartBtn, "Start button for college")) {
college = true;
}
return college && retire;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean raceSelected(){\n\t\tif(btnDwarf.isEnabled() && btnElf.isEnabled() && btnHuman.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public boolean ButtonStatusToRoundTrip(){\n\n wait.until(ExpectedConditions.elementSelectionStateToBe(roundTripButton,false));\n roundTripButton.click();\n System.out.println(\"Round Trip button is clicked\");\n do {\n return true;\n }\n while (roundTripButton.isSelected());\n\n\n }",
"public void updateStartButton(){\n if (getPrimHasRun() == true){\n startButton.setAlpha(0.5f);\n startButton.setClickable(false);\n } else {\n startButton.setAlpha(1f);\n startButton.setClickable(true);\n }\n }",
"public boolean classSelected(){\n\t\tif(btnMage.isEnabled() && btnWarrior.isEnabled() && btnRanger.isEnabled())\n\t\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t}",
"protected boolean hasPositiveButton() {\n return false;\n }",
"public boolean isAddVehicleButtonPresent() {\r\n\t\treturn isElementVisible(uploadButton.replace(\"ant-btn uploadVehicleMarkerBtn\", \"ant-btn ant-btn-primary\"),\r\n\t\t\t\tSHORTWAIT);\r\n\t}",
"public boolean clickOnStartButton() {\r\n\t\ttry {\r\n\t\t\tgetAssignmentStratButton().click();\r\n\t\t\treturn true;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean isStartAsModal();",
"private Boolean toggleCardButtonsPanel() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tif (risk.getState() == RiskGameModel.REINFORCE || risk.getState() == RiskGameModel.START_TURN) {\r\n\t\t\tcardStatusLabel.setText(\"\");\r\n\t\t\tstatusPanel.repaint();\r\n\t\t\treturn true;\r\n\r\n\t\t} else {\r\n\t\t\tcardStatusLabel.setText(\"Card can be traded only during reinforcement.\");\r\n\t\t\tstatusPanel.repaint();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private void isAbleToBuild() throws RemoteException {\n int gebouwdeGebouwen = speler.getGebouwdeGebouwen();\n int bouwLimiet = speler.getKarakter().getBouwLimiet();\n if (gebouwdeGebouwen >= bouwLimiet) {\n bouwbutton.setDisable(true); // Disable button\n }\n }",
"boolean hasRemarketingAction();",
"@Override\r\n\t\t\t\t\t\t\t\tpublic void setPositiveButton() {\n\t\t\t\t\t\t\t\t\tif (SystemConfig.loginResponse.getDutyFlag().equals(\"on\")) {\r\n\t\t\t\t\t\t\t\t\t\tsendForService(\"1\", str);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\thandler.sendEmptyMessage(ConstantValue.PROGRESS_CLOSE);\r\n\t\t\t\t\t\t\t\t\t\tMessage message = Message.obtain();\r\n\t\t\t\t\t\t\t\t\t\tmessage.obj = \"下班状态不可以改派任务!\";\r\n\t\t\t\t\t\t\t\t\t\tmessage.what = ConstantValue.ERROE;\r\n\t\t\t\t\t\t\t\t\t\thandler.sendMessage(message);\r\n\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// for update by haoyun\r\n\t\t\t\t\t\t\t\t\t// 20130401 end\r\n\t\t\t\t\t\t\t\t}",
"private boolean handleRightBtnIfInVerify(){\n \t\tif(!detail.getValueByKey(\"status\").equals(\"0\")){\n \t\t\tpd = ProgressDialog.show(GoodDetailView.this.getContext(), \"提示\", \"请稍候...\");\n \t\t\tpd.setCancelable(true);\n \t\t\tnew Thread(new RequestThread(REQUEST_TYPE.REQUEST_TYPE_DELETE)).start();\n \n \t\t\treturn true;\t\n \t\t}\n \t\treturn false;\n \t}",
"public boolean isDisplayed_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isDisplayed()) { return true; } else { return false;} \r\n\t}",
"public boolean isEditButtonPresent() {\r\n\t\treturn isElementVisible(\r\n\t\t\t\tuploadButton.replace(\"ant-btn uploadVehicleMarkerBtn\", \"ant-btn ant-btn-primary ant-btn-circle\"),\r\n\t\t\t\tSHORTWAIT);\r\n\t}",
"private void checkStartNewGameButton() {\n\t\tif(mButtons[0].isVisible() && Gdx.input.justTouched()){\n\t\t\t// Grab the touch position, saved as a Vector3\n\t\t\tmLastTouch.set(Gdx.input.getX(), Gdx.input.getY(), 0);\n\t\t\tmCamera.unproject(mLastTouch); // Translates to game world coordinates\n\t\t\t// The button is visible and the screen was just touched\n\t\t\t// See if the touch was in the button's outer rectangle\n\t\t\tif(mButtons[0].getRect().contains(mLastTouch.x, mLastTouch.y)){\n\t\t\t\t// The \"New Game\" button was pressed, start a new game!\n\t\t\t\tmRoundNumber = 1;\n\t\t\t\tresetRoundVars();\n\t\t\t\tmGameState = STATE_ROUND_START;\n\t\t\t\thideAllButtons();\n\t\t\t}\n\t\t}\n\t}",
"public boolean getIsOperator_GearStartSequence_BtnJustPressed()\n\t{\n\t\treturn super.getIsOperatorBlueBtnXJustPressed();\n\t}",
"public boolean preaction() {\n\t\tboolean p = true;\r\n\t\tif(!model.setSCVBuilding(2*preactionTime+duration)) { // adding time before and after\r\n\t\t\tp = false;\r\n\t\t}\r\n\t\tif(p) {\r\n\t\t\t//System.out.println(model.printTime() + \" <SCActionBuilding> Preaction\");\r\n\t\t\tpreactionComplete=true;\r\n\t\t}\r\n\t\treturn p;\r\n\t\t\r\n\t}",
"public boolean isStartable () ;",
"boolean hasStartGameRequest();",
"public boolean isSelected_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isSelected()) { return true; } else { return false;} \r\n\t}",
"public void onYesButtonClicked() {\n changeAfterClientPick();\n }",
"protected boolean hasNegativeButton() {\n return false;\n }",
"public void setNewButtonVisible(boolean visible) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_newButton_propertyVisible\");\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_newButton_propertyVisible\", visible);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setNewButtonVisible(\" + visible + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }",
"public void updateJailButton(boolean isJail) {\n\t\tendTurn.setGraphic(new ImageView(isJail ? EXIT_JAIL_PATH : END_TURN_PATH));\n\t\tendTurn.setTooltip(isJail ? new Tooltip(\"jail fee: 125 $\") : new Tooltip(\"Next Player\"));\n\t\tif (isJail) {\n\t\t\tendTurn.setDisable(!isJail);\n\t\t}\n\t}",
"public void retireLead()\r\n\t{\r\n\t\tisleader = false;\r\n\t}",
"public boolean isEnabled_txt_Fuel_Rewards_Page_Button(){\r\n\t\tif(txt_Fuel_Rewards_Page_Button.isEnabled()) { return true; } else { return false;} \r\n\t}",
"public void makeGetRPButton() {\r\n JButton getRP = new JButton(\"Check if a champion can be purchased with Riot Points\");\r\n new Button(getRP, main);\r\n// getRP.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n// getRP.setPreferredSize(new Dimension(2500, 100));\r\n// getRP.setFont(new Font(\"Arial\", Font.PLAIN, 40));\r\n getRP.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n getRiotPointsBalanceDifference();\r\n }\r\n });\r\n// main.add(getRP);\r\n }",
"private void setUpThisPageForReturn() {\n ImageButton returnButton = findViewById(R.id.return_icon);\n returnButton.setVisibility(View.INVISIBLE);\n }",
"protected String buttonContlor(ScheduleParams searchParam)\n throws CommonException\n {\n //Receiving plan search\n ReceivingPlanHandler receivingHandler = new ReceivingPlanHandler(this.getConnection());\n ReceivingPlanSearchKey lowSearchKey = new ReceivingPlanSearchKey();\n ReceivingPlanSearchKey highSearchKey = new ReceivingPlanSearchKey();\n\n lowSearchKey.setPlanDayCollect();\n lowSearchKey.setPlanDayGroup();\n lowSearchKey.setStatusFlag(ReceivingPlan.STATUS_FLAG_DELETE, \"!=\");\n lowSearchKey.setConsignorCode(WmsParam.DEFAULT_CONSIGNOR_CODE);\n\n highSearchKey.setPlanDayCollect();\n highSearchKey.setPlanDayGroup();\n highSearchKey.setStatusFlag(ReceivingPlan.STATUS_FLAG_DELETE, \"!=\");\n highSearchKey.setConsignorCode(WmsParam.DEFAULT_CONSIGNOR_CODE);\n\n //Gets the number of data\n int lowDayCount = 0;\n int highDayCount = 0;\n\n // Gets the number of the previous/next data due to Button control\n lowSearchKey.setPlanDay(searchParam.getString(PLAN_DAY), \"<\");\n lowDayCount = receivingHandler.find(lowSearchKey).length;\n\n highSearchKey.setPlanDay(searchParam.getString(PLAN_DAY), \">\");\n highDayCount = receivingHandler.find(highSearchKey).length;\n\n //Button control flag\n String btnControl = null;\n\n //When a display button on an initial or auto display is pushed \n if (ReceivingInParameter.PROCESS_FLAG_VIEW.equals(searchParam.get(PROCESS_FLAG)))\n {\n if (lowDayCount == 0 && highDayCount < 2)\n {\n //Disables the previous/next pages\n btnControl = ReceivingOutParameter.BUTTON_CONTROL_FLAG_ALL_OFF;\n }\n else if (lowDayCount == 0)\n {\n //Disables the previous page\n btnControl = ReceivingOutParameter.BUTTON_CONTROL_FLAG_PREVIOUS_OFF;\n }\n else if (highDayCount < 2)\n {\n //Disables the next page\n btnControl = ReceivingOutParameter.BUTTON_CONTROL_FLAG_NEXT_OFF;\n }\n else\n {\n //Enables the previous/next pages\n btnControl = ReceivingOutParameter.BUTTON_CONTROL_FLAG_ALL_ON;\n }\n }\n //When the next button is pushed\n else if (ReceivingInParameter.PROCESS_FLAG_NEXT_PAGE.equals(searchParam.get(PROCESS_FLAG)))\n {\n if (highDayCount <= 2)\n {\n //Disables the next page\n btnControl = ReceivingOutParameter.BUTTON_CONTROL_FLAG_NEXT_OFF;\n }\n else\n {\n //Enables the previous/next pages\n btnControl = ReceivingOutParameter.BUTTON_CONTROL_FLAG_ALL_ON;\n }\n }\n //When the previous button is pushed\n else if (ReceivingInParameter.PROCESS_FLAG_PREVIOUS_PAGE.equals(searchParam.get(PROCESS_FLAG)))\n {\n if (lowDayCount <= 2)\n {\n //Disables the previous page\n btnControl = ReceivingOutParameter.BUTTON_CONTROL_FLAG_PREVIOUS_OFF;\n }\n else\n {\n //Enables the previous/next pages\n btnControl = ReceivingOutParameter.BUTTON_CONTROL_FLAG_ALL_ON;\n }\n }\n return btnControl;\n }",
"public static Boolean playBtn() { \n\t\tboolean startGame= false;\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"secondepage\\\"]/center/button[1]\")).click();\n\t\tif (driver.getPageSource().contains(QandA.getQuestion(0))||driver.getPageSource().contains(QandA.getQuestion(1))||driver.getPageSource().contains(QandA.getQuestion(2))){\n\t\t\tstartGame=true;\n\t\t}\n\t\treturn startGame; \n\t}",
"public void showStopButton(){\n\t((Button)findViewById(R.id.stopButton)).setVisibility(View.VISIBLE);\n\t((Button)findViewById(R.id.startButton)).setVisibility(View.GONE);\n\t((Button)findViewById(R.id.resetButton)).setVisibility(View.GONE);\n}",
"public boolean isRestart() {\n\tboolean ret = false;\n\tif (getParameterValue(\"genie.restart\").toLowerCase().startsWith(\"c\")) {\n\t ret = true;\n\t}\n\treturn ret;\n }",
"public boolean VerifyButtonStatus() throws InterruptedException {\n\n Thread.sleep(10000);\n if(roundTripButton.isSelected()) {\n System.out.println(\"round trip Button is already selected\");\n wait.until(ExpectedConditions.elementToBeClickable(oneWayButton));\n oneWayButton.click();\n System.out.println(\"Switched to One Way button\");\n }\n else if(oneWayButton.isSelected()){\n System.out.println(\"One way button is already selected\");\n roundTripButton.click();\n System.out.println(\"Switched to Round Trip button\");\n\n }\n return true;\n }",
"@Override\n\tpublic boolean requiresToggleButton() {\n\t\treturn false;\n\t}",
"private JButton getCmdStart() {\r\n\t\tif (cmdStart == null) {\r\n\t\t\tcmdStart = new JButton();\r\n\t\t\tcmdStart.setText(\"\");\r\n\r\n\t\t\tcmdStart.setToolTipText(\"Start checking the status of all proxy.\");\r\n\t\t\tcmdStart.setIcon(new ImageIcon(getClass().getResource(\"/start.png\")));\r\n\t\t\tcmdStart.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tcmdPause.setEnabled(true);\t\r\n\t\t\t\t\tcmdStart.setEnabled(false);\r\n\r\n\t\t\t\t\tif (chkproxy.isPause()==true) {\r\n\t\t\t\t\t\tsynchronized(chkproxy) {\r\n\t\t\t\t\t\t\tchkproxy.notify();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\tchkproxy.execute();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcmdStop.setEnabled(true);\r\n\r\n\r\n\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn cmdStart;\r\n\t}",
"public boolean buttonNemo(View v) { return (v.getId() == R.id.bestRated); }",
"public void enableEndOfProductionButton(){\n this.endOfproductionButton.setEnabled(true);\n }",
"public void disableStartButton(boolean b){\n start.setDisable(b);\n }",
"public void confirmLightning() {\n selectedLightning = true;\n }",
"public boolean getReturn();",
"public void selectNonstopForReturn() {\n\t\tif (!nonStopButtonForReturnTrip.isSelected()) {\n\t\t\tnonStopButtonForReturnTrip.click();\n\t\n\t\t}\n\t}",
"public void setRelaunched(boolean value) {\n this.relaunched = value;\n }",
"public boolean shouldEditButtonBePresent();",
"public void isReadyToPay(){\n\t\t\n\t\t//Checking whether cancel button should be active.\n\t\t//(only if there is at least one item in the order OR customer name is not empty)\n\t\tif(currentOrder.getOrderItems().size()==0 && custNameField.getText().equals(\"\"))\n\t\t\tcancelButton.setEnabled(false);\n\t\telse cancelButton.setEnabled(true);\n\t\t\n\t\tif(currentOrder.getOrderItems().size()==0){\n\t\t\tpayButton.setText(\"ORDER IS EMPTY\");\n\t\t\tpayButton.setEnabled(false);\n\t\t\tpayButton.setBackground(new Color(184,75,82));\n\t\t\treturn;\n\t\t}\n\n\t\t\n\t\tif(custNameField.getText().equals(\"\")){\n\t\t\tDimension goodSize = payButton.getSize(); // so that size will not change\n\t\t\tpayButton.setText(\"NO CUST. NAME\");\n\t\t\tpayButton.setEnabled(false);\n\t\t\tpayButton.setBackground(new Color(184,75,82));\n\t\t\tpayButton.setPreferredSize(goodSize);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tDimension goodSize = payButton.getSize(); // so that size will not change\n\t\tpayButton.setText(\"PAY\");\n\t\tpayButton.setBackground(Color.GREEN);\n\t\tpayButton.setEnabled(true);\n\t\tpayButton.setPreferredSize(goodSize);\n\t}",
"public void resetTrainerForm(boolean requestVocable){\n\t\tgetFrame().getRootPane().setDefaultButton(this.btnVerify);\n\t\tthis.vocInput.setText(\"\");\n\t\tString vocable;\n\t\tif (requestVocable)\n\t\t\tvocable = trainer.getNewVocable();\n\t\telse\n\t\t\tvocable = null;\n\t\tvocInput.setBackground(Color.WHITE);\n\t\tthis.btnShowTip.setEnabled(trainer.hasTip());\n\t\tthis.vocInput.setEditable(vocable != null);\n\t\tthis.btnVerify.setEnabled(vocable != null);\n\t\tthis.btnResolve.setEnabled(vocable != null);\n\t\tif (requestVocable){\n\t\t\tif(vocable == null){\n\t\t\t\tthis.vocable_showed.setText(\"FINISHED !\\nStats:\\n\"+trainer.getStats());\n\t\t\t}else{\n\t\t\t\tthis.vocable_showed.setText(vocable);\n\t\t\t\tthis.vocInput.requestFocus();\n\t\t\t}\n\t\t}\n\t}",
"protected boolean processBSetupMode(boolean entered){return false;}",
"private void continueButton() {\n Optional<Squadron> anyAvailable = game\n .getHumanPlayer()\n .getNations()\n .stream()\n .filter(Nation::isSquadronsPresent)\n .flatMap(nation -> game.getHumanPlayer().getSquadrons(nation, SquadronLocationType.LAND).stream())\n .filter(Squadron::isAvailable)\n .findAny();\n\n List<Region> regionsNotSatisfied = gameMap\n .areAllRegionsSatisfied(game.getHumanSide());\n\n if (anyAvailable.isPresent()) {\n warnNotAllSquadronsDeployed();\n } else if (regionsNotSatisfied.size() > 0) {\n warnNotAllRegionsSatisfied(regionsNotSatisfied);\n } else {\n navigate.goNext(this.getClass(), stage);\n }\n }",
"public KPAUIReimbursementPage clickRequestReimbursementLink(){\n getRequestReimbursementLink().click();\n return new KPAUIReimbursementPage(driver);\n }",
"private boolean Verific() {\n\r\n\treturn true;\r\n\t}",
"public boolean isDisplayed_click_Fuel_Rewards_Link(){\r\n\t\tif(click_Fuel_Rewards_Link.isDisplayed()) { return true; } else { return false;} \r\n\t}",
"public static void resume()\n\t{\n\t\ttfBet.setEnabled(false);\n\t\tbtnPlay.setEnabled(false);\n\t\tbtnHit.setEnabled(true);\n\t\tbtnStay.setEnabled(true);\n\t\tbtnDouble.setEnabled(false);\n\t}",
"public boolean comprobacion()\n\t{\n\t\tif(txtNombre.getText().isEmpty())\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, rellene el nombre del producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\t\n\t\tif(txtMarca.getText().isEmpty())\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, rellene la marca del producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\tif(txt_Material.getText().isEmpty()&& rdbtnTextil.isSelected())\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, rellene el material principal del producto\"); \n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(txtPrecio.getText().equals(\"€\"))\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, establezca un precio al producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\tif(!fotoSubida)\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null,\"Por favor, seleccione una imagen para su producto\"); \n\t\t\t\treturn false;\n\t\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public boolean isPreparer() {\n\t\treturn getStatut().equals(StatusBonPreparation.PREPARER);\n\t}",
"public void setRestartable(boolean isRestartable) {}",
"private void allowContinueOrStop(){\r\n\t\troll.setEnabled(false);\r\n\t\tsubmit.setEnabled(false);\r\n\t\tagain.setEnabled(true);\r\n\t\tnoMore.setEnabled(true);\r\n\t\tstatusLabel.setText(\"Feeling lucky?\");\r\n\t\tupdate();\r\n\t}",
"boolean isForceRM();",
"public boolean isRented(Lab lab) {\r\n \tboolean rented = false;\r\n \tSystem.out.println(this);\r\n \tthis.setLab(lab);\r\n \tif(this.rentSettings.getBorrowed()) {\r\n \t\tSystem.out.println(this.deviceName() + \" is not available for renting at this time\");\r\n \t\tSystem.out.println(this);\r\n \t\t//System.out.println(lab);\r\n \t\trented = true;\r\n \t}\r\n \telse {\r\n \t\tSystem.out.println(this.deviceName() + \" is available for rent\");\r\n \t\tSystem.out.println(this);\r\n \t}\r\n //\tSystem.out.println(\"from isRented returning \" + rented);\r\n \treturn rented;\r\n }",
"private void resultsConfigButton(){\n if(!resultsOpened){\n resultsUI = new ResultsUI(this, false);\n resultsOpened = true;\n } \n }",
"public void setReviewButton() {\n if(dbMgr.checkReviewUser(username)) \n btnReviewGame.setVisible(true);\n else\n btnReviewGame.setVisible(false);\n }",
"void setWaitScreen(boolean set) {\n\t\t// findViewById(R.id.screen_main).setVisibility(set ? View.GONE :\n\t\t// View.VISIBLE);\n\t\t// findViewById(R.id.screen_wait).setVisibility(set ? View.VISIBLE :\n\t\t// View.GONE);\n\t}",
"public void onStartingReservation() {\n this.reserveImageButton.setEnabled(false);\n }",
"void setWaitScreen(boolean set) {\n // findViewById(R.id.screen_main).setVisibility(set ? View.GONE : View.VISIBLE);\n // findViewById(R.id.screen_wait).setVisibility(set ? View.VISIBLE : View.GONE);\n }",
"public boolean isExit(){\n return true;\n }",
"boolean isSetSearchWindowStart();",
"private boolean askToLeave(){\n\t\tint ask_leave_prompt = JOptionPane.YES_NO_OPTION;\n\t\tint ask_leave_result = JOptionPane.showConfirmDialog(this, \"Would you like to return to main menu?\\nYou will lose all progress\", \"Return To Main Menu\", ask_leave_prompt);\n\t\tif (ask_leave_result == JOptionPane.YES_OPTION){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic void buttonStatusChange() {\n\t\t\t\n\t\t}",
"public void checkOutFlight() {\n confirmationPage.checkButton();\n }",
"protected boolean activateActions() {\n AlertDialog.Builder confirmation = new AlertDialog.Builder(MainScreen.this);\n confirmation.setTitle(\"Activate Danger Signal?\");\n confirmation.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n ImageButton dangerButton = (ImageButton) findViewById(R.id.dangerButton);\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dangerButton.setImageResource(R.drawable.activatedimage);\n surfaceView.setVisibility(View.VISIBLE);\n try {\n camera = Camera.open();\n camera.setDisplayOrientation(90);\n\n } catch (RuntimeException e) {\n return;\n }\n try {\n camera.setPreviewDisplay(surfaceHolder);\n camera.startPreview();\n } catch (Exception e) {\n return;\n }\n isPlay = !isPlay;\n active = true;\n }\n });\n\n confirmation.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n turnOffActions();\n surfaceView.setVisibility(View.INVISIBLE);\n active = false;\n }\n });\n\n AlertDialog alertDialog = confirmation.create();\n alertDialog.show();\n\n return active;\n }",
"void enableControls( boolean starting ) {\n btn_start.setEnabled( !starting );\n btn_stop.setEnabled( starting );\n slide_numAgents.setEnabled( !starting );\n btn_Exit.setEnabled( !starting );\n }",
"@Override\n public boolean performFinish() {\n boolean result = false;\n try {\n Review newRev = ReviewAccess.getInstance().createNewReview(this.page1.getReviewID());\n if (newRev != null) {\n newRev.setReferenceId(this.page1.getReviewReference());\n newRev.setDescription(this.page1.getReviewDescription());\n PersonInCharge piC = PersonInCharge.Factory.newInstance();\n piC.setName(this.page1.getReviewResponsibility());\n newRev.setPersonInCharge(piC);\n \n if (ViewControl.isOpen(ReviewExplorer.class)) {\n ReviewExplorer.getInstance().addReview(newRev);\n }\n ReviewAccess.getInstance().save(newRev);\n result = true;\n }\n } catch (IOException e) {\n PluginLogger.logError(this.getClass().toString(), \"performFinish\", \"Exception thrown while created a new Review\", e);\n } catch (NoReviewSourceFolderException e) {\n ExceptionHandler.handleNoReviewSourceFolderException();\n }\n \n return result;\n }",
"private boolean checkCanModifyStatus() {\r\n \r\n RequesterBean requesterBean = new RequesterBean();\r\n ResponderBean responderBean = new ResponderBean();\r\n try{\r\n requesterBean.setFunctionType('c');\r\n String connectTo = CoeusGuiConstants.CONNECTION_URL + \"/rolMntServlet\";\r\n AppletServletCommunicator ascomm = new AppletServletCommunicator(connectTo,requesterBean);\r\n ascomm.setRequest(requesterBean);\r\n ascomm.send();\r\n responderBean = ascomm.getResponse(); \r\n \r\n }catch(Exception e) {\r\n CoeusOptionPane.showErrorDialog(e.getMessage());\r\n }\r\n return (Boolean)responderBean.getDataObject();\r\n }",
"boolean isMarkAsResponse();",
"public boolean getMyStartBoolean(){\n return myStartBoolean;\n }",
"public void launchMaster()\n {\n \tIntent mIntent = new Intent(MainActivity.this, MasterButtonActivity.class);\n \tstartActivityForResult(mIntent, NEW_MASTER_BUTTON_ACTIVITY);\n }",
"public boolean isReturning(){\n\t\treturn returning;\n\t}",
"public void testGetNextFinishButtonEnabled() {\n System.out.println(\"getNextFinishButtonEnabled\");\n Wizard instance = new Wizard();\n boolean expResult = false;\n boolean result = instance.getNextFinishButtonEnabled();\n assertEquals(expResult, result);\n }",
"@Override\n\tpublic boolean isRented() {\n\t\treturn false;\n\t}",
"@Override\n public boolean isReturn() {\n return true;\n }",
"private void updateButtonStateEpson(boolean state) {\n }",
"boolean isReadyForShowing();",
"public boolean isEnabled_click_Fuel_Rewards_Link(){\r\n\t\tif(click_Fuel_Rewards_Link.isEnabled()) { return true; } else { return false;} \r\n\t}",
"@Override\n protected boolean isAppropriate() {\n return true; // always show\n }",
"boolean isReturnEntityRequested();",
"public void setCorrigeDatosRetencion(boolean corrigeDatosRetencion)\r\n/* 628: */ {\r\n/* 629:706 */ this.corrigeDatosRetencion = corrigeDatosRetencion;\r\n/* 630: */ }",
"public static void checkStartButton() {\r\n\t\tcheckNoSuchElementExceptionByID(\"startB\", \"\\\"Start\\\" button\");\r\n\t}",
"public void setStart(){\n\t\tthis.isStart=true;\n\t}",
"public void gamereset() {\n Button tmp = (Button) findViewById(R.id.resetbutton);\n tmp.setVisibility(View.VISIBLE);\n }",
"protected boolean afterSave(boolean newRecord, boolean success) {\n /**\n * 26/07/2013 Maria Jesus Martin\n * Modificación realizada para que si la OP esta en borrador o en proceso se calculen nuevamente\n * las retenciones.\n */\n if (!Env.getContext(Env.getCtx(), \"OmitRetentionCalculation\").equals(\"Y\") \n && !this.isReceipt() \n && (super.isRetenciones()) \n && ( (DOCSTATUS_Drafted.equals(getDocStatus())) \n || (DOCSTATUS_InProgress.equals(getDocStatus()))\n )\n ) {\n System.out.println(\"Entrando a evaluar el calcular retenciones\");\n\n if (this.flagSave == false && this.retencion == true) {\n System.out.println(\"Entrando a calcular retenciones\");\n recalcularRetenciones();\n }\n }\n return true;\n\n }",
"@Override\n public boolean isFinishPanel() {\n return false;\n }",
"public boolean operationWaiting(){\n\t\tif (var2Set) return true; else return false;\n\t}",
"private Boolean getWantIntent() {\n return false;\n }",
"public static boolean isQuickSetUpButton(Player player, int buttonId) {\n\t\tif (buttonId >= 94226 && buttonId <= 95038 || buttonId >= 89080 && buttonId <= 89112) {\n\t\t\tif (player.getHeight() == 20) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (player.getDuelStatus() >= 1) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (System.currentTimeMillis() - player.timeSkilled < 90000) {\n\t\t\t\tint secondsLeft = (int) (90 - ((System.currentTimeMillis() - player.timeSkilled) / 1000));\n\t\t\t\tplayer.getPA().sendMessage(\"You cannot use presets while you just skilled, wait \" + secondsLeft + \" seconds.\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (!player.isAdministratorRank()) {\n\t\t\t\tif (!Bank.hasBankingRequirements(player, true)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (System.currentTimeMillis() - player.lastQuickSetUpClicked <= 600 && (buttonId >= 94226 && buttonId <= 94254 || buttonId == 95002)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tInterfaceAssistant.closeDialogueOnly(player);\n\t\t\t} else {\n\t\t\t\tInterfaceAssistant.closeDialogueOnly(player);\n\t\t\t}\n\t\t}\n\t\tplayer.lastQuickSetUpClicked = System.currentTimeMillis();\n\n\t\t// Custom presets buttons\n\t\tif (buttonId >= 89080 && buttonId <= 89112) {\n\t\t\tif (GameMode.getGameMode(player, \"ULTIMATE IRON MAN\")) {\n\t\t\t\tplayer.getDH().sendStatement(\"As an Ultimate Ironman, you cannot use presets.\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tint index = 0;\n\t\t\tindex = buttonId - 89080;\n\t\t\tindex /= 4;\n\t\t\tPresets.presetKit(player, index + 1);\n\t\t\treturn true;\n\t\t}\n\n\t\tif (GameType.isOsrsEco()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tswitch (buttonId) {\n\n\t\t\tcase 95006:\n\t\t\t\tvengeanceRunes(player);\n\t\t\t\treturn true;\n\n\t\t\tcase 95010:\n\t\t\t\tbarrageRunes(player);\n\t\t\t\treturn true;\n\n\t\t\tcase 95014:\n\t\t\t\tteleBlockRunes(player);\n\t\t\t\treturn true;\n\n\t\t\tcase 94226:\n\t\t\t\tmainMelee(player);\n\t\t\t\treturn true;\n\t\t\tcase 94230:\n\t\t\t\tmainHybrid(player);\n\t\t\t\treturn true;\n\n\t\t\tcase 94234:\n\t\t\t\tmainTribrid(player);\n\t\t\t\treturn true;\n\n\t\t\tcase 94238:\n\t\t\t\tberserkerMelee(player);\n\t\t\t\treturn true;\n\n\t\t\tcase 94242:\n\t\t\t\tberserkerHybrid(player);\n\t\t\t\treturn true;\n\n\t\t\tcase 94246:\n\t\t\t\tpure(player);\n\t\t\t\treturn true;\n\n\t\t\tcase 94250:\n\t\t\t\tpureTribrid(player);\n\t\t\t\treturn true;\n\n\t\t\tcase 94254:\n\t\t\t\trangedTank(player);\n\t\t\t\treturn true;\n\n\t\t\tcase 95002:\n\t\t\t\tf2pRanged(player);\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public void setWaitingToGo(boolean waitingToGo) {\n this.waitingToGo = waitingToGo;\n }",
"public boolean isRemote () {\n\t\treturn _remoteButton.isSelected();\n\t}",
"boolean updateUI() {\n BackgroundStatus bgStat= _monItem.getStatus();\n WebAssert.argTst(ComparisonUtil.equals(bgStat.getID(), _oldBgStat.getID()),\n \"You cannot update the report to one with \" +\n \"a different package id.\");\n boolean retval= update();\n _oldBgStat = _monItem.getStatus();\n if (_monItem.isDone()) {\n if (_monItem.getState()==BackgroundState.SUCCESS) {\n if (!_success) {\n String name= Application.getInstance().getAppName();\n Notifications.notify( name + \" Task Completed\",\n _monItem.getReportDesc() +\", \" +_monItem.getTitle() +\" has completed.\");\n }\n _success= true;\n if (!_calledAutoActivation &&\n _monItem.getActivateOnCompletion() &&\n !_monItem.getStatus().isMultiPart()) {\n _calledAutoActivation= true;\n ActivationFactory.getInstance().activate(_monItem,0,!_monItem.getImmediately());\n }\n }\n }\n\n return retval;\n\n }",
"public boolean getIsOperator_FuelInfeed_BtnPressed()\n\t{\n\t\treturn super.getIsOperatorLeftBumperBtnPressed();\n\t}",
"public String isReparar() {\r\n if(reparar)\r\n return \"Si\";\r\n else {\r\n return \"No\";\r\n }\r\n }",
"@Override\n\tpublic boolean speedBtn()\n\t{\n\t\treturn this.speed;\n\t}",
"public void testSetNextFinishButtonEnabled() {\n System.out.println(\"setNextFinishButtonEnabled\");\n boolean newValue = false;\n Wizard instance = new Wizard();\n instance.setNextFinishButtonEnabled(newValue);\n }"
]
| [
"0.59472895",
"0.5713028",
"0.56857944",
"0.5675603",
"0.56703305",
"0.5634847",
"0.56070846",
"0.56066275",
"0.5580184",
"0.55497974",
"0.552137",
"0.5507404",
"0.5486975",
"0.5484208",
"0.54768056",
"0.54622895",
"0.5418821",
"0.5397671",
"0.5394586",
"0.53338003",
"0.5315087",
"0.53147936",
"0.5313461",
"0.5312767",
"0.53083134",
"0.5306788",
"0.53007555",
"0.52816105",
"0.5275422",
"0.5261455",
"0.5258002",
"0.52578753",
"0.52484566",
"0.5247704",
"0.52454996",
"0.5241927",
"0.5240417",
"0.5239134",
"0.5230861",
"0.5228151",
"0.5226202",
"0.5222917",
"0.5221683",
"0.5219401",
"0.52148145",
"0.5213759",
"0.5207038",
"0.5203587",
"0.51874244",
"0.5169782",
"0.51681197",
"0.51629025",
"0.51594335",
"0.5153996",
"0.5143641",
"0.51395214",
"0.5135597",
"0.51271254",
"0.5125719",
"0.5125089",
"0.5123762",
"0.5121205",
"0.51200527",
"0.51177615",
"0.51129204",
"0.5112304",
"0.51083016",
"0.5106127",
"0.51046157",
"0.50996906",
"0.50976604",
"0.50963855",
"0.5090988",
"0.50908184",
"0.50750744",
"0.5073707",
"0.50688946",
"0.506818",
"0.5067712",
"0.5057905",
"0.505766",
"0.5049464",
"0.5049042",
"0.50435627",
"0.50347054",
"0.50271964",
"0.50246805",
"0.5022193",
"0.5021977",
"0.5020218",
"0.5019366",
"0.50117743",
"0.50105184",
"0.5009733",
"0.5008599",
"0.5002466",
"0.49980497",
"0.4996525",
"0.49964967",
"0.4995552"
]
| 0.6160358 | 0 |
Navigate for existing college premium goal | public PremiumCollegeDashboardPage clickOnViewDetailsPremiumCollege() {
waitAndClick(collegeViewDetailsBtn, "College View Details Button");
return PageFactory.initElements(driver, PremiumCollegeDashboardPage.class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private EditPlanDirectToManaged signUpAndReachEditPlan() throws Exception{\n //Initializing investment strategy object used to keep track of Glidepath investment strategy in relation to age to retirement and RTQ\n //Default User has age of 35 and 30 years to retirement\n InvestmentStrategyObject.initAllStrategies();\n //Login and create Premium Gaslamp User\n AdvisorSplashPage advisorSplashPage = new AdvisorSplashPage(getDriver());\n DetermineInvestmentStrategyPage displayPage = signupAndOnboard(advisorSplashPage,\n Constants.LastName.PREMIUM_INDIVIDUAL);\n //Enter Random RTQ Selections\n gaslamp.directToManaged.InvestmentStrategyPage investmentStrategyPage = EnterAndEditRTQ(RTQAnswerTypes.RANDOM,displayPage);\n PortfolioAnalysisPage portfolioAnalysisPage = investmentStrategyPage.navigateToPortfolioAnalysisPage();\n\n LinkedAccountsPage linkedAccountsPage = linkDAGAccount(portfolioAnalysisPage);\n portfolioAnalysisPage = linkedAccountsPage.clickOnNextButton();\n verifyPortfolioElements(portfolioAnalysisPage);\n\n //Edit the plan and re-do the RTQ\n Reporter.log(\"Editing Plan and Assumptions.\", true);\n EditPlanDirectToManaged editPlanPage = portfolioAnalysisPage.clickOnEditInPlaceTrigger();\n softAssert.assertTrue(editPlanPage.verifyEditPlanElements());\n return editPlanPage;\n }",
"public static void Goto()\n\t{\n\t\tUserLogin.Login();\n\t\t\t\t\n\t\t//Choose community\n\t\tWebElement Community= Driver.Instance.findElement(PageObjRef.CommunityTab);\n\t\tCommunity.click();\n\t\tWebElement CommunityToJoin= Driver.Instance.findElement(PageObjRef.CommunityToJoin);\n\t CommunityToJoin.click();\n\t\t\n\t}",
"public void proceedToLetsGo() {\n\t\tBrowser.click(\"xpath=.//*[@id='DisplayNavigatorBrokerLandingPage']/div/div/div/div/div/div/div/div/div[5]/a/img\");\n\t}",
"@When ( \"I navigate to the HCP personal representatives page\" )\n public void goToRepsPageHCP () throws InterruptedException {\n driver.get( baseUrl + \"/hcp/viewPersonalRepresentatives\" );\n Thread.sleep( PAGE_LOAD );\n }",
"@When ( \"I navigate to the Assign Prescription page\" )\r\n public void navigatePrescriptionOV () {\r\n ( (JavascriptExecutor) driver ).executeScript( \"document.getElementById('assignprescription').click();\" );\r\n }",
"public boolean openCreateGoal(){\n Intent intent = new Intent(this, GoalNewActivity.class);\n startActivity(intent);\n return true;\n }",
"public NewcommunityPage submitKo() {\n driver.findElement(nextLocator).click();\r\n\r\n // Return a new page object representing the destination. Should the login page ever\r\n // go somewhere else (for example, a legal disclaimer) then changing the method signature\r\n // for this method will mean that all tests that rely on this behaviour won't compile.\r\n return new NewcommunityPage(driver); \r\n\t}",
"public KPAUIHealthPlansPage openHealthPlansPage(){\n getShopHealthPlansLink().click();\n return new KPAUIHealthPlansPage(driver);\n }",
"void gotoEditProfile();",
"@Override\n public void onClick(View v) {\n Intent p3page = new Intent(v.getContext(), MagdalenCollege.class);\n startActivity(p3page);\n }",
"public void redirectToPlan() {\n setResponsePage( new RedirectPage( \"plan\" ) );\n }",
"private void onAddGoalsClicked() {\n Intent intent = new Intent(this, GoalCreationActivity.class);\n startActivity(intent);\n }",
"@Given(\"^user clicks on agile project link$\")\n\tpublic void user_clicks_on_agile_project_link() throws Throwable {\n\t\tdriver.findElement(By.xpath(\"//a[contains(text(),'Agile Project')]\")).click();\n\t}",
"public void ClickPlansOfferedPage() {\r\n\t\tplansoffered.click();\r\n\t\t\tLog(\"Clicked the \\\"Plans Offered\\\" button on the Birthdays page\");\r\n\t}",
"@When ( \"I navigate to the personal representatives page\" )\n public void goToRepsPage () throws InterruptedException {\n driver.get( baseUrl + \"/patient/viewPersonalRepresentatives\" );\n Thread.sleep( PAGE_LOAD );\n }",
"public String moveToAcademicData() {\n\t\treturn \"userPhdAcademicData?faces-redirect=true\";\n\t}",
"public Goal(String goalName) {\r\n this.goalName = goalName;\r\n }",
"public void accomplishGoal() {\r\n isAccomplished = true;\r\n }",
"@Given(\"I am on the Project Contact Details Page\")\n public void i_am_on_the_project_contact_details_page(){\n i_logged_into_Tenant_Manager_Project_list_page();\n i_click_on_create_a_new_project();\n\n }",
"private void goGuide() {\n }",
"public void clickOnContinueAsGuestUserLink()\n \t{\n \t\tproductRequirementsPageLocators.continueAsGuestUserLIink.click();\n\n \t}",
"public String getGoal();",
"public void clickPresselGermany(){\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:- PresselGermany link should be clicked\");\r\n\t\ttry{\r\n\r\n\t\t\tclick(locator_split(\"lnkPresselGermany\"));\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- PresselGermany link is clicked\");\r\n\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- PresselGermany link is not clicked\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkPresselGermany\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}",
"@Given(\"^User should be navigated to the ELEARNING UPSKILL URL$\")\npublic void user_should_be_navigated_to_the_ELEARNING_UPSKILL_URL() throws Throwable \n{\n\tdriver.manage().window().maximize();\n driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);\n\tdriver.get(\"http://elearningm1.upskills.in/\");\n\tThread.sleep(100); \n\tSystem.out.println(\"User is successfully navigated to ELEARNING UPSKILL screen\");\n\t\n \n}",
"public ProduceAndFloralPage clickOnProduceandFloralLink() {\n\t\t// Use for loop to make sure link got clicked\n\t\tfor (int i = 0; i <= 2; i++) {\n\t\t\ttry {\n\t\t\t\tproduceAndfloral.click();\n\t\t\t\tbreak;\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t}\n\t\treturn new ProduceAndFloralPage();\n\t}",
"@Test\r\n\t @Given(\"the application is in Post Free Ad Form Page\")\r\n\t public void the_application_is_in_Post_Free_Ad_Form_Page() {\n\t\t\t\tdriver = new ChromeDriver();\r\n\t\t\t\tdriver.get(\"https://www.quikr.com/pets/post-classifieds-ads+allindia?postadcategoryid=1392\");\r\n\t }",
"public void openUltimateQAPage() {\n\t\tdriver.get(\"https://courses.ultimateqa.com/users/sign_in\");\r\n\t\tdriver.manage().window().maximize();\r\n\t\tdriver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);\r\n\r\n\t}",
"URL getRepositoryWebUrl(ProgrammingExerciseParticipation participation);",
"public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}",
"public final String gotoManageTestRequirement() throws ParseException, ApplicationException{\r\n\t\tloadScreen();\r\n\t\treturn \"/pages/manageTestRequirement\";\r\n\t}",
"protected IPlanningGoal selectGoal(){ \n List<IPlanningGoal> relevantGoals = representation.getRelevantGoals(body);\n \n //If we have failed to find plans for high priority goals and environment has not changed, lets try some \n //lower priority ones\n if(numFailuresSinceLastImportantEnvChange < relevantGoals.size()){\n return relevantGoals.get(numFailuresSinceLastImportantEnvChange);\n } else {\n //tried all relevant goals but all failed, lets try it once more\n representation.setMarker(body);\n numFailuresSinceLastImportantEnvChange = 0;\n return relevantGoals.get(0);\n }\n }",
"@Test(priority=1)\n\tpublic void validateContestInHomePage()\n\t{\n\t\tPickRightHomePage p = new PickRightHomePage(driver);\n\t\tp.getJoinAsinvestor();\n\n\t\tLoginOrSignUpPage l = new LoginOrSignUpPage(driver);\n\t\tl.getUseMobileNumber();\n\t\tl.getDropDown();\n\t\tl.setSearchField(\"India\");\n\t\tl.getCountry();\n\t\tl.setMobileNumberField(number);\n\t\tl.getNextButton();\n\t\te = new EnterOtpPage(driver);\n\t\te.setOtp();\n\t\te.getCheckBox();\n\t\te.getNextButton();\n\t\th=new HomePage(driver);\n\t\tJavascriptExecutor j=(JavascriptExecutor)driver;\n\t\tj.executeScript(\"arguments[0].scrollIntoView(true)\",h.contest);\n\t\tAssert.assertTrue(h.contest.isDisplayed());\n\t\tAssert.assertTrue(h.participateButtonInTopStock.getText().equalsIgnoreCase(\"Participate\"));\n\t\tAssert.assertTrue(h.participateButtonPredictNifty.getText().equalsIgnoreCase(\"Participate\"));\n\t\t\n\t}",
"public void clickTravellersAdultsInc() {\n\t\ttravellersAdultInc.click();\n\t}",
"public void GoToSurvey(View view) {\n String url = \"https://globalobesity.com.au\";\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(url)));\n }",
"private void gotoUserProfile() {\n Intent launchUserProfile = new Intent(this, Profile.class);\n startActivity(launchUserProfile);\n }",
"public void reloadTestGoal() throws DataValidationException, SQLException {\n testGoals = UserInterface.getGoals();\n testGoal = testGoals.get(randomGoalID);\n }",
"public void clickOnPriorAuth() {\n\t\tscrollDown(element(\"link_priorAuth\"));\n\t\telement(\"link_priorAuth\").click();\n\t\tlogMessage(\"User clicks on Prior Authorizations on left navigation bar at Physician End\");\n\t}",
"public void gotoCoachLogin(){ application.gotoCoachLogin(); }",
"@Test(priority=1,dataProvider=\"practoPage\") \n\t\tpublic void practoPage(String hometitle,String pharmacytitle,String paintitle) throws IOException {\n\t\t\tlogger=extent.startTest(\"Load the Url and Navigate to the PainRelief Page\");\n\t\t\tProperties prop=propread.property(FileConstants.config_file);\n\t\t\tProperties prop1=propread.property(FileConstants.practopage_file);\n\t\t\tdriver.get(prop.getProperty(\"url\"));\n\t\t\tlogger.log(LogStatus.INFO, \"Url is loaded\");\n\t\t\tlog.logReport(\"User landed the practo home page Successfully\");\t\n\t\t\tvalidateTitle(driver,hometitle);\n\t\t\tpractopage.practoHome(driver, prop1,pharmacytitle,paintitle);\n\t\t\tlog.logReport(\"Successfully navigated to pain relief Page\");\n\t\t}",
"public void navigateTo(){\n this.driver.get(\"xyz.com\");\n this.wait.until(ExpectedConditions.visibilityOf(firstName));\n }",
"public void navigateToWomanCategory(){\n a = new Actions(driver);\n a.moveToElement(driver.findElement(By.cssSelector(\"div[id ='block_top_menu'] a[title='Women']\"))).build().perform();\n driver.findElement(By.cssSelector(\"ul[class='submenu-container clearfix first-in-line-xs'] li a[title='Casual Dresses'] \")).click();\n }",
"String makePlanCommunityParticipationUrl();",
"@Then(\"I click on rewards points\")\r\n\tpublic void i_click_on_rewards_points() {\n\t\tSystem.out.println(\"code for rewards\");\r\n\t}",
"public KPAUIFindADoctorLandingPage openDoctorsAndLocationsPage(){\n getFindDocsAndLocationsLink().click();\n return new KPAUIFindADoctorLandingPage(driver);\n }",
"public HomeSection enterUrl(){\r\n\t\tGlobal.driver.get(CONSTANT.proUrl);\r\n\t\treturn new HomeSection();\r\n\t}",
"final Goal goal ()\n {\n return _goal;\n }",
"public void openEmployeesPage() {\n // Navigate to HumanResources > Employees through the left menu\n driver.findElement(By.cssSelector(\"div.group-items>fuse-nav-vertical-collapsable:nth-child(5)\")).click();\n driver.findElement(By.cssSelector(\"fuse-nav-vertical-collapsable:nth-child(5)>div.children>fuse-nav-vertical-item:nth-child(2)\")).click();\n }",
"@Test(enabled=false)\n\tpublic void loanDetails(){\n\t\n\t\ttry{\n\t\tHomePage homePage=new HomePage(driver);\n\t\thomePage.clickOnSignIn();\n\t\t\n\t\tLoginActions loginAction=new LoginActions();\n\t\tloginAction.login(driver, \"username\", \"password\");\n\t\t\n\t\tAccountSummaryPage accountsummary= new AccountSummaryPage(driver);\n\t\taccountsummary.isAccountSummary();\n\t\t\n\t\tAccountActivityPage accountActivity=new AccountActivityPage(driver);\n\t\taccountActivity.clickOnAccountActivity();\n\t\t\n\t\taccountActivity.selectLoanAccount();\n\t\t\n\t\taccountActivity.getRowdata();\n\t\t\n\t\tAssert.assertEquals(accountActivity.getRowdata(), \"RENT\");\t\n\t\t\n\t\tSystem.out.println(accountActivity.getRowdata());\n\t\t\n\t\t// Test case no - AccActShow_04 -no results for credit card are verified under this test only\n\t\n\t\taccountActivity.getCreditCard();\n\t\t\n\t\tAssert.assertEquals(accountActivity.getCreditCard(), \"No Results\");\n\t\t}\n\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.getMessage();\n\t\t}\n\t}",
"@Override\n public void onClick(View v) {\n Intent p2page = new Intent(v.getContext(), ChristChurch.class);\n startActivity(p2page);\n }",
"@Given(\"User clicked on add first Travel leg link\")\n public void user_clicked_on_add_first_Travel_leg_link() {\n throw new cucumber.api.PendingException();\n }",
"public void setCurrentGoal(View root){\n SharedPreferences goalPreferences = this.getActivity().getSharedPreferences(\"goal\", Context.MODE_PRIVATE);\n String getGoal = goalPreferences.getString(\"goal\", null);\n\n Gson gsonGoal = new Gson();\n _currentGoal = root.findViewById(R.id.currentGoal2);\n Goal goal = gsonGoal.fromJson(getGoal, Goal.class);\n\n if(goal != null) {\n if (goal.getNumDays() != null) {\n String showGoal = \"Your Current Goal: \" + goal.getNumDays() + \" days a week from \" +\n goal.getStartGoal() + \" to \" + goal.getEndGoal();\n _currentGoal.setText(showGoal);\n }\n } else {\n _currentGoal.setText(\"No Current Goal Set\\n Please set up your goal\");\n }\n }",
"public void educationloan()\n\t\n\t{\n\t\tSystem.out.println(\"hsbc own education loans\");\n\t\t\n\t}",
"@Step\n public void clickContactUsPage(){\n contactusPages.clickContactUsPage();\n }",
"public void onClick(View arg0) {\n\t\t\t\tIntent it=new Intent(\"com.example.btp.FinalDecision\");\n\t\t\t\tstartActivity(it);\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent in = new Intent();\n\t\t\t\tin.setClass(CollegeDetails.this,CollegeCourses.class);\n\t\t\t\tstartActivity(in);\n\t\t\t\t//finish();\n\t\t\t\t\n\t\t\t}",
"private void goToMenu() {\n Intent intentProfile = new Intent(PregonesActivosActivity.this, MenuInicial.class);\n PregonesActivosActivity.this.startActivity(intentProfile);\n }",
"boolean isGoalReached(ExerciseSessionData data);",
"@RequestMapping(\"/agent/enrollment/\")\n public ModelAndView view() throws PortalServiceException {\n String signature = \"EnrollmentController#view()\";\n LogUtil.traceEntry(getLog(), signature, null, null);\n ProviderSearchCriteria criteria = new ProviderSearchCriteria();\n ArrayList<String> statuses = new ArrayList<String>();\n criteria.setShowFilterPanel(true);\n statuses.add(\"Draft\");\n criteria.setStatuses(statuses);\n return LogUtil.traceExit(getLog(), signature, doSearch(criteria, \"draft\"));\n }",
"public void clickCollaborationPlanLink() throws UIAutomationException{\r\n\t\telementController.requireElementSmart(fileName,\"Collaboration Plan\",GlobalVariables.configuration.getAttrSearchList(), \"Collaboration Plan link\");\r\n\t\tUIActions.click(fileName,\"Collaboration Plan\",GlobalVariables.configuration.getAttrSearchList(), \"Collaboration Plan link\");\r\n\t\t\t\t\r\n\t\t/*// Assertion : Check Title of Page\r\n \tString title=dataController.getPageDataElements(fileName, \"Collaboration Plans Page Title\", \"Title\");\r\n \tUIActions.waitForTitle(title,Integer.parseInt(GlobalVariables.configuration.getConfigData().get(\"TimeOutForFindingElementSeconds\")));*/\r\n\t\tUIActions.getText(fileName, \"CollaborationPlansPageTitle\", GlobalVariables.configuration.getAttrSearchList(), \"Collaboration Plans Page Title\");\r\n\t}",
"UsabilityGoal createUsabilityGoal();",
"@Given(\"^I navigate to team page \\\"([^\\\"]*)\\\"$\")\n public void navigate_to_teamPage(String nameTeam){\n addNewTeam = mainPage.clickNewTeam();\n teamPage = addNewTeam.createTeam(nameTeam);\n }",
"@Override\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\tretrieveProjectAndObject(dccdHit);\n\t\t\t\t// Note: could also give selected entity object!\n\t\t\t\tString selectedEntityId = object.getId();\n\n\t\t\t\tsetResponsePage(new ProjectViewPage(project, selectedEntityId));\n\t\t\t}",
"@Override\n\t\t\tpublic void onClick()\n\t\t\t{\n\t\t\t\tretrieveProjectAndObject(dccdHit);\n\t\t\t\t// Note: could also give selected entity object!\n\t\t\t\tString selectedEntityId = object.getId();\n\n\t\t\t\tsetResponsePage(new ProjectViewPage(project, selectedEntityId));\n\t\t\t}",
"public void checkUnresultedReferral() {\n info(\"We will check, if there is already unresulted referral\");\n BaseWingsSteps.logInAs(Roles.STAFF);\n StaffHomeForm staffHomeForm = new StaffHomeForm();\n if (!staffHomeForm.checkUnresultedReferralsPresent()) {\n Participant participant = new Participant(AccountUtils.getParticipantAccount());\n JobOrder jobOrder = new JobOrder(AccountUtils.getEmployerAccount());\n User staff = new User(Roles.STAFF);\n ReferralSteps.createReferral(participant, jobOrder, staff);\n ReferralSteps.setUnresultedReferralCreationDate(participant);\n BaseWingsSteps.logInAs(Roles.STAFF);\n }\n\n logStep(\"Select unresulted referral->Details->Edit\");\n staffHomeForm.selectUnresultedReferrals();\n }",
"@Then(\"^user is navigated to \\\"([^\\\"]*)\\\"$\")\n public void user_is_navigated_to(String expectedUrl) {\n driver.findElement(By.xpath(\"//form[@action='https://www.phptravels.net/admin/blog/']/*[1]\")).click();\n driver.findElement(By.xpath(\"//form[@class='add_button']/*[1]\")).click();\n Assert.assertEquals(\"Navigating to wrong URL\", expectedUrl, driver.getCurrentUrl());\n }",
"public void clickOnProceedToCheckoutButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnProceedToCheckoutButton.click();\n\n \t}",
"private void returnHome(){\n if (Boolean.toString(UpdatedHomePage.updatedHomeStarted).equals(\"false\")) {\n startActivity(new Intent(FinalPlan.this, Home.class));\n } else {\n Intent intent = new Intent(this, UpdatedHomePage.class);\n Bundle extras = new Bundle();\n extras.putBoolean(\"filtered\", true);\n intent.putExtras(extras);\n startActivity(intent);\n }\n }",
"@Given(\"^User is on netbanking landing page$\")\r\n public void user_is_on_netbanking_landing_page() throws Throwable {\n System.out.println(\"Navigated to Login URL\");\r\n }",
"public void toExamSe(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam navigation item clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n intent.putExtra(\"finnish\", false);\n intent.putExtra(\"startNewExam\", true);\n db.setIsFinnishQuestions(false);\n startActivity(intent);\n }",
"@Test(priority = 99)\r\n@Epic(\"BILLS PAYMENT\")\r\n@Features(value = { @Feature(value = \"SCHOOL FEES PAYMENTS\") })\r\n@Step (\"Verify that system is able to search and display correct school Name school code and Bank branch when user click on search for school functionality\")\r\npublic void Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality() {\n\tdriver.findElement(By.xpath(\"//a[contains(.,'Home')]\")).click();\r\n\tWebDriverWait wait = new WebDriverWait(driver, 15);\r\n\twait.until(ExpectedConditions.visibilityOfElementLocated(By.linkText(\"Bill Payment\")));\r\n\tdriver.findElement(By.linkText(\"Bill Payment\")).click();\r\n\tWebDriverWait wait1 = new WebDriverWait(driver, 15);\r\n\twait1.until(\r\n\t\tExpectedConditions.visibilityOfElementLocated(By.xpath(\"//div[text()=' Institutional Payments ']\")));\r\n\tdriver.findElement(By.xpath(\"//div[text()=' Institutional Payments ']\")).click();\r\n\tdriver.findElement(By.xpath(\"//div[@class='col-in schoolFee']\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\t{\r\n\t WebElement dropdown = driver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\"));\r\n\t dropdown.findElement(By.xpath(\"//option[. = 'Account Number']\")).click();\r\n\t}\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL_BY\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).click();\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SF_ACCOUNT_NUMBER\")).sendKeys(\"01129080146300\");\r\n\tdriver.findElement(By.id(\"FORM_SF_SCHOOL_INFO-SEARCH_SCHOOL\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_NAME .ct-form__ip\")).click();\r\n\tdriver.findElement(By.cssSelector(\".ct-formlayout-SCHOOL_CODE .ct-form__ip\")).click();\r\n\tSystem.out.println(\"TC13 Verify_that_system_is_able_to_search_and_display_correct_school_name_school_code_and_Bank_branch_when_user_click_on_search_for_school_functionality |Success:\");\r\n\r\n\t}",
"public KPAUIHealthAndWellnessPage clickHealthAndWellnessLink(){\n getHealthAndWellnessLink().click();\n return new KPAUIHealthAndWellnessPage(driver);\n }",
"public TripandPriceDetailsPage goToTripandPriceDetailsPage() {\n\t\tselectedDepartureFlight.click();\n\t\tselectedReturnFlight.click();\n\t\tcontinueButton.click();\n\t\treturn new TripandPriceDetailsPage(driver);\n\t}",
"public void aFieldGoal(View view) {\n scoreTeamA = scoreTeamA + 3;\n displayForTeamA(scoreTeamA);\n }",
"@Step(\"Creating a new Clinical Purchase Requisitions for a Work Order\")\n public void verifyCreatingNewPurchaseRequistion() throws Exception {\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n pageActions.scrollthePage(ClinicalPurchaseRequisitionsTab);\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(ClinicalPurchaseRequisitionsTab));\n functions.highlighElement(driver, ClinicalPurchaseRequisitionsTab);\n pageActions.clickAt(ClinicalPurchaseRequisitionsTab, \"Clicking on purchase requistions tab\");\n pageActions.clickAt(clinicalPurchaseReqNewButton, \"Clicking on purchase requistions New buttton\");\n String randomExternalPO_Number = \"Test\"+Functions.getTimeStamp();\n pageActions.type(externalPO_Number, randomExternalPO_Number, \"Entered Clicnical PO Number\");\n clinicalPurchaseShortDescription.sendKeys(\"Automation externalPO_Numbner desc\");\n pageActions.clickAt(clinicalPurchaseSubmitButton, \"Clicking on SubmitButton\");\n pageActions.clickAt(saveAndGoButton, \"Clicked on save and go button\");\n searchExternalPONumber();\n\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent in = new Intent();\n\t\t\t\tin.setClass(CollegeDetails.this,CollegePlacements.class);\n\t\t\t\tstartActivity(in);\n\t\t\t\t//finish();\n\t\t\t\t\n\t\t\t}",
"@Then(\"I land on the controlgroup page\")\n public void i_land_on_the_controlgroup_page() {\n System.out.println(\"inside then\");\n Assertions.assertEquals(\"https://jqueryui.com/controlgroup/\", driver.getCurrentUrl());\n }",
"public void forceNavigation(String destination)\r\n \t{\n \t\tif (!this.currentState.isAuthenticated())\r\n \t\t{\r\n \t\t\tdestination = ChooseCasePilot.generateNavigationId(ChooseCasePilot.PageId.login);\r\n \t\t}\r\n \r\n \t\tcurrentState.setCurrentView(destination);\r\n \r\n \t\tString view = this.findViewId(destination);\r\n \t\tString page = this.findPageId(destination);\r\n \r\n \t\t// Get the right pilot to get the right content to show next.\r\n \t\tPilot currentPilot = this.getPilot(view);\r\n \t\tif (currentPilot == null)\r\n \t\t{\r\n \t\t\tthis.swapContent(this.show404Error());\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\t// Set the current mode to determine whether the user has privelages to\r\n \t\t// access the page they want to go to.\r\n \t\tcurrentPilot.determineAccessRights(page, this.currentState);\r\n \r\n \t\tapplyCloseStepPolicy(currentPilot, view, page);\r\n \r\n \t}",
"public void educationLoan() {\n\t\tSystem.out.println(\"HSBC---educationLoan\");\n\t}",
"@Override\n public void grindClicked() {\n Uri webpage = Uri.parse(\"http://www.grind-design.com\");\n Intent webIntent = new Intent(Intent.ACTION_VIEW, webpage);\n startActivity(webIntent);\n }",
"public void toExamFi(View view) {\n Log.i(\"BOTTOM NAVIGATION\", \"to exam navigation item clicked\");\n Intent intent = new Intent(getApplicationContext(), ExamActivity.class);\n intent.putExtra(\"finnish\", true);\n intent.putExtra(\"startNewExam\", true);\n db.setIsFinnishQuestions(true);\n startActivity(intent);\n }",
"public void LocationAssesment_COPE(){\r\n\t\tString Tradeoccupancy = getValue(\"TradeOccupancy\");\r\n\tString Account = getValue(\"Account\");\r\n\t boolean flag=false;\r\n\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 should be clicked and user should get logged in\");\r\n\t\ttry{\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t/*driver.switchTo().defaultContent();\r\n\t\t\t\t\tsleep(3000);\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget2Ifr\"));\r\n\t\t\t click(locator_split(\"tabLocationAssesment\"));\r\n\t\t\t click(locator_split(\"linkclickLocation\"));*/\r\n\t\t\t // driver.findElement(By.xpath(\"//*[@tabindex='4']/a/span\")).click();\r\n\t\t\t // driver.findElement(By.xpath(\"//a[@title='Click here to open Location Assessment']\")).click();\r\n\t\t\t driver.switchTo().defaultContent();\r\n\t\t\t System.out.println(\"switched frame\"+ switchframe(\"PegaGadget3Ifr\"));\r\n\t\t\t click(locator_split(\"tabcope\"));\r\n\t\t\t //driver.findElement(By.xpath(\"//li[@tabindex='0']/a/span\")).click();\r\n\t\t\t clearWebEdit(locator_split(\"txtStoreyscope\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t sendKeys(locator_split(\"txtStoreyscope\"), getValue(\"Numberofstories\"));\r\n\t\t\t clearWebEdit(locator_split(\"txtbuildingheightcope\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtbuildingheightcope\"),getValue(\"Buildingheight\"));\r\n\t\t\t \r\n\t\t\t selectListValue(locator_split(\"listbasementcope\"), getValue(\"Basement\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t clearWebEdit(locator_split(\"txtyearbuildcope\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtyearbuildcope\"), getValue(\"YearBuild\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t clearWebEdit(locator_split(\"txtyearlastupgradecope\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtyearlastupgradecope\"), getValue(\"LastUpgradeyear\"));\r\n\t\t\t clearWebEdit(locator_split(\"txtbasementfloorelevationcope\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtbasementfloorelevationcope\"), getValue(\"FloorElevation\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t System.out.println(\"Account is\"+Account);\r\n\t\t\t if(Account.equals(\"EEA\"))\r\n\t\t\t {\r\n\t\t\t clearWebEdit(locator_split(\"txttotalareacope\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txttotalareacope\"), getValue(\"TotalAreaSqft\"));\r\n\t\t\t clearWebEdit(locator_split(\"txtfireareacope\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtfireareacope\"),getValue(\"FireArea\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t selectListValue(locator_split(\"listroofcondition\"),getValue(\"Roofcondition\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t if(Account.equals(\"CP\")){\r\n\t\t\t \tSystem.out.println(\"inside CP\");\r\n\t\t\t \tsleep(2000);\r\n\t\t\t \tselectListValue(locator_split(\"listpredominantcope\"), getValue(\"Predominantconstruction\"));\r\n\t\t\t \tsleep(1000);\r\n\t\t\t \tclearWebEdit(locator_split(\"txtis06AA\"));\r\n\t\t\t\t sleep(5000);\r\n\t\t\t\t sendKeys(locator_split(\"txtis06AA\"),getValue(\"ClassAA\"));\r\n\t\t\t\t\tsleep(2000);\r\n\t\t\t\t\t System.out.println(\"Value entered in AA\");\r\n\t\t\t\t\t click(locator_split(\"txtis05A\"));\r\n\t\t\t\t\t sleep(10000);\r\n\t\t\t\t clearWebEdit(locator_split(\"txtis05A\"));\r\n\t\t\t\t sleep(5000);\r\n\t\t\t\t sendKeys(locator_split(\"txtis05A\"),getValue(\"ClassA\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t click(locator_split(\"txtis04\"));\r\n\t\t\t\t sleep(10000);\r\n\t\t\t\t clearWebEdit(locator_split(\"txtis04\"));\r\n\t\t\t\t sleep(5000);\r\n\t\t\t\t sendKeys(locator_split(\"txtis04\"),getValue(\"ClassB\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t click(locator_split(\"txtcmd04\"));\r\n\t\t\t\t sleep(10000);\r\n\t\t\t\t clearWebEdit(locator_split(\"txtcmd04\"));\r\n\t\t\t\t sleep(5000);\r\n\t\t\t\t sendKeys(locator_split(\"txtcmd04\"),getValue(\"ClassC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t click(locator_split(\"txtis03\"));\r\n\t\t\t\t sleep(10000);\r\n\t\t\t\t clearWebEdit(locator_split(\"txtis03\"));\r\n\t\t\t\t sleep(5000);\r\n\t\t\t\t sendKeys(locator_split(\"txtis03\"),getValue(\"IS03ClassB\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t click(locator_split(\"txtcmd03\"));\r\n\t\t\t\t sleep(10000);\r\n\t\t\t\t clearWebEdit(locator_split(\"txtcmd03\"));\r\n\t\t\t\t sleep(5000);\r\n\t\t\t\t sendKeys(locator_split(\"txtcmd03\"),getValue(\"CMDISO3ClassC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t click(locator_split(\"txtis02\"));\r\n\t\t\t\t sleep(10000);\r\n\t\t\t\t clearWebEdit(locator_split(\"txtis02\"));\r\n\t\t\t\t sleep(5000);\r\n\t\t\t\t sendKeys(locator_split(\"txtis02\"),getValue(\"IS02ClassC\"));\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t click(locator_split(\"txtis01\"));\r\n\t\t\t\t sleep(10000);\r\n\t\t\t\t clearWebEdit(locator_split(\"txtis01\"));\r\n\t\t\t\t sleep(5000);\r\n\t\t\t\t sendKeys(locator_split(\"txtis01\"),getValue(\"IS01\"));\r\n\t\t\t \t\tsleep(5000);\t \r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t selectListValue(locator_split(\"listtradeoccupancy\"), getValue(\"TradeOccupancy\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t selectListValue(locator_split(\"listhazardgrade\"), getValue(\"Hazardgrade\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t \r\n\t\t\t if (Tradeoccupancy.equals(\"Oil & Chemical\")&& (Account.equals(\"EEA\")))\r\n\t\t\t {\r\n\t\t\t \t sleep(1000);\r\n\t\t\t selectListValue(locator_split(\"listfireindex\"), getValue(\"Fireindex\"));\r\n\t\t\t sleep(1000);\r\n\t\t\t selectListValue(locator_split(\"listexplosionindex\"),getValue(\"Explosionindex\"));\r\n\t\t\t \t\t\r\n\t\t\t sleep(1000);\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t\tsleep(3000);\r\n\t\t\t clearWebEdit(locator_split(\"txtoperatinghours\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtoperatinghours\"), getValue(\"Operatinghours\"));\r\n\t\t\t sleep(1000);\r\n\t\t\t clearWebEdit(locator_split(\"txtoperatingdays\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtoperatingdays\"), getValue(\"Operatingdays\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t clearWebEdit(locator_split(\"txtautosprinkler\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtautosprinkler\"), getValue(\"Autosprinkler\"));\r\n\t\t\t\tsleep(3000);\r\n\t\t\t clearWebEdit(locator_split(\"txtadequate\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtadequate\"), getValue(\"Adequate\"));\r\n\t\t\t\tsleep(3000);\r\n\t\t\t clearWebEdit(locator_split(\"txtasn\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtasn\"), getValue(\"ASN\"));\r\n\t\t\t\tsleep(3000);\r\n\t\t\t clearWebEdit(locator_split(\"txtdeduction\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t sendKeys(locator_split(\"txtdeduction\"), getValue(\"Deduction\"));\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"txtyearbuildcope\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t \r\n/*WebElement checkbox=driver.findElement(By.xpath(\"//img[contains(@name,'SaveButtonsForCOPE_pyWorkPage')]\")).\r\nsleep(2000);\r\nhighlight(checkbox);*/\r\nSystem.out.println(\"Checkbox status\");\r\nsleep(2000);\r\n/*System.out.println(driver.findElement(By.xpath(\"//img[@src='webwb/lv_unchecked_12144257304.gif!!.gif']\")).isDisplayed());\r\nsleep(2000);\r\nif(driver.findElement(By.xpath(\"//img[@src='webwb/lv_unchecked_12144257304.gif!!.gif']\")).isDisplayed()== true)\r\n{\r\n\tsleep(2000);\r\n\tclick(locator_split(\"checkboxsavecope\"));\r\n\tsleep(2000);\r\n\t//driver.findElement(By.xpath(\"//img[@src='webwb/lv_unchecked_12144257304.gif!!.gif']\")).click();\r\n}else{\r\n\tSystem.out.println(\"Check box already checked\");\r\n}*/\r\n//System.out.println(checkbox.getAttribute(arg0)());\r\n\t\t\t // System.out.println(verifyCheckboxChecked(locator_split(\"checkboxsavecope\")));\r\n\t\t//\tflag=verifyCheckboxChecked(locator_split(\"xpath-//img[contains(@name,'SaveButtonsForCOPE_pyWorkPage')]\"));\r\n\t\t/*\t sleep(2000);\r\n\t\t\t if(!checkbox.isSelected()){\r\n\t\t\t\t System.out.println(\"inside if loop\");\r\n\t\t\t\t checkbox.click();\r\n\t\t\t\t sleep(2000);\r\n\t\t\t }\r\n\t\t\t else{\r\n\t\t\t\t checkbox.click();\r\n\t\t\t\t System.out.println(\"inside else loop\");\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t checkbox.click();\r\n\t\t\t\t sleep(2000);\r\n\t\t\t }*/\r\n\t\t\t \r\n\t\t\t /* driver.findElement(By.xpath(\"//label[contains(.,'Click here if the Screen is Completed')]\")).click();\r\n\t\t\t Robot r=new Robot();\r\n\t\t\t r.keyPress(java.awt.event.KeyEvent.VK_TAB);\r\n\t\t\t sleep(1000);\r\n\t\t\t r.keyPress(java.awt.event.KeyEvent.VK_ENTER);\r\n\t\t\t sleep(2000);*/\r\n\t\t/*if (flag==true){\r\n\t\t\t System.out.println(\"flag\"+flag);\r\n\t\t\t System.out.println(\"Checked Already\");\r\n\t\t\t sleep(2000);\r\n\t\t\t click(locator_split(\"checkboxsavecope\"));\r\n\t\t\t //sleep(2000);\r\n\t\t\t \t//\t\t click(locator_split(\"checkboxsavecope\"));\r\n\t\t click(locator_split(\"btncopesave\"));\r\n\t\t\t sleep(2000);\r\n\t\t\t }else{\r\n\t\t\t\t\r\n\t\t\t\t sleep(2000);\r\n\t\t\t\t click(locator_split(\"checkboxsavecope\"));\r\n\t\t\t\t sleep(3000);\r\n\t\t\t }\r\n\t\t\t */\r\n\t\t\t \r\n\t\t\t sleep(5000);\r\n\t\t\t if(getValue(\"BROWSER\").equalsIgnoreCase(\"InternetExplorer\")){\r\n\t\t\t System.out.println(\"inside iE loop\");\r\n\t\t\t \tclick(locator_split(\"btncopesave_ie\"));\t\r\n\t\t\t }else{\r\n\t\t\t \tclick(locator_split(\"btncopesave_ie\"));\r\n\t\t\t }\r\n\t\t\r\n\t\t\t sleep(5000);\r\n\t\t\t click(locator_split(\"txtLocationnext\"));\r\n\t\t\t sleep(3000);\r\n\t\t\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t//switchframe(\"PegaGadget2Ifr\");\r\n\t\t//\tsleep(3000);\r\n\t\t//clickbylinktext(\"No\");\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\tReporter.log(\"PASS_MESSAGE:- Report tab is clicked and user is logged in\");\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Report tab is not clicked in\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with\"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"LoginLogout\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\r\n\t}",
"private void viewPage(String club) throws JSONException, InterruptedException {\r\n logger.log(Level.INFO, \"Would you like to view the \" + \r\n club + \" clubpage? (y/n)\");\r\n \r\n // if yes, go to club page\r\n // else return to display prompt\r\n if(\"y\".equalsIgnoreCase(in.nextLine())) {\r\n \t Club clubToView = new Club(club);\r\n \t clubToView.printClubPromptsAndInfo(PolyClubsConsole.user instanceof ClubAdmin);\r\n }\r\n \r\n else \r\n displaySearch(); \r\n }",
"@When(\"^the user open the Parabank Registration page$\")\r\n\tpublic void the_user_open_the_Parabank_Registration_page() throws Throwable {\n\t getUrl();\r\n\t}",
"public void navigateToHomePage() {\n\t\n\t\t\tScreenShot screen = new ScreenShot();\n\n\t\t\t// Utilize the driver and invoke the chrome browser\n\t\t\tdriver.get(\" https://www.progressive.com/\");\n\t\t\tdriver.manage().window().maximize();\n\n\t\t\t// Wait for page to be loaded\n\t\t\tdriver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);\n\n\t\t\t// Take a Screenshot\n\t\t\tscreen.takeSnapShot(driver, \"Progressive Insurance HomePage\");\n\t\t\t\n\t\t\tclickAutoInsurance();\t\n\t\t\n\t\t}",
"@Test\n public void setCurrent() throws SQLException {\n DataStorer.insertProfile(profile1);\n DataStorer.insertGoal(goal1, profile1);\n // Current for goal1 is currently true so change it to false\n boolean current = false;\n goal1.setCurrent(current);\n // Load profile1 from the database\n loadedProfile = DataLoader.loadProfile(profile1.getFirstName(), profile1.getLastName());\n\n //goal1.setCurrent(true);\n\n // Check that current was updated correctly in the database - will get index out of bounds exception if it was not\n assertEquals(current, loadedProfile.getPastGoals().get(0).isCurrent());\n\n // Reset current to true so other tests can use goal1\n goal1.setCurrent(true);\n }",
"@Override\n public void onClick(View v) {\n Intent r2page = new Intent(v.getContext(), Cherwell_Boathouse.class);\n startActivity(r2page);\n }",
"public void onClick(View arg0) {\n\n\t\t\t\tIntent i=new Intent(getApplicationContext(),Community_Vitality.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}",
"@Override\n public void onClick(View v) {\n Intent rpIntent = new Intent(Intent.ACTION_VIEW);\n // Set the URL to be used.\n rpIntent.setData(Uri.parse(\"http://www.rp.edu.sg\"));\n startActivity(rpIntent);\n }",
"public void enterURL() throws IOException {\n\t\tLoginSignupCompanyPage sp = new LoginSignupCompanyPage(driver);\n\t\tlog.info(\"enter signup url to create child company\");\n\t\t// driver.get(\"http://www.simplebilling.co.in:8080/signup\");\n\t\tp.getPropertyFile(\"test\", \"configuration.properties\");\n\t\tString url = p.getVal(\"url\");\n\t\tdriver.get(url);\n\t}",
"private void continueButton() {\n Optional<Squadron> anyAvailable = game\n .getHumanPlayer()\n .getNations()\n .stream()\n .filter(Nation::isSquadronsPresent)\n .flatMap(nation -> game.getHumanPlayer().getSquadrons(nation, SquadronLocationType.LAND).stream())\n .filter(Squadron::isAvailable)\n .findAny();\n\n List<Region> regionsNotSatisfied = gameMap\n .areAllRegionsSatisfied(game.getHumanSide());\n\n if (anyAvailable.isPresent()) {\n warnNotAllSquadronsDeployed();\n } else if (regionsNotSatisfied.size() > 0) {\n warnNotAllRegionsSatisfied(regionsNotSatisfied);\n } else {\n navigate.goNext(this.getClass(), stage);\n }\n }",
"@Given(\"^user in the home page of Southall travel$\")\n public void user_in_the_home_page_of_Southall_travel() throws Throwable {\n }",
"public void educationLoan() {\n\t\tSystem.out.println(\"HSBC--educationLoan\");\n\t}",
"public void educationLoan() {\n\t\tSystem.out.println(\"HSBC--educationLoan\");\n\t}",
"public EmagHomePage clickonContinueButton()\n {\n continueButton.click();\n return new EmagHomePage(driver);\n }",
"private void changeGoal(ExerciseSessionGoal newGoal) {\n\n\t\tif (newGoal == null) {\n\t\t\tthrow new RuntimeException(\"New goal cannot be null.\");\n\t\t}\n\n\t\tif (workoutService != null && workoutService.getService().getStatus().isMonitoring()) {\n\t\t\tthrow new RuntimeException(\"Cannot change goal while running a session.\");\n\t\t}\n\n\t\tthis.goal = newGoal;\n\t\tbtnSelectWorkout.setText(goal.getName(this));\n\t\tlogger.debug(\"changeGoal(): Changed goal [goal = \" + goal + \"]\");\n\n\t\tif (newGoal instanceof RouteGoal) {\n\t\t\tshowRoutePolyline(((RouteGoal) newGoal).getRouteId());\n\t\t\tsetMapMode(true);\n\t\t} else {\n\t\t\tclearRoutePolyline();\n\t\t}\n\n\t}",
"public void playerView(View view) {\n PlayerCapabilityFacade pcf = new PlayerCapabilityFacade();\n Intent intent;\n if(pcf.isTournamentActive()) {\n intent = new Intent(ModeSelectionActivity.this, PlayerTourneyActivity.class);\n } else {\n intent = new Intent(ModeSelectionActivity.this, PlayerTotalsActivity.class);\n }\n\n startActivity(intent);\n\n //else onclick go to PlayerTourneyActivity\n }",
"private void doResearch() {\n\t\tSystem.out.println(\"Students must do research\");\n\t}",
"public void courseOperation() {\n\t\tthePerson.createCourseMenu();\n\t}",
"public void onClick(View v) {\n AcceptRequest(Instructors.get(v.getId()));\n //restart activity\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n }",
"private void goToDetailedRune()\n\t{\n\t\tLog.e(\"before pages\", String.valueOf(player.getSummonerID()));\n\t\tRunePages tempPages = player.getPages().get(String.valueOf(player.getSummonerID()));\n\t\tLog.e(\"after pages\", String.valueOf(tempPages.getSummonerId()));\n\t\tSet<RunePage> tempSetPages = tempPages.getPages();\n\t\tRunePage currentPage = new RunePage();\n\t\tfor (RunePage tempPage : tempSetPages)\n\t\t{\n\t\t\tif (tempPage.getName() == player.getCurrentRunePage())\n\t\t\t{\n\t\t\t\tLog.e(\"temp page\", \"page found\");\n\t\t\t\tcurrentPage = tempPage;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t// now we have the page, need to get the runes out of it\n\t\tList<RuneSlot> tempSlots = currentPage.getSlots();\n\t\tArrayList<Integer> tempIDs = new ArrayList<Integer>();\n\t\tLog.e(\"tempSlots size\", String.valueOf(tempSlots.size()));\n\t\tfor (int i = 0; i < tempSlots.size(); i++)\n\t\t{\t\n\t\t\tLog.e(\"tempSlot\", String.valueOf(tempSlots.get(i).getRune()));\n\t\t\ttempIDs.add(tempSlots.get(i).getRune());\n\t\t}\n\t\tfillRuneList(tempIDs);\n\t\t// go to the screen\n\t\tIntent intent = new Intent(activity, RuneDetailActivity.class);\n\t\tactivity.startActivity(intent);\n\t}"
]
| [
"0.6005016",
"0.57103693",
"0.56938714",
"0.55324185",
"0.55269504",
"0.55133563",
"0.5503868",
"0.5480764",
"0.54736",
"0.54497755",
"0.54278684",
"0.5407291",
"0.53958976",
"0.5378387",
"0.5333165",
"0.5331922",
"0.5317058",
"0.5278148",
"0.5267276",
"0.5262793",
"0.5250614",
"0.5244441",
"0.52310425",
"0.5224223",
"0.5220103",
"0.52068233",
"0.5200516",
"0.51908934",
"0.5184857",
"0.51609313",
"0.51602656",
"0.5140661",
"0.513856",
"0.51369894",
"0.5120787",
"0.511317",
"0.50985706",
"0.50849515",
"0.50833464",
"0.50831383",
"0.5066042",
"0.5056682",
"0.5056515",
"0.50512576",
"0.5040138",
"0.50338113",
"0.5033119",
"0.50154227",
"0.5007403",
"0.49914494",
"0.49805814",
"0.49803394",
"0.4977947",
"0.49705175",
"0.49690208",
"0.49651518",
"0.4959213",
"0.4952622",
"0.4947406",
"0.4942052",
"0.4936367",
"0.4924282",
"0.4924282",
"0.49237227",
"0.4915479",
"0.49101204",
"0.4907989",
"0.49064296",
"0.49033988",
"0.4901348",
"0.48994493",
"0.48988658",
"0.48849562",
"0.48837236",
"0.48828",
"0.48826867",
"0.48809162",
"0.48800656",
"0.48794445",
"0.48765606",
"0.4874836",
"0.48701304",
"0.4862227",
"0.48606807",
"0.48591256",
"0.48571894",
"0.48570558",
"0.48546374",
"0.48528874",
"0.48527184",
"0.4850059",
"0.4849406",
"0.4849406",
"0.48411188",
"0.48404068",
"0.48387176",
"0.48371017",
"0.4836814",
"0.48367754",
"0.48335356"
]
| 0.6343948 | 0 |
REQUIRES: MODIFIES: EFFECTS:throws NullPointerException if str == nul, if str is palindrome returns true if not returns false | public static boolean IsPalindrome(String str) {
int maxIndex = str.length() - 1;
if (str.length() <= 1)
return true;
for (int i = 0; i < str.length() / 2; i++) {
if (str.charAt(i) != str.charAt(maxIndex - i))
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static boolean isPalindrome(String str){\n\t\tString a = str.replaceAll(\"\\\\s+\",\"\");\n\t\tString b = new StringBuilder(a).reverse().toString();\n\t\treturn a.equalsIgnoreCase(b);\n\t}",
"static boolean isPalindrome(String str) {\n\n if (str.length() <= 1) return true;\n\n return str.charAt(0) != str.charAt(str.length()-1) ? false : isPalindrome(str.substring(1, str.length()-1));\n }",
"private boolean isPalindrome(String str){\n for(int i=0, j=str.length()-1; i<j; i++,j--){\n if(str.charAt(i) != str.charAt(j)){\n return false;\n }\n }\n return true;\n }",
"public boolean isPalindrome(String str) {\n\t\t//index of first element of the string\n\t\tint i = 0;\n\t\t//index of last element of the string\t\n\t\tint j = str.length() - 1;\t\n\t\t\n\t\t//iterate through the string\n\t\twhile (i < j) {\n\t\t\t//if a mismatch is found, return false\n\t\t\tif (str.charAt(i) != str.charAt(j)) \n return false;\n\t\t\t//if no mismatch is found at current stage, keep checking\n\t\t\ti++;\n\t\t\tj--;\n\t\t}\n\t\t//string is confirmed to be a palindrome, return true\n\t\treturn true;\n\t}",
"public static void checkPalindrome(String str) {\n\n\t\tString reverse = new StringBuffer(str).reverse().toString();\n\n\t\t// check whether the string is palindrome or not\n\t\tif (str.equalsIgnoreCase(reverse)) {\n\n\t\t\tSystem.out.println(\"Given string is Palindrome\");\n\n\t\t} else {\n\t\t\tSystem.out.println(\"Given string is Not Palindrome\");\n\t\t}\n\t}",
"static boolean isPalindrome(char []str) \n{ \n\tint len = str.length; \n\n\t// single character is always palindrome \n\tif (len == 1) \n\t\treturn true; \n\n\t// pointing to first character \n\tchar ptr1 = str[0]; \n\n\t// pointing to last character \n\tchar ptr2 = str[len-1]; \n\n\twhile (ptr2 > ptr1) \n\t{ \n\t\tif (ptr1 != ptr2) \n\t\t\treturn false; \n\t\tptr1++; \n\t\tptr2--; \n\t} \n\n\treturn true; \n}",
"public static boolean isPalindrome(String str)\n {\n String str2 = \"\";\n str = str.toLowerCase();\n for(int i = str.length() - 1; i > -1; i--)\n {\n str2 += str.substring(i, i + 1);\n }\n if (str.equals(str2))\n return true;\n return false;\n }",
"public boolean isPalindrome(String s) {\n if (s == null || s.length() == 0) return true;\n s = s.replaceAll(\"[^a-zA-Z0-9]\", \"\").toLowerCase();\n int left = 0;\n int right = s.length() - 1;\n while (left < right) {\n if (s.charAt(left++) != s.charAt(right--)) {\n return false;\n }\n }\n return true;\n }",
"public static boolean isPalindrome(String str) {\n\r\n StringBuilder reversedString = new StringBuilder();\r\n for (int i = str.length() - 1; i >= 0; i--) {\r\n reversedString.append(str.charAt(i));\r\n }\r\n\r\n return str.equals(reversedString.toString());\r\n }",
"public static boolean isPalindrome(String str) {\n StringBuilder reverse = new StringBuilder();\n String clean = str.toLowerCase();\n char[] plain = clean.toCharArray();\n for (int i = plain.length - 1; i >= 0; i--) {\n reverse.append(plain[i]);\n }\n return (reverse.toString()).equals(clean);\n\n }",
"public static boolean findStringPalindrome(String str) {\r\n\t\tString rev = \"\";\r\n\t\tfor (int i = str.length() - 1; i >= 0; i--) {\r\n\t\t\trev = rev + str.charAt(i);\r\n\t\t}\r\n\t\tif (str != rev) {\r\n\t\t\treturn false;\r\n\t\t} else\r\n\t\t\treturn true;\r\n\t}",
"public static boolean isPalindrome(String str) {\n\n String newstring = \"\";\n for (int i = str.length()-1; i >=0; i=i-1) {\n newstring = newstring + str.charAt(i);\n }\n if(str.equals(newstring)){\n return true;\n }\n else{\n return false;\n }\n\n }",
"private static boolean isPalindromic(String str) {\n if (str.length() < 3)\n return false;\n\n // Check to see if the word is a palindrome\n // From the first character to the midpoint...\n for (int i = 0; i <= str.length() / 2; i++) {\n // From the last chracter to the midpoint...\n for (int j = str.length() - 1; j >= str.length() / 2; j--) {\n // If the end characters are not equal, it's not a palindrome\n // Otherwise, assume it is until proven otherwise\n if (i >= j) {\n return true;\n }\n else if (str.charAt(i) != str.charAt(j)) {\n return false;\n }\n else\n i++;\n }\n }\n // If it is never disproved, it's probably a palindrome\n return true;\n }",
"private boolean isPalindrome(String s) {\r\n int l = 0, r = s.length() - 1;\r\n while (l <= r && s.charAt(l) == s.charAt(r)) {\r\n l++;\r\n r--;\r\n }\r\n return l >= r;\r\n }",
"public static boolean isPalindrome(String a)\n { \n boolean flag = true; \n //Iterate the string forward and backward and compare one character at a time \n //till middle of the string is reached \n for(int i = 0; i < a.length()/2; i++)\n { \n if(a.charAt(i) != a.charAt(a.length()-i-1))\n { \n flag = false; \n break; \n } \n } \n return flag; \n }",
"public static boolean isPalindrome(String s) {\n if(s ==null||s.length()<=0)\n return true;\n int frontIndex=0;\n int backIndex = s.length()-1;\n \n char[] strChar = s.toCharArray();\n \n while(frontIndex < backIndex){\n while(!Character.isLetterOrDigit(strChar[frontIndex])&&frontIndex<s.length()-1)\n frontIndex++;\n while(!Character.isLetterOrDigit(strChar[backIndex])&&backIndex>0)\n backIndex--;\n if(Character.isUpperCase(strChar[frontIndex]))\n strChar[frontIndex] = Character.toLowerCase(strChar[frontIndex]);\n if(Character.isUpperCase(strChar[backIndex]))\n strChar[backIndex] = Character.toLowerCase(strChar[backIndex]);\n if(strChar[frontIndex]!=strChar[backIndex]&&(Character.isLetterOrDigit(strChar[frontIndex])&&Character.isLetterOrDigit(strChar[backIndex]))){\n return false;\n }else{\n frontIndex++;\n backIndex--;\n \n }\n }\n return true;\n \n \n }",
"public static boolean checkPalaindrome(String s) {\n if (s == null) return false;\n String refinedString = s.toLowerCase()\n .replaceAll(\" \",\"\")\n .replaceAll(\"[^a-z]\", \"\");\n int i =0;\n int j = refinedString.length() -1;\n while (i < j) {\n if (refinedString.charAt(i) != refinedString.charAt(j)) {\n return false;\n }\n i++ ; j--;\n }\n return true;\n }",
"public static boolean IsPalindrome(String string){\r\n \r\n string = string.replace(\" \", \"\");\r\n \r\n String reverseString = new StringBuilder(string).reverse().toString();\r\n\r\n return reverseString.equalsIgnoreCase(string);\r\n }",
"public boolean isPalindrome(String s){ \n if(palindromes.containsKey(s))\n return (palindromes.get(s)).booleanValue();\n int m=0;\n int n=s.length()-1;\n while(m<n){\n if(s.charAt(m++)!=s.charAt(n--)){\n palindromes.put(s,new Boolean(false));\n return false;\n }\n }\n palindromes.put(s,new Boolean(true));\n return true;\n }",
"public boolean validPalindrome(String s) {\n int start = 0;\n int end = s.length() - 1;\n return validPalindrom(s, start, end, true);\n }",
"public static boolean palindrome(String s){\n \ts=helpPalindrome(s);\n \tif(s.length()>1){\n \t\tif(s.charAt(0)==s.charAt(s.length()-1)){\n \t\t\tpalindrome(s.substring(1,s.length()-1));\n \t\t} else\n \t\t\treturn false;\n \t}\n \t\n \tif(s.length()<2||s.length()>-1)\n \t\treturn true;\n \t\n \treturn false;\n }",
"static boolean isPalindrome(String s) {\n\t\tint i = 0, j = s.length() - 1;\n\t\twhile (i < j) {\n\t\t\tif (s.charAt(i) != s.charAt(j))\n\t\t\t\treturn false;\n\t\t\t++i;\n\t\t\t--j;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean testPalindromicity(String s) {\n s = s.replaceAll(\"[^a-zA-Z]\", \"\").toLowerCase();\n char[] sArr = s.toCharArray();\n\n int i=0;\n while (i < sArr.length-1-i) {\n if (sArr[i] != sArr[sArr.length-1-i])\n return false;\n i++;\n }\n return true;\n }",
"public static boolean isPalindrome(String input){\n String backwards = \"\";\n int i = input.length();\n while (i > 0) { // creates a backwards string of input\n backwards = backwards + input.substring(i - 1, i);\n i--;\n }\n return (backwards.equals(input)); //returns true if backwards string is same as input\n }",
"private static boolean isPalindrome(String s) {\n\t\t\n\t\tString newS = s.replaceAll(\"[^a-zA-Z0-9]\", \"\").toLowerCase();\n\t\tSystem.out.println(newS);\n\t\t\n\t\treturn new StringBuilder(newS).reverse().toString().equals(newS);\n\t}",
"private static boolean isItPalindrome(String s) {\n\t\t\n\t\ts = s.toLowerCase();\n\t\t\n\t\tint i = 0, j = s.length()-1;\n\t\t\n\t\twhile(i < j) {\t\t\t\t\t\t\n\t\t\t\n\t\t\t// Both i and j skips the non-alphanumerics.\n\t\t\twhile(!Character.isLetterOrDigit(s.charAt(i)) && i < j) { ++i; }\n\t\t\t\n\t\t\twhile(!Character.isLetterOrDigit(s.charAt(j)) && j > i) { --j; }\n\t\t\t\n\t\t\tif(s.charAt(i++) != s.charAt(j--))\n\t\t\t\treturn false;\t\t\t\t\t\t\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isPalindrome_v2(String s)\n { \n return isPalindrome(s, 0, s.length()-1);\n }",
"public boolean validPalindrome(String s) {\n\t\tif (s.length() <= 1)\n\t\t\treturn true;\n\n\t\tint l = 0;\n\t\tint r = s.length() - 1;\n\t\twhile (l <= r) {\n\t\t\tif (s.charAt(l) == s.charAt(r)) {\n\t\t\t\tl++;\n\t\t\t\tr--;\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\treturn pali(s, l, r - 1) || pali(s, l + 1, r);\n\t\t\t}\n\t\t}\n\t\treturn true;\n\n\t}",
"public static boolean isPalindrome( String s ) {\n// two indexes --> front and back to move toowards each other\n if (s.length() == 0 || s.length() == 1)\n return false;\n int i = 0;\n int j = s.length() - 1;\n while (i != j && i < j ) {\n if (s.charAt(i) == s.charAt(j)) {\n i++; j--;\n }\n else\n return false;\n }\n return true;\n }",
"public static boolean isPalindrome(String s) {\n if(s==null){\n return false;\n }\n\n s = s.toLowerCase();\n\n int i=0;\n int j=s.length()-1;\n\n while(i<j){\n while(i<j && !((s.charAt(i)>='a' && s.charAt(i)<='z')\n || (s.charAt(i)>='0'&&s.charAt(i)<='9'))){\n i++;\n }\n\n while(i<j && !((s.charAt(j)>='a' && s.charAt(j)<='z')\n || (s.charAt(j)>='0'&&s.charAt(j)<='9'))){\n j--;\n }\n\n if(s.charAt(i) != s.charAt(j)){\n return false;\n }\n\n i++;\n j--;\n }\n\n return true;\n }",
"public static boolean isPalindrome2(String s) {\n List<Character> list = new ArrayList<>();\n for (int i = 0; i < s.length(); i++) {\n char c = Character.toLowerCase(s.charAt(i));\n if (c >= 'a' && c <= 'z' || c >= '0' && c <='9')\n list.add(c);\n }\n for (int i = 0; i < list.size() / 2; i++)\n if (list.get(i) != list.get(list.size() - i - 1))\n return false;\n return true;\n }",
"private static boolean is_palindrome(String test) {\n\t\t\n\t\treturn false;\n\t}",
"public boolean isPalindrome(String input){\n\t\t\n\t\t//if the input string is null, then return false\n\t\tif(input == null )\n\t\t\treturn false;\n\t\t\n\t\t//strip the input of all whitespaces\n\t\tinput = input.trim();\n\t\t\n\t\t//if what remains is of length 0 or 1, return true\n\t\tif(input.length()==0||input.length()==1)\n\t\t\treturn true;\n\t\telse\n\t\t{\n\t\t\t//set up two counters, one at the starting and one at the ending.\n\t\t\tint i = 0;\n\t\t\tint j = input.length() - 1;\n\t\t\t\n\t\t\t//while they don't cross paths, compare the characters at the counters and move them in opposite directions\n\t\t\t//return false if the characters don't match.\n\t\t\twhile(i < j)\n\t\t\t{\n\t\t\t\tif(input.charAt(i)!=input.charAt(j))\n\t\t\t\t\treturn false;\n\t\t\t\ti++;\n\t\t\t\tj--;\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\t\n\t\t\n\t}",
"static boolean is_palindrome(String s) {\n /* using iteration */\n for (int i = 0; i < Math.floor(s.length() / 2); i++) {\n int lastindex = s.length() - 1 - i;\n String endchar = s.substring(lastindex, lastindex + 1);\n String startchar = s.substring(i, i + 1);\n if (!startchar.equals(endchar)) {\n return false;\n }\n }\n return true;\n }",
"static boolean isRealPalindrome(String s) {\n return s.chars().distinct().count() > 1 // Contains more\n // than one letter\n && s.equals(new StringBuilder(s).reverse().toString()); // Is a palindrome\n }",
"public static boolean checkPalindrome(String s){\n\t\t\n\t\tfor(int i=0;i<(s.length()/2);i++ ){\n\t\t\t\n\t\t\tif(s.charAt(i)!=s.charAt(s.length()-1-i)){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public static boolean isPalindrome(String s) {\n s = s.toLowerCase();\n // Store all letters and digits in new string. We don't care about space and special characters etc.\n StringBuilder builder = new StringBuilder();\n for (char ch : s.toCharArray()) {\n if (Character.isLetterOrDigit(ch)) {\n builder.append(Character.toLowerCase(ch));\n }\n }\n String s1 = builder.toString();\n boolean palindrome = true;\n int length = s1.length();\n int frontIndex = 0;\n int backIndex = length - 1;\n // Two indexes, one that points to the first index and one to the last index\n while (frontIndex < backIndex) {\n char c1 = s1.charAt(frontIndex);\n char c2 = s1.charAt(backIndex);\n if (c1 != c2) {\n palindrome = false;\n break;\n }\n frontIndex += 1;\n backIndex -= 1;\n }\n return palindrome;\n }",
"public boolean isPalindromeNotWorking(String s) {\n\t\t\n if(s.isEmpty()) {\n \treturn true;\n }\n s = s.toLowerCase();\n int length = s.length();\n boolean ispalindrome = true;\n for(int i=0,j=length-1;i<j;) {\n \tint left = (int)s.charAt(i);\n \tint right = (int)s.charAt(j);\n \tboolean isleftAlphabet = isAlphabet(left);\n \tboolean isrightAlphabet = isAlphabet(right);\n \tif(!isleftAlphabet) {\n \t\ti++;\n \t}\n \tif(!isrightAlphabet) {\n \t\tj--;\n \t}\n \tif(isleftAlphabet && isrightAlphabet) {\n \t\tif(s.charAt(i) != s.charAt(j)) {\n \t\tispalindrome = false;\n \t\tbreak;\n \t}else {\n \t\ti++;\n \t\tj--;\n \t}\n \t}\n \t\n }\n return ispalindrome; \n }",
"private boolean isPalindrome(String s) {\n if (!this.Memoize.containsKey(s)) {\n if (s.length() < 2) {\n this.Memoize.put(s, true);\n } else {\n String sub = s.substring(1, s.length() - 1);\n // check the recursed results\n this.Memoize.put(s, this.isPalindrome(sub) && s.charAt(0) == s.charAt(s.length() - 1));\n }\n }\n return this.Memoize.get(s);\n }",
"public boolean isPalindrome22(String s) {\n s = s.toLowerCase().replaceAll(\"[^a-z0-9]\", \"\");\n return new StringBuilder(s).reverse().toString().equals(s);\n }",
"public static boolean containsPalindrome(String str) {\n String[] words = str.split(\"\\\\s+\");\n int count = 0;\n for (String word : words) {\n if (isPalindromic(word))\n count++;\n }\n\n // Remove spaces to check entire sentence\n str = str.replaceAll(\"\\\\s\", \"\");\n\n return (count > 1) || isPalindromic(str);\n }",
"public static boolean isPallindrome(String st) {\n\t\t\n\t\tif(st==null || st==\"\") {\n\t\t\treturn true;\n\t\t}\n\t\tint first =0;\n\t\tint last = st.length()-1;\n\t\twhile(first <last) {\n\t\t\tif(st.charAt(first) != st.charAt(last)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tfirst++;\n\t\t\tlast--;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isPalindrome(String s) {\n\t\t// base case\n\t\tif (s.length() < 2) {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// compare first and last\n\t\tif (s.charAt(0) != s.charAt(s.length()-1)) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\t// recursive case\n\t\tisPalindrome(s.substring(1, s.length()-1));\n\t\t\n\t\treturn true;\n\t}",
"public boolean isPalindrome(String s) {\n s = s.toLowerCase();\n int start = 0;\n int end = s.length() - 1;\n char sc;\n char ec;\n boolean pass;\n while (end > start) {\n sc = s.charAt(start);\n ec = s.charAt(end);\n pass = false;\n if ((sc < 'a' || sc > 'z') && (sc < '0' || sc > '9')) {\n start++;\n pass = true;\n }\n if ((ec < 'a' || ec > 'z') && (ec < '0' || ec > '9')) {\n end--;\n pass = true;\n }\n if (pass) continue;\n if (s.charAt(start++) != s.charAt(end--)) return false;\n }\n return true;\n }",
"public boolean isPalindrome(String s) {\n int i = 0, j = s.length() - 1;\n while (i < j) {\n while (i < s.length() && !Character.isLetterOrDigit(s.charAt(i))) {\n i++;\n }\n\n while (j >= 0 && !Character.isLetterOrDigit(s.charAt(j))) {\n j--;\n }\n\n if (i < j && Character.toLowerCase(s.charAt(i++)) != Character.toLowerCase(s.charAt(j--))) {\n return false;\n }\n }\n return true;\n }",
"include<stdio.h>\nint main()\n{\n char t[1000]; \n scanf(\"%s\",t); \n \n int i,j,len; \n len=strlen(t); \n i=0; \n j=len-1; \n while(i<=j)\n {\n if(t[i]!=t[j])\n { break; } \n j--; i++;\n } \n \n if(i<j)\n printf(\"%s is not a palindrome\",t); \n else\n printf(\"%s is a palindrome\",t); \n \n return 0;\n}",
"public boolean isPalindrome2(String s) {\n int start = 0;\n int end = s.length() - 1;\n while(start <= end) {\n while(start <= end && !Character.isLetterOrDigit(s.charAt(start))) {\n start++;\n }\n while(start <= end && !Character.isLetterOrDigit(s.charAt(end))) {\n end--;\n }\n if(start <= end && Character.toLowerCase(s.charAt(start)) != Character.toLowerCase(s.charAt(end))) {\n return false;\n }\n start++;\n end--;\n }\n return true;\n }",
"public static boolean isPalindrome(String inputString) {\n\t\tchar ar[] = inputString.toCharArray();\n\t\tfor (int i = 0, j = ar.length - 1; i < (ar.length / 2); i++, j--) {\n\t\t\tif (ar[i] != ar[j])\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean validPalindrome(String s) {\n char[] chars = s.toCharArray();\n\n int i = 0;\n int j = s.length() - 1;\n\n int count = 1;\n boolean result = true;\n while (i < j) {\n if (chars[i] != chars[j] && count == 1) {\n //删掉当前的i\n i++;\n count--;\n }\n if (chars[i] != chars[j] && count == 0) {\n result = false;\n }\n i++;\n j--;\n }\n\n if (result) {\n return true;\n }\n\n i = 0;\n j = s.length() - 1;\n\n count = 1;\n while (i < j) {\n if (chars[i] != chars[j] && count == 1) {\n //删掉当前的j\n j--;\n count--;\n }\n if (chars[i] != chars[j] && count == 0) {\n return false;\n }\n i++;\n j--;\n }\n\n\n return true;\n }",
"public static boolean isPalindrome(String s) {\n int head = 0, tail = s.length() - 1;\n while (head < tail) {\n char cl = 0, cr = 0;\n while (!Character.isLetterOrDigit(cl) && head < s.length())\n cl = s.charAt(head++);\n while (!Character.isLetterOrDigit(cr) && tail >= 0)\n cr = s.charAt(tail--);\n if (head < s.length() && Character.toLowerCase(cl) != Character.toLowerCase(cr))\n return false;\n }\n return true;\n }",
"public final boolean isPalindromeEfficient(String stringToCheck){\n stringToCheck = stringToCheck.replaceAll(\"[^A-Za-z0-9]\", \"\").toLowerCase();\n int n = stringToCheck.length();\n stringToCheck = stringToCheck.toLowerCase();\n int limitSuperior = n-1;\n int stopCondition = (n / 2) + 1;\n for (int i = 0; i < stopCondition; ++i) {\n if (stringToCheck.charAt(i) != stringToCheck.charAt(limitSuperior - i)) {\n return false;\n }\n }\n return true;\n }",
"public static PerformOperation isPalindrome() {\n return (num) -> {\n String number = Integer.toString(num);\n String reversed = new StringBuilder(number).reverse().toString();\n return number.equals(reversed);\n };\n }",
"public static boolean isPalindrome_v1(String s)\n { // if length is 0 or 1 then String is palindrome\n System.out.println(s);\n if(s.length() == 0 || s.length() == 1)\n return true; \n \n if(s.charAt(0) == s.charAt(s.length()-1)) //base case\n /* check for first and last char of String:\n * if they are same then do the same thing for a substring\n * with first and last char removed. and carry on this\n * until you string completes or condition fails\n * Function calling itself: Recursion\n */\n \n return isPalindrome_v1(s.substring(1, s.length()-1));\n\n /* If program control reaches to this statement it means\n * the String is not palindrome hence return false.\n */\n return false;\n }",
"public static boolean canFormPalindrome(String str) {\n\t\n\t// Create a count array and initialize all\n\t// values as 0\n\tint count[] = new int[NO_OF_CHARS];\n\tArrays.fill(count, 0);\n\n\t// For each character in input strings,\n\t// increment count in the corresponding\n\t// count array\n\tfor (int i = 0; i < str.length(); i++)\n\tcount[(int)(str.charAt(i))]++;\n\n\t// Count odd occurring characters\n\tint odd = 0;\n\tfor (int i = 0; i < NO_OF_CHARS; i++) \n\t{\n\tif ((count[i] & 1) == 1)\n\t\todd++;\n\n\tif (odd > 1)\n\t\treturn false;\n\t}\n\n\t// Return true if odd count is 0 or 1,\n\treturn true;\n}",
"public static boolean palindrome(String s) {\n\t\tString uncluttered=new String();\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\tif(Character.isLetter(s.charAt(i))==true) {\n\t\t\tuncluttered=uncluttered+s.charAt(i);\n\t\t}\n\t\tuncluttered=uncluttered.toLowerCase();\n\t\t}\n\t\tfor(int i=0; i<uncluttered.length()/2; i++) {\n\t\t\tif(uncluttered.charAt(i)==uncluttered.charAt(uncluttered.length()-(i+1))) {\n\t\t\t\t\n\t\t\t}else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean validPalindrome(String s, int head, int tail) {\n\t\tif (tail - head == 0) return true;\n\t\tint left = head, right = tail;\n\t\twhile (left <= right) {\n\t\t\tif (s.charAt(left) != s.charAt(right)) return false;\n\t\t\tleft ++;\n\t\t\tright --;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean validPalindrome(String s) {\n int start = 0, end = s.length() - 1;\n int[] delete = new int[3];\n while (start < end) {\n char a = s.charAt(start);\n char b = s.charAt(end);\n \n if (a != b) {\n if (delete[0] == 2) {\n return false;\n }\n if (delete[0] == 1) {\n delete[0] = 2;\n start = delete[1];\n end = delete[2];\n end += 1;\n } else {\n delete[0] = 1;\n delete[1] = start;\n delete[2] = end;\n start -= 1;\n }\n }\n start += 1;\n end -= 1;\n }\n return true;\n }",
"public static boolean isPalindrome(String str, Boolean ignoreCase) {\n if (str == null || str.isEmpty() || str.length() <= 1)\n return true;\n\n\n int left = 0;\n int right = str.length() - 1;\n\n while (left < right) {\n\n if (!ignoreCase && str.charAt(left) != str.charAt(right))\n return false;\n\n if (ignoreCase && Character.toUpperCase(str.charAt(left)) != Character.toUpperCase(str.charAt(right)))\n return false;\n\n left++;\n right--;\n }\n\n return true;\n\n }",
"public boolean isPalindrome(String word) {\n if (word == null) {\n /** Unsure about this. Need to verify. */\n return false;\n }\n if (word.length() == 0 || word.length() == 1) {\n return true;\n }\n StringBuilder reverse = new StringBuilder(word).reverse();\n return word.equals(reverse.toString());\n }",
"public static boolean isPalindrome(String word) {\n String palindrome = new StringBuilder(word).reverse().toString();\n \n if(word.compareToIgnoreCase(palindrome) == 0) return true;\n else return false;\n }",
"public final boolean isPalindrome(String stringToCheck){\n return stringToCheck.replaceAll(\"[^A-Za-z]\", \"\").toLowerCase().equals(\n new StringBuilder(stringToCheck.replaceAll(\"[^A-Za-z]\", \"\").toLowerCase()).reverse().toString());\n }",
"public static String isPalindrome(String str) {\n\t\tchar ch[] = new char[(str.length())];\r\n\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tfor (int i = str.length()-1; i>=0; i--) {\r\n\t\t\tch[i] = str.charAt(i);\r\n\t\t\t// System.out.println(ch[i]);\r\n\t\t\tsb.append(ch[i]);\r\n\t\t}\r\n\t\t// System.out.println(sb);\r\n\t\tString rev = sb.toString();\r\n\t\treturn rev;\r\n\t\t}",
"private static boolean isPalindrome(String text, int left, int right)\n {\n\n if (right - left <= 0)\n return true;\n else if (text.charAt(left) != text.charAt(right))\n return false;\n else\n return isPalindrome(text, left + 1, right - 1);\n\n // do as homework the version that ignores non-alphabetic symbols\n }",
"public static boolean isPalindrome(String s) {\n\t\tif (s == null || s.trim().isEmpty())\n\t\t\treturn true;\n\t\tif (s.length() == 1) {\n\t\t\treturn true;\n\t\t}\n\t\tchar[] charArray = s.toLowerCase().toCharArray();\n\t\tint start = 0;\n\t\tint end = charArray.length - 1;\n\t\twhile (start < end) {\n\t\t\twhile (start < charArray.length\n\t\t\t\t\t&& !isAlphanumeric(charArray[start]))\n\t\t\t\tstart++;\n\t\t\twhile (end >= 0 && !isAlphanumeric(charArray[end]))\n\t\t\t\tend--;\n\n\t\t\tif (start >= charArray.length || end < 0)\n\t\t\t\treturn true;\n\n\t\t\tif (charArray[start] != charArray[end])\n\t\t\t\treturn false;\n\t\t\tstart++;\n\t\t\tend--;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean isPalindrome(String input) {\n\t\t\n\t\tif(input == \"\") {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//strip out all spaces\n\t\tinput.replaceAll(\"\\\\s\", \"\");\n\t\tint i = 0; \n\t\tint j = input.length() - 1;\n\t\t\n\t\twhile(i < j) {\n\t\t\tif(Character.toLowerCase(input.charAt(i)) != Character.toLowerCase(input.charAt(j))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++;\n\t\t\tj--;\n\t\t}\n\t\treturn true;\n\t}",
"public static boolean isPalindrome(String word){\r\n\t\tboolean palindrome = false;\r\n\t\tif(word.length()%2 == 1){\r\n\t\t\tfor(int a= 0; a<word.length()/2; a++){\r\n\t\t\t\tfor (int b = word.length()-1; b> word.length()/2; b--){\r\n\t\t\t\t\tif( word.charAt(a)== word.charAt(b)){\r\n\t\t\t\t\t\tpalindrome = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tpalindrome = false;\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\telse {\r\n\t\t\tfor(int a= 0; a<word.length()-1; a++){\r\n\t\t\t\tfor (int b = word.length()-1; b> 0; b--){\r\n\t\t\t\t\tif( word.charAt(a)== word.charAt(b)){\r\n\t\t\t\t\t\tpalindrome = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tpalindrome = false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\treturn palindrome;\r\n\r\n}",
"public static boolean isPallindrome(String s) {\n\t\tif (StringUtils.isEmpty(s)) {\n\t\t\treturn false;\n\t\t}\n\t\treturn StringUtils.reverse(s).equals(s);\n\t}",
"public static boolean palindrome(String s) {\n\t\tString str = s.replaceAll(\" \", \"\");\n\n\t\t//str.replace(\"?\", \"\");\n\t\tString newStr = \"\";\n\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(str);\n\t\tif(sb.charAt(sb.length()-1) == '?') {\n\t\t\tsb.deleteCharAt(sb.length()-1);\n\t\t}\n\t\tfor (int i = 0; i < sb.length(); i++) {\n\t\t\ttry {\n\t\t\t\tif(sb.charAt(i) == '?') {\n\t\t\t\t\tsb.deleteCharAt(i);\n\t\t\t\t}\n\t\t\t\tif(sb.charAt(i) == ',') {\n\t\t\t\t\tsb.deleteCharAt(i);\n\t\t\t\t}\n\t\t\t\tif(sb.charAt(i) == '.') {\n\t\t\t\t\tsb.deleteCharAt(i);\n\t\t\t\t}\n\t\t\t\tif(sb.charAt(i) == ':') {\n\t\t\t\t\tsb.deleteCharAt(i);\n\t\t\t\t}\n\t\t\t}catch(Exception e) {}\n\t\t}\n\t\tnewStr = sb.toString();\n\t\tsb.reverse();\n\t\t//System.out.println(sb.toString());\n\t\t\n\t\t\n\n//\t\tfor (int i = str.length(); i > 0; i--) {\n//\t\t\tnewStr = newStr + str.charAt(i-1);\n//\t\t}\n\t\t\n\t\t//System.out.println(newStr + \" \" + str);\n\t\tif(newStr.equalsIgnoreCase(sb.toString()))\n\t\treturn true;\n\t\telse\n\t\treturn false;\n\t}",
"public static void isPalindromeString(String palindrome){\n String result =\"\";\n for(int i = palindrome.length()-1; i>=0; i--){\n result += palindrome.charAt(i);\n }\n System.out.println(\"The reversed string is: \" + result);\n\n if(palindrome.equalsIgnoreCase(result)){\n System.out.println(result + \" IS a palindrome\");\n }else {\n System.out.println(result + \" is NOT a palindrome!\");\n }\n }",
"private boolean isPalindrome(String str, int low, int high){\n while (low <= high){\n if (str.charAt(low) == str.charAt(high)){\n low++;\n high--;\n }\n else\n return false;\n }\n \n return true;\n }",
"public static boolean isPal(String s)\n {\n if(s.length() == 0 || s.length() == 1){\n return true; \n }\n //recursive call\n if(s.charAt(0) == s.charAt(s.length()-1))\n /* check for first and last char of String:\n * if they are same then do the same thing for a substring\n * with first and last char removed. and carry on this\n * until you string completes or condition fails\n * Function calling itself: Recursion\n */\n {\n return isPal(s.substring(1, s.length()-1));\n }\n /* If program control reaches to this statement it means\n * the String is not palindrome hence return false.\n */\n return false;\n }",
"private boolean checkString(){\n createString();\n char[] charsJoinedString=this.joinedTextPalindrome.toCharArray();\n int lengthString=charsJoinedString.length-1;\n for(int i=0;i<charsJoinedString.length;i++){\n if(charsJoinedString[i]!=charsJoinedString[lengthString]){\n return false;\n }\n lengthString--;\n }\n return true;\n \n }",
"private static boolean ifPalindrome(char[] input, int start, int end){\r\n\t\t//the idea is to scan from 1st to the mid point to see the reverse side char same as the picked one and return\r\n\t\tfor(int i=start;i<=(start+end)/2;i++){ //notice that we use <= other than<\r\n\t\t\tif(input[i] ==input[start+end-i]){\r\n\t\t\t\tcontinue;\r\n\t\t\t}else{\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if we come here that means it is a palindrome for selected start/end\r\n\t\treturn true;\r\n\t}",
"public boolean isPalindrome3(String s) {\n char[] c = s.toCharArray();\n for (int i = 0, j = c.length - 1; i < j; ) {\n if (!Character.isLetterOrDigit(c[i])) i++; // error: isWhitespace is not applicable eg.\":,1\"\n else if (!Character.isLetterOrDigit(c[j])) j--;\n else if (Character.toLowerCase(c[i++]) != Character.toLowerCase(c[j--]))\n return false;\n }\n return true;\n }",
"public boolean isPalindrome(String word) {\n if (word.length() == 0 || word.length() == 1) {\n return true;\n }\n Deque<Character> L = wordToDeque(word);\n return isPalindrome(L);\n }",
"public static Boolean isPalindrome(String s, int start, int end) {\n\t\tif(start < 0 || end < 0) return false;\n\t\t\n\t\twhile(start < end) {\n\t\t\tif(s.charAt(start) != s.charAt(end)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tstart++;\n\t\t\tend--;\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"private static boolean isPalindrome(int num) {\n\t\t// Reversing a number\n\t\tint reverse = 0;\n\t\tfor (int i = num; i > 0; i /= 10)\n\t\t\treverse = reverse * 10 + i % 10;\n\n\t\t// If num and reverse are same, then num is palindrome\n\t\treturn num == reverse;\n\t}",
"public static void main(String[] args) {\n String s = \"MOM\";\n String reverse = \"\";\n String d = \"IMTIAZ\";\n String back = \"\";\n char[] word = s.toLowerCase().toCharArray();\n for (int i = s.length() - 1; i >= 0; i--) {\n reverse = reverse + s.charAt(i);\n for (int j = d.length() - 1; j >= 0; j--) {\n back = back + d.charAt(j);\n }\n\n }\n if (s.equals(reverse)) {\n System.out.println(s + \"--word is a palindron\");\n\n } else {\n System.out.println(s + \"--word is not a palindron\");\n }\n if (d.equals(back))\n System.out.println(d + \"--word is a palindron\");\n else\n System.out.println(d + \"--word is not a palindron\");\n\n\n\n isPalindrome(\"MADAM\");\n isPalindrome(\"IMTIAZ\");\n isPalindrome(\"AHMED\");\n isPalindrome(\"MOM\");\n }",
"public boolean hasPalindromeRemaining(String s, int i) {\n int p1 = i;\n int p2 = s.length() - 1;\n while (p1 < p2) {\n if (s.charAt(p1) != s.charAt(p2)) return false;\n p1++; p2--;\n }\n return true;\n }",
"static boolean checkPalin(String word) {\n\t\tint n = word.length();\n\n\t\t// making the check case\n\t\t// case insensitive\n\t\tword = word.toLowerCase();\n\n\t\t// loop to check palindrome\n\t\tfor (int i = 0; i < n; i++, n--)\n\t\t\tif (word.charAt(i) != word.charAt(n - 1))\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}",
"private static boolean palindrome(String input, int i, int j) {\n\t while (i < j) {\n\t if (input.charAt(i) != input.charAt(j)) {\n\t return false;\n\t }\n\t i++;\n\t j--;\n\t }\n\t return true;\n\t }",
"public static boolean palindromEligible(String str) {\n \n Map<Character, Integer> parityMap = new HashMap<>();\n \n for (char c : str.toCharArray()) {\n if (parityMap.containsKey(c)) {\n parityMap.put(c, (parityMap.get(c) + 1) % 2);\n } else {\n parityMap.put(c, 1);\n }\n }\n \n \n // count 1s\n int count = 0;\n for (char c : parityMap.keySet()) {\n if (parityMap.get(c) == 1) {\n count ++;\n }\n }\n \n if (count > 1) {\n return false;\n }\n return true;\n }",
"static String possiblePalindrome(String str) {\n int[] charCounts = new int[26];\n for (int i = 0; i < str.length(); i++)\n charCounts[str.charAt(i) - 'a']++;\n\n // If string length is even, can't be any odd number of chars\n // If string length is odd, one odd number of chars is needed\n int oddChars = 0;\n for (int i = 0; i < charCounts.length; i++) {\n if (charCounts[i] % 2 == 1)\n oddChars++;\n }\n\n if (str.length() % 2 == 0) {\n if (oddChars == 0)\n return \"YES\";\n }\n else {\n if (oddChars == 1)\n return \"YES\";\n }\n return \"NO\";\n }",
"public static boolean palindrome(String s) {\n \tString x = \"\";\n \tfor(int i = 0; i<s.length(); i++) {\n \t\tif(Character.isLetter(s.charAt(i))) {\n \t\t\tx += s.substring(i, i + 1);\n \t\t}\n \t}\n \tString other = \"\";\n \tfor(int i = x.length() - 1; i>=0; i--) {\n \t\tother += x.substring(i, i + 1);\n \t}\n return other.compareToIgnoreCase(x) == 0;\n }",
"static void test_isPalindrome() {\n\n String pal1 = new String( \"a\" );\n String pal2 = new String( \"ab\" );\n String pal3 = new String( \"aba\" );\n String pal4 = new String( \"amanaplanacanalpanama\" );\n String pal5 = new String( \"abba\" );\n String pal6 = new String( \"Racecar\" );\n String pal7 = new String( \"RacecaR\" );\n\n\n System.out.println( \"\\nTESTS FOR isPalindrome() : \" );\n\n System.out.print( \"Test for string 'a' : \" );\n try { System.out.println( StringStuff.isPalindrome( pal1 ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'ab' : \" );\n try { System.out.println( StringStuff.isPalindrome( pal2 ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'aba' : \" );\n try { System.out.println( StringStuff.isPalindrome( pal3 ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'amanaplanacanalpanama' : \" );\n try { System.out.println( StringStuff.isPalindrome( pal4 ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'abba' : \" );\n try { System.out.println( StringStuff.isPalindrome( pal5 ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'Racecar' : \" );\n try { System.out.println( StringStuff.isPalindrome( pal6 ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n System.out.print( \"Test for string 'RacecaR' : \" );\n try { System.out.println( StringStuff.isPalindrome( pal7 ) ? \"true\" : \"false\" ); }\n catch( Exception e ) { System.out.println ( false ); }\n\n }",
"private boolean isPalindrome(String s) {\r\n\r\n if (s == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n // Implement this method body using your ArrayListStack. Be mindful of your algorithm!\r\n boolean isPal = true;\r\n String newString1 = s.toLowerCase().trim(); //Test if lower case trim off any spaces\r\n String newString2 = \"\";\r\n\r\n System.out.println(\"original \" + s);\r\n System.out.println(\"lower trimmed \" + newString1);\r\n\r\n //Removes any white spaces \r\n for (int i = 0; i < newString1.length(); i++) {\r\n if (Character.isWhitespace(newString1.charAt(i))) {\r\n continue;\r\n } else {\r\n newString2 += Character.toString(newString1.charAt(i));\r\n }\r\n }\r\n System.out.println(\"final \" + newString2); //Print the final string after we have cleaned it up\r\n\r\n ArrayListStack<Character> one; //Puts the string into an array list stack\r\n one = new ArrayListStack<>();\r\n\r\n for (int i = 0; i < newString2.length(); i++) {\r\n one.push(newString2.charAt(i)); //pushing each char into array list \"one\"\r\n }\r\n\r\n ArrayListStack<Character> two;\r\n two = new ArrayListStack<>();\r\n\r\n int len = newString2.length(); //put half on to array list \"two\"\r\n if (len % 2 == 0) {\r\n for (int i = 0; i < (len / 2); i++) {\r\n two.push(one.pop()); \r\n }\r\n } else {\r\n for (int i = 0; i <= (len / 2); i++) {\r\n if (i < (len - 1) / 2) {\r\n two.push(one.pop());\r\n } else {\r\n one.pop();\r\n }\r\n }\r\n }\r\n\r\n for (int i = 0; i < (len / 2); i++) { //This compares each of the slices\r\n if (!(one.pop().equals(two.pop()))) {\r\n isPal = false;\r\n break;\r\n }\r\n }\r\n System.out.println(\"palindrome? \" + isPal);\r\n return isPal;\r\n\r\n }",
"public static boolean isPalindrome(String s, int start, int last)\r\n\t{\r\n\t\tif(s.charAt(start) != s.charAt(last-1)) return false;\r\n\t\tif(start >= last) return true;\r\n\t\treturn isPalindrome(s, start+1, last-1);\r\n\t}",
"public void isValidPalindrome(String s, int left, int right) {\n while(left >= 0 && right<s.length() && s.charAt(left) == s.charAt(right)){\n left--;\n right++;\n }\n // check if we found a longer palindrome\n if(maxLen < right - left - 1){\n maxLen = right - left - 1;\n start = left + 1;\n }\n }",
"public boolean isPalindrome(String s, CharacterComparator comp) {\n if (s.length() == 0 || s.length() == 1) {\n return true;\n }\n String revS = new StringBuilder(s).reverse().toString();\n for (int i = 0; i < s.length(); i++) {\n if (!comp.equalChars(s.charAt(i), revS.charAt(i))\n && i != Math.floorDiv(s.length(), 2)) {\n return false;\n }\n }\n return true;\n }",
"public static boolean DaLiJePalindrom(String s)\n\t{\n\t\tint i=0, j=0, brojac=0;\n\t\twhile(s.length()-1-j>=0)\n\t\t\t{\n\t\t\tif(s.charAt(s.length()-1-j)== s.charAt(i)) brojac++;\n\t\t\ti++;\n\t\t\tj++;\n\t\t\t}\n\t\tif(brojac==s.length())return true;\n\t\treturn false;\n\t}",
"boolean checkPalindrome() {\n\t\t\n\t\tNode slow=head;\n\t\tNode fast=head;\n\t\t\n\t\tStack<Node> s= new Stack<Node>();\n\t\ts.push(slow);\n\t\t\n\t\twhile(fast.next!=null && fast.next.next!=null) {\n\t\t\t\n\t\t\tslow= slow.next;\n\t\t\tfast=fast.next.next;\n\t\t\ts.push(slow);\n\t\t}\n\t\t\n\t\tif(fast.next==null) //means ll has odd elements\n\t\t\ts.pop();\n\t\t\n\t\n\t\tNode secondhalf =slow.next;\n\t\twhile(secondhalf!=null) {\n\t\t\tif(s.pop().data!=secondhalf.data) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tsecondhalf=secondhalf.next;\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"public boolean isPalindrom(String word) {\n boolean palindrom = false;\n int middle = word.length() / 2;\n\n for (int i = 0; i < middle; i++) {\n for (int j = word.length() - i - 1; j >= middle; j--) {\n if (word.charAt(i) == word.charAt(j)) {\n palindrom = true;\n break;\n } else {\n return false;\n }\n }\n }\n\n return palindrom;\n }",
"public static void main(String[] args) {\n String string1 = new String(\"abcd\");\n if(isPisPalindrome(string1) == true){\n System.out.println(\"true\");\n }else{\n System.out.println(\"false\");\n }\n }",
"public static boolean palindrome(String word) {\n\t\t\r\n\t\tint equalsCounter=0;\r\n\t\t\r\n\t\tfor(int i=0;i<word.length();i++) {\r\n\t\t\t\r\n\t\tif(word.contains(\" \")) {\r\n\t\t\t\r\n\t\t\tword=word.replace(\" \",\"\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t\t if(word.charAt(i)==word.charAt(word.length()-(i+1))){\r\n\t\t\t\t\r\n\t\t\t\tequalsCounter++;\r\n\t\t\t\t\r\n\t\t\t\tif(equalsCounter==word.length()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else {\r\n\t\t\t\t\r\n\t\t\t\treturn false;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\t\r\n\t}",
"static int is_palindrome(int num)\n {\n int n, k, rev = 0;\n n = num; //store orig number\n // compute reverse of a number and store in rev\n while (num != 0)\n {\n k = num % 10;\n rev = (rev * 10) + k;\n num = num / 10;\n }\n if (n == rev) // palindrome check - if original number is same as its reverse\n return 1;\n return 0;\n }",
"public static boolean palindromeTest(int num) {\n\t\tString x = Integer.toString(num);\n\n\t\tif (x.charAt(0) == x.charAt(x.length() - 1)) {\n\t\t\tif (x.charAt(1) == x.charAt(x.length() - 2)) {\n\t\t\t\tif (x.charAt(2) == x.charAt(x.length() - 3)) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\treturn false;\n\t}",
"public boolean checkIfPermutationPalindrome(String str) {\n\n Hashtable<Character, Integer> table = generateTable(str);\n\n int oneOdd = 0;\n boolean flag;\n for(char ch : table.keySet()) {\n if(table.get(ch)%2 == 1) {\n oneOdd++;\n }\n }\n if(oneOdd <= 1) {\n flag = true;\n }\n else {\n flag = false;\n }\n if(str.length() == 0) {\n flag = false;\n }\n System.out.println(flag);\n return flag;\n }",
"public static void main(String[] args) {\n\r\n\t\tString str1 = \"madam\";\r\n\t\tString str2 = \"\";\r\n\t\tfor(int i = str1.length()-1;i>=0;i--) {\t\r\n\t\t\tchar[] rev = str1.toCharArray();\r\n\t\t\tstr2 =str2+ rev[i];\r\n\t\t}\r\n\t\tif(str1.equals(str2))System.out.println(\"The \"+str1+\" is a Palindrome\");\r\n\t\telse System.out.println(\"The \"+str1+\" is not a Palindrome\");\r\n\t}",
"public boolean isPalindrome21(String s) {\n char[] c = s.toCharArray();\n // Invariant: [0,i) and (j,N-1] are matched excluding whitespace\n for (int i = 0, j = c.length - 1; i < j; ) {\n if (!Character.isLetterOrDigit(c[i])) i++; // error: isWhitespace is not applicable eg.\":,1\"\n else if (!Character.isLetterOrDigit(c[j])) j--;\n else if (Character.toLowerCase(c[i]) != Character.toLowerCase(c[j])) return false;\n else {\n i++;\n j--;\n }\n }\n return true;\n }",
"public static boolean isPalindrome(String s, int length){\n if(length <= 1){\r\n return true;\r\n }\r\n // create a new string for the first letter\r\n String first = s.substring(0,1);\r\n \r\n //create a new string for the last letter\r\n String last = s.substring(s.length() - 1, s.length());\r\n \r\n //create an if statement if the first and the last letter equal together\r\n if(first.equals(last)){\r\n //use a subtring to seperate the letters\r\n return isPalindrome(s.substring(1, length - 1), length - 2); \r\n } else {\r\n //return false if the letters are not the same\r\n return false;\r\n }\r\n }"
]
| [
"0.8395749",
"0.8100094",
"0.80336016",
"0.8032444",
"0.80221003",
"0.800649",
"0.796329",
"0.79597723",
"0.79169697",
"0.78962743",
"0.7854884",
"0.78044593",
"0.77922404",
"0.77344733",
"0.7710047",
"0.76601774",
"0.76525664",
"0.7647637",
"0.7643337",
"0.76180404",
"0.76067203",
"0.7577342",
"0.75566447",
"0.75331366",
"0.7516283",
"0.75049603",
"0.74860626",
"0.7484281",
"0.7480376",
"0.74699694",
"0.74679875",
"0.74624705",
"0.7438377",
"0.7424196",
"0.7409681",
"0.74018055",
"0.7373771",
"0.73690045",
"0.7352272",
"0.7336172",
"0.7335324",
"0.73271316",
"0.7317486",
"0.7316318",
"0.7309615",
"0.7292757",
"0.7274878",
"0.7267065",
"0.72641397",
"0.725337",
"0.72430813",
"0.720067",
"0.7194178",
"0.7193801",
"0.71937495",
"0.718138",
"0.71758",
"0.7172914",
"0.7162151",
"0.71595037",
"0.7150127",
"0.714475",
"0.71351415",
"0.71185344",
"0.71174866",
"0.7115598",
"0.7106109",
"0.7090843",
"0.706707",
"0.7058282",
"0.7053328",
"0.7045145",
"0.70429504",
"0.70244753",
"0.70062244",
"0.69595915",
"0.6957832",
"0.6937458",
"0.69239223",
"0.69137084",
"0.6912447",
"0.69097805",
"0.69034475",
"0.6895108",
"0.68911356",
"0.68886685",
"0.6877786",
"0.685594",
"0.6853439",
"0.68339497",
"0.68290025",
"0.6818137",
"0.6810786",
"0.6797802",
"0.67895573",
"0.67806745",
"0.67780334",
"0.6776881",
"0.6754416",
"0.6709967"
]
| 0.7871425 | 10 |
groups or topics for group chats | public ServerHelper(Server server, Socket clientsoc) { //server obj is used to to call getlist method and use it
this.server = server;
this.clientsoc = clientsoc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isGroupChat() {\n return mIsGroupChat;\n }",
"private void groupChatSend(UserLogic t) {\n if(((String) UI.getContacts().getSelectedValue()).equals( groupChat)){\r\n if (t != UserLogic.this && t != null) { //Sending to other users chat\r\n if(((String)t.UI.getContacts().getSelectedValue()).equals(groupChat)) {\r\n t.UI.getProperList().addElement(username + \"> \" + UI.getMessage().getText());\r\n t.UI.getContacts().setCellRenderer(clearNotification);\r\n }\r\n else{\r\n t.UI.getContacts().setCellRenderer(setNotification);\r\n }\r\n if(t.chats.containsKey(groupChat)){\r\n ArrayList<String> arrayList = t.chats.get(groupChat);\r\n arrayList.add(username + \"> \" + UI.getMessage().getText());\r\n t.chats.put(groupChat, arrayList);\r\n }\r\n else {\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(username + \"> \" + UI.getMessage().getText());\r\n t.chats.put(groupChat, arrayList);\r\n }\r\n }\r\n\r\n if(t == UserLogic.this && t!=null){ //Send to my screen\r\n UI.getProperList().addElement(\"Me> \" + UI.getMessage().getText());\r\n if(chats.containsKey(groupChat)){ //Database group chat exists\r\n ArrayList<String> arrayList = chats.get(groupChat);\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(groupChat, arrayList);\r\n }\r\n else {\r\n ArrayList<String> arrayList = new ArrayList<>();\r\n arrayList.add(\"Me> \" + UI.getMessage().getText());\r\n chats.put(groupChat, arrayList);\r\n }\r\n }\r\n }\r\n }",
"public abstract void groupChatCreatedMessage(Message m);",
"public String getGroupId() {\n return groupId != null ? groupId : topic;\n }",
"public interface GroupChatView {\n void enterText();\n void appendMsg(String chatName, String chatMessage, String chatTime, String chatDate);\n}",
"public interface GroupChannel extends ChannelBase {\n\n /**\n * Gets all of the admins in the group.\n *\n * @return A {@link List} containing the admins of the group.\n */\n List<User> getAdmins();\n\n /**\n * Gets the topic of the channel.\n *\n * @return A string containing the topic of the channel.\n */\n String getTopic();\n\n /**\n * Sets the topic of the channel.\n *\n * @param topic The topic to set.\n */\n void setTopic(String topic);\n\n /**\n * Gets the join url of the channel.\n *\n * @return A string containing the join url of the channel, could be <code>null</code>\n */\n String getJoinUrl();\n\n /**\n * Gets the image url of the channel.\n *\n * @return A string containing the URL of the channel's image, code be <code>null</code>\n */\n String getImage();\n\n /**\n * Sets the image of the channel.\n *\n * @param image The direct URL of the image to set.\n */\n void setImage(String image);\n\n /**\n * Makes the {@link me.diax.jsa.core.Skype} leave the channel.\n */\n void leave();\n\n /**\n * Adds multiple contacts to the channel.\n *\n * @param contact The first {@link Contact} to add.\n * @param contacts The rest of the {@link Contact}s to add.\n */\n void addContacts(Contact contact, Contact... contacts);\n\n /**\n * Adds a single contact to the channel.\n *\n * @param contact The {@link Contact} to add to the channel.\n */\n void addContact(Contact contact);\n}",
"ConsumerGroups consumerGroups();",
"public StringWriter viewGroupChats(Request request, Response response) {\n\t\tStringWriter writer = new StringWriter();\n\t\tMap<String,Object> map = new HashMap<String, Object>();\n\t\tList<GroupDiscussionChat> chats = groupDiscussionService.getGroupChats(request, response);\n GroupDiscussion groupDiscussion = groupDiscussionService.getGroupDiscussionNameByID(request, response);\n List<User> users = new ArrayList<>();\n for(GroupDiscussionChat chat:chats ){\n User u = userService.getUserByID(chat.getUserID());\n users.add(u);\n }\n\t\tmap.put(\"chats\", chats);\n\t\tmap.put(\"users\", users);\n\t\tmap.put(\"group\", groupDiscussion);\n map.put(\"userID\", request.session().attribute(\"userID\"));\n\t\ttry {\n\t\t\tTemplate formTemplate = configuration.getTemplate(\"templates/viewChats.ftl\");\n\t\t\tformTemplate.process(map, writer);\n\t\t} catch (Exception e) {\n\t\t\tSpark.halt(500);\n\t\t}\n\t\treturn writer;\n\t}",
"public IDiscussionTopicList getAttachedDiscussionTopics()\n throws OculusException;",
"public IDiscussionTopicList getAttachedDiscussionTopics(IDataSet args)\n throws OculusException;",
"private void sendGroupMessage(String message){\n\n\t\tObject[] userIDs = chatInstanceMap.keySet().toArray();\n\n\t\tfor(int i = 0; i < userIDs.length; i++ ){\n\n\t\t\tsendMessage((String) userIDs[i], message);\n\t\t}\n\t}",
"public ChatRoom createClientGroupChatRoom(String subject, boolean fallback);",
"private void manageSelect(Map<String, String> xmlData) {\n\t\tboolean exist = false;\n\t\tIterator<Entry<String, TopicChat>> iterate = liveTopics.entrySet().iterator();\n\t\twhile(iterate.hasNext()){\n\t\t\tMap.Entry<String, TopicChat> pair = (Entry<String, TopicChat>) iterate.next();\n\t\t\tif(pair.getKey().equals(xmlData.get(\"topic\"))){\n\t\t\t\texist = true;\n\t\t\t}\n\t\t}\n\t\tif(xmlData.get(\"username\").equals(username) && (exist == false)){\n\t\t\tSystem.out.println(\"Time for new Topic\");\n\t\t\t\tTopicChat chat = new TopicChat();\n\t\t\t\tliveTopics.put(xmlData.get(\"topic\"), chat);\n\t\t\t\tchat.addListener(new TopicChat.Listener(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void sendMessage(String message) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\t//JOptionPane.showMessageDialog(chat, \"Oru nimisham machha!!\");\n\t\t\t\t\t\tString toSend = \"<append><topic>\" + xmlData.get(\"topic\") +\"</topic><user>\" + username + \"</user><msg>\" + message + \"</msg></append>\";\n\t\t\t\t\t\tsendData(toSend);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void closing() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tSystem.out.println(xmlData.get(\"topic\") + \" window has been closed\");\n\t\t\t\t\t\tliveTopics.remove(xmlData.get(\"topic\"));\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void clearChatMessage() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tchat.clearChatMsg();\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void setChat(Vector<Message> chatMessages) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tchat.setChatHistory(chatMessages);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t});\n\t\t\t\tchat.setTitle(getUsername() + \" - \" + xmlData.get(\"topic\"));\n\t\t\t}\n\t}",
"public ArrayList<String> topicConversation()\n\t{\n\t\treturn basicConversations;\n\t}",
"public IDiscussionTopicList getAttachedDiscussionTopics(boolean edit)\n throws OculusException;",
"public IDiscussionTopicList getAttachedDiscussionTopics(IDataSet args, boolean edit)\n throws OculusException;",
"String getTopic();",
"String getTopic();",
"Map<ContactId, GroupChatEvent.Status> getGroupChatEvents(String chatId);",
"public void SubToTopic(String key, String user) \r\n\t{\r\n\t\tTopic top= topics.get(key);\r\n\t\tUser currentUser= retrieveUser(user);\r\n\t\t\r\n\t\tif(topics.containsKey(key) && key.equalsIgnoreCase(\"Commits\"))\r\n\t\t{\r\n\t\t\ttop.setSub(currentUser);\r\n\t\t\ttop.addObserver(currentUser);\r\n\t\t\tSystem.out.println(currentUser.getName() + \" subscribed to Commits\");\r\n\t\t}\r\n\t\telse \r\n\t\t\tif(topics.containsKey(key) && key.equalsIgnoreCase(\"Issues\"))\r\n\t\t\t{\r\n\t\t\t\ttop.setSub(currentUser);\r\n\t\t\t\ttop.addObserver(currentUser);\r\n\t\t\t\tSystem.out.println(currentUser.getName() + \" subscribed to Issues\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tif(topics.containsKey(key) && key.equalsIgnoreCase(\"Discussion\"))\r\n\t\t\t\t{\r\n\t\t\t\t\ttop.setSub(currentUser);\r\n\t\t\t\t\ttop.addObserver(currentUser);\r\n\t\t\t\t\tSystem.out.println(currentUser.getName() + \" subscribed to Discussion\");\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t\tif(topics.containsKey(key) && key.equalsIgnoreCase(\"Tasks\"))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttop.setSub(currentUser);\r\n\t\t\t\t\t\ttop.addObserver(currentUser);\r\n\t\t\t\t\t\tSystem.out.println(currentUser.getName() + \" subscribed to Tasks\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\tSystem.out.println(\"Topic not found\");\r\n\t}",
"public void action() {\n for (int i = 0; i < myAgent.friends.size(); ++i) {\n SendRequestToFriend(myAgent.friends.get(i));\n }\n\n // Crée un filtre pour lire d'abord les messages des amis et des leaders des amis\n MessageTemplate temp = MessageTemplate.MatchReceiver(myfriends);\n MessageTemplate temp2 = MessageTemplate.MatchReceiver(friendsLeader);\n MessageTemplate tempFinal = MessageTemplate.or(temp, temp2);\n\n // Réception des messages\n ACLMessage messageFriendly = myAgent.receive(tempFinal);\n // si on n'est pas dans un groupe\n if (messageFriendly != null && !inGroup) {\n \t// s'il reçoit une proposition d'un amis/ leader d'un ami, il accepte, peu importe le poste et s econsidère dans le groupe\n if (messageFriendly.getPerformative() == ACLMessage.PROPOSE) {\n AcceptProposal(messageFriendly, Group.Role.valueOf(messageFriendly.getContent()));\n inGroup = true;\n }\n // s'il reçoit un CONFIRM, il enregistre le leader\n else if (messageFriendly.getPerformative() == ACLMessage.CONFIRM) {\n myLeader = messageFriendly.getSender();\n }\n // s'il reçoit un INFORM, il enregistre l'AID du leader de son ami afin de recevoir ses messages et lui demande son poste préféré\n else if (messageFriendly.getPerformative() == ACLMessage.INFORM) {\n AddFriendsLeaderToList(messageFriendly);\n AnswerByAskingPreferedJob(messageFriendly);\n }\n // sinon, il renvoie une erreur\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFriendly );\n }\n }\n // si on est dans un groupe\n else if (messageFriendly != null && inGroup) { \n \t// s'il reçoit une requete et qu'il est déjà dans un groupe, il renvoir l'AID de son leader à son ami\n if (messageFriendly.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFriendly);\n }\n // s'il reçoit un DISCONFIRM, il se remet en quete de job\n else if (messageFriendly.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFriendly);\n }\n else {\n \t// sinon, il refuse tout offre\n RefuseOffer(messageFriendly);\n }\n }\n else {\n \t// on check ensuite les messages des inconnus, une fois ceux des amis triés\n ACLMessage messageFromInconnu = myAgent.receive();\n \n // si on n'est pas dans un groupe\n if (messageFromInconnu != null && !inGroup) {\n \n boolean offerPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent().equals((\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\"));\n boolean offerNotPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent() != (\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\" );\n \n //on accepte l offre s'il s'agit de notre role préféré\n if (offerPreferedJob){\n AcceptProposal(messageFromInconnu, myAgent.preferedRole);\n }\n // on refuse s'il ne s'agit pas de notre offre favorite en redemandant notre job préféré\n else if (offerNotPreferedJob){\n RefuseOffer(messageFromInconnu);\n }\n // si on reçoit une confimation, on se considère dans un groupe et on enregistre notre leader\n else if (messageFromInconnu.getPerformative() == ACLMessage.CONFIRM){\n inGroup = true;\n myLeader = messageFromInconnu.getSender();\n }\n // sinon, il s'agit d'une erreure\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFromInconnu );\n }\n }\n // si on est dans un groupe\n else if (messageFromInconnu != null && inGroup) {\n \t// si on reçoit une requete, on renvoie à notre leader\n if (messageFromInconnu.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFromInconnu);\n }\n // si on reçoit un DISCONFIRM, on repart en quete de job\n else if (messageFromInconnu.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFromInconnu);\n }\n // sinon on refuse\n else {\n RefuseOffer(messageFromInconnu);\n }\n }\n // si le message est vide, on bloque le flux\n else {\n block();\n }\n }\n }",
"String getNewTopic();",
"public interface Chat {\n String getPhoneNumberNational();\n\n String getName();\n\n int getChannelID();\n\n int getPersonID();\n\n String getState();\n\n Date getLastMessageSentAt();\n\n String getIsGroupChat();\n}",
"@Test\n public void getAllMessages() {\n IUser userOne = new User(\"UserOne\", \"password\");\n IUser userTwo = new User(\"UserTwo\", \"password\");\n\n IMessageContent textMessageOne = new MessageContent(\"Hello my friends\", MessageType.TEXT);\n IMessageContent textMessageTwo = new MessageContent(\"Hi how are you?\", MessageType.TEXT);\n\n IMessage messageOne = new Message(userOne,textMessageOne);\n IMessage messageTwo = new Message(userTwo,textMessageTwo);\n\n //User needs to be a part of channel to send message\n channel.join(userOne);\n channel.join(userTwo);\n\n channel.sendMessage(messageOne);\n channel.sendMessage(messageTwo);\n\n\n //2 sent messages, 2 join message from base user joining.\n assertTrue(channel.getAllMessages().size() == 4);\n\n }",
"@Override\n\tpublic void sendMessageGroup(Client cm, String msg) throws RemoteException {\n\t\tif(!users.contains(cm)) {\n\t\t\tusers.add(cm); \n\t\t\t} \t\t\t\n\t\t//envoyes les message vers tous les utilisateur\n\t\ttry {\n\t\t\tfor (Client c : users) {\n\t\t\n\t\t\t// 回调远程客户端方法\n\t\t\tString user=cm.getName(); \n\t if(user==null || user==\"\") {\n\t \t user = \"anonymous\";\n\t }\t \n\t c.afficherMessage(user + \" : \" + msg);\n\t //c.showDialog(msg);\n\t\t\t}\n\t\t} catch (RemoteException ex) {\n\t\t\tusers.remove(cm);\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t/*\n\t\t for(int i=0;i<users.size();i++)\n\t\t {\n\t\t String user=c.getName(); \n\t\t if(user==null || user==\"\")\n\t\t user = \"anonymous\";\n\t\t ( (Client) users.get(i)).sendMessage(user + \" : \" + msg);\n\t\t }*/\n }",
"public void listGroup() {\r\n List<Group> groupList = groups;\r\n EventMessage evm = new EventMessage(\r\n EventMessage.EventAction.FIND_MULTIPLE,\r\n EventMessage.EventType.OK,\r\n EventMessage.EventTarget.GROUP,\r\n groupList);\r\n notifyObservers(evm);\r\n }",
"private GroupChat getGroupChatSession(Intent intent) {\n ApiManager instance = ApiManager.getInstance();\n String chatId = intent\n .getStringExtra(GroupChatIntent.EXTRA_CHAT_ID);\n if (instance == null) {\n Logger.i(TAG, \"ApiManager instance is null\");\n return null;\n }\n ChatService chatApi = instance.getChatApi();\n if (chatApi == null) {\n Logger.d(TAG, \"MessageingApi instance is null\");\n return null;\n }\n GroupChat chatSession = null;\n try {\n chatSession = chatApi.getGroupChat(chatId);\n } catch (JoynServiceException e) {\n Logger.e(TAG, \"Get chat session failed\");\n e.printStackTrace();\n chatSession = null;\n } finally {\n return chatSession;\n }\n }",
"private void autoAcceptGroupChat(Context context,\n Intent invitation) {\n Logger.v(TAG, \"autoAcceptGroupChat entry\");\n ArrayList<ChatMessage> messages = new ArrayList<ChatMessage>();\n ChatMessage msg = invitation\n .getParcelableExtra(FIRST_MESSAGE);\n if (msg != null) {\n messages.add(msg);\n }\n invitation.putParcelableArrayListExtra(MESSAGES, messages);\n ModelImpl.getInstance().handleNewGroupInvitation(invitation,\n false);\n Logger.v(TAG, \"autoAcceptGroupChat exit\");\n }",
"List<Chat> getChats() throws CantGetChatException;",
"List<MessageGroup> selectByExample(MessageGroupExample example);",
"@Override\n protected String getConversationKey() {\n return this.groupID;\n }",
"public boolean isGroupMessage() {\n return (msgType == MessageType.GROUP_MESSAGE);\n }",
"public void topicsAdvertisedByPub() {\r\n int index = 1;\r\n System.out.println(\"Topics advertised by this publisher: \");\r\n for(Topic topic: pubTopics){\r\n System.out.println(index + \"->\" + topic + \"\\n\");\r\n index++;\r\n }\r\n }",
"public void createGroupChat(View view){\n\t\tif (!AppSharedPreference.getInstance(CreateGroupChatAutoCompleterView.this).getIsConnectedToInternet()){\n\t\t\tDialogUtils.showInternetAlertDialog(CreateGroupChatAutoCompleterView.this);\n\t\t\treturn;\n\t\t}\n\n\t\tif(selectedContactList.size()>0){\n\t\t\tnew GroupCreaterAsyncTask(this,selectedContactList,groupName,groupIcon).execute();\n\t\t}else{\n\t\t\tAppUtils.showTost(this, \"Please select atleast one contact\");\n\t\t}\n\t\t\n\t}",
"public interface VSGroupChat extends Remote {\n\n void register(VSGCListener listener, VSGCGroup group) throws RemoteException;\n void post(VSGCListener listener, VSGCMessage message) throws RemoteException;\n ArrayList<VSGCMessage> getHistory(VSGCGroup group) throws IllegalArgumentException, RemoteException;\n ArrayList<VSGCGroup> getGroups() throws RemoteException;\n void addGroup(VSGCGroup group) throws RemoteException;\n}",
"public abstract void newChatMembersMessage(Message m);",
"private void append_chat_conversation(DataSnapshot dataSnapshot) {\n Vibrator mVibrator = (Vibrator) getSystemService(Context.VIBRATOR_SERVICE);\n Iterator i = dataSnapshot.getChildren().iterator();\n while (i.hasNext()) {\n String chat_msg = (String) ((DataSnapshot) i.next()).getValue();\n String chat_user_name = (String) ((DataSnapshot) i.next()).getValue();\n if (chat_user_name.equals( ad.getName())) {\n Spannable Chatme = new SpannableString(chat_user_name + \" : \" + chat_msg + \" \\n\");\n Chatme.setSpan(new ForegroundColorSpan(Color.BLUE), 0, chat_user_name.length(), Spanned.SPAN_EXCLUSIVE_EXCLUSIVE);\n chat_conversation.append(Chatme);\n\n } else {\n chat_conversation.append( chat_user_name + \" : \" + chat_msg + \" \\n\");\n mVibrator.vibrate(200);\n }\n }\n }",
"void addIncomingGroupChatMessage(String chatId, ChatMessage msg, boolean imdnDisplayedRequested);",
"private void handlemsg(String[] tokens) throws IOException {\n String sendto = tokens[1];\n String body = tokens[2];\n boolean istopic = (sendto.charAt(0) == '#'); //if hash then mssg is being sent to group\n List<ServerHelper> helperList = server.getList();\n for (ServerHelper helper : helperList) {\n if (istopic) { //if group mssg\n if (helper.isMember(sendto)) {\n helper.notify(\"msg \"+login + \" in \" + sendto + \":\" + body + \"\\n\");\n\n }\n } else { //if individual msg\n if (sendto.equalsIgnoreCase(helper.login)) {\n helper.notify(\"msg \"+login + \" : \" + body + \"\\n\");\n }\n }\n }\n }",
"@RequestMapping(\"/messages\")\n public Map<String, List<String>> messages(@RequestParam(value=\"chatterId\", defaultValue=\"\") String chatterId) {\n try {\n Map<String, List<String>> messages = new HashMap<String, List<String>>();\n for (int i = 0; i < 5; i++) {\n int chooseBase = (int) (Math.random()*999);\n int position = chooseBase % this.friendsList.size();\n FriendInfo friend = this.friendsList.get(position);\n List<String> messagesFromFriend = messages.get(friend.getId());\n if (messagesFromFriend != null) {\n messagesFromFriend.add(\"I am fine, thank you. \"+ chatterId);\n }\n else {\n messagesFromFriend = new ArrayList<String>();\n messagesFromFriend.add(\"I have seen you yesterday in Botany downs.\");\n messages.put(friend.getId(), messagesFromFriend);\n }\n }\n return messages;\n }\n catch (Exception e) {\n return null;\n }\n }",
"private void printChannels(GuildMessageReceivedEvent event) {\n // All hail the LAMBDA!\n event.getGuild().getCategories().forEach(category -> {\n System.out.println(category.getName());\n event.getChannel().sendMessage(category.getName()).queue();\n category.getChannels().forEach(guildChannel -> {\n if (guildChannel.getType().equals(ChannelType.TEXT)){\n System.out.println(guildChannel.getName() +\n \":\\thttps://www.discord.com/channels/\" + category.getGuild().getId() + \"/\" + guildChannel.getId());\n event.getChannel().sendMessage(guildChannel.getName() +\n \":\\thttps://www.discord.com/channels/\" + category.getGuild().getId() + \"/\" + guildChannel.getId()).queue();\n }});\n });\n }",
"public String[] getTopics() {\n\t\treturn null;\n\t}",
"private void receiveMessage() {\n ParseQuery<ParseObject> refreshQuery = ParseQuery.getQuery(\"Group\");\n\n refreshQuery.getInBackground(mGroupId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject parseObject, ParseException e) {\n if (e == null) {\n chatMessageArray = parseObject.getList(\"groupMessageArray\");\n\n messageArrayList.clear();\n messageArrayList.addAll(chatMessageArray);\n chatListAdapter.notifyDataSetChanged();\n chatLV.invalidate();\n } else {\n System.out.println(e.getMessage());\n }\n }\n });\n }",
"default void onMessageReceived(Group group, Message message, Ordering ordering) {}",
"public interface GroupMessageObserver {\n public void onGroupMessage(IMMessage msg);\n public void onGroupMessageACK(int msgLocalID, long uid);\n public void onGroupMessageFailure(int msgLocalID, long uid);\n public void onGroupNotification(String notification);\n}",
"public ChannelGroup getConnections();",
"Topic getTopic();",
"public Set<Topic> getTopics();",
"protected void onTopic(String channel, String topic, String setBy, long date, boolean changed) {}",
"boolean hasTopic();",
"public boolean isChatEnabled();",
"@Override\n\tpublic List<TopicSummary> getSubTopics(String topic) {\n\t\treturn null;\n\t}",
"public List<Topic> getTopicTree(Topic topic);",
"private void subscribeTopics(String token) throws IOException {\n GcmPubSub pubSub = GcmPubSub.getInstance(this);\n for (String topic : TOPICS) {\n pubSub.subscribe(token, \"/topics/\" + topic, null);\n }\n }",
"public GroupChat(String withId) {\n super(withId);\n }",
"public IDiscussionTopic attachDiscussionTopic()\n throws OculusException;",
"public static void extractGroups(CoNLLPart part) {\n\t\tHashMap<String, Integer> chainMap = EMUtil.formChainMap(part\n\t\t\t\t.getChains());\n\t\tArrayList<Mention> allMentions = EMUtil.extractMention(part);\n\t\tCollections.sort(allMentions);\n\t\tEMUtil.assignNE(allMentions, part.getNameEntities());\n\t\tfor (int i = 0; i < allMentions.size(); i++) {\n\t\t\tMention m = allMentions.get(i);\n\n\t\t\tif (m.gram == EMUtil.Grammatic.subject && m.start == m.end\n\t\t\t\t\t&& part.getWord(m.end).posTag.equals(\"PN\")) {\n\t\t\t}\n\n\t\t\tif (m.gram == EMUtil.Grammatic.subject\n\t\t\t\t\t&& EMUtil.pronouns.contains(m.extent)\n\t\t\t// && chainMap.containsKey(m.toName())\n\t\t\t) {\n\t\t\t\tArrayList<Mention> ants = new ArrayList<Mention>();\n\t\t\t\tint corefCount = 0;\n\t\t\t\tfor (int j = i - 1; j >= 0; j--) {\n\t\t\t\t\tMention ant = allMentions.get(j);\n\t\t\t\t\tants.add(ant);\n\t\t\t\t\tant.MI = Context.calMI(ant, m);\n\t\t\t\t\tboolean coref = isCoref(chainMap, m, ant);\n\t\t\t\t\tif (coref) {\n\t\t\t\t\t\tcorefCount++;\n\t\t\t\t\t}\n\t\t\t\t\tif (m.s.getSentenceIdx() - ant.s.getSentenceIdx() > 2) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tCollections.sort(ants);\n\t\t\t\tCollections.reverse(ants);\n\n\t\t\t\tif (corefCount == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (Mention ant : ants) {\n\t\t\t\t\tant.isBest = false;\n\t\t\t\t}\n\n\t\t\t\tApplyEM.findBest(m, ants);\n\n\t\t\t\tif (ants.size() > maxAnts) {\n\t\t\t\t\tmaxAnts = ants.size();\n\t\t\t\t}\n\t\t\t\tString origPro = m.extent;\n\n\t\t\t\tString ext = m.extent;\n\t\t\t\tif (map.containsKey(ext)) {\n\t\t\t\t\tmap.put(ext, map.get(ext) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(ext, 1);\n\t\t\t\t}\n\t\t\t\tStringBuilder ysb = new StringBuilder();\n\t\t\t\tfor (int h = 0; h < EMUtil.pronounList.size(); h++) {\n\t\t\t\t\tm.extent = EMUtil.pronounList.get(h);\n\t\t\t\t\tgenerateInstance(part, chainMap, m, ants,\n\t\t\t\t\t\t\tcorefCount, origPro, h, ysb);\n\t\t\t\t}\n\t\t\t\tfor (int k = ants.size() * EMUtil.pronounList.size(); k < 840; k++) {\n\t\t\t\t\tysb.append(\"@ 0 NOCLASS 1 # \");\n\t\t\t\t}\n\t\t\t\tyasmet10.add(ysb.toString());\n\t\t\t\tm.extent = origPro;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args)\n\t{\n\t\tGroup Groups = new Group();\n\t\tList<Student> temp = Groups.CreateStudents();\n\t\tGroups.GenerateGroups(temp);\n\t\t\n\t\tStudent s = Groups.findStudent(\"Rizwan\");\n\t\tStudent r = Groups.findStudent(\"Brieanna\");\n\t\t\n\t\tGroups.Chat(s, \"Hello\");\n\t\tGroups.Chat(s, \"asdf\");\n\t\tGroups.Chat(r, \"Hi!\");\n\t\tGroups.Chat(r, \"Hi!\");\n\t\tGroups.Chat(r, \"God damn lag!\");\n\n\t\t\n\t\t\n\t\t\n\t\tArrayList<String> a = Groups.FindConversationsofStudent(\"Rizwan\");\n\t\t\n\t\t\n\t\t\n\t\tfor(String item: a)\n\t\t{\n\t\t\tSystem.out.println(item);\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void onMessage(A3Message message){\r\n\t\ttry{\r\n\t\tswitch(message.reason){\r\n\r\n\t\tcase Constants.HIERARCHY:\r\n\r\n\t\t\t/* This message is like\r\n\t\t\t * \"senderAddress Constants.HIERARCHY numberOfSubgroups name1 name2 ...\"\r\n\t\t\t * or \"Constants.HIERARCHY numberOfSubgroups\", if the hierarchy is empty.\r\n\t\t\t * \r\n\t\t\t * If I receive this message, I am the channel.\r\n\t\t\t * This message is the supervisor's answer to the hierarchy request I made when I joined the session:\r\n\t\t\t * I set my hierarchy as the one received by the supervisor.\r\n\t\t\t */\r\n\t\t\thierarchy = new ArrayList<String>();\r\n\r\n\t\t\tif(!message.object.equals(\"\")){\r\n\r\n\t\t\t\tString[] splittedHierarchy = message.object.split(Constants.A3_SEPARATOR);\r\n\t\t\t\tnumberOfSplittedGroups = Integer.valueOf(splittedHierarchy[0]);\r\n\t\t\t\t\r\n\t\t\t\tfor(int i = 1; i < splittedHierarchy.length; i++)\r\n\t\t\t\t\thierarchy.add(splittedHierarchy[i]);\r\n\t\t\t}\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase Constants.ADD_TO_HIERARCHY:\r\n\r\n\t\t\t/* This message is like\r\n\t\t\t * \"senderAddress Constants.ADD_TO_HIERARCHY groupName\".\r\n\t\t\t * \r\n\t\t\t * It is sent by the node on which the supervisor resides,\r\n\t\t\t * to notify that my group has another parent group.\r\n\t\t\t * \r\n\t\t\t * I add the new parent group's information to my hierarchy.\r\n\t\t\t */\r\n\t\t\tsynchronized(hierarchy){\r\n\t\t\t\thierarchy.add(message.object);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\r\n\t\tcase Constants.REMOVE_FROM_HIERARCHY:\r\n\r\n\t\t\t/* This message is like\r\n\t\t\t * \"senderAddress Constants.REMOVE_FROM_HIERARCHY groupName\".\r\n\t\t\t * \r\n\t\t\t * It is sent by the node on which the supervisor resides,\r\n\t\t\t * to notify that the group \"groupName\" is no longer parent of my group.\r\n\t\t\t * \r\n\t\t\t * I remove the \"groupName\" group's information from my hierarchy.\r\n\t\t\t */\r\n\t\t\tsynchronized(hierarchy){\r\n\t\t\t\thierarchy.remove(message.object);\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t} catch (Exception e) {}\r\n\t}",
"public void setTopic(String channel, String topic);",
"public List<message> getList() {\n return chats;\n }",
"boolean hasChatType();",
"private void sendRegisterTopics(PrintWriter pw)\n {\n if(clientTopicsTable.containsKey(clientSocket))\n {\n sendToClient(pw, \"*topics-\" + clientTopicsTable.get(clientSocket).toString());\n }\n else\n {\n sendToClient(pw,\"*topics-empty\");\n }\n }",
"public boolean chatEnabled();",
"public String getGroup();",
"public void listSubscribedTopics() {\r\n for (Topic topic : subscriberTopics){\r\n System.out.print(topic);\r\n }\r\n }",
"@Override\r\n\tpublic int countTopics() {\n\t\treturn 0;\r\n\t}",
"@Override // com.igexin.push.p671g.p673b.AbstractC5937h\n /* renamed from: a */\n public void mo39819a() {\n try {\n StringBuilder sb = new StringBuilder();\n sb.append(C5871f.f24630f.getPackageName());\n sb.append(MqttTopic.MULTI_LEVEL_WILDCARD);\n sb.append(C5792l.m35140a(this.f24367b, (String) this.f24366a.get(PushClientConstants.TAG_PKG_NAME)));\n sb.append(MqttTopic.MULTI_LEVEL_WILDCARD);\n sb.append((String) this.f24366a.get(PushClientConstants.TAG_PKG_NAME));\n sb.append(MqttTopic.TOPIC_LEVEL_SEPARATOR);\n sb.append((String) this.f24366a.get(\"serviceName\"));\n sb.append(MqttTopic.MULTI_LEVEL_WILDCARD);\n sb.append(C5792l.m35148a((String) this.f24366a.get(PushClientConstants.TAG_PKG_NAME), (String) this.f24366a.get(\"serviceName\")) ? \"1\" : \"0\");\n C5792l.m35143a(this.f24367b, \"30026\", sb.toString(), (String) this.f24366a.get(\"messageId\"), (String) this.f24366a.get(\"taskId\"), (String) this.f24366a.get(\"id\"));\n ActivityC5721b.m34806a(\"feedback actionId=30026 result=\" + sb.toString());\n } catch (Throwable unused) {\n }\n }",
"public List<Chat> allChats(String user1, String user2) \n\t{\n\t\tif (user1.equals(user2))\n\t\t\tthrow new IllegalArgumentException(\"You can't chat with yourself!\");\n\t\treturn db.findall(user1, user2);\n\t}",
"private List<? extends Map<String, ?>> getSessions() {\n List<Map<String, String>> list = new ArrayList<Map<String, String>>();\n sessions = MXChatManager.getInstance().getGroupChatSessions();\n for (MXGroupChatSession session : sessions) {\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"topic\", session.getTopic());\n map.put(\"type\", session.isAChat() ? \"Chat\" : \"Meet\");\n\n list.add(map);\n }\n\n return list;\n }",
"public void sendGroupCommand(CommandMessage command){\n\n\t\tMessageCreator mc = new MessageCreator(command);\n\n\t\tsendGroupMessage(mc.toXML());\n\n\t}",
"boolean hasChatRoom();",
"public String getTopic() {\n return this.topic;\n }",
"java.lang.String getGroup();",
"private void onReceiveNewMessage(String topic, DataTransfer message) {\n Message msg = null;\n\n NotiAudio notiAudio = new NotiAudio();\n notiAudio.start();\n\n Object content = message.data;\n if (content instanceof String) {\n TextMessage textMessage = new TextMessage();\n textMessage.setContent(content.toString());\n msg = textMessage;\n } else if (content instanceof FileInfo) {\n FileMessage fileMessage = new FileMessage();\n fileMessage.setContent((FileInfo) content);\n msg = fileMessage;\n } else if (content instanceof Emoji) {\n EmojiMessage emojiMessage = new EmojiMessage();\n emojiMessage.setContent((Emoji) content);\n msg = emojiMessage;\n }\n\n if (msg != null) {\n msg.setFrom(message.name);\n msg.setTime(message.datetime);\n\n Messages messages = MessageManager.getInstance().append(topic, msg);\n boolean isGroup = messages.isGroup();\n\n boolean isCurrentChat = false;\n ChatBox chatBox = getCurrentChat();\n if (chatBox != null) {\n String current = chatBox.getTarget();\n if ((!isGroup && message.name.equals(current))\n || (isGroup && topic.equals(String.format(\"group/%s\", current)))) {\n isCurrentChat = true;\n }\n }\n\n ChatItem chatItem = getChatItemByMessages(messages);\n if (chatItem != null) {\n chatItem.setSeen(isCurrentChat);\n }\n\n if (isCurrentChat) {\n chatBox.addItem(msg);\n }\n\n updateChatItems(messages);\n }\n }",
"public interface Topic {\n\n //注册观察者\n void registerObserver(Observer observer);\n\n //移除观察者\n void removeObserver(Observer observer);\n\n //通知观察者\n void notifyObservers(List<Observer> observerList);\n\n //发布消息\n void publish(String topic, Date publishDate, String publishContext);\n\n}",
"List<String> showNewsAndMessages();",
"private void addTopic(TopicMapIF tm, TMObjectMatcherIF matcher,\n Collection topics) {\n if (matcher instanceof TypeSpecification) {\n TypeSpecification m = (TypeSpecification) matcher;\n TopicIF type = getTopic(tm, m.getClassMatcher());\n if (type != null) {\n ClassInstanceIndexIF typeIndex = (ClassInstanceIndexIF)\n tm.getIndex(\"net.ontopia.topicmaps.core.index.ClassInstanceIndexIF\");\n topics.addAll(typeIndex.getTopics(type));\n }\n \n } else {\n TopicIF topic = getTopic(tm, matcher);\n if (topic != null)\n topics.add(topic);\n }\n }",
"protected boolean matchTopics(String msgTopic, String subscriptionTopic) {\n try {\n List<Token> msgTokens = SubscriptionsStore.splitTopic(msgTopic);\n List<Token> subscriptionTokens = SubscriptionsStore.splitTopic(subscriptionTopic);\n int i = 0;\n for (; i< subscriptionTokens.size(); i++) {\n Token subToken = subscriptionTokens.get(i);\n if (subToken != Token.MULTI && subToken != Token.SINGLE) {\n Token msgToken = msgTokens.get(i);\n if (!msgToken.equals(subToken)) {\n return false;\n }\n } else {\n if (subToken == Token.MULTI) {\n return true;\n }\n if (subToken == Token.SINGLE) {\n //skip a step forward\n }\n }\n }\n return i == msgTokens.size();\n } catch (ParseException ex) {\n LOG.error(null, ex);\n throw new RuntimeException(ex);\n }\n }",
"public boolean hasMoreDiscussions();",
"List<ClientTopicCouple> listAllSubscriptions();",
"@Override\r\n\tpublic void onNewChatter(Chat chatWithNewChatter, Chatter newChatter) {\n\t\t\r\n\t}",
"long getTopic();",
"@Override\n\tpublic Response topics() {\n\t\tList<Topic> topics = null;\n\t\ttry {\n\t\t\ttopics = userResourceAccess.getTopicsForUser(getUser());\n\t\t} catch (GovernanceExeption e) {\n\t\t\te.printStackTrace();\n\t\t\treturn error(Status.INTERNAL_SERVER_ERROR, \"Can not get topics\");\n\n\t\t}\n\n\t\tCollection<org.ow2.play.governance.platform.user.api.rest.bean.Topic> out = Collections2\n\t\t\t\t.transform(\n\t\t\t\t\t\ttopics,\n\t\t\t\t\t\tnew Function<Topic, org.ow2.play.governance.platform.user.api.rest.bean.Topic>() {\n\t\t\t\t\t\t\tpublic org.ow2.play.governance.platform.user.api.rest.bean.Topic apply(\n\t\t\t\t\t\t\t\t\tTopic input) {\n\t\t\t\t\t\t\t\torg.ow2.play.governance.platform.user.api.rest.bean.Topic topic = new org.ow2.play.governance.platform.user.api.rest.bean.Topic();\n\t\t\t\t\t\t\t\ttopic.name = input.getName();\n\t\t\t\t\t\t\t\ttopic.ns = input.getNs();\n\t\t\t\t\t\t\t\ttopic.prefix = input.getPrefix();\n\t\t\t\t\t\t\t\ttopic.resourceUrl = getResourceURI(input);\n\t\t\t\t\t\t\t\treturn topic;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\n\t\treturn ok(out\n\t\t\t\t.toArray(new org.ow2.play.governance.platform.user.api.rest.bean.Topic[out\n\t\t\t\t\t\t.size()]));\n\t}",
"boolean hasTopicView();",
"BaseComponent[] getChannelsJoinedMessage();",
"@Override\r\n\t\t\tpublic void onChat(String message) {\n\r\n\t\t\t}",
"private void readMessage(final String myid, final String userid, final String imageurl){\n\n mchat = new ArrayList<>();\n\n ref = FirebaseDatabase.getInstance().getReference(\"chats\");\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n mchat.clear();\n for(DataSnapshot snapshot : dataSnapshot.getChildren()){\n Chat chat = snapshot.getValue(Chat.class);\n assert chat != null;\n if(chat.getReceiverUID().equals(myid) && chat.getSenderUID().equals(userid) || chat.getReceiverUID().equals(userid) && chat.getSenderUID().equals(myid))\n mchat.add(chat);\n messageAdapter = new MessageAdapter(getContext(),mchat,imageurl);\n recyclerView.setAdapter(messageAdapter);\n }\n\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n }",
"private void userMessageEvent(){\n message = UI.getMessage(); //Get object\r\n message.addKeyListener(new KeyListener() {\r\n @Override\r\n public void keyTyped(KeyEvent e) {}\r\n\r\n @Override\r\n public void keyPressed(KeyEvent e) {\r\n if(e.getKeyCode() == KeyEvent.VK_ENTER){ //Check if enter button is pressed\r\n if(!UI.getMessage().getText().equalsIgnoreCase(\"\")){ //If the message is not empty\r\n for (UserLogic t : threads) { //Go through users\r\n if(((String)UI.getContacts().getSelectedValue()).equals(groupChat)) { //If the chat is a group chat\r\n groupChatSend(t);\r\n }\r\n else { //Current User\r\n individualSend(t);\r\n }\r\n }\r\n UI.getMessage().setText(\"\"); //Clear message\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void keyReleased(KeyEvent e) {}\r\n });\r\n }",
"public XMessage expandFilteredGroup(OpProjectSession session, XMessage request) {\r\n\r\n XMessage reply = new XMessage();\r\n\r\n //filter for groups/users\r\n Boolean includeParentsInFilter = (Boolean) request.getArgument(INCLUDE_PARENTS_IN_FILTER);\r\n List filteredSubjectIds = (List) request.getArgument(FILTERED_SUBJECT_IDS);\r\n if (includeParentsInFilter != null && includeParentsInFilter.booleanValue()) {\r\n filteredSubjectIds = OpSubjectDataSetFactory.getAlreadyAssignedGroups(session, filteredSubjectIds);\r\n }\r\n// replace with api call!\r\n XComponent resultSet = expandGroupStructure(session, request, true, filteredSubjectIds);\r\n\r\n if (resultSet != null) {\r\n\r\n boolean enableUsers = ((Boolean) request.getArgument(ENABLE_USERS)).booleanValue();\r\n boolean enableGroups = ((Boolean) request.getArgument(ENABLE_GROUPS)).booleanValue();\r\n OpSubjectDataSetFactory.enableSubjectHierarchy(resultSet, enableUsers, enableGroups);\r\n\r\n List<XView> resultList = new ArrayList<XView>();\r\n for (int i = 0; i < resultSet.getChildCount(); i++) {\r\n resultList.add(resultSet.getChild(i));\r\n }\r\n reply.setArgument(OpProjectConstants.CHILDREN, resultList);\r\n }\r\n\r\n return reply;\r\n\r\n }",
"@ApiOperation(value = \"获取常用联系人分组列表\")\n @GetMapping(value = \"/ifclist\")\n @ResponseBody\n public ReqResult getChatGroupList() throws Exception {\n String userId = SecurityFacade.getCurUserId();\n List<InfoFrequentConnect> ifcList = ifcService.getListByUser(userId);\n if (ifcList != null) {\n return ReqResult.success(ifcList);\n }\n return ReqResult.failed();\n }",
"private void handlePluginGroupChatInvitation(Context context,\n Intent invitation, boolean autoAccept) {\n Logger.d(TAG, \"handlePluginGroupChatInvitation entry\");\n GroupChat chatSession = getGroupChatSession(invitation);\n UUID uuid = UUID.randomUUID();\n ParcelUuid parcelUuid = new ParcelUuid(uuid);\n if (chatSession == null) {\n Logger.d(TAG, \"by simple The chatSession is null\");\n return;\n }\n String sessionId = invitation.getStringExtra(SESSION_ID);\n String groupSubject = invitation\n .getStringExtra(GroupChatIntent.EXTRA_SUBJECT);\n Logger.v(TAG, \"handlePluginGroupChatInvitation() subject: \"\n + groupSubject);\n String chatId = invitation\n .getStringExtra(GroupChatIntent.EXTRA_CHAT_ID);\n GroupInvitationInfo info = buildNotificationInfo(context,\n invitation);\n if (info == null) {\n Logger.d(TAG, \"notification info is null\");\n return;\n }\n // Add mms db\n String contact = PluginGroupChatWindow\n .generateGroupChatInvitationContact(chatId);\n if (autoAccept) {\n contact = PluginGroupChatWindow.GROUP_CONTACT_STRING_BEGINNER\n + parcelUuid.toString();\n Logger.d(TAG, \"auto accept is true\");\n }\n invitation.putExtra(PluginGroupChatWindow.GROUP_CHAT_CONTACT,\n contact);\n int messageTag = PluginGroupChatWindow.GROUP_CHAT_INVITATION_IPMSG_ID;\n Logger.d(TAG, \"notify info is\" + info.notifyInfo + \"contact=\"\n + contact);\n // broadcast intent to mms plugin to insert into mms db\n Intent intent = new Intent();\n if (info != null) {\n intent.putExtra(\"notify\", info.notifyInfo);\n }\n intent.putExtra(\"contact\", contact);\n intent.putExtra(\"messageTag\", messageTag);\n intent.putExtra(\"subject\", groupSubject);\n intent.setAction(IpMessageConsts.JoynGroupInvite.ACTION_GROUP_IP_INVITATION);\n intent.putExtra(\"groupinvite\", 1);\n MediatekFactory.getApplicationContext().sendBroadcast(intent);\n /*\n * Long messageIdInMms = PluginUtils.insertDatabase(info.notifyInfo,\n * contact, messageTag, PluginUtils.INBOX_MESSAGE); if\n * (ThreadTranslater.tagExistInCache(contact)) { Logger.d(TAG,\n * \"plugingroupchatinvitation() Tag exists\" + contact); Long thread =\n * ThreadTranslater.translateTag(contact); insertThreadIDInDB(thread,\n * groupSubject); }\n */\n if (contact\n .startsWith(PluginGroupChatWindow.GROUP_CONTACT_STRING_BEGINNER)) {\n contact = contact.substring(4);\n }\n invitation.putExtra(ChatScreenActivity.KEY_CHAT_TAG,\n parcelUuid);\n invitation.putExtra(PluginGroupChatWindow.GROUP_CHAT_CONTACT,\n contact);\n Logger.d(TAG,\n \"handlePluginGroupChatInvitation parcelUuid is \"\n + parcelUuid.toString() + \"contact is\"\n + contact);\n }",
"boolean isOneToOneChatMessage(String messageId);",
"public String getTopic() {\n return topic;\n }",
"public void enableChat();",
"private void nonAutoAcceptGroupChat(Context context,\n Intent invitation) {\n Logger.v(TAG, \"handleGroupChatInvitation entry\");\n GroupInvitationInfo info = buildNotificationInfo(context,\n invitation);\n if (info == null) {\n Logger.d(TAG, \"handleGroupChatInvitation info is null\");\n return;\n }\n // Should increase the number of unread message\n Logger.d(TAG, \"Has receive a group chat invitation\");\n UnreadMessageManager.getInstance().changeUnreadMessageNum(\n UnreadMessageManager.MIN_STEP_UNREAD_MESSAGE_NUM,\n true);\n int size = mGroupInvitationInfos.size();\n StringBuilder notifyTitle = new StringBuilder(\n info.notifyTitle);\n String notifyContent = null;\n Intent intent = info.intent;\n if (size == SINGLE_GROUP_INVITATION) {\n notifyTitle\n .append(context\n .getString(R.string.group_invitation_notify_title));\n notifyTitle.append(BLANK_SPACE);\n notifyTitle.append(info.sender);\n notifyContent = info.notifyInfo;\n ParcelUuid tag = (ParcelUuid) invitation\n .getParcelableExtra(ChatScreenActivity.KEY_CHAT_TAG);\n intent.putExtra(ChatScreenActivity.KEY_CHAT_TAG, tag);\n intent.setClass(context, InvitationDialog.class);\n if (Logger.getIsIntegrationMode()) {\n intent.putExtra(\n InvitationDialog.KEY_STRATEGY,\n InvitationDialog.STRATEGY_IPMES_GROUP_INVITATION);\n String contact = invitation\n .getStringExtra(PluginGroupChatWindow.GROUP_CHAT_CONTACT);\n if (null != contact) {\n intent.putExtra(\n PluginGroupChatWindow.GROUP_CHAT_CONTACT,\n contact);\n } else {\n Logger.w(TAG,\n \"nonAutoAcceptGroupChat() contact is null\");\n }\n } else {\n intent.putExtra(InvitationDialog.KEY_STRATEGY,\n InvitationDialog.STRATEGY_GROUP_INVITATION);\n }\n } else {\n notifyTitle.append(size);\n notifyTitle.append(BLANK_SPACE);\n notifyTitle\n .append(context\n .getString(R.string.group_multi_invitation_title));\n notifyContent = context\n .getString(R.string.group_multi_invitation_content);\n if (Logger.getIsIntegrationMode()) {\n Logger.d(TAG, \"nonAutoAcceptGroupChat start mms\");\n intent.setClassName(\n PluginGroupChatWindow.MMS_PACKAGE_STRING,\n PluginGroupChatWindow.MMS_BOOT_ACTIVITY_STRING);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n } else {\n intent.setClass(context, ChatMainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP\n | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n }\n }\n intent.putExtra(NOTIFY_TITLE, notifyTitle.toString());\n intent.putExtra(NOTIFY_CONTENT, notifyContent);\n PendingIntent contentIntent = PendingIntent\n .getActivity(context, 0, intent,\n PendingIntent.FLAG_UPDATE_CURRENT);\n Notification.Builder builder = new Notification.Builder(\n context);\n builder.setContentTitle(notifyTitle);\n builder.setContentIntent(contentIntent);\n builder.setSmallIcon(info.icon);\n builder.setContentText(notifyContent);\n builder.setWhen(System.currentTimeMillis());\n builder.setAutoCancel(false);\n Notification notification = builder.getNotification();\n Logger.v(\n TAG,\n \"handleGroupChatInvitation SettingsFragment.\" +\n \"IS_NOTIFICATION_CHECKED.get() is \"\n + SettingsFragment.IS_NOTIFICATION_CHECKED\n .get());\n if (SettingsFragment.IS_NOTIFICATION_CHECKED.get()) {\n Logger.d(TAG,\n \"handleGroupChatInvitation notification is built, with size: \"\n + size);\n String ringtone = RcsSettings.getInstance()\n .getChatInvitationRingtone();\n if (ringtone != null && ringtone.length() != 0) {\n notification.sound = Uri.parse(ringtone);\n }\n if (RcsSettings.getInstance()\n .isPhoneVibrateForChatInvitation()) {\n notification.defaults |= Notification.DEFAULT_VIBRATE;\n }\n NotificationManager groupInviteNotification = (NotificationManager) context\n .getSystemService(Context.NOTIFICATION_SERVICE);\n groupInviteNotification.notify(GROUP_INVITATION_TAG,\n NOTIFICATION_ID_CHAT, notification);\n } else {\n Logger.v(\n TAG,\n \"handleGroupChatInvitation SettingsFragment.\" +\n \"IS_NOTIFICATION_CHECKED.get() is false \");\n }\n Logger.v(TAG, \"handleGroupChatInvitation exit\");\n }",
"void to(String topic);",
"ZigBeeGroup getGroup(int groupId);",
"@Override\n public boolean isGroup() {\n return false;\n }",
"private ListTopicByUid(com.google.protobuf.GeneratedMessageLite.Builder builder) {\n super(builder);\n\n }",
"static int[] acmTeam(final String[] topic) {\n int maxTopicsCount = 0;\n int attendeWithMaxCount = 0;\n for (int i = 0; i < topic.length; i++) {\n for (int j = i + 1; j < topic.length; j++) {\n final int mergedTopics = mergedTopicsCount(topic[i], topic[j]);\n if (mergedTopics > maxTopicsCount) {\n maxTopicsCount = mergedTopics;\n attendeWithMaxCount = 1;\n } else if (mergedTopics == maxTopicsCount) {\n attendeWithMaxCount++;\n }\n }\n }\n return new int[]{maxTopicsCount, attendeWithMaxCount};\n }"
]
| [
"0.6220552",
"0.60984755",
"0.6009238",
"0.5802536",
"0.5680637",
"0.5631103",
"0.5575099",
"0.5559137",
"0.55467445",
"0.5543514",
"0.5527238",
"0.551966",
"0.54531026",
"0.54490304",
"0.54308414",
"0.54239625",
"0.5401219",
"0.5401219",
"0.53799874",
"0.531389",
"0.5311611",
"0.5296781",
"0.5288897",
"0.5282262",
"0.5275941",
"0.52208763",
"0.52184844",
"0.52160335",
"0.5178285",
"0.51425564",
"0.5138966",
"0.5122003",
"0.5116783",
"0.5113649",
"0.5101787",
"0.5091569",
"0.5074362",
"0.50651604",
"0.50583667",
"0.5055233",
"0.50535595",
"0.5050229",
"0.50482845",
"0.50389373",
"0.5038427",
"0.50358",
"0.50313765",
"0.5029584",
"0.5020839",
"0.50132895",
"0.5008858",
"0.50082487",
"0.49998543",
"0.49982318",
"0.4994685",
"0.49836624",
"0.49828407",
"0.49823564",
"0.4965172",
"0.49443778",
"0.49382",
"0.49291024",
"0.49290073",
"0.4910282",
"0.49083295",
"0.4899565",
"0.48992702",
"0.48952022",
"0.48899093",
"0.4885673",
"0.4868415",
"0.48674265",
"0.48669887",
"0.48657268",
"0.48627892",
"0.48530138",
"0.48386467",
"0.4838531",
"0.48350054",
"0.48336816",
"0.4827351",
"0.4820508",
"0.48095667",
"0.48056287",
"0.48002517",
"0.48000306",
"0.47989655",
"0.47868633",
"0.47832447",
"0.47743067",
"0.4771943",
"0.47700197",
"0.4762852",
"0.47619706",
"0.47610164",
"0.47577727",
"0.47558603",
"0.4753666",
"0.47519842",
"0.4749765",
"0.4748149"
]
| 0.0 | -1 |
overiding run method of thread | public void run() {
try {
handle();
} catch (Exception e) {
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run(){\n //logic to execute in a thread \n }",
"public void run() {\r\n }",
"@Override\r\n\tabstract public void run();",
"@Override\r\n\tpublic abstract void run();",
"@Override\n abstract public void run();",
"public final void run() {\r\n }",
"public void run()\n\t{\n\t}",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run()\n {\n }",
"public void run()\n {\n }",
"public void run() {\n }",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public static void run(){}",
"public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}",
"@Override\r\n public void run() {}",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}",
"public void run()\r\n\t{\r\n\t\t\r\n\t}",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"protected void run() {\r\n\t\t//\r\n\t}",
"public void run()\n {\n\n }",
"public void run(){\n\t}",
"public void run() {\n\n }",
"public void run() {\n\t}",
"public void run() {\n\t}",
"public void run() {\n\t\t\t\t\t\t}",
"public abstract void run();",
"public abstract void run();",
"public abstract void run();",
"@Override\n public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n super.run();\n }",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void run() {\n\t\t\t\n\t\t}",
"public void run() {\n }",
"public void run() {\n }",
"public abstract void run() ;",
"@Override\npublic void run() {\n perform();\t\n}",
"public void run() {\n\n\t}",
"public void run() {\n\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"Thread working\");\n\t\t\t}",
"public void run() {\n\t\t\n\t}",
"public void run() {\n }",
"public void run()\n\t\t{\n\t\t}",
"public void run () { run (true); }",
"public void run() {/* THE CODE HERE IS A THE @OVERRIDE FOR START() METHOD */\n\t}",
"public void run() {\n\n\n }",
"@Override\n\tpublic void run() {\n\t\tsuper.run();\n\t}",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run(){\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tsuper.run();\r\n\t\t\t}",
"@Override\r\n public void run() {\n }",
"public void run() {\n\t\t}",
"public void run() {\n\t\t}",
"public void run() {\n\t\t}",
"@Override\n\t\tpublic void run() {\n\n\t\t}",
"public void run() {\n\t\t\r\n\t}",
"public void run() {\n\t\t\r\n\t}",
"public static void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n runTask();\n\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run() {\n }",
"@Override\n public void run()\n {\n super.run();\n }",
"public void run() {\n\n }",
"public void run() throws Exception;",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n public void run()\n {\n }",
"@Override\n public void run()\n {\n }",
"void run();",
"void run();",
"void run();",
"void run();",
"@Override\n\tpublic void run()\n\t{\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\ttask();\n\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\t\r\n\t}"
]
| [
"0.7817899",
"0.7581222",
"0.7534948",
"0.75141567",
"0.7510109",
"0.7476706",
"0.7453466",
"0.74472886",
"0.74472886",
"0.74472886",
"0.74472886",
"0.7402193",
"0.7402193",
"0.7395814",
"0.7393553",
"0.7393553",
"0.7393553",
"0.7393553",
"0.7393553",
"0.73751587",
"0.73518854",
"0.7343507",
"0.7340255",
"0.73295015",
"0.732341",
"0.732341",
"0.732341",
"0.73225206",
"0.73162603",
"0.73121685",
"0.73101455",
"0.73035324",
"0.7286291",
"0.7286291",
"0.7278254",
"0.7277062",
"0.7277062",
"0.7277062",
"0.7272524",
"0.72708887",
"0.72708887",
"0.72471964",
"0.724291",
"0.724291",
"0.7238641",
"0.72286963",
"0.7228576",
"0.7217011",
"0.7211628",
"0.7211628",
"0.7184811",
"0.71827644",
"0.71801096",
"0.7177064",
"0.71679443",
"0.7166613",
"0.71561325",
"0.71531415",
"0.71524554",
"0.71524554",
"0.7152207",
"0.71422565",
"0.71422565",
"0.71397436",
"0.7119732",
"0.71027493",
"0.71027493",
"0.71027493",
"0.70940775",
"0.7090728",
"0.7090728",
"0.7090009",
"0.70779073",
"0.70779073",
"0.70779073",
"0.70779073",
"0.70779073",
"0.70779073",
"0.70779073",
"0.70755666",
"0.70507336",
"0.70507336",
"0.70507336",
"0.7049446",
"0.7046789",
"0.7032568",
"0.7031377",
"0.70313406",
"0.70313406",
"0.70260054",
"0.70260054",
"0.70260054",
"0.70260054",
"0.7024838",
"0.7019064",
"0.70170987",
"0.70170987",
"0.7009242",
"0.7009242",
"0.70008445",
"0.70008445"
]
| 0.0 | -1 |
format msg receipient txtmsg format msg topic txtmsg | private void handlemsg(String[] tokens) throws IOException {
String sendto = tokens[1];
String body = tokens[2];
boolean istopic = (sendto.charAt(0) == '#'); //if hash then mssg is being sent to group
List<ServerHelper> helperList = server.getList();
for (ServerHelper helper : helperList) {
if (istopic) { //if group mssg
if (helper.isMember(sendto)) {
helper.notify("msg "+login + " in " + sendto + ":" + body + "\n");
}
} else { //if individual msg
if (sendto.equalsIgnoreCase(helper.login)) {
helper.notify("msg "+login + " : " + body + "\n");
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String formatMessage(LogMessage ioM);",
"private static String formatSimple(ChannelHandlerContext ctx, String eventName, Object msg) {\n String chStr = getChStr(ctx);\n String msgStr = String.valueOf(msg);\n StringBuilder buf = new StringBuilder(chStr.length() + 1 + eventName.length() + 2 + msgStr.length());\n return buf.append(chStr).append(' ').append(eventName).append(\": \").append(msgStr).toString();\n }",
"private static String getMsg(Object... msgs) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Object object : msgs) {\n\t\t\tsb.append(object.toString()).append(\"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String formatmsg(int i){\n String a = \"Here is the messages:\\n\";\n a += \"\\n-------------------------\\n\";\n a += \"The id of this message is \" + +getmessage(i).getmessageid()+\n \"\\nThis message is from \" + getmessage(i).getSendername() + \" whose id is \" +\n getmessage(i).getSenderid() + \":\\n\" + getmessage(i).getTxt();\n return a;\n }",
"void to(String topic);",
"private static String formatSimple(final ChannelHandlerContext ctx, final String eventName, final Object msg) {\n final String chStr = ctx.channel().toString();\n final String msgStr = String.valueOf(msg);\n final StringBuilder buf = new StringBuilder(chStr.length() + 1 + eventName.length() + 2 + msgStr.length());\n return buf.append(chStr).append(' ').append(eventName).append(\": \").append(msgStr).toString();\n }",
"private static String getOutputMsg(String line){\n String[] arr = line.split(\" \");\n return arr[0] + \"|\" + arr[3].replace(\"[\",\"\");\n }",
"private void publishLine(String msg) {\r\n\t\ttaOutput.appendText(msg);\r\n\t\ttaOutput.appendText(\"\\n\");\r\n\t}",
"private Message formatMessage(LogRecord record)\n\t{\n\t\treturn new Message(record);\n\t}",
"private void printMessageLine(String msg) {\n String wholeMessage = \"\";\n for (int i = 0; i < msg.length(); i += 5) {\n if (msg.length() - i > 5) {\n wholeMessage = msg.substring(i, i + 5) + \" \";\n _output.print(wholeMessage);\n } else {\n wholeMessage = msg.substring(i, msg.length());\n _output.println(wholeMessage);\n }\n }\n }",
"public Text updateMessage(String msg){\r\n Text message = new Text(\"Height: \" + tree.height() + \", Vertices: \" + tree.getVertices()+\"\\t\\t Status: \"+ msg);\r\n message.setFont(Font.font(Font.getDefault().toString(), FontWeight.BOLD,20));\r\n return message;\r\n }",
"java.lang.String getMsg();",
"private static String getLMsg(Object... msg) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(TOP_BORDER);\n\t\tsb.append(NEW_LINE);\n\t\tsb.append(HORIZONTAL_DOUBLE_LINE);\n\t\tsb.append(BLANK + callMethodAndLine());\n\t\tsb.append(NEW_LINE);\n\t\tsb.append(MIDDLE_BORDER);// 1\n\t\tsb.append(NEW_LINE);\n\t\t// sb.append(HORIZONTAL_DOUBLE_LINE);\n\n\t\tfor (Object element : msg) {\n\t\t\tif (element == null) {\n\t\t\t\treturn \"Object is null!\";\n\t\t\t}\n\t\t\tString mark = \"\";\n\t\t\tif (msg.length != 1) {\n\t\t\t\tmark = POINT;\n\t\t\t}\n\n\t\t\tString message = getString(element);\n\t\t\tif (message.contains(NEW_LINE)) {\n\t\t\t\tmessage = message.replaceAll(NEW_LINE, NEW_LINE\n\t\t\t\t\t\t+ HORIZONTAL_DOUBLE_LINE + BLANK);\n\t\t\t}\n\n\t\t\tsb.append(HORIZONTAL_DOUBLE_LINE);\n\t\t\tsb.append(BLANK);\n\t\t\tsb.append(mark);\n\t\t\tsb.append(message);\n\t\t\tsb.append(NEW_LINE);\n\t\t}// 2\n\t\tsb.append(BOTTOM_BORDER);// 3\n\t\treturn sb.toString();\n\t}",
"public String getPredefinedTextMessage( String language, int preDefindeMsgId );",
"public String formatreply(ArrayList<Integer> msgget){\n StringBuilder a = new StringBuilder(\"These are the replies:\\n\");\n for(Integer i: msgget){\n Message msg = getmessage(i);\n if(msg.getReply() == -1){\n a.append(\"The message(id:\").append(msg.getmessageid()).append(\") you send to \").append(getmessage(i).getGetterid()).append(\":\\n\" + msg.getTxt() + \"\\n\").append(\" Has Not been Replied.\\n\");}\n else{\n a.append(\"This reply is from id \").append(getmessage(i).getGetterid()).append(\"(\").append(msg.getReplyer()).append(\")\").append(\":\\n\").append(allmessage.get(getmessage(i).getReply()).getTxt());}\n }\n return a.toString();\n }",
"@GET\n\t@Produces(\"text/plain\")\n\tpublic String getPlain() {\n\t\treturn msg + \"\\n\";\n\t}",
"public String formatmsgget(ArrayList<Integer> inbox){\n String a = \"These are the messages:\\n\";\n for(Integer i: inbox){\n a += \"\\n-------------------------\\n\";\n a += \"The id of this message is \" + +getmessage(i).getmessageid()+\n \"\\nThis message is from \" + getmessage(i).getSendername() + \" whose id is \" +\n getmessage(i).getSenderid() + \":\\n\" + getmessage(i).getTxt();\n }\n return a;\n }",
"@Override\n\tpublic void getMessage(TranObject msg) {\n\n\t}",
"public String getFormattedMessage(String level,String message, String target){\n StringBuilder builder = new StringBuilder();\n for (String next : priority) {\n if(next.equals(\"date\")){\n if(date == null) {\n builder.append(dateFormat.format(new Date()));\n }else builder.append(dateFormat.format(date));\n builder.append(\" \");\n }else if(next.equals(\"level\")){\n builder.append(level);\n builder.append(\" \");\n }else if(next.equals(\"target\")){\n builder.append(target);\n builder.append(\" \");\n }else if(next.equals(\"message\")){\n builder.append(message);\n builder.append(\" \");\n }else if(next.equals(\"separate\")){\n builder.append(separate);\n builder.append(\" \");\n }\n }\n\n return builder.toString();\n }",
"private String geraMensagem(Mensagem msg) {\n\t\treturn new StringBuilder()\n\t\t\t.append(msg.remetente.nome)\n\t\t\t.append(\" enviou para \")\n\t\t\t.append(msg.destinatario.nome)\n\t\t\t.append(\" uma mensagem suspeita.\")\n\t\t\t.toString();\n\t}",
"@Override\r\n public void writeMessage(Message msg) throws IOException {\n final StringBuilder buf = new StringBuilder();\r\n msg.accept(new DefaultVisitor() {\r\n\r\n @Override\r\n public void visitNonlocalizableTextFragment(VisitorContext ctx,\r\n NonlocalizableTextFragment fragment) {\r\n buf.append(fragment.getText());\r\n }\r\n\r\n @Override\r\n public void visitPlaceholder(VisitorContext ctx, Placeholder placeholder) {\r\n buf.append(placeholder.getTextRepresentation());\r\n }\r\n\r\n @Override\r\n public void visitTextFragment(VisitorContext ctx, TextFragment fragment) {\r\n buf.append(fragment.getText());\r\n }\r\n });\r\n out.write(buf.toString().getBytes(UTF8));\r\n }",
"public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }",
"public String messageToString(){\n String stringMessage = \"Message:\\n\" + text + \"\\nFrom User: \" + fromUser.toNameAndEmailString();\n if(toGroup != null && !emergency) {\n stringMessage = \"Message:\\n\" + text + \"\\nFrom User: \" + fromUser.toNameAndEmailString() + \"\\nTo Group:\\n\" + toGroup.groupToListString();\n\n }\n else if(emergency){\n stringMessage =\"EMERGENCY!!!\\n\" + \"Message:\\n\" + text + \"\\nFrom User: \" + fromUser.toNameAndEmailString() + \"\\n\";\n }\n\n\n return stringMessage;\n }",
"private void convertTopics() throws Exception {\r\n final File file = new File(TOPICS);\r\n if(!file.exists()) {\r\n Main.outln(\"Could not read \\\"\" + file.getAbsolutePath() + \"\\\"\");\r\n return;\r\n }\r\n \r\n // scan all queries\r\n final FileInputStream fis = new FileInputStream(file);\r\n final InputStreamReader isr = new InputStreamReader(fis, \"UTF8\");\r\n final BufferedReader br = new BufferedReader(isr);\r\n String line = null;\r\n String t = \"\";\r\n String ty = \"\";\r\n \r\n final PrintOutput out = new PrintOutput(QUERIES);\r\n while((line = br.readLine()) != null) {\r\n if(line.indexOf(\"topic ct_no\") > -1) {\r\n // extract topic id\r\n int s0 = line.indexOf('\"');\r\n int s1 = line.indexOf('\"', s0 + 1);\r\n t = line.substring(s0 + 1, s1);\r\n // extract content id\r\n s0 = line.indexOf('\"', s1 + 1);\r\n s1 = line.indexOf('\"', s0 + 1);\r\n //ca = line.substring(s0 + 1, s1);\r\n // extract type\r\n s0 = line.indexOf('\"', s1 + 1);\r\n s1 = line.indexOf('\"', s0 + 1);\r\n ty = line.substring(s0 + 1, s1);\r\n } else if(line.indexOf(\"xpath_title\") > -1) {\r\n // extract query\r\n final int s0 = line.indexOf('/');\r\n final String q = line.substring(s0, line.lastIndexOf('<'));\r\n out.println(t + \";\" + c + \";\" + ty + \";\" + q);\r\n }\r\n }\r\n br.close();\r\n }",
"private void _writeTopic(final Topic topic) throws IOException {\n // Ignore the topic if it is the default name type and it has no further\n // characteristics\n if (topic.equals(_defaultNameType)) {\n return;\n }\n _out.startObject();\n _writeItemIdentifiers(topic);\n _writeLocators(\"subject_identifiers\", topic.getSubjectIdentifiers());\n _writeLocators(\"subject_locators\", topic.getSubjectLocators());\n Set<Name> names = topic.getNames();\n if (!names.isEmpty()) {\n _out.key(\"names\");\n _out.startArray();\n for (Name name: names) {\n _writeName(name);\n }\n _out.endArray();\n }\n Set<Occurrence> occs = topic.getOccurrences();\n if (!occs.isEmpty()) {\n _out.key(\"occurrences\");\n _out.startArray();\n for (Occurrence occ: occs) {\n _writeOccurrence(occ);\n }\n _out.endArray();\n }\n _out.endObject();\n }",
"private String formatXMLMessage(String msg, boolean isObservation) {\n return StringUtil.wrap(msg, isObservation ? \"observation\" : \"warning\");\n }",
"private void onReceiveNewMessage(String topic, DataTransfer message) {\n Message msg = null;\n\n NotiAudio notiAudio = new NotiAudio();\n notiAudio.start();\n\n Object content = message.data;\n if (content instanceof String) {\n TextMessage textMessage = new TextMessage();\n textMessage.setContent(content.toString());\n msg = textMessage;\n } else if (content instanceof FileInfo) {\n FileMessage fileMessage = new FileMessage();\n fileMessage.setContent((FileInfo) content);\n msg = fileMessage;\n } else if (content instanceof Emoji) {\n EmojiMessage emojiMessage = new EmojiMessage();\n emojiMessage.setContent((Emoji) content);\n msg = emojiMessage;\n }\n\n if (msg != null) {\n msg.setFrom(message.name);\n msg.setTime(message.datetime);\n\n Messages messages = MessageManager.getInstance().append(topic, msg);\n boolean isGroup = messages.isGroup();\n\n boolean isCurrentChat = false;\n ChatBox chatBox = getCurrentChat();\n if (chatBox != null) {\n String current = chatBox.getTarget();\n if ((!isGroup && message.name.equals(current))\n || (isGroup && topic.equals(String.format(\"group/%s\", current)))) {\n isCurrentChat = true;\n }\n }\n\n ChatItem chatItem = getChatItemByMessages(messages);\n if (chatItem != null) {\n chatItem.setSeen(isCurrentChat);\n }\n\n if (isCurrentChat) {\n chatBox.addItem(msg);\n }\n\n updateChatItems(messages);\n }\n }",
"@Override\n\t\t\tpublic void messageArrived(String topic, MqttMessage message) throws Exception {\n\t\t\t\tSystem.out.println(\"接收消息主题 : \" + topic);\n\t\t\t\tSystem.out.println(\"接收消息Qos : \" + message.getQos());\n\t\t\t\tSystem.out.println(\"接收消息内容 : \" + message.toString());\n\t\t\t\tjas.decry(message.toString());\n\t\t\t}",
"public static String build(Message msg)\n {\n // Grab our message data\n String action = msg.getAction() + \"\\n\";\n String clientID = msg.getClientID() + \"\\n\";\n String body = \"\\n\" + msg.getBody() + \"\\n\";\n int recipient = msg.getRecipient();\n\n // Need to store the message somewhere\n String message = action + clientID;\n\n // Recipient will be -1 if not\n // present in message\n if(recipient != -1) {\n message += recipient + \"\\n\";\n }\n\n // Add the body\n message += body;\n return message;\n }",
"private String format(String message) {\n InetSocketAddress local = (InetSocketAddress) context.channel().localAddress();\n InetSocketAddress remote = (InetSocketAddress) context.channel().remoteAddress();\n\n String localhost;\n if(local != null) {\n localhost = local.getAddress().getHostAddress() + \":\" + local.getPort();\n } else{\n localhost = \"undefined\";\n }\n\n String remotehost;\n if(remote != null) {\n remotehost = remote.getAddress().getHostAddress() + \":\" + remote.getPort();\n } else{\n remotehost = \"undefined\";\n }\n\n return \"[local: \" + localhost + \", remote: \" + remotehost + \"] \" + message;\n }",
"public static String textoMensajeMail(String apellido,String nombreActividad, String expediente, \r\n\t\t\tString fechaVencimiento, int modo)\r\n\t{\n\t\tString texto =\"\";\r\n\t\tif (modo==1)\r\n\t\t{\r\n\t\t\ttexto = \"Estimado Doc. \"+apellido+\":\\n\" + \" La actividad procesal: \" + nombreActividad +\r\n\t\t\t\t\t\" del expediente: \" + expediente + \", esta proxima a vencer el dia \" + fechaVencimiento +\r\n\t\t\t\t\t\"\\n\\nPor favor tomar las medidas del caso.\" + \r\n\t\t\t\t\t\"\\n\\nAtte.\" + \r\n\t\t\t\t\t\"\\n\" +\r\n\t\t\t\t\t\"\\nSISTEMA DE GESTION LEGAL\";\r\n\t\t}\r\n\t\tif (modo==2)\r\n\t\t{\r\n\t\t\ttexto = \"Estimado Doc. \"+apellido+\":\\n\" + \" La actividad procesal: \" + nombreActividad +\r\n\t\t\t\t\t\" del expediente: \" + expediente + \" ha cambiado. La nueva Fecha de Vencimiento es: \" +\r\n\t\t\t\t\tfechaVencimiento +\r\n\t\t\t\t\t\"\\n\\nPor favor tomar las medidas del caso.\" + \r\n\t\t\t\t\t\"\\n\\nAtte.\" + \r\n\t\t\t\t\t\"\\n\" +\r\n\t\t\t\t\t\"\\nSISTEMA DE GESTION LEGAL\";\r\n\t\t}\r\n\t\tif (modo==3)\r\n\t\t{\r\n\t\t\ttexto = \"Estimado Doc. \"+apellido+\":\\n\" + \" La actividad procesal: \" + nombreActividad +\r\n\t\t\t\t\t\" del expediente: \" + expediente + \" ha vencido.\" +\r\n\t\t\t\t\t\"\\n\\nPor favor tomar las medidas del caso.\" + \r\n\t\t\t\t\t\"\\n\\nAtte.\" + \r\n\t\t\t\t\t\"\\n\" +\r\n\t\t\t\t\t\"\\nSISTEMA DE GESTION LEGAL\";\r\n\t\t}\r\n\t\treturn texto;\r\n\t}",
"@Override public void handleMessage(Message msg) {\n super.handleMessage(msg);\n byte[] byteArray = (byte[]) msg.obj;\n int length = msg.arg1;\n byte[] resultArray = length == -1 ? byteArray : new byte[length];\n for (int i = 0; i < byteArray.length && i < length; ++i) {\n resultArray[i] = byteArray[i];\n }\n String text = new String(resultArray, StandardCharsets.UTF_8);\n if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_WRITE) {\n Log.i(TAG, \"we just wrote... [\" + length + \"] '\" + text + \"'\");\n// mIncomingMsgs.onNext(text);\n } else if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_READ) {\n Log.i(TAG, \"we just read... [\" + length + \"] '\" + text + \"'\");\n Log.i(TAG, \" >>r \" + Arrays.toString((byte[]) msg.obj));\n mIncomingMsgs.onNext(text);\n sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// mReadTxt.setText(++ri + \"] \" + text);\n// if (mServerBound && mServerService.isConnected()) {\n// mServerService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// } else if (mClientBound && mClientService.isConnected()) {\n// mClientService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// }\n// mBluetoothStuff.mTalker.write();\n }\n }",
"public static String getTemplateMsgArgs(TemplateMsg tm){\n\t\tString toUserOpenId=tm.getOpenId();\n\t\tString template_id=tm.getTemplate_id();\n\t\tList<TemplateData> dataList=tm.getDataList();\n\t\tString url=tm.getUrl();\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"{\");\n\t\tsb.append(\"\\\"touser\\\":\\\"\").append(toUserOpenId).append(\"\\\",\");\n\t\tsb.append(\"\\\"template_id\\\":\\\"\").append(template_id).append(\"\\\",\");\n\t\tif(null!=url && !url.equals(\"\")){\n\t\t\tsb.append(\"\\\"url\\\":\\\"\").append(url).append(\"\\\",\");\n\t\t}\n\t\t\n\t\tsb.append(\"\\\"topcolor\\\":\\\"\").append(\"#FF0000\").append(\"\\\",\");\n\t\tsb.append(\"\\\"data\\\":{\");\n\t\t\n\t\tString dataStr = getDataStr(dataList);\n\t\tsb.append(dataStr);\n\t\t\n\t\t\n\t\tsb.append(\"}\");\n\t\tsb.append(\"}\");\n\t\t/**\n\t\t * {\n \"touser\":\"OPENID\",\n \"template_id\":\"ngqIpbwh8bUfcSsECmogfXcV14J0tQlEpBO27izEYtY\",\n \"url\":\"http://weixin.qq.com/download\",\n \"topcolor\":\"#FF0000\",\n \"data\":{\n \"first\": {\n \"value\":\"恭喜你购买成功!\",\n \"color\":\"#173177\"\n },\n \"keynote1\":{\n \"value\":\"巧克力\",\n \"color\":\"#173177\"\n },\n \"keynote2\": {\n \"value\":\"39.8元\",\n \"color\":\"#173177\"\n },\n \"keynote3\": {\n \"value\":\"2014年9月16日\",\n \"color\":\"#173177\"\n },\n \"remark\":{\n \"value\":\"欢迎再次购买!\",\n \"color\":\"#173177\"\n }\n }\n }\n\t\t */\n\t\treturn sb.toString();\n\t}",
"void outputMsg(OscilloscopeMsg omsg) {\n System.out.print(\"id = \" + omsg.get_id());\n // System.out.print(\"count = \" + omsg.get_count());\n System.out.print(\"temperature = \" + omsg.get_temperature());\n System.out.print(\"humidity = \" + omsg.get_humidity());\n System.out.print(\"light = \" + omsg.get_light());\n // System.out.print(\"current_time = \" + omsg.get_current_time());\n // System.out.print(\"token = \" + omsg.get_token());\n // System.out.print(\"readings = \" + omsg.get_readings());\n System.out.print(\"\\n\");\n }",
"private String appendContextMessage(String msg) {\n\t\treturn msg;\r\n\t}",
"public void writeOutput(String msg){\n msg = \"Message:\" + username + \" : \" + msg;//koristi se zbog parsiranja u metodi readInput\n out.println(msg);\n }",
"@Override\n public byte[] getMessage() {\n jsonData = textPane.getText();\n return buildData();\n }",
"String createMessageWithPrefix();",
"public abstract void textMessage(Message m);",
"private String getMsgCmd/* */(String msg) {\n return msg.substring(0); // NO SUB... for now :)\n }",
"@Override\n public void update() {\n String msg = (String) topic.getUpdate(this);\n if(msg == null){\n System.out.println(this.imeRonioca + \" no new messages\");\n }else{\n System.out.println(this.imeRonioca + \" consuming message: \" + msg);\n }\n }",
"private NdefMessage createNdefMessage(String content) {\n NdefRecord ndefRecord = createTextRecord(content);\n NdefMessage ndefMessage = new NdefMessage(new NdefRecord[]{ndefRecord});\n return ndefMessage;\n }",
"public String toMessage() {\n String mem = \"Mem: \"+memoryLoad+\"%\";\n String cpu = \" CPU: \"+cpuLoad+\"%\";\n String bat = \" Bat: \"+batteryLevel+\"%\";\n String threads = \"Threads: \"+numberOfThreads;\n String nbCM = \"BCs: \"+numberOfBCs;\n String nbConn = \"Connectors: \"+numberOfConnectors;\n String emiss = \"Sent PF:appli \"+networkPFOutputTraffic+\":\"+networkApplicationInputTraffic+\" KB/s\";\n String rec = \"Rcvd PF:appli \"+networkPFInputTraffic+\":\"+networkApplicationInputTraffic+\" KB/s\";\n return mem+\"|\"+cpu+\"|\"+threads+\"|\"+bat+\"|\"+nbCM+\"|\"+nbConn+\"|\"+emiss+\"|\"+rec; // recuperation de l'etat de l'hote\n }",
"private void createMsgSample() throws IOException {\n\t\tnew File(\"reply/msg/Sample\").mkdir();\n\t\tSystem.out.print(\"[INFO][PLUGIN][REPLY]:Creating MSG Sample...\");\n\t\tFileWriter sampMsg = new FileWriter(\"reply/msg/Sample/Hello.txt\");\n\t\tsampMsg.write(\"Hello world!\\n\");\n\t\tsampMsg.flush();\n\t\tsampMsg.close();\n\t\tFileWriter sampCmd = new FileWriter(\"reply/cmd/SampleMsg.yml\");\n\t\tsampCmd.write(\"msg\\n\");\n\t\tsampCmd.write(\"Sample\\n\");\n\t\tsampCmd.write(\"Hello&&world!\\n\");\n\t\tsampCmd.write(\"break\\n\");\n\t\tsampCmd.flush();\n\t\tsampCmd.close();\n\t\tSystem.out.println(\"DONE!\");\n\t}",
"public static String encode(Command msg)\n\t{\n\t\tString type = msg.getType();\n\t\tString sender = msg.getSender();\n\t\tString recipient = msg.getReciever()!=null ? msg.getReciever() : \" \";\n\t\tString message = msg.getMessage()!=null? msg.getMessage() : \" \";\n\t\tSystem.out.println(type + \";\" + sender + \";\" + recipient + \";\" + message);\n\t\treturn (type + \";\" + sender + \";\" + recipient + \";\" + message);\n\t}",
"@Override\n\t\t\t\tpublic void addTopic(String topic) {\n\t\t\t\t\t\tsendData(\"<new><name>\" + topic +\"</name></new>\");\n\t\t\t\t}",
"private void display(String msg) {\n\t\tString msgF = \"\\tClient- \" + msg + \"\\n\\n >> \";\n System.out.print(msgF);\n }",
"protected abstract String createMessage(XMLLogHelper logHelper);",
"public static String toPrettyString(Message msg, FIXDataDictionary inDict) {\r\n HashMap<String, String> fields = fieldsToMap(msg, inDict);\r\n fields.put(\"HEADER\", fieldsToMap(msg.getHeader(), //$NON-NLS-1$\r\n inDict).toString());\r\n fields.put(\"TRAILER\", fieldsToMap(msg.getTrailer(), //$NON-NLS-1$\r\n inDict).toString());\r\n return fields.toString();\r\n }",
"@Override\n public void messageArrived(String topic, MqttMessage message) {\n if(topic.equals(UserData.topicIn)) {\n String msg = message.toString();\n GuiUpdater.updateConsoleWithResponse(msg);\n }\n }",
"public String parseStringMsg(String msg){\n String parsedMsg = msg;\n //Make second mthd w/o second param\n //replacements is like Variable:Replacement i.e. PLAYERTRADESENTTO:playerReceiver.getName()\n return parsedMsg;\n }",
"private void gravarConteudoMsg(StringBuffer conteudoMsg, int codigoMsg) throws Exception {\n File diretorio = new File(\"Mensagens\");\n if (diretorio.mkdir() || diretorio.exists()) {// Cria um diretório que retorna true se criou e verifica se diretório existe\n try {\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(new File(diretorio, codigoMsg + \".txt\"))));\n out.println(conteudoMsg);\n out.close();\n return;\n } catch (IOException ex) {\n throw new Exception(\"Erro ao gravar a mensagem no arquivo\");\n }\n }\n throw new Exception(\"Não é posível salvar a mensagem no arquivo\");\n }",
"public void sendSTRT(byte[] topic) {\n\t\tstrtF = new Frame(new Packet(tgtAddr, Packet.STRT, STRT_NUM, topic), srcSocket);\n\t\tstrtF.send();\n\t\tSystem.out.println(\"Sending STRT.\");\n\t\tSystem.out.flush();\n\t}",
"@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tString temp;\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase MSG_SHOW_RESULT:\n\t\t\t\t\t temp = (String) msg.obj;\n\t\t\t\t\t Reader.writelog(temp,tvResult);\n\t\t\t\t\t break;\n\t\t\t\tcase MSG_SHOW_INFO:\n\t\t\t\t\t temp = (String) msg.obj;\n\t\t\t\t\treadContent.setText(temp);\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}",
"@Override\r\n\tvoid updateMessage(String msg) {\n\t\tSystem.out.println(msg);\r\n\t}",
"public void setMsg(String msg) { this.msg = msg; }",
"T generateLogMessage(String msg, PriorityLevel priorityLevel);",
"void stampaMessaggio(String messaggio);",
"@Override\n public void messageArrived(String topic, MqttMessage msg) throws Exception {\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"| Topic:\" + topic);\n System.out.println(\"| Message: \" + new String(msg.getPayload()));\n System.out.println(\"-------------------------------------------------\");\n\n Integer status = Integer.valueOf(msg.toString());\n\n if(topic.equals(poolController.STATUS_TOPIC))\n {\n /*\n ** Status bits for remote device\n ** Bit Pos.| 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |\n ** Device. |Filter|Cleaner|Solar|Spare|Spare|Spare|Spare|Auto/Man|Zone1|Zone2|Zone3|Spare|Spare|Spare|Spare|Auto/Man|\n ** Group. |<====================== Pool =======================>|<================== Irrigation ==================>|\n */\n for(int i=0;i<16;i++)\n {\n switch(i)\n {\n case 7:\n poolCtrl.nAutoMode = getBit(status, i);\n break;\n case 1:\n poolCtrl.nCleaning = getBit(status, i);\n break;\n case 2:\n poolCtrl.nSolar = getBit(status, i);\n break;\n case 0:\n poolCtrl.nFilter = getBit(status, i);\n break;\n case 8:\n poolCtrl.nIrrZone_1 = getBit(status, i);\n break;\n case 9:\n poolCtrl.nIrrZone_2 = getBit(status, i);\n break;\n case 10:\n poolCtrl.nIrrZone_3 = getBit(status, i);\n break;\n case 15:\n poolCtrl.nIrrAutoMode = getBit(status, i);\n break;\n default:\n break; \n }\n }\n }\n\n }",
"static int[] createRhythmLevelMessage(int part, byte level){\r\n\t\tif(part < 0) part = 0;\r\n\t\tif(part > 15) part = 15;\r\n\t\t\r\n\t\tint[] data = new int[5];\r\n\t\tdata[0] = 0x11 + part / 4;\r\n\t\tdata[1] = 0x10 + (part % 4) * 0x20;\r\n\t\tdata[2] = 0x00;\r\n\t\tdata[3] = 0x0C;\r\n\t\tdata[4] = level;\r\n\t\treturn createMessage(data);\r\n\t}",
"public String process(String msg) {\n return msg;\n }",
"private void createMessage(String msg) {\n\t\tmessage = new GLabel(msg);\n\t\tmessage.setFont(MESSAGE_FONT);\n\t\tadd(message, getWidth() / 2 - message.getWidth() / 2, getHeight()\n\t\t\t\t- BOTTOM_MESSAGE_MARGIN - message.getHeight());\n\t}",
"public String format(String mformat, Object... args) {\n if(args.length==0){//expedite frequent case\n if (view != null) {\n view.append(mformat);\n }\n return mformat;\n }\n String ess = MessageFormat.format(mformat, args);\n if (view != null) {\n view.append(ess);\n }\n return ess;\n }",
"public void writeMsg(MamaMsg msg, MamaDictionary dictionary, MamaSubscription subscription);",
"private Message createJMSMessageForjmsMyTopic(Session session, Object messageData) throws JMSException {\n TextMessage tm = session.createTextMessage();\n tm.setText(messageData.toString());\n return tm;\n }",
"@JsonIgnore\n public String getMessageHeaders() {\n try {\n ObjectMapper mapper = new ObjectMapper();\n ObjectNode root = mapper.createObjectNode();\n root.set(\"topic\", mapper.convertValue(getTopic(), JsonNode.class));\n return mapper.writer().writeValueAsString(root);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return \"\";\n }",
"private static String getFormattedText(byte[] bytes) {\n\t\tint len = bytes.length;\n\t\tStringBuilder buf = new StringBuilder(len * 2);\n\t\t// 把密文转换成十六进制的字符串形式\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tbuf.append(HEX_DIGITS[(bytes[j] >> 4) & 0x0f]);\n\t\t\tbuf.append(HEX_DIGITS[bytes[j] & 0x0f]);\n\t\t}\n\t\treturn buf.toString();\n\t}",
"private static String getFormattedText(byte[] bytes) {\n\t\tint len = bytes.length;\n\t\tStringBuilder buf = new StringBuilder(len * 2);\n\t\t// 把密文转换成十六进制的字符串形式\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tbuf.append(HEX_DIGITS[(bytes[j] >> 4) & 0x0f]);\n\t\t\tbuf.append(HEX_DIGITS[bytes[j] & 0x0f]);\n\t\t}\n\t\treturn buf.toString();\n\t}",
"public void processMessages(String msg, String rec){\n\t\tthis.email.sendEmail(msg, rec);\n\t}",
"public static String getMessage(int msg_type)\n\t{\n\t\tString msg = \"\";\n\t\t\n\t\tif(msg_type == TYPE_GET_VERSION)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetVersion\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_GET_DATA)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetData\\\"/>\";\n//\t\t\tmsg = \"<PublicSDK Message=\\\"GetIntegratedData\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_GET_EVENTS)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetEvents\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_GET_IMAGE)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetImage\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_GET_PRODUCT_INFORMATION)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetProductInformation\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_GET_TIME)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetTime\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_SET_TIME)\n\t\t{\n\t\t\tmsg = \"<PublicSDK Message=\\\"SetTime\\\" UTC=\\\"%s\\\" Milliseconds=\\\"%s\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_CLEAR_DATA)\n\t\t{\n\t\t\tmsg = \"<PublicSDK Message=\\\"ClearData\\\"/>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlog4j.warn(\"No message mapped for msg_type = \" + msg_type + \". Return msg = null..\");\n\t\t\tmsg = null;\n\t\t}\n\t\t\n\t\treturn msg;\n\t}",
"private static void msg(Object msg, boolean nl) {\n System.out.print(msg);\n if (nl) System.out.print(\"\\n\");\n }",
"private void print(String msg) {\r\n\t\tSystem.out.printf(\"[%tT] %s\\n\", Calendar.getInstance(), msg);\r\n\t}",
"@Override\r\n\t\t\t\t\tpublic void messageArrived(String topic, MqttMessage message) throws Exception {\n\t\t\t\t\t\t try { \r\n//\t\t\t\t\t\t\t SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\"); \r\n//\t\t\t\t\t\t\t String date = sdf.format(new Date());\r\n\t\t\t\t\t System.out.println(\" From:\"+message.toString()); \r\n\t\t\t\t\t \r\n\t\t\t\t\t Connection conn = null;\r\n\t\t\t\t\t Class.forName(\"com.mysql.jdbc.Driver\"); \r\n\t\t\t\t\t conn = DriverManager.getConnection(\r\n\t\t\t\t\t \t\t\"jdbc:mysql://localhost:3306/mqtt?useUnicode=true&characterEncoding=UTF-8\",\r\n\t\t\t\t\t \t\t\"root\",\r\n\t\t\t\t\t \t\t\"tmu2012\");\r\n\t\t\t\t\t System.out.println(\"connected to the database\");\r\n\r\n\t\t\t\t\t Statement stmt = conn.createStatement();\r\n\t\t\t\t\t System.out.println(\"Inserting records\");\r\n\t\t\t\t\t \r\n\t\t\t\t\t String qry1 = \"INSERT INTO mymqtts (mqtt) VALUES('\"+message.toString()+\"')\";\r\n\t\t\t\t\t stmt.executeUpdate(qry1);\r\n\t\t\t\t\t System.out.println(\"ok\");\r\n\t\t\t\t\t\t }catch (Exception e) { \r\n\t\t\t\t\t e.printStackTrace(); \r\n\t\t\t\t\t System.out.println(\"error\"); \r\n\t\t\t\t\t } \r\n\t\t\t\t\t}",
"private static String getFormattedText(byte[] bytes) {\n\t\tint len = bytes.length;\n\t\tStringBuilder buf = new StringBuilder(len * 2);\n\t\t// 把密文转换成十六进制的字符串形式\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tbuf.append(HEX_DIGITS[(bytes[j] >> 4) & 0x0f]);\n\t\t\tbuf.append(HEX_DIGITS[bytes[j] & 0x0f]);\n\t\t}\n\t\treturn buf.toString().toUpperCase();\n\t}",
"public static String SPgetMessageText(Context context){\n ArrayList<Outfit> list = getOutfitList(context);\n if(list.size()>0){\n StringBuilder sb = new StringBuilder();\n for(int i = 0 ; i<list.size(); i++){\n sb.append(list.get(i).getFunCharacter());\n }\n return sb.toString();\n }else{\n return InitialOutfit.startingText();\n }\n\n\n }",
"@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }",
"public String getMsg() { return this.msg; }",
"private void txtMessageKeyReleased(java.awt.event.KeyEvent evt) {\n if (evt.getKeyCode() == KeyEvent.VK_ENTER) {\n if (!txtMessage.getText().isEmpty()) {\n String msg = txtMessage.getText();\n JLabel userchat = new JLabel();\n userchat.setText(\"Tôi: \" + msg);\n userchat.setForeground(Color.red);\n panelChat.add(userchat);\n txtMessage.setText(\"\");\n revalidate();\n\n client.send(new Message(\"privatechat\", user, msg, target));\n //cái này cái cũ nè\n// StyledDocument doc = txtMessageInfo.getStyledDocument();\n// SimpleAttributeSet right = new SimpleAttributeSet();\n// StyleConstants.setAlignment(right, StyleConstants.ALIGN_RIGHT);\n// Style style = txtMessageInfo.addStyle(null, null);\n// StyleConstants.setForeground(style, Color.red);\n// try {\n// String message = msg + \"\\n\";\n// int lenght = doc.getLength();\n// doc.insertString(lenght, message, style);\n// doc.setParagraphAttributes(lenght + 1, 1, right, false);\n// client.send(new Message(\"privatechat\", user, msg, target));\n// txtMessage.setText(\"\");\n// } catch (Exception e) {\n//\n// }\n }\n// if(!txtMessage.getText().isEmpty())\n// {\n// String msg = txtMessage.getText();\n// StyledDocument doc = txtMessageInfo.getStyledDocument();\n// SimpleAttributeSet right = new SimpleAttributeSet();\n// StyleConstants.setAlignment(right, StyleConstants.ALIGN_RIGHT);\n// Style style = txtMessageInfo.addStyle(null, null);\n// StyleConstants.setForeground(style, Color.MAGENTA);\n// String message = msg +\"\\n\";\n// int length = doc.getLength();\n// try {\n// doc.insertString(length, message, style);\n// doc.setParagraphAttributes(length+1, 1, right, false);\n// txtMessage.setText(\"\");\n// client.send(new Message(\"privatechat\", user, msg , target));\n//\n// } catch (BadLocationException ex) {\n// Logger.getLogger(PrivateChatFrame.class.getName()).log(Level.SEVERE, null, ex);\n// JOptionPane.showMessageDialog(rootPane, \"Loi: \"+ ex.toString());\n// }\n// \n//\n// }\n }\n }",
"public boolean receiveMqttMessage(CharSequence topic, ChannelReader payload) {\n\t\tSystem.out.print(\"\\ningress body: \");\n\n\t\t// Read the message payload and output it to System.out\n\t\tpayload.readUTFOfLength(payload.available(), System.out);\n\t\tSystem.out.println();\n\n\t\t// Create the on-demand mqtt payload writer\n\t\tWritable mqttPayload = writer -> writer.writeUTF(\"\\nsecond step test message\");\n\n\t\t// On the 'localtest' topic publish the mqtt payload\n\t\tcmd.publishTopic(mqttPayload, WaitFor.None);\n\n\t\t// We consumed the message\n\t\treturn true;\n\t}",
"private void sendMsgToClient(String msg) {\n controlOutWriter.println(msg);\n }",
"String getNewTopic();",
"public void sendEMMessage(String msg, String toChatId, String ext) {\n\t\tEMMessage message = EMMessage.createSendMessage(EMMessage.Type.TXT);\n\t\tTextMessageBody txtBody = new TextMessageBody(msg);\n\t\t// 设置消息body\n\t\tmessage.addBody(txtBody);\n\t\tif (!TextUtils.isEmpty(ext))\n\t\t\tmessage.setAttribute(\"ext\", ext);\n\t\t// 设置要发给谁,用户username或者群聊groupid\n\t\tmessage.setReceipt(toChatId);\n\t\t// 把messgage加到conversation中\n\t\tEMConversation conversation = EMChatManager.getInstance()\n\t\t\t\t.getConversation(toChatId);\n\t\tconversation.addMessage(message);\n\t\tEMChatManager.getInstance().sendMessage(message, new EMCallBack() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess() {\n\t\t\t\tSystem.out.println(\"系统发送成功\");\n\t\t\t\tisSendSuccess();\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onError(int code, String error) {\n\t\t\t\tSystem.out.println(\"系统发送失败\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onProgress(int progress, String status) {\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t}",
"public String getMessageText();",
"public void send(String providedTopic,V msg);",
"public String toString() {\n String s = \"Message <RxTxMonitoringMsg> \\n\";\n try {\n s += \" [infos.type=0x\"+Long.toHexString(get_infos_type())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [infos.log_src=0x\"+Long.toHexString(get_infos_log_src())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [infos.timestamp=0x\"+Long.toHexString(get_infos_timestamp())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [infos.seq_num=0x\"+Long.toHexString(get_infos_seq_num())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [infos.size_data=0x\"+Long.toHexString(get_infos_size_data())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [infos.valid_noise_samples=0x\"+Long.toHexString(get_infos_valid_noise_samples())+\"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [infos.noise=\";\n for (int i = 0; i < 3; i++) {\n s += \"0x\"+Long.toHexString(getElement_infos_noise(i) & 0xffff)+\" \";\n }\n s += \"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [infos.metadata=\";\n for (int i = 0; i < 2; i++) {\n s += \"0x\"+Long.toHexString(getElement_infos_metadata(i) & 0xff)+\" \";\n }\n s += \"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n try {\n s += \" [data=\";\n for (int i = 0; i < 60; i++) {\n s += \"0x\"+Long.toHexString(getElement_data(i) & 0xff)+\" \";\n }\n s += \"]\\n\";\n } catch (ArrayIndexOutOfBoundsException aioobe) { /* Skip field */ }\n return s;\n }",
"public void printMessage(DiagnosticKind kind, CharSequence msg, MMObj mmObj);",
"synchronized void trace(String msg) {\n articleTextArea.append(msg);\n articleTextArea.append(\"\\n\");\n }",
"@Override\n\t\t\t\tpublic void onPublish(UTF8Buffer topicmsg, Buffer msg, Runnable ack) {\n\t\t\t\t\tString topic = topicmsg.utf8().toString();\n\t\t\t\t\tString payload = msg.utf8().toString();\n\t\t\t\t\tSystem.out.println(topic);\n\t\t\t\t\tSystem.out.println(payload);\n\t\t\t\t\t// 表示监听成功\n\t\t\t\t\tack.run();\n\t\t\t\t}",
"private String _topicRef(Topic topic) {\n Set<Locator> locs = topic.getSubjectIdentifiers();\n if (!locs.isEmpty()) {\n return \"si:\" + locs.iterator().next().toExternalForm();\n }\n locs = topic.getSubjectLocators();\n if (!locs.isEmpty()) {\n return \"sl:\" + locs.iterator().next().toExternalForm();\n }\n locs = topic.getItemIdentifiers();\n if (!locs.isEmpty()) {\n return \"ii:\" + locs.iterator().next().toExternalForm();\n }\n return \"ii:\" + _baseIRI + \"#\" + topic.getId();\n }",
"private void PrintMessageOnTextChat(MessageWithTime message)\n\t{\n\t\tApplicationManager.textChat.write(message);\n\n\t}",
"public int createmessage(String sendername, int senderid, int getterid, String txt) {\n int id = nextId;\n try{\n this.gateWay.writeNewMsg(id, sendername, senderid, getterid, txt);\n }catch (IOException ignored){}\n\n createHelper(id, sendername, senderid, getterid, txt);\n nextId += 1;\n return id;\n }",
"Payload getMsg();",
"protected abstract void onPrintBorderedMessage(int logLevel, String tag, String msg);",
"public void setMsg(String msg) {\n this.msg = msg;\n }",
"public static String getMessageText(String operationName, String oldProperties,\n String sessionName, int classKey,\n String tradingPropertyName)\n {\n TradingPropertyGroup tpg = null;\n String messageText = null;\n try\n {\n tpg = getTradingPropertyGroup(sessionName, classKey, tradingPropertyName);\n messageText = getMessageText(operationName, oldProperties, tpg);\n }\n catch(Exception e)\n {\n GUILoggerHome.find().exception(GUILoggerSABusinessProperty.PROPERTY_SERVICE +\n \".getMessageText(operationName, oldProperties, sessionName, classKey, tradingPropertyName)\",\n \" Exception while formatting the message text :\", e);\n return FAILED;\n }\n return messageText;\n }",
"public void createTopic(String topic) {\n\n\t}",
"public void send(String topic,Object content,String actionType) {\n //maxkey.server.message.queue , if not none\n if(applicationConfig.isProvisionSupport()) {\n ProvisionMessage message = \n \t\tnew ProvisionMessage(\n \t\t\t\tUUID.randomUUID().toString(),\t//message id as uuid\n \t\t\t\ttopic,\t//TOPIC\n \t\t\t\tactionType,\t//action of content\n \t\t\t\tDateUtils.getCurrentDateTimeAsString(),\t//send time\n \t\t\t\tnull, \t//content Object to json message content\n \t\t\t\tcontent\n \t\t\t\t);\n //sand msg to provision topic\n Thread thread = null;\n if(applicationConfig.isProvisionSupport()) {\n \t_logger.trace(\"message...\");\n \tthread = new ProvisioningThread(jdbcTemplate,message);\n \tthread.start();\n }else{\n \t_logger.trace(\"no send message...\");\n }\n }\n }",
"private void remplirTabNewMess(){\n\t\tCalendar date = Calendar.getInstance();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);\n\n\t\tString passage[]= new String[7];\n\n\t\tpassage[0]=tab[2]; //sender\n\t\tpassage[1]=tab[1]; //recep\n\t\tpassage[2]=tab[4]; //obj\n\t\tpassage[3]=tab[3]; //txt\n\t\tpassage[4]=\"0\"; //importance\n\t\tpassage[5]=sdf.format(date.getTime()); //date\n\t\tpassage[6]=\"1\"; //non lu\n\n\t\tmessages.add((String[])passage);\n\t\tthis.send(messages);\n\t\tmessagerie.Server.con.closeSocket();\n\n\t}",
"@Override\n\tpublic String getText() {\n\t\treturn \"MMS: \" + text;\n\t}",
"@OnAlias(value = \"createmessage2\")\n\tpublic void createMessage2(TeamchatAPI api) throws Exception {\n\t\t// populating with message name list\n\t\t// get option name\n\t\tString[] project = api.context().currentReply().getField(\"project\")\n\t\t\t\t.split(\"\\\\|\");\n\t\t// get topic id from option name\n\t\tprojectId = project[(project.length - 1)].trim();\n\t\tapi.perform(api\n\t\t\t\t.context()\n\t\t\t\t.currentRoom()\n\t\t\t\t.post(new PrimaryChatlet()\n\t\t\t\t\t\t.setQuestion(\"Write your message\")\n\t\t\t\t\t\t.setReplyScreen(\n\t\t\t\t\t\t\t\tapi.objects()\n\t\t\t\t\t\t\t\t\t\t.form()\n\t\t\t\t\t\t\t\t\t\t.addField(\n\t\t\t\t\t\t\t\t\t\t\t\tapi.objects().input()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.name(\"subject\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.label(\"Title\"))\n\t\t\t\t\t\t\t\t\t\t.addField(\n\t\t\t\t\t\t\t\t\t\t\t\tapi.objects().input()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.name(\"content\")\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.label(\"Message\")))\n\t\t\t\t\t\t.setReplyLabel(\"Send\").alias(\"createmessage3\")));\n\t}"
]
| [
"0.60438436",
"0.60372156",
"0.592844",
"0.58931226",
"0.577746",
"0.572044",
"0.56518304",
"0.56388795",
"0.5637505",
"0.5597512",
"0.5569709",
"0.55640304",
"0.55029774",
"0.54659903",
"0.54352695",
"0.5418847",
"0.5393085",
"0.5392147",
"0.5365976",
"0.53188276",
"0.530282",
"0.52943337",
"0.5281035",
"0.52670574",
"0.526121",
"0.5241829",
"0.5231649",
"0.52214515",
"0.5217663",
"0.5217438",
"0.5212743",
"0.5201407",
"0.5158482",
"0.5155874",
"0.5110776",
"0.5109911",
"0.50914836",
"0.5090253",
"0.50860655",
"0.5084415",
"0.50725913",
"0.5070919",
"0.5055728",
"0.50554025",
"0.50474274",
"0.504075",
"0.5036181",
"0.50339293",
"0.5033628",
"0.5032299",
"0.50283325",
"0.50262344",
"0.5021607",
"0.50205714",
"0.50110215",
"0.5004655",
"0.5003268",
"0.49999455",
"0.49991375",
"0.4994693",
"0.49935126",
"0.49903214",
"0.49861136",
"0.4976",
"0.49752235",
"0.49707636",
"0.49658468",
"0.49658468",
"0.496553",
"0.49611798",
"0.4958813",
"0.49491668",
"0.49482372",
"0.49444",
"0.49424496",
"0.4942075",
"0.493794",
"0.4935538",
"0.49216712",
"0.49194732",
"0.49162",
"0.49139747",
"0.4913432",
"0.49125496",
"0.4898391",
"0.48937044",
"0.48931688",
"0.4884541",
"0.48789883",
"0.4877801",
"0.48770168",
"0.48738346",
"0.48713627",
"0.48623616",
"0.48619172",
"0.48571283",
"0.4852931",
"0.48511267",
"0.48485863",
"0.48478487"
]
| 0.5124152 | 34 |
/ Function to push an item to stack | private static void push(Stack<Integer> top_ref, int new_data) {
//Push the data onto the stack
top_ref.push(new_data);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void push(Item item){\n this.stack.add(item);\n\n }",
"public void push (E item){\n this.stack.add(item);\n }",
"void push(Object item);",
"public void push(T item);",
"public void push(E object) {stackList.insertAtFront(object);}",
"public void push(ILocation item)\n {\n stack.add(top, item);\n top++;\n }",
"void push(T item);",
"void push(T item);",
"public void push(E item);",
"void push(T item) {\n contents.addAtHead(item);\n }",
"@SubL(source = \"cycl/stacks.lisp\", position = 2898) \n public static final SubLObject stack_push(SubLObject item, SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n _csetf_stack_struc_elements(stack, cons(item, stack_struc_elements(stack)));\n _csetf_stack_struc_num(stack, Numbers.add(stack_struc_num(stack), ONE_INTEGER));\n return stack;\n }",
"public void push(Object item)\r\n {\n this.top = new Node(item, this.top);\r\n }",
"@Override\n\tpublic void push(E item) {\n\t\t\n\t}",
"public void push(T item)\r\n\t{\r\n\t\t if (size == Stack.length) \r\n\t\t {\r\n\t\t\t doubleSize();\r\n\t }\r\n\t\tStack[size++] = item;\r\n\t}",
"public void push(E item) {\n if (!isFull()) {\n this.stack[top] = item;\n top++;\n } else {\n Class<?> classType = this.queue.getClass().getComponentType();\n E[] newArray = (E[]) Array.newInstance(classType, this.stack.length*2);\n System.arraycopy(stack, 0, newArray, 0, this.stack.length);\n this.stack = newArray;\n\n this.stack[top] = item;\n top++;\n }\n }",
"public void push(E item) {\n addFirst(item);\n }",
"public void push(T item){\n Node<T> n;\n if(this.isEmpty()){\n n = new Node<>();\n n.setData(item);\n } else {\n n = new Node<>(item, this._top);\n }\n\n this._top = n;\n }",
"public void push(T newItem);",
"public void push(Item item)\n {\n top = new Node<Item>(item, top);\n N++;\n }",
"public void push(T value) {\n \tstack.add(value);\n }",
"public void push(Object ob){\n \t Stack n_item=new Stack(ob);\n \tn_item.next=top;\n \ttop=n_item;\n }",
"public void push(E inValue)\n {\n stack.insertFirst(inValue);\n }",
"public void push(char item) {\n StackNode stackNode = new StackNode(item);\n\n if (top == null) { //if list is empty\n top = stackNode;\n }\n else { //list is not empty\n stackNode.next = top;\n top = stackNode;\n }\n }",
"public void push(int item) {\n if(isEmpty())\n top = new Node(item);\n else\n {\n Node newNode = new Node(item, top);\n top = newNode;\n }\n sz++;\n }",
"public void push(Object item) {\r\n\t\tdata.add(item);\r\n\r\n\t}",
"public void push(int item) {\n\t\t// TODO Auto-generated method stub\n\t\tif(position >= stack.length-1){\n\t\t\tSystem.out.println(\"Stack is full!\");\n\t\t}else{\n\t\t\tstack[position] = item;\n\t\t\tposition++;\n\t\t}\n\t}",
"@Override\n\tpublic void push(T element) {\n\t\tif(top == stack.length) \n\t\t\texpandCapacity();\n\t\t\n\t\tstack[top] = element;\n\t\ttop++;\n\n\t}",
"public void push(T x);",
"@Override\n\tpublic void push(int item) {\n\n\t}",
"public void push(T item){\n if (head == null) {\n head = new Node<T>(item, null);\n } else {\n Node<T> tempNode = head;\n Node<T> newHead = new Node<T>(item, tempNode);\n head = newHead;\n }\n }",
"public void push(Item item){\n\t\tNode oldfirst=first;\r\n\t\tfirst=new Node();\r\n\t\tfirst.item=item;\r\n\t\tfirst.next=oldfirst;\r\n\t\tN++;\r\n\t}",
"@Override\r\n\tpublic void push(E e) {\r\n\t\tif (size() == stack.length)\r\n\t\t\texpandArray();\r\n\t\tstack[++t] = e; // increment t before storing new item\r\n\t}",
"public void push(E newItem);",
"@Override\n public E push(E item) {\n // do not allow nulls\n if (item == null) {\n return null;\n }\n\n // do not allow same item twice in a row\n if (size() > 0 && item.equals(peek())) {\n return null;\n }\n\n // okay to add item to stack\n super.push(item);\n\n // remove oldest item if stack is now larger than max size\n if (size() > maxSize) {\n remove(0);\n }\n contentsChanged();\n return item;\n }",
"@Override\n\tpublic void push(T item) {\n\t\tNode<T> currentNode = new Node<T>(item);\n\t\tif(top == null) {\n\t\t\ttop = currentNode;\n\t\t}\n\t\telse {\n\t\t\tcurrentNode.setLink(top);\n\t\t\ttop = currentNode;\n\t\t}\n\t}",
"public void push(Object obj) {\n if (top < stack.length - 1) {\n stack[++top] = obj;\n }\n else\n {\n increaseStackSize(1);\n stack[++top] = obj; \n }\n }",
"public void push(TYPE element);",
"public void push(Item item) {\r\n Node oldfirst = first;\r\n first = new Node();\r\n first.item = item;\r\n first.next = oldfirst;\r\n N++;\r\n }",
"public void push(T element);",
"public void push(T element);",
"public void push(Item item) {\n Node temp = first;\n first = new Node();\n first.item = item;\n first.next = temp;\n n++;\n }",
"void push(T t);",
"void push(E Obj);",
"public void push(T newEntry) {\n ensureCapacity();\n stack[topIndex + 1] = newEntry;\n topIndex++;\n }",
"public void push (T element)\r\n {\r\n if (size() == stack.length) \r\n expandCapacity();\r\n\r\n stack[top] = element;\r\n top++;\r\n }",
"void push(Object elem);",
"public void push(E value);",
"private final void push(Object ob) {\r\n\t\teval_stack.add(ob);\r\n\t}",
"public void push(T elem);",
"public void push(T aValue);",
"public void push(Object anElement);",
"public void push(E element);",
"void push(int element);",
"public E push(E item) {\n try {\n stackImpl.push(item);\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.println(\"Array is full. Switching to unbound implementation\");\n StackImplementationIF<E> stackImplTemp = new ListStack<E>();\n for (Enumeration en = new ImplIterator<E>(this); en.hasMoreElements();) {\n E c = (E) en.nextElement();\n stackImplTemp.push(c);\n }\n stackImpl = stackImplTemp;\n stackImpl.push(item);\n }\n return item;\n }",
"public void push(AnyType e) throws StackException;",
"@Test\n public void push() {\n SimpleStack stack = new DefaultSimpleStack();\n Item item = new Item();\n\n // When the item is pushed in the stack\n stack.push(item);\n\n // Then…\n assertFalse(\"The stack must be not empty\", stack.isEmpty());\n assertEquals(\"The stack constains 1 item\", 1, stack.getSize());\n assertSame(\"The pushed item is on top of the stack\", item, stack.peek());\n }",
"void push(T x);",
"public void push(int elem);",
"public void push(E element) {\r\n items.add(0, element);\r\n }",
"public void enqueue(Item item) \n {\n stack1.push(item);\n }",
"@Override\r\n\tpublic void push(int item) {\n\t\tif(tos == stack.length-1)\r\n\t\t\tSystem.out.println(\"스택이 꽉참\");\r\n\t\telse\r\n\t\t\tstack[++tos] = item;//화살표 즉시 +1 한후 들어온 값 대입\r\n\t}",
"public void push(String item) {\r\n\t\t\r\n\t\tNode node = new Node();\r\n\t\tnode.data=item;\r\n\t\tnode.next=last;\r\n\t\tlast=node;\r\n\t}",
"public void push(T entry)\n { \n first = push(entry, first);\n }",
"public void push(Item s){\n\n //create a new node and insert incoming data\n Node node=new Node();\n node.item=s;\n node.next=head; //make node the current head pointer\n //make head point the new node\n head=node;\n }",
"public void push (E element);",
"void push(int item) {\r\n\t\tif (tos == 9)\r\n\t\t\tSystem.out.println(\"Stos jest pełny\");\r\n\t\telse\r\n\t\t\tstck[++tos] = item;\r\n\t}",
"public void push(T o) {\r\n\t\tadd(o);\t\r\n\t}",
"public void push(int x) {\r\n inStack.push(x);\r\n }",
"public void push(E it){\r\n Node<E> curr = new Node<E>(it);\r\n curr.setNext(top);\r\n top = curr;\r\n size++;\r\n }",
"@Override\n\tpublic void push(Item item) \n\t{\n\t\ttopMostNode = new Node(item, topMostNode); // Creates the top MostNode\n\t\tN++;\n\t}",
"void push(int i);",
"public void push(E data);",
"public void push(T data);",
"public void push(T data);",
"public void push(int x) {\n stack.add(x);\n }",
"static void perform_push(String passed){\n\t\tint type = type_of_push(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tpush_to_stack(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n public E push(final E obj) {\n // TODO\n top = new Node<>(obj, top);\n return obj;\n }",
"public void push(int item) {\r\n\t\t\tif (this.top == null) {\r\n\t\t\t\tthis.top = new Node();\r\n\t\t\t\tthis.top.data = item;\r\n\t\t\t\tthis.size++;\r\n\t\t\t\tthis.middle = top;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t\tNode node = new Node();\r\n\t\t\tnode.data = item;\r\n\t\t\ttop.next = node;\r\n\t\t\tnode.prev = this.top;\r\n\t\t\ttop = top.next;\r\n\t\t\t++this.size;\r\n\r\n\t\t\tif (this.size % 2 == 1) {\r\n\t\t\t\tthis.middle = this.middle.next;\r\n\t\t\t}\r\n\r\n\t\t}",
"public void push(T element) {\n if(isFull()) {\n throw new IndexOutOfBoundsException();\n }\n this.stackArray[++top] = element;\n }",
"public void push(Item s) {\n\t\tif (N == arr.length)\n\t\t\tresize (arr.length*2);\t\n\t\tarr[N++] = s;\n\t}",
"void push(int value);",
"public <T> void push( T N ) {\r\n Node newTop; // A Node to hold the new item.\r\n newTop = new Node();\r\n newTop.item = N; // Store N in the new Node.\r\n newTop.next = top; // The new Node points to the old top.\r\n top = newTop; // The new item is now on top.\r\n }",
"public void push(E e) {\n\t\ttop = new SNode<E>(e, top);\n\t}",
"public void push(int x) {\n this.stack1.add(x);\n }",
"void push(int in);",
"void push(E e);",
"void push(E e);",
"public void push(E e) throws Exception;",
"public void enqueue (T item) {\n leftStack.push(item);\n }",
"@Override\n\tpublic void push(Object x) {\n\t\tlist.addFirst(x);\n\t}",
"public void push(int x) {\n pushStack.add(x);\n }",
"public void push(int x) {\r\n stack.offer(x);\r\n }",
"public void push(T newEntry);",
"public void push(int element) {\n stack1.push(element);\n }",
"public void pushStack(int newStack){\n // creates a new object\n GenericStack temp = new GenericStack(newStack);\n temp.next = top;\n top = temp;\n }",
"public void push(int item) {\n \t// System.out.println(\"in push\");\n \tif (head == null) {\n \t\tNode n = new Node();\n \t\tn.value = item;\n \t\tn.next = null;\n \t\thead = n;\n \t\ttail = n;\n \t\tsize++;\n \t} else {\n \t\tNode oldhead = head;\n \t\tNode n = new Node();\n \t\tn.value = item;\n \t\tn.next = oldhead;\n \t\thead = n;\n \t\t// tail = oldhead;\n \t\tsize++;\n \t}\n }",
"private void push( Card card ) {\r\n undoStack.add( card );\r\n }",
"public void push(int x) {\r\n stack.offer(x);\r\n }",
"void push(int x);",
"public void push(int x) {\n rearStack.push(x);\n }",
"public void push(T data) {\n if((stackPointer + 1) == Array.getLength(this.elements))\n expandStack();\n this.elements[++stackPointer] = data;\n }"
]
| [
"0.8737143",
"0.87246245",
"0.8274624",
"0.82417285",
"0.82390714",
"0.82221687",
"0.8166011",
"0.8166011",
"0.8157163",
"0.7865233",
"0.78639406",
"0.78310263",
"0.7829355",
"0.7799064",
"0.7764172",
"0.7750566",
"0.77109855",
"0.77108485",
"0.7707352",
"0.7689631",
"0.76811343",
"0.765022",
"0.76060086",
"0.75187343",
"0.7515884",
"0.7505992",
"0.74672896",
"0.7459575",
"0.745734",
"0.74535674",
"0.74351865",
"0.74256957",
"0.74242896",
"0.7422321",
"0.7419403",
"0.7409344",
"0.7384328",
"0.73800683",
"0.7378828",
"0.7378828",
"0.73578763",
"0.7342402",
"0.7312657",
"0.73042864",
"0.7299998",
"0.72932214",
"0.7290757",
"0.72902006",
"0.72860116",
"0.7283276",
"0.72804004",
"0.72560483",
"0.7253792",
"0.7251807",
"0.7248521",
"0.72337675",
"0.72249913",
"0.72189236",
"0.721097",
"0.7191063",
"0.7189467",
"0.71868587",
"0.71780825",
"0.7178025",
"0.71396405",
"0.7109207",
"0.7107768",
"0.7102394",
"0.7096929",
"0.7093325",
"0.7091031",
"0.7072984",
"0.7071979",
"0.7071979",
"0.7065994",
"0.7065679",
"0.70629543",
"0.7057199",
"0.7054129",
"0.70513237",
"0.7037049",
"0.7036293",
"0.70283544",
"0.7019966",
"0.70174986",
"0.70130414",
"0.70130414",
"0.70072925",
"0.7002237",
"0.69906557",
"0.69892824",
"0.697633",
"0.69712764",
"0.69587976",
"0.69448763",
"0.69387853",
"0.6920007",
"0.6918646",
"0.6918128",
"0.6915104",
"0.69096804"
]
| 0.0 | -1 |
/ Function to pop an item from stack | private static int pop(Stack<Integer> top_ref) {
/*If stack is empty then error */
if (top_ref.isEmpty()) {
System.out.println("Stack Underflow");
System.exit(0);
}
//pop the data from the stack
return top_ref.pop();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void pop();",
"public Object pop();",
"Object pop();",
"public TYPE pop();",
"public Object pop( )\n {\n Object item = null;\n\n try\n {\n if ( this.top == null)\n {\n throw new Exception( );\n }\n\n item = this.top.data;\n this.top = this.top.next;\n \n this.count--;\n }\n catch (Exception e)\n {\n System.out.println( \" Exception: attempt to pop an empty stack\" );\n }\n\n return item;\n }",
"public abstract Object pop();",
"public AnyType pop() throws StackException;",
"public Object pop() {\n\t\tif(this.isEmpty())\n throw new IllegalStateException(\"Stack is empty\");\n return items.remove(items.size() - 1);\n\t}",
"@SubL(source = \"cycl/stacks.lisp\", position = 3109) \n public static final SubLObject stack_pop(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n if ((NIL == stack_empty_p(stack))) {\n {\n SubLObject elements = stack_struc_elements(stack);\n SubLObject item = elements.first();\n SubLObject rest = elements.rest();\n _csetf_stack_struc_num(stack, Numbers.subtract(stack_struc_num(stack), ONE_INTEGER));\n _csetf_stack_struc_elements(stack, rest);\n return item;\n }\n }\n return NIL;\n }",
"public Item pop() throws EmptyStackException{\n return (Item) stack.pop();\n\n }",
"public T pop();",
"public T pop();",
"public T pop();",
"public T pop();",
"public T pop();",
"public T pop();",
"public T pop();",
"public T pop();",
"@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = null;\r\n\t\ttopIndex--;\r\n\t\treturn top;\r\n\t}",
"abstract void pop();",
"public Object pop() {\n return stack.pop();\n }",
"public T pop() {\n \tT retVal = stack.get(stack.size() - 1); // get the value at the top of the stack\n \tstack.remove(stack.size() - 1); // remove the value at the top of the stack\n \treturn retVal;\n }",
"T pop();",
"T pop();",
"T pop();",
"private final Object pop() {\r\n\t\treturn eval_stack.remove(eval_stack.size() - 1);\r\n\t}",
"E pop() throws EmptyStackException;",
"public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}",
"public Item pop(){\n\t\tif(isEmpty()){\r\n\t\t\tSystem.out.println(\"Stack is empty\");\r\n\t\t}\r\n\t\t\r\n\t\tItem item=first.item;\r\n\t\tfirst=first.next;\r\n\t\tN--;\r\n\t\treturn item;\r\n\t\r\n\r\n\t}",
"public Object pop() {\n return fStack.pop();\n }",
"public Item pop(Item item){\n\nif(isEmpty()) throw new NoSuchElementException(\"Stack undervflow\"); \n Item item =top.item;\n top = top.next;\n N--;\n return item;\n}",
"public int pop();",
"private void pop() {\r\n pop( false );\r\n }",
"private synchronized BackStep pop() {\r\n\t\t\tBackStep bs;\r\n\t\t\tbs = stack[top];\r\n\t\t\tif (size == 1) {\r\n\t\t\t\ttop = -1;\r\n\t\t\t} else {\r\n\t\t\t\ttop = (top + capacity - 1) % capacity;\r\n\t\t\t}\r\n\t\t\tsize--;\r\n\t\t\treturn bs;\r\n\t\t}",
"public Object pop() {\n if (top != null) {\n Object item = top.getOperand();\n\n top = top.next;\n return item;\n }\n\n System.out.println(\"Stack is empty\");\n return null;\n\n }",
"public T pop() {\n\t\tT value = peek();\n\t\tstack.remove(value);\n\t\treturn value;\n\t}",
"@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}",
"public void pop() throws StackUnderflowException;",
"public E pop () {\n\t\treturn stack.remove( stack.size()-1 );\t\t\n\t}",
"public final Object pop()\n {\n synchronized (this.stack)\n {\n return this.stack[--this.pointer];\n }\n }",
"public E pop(){\n return this.stack.remove(stack.size()-1);\n }",
"public E pop();",
"public E pop();",
"public E pop();",
"public E pop();",
"public E pop();",
"int pop();",
"int pop();",
"int pop();",
"int pop();",
"int pop();",
"public GenericStack popStack(){\n if(isEmpty() == true)return null;\n GenericStack temp = top;\n // makes next item in list the tip\n top = top.next;\n return temp;\n }",
"public Object pop() {\n if (top >= 0) {\n Object currentObject = stack[top--];\n if (top > minStackSize) {\n decreaseStackSize(1);\n }\n return currentObject;\n }\n else {\n return null;\n }\n }",
"public T pop() {\r\n if ( top == null )\r\n throw new IllegalStateException(\"Can't pop from an empty stack.\");\r\n T topItem = top.item; // The item that is being popped.\r\n top = top.next; // The previous second item is now on top.\r\n return topItem;\r\n }",
"@Override\n public T pop(){\n\n if (arrayAsList.isEmpty()){\n throw new IllegalStateException(\"Stack is empty. Nothing to pop!\");\n }\n\n T tempElement = arrayAsList.get(stackPointer - 1);\n arrayAsList.remove(--stackPointer);\n\n return tempElement;\n }",
"@Override\r\n\tpublic E pop() {\r\n\t\tif (isEmpty())\r\n\t\t\treturn null;\r\n\t\tE answer = stack[t];\r\n\t\tstack[t] = null; // dereference to help garbage collection\r\n\t\tt--;\r\n\t\treturn answer;\r\n\t}",
"public String pop();",
"@Test\n public void pop() {\n SimpleStack stack = new DefaultSimpleStack();\n Item item = new Item();\n Item item1 = new Item();\n stack.push(item);\n stack.push(item1);\n\n // When we pop the stack\n Item topItem = stack.pop();\n\n // Then…\n assertEquals(\"The stack constains 1 item\", 1, stack.getSize());\n assertSame(\"The first item is on top of the stack\", item, stack.peek());\n assertSame(item1, topItem);\n }",
"Object pop(){\r\n\t\tlastStack = getLastStack();\r\n\t\tif(lastStack!=null){\r\n\t\t\tint num = lastStack.pop();\r\n\t\t\treturn num;\r\n\t\t} else {stacks.remove(stacks.size()-1);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public void pop() {\n if (top==-1) {\n System.out.println(\"Stack is empty\");\n return;\n\n\n } else {\n System.out.println(\"item popde is:-\"+ stack[top]);\n top--;\n }\n }",
"E pop();",
"E pop();",
"E pop();",
"@Override\r\n\tpublic T pop() throws StackUnderflowException {\r\n\t\tif (!isEmpty()) {\r\n\t\t\tT e = stack.get(size()-1);\r\n\t\t\tstack.remove(size()-1);\r\n\t\t\treturn e;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tthrow new StackUnderflowException();\r\n\t\t}\r\n\t}",
"public synchronized Object pop()\n throws EmptyStackException\n {\n if (empty())\n {\n throw new EmptyStackException();\n }\n Object lastItem = dataList.get(0);\n dataList.remove(0);\n return lastItem;\n }",
"public ValueWrapper pop(String keyName) {\n\t\tif(isEmpty(keyName)) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\tvar value = multistack.get(keyName);\n\t\tif(value.next != null) {\n\t\t\tmultistack.put(keyName, value.next);\n\t\t}\n\t\telse {\n\t\t\tmultistack.remove(keyName);\n\t\t}\n\t\treturn value.value;\n\t}",
"public int pop() {\r\n LinkedList<Integer> queue = new LinkedList<>();\r\n int value = stack.poll();\r\n while(!stack.isEmpty()){\r\n queue.offer(value);\r\n value = stack.poll();\r\n }\r\n stack = queue;\r\n return value;\r\n }",
"public Object pop()\r\n {\n assert !this.isEmpty();\r\n\t\t\r\n Node oldTop = this.top;\r\n this.top = oldTop.getNext();\r\n oldTop.setNext(null); // enable garbage collection\r\n return oldTop.getItem();\r\n }",
"public T pop() {\n T top = peek();\n stack[topIndex] = null;\n topIndex--;\n return top;\n }",
"public T pop() { //pop = remove the last element added to the array, in a stack last in, first out (in a queue pop and push from different ends)\n try {\n T getOut = (T) myCustomStack[numElements - 1]; //variable for element to remove (pop off) = last element (if you have 7 elements, the index # is 6)\n myCustomStack[numElements] = null; //remove element by making it null\n numElements--; //remove last element, decrease the numElements\n return getOut; //return popped number\n\n } catch (Exception exc) {\n System.out.println(\"Can't pop from empty stack!\");\n return null;\n }\n }",
"public T pop() {\n\t\tif (this.l.getHead() != null) {\n\t\t\tT tmp = l.getHead().getData();\n\t\t\tl.setHead(l.getHead().getNext());\n\t\t\treturn tmp;\n\t\t} else {\n\t\t\tSystem.out.println(\"No element in stack\");\n\t\t\treturn null;\n\t\t}\n\t}",
"@Test\r\n\tpublic void testPop()\r\n\t{\n\t\tassertEquals(null,myStack.pop());\r\n\t\r\n\t\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\t\tassertEquals(27,myStack.top().getId());\r\n\t\tassertEquals(\"Chur\",myStack.pop().getName());\r\n\t\tassertEquals(4,myStack.pop().getId());\r\n\t\tassertEquals(2,myStack.pop().getId());\r\n\t\t\r\n\t\t// leerer Stack\r\n\t\tassertEquals(null,myStack.pop());\r\n\t\tassertEquals(null,myStack.top());\r\n\t}",
"public void pop() {\n s.pop();\n }",
"public void pop() {\n if(!empty()){\n \tstack.pop();\n }\n }",
"public Item pop() {\n if(isEmpty()) return null;\n Item item = top.data;\n top = top.next;\n size--;\n return item;\n\n }",
"public void pop() {\r\n \t Queue<Integer> temp=new LinkedList<Integer>();\r\n \t int counter=0;\r\n \t while(!stack.isEmpty()){\r\n \t temp.add((Integer) stack.poll());\r\n \t counter++;\r\n \t \r\n \t }\r\n \t while(counter>1)\r\n \t {\r\n \t \r\n \t stack.add(temp.poll());\r\n \t counter--;\r\n \t }\r\n }",
"public void pop() {\n\t\tif(stackTmp.isEmpty()){\n\t\t\twhile(!stack.isEmpty()){\n\t\t\t\tint tmp = stack.peek();\n\t\t\t\tstackTmp.push(tmp);\n\t\t\t\tstack.pop();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tstackTmp.pop();\n\t\t}\n\t}",
"public T pop(){ \r\n \t--this.size;\r\n \treturn stack1.pop();\r\n }",
"public T pop() throws EmptyStackException\r\n {\r\n if (isEmpty())\r\n throw new EmptyStackException();\r\n\r\n top--;\r\n T result = stack[top];\r\n stack[top] = null; \r\n\r\n return result;\r\n }",
"public Object pop() {\n if (isEmpty())\n throw new EmptyStackException();\n\n Object value = peek();\n collection.remove(collection.size() - 1);\n return value;\n }",
"public Item pop() {\r\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\r\n Item item = first.item; // save item to return\r\n first = first.next; // delete first node\r\n N--;\r\n return item; // return the saved item\r\n }",
"@Override\n\tpublic E pop() {\n\t\tif(size == 0) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\tsize--;\n\t\treturn list.remove(0);\n\t}",
"public Item pop()\n {\n if (isEmpty()) throw new NoSuchElementException(\"Stack underflow\");\n Item item = top.item;\n top = top.next;\n N--;\n return item;\n }",
"public T pop() {\n\t\tif (head.data == null) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\tStackNode<T> item = new StackNode<>();\n\t\titem = head;\n\t\thead = head.next;\n\t\tthis.size--;\n\t\treturn item.data;\n\t}",
"@Override\n\tpublic T pop() throws StackUnderflowException {\n\t\t//If the Stack is empty, throw Exception\n\t\tif(this.isEmpty()) throw new StackUnderflowException(\"The stack is empty. The operation may not be completed\");\n\t\t\n\t\telse {\n\t\t\t//Retrieve the Object from the top Node of the Stack \n\t\t\tT returnData = topNode.data;\n\t\t\t\n\t\t\t//Remove the top Node and promote second Node\n\t\t\ttopNode = topNode.nextNode;\n\t\t\tnodeCount--;\n\t\t\t\n\t\t\t//Return retrieved data\n\t\t\treturn returnData;\n\t\t}\n\t}",
"@Override\n public E pop() {\n E result = peek();\n storage[ top-- ] = null;\n return result;\n\n }",
"public Object pop()\n\t{\n\t\tif (size == 0)\n\t\t\tthrow new EmptyStackException();\n\t\t\n\t\tObject result = elements[--size];\n\t\telements[size] = null;\n\t\treturn result;\n\t}",
"@Override\n public T pop() {\n if (!isEmpty()) {\n T data = backing[size - 1];\n backing[size - 1] = null;\n size--;\n return data;\n } else {\n throw new NoSuchElementException(\"The stack is empty\");\n }\n }",
"public E pop()\n\tthrows EmptyStackException;",
"public T pop() {\n if (this.top == null) {\n throw new EmptyStackException();\n }\n T data = this.top.data;\n this.top = this.top.below;\n return data;\n }",
"T pop() {\n if (stackSize == 0) {\n throw new EmptyStackException();\n }\n return stackArray[--stackSize];\n }",
"public T pop() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new EmptyStackException();\n\t\t}\n\t\t//remove top element from stack\n\t\t//and \"clear to let GC do its work\"\n\t\treturn elements.remove(elements.size() - 1);\n\t}",
"public T pop() {\n if(isEmpty()) {\n throw new NoSuchElementException(\"Stack is empty\");\n }\n return this.stackArray[top--];\n }",
"public void pop() {\n myCStack.delete();\n }",
"public E pop() {\n if(isEmpty()) throw new EmptyStackException();\n\n E itemPopped = this.stack[top-1];\n this.stack[top-1] = null;\n top--;\n return itemPopped;\n\n }",
"public E pop() throws NoSuchElementException{\n\t\treturn stackList.removeFromFront();\n\t}",
"public T pop() throws StackUnderflowException{\r\n\t\t\t\t\r\n\t\t// check if the stack is empty before popping up.\r\n\t\tif(stackData.isEmpty())\r\n\t\t\tthrow new StackUnderflowException();\r\n\r\n\t\treturn stackData.remove(stackData.size()-1); //popping;\r\n\t}",
"public Item pop() {\n if (isEmpty()) throw new ArrayIndexOutOfBoundsException(\"Stack underflow\");\n Item item = first.item;\n first = first.next;\n return item;\n }",
"public E pop() {\n\t\tE answer;\n\t\tif (this.top == null) {\n\t\t\tthrow new EmptyStackException( );\n\t\t}\n\t\tanswer = this.top.data;\n\t\tthis.top = this.top.link;\n\t\treturn answer;\t\n\t}",
"public void pop(){\n \n if(top==null) System.out.println(\"stack is empty\");\n else top=top.next;\n \t\n }",
"static void perform_pop(String passed){\n\t\tint type = type_of_pop(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tpop_from_stack(passed);\n\t\t\tbreak;\n\t\t}\n\t}"
]
| [
"0.8426126",
"0.8237759",
"0.81471866",
"0.80851793",
"0.8076504",
"0.79972893",
"0.79767436",
"0.7961367",
"0.7954411",
"0.79538333",
"0.7939478",
"0.7939478",
"0.7939478",
"0.7939478",
"0.7939478",
"0.7939478",
"0.7939478",
"0.7939478",
"0.7929458",
"0.7927687",
"0.790703",
"0.78973305",
"0.7894133",
"0.7894133",
"0.7894133",
"0.7869873",
"0.7816359",
"0.78087634",
"0.7802803",
"0.77643156",
"0.7758756",
"0.77488446",
"0.7743472",
"0.7729405",
"0.7728672",
"0.7712792",
"0.77114874",
"0.7709941",
"0.7707938",
"0.76949275",
"0.76773244",
"0.76492316",
"0.76492316",
"0.76492316",
"0.76492316",
"0.76492316",
"0.7633635",
"0.7633635",
"0.7633635",
"0.7633635",
"0.7633635",
"0.7628442",
"0.76101464",
"0.7601036",
"0.7598763",
"0.75945014",
"0.75879174",
"0.75552505",
"0.75470245",
"0.75455457",
"0.7537814",
"0.7537814",
"0.7537814",
"0.7521885",
"0.75154495",
"0.7510274",
"0.75095874",
"0.74946696",
"0.7482199",
"0.74739677",
"0.7445045",
"0.74325866",
"0.7424347",
"0.74222475",
"0.7421532",
"0.74211955",
"0.73946995",
"0.7389409",
"0.73888",
"0.7383897",
"0.73815775",
"0.7359623",
"0.73595786",
"0.7352186",
"0.7349826",
"0.7345241",
"0.7340344",
"0.73376274",
"0.73339146",
"0.73261166",
"0.73220724",
"0.7315993",
"0.73079747",
"0.73003614",
"0.72980833",
"0.7295354",
"0.7294376",
"0.7293984",
"0.7282364",
"0.7278319",
"0.7268035"
]
| 0.0 | -1 |
Function to enqueue an item to the queue | public static void pushQueue(MyQueue q, int x) {
push(q.stack1, x);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void enqueue(E item);",
"public void enqueue(Comparable item);",
"public void enqueue(Item item) \n {\n stack1.push(item);\n }",
"public void enqueue (T item) {\n leftStack.push(item);\n }",
"public void enqueue(Object value);",
"public void enqueue(E item) {\n addLast(item);\n }",
"public void enqueue(T element);",
"void enqueue(Object elem);",
"void enqueue(T item) {\n contents.addAtTail(item);\n }",
"void enqueue(T t);",
"public void enqueue (E element);",
"void enqueue(String object);",
"void enqueue(T x);",
"@Override\r\n\tpublic void enqueue(Item item) {\r\n\t\tif (item == null)\r\n\t\t\tthrow new NullPointerException(\"You cannot put a 'null' element inside the queue\");\r\n\t\tif (count == arr.length)\r\n\t\t\tresize(arr.length * 2);\r\n\t\tarr[count++] = item;\r\n\t}",
"@Override\n public void enqueue(T item) {\n if (item != null) {\n heap.add(item);\n } else {\n throw new IllegalArgumentException(\"Cant enqueue null\");\n }\n }",
"public abstract void Enqueue (Type item);",
"public void enqueue(X item) {\n QueueNode<X> new_last = new QueueNode<X>(item);\n if (last != null)\n last.next = new_last;\n last = new_last;\n if (first == null)\n first = last;\n }",
"public void enqueue(Item item)\r\n {\r\n if (item == null) throw new NullPointerException(\"Null item\");\r\n if (n == a.length) resize(2 * a.length); // double the size of array if necessary\r\n a[n++] = item;\r\n }",
"public void enqueue(T item) {\r\n\r\n\t\t++item_count;\r\n\t\tif(item_count==arr.length)\r\n\t\t\tdoubleArray();\r\n\t\tarr[++back%arr.length]=item;\r\n\t}",
"public void enqueue(Item item) {\n if (item == null) throw new IllegalArgumentException(\"Null argument\");\n\n if (n == a.length) resize(2*a.length);\n a[n++] = item;\n }",
"public void enqueue(Item item) {\n if (item == null) {\n throw new IllegalArgumentException(\"Empty item\");\n }\n\n if (queue.length == qSize) {\n resize(qSize * 2);\n }\n\n queue[qSize] = item;\n qSize++;\n }",
"public void enqueue (Item item){\n Node<Item> oldLast = last;\n last = new Node<Item>();\n last.item = item;\n last.next = null;\n if(isEmpty()) {first = last;}\n else oldLast.next = last;\n N++;\n }",
"public void enqueue(T item) {\n\t\tif(rear == capacity)\n\t\t\treSize();\n\t\tarr[rear] = item;\n\t\tSystem.out.println(\"Added: \" + item);\n\t\trear++;\n\t\tsize++;\n\t}",
"void enqueue(E e);",
"public void enqueue(T item) {\n\t\tNode<T> oldlast = last;\n\t\tlast = new Node<>();\n\t\tlast.item = item;\n\t\tlast.next = null;\n\t\tif (isEmpty()) first = last;\n\t\telse oldlast.next = last;\n\t\tN++;\n\t}",
"void enqueue(E el);",
"public void enqueue(Object value)\n {\n queue.insertLast(value);\n }",
"public void enqueue(Object o) {\n queue.enqueue(o);\n }",
"public void enqueue(Object item) {\n\t\t\n\t\tNode node = new Node(item, null);\n\t\t\n\t\t// If queue is empty, assign to head\n\t\t// Else, add to tail.next and re-assign tail to this node\n\t\tif (isEmpty()) {\n\t\t\thead = node;\n\t\t}\n\t\telse {\n\t\t\ttail.next = node;\n\t\t}\n\t\t\n\t\ttail = node;\n\t\t\n\t}",
"public void enqueue(Item item){\r\n\t\tNode<Item> newNode = new Node<Item>();\r\n\t\tnewNode.item = item;\r\n\t\tnewNode.next = null;\r\n\t\tif(last == null){\r\n\t\t\tfirst = newNode;\r\n\t\t}\r\n\t\telse\r\n\t\t\tlast.next = newNode;\r\n\t\tlast = newNode;\r\n\t}",
"public void enqueue(Item item) {\n\t\tif (item == null)\n\t\t\tthrow new java.lang.NullPointerException();\n\n\t\tif (size == queue.length) {\n\t\t\tItem[] newqueue = null;\n\t\t\tif (queue.length == 0) {\n\t\t\t\tnewqueue = (Item[]) new Object[1];\n\t\t\t} else {\n\t\t\t\tnewqueue = (Item[]) new Object[2 * queue.length];\n\t\t\t}\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tnewqueue[i] = queue[i];\n\t\t\t}\n\t\t\tqueue = newqueue;\n\t\t}\n\t\tqueue[size] = item;\n\t\tsize++;\n\t}",
"void enqueue(E newEntry);",
"public void enqueue(Item item){\n if (item == null){ throw new NullPointerException(\"Cannot add a null item\"); }\n\n // fill the nulls\n if(itemCount < array.length) {\n for(int i=0;i<array.length;i++) {\n if(array[i] == null) {\n array[i] = item;\n break;\n }\n }\n }\n // resize when too big\n if(itemCount == array.length){\n resize(2*itemCount);\n array[itemCount] = item;\n }\n itemCount++; // Item added!!\n }",
"public void enqueue(Cell item) {\n\t\tif (manyItems == data.length) { //if the queue is full increase capacity\n\t\t\tensureCapacity(manyItems * 2 + 1);\n\t\t}\n\n\t\t//if its the first item to be added intialize front and rear to 0\n\t\tif (manyItems == 0) {\n\t\t\tfront = 0;\n\t\t\trear = 0;\n\t\t} else { //otherwise use nextindex to find the index to add it in\n\t\t\trear = nextIndex(rear);\n\t\t}\n\n\t\t//store item in array\n\t\tdata[rear] = item;\n\t\tmanyItems++;\n\t}",
"private void enqueue(E x) {\n final Object[] items = this.items;\n items[putIndex] = x;\n if (++putIndex == items.length) putIndex = 0;\n count++;\n notEmpty.signal();\n }",
"public void enqueue(Item item) {\n if (item == null) throw new IllegalArgumentException(\"cannot enqueue null argument\");\n\n if (size == items.length) {\n resizeArray(items.length * 2);\n }\n items[size++] = item;\n }",
"public void enqueue(Item item) {\n if (item == null)\n throw new NullPointerException();\n\n // Check if whole array has been filled up, and act accordingly\n if (values.length == elements)\n resize((int) (elements * GROWTH_FACTOR));\n\n // Add element into values array\n values[elements++] = item;\n }",
"public void enqueue(Object item) {\n\t\tListNode n = new ListNode(item);\n\t\tif(this.l.start==null){\n\t\t\tthis.l.start = n;\n\t\t}\n\t\telse{\n\t\t\tn.next= this.l.start;\n\t\t\tthis.l.start = n;\n\t\t}\n\t}",
"public void enqueue(Item item) {\n if (item == null)\n throw new UnsupportedOperationException();\n \n// StdOut.println(\"count:\"+ count);\n// StdOut.println(\"N:\"+ N);\n// StdOut.println(\"randomizedQueue.length:\"+ randomizedQueue.length);\n if (count >= N) { \n resize(N*2); // double size of array if necessary\n N *= 2;\n } \n randomizedQueue[count++] = item; \n //assert\n }",
"public void enqueue(E item) {\n Node<E> oldlast = last;\n last = new Node<E>();\n last.item = item;\n last.next = null;\n if (isEmpty()) first = last;\n else oldlast.next = last;\n n++;\n }",
"public void push(final String queueName, final String item);",
"public void enqueue(E element) {\n\t\tadd(element);\n\t}",
"public void enqueue(T pushed)\n\t{insert(pushed);}",
"void enqueue( K x );",
"public void enqueue(Item item) {\n \t if (item == null) {\n \t \t throw new NullPointerException();\n \t } \n \t Node a = new Node(item);\n \t Node oldPrev = sentinel.prev.prev;\n \t oldPrev.next = a;\n \t a.next = sentinel.prev;\n \t sentinel.prev.prev = a;\n \t a.prev = oldPrev;\n \t size = size + 1;\n }",
"@Override\n public void enqueue(T value) {\n myQ[myLength] = value;\n myLength++;\n }",
"public void enqueue(E e) {\n\t\tlist.addLast(e);\n\t}",
"void enqueue(T d) throws RuntimeException;",
"public void enqueue(int item, int priority)\r\n\t{\r\n\t\tpq[priority].addToBeginning(item);\r\n\t\tif (priority < lowestCurrentPriority)\r\n\t\t{\r\n\t\t\tlowestCurrentPriority = priority;\r\n\t\t}\r\n\t\tcurrentSize++;\r\n\t}",
"@Override\n public void enqueue(Object element) {\n LinkedNode<T> node = new LinkedNode<T>((T) element);\n if (isEmpty()) {\n front = node;\n } else {\n rear.setNext(node);\n }\n rear = node;\n count++;\n\n }",
"public void enqueue(E e) {\n\t\tsynchronized(mutex){\n\t\t\ttry {\n\t\t\t\tqueue.add(e);\n\t\t\t} catch(NullPointerException ex) {\n\t\t\t\tthrow new NullPointerException(\"enqueued null element\");\n\t\t\t} catch (ClassCastException ex) {\n\t\t\t\tthrow new ClassCastException(\"enqueued element is incompetible type\");\n\t\t\t}\n\t\t\tsem.release();\n\t\t}\n\t}",
"void enqueue(BasePayload payload, EnqueueCallback callback);",
"public void enqueue(Message msg){\n\t\tqueue.add(msg);\n\t}",
"public void enqueue(Item item) throws NoSuchElementException {\r\n // Usar el metodo upHeap para corregir la condicion de\r\n // Min Heap\r\n\r\n\r\n if (size == 0){\r\n heap[1] = item;\r\n size = 1;\r\n return;\r\n }\r\n int cur = size + 1;\r\n int par = cur/2;\r\n\r\n heap[cur] = item;\r\n size++;\r\n\r\n if (heap[cur].compareTo(heap[par]) > 0){\r\n upHeap(cur);\r\n }\r\n\r\n\r\n }",
"public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }",
"@Override\n\tpublic void enqueue(E e) {\n\t\tint index = (pos + size) % queue.length;\n\t\tqueue[index] = e;\n\t\tsize++;\n\t}",
"public void enqueue(Object data){\r\n super.insert(data, 0);//inserts it to the first index everytime (for tostring)\r\n }",
"public void enqueue(E item) throws IllegalStateException {\n if (size == arrayQueue.length) {\n throw new IllegalStateException(\"Queue is full\");\n }\n int available = (front + size) % arrayQueue.length;\n arrayQueue[available] = item;\n size++;\n }",
"public void queue(Object newItem){\n if(isFull()){\n System.out.println(\"queue is full\");\n return;\n }\n ArrayQueue[++rear] = newItem;\n if(front == -1)\n front = 0;\n \n }",
"public static void enqueue(Object object) {\n queue.addLast(object);\n }",
"public void enqueue(Object newItem) {\n\t\tint i = 1;\n\t\tif (head == null) {\n\n\t\t\thead = new Node(newItem);\n\t\t\tnumItems++;\n\t\t}\n\n\t\telse {\n\t\t\tNode N = head;\n\t\t\twhile (N.next != null) {\n\t\t\t\tN = N.next;\n\t\t\t}\n\n\t\t\tN.next = new Node(newItem);\n\t\t\tback = N.next;\n\t\t\tnumItems++;\n\n\t\t}\n\t}",
"void enqueue(Node n) {\n if (queueSet.contains(n)) {\n return;\n }\n queueSet.add(n);\n queue.addFirst(n);\n }",
"public void enqueue(String value)\n\t{\n\t\tq.insertLast(value);\n\t}",
"public synchronized void enqueue(T thing) {\r\n\t\twhile (queue.size()==maxSize){\r\n\t\t\ttry{\r\n\t\t\t\tthis.wait();\r\n\t\t\t} catch(InterruptedException e){\r\n\t\t\t\tSystem.out.println(\"Interruption during enqueue\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tqueue.addLast(thing);\r\n\t\tthis.notifyAll();\r\n\t}",
"@Override\r\n\tpublic void enqueue(T element)\r\n\t{\r\n\t\tLinkedNode<T> n = new LinkedNode<>(element);\r\n\r\n\t\t// if the only element in the queue, it becomes the first element\r\n\t\tif (head == null)\r\n\t\t{\r\n\t\t\thead = n;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// otherwise, the tail's next receives the new node\r\n\t\t\t// because later, tail will be the new node\r\n\t\t\ttail.next = n;\r\n\t\t}\r\n\r\n\t\t// always add at the end of the list\r\n\t\ttail = n;\r\n\t\tcount++;\r\n\t}",
"public synchronized void enqueue(Object o) {\r\n insertAtBack(o);\r\n }",
"public void enqueue(E e) {\n\t\t\tsynchronized (this.pq) {\n\t\t\t\tthis.pq.add(e);\n//\t\t\t\tSystem.out.println(\"insert \" + e);\n\t\t\t}\n\t\t\tthis.sem.release();\n\t}",
"public void enqueue(Item item) {\n\t\t\n\t\tif(item == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\t\t\n\t\tif(N == items.length) resize(2 * N);\n\t\titems[N++] = item;\n\n\t\t// logic to shuffle randomly\n\t\tint random = StdRandom.uniform(N);\n\t\tItem randomItem = items[random];\n\t\titems[random] = items[N-1];\n\t\titems[N-1] = randomItem;\n\t\t\n\t\t/*int index = StdRandom.uniform(length());\n\t\twhile(itemArray[index] != null) {\n\t\t\tindex = StdRandom.uniform(length());\n\t\t}\n\t\titems[index] = item;\n\t\tN++;\n\t\t*/\n\t}",
"public void enqueue(Item item) {\n if (item == null) throw new NullPointerException();\n\n if (size == array.length) {\n Item[] temp = (Item[]) new Object[array.length * 2];\n System.arraycopy( array, 0, temp, 0, array.length);\n array = temp;\n temp = null;\n }\n array[size] = item;\n size++;\n if(size>1) { \n int x=StdRandom.uniform(size);\n Item temp=array[x];\n array[x]=array[size-1];\n array[size-1]=temp;\n }\n\n }",
"public synchronized void enqueue(Object msg) {\n\t\tqueue.add(msg);\n\n\t\t// if any threads wait on empty queue then wake them up\n\t\tnotifyAll();\n\t}",
"public void enqueue(int item) {\n \t// System.out.println(\"in enqueue\");\n \tif (tail == null || head == null) {\n \t\t// System.out.println(\"if\");\n \t\tNode n = new Node();\n \t\tn.value = item;\n \t\tn.next = null;\n \t\thead = n;\n \t\ttail = n;\n \t\tsize++;\n \t} else {\n \t\t// System.out.println(\"else\");\n \t\tNode oldtail = tail;\n \t\tNode n = new Node();\n \t\tn.value = item;\n \t\tn.next = null;\n \t\toldtail.next = n;\n \t\ttail = n;\n \t\tsize++;\n \t}\n }",
"public void enqueue( MyTreeNode<T> treeNode ) {\n\t\tQueueNode newNode = new QueueNode(treeNode);\n\t\t// the queue is empty\n\t\tif ( tail == null ) {\n\t\t\t// the tail and the head point to the same only element in the collection\n\t\t\tthis.tail = newNode;\n\t\t\tthis.head = newNode;\n\t\t// the queue is not empty\n\t\t} else {\n\t\t\t// the second from the end item of the collection keeps track with the tail\n\t\t\tthis.tail.next = newNode;\n\t\t\t// the new element becomes the tail of the collection\n\t\t\tthis.tail = newNode;\n\t\t}\n\t}",
"public void enqueue(int item) {\n Node temp = new Node(item);\n if (first == null) { // 特别注意这个判断条件如果是 'last == null' 就要把36行取消注释。\n first = temp;\n last = temp;\n } else {\n last.next = temp;\n last = temp;\n }\n }",
"public void enqueue(Integer elem) {\n\t\t // add to end of array\n\t\t // increase size\n\t\t // create a recursive helper, percolateUp,\n\t\t // that allows you puts the inserted val \n\t\t // in the right place\n\t\t if(size == capacity) {\n\t\t\t ensureCapacity(size);\n\t\t }\n\t\t data[size] = elem;\n\t\t size++;\n\t\t percolateUp(size-1); \n\t }",
"public void enqueue(Item i) {\n\t\tif(isEmpty()) {\n\t\t\tfirst = last = new Node(i);\n\t\t}\n\t\telse {\n\t\t\tNode temp = last;\n\t\t\tlast = new Node(i);\n\t\t\tlast.next = null;\n\t\t\ttemp.next = last;\n\t\t}\n\t}",
"public void enqueue(String message) {\n\t\tqueue.add (message);\n\t}",
"public void enqueue(T x) {\n //Enqueue the item. Don't forget to increase fillCount and update last.\n if (isFull()) {\n throw new RuntimeException(\"Ring Buffer Overflow\");\n }\n rb[last] = x;\n fillCount += 1;\n last = (last + 1) % capacity;\n }",
"@Override\n public void enqueue(T item) {\n if(inner_list == null){\n inner_list = new List<T>(item);\n }\n\n // otherwise \n else {\n inner_list.append(item);\n }\n\n }",
"@Override\r\n\tpublic void enqueue(Object element){\r\n\t\tif(head == null) {\r\n\t\t\thead = new Node(element);\r\n\t\t\ttail = head;\r\n\t\t}else {\r\n\t\t\ttail.next = new Node(element);\r\n\t\t\ttail = tail.next;\r\n\t\t}\r\n\t\tsize++;\r\n\t}",
"@Override\n\tpublic void addToQueue() {\n\t}",
"public void enqueue(Person person) {\r\n saf.add(person);\r\n }",
"public boolean enqueue(QueueUrl q){\n\t\treturn this.queues.get(getPriority(q)).enqueue(q);\n\t}",
"public void enqueue(String data)\n\t{\n\t\tif (!isFull())\n\t\t{\n\t\t\tcounter++;\n\t\t\trear = next(rear);\n\t\t\tlist[rear] = data;\n\t\t}\n\t}",
"void enqueue(T data) \n { \n \n // Create a new LL node \n LinkedListQueue temp = new LinkedListQueue(data); \n \n // If queue is empty, then new node is front and rear both \n if (this.rear == null) { \n this.front = this.rear = temp; \n return; \n } \n \n // Add the new node at the end of queue and change rear \n this.rear.next = temp; \n this.rear = temp; \n }",
"void enqueue(int idNumber, int arrival_time) \r\n\t { \r\n\t \r\n\t // Create a new LL node \r\n\t QNode temp = new QNode(idNumber, arrival_time); \r\n\t \r\n\t // If queue is empty, then new node is front and rear both \r\n\t if (this.rear == null) \r\n\t { \r\n\t this.front = this.rear = temp; \r\n\t size++;\r\n\t maxSize++;\r\n\t return; \r\n\t } \r\n\t \r\n\t // Add the new node at the end of queue and change rear \r\n\t else {\r\n\t \tthis.rear.next = temp;\r\n\t \tthis.rear = temp; \r\n\t \tsize++;\r\n\t \tmaxSize++;\r\n\t }\r\n\t \r\n\t }",
"void enqueue(int value)\r\n\t{\r\n\t\t\r\n\t\ts1.push(value);\r\n\t\tsize++;\r\n\t}",
"abstract protected void queueEntity(Entity entity);",
"public void add( int item ) \n {\n\t//queue is empty\n\tif ( queue.isEmpty() ) {\n\t queue.add( item );\n\t return;\n\t}\n\t\n\t//queue is not empty\n\telse {\n\t //find spot of insetion\n\t for ( int i = 0; i < queue.size(); i++ ) {\t\t\t \n\t\tif ( (int) queue.get(i) < item ) {\n\t\t queue.add( i, item );\n\t\t return;\n\t\t}\t\t\n\t }\n\t}\n }",
"public void push(T item);",
"public boolean enqueue(Object c)\r\n\t{\r\n\t\tif (isFull())\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t{\r\n\t\t\ts1.push(c);\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"void push(Recycler.DefaultHandle<?> item)\r\n/* 519: */ {\r\n/* 520:554 */ Thread currentThread = Thread.currentThread();\r\n/* 521:555 */ if (this.threadRef.get() == currentThread) {\r\n/* 522:557 */ pushNow(item);\r\n/* 523: */ } else {\r\n/* 524:562 */ pushLater(item, currentThread);\r\n/* 525: */ }\r\n/* 526: */ }",
"public void push(E item) {\n if (!isFull()) {\n this.stack[top] = item;\n top++;\n } else {\n Class<?> classType = this.queue.getClass().getComponentType();\n E[] newArray = (E[]) Array.newInstance(classType, this.stack.length*2);\n System.arraycopy(stack, 0, newArray, 0, this.stack.length);\n this.stack = newArray;\n\n this.stack[top] = item;\n top++;\n }\n }",
"public void enqueue(T object) {\n Node<T> node = new Node<>(object);\n\n if (first == null) {\n last = node;\n first = last;\n }\n else {\n last.next = node;\n last = node;\n }\n\n size++;\n }",
"@Override\n\tpublic void enqueue(E e) {\n\t\tif(size==data.length-1){\n\t\t\tresize();\n\t\t}\n\t\tif(rear==data.length-1){\n\t\t\tdata[rear]=e;\n\t\t\tsize++;\n\t\t\trear=(rear+1)%data.length;\n\t\t}else{\n\t\t\tsize++;\n\t\t\tdata[rear++]=e;\n\t\t}\n\t\t\n\t\t\n\t}",
"public boolean enqueue(int item) {\n ListNode node = new ListNode(item);\n if (front == null) {\n front = node;\n rear = node;\n } else {\n rear.next = node;\n rear = node;\n }\n\n count += 1;\n return true;\n }",
"public void enqueue(E e) {\n if (e == null){\n throw new NullPointerException();\n }\n\n int x = size;\n size++;\n\n if (x+1 >= queue.length-1){\n this.queue = resize((E[])queue, queue.length*2);\n }\n //size = size + 1;\n if (x == 0){\n queue[0] = e;\n }else{\n\n if (size == queue.length){\n resize((E[])queue, queue.length*2);\n }\n queue[findNull()] = e;\n shift();\n\n }\n }",
"public void addItem(QueueItem item) {\n qItems.add(item);\n\n //long previousItemSize=item.getSize();\n long previousItemSize = ((QueueItem) qItems.lastElement()).getSize();\n long rate = calculateDelay(item.getSize());\n QueueWorkerThread worker = new QueueWorkerThread(getContext(), item);\n\n synchronized (fileGroupToItemMap) {\n fileGroupToItemMap.put(item.getName(), worker);\n }\n\n if (qItems.size() == 1) {\n Debug.log(\n this,\n \"CollabQueue, item: \" + item.getName() + //NoI18n\t\n \" scheduling with nodelay and with rate: \" + rate\n ); //NoI18n\t\t\t\t\n worker.scheduleAtFixedRate(0, rate);\n } else {\n long delay = calculateDelay(previousItemSize);\n Debug.log(\n this,\n \"CollabQueue, item: \" + item.getName() + //NoI18n\n \" scheduling for: \" + delay + \" with rate: \" + rate\n ); //NoI18n\t\t\t\n worker.scheduleAtFixedRate(delay, rate);\n }\n }",
"void push(T item);",
"void push(T item);",
"@Override\n\tpublic void enqueue(ActorRef arg0, Envelope arg1) {\n\t\t\n\t}",
"void push(Object item);"
]
| [
"0.8446606",
"0.8075404",
"0.8005448",
"0.79769737",
"0.7925783",
"0.78882277",
"0.78811455",
"0.78209966",
"0.7758588",
"0.7753165",
"0.7747746",
"0.7736808",
"0.7675023",
"0.76496506",
"0.76248866",
"0.7615267",
"0.758769",
"0.7586833",
"0.7565528",
"0.75515074",
"0.754124",
"0.7491",
"0.7487778",
"0.74420154",
"0.7418909",
"0.7412843",
"0.74006826",
"0.73830646",
"0.73799944",
"0.737945",
"0.7372282",
"0.73704886",
"0.7331357",
"0.7327528",
"0.73094606",
"0.7305958",
"0.7294135",
"0.7280202",
"0.7246324",
"0.7221259",
"0.7196874",
"0.7180101",
"0.71646184",
"0.71633995",
"0.71626675",
"0.7136663",
"0.7059144",
"0.7056688",
"0.7045346",
"0.70279217",
"0.6998113",
"0.6957888",
"0.69550496",
"0.69546247",
"0.6950376",
"0.69424176",
"0.6931653",
"0.6928507",
"0.69262296",
"0.6912156",
"0.6906431",
"0.6899663",
"0.6895263",
"0.6874564",
"0.68722594",
"0.68626124",
"0.6840696",
"0.67993355",
"0.6794865",
"0.67873603",
"0.67831784",
"0.678113",
"0.6776844",
"0.6768583",
"0.67641073",
"0.67313176",
"0.6706044",
"0.6681805",
"0.66509354",
"0.66471463",
"0.6643947",
"0.6616645",
"0.66149485",
"0.66098624",
"0.6606126",
"0.6605693",
"0.657351",
"0.65707594",
"0.65547127",
"0.65397304",
"0.6522687",
"0.6522195",
"0.65124667",
"0.64847887",
"0.6482654",
"0.6477242",
"0.64416796",
"0.64353824",
"0.64353824",
"0.6425288",
"0.6423623"
]
| 0.0 | -1 |
Function to dequeue an item from queue | public static int pull(MyQueue q) {
int x;
if (q.stack1.isEmpty() && q.stack2.isEmpty()) {
System.out.println("Q is empty");
System.exit(0);
}
/* Move elements from stack1 to stack 2 only if
stack2 is empty */
if (q.stack2.isEmpty()) {
while (!q.stack1.isEmpty()) {
x = pop(q.stack1);
push(q.stack2, x);
}
}
x = pop(q.stack2);
return x;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Object dequeue();",
"Object dequeue();",
"T dequeue();",
"T dequeue();",
"public T dequeue();",
"public E dequeue();",
"E dequeue();",
"E dequeue();",
"E dequeue();",
"public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}",
"public Object dequeue()\n {\n return queue.removeFirst();\n }",
"T dequeue() throws RuntimeException;",
"T dequeue() throws RuntimeException;",
"private E dequeue() {\n final Object[] items = this.items;\n @SuppressWarnings(\"unchecked\")\n E x = (E) items[takeIndex];\n items[takeIndex] = null;\n if (++takeIndex == items.length) takeIndex = 0;\n count--;\n notFull.signal();\n return x;\n }",
"@Override\n\tpublic E dequeue() {\n\t\tif(isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tE data = queue[pos];\n\t\tqueue[pos] = null;\n\t\tpos = (pos+1) % queue.length;\n\t\tsize--;\n\t\treturn data;\n\t}",
"public void dequeue() {\n\t\tObject ret_val = todequeue();\n\t\tif(ret_val == null)\n\t\t\tSystem.out.println(\"The queue is empty\");\n\t\telse\n\t\t\tSystem.out.println(\"Removed: \" + ret_val);\n\t}",
"public Object dequeue() {\n return queue.dequeue();\n }",
"String dequeue();",
"public static Object dequeue() {\t \n if(queue.isEmpty()) {\n System.out.println(\"The queue is already empty. No element can be removed from the queue.\"); \n return -1;\n }\n return queue.removeFirst();\n }",
"public synchronized T dequeue() {\r\n\t\twhile(queue.size()==0){\r\n\t\t\ttry {\r\n\t\t\t\tthis.wait();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tSystem.out.println(\"Problem during dequeue\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tT ans = queue.removeFirst();\r\n\t\tthis.notifyAll();\r\n\t\treturn ans;\r\n\r\n\t}",
"public E dequeue() {\n if (isEmpty()) return null; //nothing to remove.\n E item = first.item;\n first = first.next; //will become null if the queue had only one item.\n n--;\n if (isEmpty()) last = null; // special case as the queue is now empty. \n return item;\n }",
"public Item dequeue() {\n if (isEmpty()) throw new NoSuchElementException(\"\");\n int i = randomNotEmptyIndex();\n Item item = queue[i];\n queue[i] = null;\n size--;\n if (size <= capacity / 4) {\n resize(capacity / 2);\n }\n return item;\n }",
"public void dequeue() {\r\n saf.remove(0);\r\n }",
"public E dequeue() {\n if (size == 0){\n return null;\n }\n\n\n E result = (E) queue[0];\n queue[0] = null;\n --size;\n\n if (size != 0){\n shift();\n }\n return result;\n }",
"public T dequeue() throws EmptyCollectionException;",
"public process dequeue() {\n\t\treturn queue.removeFirst();\n\t}",
"public int dequeue() {\n\t\tif (isEmpty()) throw new IllegalStateException(\"\\nQueue is empty!\\n\");\n\t\tint removedItem = bq[head];\n\t\tif (head == bq.length - 1) head = 0; // wraparound\n\t\telse head++;\n\t\tsize--;\n\t\treturn removedItem;\t\n\t}",
"public T dequeue() {\n if (isEmpty()) {\n throw new RuntimeException(\"Ring buffer underflow\");\n }\n T itemToReturn = rb[first];\n rb[first] = null;\n fillCount -= 1;\n if (isEmpty()) {\n first = 0;\n last = 0;\n return itemToReturn;\n }\n first = (first + 1) % capacity;\n return itemToReturn;\n\n // Dequeue the first item. Don't forget to decrease fillCount and update\n }",
"public Object dequeue() {\n\t\tObject itemToDeq = null;\n\t\tif(this.l.start==null){\n\t\t\tnew QueueUnderflowException(\"No elements in the queue\");\n\t\t}\n\t\telse{\n\t\t\tListNode p = this.l.start;\n\t\t\tif(p.next==null){\n\t\t\t\titemToDeq = p.item;\n\t\t\t\tthis.l.start = null;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(p.next.next!=null){\n\t\t\t\t\tp = p.next;\n\t\t\t\t}\n\t\t\t\titemToDeq = p.next.item;\n\t\t\t\tp.next=null;\n\t\t\t}\n\t\t\treturn itemToDeq;\n\t\t}\n\t\treturn null;\n\t}",
"public E dequeue() {\n return pop();\n }",
"public Item dequeue() \n {\n if (isEmpty()) \n \tthrow new NoSuchElementException(\"Queue underflow\");\n \n if (stack2.isEmpty()) \n \tmoveStack1ToStack2();\n \n return stack2.pop();\n }",
"Node dequeue() {\n Node n = queue.removeFirst();\n queueSet.remove(n);\n return n;\n }",
"public Object dequeue()\r\n\t{\r\n\t\tObject result = null;\r\n\t\tif (isEmpty())\r\n\t\t\tSystem.out.println(\"Queue is empty\");\r\n\t\telse\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < count - 1; i++)\t\t//if there are other elements in s1\r\n\t\t\t\ts2.push(s1.pop());\t\t\t\t\t//push those elements into s2\r\n\t\t\tresult = s1.pop();\r\n\t\t\tfor (int i = 0; i < count - 1; i++)\t\t//if there are elements in s2\r\n\t\t\t\ts1.push(s2.pop());\t\t\t\t\t//push them back into s1\r\n\t\t\tcount--;\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public Item dequeue()\n {\n checkNotEmpty();\n\n if (items.length / 4 > size)\n {\n resize(items.length / 2);\n }\n\n int last = size - 1;\n swap(items, nextIndex(), last);\n Item toReturn = items[last];\n items[last] = null;\n size--;\n\n return toReturn;\n }",
"void dequeue() \n { \n // If queue is empty, return NULL. \n if (this.front == null) \n return; \n \n // Store previous front and move front one node ahead \n LinkedListQueue temp = this.front; \n this.front = this.front.next; \n \n // If front becomes NULL, then change rear also as NULL \n if (this.front == null) \n this.rear = null; \n }",
"public Item dequeue() {\n if (qSize == 0) {\n throw new java.util.NoSuchElementException(\"Empty queue\");\n }\n\n int index = StdRandom.uniform(qSize);\n Item item = queue[index];\n\n if (index == qSize - 1) {\n queue[index] = null;\n } else {\n queue[index] = queue[qSize - 1];\n queue[qSize - 1] = null;\n }\n\n qSize--;\n if (qSize > 0 && qSize == queue.length / 4) {\n resize(queue.length / 2);\n }\n\n return item;\n }",
"T dequeue() {\n return contents.removeFromTail();\n }",
"public abstract Type Dequeue();",
"public E dequeue() {\n\t\treturn list.removeFirst();\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic T dequeue() {\r\n\t\tT data;\r\n\t\t\r\n\t\t// checking if queue is empty or not\r\n\t\tif (isEmtpy()) {\r\n\t\t\tthrow new AssertionError(\"Queue is empty\");\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\t// remove element\r\n\t\t\tdata = (T)(Integer)this.array[this.front];\r\n\t\t\t\r\n\t\t\t// adjust both front and rear of queue\r\n\t\t\tif (this.front == this.rear) {\r\n\t\t\t\tthis.front = this.rear = -1;\r\n\t\t\t} else {\r\n\t\t\t\tthis.front = (this.front + 1) % this.size;\r\n\t\t\t}\r\n\t\t\treturn (T)data;\r\n\t\t}\r\n\t}",
"public T dequeue()\n\t{\n\t\tT end = callHead().next.data;\n\t\tdelete(end,callHead());\n\t\treturn end;\n\t}",
"public Item dequeue() throws NoSuchElementException {\r\n // Usar el metodo downHeap para corregir la condicion\r\n // de Min Heap\r\n\r\n\r\n Item ret = heap[1];\r\n\r\n heap[1] = heap[size];\r\n downHeap(1);\r\n\r\n heap[size] = null;\r\n size--;\r\n\r\n return ret;\r\n }",
"public Item dequeue() {\n if (size == 0) throw new NoSuchElementException();\n if (size > 0 && size == queue.length / 4) resizeArray(queue.length / 2);\n int randomInt = StdRandom.uniform(size);\n Item item = queue[randomInt];\n queue[randomInt] = queue[--size];\n queue[size] = null;\n return item;\n }",
"public Item dequeue() {\n if (isEmpty()) throw new NoSuchElementException(\"deque underflow\");\n Item item;\n int randomIndex = StdRandom.uniform(N);\n while(randomizedQueue[randomIndex] == null){\n randomIndex = StdRandom.uniform(N);\n }\n item = randomizedQueue[randomIndex];\n randomizedQueue[randomIndex] = null;\n// StdOut.println(\"dequeue randomIndex:\"+ randomIndex);\n// StdOut.println(\"dequeue randomizedQueue[\"+randomIndex+\"]:\"+ randomizedQueue[randomIndex]);\n count--; \n if (count < N/2){ \n resize(N/2); // half size of array if necessary \n N /= 2;\n }\n// assert\n \n return item;\n }",
"public Object dequeue(){\r\n return super.remove(size()-1);\r\n }",
"public Object dequeue() {\n\t\tif(isEmpty()) throw new RuntimeException(); \n\t\tObject value = data[0];\n\t\tfor(int i = 0; i < data.length-1; i++) {\n\t\t\tdata[i] = data[i+1];\n\t\t}\n\t\tdata[size()] = null;\n\t\tindx--;\n\t\treturn value;\n\t}",
"@Override\n public T dequeue() {\n if(fillCount==0){\n throw new RuntimeException(\"Ring buffer underflow\");\n }\n T return_val = rb[first];\n rb[first] = null;\n first = adjust_F_ring_position(first);\n fillCount = fillCount-1;\n return return_val;\n }",
"@Override\r\n\tpublic T dequeue()\r\n\t{\r\n\t\tif (isEmpty()) { throw new EmptyQueueException(); }\r\n\r\n\t\tLinkedNode<T> target = head;\r\n\t\tT item = target.element;\r\n\r\n\t\thead = target.next;\r\n\r\n\t\ttarget.element = null;\r\n\t\ttarget.next = null;\r\n\r\n\t\tif (head == null)\r\n\t\t{\r\n\t\t\ttail = null;\r\n\t\t}\r\n\r\n\t\tcount--;\r\n\t\treturn item;\r\n\t}",
"public Item dequeue(){\n if(itemCount == 0){ throw new NoSuchElementException(\"Queue is empty\"); }\n\n int rand = StdRandom.uniform(itemCount);\n while(array[rand] == null){ // if it's a null value (only happens after dequeing)\n rand = StdRandom.uniform(array.length); // pick another one\n }\n Item item = array[rand]; // get the item\n array[rand] = null; // D E S T R O Y\n itemCount--; // decrement the item count\n return item; // return the item\n }",
"@Override\n public Object dequeue() throws EmptyCollectionException {\n if (isEmpty()) {\n throw new EmptyCollectionException(\"queue\");\n }\n\n T result = front.getN();\n front = front.getNext();\n count--;\n if (isEmpty()) {\n rear = null;\n }\n\n return result;\n }",
"public int dequeueRear();",
"public Item dequeue() {\n\t\tif (size == 0)\n\t\t\tthrow new java.util.NoSuchElementException();\n\n\t\tif (size <= queue.length / 4 && queue.length > size) {\n\t\t\tItem[] newqueue = (Item[]) new Object[queue.length / 2];\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tnewqueue[i] = queue[i];\n\t\t\t}\n\t\t\tqueue = newqueue;\n\t\t}\n\t\tint index = StdRandom.uniform(size);\n\t\tItem item = queue[index];\n\t\tqueue[index] = queue[--size];\n\t\tqueue[size] = null;\n\n\t\treturn item;\n\t}",
"public String dequeue() {\n return null;\n }",
"@Override\r\n\tpublic T dequeue() throws QueueUnderflowException {\r\n\r\n\t\tif (this.isEmpty()) {\r\n\t\t\tthrow new QueueUnderflowException(\"The queue is empty\");\r\n\t\t}\r\n\t\t// Remove the first element\t\t\r\n\t\treturn data.remove(0);\r\n\t}",
"public Item dequeue() {\n if (size==0) throw new java.util.NoSuchElementException(\"Queue is empty!\");\n\n if (items.length == size*4) {\n resizeArray(items.length / 2);\n }\n\n int index = StdRandom.uniform(size);\n Item returnItem = items[index];\n items[index] = items[size-1];\n items[--size] = null;\n\n return returnItem;\n }",
"public E dequeue(){\n if (isEmpty()) return null;\n E answer = arrayQueue[front];\n arrayQueue[front] = null;\n front = (front +1) % arrayQueue.length;\n size--;\n return answer;\n }",
"public Item dequeue() {\n if (isEmpty()) throw new NoSuchElementException();\n int i = index();\n Item item = items[i];\n items[i] = items[--nItems];\n items[nItems] = null;\n if (nItems > 1 && nItems <= items.length / 4) resize(items.length / 2);\n return item;\n }",
"public T dequeue()\n\t{\n\t\tNode<T> eliminado = head;\n\t\thead = head.getNext();\n\t\tif(head == null)\n\t\t{\n\t\t\ttail = null;\n\t\t}\n\t\tsize--;\n\t\treturn eliminado.getElement();\n\t}",
"public T dequeue() {\n if (size == 0) {\n throw new NoSuchElementException(\"The queue is empty\"\n + \". Please add data before attempting to remove.\");\n } else if (front == backingArray.length - 1) {\n int temp = front;\n T data = backingArray[temp];\n backingArray[front] = null;\n front = 0;\n size--;\n return data;\n } else {\n int temp = front;\n T data = backingArray[temp];\n backingArray[front] = null;\n front = temp + 1;\n size--;\n return data;\n }\n }",
"@Override\n public E dequeue() {\n if(array.isEmpty()) {\n throw new NoSuchElementException(\"Cannot dequeue from an empty queue.\");\n }\n return array.removeFirst();\n }",
"public T dequeue(int x) throws EmptyCollectionException, \n InvalidArgumentException;",
"public E dequeue() throws InterruptedException {\n\t\tthis.sem.acquire();\n\n\t\tsynchronized (this.pq) {\n\t\t\tE res = this.pq.poll();\n//\t\t\tSystem.out.println(\"dequeue \" + res);\n\n\t\t\treturn res;\n\t\t}\t\t\n\t}",
"public T dequeue() {\n if (first != null) {\n size--;\n T data = first.data;\n first = first.next;\n\n if (first == null) {\n last = null; // avoid memory leak by removing reference\n }\n\n return data;\n }\n return null;\n }",
"public Item dequeue() {\n\t\tItem i = first.item;\n\t\tfirst = first.next;\n\t\treturn i;\n\t}",
"public Item dequeue() {\n if (isEmpty()) throw new NoSuchElementException(\"Empty queue\");\n\n int rdm = StdRandom.uniform(n);\n Item item = a[rdm];\n a[rdm] = a[n-1];\n a[n-1] = null;\n n--;\n\n if (n > 0 && n == a.length/4) resize(a.length/2);\n return item;\n }",
"public Item dequeue() {\n if (isEmpty()) {\n throw new java.util.NoSuchElementException();\n }\n int removeIndex = StdRandom.uniform(1, size + 1);\n Item item;\n //case 1: remove first item\n if (removeIndex == 1) {\n item = first.item;\n first = first.next;\n }\n //case 2 :remove last item\n else if (removeIndex == size) {\n item = last.item;\n Node temp = first;\n while (temp.next.next != null) {\n temp = temp.next;\n }\n last = temp;\n last.next = null;\n }\n //case 3: general case in between\n else {\n Node temp = first;\n while (removeIndex != 2) {\n temp = temp.next;\n removeIndex--;\n }\n item = temp.next.item;\n Node temp2 =temp.next.next;\n temp.next = temp2;\n }\n size--;\n return item;\n }",
"public int dequeueFront();",
"@Override\r\n\tpublic Item dequeue() {\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"You cannot delete anything from the empty queue\");\r\n\t\tint index = StdRandom.uniform(count);\r\n\t\tItem item = arr[index];\r\n\t\tarr[index] = null;\r\n\t\tarr[index] = arr[--count];\r\n\t\tarr[count] = null;\r\n\t\tif (count > 0 && count == arr.length / 4)\r\n\t\t\tresize(arr.length / 2);\r\n\t\treturn item;\r\n\t}",
"@Override\n\tpublic E dequeue() {\n\t\tE temp=null;\n\t\tif(front==data.length-1){\n\t\t\ttemp=data[front];\n\t\t\tsize--;\n\t\t\tfront=(front+1)%data.length;\n\t\t}else{\n\t\t\tsize--;\n\t\t\ttemp=data[front++];\n\t\t}\n\t\treturn temp;\n\t}",
"@Override\r\n\tpublic T dequeue() {\r\n\t\tT element;\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new AssertionError(\"Queue is empty.\");\r\n\t\telement = arr[front].getData();\r\n\t\tif (front == rear) {\r\n\t\t\tfront = rear = -1;\r\n\t\t} else {\r\n\t\t\tfront++;\r\n\t\t}\r\n\t\treturn element;\r\n\t}",
"public String dequeue() {\n\t\tif ( isEmpty() )\n\t\t\treturn null;\n\t\tString ret = data[head];\n\t\tnumElements--;\n\t\t//was this the last item?\n\t\tif ( isEmpty() )\n\t\t\tinit();\n\t\t//otherwise, move the head to the new position\n\t\telse\n\t\t\thead = (head+1)%data.length;\n\t\treturn ret;\n\t}",
"public Object dequeue() {\n\t\t\n\t\t// Check: Queue is empty\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException(\"Queue is empty. Cannot dequeue.\");\n\t\t}\n\t\t\n\t\t// Check: one element (tail = head)\n\t\t// If so, set tail to null\n\t\tif (tail == head) tail = null;\n\t\t\n\t\t// Save head's data to return\n\t\tObject first = head.data;\n\t\t\n\t\t// Remove head from queue and re-assign head to head.next\n\t\thead = head.next;\n\t\t\n\t\treturn first;\n\t}",
"public Item dequeue() {\n if (isEmpty())\n throw new NoSuchElementException(\"Queue underflow\");\n Item item = first.item;\n first = first.next;\n N--;\n if (isEmpty())\n last = null; // to avoid loitering\n return item;\n }",
"public String dequeue()\n\t{\n\t\tif (!isEmpty())\n\t\t{\n\t\t\tcounter--;\n\t\t\tString temp = list[front];\n\t\t\tfront = next(front);\n\t\t\treturn temp;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t}",
"public void dequeue()\n {\n System.out.println(\"Question #\"+ questionList.get(0).getQNum()\n + \" is removed from the queue.\");\n questionList.remove(0);\n count--;\n }",
"@Override\n public T dequeue() {\n if (!isEmpty()) {\n return heap.remove();\n } else {\n throw new NoSuchElementException(\"Priority Queue is null\");\n }\n }",
"@Override\n public Object dequeue() {\n Object objeto;\n if (!isEmpty()){ // Pré-condição\n objeto = memo[head];\n if (++head >= MAX){\n head = 0; // MAX-1 é a ultima posição do vetor\n }\n \n total--;\n if (total == 0){\n head = -1;\n tail = -1;\n }\n \n return objeto; // Retor o objeto que estava na head\n }\n else{\n return null; // Não se retira elemento de FILA vazia\n }\n }",
"@Override\n\tpublic E deQueue() {\n\t\treturn list.removeFirst();\n\t}",
"public Queue<T> deQueue();",
"QNode dequeue() \r\n\t { \r\n\t \t\r\n\t // If queue is empty, return NULL. \r\n\t if (this.front == null) {\r\n\t \tsize=0;\r\n\t \tthis.rear = null;\r\n\t return null; \r\n\t }\r\n\t \r\n\t // Store previous front and move front one node ahead \r\n\t else {\r\n\t\t QNode temp = this.front; \r\n\t\t this.front = this.front.next; \r\n\t\t \r\n\t\t if(temp!= null && this.front!= null) {\r\n\t\t \t//every time it dequeues figure out the wait time of each customers\r\n\t\t\t this.front.wait_time = getWaitTime(this.front.arrival_time, temp);\r\n\t\t\t longestBreaktime(this.front.wait_time, temp);\r\n\t\t\t System.out.println(this.front.wait_time);\r\n\t\t\t //decrease size by 1 whenever it deques\r\n\t\t\t size--;\r\n\t\t\t System.out.println(\"break \"+ breaktime);\r\n\t\t\t System.out.println(\"longest \" + longest);\r\n\t\t\t \r\n\t\t\t return temp;\r\n\t\t }\r\n\t\t else {\r\n\t\t \treturn temp;\r\n\t\t }\r\n\t\t \r\n\t }\r\n\t }",
"public void pop() {\n queue.remove();\n }",
"public E dequeue() throws InterruptedException {\n\t\tsem.acquire();\n\t\tsynchronized(mutex){\n\t\t\treturn queue.poll();\n\t\t\t\n\t\t}\n\t}",
"@Override\n public T dequeue() {\n if(inner_list == null){return null;}\n\n // else\n else{\n T ret = inner_list.getInfo();\n inner_list = inner_list.getNext();\n return ret;\n }\n }",
"public Item dequeue() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tint index = StdRandom.uniform(0,n);\r\n\t\t\tItem toBeRemoved = queue[index];\r\n\t\t\tqueue[index] = queue[n-1];\r\n\t\t\tqueue[n-1] = null;\r\n\t\t\tn--;\r\n\t\t\tif (n > 0 && n == queue.length/4) {\r\n\t\t\t\tItem[] temp = (Item[]) new Object[queue.length/2];\r\n\t\t\t\tfor (int i = 0; i < n; i++) {\r\n\t\t\t\t\ttemp[i] = queue[i];\r\n\t\t\t\t}\r\n\t\t\t\tqueue = temp;\r\n\t\t\t}\r\n\t\t\treturn toBeRemoved;\r\n\t\t}\r\n\t}",
"public Item dequeue() {\n\n if (size == 0) {\n throw new NoSuchElementException();\n }\n\n int r = random.nextInt(size);\n Item item = queue[r];\n size--;\n queue[r] = queue[size];\n queue[size] = null;\n\n if (size > 0 && size <= queue.length / 4) {\n resizeQueue(queue.length / 2);\n }\n return item;\n }",
"public synchronized Object dequeue() throws EmptyListException {\r\n return removeFromFront();\r\n }",
"public Person dequeue() throws EmptyQueueException{\n if (!isEmpty()){ throw new EmptyQueueException(\"This queue is empty.\");}\n Person first = holdingQueue.get(0);\n holdingQueue.remove(0);\n numPeople--;\n return first;\n }",
"@Override\n\tpublic E dequeue() {\n\t\tif (! isEmpty()) {\n\t\t\tNode temp = first;\n\t\t\tE e = temp.element;\n\t\t\tfirst = temp.next;\n\t\t\t\n\t\t\tif (temp == last)\n\t\t\t\tlast = null;\n\t\t\treturn e;\n\t\t}\n\t\treturn null;\n\t}",
"public Item dequeue() {\n\n\t\tif(isEmpty()) throw new NoSuchElementException();\n\n\t\tItem item = items[N-1];\n\t\titems[N-1] = null;\n\t\tN--;\n\t\t\n\t\tif(N > 0 && N == items.length/4) resize(items.length/2);\n\t\t\n\t\t/*int index = StdRandom.uniform(length());\n\t\twhile(items[index] == null) {\n\t\t\tindex = StdRandom.uniform(length());\n\t\t}\n\n\t\tItem item = items[index];\n\t\titems[index] = null;\n\t\tN--;\n\t\t*/\t\n\t\treturn item;\n\t}",
"public Message dequeue(){\n\t\tif(queue.isEmpty()){\n\t\t\tSystem.out.println(\"The queue is empty.\");\n\t\t\treturn null;\n\t\t}\n\t\treturn queue.poll();\n\t}",
"public T dequeue() throws IOException {\n T data = null;\n\n byte[] dequeueData = bigQueue.dequeue();\n if (dequeueData != null && dequeueData.length != 0) {\n data = mapper.readValue(dequeueData, classType);\n }\n return data;\n }",
"public Item dequeue() {\n if (this.isEmpty()) {\n throw new NoSuchElementException();\n }\n int random = StdRandom.uniform(this.currentIndex);\n Item saved = this.storage[random];\n this.storage[random] = null;\n this.size--;\n this.storage[random] = this.storage[currentIndex - 1];\n this.storage[currentIndex - 1] = null;\n this.currentIndex--;\n if (this.size <= (1.0 / 4.0) * this.storage.length) {\n int ceiling = (int) ((1.0 / 2.0) * this.storage.length);\n Item[] newArray = (Item[]) new Object[ceiling];\n for (int i = 0; i < this.size; i++) {\n newArray[i] = this.storage[i];\n }\n this.storage = newArray;\n\n }\n return saved;\n\n }",
"@Override\r\n\tpublic Object dequeue(){\r\n\t\tcheck();\r\n\t\tNode temp = head;\r\n\t\thead = head.next;\r\n\t\tsize--;\r\n\t\treturn temp.value;\r\n\t}",
"public E dequeue() {\n\t\tif(isEmpty()){\n\t\t\tSystem.out.println(\"Queue is already empty\");\n\t\t\treturn null;\n\t\t}else{\n\t\t\tif(head.next==tail){\n\t\t\t\ttail=head;\n\t\t\t}\n\t\t\tE e=head.next.e;\n\t\t\thead.next=head.next.next;\n\t\t\treturn e;\n\t\t}\n\t\t\n\t}",
"public Object remove(int index){\r\n return dequeue(); //calls the dequeue method\r\n }",
"public Item dequeue(){\n if(isEmpty()){\n throw new NoSuchElementException();\n }\n int ri = StdRandom.uniform(size);\n \n Node<Item> current = this.head;\n \n for(int i = 0; i < ri; i++){\n current = current.next;\n }\n \n Node<Item> removed = current;\n \n if(current.next != null){\n current.next.prev = current.prev;\n } else {\n this.tail = current.prev;\n }\n if(current.prev != null){\n current.prev.next = current.next;\n } else {\n this.head = current.next;\n }\n if(current.next == null && current.prev == null){\n this.head = null;\n this.tail = null;\n }\n size--;\n return removed.data;\n }",
"public E dequeue() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t}\r\n\t\t\r\n\t\tif (size() != 1) {\r\n\t\t\t//Node p = first; \r\n\t\t\tE item = first.item;\r\n\t\t\tremove(0);\r\n\t\t\t//first = p.next;\r\n\t\t\t//first.prev = null;\r\n\t\t\treturn item;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tE e = last.item;\r\n\t\t\tremove(last.item);\r\n\n\t\t\treturn e;\r\n\t\t}\n\t}",
"public E dequeue() {\n\t\tresetIterator();\n\t\tsize--;\n\t\tE temp = head.data;\n\t\thead = head.next;\n\t\treturn temp;\n\t}",
"public MyTreeNode<T> dequeue() {\n\t\tif ( this.head == null) {\n\t\t\tthrow new IllegalStateException(\"Can't perform a retrieve operation on an empty queue\");\n\t\t}\n\t\tMyTreeNode<T> treeNode = this.head.item;\n\t\t// The previous second item is now first item in the collection.\n\t\tthis.head = this.head.next;\n\t\t// no more elements left in the collection\n\t\tif ( this.head == null ) {\n\t\t\tthis.tail = null;\n\t\t}\n\t\treturn treeNode;\n\t}",
"public Object dequeue() throws QueueEmptyException {\n\n\t\tNode N = head;\n\n\t\tif (head == null) {\n\t\t\tthrow new QueueEmptyException(\n\t\t\t\t\t\"Usage: using dequeue() on empty queue\");\n\t\t}\n\n\t\tif (numItems > 1) {\n\n\t\t\thead = N.next;\n\t\t\tnumItems--;\n\t\t\treturn N.item;\n\n\t\t}\n\n\t\telse {\n\t\t\thead = null;\n\t\t\tnumItems--;\n\t\t\treturn N.item;\n\t\t}\n\n\t}",
"public Item dequeue() {\n \t\tif (size == 0) {\n \t\t\tthrow new NoSuchElementException();\n \t\t}\n \t\tint pos = StdRandom.uniform(size);\n \t\tItem item = (Item) items[pos];\n \t\titems[pos] = items[--size];\n \t\tif (size < items.length / 3 && items.length > MIN_COUNT) {\n \t\t\tint newCapacity = items.length >> 1;\n \t\t\tObject[] copy = new Object[newCapacity];\n \t\t\tSystem.arraycopy(items, 0, copy, 0, copy.length);\n \t\t\titems = copy;\n \t\t}\n \t\treturn item;\n \t}"
]
| [
"0.86746573",
"0.86746573",
"0.849106",
"0.849106",
"0.8463281",
"0.82314783",
"0.819808",
"0.819808",
"0.819808",
"0.8180667",
"0.7956225",
"0.79508066",
"0.79508066",
"0.78698766",
"0.7785011",
"0.7774367",
"0.77315134",
"0.7696443",
"0.7567527",
"0.75233835",
"0.7443876",
"0.7432744",
"0.74024576",
"0.74017185",
"0.73950815",
"0.7370861",
"0.73653793",
"0.7356589",
"0.7352079",
"0.7350762",
"0.7343807",
"0.7342716",
"0.734107",
"0.7330002",
"0.73299074",
"0.7292035",
"0.72917795",
"0.7282703",
"0.7282497",
"0.7280165",
"0.7247665",
"0.72457474",
"0.72222465",
"0.72165644",
"0.7215328",
"0.72139883",
"0.7203487",
"0.71860665",
"0.71852237",
"0.71776384",
"0.7167461",
"0.7157167",
"0.71538156",
"0.7142944",
"0.7139367",
"0.7119725",
"0.71193147",
"0.71181345",
"0.7112018",
"0.7109656",
"0.71067333",
"0.7106173",
"0.71041656",
"0.70941895",
"0.7093098",
"0.7080955",
"0.70798606",
"0.70717084",
"0.7069886",
"0.706278",
"0.7061396",
"0.7057258",
"0.7032227",
"0.7027738",
"0.7020376",
"0.70199865",
"0.7015716",
"0.70108587",
"0.7004244",
"0.699715",
"0.69964653",
"0.6992998",
"0.6987317",
"0.69821113",
"0.69657487",
"0.69624496",
"0.6961519",
"0.69586676",
"0.6943292",
"0.69403344",
"0.6930192",
"0.692496",
"0.69202673",
"0.6904327",
"0.6895462",
"0.6892409",
"0.6861082",
"0.68543154",
"0.6853233",
"0.6846953",
"0.6838538"
]
| 0.0 | -1 |
return str + "[" + this.line +"," + this.col +"]"; | @Override
public String toString() {
return (this.originalValue == null ? this.getValue() : this.originalValue) + (this.nodeType.getName() == null
? "" : (":" + this.nodeType.getName()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public String toString() { return new String( \"(\" + row + \", \" + col + \")\" ); }",
"@Override\n public String toString(){\n return row + \",\" + column + \",\";\n }",
"@Override\n public String toString() {\n\treturn \"\"+rowIndex+colIndex; \n }",
"@Override\n public String toString() {\n //create a string in the following format “<row>,<column>”\n String out = \"\";\n out += row + \", \" + column;\n return out;\n }",
"public String toString() {\n return row + \",\" + col;\n }",
"public String toString () {\n return \"(\" + col + \",\" + row + \")\";\n }",
"public String toString(){\r\n return \"{\"+ this.getRowIndex()+\",\"+ this.getColumnIndex()+\"}\";\r\n }",
"@Override\r\n public String toString() { return \"{\" + rowIndex + \", \" + colIndex + '}'; }",
"public String toString() {\r\n return \"Row: \" + this.row + \"Column: \"+ this.col;\r\n }",
"@Override\r\n public String toString() {\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < dimension; i++) {\r\n sb.append(rowToString(i)).append(\"\\n\");\r\n }\r\n //remove the last unnecessary carriage return from the string.\r\n return sb.toString().substring(0, sb.length() - 1);\r\n }",
"public String toString() {\n return String.format(\"%s%s\", column, row);\n }",
"public String toString()\n {\n return row0 + \"\\n\" + row1 + \"\\n\" + row2 + \"\\n\" + row3;\n }",
"public String toString(){\n return \"{\"+this.x+\", \"+this.y+\"}\";\n }",
"public String toString()\n\t{\n\t\tchar rowLetter = (char)('A'+row);\n\t\treturn(\"\"+rowLetter+col);\n\t}",
"@Override\n public String toString() {\n return \" at \" + this.index + \" [character \" + this.character + \" line \" + this.line + \"]\";\n }",
"public String toString(){\n StringBuffer returnString = new StringBuffer();\n for(int i = 0; i < this.matrixSize; i++){\n if(rows[i].length() != 0){\n returnString.append((i+1) + \":\" + rows[i]+ \"\\n\");\n }\n }\n return returnString.toString();\n }",
"public String toString(){\n return \"(\" + this.x + \",\" + this.y + \")\";\n }",
"public String toString() {\n\t \t\treturn \"(\" + i + \", \" + j + \")\";\n\t \t}",
"@Override\n public String toString() \n\t{\n\t\t// This is just for the output format\n\t\tString sg = \"\";\n\t\tsg = sg + \"(\";\n\t\tsg = sg + x;\n\t\tsg = sg + \", \";\n\t\tsg = sg + y;\n\t\tsg = sg + \") \";\n\t\t\n\t\treturn sg;\n\n\t}",
"public String toString() {\n return \"(\"+this.x + \", \" + this.y+\")\";\n }",
"public String toString() {\r\n\tStringBuffer gline = new StringBuffer();\r\n\tgline.append(Const.SPACE);\r\n\tgline.append(\"line\");\r\n\tgline.append(Const.SPACE);\r\n\tgline.append(co1.x);\r\n\tgline.append(Const.SPACE);\r\n\tgline.append(co1.y);\r\n\tgline.append(Const.SPACE);\r\n\tgline.append(co2.x);\r\n\tgline.append(Const.SPACE);\r\n\tgline.append(co2.y);\r\n\treturn gline.toString();\r\n }",
"public String boardCellToString() {\n String str;\n Integer convertX, convertY;\n //adjusting the co'ordinates because the board starts at 1 not 0\n convertX=this.xCor + 1;\n convertY= this.yCor + 1;\n str = \"(\" + convertX.toString() + \",\" + convertY.toString() + \")\";\n return str;\n }",
"public String toString() {\n\t return \"(\" + this.x + \",\" + this.y + \")\";\n\t }",
"private StringBuffer appendColumnString(StringBuffer newLine, int columnIndex, Object plaintext) {\n if (columnIndex != 0){\n newLine.append(\";\");\n }\n newLine.append(plaintext.toString());\n return newLine;\n }",
"@Override\n public String toString() {\n\t\treturn i+\",\"+j; \n }",
"public String toString()\n\t{\n\t\tString temp = \"\";\n\t\tfor (int i=0; i< lineCount; i++)\n\t\t{\n\t\t\ttemp += (i+1) + \": \" + codeLines[i] + \"\\n\";\n\t\t}\n\t\treturn temp;\n\t}",
"@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n int cell = field[i][j];\n result.append(cell == 0 ? \"_\" : (cell == 1 ? \"X\" : \"O\")).append(\" \");\n }\n result.append(\"\\n\");\n }\n return result.toString();\n }",
"public String toString()\n {\n return (\"x,y\" + x + y);\n }",
"public String toString()\n\t{\n\t\t//DecimalFormat df = new DecimalFormat(\"0.00\");\n\t\tString report = \"\";\n\t\treport += \"m = \" + rows + \"\\n\";\n\t\treport += \"n = \" + cols + \"\\n\";\n\t\treport += \"[ | ] = \" + \"\\n\";\n\t\tfor(int i = 0; i < rows; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < cols+1; j++)\n\t\t\t{\n\t\t\t\treport += /*df.format*/(A[i][j]) + \" \";\n\t\t\t}\n\t\t\treport += \"\\n\";\n\t\t}\n\t\treturn report;\n\t}",
"@Override\n public String toString() {\n return columnToChar(c1) + \"\" + (8 - r1) + columnToChar(c2) + \"\" + (8 - r2);\n }",
"@Override\n public String toString() {\n double[][] temp = matx.getArray();\n String tempstr = \"[\";\n for (int i = 0; i < temp.length; i++) {\n for (int j = 0; j < temp.length; j++) {\n tempstr += (int) temp[i][j] + \", \";\n }\n tempstr = tempstr.substring(0, tempstr.length() - 2);\n tempstr += \"]\\n[\";\n }\n return tempstr.substring(0, tempstr.length() - 2);\n }",
"public String toString()\r\n {\r\n return \"(\" + this.x() + \", \" + this.y() + \")\";\r\n }",
"@Override\n public String toString() {\n String r = \"\" + value[0];\n for (int i = 1; i < DIM; i++) {\n r += DELIMITER + value[i];\n }\n \n r += DELIMITER + count;\n\n return r;\n }",
"public String toString(){\r\n String result = \"[ \";\r\n result = result + vertex + \" ]\";\r\n return result;\r\n }",
"public String toString() {\n\t\treturn \"(\" + x + \",\" + y + \")\";\n\t}",
"public String toString() {\r\n \treturn new String(\"x: \" + x + \" y: \" + y);\r\n }",
"@Override\n public String toString(){\n return x+\"\\n\"+y+\"\\n\"+z;\n }",
"public String toString() {\n\t\treturn \"[\" + x + \", \" + y + \"]\";\n\t}",
"public String toString() {\n\tString retStr = \"\";\n\tfor (int r = 0; r < this.size(); r++){\n\t for (int c = 0; c < this.size(); c++){\n\t\tretStr += matrix[r][c] + \"\\t\";\n\t }\n\t retStr += \"\\n\";\n\t}\n\treturn retStr;\n }",
"public String toString() {\n String s = \"\";\n for(int i = 1; i <= rows; i++){\n for(int j = 1; j <= cols; j++){ \n s = s + String.format(\"%2d\",m[i][j]) + \" \";\n }\n s += \"\\n\";\n }\n return s;\n }",
"public String toString() {\n\t\treturn \"(\" + x + \", \" + y + \")\";\n\t}",
"public String toString(){\r\n\t\t\r\n\t\tString x =\"\";\r\n\t\t\r\n\t\tfor(int i=0; i < param.size() ; i++ ){\r\n\t\t\t\r\n\t\t\tx += param.get(i) + \"\\n\" ; \r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn x;\r\n\t}",
"public String serialize() {\n return \"row=\\\"\" + row + \"\\\" column=\\\"\" + column + \"\\\"\";\n }",
"public String toString(){\n\n\t\tStringBuffer b = new StringBuffer();\n\t\tb.append('\\n');\n\n\t\tint i = 0, j, counter = 0;\n\t\twhile( i < numRows){\n\n\t\t\tj = 0;\n\t\t\twhile( j < numCols){\n\n\t\t\t\tb.append( \"\" + i + TAB + j + TAB);\n\t\t\t\tObject obj = this.get(i, j);\n\t\t\t\tif( obj != null ) {\n\t\t\t\t\tb.append( obj.toString() );\n\t\t\t\t\tcounter++;\n\t\t\t\t}\n\t\t\t\telse b.append( \"NULL\" );\n\t\t\t\tb.append('\\n');\n\n\t\t\t\tj++;\n\t\t\t}\n\t\t\ti++;\n\n\t\t}\n\t\tb.append( \"\\nNumber of Rows = \" + numRows + '\\n' );\n\t\tb.append( \"Number of Columns = \" + numCols + '\\n' );\n\t\tb.append( \"Size = \" + size + '\\n' );\n\t\tb.append( \"Number of non-null objects = \" + counter + '\\n' );\n\t\treturn b.toString();\n\t}",
"public String toString() {\n StringBuilder output = new StringBuilder();\n output.append(\"{\\n\");\n for (int i=0; i<rows; i++) {\n output.append(Arrays.toString(matrix.get(i)) + \",\\n\");\n }\n output.append(\"}\\n\");\n return output.toString();\n }",
"public String toString(){\n return (\"TextShape \"+x+\" \"+y+\" \"+col.getRed()+\" \"+col.getGreen()+\" \"+col.getBlue()+\" \"+str);\n }",
"public String toString() {\n String returnString = \"\";\n returnString = returnString + \"\\r\\n\";\n for (int i = 0; i < rows + 1; i++) {\n for (int j = 0; j < cols + 1; j++) {\n if (i == 0 && j == 0) {\n returnString = returnString + \" \";\n continue;\n }\n if (i == 0) {\n if (j > 0) {\n returnString = returnString + (j + \" \");\n }\n if (j == 8) {\n returnString = returnString + \"\\r\\n\";\n }\n } else {\n if (j > 0) {\n if (!isEmpty(i - 1, j - 1)) {\n returnString = returnString + (getBoard()[i - 1][j - 1] + \" \");\n } else {\n returnString = returnString + \" \";\n }\n }\n }\n if (j == 0) {\n returnString = returnString + (i + \" \");\n }\n\n }\n returnString = returnString + \"\\r\\n\";\n }\n return returnString;\n }",
"public String getString() {\t\t\t\n\t\tString result = \"\";\n\t\tfor (int row = 0; row < this.size; row ++) {\n\t\t\tString line = \"\";\n\t\t\tfor (int column = 0; column < this.size; column++) {\n\t\t\t\tline += printToken(this.getTokenAt(new Vector(column, row))) + \" \";\n\t\t\t}\n\t\t\t\n\t\t\tresult += line + System.lineSeparator();\n\t\t}\n\t\treturn result;\n\t}",
"public String toString() {\r\n /* DO NOT MODIFY */\r\n return \"(\" + x + \", \" + y + \")\";\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\tString rtn=this.x+\".\"+this.y;\r\n\t\treturn rtn;\r\n\t}",
"public String toString() {\n\t\tString returnString=\"\";\n\t\t\n\t\tfor (int i=0; i<squares.length; i++) {\n\t\t\tfor (int j=0; j<squares.length; j++) {\n\t\t\t\treturnString+=Character.toString(squares[i][j].getValue());\n\t\t\t}\n\t\t\treturnString+=\"// \";\n\t\t}\n\t\t\n\t\treturn returnString;\n\t}",
"public String toString() {\n\t\tString str = new String ();\n\t\tfor (int i = 0; i <size; i++)\n\t\t{\n\t\t\tstr +=\"(\" + i +\")\" + arr[i] + \"\\n\";\n\t\t}\n\t\treturn str;\n\t}",
"public String toString()\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\" 1 2 3 4 5 6 7 8\\n\");\n\t\tfor(int i = 0; i < 8; i++)\n\t\t{\n\t\t\tsb.append((char) (i + FIRST_ROW) + \" \");\n\t\t\tfor(int i2 = 0; i2 < 8; i2++)\n\t\t\t{\n\t\t\t\tsb.append(\" \" + fields[i][i2]);\n\t\t\t\tif(i2 == 7)\n\t\t\t\t{\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String toString() {\n\t\tString toString = null;\n\t\ttoString = \"[\" + this.px() + \", \" + this.py() + \", \" + this.pz() + \", \" + this.e() + \"]\";\n\t\treturn toString;\n\t}",
"public String toString()\n\t{\n\t\treturn \"[\" + mX + \", \" + mY + \"]\";\n\t}",
"public String toString ()\n\t{\n\t\tString s = \"Grid:\\n\";\n\t\tfor (int row=0; row<GRID_SIZE; row++)\n\t\t{\n\t\t\tfor (int col=0; col<GRID_SIZE; col++) {\n\t\t\t\ts = s + grid[col][row].value()+ \" \";\n\t\t\t}\n\t\t\ts += \"\\n\";\n\t\t}\n\t\treturn s;\n\t}",
"public String toString() {\n /* DO NOT MODIFY */\n return \"(\" + x + \", \" + y + \")\";\n }",
"public String toString() {\n /* DO NOT MODIFY */\n return \"(\" + x + \", \" + y + \")\";\n }",
"public String toString() {\n /* DO NOT MODIFY */\n return \"(\" + x + \", \" + y + \")\";\n }",
"public String toString()\r\n\t{\r\n\t\tStringBuffer buffer = new StringBuffer(\"{X = \");\r\n\t\tbuffer.append(this.x);\r\n\t\tbuffer.append(\", Y = \");\r\n\t\tbuffer.append(this.y);\r\n\t\tbuffer.append('}');\r\n\t\treturn buffer.toString();\r\n\t}",
"public String toString() {\n return \"(\" + firstPart + \" ; \" + secondPart + \")\";\n }",
"public String toString() {\n\n\t\tString result = \"\";\n\n\t\tfor(Cell[][] dim : board) {\n\t\t\tfor(Cell[] row : dim) {\n\t\t\t\tfor(Cell col : row) {\n\t\t\t\t\tif(col== Cell.E)\n\t\t\t\t\t\tresult += \"-\";\n\t\t\t\t\telse\n\t\t\t\t\t\tresult += col;\t\n\t\t\t\t}\n\t\t\t\tresult += \"\\n\";\n\t\t\t}\n\t\t\tresult += \"\\n\";\n\t\t}\n\n//\t\tSystem.out.println(\"\\n***********\\n\");\n\t\treturn result;\n\n\t}",
"public String toString(){\n int nNodes=Integer.parseInt(rows.get(0));\n content=\"[NUMBER NODES] \\n\"+nNodes+\"\\n\";\n content+=\"[NODE] [SERVICE TIME] [READY TIME] [DUE DATE]\\n\";\n for(int i=0;i<nNodes*4;i+=4){\n for(int j=1;j<5;j++){\n content+=rows.get(i+j)+\"\\t\";\n }\n content+=\"\\n\";\n }\n content+=\"[START NODE][END NODE][DISTANCE] \\n\";\n //limit:filas (n*(n-1)) por la 3 columnas\n //\t\tmas lo que ya se leyo nodos por las 4 columnas\n int limit = ((nNodes*(nNodes-1))*3)+(nNodes*4);\n\n for(int i=(nNodes*4); i<limit;i+=3){\n for(int j=1;j<4;j++){\n //content+=rows.get(i+j)+\" [\"+(i+j)+\"]\\t\";\n content+=rows.get(i+j)+\"\\t\";\n }\n content+=\"\\n\";\n }\n return content;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"(\" + x + \", \" + y + \")\";\n\t}",
"public String toString() {\n\t\t// Converts column\n\t\tString columnStr = \"\";\n\t\tfor (int tempColumn = cell.getAddress().getColumn();\n\t\t\t\ttempColumn >= 0; tempColumn = tempColumn\n\t\t\t\t\t/ (Address.HIGHEST_CHAR - Address.LOWEST_CHAR + 1) - 1)\n\t\t\tcolumnStr = ((char)((char)(tempColumn % (Address.HIGHEST_CHAR\n\t\t\t\t- Address.LOWEST_CHAR + 1)) + Address.LOWEST_CHAR)) + columnStr;\n\t\tif (columnAbsolute)\n\t\t\tcolumnStr = ABSOLUTE_OPERATOR + columnStr;\n\n\t\t// Converts row\n\t\tString rowStr = (rowAbsolute ? ABSOLUTE_OPERATOR : \"\")\n\t\t\t+ (cell.getAddress().getRow() + 1);\n\t\treturn columnStr + rowStr;\n\t}",
"public String toString() {\n\t\treturn \"x1 = \" + x1 + \" y1 = \" + y1 + \" x2 = \" + x2 + \" y2 = \" + y2;\n\t}",
"@Override\n public final String toString() {\n \t\n \treturn String.format(\"[%1$s [%2$s\\t%3$s\\t%4$s]%1$s [%5$s\\t%6$s\\t%7$s]%1$s [%8$s\\t%9$s\\t%10$s] ]\", System.getProperty(\"line.separator\"), this.m00, this.m01, this.m02,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.m10, this.m11, this.m12,\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t this.m20, this.m21, this.m22);\n }",
"@Override\n public String toString() {\n int numeritosY = 0;\n int numeritosX = 0;\n StringBuilder datos = new StringBuilder(\" \");\n\n //Imprime los numeros de arriba\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\" \").append(numeritosX);\n numeritosX++;\n }\n datos.append(\"\\n \");\n //Imprime la primera linea que corresponde con la parte superior del tablero.\n for (int x = 0; x < casillas.length; x++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n //Imprime el resto del tablero.\n for (int y = 0; y < casillas.length; y++) {\n datos.append(numeritosY).append(\"\\033[33m\"+\" | \"+\"\\033[0m\");\n for (int x = 0; x < casillas[y].length; x++) {\n datos.append(casillas[y][x].toString());\n }\n datos.append(\"\\n\");\n datos.append(\" \");\n for (int i = 0; i < casillas[y].length; i++) {\n datos.append(\"\\033[33m\"+\"+----\"+\"\\033[0m\");\n }\n datos.append(\"\\033[33m\"+\"+\"+\"\\033[0m\");\n datos.append(\"\\n\");\n numeritosY++;\n }\n return datos.toString();\n }",
"public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}",
"public String toString() {\n\t\tStringBuilder buff = new StringBuilder();\n\t\tfor (int y = height-1; y>=0; y--) {\n\t\t\tbuff.append('|');\n\t\t\tfor (int x=0; x<width; x++) {\n\t\t\t\tif (getGrid(x,y)) buff.append('+');\n\t\t\t\telse buff.append(' ');\n\t\t\t}\n\t\t\tbuff.append(\"|\\n\");\n\t\t}\n\t\tfor (int x=0; x<width+2; x++) buff.append('-');\n\t\treturn(buff.toString());\n\t}",
"public String toString() {\n\t\treturn i + \".\" + j;\n\t}",
"public String toString() {\r\n StringBuilder result= new StringBuilder();\r\n for(int x=0;x<8;x++){\r\n for(int y=0;y<8;y++){\r\n result.append(checks[x][y]).append(\",\");\r\n }\r\n result.append(\"\\n\");\r\n }\r\n return result.toString();\r\n }",
"public String toString() {\n\t\treturn \"LINE:(\"+startPoint.getX()+\"-\"+startPoint.getY() + \")->(\" + endPoint.getX()+\"-\"+endPoint.getY()+\")->\"+getColor().toString();\n\t}",
"public String toString() {\n return String.format(\"(%d/%d)\", fila, columna);\n }",
"public String toString() {\n/* 47 */ String retVal = \"id= \" + this.id + \", name= \" + this.name + \", buff= \" + this.buff;\n/* 48 */ return retVal;\n/* */ }",
"public String toString()\n\t{\n\t\treturn \"x:\"+xPos+\" y:\"+yPos+\" width:\"+width+\" height:\"+height+\" color:\"+ color;\n\t}",
"public String location()\n {\n return String.format(\"(%d,%d)\", line, column);\n }",
"public String toString() {\n\t\treturn (\"The value of \\\"x\\\" is: \" + x + \"\\n\"\n\t\t\t + \"The value of \\\"y\\\" is: \" + y);\n\t}",
"public String toString()\n {\n return \"(\" + start + \"->\"+ (start+size-1) + \")\";\n }",
"@Override\n public String toString() {\n return \"<\" + this.x + \",\" + this.y + \">\";\n }",
"public String toString() {\n\tString str = \"\";\n\tfor (int i = 0; i < board.length; i++) {\n\t str = str + \"\\n\";\n\t for (int j = 0; j <= (board.length - 1); j++)\n\t\tstr = \" \" + str + board[i][j] + \" \";\n\t}\n\treturn str;\n }",
"public String toString() {\r\n\t\treturn \"(\" + this.x + \",\" + this.y + \",\" + this.z + \")\";\r\n\t}",
"@Override\r\n public String toString() {\r\n String temp = \"\";\r\n\r\n // item statement are used to generate format for the matrix.\r\n String itemStatement = \" %x.yf\"\r\n .replace(\"x\", \"\" + (Prettify.countSingleDigitSpace(this) + Matrix.significantDigit + 2))\r\n .replace(\"y\", \"\" + Matrix.significantDigit);\r\n\r\n for (double[] row : matrix) {\r\n for (double col : row) {\r\n temp += String.format(itemStatement, col);\r\n }\r\n temp += \"\\n\";\r\n }\r\n\r\n // this one are used to clean up those junks.\r\n // if you need to know it's function, you can disable it,\r\n // it's just kind of magic, here :D\r\n return temp.replaceAll(\"[\\\\s\\\\n]+$\", \"\");\r\n }",
"public String getLocationString(){\n return \"(\" + x + \", \" + y + \")\";\n }",
"public String toString(){\n String string = new String();\n for(int i = 0; i < axis.length; i++){\n string += axis[i];\n if(i != (axis.length - 1)){\n string += \" / \";\n }\n }\n return string;\n }",
"public String toString(){\n return data+\" \"; \n }",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn \"x=\" + x + \",y=\" + y + \",obj=\" + block;\n\t}",
"public String toString()\n\t{\n\t\tString s = \"\";\n\t\tfor(int r = 0; r < board.length; r++)\n\t\t{\n\t\t\tfor(int c = 0; c < board[0].length; c++)\n\t\t\t{\n\t\t\t\ts += \"|\" + board[r][c];\n\t\t\t}\t\t\t\t\n\t\t\ts += \"|\" + \"\\n\" + \"-------------------\" + \"\\n\";\n\t\t}\n\t\treturn s;\n\t}",
"public String toString() { \n String canvas = \"\";\n for(int i=0; i<height; i++) {\n for(int j=0; j<width; j++) {\n if(drawingArray[i][j] == ' ') {\n canvas += \"_\";\n } else {\n canvas += drawingArray[i][j];\n }\n }\n canvas += System.lineSeparator();\n }\n return canvas;\n }",
"@Override\n public String toString() {\n String result = \"\";\n\n for (int position = 0; position < 64; position++) {\n if (position > 0) {\n if (position % 16 == 0) { // New level\n result += '|';\n } else if (position % 4 == 0) {\n result += ' '; // New row\n }\n }\n result += get(position);\n }\n return result;\n }",
"public String toString()\n\t{\n\t\tString output = \"\";\n\t\tfor(String[] at:atMat){\n\t\t\tfor(String a:at){\n\t\t\t\toutput += a+ \" \";\n\t\t\t}\n\t\t\toutput += \"\\n\";\n\t\t}\n\t\treturn output;\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}",
"public String toString() {\n\t\treturn super.toString() + \"[count=\" + count + \",pos=\" + pos + \"]\";\n\t}",
"private String buildOutput() {\n\t\tStringBuilder out = new StringBuilder();\n\t\tfor (char[] col : this.output) {\n\t\t\tfor (char c : col) {\n\t\t\t\tout.append(c);\n\t\t\t}\n\t\t\tout.append(\"\\n\");\n\t\t}\n\n\t\treturn out.toString();\n\t}",
"public StringBuffer toStringBuffer()\r\n\t{\r\n\t\tStringBuffer stringSuperficie = new StringBuffer(\"\");\r\n\t\tfor(int i = 0; i < this.casillas.getFila(); i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < this.casillas.getCol(); j++)\r\n\t\t\t{\r\n\t\t\t\tif(this.queCelulaHay(new Casilla(i,j)) != ES_VACIA)\r\n\t\t\t\t\tstringSuperficie.append(\" \" + this.superficie[i][j].toStringBuffer() + \" \");\r\n\t\t\t\telse\r\n\t\t\t\t\tstringSuperficie.append(\" - \");\r\n\t\t\t}\r\n\t\t\tstringSuperficie.append(\"\\n\");\r\n\t\t}\r\n\t\treturn stringSuperficie;\r\n\t}",
"public String toString(){\n String s = \"\";\n s += \"\\t\";\n \n for (int i = 0; i < n; i++){\n // adding vertices for columns\n s += vertices[i] + \"\\t\";\n }\n \n s += \"\\n\";\n \n for (int i = 0; i < n; i++){\n s += vertices[i] + \"\\t\"; // vertex for row\n for (int j = 0; j < n; j++){\n s += edges[j][i] + \"\\t\"; // adding edges across row\n }\n s += \"\\n\";\n }\n \n return s;\n }",
"@Override\r\n public String toString(){\n return x + \", \" + y + \", \" + z ;\r\n }",
"@Override\n\tpublic String toString(){\n\t\t// return a string of the board representation following these rules:\n\t\t// - if printed, it shows the board in R rows and C cols\n\t\t// - every cell should be represented as a 5-character long right-aligned string\n\t\t// - there should be one space between columns\n\t\t// - use \"-\" for empty cells\n\t\t// - every row ends with a new line \"\\n\"\n\t\t\n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tfor (int i=0; i<numRows; i++){\n\t\t\tfor (int j =0; j<numCols; j++){\n\t\t\t\tPosition pos = new Position(i,j);\n\t\t\t\t\n\t\t\t\t// use the hash table to get the symbol at Position(i,j)\n\t\t\t\tif (grid.contains(pos))\n\t\t\t\t\tsb.append(String.format(\"%5s \",this.get(pos)));\n\t\t\t\telse\n\t\t\t\t\tsb.append(String.format(\"%5s \",\"-\")); //empty cell\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\treturn sb.toString();\n\n\t}",
"public String toString()\n\t{\n\t\tString data = \"(\" + x + \", \" + y + \")\";\n\t\treturn data;\t\t\t\t\t\t\t\t\t\t\t// Return point's data \n\t}",
"@Override\n public String toString()\n {\n return TAG + \"[x:\" + x + \",y:\" + y + \"]\";\n }",
"public String toString( )\n{ \n String s=\"\\nThe Mines\\n \";\n for ( int r = 0; r < rows; r++ )\n {\n for ( int c = 0; c < cols ; c++ )\n s = s + theMines[ r ][ c ] + \" \";\n s = s + \" \\n \" ;\n }\n s += \"\\nMined neighbor counts\\n \";\n for ( int r = 0; r < rows; r++ )\n {\n for ( int c = 0; c < cols ; c++ )\n if( theCounts[ r ][ c ] == 9 )\n s = s + \"X\" + \" \";\n else\n s = s + theCounts[ r ][ c ] + \" \";\n s = s + \" \\n \" ;\n } \n return( s );\n}"
]
| [
"0.74287504",
"0.73427093",
"0.7288429",
"0.7168634",
"0.71426916",
"0.7110175",
"0.6910687",
"0.66816026",
"0.6601411",
"0.6571581",
"0.6547507",
"0.6476177",
"0.64751124",
"0.6349677",
"0.6334488",
"0.633344",
"0.63310695",
"0.6307568",
"0.6288187",
"0.6256881",
"0.6247732",
"0.62450325",
"0.61916405",
"0.6167912",
"0.61033845",
"0.60925657",
"0.6077209",
"0.6072085",
"0.6051801",
"0.60513043",
"0.6046413",
"0.6039376",
"0.60377586",
"0.6035426",
"0.60325915",
"0.6019386",
"0.59797937",
"0.59793746",
"0.59791493",
"0.5975299",
"0.59638065",
"0.5954763",
"0.5950992",
"0.5922862",
"0.59189343",
"0.59136665",
"0.5877947",
"0.5877632",
"0.5869239",
"0.58603513",
"0.5854105",
"0.58497936",
"0.58441883",
"0.58369297",
"0.5831434",
"0.58309174",
"0.58242035",
"0.58242035",
"0.58242035",
"0.582112",
"0.58197033",
"0.5805829",
"0.57713735",
"0.57689387",
"0.5760916",
"0.57586443",
"0.57585454",
"0.5753124",
"0.57365304",
"0.57365304",
"0.5733877",
"0.573055",
"0.57294834",
"0.5727444",
"0.5722623",
"0.5719867",
"0.57167596",
"0.5713821",
"0.5711785",
"0.57076764",
"0.57072514",
"0.5697956",
"0.56858",
"0.5684177",
"0.5678696",
"0.56757134",
"0.5661297",
"0.5658382",
"0.5657762",
"0.56569487",
"0.5652749",
"0.56526333",
"0.56507814",
"0.564419",
"0.5635752",
"0.5634602",
"0.56336534",
"0.56314903",
"0.56269634",
"0.5618992",
"0.56166726"
]
| 0.0 | -1 |
Created by yin13 on 2019/10/12 | public interface ISwipRefreshInterface extends IBaseInterface {
RecyclerView.LayoutManager getLayoutManager();
RecyclerView.Adapter getAdapter();//获取适配器
void clear();//清除数据
String getReplaceText();//占位语
Drawable getReplaceDrawable();//占位图
boolean initLoading();//初始化是否加载数据
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"private void poetries() {\n\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"public void mo4359a() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void mo6081a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public Pitonyak_09_02() {\r\n }",
"Petunia() {\r\n\t\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\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\n\tprotected void interr() {\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n public int describeContents() { return 0; }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\n public void init() {\n\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\tpublic void one() {\n\t\t\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 void init() {\n }",
"private void kk12() {\n\n\t}",
"public void mo55254a() {\n }",
"@Override\n public void init() {\n }",
"private void m50366E() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"protected void mo6255a() {\n }",
"private UsineJoueur() {}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"public void mo12930a() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"public void mo9848a() {\n }",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"public void mo1531a() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n protected void init() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {}",
"private 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\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override\n\tpublic void emprestimo() {\n\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}",
"private TMCourse() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"public void mo12628c() {\n }",
"private void strin() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private zza.zza()\n\t\t{\n\t\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\r\n\t\t\tpublic void test() {\n\t\t\t}",
"@Override\n\tpublic void einkaufen() {\n\t}"
]
| [
"0.58239675",
"0.5582649",
"0.5539823",
"0.5539823",
"0.5503609",
"0.5502108",
"0.5481418",
"0.5444099",
"0.5399297",
"0.5383943",
"0.5375307",
"0.5356195",
"0.5348685",
"0.53216636",
"0.53138834",
"0.5313759",
"0.5301973",
"0.5296009",
"0.5284299",
"0.527593",
"0.5266329",
"0.5246844",
"0.523424",
"0.523062",
"0.523062",
"0.523062",
"0.523062",
"0.523062",
"0.523062",
"0.523062",
"0.5229199",
"0.5212457",
"0.5208054",
"0.51737994",
"0.51463395",
"0.5144796",
"0.5137973",
"0.51344186",
"0.51342726",
"0.5129964",
"0.51107764",
"0.5106937",
"0.50993186",
"0.50985825",
"0.50985825",
"0.50985825",
"0.50985825",
"0.50985825",
"0.50985825",
"0.5080489",
"0.5079488",
"0.5079488",
"0.5075894",
"0.5072804",
"0.50708824",
"0.50626796",
"0.5061289",
"0.50609946",
"0.5059696",
"0.5056033",
"0.50528085",
"0.5050913",
"0.5044226",
"0.5032416",
"0.50280595",
"0.5023594",
"0.50199217",
"0.50142086",
"0.50142086",
"0.50142086",
"0.50142086",
"0.50142086",
"0.5013202",
"0.501293",
"0.5012461",
"0.4995894",
"0.4982398",
"0.49811292",
"0.49809462",
"0.497467",
"0.497467",
"0.497467",
"0.4971453",
"0.49705794",
"0.49689007",
"0.49689007",
"0.49689007",
"0.49686816",
"0.4968435",
"0.4968435",
"0.4958596",
"0.49569896",
"0.4953762",
"0.49518317",
"0.49511448",
"0.4950344",
"0.49492025",
"0.49347734",
"0.4929564",
"0.4925511",
"0.4922949"
]
| 0.0 | -1 |
Created by ss on 16329. | public interface QueueManager {
List<Message> messages = null;
int insertQueue(String queueId, Message message);
List<Message> getQueue(String queueId, int num);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n public void func_104112_b() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void mo38117a() {\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}",
"private static void cajas() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"private void kk12() {\n\n\t}",
"public void mo4359a() {\n }",
"private void m50366E() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\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\tpublic void init() {\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 }",
"private void poetries() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public void mo12628c() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"public void mo6081a() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void gravarBd() {\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 public int describeContents() { return 0; }",
"@Override\r\n\tpublic void init() {}",
"private void strin() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void skystonePos4() {\n }",
"@Override\n\tpublic void entrenar() {\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 public void init() {\n }",
"public void mo55254a() {\n }",
"@Override\n protected void init() {\n }",
"private void init() {\n\n\n\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public abstract void mo70713b();",
"public void method_4270() {}",
"@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\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"protected void mo6255a() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\n public void init() {}",
"@Override\n void init() {\n }",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo21877s() {\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"public void mo12930a() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"public void skystonePos6() {\n }",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"public void m23075a() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo21779D() {\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"private void m50367F() {\n }",
"@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"public void mo115190b() {\n }",
"public void mo9848a() {\n }",
"public final void mo91715d() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}",
"public void mo21825b() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"Constructor() {\r\n\t\t \r\n\t }"
]
| [
"0.58624333",
"0.57876253",
"0.5777888",
"0.57544225",
"0.57093287",
"0.56850463",
"0.5679428",
"0.5668249",
"0.5668249",
"0.5666523",
"0.56643444",
"0.56009895",
"0.5597664",
"0.559756",
"0.5583944",
"0.5561433",
"0.55386484",
"0.5538426",
"0.5531316",
"0.5530296",
"0.552272",
"0.552272",
"0.552272",
"0.552272",
"0.552272",
"0.55169964",
"0.55169964",
"0.55169964",
"0.55169964",
"0.55169964",
"0.55169964",
"0.55169964",
"0.55125326",
"0.55114025",
"0.5472678",
"0.5468744",
"0.5456856",
"0.54509664",
"0.54502875",
"0.5446519",
"0.5428348",
"0.5401147",
"0.5398177",
"0.5387458",
"0.5387458",
"0.5387458",
"0.53811204",
"0.53793657",
"0.53753906",
"0.5370496",
"0.5367112",
"0.5362748",
"0.5357681",
"0.53554136",
"0.53554136",
"0.53554136",
"0.53480244",
"0.534692",
"0.5345962",
"0.53400743",
"0.533772",
"0.5333724",
"0.5328932",
"0.53287727",
"0.53287727",
"0.53287727",
"0.53279775",
"0.53279775",
"0.53255135",
"0.53182936",
"0.53120023",
"0.5309686",
"0.5308769",
"0.5302405",
"0.5290457",
"0.5290229",
"0.52868754",
"0.5284928",
"0.5281706",
"0.5273418",
"0.5273418",
"0.5273308",
"0.52705675",
"0.5263737",
"0.526296",
"0.526124",
"0.52545184",
"0.5253704",
"0.52529144",
"0.5252035",
"0.5250959",
"0.5242977",
"0.5231534",
"0.5230961",
"0.5227923",
"0.5227406",
"0.52201885",
"0.52173704",
"0.5215532",
"0.52144897",
"0.52142364"
]
| 0.0 | -1 |
Creates new form Login | public Login(Main pai) {
this.pai = pai;
initComponents();
senhaBox.setEchoChar('*');
loginBox.setText("[email protected]");
senhaBox.setText("eymar");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public loginForm() {\n initComponents();\n \n }",
"public static Result login(){\n String username= Form.form().bindFromRequest().get(\"username\");\n String password= Form.form().bindFromRequest().get(\"password\");\n String new_user= Form.form().bindFromRequest().get(\"new_user\");\n if(new_user != null){\n return ok(login.render(username,password));\n } else {\n Skier s=Session.authenticate(username,password);\n if(s==null){\n return badRequest(index.render(\"Invalid Username or Password\"));\n } else {\n login(s);\n return redirect(\"/home\");\n }\n }\n }",
"@GetMapping(\"/loginForm\")\n\t\tpublic String login() {\n\t\t\treturn\"user/loginForm\";\n\t\t}",
"public login() {\n initComponents();\n \n \n }",
"public Form getLoginForm() {\n if (LoginForm == null) {//GEN-END:|14-getter|0|14-preInit\n // write pre-init user code here\n LoginForm = new Form(\"Welcome\", new Item[]{getTextField()});//GEN-BEGIN:|14-getter|1|14-postInit\n LoginForm.addCommand(getExitCommand());\n LoginForm.addCommand(getOkCommand());\n LoginForm.setCommandListener(this);//GEN-END:|14-getter|1|14-postInit\n // write post-init user code here\n }//GEN-BEGIN:|14-getter|2|\n return LoginForm;\n }",
"public login() {\n initComponents();\n }",
"public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }",
"public LoginForm() {\n initComponents();\n }",
"public Login() \n {\n super();\n create();\n this.setVisible(true);\n initComponents();\n }",
"public Login() {\n initComponents();\n \n }",
"public LoginController(LoginForm form) {this.loginForm = form;}",
"public Login() {\n initComponents();\n \n }",
"private void genLoginGui(){\n loginFrame = new JFrame(\"Log in\");\n\n // login panel, inputs name\n loginPanel = new JPanel();\n loginPanel.setLayout(new FlowLayout());\n nameLabel = new JLabel(\"Name\");\n nameTextFiled = new JTextField();\n nameTextFiled.setPreferredSize(new Dimension(100, 20));\n nameTextFiled.addActionListener(clientAction);\n nameTextFiled.setActionCommand(\"ENTERROOM\");\n\n btnEnterRoom = new JButton(\"Enter Room\");\n btnEnterRoom.addActionListener(clientAction);\n btnEnterRoom.setActionCommand(\"ENTERROOM\");\n\n loginPanel.add(nameLabel);\n loginPanel.add(nameTextFiled);\n loginPanel.add(btnEnterRoom);\n\n loginFrame.add(loginPanel, BorderLayout.CENTER);\n\n loginFrame.setSize(700, 500);\n loginFrame.setLocation(0, 200);\n loginFrame.add(loginPanel);\n loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginFrame.setVisible(true);\n }",
"public LOGINFORMF() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n initComponents();\n }",
"public Login() {\n inicializarUsuarios();\n }",
"Login() { \n }",
"public FormLogin() {\n initComponents();\n open_db();\n setLocationRelativeTo(this);\n }",
"public Login() {\n initComponents();\n KiemTraKN();\n }",
"public Login() {\n initComponents();\n this.setTitle(\"Login\");\n this.setLocationRelativeTo(null);\n this.pack();\n // Asignanado objecto\n adminUsers = new usuarioAdmin();\n \n // No hay inicializacion de usuarios\n sys.us[0] = new Usuario();\n sys.us[0].setId(\"admin\");\n sys.us[0].setNombre(\"admin\");\n sys.us[0].setApellido(\"admin\");\n sys.us[0].setUser(\"admin\");\n sys.us[0].setPassword(\"admin\");\n sys.us[0].setRol(\"admin\");\n }",
"protected void login() {\n\t\t\r\n\t}",
"public void loginBuilder(){\n loginFrame = new JFrame(\"Coronos Login\");\n loginFrame.setLayout(new GridLayout(3, 1));\n\n jpUserName = new JPanel(new FlowLayout());\n jtfUserNameField = new JTextField(10);\n userNameLabel = new JLabel(\"Username:\");\n userNameLabel.setLabelFor(jtfUserNameField);\n jpUserName.add(userNameLabel);\n jpUserName.add(jtfUserNameField);\n loginFrame.add(jpUserName);\n \n jpPassWord = new JPanel(new FlowLayout());\n passWordField = new JPasswordField(10);\n passWordLabel = new JLabel(\"Password:\");\n passWordField.addActionListener(this);\n passWordField.setActionCommand(\"Login\");\n passWordLabel.setLabelFor(passWordField);\n jpPassWord.add(passWordLabel);\n jpPassWord.add(passWordField);\n loginFrame.add(jpPassWord);\n \n jpOptions = new JPanel(new FlowLayout());\n loginButton = new JButton(\"Login\");\n loginButton.addActionListener(this);\n showPassword = new JButton(\"Reveal Password\");\n showPassword.addActionListener(this);\n jpOptions.add(loginButton);\n jpOptions.add(showPassword);\n loginFrame.add(jpOptions);\n \n loginFrame.setLocationRelativeTo(null);\n loginFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n loginFrame.setVisible(true);\n loginFrame.pack();\n }",
"public login() {\r\n\t\tsuper();\r\n\t}",
"@RequestMapping(\"/login\")\r\n\tpublic ModelAndView login(@Valid @ModelAttribute(\"loginForm\") final UserLoginForm form,\r\n\t\t\tfinal BindingResult errors) {\r\n\t\treturn new ModelAndView(\"users/login\");\r\n\t}",
"void goToLogin() {\n mainFrame.setPanel(panelFactory.createPanel(PanelFactoryOptions.panelNames.LOGIN));\n }",
"public Login() {\n initComponents();\n hideregister ();\n }",
"public pageLogin() {\n initComponents();\n labelimage.setBorder(new EmptyBorder(0,0,0,0));\n enterButton.setBorder(null);\n enterButton.setContentAreaFilled(false);\n enterButton.setVisible(true);\n usernameTextField.setText(\"Username\");\n usernameTextField.setForeground(new Color(153,153,153));\n passwordTextField.setText(\"Password\");\n passwordTextField.setForeground(new Color(153,153,153));\n usernameAlert.setText(\" \");\n passwordAlert.setText(\" \");\n \n }",
"private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }",
"public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }",
"public Login() {\n\t\tsuper();\n\t}",
"public Login() {\n\t\tinitComponents();\n\t\tthis.setTitle(\"学生成绩管理系统-登录\");\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(null);\n\t}",
"public Login(){\n\t\tthis.setTitle(\"DSI | Sokoban\");\n\t\tvalido = false;\n\t\tthis.getContentPane().setLayout(new FlowLayout());\n\t\tcrearLabels();\n\t\tcrearBotones();\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setPreferredSize(new Dimension(250, 200));\n\t\tthis.pack();\n\t\tthis.setResizable(false);\n\t\tthis.setVisible(true);\n\t\tthis.setLocationRelativeTo(null);\n\t}",
"public LoginFormBean() {\r\n \r\n }",
"public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}",
"@RequestMapping(value = \"/user/loginForm\", method = RequestMethod.GET)\n\tpublic ModelAndView loginForm(HttpServletRequest request) {\n\t\tlog.debug(\"User login\");\n\t\tString communityId = \"-1\";\n\t\tModelAndView model=new ModelAndView(\"form/login\",\"command\",new User()); \n\t\tmodel.addObject(\"selectedCommunity\", communityId);\n\t\treturn model; \n\t}",
"public LogarSistema(FormListaContatos form) {\n initComponents();\n this.formContatos = form;\n tfLogin.requestFocus();\n }",
"public LoginFormView() {\n initComponents();\n }",
"public void premutoLogin()\n\t{\n\t\tnew _FINITO_funzione_loginGUI();\n\t}",
"private Component createLogin() {\n CustomLayout custom = new CustomLayout(\"../../sampler/layouts/examplecustomlayout\");\n\n // Create components and bind them to the location tags\n // in the custom layout.\n username = new TextField();\n custom.addComponent(username, \"username\");\n\n password = new PasswordField();\n custom.addComponent(password, \"password\");\n\n Button ok = new Button(\"Login\");\n custom.addComponent(ok, \"okbutton\");\n\n // Add login listener\n ok.addListener(this);\n\n return custom;\n\n }",
"Login(String strLogin)\n {\n \tsetLogin(strLogin);\n }",
"public LoginFarmacia() {\n initComponents();\n }",
"public TelaLogin() {\n initComponents();\n }",
"public TelaLogin() {\n initComponents();\n }",
"@Override\n\tpublic ActionResult login(PortalForm form, HttpServletRequest request) throws SQLException {\n\t\treturn null;\n\t}",
"public JanelaLogin() {\n \t\n \tConexao c = new Conexao();\n \t\n \t\n initComponents();\n }",
"public T01Login() {\n initComponents();\n btnMenu.setVisible(false);\n }",
"protected Response login() {\n return login(\"\");\n }",
"public Login() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public frm_LoginPage() {\n initComponents();\n setIcon();\n txt_userName.setText(\"\");\n txt_userName.requestFocus();\n password_password.setText(\"\");\n }",
"public LoginProfesor() {\n initComponents();\n }",
"public static void loginForm(final LinearLayout login_form, final Context context) {\n TextView registration_link = (TextView) login_form.findViewById(R.id.registration);\n registration_link.setPaintFlags(registration_link.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);\n registration_link.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Config.context, CreateAccountActivity.class);\n Config.context.startActivity(intent);\n }\n });\n\n /* reset password link handler */\n TextView reset_link = (TextView) login_form.findViewById(R.id.reset_password);\n reset_link.setPaintFlags(reset_link.getPaintFlags() | Paint.UNDERLINE_TEXT_FLAG);\n reset_link.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(Config.context, ResetPasswordActivity.class);\n Config.context.startActivity(intent);\n }\n });\n\n /* fix the password field font */\n final EditText password = (EditText) login_form.findViewById(R.id.password);\n password.setTypeface(Typeface.DEFAULT);\n\n if (Utils.getCacheConfig(\"account_login_mode\").equals(\"email\")) {\n EditText username = (EditText) login_form.findViewById(R.id.username);\n username.setHint(Lang.get(\"android_hint_email\"));\n }\n\n /* login button handler */\n Button login_button = (Button) login_form.findViewById(R.id.login);\n login_button.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(View v) {\n boolean error = false;\n\n /* validate fields */\n EditText username = (EditText) login_form.findViewById(R.id.username);\n if (username.getText().toString().isEmpty()) {\n username.setError(Lang.get(\"no_field_value\"));\n error = true;\n }\n\n if (password.getText().toString().isEmpty()) {\n password.setError(Lang.get(\"no_field_value\"));\n error = true;\n }\n\n if (!error) {\n final String passwordHash = password.getText().toString();\n\n /* show progressbar */\n final ProgressDialog login_progress = ProgressDialog.show(Config.context, null, Lang.get(\"loading\"));\n\n /* build request url */\n HashMap<String, String> params = new HashMap<String, String>();\n params.put(\"username\", username.getText().toString());\n params.put(\"password\", passwordHash);\n final String url = Utils.buildRequestUrl(\"loginAttempt\", params, null);\n\n /* do request */\n AsyncHttpClient client = new AsyncHttpClient();\n client.get(url, new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] server_response) {\n // called when response HTTP status is \"200 OK\"\n try {\n String response = String.valueOf(new String(server_response, \"UTF-8\"));\n login_progress.dismiss();\n /* parse xml response */\n XMLParser parser = new XMLParser();\n Document doc = parser.getDomElement(response, url);\n\n if (doc == null) {\n Dialog.simpleWarning(Lang.get(\"returned_xml_failed\"), context);\n } else {\n NodeList accountNode = doc.getElementsByTagName(\"account\");\n Element element = (Element) accountNode.item(0);\n\n /* list of status to offer \"Contact Us\" page */\n String status = Utils.getNodeByName(element, \"status\");\n String[] tmp_status = {\"approval\", \"pending\", \"trash\"};\n List<String> contact_status = Utils.string2list(tmp_status);\n\n /* error */\n if (status.equals(\"error\")) {\n Dialog.simpleWarning(Lang.get(\"dialog_login_error\"), context);\n password.setText(\"\");\n } else if (status.equals(\"incomplete\")) {\n Dialog.simpleWarning(Lang.get(\"dialog_login_\" + status + \"_info\"), context);\n }\n /* status matched contact us message logic */\n else if (contact_status.indexOf(status) >= 0) {\n DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Config.context, SendFeedbackActivity.class);\n intent.putExtra(\"selection\", \"contact_us\");\n Config.context.startActivity(intent);\n }\n };\n\n Dialog.CustomDialog(Lang.get(\"dialog_login_\" + status), Lang.get(\"dialog_login_\" + status + \"_info\"), context, listener);\n }\n\n /* do login if account */\n if (!Utils.getNodeByName(element, \"id\").isEmpty()) {\n /* hide keyboard */\n Utils.hideKeyboard(login_form.findFocus());\n\n confirmLogin(accountNode);\n }\n }\n\n } catch (UnsupportedEncodingException e1) {\n\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n // called when response HTTP status is \"4XX\" (eg. 401, 403, 404)\n }\n });\n }\n }\n });\n\n /* fb button handler */\n String facebook_id = Config.context.getString(R.string.app_id);\n if (Utils.getCacheConfig(\"facebookConnect_plugin\").equals(\"1\") && !facebook_id.isEmpty()) {\n LoginButton fbLogin = (LoginButton) login_form.findViewById(R.id.fbLogin);\n fbLogin.setCompoundDrawablesWithIntrinsicBounds(null, null, null, null);\n\n /* set related items visible */\n fbLogin.setVisibility(View.VISIBLE);\n login_form.findViewWithTag(\"fbview\").setVisibility(View.VISIBLE);\n\n callbackManager = CallbackManager.Factory.create();\n\n fbLogin.setReadPermissions(Arrays.asList(\"public_profile\", \"email\"));\n fbLogin.registerCallback(callbackManager, new FacebookCallback<LoginResult>() {\n\n @Override\n public void onSuccess(LoginResult loginResult) {\n GraphRequest request = GraphRequest.newMeRequest(loginResult.getAccessToken(),\n new GraphRequest.GraphJSONObjectCallback() {\n\n @Override\n public void onCompleted(JSONObject object, GraphResponse response) {\n // Application code\n\t\t\t\t\t\t\t\t\t/*Boolean ver = Boolean.parseBoolean(object.optString(\"verified\"));\n\t\t\t\t\t\t\t\t\tif ( !ver ) {\n\t\t\t\t\t\t\t\t\t\tDialog.simpleWarning(Lang.get(\"facebook_not_verified\"), context);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse */\n if (object != null) {\n final HashMap<String, String> formData = new HashMap<String, String>();\n formData.put(\"username\", object.optString(\"name\"));\n formData.put(\"password\", \"will-be-generated\");\n formData.put(\"email\", object.optString(\"email\"));\n formData.put(\"account_type\", \"will-be-set\");\n formData.put(\"fb_id\", object.optString(\"id\"));\n formData.put(\"first_name\", object.optString(\"first_name\"));\n formData.put(\"last_name\", object.optString(\"last_name\"));\n\n /* show progressbar */\n final ProgressDialog progress = ProgressDialog.show(Config.context, null, Lang.get(\"loading\"));\n\n /* do request */\n AsyncHttpClient client = new AsyncHttpClient();\n client.setTimeout(30000); // set 30 seconds for this task\n\n final String url = Utils.buildRequestUrl(\"createAccount\");\n client.post(url, Utils.toParams(formData), new AsyncHttpResponseHandler() {\n\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] server_response) {\n // called when response HTTP status is \"200 OK\"\n try {\n String response = String.valueOf(new String(server_response, \"UTF-8\"));\n /* hide progressbar */\n progress.dismiss();\n\n /* parse xml response */\n XMLParser parser = new XMLParser();\n Document doc = parser.getDomElement(response, url);\n\n if (doc == null) {\n Dialog.simpleWarning(Lang.get(\"returned_xml_failed\"), context);\n } else {\n NodeList errorsNode = doc.getElementsByTagName(\"errors\");\n\n /* handle errors */\n if (errorsNode.getLength() > 0) {\n Element element = (Element) errorsNode.item(0);\n NodeList errors = element.getChildNodes();\n\n if (errors.getLength() > 0) {\n Element error = (Element) errors.item(0);\n String key_error = error.getTextContent();\n if (key_error.equals(\"fb_email_exists\")) {\n checkFbPassword(formData, context);\n } else {\n Dialog.simpleWarning(Lang.get(key_error), context);\n }\n LoginManager.getInstance().logOut();\n }\n }\n /* process login */\n else {\n NodeList accountNode = doc.getElementsByTagName(\"account\");\n confirmLogin(accountNode);\n }\n }\n\n } catch (UnsupportedEncodingException e1) {\n\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] errorResponse, Throwable e) {\n // called when response HTTP status is \"4XX\" (eg. 401, 403, 404)\n }\n });\n } else {\n Log.d(\"FD\", \"FB connect no user\");\n }\n }\n });\n Bundle parameters = new Bundle();\n parameters.putString(\"fields\", \"id,name,email,gender,first_name,last_name,verified,birthday\");\n request.setParameters(parameters);\n request.executeAsync();\n\n }\n\n @Override\n public void onCancel() {\n\n }\n\n @Override\n public void onError(FacebookException e) {\n\n }\n });\n }\n }",
"public Page_Home doDefaultLogin() {\n\t\tLogStatus.info(\"Logging in with username :: \\'\" + TestUtils.getValue(\"username\") + \"\\' and password :: \\'\"\n\t\t\t\t+ TestUtils.getValue(\"password\") + \"\\'\");\n\t\tDriverManager.getDriver().findElement(By.name(\"username\")).sendKeys(TestUtils.getValue(\"username\"));\n\t\tDriverManager.getDriver().findElement(By.name(\"password\")).sendKeys(TestUtils.getValue(\"password\"));\n\t\tDriverManager.getDriver().findElement(By.id(\"Registration Desk\")).click();\n\t\tDriverManager.getDriver().findElement(By.id(\"loginButton\")).click();\n\n\t\treturn new Page_Home();\n\n\t}",
"public Login() {\r\n\t\tinitialize();\r\n\t}",
"public void LoginButton() {\n\t\t\r\n\t}",
"public Login() {\n initComponents();\n lblstar.setVisible(false); // hide the red star that indicates that the user didnt fill in a form\n lblstar1.setVisible(false);\n }",
"public Login() {\n }",
"private void submitForm() {\n // Build list params\n List<NameValuePair> list = new ArrayList<>();\n list.add(new BasicNameValuePair(\"tag\", AppConfig.TAG_LOGIN));\n list.add(new BasicNameValuePair(\"username\", editTextLogin.getText().toString()));\n list.add(new BasicNameValuePair(\"password\", editTextPassword.getText().toString()));\n\n ConnectionTask connectionTask = new ConnectionTask(this, list);\n connectionTask.execute();\n }",
"@Override\r\n\tpublic void login() {\n\t\t\r\n\t}",
"public Accountant_login() {\n initComponents();\n }",
"@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}",
"public Login() {\n\n }",
"public static void main(String[] args) {\n\t\tLoginForm lform = new LoginForm();\r\n\t\t\r\n\t}",
"public Login() {\r\n\t\ttry {\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\tsetTitle(\"Login\");\r\n\t\tsetResizable(false);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetSize(300,380);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(null);\r\n\t\t\r\n\t\ttxtName = new JTextField();\r\n\t\ttxtName.setBounds(48, 66, 197, 20);\r\n\t\tcontentPane.add(txtName);\r\n\t\ttxtName.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"Name\");\r\n\t\tlblNewLabel.setFont(new Font(\"Times New Roman\", Font.BOLD, 11));\r\n\t\tlblNewLabel.setBounds(124, 41, 46, 14);\r\n\t\tcontentPane.add(lblNewLabel);\r\n\t\t\r\n\t\ttxtIp = new JTextField();\r\n\t\ttxtIp.setBounds(48, 174, 197, 20);\r\n\t\tcontentPane.add(txtIp);\r\n\t\ttxtIp.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblIpAddress = new JLabel(\"IP Address\");\r\n\t\tlblIpAddress.setFont(new Font(\"Times New Roman\", Font.BOLD, 11));\r\n\t\tlblIpAddress.setBounds(102, 134, 74, 14);\r\n\t\tcontentPane.add(lblIpAddress);\r\n\t\t\r\n\t\tJButton btnLogin = new JButton(\"Login\");\r\n\t\tbtnLogin.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\t name = txtName.getText();\r\n\t\t\t\t ip=txtIp.getText();\r\n\t\t\t\t \r\n\t\t\t\t\r\n\t\t\t\tlogin();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLogin.setBounds(102, 248, 89, 23);\r\n\t\tcontentPane.add(btnLogin);\r\n\t}",
"public String login() {\n try {\n HttpServletRequest request = (HttpServletRequest) FacesContext.getCurrentInstance().getExternalContext().getRequest();\n request.login(name, password);\n initUser();\n request.getSession().setAttribute(\"current_user\", this);\n return \"/index?faces-redirect=true\";\n } catch (ServletException e) {\n FacesContext context = FacesContext.getCurrentInstance();\n FacesMessage message = new FacesMessage(\"Wrong login or password\");\n message.setSeverity(FacesMessage.SEVERITY_ERROR);\n context.addMessage(\"login\", message);\n }\n return \"/pages/login.xhtml\";\n }",
"public ControladorLogin() { }",
"public void login() {\n presenter.login(username.getText().toString(), password.getText().toString());\n }",
"public Login()\r\n\t{\r\n\t\tthis.name=name;\r\n\t\tthis.dob=dob;\r\n\t\tthis.nationality=nationality;\r\n\t\tthis.location=location;\r\n\t\tthis.phno=phno;\r\n\t\tthis.gender=gender;\r\n\t\tthis.jobtype=jobtype;\r\n\t\tthis.experience=experience;\r\n\t\tthis.salary=salary;\r\n\t\t\r\n\t\tthis.uname=uname;\r\n\t\tthis.password=password;\r\n\t\t\r\n\t\tthis.notification=notification;\r\n\t}",
"public AdminLogin() {\n initComponents();\n }",
"public Login() {\n initComponents();\n this.setTitle(\"Login\");\n setLocationRelativeTo(null);\n }",
"public static void Login() \r\n\t{\n\t\t\r\n\t}",
"@AutoGenerated\r\n\tprivate Panel buildPnlLogin() {\n\t\tpnlLogin = new Panel();\r\n\t\tpnlLogin.setImmediate(false);\r\n\t\tpnlLogin.setWidth(\"-1px\");\r\n\t\tpnlLogin.setHeight(\"500px\");\r\n\t\t\r\n\t\t// layoutLogin\r\n\t\tlayoutLogin = buildLayoutLogin();\r\n\t\tpnlLogin.setContent(layoutLogin);\r\n\t\t\r\n\t\treturn pnlLogin;\r\n\t}",
"public static void login() {\n\t\trender();\n\t}",
"public login() {\n initComponents();\n setTitle(\"COLLAGE MANAGEMENT SYSTEM\");\n }",
"void registerNewUser(String login, String name, String password, String matchingPassword,\n String email);",
"private void makeLogin() {\n if (enableLoginActivity && mAuth.getCurrentUser() == null) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n }\n else if (!enableLoginActivity) {\n user = new User(\"johnDoe\", \"[email protected]\", \"1234\");\n }\n }",
"@RequestMapping(value = \"/login\", method = RequestMethod.GET)\n\tpublic String loginForm() {\n\t\treturn \"login\";\n\t}",
"public SLogin() {\r\n initComponents();\r\n }",
"@RequestMapping(value = \"\", method = RequestMethod.POST)\n public String login(@ModelAttribute @Valid LoginForm loginForm, Errors errors, HttpServletRequest request, Model model) {\n\n if (errors.hasErrors()) {\n model.addAttribute(\"title\", \"Login\");\n return \"login/index\";\n }\n\n User theUser = userDao.findByUsername(loginForm.getUsername());\n String password = loginForm.getPassword();\n\n if (theUser == null) {\n errors.rejectValue(\"username\", \"user.invalid\", \"The given username does not exist\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n model.addAttribute(\"title\", \"Login\");\n return \"login/index\";\n }\n\n if (!theUser.isMatchingPassword(password)) {\n errors.rejectValue(\"password\", \"password.invalid\", \"Invalid password\");\n model.addAttribute(\"sessionActive\", isSessionActive(request.getSession()));\n model.addAttribute(\"title\", \"Login\");\n return \"login/index\";\n }\n\n setUserInSession(request.getSession(), theUser);\n\n return \"redirect:/home\";\n }",
"public MainPage submitForm() {\n LOGGER.info(\"Clicked the button 'LOGIN'\");\n clickOnElement(loginButtonLocator);\n return MainPage.Instance;\n }",
"public LoginPage goToLoginPage() {\n loginButton.click();\n return new LoginPage();\n }",
"public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }",
"@GetMapping(\"login\")\n public String loginForm(Model model){\n model.addAttribute(\"user\", new User());\n return \"login_form\";\n }",
"private LoginMenu() {\n\n\t\t\n\t\t/**\n\t\t * Fenêtre positionnée comme tableau de ligne/colonne avec un espace en hauteur\n\t\t * et largeur\n\t\t **/\n\n\t\tmenuLogin = new JPanel(new GridLayout(2, 1, 0, 0));\n\t\tmenuLogin.setBackground(new Color(200, 100, 100));\n\n\t\t/**\n\t\t * Ajout du login et mot de passe via un tableau\n\t\t **/\n\n\t\tmenuLogin.add(InitialisationDuMenu());\n\t\tmenuLogin.add(InitDesBouttons());\n\t}",
"private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}",
"public Login() {\n initComponents();\n txtAccountStatus.setVisible(false); \n showDate(); // Class para sa Date\n showTime(); // Class para sa Time\n }",
"private void login() {\r\n\r\n if (String.valueOf(login_usernameTextField.getText()).equals(\"\"))\r\n JOptionPane.showMessageDialog\r\n (null, \"Must Enter A Username\");\r\n\r\n else if (String.valueOf(login_passwordField.getPassword()).equals(\"\"))\r\n JOptionPane.showMessageDialog\r\n (null, \"Must Enter A Password\");\r\n\r\n else if (MainGUI.pimsSystem.staff_exists(login_usernameTextField.getText(), String.valueOf(login_passwordField.getPassword()))) {\r\n remove(loginPanel);\r\n add(tabbedPane);\r\n JOptionPane.showMessageDialog\r\n (null, \"Login Successful\");\r\n repaint();\r\n revalidate();\r\n\r\n // reset username and password fields\r\n login_usernameTextField.setText(\"\");\r\n login_passwordField.setText(\"\");\r\n\r\n } else\r\n JOptionPane.showMessageDialog\r\n (null, \"Invalid Password or Username\");\r\n }"
]
| [
"0.7087889",
"0.69521654",
"0.68040574",
"0.6786566",
"0.6757266",
"0.67409855",
"0.6692699",
"0.66887593",
"0.66297597",
"0.66144294",
"0.6594864",
"0.6585462",
"0.6571206",
"0.652989",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6512904",
"0.6511106",
"0.6493877",
"0.64888525",
"0.6470119",
"0.6451736",
"0.64463544",
"0.64460826",
"0.643301",
"0.6430326",
"0.6427466",
"0.6391508",
"0.63852894",
"0.63684475",
"0.63573116",
"0.6349549",
"0.63357174",
"0.6334666",
"0.6316488",
"0.6316122",
"0.62930346",
"0.62921256",
"0.62838525",
"0.62787145",
"0.6275789",
"0.6255799",
"0.62498945",
"0.6231828",
"0.6231828",
"0.6230601",
"0.6228116",
"0.62280226",
"0.6227178",
"0.62198436",
"0.62123543",
"0.6199966",
"0.6195959",
"0.6195013",
"0.61878127",
"0.6186794",
"0.61863106",
"0.6185669",
"0.6184402",
"0.61804533",
"0.6172571",
"0.6163104",
"0.61630136",
"0.6161118",
"0.61541694",
"0.61526215",
"0.6127155",
"0.61247045",
"0.61190766",
"0.6114593",
"0.6114388",
"0.61124504",
"0.61084765",
"0.61030304",
"0.6093278",
"0.60842264",
"0.60815674",
"0.6080996",
"0.60735124",
"0.6052404",
"0.60505736",
"0.6050076",
"0.6048118",
"0.6046352",
"0.60428697",
"0.60428697",
"0.60423005",
"0.6042082"
]
| 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
loginBox = new javax.swing.JTextField();
loginButton = new javax.swing.JButton();
senhaBox = new javax.swing.JPasswordField();
contaInvalida = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
setOpaque(false);
addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
formKeyReleased(evt);
}
});
jPanel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 3, true));
jPanel1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
jPanel1KeyReleased(evt);
}
});
jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel1.setText("Login:");
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel2.setText("Senha:");
loginBox.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyReleased(java.awt.event.KeyEvent evt) {
loginBoxKeyReleased(evt);
}
});
loginButton.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
loginButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/images/login.png"))); // NOI18N
loginButton.setText("Login");
loginButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
loginButtonActionPerformed(evt);
}
});
senhaBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
senhaBoxActionPerformed(evt);
}
});
senhaBox.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
senhaBoxKeyPressed(evt);
}
public void keyReleased(java.awt.event.KeyEvent evt) {
senhaBoxKeyReleased(evt);
}
});
contaInvalida.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
contaInvalida.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel3.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Images/loginbig.png"))); // NOI18N
jLabel3.setText("Login no Sistema");
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(contaInvalida, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(senhaBox, javax.swing.GroupLayout.PREFERRED_SIZE, 238, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(loginBox)))
.addGap(0, 0, Short.MAX_VALUE)))
.addContainerGap())
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(loginButton, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(95, 95, 95))
);
jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jLabel1, jLabel2});
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(loginBox, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(senhaBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addComponent(loginButton)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(contaInvalida, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {contaInvalida, jLabel1, jLabel2, loginBox, senhaBox});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(290, 290, 290)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(290, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(192, 192, 192)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(191, Short.MAX_VALUE))
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public 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 kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public MusteriEkle() {\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 UploadForm() {\n initComponents();\n }",
"public FormHorarioSSE() {\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 JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\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.73197734",
"0.72914416",
"0.72914416",
"0.72914416",
"0.72862023",
"0.72487676",
"0.7213741",
"0.7207628",
"0.7196503",
"0.7190263",
"0.71850693",
"0.71594703",
"0.7147939",
"0.7093137",
"0.70808756",
"0.70566356",
"0.6987119",
"0.69778043",
"0.6955563",
"0.6953879",
"0.6945632",
"0.6943359",
"0.69363457",
"0.6931661",
"0.6927987",
"0.6925778",
"0.6925381",
"0.69117576",
"0.6911631",
"0.68930036",
"0.6892348",
"0.6890817",
"0.68904495",
"0.6889411",
"0.68838716",
"0.6881747",
"0.6881229",
"0.68778914",
"0.6876094",
"0.6874808",
"0.68713",
"0.6859444",
"0.6856188",
"0.68556464",
"0.6855074",
"0.68549985",
"0.6853093",
"0.6853093",
"0.68530816",
"0.6843091",
"0.6837124",
"0.6836549",
"0.6828579",
"0.68282986",
"0.68268806",
"0.682426",
"0.6823653",
"0.6817904",
"0.68167645",
"0.68102163",
"0.6808751",
"0.680847",
"0.68083245",
"0.6807882",
"0.6802814",
"0.6795573",
"0.6794048",
"0.6792466",
"0.67904556",
"0.67893785",
"0.6789265",
"0.6788365",
"0.67824304",
"0.6766916",
"0.6765524",
"0.6765339",
"0.67571205",
"0.6755559",
"0.6751974",
"0.67510027",
"0.67433685",
"0.67390305",
"0.6737053",
"0.673608",
"0.6733373",
"0.67271507",
"0.67262334",
"0.67205364",
"0.6716807",
"0.67148036",
"0.6714143",
"0.67090863",
"0.67077154",
"0.67046666",
"0.6701339",
"0.67006236",
"0.6699842",
"0.66981244",
"0.6694887",
"0.6691074",
"0.66904294"
]
| 0.0 | -1 |
Creates new form UserManagement | public UserManagement(java.awt.Frame parent, boolean modal) {
super(parent, modal);
initComponents();
finalizeComponents();
getUserList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@RequestMapping(value = { \"/newuser\" }, method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String newUser(ModelMap model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\tmodel.addAttribute(\"edit\", false);\n\t\treturn \"registration\";\n\t}",
"@RequestMapping(value = { \"/new\" }, method = RequestMethod.GET)\r\n public String newuser(ModelMap model) {\r\n User user = new User();\r\n model.addAttribute(\"user\", user);\r\n model.addAttribute(\"edit\", false);\r\n return \"registration\";\r\n\r\n }",
"public String create() {\r\n\t\tuserService.create(userAdd);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"create\";\r\n\t}",
"@RequestMapping(value = {\"/register\"}, method = RequestMethod.GET)\n public String newUser(ModelMap model) {\n User user = new User();\n Customer customer = new Customer();\n List<UserProfile> userProfileList = new ArrayList();\n user.setCustomer(customer);\n user.setUserProfileList(userProfileList);\n model.addAttribute(\"user\", user);\n model.addAttribute(\"edit\", false);\n model.addAttribute(\"action\", \"newuser\");\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n return \"registration\";\n }",
"@RequestMapping(value = \"/createUser\", method = RequestMethod.GET)\n\tpublic ModelAndView createUser(ModelMap model) throws CustomException {\n\n\t\tmodel.put(\"endUserForm\", endUserForm);\n\t\tCollection<EndUser> endUsers = endUserDAOImpl.getList();\n\t\tList<Role> roles = endUserDAOImpl.findAll();\n\t\tmodel.put(\"roles\", roles);\n\n\t\tmodel.put(\"endUsers\", endUsers);\n\t\treturn new ModelAndView(\"createUser\", \"model\", model);\n\t}",
"@GetMapping(\"/userAddForm\")\n\tpublic String userAddForm(Model theModel) {\n\t\tUser theUser = new User();\n\t\ttheModel.addAttribute(\"user\", theUser);\n\t\treturn \"registration-form\";\n\t}",
"@FXML\n\tpublic void createUser(ActionEvent event) {\n\t\tString empty = \"\";\n\t\tString name = txtUserNames.getText();\n\t\tString lastName = txtUserSurnames.getText();\n\t\tString id = txtUserId.getText();\n\t\tString username = txtUserUsername.getText();\n\t\tString password = PfUserPassword.getText();\n\n\t\tif (!name.equals(empty) && !lastName.equals(empty) && !id.equals(empty) && !username.equals(empty)\n\t\t\t\t&& !password.equals(empty)) {\n\t\t\tcreateSystemUser(name, lastName, id, username, password);\n\t\t\ttxtUserNames.setText(\"\");\n\t\t\ttxtUserSurnames.setText(\"\");\n\t\t\ttxtUserId.setText(\"\");\n\t\t\ttxtUserUsername.setText(\"\");\n\t\t\tPfUserPassword.setText(\"\");\n\t\t\t// labelUserMessage.setText(\"The user has been created\");\n\t\t} else if (name.equals(empty) && lastName.equals(empty) && id.equals(empty) && username.equals(empty)\n\t\t\t\t&& password.equals(empty)) {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.setContentText(\"Todos los campos de texto deben ser llenados\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"@RequestMapping(\"/createnewuser\")\r\n\tpublic ModelAndView userCreated(@ModelAttribute(\"rg\") Register reg) {\r\n\t\t\r\n\t\tBigInteger num = reg.getMb_no();\r\n\t\tSystem.out.println(\"mbno=\"+num.toString());\r\n\t\t//Doing the entry of New User in Spring_Users table\r\n\t\t\r\n\t\tString username = reg.getEmail_id();\r\n\t\tString password = reg.getPassword();\r\n\t\tSpringUsers su = new SpringUsers();\r\n\t\tsu.setUsername(username);\r\n\t\tsu.setPassword(password);\r\n\t\tsu.setEnabled(1);\r\n\t\tSystem.out.println(\"username=\"+username);\r\n\t\tSystem.out.println(\"password=\"+password);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString r = reg.getUser_type();\r\n\t\t\r\n\t\t//if(r.equals(\"ROLE_INDIVIDUAL\"))\r\n\t\t\t//return new ModelAndView(\"individualhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BROKER\"))\r\n\t//\t\treturn new ModelAndView(\"brokerhomepage\");\r\n\t\t//if(r.equals(\"ROLE_BUILDER\"))\r\n\t\t//\treturn new ModelAndView(\"builderhomepage\");\r\n\t\t\r\n\t//\tint i = susvc.entryOfNewUser(su);\r\n\t\t\r\n\t\tint j = regsvc.registerNewUser(reg);\r\n\t\t \r\n\t\treturn new ModelAndView(\"usercreated\");\r\n\r\n\t}",
"@GetMapping(\"/showAddFormUser\")\n\tpublic String showAddForm(Model model) {\n\t\tUser user = new User();\n\t\tmodel.addAttribute(\"user\", user);\n\t\t\n\t\t// add page title\n\t\tmodel.addAttribute(\"pageTitle\", \"Add User\");\n\t\treturn \"user-form\";\n\t}",
"@RequestMapping(\"/newuser\")\r\n\tpublic ModelAndView newUser() {\t\t\r\n\t\tRegister reg = new Register();\r\n\t\treg.setUser_type(\"ROLE_INDIVIDUAL\");\r\n\t\treg.setEmail_id(\"[email protected]\");\r\n\t\treg.setFirst_name(\"First Name\");\r\n\t\treg.setCity(\"pune\");\r\n\t\treg.setMb_no(new BigInteger(\"9876543210\"));\r\n\t\treturn new ModelAndView(\"register\", \"rg\", reg);\r\n\t}",
"@RequestMapping(value = \"/displayUserForm\", method = RequestMethod.GET)\n public String displayUserForm(Model model) {\n User user = new User();\n model.addAttribute(\"user\", user);\n return \"admin/addUser\";\n }",
"public NewUser() {\n initComponents();\n }",
"@FXML\n private void openCreateUser(ActionEvent event) {\n CreateUserController createusercontroller = new CreateUserController();\n User user = createusercontroller.openCreateUser(event, roleTap);\n\n if (user != null) {\n userList.add(user);\n UsermanagementUtilities.setFeedback(event, user.getName().getFirstName()+LanguageHandler.getText(\"userCreated\"), true);\n } else {\n UsermanagementUtilities.setFeedback(event, LanguageHandler.getText(\"userNotCreated\"), false);\n\n }\n }",
"public void newuserclicked(View view) {\n Intent myuserIntent = new Intent(this, UserCreation.class);\n startActivity(myuserIntent);\n }",
"public void createUser() {\r\n\t\tif(validateUser()) {\r\n\t\t\t\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"INSERT INTO t_user (nom,prenom,userName,pass,tel,type,status) values(?,?,?,?,?,?,?)\");\r\n\t\t\t\tps.setString(1, this.getNom());\r\n\t\t\t\tps.setString(2, this.getPrenom());\r\n\t\t\t\tps.setString(3, this.getUserName());\r\n\t\t\t\tps.setString(4, this.getPassword());\r\n\t\t\t\tps.setInt(5, Integer.parseInt(this.getTel().trim()));\r\n\t\t\t\tps.setString(6, this.getType());\r\n\t\t\t\tps.setBoolean(7, true);\r\n\t\t\t\tps.executeUpdate();\r\n\t\t\t\tnew Message().error(\"Fin d'ajout d'utilisateur\");\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tnew Message().error(\"Echec d'ajout d'utilisateur\");\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closePrepareStatement(ps);\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"@RequestMapping(params = \"new\", method = RequestMethod.GET)\n\t@PreAuthorize(\"hasRole('ADMIN')\")\n\tpublic String createProductForm(Model model) { \t\n \t\n\t\t//Security information\n\t\tmodel.addAttribute(\"admin\",security.isAdmin()); \n\t\tmodel.addAttribute(\"loggedUser\", security.getLoggedInUser());\n\t\t\n\t model.addAttribute(\"product\", new Product());\n\t return \"products/newProduct\";\n\t}",
"@RequestMapping(value = \"/addNewUser.html\", method = RequestMethod.GET)\n\tpublic ModelAndView addNewUser() {\n\n\t\treturn new ModelAndView(\"newUser\", \"form\", new FbUser());\n\n\t}",
"@RequestMapping( method = RequestMethod.GET )\n\tpublic String showUserForm( ModelMap model, HttpServletRequest request ) {\n\t\tUsuario usuario = new Usuario();\n\t\tmodel.addAttribute( \"usuario\", usuario );\n\t\treturn \"Formulario\";\n\t}",
"public void addUserBtn(){\n\t\t\n\t\t// TODO: ERROR CHECK\n\t\t\n\t\tUserEntry user = new UserEntry(nameTF.getText(), (String)usertypeCB.getValue(), emailTF.getText());\n\t\tAdminController.userEntryList.add(user);\n\t\t\n\t\t\n\t\t// Create a UserEntry and add it to the observable list\n\t\tAdminController.userList.add(user);\t\t\n\t\t\n\t //AdminController.adminTV.setItems(AdminController.userList);\n\t\t\n\t\t//Close current stage\n\t\tAdminController.addUserStage.close();\n\t\t\n\t}",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public void new_user(){\n }",
"public void createUser() throws ServletException, IOException {\n\t\tString fullname = request.getParameter(\"fullname\");\n\t\tString password = request.getParameter(\"password\");\n\t\tString email = request.getParameter(\"email\");\n\t\tUsers getUserByEmail = productDao.findUsersByEmail(email);\n\t\t\n\t\tif(getUserByEmail != null) {\n\t\t\tString errorMessage = \"we already have this email in database\";\n\t\t\trequest.setAttribute(\"message\", errorMessage);\n\t\t\t\n\t\t\tString messagePage = \"message.jsp\";\n\t\t\tRequestDispatcher requestDispatcher = request.getRequestDispatcher(messagePage);\n\t\t\trequestDispatcher.forward(request, response);\n\t\t}\n\t\t// create a new instance of users class;\n\t\telse {\n\t\t\tUsers user = new Users();\n\t\t\tuser.setPassword(password);\n\t\t\tuser.setFullName(fullname);\n\t\t\tuser.setEmail(email);\n\t\t\tproductDao.Create(user);\n\t\t\tlistAll(\"the user was created\");\n\t\t}\n\n\t\t\n\t}",
"@RequestMapping(\"Home1\")\r\n\tpublic String createUser1(Model m) \r\n\t{\n\t\tm.addAttribute(\"employee\",new Employee());\r\n\t\treturn \"register\";//register.jsp==form action=register\r\n\t}",
"public String createUserAction()throws Exception{\n\t\tString response=\"\";\n\t\tresponse=getService().getUserMgmtService().createNewUser(\n\t\t\t\tgetAuthBean().getUserName(),\n\t\t\t\tgetAuthBean().getFirstName(),\n\t\t\t\tgetAuthBean().getLastName(),\n\t\t\t\tgetAuthBean().getEmailId(),\n\t\t\t\tgetAuthBean().getRole()\n\t\t);\n\t\tgetAuthBean().setResponse(response);\n\t\tinputStream = new StringBufferInputStream(response);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}",
"public ManageUser() {\r\n \t\tinitComponents();\r\n \t\taddActionListener();\r\n \t}",
"private void createNewUser() {\n ContentValues contentValues = new ContentValues();\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.GENDER, getSelectedGender());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.PIN, edtConfirmPin.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.LAST_NAME, edtLastName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.FIRST_NAME, edtFirstName.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.STATUS, spnStatus.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.DATE_OF_BIRTH, edtDateOfBirth.getText().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.BLOOD_GROUP, spnBloodGroup.getSelectedItem().toString().trim());\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.IS_DELETED, \"N\");\n contentValues.put(DataBaseConstants.Constants_TBL_PATIENTS.MOBILE_NUMBER, edtMobileNumber.getText().toString());\n contentValues.put(DataBaseConstants.Constants_TBL_CATEGORIES.CREATE_DATE, Utils.getCurrentDateTime(Utils.DD_MM_YYYY));\n\n dataBaseHelper.saveToLocalTable(DataBaseConstants.TableNames.TBL_PATIENTS, contentValues);\n context.startActivity(new Intent(CreatePinActivity.this, LoginActivity.class));\n }",
"private void addNewUser() throws Exception, UnitException {\n String firstNameInput = firstName.getText();\n String lastNameInput = lastName.getText();\n String unitInput = unitID.getText();\n String accountInput = accountTypeValue;\n String passwordInput = password.getText();\n User newUserInfo;\n\n // Create user type based on the commandbox input\n switch (accountInput) {\n case \"Employee\":\n newUserInfo = new Employee(firstNameInput, lastNameInput, unitInput, passwordInput);\n break;\n case \"Lead\":\n newUserInfo = new Lead(firstNameInput, lastNameInput, unitInput, passwordInput);\n break;\n case \"Admin\":\n newUserInfo = new Admin(firstNameInput, lastNameInput, unitInput, passwordInput);\n break;\n default:\n throw new IllegalStateException(\"Unexpected value: \" + accountInput);\n }\n\n // Try adding this new user information to the database, if successful will return success prompt\n try {\n Admin.addUserToDatabase(newUserInfo);\n\n // If successful, output message dialog\n String msg = \"New User \" + firstNameInput + \" \" + lastNameInput + \" with UserID \"\n + newUserInfo.returnUserID() + \" successfully created\";\n JOptionPane.showMessageDialog(null, msg);\n\n // Reset Values\n firstName.setText(\"\");\n lastName.setText(\"\");\n unitID.setText(\"\");\n password.setText(\"\");\n } catch (UserException e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, e.getMessage());\n }\n }",
"private void newUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tString name = req.getParameter(Constants.NAME_USER);\n\t\t\tUserDB.introduceUser(name);\n\t\t\tlong id = UserDB.getUserId(name);\n\t\t\tUsuario u = new Usuario(name, Long.toString(id));\n\t\t\tout.print(gson.toJson(u));\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}",
"@RequestMapping(\"/newAppusers\")\n\tpublic ModelAndView newAppusers() {\n\t\tModelAndView mav = new ModelAndView();\n\n\t\tmav.addObject(\"appusers\", new Appusers());\n\t\tmav.addObject(\"newFlag\", true);\n\t\tmav.setViewName(\"appusers/editAppusers.jsp\");\n\n\t\treturn mav;\n\t}",
"@RequestMapping(value = \"/addNewUser.html\", method = RequestMethod.POST)\n\tpublic String newUser(@Valid FbUser user, BindingResult bindingResult) {\n\t\t\n\t\tuserData.save(user);\n\t\treturn (\"redirect:/listUsers.html\");\n\n\t}",
"@RequestMapping(value = \"/user/registrationForm\", method = RequestMethod.GET)\n\tpublic ModelAndView registrationForm(HttpServletRequest request) {\n\t\tlog.debug(\"User registration\");\n\t\tString communityId = \"-1\";\n\t\tModelAndView model=new ModelAndView(\"form/registration\",\"command\",new User()); \n\t\tmodel.addObject(\"selectedCommunity\", communityId);\n\t\treturn model; \n\t}",
"public void addNewSystemUser()\n {\n\n DietTreatmentSystemUserBO newUser = new DietTreatmentSystemUserBO();\n // default user\n newUser.setSystemUser(SystemUserController.getInstance()\n .getCurrentUser());\n // default function\n newUser.setFunction(SystemUserFunctionBO.TREATING_ASSISTANT);\n\n _dietTreatment.addSystemUsers(newUser);\n }",
"public void createUser(User user) {\n\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n lblPhoto = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n cbxRole = new javax.swing.JComboBox<>();\n txtUserID = new javax.swing.JTextField();\n txtUserName = new javax.swing.JTextField();\n txtPhone = new javax.swing.JTextField();\n txtEmail = new javax.swing.JTextField();\n btnChangePhoto = new javax.swing.JButton();\n btnClear = new javax.swing.JButton();\n btnCreate = new javax.swing.JButton();\n btnCancel = new javax.swing.JButton();\n jLabel9 = new javax.swing.JLabel();\n txtPassword = new javax.swing.JPasswordField();\n txtConfirmPassword = new javax.swing.JPasswordField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel2.setText(\"Creating New User\");\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel1.setText(\"User ID:\");\n\n lblPhoto.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n lblPhoto.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Password:\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"User Name:\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel6.setText(\"Role:\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel7.setText(\"Phone:\");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel8.setText(\"Email:\");\n\n cbxRole.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n txtUserID.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n txtUserName.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n txtPhone.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n txtEmail.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n btnChangePhoto.setText(\"Change Photo\");\n btnChangePhoto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnChangePhotoActionPerformed(evt);\n }\n });\n\n btnClear.setText(\"Clear\");\n btnClear.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnClearActionPerformed(evt);\n }\n });\n\n btnCreate.setText(\"Create\");\n btnCreate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCreateActionPerformed(evt);\n }\n });\n\n btnCancel.setText(\"Cancel\");\n btnCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCancelActionPerformed(evt);\n }\n });\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel9.setText(\"Confirm Password:\");\n\n txtPassword.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n txtConfirmPassword.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(lblPhoto, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(btnChangePhoto, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtPassword, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtUserName))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(txtUserID, javax.swing.GroupLayout.PREFERRED_SIZE, 290, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 115, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtConfirmPassword)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(cbxRole, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(txtEmail)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(btnCreate)\n .addGap(18, 18, 18)\n .addComponent(btnClear)\n .addGap(18, 18, 18)\n .addComponent(btnCancel)\n .addGap(0, 0, Short.MAX_VALUE))))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtUserID, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtUserName, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtPassword, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(15, 15, 15)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtConfirmPassword, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\n .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(cbxRole, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(btnCreate, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(btnClear, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(lblPhoto, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnChangePhoto, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(18, Short.MAX_VALUE))\n );\n\n pack();\n }",
"@PostMapping(\"/createSystemAdmin\")\n\t@PreAuthorize(\"hasRole('ROLE_SYS_ADMIN')\")\n\tpublic ResponseEntity<?> createSystemAdmin(@RequestBody RegistrationRequest userRequest, UriComponentsBuilder ucBuilder) {\n\t\ttry {\n\n\t\t return new ResponseEntity<>(this.systemAdminService.saveSystemAdmin(userRequest), HttpStatus.CREATED);\n\t\t} catch (Exception e) { \n\t\t\treturn new ResponseEntity<>(e.getMessage() + \" ovde je propalo\", HttpStatus.BAD_REQUEST);\n\t\t}\n\t}",
"public void newUser(User user);",
"public adduser() {\n initComponents();\n }",
"@RequestMapping(value = \"/admin/signup\", method = RequestMethod.GET)\n public String adminSignupPage(Model model)\n {\n\t model.addAttribute(\"adminForm\", new UserDto());\n\t return \"admin/admin-signup\";\n }",
"public void createUser(String name, String password, Boolean uBtn, Boolean eBtn){\n\t\t\n\t\tif(eBtn) {\n\t\t\tif(password.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"Please enter Password\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No password entered \" , \"Empty Password\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}else if(name.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"Please enter UserName\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No UserName entered \" , \"Empty UserName\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}else {\n\t\t\t\tEmployee e1 = new Employee(name);\n//\t\t\t\te1.setName(name);\n\t\t\t\t\n\t\t\t\tonlinestore.employeeList.put(e1, password);\n\t\t\t\tSystem.out.println(\"New Employee Created, Please login\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"New Employee Created. PLease Login Again\" , \"new Employee\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\t\n\t\t\t\tbuildEmployeeLoginGUI();\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif(uBtn) {\n\t\t\t\n\t\t\tif(password.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"Please enter Password\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No password entered \" , \"Empty Password\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}else if(name.equals(\"\")) {\n\t\t\t\tSystem.out.println(\"Please enter UserName\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No UserName entered \" , \"Empty UserName\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"User radio button pressed\");\n\t\t\t\tCustomer c1 = new Customer(name);\n\t\t\t\t//c1.setName(name);\n\t\t\t\t\n\t\t\t\tonlinestore.customerList.put(c1, password);\n\t\t\t\t//System.out.println(\"New Customer Created, Please Login\");\n\t\t\t\tJOptionPane.showMessageDialog(null, \"New Customer Created. Please Login Again \" , \"new Customer\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t\tbuildCustomerLoginGUI();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\n\t}",
"@PostMapping(\"/user/new/\")\n\tpublic userprofiles createUser(@RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.newUser(firstname, lastname, username, password, pic);\n\t}",
"@GetMapping(\"/registration\")\n public String registration(Model model) {\n \t\n model.addAttribute(\"userForm\", new User());\n\n return \"registration\";\n }",
"@GetMapping(\"/register-pro\")\n\tpublic ModelAndView goToRegisterProForm() {\n\t\t\n\t\tModelAndView mav = new ModelAndView(\"register-pro\");\n\t\tUser user = new User();\n\t\tmav.addObject(\"user\", user);\n\n\t\treturn mav;\n\t}",
"private void newUser() {\n // TODO: Initial layout\n LayoutInflater layoutInflater = LayoutInflater.from(getActivity());\n View form = layoutInflater.inflate(R.layout.form_user, null);\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(getActivity());\n alertDialogBuilder.setTitle(\"Thêm tài khoản\");\n alertDialogBuilder.setView(form);\n\n // TODO: Add controls\n editTextPhone = form.findViewById(R.id.editTextPhoneOnUserForm);\n editTextUsername = form.findViewById(R.id.editTextUsernameOnUserForm);\n editTextPassword = form.findViewById(R.id.editTextPasswordOnUserForm);\n editTextPassword2 = form.findViewById(R.id.editTextPassword2OnUserForm);\n\n // TODO: Add events\n alertDialogBuilder.setPositiveButton(\"Lưu\", null);\n alertDialogBuilder.setNegativeButton(\"Hủy\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n final AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.setOnShowListener(new DialogInterface.OnShowListener() {\n @Override\n public void onShow(final DialogInterface dialog) {\n Button buttonSave = alertDialog.getButton(AlertDialog.BUTTON_POSITIVE);\n buttonSave.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n final User user = getUser();\n if (user != null) {\n tableUser.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n if (dataSnapshot.child((user.getId())).exists()) {\n Toast.makeText(getActivity(), \"Số điện thoại đã tồn tại, xin nhập số khác\", Toast.LENGTH_LONG).show();\n } else {\n tableUser.child(user.getId()).setValue(user);\n dialog.dismiss();\n Toast.makeText(getActivity(), \"Thêm thành công\", Toast.LENGTH_LONG).show();\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }\n }\n });\n }\n });\n alertDialog.show();\n }",
"public void register(String form /* should be a Form from GUI */){\n String email = \"email\";\n String nome_completo = \"full_name\";\n Date data_nascimento = new Date(1996-10-21);\n String password = getMd5(\"password\");\n String nif = \"nif\";\n String morada = \"morada\";\n String telemovel = \"telemovel\";\n User user = new User(email);\n if (!user.exists()){\n user.setNome_completo(nome_completo);\n user.setData_nascimento(data_nascimento);\n user.setPassword(password);\n user.setNif(nif);\n user.setMorada(morada);\n user.setTelemovel(telemovel);\n user.setAdmin(FALSE);\n //System registers person\n //db.register(user)\n }\n }",
"public void createUtilisateur(UtilisateurBean u) {\n\t}",
"@GetMapping(\"/registration\")\n\t public String registration(Model model) {\n\t model.addAttribute(\"userForm\", new User());\n\t return \"registration\";\n\t }",
"public void userCreated(UserCreateCommand command) {\n\t\t}",
"private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }",
"public UserForm(){ }",
"@GetMapping(\"/register\")\r\n\tpublic String showRegistrationForm(Model theModel) {\r\n\t\ttheModel.addAttribute(\"user\", new UserCrm());\r\n\t\treturn \"registration\";\r\n\t}",
"@RequestMapping(value=\"/carryuser\", method=RequestMethod.POST)\r\n\tpublic String readProductForm(@ModelAttribute(\"usr\") User user)\r\n\t{\n\t\tuserDaoImpl.insertUser(user);\r\n\t\t\r\n\t\treturn \"home\";\r\n\t}",
"@Create\n public void create()\n {\n \n log.debug(\"Creating users and mailboxes\");\n //MailboxService ms = MMJMXUtil.getMBean(\"meldware.mail:type=MailboxManager,name=MailboxManager\", MailboxService.class);\n AdminTool at = MMJMXUtil.getMBean(\"meldware.mail:type=MailServices,name=AdminTool\", AdminTool.class);\n \n for (MeldwareUser meldwareUser : getUsers())\n {\n at.createUser(meldwareUser.getUsername(), meldwareUser.getPassword(), meldwareUser.getRoles());\n // TODO This won't work on AS 4.2\n /*Mailbox mbox = ms.createMailbox(meldwareUser.getUsername());\n for (String alias : meldwareUser.getAliases())\n {\n ms.createAlias(mbox.getId(), alias);\n }*/\n log.debug(\"Created #0 #1 #2\", meldwareUser.isAdministrator() ? \"administrator\" : \"user\", meldwareUser.getUsername(), meldwareUser.getAliases() == null || meldwareUser.getAliases().size() == 0 ? \"\" : \"with aliases \" + meldwareUser.getAliases());\n }\n }",
"public NewUsers() {\n initComponents();\n currentTimeDate();\n }",
"public void addUserUI() throws IOException {\n System.out.println(\"Add user: id;surname;first name;username;password\");\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n User user = new User(a[1], a[2], a[3], a[4], \" \");\n user.setId(Long.parseLong(a[0]));\n try\n {\n User newUser = service.addUser(user);\n if(newUser != null)\n System.out.println(\"ID already exists for \" + user.toString());\n else\n System.out.println(\"User added successfully!\");\n }\n catch (ValidationException ex)\n {\n System.out.println(ex.getMessage());\n }\n catch (IllegalArgumentException ex)\n {\n System.out.println(ex.getMessage());\n }\n }",
"public void onCreationEvent(UserCreateEvent event){\n user = new UserBean(event.getUser());\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\", \"deprecation\" })\r\n\tprotected void btnCreateactionPerformed() {\n\t\tif ((confirmpasswordcreatejTextField.getText()).equals(passwordcreatejPasswordField.getText()))\r\n\t\t{\r\n\t\t\tjava.sql.Connection conObj = JdbcConnect.createConnection();\r\n\t\t\tjava.sql.ResultSet rs = null;\r\n\t\t\ttry {\r\n\t\t\t\trs = JdbcSelectUname.selectRecordFromTable(conObj,usrname);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Internal Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tif (rs.next())\r\n\t\t\t\t{\r\n\t\t\t\t\t\tString role = (String) rolecreatejComboBox.getSelectedItem();\r\n\t\r\n\t\t\t\t\t\tjava.util.Vector add_rows = new java.util.Vector();\r\n\t\t\t\t\t\t//adding new user details to the Vector_add_rows\r\n\t\t\t\t\t\tadd_rows.add(unamecreatejTextField.getText());\r\n\t\t\t\t\t\tadd_rows.add(passwordcreatejPasswordField.getText());\r\n\t\t\t\t\t\tadd_rows.add(passHintTextField.getText());\r\n\t\t\t\t\t\tadd_rows.add(role);\r\n\t\r\n\t\t\t\t\t\tint i = JdbcCreateUser.insertRecords(conObj,add_rows);\r\n\t\r\n\t\t\t\t\t\tif (i!=1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"User@\"+unamecreatejTextField.getText()+\" not created\\nPlease try again...\", \"User@\"+unamecreatejTextField.getText()+\" error\", javax.swing.JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"User@\"+unamecreatejTextField.getText()+\" added to the system\", \"User@\"+unamecreatejTextField.getText()+\" success message\", javax.swing.JOptionPane.PLAIN_MESSAGE);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t}//rs.next() if statement;\r\n\t\r\n\t\t\t\telse {\r\n\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"Access denied! User@\"+usrname+\" not granted to create new users\", \"User@\"+usrname+\" authentication error\", javax.swing.JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t}\r\n\t\t\t} catch (HeadlessException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\telse {\r\n\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null, \"Access Denied! The given password do not match\", \"Mismatch error\", javax.swing.JOptionPane.ERROR_MESSAGE);\t\t\t\t\t\t\r\n\t\t}\t\t\t\t\r\n\t}",
"public UserDialog(JFrame parent){\n\t\t\tsuper(parent, \"New user\");\n\t\t\tadd(new JPanel(), BorderLayout.NORTH);\n\t\t\tadd(new UserDatapanel(),BorderLayout.CENTER);\n\t\t\tadd(getButtonPanel(),BorderLayout.SOUTH);\n\t\t\tsetSize(500,300);\n\t\t}",
"@RequestMapping(value = \"/register\",method = RequestMethod.GET)\r\n\tpublic String viewRegistration(Model model) { \r\n\t\tmodel.addAttribute(\"userForm\", uservalue);\r\n\t\t//UserForm Name of the model attribute under which the form object is exposed. Defaults to 'command'.\r\n\t\treturn \"Registration\";\r\n\t}",
"private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}",
"public void creatUser(String name, String phone, String email, String password);",
"public void createUser(User user);",
"public UserManagement() {\n initComponents();\n\n formatDate = new SimpleDateFormat(\"dd-MM-yyyy\");\n dc = new DBConnection();\n //dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n SetModel();\n }",
"@RequestMapping(value = \"create\", method = RequestMethod.POST)\n\tpublic String create(@ModelAttribute(\"usermodel\") User user, Errors errors)\n\t\t\tthrows NoSuchAlgorithmException, IOException {\n\t\tuser.setId(0);\n\t\tvalidator.validate(user, errors);\n\t\tif (errors.hasErrors()) {\n\t\t\treturn VIEW_DEFAULT;\n\t\t}\n\t\tuser.setCreated(new Date());\n\t\tString password = user.getPassword();\n\t\tStandardPasswordEncoder encoder = new StandardPasswordEncoder();\n String encodedPassword = encoder.encode(password);\n user.setPassword(encodedPassword);\n String uuid = UUID.randomUUID().toString();\n user.setUuid(uuid);\n user.setStatus(EnumStatus.INACTIVE.toString());\n // if there is the inactive user, update it with new data\n User userDb = userRepository.findInactiveByEmail(user.getEmail());\n if (userDb != null) {\n \tuser.setId(userDb.getId());\n }\n userRepository.save(user);\n\n // send registration email\n sendRegistrationEmail(user.getEmail(), uuid);\n\n\t\treturn VIEW_EMAIL_SENT;\n\t}",
"public frmUsuarios() {\n initComponents();\n mostrar(\"\");\n inhabilitar();\n }",
"public User createUser() {\n printer.println(\"Welcome! Enter you name and surname:\");\n printer.println(\"Name:\");\n String name = input.nextString();\n printer.println(\"Surname:\");\n String surname = input.nextString();\n return new User(name, surname);\n }",
"@RequestMapping(value = {\"/newuser\"}, method = RequestMethod.POST)\n public String saveUser(@Valid User user, BindingResult result,\n ModelMap model) {\n\n if (result.hasErrors()) {\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n return \"registration\";\n }\n\n boolean notUnique = false;\n if (!userService.isUserSSOUnique(user.getId(), user.getSsoId())) {\n model.addAttribute(\"ssoIdNotUnique\", \"Username \" + user.getSsoId()\n + \" already exists. Please fill in a different username.\");\n notUnique = true;\n }\n\n if (!customerService.isEmailUnique(user.getCustomer().getCustomerId(), user.getCustomer().getEmail())) {\n model.addAttribute(\"emailnotUnique\", \"Email \" + user.getCustomer().getEmail()\n + \" already exists. Please fill in a different email.\");\n notUnique = true;\n }\n\n if (notUnique) {\n model.addAttribute(\"action\", \"newuser\");\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n return \"registration\";\n }\n\n UserProfile userProfile = new UserProfile(new Long(1), \"USER\");\n List<UserProfile> userProfileList = new ArrayList();\n userProfileList.add(userProfile);\n user.setUserProfileList(userProfileList);\n userService.saveUser(user);\n\n model.addAttribute(\"success\", \"Dear \" + user.getSsoId() + \", you have registered successfully.\");\n model.addAttribute(\"path\", \"4; URL=/BioEShop/\");\n return \"registrationsuccess\";\n }",
"public String add() {\r\n\t\tuserAdd = new User();\r\n\t\treturn \"add\";\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\r\n private void initComponents() {\r\n\r\n createUserJButton = new javax.swing.JButton();\r\n nameJTextField = new javax.swing.JTextField();\r\n jLabel1 = new javax.swing.JLabel();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n userJTable = new javax.swing.JTable();\r\n jLabel2 = new javax.swing.JLabel();\r\n passwordJTextField = new javax.swing.JTextField();\r\n jLabel3 = new javax.swing.JLabel();\r\n employeeJComboBox = new javax.swing.JComboBox();\r\n backjButton1 = new javax.swing.JButton();\r\n jLabel5 = new javax.swing.JLabel();\r\n organizationJComboBox = new javax.swing.JComboBox();\r\n jLabel4 = new javax.swing.JLabel();\r\n roleJComboBox = new javax.swing.JComboBox();\r\n jLabel6 = new javax.swing.JLabel();\r\n\r\n setBackground(new java.awt.Color(102, 0, 102));\r\n setForeground(new java.awt.Color(102, 0, 102));\r\n setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\r\n\r\n createUserJButton.setBackground(new java.awt.Color(153, 153, 153));\r\n createUserJButton.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\r\n createUserJButton.setForeground(new java.awt.Color(51, 0, 51));\r\n createUserJButton.setText(\" CREATE >>\");\r\n createUserJButton.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 5, true));\r\n createUserJButton.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n createUserJButtonActionPerformed(evt);\r\n }\r\n });\r\n add(createUserJButton, new org.netbeans.lib.awtextra.AbsoluteConstraints(470, 660, 253, 52));\r\n\r\n nameJTextField.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 4, true));\r\n add(nameJTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(527, 529, 198, -1));\r\n\r\n jLabel1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 18)); // NOI18N\r\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel1.setText(\" USER NAME \");\r\n jLabel1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 3, true));\r\n add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 525, -1, -1));\r\n\r\n userJTable.setModel(new javax.swing.table.DefaultTableModel(\r\n new Object [][] {\r\n\r\n },\r\n new String [] {\r\n \"User Name\", \"Role\"\r\n }\r\n ) {\r\n Class[] types = new Class [] {\r\n java.lang.String.class, java.lang.String.class\r\n };\r\n boolean[] canEdit = new boolean [] {\r\n true, false\r\n };\r\n\r\n public Class getColumnClass(int columnIndex) {\r\n return types [columnIndex];\r\n }\r\n\r\n public boolean isCellEditable(int rowIndex, int columnIndex) {\r\n return canEdit [columnIndex];\r\n }\r\n });\r\n jScrollPane1.setViewportView(userJTable);\r\n if (userJTable.getColumnModel().getColumnCount() > 0) {\r\n userJTable.getColumnModel().getColumn(0).setResizable(false);\r\n userJTable.getColumnModel().getColumn(1).setResizable(false);\r\n }\r\n\r\n add(jScrollPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 150, 470, 124));\r\n\r\n jLabel2.setFont(new java.awt.Font(\"Lucida Grande\", 1, 18)); // NOI18N\r\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel2.setText(\" PASSWORD \");\r\n jLabel2.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 3, true));\r\n add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 571, -1, -1));\r\n\r\n passwordJTextField.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 4, true));\r\n add(passwordJTextField, new org.netbeans.lib.awtextra.AbsoluteConstraints(527, 575, 198, -1));\r\n\r\n jLabel3.setFont(new java.awt.Font(\"Lucida Grande\", 1, 18)); // NOI18N\r\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel3.setText(\" EMPLOYEE \");\r\n jLabel3.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 3, true));\r\n add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 383, -1, -1));\r\n\r\n employeeJComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n add(employeeJComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(527, 387, 198, -1));\r\n\r\n backjButton1.setBackground(new java.awt.Color(153, 153, 153));\r\n backjButton1.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\r\n backjButton1.setForeground(new java.awt.Color(51, 0, 51));\r\n backjButton1.setText(\" << BACK \");\r\n backjButton1.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 5, true));\r\n backjButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n backjButton1ActionPerformed(evt);\r\n }\r\n });\r\n add(backjButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 660, 160, 52));\r\n\r\n jLabel5.setFont(new java.awt.Font(\"Lucida Grande\", 1, 18)); // NOI18N\r\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel5.setText(\" ORGANIZATION \");\r\n jLabel5.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 3, true));\r\n add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 343, -1, -1));\r\n\r\n organizationJComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n organizationJComboBox.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n organizationJComboBoxActionPerformed(evt);\r\n }\r\n });\r\n add(organizationJComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(527, 337, 198, -1));\r\n\r\n jLabel4.setFont(new java.awt.Font(\"Lucida Grande\", 1, 18)); // NOI18N\r\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel4.setText(\" ROLE \");\r\n jLabel4.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 3, true));\r\n add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(191, 476, -1, -1));\r\n\r\n roleJComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\r\n add(roleJComboBox, new org.netbeans.lib.awtextra.AbsoluteConstraints(527, 480, 198, -1));\r\n\r\n jLabel6.setFont(new java.awt.Font(\"Lucida Grande\", 1, 36)); // NOI18N\r\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\r\n jLabel6.setText(\"MANAGE USER ACCOUNT\");\r\n jLabel6.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 4, true));\r\n add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 40, -1, -1));\r\n }",
"@Override\n\tpublic void create(User user) {\n\t\t\n\t}",
"@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}",
"@RequestMapping(value = { \"/addUser\" }, method = RequestMethod.POST)\n\t@Secured(CommonConstants.ROLE_ADMIN)\n public ModelAndView savePerson(@ModelAttribute(CommonConstants.ATTRIBUTE_USERFORM) UserForm userForm) {\n\t\tModelAndView model = new ModelAndView(CommonConstants.PAGE_REGISTER);\n\t\tfinal String validationMsg = this.service.doUserFormValidation(userForm);\n\t\t\n\t\tif (StringUtils.isNotEmpty(validationMsg)) model.addObject(CommonConstants.ATTRIBUTE_ERROR, validationMsg);\n\t\telse {\n\t\t\tif (this.service.save(new UserEntity(userForm))) {\n \t\tmodel.addObject(CommonConstants.ATTRIBUTE_SUCCESS, this.service.getProperty(CommonConstants.APP_PAGE_VALIDATION_SUCCESS_MSG));\n \t\tuserForm.reset();\n\t\t\t}\t\n \telse \n \t\tmodel.addObject(CommonConstants.ATTRIBUTE_ERROR, this.service.getProperty(CommonConstants.APP_PAGE_SAVE_ERROR_MSG));\n\t\t}\n\t\tmodel.addObject(CommonConstants.ATTRIBUTE_USERFORM, userForm); \n return model;\n }",
"@GetMapping(\"/register-particular\")\n\tpublic ModelAndView goToRegisterPartForm() {\n\t\t\n\t\tModelAndView mav = new ModelAndView(\"register-particular\");\n\t\tUser user = new User();\n\t\tmav.addObject(\"user\", user);\n\n\t\treturn mav;\n\t}",
"public void Create(View view) {\n disableButton = findViewById(R.id.newAccountButton);\n disableButton.setEnabled(false);\n username = ((EditText)findViewById(R.id.createName)).getText().toString();\n password = ((EditText)findViewById(R.id.createPassword)).getText().toString();\n String password2 = ((EditText)findViewById(R.id.recreatePassword)).getText().toString();\n if (username.length() == 0 || password.length() == 0) {\n Toast.makeText(this, \"Fill in all boxes\", Toast.LENGTH_SHORT).show();\n disableButton.setEnabled(true);\n } else if (!password.equals(password2)) {\n Toast.makeText(this, \"passwords must be the same\", Toast.LENGTH_SHORT).show();\n disableButton.setEnabled(true);\n } else {\n PostuserHelper helper = new PostuserHelper(username, password, getApplicationContext(),\n NewaccountActivity.this);\n }\n }",
"public AddUser() {\n initComponents();\n }",
"public AddUser() {\n initComponents();\n }",
"public AddUser() {\n initComponents();\n }",
"public eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser addNewCreateUser()\n {\n synchronized (monitor())\n {\n check_orphaned();\n eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser target = null;\n target = (eu.aladdin_project.storagecomponent.CreateUserDocument.CreateUser)get_store().add_element_user(CREATEUSER$0);\n return target;\n }\n }",
"public void createUser() {\n try {\n conn = dao.getConnection();\n\n ps = conn.prepareStatement(\"INSERT INTO Users(username, password) VALUES(?, ?)\");\n ps.setString(1, this.username);\n ps.setString(2, this.password);\n\n ps.execute();\n\n ps.close();\n conn.close();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@GetMapping(\"register\")\n public String registerForm(Model model){\n model.addAttribute(\"user\", new User());\n return \"register_form\";\n }",
"public void mmCreateClick(ActionEvent event) throws Exception{\r\n displayCreateProfile();\r\n }",
"public int createUser(Users user) {\n\t\t int result = getTemplate().update(INSERT_users_RECORD,user.getUsername(),user.getPassword(),user.getFirstname(),user.getLastname(),user.getMobilenumber());\n\t\t\treturn result;\n\t\t\n\t\n\t}",
"private void openUserManagementWindow() {\r\n\t\tnew JFrameUser();\r\n\t}",
"public void addingNewUser() throws Exception {\n\t\tlog.info(\"Started ----- Adding New User -----\");\n\t\tFirstNameField.sendKeys(pr.loaddata(\"FirstNameField\"));\n\t\tExcelAPI e=new ExcelAPI(System.getProperty(\"user.dir\")\n\t\t\t\t+ \"/src/main/java/WebTesting/AutomationTask/TestData/AutomationTask_TestData.xlsx\");\n\t\tint rcnt = e.getRowCount(\"Task2_TestData\");\n\t\tfor (int i = 1; i < rcnt; i++) {\n\t\t\tLastNameField.clear();\n\t\t\tLastNameField.sendKeys(e.getCellData(\"Task2_TestData\", \"Last Name\", i));\n\t\t\tPasswordField.sendKeys(e.getCellData(\"Task2_TestData\", \"Password\", i));\n\t\t\tEmailField.sendKeys(e.getCellData(\"Task2_TestData\", \"Email\", i));\n\t\t}\n\t\tUserNameField.sendKeys(pr.loaddata(\"username\") + pr.randomusername());\n\t\tWebElement radio_Button = CustomerField;\n\t\tif (!radio_Button.isSelected()) {\n\t\t\tCustomerField.click();\n\t\t\tThread.sleep(1000);\n\t\t}\n\t\tRoleField.click();\n\t\tdriver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS); // Implicitly Wait\n\t\tPhoneField.sendKeys(pr.loaddata(\"phonenumber\") + pr.randomphonenumber());\n\t\tSaveButtonField.click();\n\t\twaitforElement(SearchField, 30); // Explicitly Wait\n\t\tlog.info(\"Ended ----- Adding New User -----\");\n\t}",
"public UserManagementImpl() {\r\n this.login = new LoginImpl();\r\n this.signUp = new SignUpImpl();\r\n }",
"@RequestMapping(value = \"/join\", method = RequestMethod.POST)\n public String createUser(@RequestBody UserDto userDto, Model model) {\n if (userDto == null) {\n return \"user1\";\n }\n User user = new User();\n user.setEmail(userDto.getEmail());\n user.setPass(userDto.getPass());\n userService.createUser(user);\n model.addAttribute(\"email\", user.getEmail());\n model.addAttribute(\"pass\", user.getPass());\n return \"one_product\";\n }",
"Utilizator createUser(String username, String password, String nume,\n\t\t\tString prenume, String tip, String aux);",
"@GetMapping(\"/students/new\")\r\n\tpublic String createStudentForm(Model model) {\n\t\tStudent student =new Student();\r\n\t\tmodel.addAttribute(\"student\",student);\r\n\t\treturn \"create_student\";\r\n\t}",
"@RequestMapping(value = \"/signup\", method = RequestMethod.GET)\n\tpublic String signUpPage(Model model)\n\t{\n\t\t/* Initialize user registration form */\n\t\tmodel.addAttribute(\"userForm\", new UserDto());\n\t\treturn \"user/signup\";\n\t}",
"public void registerNewUser(View v) {\n Intent intent = new Intent(this, com.mms.memorizationgame.RegisterActivity.class);\n\n finish();\n startActivity(intent);\n }",
"public void registerUser(RegisterForm form) throws DAOException;",
"@RequestMapping(value = \"/paas/appaas/create\", method = RequestMethod.GET)\n\tpublic String create(@CurrentUser PrismaUserDetails user, Model model) {\n\t\treturn \"pages/paas/appaas/create-appaas\";\n\t}",
"@RequestMapping(value=\"/vueEmployeAjouterQcm\")\r\n\tpublic String nouveauUser(Model model){\r\n\t\t\r\n\t\tmodel.addAttribute(\"user\", this.user);\t\t\r\n\t\tmodel.addAttribute(\"bonjour\", this.bonjour);\r\n\t\tmodel.addAttribute(\"espace\", this.espace);\r\n\t\treturn \"Employe/vue-initialiser-qcm-formulaire\";\r\n\t}",
"public void newUserClicked(View view) {\r\n Intent intent = new Intent(this, SignUpActivity.class);\r\n startActivity(intent);\r\n }",
"private void createUser(String username) {\n if (TextUtils.isEmpty(username)) {\n Toast.makeText(this, \"Username Field Required!\", Toast.LENGTH_SHORT).show();\n return;\n }else {\n FirebaseUser current_user = FirebaseAuth.getInstance().getCurrentUser();\n String userID = current_user.getUid();\n User user = new User(et_username.getText().toString(), et_gender.getText().toString(), \"Newbie\", \"Online\", \"Active\", userID, \"default_url\");\n mRef.child(mAuth.getCurrentUser().getUid()).setValue(user);\n }\n }",
"@FXML private void setToNewUser(){\n\t\tshowPassword();\n\t\tclearFields();\n\t\thideLackMessages();\n\t\tchangeCancelButton.setText(\"Anuluj\");\n\t\tnewUser = true;\n\t}",
"public void create() {\n String salt = PasswordUtils.getSalt(30);\n\n // Protect user's password. The generated value can be stored in DB.\n String mySecurePassword = PasswordUtils.generateSecurePassword(password, salt);\n\n // Print out protected password\n System.out.println(\"My secure password = \" + mySecurePassword);\n System.out.println(\"Salt value = \" + salt);\n Operator op = new Operator();\n op.setUsername(username);\n op.setDescription(description);\n op.setSalt(salt);\n op.setPassword(mySecurePassword);\n op.setRol(rol);\n operatorService.create(op);\n message = \"Se creo al usuario \" + username;\n username = \"\";\n description = \"\";\n password = \"\";\n rol = null;\n }",
"@RequestMapping(value=\"/save\", method=RequestMethod.POST)\n\tpublic String saveUser(User u, Model m) {\n\t\treturn \"unos/Registracija\";\n\t}",
"@Override\r\n\tpublic boolean createUser(Utilisateur u) {\n\t\treturn false;\r\n\t}",
"@Override\r\n public void handle(ActionEvent e) {\n CreateUser create = new CreateUser(txtUserName, txtEmail,\r\n txtFirstName, txtLastName, txtPassword);\r\n\r\n create.createUser(); //Call the createUser method.\r\n confirmUserStage.close(); //Close the confirm stage\r\n\r\n }",
"@RequestMapping(value = \"/registration\")\n public String registration(Model model) {\n User user = new User();\n model.addAttribute(\"user\", user);\n return \"user/registration\";\n }",
"@FXML\n\tpublic void buttonSignUpAdministrator(ActionEvent event) throws IOException {\n\t\tFXMLLoader addUserfxml = new FXMLLoader(getClass().getResource(\"Add-User.fxml\"));\n\t\taddUserfxml.setController(this);\n\t\tParent addUser = addUserfxml.load();\n\t\tmainPaneLogin.getChildren().setAll(addUser);\n\n\t\ttxtUserUsername.setText(\"ADMINISTRATOR\");\n\t\ttxtUserUsername.setEditable(false);\n\t}"
]
| [
"0.7207697",
"0.7016892",
"0.69729143",
"0.6965364",
"0.6934165",
"0.6858145",
"0.6743014",
"0.66815925",
"0.6667421",
"0.6647675",
"0.6621077",
"0.6564759",
"0.65303826",
"0.6488541",
"0.6480429",
"0.64398265",
"0.6423955",
"0.64128315",
"0.6344764",
"0.6337877",
"0.63376665",
"0.63360834",
"0.62871385",
"0.6272553",
"0.62665486",
"0.62655383",
"0.6254223",
"0.62390894",
"0.6235737",
"0.62349457",
"0.62338716",
"0.6222027",
"0.6202141",
"0.61858237",
"0.61781806",
"0.6131031",
"0.61259663",
"0.61241525",
"0.61054057",
"0.61005056",
"0.6084256",
"0.60808086",
"0.6062849",
"0.60454935",
"0.60440177",
"0.60383105",
"0.60175896",
"0.6011158",
"0.60097605",
"0.6009372",
"0.60038966",
"0.5997875",
"0.59954095",
"0.59881413",
"0.5969018",
"0.59670305",
"0.5954203",
"0.5942833",
"0.5941022",
"0.5927709",
"0.5925901",
"0.5909925",
"0.5909658",
"0.59011614",
"0.5877292",
"0.5875807",
"0.5872313",
"0.58718145",
"0.5871719",
"0.58690387",
"0.58615565",
"0.58576",
"0.5856225",
"0.58499235",
"0.58499235",
"0.58499235",
"0.58434063",
"0.58428425",
"0.5830255",
"0.582926",
"0.5827307",
"0.58271587",
"0.58170986",
"0.5812394",
"0.5812361",
"0.580857",
"0.5804256",
"0.58035094",
"0.579432",
"0.5793487",
"0.57929814",
"0.5788947",
"0.57827204",
"0.5779732",
"0.57726514",
"0.57661074",
"0.57597756",
"0.5759255",
"0.5757777",
"0.5753202",
"0.57452756"
]
| 0.0 | -1 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
userListLabel = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
userList = new javax.swing.JList();
userDetailsLabel = new javax.swing.JLabel();
userDetailsLogin = new javax.swing.JLabel();
userDetailsName = new javax.swing.JLabel();
userDetailsNameText = new javax.swing.JTextField();
userDetailsLevel = new javax.swing.JLabel();
userDetailsLevelSpinner = new javax.swing.JSpinner();
saveUserButton = new javax.swing.JButton();
resetPassButton = new javax.swing.JButton();
newUserButton = new javax.swing.JButton();
closeButton = new javax.swing.JButton();
userDetailsLoginText = new javax.swing.JLabel();
deleteUserButton = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
userListLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
userListLabel.setText("LIST");
jScrollPane1.setHorizontalScrollBarPolicy(javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
jScrollPane1.setVerticalScrollBarPolicy(javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
userList.setModel(new javax.swing.AbstractListModel() {
String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
public int getSize() { return strings.length; }
public Object getElementAt(int i) { return strings[i]; }
});
jScrollPane1.setViewportView(userList);
userDetailsLabel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
userDetailsLabel.setText("USER");
userDetailsLogin.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
userDetailsLogin.setText("Login:");
userDetailsName.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
userDetailsName.setText("Name:");
userDetailsLevel.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
userDetailsLevel.setText("Level:");
userDetailsLevelSpinner.setModel(new javax.swing.SpinnerNumberModel(1, 1, 3, 1));
saveUserButton.setText("Save");
saveUserButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
saveUserButtonActionPerformed(evt);
}
});
resetPassButton.setText("Reset password");
resetPassButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
resetPassButtonActionPerformed(evt);
}
});
newUserButton.setText("New");
newUserButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
newUserButtonActionPerformed(evt);
}
});
closeButton.setText("Close");
closeButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
closeButtonActionPerformed(evt);
}
});
userDetailsLoginText.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
userDetailsLoginText.setText("Login");
deleteUserButton.setText("Delete");
deleteUserButton.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
deleteUserButtonActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 90, Short.MAX_VALUE)
.addComponent(userListLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addComponent(userDetailsLevel, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(userDetailsLevelSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(userDetailsName, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(userDetailsLogin, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(userDetailsLoginText, javax.swing.GroupLayout.PREFERRED_SIZE, 58, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(userDetailsNameText)))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(resetPassButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(2, 2, 2))
.addGroup(layout.createSequentialGroup()
.addComponent(saveUserButton, javax.swing.GroupLayout.DEFAULT_SIZE, 58, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(newUserButton)
.addGap(1, 1, 1)))
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(closeButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(deleteUserButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addComponent(userDetailsLabel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(userListLabel)
.addComponent(userDetailsLabel))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(userDetailsLogin)
.addComponent(userDetailsLoginText))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(userDetailsName)
.addComponent(userDetailsNameText, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(userDetailsLevel)
.addComponent(userDetailsLevelSpinner, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(saveUserButton)
.addComponent(newUserButton)
.addComponent(deleteUserButton))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(closeButton)
.addComponent(resetPassButton)))
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public frmVenda() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\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 Carrera() {\n initComponents();\n }",
"public POS1() {\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.731952",
"0.72909003",
"0.72909003",
"0.72909003",
"0.72862417",
"0.7248404",
"0.7213685",
"0.72086793",
"0.7195972",
"0.71903807",
"0.71843296",
"0.7158833",
"0.71475875",
"0.70933676",
"0.7081167",
"0.7056787",
"0.69876975",
"0.6977383",
"0.6955115",
"0.6953839",
"0.69452274",
"0.6942602",
"0.6935845",
"0.6931919",
"0.6928187",
"0.6925288",
"0.69251484",
"0.69117147",
"0.6911646",
"0.6892842",
"0.68927234",
"0.6891408",
"0.68907607",
"0.68894386",
"0.68836755",
"0.688209",
"0.6881168",
"0.68787616",
"0.68757504",
"0.68741524",
"0.68721044",
"0.685922",
"0.68570775",
"0.6855737",
"0.6855207",
"0.68546575",
"0.6853559",
"0.6852262",
"0.6852262",
"0.68443567",
"0.6837038",
"0.6836797",
"0.68291426",
"0.6828922",
"0.68269444",
"0.6824652",
"0.682331",
"0.68175536",
"0.68167555",
"0.6810103",
"0.6809546",
"0.68085015",
"0.68083894",
"0.6807979",
"0.68027437",
"0.67950374",
"0.67937446",
"0.67921823",
"0.67911226",
"0.67900467",
"0.6788873",
"0.67881",
"0.6781613",
"0.67669237",
"0.67660683",
"0.6765841",
"0.6756988",
"0.675558",
"0.6752552",
"0.6752146",
"0.6742482",
"0.67395985",
"0.673791",
"0.6736197",
"0.6733452",
"0.67277217",
"0.6726687",
"0.67204696",
"0.67168",
"0.6714824",
"0.6714823",
"0.6708782",
"0.67071444",
"0.670462",
"0.67010295",
"0.67004406",
"0.6699407",
"0.6698219",
"0.669522",
"0.66916007",
"0.6689694"
]
| 0.0 | -1 |
End of variables declaration//GENEND:variables | private void getUserList() {
// GET ENTRIES FROM DB AND TURN THEM INTO LIST
DefaultListModel listModel = new DefaultListModel();
Iterator itr = DBHandler.getListOfObjects("FROM DBUser ORDER BY xname");
while (itr.hasNext()) {
DBUser user = (DBUser) itr.next();
listModel.addElement(user.getUserLogin());
}
// SET THIS LIST FOR INDEX OF ENTRIES
userList.setModel(listModel);
} | {
"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 |
listener for kb items list browsing | private void finalizeComponents() {
MouseListener mouseListener = new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
// get currently selected index entry
if (userList.getSelectedIndex() < 0) {
userList.setSelectedIndex(0);
}
String selectedItem = (String) userList.getSelectedValue();
// load entry data from db
currentUser = (DBUser) DBHandler.getSingleObject(
"FROM DBUser WHERE xname='" + selectedItem + "'");
// fill gui elements with data
loadUserDetails(currentUser);
// enable control buttons
enableButtons(true);
}
};
userList.addMouseListener(mouseListener);
// set window title
this.setTitle("VSEgraf - User management");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface ListListener {\n\t/*\n\t * Called by soundfun.ui when a different element\n\t * has been selected. This also is called if no\n\t * element was previously selected and is now selected.\n\t */\n\tpublic void selected(String action);\n}",
"void onListClick();",
"void contentList_keyPressed(KeyEvent e) {\n if (e.getKeyCode() == e.VK_ENTER) {\n doView();\n }\n\n if (!editable) {\n return;\n }\n if (e.getKeyCode() == e.VK_INSERT) {\n doAdd();\n }\n\n if (e.getKeyCode() == e.VK_DELETE) {\n doDelete();\n }\n\n }",
"private void handleListViewKeys(KeyEvent event) {\n\t\tif (KeyCode.S == event.getCode()) {\n\t\t\taddSAction();\n\t\t\treturn;\n\t\t}\n\t\tif (KeyCode.C == event.getCode()) {\n\t\t\taddScAction();\n\t\t}\n\t}",
"@Override\n\t\t\tpublic boolean onKey(View view, int keyCode, KeyEvent keyEvent) {\n\t\t\t\tif (keyEvent.getAction()!=KeyEvent.ACTION_DOWN)\n return true;\n\t\t\t\n\t\t\t\tswitch(keyCode){\n\t\t\t\t\tcase KeyEvent.KEYCODE_ENTER : \n\t\t\t\t\t\t\t\tif(isListMode){\n\t\t\t\t\t\t\t\t\taddHtmlElement(Constants.OPERATION_ADD_BULLET);\n\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\tcase KeyEvent.KEYCODE_BACK: \n\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\tLog.d(\"Back key Called\", \"Called\");\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\tdefault:return false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"private void listner() {\n\t\tdocketList.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t}\n\t\t});\n\t}",
"private void handleQQChatListHb(){\n rootNodeInfo = getService().getRootInActiveWindow();\n Log.d(TAG,\"enter the qq group interface...rootNodeInfo = \"+rootNodeInfo);\n\n if(rootNodeInfo == null){\n return;\n }\n handleQQHb();\n }",
"private void registerListClickCallBack() {\n\t\t\n\t\tListView myList = (ListView)findViewById(R.id.listViewFromDB);\n\t\tmyList.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View viewClicked,\n\t\t\t\t\tint position, long idInDB) {\n\t\t\t\t\n\t\t\t\tupdateItemForId(idInDB);\n\t\t\t\n\t\t\t}\n\t\t});\n\t}",
"void onShowAllPreview(List<FileItem> fileItemList);",
"private boolean seleccionarItem(KeyEvent kp)\n\t{\n\t\t\n\t\tif (kp.keyCode != 13 && kp.keyCode != 16777296){\n\t\t\t//no es enter, ver que hacer\n\t\t\ttry{\n\t\t\t\tthis.setDocAct(null);\n\t\t\t\tbrowser.setVisible(false);\n//\t\t\t\tbrowser.setText(\"<!DOCTYPE html><html><head><title>no doc</title></head><body>no doc</body></html>\");\n\t\t\t}catch(Exception e){\n\t\t\t\t//que paso?\n\t\t\t}\n\t\t\tthis.setUltIdDoc(-1);\n\t\t}else{ //es Enter\n\t\t\tint indice=0;\n\t\t\tif (kp.getSource() instanceof List){\n\t\t\t\tList l = (List) kp.getSource();\n\t\t\t\tindice = l.getSelectionIndex();\n\t\t\t}else{\n\t\t\t\tTable t = (Table) kp.getSource();\n\t\t\t\tindice = t.getSelectionIndex();\n\t\t\t}\n\t\t\treturn loadDocFromServer(indice, false);\n\t\t}\n\t\treturn true;\n\t}",
"public void listener (){\n //Find the view which shows the ListView\n ListView elements = (ListView) findViewById(R.id.list);\n\n // Set a click listener on that View\n elements.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n // The code in this method will be executed when the numbers View is clicked on.\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n // Create a new intent to open the {@link TracksActivity}\n Intent nowPlayingIntent = new Intent(TracksActivity.this, NowPlayingActivity.class);\n MusicsElement element = (MusicsElement) arg0.getItemAtPosition(position);\n nowPlayingIntent.putExtra(\"element\", element.getmSongName());\n nowPlayingIntent.putExtra(\"musicElement\", element);\n // Start the new activity\n startActivity(nowPlayingIntent);\n }\n });\n }",
"@Override\n public boolean dispatchKeyEvent(KeyEvent event) {\n\n\t\tif(KeyEvent.KEYCODE_HOME == event.getKeyCode()) {\n\t\t\tswitch(event.getAction()) {\n\t\t\t\tcase KeyEvent.ACTION_DOWN:\n\t\t\t\t\tif (mKeycode.indexOf(\"HOME\") >= 0) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t }\n\t\t\t\t\tmKeycode += \"HOME\\n\";\n\t\t\t\t\tmListData.add(imgString[0]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase KeyEvent.ACTION_UP:\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tmGrid.setAdapter(new MyAdapter(this));\n\t\t\treturn true;\n\t\t}\n\n return super.dispatchKeyEvent(event);\n }",
"public void listAction() {\n TextWin newWindow = new TextWin(getSelectedCell());\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }",
"private void setListenersOnListView() {\r\n\r\n // On click listener.\r\n searchResultsList.setOnItemClickListener(new OnItemClickListener() {\r\n\r\n @Override\r\n public void onItemClick(AdapterView<?> arg00, View arg11,\r\n int arg22, long position) {\r\n\r\n handleSelectedItem((int) position);\r\n }\r\n\r\n });\r\n\r\n // On scroll listener.\r\n searchResultsList.setOnScrollListener(new OnScrollListener() {\r\n\r\n @Override\r\n public void onScrollStateChanged(AbsListView view, int scrollState) {\r\n\r\n if (scrollState == OnScrollListener.SCROLL_STATE_TOUCH_SCROLL) {\r\n\r\n AppUtils.hideKeyboard(activity);\r\n }\r\n }\r\n\r\n @Override\r\n public void onScroll(AbsListView view, int firstVisibleItem,\r\n int visibleItemCount, int totalItemCount) {\r\n\r\n }\r\n });\r\n }",
"public interface ListListener {\n public void OnClick(int itemPosition);\n}",
"@Override\r\n\t public void onPause() {\n\t \tsuper.onPause();\r\n\t \t StaticStore.LogPrinter('e',\"onPause() ListSelection\");\r\n\t \t StaticStore.midlet.onPauseCalled();\r\n\t }",
"protected void ACTION_B_LIST(ActionEvent arg0) {\n\t\tListNetworkInerface();\r\n\t\tselect.setEnabled(true);\r\n\t\tback.setEnabled(true);\r\n\t\thelp.setEnabled(true);\r\n\t\tload.setEnabled(true);\r\n\t\ttextField.requestFocus();\r\n\t}",
"@Override\r\n\t\t\t\t\tpublic void addItemEventOccurred(AddItemEvent event) {\n\r\n\t\t\t\t\t}",
"private void registerListClicks(){\n //Gets list element\n ListView list = findViewById(R.id.transaction_list);\n //Sets onclick listener\n list.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n //Gets the relevant view\n TextView text = (TextView) view;\n //Saves the name of the recipient\n chosenName = (String) text.getText();\n //Checks if the button should be enabled\n checkIfEnable();\n }\n });\n }",
"public abstract void addItemListener(ItemListener listener);",
"public void keyReleased(KeyEvent e) {\n if (searchFieldLength > searchField.getText().length()) {\n componentsList.setModel(ingredientsListModel);\n filterList();\n } else {\n filterList();\n }\n }",
"@Override\n public void onPreFolderOpened(DocumentFile currentFolder) {\n recordTheCurrentListOfVisibleItemsInState(currentFolder);\n }",
"@Override\n\t\tpublic void onScrollStateChanged(AbsListView arg0, int arg1) {\n\t\t\tif (arg1 == OnScrollListener.SCROLL_STATE_IDLE && isBotton) {\n\t\t\t\tString key = getURL(Gkey);\n\t\t\t\tdialog.show();\n\t\t\t\taudioDao.getJLocalOnLineAudioList(key, jCallBack);\n\t\t\t}\n\t\t}",
"public interface CurrentItemListener {\n void onNewCurrentItem(int currentItem, int totalItemsCount);\n}",
"@Override\n protected void processComponentKeyEvent(KeyEvent e) {\n super.processComponentKeyEvent(e);\n String start = getText();\n searchElements(start);\n }",
"@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }",
"@Override\n\tpublic void onEvent(TimEvent evt) {\n\t\tswitch( evt.getTag() ){\n\t\t\n\t\tcase GUIFILELIST:\n\t\t\tlist.setListData( (String[]) evt.getObject() ); \n\t\t\tthis.repaint();\n\t\t\tbreak;\n\t\t\t\n\t\tcase INFO:\n\t\t addInfo((String)evt.getObject());\n\t\tbreak;\n\t\t}\n\t}",
"private void cListValueChanged(ListSelectionEvent e) {\n }",
"@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}",
"void onListInteraction(int index, boolean isLongClicked);",
"private void gListValueChanged(ListSelectionEvent e) {\n }",
"public interface ListItemClickListener {\n void onListITemClicked(int clickedItemIndex);\n}",
"private void notifyListSelectionListener()\r\n {\r\n \tif (listSelectionListeners != null && listSelectionListeners.size() > 0) \r\n \t{\r\n ListSelectionEvent event = new ListSelectionEvent(this, avatarIndex, avatarIndex, false);\r\n\r\n for (ListSelectionListener listener : listSelectionListeners)\r\n {\r\n listener.valueChanged(event);\r\n }\r\n \t}\r\n }",
"@Override\n public void setOnListViewItemPressed(int listPositionIndex, String selectedItemText)\n {\n\n if (ListenerSimple != null)\n {\n keepLastItemIndexPressed = listPositionIndex;\n // Now let's fire listener here\n ListenerSimple.setOnListViewItemPressed(listPositionIndex, selectedItemText);\n }\n finish();\n }",
"private void listOnItemLongclick() {\n\t\tmlvWifi.setOnItemClickListener(new OnItemClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tfinal String ssid = mListWifi.get(arg2).get(\"ssid\").toString();\n\t\t\t\t//final boolean password = mListWifi.get(arg2).get(\"password\");\n\t\t\t\tfinal boolean password = Boolean.valueOf(mListWifi.get(arg2).get(\"password\").toString());\n\t\t\t\tLog.i(\"pss\",\"me click item\");\n\t\t\t\tcreateDialog(ssid,password);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\r\n\t}",
"protected void processKeyPressed(KeyEvent e) {\n int key = e.getKeyCode();\n boolean control = e.isControlDown();\n boolean shift = e.isShiftDown();\n boolean alt = e.isAltDown();\n int flags;\n\n if (shift && control)\n flags = SelectFlags.ADD_RANGE;\n else if (shift)\n flags = SelectFlags.ADD_RANGE;\n else if (control)\n flags = SelectFlags.RESET_ANCHOR;\n else\n flags = SelectFlags.CLEAR | SelectFlags.ADD_ITEM | SelectFlags.RESET_ANCHOR;\n\n switch (key) {\n case KeyEvent.VK_DOWN:\n if (alt)\n break;\n if ((autoAppend || control) && subfocus == (getCount()-1) && !isReadOnly() && writeModel.isVariableSize()) {\n writeModel.addItem(null);\n setSubfocus(getCount() - 1, SelectFlags.CLEAR | SelectFlags.ADD_ITEM | SelectFlags.RESET_ANCHOR);\n e.consume();\n }\n else if (subfocus != (getCount()-1)) {\n setSubfocus(subfocus + 1, flags);\n e.consume();\n }\n break;\n case KeyEvent.VK_UP:\n if (alt)\n break;\n if (subfocus > 0) {\n setSubfocus(subfocus - 1, flags);\n e.consume();\n }\n break;\n case KeyEvent.VK_PAGE_UP:\n if (alt)\n break;\n if (subfocus > 0) {\n pageJump(false, flags);\n e.consume();\n }\n break;\n case KeyEvent.VK_PAGE_DOWN:\n if (alt)\n break;\n if (subfocus != (getCount()-1)) {\n pageJump(true, flags);\n e.consume();\n }\n break;\n case KeyEvent.VK_HOME:\n if (alt)\n break;\n if (subfocus > 0) {\n if (control && !shift)\n setSubfocus(0, SelectFlags.CLEAR | SelectFlags.ADD_ITEM | SelectFlags.RESET_ANCHOR);\n else\n setSubfocus(0, flags);\n e.consume();\n }\n break;\n case KeyEvent.VK_END:\n if (alt)\n break;\n if (subfocus != (getCount()-1)) {\n if (control && !shift)\n setSubfocus(getCount() - 1, SelectFlags.CLEAR | SelectFlags.ADD_ITEM | SelectFlags.RESET_ANCHOR);\n else\n setSubfocus(getCount() - 1, flags);\n e.consume();\n }\n break;\n case KeyEvent.VK_SPACE:\n if (!alt && !shift) {\n if (control && selection.contains(subfocus))\n selection.remove(subfocus);\n else\n selection.add(subfocus);\n if (isToggleItem(subfocus))\n startEdit(subfocus);\n e.consume();\n }\n break;\n case KeyEvent.VK_INSERT:\n if (alt)\n break;\n if (!isReadOnly() && writeModel.isVariableSize()) {\n writeModel.addItem(subfocus, null);\n e.consume();\n }\n break;\n case KeyEvent.VK_DELETE:\n if (alt)\n break;\n if (control && !isReadOnly() && writeModel.isVariableSize() && getCount() > 0) {\n writeModel.remove(subfocus);\n if (subfocus == getCount())\n setSubfocus(getCount() - 1);\n e.consume();\n }\n break;\n case KeyEvent.VK_ENTER:\n if (control && editor == null && canSet(subfocus, false))\n startEdit(subfocus);\n else\n fireActionEvent();\n e.consume();\n break;\n case KeyEvent.VK_F2:\n if (editor == null && !isToggleItem(subfocus) && canSet(subfocus, false)) {\n startEdit(subfocus);\n e.consume();\n }\n break;\n case KeyEvent.VK_J: // debug painting\n if (shift && control && alt)\n debugPaint = !debugPaint;\n break;\n case KeyEvent.VK_KANJI:\n case 0xE5: // VK_PROCESSKEY:\n startEdit(subfocus);\n break;\n default: return;\n }\n }",
"public EventHandler<KeyEvent> checkItemExistence() {\r\n\t\treturn new EventHandler<KeyEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(KeyEvent e) {\r\n\t\t\t\tif (e.getCode() == KeyCode.TAB) {\r\n\t\t\t\t\tLOGGER.info(\"Tab Event Handled : {}\", barcodeField.getText());\r\n\t\t\t\t\tif (itemService.findByBarcode(barcodeField.getText()) != null) {\r\n\t\t\t\t\t\tLOGGER.info(\"Item already exists for barcode : {}\", barcodeField.getText());\r\n\t\t\t\t\t\tMessageDialog.showAlert(AlertType.WARNING, \"Product Already Exists\", null,\r\n\t\t\t\t\t\t\t\t\"Product already exists for a given barcode : [\" + barcodeField.getText() + \"]\");\r\n\t\t\t\t\t\tbarcodeField.clear();\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"private void addListListeners() {\n\n MouseListener ml = new MouseAdapter() {\n @Override\n public void mouseReleased(MouseEvent e) {\n int index = checkInTimeList.locationToIndex(e.getPoint());\n if(e.getButton() == MouseEvent.BUTTON3 && e.getClickCount() == 1){\n if(checkInTimeList.isSelectedIndex(index) && checkInTimeList instanceof HostCheckInList )\n ((HostCheckInList)checkInTimeList).doPopupMenuLogic(e); \n }\n\n } // end MouseReleased\n }; // end MouseAdapter class\n checkInTimeList.addMouseListener(ml);\n \n \n KeyListener keyListener = new KeyAdapter() {\n @Override\n public void keyReleased(KeyEvent e) {\n if(e.getKeyChar() == KeyEvent.VK_DELETE || Character.toUpperCase((char)e.getKeyChar()) == 'D')\n removeCheckInDates();\n \n }\n }; // end MouseAdapter class\n checkInTimeList.addKeyListener(keyListener);\n\n }",
"@Override\n\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\t\n\t\t\t\t}",
"private void gotoCheckInListView() {\n }",
"@Override\n\tpublic void onGetUserItemsSuccess(LinkedHashSet<ItemBasic> userItems) {\n\t\tuserItemsObtained = userItems;\n<<<<<<< HEAD\n\t\tMyProfileItemAdapter myItemsItemAdapter = new MyProfileItemAdapter(PersonProfileItems.this, imageLoader, userItems);\n=======\n\t\tMyProfileItemAdapter myItemsItemAdapter = new MyProfileItemAdapter(PersonProfileItems.this, katwalk.imageLoader, userItems);\n>>>>>>> GoWild\n\t\tlistOfItems.setAdapter(myItemsItemAdapter);\n\t\t\n\t\tetMyItemsListSearch.addTextChangedListener(new TextWatcher() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTextChanged(CharSequence s, int start, int before, int count) {\n<<<<<<< HEAD\n\t\t\t\tMyProfileItemAdapter myItemsItemAdapter = new MyProfileItemAdapter(PersonProfileItems.this, imageLoader, userItemsObtained, s);\n=======\n\t\t\t\tMyProfileItemAdapter myItemsItemAdapter = new MyProfileItemAdapter(PersonProfileItems.this, katwalk.imageLoader, userItemsObtained, s);\n>>>>>>> GoWild\n\t\t\t\tlistOfItems.setAdapter(myItemsItemAdapter);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void beforeTextChanged(CharSequence s, int start, int count, int after) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void afterTextChanged(Editable s) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t}); // End of TextWatcher\n\n\t}",
"abstract void listDisponibles_mouseClicked(MouseEvent e);",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t}",
"public void listen( CKeyboard keyboard )\r\n\t{\n\t\t// Abonnement aux listener\r\n\t\t// =============================================================\r\n\t\tfor( int i = 0 ; i < keyboard.groupCount() ; ++i )\r\n\t\t{\r\n\t\t\tCKeyGroup keyGroup = keyboard.getKeyGroup( i );\r\n\t\t\tif( keyGroup != null )\r\n\t\t\t{\r\n\t\t\t\tfor( int j = 0 ; j < keyGroup.listCount() ; ++j )\r\n\t\t\t\t{\r\n\t\t\t\t\tCKeyList keyList = keyGroup.getkeyList( j );\r\n\t\t\t\t\tif( keyList != null )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor( int k = 0 ; k < keyList.keyCount() ; ++k )\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCKeyKeyboard keyboardKey = keyList.getKeyKeyboard( k );\r\n\t\t\t\t\t\t\tif( keyboardKey != null )\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// on cast pour savoir de quel type est la key\r\n\t\t\t\t\t\t\t\tif( keyboardKey instanceof CKeyLevel )\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t((CKeyLevel)keyboardKey).addOnClickKeyLevelListener( this );\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void fontNameListRegisterHandler( ListSelectionListener listSelectionListener )\r\n\t{\r\n\t\t// register event handler for the Font Names list\r\n\t\tfontNamesList.addListSelectionListener( listSelectionListener );\r\n\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"@Override\r\n\t\t\t\t\t\tpublic void afterTextChanged(Editable arg0) {\n\t\t\t\t\t\t\tString keyWords = etDialogSearch.getText()\r\n\t\t\t\t\t\t\t\t\t.toString();\r\n\t\t\t\t\t\t\tif (!keyWords.equals(\"\")) {\r\n\t\t\t\t\t\t\t\tList<Note> notes = databaseHelper\r\n\t\t\t\t\t\t\t\t\t\t.searchNotes(keyWords);\r\n\t\t\t\t\t\t\t\tfor (int i = 0; i < notes.size(); i++) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(notes.get(i).toString());\r\n\t\t\t\t\t\t\t\t\tdialogAdapter = new NoteAdapter(\r\n\t\t\t\t\t\t\t\t\t\t\tNoteListActivity.this, notes, false);\r\n\t\t\t\t\t\t\t\t\tlvDialog.setAdapter(dialogAdapter);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\t\t}",
"protected void handleKeyEvent(KeyEvent ev) {\n\t\t//System.out.println(\"Got key event: \"+this.getClass().getName()+\" - \"+ev+\" \"+ev.getKeyChar()+\" \"+ev.getExtendedKeyCode());\n\t\tif (getStatus() != DefaultActionButton.INACTIVE) {\n\t\t\tfor (char key : shortcutKey) {\n\t\t\t\t//System.out.println(\"sck \"+key);\n\t\t\t\tif (ev.getKeyChar()==key) {\n\t\t\t\t\t//System.out.println(\"da key \"+key);\n\t\t\t\t\tclick();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\r\n\t}",
"public interface NoteItemListener {\n void onItemClick(String name);\n void onItemRemove(String name);\n}",
"@Override \r\n public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n if(!isSendingQuestion){\r\n List<String> topicList = mAdpater.getHotTopicArray();\r\n String question = topicList.get(arg2);\r\n mSearch.setText(question);\t\r\n mSearch.requestFocus();\r\n InputMethodManager inputManager =(InputMethodManager)mContext.getSystemService(Context.INPUT_METHOD_SERVICE); \r\n inputManager.showSoftInput(mSearch, 0);\r\n }\r\n \r\n }",
"private void bind() \r\n\t{\r\n\t\tsuper.menuPut(\"list\", newJMenu(\"List\", 'L'));\r\n\t\tsuper.menuPut(\"list/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionNew(x));\r\n\t\tsuper.menuPut(\"list/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionLoad(x));\r\n\t\tsuper.menuPut(\"list/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionSave(x));\r\n\t\tsuper.menuPut(\"list/***1\", \"\");\r\n\t\tsuper.menuPut(\"list/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionAdd(x));\r\n\t\tsuper.menuPut(\"list/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK | ActionEvent.CTRL_MASK), x -> menuFile.actionRemove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"tree\", newJMenu(\"Tree\", 'T'));\r\n\t\tsuper.menuPut(\"tree/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.SHIFT_MASK), x -> menuEdit.actionNew(x));\r\n\t\tsuper.menuPut(\"tree/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.SHIFT_MASK), x -> menuEdit.actionLoad(x));\r\n\t\tsuper.menuPut(\"tree/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.SHIFT_MASK), x -> menuEdit.actionSave(x));\r\n\t\tsuper.menuPut(\"tree/***1\", \"\");\r\n\t\tsuper.menuPut(\"tree/add\", newJMenuItem(\"Add\", 'A', KeyEvent.VK_4, ActionEvent.SHIFT_MASK), x -> menuEdit.actionAdd(x));\r\n\t\tsuper.menuPut(\"tree/remove\", newJMenuItem(\"Remove\", 'R', KeyEvent.VK_5, ActionEvent.SHIFT_MASK), x -> menuEdit.actionRemove(x));\r\n\t\tsuper.menuPut(\"tree/move\", newJMenuItem(\"Move\", 'V', KeyEvent.VK_6, ActionEvent.SHIFT_MASK), x -> menuEdit.actionMove(x));\r\n\t\t\r\n\t\tsuper.menuPut(\"graph\", newJMenu(\"Graph\", 'G'));\r\n\t\tsuper.menuPut(\"graph/new\", newJMenuItem(\"New\", 'N', KeyEvent.VK_1, ActionEvent.CTRL_MASK), x -> menuHelp.actionNew(x));\r\n\t\tsuper.menuPut(\"graph/open\", newJMenuItem(\"Open\", 'O', KeyEvent.VK_2, ActionEvent.CTRL_MASK), x -> menuHelp.actionOpen(x));\r\n\t\tsuper.menuPut(\"graph/save\", newJMenuItem(\"Save\", 'S', KeyEvent.VK_3, ActionEvent.CTRL_MASK), x -> menuHelp.actionSave(x));\r\n\t\tsuper.menuPut(\"graph/***1\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-node\", newJMenuItem(\"Add node\", 'A', KeyEvent.VK_4, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddNode(x));\r\n\t\tsuper.menuPut(\"graph/remove-node\", newJMenuItem(\"Remove node\", 'R', KeyEvent.VK_5, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveNode(x));\r\n\t\tsuper.menuPut(\"graph/move-node\", newJMenuItem(\"Move node\", 'V', KeyEvent.VK_6, ActionEvent.CTRL_MASK), x -> menuHelp.actionMoveNode(x));\r\n\t\tsuper.menuPut(\"graph/***2\", \"\");\r\n\t\tsuper.menuPut(\"graph/add-link\", newJMenuItem(\"Add link\", 'D', KeyEvent.VK_7, ActionEvent.CTRL_MASK), x -> menuHelp.actionAddLink(x));\r\n\t\tsuper.menuPut(\"graph/remove-link\", newJMenuItem(\"Remove link\", 'L', KeyEvent.VK_8, ActionEvent.CTRL_MASK), x -> menuHelp.actionRemoveLink(x));\r\n\t\t\r\n\t\tsuper.menuDump();\t\t\r\n\t}",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\n\n\t\t\n\t}",
"@Override\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t}",
"void onListFragmentInteraction(String item);",
"@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t}",
"void addMouseListener(SearchGUI app, JList<String> wordList) {\n wordList.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n String word = wordList.getSelectedValue();\n String matchWord = app.searchWord(word).getWord_explain();\n app.textAreaPrint(word, matchWord);\n }\n\n @Override\n public void mousePressed(MouseEvent e) {\n }\n\n @Override\n public void mouseReleased(MouseEvent e) {\n }\n\n @Override\n public void mouseEntered(MouseEvent e) {\n }\n\n @Override\n public void mouseExited(MouseEvent e) {\n }\n });\n }",
"private void setMouseListener() {\n lstvList.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getClickCount() == 2) {\n try {\n showBike(lstvList.getSelectionModel().getSelectedItem());\n } catch (IOException ex) {\n \n }\n }\n }\n });\n }",
"@Override\n public void keyTyped(KeyEvent e) {\n \n }",
"public void onList( View view )\n {\n Intent intent = new Intent( this, ThingListActivity.class );\n\n startActivity( intent );\n }",
"public interface CurrentlyReadingClickListener {\n public void itemClicked(View view, int position);\n public void onReturn(View deleteView, int position);\n}",
"@Override\r\n public void handle(KeyEvent ke){\n if (ke.getCode().equals(KeyCode.UP) || ke.getCode().equals(KeyCode.DOWN)){ \r\n //Selecciona la FILA enfocada\r\n selectedRowGuide();\r\n }\r\n }",
"@Override\n public void keyTyped(KeyEvent e) {\n\n }",
"@Override\n public void keyTyped(KeyEvent e) {\n\n }",
"void notifyListItemInserted(int position);",
"@Override\n public void onListItemClicked(int position) {\n\n }",
"private void setListeners() {\n\n clearTextButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //Clear search edit text\n searchET.setText(\"\");\n //hide keyboard\n Utils.hideKeyboard(getActivity());\n }\n });\n\n accept.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n if (isDeleting) {\n //finish deleting\n isDeleting = false;\n\n //hide button\n accept.setVisibility(View.INVISIBLE);\n\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n\n //new adapter\n adapter = new DetailedShoppingListAdapter(getActivity(), productList, false, new AppInterfaces.IEditItem() {\n @Override\n public void deleteItem(int position) {\n }\n\n @Override\n public void changeQuantity(Product product, int position) {\n changeProductQuantity(product, position);\n }\n\n @Override\n public void changePrice(Product product, int position) {\n changeProductPrice(product, position);\n }\n\n @Override\n public void changeQuantityType(Product product, int productPosition, int spinnerPosition) {\n changeProductQuantityType(product, productPosition, spinnerPosition);\n }\n }, new AppInterfaces.IPickItem() {\n @Override\n public void pickItem(int position) {\n// setProductPicked(position);\n }\n });\n listView.setAdapter(adapter);\n }\n }\n });\n\n searchET.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n }\n\n @Override\n public void onTextChanged(CharSequence charSequence, int i, int i1, int i2) {\n //search coincidences\n String searchText = searchET.getText().toString().toLowerCase();\n filteredProducts = utils.searchProducts(productList, searchText);\n\n //update listview\n adapter = new DetailedShoppingListAdapter(getContext(), filteredProducts, false, new AppInterfaces.IEditItem() {\n @Override\n public void deleteItem(int position) {\n }\n\n @Override\n public void changeQuantity(Product product, int position) {\n //send position -1 to know its from filtered product list\n changeProductQuantity(product, -1);\n }\n\n @Override\n public void changePrice(Product product, int position) {\n //send position -1 to know its from filtered product list\n changeProductPrice(product, -1);\n }\n\n @Override\n public void changeQuantityType(Product product, int productPosition, int spinnerPosition) {\n //send position -1 to know its from filtered product list\n changeProductQuantityType(product, -1, spinnerPosition);\n }\n }, new AppInterfaces.IPickItem() {\n @Override\n public void pickItem(int position) {\n //send position -1 to know its from filtered product list\n setProductPicked(-1, position);\n }\n });\n listView.setAdapter(adapter);\n }\n\n @Override\n public void afterTextChanged(Editable editable) {\n }\n });\n\n listView.setOnMenuItemClickListener(new SwipeMenuListView.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(int productPosition, SwipeMenu menu, int index) {\n switch (index) {\n case 0:\n //Pick/UnPick item\n if (filteredProducts != null) {\n setProductPicked(-1, productPosition);\n } else {\n setProductPicked(productPosition, productPosition);\n }\n\n break;\n case 1:\n //Delete item\n //delete product from list\n productList.remove(productPosition);\n\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n\n //refresh list\n adapter.notifyDataSetChanged();\n\n //set new total price\n totalPriceTextView.setText(utils.calculateTotalPrice(productList));\n break;\n }\n return false;\n }\n });\n }",
"@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"public void itemStateChanged(ItemEvent e){\n\n // YOU CODE HERE\n }",
"public interface OnItemSelecetedListener {\n void onItemSelected(String link);\n }",
"public void contentsChanged(ListDataEvent e) {\n\t\tint size=store.size();\n\t\tif (size<2) return;\n\n\t\t// Remove existing list\n\t\tfor (int index=0; index<size; index++) {\n\t\t // Keep removing the first entry until the list is empty\n\t\t JMenuItem item = identityMenu.getItem(identityIndex);\n\t\t identityButtonGroup.remove(item);\n\t\t identityMenu.remove(item);\n\t\t}\n\n\t\t// Create new list\n\t\tfor (int index=0; index<size; index++)\t{\n\t\t CertificatePair cert = store.get(index);\n\t\t Action action = new ActionSelectCertificate(JGSFrame.this, cert, selection);\n\t\t if (index<9)\n\t\t\taction.putValue(Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(\"control \"+(index+1)));\n\t\t JRadioButtonMenuItem jrb = new JRadioButtonMenuItem(action);\n\t\t identityButtonGroup.add(jrb);\n\t\t identityMenu.insert(jrb, identityIndex + index);\n\t\t}\n\t }",
"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 }",
"public interface OnRCVItemClickListener {\n void onRCVItemClick(String keyword);\n}",
"void onListFragmentInteraction(AudioItem item);"
]
| [
"0.6365864",
"0.61584735",
"0.6120296",
"0.6079859",
"0.60424775",
"0.5884661",
"0.5839076",
"0.58040804",
"0.5756929",
"0.57453656",
"0.5737427",
"0.572899",
"0.5718078",
"0.5714094",
"0.57131165",
"0.570439",
"0.5697446",
"0.56771773",
"0.56708425",
"0.5656607",
"0.5652229",
"0.56275314",
"0.5625284",
"0.55852",
"0.5565157",
"0.555689",
"0.55548275",
"0.55493164",
"0.55438507",
"0.554308",
"0.5540934",
"0.55330795",
"0.55196935",
"0.55185634",
"0.5515331",
"0.5515083",
"0.5515083",
"0.5515083",
"0.5515083",
"0.5515083",
"0.5515083",
"0.5515083",
"0.55111134",
"0.5510298",
"0.5506253",
"0.5500775",
"0.54981345",
"0.54839414",
"0.5476763",
"0.54708976",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.5465867",
"0.54611886",
"0.5460992",
"0.5459034",
"0.5450772",
"0.5450315",
"0.5444786",
"0.5443167",
"0.5442134",
"0.5440822",
"0.5432706",
"0.5431908",
"0.5431033",
"0.5425384",
"0.54247487",
"0.54210114",
"0.5415216",
"0.541104",
"0.5408175",
"0.54075813",
"0.5406776",
"0.5406752",
"0.5406752",
"0.5406557",
"0.54043984",
"0.5398547",
"0.53972346",
"0.53964657",
"0.53952503",
"0.53941286",
"0.53895444",
"0.53893024",
"0.5386756"
]
| 0.0 | -1 |
get currently selected index entry | @Override
public void mouseClicked(MouseEvent e) {
if (userList.getSelectedIndex() < 0) {
userList.setSelectedIndex(0);
}
String selectedItem = (String) userList.getSelectedValue();
// load entry data from db
currentUser = (DBUser) DBHandler.getSingleObject(
"FROM DBUser WHERE xname='" + selectedItem + "'");
// fill gui elements with data
loadUserDetails(currentUser);
// enable control buttons
enableButtons(true);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static int getIndexSelected() {\n return indexSelected;\n }",
"public int getSelectionIndex () {\r\n\tcheckWidget();\r\n\tint [] args = {OS.Pt_ARG_PG_CURRENT_INDEX, 0, 0};\r\n\tOS.PtGetResources (handle, args.length / 3, args);\r\n\treturn args [1] == OS.Pt_PG_INVALID ? -1 : args [1];\r\n}",
"private long getSelectedIndex() {\r\n if (selection != null && selection.getKeys().hasNext()) {\r\n return new Long((Integer) selection.getKeys().next());\r\n } else {\r\n return selectedRowId;\r\n }\r\n }",
"public Object getSelectedKey()\n\t{\n\t\tif ( m_results.size() == 0)\n\t\t\treturn null;\n\t\treturn m_results.get(0);\n\t}",
"public IEntry getSelectedEntry()\n {\n return selectedEntry;\n }",
"public int getSelectionIndex() {\n checkWidget();\n return selectedIndex;\n }",
"private long getSelectedReturnIndex() {\r\n if (returnSelection != null && returnSelection.getKeys().hasNext()) {\r\n return new Long((Integer) returnSelection.getKeys().next());\r\n } else {\r\n return selectedReturnRowId;\r\n }\r\n }",
"public String getSelected()\n\t{\n\t\treturn _current.ID;\n\t}",
"int getSelectedClientIndex();",
"public int getSelected() {\n \t\treturn selected;\n \t}",
"public int getIndex(){\r\n \treturn index;\r\n }",
"public int getSelectedIndex() {\r\n\t\t\treturn idx;\r\n\t\t}",
"public int getIndex(){\n return index;\n }",
"public int getIndex(){\n return index;\n }",
"public int getSelectionIndex() {\n\t\treturn list.getSelectionIndex();\n\t}",
"private int getIndex() {\n\t\treturn this.index;\r\n\t}",
"public int getIndex() { return this.index; }",
"public int getIndex()\n {\n return index;\n }",
"public int getIndex()\n {\n return getInt(\"Index\");\n }",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"public int getIndex(){\n\t\treturn index;\n\t}",
"private static String getIndex() {\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(App.getAppContext());\n String defaultValue = Strings.getStringByRId(R.string.c_elastic_search_index_name_default_value);\n String value = Strings.getStringByRId(R.string.c_select_elastic_search_index_name);\n String index = sp.getString(value, defaultValue);\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"int getIndex(){\r\n\t\treturn index;\r\n\t}",
"public int getSelectedRow()\n {\n \treturn this.getSelectedIndex();\n }",
"public int getIndex() {\r\n \t\t\treturn index;\r\n \t\t}",
"int getIndex() {\n\t\treturn index;\n\t}",
"public int getIndex(\n )\n {return index;}",
"public int getIndex()\n {\n return index;\n }",
"public int getIndex() {\r\n return index;\r\n }",
"public int getValue() {\r\n return index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getIndex() {\r\n return _index;\r\n }",
"public int getIndex() {\n \t\treturn index;\n \t}",
"public native int getSelectedIndex();",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index;\n }",
"public int getIndex()\n {\n return m_index;\n }",
"@Override\r\n\tpublic int getIndex() {\n\t\treturn index;\r\n\t}",
"public int getSelection() {\n \tcheckWidget();\n \treturn selection;\n }",
"public int getIndex() {\n return index;\n }",
"public Index getIndex() {\n return index;\n }",
"public final int getIndex(){\n return index_;\n }",
"public int getIndex() {\r\n\t\treturn index;\r\n\t}",
"public int index();",
"public Integer getIndex() {\n return index;\n }",
"public int getIndex() {\n\t\treturn index;\n\t}",
"public int getIndex() {\n\t\treturn index;\n\t}",
"public int getIndex() {\n\t\treturn index;\n\t}",
"AccountFilterSelectListTableEntry getEntry(final int index) {\n return _data.get(index);\n }",
"public int getIndex() { \n\t\t\treturn currIndex;\n\t\t}",
"public int getSelectedIndex() {\n return selectedIndex;\n }",
"public int getIndex() {\n return this.index;\n }",
"public int getIndex() {\n return this.index;\n }",
"public Integer index() {\n return this.index;\n }",
"public int index() {\n\t\treturn this.index;\n\t}",
"public String getSelected()\r\n {\r\n if (selectedIndex == -1)\r\n return null;\r\n \r\n return towerTypes[selectedIndex];\r\n }",
"public Ward getSelected() {\n\t\treturn table.getSelectionModel().getSelectedItem();\n\t}",
"public int getSelectionIndex() {\n checkWidget();\n return OS.SendMessage(handle, OS.TCM_GETCURSEL, 0, 0);\n }",
"int index();",
"public CTabItem getSelection() {\n checkWidget();\n CTabItem result = null;\n if( selectedIndex != -1 ) {\n result = ( CTabItem )itemHolder.getItem( selectedIndex );\n }\n return result;\n }",
"public String getIndex() {\n return this.index;\n }",
"public int getIndex() {\n\t\treturn this.index;\n\t}",
"public Axiom getSelected() {\r\n\treturn view.getSelected();\r\n }",
"Object getSelection();",
"public int getIndex();",
"public int getIndex();",
"public int getIndex();",
"public int getValue()\n { \n return table.get(getSelectedItem());\n }",
"@Override\n public final int getIndex() {\n return index;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"public int getIndex() {\n return index_;\n }",
"@Override\n public synchronized int getCurrentIndex() {\n return mCurrentIndex;\n }",
"public String getIndex() {\n return index;\n }",
"public String getConcreteIndex() {\n return getCurrentItem().index();\n }",
"public E getSelected() {\n ButtonModel selection = selectedModelRef.get();\n //noinspection UseOfSystemOutOrSystemErr\n final String actionCommand = selection.getActionCommand();\n //noinspection HardCodedStringLiteral,UseOfSystemOutOrSystemErr\n return Objects.requireNonNull(textMap.get(actionCommand));\n }",
"public int get(int index);",
"public int getSelectedLayer ()\n {\n return _table.getSelectedRow();\n }",
"public T getSelectedOption() {\n return selectedIndex == -1 ? null : options.get(selectedIndex);\n }",
"@Nullable\n public abstract IndexEntry getIndexEntry();",
"public String getIndex() {\n\t\treturn index;\n\t}",
"public String getIndex() {\n\t\treturn index;\n\t}",
"public Item getSelectedItem() { return this.getSelectedSlot().getMappedItem(); }",
"public Cell getSelectedCell() {\n return selectedCell;\n }",
"int index(){\n\n\t\t\n\t\tif (cursor == null) \n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn index;\n\t}",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();"
]
| [
"0.72771156",
"0.70394236",
"0.7028082",
"0.7013888",
"0.6850621",
"0.67860895",
"0.67551875",
"0.6685173",
"0.6681198",
"0.6652868",
"0.6603479",
"0.6583631",
"0.655518",
"0.655518",
"0.65515333",
"0.65484214",
"0.6534001",
"0.65287364",
"0.65234727",
"0.6519346",
"0.6519346",
"0.6519346",
"0.6516103",
"0.6515631",
"0.6514204",
"0.6506506",
"0.65025157",
"0.6479935",
"0.6461252",
"0.6459908",
"0.6457854",
"0.6446655",
"0.64427423",
"0.64427423",
"0.6419611",
"0.64080334",
"0.6407739",
"0.6407739",
"0.6407739",
"0.6407739",
"0.6407739",
"0.6390671",
"0.63868153",
"0.63850063",
"0.63800436",
"0.6378674",
"0.63779783",
"0.63763356",
"0.6369363",
"0.63566375",
"0.63539517",
"0.63539517",
"0.63539517",
"0.6346627",
"0.63457304",
"0.63424593",
"0.6341655",
"0.6341655",
"0.63308215",
"0.63238037",
"0.63079095",
"0.63041747",
"0.6290778",
"0.6283894",
"0.62827057",
"0.62792015",
"0.62778026",
"0.62734264",
"0.6261883",
"0.6256384",
"0.6256384",
"0.6256384",
"0.6252397",
"0.6248687",
"0.6235194",
"0.6235194",
"0.6235194",
"0.6235194",
"0.6235194",
"0.6235194",
"0.6234984",
"0.62328374",
"0.62322605",
"0.6207318",
"0.62069154",
"0.619336",
"0.6187301",
"0.61825186",
"0.6181302",
"0.6181302",
"0.6170752",
"0.6163741",
"0.6152549",
"0.6148902",
"0.6148902",
"0.6148902",
"0.6148902",
"0.6148902",
"0.6148902",
"0.6148902",
"0.6148902"
]
| 0.0 | -1 |
fill GUI with given user details | private void loadUserDetails(DBUser user) {
userDetailsLoginText.setText(user.getUserLogin());
userDetailsNameText.setText(user.getUserName());
userDetailsLevelSpinner.setValue(user.getUserLevel());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }",
"private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }",
"private void buildUserDataPanel() {\r\n\t\tJPanel user_info_panel = new JPanel();\r\n\t\tuser_info_panel.setBorder(new BevelBorder(BevelBorder.LOWERED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tuser_info_panel.setBackground(INNER_BACKGROUND_COLOR);\r\n\t\tuser_info_panel.setBounds(201, 234, 213, 100);\r\n\t\tuser_info_panel.setLayout(new GridLayout(3, 2));\r\n\t\tJLabel label_2 = new JLabel(\" User:\");\r\n\t\tlabel_2.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_2);\r\n\t\tJLabel label = new JLabel(\"Biff McMann\");\r\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label);\r\n\t\tJLabel label_3 = new JLabel(\" Position:\");\r\n\t\tlabel_3.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_3);\r\n\t\tJLabel label_1 = new JLabel(\"Program Chair\");\r\n\t\tlabel_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label_1);\r\n\t\tJLabel label_4 = new JLabel(\" Date:\");\r\n\t\tlabel_4.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tuser_info_panel.add(label_4);\r\n\t\tJLabel label_5 = new JLabel(\"9/23/2013\");\r\n\t\tlabel_5.setFont(new Font(\"Tahoma\", Font.PLAIN, 11));\r\n\t\tuser_info_panel.add(label_5);\r\n\t\tmain_panel.add(user_info_panel);\r\n\r\n\t}",
"public UpdateAccountInfoUI() {\n initComponents();\n userNameLabel.setText(Authentication.online_user.getUserName());\n usernamePlaceholder.setText(Authentication.online_user.getUserName());\n emailPlaceholder.setText(Authentication.online_user.getEmail());\n passwordPLaceholder.setText(Authentication.online_user.getPassword());\n \n }",
"private void serchUser() {\n if (!userNameTextField.getText().isEmpty() && !passwordPasswordField.getText().isEmpty()) {\n try {\n User user = UserController.searchUserByUserName(userNameTextField.getText());\n if (user != null) {\n if (passwordPasswordField.getText().equals(user.getPassword())) {\n closeFadeOut();\n Hi hi = new Hi();\n hi.setUser(user);\n hi.setVisible(true);\n dispose();\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Please enter username and password\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n }",
"public void getUserData() {\r\n User user = serverView.getUserInfo(username.getText());\r\n username.setText(\"\");\r\n if (user == null) {\r\n Alert alert = new Alert(AlertType.ERROR);\r\n alert.setTitle(\"Error\");\r\n alert.setHeaderText(\"no User with this username\");\r\n alert.showAndWait();\r\n } else {\r\n\r\n try {\r\n userContent.getChildren().clear();\r\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"UserInfoView.fxml\"));\r\n fxmlLoader.setController(new UserInfoController(user));\r\n Pane pane = fxmlLoader.load();\r\n userContent.getChildren().add(pane);\r\n\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n }",
"private void setUser(){\n try{\n if (!mainUser.getUsername().equals(\"\")){\n this.userName.setText(mainUser.getUsername());\n }else{\n this.userName.setText(\"User\");\n }\n\n\n File file = new File(mainUser.getProfileImage());\n if (!file.exists()){\n file = new File(getClass().getResource(\"../images/eren.png\").getFile());\n }\n Image img = new Image(file.toURI().toString());\n profileImage.setImage(img);\n\n setEventLabel(\"Welcome \"+mainUser.getFname()+\" \"+mainUser.getLname()+\".\");\n }catch (NullPointerException e){\n AlertBox.alert(AlertType.ERROR, stackRoot, anchorRoot, \"There was an error while updating UserInfo\");\n }\n }",
"private void initialize(CurrentProfile newUser) {\n\t\tfrmSignUp = new JFrame();\n\t\tfrmSignUp.setResizable(false);\n\t\t//frmSignUp.setAlwaysOnTop(true);\n\t\tfrmSignUp.setTitle(\"SIGN UP (1/6)\");\n\t\tfrmSignUp.setBounds(100, 100, 557, 483);\n\t\tfrmSignUp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmSignUp.getContentPane().setLayout(null);\n\t\tfrmSignUp.setVisible(true);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(12, 12, 531, 432);\n\t\tfrmSignUp.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\t//allfield[0] = new JTextField();\n\t\t//allfield[0].setBounds(165, 60, 246, 20);\n\t\t//panel.add(allfield[0]);\n\t\t\n\t\tJLabel lblName = new JLabel(\"NAME\");\n\t\tlblName.setBounds(33, 67, 46, 14);\n\t\tpanel.add(lblName);\n\t\t\n\t\tJLabel lblDob = new JLabel(\"D.O.B\");\n\t\tlblDob.setBounds(33, 121, 46, 14);\n\t\tpanel.add(lblDob);\n\t\t\n\t\tJLabel lblFatherName = new JLabel(\"FATHER'S NAME\");\n\t\tlblFatherName.setBounds(33, 167, 109, 14);\n\t\tpanel.add(lblFatherName);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"EMAIL\");\n\t\tlblEmail.setBounds(33, 222, 46, 14);\n\t\tpanel.add(lblEmail);\n\t\t\n\t\tJLabel lblSex = new JLabel(\"SEX\");\n\t\tlblSex.setBounds(33, 271, 46, 14);\n\t\tpanel.add(lblSex);\n\t\t\n\t\tJLabel lblPicture = new JLabel(\"PICTURE\");\n\t\tlblPicture.setBounds(33, 332, 74, 14);\n\t\tpanel.add(lblPicture);\n\t\t\n\t\tJLabel lblUid = new JLabel(\"UID\");\n\t\tlblUid.setBounds(384, 22, 107, 16);\n\t\tlblUid.setText(Integer.toString(newUser.uid));\n\t\tpanel.add(lblUid);\n\t\t\n\t\ttxtName1 = new JTextField();\n\t\ttxtName1.setBounds(158, 64, 163, 20);\n\t\tpanel.add(txtName1);\n\t\ttxtName1.setColumns(10);\n\t\t\n\t\tJRadioButton rdbtnMale = new JRadioButton(\"Male\");\n\t\trdbtnMale.setBounds(153, 267, 109, 23);\n\t\tpanel.add(rdbtnMale);\n\t\t\n\t\tJRadioButton rdbtnFemale = new JRadioButton(\"Female\");\n\t\trdbtnFemale.setBounds(356, 267, 109, 23);\n\t\tpanel.add(rdbtnFemale);\n\t\t\n\t\tButtonGroup group = new ButtonGroup();\n\t\tgroup.add(rdbtnMale);\n\t\tgroup.add(rdbtnFemale);\n\t\t\n\t\ttxtDate = new JTextField();\n\t\ttxtDate.setText(\"DD-MM-YYYY\");\n\t\ttxtDate.setBounds(158, 118, 333, 20);\n\t\tpanel.add(txtDate);\n\t\ttxtDate.setColumns(10);\n\t\t\n\t\ttxtFather = new JTextField();\n\t\ttxtFather.setBounds(160, 164, 331, 20);\n\t\tpanel.add(txtFather);\n\t\ttxtFather.setColumns(10);\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\ttxtEmail.setBounds(158, 216, 333, 20);\n\t\tpanel.add(txtEmail);\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJButton btnSelect = new JButton(\"SELECT IMAGE\");\n\t\tbtnSelect.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtPhoto.setText(\"\");\n\t\t\t\tJFileChooser filechooser = new JFileChooser();\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\n\t\t\t\t \"Images\", \"jpg\",\"JPG\",\"GIF\", \"gif\",\"JPEG\",\"png\",\"PNG\");\n\t\t\t\tfilechooser.setFileFilter(filter);\n\t\t\t\t//ThumbNailView thumbsView = new ThumbNailView();\n\t\t\t\t//filechooser.setAccessory(new ImagePreview(filechooser));\n\t\t\t\tint returnVal = filechooser.showDialog(null,\"select an image\");\n\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION){\n\t\t\t\t\tfile = filechooser.getSelectedFile();\n\t\t\t\t\ttxtPhoto.setText(file.getPath());\n\t\t\t\t\tnewUser.picLoc=file.getPath();\n\t\t\t\t//\tnewUser.picName=file.getName();\n\t\t\t\t\tnewUser.picLoc=newUser.picLoc.replace(\"\\\\\", \"\\\\\\\\\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSelect.setBounds(374, 326, 124, 26);\n\t\tpanel.add(btnSelect);\n\t\t\n\t\tJButton btnNext = new JButton(\">>\");\n\t\tbtnNext.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//String name,father,dob,email,photo;\n\t\t\t\t\n\t\t\t\tboolean f=false;\n\t\t\t\t\n\t\t\t\tdo{\n\t\t\t\t\tnewUser.nameFirst=txtName1.getText();\n\t\t\t\t\tnewUser.nameLast=txtName2.getText();\n\t\t\t\t\n\t\t\t\t\tnewUser.father=txtFather.getText();\n\t\t\t\t\tnewUser.dob=txtDate.getText();\n\t\t\t\t\tnewUser.email=txtEmail.getText();\n\t\t\t\t\tnewUser.picLoc=file.getPath();//.getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tif(rdbtnFemale.isSelected()){\n\t\t\t\t\t\tnewUser.sex='f';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rdbtnMale.isSelected()){\n\t\t\t\t\t\tnewUser.sex='m';\n\t\t\t\t\t}\n\t\t\t\t\tif(newUser.nameFirst.length()!=0&&newUser.father.length()!=0&&newUser.dob.length()!=0&&newUser.email.length()!=0&&newUser.picLoc.length()!=0&&newUser.sex!=0){\n\t\t\t\t\t\tf=true;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"enter every details!!!\");\n\t\t\t\t\t}\n\t\t\t\t}while(!f);\n\t\t\t\t/*try {\n\t\t\t\t\tf=newUser.l1Tableinsert();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"database connection error !!!\\t\"+e1);\n\t\t\t\t}\n\t\t\t\tif(!f)\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"database connection error !!!\\t\");\n\t\t\t\t*/\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSignL2Panel window = new SignL2Panel(newUser);\n\t\t\t\t\t\t\twindow.frmSignUp2.setVisible(true);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfrmSignUp.dispose();\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t});\n\t\tbtnNext.setBounds(433, 406, 98, 26);\n\t\tpanel.add(btnNext);\n\t\t\n\t\ttxtPhoto = new JTextField();\n\t\ttxtPhoto.setBounds(158, 329, 204, 20);\n\t\tpanel.add(txtPhoto);\n\t\ttxtPhoto.setColumns(10);\n\t\t\n\t\ttxtName2 = new JTextField();\n\t\ttxtName2.setBounds(333, 64, 158, 20);\n\t\tpanel.add(txtName2);\n\t\ttxtName2.setColumns(10);\n\t\t\n\t\t\n\t//\tpanel.setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{textField, datePicker, lblName, lblDob, lblFatherName, lblEmail, lblSex, lblPicture, rdbtnMale, rdbtnFemale}));\n\t\t//allfield[0].setColumns(10);\n\t\t\n\t}",
"private void displayUserInfo(String name) {\n\t\tString username = null;\n\t\tPattern p = Pattern.compile(\"\\\\[(.*?)\\\\]\");\n\t\tMatcher m = p.matcher(name);\n\t\tif (m.find())\n\t\t{\n\t\t username = m.group(1);\n\t\t lastClickedUser = username;\n\t\t}\n\t\tUser u = jdbc.get_user(username);\n\t\ttextFirstName.setText(u.get_firstname());\n\t\ttextLastName.setText(u.get_lastname());\n\t\ttextUsername.setText(u.get_username());\n\t\tif (u.get_usertype() == 1) {\n\t\t\trdbtnAdminDetails.setSelected(true);\n\t\t} else if (u.get_usertype() == 2) {\n\t\t\trdbtnManagerDetails.setSelected(true);\n\t\t} else {\n\t\t\trdbtnWorkerDetails.setSelected(true);\n\t\t}\n\t\tif (u.get_email() != null) {textEmail.setText(u.get_email());} else {textEmail.setText(\"No Email Address in Database.\");}\n\t\tif (u.get_phone() != null) {textPhone.setText(u.get_phone());} else {textPhone.setText(\"No Phone Number in Database.\");}\t\t\t\t\n\t\tcreateQualLists(u.get_userID());\n\t}",
"@Override\n\tpublic void doUser(UserInfo ui) {\n\n\t}",
"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 }",
"private void showUser() {\n\t\tCommonADO ado=CommonADO.getCommonADO();\r\n\t\tString sql=\"select * from Users\";\r\n\t\tResultSet rs=ado.executeSelect(sql);\r\n\t\tString str=\"\";\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tString user=rs.getString(\"UserName\");\r\n\t\t\t\tString pass=rs.getString(\"Password\");\r\n\t\t\t\tString type=rs.getString(\"UserType\");\r\n\t\t\t\tif(type.equals(\"管理员\"))\r\n\t\t\t\t\tpass=\"******\";\r\n\t\t\t\tif(user.length()<12){\r\n\t\t\t\t\tfor(int i=user.length();i<=12;i++)\r\n\t\t\t\t\t\tuser+=\" \";\r\n\t\t\t\t}\r\n\t\t\t\tif(pass.length()<12){\r\n\t\t\t\t\tfor(int i=pass.length();i<=12;i++)\r\n\t\t\t\t\t\tpass+=\" \";\r\n\t\t\t\t}\r\n\t\t\t\tif(type.length()<12){\r\n\t\t\t\t\tfor(int i=type.length();i<=12;i++)\r\n\t\t\t\t\t\ttype+=\" \";\r\n\t\t\t\t}\r\n\t\t\t\tstr+=\"用户名:\"+user;\r\n\t\t\t\tstr+=\" 密码:\"+pass;\r\n\t\t\t\tstr+=\" 用户类型:\"+type+\"\\n\";\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttextAreaUser.setText(str);\r\n\t}",
"void changeUser(){\n\t\tfinal FrameLayout fl = new FrameLayout(this);\n\n\t\tfinal EditText newUID = new EditText(this);\n\t\tfinal LinearLayout nameHolder = new LinearLayout(this);\n\t\tnameHolder.setOrientation(1);//Vertical\n//\t\tinputName.setGravity(Gravity.CENTER);\n//\t\tinputTitle.setGravity(Gravity.CENTER);\n\t\t//MAX 2 digits! HARDCODED\n\t\t//Limit them to a certain amount of digits\n\t\tInputFilter[] FilterArray = new InputFilter[1];\n\t\tFilterArray[0] = new InputFilter.LengthFilter(2);\n\t\tnewUID.setFilters(FilterArray);\n\t\t\n\t\tnameHolder.addView(newUID, new FrameLayout.LayoutParams(\n\t\t\t\tFrameLayout.LayoutParams.FILL_PARENT,\n\t\t\t\tFrameLayout.LayoutParams.WRAP_CONTENT));\n\t\t\n\t\tfl.addView(nameHolder, new FrameLayout.LayoutParams(\n\t\t\t\tFrameLayout.LayoutParams. FILL_PARENT,\n\t\t\t\tFrameLayout.LayoutParams.FILL_PARENT));\n\n\t\t// input.setText(\"Preset Text\");\n\t\tnewUID.setHint(\"NUMBER: 00-99\");\n\t\tnewUID.setInputType(InputType.TYPE_CLASS_NUMBER);\n\n\t\tAlertDialog newprojPopUp = new AlertDialog.Builder(this).create();\n\n\t\t//Show the keyboard automatically\n\t\tnewprojPopUp.setOnShowListener(new OnShowListener() {\n\n\t\t @Override\n\t\t public void onShow(DialogInterface dialog) {\n\t\t InputMethodManager imm = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n\t\t imm.showSoftInput(newUID, InputMethodManager.SHOW_FORCED);\n\t\t }\n\t\t});\n\t\t\n\t\tnewprojPopUp.setView(fl);\n\n\t\tnewprojPopUp.setTitle(\"Enter your USER ID (00-99)\");\n\n\t\t// Create Button\n\t\tnewprojPopUp.setButton(\"Enter\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(\n\t\t\t\t\t\t\tfinal DialogInterface dMAIN,\n\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\tuserID=Integer.parseInt(newUID.getText().toString().trim());\n\t\t\t\t\t\tuserButton.setText(\"USER: \"+userIDformatter.format(userID));\n\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\t\"New User ID = \"+userID,\n\t\t\t\t\t\t\t\t1).show();\n\t\t\t\t\t\tmakeUser();\n\t\t\t\t\t\tloadUpAllPics();\n\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\t// Cancel Button\n\t\tnewprojPopUp.setButton2(\"Cancel\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface d,\n\t\t\t\t\t\t\tint which) {\n\n\t\t\t\t\t\t d.dismiss();\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\tnewprojPopUp.show();\n\t\tnewUID.requestFocus();\n\t\tnewprojPopUp\n\t\t\t\t.getWindow()\n\t\t\t\t.setSoftInputMode(\n\t\t\t\t\t\tWindowManager.LayoutParams.SOFT_INPUT_STATE_ALWAYS_VISIBLE);\n\n\n\t\t\n\t}",
"private void buildUserInterface() {\n\t\t// Create layout manager\n\t\tGridLayout layout = new GridLayout();\n\t\tlayout.numColumns = 2;\n\t\tlayout.horizontalSpacing = 6;\n\t\tlayout.verticalSpacing = 6;\n\t\t\n\t\t// Layout data for the text input fields\n\t\tGridData gridData = new GridData();\n\t\tgridData.horizontalAlignment = SWT.FILL;\n\t\tgridData.grabExcessHorizontalSpace = true;\n\n\t\t// Create composite\n\t\tComposite login = new Composite(shell, SWT.NONE);\n\t\tlogin.setLayout(layout);\n\n\t\t// Add name label\n\t\tLabel nameLabel = new Label(login, SWT.NONE);\n\t\tnameLabel.setText(\"Dein Name: \");\n\n\t\t// Add name input\n\t\tname = new Text(login, SWT.SINGLE | SWT.BORDER);\n\t\tname.setText(\"test \" + (int)(Math.random() * 30));\n\t\tname.selectAll();\n\t\tname.setLayoutData(gridData);\n\n\t\t// Add server label\n\t\tLabel serverLabel = new Label(login, SWT.NONE);\n\t\tserverLabel.setText(\"Server: \");\n\n\t\t// Add server input\n\t\tserver = new Text(login, SWT.SINGLE | SWT.BORDER);\n\t\tserver.setText(\"localhost\");\n\t\tserver.setLayoutData(gridData);\n\n\t\t// Add \"join game\" button\n\t\tjoinGame = new Button(login, SWT.PUSH);\n\t\tjoinGame.setText(\"Spiel beitreten\");\n\t\tshell.setDefaultButton(joinGame);\n\n\t\t// Add \"load game\" button\n\t\tloadGame = new Button(login, SWT.PUSH);\n\t\tloadGame.setText(\"Spiel laden\");\n\n\t\tlogin.setBounds(0, 0, 250, 250);\n\n\t\t// Create composite\n\t\tComposite about = new Composite(shell, SWT.NONE);\n\t\tabout.setLayout(layout);\n\n\t\t// Add about text\n\t\tLabel aboutlabel = new Label(about, SWT.NONE);\n\t\taboutlabel.setText(AppClient.name + \"\\n\" + \"Hochschule Bremen 2011\\n\"\n\t\t\t\t+ \"Hendrik Druse, Jannes Meyer, Timur Teker\");\n\n\t\tabout.setBounds(0, 300, 250, 50);\n\t}",
"public UserInfoPanel() {\n initComponents();\n }",
"public void initData(Users user){\n \n this.selectedUser = user;\n String idValue = String.valueOf(selectedUser.getId());\n String expiresValue = String.valueOf(selectedUser.getExpires_at());\n String enabledValue = String.valueOf(selectedUser.getEnabled());\n String lastLoginValue = String.valueOf(selectedUser.getLast_login());\n email.setText(selectedUser.getEmail());\n password.setText(selectedUser.getPassword());\n role.setText(selectedUser.getRoles());\n idField.setText(idValue);\n expiresField.setText(expiresValue);\n enabledField.setText(enabledValue);\n lockedTextField.setText(lastLoginValue);\n lastLoginTextField.setText(idValue);\n System.out.println(user.toString());\n }",
"private void updateUserDetailsFromView() {\n\t\tcurrentDetails.setFirstName(detailDisplay.getFirstName().getValue());\n\t\tcurrentDetails.setLastName(detailDisplay.getLastName().getValue());\n\t\tcurrentDetails.setMiddleInitial(detailDisplay.getMiddleInitial().getValue());\n\t\tcurrentDetails.setTitle(detailDisplay.getTitle().getValue());\n\t\tcurrentDetails.setEmailAddress(detailDisplay.getEmailAddress().getValue());\n\t\tcurrentDetails.setPhoneNumber(detailDisplay.getPhoneNumber().getValue());\n\t\tcurrentDetails.setActive(detailDisplay.getIsActive().getValue());\n\t\t//currentDetails.setRootOid(detailDisplay.getRootOid().getValue());\n\t\tcurrentDetails.setRole(detailDisplay.getRole().getValue());\n\t\t\n\t\tcurrentDetails.setOid(detailDisplay.getOid().getValue());\n\t\tString orgId = detailDisplay.getOrganizationListBox().getValue();\n\t\tcurrentDetails.setOrganizationId(orgId);\n\t\tResult organization = detailDisplay.getOrganizationsMap().get(orgId);\n\t\tif (organization != null) {\n\t\t\tcurrentDetails.setOrganization(organization.getOrgName());\n\t\t} else {\n\t\t\tcurrentDetails.setOrganization(\"\");\n\t\t}\n\t}",
"private void setupUsernameAndFullNameTextView() {\n usernameTextView.setText(prismUser.getUsername());\n userFullNameText.setText(prismUser.getFullName());\n }",
"public void populateFields(String userName){\n this.userNameLabel.setText(userName);\n \n if(this.dbConnection.ConnectDB()){\n //we connected\n String[] temp = this.dbConnection.getUserInformation(userName);\n //take this array and populate the input fields for firstName, lastName,Email,\n this.firstNameInputField.setText(temp[0]);\n this.lastNameInputField.setText(temp[1]);\n this.emailInputField.setText(temp[4]);\n this.roleDropdown.promptTextProperty().set(temp[2]);\n this.departmentDropdown.promptTextProperty().set(temp[3]);\n //add these default values to the map\n this.defaultFirstname = temp[0];\n this.defaultLastname = temp[1];\n this.defaultEmail = temp[4];\n this.defaultRole = temp[2];\n this.defaultDepartment = temp[3];\n \n //repopulate the map\n populateMap();\n //unlock the checkboxes\n this.unlockCheckboxes(this.boxes);\n \n// //print out the mapfor testing purposes\n// for(Map.Entry<String,String> mapObj: this.defaultValuesMap.entrySet()){\n// System.out.println(mapObj.getKey());\n// System.out.println(mapObj.getValue());\n// }\n \n \n }\n }",
"private void init(){\n this.firstNameTF.setText(user.getFirstName());\n this.nameTF.setText(user.getName());\n this.phoneTF.setText(user.getPhone());\n\n this.mailLabel.setText(user.getMail());\n this.roleLabel.setText(user.getFirstName());\n }",
"public UserDatapanel(){\n\t\t\t\tsetLayout(new GridLayout(8,1));\n\t\t\t\t\n\t\t\t\tadd(new JLabel(\"Username: \", JLabel.LEFT));\n\t\t\t\tadd(userIDfield);\n\t\t\t\t\n\t\t\t\tadd(new JLabel(\"User type: \", JLabel.LEFT));\n\t\t\t\tadd(userList);\n\t\t\t\t\n\t\t\t\tadd(new JLabel(\"Name: \", JLabel.LEFT));\n\t\t\t\tadd(usernameField);\t\t\t\t\n\n\t\t\t\tadd(new JLabel(\"Password: \", JLabel.LEFT));\n\t\t\t\tadd(passwordField);\n\t\t\t}",
"public void run()\r\n {\n invokeLater(new Runnable() \r\n {\r\n public void run()\r\n {\r\n _lblUser.setText(_userEdit.getText());\r\n }\r\n }); \r\n \r\n // Save at persistent store\r\n saveOptions(_userEdit.getText(), _passEdit.getText(), _freqEdit.getText());\r\n popScreen(SetupScreen.this);\r\n }",
"public ViewUserGUI(DashBoard cp, User user) {\n this.cp = cp;\n this.tc = cp.getMessageCollectionController();\n this.pc = cp.getPanelController();\n this.user = user;\n initComponents();\n }",
"private void updateUserDetails() {\n \tUser user=CurrentSession.getCurrentUser();\n \tjLabel1.setText(\"Name:\");\n jLabel2.setText(user.getFirstName()+\" \"+user.getLastName());\n jLabel3.setText(\"Card Number:\");\n jLabel4.setText(user.getCardNumber());\n jLabel5.setText(\"Daily Calorie Intake\");\n FoodPreference fp=new FoodPreference(user.getCardNumber());\n jLabel6.setText(\"\"+fp.getUserCalories());\n jLabel7.setText(\"Monthly Expenses\");\n jLabel8.setText(\"\"+user.getExpenses());\n\n\t\t\n\t}",
"public UserFrame(User user) {\n this.user = user;\n initComponents();\n fetchInfo();\n fetchBillInfo();\n }",
"private void openUserManagementWindow() {\r\n\t\tnew JFrameUser();\r\n\t}",
"public UpdateAccountInfoDialog (int uid)// get uid\n\t{\n\t\tthis.uid=uid;\n\t\tudb = new UserDB();\n\n\t\tsetTitle(\"Update Account Info\");\n\t\taddWindowListener(new WindowAdapter() {\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\n\t\tContainer contentPane;\n\t\tcontentPane = getContentPane();\n\n\t\t//create a new JPanel to hold everything\n\t\tJPanel sud = new JPanel();\n\t\tsud.setLayout(new BoxLayout(sud, BoxLayout.Y_AXIS));\n\n\t\t//messPanel contains message to be displayed\n\t\tJPanel messPanel = new JPanel();\n\t\tmessPanel.add(new JLabel(\"Update Info\"));\n\t\tsud.add(messPanel);\n\n\t\tJPanel lnPanel = new JPanel();\n\t\tlnPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tlnPanel.add(new JLabel(\"Last name:\"));\n\t\tlastnameTF = new JTextField(15);\n\t\t;\n\t\tlastnameTF.setText(udb.getUserWithUID(uid).getLastName());\n\t\tlnPanel.add(lastnameTF);\n\t\tsud.add(lnPanel);\n\t\t\n\t\tJPanel fnPanel = new JPanel();\n\t\tfnPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tfnPanel.add(new JLabel(\"First name:\"));\n\t\tfirstnameTF = new JTextField(15);\n\t\tfirstnameTF.setText(udb.getUserWithUID(uid).FirstName());\n\t\tfnPanel.add(firstnameTF);\n\t\tsud.add(fnPanel);\n\t\t\n\t\tJPanel namePanel = new JPanel();\n\t\tnamePanel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tnamePanel.add(new JLabel(\"Email address (username):\"));\n\t\tusernameTF = new JTextField(15);\n\t\tusernameTF.setText(udb.getUserWithUID(uid).getEmail());\n\t\tnamePanel.add(usernameTF);\n\t\tsud.add(namePanel);\n\n\t\tJPanel pwPanel1 = new JPanel();\n\t\tpwPanel1.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tpwPanel1.add(new JLabel(\"Password:\"));\n\t\tpassword1PF = new JPasswordField(15);\n\t\tpassword1PF.setText(udb.getUserWithUID(uid).Password());\n\t\tpwPanel1.add(password1PF);\n\t\tsud.add(pwPanel1);\n\n\t\tJPanel pwPanel2 = new JPanel();\n\t\tpwPanel2.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tpwPanel2.add(new JLabel(\"Type password again:\"));\n\t\tpassword2PF = new JPasswordField(15);\n\t\tpassword2PF.setText(udb.getUserWithUID(uid).Password());\n\t\tpwPanel2.add(password2PF);\n\t\tsud.add(pwPanel2);\n\t\t\n\t\tJPanel adminPanel = new JPanel();\n\t\tadminPanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tadminPanel.add(new JLabel(\"Admin:\"));\n\t\tadminCB = new JCheckBox();\n\t\tadminCB.setSelected(udb.getUserWithUID(uid).Admin()==1);\n\t\tadminPanel.add(adminCB);\n\t\tsud.add(adminPanel);\n\n\t\tcontentPane.add(\"North\", sud);\n\n\t\tJPanel butPanel = new JPanel();\n\t\tcancelB = new JButton(\"Cancel\");\n\t\tcancelB.addActionListener(this);\n\t\tbutPanel.add(cancelB);\n\t\tupdateB = new JButton(\"Update\");\n\t\tupdateB.addActionListener(this);\n\t\tbutPanel.add(updateB);\n\n\t\tcontentPane.add(\"South\", butPanel);\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t\tsetVisible(true);\n\t}",
"private void displayUserDelegation() {\r\n userDelegationForm = new UserDelegationForm(mdiForm,true);\r\n userDelegationForm.display();\r\n }",
"public Aplikasi_Master_User() {\n initComponents();\n kon.setKoneksi();\n BacaTabelUser();\n tkd_user.setVisible(true);\n }",
"private void initialize() {\r\n\t\tfrmClient = new JFrame();\r\n\t\tfrmClient.addWindowListener(new WindowAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\r\n\t\t\t\tautoFillInUsername();\r\n\t\t\t}\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\t\thReq.close();\r\n\t\t\t}\r\n\t\t});\r\n\t\tfrmClient.setResizable(false);\r\n\t\tfrmClient.setForeground(SystemColor.window);\r\n\t\tfrmClient.setTitle(\"Client\");\r\n\t\tfrmClient.setBackground(SystemColor.window);\r\n\t\tfrmClient.setBounds(100, 100, 528, 364);\r\n\t\tfrmClient.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setBackground(SystemColor.window);\r\n\t\tfrmClient.getContentPane().add(panel, BorderLayout.CENTER);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tgNameTextField = new JTextField();\r\n\t\tgNameTextField.setEditable(false);\r\n\t\tgNameTextField.setBounds(154, 11, 261, 20);\r\n\t\tpanel.add(gNameTextField);\r\n\t\tgNameTextField.setColumns(10);\r\n\t\t\r\n\t\tlblGivenname = new JLabel(\"Givenname\");\r\n\t\tlblGivenname.setBounds(36, 14, 67, 14);\r\n\t\tpanel.add(lblGivenname);\r\n\t\t\r\n\t\tlblSurname = new JLabel(\"Surname\");\r\n\t\tlblSurname.setBounds(36, 45, 67, 14);\r\n\t\tpanel.add(lblSurname);\r\n\t\t\r\n\t\tsNameTextField = new JTextField();\r\n\t\tsNameTextField.setEditable(false);\r\n\t\tsNameTextField.setBounds(154, 42, 261, 20);\r\n\t\tpanel.add(sNameTextField);\r\n\t\tsNameTextField.setColumns(10);\r\n\t\t\r\n\t\tuserInfos = new JTextArea();\r\n\t\tuserInfos.setFont(new Font(\"Monospaced\", Font.PLAIN, 10));\r\n\t\tuserInfos.setText(\"############# Infos will be displayed here ################\");\r\n\t\tuserInfos.setForeground(Color.WHITE);\r\n\t\tuserInfos.setToolTipText(\"\");\r\n\t\tuserInfos.setBackground(SystemColor.desktop);\r\n\t\tuserInfos.setEditable(false);\r\n\t\tuserInfos.setLineWrap(true);\t\t\r\n\t\tJScrollPane scroll = new JScrollPane (userInfos);\r\n\t\tscroll.setBounds(10, 212, 500, 112);\r\n\t\tpanel.add(scroll);\r\n\t\t\r\n\t\tlabel = new JLabel(\"E-Mail-Address\");\r\n\t\tlabel.setBounds(36, 76, 119, 14);\r\n\t\tpanel.add(label);\r\n\t\t\r\n\t\teMailTextField = new JTextField();\r\n\t\teMailTextField.setColumns(10);\r\n\t\teMailTextField.setBounds(154, 73, 261, 20);\r\n\t\tpanel.add(eMailTextField);\r\n\t\t\r\n\t\tbtnSubmitCertificateSigning = new JButton(\"Submit Certificate Signing Request\");\r\n\t\tbtnSubmitCertificateSigning.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\tcreateCertificateSigningRequest();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSubmitCertificateSigning.setBackground(Color.WHITE);\r\n\t\tbtnSubmitCertificateSigning.setBounds(154, 101, 261, 23);\r\n\t\tpanel.add(btnSubmitCertificateSigning);\r\n\t\t\r\n\t\tlblTokenFromMail = new JLabel(\"Token from Mail\");\r\n\t\tlblTokenFromMail.setBounds(36, 153, 119, 14);\r\n\t\tpanel.add(lblTokenFromMail);\r\n\t\t\r\n\t\ttokenTextField = new JTextField();\r\n\t\ttokenTextField.setEditable(false);\r\n\t\ttokenTextField.setToolTipText(\"Format = XXXX-XXXX-XXXX-XXXX\");\r\n\t\ttokenTextField.setColumns(10);\r\n\t\ttokenTextField.setBounds(154, 150, 261, 20);\r\n\t\tpanel.add(tokenTextField);\r\n\t\t\r\n\t\tbtnSubmitToken = new JButton(\"Submit Token\");\r\n\t\tbtnSubmitToken.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\r\n\t\t\t\tsendTokenToService();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSubmitToken.setEnabled(false);\r\n\t\tbtnSubmitToken.setBackground(Color.WHITE);\r\n\t\tbtnSubmitToken.setBounds(154, 178, 261, 23);\r\n\t\tpanel.add(btnSubmitToken);\r\n\t\t\r\n\t}",
"public MainUI() {\n initComponents();\n workoutTbl.setModel(model);\n// loggedInUserFld.setText(account.getLogin().getUsername());\n }",
"private void populateUserView()\n\t{\n\t\t/* create dummy user properties, throw away later */\n\t\tPlayerViewModel userViewModel = new PlayerViewModel(currentUser.getString(\"facebookId\"), \n\t\t\t\t\t\t\t\t\t\tcurrentUser.getString(\"profilePicUrl\")+\"?type=large\", \n\t\t\t\t\t\t\t\t\t\tlocalCountMap.get(currentUser.getString(\"facebookId\")), \n\t\t\t\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\t\t\t\tfalse);\n\t\t\n\t\t/* create adapter for user view */\n\t\tuserCheeseTextView = (TextView) findViewById(R.id.cheeseCountTextView);\n\t\t//userProfileImageView = (ImageView) findViewById(R.id.userProfileImageView);\n\t\tuserProfileImageView = (CircularImageView) findViewById(R.id.userProfileImageView);\n\t\tuserViewAdapter = new UserViewAdapter(this, userCheeseTextView, userProfileImageView);\n\t\t\n\t\t/* set display values via adapter */\n\t\tuserViewAdapter.setUser(userViewModel);\t\t\n\t}",
"public User_gui() {\n initComponents();\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tPersonalInfoShow.tv_PIS_UserName.setText(Login.LOGIN_USERNAME);\n\t\t\t\tPersonalInfoShow.tv_PIS_PassWord.setText(PIS_Password);\n\t\t\t\tPersonalInfoShow.tv_PIS_Phone.setText(PIS_Phone);\n\t\t\t\tPersonalInfoShow.tv_PIS_Address.setText(PIS_Address);\n\t\t\t\tPersonalInfoShow.tv_PIS_Sex.setText(PIS_Sex);\n\t\t\t\tPersonalInfoShow.tv_PIS_Balances.setText(PIS_Balances);\n\n\t\t\t}",
"public abstract JLabel createUserWidget(String userName, String host, String chatMessage);",
"public EditUserInfoGUI(ClientManager man) {\n\t\tmanager = man;\n\t\tinitComponents();\n\t}",
"private void setLayoutElements() {\n // AuthenticatedUser is async thread.\n // It is getting the details for the\n // authenticated user and use them\n // to set UI elements below.\n AuthenticatedUser getAccount = new AuthenticatedUser(\n this, profilePictureProgressBar, profilePicture, firstName, lastName, email\n );\n\n // Starting the thread.\n getAccount.execute();\n }",
"void drawManageUser(String username, String firstname, String lastname);",
"public void Name_Setter() {\n Dialog<Pair<String, String>> dialog = new Dialog<>();\n dialog.setTitle(\"Developer Login\");\n FontAwesomeIconView icon = new FontAwesomeIconView(FontAwesomeIcon.EXPEDITEDSSL);\n icon.setGlyphSize(40);\n icon.setGlyphStyle(\"-fx-fill:green;\");\n\n dialog.setGraphic(icon);\n dialog.setHeaderText(\"Only Developers Authorised..\");\n\n //set Button types\n ButtonType lbutton = new ButtonType(\"Open\", ButtonData.NO);\n dialog.getDialogPane().getButtonTypes().addAll(lbutton, ButtonType.CANCEL);\n\n //create the username and password labels and fields\n GridPane grid = new GridPane();\n grid.setHgap(10);\n grid.setVgap(10);\n grid.setPadding(new Insets(0, 20, 10, 10));\n\n JFXTextField fld = new JFXTextField();\n fld.setPromptText(\"Developer email\");\n fld.setMinWidth(200);\n\n JFXPasswordField pfld = new JFXPasswordField();\n pfld.setPromptText(\"Developer Password\");\n\n Label infor = new Label(\"Enter Email and Password\");\n\n grid.add(fld, 2, 2);\n grid.add(pfld, 2, 5);\n grid.add(infor, 4, 8);\n\n dialog.getDialogPane().setContent(grid);\n\n Optional<Pair<String, String>> result = dialog.showAndWait();\n\n String pass = pfld.getText();\n String uname = fld.getText();\n\n if (pass.equals(\"erickerickyaah\") && uname.equals(\"[email protected]\")) {\n\n reportgenthree.ReportGenThree.NameSetter();\n\n } else {\n\n infor.setText(\"Wrong Password..\");\n }\n\n }",
"public void setupUserInfo(Bundle upUserInfo) {\n // Getting Info\n String name = upUserInfo.getString(\"userName\");\n String email = upUserInfo.getString(\"userEmail\");\n\n\n // Setting local Variables\n this.tutorName = name;\n this.tutorEmail = email;\n\n TextView nameField = (TextView) findViewById(R.id.UserNameField);\n nameField.setText(name);\n\n\n }",
"private void initComponents() {\n\n ViewUserInfoLabel = new javax.swing.JLabel();\n upperSeparator = new javax.swing.JSeparator();\n nameLabel = new javax.swing.JLabel();\n nameFormattedTextField = new javax.swing.JFormattedTextField(user.getName());\n ageFormattedTextField = new javax.swing.JFormattedTextField(user.getAge().toString());\n genderLabel = new javax.swing.JLabel();\n backButton = new javax.swing.JButton();\n contactLabel = new javax.swing.JLabel();\n contactFormattedTextField = new javax.swing.JFormattedTextField(user.getContact());\n isDriverLabel = new javax.swing.JLabel();\n jCheckBox1 = new javax.swing.JCheckBox();\n jCheckBox1.setSelected(user.isDriver());\n editButton = new javax.swing.JButton();\n D_VInfoButton = new javax.swing.JButton();\n\n ViewUserInfoLabel.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 24)); // NOI18N\n ViewUserInfoLabel.setText(\"View User Information\");\n\n nameLabel.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n nameLabel.setText(\"name\");\n\n nameFormattedTextField.setEditable(false);\n\n ageFormattedTextField.setEditable(false);\n\n genderLabel.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n genderLabel.setText(\"Gender\");\n\n backButton.setBackground(new java.awt.Color(255, 255, 51));\n backButton.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n backButton.setText(\"Back\");\n backButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n backButtonActionPerformed(evt);\n }\n });\n\n contactLabel.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n contactLabel.setText(\"Contact (Phone/WeChat#)\");\n\n contactFormattedTextField.setEditable(false);\n\n isDriverLabel.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n isDriverLabel.setText(\"Driver Check Box\");\n\n jCheckBox1.setText(\"DRIVER\");\n jCheckBox1.setEnabled(false);\n\n editButton.setBackground(new java.awt.Color(102, 255, 51));\n editButton.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 18)); // NOI18N\n editButton.setText(\"Edit\");\n editButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n editButtonActionPerformed(evt);\n }\n });\n\n D_VInfoButton.setBackground(new java.awt.Color(255, 0, 0));\n D_VInfoButton.setFont(new java.awt.Font(\"Leelawadee UI\", 0, 24)); // NOI18N\n D_VInfoButton.setText(\"Driver Info\");\n D_VInfoButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n D_VInfoButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(upperSeparator)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(genderLabel)\n .addComponent(contactLabel)\n .addComponent(ViewUserInfoLabel)\n .addComponent(isDriverLabel))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jCheckBox1, javax.swing.GroupLayout.DEFAULT_SIZE, 273, Short.MAX_VALUE)\n .addComponent(ageFormattedTextField, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(contactFormattedTextField, javax.swing.GroupLayout.Alignment.TRAILING)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(nameLabel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(54, 54, 54)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(nameFormattedTextField)))))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(77, 77, 77)\n .addComponent(editButton, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 110, Short.MAX_VALUE)\n .addComponent(backButton, javax.swing.GroupLayout.PREFERRED_SIZE, 209, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(95, 95, 95))\n .addGroup(layout.createSequentialGroup()\n .addGap(269, 269, 269)\n .addComponent(D_VInfoButton)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(ViewUserInfoLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(upperSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nameLabel)\n .addComponent(nameFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(genderLabel)\n .addComponent(ageFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(contactLabel)\n .addComponent(contactFormattedTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(isDriverLabel)\n .addComponent(jCheckBox1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 93, Short.MAX_VALUE)\n .addComponent(D_VInfoButton)\n .addGap(47, 47, 47)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(backButton, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(editButton, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(49, 49, 49))\n );\n }",
"private void initialize() {\r\n\t\tfrmUser = new JFrame();\r\n\t\tfrmUser.setTitle(\"UserView\");\r\n\t\tfrmUser.setBounds(100, 100, 520, 639);\r\n\t\tfrmUser.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n\t\tfrmUser.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tpanel.setBounds(15, 127, 468, 170);\r\n\t\tfrmUser.getContentPane().add(panel);\r\n\t\t\r\n\t\tJLabel lblDisplayName = new JLabel(user.getDisplayName());\r\n\t\tlblDisplayName.setFont(new Font(\"Tahoma\", Font.BOLD, 20));\r\n\t\tlblDisplayName.setBounds(15, 5, 100, 34);\r\n\t\tfrmUser.getContentPane().add(lblDisplayName);\r\n\t\t\r\n\t\tJLabel lblCreatedTime = new JLabel(\"created \" + String.valueOf(user.getCreationTime()));\r\n\t\tlblCreatedTime.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tlblCreatedTime.setBounds(288, 14, 176, 20);\r\n\t\tfrmUser.getContentPane().add(lblCreatedTime);\r\n\t\t\r\n\t\tDefaultListModel<Subject> followersModel = new DefaultListModel<>();\r\n\t\tfor (Subject subject : user.getFollowingList()) {\r\n\t\t\tfollowersModel.addElement(subject);;\r\n\t\t}\r\n\t\tlistFollowing.setModel(followersModel);\r\n\t\tlistFollowing.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tlistFollowing.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\tlistFollowing.setPreferredSize(new Dimension(460, 160));\r\n\t\tlistFollowing.setVisibleRowCount(-1);\r\n\t\t\r\n\t\tpanel.add(listFollowing);\r\n\t\t\r\n\t\ttextFieldFollowUser = new JTextField();\r\n\t\ttextFieldFollowUser.setBounds(110, 52, 209, 27);\r\n\t\tfrmUser.getContentPane().add(textFieldFollowUser);\r\n\t\ttextFieldFollowUser.setColumns(10);\r\n\t\t\r\n\t\tJButton btnFollow = new JButton(\"Follow\");\r\n\t\tbtnFollow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tUser following = new User();\r\n\t\t\t\tfollowing.setDisplayName(textFieldFollowUser.getText());\r\n\t\t\t\tuser.follow(following);\r\n\t\t\t\t\r\n\t\t\t\tfollowersModel.addElement(following);\r\n\t\t\t\ttextFieldFollowUser.setText(null);\r\n\t\t\t\tlistFollowing = new JList<Subject>(followersModel);\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnFollow.setBounds(343, 51, 115, 29);\r\n\t\tfrmUser.getContentPane().add(btnFollow);\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setBounds(15, 352, 468, 170);\r\n\t\tfrmUser.getContentPane().add(panel_1);\r\n\t\t\r\n\t\tDefaultListModel<String> newsFeed = new DefaultListModel<>();\r\n\t\tfor (String post : user.getNewsFeed()) {\r\n\t\t\tnewsFeed.addElement(post);;\r\n\t\t}\r\n\t\t\r\n\t\tfeed.setModel(newsFeed);\r\n\t\tfeed.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tfeed.setBackground(Color.WHITE);\r\n\t\tfeed.setBorder(new LineBorder(new Color(0, 0, 0)));\r\n\t\tfeed.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\r\n\t\tfeed.setPreferredSize(new Dimension(460, 160));\r\n\t\tfeed.setVisibleRowCount(-1);\r\n\t\t\r\n\t\tpanel_1.add(feed);\r\n\t\t\r\n\t\ttextFieldTweet = new JTextField();\r\n\t\ttextFieldTweet.setBounds(110, 538, 250, 29);\r\n\t\tfrmUser.getContentPane().add(textFieldTweet);\r\n\t\ttextFieldTweet.setColumns(10);\r\n\t\t\r\n\t\tJLabel lblUpdateTime = new JLabel(\"Last updated: \" + String.valueOf(user.getLastUpdateTime()));\r\n\t\tlblUpdateTime.setFont(new Font(\"Tahoma\", Font.ITALIC, 16));\r\n\t\tlblUpdateTime.setBounds(123, 317, 219, 20);\r\n\t\tfrmUser.getContentPane().add(lblUpdateTime);\r\n\t\t\r\n\t\tJButton btnTweet = new JButton(\"Tweet\");\r\n\t\tbtnTweet.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tuser.tweetMessage(textFieldTweet.getText());\r\n\t\t\t\tDefaultListModel<String> newsFeed = new DefaultListModel<>();\r\n\t\t\t\tfor (String post : user.getNewsFeed()) {\r\n\t\t\t\t\tnewsFeed.addElement(post);;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfeed.setModel(newsFeed);\r\n\t\t\t\ttextFieldTweet.setText(null);\r\n\t\t\t\tlblUpdateTime.setText(\"Last updated \" + String.valueOf(user.getLastUpdateTime()));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnTweet.setBounds(375, 538, 100, 29);\r\n\t\tfrmUser.getContentPane().add(btnTweet);\r\n\t\t\r\n\t\tJButton btnRefresh = new JButton(\"Refresh\");\r\n\t\tbtnRefresh.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tDefaultListModel<String> newsFeed = new DefaultListModel<>();\r\n\t\t\t\tfor (String post : user.getNewsFeed()) {\r\n\t\t\t\t\tnewsFeed.addElement(post);;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfeed.setModel(newsFeed);\r\n\t\t\t\tif (user.getLastUpdateTime() == 0) {\r\n\t\t\t\t\tuser.setLastUpdateTime(System.currentTimeMillis());\r\n\t\t\t\t}\r\n\t\t\t\tlblUpdateTime.setText(\"Last updated: \" + String.valueOf(user.getLastUpdateTime()));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRefresh.setBounds(357, 313, 107, 29);\r\n\t\tfrmUser.getContentPane().add(btnRefresh);\r\n\t\t\r\n\t\tJLabel lblNewsfeed = new JLabel(\"Newsfeed\");\r\n\t\tlblNewsfeed.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\r\n\t\tlblNewsfeed.setBounds(26, 312, 100, 29);\r\n\t\tfrmUser.getContentPane().add(lblNewsfeed);\r\n\t\t\r\n\t\tJLabel lblFollowing = new JLabel(\"Following\");\r\n\t\tlblFollowing.setFont(new Font(\"Tahoma\", Font.BOLD, 18));\r\n\t\tlblFollowing.setBounds(26, 92, 115, 29);\r\n\t\tfrmUser.getContentPane().add(lblFollowing);\r\n\t\t\r\n\t\tJLabel lblEnterUser = new JLabel(\"Enter User:\");\r\n\t\tlblEnterUser.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblEnterUser.setBounds(25, 55, 89, 20);\r\n\t\tfrmUser.getContentPane().add(lblEnterUser);\r\n\t\t\r\n\t\tJLabel lblMessage = new JLabel(\"Message:\");\r\n\t\tlblMessage.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblMessage.setBounds(25, 542, 69, 20);\r\n\t\tfrmUser.getContentPane().add(lblMessage);\r\n\t\t\r\n\t}",
"public editUserFrame(int IDUser ,int IDU0) {\n initComponents();\n userService = new UserService();\n user = userService.getUserByID(IDUser);\n u = userService.getUserByID(IDU0);\n\n IDEtextField.setText(String.valueOf(user.getIDUser()));\n fullNameTextField.setText(user.getFullName()); \n String b = user.getGender().replaceAll(\"\\\\s\",\"\"); \n if (b.equals(\"Nam\")) { \n genderComboBox.setSelectedIndex(0); \n }\n if (b.equals(\"Nữ\")) { \n genderComboBox.setSelectedItem(\"Nữ\"); \n }\n if (b.equals(\"Khác\")) {\n \n genderComboBox.setSelectedItem(\"Khác\");\n }\n if (user.getRole().equals(\"Admin\")) {\n AdminRadiobutton.setSelected(true);\n role = \"Admin\";\n }\n if(user.getRole().equals(\"Employee\")){\n EmployeeRadioButton.setSelected(true);\n role = \"Employee\";\n }\n \n DOBTextField.setText(user.getDob());\n addressTextField.setText(user.getAddress());\n phoneTextField.setText(user.getPhone());\n userNameTextField.setText(user.getUserName());\n passwordTextField.setText(user.getPassword());\n\n this.setLocationRelativeTo(null);\n }",
"private void setupUserView(final TextView view) {\n final DatabaseManager db = DatabaseManager.getInstance();\n final String userID = Authenticator.getInstance().getCurrentUser().getUid();\n\n //Query firebase the user's information\n db.getUserWithIdentifier(UserKeys.ID, userID, new GetDataListener() {\n @Override\n public void onSuccess(DataSnapshot data) {\n User user = data.getValue(User.class);\n String text = \"\";\n\n if(user.getName().equals(\"\"))\n {\n user.setName(\"Anonymous\");\n db.updateUserWithID(userID, user);\n text += \"Name: Anonymous\" + \"\\n\";\n }\n else\n text += \"Name: \" + user.getName() + \"\\n\";\n\n text += \"Email: \" + user.getEmail() + \"\\n\";\n text += \"Latitude: \" + user.getLatitude() + \"\\n\";\n text += \"Longitude: \" + user.getLongitude() + \"\\n\";\n\n view.setText(text); //Display the user's information\n List<String> userGroupIDs = user.getGroups();\n\n //Query firebase to find the groups that the user is in\n for(String groupID : userGroupIDs) {\n db.getGroupWithIdentifier(GroupKeys.ID, groupID, new GetDataListener() {\n @Override\n public void onSuccess(DataSnapshot data) {\n //Add the group and refresh the page\n results.add(data.getValue(Group.class));\n refreshView();\n }\n\n @Override\n public void onFailure(DatabaseError error) {\n\n }\n });\n }\n }\n\n @Override\n public void onFailure(DatabaseError error) {\n\n }\n });\n }",
"private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }",
"private void finalizeComponents() {\n MouseListener mouseListener = new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n // get currently selected index entry\n if (userList.getSelectedIndex() < 0) {\n userList.setSelectedIndex(0);\n }\n String selectedItem = (String) userList.getSelectedValue();\n // load entry data from db\n currentUser = (DBUser) DBHandler.getSingleObject(\n \"FROM DBUser WHERE xname='\" + selectedItem + \"'\");\n // fill gui elements with data\n loadUserDetails(currentUser);\n // enable control buttons\n enableButtons(true);\n }\n };\n userList.addMouseListener(mouseListener);\n \n // set window title\n this.setTitle(\"VSEgraf - User management\");\n }",
"public MainScreen(User user) {\n\t\tsuper();\n\t\tthis.user = user;\n\t\tthis.contentPane = getContentPane();\n\t\tpopulateUtilities();\n\t\tinitGUI(user);\n\t}",
"public void processUser() {\r\n view.printMessage(View.GEM_POOL + model.getStonePool());\r\n chooseMenuOption(chooseParameters(INTEGER_DELIMITERS, View.INPUT_PARAMETERS, true));\r\n\r\n\r\n }",
"@Override\n\tpublic void updateUser(UserInfo ui) {\n\n\t}",
"public void fillNameBox(){\n for(UserAccount userAccount : userAccounts) {\n nameBox.addItem(userAccount.getEmail());\n }\n }",
"public void setUserDetails(){\n name = firebaseUser.getDisplayName();\n username.setText(name);\n\n Glide.with(this).load(firebaseUser.getPhotoUrl()).into(profileIcon);\n }",
"private void populateUserProfile() {\n setProfilePic();\n mDisplayNameTextView.setText(user.getName());\n mUsernameTextView.setText(String.format(\"@%s\", user.getUsername()));\n mBioTextView.setText(user.getBio());\n setAdapterForUserStories();\n\n new Thread(new Runnable() {\n public void run(){\n setFollowingCount();\n setFollowersCount();\n setStoriesCount();\n queryStoriesFromUser();\n }\n }).start();\n }",
"public users() {\n initComponents();\n connect();\n autoID();\n loaduser();\n \n \n }",
"private void populateUI() {\n\n tipPercentTextView.setText(Double.toString(tipPercent));\n noPersonsTextView.setText(Integer.toString(noPersons));\n populateResultsUI();\n }",
"private void initialize() {\r\n\t\tJFrame frmUser = new JFrame();\r\n\t\tfrmUser.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n\t\tfrmUser.setResizable(false);\r\n\t\tfrmUser.setTitle(\"User\");\r\n\t\tfrmUser.setBounds(100, 100, 460, 384);\r\n\t\tfrmUser.getContentPane().setLayout(null);\r\n\t\tfrmUser.setLocationRelativeTo(null);\r\n\t\tfrmUser.setVisible(true);\r\n\r\n\t\tJButton btnNewAuction = new JButton(\"New Auction\");\r\n\t\tbtnNewAuction.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew AuctionCreate();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewAuction.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnNewAuction.setBounds(231, 119, 211, 51);\r\n\t\tfrmUser.getContentPane().add(btnNewAuction);\r\n\r\n\t\tJButton btnEdit = new JButton(\"Edit Payment Information\");\r\n\t\tbtnEdit.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnEdit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tnew PaymentInfo();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnEdit.setBounds(10, 119, 211, 51);\r\n\t\tfrmUser.getContentPane().add(btnEdit);\r\n\r\n\t\tJButton btnSearchAuction = new JButton(\"Search Auction\");\r\n\t\tbtnSearchAuction.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew AuctionSearch();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSearchAuction.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnSearchAuction.setBounds(10, 181, 211, 51);\r\n\t\tfrmUser.getContentPane().add(btnSearchAuction);\r\n\r\n\t\tJButton btnLogOut = new JButton(\"Log Out\");\r\n\t\tbtnLogOut.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tMainMethods.userlogout();\r\n\t\t\t\tfrmUser.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnLogOut.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnLogOut.setBounds(10, 300, 432, 45);\r\n\t\tfrmUser.getContentPane().add(btnLogOut);\r\n\r\n\t\tJButton btnEditAuction = new JButton(\"Edit Auction\");\r\n\t\tbtnEditAuction.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew AuctionEditDlt();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnEditAuction.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnEditAuction.setBounds(231, 181, 211, 51);\r\n\t\tfrmUser.getContentPane().add(btnEditAuction);\r\n\r\n\t\tJButton button = new JButton(\"Delete Account\");\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew UserDelete();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbutton.setBounds(231, 57, 211, 51);\r\n\t\tfrmUser.getContentPane().add(button);\r\n\r\n\t\tJButton button_1 = new JButton(\"Edit Account\");\r\n\t\tbutton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tnew UserEdit();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbutton_1.setBounds(10, 57, 211, 51);\r\n\t\tfrmUser.getContentPane().add(button_1);\r\n\r\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\r\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblWelcome.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tlblWelcome.setBounds(10, 11, 432, 45);\r\n\t\tlblWelcome.setText(\"Welcome \" + MainMethods.loggeduser() + \"!!\");\r\n\t\t// prints on the corresponding label the username of the logged in user\r\n\t\tfrmUser.getContentPane().add(lblWelcome);\r\n\r\n\t\tJButton btnRateUser = new JButton(\"Rate User\");\r\n\t\tbtnRateUser.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew UserRating();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnRateUser.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\r\n\t\tbtnRateUser.setBounds(10, 243, 432, 45);\r\n\t\tfrmUser.getContentPane().add(btnRateUser);\r\n\r\n\t\t// calling method for setting button enabled/disabled\r\n\t\tAdminMethods.getbuttonstate();\r\n\t\tAdminMethods.buttonset(btnRateUser);\r\n\r\n\t}",
"private void init(IUserAccount user) {\n\n String mainMenuTitle = languageRB.getString(\"mainMenuTitle\");\n\n menuFrame = new JFrame();\n menuFrame.setTitle(mainMenuTitle);\n menuFrame.setSize(350,9*50);\n menuFrame.setLocationRelativeTo(null);\n menuFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n menuFrame.setResizable(true);\n uiNavigator.initBgColour(menuFrame);\n\n JLabel headerLabel = new JLabel(mainMenuTitle, JLabel.CENTER);\n\n String welcomeLabelText = languageRB.getString(\"welcomeLabelText\")+\", \"+user.getUserId()+\"!\";\n JLabel welcomeLabel = new JLabel(welcomeLabelText, JLabel.CENTER);\n\n JPanel mainPanel = new JPanel();\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\n\n JPanel optionPanel = new JPanel();\n optionPanel.setLayout(new GridLayout(9,1));\n\n optionPanel.add(headerLabel);\n optionPanel.add(welcomeLabel);\n\n initMenuOptions(user, optionPanel);\n\n mainPanel.add(optionPanel);\n menuFrame.add(mainPanel);\n }",
"private void loadUserInformation(){\n FirebaseUser user = mAuth.getCurrentUser();\n\n String displayEmail = user.getEmail();\n email.setText(\"Velkommenn \" + displayEmail+\"!\");\n }",
"private void showPreference(){\r\n if(userPreferencesForm == null) {\r\n userPreferencesForm = new UserPreferencesForm(mdiForm,true);\r\n }\r\n userPreferencesForm.loadUserPreferences(mdiForm.getUserId());\r\n userPreferencesForm.setUserName(mdiForm.getUserName());\r\n userPreferencesForm.display();\r\n }",
"@FXML\n\tpublic void updateMyUser(ActionEvent event) {\n\t\tSystemUser userToUpdate = restaurant.returnUser(LabelSystemUserName.getText());\n\t\tString name = txtSystemUserNewname.getText();\n\t\tString lastName = txtSystemUserNewLastname.getText();\n\t\tString id = txtSystemUserNewId.getText();\n\t\tString username = txtSystemUserNewUsername.getText();\n\n\t\tif (!name.equals(\"\") && !lastName.equals(\"\") && !id.equals(\"\") && !username.equals(\"\")) {\n\n\t\t\ttry {\n\t\t\t\tuserToUpdate.setNames(name);\n\t\t\t\tuserToUpdate.setSurNames(lastName);\n\t\t\t\tuserToUpdate.setIdNumber(id);\n\t\t\t\tuserToUpdate.setUsername(username);\n\t\t\t\tuserToUpdate.setPassword(passwordSystemUserNewPassword.getText());\n\t\t\t\trestaurant.saveUsersData();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Usuario actualizado satisfactoriamente\");\n\t\t\t\tdialog.setTitle(\"Proceso Satisfactorio\");\n\t\t\t\tdialog.show();\n\n\t\t\t\ttxtSystemUserNewname.setText(\"\");\n\t\t\t\ttxtSystemUserNewLastname.setText(\"\");\n\t\t\t\ttxtSystemUserNewId.setText(\"\");\n\t\t\t\ttxtSystemUserNewUsername.setText(\"\");\n\t\t\t\tpasswordSystemUserNewPassword.setText(\"\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización del usuario\");\n\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tFXMLLoader opWindow = new FXMLLoader(getClass().getResource(\"Options-window.fxml\"));\n\t\t\t\topWindow.setController(this);\n\t\t\t\tParent opPane = opWindow.load();\n\t\t\t\tmainPaneLogin.getChildren().setAll(opPane);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}",
"public adduser() {\n initComponents();\n }",
"private void initGUI(User user) {\n\t\ttry {\n\t\t\tthis.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\t\tthis.setTitle(\"Warehouse Application\");\n\t\t\tthis.setIconImage(new ImageIcon(getClass().getClassLoader().getResource(ApplicationConstants.WAREHOUSE_LOGO)).getImage());\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setFocusTraversalKeysEnabled(false);\n\t\t\tthis.setLocation(new java.awt.Point(100, 100));\n\t\t\t{\n\t\t\t\tChangeScreen.setBlankScreen(user);\n\t\t\t}\n\t\t\t{\n\t\t\t\tmnuMain = new WarehouseMenuBar(user, this);\n\t\t\t\tsetJMenuBar(mnuMain);\n\t\t\t}\n\t\t\tpack();\n\t\t\tthis.setSize(809, 577);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void updateUI() {\n user = mAuth.getCurrentUser();\n if (user != null) {\n user.reload().addOnCompleteListener(userReloadListener);\n }\n }",
"public FirstPage(User user1) {\n newUser = user1;\n initComponents();\n doThisAtStart();\n }",
"private void initialize() {\r\n\t\tjLabel_userID = new JLabel();\r\n\t\tjLabel_userID.setText(\"ID (user)\");\r\n\t\tjLabel_userID.setSize(new Dimension(160, 40));\r\n\t\tjLabel_userID.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_userID.setLocation(new Point(30, 230));\r\n\t\tjLabel_lastname = new JLabel();\r\n\t\tjLabel_lastname.setText(\"Last Name\");\r\n\t\tjLabel_lastname.setSize(new Dimension(160, 40));\r\n\t\tjLabel_lastname.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_lastname.setLocation(new Point(30, 330));\r\n\t\tjLabel_firstname = new JLabel();\r\n\t\tjLabel_firstname.setText(\"First Name\");\r\n\t\tjLabel_firstname.setSize(new Dimension(160, 40));\r\n\t\tjLabel_firstname.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_firstname.setLocation(new Point(30, 280));\r\n\t\tjLabel_username = new JLabel();\r\n\t\tjLabel_username.setText(\"User Name\");\r\n\t\tjLabel_username.setSize(new Dimension(160, 40));\r\n\t\tjLabel_username.setFont(new Font(\"Eras Light ITC\", Font.BOLD, 18));\r\n\t\tjLabel_username.setLocation(new Point(30, 180));\r\n\t\tjLabel_SUMainLabel = new JLabel();\r\n\t\tjLabel_SUMainLabel.setBounds(new Rectangle(1, 30, 698, 74));\r\n\t\tjLabel_SUMainLabel.setText(\"Search User\");\r\n\t\tjLabel_SUMainLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tjLabel_SUMainLabel.setFont(new Font(\"Freestyle Script\", Font.BOLD, 48));\r\n\t\tjLabel_SUMainLabel.setLocation(new Point(0, 15));\r\n\t\tjLabel_SUMainLabel.setSize(new Dimension(700, 75));\r\n\t\tjLabel_SUMainLabel.setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));\r\n\t\tthis.setSize(700, 550);\r\n\t\tthis.setLayout(null);\r\n\t\tthis.add(jLabel_SUMainLabel, null);\r\n\t\tthis.add(jLabel_username, null);\r\n\t\tthis.add(jLabel_firstname, null);\r\n\t\tthis.add(jLabel_lastname, null);\r\n\t\tthis.add(jLabel_userID, null);\r\n\t\tthis.add(getJTextField_UserName(), null);\r\n\t\tthis.add(getJTextField_UserID(), null);\r\n\t\tthis.add(getJTextField_FirstName(), null);\r\n\t\tthis.add(getJTextField_LastName(), null);\r\n\t\tthis.add(getJButton_back(), null);\r\n\t\tthis.add(getJButton_SearchUser(), null);\r\n\t}",
"public ModificarUser() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"Cotizador Encinales\");\n this.jLabel7.setText(\"\");\n this.jLabel8.setText(\"\");\n this.jLabel9.setText(\"\");\n this.jLabel10.setText(\"\");\n \n evitarPegar(this.TxtModCorreo);\n evitarPegar(this.TxtModNombre);\n evitarPegar(this.TxtModPassword);\n evitarPegar(this.TxtModUsuario);\n }",
"private void initializeUserPane(){\n GroupLayout layout = new GroupLayout(userSelect);\n userSelect.setLayout(layout);\n layout.setAutoCreateGaps(true);\n layout.setAutoCreateContainerGaps(true);\n JLabel instruction = new JLabel(\"Please select a username.\");\n JButton newUsernameButton = new JButton(\"Go!\");\n layout.setHorizontalGroup(\n layout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addComponent(instruction)\n .addGroup(layout.createSequentialGroup()\n .addComponent(usernameField)\n .addComponent(newUsernameButton))\n .addComponent(error)\n );\n layout.setVerticalGroup(\n layout.createSequentialGroup()\n .addComponent(instruction)\n .addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(usernameField)\n .addComponent(newUsernameButton))\n .addComponent(error)\n );\n userSelect.add(instruction);\n userSelect.add(usernameField);\n userSelect.add(newUsernameButton);\n userSelect.add(error);\n instruction.setVisible(true);\n usernameField.setVisible(true);\n newUsernameButton.setVisible(true);\n error.setVisible(false);\n \n UsernameListener u = new UsernameListener();\n usernameField.addActionListener(u);\n newUsernameButton.addActionListener(u);\n }",
"@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\n\t\t\t\tSystem.out.println(\"新增用户\");\r\n\t\t\t\tInputDialog id1=new InputDialog(sShell,\"新增用户\",\"输入用户信息,用空格分开,例如:pdl 666 管理员\",\"\",null);\r\n\t\t\t\tif(id1.open()==0){\r\n\t\t\t\t\tinput=id1.getValue();\r\n\t\t\t\t\tif(input.equals(\"\")) return;\r\n\t\t\t\t}\r\n\t\t\t\telse return;\r\n\t\t\t\tString str[]=input.split(\" \");\r\n\t\t\t\tCommonADO ado=CommonADO.getCommonADO();\r\n\t\t\t\tString sql=\"insert into Users values('\"+str[0]+\"','\"+str[1]+\"','\"+str[2]+\"')\";\r\n\t\t\t\tado.executeUpdate(sql);\r\n\t\t\t\tshowUser();\r\n\t\t\t}",
"public adminMainFrame(User user) {\n initComponents();\n userF = user;\n }",
"private void initialize()\r\n\t{\r\n\t\tframe = new JFrame();\r\n\t\tframe.getContentPane().setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tframe.setBounds(100, 100, 1200, 733);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tJLabel Enter = new JLabel(\"Enter the User Details\");\r\n\t\tEnter.setForeground(Color.WHITE);\r\n\t\tEnter.setBounds(398, 32, 392, 72);\r\n\t\tEnter.setFont(new Font(\"Bodoni MT Black\", Font.PLAIN, 32));\r\n\r\n\t\tJLabel lblName = new JLabel(\"First Name :\");\r\n\t\tlblName.setForeground(Color.WHITE);\r\n\t\tlblName.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlblName.setBounds(184, 179, 124, 25);\r\n\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\ttextField.setBounds(347, 178, 171, 35);\r\n\t\ttextField.setColumns(10);\r\n\r\n\t\tJLabel lblAadharNo = new JLabel(\"Aadhar No :\");\r\n\t\tlblAadharNo.setForeground(Color.WHITE);\r\n\t\tlblAadharNo.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlblAadharNo.setBounds(604, 179, 116, 25);\r\n\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\ttextField_1.setBounds(740, 178, 296, 35);\r\n\t\ttextField_1.setColumns(10);\r\n\r\n\t\tJLabel lblAddress = new JLabel(\"Address :\");\r\n\t\tlblAddress.setForeground(Color.WHITE);\r\n\t\tlblAddress.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlblAddress.setBounds(604, 242, 94, 25);\r\n\r\n\t\ttextField_2 = new JTextField();\r\n\t\ttextField_2.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\ttextField_2.setBounds(740, 242, 296, 35);\r\n\t\ttextField_2.setColumns(10);\r\n\r\n\t\ttextField_3 = new JTextField();\r\n\t\ttextField_3.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\ttextField_3.setBounds(740, 304, 171, 35);\r\n\t\ttextField_3.setColumns(10);\r\n\r\n\t\tJLabel lblPhoneNo = new JLabel(\"Phone No:\");\r\n\t\tlblPhoneNo.setForeground(Color.WHITE);\r\n\t\tlblPhoneNo.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlblPhoneNo.setBounds(604, 309, 99, 25);\r\n\r\n\t\tJLabel label = new JLabel(\"\");\r\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlabel.setBounds(398, 636, 392, 42);\r\n\t\tframe.getContentPane().add(label);\r\n\r\n\t\t\r\n\r\n\t\t\r\n\t\tJButton btnPrev = new JButton(\"prev\");\r\n\t\tbtnPrev.setBackground(new Color(255, 255, 102));\r\n\t\tbtnPrev.setIcon(null);\r\n\t\tbtnPrev.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tbtnPrev.setBounds(0, 643, 106, 43);\r\n\t\tbtnPrev.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) \r\n\t\t\t{\r\n\t\t\t\tUsers u=new Users();\r\n\t\t\t\tframe.setVisible(false);\r\n\t\t\t\tu.frame.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.getContentPane().add(Enter);\r\n\t\tframe.getContentPane().add(lblName);\r\n\t\tframe.getContentPane().add(textField);\r\n\t\tframe.getContentPane().add(lblAadharNo);\r\n\t\tframe.getContentPane().add(textField_1);\r\n\t\tframe.getContentPane().add(lblAddress);\r\n\t\tframe.getContentPane().add(textField_2);\r\n\t\tframe.getContentPane().add(textField_3);\r\n\t\tframe.getContentPane().add(lblPhoneNo);\r\n\r\n\t\tframe.getContentPane().add(btnPrev);\r\n\r\n\t\ttextField_4 = new JTextField();\r\n\t\ttextField_4.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\ttextField_4.setBounds(347, 241, 171, 35);\r\n\t\tframe.getContentPane().add(textField_4);\r\n\t\ttextField_4.setColumns(10);\r\n\r\n\t\tJLabel lblMiddleName = new JLabel(\"Middle Name:\");\r\n\t\tlblMiddleName.setForeground(Color.WHITE);\r\n\t\tlblMiddleName.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlblMiddleName.setBounds(184, 241, 129, 26);\r\n\t\tframe.getContentPane().add(lblMiddleName);\r\n\r\n\t\ttextField_5 = new JTextField();\r\n\t\ttextField_5.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\ttextField_5.setColumns(10);\r\n\t\ttextField_5.setBounds(347, 308, 171, 35);\r\n\t\tframe.getContentPane().add(textField_5);\r\n\t\t\r\n\t\tJLabel lblTestResult = new JLabel(\"Test Result :\");\r\n\t\tlblTestResult.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlblTestResult.setForeground(Color.WHITE);\r\n\t\tlblTestResult.setBounds(184, 376, 124, 35);\r\n\t\tframe.getContentPane().add(lblTestResult);\r\n\t\t\r\n\t\ttextField_6 = new JTextField();\r\n\t\ttextField_6.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\ttextField_6.setBounds(347, 376, 171, 35);\r\n\t\tframe.getContentPane().add(textField_6);\r\n\t\ttextField_6.setColumns(10);\r\n\r\n\t\tJLabel lblLastName = new JLabel(\"Last Name:\");\r\n\t\tlblLastName.setForeground(Color.WHITE);\r\n\t\tlblLastName.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlblLastName.setBounds(184, 308, 116, 26);\r\n\t\tframe.getContentPane().add(lblLastName);\r\n\t\t\r\n\t\tJButton btnSubmit = new JButton(\"Submit\");\r\n\t\tbtnSubmit.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\r\n\t\t\t\tif (e.getSource() == btnSubmit)\r\n\t\t\t\t{\r\n\t\t\t\t\ttry\r\n\t\t\t { \r\n\t\t\t\t\t\t Class.forName(\"com.mysql.jdbc.Driver\"); \r\n\t\t\t\t Connection conn = null;\r\n\t\t\t\t conn = DriverManager.getConnection(\"jdbc:mysql://localhost/rto\",\"root\", \"\"); \r\n\t\t\t\t System.out.print(\"Database is connected !\");\r\n\t\t\t\t Statement stmt = conn.createStatement();\r\n\r\n\t\t\t\t String q1 = \"insert into users(FName,MName,LName,aadhar,address,phno) values('\" +textField.getText() + \r\n\t\t\t\t \"','\" + textField_4.getText()+ \"','\"+textField_5.getText()+\r\n\t\t\t\t \"',\"+textField_1.getText()+\",'\"+textField_2.getText()+\"',\"+textField_3.getText()+\")\";\r\n\t\t\t\t int a=stmt.executeUpdate(q1);\r\n\t\t\t\t label.setText(\"User Successfully Inserted.\");\r\n\t\t\t\t conn.close(); \r\n\t\t\t } \r\n\t\t\t catch(Exception ex) \r\n\t\t\t { \r\n\t\t\t System.out.println(ex); \r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnSubmit.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tbtnSubmit.setBounds(460, 480, 129, 42);\r\n\r\n\t\tframe.getContentPane().add(btnSubmit);\r\n\t\t\r\n\t\tJButton btnUpdate = new JButton(\"Update\");\r\n\t\tbtnUpdate.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\r\n\t\t\t\tif (e.getSource() == btnUpdate)\r\n\t\t\t\t{\r\n\t\t\t\t\ttry\r\n\t\t\t { \r\n\t\t\t\t\t\t Class.forName(\"com.mysql.jdbc.Driver\"); \r\n\t\t\t\t Connection conn = null;\r\n\t\t\t\t conn = DriverManager.getConnection(\"jdbc:mysql://localhost/rto\",\"root\", \"\"); \r\n\t\t\t\t System.out.print(\"Database is connected !\");\r\n\t\t\t\t Statement stmt = conn.createStatement();\r\n\r\n\t\t\t\t String q1 = \"update users set D_Test='\" +textField_6.getText() + \"' where aadhar=\"+textField_1.getText();\r\n\t\t\t\t int a=stmt.executeUpdate(q1);\r\n\t\t\t\t label.setText(\"User Successfully Inserted.\");\r\n\t\t\t\t conn.close(); \r\n\t\t\t } \r\n\t\t\t catch(Exception ex) \r\n\t\t\t { \r\n\t\t\t System.out.println(ex); \r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnUpdate.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tbtnUpdate.setBounds(613, 480, 129, 42);\r\n\r\n\t\tframe.getContentPane().add(btnUpdate);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"New label\");\r\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tlblNewLabel.setIcon(new ImageIcon(\"C:\\\\Users\\\\LC\\\\eclipse-workspace\\\\RTOproject\\\\images\\\\pic8alter - Copy.png\"));\r\n\t\tlblNewLabel.setBounds(0, 11, 1182, 686);\r\n\t\tframe.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\t\r\n\r\n\r\n\t}",
"public static void main(String[] args) {\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n DrawCanvas canvas;\n TicTacToeGui ttgui = new TicTacToeGui();\n \n /**CUI prompt user information to save accounts\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"Enter your username: \");\n String user = scanner.nextLine();\n System.out.print(\"Enter your password: \");\n String userpw = scanner.nextLine();\n Accounts users = ttgui.checkUser(user,userpw); **/\n \n }\n });\n }",
"private void setupUI() {\n rbMale = findViewById(R.id.rb_male);\n rbFemale = findViewById(R.id.rb_female);\n spnStatus = findViewById(R.id.spn_status_create);\n rgGender = findViewById(R.id.rd_gender_register);\n btnCreateUser = findViewById(R.id.btn_create_user);\n edtLastName = findViewById(R.id.edt_last_name_create);\n edtEnterPin = findViewById(R.id.edt_enter_pin_create);\n edtFirstName = findViewById(R.id.edt_first_name_create);\n spnBloodGroup = findViewById(R.id.spn_blood_group_create);\n edtConfirmPin = findViewById(R.id.edt_confirm_pin_create);\n edtDateOfBirth = findViewById(R.id.edt_date_of_birth_create);\n edtMobileNumber = findViewById(R.id.edt_mobile_number_create);\n }",
"private void initializeComponents(ArrayList<String> details) {\r\n\r\n jTxtUserName.setText(details.get(0));\r\n jTxtPassword.setText(details.get(1));\r\n jTxtName.setText(details.get(2));\r\n jTxtPossition.setText(details.get(3));\r\n\r\n }",
"private void initUI(ActivityUserListBinding binding) {\n\n userHolder = (UserParameterHolder) getIntent().getSerializableExtra(Constants.USER_PARAM_HOLDER_KEY);\n\n // Toolbar\n if(userHolder.return_types.equals(\"follower\")) {\n initToolbar(binding.toolbar, getString(R.string.user_follower_list_toolbar_name));\n }else {\n initToolbar(binding.toolbar, getString(R.string.user_following_list_toolbar_name));\n }\n\n // setup Fragment\n setupFragment(new UserListFragment());\n\n }",
"public void run() {\n\t\tadjustObjects();\n\t\t\n\t\t//Put objects in frame using GridBagConstraints\t\t\n\t\tconstraints.insets.bottom = 5;\n\t\tconstraints.insets.top = 5;\n\t\tconstraints.insets.right = 5;\n\t\t\n\t\tconstraints.gridx = 0;\n\t\tconstraints.gridy = 0;\n\t\tgetContentPane().add(usernameLabel, constraints);\n\t\tconstraints.gridx = 0;\n\t\tconstraints.gridy = 1;\n\t\tgetContentPane().add(passwordLabel, constraints);\n\t\t\n\t\tconstraints.insets.right = 0;\n\t\tconstraints.insets.left = 5;\n\t\tconstraints.ipadx = 120;\n\t\t\n\t\tconstraints.gridx = 1;\n\t\tconstraints.gridy = 0;\n\t\tgetContentPane().add(usernameTextField, constraints);\n\t\tconstraints.gridx = 1;\n\t\tconstraints.gridy = 1;\n\t\tgetContentPane().add(passwordField, constraints);\n\t\t\n\t\tconstraints.insets.top = 10;\n\t\tconstraints.insets.bottom = 0;\n\t\tconstraints.insets.left = 0;\n\t\tconstraints.ipadx = 0;\n\t\tconstraints.anchor = GridBagConstraints.EAST;\n\t\t\n\t\tconstraints.gridx = 1;\n\t\tconstraints.gridy = 2;\n\t\tgetContentPane().add(loginButton, constraints);\n\t\t\n\t\t//Find the list of users accounts\n\t\t//readXML();\n\t\t\n\t\t//Connect to database\n\t\ttry {\n\t\t\tinitConnection();\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\t\n\t\t//createGroupsDB();\n\t\t\n\t\tcreateGroupsList();\n\t\ttry {\n\t\t\tcreateUsersList();\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\tcreateCategoryList();\n\t\tcreateProductsLists();\n\t\t\n\t\tif(bView) {\n\t\t\tsetVisible(true);\n\t\t} else {\n\t\t\tsetVisible(false);\n\t\t}\n\t}",
"private void showUserMaintenance(){\r\n UserMaintenanceBaseWindow userMaintBaseWindow = null;\r\n try{\r\n userMaintBaseWindow = (UserMaintenanceBaseWindow)mdiForm.getFrame(\r\n CoeusGuiConstants.USER_ROLE_MAINTENENCE_BASE_WINDOW_FRAME_TITLE);\r\n if( userMaintBaseWindow != null) {\r\n \r\n if(userMaintBaseWindow.isIcon()){ \r\n userMaintBaseWindow.setIcon(false);\r\n }\r\n userMaintBaseWindow.setSelected(true);\r\n //userMaintBaseWindow.showUserDetails();\r\n return ;\r\n }\r\n userMaintBaseWindow = new UserMaintenanceBaseWindow(CoeusGuiConstants.USER_ROLE_MAINTENENCE_BASE_WINDOW_FRAME_TITLE, mdiForm);\r\n //userMaintBaseWindow.showUserDetails();\r\n }catch (Exception exception) {\r\n CoeusOptionPane.showInfoDialog(exception.getMessage());\r\n }\r\n }",
"public LoginUI() {\n \n \n \n if (checkSetup ()) {\n OwnerSetup ow = new OwnerSetup ();\n \n \n \n ow.setLocation(200, 200);\n ow.pack();\n ow.setVisible(true);\n \n \n } \n \n this.setUndecorated(true);\n this.getContentPane().setBackground(new Color (32, 32, 32)); \n \n UIManager.put(\"ComboBox.background\", new Color (35, 35, 35));\n UIManager.put(\"ComboBox.foreground\", new Color (235, 235, 235));\n UIManager.put(\"ComboBox.selectionBackground\", new ColorUIResource(new Color (74,74,74)));\n UIManager.put(\"ComboBox.selectionForeground\", new ColorUIResource(new Color (235, 235, 235)));\n UIManager.put(\"ComboBox.buttonBackground\", new Color (35, 35, 35));\n \n \n try {\n UIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n } catch (Exception e) {}\n \n \n initComponents(); \n \n cbUser.setEditor(new ComboBoxUI ());\n cbUser.setEditable(true);\n \n cbUser2.setEditor (new ComboBoxUI ());\n cbUser2.setEditable(true); \n \n this.lblPosIcon.setIcon ( new ImageIcon ( (new ImageIcon (\"C:\\\\Users\\\\Gina\\\\Desktop\\\\cs 202 project\\\\POS\\\\src\\\\icons\\\\icons\\\\posIconWhite.png\")).getImage().getScaledInstance(70, 62, Image.SCALE_DEFAULT)) );\n \n Font roboto = new Font (\"C:\\\\Users\\\\Gina\\\\Desktop\\\\cs 202 project\\\\POS\\\\src\\\\fonts\\\\roboto\\\\Roboto-Regular.ttf\", Font.TRUETYPE_FONT, 12);\n \n lblUsername.setFont(roboto);\n lblPassword.setFont(roboto);\n lblLoginTitle.setFont(roboto);\n lblMessage.setFont(roboto);\n lblCreate.setFont(roboto);\n lblForgotIt.setFont(roboto);\n lblLoginFor.setFont(roboto);\n \n lblForgotMessage.setFont(roboto);\n lblForgotMessage2.setFont (roboto);\n lblFor.setFont (roboto);\n \n this.dgForgotPassword.setUndecorated(true);\n this.dgForgotPassword.getContentPane().setBackground(new Color (35, 35, 35));\n \n this.dgForgotPassword2.setUndecorated(true);\n this.dgForgotPassword2.getContentPane().setBackground (new Color (35, 35, 35));\n \n \n setLocationRelativeTo(null);\n \n \n \n \n \n \n }",
"public void populateUI() {\n // setup toggle button on click listener\n toggleButton.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n toggleExtension();\n }\n });\n\n // setup open details click listener\n this.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(View v) {\n budgetListener.showAccountDetails(refAcc);\n }\n });\n updateUI();\n }",
"private void setUserDetailsToView() {\n\t\tdetailDisplay.getFirstName().setValue(currentDetails.getFirstName());\n\t\tdetailDisplay.getLastName().setValue(currentDetails.getLastName());\n\t\tdetailDisplay.getMiddleInitial().setValue(currentDetails.getMiddleInitial());\n\t\tdetailDisplay.getLoginId().setText(currentDetails.getLoginId());\n\t\tdetailDisplay.getTitle().setValue(currentDetails.getTitle());\n\t\tdetailDisplay.getEmailAddress().setValue(currentDetails.getEmailAddress());\n\t\tdetailDisplay.getPhoneNumber().setValue(currentDetails.getPhoneNumber());\n\t\tdetailDisplay.getOrganizationListBox().setValue(currentDetails.getOrganizationId());\n\t\tdetailDisplay.getIsActive().setValue(currentDetails.isActive());\n\t\tif (!currentDetails.isActive()) {\n\t\t\tdetailDisplay.getIsRevoked().setValue(true);\n\t\t} else { // added else to fix default Revoked radio check in Mozilla (User Story 755)\n\t\t\tdetailDisplay.getIsRevoked().setValue(false);\n\t\t}\n\t\t\n\t\tdetailDisplay.setUserLocked(currentDetails.isLocked());\n\t\tif (currentDetails.isExistingUser()) {\n\t\t\tdetailDisplay.setShowRevokedStatus(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t\t// detailDisplay.setUserIsDeletable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\t} else {\n\t\t\tdetailDisplay.setShowRevokedStatus(false);\n\t\t\t//detailDisplay.setUserIsDeletable(false);\n\t\t}\n\t\tdetailDisplay.setUserIsActiveEditable(currentDetails.isCurrentUserCanChangeAccountStatus());\n\t\tdetailDisplay.setShowUnlockOption(currentDetails.isCurrentUserCanUnlock() && currentDetails.isActive());\n\t\tdetailDisplay.getRole().setValue(currentDetails.getRole());\n\t\tdetailDisplay.getOid().setValue(currentDetails.getOid());\n\t\tdetailDisplay.getOid().setTitle(currentDetails.getOid());\n\t\t//detailDisplay.getRootOid().setValue(currentDetails.getRootOid());\n\t}",
"private void buildUi(Item user) {\n ImageView userImageView = findViewById(R.id.user_info_image_view);\n TextView userNameTextView = findViewById(R.id.user_info_name_text_view);\n TextView userLocationTextView = findViewById(R.id.user_info_location_text_view);\n TextView userRepTextView = findViewById(R.id.user_info_rep_text_view);\n TextView userGoldBadgeCountTextView = findViewById(R.id.user_info_gold_badge_count_text_view);\n TextView userSilverBadgeCountTextView = findViewById(R.id.user_info_silver_badge_count_text_view);\n TextView userBronzeBadgeCountTextView = findViewById(R.id.user_info_bronze_badge_count_text_view);\n TextView userWebsiteTextView = findViewById(R.id.user_info_website_text_view);\n\n Picasso.with(this).load(user.getProfileImage()).into(userImageView);\n\n String userNameWithAge = user.getDisplayName() + (user.getAge() != null ? \", \" + user.getAge() : \"\");\n userNameTextView.setText(userNameWithAge);\n userLocationTextView.setText(user.getLocation());\n\n String userRep = Integer.toString(user.getReputation());\n userRepTextView.setText(userRep);\n\n String userGoldBadgeCount = Integer.toString(user.getBadgeCounts().getGold());\n String userSilverBadgeCount = Integer.toString(user.getBadgeCounts().getSilver());\n String userBronzeBadgeCount = Integer.toString(user.getBadgeCounts().getBronze());\n\n userGoldBadgeCountTextView.setText(userGoldBadgeCount);\n userSilverBadgeCountTextView.setText(userSilverBadgeCount);\n userBronzeBadgeCountTextView.setText(userBronzeBadgeCount);\n\n userWebsiteTextView.setText(user.getWebsiteUrl());\n\n if (!userWebsiteTextView.getText().equals(\"\")) {\n removeUnderlines((Spannable)userWebsiteTextView.getText());\n }\n }",
"public void findUIElements() {\n nameField = (EditText) findViewById(R.id.NAMEFIELD);\n nameField.setHintTextColor(getResources().getColor(R.color.colorPrimary));\n enterButton = (Button) findViewById(R.id.ENTER);\n enterButton.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n String name = nameField.getText().toString();\n if (name.length() > 0) {\n RealmManager.getInstance().createUser(name);\n finish();\n }\n }\n });\n }",
"public UserView() {\n initComponents();\n new UserDaoImp().createTable();\n displayDataIntoTable();\n displayDataAtComboBox();\n\n }",
"public User_Log() throws Exception {\n initComponents();\n MyConnection();\n setSize(1010,680);\n setResizable(false);\n Koureio kour =new Koureio();\n usern.setText(kour.getUserLogIn());\n FirstSecond();\n }",
"private void login() {\n if (usrField.getText().equals(\"\") || passwordField.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(rootPane,\n \"YOU MUST ENTER USER AND PASSWORD\",\n \"ERROR\",\n JOptionPane.WARNING_MESSAGE);\n return;\n }\n\n //User.ID = userField.getText();\n User.ID = \"BPDB\";\n\n //User.password = passwordField.getText();\n\n User.password = \"BPDB\";\n\n\n //String sql = \"SELECT desig FROM BPDB.usr WHERE name = '\" + userField.getText() + \"',\"and\" +passwordField.getText() +\"'\";\n\n String sql = \"select desig from BPDB.usr where name='\" + usrField.getText()\n + \"' and password='\" + passwordField.getText() + \"'\";\n\n User.desig = Utility2.singleStOPQuery(login, sql);\n System.out.println(\"Designation : \" + User.desig);\n if (User.desig.isEmpty()) {\n\n\n JOptionPane.showMessageDialog(rootPane,\n \"YOU MUST ENTER USER AND PASSWORD\",\n \"ERROR\",\n JOptionPane.WARNING_MESSAGE);\n return;\n } else {\n\n sql = \"SELECT name FROM BPDB.usr WHERE name = '\" + usrField.getText() + \"'\";\n User.name = Utility2.singleStOPQuery(login, sql);\n\n if (User.desig.equalsIgnoreCase(\"BPDB\")) {\n setVisible(false);\n dispose();\n new HomeFrame().setVisible(true);\n\n } else if (User.desig.equalsIgnoreCase(\"DRAFT\")) {\n setVisible(false);\n dispose();\n new DRAFTFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"APPLY\")) {\n setVisible(false);\n dispose();\n new APPLYFrame().setVisible(true);\n\n } else if (User.desig.equalsIgnoreCase(\"HR\")) {\n setVisible(false);\n dispose();\n new HRFrame().setVisible(true);\n\n } else if (User.desig.equalsIgnoreCase(\"ADMIN\")) {\n setVisible(false);\n dispose();\n new ADMINFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"ACCOUNT\")) {\n setVisible(false);\n dispose();\n new ACCOUNTFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"SALARY\")) {\n setVisible(false);\n dispose();\n new SALARYFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"BILLING\")) {\n setVisible(false);\n dispose();\n new BILLINGFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"DISTRIBUTION\")) {\n setVisible(false);\n dispose();\n new DISTRIBUTIONFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"GENERATION\")) {\n setVisible(false);\n dispose();\n new GENERATIONFrame().setVisible(true);\n\n } else if (User.desig.equalsIgnoreCase(\"DHAKA\")) {\n setVisible(false);\n dispose();\n new DHAKAFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"KHULNA\")) {\n setVisible(false);\n dispose();\n new KHULNAFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"RAUJAN\")) {\n setVisible(false);\n dispose();\n new RAUJANFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"SHIDDERGANJ\")) {\n setVisible(false);\n dispose();\n new SHIDDERGANJFrame().setVisible(true);\n } else if (User.desig.equalsIgnoreCase(\"GRASHAL\")) {\n setVisible(false);\n dispose();\n new GRASHALFrame().setVisible(true);\n }\n }\n }",
"private void getInfoUserButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_getInfoUserButtonActionPerformed\n\n clearInformation();\n String key = keyInfoUserTextField.getText();\n String username = usernameInfoUserTextField.getText();\n if (key.equals(EMPTY)) {\n this.displayInformation(PLEASE_EDIT_KEY);\n } else if (username.equals(EMPTY)) {\n this.displayInformation(PLEASE_EDIT_USERNAME);\n } else {\n\n // get the NSID of the user to have the groups\n Rsp response = flickrService.findByUsername(key, username);\n User user = (User) response.getAny();\n String user_id = user.getNsid();\n\n // get the person informations\n response = flickrService.getInfoUser(key, user_id);\n Person person = (Person) response.getAny();\n // display all\n resultUsernameInfoUserTextField.setText(person.getUsername());\n resultRealnameInfoUserTextField.setText(person.getRealname());\n resultMboxInfoUserTextField.setText(person.getMboxSha1Sum());\n resultLocationInfoUserTextField.setText(person.getLocation());\n resultPhotoUrlInfoUserTextField.setText(person.getPhotosurl());\n resultProfileUrlInfoUserTextFIeld.setText(person.getProfileurl());\n resultIConfarmInfoUserTextField1.setText(person.getIconfarm());\n resultFirstDatePhotoInfoUserTextField.setText(person.getPhotos().getFirstdate());\n resultCountPhotosInfoUserTextField.setText(String.valueOf(person.getPhotos().getCount()));\n displayInformation(REQUEST_OK);\n }\n }",
"public ManageUser() {\r\n \t\tinitComponents();\r\n \t\taddActionListener();\r\n \t}",
"public NewUserPanel() throws Exception {\n\t\tdatabase = new Database();\n\t\t\n\t\ttxtEmailAddress = new JTextField();\n\t\ttxtEmailAddress.setText(\"Email Address\");\n\t\ttxtEmailAddress.setColumns(10);\n\t\ttxtEmailAddress.addMouseListener(new MouseAdapter(){\n @Override\n public void mouseClicked(MouseEvent e){\n txtEmailAddress.setText(\"\");\n }\n });\n\t\t\n\t\ttxtPassword = new JTextField();\n\t\ttxtPassword.setText(\"Password\");\n\t\ttxtPassword.setColumns(10);\n\t\ttxtPassword.addMouseListener(new MouseAdapter(){\n @Override\n public void mouseClicked(MouseEvent e){\n \ttxtPassword.setText(\"\");\n }\n });\n\t\t\n\t\ttxtConfirmPassword = new JTextField();\n\t\ttxtConfirmPassword.setText(\"Confirm Password\");\n\t\ttxtConfirmPassword.setColumns(10);\n\t\ttxtConfirmPassword.addMouseListener(new MouseAdapter(){\n @Override\n public void mouseClicked(MouseEvent e){\n \ttxtConfirmPassword.setText(\"\");\n }\n });\n\t\t\n\t\ttxtBirthdayxxxxxxxx = new JTextField();\n\t\ttxtBirthdayxxxxxxxx.setText(\"Birthday (YYYY-MM-DD)\");\n\t\ttxtBirthdayxxxxxxxx.setColumns(12);\n\t\ttxtBirthdayxxxxxxxx.addMouseListener(new MouseAdapter(){\n @Override\n public void mouseClicked(MouseEvent e){\n \ttxtBirthdayxxxxxxxx.setText(\"\");\n }\n });\n\t\t\n\t\ttxtDisplayName = new JTextField();\n\t\ttxtDisplayName.setText(\"Display Name\");\n\t\ttxtDisplayName.setColumns(10);\n\t\ttxtDisplayName.addMouseListener(new MouseAdapter(){\n @Override\n public void mouseClicked(MouseEvent e){\n \ttxtDisplayName.setText(\"\");\n }\n });\n\t\t\n\t\tJCheckBox chckbxMusicArtist = new JCheckBox(\"Music Artist\");\n\t\t\n\t\tJCheckBox chckbxProducer = new JCheckBox(\"Producer\");\n\t\t\n\t\tJButton btnNext = new JButton(\"Next ->\");\n\t\tbtnNext.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) { \n\t\t\t //Check booleans\n\t\t\t\tif (chckbxMusicArtist.isSelected() && !chckbxProducer.isSelected()) {\n\t\t\t\t\t//Music artist only\n\t\t\t\t\tString recordCompany = JOptionPane.showInputDialog(getParent(),\n\t\t\t\t\t\t \"Who is your record company? (Leave blank if not signed).\");\n\t\t\t\t\t\n\t\t\t\t\tString password = txtPassword.getText();\n\t\t\t\t\tString copyPassword = txtConfirmPassword.getText();\n\t\t\t\t\tif (password.equals(copyPassword)) {\n\t\t\t\t\t\t// Creating normal user\n\t\t\t\t\t\tString email = txtEmailAddress.getText();\n\t\t\t\t\t\tString displayName = txtDisplayName.getText();\n\t\t\t\t\t\tString dob = txtBirthdayxxxxxxxx.getText();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tConnection con = database.getConnection();\n\t\t\t\t\t\t\tPreparedStatement insert = con.prepareStatement(\"INSERT INTO User VALUES ('\"+email+\"', '\"+password+\"', '\"+displayName+\"', '\"+ dob +\"');\");\t\t\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\n\t\t\t\t\t\t} catch (Exception error) {\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tConnection con = database.getConnection();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tPreparedStatement insertArt = con.prepareStatement(\"INSERT INTO Artist VALUES ('\" + email + \"', '\" + recordCompany + \"');\");\n\t\t\t\t\t\t\tinsertArt.executeUpdate();\n\t\t\t\t\t\t\t// Display Finished Screen\n\t\t\t\t\t\t\tFinishedNewUserPanel finish = new FinishedNewUserPanel();\n\t\t\t\t\t\t\tJFrame frame = (JFrame) getTopLevelAncestor();\n\t\t\t\t\t\t\tframe.setContentPane(finish);\n\t\t\t\t\t\t\tframe.repaint();\n\t\t\t\t\t\t\tframe.printAll(frame.getGraphics());\n\t\t\t\t\t\t} catch (Exception error) {\n\n\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\tJOptionPane.showMessageDialog(getParent(),\n\t\t\t\t\t\t\t \"Passwords do not match.\");\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t} else if (!chckbxMusicArtist.isSelected() && chckbxProducer.isSelected()) {\n\t\t\t\t\t//Producer only\n\t\t\t\t\tString companyName = JOptionPane.showInputDialog(getParent(),\n\t\t\t\t\t\t \"What is your company name?\");\n\t\t\t\t\tString contactInfo = JOptionPane.showInputDialog(getParent(), \n\t\t\t\t\t\t\t\"Contact Information?\");\n\t\t\t\t\t\n\t\t\t\t\tString password = txtPassword.getText();\n\t\t\t\t\tString copyPassword = txtConfirmPassword.getText();\n\t\t\t\t\tif (password.equals(copyPassword)) {\n\t\t\t\t\t\t// Creating normal user\n\t\t\t\t\t\tString email = txtEmailAddress.getText();\n\t\t\t\t\t\tString displayName = txtDisplayName.getText();\n\t\t\t\t\t\tString dob = txtBirthdayxxxxxxxx.getText();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tConnection con = database.getConnection();\n\t\t\t\t\t\t\tPreparedStatement insert = con.prepareStatement(\"INSERT INTO User VALUES ('\"+email+\"', '\"+password+\"', '\"+displayName+\"', '\"+ dob +\"');\");\t\t\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t} catch (Exception error) {\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tConnection con = database.getConnection();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tPreparedStatement insertPro = con.prepareStatement(\"INSERT INTO Producer VALUES ('\" + email + \"', '\" + companyName + \"', '\" + contactInfo + \"');\");\n\t\t\t\t\t\t\tinsertPro.executeUpdate();\n\t\t\t\t\t\t\t// Display Finished Screen\n\t\t\t\t\t\t\tFinishedNewUserPanel finish = new FinishedNewUserPanel();\n\t\t\t\t\t\t\tJFrame frame = (JFrame) getTopLevelAncestor();\n\t\t\t\t\t\t\tframe.setContentPane(finish);\n\t\t\t\t\t\t\tframe.repaint();\n\t\t\t\t\t\t\tframe.printAll(frame.getGraphics());\n\t\t\t\t\t\t} catch (Exception error) {\n\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(getParent(),\n\t\t\t\t\t\t\t \"Passwords do not match.\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} else if (chckbxMusicArtist.isSelected() && chckbxProducer.isSelected()) {\n\t\t\t\t\t//Both\n\t\t\t\t\tJOptionPane.showMessageDialog(getParent(), \"Cannot be both a artist and a producer\");\n\t\t\t\t} else {\n\t\t\t\t\t//None\n\t\t\t\t\tString password = txtPassword.getText();\n\t\t\t\t\tString copyPassword = txtConfirmPassword.getText();\n\t\t\t\t\tif (password.equals(copyPassword)) {\n\t\t\t\t\t\t// Creating normal user\n\t\t\t\t\t\tString email = txtEmailAddress.getText();\n\t\t\t\t\t\tString displayName = txtDisplayName.getText();\n\t\t\t\t\t\tString dob = txtBirthdayxxxxxxxx.getText();\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tConnection con = database.getConnection();\n\t\t\t\t\t\t\tPreparedStatement insert = con.prepareStatement(\"INSERT INTO User VALUES ('\"+email+\"', '\"+password+\"', '\"+displayName+\"', '\"+ dob +\"');\");\t\t\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\t\tinsert.executeUpdate();\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Display Finished Screen\n\t\t\t\t\t\t\tFinishedNewUserPanel finish = new FinishedNewUserPanel();\n\t\t\t\t\t\t\tJFrame frame = (JFrame) getTopLevelAncestor();\n\t\t\t\t\t\t\tframe.setContentPane(finish);\n\t\t\t\t\t\t\tframe.repaint();\n\t\t\t\t\t\t\tframe.printAll(frame.getGraphics());\n\t\t\t\t\t\t} catch (Exception error) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(getParent(),\n\t\t\t\t\t\t\t\t \"This email address has already been registered!\");\n\t\t\t\t\t\t}\n\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(getParent(),\n\t\t\t\t\t\t\t \"Passwords do not match.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tJLabel lblNewUser = new JLabel(\"New User\");\n\t\t\n\t\tJButton button = new JButton(\"<- Back\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) { \n\t\t\t //Return back to Login Screen\n\t\t\t\tLoginPanel back;\n\t\t\t\ttry {\n\t\t\t\t\tback = new LoginPanel();\n\t\t\t\t\tJFrame frame = (JFrame) getTopLevelAncestor();\n\t\t\t\t\tframe.setContentPane(back);\n\t\t\t\t\tframe.repaint();\n\t\t\t\t\tframe.printAll(frame.getGraphics());\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tGroupLayout groupLayout = new GroupLayout(this);\n\t\tgroupLayout.setHorizontalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addContainerGap(230, Short.MAX_VALUE)\n\t\t\t\t\t.addComponent(button)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(btnNext)\n\t\t\t\t\t.addContainerGap())\n\t\t\t\t.addGroup(Alignment.LEADING, groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(35)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addComponent(lblNewUser)\n\t\t\t\t\t\t.addComponent(chckbxProducer)\n\t\t\t\t\t\t.addComponent(chckbxMusicArtist)\n\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t.addComponent(txtDisplayName, Alignment.LEADING)\n\t\t\t\t\t\t\t.addComponent(txtBirthdayxxxxxxxx, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 252, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addComponent(txtConfirmPassword, Alignment.LEADING)\n\t\t\t\t\t\t\t.addComponent(txtPassword, Alignment.LEADING)\n\t\t\t\t\t\t\t.addComponent(txtEmailAddress, Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 371, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t.addContainerGap(44, Short.MAX_VALUE))\n\t\t);\n\t\tgroupLayout.setVerticalGroup(\n\t\t\tgroupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t.addGap(20)\n\t\t\t\t\t.addComponent(lblNewUser)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(txtEmailAddress, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addComponent(txtPassword, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(txtConfirmPassword, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(txtBirthdayxxxxxxxx, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(txtDisplayName, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(chckbxMusicArtist)\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t.addComponent(chckbxProducer)\n\t\t\t\t\t\t\t.addContainerGap(36, Short.MAX_VALUE))\n\t\t\t\t\t\t.addGroup(groupLayout.createSequentialGroup()\n\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 189, Short.MAX_VALUE)\n\t\t\t\t\t\t\t.addGroup(groupLayout.createParallelGroup(Alignment.BASELINE)\n\t\t\t\t\t\t\t\t.addComponent(btnNext)\n\t\t\t\t\t\t\t\t.addComponent(button))\n\t\t\t\t\t\t\t.addContainerGap())))\n\t\t);\n\t\tsetLayout(groupLayout);\n\n\t}",
"@FXML\r\n\tprivate void initialize() {\r\n\t\tcurUser = LoginController.getLoggedUser();\r\n\t\tString username = (\" \" + curUser.getUsername());\r\n\t\tusernameLabel.setText(username);\r\n\t\tString name = (\" \" + curUser.getName());\r\n\t\tnameLabel.setText(name);\r\n\t\tString mobile = (\" \" + curUser.getMobileNumber());\r\n\t\tmobileLabel.setText(mobile);\r\n\t\tString address = (\" \" + curUser.getHouseNumber() + \" \"\r\n\t\t\t\t+ curUser.getStreetName() + \", \" + curUser.getPostcode());\r\n\t\taddressLabel.setText(address);\r\n\t}",
"@Override\n public void mouseClicked(MouseEvent e) {\n if (userList.getSelectedIndex() < 0) {\n userList.setSelectedIndex(0);\n }\n String selectedItem = (String) userList.getSelectedValue();\n // load entry data from db\n currentUser = (DBUser) DBHandler.getSingleObject(\n \"FROM DBUser WHERE xname='\" + selectedItem + \"'\");\n // fill gui elements with data\n loadUserDetails(currentUser);\n // enable control buttons\n enableButtons(true);\n }",
"private void refreshInformationsFromTableView(User usr){\n\t\thideLackMessages();\n\t\tnewUser = false;\n\t\t\n\t\tif (usr != null){\n\t\t\tsetPrivilagesToModifyUser(usr);\n\t\t\thidePassword();\n\t\t\tchangeCancelButton.setText(\"Zmień hasło\");\n\t\t\tuserNameField.setText(usr.getFirstName());\n\t\t\tuserLastNameField.setText(usr.getLastName());\n\t\t\tuserLoginField.setText(usr.getLogin());\n\t\t\tuserPasswordField.setText(usr.getPassword());\n\t\t\t\n\t\t\tif (usr.getPermissions().equals(\"manager\")) userPermissionsBox.getSelectionModel().select(0);\n\t\t\t\n\t\t\tif (usr.getPermissions().equals(\"pracownik\")) userPermissionsBox.getSelectionModel().select(1);\n\t\t\t\n\t\t\thideShowCheckBoxes();\n\t\t\t\n\t\t\teditingCheck.setSelected(usr.getEditing());\n\t\t\treminderCheck.setSelected(usr.getReminder());\n\t\t}\n\t\telse {\n\t\t\tuserNameField.setText(\"\");\n\t\t\tuserLastNameField.setText(\"\");\n\t\t\tuserLoginField.setText(\"\");\n\t\t\tuserPasswordField.setText(\"\");\n\t\t\tuserConfirmPasswordField.setText(\"\");\n\t\t\tuserPermissionsBox.getSelectionModel().select(null);\n\t\t\teditingCheck.setSelected(false);\n\t\t\treminderCheck.setSelected(false);\n\t\t}\n\t}",
"public UserDialog(JFrame parent){\n\t\t\tsuper(parent, \"New user\");\n\t\t\tadd(new JPanel(), BorderLayout.NORTH);\n\t\t\tadd(new UserDatapanel(),BorderLayout.CENTER);\n\t\t\tadd(getButtonPanel(),BorderLayout.SOUTH);\n\t\t\tsetSize(500,300);\n\t\t}",
"public void bindProfileInfo(User user) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"<center><h3>CONNECTED USERS</h3></center>\");\n stringBuilder.append(\"<br>\");\n printKeys(stringBuilder, user);\n setMainText(stringBuilder.toString());\n }",
"private void initialize() {\r\n\t\t// setBounds(10, 10, 1146, 700);\r\n\t\tsetSize(getMaximumSize());\r\n\t\tgetContentPane().setLayout(null);\r\n\t\tsetTitle(\"Book Store\");\r\n\t\tgetContentPane().setBackground(Color.ORANGE);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tcontent = getContentPane();\r\n\r\n\t\tnote = new JLabel(\"Modify User\");\r\n\t\tnote.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\r\n\t\tnote.setBounds(50, 0, 700, 50);\r\n\t\tnote.setForeground(Color.BLACK);\r\n\t\tgetContentPane().add(note);\r\n\t\tResultSet rs;\r\n\t\tExcuter ex;\r\n\t\ttry {\r\n\t\t\tex = new Excuter(Connector.getInstance());\r\n\t\t\tCondition emailc=new Condition(\"email\",\"=\",\"\\\"\"+emailt+\"\\\"\");\r\n\t\t\tArrayList<Condition> conditions = new ArrayList<>(Arrays.asList(emailc));\r\n\t\t\tArrayList<String> colNames = new ArrayList<>(Arrays.asList(\"*\"));\r\n\t\t\trs = ex.selectConditional(\"user\", colNames, conditions, true, 0);\r\n\t\t\trs.next();\r\n\t\t\tusername = new JTextField(\"Username:\"+rs.getString(\"username\") );\r\n\t\t\tinitialize_text_field(username, \"Username:\"+rs.getString(\"username\"), 140, 120);\r\n\r\n\t\t\temail = new JTextField(\"Email:\"+rs.getString(\"email\") );\r\n\t\t\tinitialize_text_field(email, \"Email:\"+rs.getString(\"email\") , 460, 120);\r\n\r\n\t\t\tfirstName = new JTextField(\"First Name:\"+rs.getString(\"first_name\") );\r\n\t\t\tinitialize_text_field(firstName, \"First Name:\"+rs.getString(\"first_name\") , 780, 180);\r\n\r\n\t\t\tlastName = new JTextField(\"Last Name:\"+rs.getString(\"last_name\") );\r\n\t\t\tinitialize_text_field(lastName, \"Last Name:\"+rs.getString(\"last_name\") , 780, 120);\r\n\r\n\t\t\tpassword = new JPasswordField(\"Password:\"+rs.getString(\"password\"));\r\n\t\t\tinitialize_password_field(password, \"Password:\"+rs.getString(\"password\"), 140, 180);\r\n\r\n\t\t\trepassword = new JPasswordField(\"Re-type Password:\"+rs.getString(\"password\"));\r\n\t\t\tinitialize_password_field(repassword, \"Re-type Password:\"+rs.getString(\"password\"), 460, 180);\r\n\r\n\t\t\tphone = new JTextField(\"Phone:\"+rs.getString(\"phone_number\") );\r\n\t\t\tinitialize_text_field(phone,\"Phone:\"+rs.getString(\"phone_number\"), 140, 240);\r\n\r\n\t\t\taddress = new JTextField(\"Shipping Address:\"+rs.getString(\"shipping_address\") );\r\n\t\t\tinitialize_text_field(address, \"Shipping Address:\"+rs.getString(\"shipping_address\") , 460, 240);\r\n\r\n\t\t\tsubmit = new JButton(\"Submit\");\r\n\t\t\tinitialize_button(submit, \"Submit\", 290, 550);\r\n\t\t} catch (SQLException | ClassNotFoundException e1) {\r\n\t\t\tint pane = JOptionPane.showConfirmDialog(window,\r\n\t \"error in connection\", \"ERROR\",JOptionPane.DEFAULT_OPTION);\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tsubmit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\r\n\t\t\t\tif (tr(password.getText()).compareTo(tr(repassword.getText())) != 0) {\r\n\t\t\t\t\tSystem.out.println(password.getText() + repassword.getText());\r\n\t\t\t\t\tint pane = JOptionPane.showConfirmDialog(window, \"please make sure you wrote password correctly\",\r\n\t\t\t\t\t\t\t\"ERROR\", JOptionPane.DEFAULT_OPTION);\r\n\t\t\t\t\t// window.dispatchEvent(new WindowEvent(window,\r\n\t\t\t\t\t// WindowEvent.WINDOW_CLOSING));\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (tr(password.getText()).length() < 3) {\r\n\t\t\t\t\tint pane = JOptionPane.showConfirmDialog(window, \"please length should be => 3\", \"ERROR\",\r\n\t\t\t\t\t\t\tJOptionPane.DEFAULT_OPTION);\r\n\t\t\t\t\t// window.dispatchEvent(new WindowEvent(window,\r\n\t\t\t\t\t// WindowEvent.WINDOW_CLOSING));\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!email.getText().contains(\"@\")) {\r\n\t\t\t\t\tint pane = JOptionPane.showConfirmDialog(window, \"please check email\", \"ERROR\",\r\n\t\t\t\t\t\t\tJOptionPane.DEFAULT_OPTION);\r\n\t\t\t\t\t// window.dispatchEvent(new WindowEvent(window,\r\n\t\t\t\t\t// WindowEvent.WINDOW_CLOSING));\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tif (!java.util.regex.Pattern.matches(\"\\\\d+\", tr(phone.getText()))) {\r\n\t\t\t\t\tint pane = JOptionPane.showConfirmDialog(window, \"please check phone number\", \"ERROR\",\r\n\t\t\t\t\t\t\tJOptionPane.DEFAULT_OPTION);\r\n\t\t\t\t\t// window.dispatchEvent(new WindowEvent(window,\r\n\t\t\t\t\t// WindowEvent.WINDOW_CLOSING));\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tConnector conn;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tExcuter ex = new Excuter(Connector.getInstance());\r\n\t\t\t\t\tArrayList<String> colNames = new ArrayList<>(Arrays.asList(\"username\", \"email\", \"password\",\r\n\t\t\t\t\t\t\t\"first_name\", \"last_name\", \"phone_number\", \"shipping_address\"));\r\n\t\t\t\t\tArrayList<String> colVal = new ArrayList<>(\r\n\t\t\t\t\t\t\tArrays.asList(\"\\\"\"+tr(username.getText())+\"\\\"\", \"\\\"\"+tr(email.getText())+\"\\\"\", \"\\\"\"+tr(password.getText())+\"\\\"\", \"\\\"\"+tr(firstName.getText())+\"\\\"\",\r\n\t\t\t\t\t\t\t\t\t\"\\\"\"+tr(lastName.getText())+\"\\\"\", \"\\\"\"+tr(phone.getText())+\"\\\"\",\"\\\"\"+ tr(address.getText())+\"\\\"\"));\r\n\t\t\t\t\tArrayList<Assignment> ass= new ArrayList<Assignment>();\r\n\t\t\t\t\tfor(int i=0 ;i<colNames.size();i++){\r\n\t\t\t\t\t\tass.add(new Assignment(colNames.get(i),colVal.get(i)));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tCondition emailc=new Condition(\"email\",\"=\",\"\\\"\"+emailt+\"\\\"\");\r\n\t\t\t\t\tSystem.out.println(emailt);\r\n\t\t\t\t\tArrayList<Condition> conditions = new ArrayList<>(Arrays.asList(emailc));\r\n\t\t\t\t\tex.update(\"user\", ass, conditions ,true);\r\n\t\t\t\t\t\r\n\t\t\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t\temailt=tr(email.getText());\r\n\t\t\t\t\t\t\t\tSignInForm window = new SignInForm();\r\n\t\t\t\t\t\t\t\twindow.setVisible(true);\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t} catch (SQLException | ClassNotFoundException e) {\r\n\t\t\t\t\tint pane = JOptionPane.showConfirmDialog(window, \"same email or username or phone number exists or error in database happened\",\r\n\t\t\t\t\t\t\t\"ERROR\", JOptionPane.DEFAULT_OPTION);\r\n\t\t\t\t\t// window.dispatchEvent(new WindowEvent(window,\r\n\t\t\t\t\t// WindowEvent.WINDOW_CLOSING));\r\n\t\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\treturn;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tcancel = new JButton(\"Cancel\");\r\n\t\tinitialize_button(cancel, \"Cancel\", 460, 550);\r\n\t\tcancel.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tConnector conn ;\r\n\t\t\t\tExcuter ex;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tex = new Excuter(Connector.getInstance());\r\n\t\t\t\t\tArrayList<String> colNames = new ArrayList<>(Arrays.asList(\"email\",\"privilege\"));\r\n\t\t\t\t\tCondition emailc=new Condition(\"email\",\"=\",\"\\\"\"+emailt+\"\\\"\");\r\n\t\t\t\t\tArrayList<Condition> conditions = new ArrayList<>(Arrays.asList(emailc));\r\n\t\t\t\t\tResultSet rs=ex.selectConditional(\"user\",colNames,conditions,true,0);\r\n\t\t\t\t\trs.next();\r\n\t\t\t\t\t\tif(rs.getInt(\"privilege\")==0){\r\n\t\t\t\t\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t\t\t\tUserHome window = new UserHome(emailt);\r\n\t\t\t\t\t\t\t\t\t\twindow.setVisible(true);\r\n\t\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\t\t\t\tManagerHome window = new ManagerHome(emailt);\r\n\t\t\t\t\t\t\t\t\t\twindow.setVisible(true);\r\n\t\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (SQLException | ClassNotFoundException e) {\r\n\t\t\t\t\tint pane = JOptionPane.showConfirmDialog(window,\r\n\t\t\t \"error in connection\", \"ERROR\",JOptionPane.DEFAULT_OPTION);\r\n\t\t\t\t\t//window.dispatchEvent(new WindowEvent(window, WindowEvent.WINDOW_CLOSING));\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tlogout = new JButton(\"Logout\");\r\n\t\tinitialize_button(logout, \"Logout\", 1000, 10);\r\n\t\tlogout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\t\t\t\r\n\t\t\t\tExcuter ex;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tex = new Excuter(Connector.getInstance());\r\n\t\t\t\t\tCondition emailc=new Condition(\"email\",\"=\",\"\\\"\"+emailt+\"\\\"\");\r\n\t\t\t\t\tArrayList<Condition> conditions = new ArrayList<>(Arrays.asList(emailc));\r\n\t\t\t\t\tboolean rs = ex.delete(\"cart\",conditions,true);\r\n\t\t\t\t} catch (SQLException | ClassNotFoundException e1) {\r\n\t\t\t\t\tint pane = JOptionPane.showConfirmDialog(window,\r\n\t\t\t \"error in connection\", \"ERROR\",JOptionPane.DEFAULT_OPTION);\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tEventQueue.invokeLater(new Runnable() {\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tdispose();\r\n\t\t\t\t\t\t\tSignInForm window = new SignInForm();\r\n\t\t\t\t\t\t\twindow.setVisible(true);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\timgIcon = new ImageIcon(\"Books.jpg\");\r\n\t\timage = new JLabel(imgIcon);\r\n\t\timage.setBounds(850, 250, imgIcon.getIconWidth(), imgIcon.getIconHeight());\r\n\t\tgetContentPane().add(image);\r\n\t}",
"public HomeView(User user) {\n initComponents();\n this.user = user;\n jLabelName.setText(user.getName()); \n }",
"public UserInterface() {\n \t setTitle(\"The Cancer Specialist - Diagnostic Application\");\n initComponents();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t//Set the UID that has been entered into a parameterised constructor\n\t\t\t\tUpdateUser update = new UpdateUser(uid.getText());\n\t\t\t\tConnection connection = Conn.getConnection();\n\t\t\t\t//Getting the UID,USERNAME,PASSWORD,ADDRESS,PHONE from table users where UID match the UID that has been entered\n\t\t\t\tString sql=\"SELECT UID,USERNAME,PASSWORD,ADDRESS,PHONE FROM users where UID =\" + update.getUID(); \n\t\t\t\ttry {\n\t\t\t\t\tStatement stmt = connection.createStatement();\n\t\t\t\t\tResultSet rs= stmt.executeQuery(sql);\n\t\t\t\t\trs.next();\n\t\t\t\t\t//Create a frame to enter the new user details\n\t\t\t\t\tJFrame f2 = new JFrame(\"Update User Details\");\n\t\t\t\t\tJLabel l1,l2,l3,l4; \n\t\t\t\t\tJTextField user,addr,phone;\n\t\t\t\t\tJPasswordField pass;\n\n\t\t\t\t\tl1=new JLabel(\"Username\");\n\t\t\t\t\tl1.setBounds(30,15, 100,30); \n\t\t\t\t\tl2=new JLabel(\"Password\"); \n\t\t\t\t\tl2.setBounds(30,50, 100,30); \n\t\t\t\t\tl3 = new JLabel(\"Address\");\n\t\t\t\t\tl3.setBounds(30, 85, 100, 30);\n\t\t\t\t\tl4 = new JLabel(\"Phone No\");\n\t\t\t\t\tl4.setBounds(30, 120, 100, 30);\n\n\t\t\t\t\tuser = new JTextField();\n\t\t\t\t\tuser.setBounds(110, 15, 200, 30);\n\t\t\t\t\tuser.setText(rs.getString(2));\n\n\t\t\t\t\tpass=new JPasswordField();\n\t\t\t\t\tpass.setBounds(110, 50, 200, 30);\n\t\t\t\t\tpass.setText(rs.getString(3));\n\n\t\t\t\t\taddr =new JTextField();\n\t\t\t\t\taddr.setBounds(110, 85, 200, 30);\n\t\t\t\t\taddr.setText(rs.getString(4));\n\n\t\t\t\t\tphone=new JTextField();\n\t\t\t\t\tphone.setBounds(110, 120, 200, 30);\n\t\t\t\t\tphone.setText(rs.getString(5));\n\n\t\t\t\t\tJButton updateBtn=new JButton(\"Update\");\n\t\t\t\t\tupdateBtn.setBounds(130,180,80,25);\n\t\t\t\t\tupdateBtn.addActionListener(new ActionListener() { //Add action listener to \"Update\" button\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e){\n\t\t\t\t\t\t\tUser add = new User(user.getText(), String.valueOf(pass.getPassword()), addr.getText(), phone.getText());\n\n\t\t\t\t\t\t\tConnection connection = Conn.getConnection();\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tStatement stmt = connection.createStatement();\n\t\t\t\t\t\t\t\t//Update the user details by the value that the user has entered\n\t\t\t\t\t\t\t\tstmt.executeUpdate(\"UPDATE USERS SET USERNAME ='\"+add.getUsername()+\"',PASSWORD = '\"+add.getPassword()+\"',ADDRESS='\"+add.getAddress()+\"',PHONE = '\"+add.getPhoneNo()+\"' WHERE UID = \"+update.getUID());\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"User updated!\"); //Update success message\n\t\t\t\t\t\t\t\tf.dispose();\n\t\t\t\t\t\t\t\tf2.dispose();\n\t\t\t\t\t\t\t\tview.initComponents();//Open the viewUserTab back\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcatch (SQLException e1) {\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, e1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tf2.add(updateBtn);\n\t\t\t\t\tf2.add(l1);\n\t\t\t\t\tf2.add(l2);\n\t\t\t\t\tf2.add(l3);\n\t\t\t\t\tf2.add(l4);\n\t\t\t\t\tf2.add(user);\n\t\t\t\t\tf2.add(pass);\n\t\t\t\t\tf2.add(addr);\n\t\t\t\t\tf2.add(phone);\n\t\t\t\t\tf2.setSize(350,300);\n\t\t\t\t\tf2.setLayout(null);\n\t\t\t\t\tf2.setVisible(true);\n\t\t\t\t\tf2.setLocationRelativeTo(null);\n\t\t\t\t}\n\n\t\t\t\tcatch (SQLException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e1);\n\t\t\t\t} \n\t\t\t}",
"public ruser() {\n initComponents();\n update();\n }",
"public void setUser_name(String user_name);",
"private void populateView(){\n showProgressDialog();\n //here check if user infos are in databse\n mRef = database.getReference();\n mRef.goOnline();\n userId = fUser.getUid();\n Log.d(\"CURRENT ID\", userId);\n mRef.child(\"users\").child(userId).addListenerForSingleValueEvent(\n new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n //if user infos are not present display form to fill data\n if (!dataSnapshot.exists()) {\n Log.d(\"TAG\", \"populate view\");\n //display form data if user has no data\n //remove wait dialog\n hideProgressDialog();\n setContentView(R.layout.activity_add_user_info);\n customer = (RadioButton)findViewById(R.id.radio_customer);\n owner = (RadioButton)findViewById(R.id.radio_owner);\n name = (EditText)findViewById(R.id.user_name);\n surname = (EditText)findViewById(R.id.user_surname);\n }\n else if(dataSnapshot.exists()){\n hideProgressDialog();\n User user = dataSnapshot.getValue(User.class);\n goToMainActivity(user.getType());\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n Log.d(\"TAG\", \"getUser:onCancelled\", databaseError.toException());\n }\n\n\n });\n }",
"public void run(String user) {\n\t\ttry {\n\t\t\tViewUser popup = new ViewUser(user);\n\t\t\tpopup.uvFrame.setVisible(true);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"protected void Userselect(ActionEvent arg0) {\n\t\tUsersManageFrm umf=new UsersManageFrm();\n\t\tumf.setVisible(true);\n\t\tdesktopPane.add(umf);\n\t}"
]
| [
"0.76995564",
"0.7555707",
"0.70432824",
"0.7042927",
"0.7009705",
"0.6905817",
"0.6895606",
"0.6809892",
"0.68049246",
"0.676606",
"0.6757398",
"0.6754686",
"0.67325974",
"0.6711115",
"0.6684875",
"0.6673278",
"0.66635513",
"0.66609555",
"0.66545326",
"0.6638388",
"0.6629039",
"0.6625817",
"0.6622117",
"0.6614696",
"0.6605318",
"0.6594248",
"0.6576791",
"0.6564954",
"0.65525836",
"0.6547676",
"0.6543406",
"0.65358055",
"0.651258",
"0.6490483",
"0.64865893",
"0.6486397",
"0.6473766",
"0.6469927",
"0.64572257",
"0.64544374",
"0.6441274",
"0.64330494",
"0.64265376",
"0.64261603",
"0.6424492",
"0.6421802",
"0.6412075",
"0.63921493",
"0.63786125",
"0.63727474",
"0.6367303",
"0.6367218",
"0.63580996",
"0.6353176",
"0.6345834",
"0.6342622",
"0.6317105",
"0.63126314",
"0.63053715",
"0.63008416",
"0.62916946",
"0.6291348",
"0.6279525",
"0.62753564",
"0.6267267",
"0.62614924",
"0.6256257",
"0.6255731",
"0.625008",
"0.62428474",
"0.6240246",
"0.62394047",
"0.62378746",
"0.62260795",
"0.6220868",
"0.6216313",
"0.6211823",
"0.62078446",
"0.6196001",
"0.6191568",
"0.6190579",
"0.61877376",
"0.61861897",
"0.61806154",
"0.6178556",
"0.61728966",
"0.61720395",
"0.6168198",
"0.6164778",
"0.6163458",
"0.6159422",
"0.61585206",
"0.61560434",
"0.6154126",
"0.6153856",
"0.61500406",
"0.61478907",
"0.6147239",
"0.6144184",
"0.6133844"
]
| 0.66613847 | 17 |
TODO scrap this using simulated mouse click on user list but HOW??? disable or enable control buttons buttons has to be disabled after user is deleted and enabled whenever the control actions should be | private void enableButtons(boolean enabled) {
saveUserButton.setEnabled(enabled);
deleteUserButton.setEnabled(enabled);
resetPassButton.setEnabled(enabled);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void disableButtons()\r\n {\r\n }",
"private void defineUserListActions(Stage primaryStage) {\n userList.setOnMouseClicked((MouseEvent e) -> { // Define Action for clicking user in list\n if (e.getButton() == MouseButton.SECONDARY) { // right click\n ContextMenu rightClickOptions = new ContextMenu();\n MenuItem remove = new MenuItem(\"Remove User\");\n remove.setOnAction((ActionEvent e1) -> {\n boolean removed =\n socialNetwork.removeUser(userList.getSelectionModel().getSelectedItem());\n if (removed) {\n if (activeUser.getName().equals(userList.getSelectionModel().getSelectedItem())) {\n activeUser = null;\n }\n userList.getItems().remove(\n userList.getItems().indexOf(userList.getSelectionModel().getSelectedItem()));\n updateGraph();\n updateCounts();\n }\n });\n rightClickOptions.getItems().add(remove);\n if (userList.getSelectionModel().getSelectedItem() != null\n && !userList.getSelectionModel().getSelectedItem().isEmpty()) {\n rightClickOptions.show(primaryStage, e.getScreenX(), e.getScreenY());\n }\n return;\n }\n\n if (userList.getSelectionModel().getSelectedItem() != null\n && !userList.getSelectionModel().getSelectedItem().isEmpty()) {\n\n activeUser = socialNetwork.getUserByName(userList.getSelectionModel().getSelectedItem());\n updateCounts();\n updateGraph();\n }\n }); // end user list action\n }",
"@Override\n public void mouseClicked(MouseEvent e) {\n if (userList.getSelectedIndex() < 0) {\n userList.setSelectedIndex(0);\n }\n String selectedItem = (String) userList.getSelectedValue();\n // load entry data from db\n currentUser = (DBUser) DBHandler.getSingleObject(\n \"FROM DBUser WHERE xname='\" + selectedItem + \"'\");\n // fill gui elements with data\n loadUserDetails(currentUser);\n // enable control buttons\n enableButtons(true);\n }",
"protected void UpdateButtons()\n {\n btnIn.setEnabled(usr.getPostType() == Util.ATTENDANCE_DAY_OUT);\n btnOut.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n btnScan.setEnabled(usr.getPostType()== Util.ATTENDANCE_DAY_IN\n || usr.getPostType()== Util.ATTENDANCE_BETWEEN);\n\n }",
"private void createAdminEvents() {\n\t\t//moves the create user panel to the front to allow the user to enter the new user info\n\t\tbtn_create_new_user.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\tpnlCreateQualification.setVisible(false);\n\t\t\t\tpnlCreateUser.setVisible(true);\n\t\t\t\tlayeredPaneAdminComponents.setLayer(pnlUserEditInfo, 2);\n\t\t\t\tlayeredPaneAdminComponents.setLayer(pnlCreateUser, 3);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtn_add_qualifications.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\tpnlUserEditInfo.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\tpnlCreateUser.setVisible(false);\n\t\t\t\tpnlCreateQualification.setVisible(true);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnCancelAddQualifcation.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateJob.setVisible(false);\n\t\t\t\tpnlCreateTask.setVisible(false);\n\t\t\t\tpnlCreateProject.setVisible(false);\n\t\t\t\tpnlCreateQualification.setVisible(false);\n\t\t\t\tpnlUserEditInfo.setVisible(true);\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnChangePassword.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//Display user information that was clicked on the left.\n\t\tlistUsers.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting() && !listUsers.isSelectionEmpty()) {\n pnlViewTickets.setVisible(false);\n pnlCreateQualification.setVisible(false);\n pnlUserEditInfo.setVisible(true);\n displayUserInfo(listUsers.getSelectedValue().toString());\n //saves the index of the array that was clicked on\n btnDeleteUser.setText(\"ARCHIVE USER\");\n lastClickedIndex = listUsers.getSelectedIndex();\n int id = jdbc.getIdOfUser(textUsername.getText());\n //saved the userID of the user that is displayed\n lastClickeduserID = id;\n if (rdbtnAdminDetails.isSelected()) {\n \t lastClickedUserType = 1;\n } else if (rdbtnManagerDetails.isSelected()) {\n \t lastClickedUserType = 2;\n } else {\n \t lastClickedUserType = 3;\n }\n }\n }\n });\n\t\t//Display user information that was clicked on the left.\n\t\tlistArchivedUsers.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting() && !listArchivedUsers.isSelectionEmpty()) {\n pnlUserEditInfo.setVisible(true);\n displayUserInfo(listArchivedUsers.getSelectedValue().toString());\n //saves the index of the array that was clicked on\n lastClickedIndex = listArchivedUsers.getSelectedIndex();\n btnDeleteUser.setText(\"UNARCHIVE USER\");\n int id = jdbc.getIdOfUser(textUsername.getText());\n //saved the userID of the user that is displayed\n lastClickeduserID = id;\n if (rdbtnAdminDetails.isSelected()) {\n \t lastClickedUserType = 1;\n } else if (rdbtnManagerDetails.isSelected()) {\n \t lastClickedUserType = 2;\n } else {\n \t lastClickedUserType = 3;\n }\n }\n }\n });\n\t\t//Save changes made the user\n\t\tbtnSaveChanges.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tint id = jdbc.getIdOfUser(textUsername.getText());\n\t\t\t\tlastClickeduserID = id;\n\t\t\t\ttry {\n\t\t\t\t\t if (rdbtnAdminDetails.isSelected()) {\n\t \t lastClickedUserType = 1;\n\t } else if (rdbtnManagerDetails.isSelected()) {\n\t \t lastClickedUserType = 2;\n\t } else {\n\t \t lastClickedUserType = 3;\n\t }\n\t\t\t\t\t jdbc.updateUser(id, lastClickedUserType, textFirstName.getText(), textLastName.getText(), textUsername.getText(), textEmail.getText(), textPhone.getText());\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t}\n\t\t\t\tupdateUserList();\n\t\t\t}\n\t\t});\n\t\t/*Called when the -> button is clicked to add some qualifications to a user\n\t\tall edits are done with the jdbc function assignQuals()\n\t\tparameters are the userId, the ArrayList of available qualifications and the selected indices of the qualification list*/\n\t\tassignQual.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t//parameters are the userId, the ArrayList of available qualifications and the selected indices of the qualification list\n\t\t\t\tjdbc.assignQuals(lastClickeduserID, availQuals, listAvailableQuals.getSelectedIndices());\n\t\t\t\tcreateQualLists(lastClickeduserID);\n\t\t\t}\n\t\t});\n\t\t/*Called when the <- button is clicked to remove some qualifications from a user\n\t\tall edits are done with the jdbc function UnassignQuals()*/\n\t\tunassignQual.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//parameters are the userId, the ArrayList of assigned qualifications and the selected indices of the qualification list\n\t\t\t\tjdbc.UnassignQuals(lastClickeduserID, assignedQuals, listAssignedQuals.getSelectedIndices());\n\t\t\t\tcreateQualLists(lastClickeduserID);\n\t\t\t}\n\t\t});\n\t\t//Send the information to the SQL server after the information in entered\n\t\tbtnCreateUser.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint usertype = 0;\n\t\t\t\tif (rdbtnAdmin.isSelected()) {\n\t\t\t\t\tusertype = 1;\n\t\t\t\t} else if (rdbtnManager.isSelected()) {\n\t\t\t\t\tusertype = 2;\n\t\t\t\t} else if (rdbtnWorker.isSelected()) {\n\t\t\t\t\tusertype = 3;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tString pass = new String(txtCreatePassword.getPassword());\n\t\t\t\t\tjdbc.add_user(usertype,txtCreateUsername.getText(),txtCreateFirstName.getText(), txtCreateLastName.getText(), txtCreateEmailAddress.getText(), txtCreatePhoneNumber.getText(), pass);\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tJOptionPane.showMessageDialog(null, \"User Created!\");\n\t\t\t\t//hides the create user panel\n\t\t\t\tpnlCreateUser.setVisible(false);\n\t\t\t\t//Refreshes the list of user on the left side panel\n\t\t\t\tcreateUserList();\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlCreateUser.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t//TODO make it so they turn into an 'archived' user instead of complete deletion.\n\t\tbtnDeleteUser.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tboolean b = true;\n\t\t\t\tif (btnDeleteUser.getText() == \"ARCHIVE USER\") {\n\t\t\t\t\tb = false;\n\t\t\t\t} \n\t\t\t\tjdbc.archiveUser(lastClickeduserID, b);\n\t\t\t\tcreateUserList();\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnCreateQual.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tArrayList<String> usernames = new ArrayList<String>();\n\t\t\t\tfor (int i = 0; i < userListAssignQual.size(); i++) {\n\t\t\t\t\tusernames.add(userListAssignQual.getElementAt(i).toString());\n\t\t\t\t}\n\t\t\t\tboolean worked = jdbc.createQual(txtNewQualificationName.getText(), txtNewQualificationDesc.getText(), usernames);\n\t\t\t\tif (worked) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Qualification Created!\");\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Qualification not created.\");\n\t\t\t\t\ttxtNewQualificationDesc.setText(\"\");\n\t\t\t\t\ttxtNewQualificationName.setText(\"\");\n\t\t\t\t\tuserListAssignQual.clear();\n\t\t\t\t\tcreateUserListQual();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnAssignUserQual.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint[] selected = listCreateQualAvailUsers.getSelectedIndices();\n\t\t\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\t\t\tuserListAssignQual.addElement(userListAvailQual.getElementAt(selected[i]));\n\t\t\t\t\tuserListAvailQual.remove(selected[i]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnUnassignUserQual.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint[] selected = listCreateQualAssignedUsers.getSelectedIndices();\n\t\t\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\t\t\tuserListAvailQual.addElement(userListAssignQual.getElementAt(selected[i]));\n\t\t\t\t\tuserListAssignQual.remove(selected[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnViewTickets.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tloadTickets();\n\t\t\t\tif (pnlViewTickets.isVisible()) {\n\t\t\t\t\tpnlViewTickets.setVisible(false);\n\t\t\t\t\tpnlUserEditInfo.setVisible(true);\n\t\t\t\t} else {\n\t\t\t\t\tpnlUserEditInfo.setVisible(false);\n\t\t\t\t\tpnlCreateQualification.setVisible(false);\n\t\t\t\t\tpnlViewTickets.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t//Displays the closed ticket information\n\t\tlistClosedTickets.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting() && !listClosedTickets.isSelectionEmpty()) {\n \tpnlTicketDetails.setVisible(true);\n \tdisplayTicketDetails(listClosedTickets.getSelectedValue().toString());\n }\n }\n });\n\t\t//Displays the open ticket information\n\t\tlistOpenTickets.addListSelectionListener(new ListSelectionListener() {\n @Override\n public void valueChanged(ListSelectionEvent arg0) {\n if (!arg0.getValueIsAdjusting() && !listOpenTickets.isSelectionEmpty()) {\n \tpnlTicketDetails.setVisible(true);\n \tdisplayTicketDetails(listOpenTickets.getSelectedValue().toString());\n }\n }\n });\n\t\t//\n\t\tbtnTicketDetailsClose.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tpnlTicketDetails.setVisible(false);\n\t\t\t\tloadTickets();\n\t\t\t}\n\t\t});\n\t\t//opens report generation tab\n\t\tbtnReportGenerator.addActionListener(new ActionListener() {\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n//\t\t\t\tpnlUserEditInfo.setVisible(false);\n//\t\t\t\tpnlCreateQualification.setVisible(false);\n//\t\t\t\tpnlCreateUser.setVisible(false);\n//\t\t\t\tpnlDeleteUser.setVisible(false);\n//\t\t\t\tpnlViewTickets.setVisible(false);\n//\t\t\t\tpnlTicketDetails.setVisible(false);\n//\t\t\t\tpnlArchivedUsers.setVisible(false);\n\t\t\t\tpnlReportGeneration.setVisible(true);\n\t\t\t\tloadProjects();\n\t\t\t}\n\t\t});\n\t\t//listens for selection of a project to generate a report of\n\t\tlistProjectsGeneratable.addListSelectionListener(new ListSelectionListener() {\t\t\n\t\t\t@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t if (!arg0.getValueIsAdjusting()) {\n\t projectToGenerate= (String) listProjectsGeneratable.getSelectedValue();\t\n\t System.out.println(projectToGenerate);\n\t }\n\t\t\t}\n\t\t});\n\t\t//creates Report given a project name\n\t\tbtnCreateReport.addActionListener(new ActionListener() {\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\t\tFile file = new File(\"%s\",txtReportPath.getSelectedText());\n\t\t\t\tString s = \"\";\n\t\t\t\treportedjobs.add(jdbc.get_project(projectToGenerate)); //root\n\t\t\t\treportedjobs.addAll(jdbc.get_Branches(projectToGenerate));//branches\n\t\t\t\tfor (Job job : reportedjobs) {\n\t\t\t\t\ts= s+job.jobname+\"\t\t\t\t\"+job.jobdesc+ '\\r'+'\\n';\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriteFileLine(s, file);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//cancels report generation\n\t\tbtnCancelReport.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpnlReportGeneration.setVisible(false);\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t//\n\t\tbtnTicketDoneSave.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tjdbc.updateTicket(currentOpenTicketId, rdbtnTicketDoneYes.isSelected());\n\t\t\t\tpnlTicketDetails.setVisible(false);\n\t\t\t\tloadTickets();\n\t\t\t}\n\t\t});\n\t}",
"private void disableButtons() {\n for (DeployCommand cmd : DeployCommand.values()){\n setButtonEnabled(cmd, false);\n }\n butDone.setEnabled(false);\n setLoadEnabled(false);\n setUnloadEnabled(false);\n setAssaultDropEnabled(false);\n }",
"private void updateUserBoard()\r\n {\r\n for(int i = 0; i < 3; i++)\r\n {\r\n for(int j = 0; j < 3; j++) {\r\n if ((buttons[i][j].getText().charAt(0) == ' ') && !(buttons[i][j].isEnabled())) {\r\n if (marker.equals(Marker.cross)) {\r\n buttons[i][j].setText(\"X\");\r\n } else {\r\n buttons[i][j].setText(\"O\");\r\n }\r\n }\r\n }\r\n }\r\n }",
"@Override\r\n\tprotected void onBoEdit() throws Exception {\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Con)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tgetButtonManager().getButton(\r\n\t\t\t\tnc.ui.wds.w8006080202.tcButtun.ITcButtun.Pp)\r\n\t\t\t\t.setEnabled(false);\r\n\t\tsuper.onBoEdit();\r\n\t}",
"public void userClickedOnTable()\r\n {\r\n this.detailedStudentViewButton.setDisable(false);\r\n }",
"public void uiVerifyButtonUndoDisable() {\n try {\n getLogger().info(\"Verify button Undo Todo disable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo disabled\")) {\n NXGReports.addStep(\"Verify button Undo Todo disable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo disable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void updateDisabledButtons() {\n\t\t//at least 3 credits should be there for perform add max action\n\t\tif (obj.getCredit() < 3)\n\t\t\taddMax.setEnabled(false);\n\t\t//at least a credit should be there for perform add max action\n\t\tif (obj.getCredit() == 0)\n\t\t\taddOne.setEnabled(false);\n\t\tif (obj.getCredit() >= 3)\n\t\t\taddMax.setEnabled(true);\n\t\tif (obj.getCredit() > 0)\n\t\t\taddOne.setEnabled(true);\n\t}",
"public void updateButtons(){\n\t\tif (Player.getPlayer(this).questManager.atMaxNumQuests()) {\n\t\t\tcreateQuest.setEnabled(false);\n\t\t} else {\n\t\t\tcreateQuest.setEnabled(true);\n\t\t}\n\t\tif (selectedQuest != null){\n\t\t\tdeleteQuest.setEnabled(true);\n\t\t\tcompleteQuest.setEnabled(true);\n\t\t} else {\n\t\t\tdeleteQuest.setEnabled(false);\n\t\t\tcompleteQuest.setEnabled(false);\n\t\t}\n\t}",
"private void updateButtons() {\n\t\tif(buttonCount>1){\n\t\t\tremoveTableButton.setEnabled(true);\n\t\t}\n\t\telse{\n\t\t\tremoveTableButton.setEnabled(false);\n\t\t}\n\t\tif(buttonCount<tablesX.length){\n\t\t\taddTableButton.setEnabled(true);\n\t\t}\n\t\telse{\n\t\t\taddTableButton.setEnabled(false);\n\t\t}\n\t}",
"private void buttonEnable(){\n\t\t\taddC1.setEnabled(true);\n\t\t\taddC2.setEnabled(true);\n\t\t\taddC3.setEnabled(true);\n\t\t\taddC4.setEnabled(true);\n\t\t\taddC5.setEnabled(true);\n\t\t\taddC6.setEnabled(true);\n\t\t\taddC7.setEnabled(true);\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\taddBtn.setEnabled(true);\n\t\t\t}",
"private void doButtons()\n {\n if (scopes.size()>1) addButtons();\n else hideButtons();\n }",
"public void disableButtons() {\n\t\t\r\n\t\tcapture.setEnabled(false);\r\n\t\tstop.setEnabled(false);\r\n\t\tfilter.setEnabled(false);\r\n\t\tsave.setEnabled(false);\r\n\t\t//load.setEnabled(false);\r\n\t}",
"private void updateControls() {\n updateBadge();\n etExtUsrId.setEnabled(isPushRegistrationAvailable() && !isUserPersonalizedWithExternalUserId());\n btnPersonalize.setEnabled(!isUserPersonalizedWithExternalUserId());\n btnDepersonalize.setEnabled(isUserPersonalizedWithExternalUserId());\n btnToInbox.setEnabled(isUserPersonalizedWithExternalUserId());\n }",
"public void usrOptionBtn() {\n\t\tpause(2000);\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t .until(ExpectedConditions.presenceOfElementLocated(By.id(\"userOptBtn\")));\n\t\ttemp.click();\n\t}",
"public void uiVerifyButtonUndoEnable() {\n try {\n getLogger().info(\"Verify button Undo Todo enable.\");\n Thread.sleep(largeTimeOut);\n\n if (btnToDoUndo.getAttribute(\"class\").toString().equals(\"fa fa-undo\")) {\n NXGReports.addStep(\"Verify button Undo Todo enable.\", LogAs.PASSED, null);\n } else {\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"verify button Undo Todo enable.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void addClickables() {\n\t\tclickable.add(button1.getBounds());\n\t\tbehaviors.put(clickable.get(0), () -> hideEscapeScreen());\n\t\tclickable.add(button3.getBounds());\n\t\tbehaviors.put(clickable.get(1), () -> Driver.getInstance().switchToScreen(new FFWorldMap()));\n\t\tclickable.add(button4.getBounds());\n\t\tbehaviors.put(clickable.get(2), () -> Driver.getInstance().switchToScreen(new FFMainMenu()));\n\t}",
"private void enableButtons() {\n\t\tcapture.setEnabled(true);\r\n\t\tstop.setEnabled(true);\r\n\t\tselect.setEnabled(true);\r\n\t\tfilter.setEnabled(true);\r\n\t}",
"private void initListButton(){\n ImageButton ibList = findViewById(R.id.imageButtonList);\n ibList.setEnabled(false);\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tImage img = new ImageIcon(this.getClass().getResource(\"/bpSelected.png\")).getImage();\n\t\t\t\tbtnBypass.setIcon(new ImageIcon(img));\n\t\t\t\tuiInterceptor.addItem(1);\n\t\t\t\tbtnDoublebp.setEnabled(false);\n\t\t\t\tbtnTriplebp.setEnabled(false);\n\t\t\t\tbtnQuadbp.setEnabled(false);\n\t\t\t}",
"private void disableComponents() {\r\n maintainSponsorHierarchyBaseWindow.btnChangeGroupName.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnCreateNewGroup.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnDelete.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnMoveDown.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnMoveUp.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnSave.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.setSelected(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmChangeGroupName.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmCreateNewGroup.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmDelete.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveDown.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveUp.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmSave.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setEnabled(false);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.setSelected(false);\r\n }",
"public void disableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(false);\n }\n }",
"public void disableButtons() {\n\n for (Button b: buttons) {\n b.setClickable(false);\n }\n\n }",
"private void lockButton(){\n\t\tconversionPdf_Txt.setEnabled(false);\n\t\tavisJury.setEnabled(false);\n\t\tstatistique.setEnabled(false);\n\t\tbData.setEnabled(false);\n\t\tbDataTraining.setEnabled(false);\n\t\tbCompare.setEnabled(false);\n\t}",
"public JButton getJbDelete() {\n\t\tif(jbDelete==null){\n\t\t\tjbDelete = new JButton(\"Delete\");\n\t\t\tjbDelete.setPreferredSize(new Dimension(120,25));\n\t\t\tjbDelete.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\tjbDelete.addMouseListener(new MouseListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\tjbDelete.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\tjbDelete.setBackground(ColorProject.COLOR_BLUE.getCol().brighter());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t}\n\t\t\t});\n\t\t\tjbDelete.addActionListener(new ActionListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tint indice = getJtUser().getSelectedRow();\n\t\t\t\t\t//vérifie qu'il a bien un user sélectionné\n\t\t\t\t\tif(indice==-1){\n\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this,\"No User selected\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE );\n\t\t\t\t\t}\n\t\t\t\t\t//vérifie qu'il ne sagit pas des users \"guest', \"admin\", ou \"user\"\n\t\t\t\t\telse if(GestionUser.getInstance().getUsers(indice).getPseudo().equals(\"guest\") || GestionUser.getInstance().getUsers(indice).getPseudo().equals(\"admin\") || GestionUser.getInstance().getUsers(indice).getPseudo().equals(\"user\")){\n\t\t\t\t\t\tJOptionPane.showConfirmDialog(ListeUser.this,\"You can't delete this user\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE );\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t//demande à l'admin si il est sur de vouloir supprimer le user\n\t\t\t\t\t\tif(indice!=-1){\n\t\t\t\t\t\t\tint reponse = JOptionPane.showConfirmDialog(ListeUser.this,\"Do you really want to delete this user?\",\"Confirmation\",JOptionPane.YES_NO_OPTION,JOptionPane.QUESTION_MESSAGE);\n\t\t\t\t\t\t\tif(reponse==JOptionPane.YES_OPTION){\n\t\t\t\t\t\t\t\tGestionUser.getInstance().removeUser(indice);\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\tJOptionPane.showConfirmDialog(ListeUser.this,\"No User selected\",\"Error\",JOptionPane.DEFAULT_OPTION,JOptionPane.ERROR_MESSAGE );\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jbDelete;\n\t}",
"private void unlockButton() {\n\t\tconversionPdf_Txt.setEnabled(true);\n\t\tavisJury.setEnabled(true);\n\t\tstatistique.setEnabled(true);\n bData.setEnabled(true);\n\t}",
"private static void setButtonsPlaced(){\r\n for(MyButton b : mylist.getAllButtons()){\r\n b.setPlaced(false);\r\n }\r\n }",
"protected void updateToolbarButtons() {\r\n // delete folder button\r\n TreePath[] selectedFiles = _fileSystemTree == null ? new TreePath[0] : _fileSystemTree.getSelectionPaths();\r\n // System.out.println(\"selectedFiles.length = \" + selectedFiles == null ? 0 : selectedFiles.length);\r\n if (selectedFiles != null && selectedFiles.length > 0) {\r\n _toolbar.enableDelete();\r\n }\r\n else {\r\n _toolbar.disableDelete();\r\n }\r\n \r\n // new folder button (only enable if exactly one folder selected\r\n if (selectedFiles != null && selectedFiles.length == 1) {\r\n _toolbar.enableNewFolder();\r\n }\r\n else {\r\n _toolbar.disableNewFolder();\r\n }\r\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\tgetUserList();\n\t\t\t\t\t}",
"public void addUserBtn(){\n\t\t\n\t\t// TODO: ERROR CHECK\n\t\t\n\t\tUserEntry user = new UserEntry(nameTF.getText(), (String)usertypeCB.getValue(), emailTF.getText());\n\t\tAdminController.userEntryList.add(user);\n\t\t\n\t\t\n\t\t// Create a UserEntry and add it to the observable list\n\t\tAdminController.userList.add(user);\t\t\n\t\t\n\t //AdminController.adminTV.setItems(AdminController.userList);\n\t\t\n\t\t//Close current stage\n\t\tAdminController.addUserStage.close();\n\t\t\n\t}",
"protected void ACTION_B_LIST(ActionEvent arg0) {\n\t\tListNetworkInerface();\r\n\t\tselect.setEnabled(true);\r\n\t\tback.setEnabled(true);\r\n\t\thelp.setEnabled(true);\r\n\t\tload.setEnabled(true);\r\n\t\ttextField.requestFocus();\r\n\t}",
"@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }",
"@Test\r\n\tpublic void testButtonPressedDisabled() {\r\n\t\tSelectionButton button = vend.getSelectionButton(0);\r\n\t\tbutton.disable();\r\n\t\tbutton.press();\r\n\t\tassertTrue(vend.getDeliveryChute().removeItems().length==0);\r\n\t}",
"@FXML\n void setBtnDeleteLocationOnClick() {\n this.btnAdd.setDisable(true);\n this.btnEdit.setDisable(true);\n this.setDisableSelectedButtons(false);\n this.comboBoxLocation.setDisable(false);\n this.tableViewAds.setDisable(true);\n this.selectOptionAddEdit(false, false, true, false);\n }",
"public void enableButtons() {\n //a loop to go through all buttons\n for (int i = 0; i < currentBoard.getSizeX(); i++) {\n Inputbuttons[i].setEnabled(true);\n }\n }",
"private void deActivateButtons(){\n limiteBoton.setEnabled(false);\n derivadaBoton.setEnabled(false);\n integralBoton.setEnabled(false);\n}",
"public void initButtons() {\n\t\tcomponents.clear();\n\t\t\n\t\tImageButton rename = new ImageButton(width - 124, 0, 45, 45);\n\t\trename.setTexture(\"/graphics/textures/ui/Rename.png\");\n\t\trename.disabledColor = IGuiElement.gray;\n\t\trename.setClickEvent(new IGuiEvent() {\n\t\t\t@Override\n\t\t\tpublic void trigger() {\n\t\t\t\tfinal InputField name = new InputField(0, 0, 0, Game.client.getUsername(), Tr._(\"username\"));\n\t\t\t\tDialog dialog = new Dialog(Tr._(\"namechange\"), \"\", new Action(Tr._(\"cancel\"), Dialog.CLOSE_EVENT), new Action(Tr._(\"ok\"), new IGuiEvent() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void trigger() {\n\t\t\t\t\t\tnew Thread() {\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\tGame.currentGame.getActiveScene().lockScene();\n\t\t\t\t\t\t\t\tString oldUsername = Game.client.getUsername();\n\t\t\t\t\t\t\t\tGame.client.renameClient(name.getText());\n\t\t\t\t\t\t\t\twhile (Game.client.getUsername().equals(oldUsername)) {\n\t\t\t\t\t\t\t\t\tif (Game.client.isRejected()) {\n\t\t\t\t\t\t\t\t\t\tGame.currentGame.getActiveScene().unlockScene();\n\t\t\t\t\t\t\t\t\t\tGame.currentGame.addScene(new Dialog(Tr._(\"error\"), Tr._(\"mp.reject.\" + Game.client.getRejectionCause().name().toLowerCase()), new Action(Tr._(\"close\"),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\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\tDialog.CLOSE_EVENT)));\n\t\t\t\t\t\t\t\t\t\tGame.client.resetRejection();\n\t\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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\tGame.currentGame.getActiveScene().unlockScene();\n\t\t\t\t\t\t\t\tGame.currentGame.removeActiveScene();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}.start();\n\t\t\t\t\t}\n\t\t\t\t}));\n\t\t\t\tname.setWidth(dialog.getWidth() - 50);\n\t\t\t\tdialog.addComponent(name);\n\t\t\t\tGame.currentGame.addScene(dialog);\n\t\t\t}\n\t\t});\n\t\tadd(rename);\n\t\t\n\t\tImageButton kick = new ImageButton(width - 124, 36, 45, 45);\n\t\tkick.setTexture(\"/graphics/textures/ui/Logout.png\");\n\t\tkick.disabledColor = IGuiElement.gray;\n\t\tkick.setClickEvent(new IGuiEvent() {\n\t\t\t@Override\n\t\t\tpublic void trigger() {\n\t\t\t\tDialog dialog = new Dialog(Tr._(\"kick\"), Tr._(\"kickquestion\").replace(\"%player%\", p.getUsername()), new Action(Tr._(\"cancel\"), Dialog.CLOSE_EVENT),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew Action(Tr._(\"ok\"), new IGuiEvent() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void trigger() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGame.client.sendPacket(new Packet1Disconnect(p.getUsername(), \"mp.reason.kicked\"));\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGame.currentGame.removeActiveScene();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}));\n\t\t\t\tGame.currentGame.addScene(dialog);\n\t\t\t}\n\t\t});\n\t\tadd(kick);\n\t\t\n\t\tint nw = 190;\n\t\tfloat ratio = TextButton.HEIGHT / (float) TextButton.WIDTH;\n\t\tfinal TextButton ready = new TextButton(width - 128 - nw / 2, 15, Tr._(\"ready\"));\n\t\tready.setWidth(nw);\n\t\tready.setHeight((int) (ratio * nw));\n\t\tready.setToggleMode(true);\n\t\tready.setClickEvent(new IGuiEvent() {\n\t\t\t@Override\n\t\t\tpublic void trigger() {\n\t\t\t\ttry {\n\t\t\t\t\tp.setReady(ready.isActive());\n\t\t\t\t\tGame.client.sendPacket(new Packet6Player(p));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tadd(ready);\n\t\t\n\t\tColorLabel c = new ColorLabel(width - 400, 1, height - 20, p.getColor());\n\t\tc.grayOnDisable = false;\n\t\tadd(c);\n\t}",
"public void UpdateCommandsUI(){\n Button B;\n try{\n for (int i = 0; i < f.getNumComp(); i++) {\n B = (Button) findViewById(300000 + i); //Buy Button\n if(dayOpen & (p.getMoney()>0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(dayOpen & (p.getLevel()>= 4)){\n B.setEnabled(true);\n B.setTextColor(0xffff0000);\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n\n B = (Button) findViewById(400000 + i); //Sell Button\n if (dayOpen & (f.getSharesOwned(i) > 0)) {\n B.setEnabled(true);\n B.setTextColor(0xffffffff);\n } else if(p.getLevel()>=4 & !f.isShorted(i) & dayOpen){\n B.setEnabled(true);\n B.setTextColor(0xffff0000); //Red Color for short positions\n } else {\n B.setEnabled(false);\n B.setTextColor(0xff000000);\n }\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }",
"private void btnModificarMouseClicked(java.awt.event.MouseEvent evt) {\n }",
"private void friendsListBtnListener() {\n friendsListBtn.addListener(new ClickListener(){\n public void clicked(InputEvent event, float x, float y){\n ChessGame.client.ingame = false;\n game.setScreen(new FriendsListScreen(game));\n }\n });\n }",
"public void clickOnUpdateBtnGroupList() {\r\n\t\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Update\"));\r\n\t\t}",
"abstract void listDisponibles_mouseClicked(MouseEvent e);",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tImage img = new ImageIcon(this.getClass().getResource(\"/tbpSelected.png\")).getImage();\n\t\t\t\tbtnTriplebp.setIcon(new ImageIcon(img));\n\t\t\t\tuiInterceptor.addItem(3);\n\t\t\t\tbtnDoublebp.setEnabled(false);\n\t\t\t\tbtnBypass.setEnabled(false);\n\t\t\t\tbtnQuadbp.setEnabled(false);\n\t\t\t}",
"private void addComponents() {\n\t\tthis.add(btn_pause);\n\t\tthis.add(btn_continue);\n\t\tthis.add(btn_restart);\n\t\tthis.add(btn_rank);\n\t\tif(Config.user.getUsername().equals(\"root\")) {\n\t\t\tthis.add(btn_admin);\n\t\t}\n\t\n\t\t\n\t}",
"private void enableRemove(){\n addSubmit.setDisable(true);\n removeSubmit.setDisable(false);\n setSubmit.setDisable(true);\n addCS.setDisable(true);\n removeCS.setDisable(false);\n setCS.setDisable(true);\n addIT.setDisable(true);\n removeIT.setDisable(false);\n setIT.setDisable(true);\n addECE.setDisable(true);\n removeECE.setDisable(false);\n setECE.setDisable(true);\n partTime.setDisable(true);\n fullTime.setDisable(true);\n management.setDisable(true);\n dateAddText.setDisable(true);\n dateRemoveText.setDisable(false);\n dateSetText.setDisable(true);\n nameAddText.setDisable(true);\n nameRemoveText.setDisable(false);\n nameSetText.setDisable(true);\n hourlyAddText.setDisable(true);\n annualAddText.setDisable(true);\n managerRadio.setDisable(true);\n dHeadRadio.setDisable(true);\n directorRadio.setDisable(true);\n //codeAddText.setDisable(true);\n hoursSetText.setDisable(true);\n }",
"public void disableButtons() {\n p1WinPoint.setEnabled(false);\n p2WinPoint.setEnabled(false);\n }",
"private void setButtonDisabled() {\n final boolean areProjects = mainController.selectedOrganisationProperty().getValue().getProjects().size() > 0;\n final boolean areTeams = mainController.selectedOrganisationProperty().getValue().getTeams().size() > 0;\n //allocateTeamButton.setDisable(!(areProjects && areTeams));\n }",
"public void clickBulkActions() {\n btnBulkActions.click();\n }",
"private void updateButtons() {\n\t\tif (selectedDownload != null) {\n\t\t\tint status = selectedDownload.getStatus();\n\t\t\tswitch (status) {\n\t\t\t\tcase Download.DOWNLOADING:\n\t\t\t\t\tpauseButton.setEnabled(true);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.PAUSED:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(true);\n\t\t\t\t\tclearButton.setEnabled(false);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Download.ERROR:\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(true);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault: // COMPLETE or CANCELLED\n\t\t\t\t\tpauseButton.setEnabled(false);\n\t\t\t\t\tresumeButton.setEnabled(false);\n\t\t\t\t\tcancelButton.setEnabled(false);\n\t\t\t\t\tclearButton.setEnabled(true);\n\t\t\t}\n\t\t} else {\n\t\t\t// No download is selected in table.\n\t\t\tpauseButton.setEnabled(false);\n\t\t\tresumeButton.setEnabled(false);\n\t\t\tcancelButton.setEnabled(false);\n\t\t\tclearButton.setEnabled(false);\n\t\t}\n\t}",
"public void mouseClicked(MouseEvent L_ME)\n\t {\n\t //exeINTSTA('E');\n\t \n\t if(cmbREFCALL.getSelectedItem().toString().equals(\"Recall\"))\n\t\t { \n\t\t\t// if(M_objSOURC== rdbDRISS)\n\t\t\t txtTRNTP.requestFocus();\n\t \t\tflgDIRFL = true;\n\t\t\t\t\ttxtTRNTP.setEnabled(true);\n\t\t\t\t\ttxtISSNO.setEnabled( true);\n\t\t\t\t\tbtnRUN.setEnabled(false);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t //}\n\t\t\t /*if(M_objSOURC==rdbIDISS)\n\t\t\t {\n\t\t\t\t flgDIRFL = false;\n\t\t\t\t\ttxtTRNTP.setEnabled(true);\n\t\t\t\t\ttxtISSNO.setEnabled( true);\n\t\t\t\t\tbtnRUN.setEnabled(false);\n\t\t\t\t\ttxtTRNTP.requestFocus();\n\t\t\t }*/\n\t\t }\n\t if(cmbREFCALL.getSelectedItem().toString().equals(\"Refresh\"))\n\t\t {\n\t //if(chkREFRCT.isSelected())\n\t \t\t btnRUN.setEnabled(true);\n\t //if(chkREFISS.isSelected())\n\t \t\t //btnRUN.setEnabled(true); \n\t \t\t \n\t \n\t\t }\n\t \n\t}",
"protected void updateButtons() {\n int currentIndex = tabbedPane.getSelectedIndex();\n if( currentIndex == 0) {\n backButton.setEnabled(false);\n forwardButton.setText(\"weiter\");\n }\n if(currentIndex > 0) {\n backButton.setEnabled(true);\n forwardButton.setText(\"weiter\");\n }\n \n if(currentIndex == 6) {\n forwardButton.setText(\"würfeln\");\n }\n \n }",
"public void clickRemoveButtonInPictureTab(){\r\n\t\t\t\r\n\t\t\tMcsElement.getElementByXpath(driver, \"//div[contains(@class,'x-panel-noborder') and not(contains(@class,'x-hide-display'))]//div[contains(@class,'x-panel-bbar')]//button[contains(text(),'Remove')]\").click();\r\n\t\t\t\r\n\t\t\tReporter.log(\"Clicked on Remove button in Picture Tab\", true);\r\n\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isbegin==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isbegin=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(e.getButton()==MouseEvent.BUTTON3)\n\t\t\t\t{\n\t\t\t\t\tif(Conf.isreplay==1)\t\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tConf.isreplay=1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\t\n\t\t\t}",
"private void updateTabButtons() {\n\t\tif (currentTab == null || currentTab.equals(\"history\")) {\n\t\t\thistory.setDisable(true);\n\t\t\tlanguage.setDisable(false);\n\t\t} else if (currentTab == null || currentTab.equals(\"language\")) {\n\t\t\tlanguage.setDisable(true);\n\t\t\thistory.setDisable(false);\n\t\t}\n\t}",
"@Override\r\n public void handleMouseUpEvent(Mouse.ButtonEvent buttonEvent) {\n }",
"private void activateButtons(){\n limiteBoton.setEnabled(true);\n derivadaBoton.setEnabled(true);\n integralBoton.setEnabled(true);\n}",
"private void onUnblockButtonClicked(ActionEvent actionEvent) {\n for (User user : builder.getBlockedUsers()) {\n if (selectedButton.getId().equals(\"user_blocked_\" + user.getId())) {\n builder.removeBlockedUser(user);\n this.blockedUsersLV.getItems().remove(user);\n ResourceManager.saveBlockedUsers(builder.getPersonalUser().getName(), user, false);\n break;\n }\n }\n }",
"private void moikhoacontrol(boolean b) {\n\t\tbtnSua.setEnabled(b);\n\t\tbtnluu.setEnabled(b);\n\t\tbtnxoa.setEnabled(b);\n\t\tbtnThoat.setEnabled(b);\n\t\tbtnTim.setEnabled(b);\n\t\t\n\t}",
"private void ctrlPuasar() {\n btnIniciar.setEnabled(true);\n btnPausar.setEnabled(false);\n\n }",
"@Override\r\n\tprotected void onBoDelete() throws Exception {\n\t\tsuper.onBoDelete();\r\n\t\t// 修改按钮属性\r\n\t\tif(myaddbuttun){\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(true);\r\n\t\t\tmyaddbuttun=true;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}else{\r\n\t\t\tgetButtonManager().getButton(IBillButton.Add).setEnabled(false);\r\n\t\t\tmyaddbuttun=false;\r\n\t\t\t// 转到卡片面,实现按钮的属性转换\r\n\t\t\tgetBillUI().setCardUIState();\r\n\t\t\tsuper.onBoReturn();\r\n\t\t}\r\n\t}",
"private void ctrlDetener() {\n btnIniciar.setEnabled(true);\n btnIniciar.setText(\"Iniciar\");\n btnPausar.setEnabled(false);\n btnParar.setEnabled(false);\n }",
"String disabledButton();",
"public void createControl(Composite parent) \r\n\t{\r\n\t\tComposite container = new Composite(parent, SWT.NONE);\r\n\r\n\t\tsetControl(container);\r\n\t\t\r\n\t\tSelectionAdapter listener1 = new SelectionAdapter() {\r\n\t public void widgetSelected(SelectionEvent e) {\r\n\t \t if (btnFirstOption.getSelection()){\r\n\t \t\t btnSecondOption.setSelection(false);\r\n\t \t\t btnThirdOption.setSelection(false);\r\n\t \t }\t \t \r\n\t }\r\n\t };\r\n\t SelectionAdapter listener2 = new SelectionAdapter() {\r\n\t \tpublic void widgetSelected(SelectionEvent e) {\r\n\t \t\tif (btnSecondOption.getSelection()){\r\n\t\t \t\t btnFirstOption.setSelection(false);\r\n\t\t \t }\r\n\t \t\tif (btnThirdOption.getSelection()){\r\n\t\t \t\t btnFirstOption.setSelection(false);\r\n\t\t \t } \r\n\t \t}\r\n\t };\r\n\t \r\n\t\tbtnFirstOption = new Button(container, SWT.CHECK);\r\n\t\tbtnFirstOption.setBounds(10, 10, 20, 59);\r\n\t\tbtnFirstOption.addSelectionListener(listener1);\r\n\t\t\r\n\t\tbtnSecondOption = new Button(container, SWT.CHECK | SWT.WRAP);\r\n\t\tbtnSecondOption.setBounds(10, 75, 20, 85);\r\n\t\tbtnSecondOption.addSelectionListener(listener2);\r\n\t\t\r\n\t\tbtnThirdOption = new Button(container, SWT.CHECK | SWT.WRAP);\r\n\t\tbtnThirdOption.setBounds(292, 75, 20, 85);\r\n\t\tbtnThirdOption.addSelectionListener(listener2);\r\n\t\t\r\n\t\tyesList = new List(container,SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\r\n\t\tyesList.setBounds(36, 166, 224, 106);\r\n\t\t\r\n\t\tfor(Property p: hetColl.getMemberEnds())\r\n\t\t{\t\t\r\n\t\t\tType type = p.getType();\r\n\t\t\tyesList.add(getStereotype(type)+\" \"+type.getName());\t\t\t\r\n\t\t}\r\n\t\tyesList.setSelection(0);\r\n\t\t\r\n\t\tbtnArrowRight = new Button(container, SWT.NONE);\r\n\t\tbtnArrowRight.setBounds(266, 181, 40, 25);\r\n\t\tbtnArrowRight.setText(\"->\");\r\n\t\tbtnArrowRight.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\tfor(String str: yesList.getSelection()){\r\n\t\t\t\t\tif(!contains(noList,str)) { noList.add(str); noList.select(noList.indexOf(str)); } \r\n\t\t\t\t}\r\n\t\t\t\tif(yesList.getSelectionIndex()>=0) { \r\n\t\t\t\t\tint prev = yesList.getSelectionIndex()-1;\r\n\t\t\t\t\tyesList.remove(yesList.getSelectionIndex());\r\n\t\t\t\t\tyesList.select(prev); \r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnArrowLeft = new Button(container, SWT.NONE);\r\n\t\tbtnArrowLeft.setBounds(266, 212, 40, 25);\r\n\t\tbtnArrowLeft.setText(\"<-\");\r\n\t\tbtnArrowLeft.addSelectionListener(new SelectionAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void widgetSelected(SelectionEvent arg0) {\r\n\t\t\t\tfor(String str: noList.getSelection()){\r\n\t\t\t\t\tif(!contains(yesList,str)) { yesList.add(str); yesList.select(yesList.indexOf(str)); } \r\n\t\t\t\t}\r\n\t\t\t\tif(noList.getSelectionIndex()>=0) {\r\n\t\t\t\t\tint prev = noList.getSelectionIndex()-1;\r\n\t\t\t\t\tnoList.remove(noList.getSelectionIndex());\r\n\t\t\t\t\tnoList.select(prev);\t\t\t\t\t \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tnoList = new List(container, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);\r\n\t\tnoList.setBounds(318, 166, 224, 106);\r\n\t\t\r\n\t\tlblFirstOption = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tlblFirstOption.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tlblFirstOption.setBounds(36, 10, 506, 59);\t\t\r\n\t\tlblFirstOption.setText(hetColl.getWhole().getName()+\" is a functional complex and all partOf relations are stereotyped as «componentOf»\");\r\n\t\t\r\n\t\tlblSecondOption = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tlblSecondOption.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tlblSecondOption.setBounds(36, 75, 224, 85);\r\n\t\tlblSecondOption.setText(\"New Label\");\r\n\t\tlblSecondOption.setText(\"The parts are also collectives and their respective relations are stereotyped as «subCollectionOf»\");\r\n\t\t\r\n\t\tlblThirdOption = new Text(container, SWT.BORDER | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tlblThirdOption.setBackground(SWTResourceManager.getColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n\t\tlblThirdOption.setBounds(318, 75, 224, 85);\r\n\t\tlblThirdOption.setText(\"There is a new type, named MemberPart, which is the super-type of all parts and is connected to \"+hetColl.getWhole().getName()+\" through a single «memberOf» relation. In addition, all other partOf relations are deleted.\");\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tADCLE.Admin_DDL_Revoke();\n\t\t\t\tADCL.setVisible(false);\n\t\t\t}",
"private void refreshButtons() {\n flowPane.getChildren().clear();\n\n for(String testName : Files.listTests()) {\n TestJson info;\n try {\n info = TestParser.read(testName);\n } catch(FileNotFoundException e) {\n continue; /* Skip */\n }\n\n JFXButton button = new JFXButton(testName);\n button.pseudoClassStateChanged(PseudoClass.getPseudoClass(\"select-button\"), true);\n\n button.setOnAction(e -> buttonPressed(info));\n\n if(!filter(info, button))\n continue;\n\n // If this model asked to be put in a specific place, put it there\n if(!info.custom && info.order >= 0)\n flowPane.getChildren().add(Math.min(info.order, flowPane.getChildren().size()), button);\n else\n flowPane.getChildren().add(button);\n }\n }",
"private void addPrivilegedUser(ActionEvent actionEvent) {\n if (addUserMenu.getSelectionModel().getSelectedItem() != null) {\n for (User user : server.getUser()) {\n if (user.getName().equals(addUserMenu.getSelectionModel().getSelectedItem())) {\n selectedAddUser = user;\n }\n }\n // set selected user to channel as privileged\n channel.withPrivilegedUsers(selectedAddUser);\n // update addMenu\n addUserMenu.getItems().clear();\n for (User user : server.getUser()) {\n if (!user.getPrivileged().contains(channel)) {\n addUserMenu.getItems().add(user.getName());\n }\n }\n // update removeMenu\n removeUserMenu.getItems().clear();\n for (User user : server.getUser()) {\n if (user.getPrivileged().contains(channel)) {\n removeUserMenu.getItems().add(user.getName());\n }\n }\n channelPrivilegedUserUpdate();\n }\n }",
"private void setTabButtons(boolean enableFlag){\n\t\tbuttonMap.get(SAVE_COMMAND).setEnabled(enableFlag);\r\n\t\tbuttonMap.get(NEW_NODE).setEnabled(enableFlag);\r\n\t\tbuttonMap.get(RUN_COMMAND).setEnabled(enableFlag);\r\n\t\t\r\n\t\t// Grey out or ungrey the menu items\r\n\t\tMap<Command, JMenuItem> menuItemMap = menuCreator.getMenuItemMap();\r\n\t\tmenuItemMap.get(MenuCreator.Command.SAVE_TAB).setEnabled(enableFlag);\r\n\t\tmenuItemMap.get(MenuCreator.Command.EDIT_TAB_NAME).setEnabled(enableFlag);\r\n\t\tmenuItemMap.get(MenuCreator.Command.NEW_DYNAMIC_NODE).setEnabled(enableFlag);\r\n\t\tmenuItemMap.get(MenuCreator.Command.SAVE_AS_IMAGE).setEnabled(enableFlag);\r\n\t\tmenuItemMap.get(MenuCreator.Command.EXPORT_RESULTS_TO_FILE).setEnabled(enableFlag);\r\n\t\tmenuItemMap.get(MenuCreator.Command.INSERT).setEnabled(enableFlag);\r\n\t\tmenuItemMap.get(MenuCreator.Command.EDIT).setEnabled(enableFlag);\t\t\r\n\t}",
"private void updateButtons() {\n\t\t SwingUtilities.invokeLater(new Runnable() {\n\t\t public void run() { \n\t\t botones[rowId1][columnId1].toggleOnOff();\n\t\t\t botones[rowId1][columnId1].setEnabled(true);\n\t\t\t \n\t\t\t botones[rowId2][columnId2].toggleOnOff();\n\t\t\t botones[rowId2][columnId2].setEnabled(true);\n\t\t\t \n\t\t\t setEnabled(true);\n\t\t\t \n\t\t timerPush.stop();\n\t\t }\n\t\t });\n\t }",
"public void manageCashDrawerBtn() {\n\t\tpause(1000);\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t .until(ExpectedConditions.presenceOfElementLocated(By.id(\"managePrtBtn\")));\n\t\ttemp.click();\n\t\tpause(1000);\n\t}",
"private void removePrivilegedUser(ActionEvent actionEvent) {\n if (removeUserMenu.getSelectionModel().getSelectedItem() != null) {\n for (User user : server.getUser()) {\n if (user.getName().equals(removeUserMenu.getSelectionModel().getSelectedItem())) {\n selectedRemoveUser = user;\n }\n }\n // remove selected user from channel as privileged\n channel.withoutPrivilegedUsers(selectedRemoveUser);\n // update removeMenu\n removeUserMenu.getItems().clear();\n for (User user : server.getUser()) {\n if (user.getPrivileged().contains(channel)) {\n removeUserMenu.getItems().add(user.getName());\n }\n }\n // update addMenu\n addUserMenu.getItems().clear();\n for (User user : server.getUser()) {\n if (!user.getPrivileged().contains(channel)) {\n addUserMenu.getItems().add(user.getName());\n }\n }\n channelPrivilegedUserUpdate();\n }\n }",
"private void updateButtonsState() {\r\n ISelection sel = mTableViewerPackages.getSelection();\r\n boolean hasSelection = sel != null && !sel.isEmpty();\r\n\r\n mUpdateButton.setEnabled(mTablePackages.getItemCount() > 0);\r\n mDeleteButton.setEnabled(hasSelection);\r\n mRefreshButton.setEnabled(true);\r\n }",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseDown(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"private void setMouseListener() {\n lstvList.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getClickCount() == 2) {\n try {\n showBike(lstvList.getSelectionModel().getSelectedItem());\n } catch (IOException ex) {\n \n }\n }\n }\n });\n }",
"public abstract List<GuiButton> getButtonList();",
"public static void mouseUp(int mx, int my, int button) {\n/* */ try {\n/* 123 */ if (!NEIConfig.isEnabled() || NEIConfig.isHidden()) {\n/* */ return;\n/* */ }\n/* */ \n/* 127 */ for (Widget widget : controlWidgets)\n/* */ {\n/* 129 */ widget.mouseUp(mx, my, button);\n/* */ }\n/* */ }\n/* 132 */ catch (Exception exception) {\n/* */ \n/* 134 */ NEIUtils.reportException(exception);\n/* 135 */ NEIConfig.setEnabled(false);\n/* */ } \n/* */ }",
"@Override\n\tpublic void mouseClicked(MouseEvent m) {\n\t\tArrayList<FriendAccount> al;\n\t\ttry{\n\t\t\tJLabel l = (JLabel) m.getSource();\n\t\t\tif(l.getText().equals(\"Sign up\")){\n\t\t\t\tframe1.dispose();\n\t\t\t\t/*frame2.add(p,BorderLayout.CENTER);\n\t\t\t\tframe2.add(p_south,BorderLayout.SOUTH);\n\t\t\t\tframe2.pack();frame2.setLocation(550, 250);*/\n\t\t\t\tframe2.setVisible(true);\n\t\t\t}\n\t\t\telse if(l.getText().equals(\"Logout\")){\n\n\t\t\t\tframe1.dispose();\n\t\t\t\t//\t\t\t\t\tsqlobj.set_status(username, \"0\");\n\t\t\t\tnew Userpanel();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tframe2.dispose();\n\t\t\t\tframe1.setVisible(true);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\ttry{\n\n\t\t\t\t//JButton b = (JButton) m.getSource();\n\t\t\t\t//System.out.println(\"I m Clicked\"); \n\t\t\t\t//System.out.println(\"Reached >\" + lab[9].getText());\n\t\t\t\tsqlobj.set_status(username, \"0\");\n\t\t\t\tframe1.dispose();\n\t\t\t\tShow_frame.t.cancel();\n\t\t\t\tnew Userpanel();\n\t\t\t}catch(Exception e2){\n\t\t\t\te2.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"protected void enablePopupMenu()\n {\n if(viewer.getEditScriptMode())\n newAction.setEnabled(false);\n else\n newAction.setEnabled(true);\n\n FieldActorDescriptor[] selectedActors = getHighlightedActors();\n if(selectedActors.length == 0)\n {\n editAction.setEnabled(false);\n removeAction.setEnabled(false);\n selectAction.setEnabled(false);\n viewAction.setEnabled(false);\n }\n else if(selectedActors.length == 1)\n {\n editAction.setEnabled(true);\n\n if(viewer.getEditScriptMode())\n removeAction.setEnabled(false);\n else\n removeAction.setEnabled(true);\n\n if(selectedActors[0].selected)\n selectAction.setEnabled(false);\n else\n selectAction.setEnabled(true);\n\n viewAction.setEnabled(true);\n }\n else\n {\n if(sameActorTypes(selectedActors))\n editAction.setEnabled(true);\n else\n editAction.setEnabled(false);\n\n if(viewer.getEditScriptMode())\n removeAction.setEnabled(false);\n else\n removeAction.setEnabled(true);\n\n selectAction.setEnabled(false);\n\n viewAction.setEnabled(false);\n }\n }",
"public void editButtonClicked() {\n setButtonsDisabled(false, true, true);\n setAllFieldsAndSliderDisabled(false);\n }",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}"
]
| [
"0.658933",
"0.6528779",
"0.63870627",
"0.63838005",
"0.62333804",
"0.6224716",
"0.61872494",
"0.6097041",
"0.604167",
"0.6041657",
"0.603256",
"0.6025841",
"0.60182065",
"0.6015011",
"0.5984124",
"0.5975956",
"0.5969103",
"0.59666693",
"0.5950948",
"0.5949417",
"0.5946842",
"0.5940162",
"0.5925892",
"0.59193504",
"0.5913301",
"0.58874863",
"0.58553314",
"0.5847712",
"0.58363223",
"0.5817788",
"0.58113426",
"0.58090943",
"0.5795886",
"0.5794646",
"0.5793493",
"0.57756495",
"0.57643336",
"0.5759153",
"0.5756425",
"0.5740106",
"0.5729985",
"0.57243586",
"0.5721336",
"0.57207537",
"0.5719163",
"0.57117194",
"0.5711462",
"0.5711035",
"0.5708145",
"0.57068735",
"0.5700468",
"0.5699216",
"0.5699152",
"0.5698726",
"0.5697542",
"0.5691311",
"0.5690448",
"0.56866205",
"0.5686554",
"0.568616",
"0.568139",
"0.5681113",
"0.56797504",
"0.56722236",
"0.5669423",
"0.5653577",
"0.56519467",
"0.5651751",
"0.5650175",
"0.5636904",
"0.5633952",
"0.56265837",
"0.56210023",
"0.562081",
"0.5619296",
"0.5617981",
"0.5617981",
"0.5617981",
"0.5617981",
"0.5617981",
"0.5617981",
"0.5617981",
"0.5617981",
"0.5617981",
"0.5617981",
"0.5616156",
"0.5615991",
"0.5614582",
"0.5611984",
"0.56078017",
"0.5607776",
"0.5599444",
"0.5599444",
"0.5599444",
"0.5599444",
"0.5599444",
"0.5599444",
"0.5599444",
"0.5599444",
"0.5599444",
"0.5599444"
]
| 0.0 | -1 |
display simple message for user | private void infoMessage(String message) {
JOptionPane.showMessageDialog(this, message,
"VSEGraf - user management", JOptionPane.INFORMATION_MESSAGE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void displayMessage(){\n //getCouseName obtém o nome do curso\n System.out.printf(\"Welcome to the grade book for \\n%s!\\n\\n\", getCouseName());\n }",
"public void DisplayMessage(String massage);",
"public void showMessage(String message);",
"private void displayMessage(String message) {\n }",
"public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\"?\":messageTxt));\r\n\t}",
"void displayMessage(String message);",
"public static void displayMsg() {\n\t}",
"public void showMessage(String message) \r\n\t\t{\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void showMessage(String message) {\n\t\t\t\r\n\t\t}",
"public void displayMessage()\n\t{\n\t\t// this statement calls getCourseName to get the\n\t\t// name of the course this GradeBook represents\n\t\tSystem.out.printf( \"Welcome to the grade book for\\n%s!\\n\", getCourseName() );\n\t}",
"public static void message() {\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, \"Thanks for your participation\" + \"\\nHave a great day!\");\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void display(Object message) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void display(Object message) {\n\t\t\r\n\t}",
"@Override\n\tpublic void showMessage(String message) {\n\n\t}",
"public void displayMessage(){//displayMessage body start\n\t\tSystem.out.printf(\"course name = %s\\n\", getCourseName());\n\t}",
"private void showMessage(String string) {\n\n }",
"protected void displayMessage() {\n \n System.out.print (\"Message:\\n\");\n userMessage = message.toString();\n\n for(int i = 0; i < userMessage.length(); i++) \n System.out.format (\"%3d\", i);\n System.out.format (\"\\n\");\n for (char c : userMessage.toCharArray()) \n System.out.format(\"%3c\",c);\n System.out.format (\"\\n\");\n }",
"@Override\n\t\tpublic void displayMessage() {\n\t\t\tsuper.displayMessage();\n\t\t}",
"static void giveInfo(String message){\n JOptionPane.showMessageDialog(null, message);\n }",
"private static void displayMessage(String message) {\n\t\toutput.append(message);\n\t}",
"public static void displayMessage(String message){\n JOptionPane.showInputDialog(message);\n }",
"public void getMessage() {\r\n // use JOptionPane to have a pop up box informing user of the invalid token\r\n JOptionPane.showMessageDialog(null, \"Invalid Token \" + invalidToken);\r\n }",
"public void welcomeMsg(){\r\n\t\tdisplay(\"***************************\");\r\n\t\tdisplay(\"Hi you and welcome on STYF!\");\r\n\t\tdisplay(\"Are you already registred(Y/N)?\");\r\n\t}",
"private void displayMessage(String info) {\n \tif (message == null) {\n \t\tsetupMessage();\n \t}\n \tmessage.setLabel(info);\n\t\tadd(message, 6, 15);\n }",
"public void displayMessage(String m){\n\t\tJOptionPane.showMessageDialog(null, m, \"Perfect !\", JOptionPane.INFORMATION_MESSAGE);\n\t}",
"private void display(String msg) {\n cg.append(msg + \"\\n\");\n }",
"public displayMessage() {}",
"public void displayMessage()\n {\n // getCourseName gets the name of the course\n System.out.printf( \"Welcome to the grade book for\\n%s!\\n\\n\",\n getCourseName() );\n }",
"public void messageToUser() {\n // show a message dialog - the message is an error message.\n JOptionPane.showMessageDialog(new JFrame(),\n \"You are missing some parameters in the level definitions, Please check it\", \"Error!\",\n JOptionPane.ERROR_MESSAGE);\n // exit the program\n System.exit(0);\n }",
"void showSuccess(String message);",
"void displayErrorMessage(String message);",
"public void showErrorMessage(String message){\n System.out.println(LocalTime.now() + \": Error: \" + message);\n }",
"public void displayMessage(String message) {\r\n TextView messageView = (TextView) findViewById(R.id.message);\r\n messageView.setText(String.valueOf(message));\r\n }",
"void msgDisplay(String s);",
"public void displayMessage(String message) {\n gameWindowController.showMessage(message);\n }",
"public void displayWelcomeMsg();",
"void showError(String message);",
"void showError(String message);",
"public void message() {\n JOptionPane.showMessageDialog(null,\n \"Task was deleted successfully.\",\n \"Message\", JOptionPane.INFORMATION_MESSAGE);\n }",
"private void displayMessage(String message) {\n Log.d(\"Method\", \"displayMessage()\");\n Toast.makeText(getApplicationContext(), message, Toast.LENGTH_SHORT).show();\n }",
"private void displayMessage(String text) {\n toggleProgress();\n userMessage.setVisibility(View.VISIBLE);\n userMessage.setText(text);\n }",
"public void displayMessage(String message) {\n Toast.makeText(_context, message, Toast.LENGTH_SHORT).show();\n }",
"private void showMessageOnScreen(String message) {\n JOptionPane.showMessageDialog(this, message);\n }",
"public void displayMessage(String message){\n //Display a toast with the message we recieved\n displayMessage(message,Toast.LENGTH_LONG);\n }",
"public static void msgBox(String message){\n JOptionPane.showMessageDialog (null, message);\n }",
"void displayMessage(){\r\n Toast toast = Toast.makeText(this, getString(R.string.congratz_message, String.valueOf(playerScore)), Toast.LENGTH_SHORT);\r\n toast.show();\r\n }",
"public void printToUser(String message){\n System.out.println(message);\n }",
"public void displayMessage(String message){\n\n\t\tElement mes = nifty.getScreen(\"hud\").findElementByName(\"MessagePanel\");\n\t\tmes.getRenderer(TextRenderer.class).setText(message);\n\t\tmes.startEffect(EffectEventId.onCustom);\n\t}",
"public static void showMessage(String message) {\n JOptionPane.showMessageDialog(null, message);\n }",
"public void showMsg(String str);",
"private synchronized void display(String msg) {\n\n\t\t//guiConversation.append(msg);\n\t\tSystem.out.println(msg);\n\t}",
"public void simpleMessage(String name) {\r\n\t\tSystem.out.println(\"\");\r\n\t\t// Tells system to print out 'Hello' (name var value) '!' Ex: Hello Owen!\r\n\t\tSystem.out.println(\"Hello \" + name + \"!\");\r\n\t}",
"private void displayMessage(String message) {\n TextView priceTextView = (TextView) findViewById(R.id.price_tv);\n priceTextView.setText(message);\n }",
"public void showUserTurnMessage() {\n\t\tSystem.out.println(\" \");\n\t\tSystem.out.println(\"dein Zug... (9 drücken um zu speichern)\");\n\t\tSystem.out.println(\"\");\n\t}",
"public void ShowMessage() {\n\t\tthis.ShowMessage(null);\n\t\t\n\t\t/* Exit function. */\n\t\treturn;\n\t}",
"protected void displayMessage(String message) throws IOException {\n FXMLLoader fxmlLoader =\n new FXMLLoader(getClass().getResource(DISPLAY));\n Parent root = fxmlLoader.load();\n\n DisplayController displayController = fxmlLoader.getController();\n System.out.println(\"Messages: \");\n System.out.println(message + \"\\n\");\n displayController.setText(message);\n\n Stage stage = new Stage();\n stage.setScene(new Scene(root));\n stage.showAndWait();\n }",
"void showMessage(@NonNull BaseMessage message);",
"private void display(String msg) {\n\t\tif(cg == null)\n\t\t\tSystem.out.println(msg); // println for Console mode\n\t\telse\n\t\t\tcg.append(msg + \"\\n\"); // Append to, for example, JTextArea in the ClientGUI\n\t}",
"static void displayMessage() {\n\n System.out.println(\"\\nA total of \" + graphVisited.size() + \" vertices visited\");\n\n System.out.println(\"Found \" + silhouetteAnalyzer(numberOfVertices)\n + \" silhouettes\");\n }",
"@Override\n\tpublic void showError(String message) {\n\t\t\n\t}",
"public void displayLabel(String message)\n\t{\n\t\tGameplayPanel gameplayPanel = (GameplayPanel) container.getComponent(3);\n\t\tgameplayPanel.setMessage(message);\n\t}",
"@Override\r\n\tpublic void display(Object message) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tObject[] obj = (Object[])message;\r\n\t\tswitch((String)obj[0]) {\r\n\t\tcase \"ExamLocked\":\r\n\t\t\tsubmitbtn.setDisable(true);\r\n\t\t\tbackbtn.setDisable(false);\r\n\t\t\tbreak;\r\n\t\tcase \"NewDuration\":\r\n\t\t\tTime t=Time.valueOf((String)obj[1]);\r\n\t\t\tsecond+=t.getHours()*3600+t.getMinutes()*60+t.getSeconds();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public synchronized void displayMessage(String msg) {\n\t\tthis.commonTxtView.setText(msg);\n\n\t}",
"public void displayErrorMessage(String errorMess)\n {\n JOptionPane.showMessageDialog(this,errorMess);\n }",
"private void displayMessage(String message) {\n TextView orderSummaryTextView = findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }",
"public void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.result_text_view);\n orderSummaryTextView.setText(message);\n }",
"private void display(String msg) {\n String time = simpleDateFormat.format(new Date()) + \" | \" + msg;\n System.out.println(time);\n }",
"@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }",
"private void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }",
"private void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }",
"private void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }",
"public void displayMessage(String text)\r\n {\r\n Message message = new Message();\r\n message.what = GUIManager.DISPLAY_INFO_TOAST;\r\n message.obj = text;\r\n mGUIManager.sendThreadSafeGUIMessage(message);\r\n }",
"private void displayMessage(String message) {\n TextView SummaryTextView = (TextView) findViewById(R.id.ordersummary_text_view);\n SummaryTextView.setText(message);\n }",
"private void display(String msg) {\n\t\tString msgF = \"\\tClient- \" + msg + \"\\n\\n >> \";\n System.out.print(msgF);\n }",
"public void showMessage(String message) {\n\t\tMessagebox.show(message);\n\t}",
"public void displayInfo(String message){\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setContentText(message);\n //alert.initOwner(owner);\n alert.show();\n }",
"void showAlert(String message);",
"private void showPlainMessage(String msg){\n\t\tJOptionPane.showMessageDialog(frame,\n\t\t\t wrapHTML(msg),\n\t\t\t translations.getInfo(),\n\t\t\t JOptionPane.PLAIN_MESSAGE);\n\t}",
"public void displayMessage(String message){\n gameState = GameState.MESSAGE;\n currentMessage = message;\n notifyObservers();\n currentMessage = \"\";\n }",
"void message(){\n\t\tSystem.out.println(\"Hello dude as e dey go \\\\ we go see for that side\");\n\t\tSystem.out.print (\" \\\"So it is what it is\\\" \");\n\n\t}",
"@HippyMethod(name = \"show\")\n\tpublic void show(String message)\n\t{\n\t\tLogUtils.d(CLASSNAME, message);\n\t\t// Toast.makeText(hippyRootView.getContext(), message, Toast.LENGTH_SHORT).show();\n\t}",
"public boolean displayPrompt(String msg);",
"private void showInfo(String message)\r\n {\r\n infoLabel.setText(message);\r\n }",
"public void showMessage(){\r\n if(message == null) return;\r\n JOptionPane.showMessageDialog(new JFrame(), message);\r\n }",
"private void printUserMessage(String message) {\n dialogBoxContainer.getChildren().add(DialogBox.getUserDialog(message).getRoot());\n }",
"@FXML\r\n public void displayMessage(String message) {\r\n \r\n Alert displayMessage = new Alert(Alert.AlertType.INFORMATION);\r\n displayMessage.setTitle(null);\r\n displayMessage.setHeaderText(null);\r\n displayMessage.setContentText(message);\r\n displayMessage.showAndWait();\r\n \r\n }",
"public static void displayWelcomeMessage() {\n\t\tSystem.out.println(\"Welcome to my program! :D\");\n\t\tSystem.out.println(\" Ryan Shupe \");\n\t\tSystem.out.println(\" CSCI 1250-004 Project 3 \");\n\t}",
"@Override\n public void displayMessage(String message) {\n Toast.makeText(getActivity(),message,Toast.LENGTH_SHORT).show();\n }",
"public static void displayMsg() {\n\t\tSystem.out.println(\"Welcome Visit Count \"+count++);\n\t}",
"private void messageToUser(CharSequence text)\n {\n Context context = getApplicationContext();\n int duration = Toast.LENGTH_SHORT;\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }",
"private void alert(String msg) {\r\n\t\tSystem.out.print(msg);\r\n\t }",
"public void showMessage(String msg) {\n\t\tif (message == null)\n\t\t\tcreateMessage(msg);\n\t\tremove(message);\n\t\tcreateMessage(msg);\n\t}",
"public abstract void displayMsgBeforeRun();",
"int displayNotification(Message message);",
"private void displayMessage(String message) {\n TextView seeBoxReadMore = (TextView) findViewById(R.id.read_more1);\n seeBoxReadMore.setTextColor(Color.BLACK);\n seeBoxReadMore.setText(message);\n seeBoxReadMore.setGravity(Gravity.CENTER);\n }",
"@Override\r\n\tpublic void getMessage() {\n\t\tSystem.out.println(\"getMessage() 출력...\");\r\n\t}",
"private void showToastRequired(String message) {\n Toast.makeText(this, getString(R.string.validation_required, message),\n Toast.LENGTH_SHORT).show();\n }",
"public void getMessage() {\n\r\n\t}",
"String getMessage();",
"String getMessage();"
]
| [
"0.7851621",
"0.7693396",
"0.7673246",
"0.7661881",
"0.761471",
"0.76009953",
"0.75903666",
"0.7570319",
"0.755263",
"0.74898744",
"0.7451663",
"0.74154997",
"0.74154997",
"0.74051577",
"0.73620504",
"0.729291",
"0.72814757",
"0.7274345",
"0.7203081",
"0.7202058",
"0.71089435",
"0.71076226",
"0.7106862",
"0.7094704",
"0.7070215",
"0.7046513",
"0.70441717",
"0.7034434",
"0.7024939",
"0.7006222",
"0.6977096",
"0.6976848",
"0.6956627",
"0.6947817",
"0.69281757",
"0.6923881",
"0.68957496",
"0.68957496",
"0.68933016",
"0.68565166",
"0.68517333",
"0.6851095",
"0.68479675",
"0.68257743",
"0.68164015",
"0.680296",
"0.67973846",
"0.6789157",
"0.67855424",
"0.6779042",
"0.6768161",
"0.67633665",
"0.67514277",
"0.6745509",
"0.67424566",
"0.6710934",
"0.67080504",
"0.6701188",
"0.6684144",
"0.6682884",
"0.66796845",
"0.66773856",
"0.6674708",
"0.6672417",
"0.6670437",
"0.66702944",
"0.66627514",
"0.6646972",
"0.6640696",
"0.6640696",
"0.6640696",
"0.6630979",
"0.66271794",
"0.6626972",
"0.6622714",
"0.6611086",
"0.66105264",
"0.661011",
"0.660739",
"0.65947276",
"0.6591414",
"0.6588765",
"0.65883625",
"0.6586754",
"0.65832216",
"0.6582642",
"0.65817815",
"0.65747404",
"0.65729594",
"0.6560297",
"0.65548146",
"0.65497637",
"0.6545606",
"0.65361047",
"0.6529598",
"0.6508587",
"0.65062976",
"0.6505618",
"0.65042037",
"0.65042037"
]
| 0.6977383 | 30 |
Retries if not passed limit. Returns true if there retrying or there is another future sync scheduled already | boolean doRetry() {
synchronized (mHandler) {
boolean doRetry = currentRetry < MAX_RETRIES;
boolean futureSync = mHandler.hasMessages(0);
if (doRetry && !futureSync) {
currentRetry++;
mHandler.postDelayed(getNewRunnable(), currentRetry * 15_000);
}
return mHandler.hasMessages(0);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean retry() {\n return tries++ < MAX_TRY;\n }",
"public boolean retry(ITestResult result) {\n\t\tif (counter < retryMaxLimit) {\n\t\t\tcounter++;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"boolean allowRetry(int retry, long startTimeOfExecution);",
"boolean hasMaximumBackoff();",
"public boolean isRetry();",
"private boolean checkRetryPolicy4Next() {\n\t\ttry {\n\t\t\tRetryPolicy policy = BackupService.getInstance().getRetryPolicy(CommonService.RETRY_BACKUP);\n\t\t\tNextScheduleEvent nextScheduleEvent = BackupService.getInstance().getNextScheduleEvent();\n\t\t\tif (nextScheduleEvent != null) {\n\t\t\t\tDate nextDate = nextScheduleEvent.getDate();\n\t\t\t\tjava.util.Calendar incomingBackup = getUTCNow();\n\t\t\t\tincomingBackup.setTimeInMillis(nextDate.getTime());\n\n\t\t\t\tjava.util.Calendar now = getUTCNow();\n\t\t\t\tnow.add(java.util.Calendar.MINUTE, policy.getNearToNextEvent());\n\n\t\t\t\tif (now.after(incomingBackup)) {\n\t\t\t\t\tlogger.debug(\"dealWithMissedBackup() - end with too near to next event\");\n\t\t\t\t\tString time = BackupConverterUtil.dateToString(nextDate);\n\t\t\t\t\tBackupService\n\t\t\t\t\t\t\t.getInstance()\n\t\t\t\t\t\t\t.getNativeFacade()\n\t\t\t\t\t\t\t.addLogActivity(\n\t\t\t\t\t\t\t\t\tConstants.AFRES_AFALOG_WARNING,\n\t\t\t\t\t\t\t\t\tConstants.AFRES_AFJWBS_JOB_RETRY,\n\t\t\t\t\t\t\t\t\tnew String[] {\n\t\t\t\t\t\t\t\t\t\t\tWebServiceMessages.getResource(Constants.RETRYPOLICY_FOR_MISSED_SKIPPED_NEXT, time,\n\t\t\t\t\t\t\t\t\t\t\t\t\tWebServiceMessages.getResource(Constants.RETRYPOLICY_FOR_MISSED)), \"\", \"\", \"\", \"\" });\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (ServiceException e) {\n\t\t\tlogger.error(\"dealWithMissedBackup() - end\", e);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean isRetry() { return true; }",
"public boolean shouldRetryOnTimeout() {\r\n return configuration.shouldRetryOnTimeout();\r\n }",
"public boolean needTryAgain() {\n boolean z = this.mRetryConnectCallAppAbilityCount < 6;\n this.mRetryConnectCallAppAbilityCount++;\n return z;\n }",
"@Override\n\t\tpublic boolean isRetry() { return false; }",
"public boolean isAllowPartialRetryRequests() {\n\t\treturn false;\n\t}",
"protected short maxRetries() { return 15; }",
"boolean hasMinimumBackoff();",
"private boolean mustTryConnection(int iteration) {\n\t\t\n\t\t//the goal is to not to retry so often when several attempts have been made\n\t\t//the first 3 attemps, will not retry (give time for the system to startup)\n\t\tif (iteration < ITERATIONS_WITHOUT_RETRIES) {\n\t\t\t//here it will enter with iteration 0..2\n\t\t\treturn false;\n\t\t}\n\t\tif (iteration < ITERATIONS_WITH_NORMAL_RATE) {\n\t\t\t//Here it will enter with iteration 3..40\n //Retry every 2 attempts.\n\t\t\t//in iteration 6, 8, 10, 12, 14\n\t\t\treturn iteration % STEPS_AT_NORMAL_RATE == 0;\n\t\t}\n\t\t//between 15 and 40 attempts, only retry every 10 steps\n\t\tif (iteration < ITERATIONS_WITH_MEDIUM_RATE) {\n\t\t\t//here it will enter with iteration 10, 20, 30\n\t\t\treturn iteration % STEPS_AT_MEDIUM_RATE == 0;\n\t\t}\n\t\t\n\t\t//after 40 attempts, retry every 100 * MIN_INTERVAL\n\t\treturn iteration % STEPS_AT_SLOW_RATE == 0;\n\t}",
"private boolean shouldRetryGetMaster(int tries, Exception e) {\n if (tries == numRetries - 1) {\n // This was our last chance - don't bother sleeping\n LOG.info(\"getMaster attempt \" + tries + \" of \" + numRetries +\n \" failed; no more retrying.\", e);\n return false;\n }\n LOG.info(\"getMaster attempt \" + tries + \" of \" + numRetries +\n \" failed; retrying after sleep of \" +\n ConnectionUtils.getPauseTime(this.pause, tries), e);\n return true;\n }",
"private void checkRetries(final int counter) throws InterruptedException {\n\t\tif (counter > retries) {\n\t\t\tthrow new IllegalStateException(\"Remote server did not started correctly\");\n\t\t}\n\t\tThread.sleep(2000);\n\t}",
"public boolean willRetry() {\n return willRetry;\n }",
"public boolean requiresImmediateRetry() {\n return currentItemState == ItemProcessingState.IMMEDIATE_RETRY;\n }",
"private boolean requestLimitReached() {\n\t\treturn (requestCount >= maximumRequests);\n\t}",
"private boolean allWorkComplete(int attempt) {\n boolean workComplete = (sm == null || syncManager.getFilesInTransfer().isEmpty()) &&\n list.getListSizeIncludingReservedFiles() <= 0;\n\n if (!workComplete || (workComplete && attempt > 2)) {\n return workComplete;\n } else {\n // Wait before another attempt\n SyncProcessManagerImpl.this.sleep(2000);\n return allWorkComplete(attempt + 1);\n }\n }",
"public abstract long retryAfter();",
"public boolean shouldContinueExecuting()\n {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }",
"@Override\n protected boolean check(User user, UUID uuid, String service, String key) {\n if (this.timeOuts.containsKey(uuid) && this.timeOuts.get(uuid) + 1000 * 2 >= System\n .currentTimeMillis()) {\n user.sendMessage(Translation.RANKSYNC_COMMAND_REQUEST_LIMIT.getTranslation());\n return false;\n } else {\n this.timeOuts.put(uuid, System.currentTimeMillis());\n return true;\n }\n }",
"protected int retryLimit() {\n return DEFAULT_RETRIES;\n }",
"public boolean shouldContinueExecuting() {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }",
"boolean doWarmUp() {\n Future future = null;\n try {\n future = threadPoolExecutor.submit(updateTask);\n future.get(warmUpTimeoutMs, TimeUnit.MILLISECONDS); // block until done or timeout\n return true;\n } catch (Exception e) {\n logger.warn(\"Best effort warm up failed\", e);\n } finally {\n if (future != null) {\n future.cancel(true);\n }\n }\n return false;\n }",
"public abstract boolean isNextBlocked();",
"private void waitToRetry()\n {\n final int sleepTime = 2000000;\n\n if (keepTrying)\n {\n try\n {\n Thread.sleep(sleepTime);\n }\n catch (Exception error)\n {\n log.error(\"Ignored exception from sleep - probably ok\", error);\n }\n }\n }",
"@Override\n\tpublic boolean retry(ITestResult result) \n\t{\n\t\treturn false;\n\t}",
"public int retry() {\r\n\t\treturn ++retryCount;\r\n\t}",
"public boolean canRunMoreExecutions(JobValidationReference job, boolean retry, long prevId);",
"private boolean isExhausted() {\n return runnableTasks.isEmpty()\n && runnableActions.isEmpty() && runningTasks == 0;\n }",
"public boolean isRetried ()\r\n {\r\n return hasFailed () && retried_;\r\n }",
"public void retryRequired(){\n startFetching(query);\n }",
"public boolean retry(ITestResult result) {\n //You could mentioned maxRetryCnt (Maximiun Retry Count) as per your requirement. Here I took 2, If any failed testcases then it runs two times\n int maxRetryCnt = 1;\n if (retryCnt < maxRetryCnt) {\n System.out.println(\"Retrying \" + result.getName() + \" again and the count is \" + (retryCnt+1));\n retryCnt++;\n return true;\n }\n return false;\n }",
"public boolean needsResend(){\n return this.getNumNetworkCopies()-this.replicationDegree<0;\n }",
"public static void repeatSome() {\n ComposableFutures.repeat(5, \"initial value\", ComposableFuturesHelpers::someIo);\n\n // .retry(times, [optional timeout], action) will retry your async operation N times, and will\n // stop on first successful returned value\n ComposableFutures.retry(5, ComposableFuturesHelpers::randomIo);\n }",
"@Override\n protected RetryConstraint shouldReRunOnThrowable(@NonNull Throwable throwable, int runCount, int maxRunCount) {\n return RetryConstraint.CANCEL;\n }",
"private boolean queueFirstServerIfDown(List<URI> allServers) {\n if (allServers.size() < 2) {\n return false;\n }\n URI uri = allServers.get(0);\n HttpGet httpGet = new HttpGet(uri);\n\n RequestConfig config = RequestConfig.custom()\n .setConnectTimeout((int) PING_REQUEST_TIMEOUT.toMillis())\n .setConnectionRequestTimeout((int) PING_REQUEST_TIMEOUT.toMillis())\n .setSocketTimeout((int) PING_REQUEST_TIMEOUT.toMillis()).build();\n httpGet.setConfig(config);\n\n try (CloseableHttpResponse response = client.execute(httpGet)) {\n if (response.getStatusLine().getStatusCode() == 200) {\n return false;\n }\n\n } catch (IOException e) {\n // We ignore this, if server is restarting this might happen.\n }\n // Some error happened, move this server to the back. The other servers should be running.\n Collections.rotate(allServers, -1);\n return true;\n }",
"public boolean checkForJumping(int roundsInFuture) {\n return (round + roundsInFuture) % Config.ROUNDS_PER_JUMP == 0;\n }",
"boolean requiresRestart(Operation nextBestOp) {\n\t\t\treturn nextBestOp.val == Integer.MAX_VALUE;\n\n\t\t}",
"public boolean attemptToRegisterWithServer(int maxNumberOfAttempts);",
"@Override\npublic boolean retry(ITestResult result) {\n\tif(minretryCount<=maxretryCount){\n\t\t\n\t\tSystem.out.println(\"Following test is failing====\"+result.getName());\n\t\t\n\t\tSystem.out.println(\"Retrying the test Count is=== \"+ (minretryCount+1));\n\t\t\n\t\t//increment counter each time by 1 \n\t\tminretryCount++;\n\n\t\treturn true;\n\t}\n\treturn false;\n}",
"private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_MaxTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.MAX_EXECUTION_TIME_MS - contributionMs;\n\n // Session straddles edge of 24 hour window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 20 * HOUR_IN_MILLIS, remainingTimeMs, 300), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - 20 * HOUR_IN_MILLIS\n + 24 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }",
"Boolean getIsReentrant();",
"void retry(Task task);",
"public boolean isCoreRateLimitExceeded() {\n\t\tfinal String METHOD_NAME = \"isCoreRateLimitExceeded\";\n\t\tLOGGER.entering(CLASS_NAME, METHOD_NAME);\n\t\tif (coreRateLimit == 0) {\n\t\t\trefreshRateLimit();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\tif (coreRateLimit == 0) {\n\t\t\tthrow new RateLimitExceededException(\"Core Rate Limit exceeded\");\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"protected abstract boolean sendNextRequests();",
"public void manualConnectionRetry()\r\n {\r\n if ( statusObj.value != STATUS_CANDIDATE_BUSY &&\r\n statusObj.value != STATUS_CANDIDATE_CONNECTION_FAILED &&\r\n statusObj.value != STATUS_CANDIDATE_RANGE_UNAVAILABLE &&\r\n statusObj.value != STATUS_CANDIDATE_BAD &&\r\n statusObj.value != STATUS_CANDIDATE_IGNORED )\r\n {\r\n return;\r\n }\r\n setStatus( STATUS_CANDIDATE_WAITING );\r\n SwarmingManager.getInstance().notifyWaitingWorkers();\r\n }",
"@Test\n public void testDelay() {\n long future = System.currentTimeMillis() + (rc.getRetryDelay() * 1000L);\n\n rc.delay();\n\n assertTrue(System.currentTimeMillis() >= future);\n }",
"int getSleepBeforeRetry();",
"static public int getMaxAsyncPollingRetries() {\n return maxAsyncPollingRetries;\n }",
"boolean isLimited();",
"private void maybeScheduleSlice() {\n if (nextSliceRunTime > 0) {\n timer.schedule();\n nextSliceRunTime = 0;\n }\n }",
"protected boolean tryToAcquireDeliberationLock(long maxDelay){\n synchronized(deliberationMutex){\n if(deliberationInProgress){\n try {\n deliberationMutex.wait(maxDelay);\n } catch (InterruptedException ex) {\n //We don't care\n }\n }\n \n if(!deliberationInProgress){\n deliberationInProgress = true;\n return true;\n } else {\n return false;\n }\n }\n }",
"@Override\n\tpublic boolean retry(ITestResult result) {\n\n if (!result.isSuccess()) { //Check if test not succeed\n if (count < maxTry) { //Check if maxtry count is reached\n count++; //Increase the maxTry count by 1\n System.out.println(\"is this working?\"); \n result.setStatus(ITestResult.FAILURE); //Mark test as failed\n return true; //Tells TestNG to re-run the test\n } else {\n result.setStatus(ITestResult.FAILURE); //If maxCount reached,test marked as failed\n }\n }\n else {\n result.setStatus(ITestResult.SUCCESS); //If test passes, TestNG marks it as passed\n }\n return false;\n\t}",
"private boolean canWork() throws InterruptedException{\n for(int i = 0; i <4; i++){\n if(!myPlayer().isAnimating() && !myPlayer().isMoving()){\n return true;\n }\n sleep(random(200, 350));\n }\n return false;\n }",
"static public int getMaxMigrationAsyncPollingRetries() {\n return maxMigrationAsyncPollingRetries;\n }",
"protected abstract boolean reachedContractLimit(int size);",
"private boolean scheduleNext() {\n final String tag = \"Scheduled session[\"+taskid+\"]\";\n\n // We need now to reschedule a new task for after 'delayBeforeNext' ms.\n try {\n LOG.finer(tag+\": scheduling next session for \"+ delayBeforeNext + \"ms\");\n if (cancelled || !notifyStateChange(SCHEDULED,\"scan-scheduled\")) {\n LOG.finer(tag+\" stopped: do not reschedule\");\n return false;\n }\n final SessionTask nextTask = new SessionTask(delayBeforeNext);\n if (!scheduleSession(nextTask,delayBeforeNext)) return false;\n LOG.finer(tag+\": next session successfully scheduled\");\n } catch (Exception x) {\n if (LOG.isLoggable(Level.FINEST)) {\n LOG.log(Level.FINEST,tag+\n \" failed to schedule next session: \"+x,x);\n } else if (LOG.isLoggable(Level.FINE)) {\n LOG.fine(tag+\" failed to schedule next session: \"+x);\n }\n }\n return true;\n }",
"private boolean shouldApply() {\n return nextRandomInt() >= unappliedJobCutoff;\n }",
"public long runScheduledPendingTasks() {\n/* */ try {\n/* 597 */ return this.loop.runScheduledTasks();\n/* 598 */ } catch (Exception e) {\n/* 599 */ recordException(e);\n/* 600 */ return this.loop.nextScheduledTask();\n/* */ } \n/* */ }",
"private void runTestMaybeScheduleStartAlarmLocked_SmallRollingQuota_AllowedTimeCheck() {\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n // Working set window size is 2 hours.\n final int standbyBucket = WORKING_INDEX;\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs =\n mQcConstants.ALLOWED_TIME_PER_PERIOD_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (2 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), false);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - HOUR_IN_MILLIS, remainingTimeMs, 2), false);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 2 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime = now - HOUR_IN_MILLIS + 2 * HOUR_IN_MILLIS\n + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, standbyBucket);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }",
"private boolean doRetries(int start,\n int end,\n ReplicatedEnvironment env, \n EntityIndex<Integer, RepTestData> index) {\n boolean success = false;\n boolean noData = false;\n int maxTries = 100;\n\n for (int tries = 0; !success && tries < maxTries; tries++) {\n try {\n Transaction txn = env.beginTransaction(null, null);\n int realStart = 0;\n EntityCursor<RepTestData> cursor = null;\n try {\n cursor = index.entities(txn, null);\n realStart = cursor.first(null).getKey();\n cursor.close();\n cursor = \n index.entities(txn, start, true, end, true, null);\n noData = addRecordsToList(cursor);\n success = true;\n } finally {\n if (cursor != null) {\n cursor.close();\n }\n\n if (success) {\n if (noData) {\n checkNoDataCorrectness(start, realStart, tries);\n } else {\n checkCorrectness(tries);\n }\n txn.commit();\n } else {\n txn.abort();\n }\n list.clear();\n }\n } catch (LockConflictException e) {\n success = false;\n }\n }\n\n return noData;\n }",
"@Test\n public void testCanRetry() {\n assertEquals(0, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(1, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(2, rc.getAttempts());\n assertTrue(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n assertFalse(rc.attempt());\n assertEquals(3, rc.getAttempts());\n }",
"boolean isDelayed();",
"@Override\r\n\t\tpublic Boolean call() throws Exception {\n\t\t\tint count = 10;\r\n\t\t\tint deadlockCount = 0;\r\n\t\t\twhile (count > 0) {\r\n\t\t\t\tassertTrue(\"Too many deadlock exceptions\", deadlockCount < 10);\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Replace the annotations\r\n\t\t\t\t\tdboAnnotationsDao.replaceAnnotations(annos);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t// Deadlock is the only acceptable exception here, just retry\r\n\t\t\t\t\tif (e.getMessage().indexOf(\"Deadlock found when trying to get lock\") > -1) {\r\n\t\t\t\t\t\tdeadlockCount++;\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthrow e;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcount--;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}",
"private void initialBlockOnMoarRunners() throws InterruptedException\n {\n lock.lock();\n try\n {\n if (taskQueue.isEmpty() && runners > 1)\n {\n runners--;\n needMoreRunner.await();\n runners++;\n }\n }\n finally\n {\n lock.unlock();\n }\n }",
"boolean updateTicksTillForget(long ticks) {\n\t\tticksTillForget -= ticks;\n\t\treturn (ticksTillForget < 1);\n\t}",
"private boolean timeout() {\n long time = SystemClock.currentThreadTimeMillis();\n while (bluetoothSync.getState() != BluetoothSync.STATE_CONNECTED) {\n if (SystemClock.currentThreadTimeMillis() > time + Constants.Bluetooth.CONNECTION_TIMEOUT) {\n return false;\n }\n }\n return true;\n }",
"void doRetry();",
"@Test\n public void writeTryLockFailedTest() throws InterruptedException {\n final TestUse testUse = new TestUse();\n int threadNum = 2;\n final CountDownLatch countDownLatch = new CountDownLatch(threadNum);\n for (int i = 0; i < threadNum; i++) {\n new Thread(new Runnable() {\n @Override\n public void run() {\n testUse.minusCountAndSleepInWriteTryLock(2000);\n countDownLatch.countDown();\n }\n }).start();\n }\n countDownLatch.await();\n boolean result = false;\n if (testUse.count == 1000 || testUse.count == 999) {\n result = true;\n }\n Assert.assertTrue(result);\n }",
"@Override\n protected boolean isResponseStatusToRetry(Response response)\n {\n return response.getStatus() / 4 != 100;\n }",
"default boolean pollOnExecutionFailed() {\n return false;\n }",
"@Override\n\tboolean allow() {\n\t\tlong curTime = System.currentTimeMillis()/1000 * 1000;\n\t\tlong boundary = curTime - 1000;\n\t\tsynchronized (log) {\n\t\t\t//1. Remove old ones before the lower boundary\n\t\t\twhile (!log.isEmpty() && log.element() <= boundary) {\n\t\t\t\tlog.poll();\n\t\t\t}\n\t\t\t//2. Add / log the new time\n\t\t\tlog.add(curTime);\n\t\t\tboolean allow = log.size() <= maxReqPerUnitTime;\n\t\t\tSystem.out.println(curTime + \", log size = \" + log.size()+\", allow=\"+allow);\n\t\t\treturn allow;\n\t\t}\n\t}",
"@Override\n public boolean isFinished() {\n return !(System.currentTimeMillis() - currentMs < timeMs) &&\n // Then check to see if the lift is in the correct position and for the minimum number of ticks\n Math.abs(Robot.lift.getPID().getSetpoint() - Robot.lift.getEncoderHeight()) < error\n && ++currentCycles >= minDoneCycles;\n }",
"public boolean failedTick() {\n switch (remainingTicks) {\n case 0:\n return false;\n case -1:\n tickable.tick();\n default:\n remainingTicks--;\n }\n return true;\n }",
"private boolean preVote() {\n try {\n if (timeout > 0 ) {\n bar.attemptBarrier(timeout);\n } else {\n bar.barrier();\n }\n } catch ( Exception e ) {\n _logger.log(Level.FINE, \"synchronization.prevote.failed\", e);\n return false;\n }\n return true;\n }",
"public boolean isRemotlyQueued()\r\n {\r\n return statusObj.value == STATUS_CANDIDATE_REMOTLY_QUEUED;\r\n }",
"@Override\n\t\tpublic boolean wasRetried()\n\t\t{\n\t\t\treturn false;\n\t\t}",
"boolean shouldRetry(Reply reply) {\n int numErrors = reply.getNumErrors();\n if (numErrors == 0) {\n return false;\n }\n for (int i = 0; i < numErrors; ++i) {\n if (!retryPolicy.canRetry(reply.getError(i).getCode())) {\n return false;\n }\n }\n synchronized (monitor) {\n return !destroyed;\n }\n }",
"@Test\n public void testDoNotRetryInFlightWork() throws Exception {\n CountDownLatch oneWorkerCreated = factory.getRunCountLatch(1);\n CountDownLatch twoWorkersCreated = factory.getRunCountLatch(2);\n LogFile logFile = tracker.open(\"foo\", \"/biz/baz/%s.log\", DateTime.now());\n manager.start(); //start manager first so it can register to receive notifications\n tracker.written(logFile);\n awaitLatch(oneWorkerCreated); //wait initial worker\n //sigh. This is a slow test because we have to wait for the retry job to get not get scheduled.\n if (twoWorkersCreated.await(2 * RETRY_INTERVAL_SECONDS, TimeUnit.SECONDS)) {\n fail(\"Retry was scheduled for in-flight task!\");\n }\n }",
"static public void setMaxAsyncPollingRetries(int maxRetries) {\n maxAsyncPollingRetries = maxRetries;\n }",
"public boolean conflict(double thr) {\n return conflict() && (time_out - time_in > thr);\n }",
"@Override\n public boolean isFinished() {\n return Robot.auton && counter > 50;\n }",
"Boolean autoSync();",
"public boolean tryToLock() {\n // System.out.println(\"[MOSI] trylock \"+ this.hashCode() + \"(\"+l.getHoldCount()+\")\");\n try {\n return this.l.tryLock(1, TimeUnit.MILLISECONDS);\n } catch (InterruptedException ie) {\n return false;\n }\n }",
"public boolean hasRemaining() {\r\n\t\treturn cursor < limit - 1;\r\n\t}",
"public abstract boolean isRateLimit();",
"protected boolean isFinished() {\n return count > maxCount;\n }",
"public boolean isScheduled(){\n //System.out.println(\"nextrun: \" + nextrun.getTime() + \" nu: \" + System.currentTimeMillis());\n if (nextrun != null){\n long next = nextrun.getTime();\n \n return next < System.currentTimeMillis();\n }else{\n //null => instance has never run before & should run asap\n return true;\n }\n }",
"@Test\n\tpublic void addNormalConcurrentTP10_1000() throws Exception {\n\t\tExecutorService exec = Executors.newFixedThreadPool(10);\n\t\tfinal AtomicInteger count = new AtomicInteger(0);\n\t\t\n\t\tretryManager.registerCallback(new RetryCallback() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean onEvent(RetryHolder retry) throws Exception {\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}, TYPE);\n\t\t\n\t\tfor (int i=0;i<1000;i++) {\n\t\t\texec.submit(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tRetryHolder holder = new RetryHolder(\"id-local\"+ count.getAndIncrement(), TYPE,new Exception(),\"Object\");\n\t\t\t\t\t\n\t\t\t\t\tretryManager.addRetry(holder);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\texec.shutdown();\n\t\texec.awaitTermination(10, TimeUnit.SECONDS);\n\t\tint localQueueSize = retryManager.getLocalQueuer().size(TYPE);\n\t\tAssert.assertEquals(0,localQueueSize);\n\t\tAssert.assertEquals(1000, retryManager.getH1().getMap(TYPE).size() );\n\t\t\t\t\n\t\t//synchronous add, check immediately\t\t\n\t\tfor (int i=0;i<1000;i++ ) {\n\t\t\tAssert.assertNotNull(\n\t\t\t\t\tretryManager.getH1().getMap(TYPE).get(\"id-local\"+i)\n\t\t\t\t\t);\n\t\t\tretryManager.removeRetry(\"id-local\"+i, TYPE);\n\t\t}\n\t\t\n\t}",
"boolean hasSolverTimeLimitSeconds();",
"@Test\n public void testMaybeScheduleStartAlarmLocked_Ej_SmallRollingQuota() {\n // saveTimingSession calls maybeScheduleCleanupAlarmLocked which interferes with these tests\n // because it schedules an alarm too. Prevent it from doing so.\n spyOn(mQuotaController);\n doNothing().when(mQuotaController).maybeScheduleCleanupAlarmLocked();\n\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeStartTrackingJobLocked(\n createJobStatus(\"testMaybeScheduleStartAlarmLocked_Ej_SRQ\", 1), null);\n }\n\n final long now = JobSchedulerService.sElapsedRealtimeClock.millis();\n setStandbyBucket(WORKING_INDEX);\n final long contributionMs = mQcConstants.IN_QUOTA_BUFFER_MS / 2;\n final long remainingTimeMs = mQcConstants.EJ_LIMIT_WORKING_MS - contributionMs;\n\n // Session straddles edge of bucket window. Only the contribution should be counted towards\n // the quota.\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - (24 * HOUR_IN_MILLIS + 3 * MINUTE_IN_MILLIS),\n 3 * MINUTE_IN_MILLIS + contributionMs, 3), true);\n mQuotaController.saveTimingSession(SOURCE_USER_ID, SOURCE_PACKAGE,\n createTimingSession(now - 23 * HOUR_IN_MILLIS, remainingTimeMs, 2), true);\n // Expected alarm time should be when the app will have QUOTA_BUFFER_MS time of quota, which\n // is 24 hours + (QUOTA_BUFFER_MS - contributionMs) after the start of the second session.\n final long expectedAlarmTime =\n now + HOUR_IN_MILLIS + (mQcConstants.IN_QUOTA_BUFFER_MS - contributionMs);\n synchronized (mQuotaController.mLock) {\n mQuotaController.maybeScheduleStartAlarmLocked(\n SOURCE_USER_ID, SOURCE_PACKAGE, WORKING_INDEX);\n }\n verify(mAlarmManager, timeout(1000).times(1)).setWindow(\n anyInt(), eq(expectedAlarmTime), anyLong(), eq(TAG_QUOTA_CHECK), any(), any());\n }",
"@Test\n public void testQueueLimiting() throws Exception {\n // Block the underlying fake proxy from actually completing any calls.\n DelayAnswer delayer = new DelayAnswer(LOG);\n Mockito.doAnswer(delayer).when(mockProxy).journal(\n Mockito.<RequestInfo>any(),\n Mockito.eq(1L), Mockito.eq(1L),\n Mockito.eq(1), Mockito.same(FAKE_DATA));\n \n // Queue up the maximum number of calls.\n int numToQueue = LIMIT_QUEUE_SIZE_BYTES / FAKE_DATA.length;\n for (int i = 1; i <= numToQueue; i++) {\n ch.sendEdits(1L, (long)i, 1, FAKE_DATA);\n }\n \n // The accounting should show the correct total number queued.\n assertEquals(LIMIT_QUEUE_SIZE_BYTES, ch.getQueuedEditsSize());\n \n // Trying to queue any more should fail.\n try {\n ch.sendEdits(1L, numToQueue + 1, 1, FAKE_DATA).get(1, TimeUnit.SECONDS);\n fail(\"Did not fail to queue more calls after queue was full\");\n } catch (ExecutionException ee) {\n if (!(ee.getCause() instanceof LoggerTooFarBehindException)) {\n throw ee;\n }\n }\n \n delayer.proceed();\n\n // After we allow it to proceeed, it should chug through the original queue\n GenericTestUtils.waitFor(new Supplier<Boolean>() {\n @Override\n public Boolean get() {\n return ch.getQueuedEditsSize() == 0;\n }\n }, 10, 1000);\n }",
"public Duration scheduleWithDelay(Runnable connectTast) {\n Duration delaySinceLastSchedule = Duration.between(lastSchedule, Instant.now());\n if (retrySequence.getMaxDelay().multipliedBy(2).minus(delaySinceLastSchedule).isNegative()) {\n // yes\n lastDelay = Duration.ZERO;\n } else {\n // no\n lastDelay = retrySequence.nextDelay(lastDelay)\n .orElseThrow(() -> new RuntimeException(\"may retries reached\"));\n }\n \n lastSchedule = Instant.now();\n ScheduledExceutor.common().schedule(connectTast, lastDelay.toMillis(), TimeUnit.MILLISECONDS);\n \n return lastDelay;\n }",
"public boolean isAvailable(){\r\n return blockingQueue.size() < maxWorkQueueSize;\r\n }",
"private boolean executeUpdate(PreparedStatement stmt, int maxRetries, int retrySleepTime) {\n // Update can hit a lock so we'll try to execute it \"maxRetries\" times.\n int updResult = 0;\n for (int retryCnt = 0; retryCnt < maxRetries && updResult != 1; retryCnt++) {\n try {\n updResult = stmt.executeUpdate();\n } catch (SQLException sqle) {\n if (updResult != 1) {\n // hit an optimistic lock, go to sleep (\"retrySleepTime\" milliseconds)\n try {\n Thread.sleep(retrySleepTime);\n } catch (InterruptedException e) {\n }\n }\n }\n }\n return (updResult == 1);\n }",
"private static void checkTimeoutAndRetry() {\n while (true) {\n for (ServerAckWindow window : windowsMap.values()) {\n window.responseCollectorMap.entrySet().stream()\n .filter(entry -> window.timeout(entry.getValue()))\n .forEach(entry -> window.retry(entry.getKey(), entry.getValue()));\n }\n }\n }",
"private void resendWorkaround() {\r\n synchronized(waiters) {\r\n if(waiters.size() > 0 && lastResponseNumber == responseNumber && System.currentTimeMillis() - lastProcessedMillis > 450) {\r\n // Resend last request(s)\r\n for(Integer i : waiters.keySet()) {\r\n System.err.println(Thread.currentThread() + \": Resending: $\" + i + \"-\" + waiters.get(i));\r\n writer.println(\"$\" + i + \"-\" + waiters.get(i));\r\n writer.flush();\r\n lastProcessedMillis = System.currentTimeMillis();\r\n }\r\n }\r\n }\r\n }"
]
| [
"0.66635823",
"0.6420639",
"0.6414808",
"0.63200355",
"0.6285705",
"0.6265522",
"0.6140922",
"0.6097074",
"0.60169554",
"0.6008576",
"0.5964376",
"0.59440833",
"0.5931735",
"0.5868993",
"0.577995",
"0.5756315",
"0.574403",
"0.57284695",
"0.5696724",
"0.56202906",
"0.5610654",
"0.5595641",
"0.55855",
"0.55434996",
"0.55318516",
"0.5523037",
"0.54738694",
"0.54538393",
"0.54465646",
"0.54390603",
"0.54315656",
"0.5430773",
"0.5424776",
"0.5421466",
"0.53970295",
"0.53642434",
"0.5348214",
"0.533387",
"0.532778",
"0.53164864",
"0.5310567",
"0.5305988",
"0.52867174",
"0.5284432",
"0.5280839",
"0.52675945",
"0.5256304",
"0.52412283",
"0.52332914",
"0.52070445",
"0.52030635",
"0.52008086",
"0.5199311",
"0.51948",
"0.51830804",
"0.5176332",
"0.51680714",
"0.5162572",
"0.51592815",
"0.51502854",
"0.5149297",
"0.51476586",
"0.51464",
"0.51433647",
"0.51407975",
"0.5140066",
"0.5130745",
"0.5119431",
"0.51086235",
"0.5107371",
"0.5105852",
"0.5104901",
"0.507695",
"0.50715053",
"0.50707805",
"0.50681436",
"0.5063706",
"0.5058431",
"0.50364506",
"0.50327873",
"0.50321287",
"0.50184",
"0.5016249",
"0.50106776",
"0.5000821",
"0.49992338",
"0.49968004",
"0.49870497",
"0.4985996",
"0.49846822",
"0.49725348",
"0.4970138",
"0.49676672",
"0.49588925",
"0.49400383",
"0.49352106",
"0.49301058",
"0.49286404",
"0.49283314",
"0.49214226"
]
| 0.70730454 | 0 |
Get a JSONObject to apply changes to Schedules a job with a short delay to compare changes If there are differences a network call with the changes to made | protected UserState getUserStateForModification() {
if (toSyncUserState == null)
toSyncUserState = getCurrentUserState().deepClone("TOSYNC_STATE");
scheduleSyncToServer();
return toSyncUserState;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"JobResponse.Update update();",
"public void scheduleJob() {\n JobInfo.Builder builder = null;\n if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP) {\n builder = new JobInfo.Builder(mJobId++, mServiceComponent);\n builder.setMinimumLatency(1000);\n builder.setRequiredNetworkType(JobInfo.NETWORK_TYPE_ANY);\n // Extras, work duration.\n PersistableBundle extras = new PersistableBundle();\n extras.putLong(WORK_DURATION_KEY, Long.valueOf(1) * 1000);\n extras.putString(\"gsonData\", gsonDataa);\n extras.putInt(\"servicetype\", 1);\n builder.setExtras(extras);\n // Schedule job\n Log.d(TAG, \"Scheduling job\");\n JobScheduler tm = (JobScheduler) getSystemService(Context.JOB_SCHEDULER_SERVICE);\n tm.schedule(builder.build());\n\n }\n\n\n\n }",
"JobResponse refresh();",
"public void requestFromServer(){\n Log.i(TAG, \"Timer task doing work\");\n try {\n Log.d(\"timestamp\",\"prevID \"+Integer.toString(prevID));\n String json_url = \"http://skycladobserver.net23.net/json_get_item_data.php\";\n URL url = new URL(json_url);\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setRequestMethod(\"POST\");\n httpURLConnection.setDoOutput(true);\n OutputStream os = httpURLConnection.getOutputStream();\n BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(os, \"UTF-8\"));\n String data = URLEncoder.encode(\"prevID\", \"UTF-8\") + \"=\" + URLEncoder.encode(Integer.toString(prevID), \"UTF-8\");\n bw.write(data);\n bw.flush();\n bw.close();\n os.close();\n InputStream is = httpURLConnection.getInputStream();\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(is));\n StringBuilder sb = new StringBuilder();\n String jsonString;\n while((jsonString = bufferedReader.readLine())!=null){\n sb.append(jsonString+\"\\n\");\n }\n bufferedReader.close();\n is.close();\n httpURLConnection.disconnect();\n synchronized (resultLock){\n jsonData=sb.toString().trim();\n editor.putString(\"jsonData\",jsonData);\n editor.commit();\n }\n Log.d(TAG,jsonData);\n parseJSON(jsonData,items,true);\n synchronized (listeners) {\n for (ItemListener listener : listeners) {\n try {\n listener.handleListUpdated();\n } catch (RemoteException e) {\n Log.w(TAG, \"Failed to notify listener \" + listener, e);\n }\n }\n }\n synchronized (listeners) {\n Calendar calendar = Calendar.getInstance();\n java.util.Date now = calendar.getTime();\n Timestamp currentTimestamp = new java.sql.Timestamp(now.getTime());\n previousTimestamp = currentTimestamp.toString();\n //Log.d(\"timestamp\",\"currentTimestamp: \"+previousTimestamp);\n }\n\n }catch (Throwable t) { /* you should always ultimately catch\n\t\t\t\t\t\t\t\t\t all exceptions in timer tasks, or\n\t\t\t\t\t\t\t\t\t they will be sunk */\n t.printStackTrace();\n Log.e(TAG, \"Failed\", t);\n }\n }",
"@Override\n\t\tprotected String doInBackground(String... args) {\n\t\t\t\tLog.i(\"doInBackground\", \"Starting\");\n\t\t\t//\tLog.i(\"params: \", params.toString());\n\t\t\t\ttry {\n\t\t\t\t\t//JSONObject json = jsonParser.makeHttpRequest(driversUpdateUrl + \"/\" + mDriverEmail + \".json\", \"POST\", params);\n\t\t\t\t\tList<NameValuePair> jobParams = new ArrayList<NameValuePair>();\n\t\t\t\t\tjobParams.add(new BasicNameValuePair(\"driver_id\", mDriverId));\n\t\t\t\t\tjobParams.add(new BasicNameValuePair(\"key\", \"9c36c7108a73324100bc9305f581979071d45ee9\"));\n\t\t\t\t\tJSONObject jsonJobs = jsonParser.makeHttpRequest(getDriverJobsUrl, \"POST\", jobParams);\n\t\t\t\t\tLog.i(\"beforeJsonJobs\", \"hello\");\n\t\t\t\t\tLog.i(\"jsonJobs\", jsonJobs.toString());\n\t\t\t\t\tList<NameValuePair> locationParams = new ArrayList<NameValuePair>();\n\t\t\t\t\tlocationParams.add(new BasicNameValuePair(\"key\", \"9c36c7108a73324100bc9305f581979071d45ee9\"));\n\t\t\t\t\tJSONObject jsonLocations = jsonParser.makeHttpRequest(getLocationsUrl, \"POST\", locationParams);\n\t\t\t\t\t//Log.i(\"1: \", jsonJobs.getString(\"name\"));\n\t\t\t\t\t//Log.i(\"2: \", jsonJobs.getString(\"Job.name\"));\n\t\t\t\t\t//Log.i(\"count: \", \"s: \" + jsonJobs.getJSONArray(\"message\").length());\n\t\t\t\t\t//jsonJobs.getJSONArray(\"message\").getJSONObject(0).getJSONObject(\"Job\"));\n\t\t\t\t\ttry {\n\t\t\t\t\t\t//if(json.getString(\"message\").equals(\"Driver Updated\")){\n\t\t\t\t\t\t//\tLog.i(\"Well done\", \"Well done\");\n\t\t\t\t\t\t//\tuserDB.open();\n\t\t\t\t\t\t//\tuserDB.updateUserRecord(\"synced\", \"Yes\", mDriverId);\n\t\t\t\t\t\t//\tuserDB.close();\n\t\t\t\t\t\t\tjobsDB.open();\n\t\t\t\t\t\t\tjobPackagesDB.open();\n\t\t\t\t\t\t\tLog.i(\"DB Open\", \"Yes\");\n\t\t\t\t\t\t\tfor(int i=0; i<jsonJobs.getJSONArray(\"message\").length(); i++){\n\t\t\t\t\t\t\t\tLog.i(\"for\", \"for started\");\n\t\t\t\t\t\t\t\tLog.i(\"1: \", jsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").toString());\n\t\t\t\t\t\t\t\t//Log.i(\"1: \", jsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONArray(\"DriverVehicleJob\").toString());\n\t\t\t\t\t\t\t\t//Log.i(\"1: \", jsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"DriverVehicleJob\").getString(\"driver_id\"));\n\t\t\t\t\t\t\t\t//Log.i(\"2: \", jsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONArray(\"DriverVehicleJob\").getJSONObject(0).getString(\"vehicle_id\"));\n\t\t\t\t\t\t\t\tCursor existingJob = jobsDB.getJob(jsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"id\"));\n\t\t\t\t\t\t\t\tif(existingJob.getCount() == 0){\n\t\t\t\t\t\t\t\t\tjobsDB.createJob(\n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"id\"),\n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"name\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"collection_id\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"dropoff_id\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"status\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"completed_date\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"created\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"modified\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"additional_details\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"due_date\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONArray(\"DriverVehicleJob\").getJSONObject(0).getString(\"vehicle_id\"),\n\t\t\t\t\t\t\t\t\t\t\t//jsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"DriverVehicleJob\").getString(\"vehicle_id\"),\n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Job\").getString(\"created_by\"),\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\n\t\t\t\t\t\t\t\t\tfor(int p=0;p<jsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONArray(\"JobPackage\").length();p++){\n\t\t\t\t\t\t\t\t\t\tjobPackagesDB.createJobPackage(\n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONArray(\"JobPackage\").getJSONObject(p).getString(\"id\"),\n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONArray(\"JobPackage\").getJSONObject(p).getString(\"job_id\"),\n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONArray(\"JobPackage\").getJSONObject(p).getString(\"package_id\"),\n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONArray(\"JobPackage\").getJSONObject(p).getString(\"notes\"),\n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONArray(\"JobPackage\").getJSONObject(p).getString(\"status\"),\n\t\t\t\t\t\t\t\t\t\t\tjsonJobs.getJSONArray(\"message\").getJSONObject(i).getJSONArray(\"JobPackage\").getJSONObject(p).getString(\"modified\")\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}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tjobPackagesDB.close();\n\t\t\t\t\t\t\tjobsDB.close();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tLog.i(\"Start\", \"Fetching locations\");\n\t\t\t\t\t\t\t\tlocationsDB.open();\n\t\t\t\t\t\t\t\tfor(int i=0; i<jsonLocations.getJSONArray(\"message\").length(); i++){\n\t\t\t\t\t\t\t\t\tLog.i(\"Location: \", jsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").toString());\n\t\t\t\t\t\t\t\t\t//Log.i(\"1: \", jsonLocations.getJSONArray(\"message\").getJSONObject(1).getString(\"name\"));\n\t\t\t\t\t\t\t\t\tlocationsDB.createLocation(\n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"id\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"name\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"address1\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"address2\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"address3\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"town\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"county\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"postcode\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"location_opening_times_id\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"telephone\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"created\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"modified\"),\n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"longitude\"),\n\t\t\t\t\t\t\t\t\t\t\tjsonLocations.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Location\").getString(\"latitude\")\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\tlocationsDB.close();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tLog.i(\"Vehicle Start\", \"Fetching Vehicles\");\n\t\t\t\t\t\t\t\tList<NameValuePair> vehiclesParams = new ArrayList<NameValuePair>();\n\t\t\t\t\t\t\t\tvehiclesParams.add(new BasicNameValuePair(\"key\", \"9c36c7108a73324100bc9305f581979071d45ee9\"));\n\t\t\t\t\t\t\t\tJSONObject jsonVehicles = jsonParser.makeHttpRequest(getVehiclesUrl, \"POST\", vehiclesParams);\n\t\t\t\t\t\t\t\tvehiclesDB.open();\n\t\t\t\t\t\t\t\tfor(int i=0; i<jsonVehicles.getJSONArray(\"message\").length(); i++){\n\t\t\t\t\t\t\t\t\tLog.i(\"Vehicle:\", jsonVehicles.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Vehicle\").toString());\n\t\t\t\t\t\t\t\t\tvehiclesDB.createVehicle(\n\t\t\t\t\t\t\t\t\t\t\tjsonVehicles.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Vehicle\").getString(\"id\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonVehicles.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Vehicle\").getString(\"name\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonVehicles.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Vehicle\").getString(\"reg_number\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonVehicles.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Vehicle\").getString(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonVehicles.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Vehicle\").getString(\"available\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonVehicles.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Vehicle\").getString(\"status\")\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\tvehiclesDB.close();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tLog.i(\"Packages start\", \"Fetching packages\");\n\t\t\t\t\t\t\t\tList<NameValuePair> packagesParams = new ArrayList<NameValuePair>();\n\t\t\t\t\t\t\t\tpackagesParams.add(new BasicNameValuePair(\"key\", \"9c36c7108a73324100bc9305f581979071d45ee9\"));\n\t\t\t\t\t\t\t\tJSONObject jsonPackages = jsonParser.makeHttpRequest(getPackagesUrl, \"POST\", packagesParams);\n\t\t\t\t\t\t\t\tLog.i(\"packages\", jsonPackages.toString());\n\t\t\t\t\t\t\t\tpackagesDB.open();\n\t\t\t\t\t\t\t\tfor(int i=0; i<jsonPackages.getJSONArray(\"message\").length();i++){\n\t\t\t\t\t\t\t\t\tLog.i(\"Package:\", jsonPackages.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Package\").toString());\n\t\t\t\t\t\t\t\t\tpackagesDB.createPackage(\n\t\t\t\t\t\t\t\t\t\t\tjsonPackages.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Package\").getString(\"id\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonPackages.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Package\").getString(\"name\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonPackages.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Package\").getString(\"length\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonPackages.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Package\").getString(\"width\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonPackages.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Package\").getString(\"height\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonPackages.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Package\").getString(\"weight\"), \n\t\t\t\t\t\t\t\t\t\t\tjsonPackages.getJSONArray(\"message\").getJSONObject(i).getJSONObject(\"Package\").getString(\"special_reqs\")\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\tpackagesDB.close();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Exception e){\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tIntent refreshIntent = new Intent(InitDataActivity.this, StartDayActivity.class);\n\t\t\t\tstartActivity(refreshIntent);\n\t\t\t\treturn null;\n\t\t\t}",
"public void parsing() throws JSONException {\r\n\t\ttry {\r\n\t\tHttpParams httpParameters = new BasicHttpParams();\r\n\t\tint timeoutConnection = 30000;\r\n\t\tHttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);\r\n\t\tint timeoutSocket = 31000;\r\n\t\tHttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\r\n\t\tHttpClient client = new DefaultHttpClient(httpParameters);\r\n\t\tHttpPost httpost = new HttpPost(Url_Address.url_Home+\"/FetchPendingRideRequests\");//Url_Address.url_promocode);\r\n\t\tJSONObject json = new JSONObject();\r\n\t\t\r\n\t\tjson.put(\"Trigger\", \"FetchPendingRideRequests\");\r\n\t\t\r\n\t\tjson.put(\"Role\", \"Rider\");\r\n\t\tSystem.err.println(\"Rider\");\r\n\t\r\n\t\tjson.put(\"Id\", prefs.getString(\"userid\", null));\r\n\t\tSystem.err.println(prefs.getString(\"userid\", null));\r\n\t\t\r\n\t\tjson.put(\"Trigger\", \"queue\");\r\n\t\tSystem.err.println(\"rider queue\");\r\n\t //\t \r\n\t\thttpost.setEntity(new StringEntity(json.toString()));\r\n\t\thttpost.setHeader(\"Accept\", \"application/json\");\r\n\t\thttpost.setHeader(\"Content-type\", \"application/json\");\r\n\t\t\r\n\t\tHttpResponse response = client.execute(httpost);\r\n\t\tHttpEntity resEntityGet = response.getEntity();\r\n\t\tString jsonstr=EntityUtils.toString(resEntityGet);\r\n\t\tif(jsonstr!=null)\r\n\t\t{\r\n\t\t Log.i(tag,\" result-->>>>> \"+ jsonstr);\r\n\t\t}\r\n\t\tJSONObject obj=new JSONObject(jsonstr);\r\n\t\tString\tjsonResult=obj.getString(\"result\");\r\n\t\tString\tpending_jsonMessage=obj.getString(\"message\");\r\n\t\t\t\r\n\t\t\tString PendingRequestList=\tobj.getString(\"PendingRequestList\");\r\n\t\t\tLog.i(tag, \"PendingRequestList queue: \"+PendingRequestList);\r\n\t\t\t\r\n\t\t\tJSONArray jsonarray=obj.getJSONArray(\"PendingRequestList\");\r\n\t\r\n\t\t\t\r\n\t\tfor(int i=0;i<jsonarray.length();i++){\r\n\t\t\t\t\r\n\t\t\tJSONObject obj2=jsonarray.getJSONObject(i);\r\n\t\t\t\r\n\t\t\tString tripId=obj2.getString(\"tripId\");\r\n\t\t\tLog.i(tag, \"tripId: \"+tripId);\r\n\t\t\t\r\n\t\t\tString\triderId=\tobj2.getString(\"riderId\");\r\n\t\t\tLog.i(tag, \"riderId: \"+riderId);\r\n\t\t\t\r\n\t\t\tString driverId=\tobj2.getString(\"driverId\");\r\n\t\t\tLog.i(tag, \"driverId: \"+driverId);\r\n\t\t\t\r\n\t\t\tString driver_first=\tobj2.getString(\"driver_first\");\r\n\t\t\tLog.i(tag, \"driver_first: \"+driver_first);\r\n\t\t\t\r\n\t\t\tString driver_last=\tobj2.getString(\"driver_last\");\r\n\t\t\tLog.i(tag, \"driver_last: \"+driver_last);\r\n\t\t\t\r\n\t\t\tString trip_miles_est=\tobj2.getString(\"trip_miles_est\");\r\n\t\t\tLog.i(tag, \"trip_miles_est: \"+trip_miles_est);\r\n\t\t\t\r\n\t\t\tString trip_time_est=\tobj2.getString(\"trip_time_est\");\r\n\t\t\tLog.i(tag, \"trip_time_est: \"+trip_time_est);\r\n\t\t\t\r\n\t\t\tString start_loc=\tobj2.getString(\"start_loc\");\r\n\t\t\tLog.i(tag, \"start_loc: \"+start_loc);\r\n\t\t\t\r\n\t\t\tString destination_loc=\tobj2.getString(\"destination_loc\");\r\n\t\t\tLog.i(tag, \"destination_loc: \"+destination_loc);\r\n\t\t\t\r\n\t\t\tString request_type=\tobj2.getString(\"request_type\");\r\n\t\t\tLog.i(tag, \"request_type: \"+request_type);\r\n\t\t\t\r\n\t\t\tString trip_request_date=\tobj2.getString(\"trip_request_date\");\r\n\t\t\tLog.i(tag, \"request_type: \"+trip_request_date);\r\n\t\t\t\r\n\t\t\tString driver_image=\tobj2.getString(\"driver_image\");\r\n\t\t\tLog.i(tag, \"driver_image: \"+driver_image);\r\n\t\t\t\r\n\t\t\tString rider_image=\tobj2.getString(\"rider_image\");\r\n\t\t\tLog.i(tag, \"rider_image: \"+rider_image);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString setfare=\tobj2.getString(\"setfare\");\r\n\t\t\tLog.i(tag, \"setfare: \"+setfare);\r\n\t\t\t\r\n\t\t\tString offered_fare=\tobj2.getString(\"offered_fare\");\r\n\t\t\tLog.i(tag, \"offered_fare: \"+offered_fare);\r\n\t\t\t\r\n\t\t\tString driver_rating=\tobj2.getString(\"driver_rating\");\r\n\t\t\tLog.i(\"tag:\", \"riderRating: \"+driver_rating);\r\n\t\t\t\r\n\r\n\t\t\t\r\n\t\t\tString status=\tobj2.getString(\"status\");\r\n\t\t\tLog.i(tag, \"status: \"+status);\r\n\t\t\t\r\n\t\t\tString vehicle_color=\tobj2.getString(\"vehicle_color\");\r\n\t\t\tLog.i(tag, \"vehicle_color: \"+vehicle_color);\r\n\t\t\t\r\n\t\t\tString vehicle_type=\tobj2.getString(\"vehicle_type\");\r\n\t\t\tLog.i(\"tag:\", \"vehicle_type: \"+vehicle_type);\r\n\t\t\t\r\n\t\t\tString vehicle_name=\tobj2.getString(\"vehicle_name\");\r\n\t\t\tLog.i(\"tag:\", \"vehicle_name: \"+vehicle_name);\r\n\r\n\t\t\t\t\r\n\t\t\tString vehicle_img=\tobj2.getString(\"vehicle_img\");\r\n\t\t\tLog.i(\"tag:\", \"vehicle_img: \"+vehicle_img);\r\n\t\t\r\n\t\t\tString vehicle_year=\tobj2.getString(\"vehicle_year\");\r\n\t\t\tLog.i(\"tag:\", \"vehicle_year: \"+vehicle_year);\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tLog.i(tag, \"Result: \"+jsonResult);\r\n\t\t\tLog.i(tag, \"Message :\"+pending_jsonMessage);\r\n\t\t\t\r\n\t\t\tarraylist_destination.add(destination_loc);\r\n\t\t\tarraylist_driverid.add(driverId);\r\n\t\t\tarraylist_riderid.add(riderId);\r\n\t\t\tarraylist_drivername.add(driver_first);\r\n\t\t\tarraylist_pickuptime.add(trip_request_date);\r\n\t\t\tarraylist_tripid.add(tripId);\r\n\t\t\tarraylist_driver_image.add(driver_image);\r\n\t\t\tarraylist_rider_image.add(rider_image);\r\n\t\t\tarraylist_distance.add(trip_miles_est);\r\n\t\t\tarraylist_requesttype.add(request_type);\r\n\t\t\tarraylist_start.add(start_loc);\r\n\t\t\tarraylist_actualfare.add(setfare);\r\n\t\t\tarraylist_suggestion.add(offered_fare);\r\n\t\t\tarraylist_eta.add(trip_time_est);\r\n\t\t\tarraylist_driverrating.add(driver_rating);\r\n\t\t\tarraylist_status.add(status);\r\n\t\t\tarraylist_vehicle_color.add(vehicle_color);\r\n\t\t\tarraylist_vehicle_type.add(vehicle_type);\r\n\t\t\tarraylist_vehicle_name.add(vehicle_name);\r\n\t\t\tarraylist_vehicle_img.add(vehicle_img);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tarraylist_vehicle_year.add(vehicle_year);\r\n\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t catch(Exception e){\r\n\t\t System.out.println(e);\r\n\t\t Log.d(tag, \"Error :\"+e); } \r\n\t\t\t}",
"public static void scheduleJob() {\n Set<JobRequest> jobRequests = JobManager.instance().getAllJobRequestsForTag(MobssJob.TAG);\n if (!jobRequests.isEmpty()) {\n return;\n }\n\n new JobRequest.Builder(MobssJob.TAG)\n .setPeriodic(AlarmManager.INTERVAL_DAY)\n .setUpdateCurrent(true) // cancel any preexisting job with the same tag while being scheduled.\n// .setRequiredNetworkType(JobRequest.NetworkType.CONNECTED) // since the sync service needs network connection\n// .setRequirementsEnforced(true) // makes sure that all the requirements are met before starting the sync service, if at least one of the requirements is not met then the sync service will be rescheduled and not run\n .build()\n .schedule();\n }",
"JobResponse apply();",
"JobResponse refresh(Context context);",
"private void scheduleJob() {\n\n }",
"@Test\r\n\tpublic void updateUpdate() throws InterruptedException, ExecutionException {\r\n\t\tLOGGER.debugf(\"BEGINN\");\r\n\t\t\r\n\t\t// Given\r\n\t\tfinal Long zahlId = ZAHLUNGSINFORMATION_ID_UPDATE;\r\n \tfinal String neuerKontoinhaber = NEUER_KONTOINHABER;\r\n \tfinal String neuerKontoinhaber2 = NEUER_KONTOINHABER_2;\r\n\t\tfinal String username = USERNAME_ADMIN;\r\n\t\tfinal String password = PASSWORD_ADMIN;\r\n\t\t\r\n\t\t// When\r\n\t\tResponse response = given().header(ACCEPT, APPLICATION_JSON)\r\n\t\t\t\t .pathParameter(ZAHLUNGSINFORMATIONEN_ID_PATH_PARAM, zahlId)\r\n .get(ZAHLUNGSINFORMATIONEN_ID_PATH);\r\n\t\tJsonObject jsonObject;\r\n\t\ttry (final JsonReader jsonReader =\r\n\t\t\t\t getJsonReaderFactory().createReader(new StringReader(response.asString()))) {\r\n\t\t\tjsonObject = jsonReader.readObject();\r\n\t\t}\r\n\r\n \t// Konkurrierendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n \tfinal JsonObjectBuilder job2 = getJsonBuilderFactory().createObjectBuilder();\r\n \tSet<String> keys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob2.add(\"kontoinhaber\", neuerKontoinhaber2);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob2.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tfinal JsonObject jsonObject2 = job2.build();\r\n \tfinal ConcurrentUpdate concurrentUpdate = new ConcurrentUpdate(jsonObject2, ZAHLUNGSINFORMATIONEN_PATH,\r\n \t\t\t username, password);\r\n \tfinal ExecutorService executorService = Executors.newSingleThreadExecutor();\r\n\t\tfinal Future<Response> future = executorService.submit(concurrentUpdate);\r\n\t\tresponse = future.get(); // Warten bis der \"parallele\" Thread fertig ist\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_NO_CONTENT));\r\n\t\t\r\n \t// Fehlschlagendes Update\r\n\t\t// Aus den gelesenen JSON-Werten ein neues JSON-Objekt mit neuem Nachnamen bauen\r\n\t\tfinal JsonObjectBuilder job1 = getJsonBuilderFactory().createObjectBuilder();\r\n \tkeys = jsonObject.keySet();\r\n \tfor (String k : keys) {\r\n \t\tif (\"kontoinhaber\".equals(k)) {\r\n \t\t\tjob1.add(\"kontoinhaber\", neuerKontoinhaber);\r\n \t\t}\r\n \t\telse {\r\n \t\t\tjob1.add(k, jsonObject.get(k));\r\n \t\t}\r\n \t}\r\n \tjsonObject = job1.build();\r\n\t\tresponse = given().contentType(APPLICATION_JSON)\r\n\t\t\t\t .body(jsonObject.toString())\r\n\t\t .auth()\r\n\t\t .basic(username, password)\r\n\t\t .put(ZAHLUNGSINFORMATIONEN_PATH);\r\n \t\r\n\t\t// Then\r\n\t\tassertThat(response.getStatusCode(), is(HTTP_CONFLICT));\r\n\t\t\r\n\t\tLOGGER.debugf(\"ENDE\");\r\n\t}",
"public static void main(String[] args) {\n\t\tJSONObject obj=new JSONObject(); \n\t\tobj.put(\"userId\", \"[email protected]\");\n\t\tJSONObject obj2=new JSONObject();\n\t\tobj2.put(\"modulename\", \"SCM\");\n\t\tobj2.put(\"hitserverflag\",1);\n\t\tobj.put(\"extraParam\",obj2);\n\t\tobj.put(\"action\",\"UPDATE\");\n\t\tJSONArray arr=new JSONArray();\n\t\tJSONObject obj3=new JSONObject();\n\t\tJSONArray arr3=new JSONArray();\n\t\tarr3.add(\"UPDATE_PRODUCT\");\n\t\tobj3.put(\"actionarray\",arr3);\n\t\tJSONObject obj4=new JSONObject();\n\t\tobj4.put(\"CML_TITLE\",\"CCR-2\");\n\t\tJSONArray arr4=new JSONArray();\n\t\tobj4.put(\"CML_IMAGE_PATH\",arr4);\n\t\tobj4.put(\"SYNC_PENDING_STATUS\",0);\n\t\tobj4.put(\"LAST_MODIFIED_ON\",\"2019-12-31T06:52:36.441Z\");\n\t\tobj4.put(\"stockMinValue\",36);\n\t\tobj3.put(\"calmailobject\",obj4);\n\t\tobj3.put(\"keyType\",\"TSK\");\n\t\tobj3.put(\"keyVal\",\"rebrand.clouzer.com#PRJ_DEPT_ORG_1231231231231_1234#SEC_WIZ_PRD_DB_0011#TSK_PRD_LST_1577774826691_49\");\n\t\tobj3.put(\"subKeyType\",\"TSK_PRD_LST\");\n\t\tarr.add(obj3);\n\t\t\n\t\tobj.put(\"dataarray\",arr);\n\t\tobj.put(\"modulename\",\"SCM\" );\n\t\tobj.put(\"requestId\",\"/sync#/sync#[email protected]#1577710294530r168r226\");\n\t\tobj.put(\"FROM\",\"senddatatoserver\");\n\t\tobj.put(\"socketId\",\"/sync#wjYh2leVm1goGm_DAABH\");\n\t\tJSONArray arr12=new JSONArray();\n\t\tJSONObject obj9=new JSONObject();\n\t\tobj9.put(\"Location\",\"serverOperation : front_end\");\n\t\tobj9.put(\"Timestamp\",157770);\n\t\tarr12.add(obj9);\n\t\tJSONObject obj11=new JSONObject();\n\t\tobj11.put(\"Location\",\"etRouteHandler2Paget_serverOperation : node\");\n\t\tobj11.put(\"Timestamp\",157770);\n\t\tarr.add(obj11);\n\t\tJSONObject obj12=new JSONObject();\n\t\tobj12.put(\"Location\",\"etOrgActionCreator_sendtoJava : node\");\n\t\tobj12.put(\"Timestamp\",157770);\n\t\tarr12.add(obj12);\n\t\tJSONObject obj13=new JSONObject();\n\t\tobj13.put(\"Location\",\"etDirectToQueue_sendToJavaProcess : node\");\n\t\tobj13.put(\"Timestamp\",157770);\n\t\tarr12.add(obj13);\n\t\tJSONObject obj14=new JSONObject();\n\t\tobj14.put(\"Location\",\"etKafka_producer_sendMessage:node\");\n\t\tobj14.put(\"Timestamp\",157770);\n\t\tarr12.add(obj14);\n\t\tobj.put(\"baton\",arr12);\n\t\tobj.put(\"topic\",\"CCR_CLZ_COM\");\n\t\tSystem.out.println(obj);\n\t\t\n\t\t\n\t}",
"private static void scheduleJob(Context context, JobInfo job) {\n JobScheduler jobScheduler =\n (JobScheduler) context.getSystemService(Context.JOB_SCHEDULER_SERVICE);\n int result = jobScheduler.schedule(job);\n Assert.assertEquals(JobScheduler.RESULT_SUCCESS, result);\n if (DEBUG) {\n Log.d(TAG, \"Scheduling result is \" + result);\n }\n }",
"@GET\n @Deprecated\n @Path(\"jobs\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response jobGet(@QueryParam(\"created_before\") String createdBefore,\n @QueryParam(\"created_after\") String createdAfter) throws Exception {\n //List<LGJob> jobs;\n boolean doCreatedBefore = false;\n boolean doCreatedAfter = false;\n Date beforeDate = null;\n Date afterDate = null;\n\n // Parse created_before if present\n if ((createdBefore != null) && (!createdBefore.equals(\"\"))) {\n Instant beforeInstant = null;\n try {\n beforeInstant = Instant.parse(createdBefore);\n } catch (DateTimeParseException e) {\n return Response.status(201).entity(\"Invalid created_on Date format [\" + createdBefore + \"]\").build();\n }\n beforeDate = Date.from(beforeInstant);\n doCreatedBefore = true;\n }\n\n // Parse created_after if present\n if ((createdAfter != null) && (!createdAfter.equals(\"\"))) {\n Instant afterInstant = null;\n try {\n afterInstant = Instant.parse(createdAfter);\n } catch (DateTimeParseException e) {\n return Response.status(201).entity(\"Invalid created_after Date format [\" + createdAfter + \"]\").build();\n }\n afterDate = Date.from(afterInstant);\n doCreatedAfter = true;\n }\n\n\n JSONObject graphJobs = new JSONObject();\n try {\n graphJobs = Utils.getLemongraphJob(request, \"\", null);//this considers createdBefore/createdAfter params\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n JSONArray ids = new JSONArray();\n Iterator<String> idIterator = graphJobs.keys();\n while (idIterator.hasNext()) {\n String id = idIterator.next();\n ids.put(id);\n }\n\n JSONObject ob = new JSONObject();\n if(ids.length() > 0) {\n // Build response\n SimpleDateFormat sdf = new SimpleDateFormat(\"MMM dd,yyyy HH:mm:ss\");\n JSONObject mongoJobs = Utils.getMongoJobs(ids);\n Iterator iterator = mongoJobs.keySet().iterator();\n while (iterator.hasNext()) {\n String id = iterator.next().toString();\n try {\n JSONObject mongoJob = mongoJobs.getJSONObject(id);\n JSONObject job = new JSONObject();\n\n //Default value checks\n if (!mongoJob.has(\"reason\")) {\n mongoJob.put(\"reason\", \"\");\n }\n if (!mongoJob.has(\"endTime\")) {\n mongoJob.put(\"endTime\", 0);\n }\n if (!mongoJob.has(\"totalRunningTimeSeconds\")) {\n mongoJob.put(\"totalRunningTimeSeconds\", 0);\n }\n if (!mongoJob.has(\"approvedAdapterNames\")) {\n mongoJob.put(\"approvedAdapterNames\", new JSONArray());\n }\n if (!mongoJob.has(\"startTime\")) {\n mongoJob.put(\"startTime\", 0);\n }\n if (!mongoJob.has(\"jobErrors\")) {\n mongoJob.put(\"jobErrors\", new JSONArray());\n }\n if (!mongoJob.has(\"taskMap\")) {\n mongoJob.put(\"taskMap\", new JSONObject());\n }\n if (!mongoJob.has(\"jobConfig\")) {\n mongoJob.put(\"jobConfig\", new JSONObject());\n }\n if (!mongoJob.has(\"expireDate\")) {\n mongoJob.put(\"expireDate\", 0);\n }\n if (!mongoJob.has(\"graphActivity\")) {\n mongoJob.put(\"graphActivity\", 0);\n }\n if (!mongoJob.has(\"createDate\")) {\n mongoJob.put(\"createDate\", 0);\n }\n if (!mongoJob.has(\"status\")) {\n mongoJob.put(\"status\", 0);\n }\n\n job.put(\"reason\", mongoJob.get(\"reason\"));\n job.put(\"endtime\", sdf.format(mongoJob.get(\"endTime\")));\n job.put(\"runtime\", mongoJob.get(\"totalRunningTimeSeconds\"));\n job.put(\"approvedadapters\", mongoJob.getJSONArray(\"approvedAdapterNames\"));\n job.put(\"starttime\", sdf.format(mongoJob.get(\"startTime\")));\n job.put(\"error_count\", mongoJob.getJSONArray(\"jobErrors\").length());\n job.put(\"task_count\", mongoJob.getJSONObject(\"taskMap\").length());\n job.put(\"job_config\", new JSONObject(mongoJob.get(\"jobConfig\").toString()));\n job.put(\"expire_date\", sdf.format(mongoJob.get(\"expireDate\")));\n job.put(\"job_id\", id);\n job.put(\"graph_activity\", mongoJob.get(\"graphActivity\"));\n job.put(\"create_date\", sdf.format(mongoJob.get(\"createDate\")));\n int status = mongoJob.getInt(\"status\");\n job.put(\"status\", LGJob.getStatusString(status));\n\n int active = 0;\n try {\n if (status == LGJob.STATUS_PROCESSING) { //only processing jobs have non-zero active_task_count\n ArrayList<Document> docs = new MongoDBStore().getTasksFromJob(id);\n JSONObject tasks = MongoDBStore.toJSON(docs);\n active = LGJob.getActiveTaskCount(tasks);\n }\n } catch (Exception e) {\n log.debug(\"Couldn't fetch active task count for job:\" + id + \" Error:\" + e.getMessage());\n }\n\n job.put(\"active_task_count\", active);\n ob.put(id, job);\n } catch (Exception e) {\n log.info(\"Invalid job:\" + id + \" Error:\" + e.getMessage());\n }\n }\n }\n return Response.status(200).entity(ob.toString()).build();\n }",
"boolean doCommandDeviceTimerPost(JSONObject timerJSON);",
"private void peek_server_update(){\n java.util.Timer timer = new java.util.Timer(true);\n TimerTask taskPeek = new TimerTask() {\n public void run() {\n try {\n String user_id = RegistrationManager.getUserId();\n if (user_id == null || user_id.length() == 0) {\n return;\n }\n// WifiManager wifi = (WifiManager) getSystemService(WIFI_SERVICE);\n// if (wifi.getWifiState() == WifiManager.WIFI_STATE_ENABLED) {\n// JsonManager.peek_request(user_id);\n// }\n JsonManager.peek_request(user_id);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n };\n JsonManager.getServerConfig();\n int periodPeek = Config.PEEK_TIMER() * 1000;\n timer.schedule(taskPeek, periodPeek, periodPeek);\n }",
"public static void scheduleJob(Context context) {\n ComponentName serviceComponent = new ComponentName(context, SimUtilService.class);\n JobInfo.Builder builder = new JobInfo.Builder(0, serviceComponent);\n builder.setMinimumLatency(1 * 1000); // wait at least\n builder.setOverrideDeadline(3 * 1000); // maximum delay\n JobScheduler jobScheduler = context.getSystemService(JobScheduler.class);\n jobScheduler.schedule(builder.build());\n }",
"JobResponse apply(Context context);",
"public Job getJob();",
"public String createTask(JSONRequest request, long delay, boolean interval, boolean sequential);",
"@NonNull\n @Override\n public Result doWork() {\n\n Log.d(TAG, \"doWork: \");\n savedata();\n createNotification();\n\n OneTimeWorkRequest oneTimeWorkRequest = new OneTimeWorkRequest.Builder(MyWorkManager.class)\n .setInitialDelay(5, TimeUnit.SECONDS).build();\n WorkManager.getInstance().enqueueUniqueWork(\"aaa\", ExistingWorkPolicy.APPEND, oneTimeWorkRequest);\n\n\n return Result.success();\n\n }",
"@Scheduled(fixedRateString = \"PT120M\")\n\tvoid someJob(){\n//\t\tString s = \"Testing message.\\nNow time is : \"+new Date();\n////\t\tSystem.out.println(s);\n//\t\tPushNotificationOptions.sendMessageToAllUsers(s);\n//\n\t\t//get all schedules in current dayOfWeek\n\t\tCollection<Notification> notifications = notificationService.findAllByDayOfWeekAndTime();\n\t\tfor(Notification notification : notifications){\n//\t\t\tSystem.out.println(notification.toString());\n//\t\t\tSystem.out.println(!notification.getStatus());\n////\t\t\tSystem.out.println(check(notification.getStartTime()));\n//\t\t\t//check for already not sent notifications , also check for time difference < TIME_CONSTANT\n//\t\t\tif(!notification.getStatus() && check(notification.getStartTime())){\n//\t\t\t\t//send push notification\n//\t\t\t\tPushNotificationOptions.sendMessageToAllUsers(notification.getMessage());\n//\t\t\t\t//mark the notification as sent\n//\t\t\t\tnotificationService.setStatus(notification.getNotificationId());\n//\t\t\t}\n\t\t\tif(checkForDayTime()){\n\t\t\t\tPushNotificationOptions.sendMessageToAllUsers(notification.getMessage());\n\t\t\t\tnotificationService.setStatus(notification.getNotificationId());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t}",
"public void UpdateNotif()\n {\n String url2=\"http://10.208.20.164:8000/default/notifications.json\" ;\n final List<String> noti_text = new ArrayList<String>();\n final List<String> noti_time = new ArrayList<String>();\n mRequestStartTime = System.currentTimeMillis();\n JsonObjectRequest json_not = new JsonObjectRequest (Request.Method.GET, url2,null,\n new Response.Listener<JSONObject>()\n {\n @Override\n public void onResponse(JSONObject response)\n {\n Log.i(\"yo\", \"why this ... working\");\n/// System.out.println(response.toString());\n\n try\n {\n// no array named notification. :/\n JSONArray noti=response.getJSONArray(\"notifications\");\n for(int i=0;i<noti.length();i++)\n {\n\n noti_text.add(noti.getJSONObject(i).getString(\"description\"));\n// TODO: change this description, thread id & course code is clickable.\n noti_time.add(noti.getJSONObject(i).getString(\"created_at\"));\n// TODO: current - created at.\n }\n long totalRequestTime = System.currentTimeMillis() - mRequestStartTime;\n System.out.println(\"Response time for three is==\"+ totalRequestTime );\n\n } catch (JSONException e)\n {\n e.printStackTrace();\n Toast.makeText(getApplicationContext(),\n \"Error: \" + e.getMessage(),\n Toast.LENGTH_LONG).show();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.i(\"yo\", \"why this not working\");\n // Toast.makeText(Tab_view.this, error.toString(), Toast.LENGTH_LONG).show();\n }\n });\n Volley.newRequestQueue(this).add(json_not);\n System.out.println(\"here\");\n Bundle bundle3 = new Bundle();\n\n //bundle.putString(\"User\", Username);\n //bundle.putString(\"Pass\", Password);\n bundle3.putStringArrayList(\"noti_text\", (ArrayList<String>) noti_text);\n bundle3.putStringArrayList(\"noti_time\", (ArrayList<String>) noti_time);\n Three.setArguments(bundle3);\n\n }",
"public JobChangeDTO jobChange(final JobChangeDTO jobChangeDTO) throws ApplicationCustomException;",
"@Scheduled(fixedDelay = 15000)\n\tpublic void scheduleFixedDelayTask() {\n\t\t\n\t\tList<Tx> listaTx = txRepo.findAll();\n\t\t\n\t\tfor (Tx tx : listaTx) {\n\t\t\tif(tx.getStatus().equals(TxStatus.PENDING)) {\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t \"Fixed delay task - \" + System.currentTimeMillis() / 20000);\n\t\t\t\t//to be implemented\n\t\t\t\t\n\t\t\t\tString auth = \"Bearer \" + tx.getSbi().getBitcoinAddress();\n\t\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\t\theaders.add(\"Authorization\", auth);\n\t\t\t\t\n\t\t\t\tInteger orderId = tx.getorder_id();\n\t\t\t\t\n\t\t\t\tGetOrderResponseDTO getOrderDTO = new GetOrderResponseDTO();\n\t\t\t\t\n\t\t\t ResponseEntity<Object> responseEntity = new RestTemplate().exchange(\"https://api-sandbox.coingate.com/v2/orders/\" + orderId, HttpMethod.GET,\n\t\t\t\t\t\tnew HttpEntity<Object>(getOrderDTO, headers), Object.class);\n\t\t\t \n\t\t\t \n\t\t\t ObjectMapper mapper = new ObjectMapper();\n\t\t\t\tmapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);\n\t\t\t\tGetOrderResponseDTO gorResponse = new GetOrderResponseDTO();\n\t\t\n\t\t\t\tgorResponse = mapper.convertValue(responseEntity.getBody(), GetOrderResponseDTO.class);\n\t\t\n\t\t\t \n\t\t\t System.out.println(\"Order status: \" + gorResponse.getStatus());\n\t\t\t\t\n\t\t\t if(gorResponse.getStatus().equals(\"paid\") || \n\t\t\t \t\tgorResponse.getStatus().equals(\"invalid\") || \n\t\t\t \t\tgorResponse.getStatus().equals(\"expired\") || \n\t\t\t \t\tgorResponse.getStatus().equals(\"canceled\")) {\n\t\t\t \t\n\t\t\t \t//naredne tri linije mi nisu nista jasne zasto sam ovo radio pre mesec dana\n\t\t\t \tTx tx2 = new Tx();\n\t\t \t\ttx2 = txRepo.findByusername(gorResponse.getId());\n\t\t \t\tSystem.out.println(\"TX: \" + tx2.getorder_id());\n\t\t \t\t\n\t\t \t\tRestTemplate restTemplate = new RestTemplate();\n\t\t \t\t\n\t\t \t\tTxInfoDto txInfo;\n\t\t\t \t\n\t\t\t \tif(gorResponse.getStatus().equals(\"paid\")) {\n\t\t\t \t\t\n\t\t\t \t\ttx.setStatus(TxStatus.PAID);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.SUCCESS, \"https://localhost:8764/bitCoin\");\n\t\t\t \t\t\t\n\t\t\t \t} else if(gorResponse.getStatus().equals(\"invalid\")) {\n\t\t\t \t\ttx.setStatus(TxStatus.FAILED);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.FAILED, \"https://localhost:8764/bitCoin\");\n\t\t\t \t} else if(gorResponse.getStatus().equals(\"expired\")){\n\t\t\t \t\ttx.setStatus(TxStatus.EXPIRED);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.FAILED, \"https://localhost:8764/bitCoin\");\n\t\t\t \t} else {\n\t\t\t \t\ttx.setStatus(TxStatus.CANCELED);\n\t\t\t \t\ttxInfo = new TxInfoDto(tx.getorder_id(), TxStatusReqHandler.ERROR, \"https://localhost:8764/bitCoin\");\n\t\t\t \t}\n\t\t\t \t\n\t\t\t \ttxRepo.save(tx);\n\t\t \t\tResponseEntity<TxInfoDto> r = restTemplate.postForEntity(\"https://localhost:8111/request/updateTxAfterPaymentIsFinished\", txInfo, TxInfoDto.class);\n\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 }\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} else {\n\t\t\t\tSystem.out.println(\"Nikom nista\");\n\t\t\t\tlogger.info(\"Scheduled is working...\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Nema transakcija :(\");\n\t\t\n\t/*\tif(IS_CREATE) {\n\t\t\tSystem.out.println(\n\t\t\t\t \"Fixed delay task - \" + System.currentTimeMillis() / 20000);\n\t\t\t\t\t\t \t\n\t\t String authToken = STATIC_TOKEN;\n\t\t \n\t\t\tHttpHeaders headers = new HttpHeaders();\n\t\t\theaders.add(\"Authorization\", authToken);\n\t\t\t\n\t\t\tSystem.out.println(\"authtoken : \" + authToken);\n\t\t \n\t\t\tGetOrderResponseDTO getOrderDTO = new GetOrderResponseDTO();\n\t\t\t\n\t\t ResponseEntity<Object> responseEntity = new RestTemplate().exchange(\"https://api-sandbox.coingate.com/v2/orders/\" + STATIC_ID, HttpMethod.GET,\n\t\t\t\t\tnew HttpEntity<Object>(getOrderDTO, headers), Object.class);\n\t\t \n\t\t \n\t\t ObjectMapper mapper = new ObjectMapper();\n\t\t\tmapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);\n\t\t\tGetOrderResponseDTO gorResponse = new GetOrderResponseDTO();\n\t\n\t\t\tgorResponse = mapper.convertValue(responseEntity.getBody(), GetOrderResponseDTO.class);\n\t\n\t\t \n\t\t System.out.println(\"Order status: \" + gorResponse.getStatus());\n\t\t \n\t\t if(gorResponse.getStatus().equals(\"paid\") || gorResponse.getStatus().equals(\"invalid\") || gorResponse.getStatus().equals(\"expired\")) {\n\t\t \t\n\t\t \t/*Tx tx = new Tx();\n\t \t\ttx = txRepo.findByOrder_Id(gorResponse.getId());\n\t \t\tSystem.out.println(\"TX: \" + tx.getorder_id());\n\t\t \t\n\t\t \tif(gorResponse.getStatus().equals(\"paid\")) {\n\t\t \t\t//promenimo u bazi\n\t\t \t\t//txRepo.getOne((Integer)gorResponse.getId());\n\t\t \t\ttx.setStatus(TxStatus.PAID);\n\t\t \t\t\n\t\t \t} else if(gorResponse.getStatus().equals(\"invalid\")) {\n\t\t \t\ttx.setStatus(TxStatus.FAILED);\n\t\t \t} else {\n\t\t \t\ttx.setStatus(TxStatus.EXPIRED);\n\t\t \t}\n\t\t \t\n\t\t \ttxRepo.save(tx);*/\n\t\t /*\t\n\t\t \tIS_CREATE = false;\n\t\t }\n\t\t\t\t\t \n\t\t\t\t \n\t\t} else {\n\t\t\tSystem.out.println(\"Nikom nista\");\n\t\t\tlogger.info(\"Scheduled is working...\");\n\t\t}*/\n\t\t\n\t \n\t \n\t}",
"public void scheduleJobs();",
"private void m18727a(JSONObject jSONObject) {\n if (jSONObject != null) {\n try {\n this.f16696a = jSONObject.optLong(\"last_config_time\", -1);\n this.f16697b = (jSONObject.optLong(\"oc_interval\", -1) * 60) * 1000;\n } catch (Exception e) {\n OnlineConfigLog.m18737w(C4766a.f16698a, \"fail to parce online config response\", e);\n }\n }\n }",
"private void getLocalDataInsertUpdate(String lastUpdateDate) {\n\n\n try {\n JSONObject params = new JSONObject();\n params.put(\"action\", \"syncMobileData\");\n params.put(\"last_modified_timestamp\", lastUpdateDate);\n String url = WebUrls.MAIN_URL;\n JsonObjectRequest request_json = new JsonObjectRequest(url, params, new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n //dialog.dismiss();\n String result = response.toString();\n getResponseDataupdate(result);\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n }\n });\n request_json.setRetryPolicy(new DefaultRetryPolicy(15000, DefaultRetryPolicy.DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n requestQueue.add(request_json);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Scheduled(cron = \"0 2 2 ? * THU,SUN\")\n @Async\n protected void powerBallResultJob() throws IOException {\n\n LotteryResult result = americanaService.updatePowerBallResult(null);\n String res = result == null ? \"failed\" : result.toString();\n String msj = \"updatePowerBallResult job executed with result: \".concat(res);\n if (res.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n\n }",
"public void run(){\n\t\t\t\t\t\tif(consistency.equals(\"strong\")){\r\n\t\t\t\t\t\t\tcheckPosition(key, timestamp);\r\n\t\t\t\t\t\t\t//If it's not strong consistency, check if the new timestamp is greater than the last written\r\n\t\t\t\t\t\t\t//timestamp. If it's not, then don't do anything.\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tif(!latestTimeHashMap.containsKey(key)){\r\n\t\t\t\t\t\t\t\tlatestTimeHashMap.put(key, timestamp);\r\n\t\t\t\t\t\t\t}else if(timestamp > latestTimeHashMap.get(key)){\r\n\t\t\t\t\t\t\t\tlatestTimeHashMap.put(key, timestamp);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//Check the ConcurrentHashMap to see if the key is already in there. Replace if true, otherwise\r\n\t\t\t\t\t\t//Add key and value\r\n\t\t\t\t\t\tif(dataHashMap.containsKey(key)){\r\n\t\t\t\t\t\t\tdataHashMap.replace(key, value);\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\tdataHashMap.putIfAbsent(key, value);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//if(consistency.equals(\"strong\")){\r\n\t\t\t\t\t\t\tString response = \"stored\";\r\n\t\t\t\t\t\t\treq.response().putHeader(\"Content-Type\", \"text/plain\");\r\n\t\t\t\t\t\t\treq.response().putHeader(\"Content-Length\",\r\n\t\t\t\t\t\t\t\t\tString.valueOf(response.length()));\r\n\t\t\t\t\t\t\treq.response().end(response);\r\n\t\t\t\t\t\t\treq.response().close();\r\n\t\t\t\t\t\t//}\r\n\t\t\t\t\t}",
"private void updatejob() {\n\t\tString course = edt_course.getText().toString();\n\t\tString content = edt_content.getText().toString();\n\t\tjob.setCourseName(course);\n\t\tjob.setJobContent(content);\n\t\tjob.update(new UpdateListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void done(BmobException e) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif (e==null) {\n\t\t\t\t\ttoast(\"更新成功\");\n\t\t\t\t\tUpdateJobActivity.this.finish();\n\t\t\t\t} else {\n\t\t\t\t\ttoast(\"错误:\"+e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"void schedule(ScheduledJob job);",
"@PUT\n @Path( \"/add\" )\n @Produces( { MediaType.APPLICATION_JSON } )\n public JobStatus addJob( String xml ) { Parse the XML, create a job configuration\n //\n // System.out.println(xml);\n //\n JobConfiguration jobConfiguration;\n try {\n jobConfiguration = JobConfiguration.fromXML( xml.toString() );\n JobMeta jobMeta = jobConfiguration.getJobMeta();\n JobExecutionConfiguration jobExecutionConfiguration = jobConfiguration.getJobExecutionConfiguration();\n jobMeta.setLogLevel( jobExecutionConfiguration.getLogLevel() );\n jobMeta.injectVariables( jobExecutionConfiguration.getVariables() );\n\n // If there was a repository, we know about it at this point in time.\n //\n final Repository repository = jobConfiguration.getJobExecutionConfiguration().getRepository();\n\n String carteObjectId = UUID.randomUUID().toString();\n SimpleLoggingObject servletLoggingObject =\n new SimpleLoggingObject( getClass().getName(), LoggingObjectType.CARTE, null );\n servletLoggingObject.setContainerObjectId( carteObjectId );\n servletLoggingObject.setLogLevel( jobExecutionConfiguration.getLogLevel() );\n\n // Create the transformation and store in the list...\n //\n final Job job = new Job( repository, jobMeta, servletLoggingObject );\n\n // Setting variables\n //\n job.initializeVariablesFrom( null );\n job.getJobMeta().setInternalKettleVariables( job );\n job.injectVariables( jobConfiguration.getJobExecutionConfiguration().getVariables() );\n job.setArguments( jobExecutionConfiguration.getArgumentStrings() );\n\n // Also copy the parameters over...\n //\n job.copyParametersFrom( jobMeta );\n job.clearParameters();\n String[] parameterNames = job.listParameters();\n for ( int idx = 0; idx < parameterNames.length; idx++ ) {\n // Grab the parameter value set in the job entry\n //\n String thisValue = jobExecutionConfiguration.getParams().get( parameterNames[idx] );\n if ( !Utils.isEmpty( thisValue ) ) {\n // Set the value as specified by the user in the job entry\n //\n jobMeta.setParameterValue( parameterNames[idx], thisValue );\n }\n }\n jobMeta.activateParameters();\n\n job.setSocketRepository( CarteSingleton.getInstance().getSocketRepository() );\n\n CarteSingleton.getInstance().getJobMap().addJob( job.getJobname(), carteObjectId, job, jobConfiguration );\n\n // Make sure to disconnect from the repository when the job finishes.\n //\n if ( repository != null ) {\n job.addJobListener( new JobAdapter() {\n public void jobFinished( Job job ) {\n repository.disconnect();\n }\n } );\n }\n return getJobStatus( carteObjectId );\n } catch ( KettleException e ) {\n e.printStackTrace();\n }\n return null;\n }",
"public interface Job {\n\n /** unique id for this job that is used as a reference in the service methods */\n String getId();\n\n /** job executor identification that has acquired this job and is going to execute it */\n String getLockOwner();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null. */\n Date getDueDate();\n\n /** in case this is a timer, it is the time that the timer should fire, in case this \n * is a message, it is null.\n * @deprecated call {@link #getDueDate()} instead */\n @Deprecated\n Date getDuedate();\n\n /** exception that occurred during the last execution of this job. The transaction \n * of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n String getException();\n\n /** number of retries left. This is only decremented when an exception occurs during job \n * execution. The transaction of the job execution is rolled back. A synchronization is used to create \n * a separate transaction to update the exception and decrement the retries. */\n int getRetries();\n\n /** indicates if this job should be executed separate from any other job \n * in the same process instance */\n boolean isExclusive();\n\n /** the related execution */\n Execution getExecution();\n\n /** the related process instance */\n Execution getProcessInstance();\n\n Date getLockExpirationTime();\n\n}",
"public JSONObject ticker() throws Exception;",
"void deschedule(ScheduledJob job);",
"public Dsjob getJobObject() { return job; }",
"@Override\n public void doJob(JobExecutionContext context) throws JobExecutionException {\n RLock lock = null;\n RedissonClient redisson = null;\n try {\n if (this.manager == null) {\n this.manager = new MarathonMatchFeederManager(JestClientUtils.get(GLOBAL_CONFIGURATION.getJestClientConfiguration()), DAOFactory.getInstance().createDAO(MarathonMatchFeederDAO.class));\n }\n if (this.config == null) {\n this.config = GLOBAL_CONFIGURATION;\n }\n Config redissonConfig = new Config();\n redissonConfig.setLockWatchdogTimeout(this.config.getRedissonConfiguration().getLockWatchdogTimeout());\n if (this.config.getRedissonConfiguration().isClusterEnabled()) {\n for (String addr : this.config.getRedissonConfiguration().getNodeAddresses()) {\n redissonConfig.useClusterServers().addNodeAddress(addr);\n }\n } else {\n redissonConfig.useSingleServer().setAddress(this.config.getRedissonConfiguration().getSingleServerAddress());\n }\n\n logger.info(\"Try to get the lock for marathon matches job\");\n redisson = Redisson.create(redissonConfig);\n lock = redisson.getLock(config.getRedissonConfiguration().getMarathonMatchesJobLockerKeyName());\n if (lock.tryLock()) {\n logger.info(\"Get the lock for marathon matches job successfully\");\n try {\n RMapCache<String, String> mapCache = redisson.getMapCache(config.getRedissonConfiguration().getMarathonMatchesJobLastRunTimestampPrefix());\n String timestamp = mapCache.get(config.getRedissonConfiguration().getMarathonMatchesJobLastRunTimestampPrefix());\n\n Date lastRunTimestamp = new Date(INITIAL_TIMESTAMP);\n if (timestamp != null) {\n lastRunTimestamp = DATE_FORMAT.parse(timestamp);\n }\n\n logger.info(\"The last run timestamp for marathon matches job is:\" + lastRunTimestamp);\n\n Date currentTimestamp = this.manager.getTimestamp();\n Calendar calendar = Calendar.getInstance();\n calendar.setTime(currentTimestamp);\n calendar.add(Calendar.DAY_OF_MONTH, this.config.getRedissonConfiguration().getMarathonMatchesDaysToSubtract());\n Date dateParam = calendar.getTime();\n\n logger.info(\"The initial timestamp for marathon matches job is:\" + dateParam);\n\n List<TCID> totalIds = this.manager.getMatchesWithRegistrationPhaseStartedIds(new java.sql.Date(dateParam.getTime()), lastRunTimestamp.getTime());\n\n List<Long> ids = new ArrayList<>();\n for (int i = 0; i < totalIds.size(); ++i) {\n ids.add(Long.parseLong(totalIds.get(i).getId()));\n }\n\n logger.info(\"The count of the MM ids to load:\" + ids.size());\n logger.info(\"The MM ids to load:\" + ids);\n\n int batchSize = this.config.getRedissonConfiguration().getBatchUpdateSize();\n int to = 0;\n int from = 0;\n while (to < ids.size()) {\n to += (to + batchSize) > ids.size() ? (ids.size() - to) : batchSize;\n List<Long> sub = ids.subList(from, to);\n DataScienceFeederParam param = new DataScienceFeederParam();\n param.setIndex(this.config.getRedissonConfiguration().getMmIndex());\n param.setType(this.config.getRedissonConfiguration().getMmType());\n param.setRoundIds(sub);\n try {\n this.manager.pushMarathonMatchFeeder(param);\n } catch(Exception e) {\n e.printStackTrace();\n }\n from = to;\n }\n\n // mark last execution as current timestamp\n logger.info(\"update last run timestamp for challenges job is:\" + currentTimestamp);\n mapCache.put(config.getRedissonConfiguration().getMarathonMatchesJobLastRunTimestampPrefix(), DATE_FORMAT.format(currentTimestamp));\n } finally {\n logger.info(\"release the lock for marathon matches job\");\n lock.unlock();\n }\n } else {\n logger.warn(\"the previous job for marathon matches job is still running\");\n }\n } catch(Exception exp) {\n exp.printStackTrace();\n } finally {\n if (redisson != null) {\n redisson.shutdown();\n }\n }\n }",
"public String execute() {\n\t\t\n\t\tjobs = new ArrayList<Map<String, String>>();\n\t\tMap<String, String> job = new HashMap<String, String>();\n\t\tjob.put(\"title\", \"Java Developer\");\n\t\tjob.put(\"description\", \"Java Developer 1\");\n\t\tjob.put(\"location\", \"london\");\n\t\tjobs.add(job);\n\t\t\n\t\tjob = new HashMap<String, String>();\n\t\tjob.put(\"title\", \"Java Developer\");\n\t\tjob.put(\"description\", \"Java Developer 1\");\n\t\tjob.put(\"location\", \"london\");\n\t\tjobs.add(job);\n\t\t\n \n\t\treturn \"SUCCESS\";\n \n\t}",
"public void scheduleJob(JobInfo t) {\n Log.d(TAG, \"Scheduling job\");\n try {\n JobScheduler tm = (JobScheduler) appContext.getSystemService(appContext.JOB_SCHEDULER_SERVICE);\n tm.schedule(t);\n int i = 0;\n } catch (Exception e) {\n e.printStackTrace();\n int i = 0;\n }\n }",
"public boolean update(JSONObject jsonProgram);",
"@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.update:\n if (access == 1) {\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n// connects to the url\n URL url = new URL(\"http://10.0.2.2:8080/schedule\");\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n//\n conn.setRequestMethod(\"GET\");\n conn.setRequestProperty(\"Content-Type\", \"application/json;charset=UTF-8\");\n conn.setRequestProperty(\"Accept\", \"application/json\");\n conn.setDoOutput(true);\n conn.setDoInput(true);\n\n\n //Deserialisation\n InputStream inputStream = conn.getInputStream();\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\n\n StringBuilder sb = new StringBuilder();\n String line = bufferedReader.readLine();\n JSONArray jsonArray = new JSONArray(line);\n JSONObject jsonObject = new JSONObject();\n\n try {\n jsonObject.put(\"Performer_Name\", jsonArray);\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n\n JSONArray performerArray = jsonObject.getJSONArray(\"Performer_Name\");\n String performingNow = performerArray.getString(0);\n String performingNext = performerArray.getString(1);\n\n //String json = jsonObject.getString(\"Performer_Name\");\n\n Log.e(\"ERR\", performingNow);\n performerNow.setText(performingNow);\n performerNext.setText(performingNext);\n\n if (line != null) {\n sb.append(line+\"\\n\");\n Log.e(\"ERR\", line);\n }\n\n bufferedReader.close();\n\n Log.i(\"STATUS\", String.valueOf(conn.getResponseCode()));\n Log.i(\"MSG\", conn.getResponseMessage());\n\n conn.disconnect();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n thread.start();\n }\n\n break;\n }\n\n }",
"public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }",
"@GET\n @Path(\"/job/{id}/metrics\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getJobByIdMetrics(@PathParam(\"id\") String jobId) {\n LGJob lg = Utils.getJobManager().getJob(jobId);\n if (null == lg) {\n return Response.status(404).entity(\"Not found\").build();\n }\n JSONObject jobResult = new JSONObject();\n Map<String, LGTask> tasks = lg.getTasks();\n\n // BUild history graph size per task (bar graph)\n List<LGJobHistory> history = lg.getJobHistory();\n JSONArray graphPerTask = new JSONArray();\n JSONArray idPerTask = new JSONArray();\n JSONArray adapterPerTask = new JSONArray();\n JSONArray errorPerTask = new JSONArray();\n\n JSONArray adapterPie = new JSONArray();\n JSONArray adapterPieLabels= new JSONArray();\n HashMap<String, Integer> adapterPieCounters = new HashMap<String,Integer>();\n for(LGJobHistory l: history) {\n if (l.getCommandType() == 1) {\n LGTask t = tasks.get(l.getTaskId());\n if (t == null) {\n log.error(\"Missing task for taskid:\"+l.getTaskId());\n } else {\n\n String adapter = t.getAdapterName();\n int graphChange = l.getGraphChanges();\n graphPerTask.put(graphChange);\n idPerTask.put(l.getTaskId());\n adapterPerTask.put(adapter);\n int count = graphChange;\n if (adapterPieCounters.containsKey(adapter)) {\n count = adapterPieCounters.get(adapter).intValue();\n count += graphChange;\n }\n adapterPieCounters.put(adapter,count);\n int error = 0;\n if (t.getStatus() != t.TASK_STATUS_COMPLETE) {\n error = 1;\n }\n errorPerTask.put(error);\n }\n }\n }\n\n for (Map.Entry<String, Integer> entry : adapterPieCounters.entrySet()) {\n String adapter = entry.getKey();\n Integer value = entry.getValue();\n adapterPieLabels.put(adapter);\n adapterPie.put(value.intValue());\n }\n\n jobResult.put(\"graph_changes_per_task\",graphPerTask);\n jobResult.put(\"id_per_task\",idPerTask);\n jobResult.put(\"adapter_per_task\",adapterPerTask);\n jobResult.put(\"error_per_task\",errorPerTask);\n jobResult.put(\"adapter_pie_labels\",adapterPieLabels);\n jobResult.put(\"adapter_pie\",adapterPie);\n\n return Response.status(200).entity(jobResult.toString(1)).build();\n }",
"@Override\n protected double getServiceTimeForJob (final J job)\n {\n return super.getServiceTimeForJob (job);\n }",
"@Override\n public void mySchedule(String date) {\n FastJsonRequest request = new FastJsonRequest(SystemUtils.mainUrl + MethodCode.CLASSSCHEDULE + MethodType.MYSCHEDULEV2, RequestMethod.POST);\n request.add(\"username\", application.getSystemUtils().getDefaultUsername());\n request.add(\"token\", application.getSystemUtils().getToken());\n request.add(\"date\", date);\n request.add(MethodCode.DEVICEID, application.getSystemUtils().getSn());\n request.add(MethodCode.DEVICETYPE, SystemUtils.deviceType);\n request.add(MethodCode.APPVERSION, SystemUtils.getVersionName(context));\n addQueue(MethodCode.EVENT_MYSCHEDULE, request);\n\n\n// startQueue();\n }",
"public static void dispatchSyncNow(Context context) {\n FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(new GooglePlayDriver(context));\n Job syncJob = dispatcher.newJobBuilder()\n .setTag(SYNC_TAG)\n .setService(FirebaseSyncJobService.class)\n .setTrigger(Trigger.NOW)\n .setRecurring(false)\n .setReplaceCurrent(true)\n .setLifetime(Lifetime.UNTIL_NEXT_BOOT)\n .addConstraint(Constraint.ON_ANY_NETWORK)\n .build();\n dispatcher.mustSchedule(syncJob);\n Log.d(LOG_TAG, \"Sync job dispatched\");\n }",
"@Scheduled(cron = \"0 35 19 ? * 1-7\")\n @Async\n protected void updateNewYork730Results() throws IOException {\n LotteryResult lotteryResult = americanaService.updateNewYork730Results(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updateNewYork730Results job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n }",
"@GetMapping(\"/update-waiting/{id}\")\n @Timed\n public ResponseEntity<Chart> updateWaitingChart(@PathVariable Long id) throws URISyntaxException {\n log.info(\"REST request to update Chart's waiting field : {}\", id);\n Chart result = new Chart();\n try {\n Chart chart = chartService.findOne(id);\n chart.setWaitingRoom(false);\n result = chartService.save(chart);\n startLevelCare(chart.getId());\n } catch (Exception e) {\n log.info(e.getMessage());\n return ResponseEntity.badRequest()\n .headers(HeaderUtil.createFailureAlert(\"chart\", e.getCause().toString(), e.getMessage()))\n .body(null);\n }\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityUpdateAlert(\"chart\", id.toString()))\n .body(result);\n }",
"public static void scheduleReminderNow(Context ct,ContentValues itemData){\r\n //Building the intent\r\n ComponentName cpnName=new ComponentName(ct, ReminderService.class);\r\n //Send the new item information to the service\r\n PersistableBundle persitBundle=DataConvertingHelper.ToPersitable.fromContentValue(itemData);\r\n //Create a Notification with id of the item\r\n JobInfo.Builder jobInfoBuilder=new JobInfo.Builder(itemData.getAsInteger(dtbConst.ITEM_TABLE_COLS[0]),cpnName);\r\n jobInfoBuilder\r\n .setMinimumLatency(0)\r\n .setOverrideDeadline(0)\r\n .setPersisted(true)\r\n .setExtras(persitBundle);\r\n JobInfo jobinfo=jobInfoBuilder.build();\r\n JobScheduler scheduler=(JobScheduler)ct.getSystemService(Context.JOB_SCHEDULER_SERVICE);\r\n scheduler.schedule(jobinfo);\r\n }",
"public static String checkedNotification(int myId) {\n try {\n Statement st = conn.createStatement();\n //find list of update number in user\n String getUpdate = \"select mytaskupdate from users where userid = \" + myId;\n ResultSet updateResult = st.executeQuery(getUpdate);\n\n JSONArray jsonArray = new JSONArray();\n if(updateResult.next()) {\n Long[] updateNums = (Long[]) updateResult.getArray(1).getArray();\n for (Long num : updateNums) {\n ResultSet taskResult = st.executeQuery(\"SELECT * FROM progressupdate WHERE updatenum =\" + num);\n if(taskResult.next()) {\n int taskid = Integer.parseInt(taskResult.getString(\"taskid\"));\n int checkerid = Integer.parseInt(taskResult.getString(\"checkerid\"));\n\n JSONObject jobj = new JSONObject();\n jobj.put(\"TaskID\", taskid);\n jobj.put(\"UpdateNum\", num);\n jobj.put(\"CheckerID\", checkerid);\n jsonArray.put(jobj);\n taskResult.close();\n\n //delete entries in indvprogressupdate DON'T DELETE FOR HISTORY\n// String deleteEntries = \"DELETE FROM indvprogressupdate WHERE updatenum = \" + num ;\n// st.executeUpdate(deleteEntries);\n }\n }\n }\n //empty individual update in user\n String deleteUpdate = \"UPDATE users SET mytaskupdate = '{}' where userid = \" + myId;\n st.executeUpdate(deleteUpdate);\n updateResult.close();\n st.close();\n return jsonArray.toString();\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }",
"JobResponse create();",
"@Test\n public void testStartJob() {\n // Set a specific date for the last change\n DateTime originalDate = new DateTime(2014, 12, 23, 0, 0, 0);\n List<MonitorJob> listMonitorJobs = new ArrayList<>();\n String url = \"http://www.google.com\";\n MonitorJob monitorJob = new MonitorJob();\n monitorJob.setUrl(url);\n monitorJob.setElement(\"body\");\n monitorJob.setLastChange(originalDate.toDate());\n monitorJob.setBody(\"empty body\");\n\n listMonitorJobs.add(monitorJob);\n\n when(monitorJobRepositoryMock.getAllMonitorJobs())\n .thenReturn(listMonitorJobs);\n\n monitorJobExecutor.startCheckJobs();\n\n // Assert that the specific date has been changed because content of page changed\n Assert.assertNotEquals(monitorJob.getLastChange(), originalDate.toDate());\n\n }",
"@Scheduled(cron = \"0 5 21 ? * MON,TUE,WED,THU,FRI,SAT\")\n @Scheduled(cron = \"0 5 18 ? * SUN\")\n @Async\n protected void updateSuperKinoTVResults() throws IOException {\n LotteryResult lotteryResult = leidsaService.updateSuperKinoResults(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updateSuperKinoTVResults job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n }",
"@Test(timeout = 10000)\n public void testTaskUpdated() throws Exception {\n JobID jid = new JobID(\"001\", 1);\n TaskID tid = new TaskID(jid, TaskType.REDUCE, 2);\n TaskUpdatedEvent test = new TaskUpdatedEvent(tid, 1234L);\n Assert.assertEquals(test.getTaskId().toString(), tid.toString());\n Assert.assertEquals(test.getFinishTime(), 1234L);\n }",
"static void scheduleWeatherSync(@NonNull final Context context) {\n Driver driver = new GooglePlayDriver(context);\n FirebaseJobDispatcher dispatcher = new FirebaseJobDispatcher(driver);\n\n Job syncJob = dispatcher.newJobBuilder()\n .setService(FirebaseJobService.class)\n .setTag(SYNC_TAG)\n .setConstraints(Constraint.ON_ANY_NETWORK)\n .setLifetime(Lifetime.FOREVER) // set how long this sync job persists\n .setRecurring(true)\n .setTrigger(Trigger.executionWindow(\n SYNC_INTERVAL_SEC,\n SYNC_INTERVAL_SEC + SYNC_FLEXTIME_SEC\n ))\n .setReplaceCurrent(true)\n .build();\n\n dispatcher.schedule(syncJob);\n\n }",
"public void waitingChargeApiCall(final JSONObject js) {\n RequestQueue queue = Volley.newRequestQueue(context);\n JsonObjectRequestWithHeader jsonObjReq = new JsonObjectRequestWithHeader(Request.Method.POST,\n Constants.URL_WAITING_CHARGE, js,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Log.v(\"Response\", response.toString());\n try {\n if (response.getBoolean(\"result\")) {\n Toast.makeText(context, response.getString(\"response\"), Toast.LENGTH_SHORT).show();\n showRateDialog();\n\n } else {\n Toast.makeText(context, response.getString(\"response\"), Toast.LENGTH_SHORT).show();\n showRateDialog();\n }\n progressDialog.dismiss();\n\n\n } catch (JSONException e) {\n progressDialog.dismiss();\n }\n }\n }, new Response.ErrorListener() {\n\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(\"Response\", \"Error: \" + error.getMessage());\n progressDialog.dismiss();\n }\n });\n\n int socketTimeout = 30000;//30 seconds - change to what you want\n RetryPolicy policy = new DefaultRetryPolicy(socketTimeout, DefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n DefaultRetryPolicy.DEFAULT_BACKOFF_MULT);\n jsonObjReq.setRetryPolicy(policy);\n queue.add(jsonObjReq);\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic void execute(JobExecutionContext context)\n\t\t\tthrows JobExecutionException {\n\t\tJobDataMap map = context.getJobDetail().getJobDataMap();\n\t\tString json = map.getString(getArg());\n\t\tif(json==null){\n\t\t\techo(\"json is null\");\n\t\t\treturn ;\n\t\t}\n\t\tMsg = JSON.parseObject(json, Map.class);\n\t\t\t\t\n\t\tSendEmail();\n\t}",
"@GET\n @Path( \"/start/{id : .+}\" )\n @Produces( { MediaType.APPLICATION_JSON } )\n public JobStatus startJob( @PathParam( \"id\" ) String id ) {\n Job job = CarteResource.getJob( id );\n CarteObjectEntry entry = CarteResource.getCarteObjectEntry( id );\n try {\n if ( job.isInitialized() && !job.isActive() ) {\n // Re-create the job from the jobMeta\n //\n // We might need to re-connect to the repository\n //\n if ( job.getRep() != null && !job.getRep().isConnected() ) {\n if ( job.getRep().getUserInfo() != null ) {\n job.getRep().connect( job.getRep().getUserInfo().getLogin(), job.getRep().getUserInfo().getPassword() );\n } else {\n job.getRep().connect( null, null );\n }\n }\n\n // Create a new job object to start from a sane state. Then replace\n // the new job in the job map\n //\n synchronized ( this ) {\n JobConfiguration jobConfiguration = CarteSingleton.getInstance().getJobMap().getConfiguration( entry );\n\n String carteObjectId = UUID.randomUUID().toString();\n SimpleLoggingObject servletLoggingObject =\n new SimpleLoggingObject( getClass().getName(), LoggingObjectType.CARTE, null );\n servletLoggingObject.setContainerObjectId( carteObjectId );\n\n Job newJob = new Job( job.getRep(), job.getJobMeta(), servletLoggingObject );\n newJob.setLogLevel( job.getLogLevel() );\n\n // Discard old log lines from the old job\n //\n KettleLogStore.discardLines( job.getLogChannelId(), true );\n\n CarteSingleton.getInstance().getJobMap().replaceJob( entry, newJob, jobConfiguration );\n job = newJob;\n }\n }\n job.start();\n } catch ( KettleException e ) {\n e.printStackTrace();\n }\n return getJobStatus( id );\n }",
"public static void scheduleReminder(Context ct, ContentValues itemData) {\r\n //Building the intent\r\n ComponentName cpnName = new ComponentName(ct, ReminderService.class);\r\n //Send the new item information to the service\r\n PersistableBundle persitBundle = DataConvertingHelper.ToPersitable.fromContentValue(itemData);\r\n //Create a Notification with id of the item\r\n JobInfo.Builder jobInfoBuilder = new JobInfo.Builder(itemData.getAsInteger(dtbConst.ITEM_TABLE_COLS[0]), cpnName);\r\n Long delayTill=itemData.getAsLong(dtbConst.ITEM_TABLE_COLS[5])-itemData.getAsLong(dtbConst.ITEM_TABLE_COLS[4]);\r\n jobInfoBuilder\r\n .setMinimumLatency(delayTill)\r\n .setOverrideDeadline(delayTill+ReminderService.JOB_EXTRA_TIME_DEADLINE)\r\n .setPersisted(true)\r\n .setExtras(persitBundle);\r\n JobInfo jobinfo = jobInfoBuilder.build();\r\n JobScheduler scheduler = (JobScheduler) ct.getSystemService(Context.JOB_SCHEDULER_SERVICE);\r\n scheduler.schedule(jobinfo);\r\n }",
"java.util.concurrent.Future<GetJobRunResult> getJobRunAsync(GetJobRunRequest getJobRunRequest);",
"public void setJob(String job) {\n this.job = job;\n }",
"private void getSchedual() {\n final Thread thread = new Thread(new Runnable() {\n\n @Override\n public void run() {\n try {\n //Your code goes here\n String userid = UserID;\n JSONArray ja = API.API(userid, \"\", \"\", \"\", Constants.testSchedual_URL);\n Log.e(\"ngocle\", ja.toString());\n\n for (int i=0; i < ja.length(); i++) {\n item_testSchedual item1 = new item_testSchedual();\n JSONObject jo = ja.getJSONObject(i);\n int Ca = Integer.parseInt(jo.getString(\"Ca\"));\n\n item1.setID(jo.getString(\"MaLH\"));\n item1.setName(jo.getString(\"TenLop\"));\n String time = jo.getString(\"Ngay\")+\"/\"+jo.getString(\"Thang\")+\"/\"+jo.getString(\"Nam\");\n item1.setDay(time);\n String Phong = \"P.\" + jo.getString(\"Phong\");\n item1.setRoom(Phong);\n String Gio = null;\n switch (Ca){\n case 1: Gio = \" 7h30\";\n break;\n case 2: Gio = \" 9h30\";\n break;\n case 3: Gio = \" 13h30\";\n break;\n case 4: Gio = \" 15h30\";\n break;\n }\n String ca = \"Ca: \" + jo.getString(\"Ca\") + Gio;\n item1.setTime(ca);\n item.add(item1);\n\n }\n adapter.notifyDataSetChanged();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n thread.start();\n }",
"void updateApp(String marathonJson);",
"@Scheduled(cron = \"0 35 12 ? * 1-7\")\n @Async\n protected void updateNewYork1230Results() throws IOException {\n LotteryResult lotteryResult = americanaService.updateNewYork1230Results(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updateNewYork1230Results job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n }",
"public String getJob() {\n return job;\n }",
"@Scheduled(cron = \"0 0 15 ? * SUN,MON,TUE,WED,THU,FRI,SAT\")\n @Async\n protected void updateJuegaMasGanaMasResults() throws IOException {\n LotteryResult lotteryResult = nacionalService.updateJuegaMasGanaMasResults(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updateJuegaMasGanaMasResults job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n\n }",
"public void updateTask() {}",
"void sendScheduledNotifications(JobProgress progress);",
"public static void main(String[] args) {\n\t SimpleDateFormat DateFormat = new SimpleDateFormat(\"yyyyMMddHHmmss\"); \n\t Date d = new Date(); \n\t String returnstr = DateFormat.format(d); \n\t \n\t QuartzPush job = new QuartzPush(); \n\t String job_name =\"11\"; \n\t try {\n\t\t\t\tSystem.out.println(\"★★★★★★★★★★★ \"+\"The QuartzPush Strat,Date is \" +returnstr +\" ★★★★★★★★★★★\");\n\t\t\t\tClass jobClass = Class.forName(\"com.tinytree.job.QuartzPush\");\n\t\t\t\tMap<String ,Object> map = new HashMap<>();\n\t\t\t\tmap.put(\"name\",\"testname\");\n\t\t\t\tmap.put(\"jobName\",\"testname\");\n\t\t\t\tmap.put(\"jobGroup\",\"group\");\n\t\t\t\tmap.put(\"group\",\"group\");\n\t\t\t\tmap.put(\"jobClass\",\"com.tinytree.job.QuartzPush\");\n\t\t\t\t//String cronExpression = \"0 37 16 ? * *\";\n\t\t\t\tString cronExpression = \"0/10 * * * * ?\";//\"0 37 16 ? * *\"\n\t\t\t\tmap.put(\"cronExpression\",cronExpression);\n\n\t QuartzManager.addJob(map);\n\n\t \n\t } catch (Exception e) { \n\t e.printStackTrace(); \n\t } \n\t }",
"@Scheduled(cron = \"0 5 21 ? * MON,TUE,WED,THU,FRI,SAT\")\n @Scheduled(cron = \"0 5 18 ? * SUN\")\n @Async\n protected void updateQuinielaLeidsaResults() throws IOException {\n LotteryResult lotteryResult = leidsaService.updateQuinielaLeidsaResults(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updateQuinielaLeidsaResults job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n }",
"@Override\n public void onChanged(PainRecord painRecord) {\n\n if(painRecord == null)\n return;\n\n\n SharedPreferences.Editor editor = sharedPreferencesDashboard.edit();\n Gson gson = new Gson();\n String json = gson.toJson(painRecord);\n\n editor.putString(\"painRecord\", json);\n editor.commit();\n\n Calendar dueDate = Calendar.getInstance();\n\n // Set Execution around 05:00:00 AM\n dueDate.set(Calendar.HOUR_OF_DAY, 22);\n dueDate.set(Calendar.MINUTE, 00);\n dueDate.set(Calendar.SECOND, 0);\n\n if (dueDate.before(Calendar.getInstance().getTime())) {\n dueDate.add(Calendar.HOUR_OF_DAY, 24);\n }\n\n long timeDiff = dueDate.getTimeInMillis() - Calendar.getInstance().getTimeInMillis();\n\n WorkRequest uploadWorkRequest =\n new OneTimeWorkRequest.Builder(PushPainRecordToFirebaseWorker.class).setInitialDelay(timeDiff, TimeUnit.MILLISECONDS)\n .build();\n WorkManager\n .getInstance(getApplicationContext())\n .enqueue(uploadWorkRequest);\n }",
"@Test\n @DisplayName(\"We're R4, there have been successful jobs so set default since\")\n void testDefaultSince() {\n Job oldJob = new Job();\n oldJob.setJobUuid(\"AA-BB\");\n oldJob.setStatus(JobStatus.SUCCESSFUL);\n oldJob.setStatusMessage(\"100%\");\n oldJob.setOrganization(pdpClient.getOrganization());\n oldJob.setOutputFormat(NDJSON_FIRE_CONTENT_TYPE);\n OffsetDateTime oldJobTime = OffsetDateTime.parse(\"2021-01-01T00:00:00.000-05:00\", DateTimeFormatter.ISO_DATE_TIME);\n oldJob.setCreatedAt(oldJobTime);\n oldJob.setFhirVersion(STU3);\n oldJob.setContractNumber(contract.getContractNumber());\n oldJob = jobRepository.save(oldJob);\n\n // This is an even early job (want to make sure it picks the correct old job)\n Job reallyOldJob = new Job();\n reallyOldJob.setJobUuid(\"CC-DD\");\n reallyOldJob.setStatus(JobStatus.SUCCESSFUL);\n reallyOldJob.setStatusMessage(\"100%\");\n reallyOldJob.setOrganization(pdpClient.getOrganization());\n reallyOldJob.setStartedBy(DEVELOPER);\n reallyOldJob.setOutputFormat(NDJSON_FIRE_CONTENT_TYPE);\n OffsetDateTime reallyOldldJobTime = OffsetDateTime.parse(\"2020-12-01T00:00:00.000-05:00\", DateTimeFormatter.ISO_DATE_TIME);\n reallyOldJob.setCreatedAt(reallyOldldJobTime);\n reallyOldJob.setFhirVersion(R4);\n reallyOldJob.setContractNumber(contract.getContractNumber());\n reallyOldJob = jobRepository.save(reallyOldJob);\n\n Job newJob = new Job();\n newJob.setJobUuid(\"YY-ZZ\");\n newJob.setStatus(JobStatus.SUBMITTED);\n newJob.setStatusMessage(\"0%\");\n newJob.setOrganization(pdpClient.getOrganization());\n newJob.setOutputFormat(NDJSON_FIRE_CONTENT_TYPE);\n newJob.setCreatedAt(OffsetDateTime.now());\n newJob.setFhirVersion(R4);\n newJob.setContractNumber(contract.getContractNumber());\n newJob = jobRepository.save(newJob);\n\n Job processedJob = cut.preprocess(newJob.getJobUuid());\n assertEquals(oldJobTime.getNano(), processedJob.getSince().getNano());\n assertEquals(AB2D, processedJob.getSinceSource());\n\n addJobForCleanup(oldJob);\n addJobForCleanup(reallyOldJob);\n addJobForCleanup(newJob);\n }",
"private void myjob_converted_PostRequest(Context mContext, String url) {\n\n HashMap<String, String> jsonParams = new HashMap<String, String>();\n jsonParams.put(\"provider_id\", provider_id);\n jsonParams.put(\"type\", \"4\");\n jsonParams.put(\"page\", \"1\");\n jsonParams.put(\"perPage\", \"100\");\n\n loadingDialog();\n\n ServiceRequest mservicerequest = new ServiceRequest(mContext);\n\n mservicerequest.makeServiceRequest(url, Request.Method.POST, jsonParams, new ServiceRequest.ServiceListener() {\n\n\n @Override\n public void onCompleteListener(String response) {\n\n System.out.println(\"--------------reponse-------------------\" + response);\n Log.e(\"missed\", response);\n String Str_status = \"\", Str_totaljobs = \"\", Str_Response = \"\";\n\n try {\n JSONObject jobject = new JSONObject(response);\n Str_status = jobject.getString(\"status\");\n\n if (Str_status.equalsIgnoreCase(\"1\")) {\n JSONObject object = jobject.getJSONObject(\"response\");\n Str_Pagination = object.getString(\"next_page\");\n Str_PageDateCount = object.getString(\"perPage\");\n Str_totaljobs = object.getString(\"total_jobs\");\n\n Object check_list_object = object.get(\"jobs\");\n if (check_list_object instanceof JSONArray) {\n\n JSONArray jarry = object.getJSONArray(\"jobs\");\n if (jarry.length() > 0) {\n convertedlist.clear();\n\n for (int i = 0; i < jarry.length(); i++) {\n JSONObject object2 = jarry.getJSONObject(i);\n MyjobConverted_Pojo pojo = new MyjobConverted_Pojo();\n pojo.setConverted_address(object2.getString(\"location\"));\n pojo.setConverted_category(object2.getString(\"category_name\"));\n pojo.setConverted_date(object2.getString(\"booking_time\"));\n pojo.setConverted_user_name(object2.getString(\"user_name\"));\n pojo.setConverted_user_image(object2.getString(\"user_image\"));\n pojo.setOrder_id(object2.getString(\"job_id\"));\n pojo.setConvertedjob_status(object2.getString(\"job_status\"));\n String address= getCompleteAddressString(Double.parseDouble(object2.getString(\"location_lat\")),Double.parseDouble(object2.getString(\"location_lng\")));\n pojo.setAddress(address);\n convertedlist.add(pojo);\n isConvertedJobAvailable = true;\n }\n show_progress_status = true;\n } else {\n show_progress_status = false;\n isConvertedJobAvailable = false;\n }\n } else {\n\n isConvertedJobAvailable = false;\n\n }\n } else {\n Str_Response = jobject.getString(\"response\");\n }\n\n if (Str_status.equalsIgnoreCase(\"1\")) {\n\n if (isConvertedJobAvailable) {\n adapter = new MyjobConverted_Adapter(getActivity(), convertedlist);\n listView.setAdapter(adapter);\n\n if (show_progress_status) {\n layout_nojobs_converted.setVisibility(View.GONE);\n } else {\n layout_nojobs_converted.setVisibility(View.VISIBLE);\n listView.setEmptyView(layout_nojobs_converted);\n }\n } else {\n layout_nojobs_converted.setVisibility(View.VISIBLE);\n listView.setEmptyView(layout_nojobs_converted);\n }\n\n } else {\n\n Alert(getResources().getString(R.string.server_lable_header), Str_Response);\n\n }\n if (swipeRefreshLayout.isRefreshing()) {\n swipeRefreshLayout.setRefreshing(false);\n }\n\n } catch (Exception e) {\n dismissDialog();\n e.printStackTrace();\n }\n dismissDialog();\n\n }\n\n @Override\n public void onErrorListener() {\n dismissDialog();\n\n }\n });\n\n }",
"public void setJSON(JSONObject json) {this.progressJSON = json;}",
"public JSONObject update() throws Exception{\n String urlString;\r\n if(this.targetDirection == -1){\r\n urlString = \"https://ptx.transportdata.tw/MOTC/v2/Bus/EstimatedTimeOfArrival/City/\" + route.getCityName() + \"?$filter=\" + URLEncoder.encode(\"StopUID eq '\" + targetStopUID + \"' \", \"UTF-8\") + \"&$format=JSON\";\r\n }else{\r\n urlString = \"https://ptx.transportdata.tw/MOTC/v2/Bus/EstimatedTimeOfArrival/City/\" + route.getCityName() + \"?$filter=\" + URLEncoder.encode(\"StopUID eq '\" + targetStopUID + \"' and Direction eq '\"+ targetDirection +\"' \", \"UTF-8\") + \"&$format=JSON\";\r\n }\r\n urlString = urlString.replaceAll(\"\\\\+\", \"%20\");\r\n PTXPlatform ptxp = new PTXPlatform(urlString);\r\n \r\n try{\r\n this.stopData = new JSONArray(ptxp.getData()).getJSONObject(0);\r\n }catch(Exception e){\r\n System.out.println(\"Maybe Direction are not using in this route, please set direction to -1.\");\r\n }\r\n return stopFilter(stopData);\r\n }",
"@Scheduled(cron = \"0 5 19 ? * 1-7\")\n @Async\n protected void updateQuinielaLotekaResults() throws IOException {\n LotteryResult lotteryResult = lotekaService.updateQuinielaLotekaResults(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updateQuinielaLotekaResults job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n }",
"private JSONObject m54374a(FileDownloadTaskInfo fileDownloadTaskInfo) {\n String str;\n long j = 0;\n AppMethodBeat.m2504i(130705);\n JSONObject jSONObject = new JSONObject();\n switch (fileDownloadTaskInfo.status) {\n case -1:\n this.hxN = \"fail_apilevel_too_low\";\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n case 1:\n str = \"downloading\";\n break;\n case 2:\n str = \"download_pause\";\n break;\n case 3:\n if (!C1173e.m2561ct(fileDownloadTaskInfo.path)) {\n str = \"default\";\n break;\n }\n str = \"download_succ\";\n break;\n case 4:\n str = \"download_fail\";\n break;\n default:\n str = \"default\";\n break;\n }\n C4990ab.m7417i(\"MicroMsg.JsApiQueryDownloadTask\", \"doQueryDownloadTask, state = %s\", str);\n if (!(!fileDownloadTaskInfo.kNt || C5023at.isWifi(C4996ah.getContext()) || fileDownloadTaskInfo.status == 3 || fileDownloadTaskInfo.status == 1)) {\n str = \"download_wait_wifi\";\n }\n if ((str == \"downloading\" || str == \"download_pause\") && fileDownloadTaskInfo.jrb != 0) {\n j = (long) ((((float) fileDownloadTaskInfo.kNr) / ((float) fileDownloadTaskInfo.jrb)) * 100.0f);\n }\n try {\n jSONObject.put(\"appId\", fileDownloadTaskInfo.appId);\n jSONObject.put(\"downloadId\", fileDownloadTaskInfo.f16167id);\n jSONObject.put(\"state\", str);\n jSONObject.put(\"progress\", j);\n } catch (JSONException e) {\n C4990ab.m7412e(\"MicroMsg.JsApiQueryDownloadTask\", e.getMessage());\n }\n AppMethodBeat.m2505o(130705);\n return jSONObject;\n }",
"public void doExecute(JobExecutionContext context) {\n\t\tSimpleDateFormat format=new SimpleDateFormat(\"yyyy-MM-dd\");\n String endDate=DateHelper.upDate(new Date(), DateHelper.CONST_PARSE_DATETIME).substring(0, 10);\n String beginDate=\"\";\n Map timeMap=null;\n List gsclist=DbUp.upTable(\"gc_subordinate_count\").dataQuery(\"create_time\", \" create_time desc \",\"\", null,0,1);\n if(gsclist!=null&&gsclist.size()>0){\n \ttimeMap=(Map) gsclist.get(0);\n }\n\n if(timeMap==null||timeMap.get(\"create_time\")==null){\n \tMap map=DbUp.upTable(\"gc_member_relation\").dataQuery(\"create_time\", \" create_time \", \"\", null,0,1).get(0);\n \tif(map!=null&&map.get(\"create_time\")!=null){\n \t\tbeginDate=map.get(\"create_time\").toString();\n \t\t\n \t}\n }\n else{\n \tbeginDate=timeMap.get(\"create_time\").toString();\n \tCalendar begin=Calendar.getInstance();\n \t\ttry {\n\t\t\t\tbegin.setTime(format.parse(beginDate));\n\t\t\t} catch (ParseException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n \t\tbegin.add(Calendar.DAY_OF_MONTH, 1);\n \t\tbeginDate=DateHelper.upDate(begin.getTime());\n }\n beginDate=beginDate.substring(0, 10);\n \n Calendar start = Calendar.getInstance();\n Calendar end = Calendar.getInstance();\n try {\n\t\t\tstart.setTime(format.parse(beginDate));\n\t\t\tend.setTime(format.parse(endDate));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \n while(start.before(end))\n {\n \tMDataMap mDataMap=new MDataMap();\n \tString dateString=DateHelper.upDate(start.getTime()).substring(0,10);\n \tmDataMap.put(\"dateString\", dateString);\n \tList<MDataMap> list=DbUp.upTable(\"gc_member_relation\").queryAll(\"parent_code,count(parent_code) as number \", \"\", \" left(create_time,10)=:dateString group by parent_code\", mDataMap);\n for(MDataMap map:list){\n \tDbUp.upTable(\"gc_subordinate_count\").insert(\"date\",dateString,\"account_code\",map.get(\"parent_code\"),\n \t\t\t\"number\",map.get(\"number\"),\"create_time\",FormatHelper.upDateTime());\n }\n \tstart.add(Calendar.DAY_OF_MONTH,1);\n }\n\t}",
"private void update_medplan(final Context context) {\n SharedPreferences pref = getSharedPreferences(\"user_key\", MODE_PRIVATE);\n String url = \"https://mobsysbackend.herokuapp.com/request.json\";\n\n RequestQueue queue = Volley.newRequestQueue(this);\n\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"uat\", pref.getString(\"user_key\", \"missing\"));\n JSONObject parameters = new JSONObject(params);\n\n JsonObjectRequest jsonObjReq = new JsonObjectRequest(Request.Method.POST,\n url, parameters,\n new Response.Listener() {\n @Override\n public void onResponse(Object response) {\n if (Meds.listAll(Meds.class).size() > 0) {\n for (Meds m : Meds.listAll(Meds.class)) {\n if (!m.getDays().equals(\"\")) {\n cancelAlarm(m.getId());\n }\n }\n }\n JSONObject json = (JSONObject) response;\n Gson g = new Gson();\n medplan = g.fromJson(json.toString(), MedPlan.class);\n Log.i(\"JSONtoString\", \"onResponse: \" + json.toString());\n tvarzt.setText(\"Austellender Arzt: \" + medplan.getDoctor());\n tvpatient.setText(\"Ausgestellt für: \" + medplan.getPatient());\n\n List<Meds> medlist = medplan.getMeds();\n MedicineListAdapter adapter = new MedicineListAdapter(context, R.layout.adapter_view_layout, medlist);\n listView.setAdapter(adapter);\n\n for (Meds m : Meds.listAll(Meds.class)) {\n if (!m.getDays().equals(\"\")) {\n createAlarm(m.getDays(), m.getTime(), m.getId());\n }\n }\n //doing some databse stuff\n //remember record indexes start with 1\n Medplaninfo check = Medplaninfo.findById(Medplaninfo.class, (long) 1);\n\n if (check == null) {\n Log.e(\"CHECK\", \"No empty object was found. something must have went wrong\");\n } else {\n check.setDoctor(medplan.getDoctor());\n check.setMedcount(medplan.getMedcount());\n check.setPatient(medplan.getPatient());\n //delete old meds\n Meds.deleteAll(Meds.class);\n //save new meds\n for (Meds _med : medplan.meds) {\n _med.save();\n }\n check.save();\n }\n\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n Log.i(\"TAG\", \"onErrorResponse: Something went wrong during the updateing\");\n\n }\n }\n );\n requestQueue.add(jsonObjReq);\n }",
"public void run() {\n\t\t\t\t\t\tint success;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t// Building Parameters\r\n\t\t\t\t\t\t\tString activity = \"set_sensor_subscription_value_\" + paramInput.getText().toString() ;\r\n\t\t\t\t\t\t\tString date = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\").format(Calendar.getInstance().getTime());\r\n\t\t\t\t\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\r\n\t\t\t\t\t\t\tparams.add(new BasicNameValuePair(TAG_ACT, activity));\r\n\t\t\t\t\t\t\tparams.add(new BasicNameValuePair(TAG_DATE, date));\r\n\t\t\t\t\t\t\t// getting product details by making HTTP request\r\n\t\t\t\t\t\t\t// Note that product details url will use GET request\r\n\t\t\t\t\t\t\tJSONObject json = jsonParser.makeHttpRequest(\r\n\t\t\t\t\t\t\t\t\turl_update_record, \"GET\", params);\r\n\t\t\t\t\t\t// check your log for json response\r\n\t\t\t\t\t\t\tLog.d(\"Smart Home\",\"===========record_update=================\");\r\n\t\t\t\t\t\t\tLog.d(\"Smart Home\", json.getString(TAG_MSG));\t\t\t\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t\tcatch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}",
"public JobStatus getStatus();",
"public interface JobManager {\n void startJob(JobConfig<String, JsonRecord> name);\n}",
"private void checkForUpdates(){\n\t\tlong now = System.currentTimeMillis();\r\n\t\tif(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING) != null){\r\n\t\t\tlong lastUpdateTime = Long.parseLong(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING));\r\n\t\t\tlong day = 86400000; // milli-seconds in a day\r\n\t\t\tif((now - lastUpdateTime) < day){\r\n\t\t\t\treturn; // Don't need to check as a check has been made in the last 24hrs. \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetStatusBarText(\"Checking for updates...\"); \r\n\t\t\r\n HttpClient webConnection = new HttpClient();\r\n \t\tProperties webSideProps; \r\n \t\ttry{\r\n \t\t\twebSideProps = webConnection.getProperties(\"http://www.zygomeme.com/version_prop.txt\");\r\n \t\t}\r\n \t\tcatch(SocketTimeoutException ste){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + ste);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tcatch(UnknownHostException uhe){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + uhe);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tif(webSideProps == null || webSideProps.isEmpty()){\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tint latestVersionAvailable = Integer.parseInt(webSideProps.get(\"version_number\").toString());\r\n \t\tif(latestVersionAvailable > PropertiesMemento.APP_VERSION_NUMBER){\r\n \t\t\tsetStatusBarText(\"A new version of ZygoMeme York is now available. You can now upgrade to Version \" + webSideProps.getProperty(\"version_string\") + \" \" + \r\n \t\t\t\t\twebSideProps.get(\"stage\")); \r\n \t\t}\r\n \t\telse{\r\n \t\t\tsetStatusBarText(\"Update check has been made - application is up to date.\"); \r\n \t\t}\r\n\r\n \t\t// To get here the properties will have been updated\r\n\t\tpropertiesMemento.setProperty(PropertiesMemento.UPDATE_STRING, \"\" + now);\r\n\r\n\t\t// Save the properties straight away so that the new last \"check for update\" time is recorded\r\n\t\ttry {\r\n\t\t\tpropertiesMemento.saveProperties(this);\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(\"Unable to save properties\");\r\n\t\t}\r\n\t}",
"@RequestMapping(value=\"/job/restartJob\", produces = MediaType.APPLICATION_JSON_VALUE)\n\tpublic Map<String, Object> reStartJob(@RequestBody Map<String, Object> paramMap) throws Exception {\n\n\t\t\n\t\tMap<String, Object> msgMap = null;\n\t\tMap<String, Object> resultMap = new HashMap<String, Object>();\n\t\t\n\t\tif (LOGGER.isDebugEnabled()) {\n\t\t\tLOGGER.debug(\"jobName :: {} :: Job Id :: {}\" + paramMap.get(\"jobName\"), paramMap.get(\"jobId\"));\n\t\t}\n\n\t\n\t\t/** Check jobId, jobName from parameter **/\n\t\tString jobName = paramMap.get(\"jobName\") != null ? String.valueOf(paramMap.get(\"jobName\")) : null;\n\t\tLong jobId = paramMap.get(\"jobId\") != null ? Long.parseLong(String.valueOf(paramMap.get(\"jobId\"))) : 0L;\n\n\n\t\t/** Check Input Parameter **/\n\t\tif (NullUtil.isNull(jobName) || jobId <= 0) {\n\t\t\tmsgMap = MessageUtil.getErrorMessage(\"There are no job Id or job Name in input parameter\");\n\t\t\tLOGGER.error(\"{}\", resultMap);\n\t\t\treturn resultMap;\n\t\t}\n\t\t\n\t\t/** Call job restart service **/\n\t\tmsgMap = jobControlSvi.restartJob(paramMap);\n\t\t\n\t\tresultMap.put(BaseConstants.DEFAULT_MESSAGE_NAME, msgMap);\n\t\t\n\t\treturn resultMap;\n\t}",
"@Override\n protected JSONObject doInBackground(ApiConnector... params) {\n System.out.println(\"test\" + params[0].GetYourJson());\n try {\n id = Integer.parseInt(params[0].GetYourJson().getString(\"entry_id\"));\n if (currentId == 0 && currentId != id){\n currentId = id;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n return params[0].GetYourJson();\n }",
"public interface Async {\n public void afterExec(JSONObject jsonObject);\n}",
"@Scheduled(cron = \"0 5 21 ? * MON,TUE,WED,THU,FRI,SAT\")\n @Scheduled(cron = \"0 5 18 ? * SUN\")\n @Async\n protected void updateQuinielaNacionalNocheResults() throws IOException {\n LotteryResult lotteryResult = nacionalService.updateQuinielaNacionalResults(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updateQuinielaNacionalNocheResults job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n }",
"@Override\n\tpublic SchedulerJobEntity modifyJob(SchedulerJobEntity jobEntity) throws Exception {\n\n\t\tSchedulerJobEntity retVal = new SchedulerJobEntity();\n\n\t\tOptional<SchedulerJobEntity> existingJobEntityOpt = schedulerRepository.findById(jobEntity.getId());\n\t\tif (!existingJobEntityOpt.isPresent()) {\n\t\t\tthrow new GenericSchedulerException(\"job not exists\");\n\t\t}\n\n\t\tSchedulerJobEntity existingJobEntity = existingJobEntityOpt.get();\n\n\t\tString validateVerdict = validateModifiedJob(jobEntity, existingJobEntity);\n\t\tif (!StringUtils.isEmpty(validateVerdict)) {\n\t\t\tthrow new GenericSchedulerException(validateVerdict);\n\t\t}\n\n\t\tif (jobEntity.getCronJob()) {\n\n\t\t\tboolean modifiedCron = modifyCronScheduledJob(jobEntity);\n\n\t\t\tif (modifiedCron) {\n\t\t\t\tretVal = updateSchedulerJobEntity(jobEntity);\n\t\t\t} else {\n\t\t\t\tthrow new GenericSchedulerException(\"job or trigger not exists\");\n\t\t\t}\n\n\t\t} else {\n\n\t\t\tboolean modifiedSimple = modifySimpleScheduledJob(jobEntity, existingJobEntity);\n\n\t\t\tif (modifiedSimple) {\n\t\t\t\tretVal = updateSchedulerJobEntity(jobEntity);\n\t\t\t} else {\n\t\t\t\tthrow new GenericSchedulerException(\"cannot update job\");\n\t\t\t}\n\t\t}\n\n\t\treturn retVal;\n\t}",
"private LabWork convertJsonObjIntoLabWork(JSONObject jsonObject) throws java.text.ParseException {\n LabWork lw = new LabWork();\n // set ID\n Long newID = Long.parseLong(String.valueOf(jsonObject.get(\"id\")));\n System.out.println(newID);\n if(CollectionManager.IDChecker.contains(newID)){\n System.out.println(\"ID is duplicate, please insert valid input!\");\n }\n else {\n CollectionManager.IDChecker.add(newID);\n lw.setId(newID);\n }\n //set Name\n lw.setName((String)jsonObject.get(\"Name\"));\n System.out.println(lw.getName());\n\n // set Coordinates\n JSONObject coordinatesObj = (JSONObject) jsonObject.get(\"coordinates\");\n lw.setCoordinates(new Coordinates(Math.toIntExact(Long.parseLong(String.valueOf(coordinatesObj.get(\"x\")))), Double.parseDouble(String.valueOf(coordinatesObj.get(\"y\")))));\n\n /*\n parse String to LocalDateTime\n */\n\n// // date in String\n// String dateString = (String)jsonObject.get(\"creationDate\");\n//\n// //build formatter\n// DateTimeFormatter formatter = DateTimeFormatter.ISO_DATE_TIME;\n// //Parse String to LocalDateTime\n// LocalDateTime dateTime = LocalDateTime.parse(dateString,formatter);\n// lw.setCreationDate(dateTime);\n// //System.out.println(p.getCreationDate());\n\n // set minimalPoint\n lw.setMinimalPoint(Long.parseLong(String.valueOf(jsonObject.get(\"minpoint\"))));\n\n // set difficulty\n String difficultyString = (String)jsonObject.get(\"difficulty\");\n Difficulty difficultyEnum = Difficulty.valueOf(difficultyString);\n lw.setDifficulty(difficultyEnum);\n\n\n// set weight\n// lw.setWeight(Math.toIntExact(Long.parseLong(String.valueOf(jsonObject.get(\"weight\")))));\n\n// // set nationality\n// String countryString = (String)jsonObject.get(\"nationality\");\n// Country countryEnum = Country.valueOf(countryString);\n// lw.setNationality(countryEnum);\n //set author\n// set location\n JSONObject authorObj = (JSONObject)jsonObject.get(\"author\");\n JSONObject locationObj = (JSONObject)authorObj.get(\"location\");\n //System.out.println(locationObj);\n// lw.setLocation(new Location(\n// Math.toIntExact(Long.parseLong(String.valueOf(locationObj.get(\"x\")))),\n// Long.parseLong(String.valueOf(locationObj.get(\"y\"))),\n// (String)locationObj.get(\"name\")\n// ));\n\n lw.setAuthor(new Person(\n (String)authorObj.get(\"name\"), Double.parseDouble(String.valueOf(authorObj.get(\"weight\"))),Color.valueOf(String.valueOf(authorObj.get(\"eye color\"))),HairColor.valueOf(String.valueOf(authorObj.get(\"hair color\"))),Country.valueOf(String.valueOf(authorObj.get(\"nationality\"))), new Location(\n Integer.parseInt((String.valueOf(locationObj.get(\"x\")))),\n Long.parseLong(String.valueOf(locationObj.get(\"y\"))),\n (String)locationObj.get(\"name\")\n )\n ));\n\n\n\n return lw;\n }",
"@Override\n public void run() {\n CompareService.getRankedJobStrings();\n\n // get current job\n current = DataHandler.GetDataHandlerInstance().GetCurrentJob();\n String formattedComp =\n JOB.title + \" | \" + current.title + \"\\n\" +\n JOB.currentJob + \" | \" + current.currentJob + \"\\n\" +\n JOB.company + \" | \" + current.company + \"\\n\" +\n JOB.city + \" | \" + current.city + \"\\n\" +\n JOB.state + \" | \" + current.state + \"\\n\" +\n JOB.yearlySalary + \" | \" + current.yearlySalary + \"\\n\" +\n JOB.yearlyBonus + \" | \" + current.yearlyBonus + \"\\n\" +\n JOB.teleworkDaysPerWeek + \" | \" + current.teleworkDaysPerWeek + \"\\n\" +\n JOB.retirementBenefit + \" | \" + current.retirementBenefit + \"\\n\" +\n JOB.leaveTime + \" | \" + current.leaveTime;\n intent.putExtra(\"job1\", JOB.title + \", \" + JOB.company);\n intent.putExtra(\"job2\", current.title + \", \" + current.company);\n startActivity(intent);\n }",
"private void getFlowData() {\n\t\tdbService.getCacheLastUpdated(Tables.STATIONS, new ListCallback<GenericRow>() {\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(List<GenericRow> result) {\n\t\t\t\tString currentMap = localStorage.getItem(\"KEY_CURRENT_MAP\");\n\t\t\t\tboolean shouldUpdate = true;\n\n\t\t\t\tif (!result.isEmpty()) {\n\t\t\t\t\tdouble now = System.currentTimeMillis();\n\t\t\t\t\tdouble lastUpdated = result.get(0).getDouble(CachesColumns.CACHE_LAST_UPDATED);\n\t\t\t\t\tshouldUpdate = (Math.abs(now - lastUpdated) > (3 * 60000)); // Refresh every 3 minutes.\n\t\t\t\t}\n\n\t\t\t view.showProgressIndicator();\n\t\t\t \n\t\t\t if (!currentMap.equalsIgnoreCase(\"seattle\")) {\n\t\t\t \tshouldUpdate = true;\n\t\t\t\t\tlocalStorage.setItem(\"KEY_CURRENT_MAP\", \"seattle\");\n\t\t\t }\n\t\t\t \n\t\t\t if (shouldUpdate) {\n\t\t\t \ttry {\n\t\t\t \t String url = Consts.HOST_URL + \"/api/flowdata/MinuteDataNW\";\n\t\t\t \t JsonpRequestBuilder jsonp = new JsonpRequestBuilder();\n\t\t\t \t jsonp.setTimeout(30000); // 30 seconds\n\t\t\t \t jsonp.requestObject(url, new AsyncCallback<FlowDataFeed>() {\n\n\t\t\t \t\t\t@Override\n\t\t\t \t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t \t\t\t\tview.hideProgressIndicator();\n\t\t\t \t\t\t\tGWT.log(\"Failure calling traffic flow api.\");\n\t\t\t \t\t\t}\n\n\t\t\t \t\t\t@Override\n\t\t\t \t\t\tpublic void onSuccess(FlowDataFeed result) {\n\t\t\t \t\t\t\tstationItems.clear();\n\t\t\t \t\t\t\t\n\t\t\t \t\t\t\tif (result.getFlowData() != null) {\n\t\t\t \t\t\t\t\tint numStations = result.getFlowData().getStations().length();\n\t\t\t \t\t\t\t\tString timestamp = result.getFlowData().getTimestamp();\n\t\t\t \t\t\t\t\ttimestamp = timestamp.replaceAll(\"PST|PDT\", \"\");\n\t\t\t \t\t\t\t\tDate date = parseDateFormat.parse(timestamp);\n\t\t\t \t\t\t\t\tString lastUpdated = displayDateFormat.format(date);\n\t\t\t \t\t\t\t\tlocalStorage.setItem(\"KEY_LAST_UPDATED\", lastUpdated);\n\t\t\t \t\t\t\t\tStationItem item;\n\t\t\t \t\t\t\t\t\n\t\t\t \t\t\t\t\tfor (int i = 0; i < numStations; i++) {\n\t\t\t \t\t\t\t\t\tString stationId = result.getFlowData().getStations().get(i).getId();\n\t\t\t \t\t\t\t\t\tString status = result.getFlowData().getStations().get(i).getStat();\n\t\t\t \t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\tif (stationItemsMap.containsKey(stationId) && status.equalsIgnoreCase(\"good\")) {\n\t\t\t\t \t\t\t\t\t\titem = new StationItem();\n\t\t\t\t \t\t\t\t\t\t\n\t\t\t\t \t\t\t\t\t\titem.setId(stationId);\n\t\t\t \t\t\t\t\t\t\titem.setVolume(result.getFlowData().getStations().get(i).getVol());\n\t\t\t \t\t\t\t\t\t\titem.setSpeed(result.getFlowData().getStations().get(i).getSpd());\n\t\t\t \t\t\t\t\t\t\titem.setOccupancy(result.getFlowData().getStations().get(i).getOcc());\n\t\t\t \t\t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\t\tstationItems.add(item);\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\t// Purge existing stations covered by incoming data\n\t\t\t \t\t\t\tdbService.deleteStations(new VoidCallback() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\t\t\t\t\t// Bulk insert all the new stations and data.\n\t\t\t\t\t\t\t\t\t\tdbService.insertStations(stationItems, new RowIdListCallback() {\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t\t\t\tview.hideProgressIndicator();\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void onSuccess(List<Integer> rowIds) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Update the cache table with the time we did the update\n\t\t\t\t\t\t\t\t\t\t\t\tList<CacheItem> cacheItems = new ArrayList<CacheItem>();\n\t\t\t\t\t\t\t\t\t\t\t\tcacheItems.add(new CacheItem(Tables.STATIONS, System.currentTimeMillis()));\n\t\t\t\t\t\t\t\t\t\t\t\tdbService.updateCachesTable(cacheItems, new VoidCallback() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Get all the stations and data just inserted.\n\t\t\t\t\t\t\t\t\t\t\t\t \tdbService.getStations(new ListCallback<GenericRow>() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onSuccess(List<GenericRow> result) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetStations(result);\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\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\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\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t \t\t\t}\n\t\t\t \t\t});\n\n\t\t\t \t} catch (Exception e) {\n\t\t\t \t\t// TODO Do something with the exception\n\t\t\t \t}\n\t\t\t } else {\n\t\t\t \tdbService.getStations(new ListCallback<GenericRow>() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSuccess(List<GenericRow> result) {\n\t\t\t\t\t\t\tgetStations(result);\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\t}\n\t\t});\n\t}",
"public Job getJob(){\n return job;\n }",
"private JobInfo getJobInfo\n\t\t(JobFrontendRef frontend)\n\t\t{\n\t\tfinal JobFrontendRef fe = frontend;\n\t\tJobInfo jobinfo = myFrontendToJobMap.get (frontend);\n\t\tif (jobinfo == null)\n\t\t\t{\n\t\t\tjobinfo = new JobInfo\n\t\t\t\t(/*jobnum */ myNextJobNumber ++,\n\t\t\t\t /*state */ JobInfo.State.WAITING,\n\t\t\t\t /*stateTime*/ System.currentTimeMillis(),\n\t\t\t\t /*username */ null,\n\t\t\t\t /*Nn */ 0,\n\t\t\t\t /*Np */ 0,\n\t\t\t\t /*Nt */ 0,\n\t\t\t\t /*count */ 0,\n\t\t\t\t /*backend */ null,\n\t\t\t\t /*cpus */ null,\n\t\t\t\t /*nodeCount*/ 0,\n\t\t\t\t /*frontend */ fe,\n\t\t\t\t /*renewTimer*/\n\t\t\t\t\tmyLeaseTimerThread.createTimer (new TimerTask()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tpublic void action (Timer theTimer)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\trenewTimeout (theTimer, fe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable exc)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmyLog.log (exc);\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 /*expireTimer*/\n\t\t\t\t\tmyLeaseTimerThread.createTimer (new TimerTask()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tpublic void action (Timer theTimer)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\texpireTimeout (theTimer, fe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable exc)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmyLog.log (exc);\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 /*jobTimer*/\n\t\t\t\t\tmyLeaseTimerThread.createTimer (new TimerTask()\n\t\t\t\t\t\t{\n\t\t\t\t\t\tpublic void action (Timer theTimer)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttry\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tjobTimeout (theTimer, fe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tcatch (Throwable exc)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tmyLog.log (exc);\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\tmyFrontendToJobMap.put (frontend, jobinfo);\n\t\t\t}\n\t\treturn jobinfo;\n\t\t}",
"@Scheduled(cron = \"0 5 21 ? * MON,TUE,WED,THU,FRI,SAT\")\n @Scheduled(cron = \"0 5 18 ? * SUN\")\n @Async\n protected void updatePega3MasResults() throws IOException {\n LotteryResult lotteryResult = leidsaService.updatePega3MasResults(null);\n String result = lotteryResult == null ? \"failed\" : lotteryResult.toString();\n String msj = \"updatePega3MasResults job executed with result: \".concat(result);\n if (result.equals(\"failed\")) {\n LOGGER.error(msj);\n } else {\n LOGGER.info(msj);\n }\n }",
"public void scheduleJob(ConversionJob tjob, Trigger trig){\n\t\tjobscheduler.scheduleJob(tjob,trig);\n\t\tjlog.info(\"Schedule Job \"+tjob.getFullName()+\"/\"+trig.getFullName());\n\t}",
"public static String sendLiveRequest(){\n\n // The following line initializes the HttpGet Object with the URL in order to send a request\n HttpGet get = new HttpGet(BASE_URL + ENDPOINT + \"?access_key=\" + ACCESS_KEY);\n\n try {\n CloseableHttpResponse response = httpClient.execute(get);\n HttpEntity entity = response.getEntity();\n\n // the following line converts the JSON Response to an equivalent Java Object\n JSONObject exchangeRates = new JSONObject(EntityUtils.toString(entity));\n \n Date timeStampDate = new Date((long)(exchangeRates.getLong(\"timestamp\")*1000)); \n DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = dateFormat.format(timeStampDate);\n \n String USDUAH = \"1 \" + exchangeRates.getString(\"source\") + \" in UAH : \" + exchangeRates.getJSONObject(\"quotes\").getDouble(\"USDUAH\") + \" (Date: \" + formattedDate + \")\";\n String USDEUR = \"1 \" + exchangeRates.getString(\"source\") + \" in EUR : \" + exchangeRates.getJSONObject(\"quotes\").getDouble(\"USDEUR\") + \" (Date: \" + formattedDate + \")\"; \n String USDGBP = \"1 \" + exchangeRates.getString(\"source\") + \" in GBP : \" + exchangeRates.getJSONObject(\"quotes\").getDouble(\"USDGBP\") + \" (Date: \" + formattedDate + \")\";\n String USDJPY = \"1 \" + exchangeRates.getString(\"source\") + \" in JPY : \" + exchangeRates.getJSONObject(\"quotes\").getDouble(\"USDJPY\") + \" (Date: \" + formattedDate + \")\";\n return USDUAH+\"\\n\"+USDEUR+\"\\n\"+USDGBP+\"\\n\"+USDJPY;\n } catch (ClientProtocolException e) { \n e.printStackTrace();\n Main.logger.log(Level.SEVERE, \"Exception: \", e);\n } catch (IOException e) {\n e.printStackTrace();\n Main.logger.log(Level.SEVERE, \"Exception: \", e);\n } catch (ParseException e) {\n e.printStackTrace();\n } catch (JSONException e) {\n e.printStackTrace();\n Main.logger.log(Level.SEVERE, \"Exception: \", e);\n }\n\t\treturn null;\n }",
"private void updateCompletionTime()\n\t{\n\t\tfor (Map.Entry<Tab, Set<FarmingPatch>> tab : farmingWorld.getTabs().entrySet())\n\t\t{\n\t\t\tlong extremumCompletionTime = config.preferSoonest() ? Long.MAX_VALUE : 0;\n\t\t\tboolean allUnknown = true;\n\t\t\tboolean allEmpty = true;\n\n\t\t\tfor (FarmingPatch patch : tab.getValue())\n\t\t\t{\n\t\t\t\tPatchPrediction prediction = predictPatch(patch);\n\t\t\t\tif (prediction == null || prediction.getProduce().getItemID() < 0)\n\t\t\t\t{\n\t\t\t\t\tcontinue; // unknown state\n\t\t\t\t}\n\n\t\t\t\tallUnknown = false;\n\n\t\t\t\tif (prediction.getProduce() != Produce.WEEDS && prediction.getProduce() != Produce.SCARECROW)\n\t\t\t\t{\n\t\t\t\t\tallEmpty = false;\n\n\t\t\t\t\t// update max duration if this patch takes longer to grow\n\t\t\t\t\tif (config.preferSoonest())\n\t\t\t\t\t{\n\t\t\t\t\t\textremumCompletionTime = Math.min(extremumCompletionTime, prediction.getDoneEstimate());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\textremumCompletionTime = Math.max(extremumCompletionTime, prediction.getDoneEstimate());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal SummaryState state;\n\t\t\tfinal long completionTime;\n\n\t\t\tif (allUnknown)\n\t\t\t{\n\t\t\t\tstate = SummaryState.UNKNOWN;\n\t\t\t\tcompletionTime = -1L;\n\t\t\t}\n\t\t\telse if (allEmpty)\n\t\t\t{\n\t\t\t\tstate = SummaryState.EMPTY;\n\t\t\t\tcompletionTime = -1L;\n\t\t\t}\n\t\t\telse if (extremumCompletionTime <= Instant.now().getEpochSecond())\n\t\t\t{\n\t\t\t\tstate = SummaryState.COMPLETED;\n\t\t\t\tcompletionTime = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstate = SummaryState.IN_PROGRESS;\n\t\t\t\tcompletionTime = extremumCompletionTime;\n\t\t\t}\n\t\t\tsummaries.put(tab.getKey(), state);\n\t\t\tcompletionTimes.put(tab.getKey(), completionTime);\n\t\t}\n\t}",
"@RequestMapping(value = UPDATE_API_JOB, method = PUT)\n @ResponseBody\n @ResponseStatus(ACCEPTED)\n public ResponseEntity<String> updateExistingJob(@RequestBody final QuartzDTO quartzDTO, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {\n return quartzService.updateExistingJob(quartzDTO, getCookie(httpServletRequest, X_AUTH_TOKEN));\n }",
"public void execute(JobExecutionContext context) throws JobExecutionException {\n\t\t\n\t\tint scheduler_id=(Integer)context.getJobDetail().getJobDataMap().get(\"scheduler_id\");\t\t\n \tString taskuid=(String)context.getJobDetail().getJobDataMap().get(\"taskuid\");\n \tString invoked_by=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_INVOKED_BY);\n \tString updatedtime=(String)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_UPDATED_TIME);\n \tNumber trigger_row_id=(Number)context.getJobDetail().getJobDataMap().get(SchedulerEngine.JOBDATA_TRIGGER_ROW_ID);\n \t//System.out.println(\"ScheduledTaskJob.execute() 2be removed later:taskuid:\"+taskuid+\" scheduler_id:\"+scheduler_id);\n \t\n \t\n \t\n \ttry{\n \t\t\n\t \t//Map data=getSchedulerData(scheduler_id);\n \t\tSchedulerDB sdb=SchedulerDB.getSchedulerDB();\n \t\tMap data=null;\n \t\tString inject_code=null;\n \t\ttry{\n \t\t\tsdb.connectDB();\n \t\t\tdata=sdb.getScheduler(scheduler_id); \n \t\t\tif(trigger_row_id!=null){\n \t\t\t\tMap trig=sdb.getOneRowTriggerData(trigger_row_id.longValue());\n \t\t\t\tinject_code=(String)trig.get(\"inject_code\");\n \t\t\t}\n \t\t}catch(Exception e){\n \t\t\tthrow e;\n \t\t}finally {\n \t\t\tsdb.closeDB();\n \t\t}\n \t\t\n \t\tif(data.get(\"deleted\")!=null && ((Number)data.get(\"deleted\")).intValue()==1){\n \t\t\tthrow new Exception(\"Deleted Task can't be executed\");\n \t\t}\n \t\t\n \t\tlog.debug(\"trigger_row_id:\"+trigger_row_id+\" inject_code:\"+inject_code);\n\t \t\n\t \tScheduledTask task=new ScheduledTaskFactory().getTask(taskuid);\n\t \tif(task==null) {\n\t \t\tthrow new Exception(\"Task Group not found for the task:\"+scheduler_id);\n\t \t}\n\t \tStackFrame sframe=new StackFrame(task,data);\n\t \tif(invoked_by!=null && !invoked_by.equals(\"\")) {\n\t \t\tsframe.setInvokedby(invoked_by);\n\t \t}else{\n\t \t\tif(updatedtime!=null){\n\t \t\t\tsframe.setInvokedby(\"Scheduler (\"+updatedtime+\")\");\n\t \t\t}else{\n\t \t\t\tsframe.setInvokedby(\"Scheduler\");\n\t \t\t}\n\t \t}\n\t\t\t\n\t\t\tif(context.getTrigger().getPreviousFireTime()!=null){\n\t\t\t\tsframe.setTrigger_time(context.getTrigger().getPreviousFireTime().getTime());\n\t\t\t}else{\n\t\t\t\tsframe.setTrigger_time(new Date().getTime());\n\t\t\t}\n\t\t\t\n\t\t\tif(context.getTrigger().getNextFireTime()!=null){\n\t\t\t\tsframe.setNexttrigger_time(context.getTrigger().getNextFireTime().getTime());\n\t\t\t}\t\t\t\n\t\t\n\t\t\t\n\t\t\tif(Config.getValue(\"load_balancing_server\")!=null && Config.getValue(\"load_balancing_server\").equals(P2PService.getComputerName())){\n\t\t\t\tLoadBalancingQueueItem li=new LoadBalancingQueueItem();\n\t\t\t\tli.setSf(sframe);\n\t\t\t\tInteger id=(Integer)data.get(\"id\");\n\t\t\t\tli.setInject_code(inject_code);\n\t\t\t\tli.setSchedulerid(id);\n\t\t\t\tLoadBalancingQueue.getDefault().add(li);\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t/*ScheduledTaskQueue.add(sframe);*/\n\t\t\t}\n\t\t\t\n\t\t\tlog.debug(\"adding task to queue: task:\"+data.get(\"name\"));\n \t}catch(Exception e){\n \t\te.printStackTrace(); \t\t\n \t\t//ClientErrorMgmt.reportError(e, \"Error while triggering task\");\n \t} \n\t\t \n\t\t//String status=null;\n\t\t//try{\t\t\n\t\t\t//task.execute();\n\t\t\t//status=task.EXCECUTION_SUCCESS;\n\t\t//}catch(Exception e){\n\t\t//\tstatus=task.EXCECUTION_FAIL;\t\t\t\n\t\t//\tClientErrorMgmt.reportError(e, null);\n\t\t//}finally{\n\t\t//\ttry{\n\t\t//\t\taddLog(sdate,data,status);\n\t\t//\t}catch(Exception e){\n\t\t//\t\tClientErrorMgmt.reportError(e, null);\n\t\t//\t}\t\t\t\n\t\t//}\n\t\t\n \t\n \t\n\t}",
"private static void getMarathonJson(EnvironmentVO environmentVO) throws Exception {\n\t\tlogger.debug(\"Running Marathon Backup for environment: \" + environmentVO.getEnvironmentName());\n\t\tString marathonJson = null;\n\t\tString eastMarathonJson = null;\n\t\tif(environmentVO.getMarathonUrl() != null && !environmentVO.getMarathonUrl().equals(\"\")){\n\t\t\tmarathonJson = RestCommunicationHandler.getResponse(environmentVO.getMarathonUrl(), true,\"Basic \", environmentVO.getMarathonCred());\n\t\t}\n\t\t \n\t\tif(marathonJson == null || marathonJson.equals(\"failed\") || marathonJson.equals(\"\")){\n\t\t\tenvironmentVO.setMarathonJson(null);\n\t\t} else {\n\t\t\tenvironmentVO.setMarathonJson(marathonJson);\n\t\t}\n\t\t//Get EAST marathon JSON\n\t\tif(environmentVO.getEastMarathonUrl() != null && !environmentVO.getEastMarathonUrl().equals(\"\")){\n\t\t\teastMarathonJson = RestCommunicationHandler.getResponse(environmentVO.getEastMarathonUrl(), true,\"Basic \", environmentVO.getMarathonCred());\n\t\t}\n\t\t\n\t\tif(eastMarathonJson == null || eastMarathonJson.equals(\"failed\") || eastMarathonJson.equals(\"\")){\n\t\t\tenvironmentVO.setEastMarathonJson(null);\n\t\t} else {\n\t\t\tenvironmentVO.setEastMarathonJson(eastMarathonJson);\n\t\t}\n\t}"
]
| [
"0.61893886",
"0.6121295",
"0.5660003",
"0.5656609",
"0.5566693",
"0.55536264",
"0.55456305",
"0.54632735",
"0.5442671",
"0.5435505",
"0.5384733",
"0.5358366",
"0.5346362",
"0.53006864",
"0.5280271",
"0.5272786",
"0.52128315",
"0.5107219",
"0.50934404",
"0.5066724",
"0.5048471",
"0.5039371",
"0.5027749",
"0.5006212",
"0.5003965",
"0.499378",
"0.49903178",
"0.49678773",
"0.49610505",
"0.49529627",
"0.49423572",
"0.49299422",
"0.49185774",
"0.49140123",
"0.49000606",
"0.48900717",
"0.48825917",
"0.4873536",
"0.48681486",
"0.4864981",
"0.48630235",
"0.485603",
"0.4852138",
"0.48506373",
"0.48456538",
"0.48434898",
"0.48375365",
"0.48373845",
"0.48355788",
"0.48195767",
"0.48071188",
"0.48036826",
"0.4798754",
"0.4791055",
"0.47910297",
"0.47808516",
"0.47761646",
"0.47750947",
"0.4774476",
"0.47711763",
"0.4769435",
"0.47600716",
"0.47576612",
"0.47490656",
"0.47479433",
"0.47461918",
"0.4738902",
"0.47362694",
"0.4732663",
"0.4727944",
"0.47232357",
"0.47197476",
"0.4714245",
"0.47123024",
"0.47095683",
"0.47093514",
"0.47026435",
"0.46938398",
"0.46891978",
"0.46891966",
"0.4688841",
"0.46883568",
"0.468751",
"0.46832395",
"0.4675883",
"0.46654904",
"0.4664459",
"0.46585447",
"0.46519658",
"0.46460322",
"0.46362343",
"0.46350935",
"0.46302512",
"0.4627654",
"0.46241155",
"0.46232122",
"0.46081024",
"0.46077514",
"0.46010208",
"0.4596019",
"0.45796603"
]
| 0.0 | -1 |
Retrieve the brekpoint's type. (type of the value we set the breakpoint for) | public String getConstraintInstance() {
return getAttribute("ConstraintInstance", "");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static BreakpointType classify(XBreakpoint breakpoint) {\n switch (breakpoint.getType().getId()) {\n case \"java-line\":\n return BreakpointType.LINE;\n\n case \"java-method\":\n return BreakpointType.METHOD;\n\n case \"java-exception\":\n return BreakpointType.EXCEPTION;\n\n case \"java-field\":\n return BreakpointType.FIELD;\n\n default:\n return BreakpointType.UNDEFINED;\n\n }\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();",
"public int getType() {\n/* 50 */ return this.type;\n/* */ }",
"public List<MLocoBrakeType> getbreaktyp() {\n\t\t\tList<MLocoBrakeType> getbreaktype = new ArrayList<>();\t\t\t\n\t\t\tobj_breaktyperepo.findAll()\n\t\t\t.forEach(getbreaktype::add);\n\t\t\treturn getbreaktype;\n\t\t\t\n\t\t\t\t\t}",
"public String getP_type() {\n return p_type;\n }",
"@Override public int getTypeValue() {\n return type_;\n }",
"public Class<?> getType() {\n return this.value.getClass();\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public JavaType getType() { return _type; }",
"public Type type() {\n if (local() != null && local().squawkIndex() != -1) {\n return local().type();\n }\n else {\n return super.type();\n }\n }",
"@Override public int getTypeValue() {\n return type_;\n }",
"public Type getPointedType() {\n return getChild();\n }",
"public Class getRunTimeType() {\n return lho.getRuntimeType();\n }",
"public String Type()\t{\r\n\t\treturn BrickFinder.getDefault().getType();\r\n\t}",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"@java.lang.Override\n public int getTypeValue() {\n return type_;\n }",
"public Object getType()\r\n {\r\n\treturn type;\r\n }",
"public String getCheckpointName() {\n\t\tfor(FreeVar current : specification.getBindings())\n\t\t{\n\t\t\tif(current.isBound())\n\t\t\t{\n\t\t\t\treturn getTopLevelType(current.binding());\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public int getTypeValue() {\n\t\t\t\t\treturn type_;\n\t\t\t\t}",
"public int getType(){\n return type;\n }",
"public int getType() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getType() { return type; }",
"public int getType() { return type; }",
"public Type getType() {\n return _type;\n }",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"public int getType() { \n return type; \n }",
"public int getType () {\r\n return type;\r\n }",
"public int getType() {\r\n\t\treturn (type);\r\n\t}",
"public Type getType()\n {\n return type;\n }",
"public int getTypeValue() {\n\t\t\treturn type_;\n\t\t}",
"public ProcessType getType() {\n\t\treturn this.type;\n\t}",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getTypeValue() {\n return type_;\n }",
"public int getType() {\n\t\treturn 1;\r\n\t}",
"@java.lang.Override public int getTypeValue() {\n return type_;\n }",
"int getType(){\n return type;\n }",
"public Type getType() {\n return this.te.getType();\n }",
"type getType();",
"public int getType()\n {\n return pref.getInt(KEY_TYPE, 0);\n }",
"public Type getType() {\r\n return this.type;\r\n }",
"public Integer getType() {\n return type;\n }",
"public Integer getType() {\n return type;\n }",
"public Integer getType() {\n return type;\n }",
"public Integer getType() {\n return type;\n }",
"public Integer getType() {\n return type;\n }",
"public Integer getType() {\n return type;\n }",
"public Integer getType() {\n return type;\n }",
"public Integer getType() {\n return type;\n }",
"public int getType() {\n return type;\n }",
"public int getType() {\n return _type;\n }",
"public int getType() {\n return _type;\n }",
"public Byte getType() {\n\t\treturn type;\n\t}",
"public Byte getType() {\n return type;\n }",
"public Byte getType() {\n return type;\n }",
"public Byte getType() {\n return type;\n }",
"public Byte getType() {\n return type;\n }",
"public Byte getType() {\n return type;\n }",
"public Byte getType() {\n return type;\n }",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}",
"public int getTypeValue() {\n\t\t\t\treturn type_;\n\t\t\t}",
"public int getType()\n {\n return type;\n }",
"public int getType()\n {\n return type;\n }",
"public String getType() {\r\n return this.getClass().getName();\r\n }",
"public Type getType(){\n\t\treturn this.type;\n\t}",
"public int getType()\n {\n return this.type;\n }",
"public byte getType() {\n return this.type;\n }"
]
| [
"0.64422166",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5892581",
"0.5840273",
"0.5785781",
"0.5777042",
"0.57550097",
"0.5744701",
"0.5740474",
"0.5740474",
"0.57328",
"0.57289886",
"0.5716645",
"0.570664",
"0.57059413",
"0.5690978",
"0.5667718",
"0.56671643",
"0.56671643",
"0.56671643",
"0.56671643",
"0.56671643",
"0.56591266",
"0.56591266",
"0.564557",
"0.5634475",
"0.5626484",
"0.5611307",
"0.56110346",
"0.5604198",
"0.5604198",
"0.55968183",
"0.55968183",
"0.55968183",
"0.55918723",
"0.55918723",
"0.55914855",
"0.5590361",
"0.5587694",
"0.5584602",
"0.55842465",
"0.55836767",
"0.55782646",
"0.5573152",
"0.5555369",
"0.5555369",
"0.5555369",
"0.5555369",
"0.5555369",
"0.5554719",
"0.55488557",
"0.5546217",
"0.5539719",
"0.5538302",
"0.55374205",
"0.55327886",
"0.5532542",
"0.5532542",
"0.5532542",
"0.5532542",
"0.5532542",
"0.5532542",
"0.5532542",
"0.5532542",
"0.55257297",
"0.5516178",
"0.5516178",
"0.55145",
"0.5514308",
"0.5514308",
"0.5514308",
"0.5514308",
"0.5514308",
"0.5514308",
"0.55117255",
"0.55117255",
"0.55117255",
"0.55117255",
"0.55117255",
"0.55117255",
"0.55117255",
"0.55117255",
"0.5509429",
"0.5509429",
"0.5505214",
"0.5505214",
"0.5503421",
"0.550045",
"0.54995954",
"0.5499123"
]
| 0.0 | -1 |
Updates the message (label of the breakpoint in the debug view). | private void updateMessage() {
setMessage("Constraint instance breakpoint on '" + getConstraintInstance() + "'");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void updateDebugText(MiniGame game) {\n }",
"@Override\n public void updateDebugText(MiniGame game)\n {\n }",
"@Override\r\n\tvoid updateMessage(String msg) {\n\t\tSystem.out.println(msg);\r\n\t}",
"public static void updateMessageBox() {\n\t}",
"public void displayMessage(String message){\n gameState = GameState.MESSAGE;\n currentMessage = message;\n notifyObservers();\n currentMessage = \"\";\n }",
"private void showInfo(String message){ infoLabel.setText(message);}",
"void displayDebug(String message) {\n if (this.server.isVerboseDebugEnabled())\n System.out.printf(\"**\\t[%s]\\t\" + name + \":\\t\" + message + \"\\n\", dateFormat.format(new Date()));\n }",
"private void showInfo(String message)\r\n {\r\n infoLabel.setText(message);\r\n }",
"public void printMessage(final String message) {\n\t\tthis.viewFrame.printMessage(message);\n\t}",
"@Override\n\tpublic void messageToDebug(MessageEventObject o) {\n\t\ttxtDebug.append(o.getMessage());\n\t\tif (!o.getMessage().endsWith(\"\\n\")) {\n\t\t\ttxtDebug.append(\"\\n\");\n\t\t}\n\t\ttxtDebug.setCaretPosition(txtDebug.getDocument().getLength());\n\t}",
"public void updateView(String message) {\n output.setText(message);\n \n }",
"@Override\r\n\t\tpublic void showMessage(String message) {\n\t\t\t\r\n\t\t}",
"private void debugMessage(String result)\n\t{\n\t\tmain.addDebugMessage(result);\n\t}",
"@Override\n\t\tpublic void displayMessage() {\n\t\t\tsuper.displayMessage();\n\t\t}",
"@Override\n\tpublic void showMessage(String message) {\n\n\t}",
"public static void debug(String label, String message) {\n if (_debugMode) {\n debug(String.format(\"%s: [%s]\", label, message));\n }\n }",
"public void displayLabel(String message)\n\t{\n\t\tGameplayPanel gameplayPanel = (GameplayPanel) container.getComponent(3);\n\t\tgameplayPanel.setMessage(message);\n\t}",
"public void showMessage(String message) \r\n\t\t{\t\t\t\r\n\t\t}",
"@Override\n public void updateLog(String msg) {\n\n setText2Log(msg);\n }",
"public void updateView(String message)\n {\n Log.w(\"MainActivity\",\"In updateview: \" + message);\n\n TextView messageTV = findViewById(R.id.messageTextView);\n\n messageTV.setText(message);\n\n }",
"private void updateLabel() {\n\t\tString translation = lp.getString(key);\n\t\tsetText(translation);\n\n\t}",
"@Override\n\tpublic void debug(Marker marker, Object message) {\n\n\t}",
"public void debug(String message);",
"@Override\n\tpublic void debug(Marker marker, CharSequence message) {\n\n\t}",
"private void updateUI(String msg){\n if(msg != null) {\n textViewStatus.setText(msg);\n }\n }",
"public synchronized void displayMessage(String msg) {\n\t\tthis.commonTxtView.setText(msg);\n\n\t}",
"public void setMsg(String msg){\n messageLabel.setText(msg);\n }",
"@Override\n public void displayMessage(String message)\n {\n Platform.runLater(() -> {\n gui.getStatusText().scheduleMessage(message, 2000.0);\n });\n }",
"@Override\n\tpublic void debug(Object message) {\n\n\t}",
"@Override\r\n\tpublic void messageChange(Display display, String oldMessage, String newMessage) {\r\n\t\tgui.setDisplay(newMessage);\r\n\t}",
"@Override\n\tpublic void debug(Marker marker, Message msg) {\n\n\t}",
"public void displayMessage(String message) {\n gameWindowController.showMessage(message);\n }",
"private void displayMessage(String info) {\n \tif (message == null) {\n \t\tsetupMessage();\n \t}\n \tmessage.setLabel(info);\n\t\tadd(message, 6, 15);\n }",
"public void setMessage(String message) {\n\t\tthis.message = message;\n\t\trepaint();\n\t}",
"public void setMessage(String title, String message){\r\n label.setText(title);\r\n this.message = message;\r\n label.repaint();\r\n }",
"@Override\n\tpublic void debug(Marker marker, String message) {\n\n\t}",
"public void setMessage(String word){\r\n message.setText(word);\r\n }",
"@Override\r\n\tpublic void display(Object message) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void display(Object message) {\n\t\t\r\n\t}",
"private void update () {\n // JST: this can be improved in future...\n String lm = current.getLocalizedMessage ();\n String nm = current.getMessage ();\n boolean isLocalized = lm != null && !lm.equals (nm);\n\n next.setVisible (exceptions.hasMoreElements ());\n details.setText (\n showDetails\n ?\n org.openide.util.NbBundle.getBundle(NotifyException.class).getString(\"CTL_Exception_Hide_Details\")\n :\n org.openide.util.NbBundle.getBundle(NotifyException.class).getString(\"CTL_Exception_Show_Details\")\n );\n\n\n if (current instanceof InvocationTargetException) {\n // go in\n current = ((InvocationTargetException)current).getTargetException ();\n }\n\n // setText (current.getLocalizedMessage ());\n String title = org.openide.util.NbBundle.getBundle(NotifyException.class).getString(\"CTL_Title_Exception\");\n\n if (showDetails) {\n descriptor.setMessage (createDetails ());\n } else {\n if (isLocalized) {\n String msg = current.getLocalizedMessage ();\n if (msg == null || \"\".equals(msg)) { // NOI18N\n msg = org.openide.util.Utilities.wrapString (\n msg, MAXIMUM_TEXT_WIDTH, false, false\n );\n }\n descriptor.setMessage (msg);\n } else {\n // emphasize user-non-friendly exceptions\n // if (this.getMessage() == null || \"\".equals(this.getMessage())) { // NOI18N\n descriptor.setMessage (\n java.text.MessageFormat.format(\n NbBundle.getBundle (NotifyDescriptor.class).getString(\"NTF_ExceptionalException\"),\n new Object[] {\n current.getClass().getName()\n }\n )\n );\n\n title = NbBundle.getBundle (NotifyDescriptor.class).getString(\n \"NTF_ExceptionalExceptionTitle\" // NOI18N\n );\n }\n }\n\n descriptor.setTitle (title);\n }",
"private void displayMessage(String message) {\n }",
"public void sendStatusMessageToDispatch(String message) {\n this.dispatcher.displayMessageFromVehicle(message);\n }",
"@Override\n\tpublic void showMessage(String hintMessage) {\n\t\tsuper.showMessage(hintMessage);\n\t}",
"public void updateWarning(String message) {\n\t\tJOptionPane.showMessageDialog(SubmitJobsWindow.frame, message, \"\",\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}",
"@Override\n\tpublic void debug(CharSequence message) {\n\n\t}",
"private void setMessageText(String pMessage) {\n\n TextView tempText = (TextView) findViewById(R.id.tallyDeviceConnectionStatusMessageTextView);\n\n tempText.setText(pMessage);\n\n }",
"public void debug(String msg);",
"private void displayMessage(String message) {\n TextView orderSummaryTextView = findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }",
"public void displayMessage(String message){\n\n\t\tElement mes = nifty.getScreen(\"hud\").findElementByName(\"MessagePanel\");\n\t\tmes.getRenderer(TextRenderer.class).setText(message);\n\t\tmes.startEffect(EffectEventId.onCustom);\n\t}",
"public void displayMessage(String message) {\r\n TextView messageView = (TextView) findViewById(R.id.message);\r\n messageView.setText(String.valueOf(message));\r\n }",
"private void display(String msg) {\n cg.append(msg + \"\\n\");\n }",
"protected void setMessage(java.lang.String newMessage)\r\n {\r\n if (message == null)\r\n {\r\n message = newMessage;\r\n }\r\n else\r\n {\r\n message += \"\\n\" + newMessage;\r\n }\r\n }",
"public void setStatusMessage(String message) {\n\t\tstatusMessage.setText(message);\n\t\tstatusMessage.paintImmediately(statusMessage.getBounds());\n\t}",
"public void getMessage() {\n\r\n\t}",
"public final void debug(Component reporter, String message)\n\t{\n\t\tadd(new FeedbackMessage(reporter, message, FeedbackMessage.DEBUG));\n\t}",
"public Text updateMessage(String msg){\r\n Text message = new Text(\"Height: \" + tree.height() + \", Vertices: \" + tree.getVertices()+\"\\t\\t Status: \"+ msg);\r\n message.setFont(Font.font(Font.getDefault().toString(), FontWeight.BOLD,20));\r\n return message;\r\n }",
"private static void displayMessage(String message) {\n\t\toutput.append(message);\n\t}",
"private void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }",
"private void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }",
"private void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.order_summary_text_view);\n orderSummaryTextView.setText(message);\n }",
"public void updateProgressMessage() {\n pb.setMax(frames);\n int rendered = getNumFramesRendered(this, projectName);\n pb.setProgress(Math.min(pb.getMax(), rendered));\n int n = pb.getMax();\n int ratio = (rendered * 100) / n;\n String temp = String.format(\"Progress: %d / %d (%d%%)\", rendered, n, ratio);\n progressMessage.setText(temp);\n }",
"void k2h_set_debug_level_message();",
"private void displayMessage(String message) {\n TextView SummaryTextView = (TextView) findViewById(R.id.ordersummary_text_view);\n SummaryTextView.setText(message);\n }",
"private void displayInformation(String message) {\n informationTextArea.setText(EMPTY);\n informationTextArea.setText(message);\n }",
"private void setMessage(@StringRes Integer messageRes) {\n if (messageView != null) {\n messageView.setText(messageRes == null ? \"\" : getString(messageRes));\n }\n }",
"public void setMsgText(String msg){\n msgLabel.setText(msg);\n }",
"@Override\n\tpublic void debug(Message msg) {\n\n\t}",
"@Override\n public void debug(final Object message) {\n this.logger.debug(this.prepareDefaultMessage(message));\n }",
"public void debug(String message) {\n Bukkit.broadcast(ChatColor.YELLOW + \"[EasyRider] \" + message, \"easyrider.debug\");\n }",
"@Override\n\tpublic void displayMessage(LinphoneCore lc, String message) {\n\t\t\n\t}",
"public static void debugNotification(String title, String message, Context ctx){\n }",
"public static void printDebug(String message) {\n\t\tif (debugMode) {\r\n\t\t\tprintMessage(\"DEBUG: \" + message);\r\n\t\t}\r\n\t}",
"public static void displayMsg() {\n\t}",
"public void information(final String message) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinformations.setInformation(i18n.getMessage(message));\n\t\t\t}\n\t\t});\n\t}",
"public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\"?\":messageTxt));\r\n\t}",
"@Override\n public void updateView(Message msg)\n {\n \n }",
"public String getMsg(){\n return messageLabel.getText();\n }",
"public static void debug(String message) {\n if (mDebug)\n print(message);\n }",
"@Override\n public String getMessage()\n {\n return message;\n }",
"public static void debug(String message) {\n if (_debugMode) {\n System.out.println(\"[DEBUG] \" + message);\n }\n }",
"public void showMessage(String message);",
"private void setDetailedMessage(String message)\n\t\t{\n\t\t\tdetailedTextArea.setText(message);\n\t\t}",
"public void setShowDebugMessage(boolean showDebugMessage) {\r\n\t\tMessageManager.showDebugMessage = showDebugMessage;\r\n\t}",
"@Override\n public String getMessage() {\n return message;\n }",
"public void setMessage (String msg)\n\t{\n\t\tmessageArea.setText (msg);\n\t}",
"@Override\n public String getMessage() {\n return message;\n }",
"public String getMessage() { return message; }",
"@Override\n public String getMessage() {\n return MESSAGE;\n }",
"void setMessage (String message, boolean warning) {\n String time = String.format(\"%1$TH:%1$TM:%1$TS\", System.currentTimeMillis());\n if (warning) {\n messageLabel.setStyle(\"-fx-text-fill: rgba(160, 0, 0, 0.8);\");\n messageLabel.setText(\"[\" + time + \"]\\n\" + \"WARNING: \" + message);\n }\n else {\n messageLabel.setStyle(\"-fx-text-fill: #777777\");\n messageLabel.setText(\"[\" + time + \"]\\n\" + message);\n }\n }",
"@SuppressWarnings(\"static-method\")\n\tpublic void logDebugMessage(String message) {\n\t\tDebug.println(message);\n\t}",
"@Override\r\n\tpublic void getMessage() {\n\t\tSystem.out.println(\"getMessage() 출력...\");\r\n\t}",
"public void updateWarning(String title, String message) {\n\t\tJOptionPane.showMessageDialog(SubmitJobsWindow.frame, message, title,\n\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t}",
"@Override\n public void trackMessageDisplay(String messageId) {\n }",
"@Override\n public String getMessage()\n {\n return message;\n }",
"private void setupMessage() {\n \tmessage = new GLabel(\"\");\n \tmessage.setFont(\"SansSerif-12\");\n }",
"public void setMessage(CharSequence message) {\r\n\t\t//\tmMessage.setText(message);\r\n\t\t//\tmMessage.setMovementMethod(ScrollingMovementMethod.getInstance());\r\n\t\t}",
"private void showMessageOnScreen(String message) {\n JOptionPane.showMessageDialog(this, message);\n }",
"public void message() {\n JOptionPane.showMessageDialog(null,\n \"Task was deleted successfully.\",\n \"Message\", JOptionPane.INFORMATION_MESSAGE);\n }",
"private DebugMessage() {\n initFields();\n }",
"public void displayMessage(String message) {\n TextView orderSummaryTextView = (TextView) findViewById(R.id.result_text_view);\n orderSummaryTextView.setText(message);\n }"
]
| [
"0.6352497",
"0.635103",
"0.6208823",
"0.61473584",
"0.61280775",
"0.6117943",
"0.60898995",
"0.603556",
"0.6031318",
"0.59638405",
"0.59537715",
"0.5935538",
"0.58782524",
"0.582488",
"0.5820642",
"0.58103293",
"0.5809279",
"0.5801225",
"0.57797056",
"0.57774955",
"0.5775606",
"0.5760043",
"0.57418865",
"0.5729428",
"0.5719937",
"0.5711278",
"0.56965786",
"0.56932336",
"0.56702405",
"0.56492513",
"0.5646084",
"0.5645735",
"0.5634392",
"0.56268764",
"0.56174326",
"0.5615307",
"0.55942357",
"0.5593844",
"0.5593844",
"0.5586472",
"0.5583927",
"0.5566558",
"0.55623716",
"0.5555633",
"0.5555446",
"0.55552626",
"0.55474895",
"0.5546184",
"0.5541997",
"0.55410975",
"0.553406",
"0.5529132",
"0.5524895",
"0.5512996",
"0.5510926",
"0.55100846",
"0.5509289",
"0.5504834",
"0.5504834",
"0.5504834",
"0.5503586",
"0.5496064",
"0.5490953",
"0.5480528",
"0.5465873",
"0.5461292",
"0.5456098",
"0.5447469",
"0.54314506",
"0.54268366",
"0.542582",
"0.5411532",
"0.5409124",
"0.54088616",
"0.54045725",
"0.5390729",
"0.5388733",
"0.5383201",
"0.53824687",
"0.53792965",
"0.53787607",
"0.53706205",
"0.5370263",
"0.53624725",
"0.5359485",
"0.53541565",
"0.5345014",
"0.5340108",
"0.5339792",
"0.53302044",
"0.5325186",
"0.5322554",
"0.53220713",
"0.5321757",
"0.5319142",
"0.5316748",
"0.53157353",
"0.53102446",
"0.530523",
"0.5301214"
]
| 0.7961201 | 0 |
Metodo para consultar un turno por Id | @GetMapping("/turno/{id}")
public ResponseEntity<Turno> getTurno(@PathVariable("id") Long id)
{
Turno turn = turnoRepository.findOne(id);
if (turn == null)
{
return ResponseEntity.notFound().header("X-error", "No se encontro el paciente con el Id: "+id).build();
}
return ResponseEntity.ok(turn);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Turno consultarTurno();",
"public String getIdTurno() {\n return idTurno;\n }",
"Tourst selectByPrimaryKey(String id);",
"Tour selectByPrimaryKey(Integer id);",
"@ManyToOne\r\n\t@JoinColumn(name=\"idturno\")\r\n\tpublic Turno getTurno() {\r\n\t\treturn this.turno;\r\n\t}",
"Movimiento selectByPrimaryKey(Integer idMovCta);",
"TCpySpouse selectByPrimaryKey(Integer id);",
"Caiwu selectByPrimaryKey(Integer id);",
"Ltsprojectpo selectByPrimaryKey(Long id);",
"public Integer getIdLocacion();",
"@Override\r\n public Assunto buscarId(int id) {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"SELECT a FROM Assunto a WHERE a.id =:id\");\r\n query.setParameter(\"id\", id);\r\n \r\n List<Assunto> assunto = query.getResultList();\r\n if(assunto != null && assunto.size() > 0)\r\n return assunto.get(0);\r\n return null;\r\n }",
"Videogioco findVideogiocoById(int id);",
"NjOrderWork2 selectByPrimaryKey(String id);",
"public ModelGame findGameById () {\n Scanner input = new Scanner(System.in); // Create a Scanner object\n System.out.println(\"Enter the ID of the game you wish to return:\");\n int id = input.nextInt(); // Read user input of id\n for (ModelGame game : this.allGames) {\n if (game.getGameId() == id) {\n return game;\n }\n }\n return null;\n }",
"Prueba selectByPrimaryKey(Integer id);",
"MissionExecuteHistoryAwardPO selectByPrimaryKey(Long id);",
"Mallscroerule selectByPrimaryKey(Long id);",
"ChannelAli selectByPrimaryKey(Integer id);",
"public String turno(){\n return partida.turno();\n }",
"@Override\n public ArrayList<League> select(String id) {\n return null;\n }",
"@Override\n public Object recuperarElemento(Class clase, long id) {\n Query query = database.query();\n query.constrain(clase);\n query.descend(\"id\").constrain(id);\n ObjectSet result = query.execute();\n if (result.hasNext())\n return result.next();\n else return null;\n }",
"Object getDados(long id);",
"public o selectById(long id);",
"Member selectByPrimaryKey(Long id);",
"public Goal findGoalByPrimaryKey(Integer goalid_1);",
"public void findbyid() throws Exception {\n try {\n Con_contadorDAO con_contadorDAO = getCon_contadorDAO();\n List<Con_contadorT> listTemp = con_contadorDAO.getByPK( con_contadorT);\n\n con_contadorT= listTemp.size()>0?listTemp.get(0):new Con_contadorT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }",
"Powers selectByPrimaryKey(Integer id);",
"DetalleVenta buscarDetalleVentaPorId(Long id) throws Exception;",
"@Override\n\tpublic LidPOJO findLid(int id) throws SQLException {\n \tConnection connect = getConnection();\n\n\t\tString queryString = \"SELECT * FROM leden WHERE id = \" + id;\n\t\tResultSet res = getConnection().prepareStatement(queryString).executeQuery();\n\t\tLidPOJO lid = new LidPOJO();\n\t\twhile (res.next()) {\n\t\t\tlid = new LidPOJO(res.getString(\"naam\"), res.getString(\"achternaam\"), res.getInt(\"leeftijd\"), res.getInt(\"teamcode\"), res.getString(\"pasw\"));\n\t\t\tlid.setId(res.getInt(\"id\"));\n\t\t}\n\t\tconnect.close();\n\t\treturn lid;\n }",
"RespuestaRest<ParqueaderoEntidad> consultar(String id);",
"HuoDong selectByPrimaryKey(Integer id);",
"public Treatment consultarTratamiento(int id){\n Treatment tratamiento = null;\n String[] campos = {\"_id\",\"fecha\",\"tipoTratamiento\",\"hora\"};\n String[] args = {Integer.toString(id)};\n Cursor c = db.query(\"tratamiento\",campos,\"_id=?\",args,null,null,null);\n if(c.moveToFirst()){\n\n do{\n tratamiento = new Treatment(c.getInt(0),c.getString(1),c.getString(2));\n tratamiento.setHora(c.getString(3));\n }while(c.moveToNext());\n\n }\n return tratamiento;\n }",
"AccuseInfo selectByPrimaryKey(Integer id);",
"ChallengeTo findChallengeById(int id);",
"public Coche consultarUno(int id) {\n Coche coche =cochedao.consultarUno(id);\r\n \r\n return coche;\r\n }",
"Kaiwa selectByPrimaryKey(String maht);",
"TherapyAction selectByPrimaryKey(String guid);",
"SwipersDO selectByPrimaryKey(Integer id);",
"AgentLevel selectByPrimaryKey(Long id);",
"ProSchoolWare selectByPrimaryKey(String id);",
"public Porto getPorto(int id){\n Porto porto = null;\n Connection conn = null;\n try{\n conn = config.conectar();\n if (conn == null){\n return null;\n }\n \n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM Porto WHERE Id_Porto = ?\");\n ps.setInt(1, id); \n ResultSet rs = ps.executeQuery();\n \n if(rs.next()){\n porto = montaPorto(rs);\n }\n conn.close();\n \n } catch (SQLException e){\n System.out.println(e.getMessage());\n }\n return porto;\n }",
"public void leerPlanDieta(int id_paciente);",
"public Ruta findByPrimaryKey(int idRuta) throws RutaDaoException;",
"public Conge find( Integer idConge ) ;",
"public Object consultar(int id) throws Exception {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }",
"FactRoomLog selectByPrimaryKey(Integer id);",
"Abum selectByPrimaryKey(String id);",
"public Movement retrive(long id) {\n\t\tString selection = \"and \" + \"mov\" + \".\"\n\t\t\t\t+ SGFDataModelSQLiteHelper.COLUMN_MOVEMENT_ID + \"=\"\n\t\t\t\t+ Long.toString(id) + \" \";\n\t\tMovement mv = getAllMovements(selection).get(0);\n\t\treturn mv;\n\n\t}",
"@GetMapping(\"/byUserId/{id}\")\n public ApiResponse getTurnicet(@PathVariable UUID id){\n return turnicetService.getTurnicetById(id);\n }",
"public So_cdVO getById(String so_cd);",
"public Cursor getNivelId(String id){\n //Creamos el conector de bases de datos\n AdmiSQLiteOpenHelper admin = new AdmiSQLiteOpenHelper(this, \"administracion\", null, 1 );\n // Abre la base de datos en modo lectura y escritura\n SQLiteDatabase BasesDeDatos = admin.getWritableDatabase();\n Cursor consultaId = BasesDeDatos.rawQuery(\"SELECT id, nom_nivel, icono, activo FROM t_niveles WHERE activo = 1 AND id = \" + id, null);\n\n //consultaId.close();\n //BasesDeDatos.close();\n return consultaId;\n }",
"String getCampoId();",
"long getHeroId();",
"FctWorkguide selectByPrimaryKey(Long autoid);",
"@Override\n public Pessoa buscar(int id) {\n try {\n for (Pessoa p : pessoa.getPessoas()){\n if(p.getCodPessoa()== id){\n return p;\n }\n }\n } catch (Exception ex) {\n Logger.getLogger(AnimalDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"TradeRoute(int anId){\n //query database for an existing trade route with the passed ID\n String routeQuery = \"select market_1, market_2, id from trade_routes where id = \"+anId;\n ResultSet theExistingRoute = NRFTW_Trade.dBQuery(routeQuery);\n //if one exists\n //add the start and end points to the object\n //and set the object ID\n try{\n theExistingRoute.next();\n startPoint = theExistingRoute.getString(1);\n endPoint = theExistingRoute.getString(2);\n id = theExistingRoute.getInt(3);\n }catch(SQLException ex){\n System.out.println(ex);\n }\n //if not\n //do nothing\n }",
"public Aluguel read(int id) {\n MongoCursor<Document> cursor = collection.find().iterator();\r\n Aluguel aluguel = null;\r\n List<Aluguel> alugueis = new ArrayList<>();\r\n if (cursor.hasNext()) {\r\n aluguel = new Aluguel().fromDocument(cursor.next());\r\n alugueis.add(aluguel);\r\n }\r\n alugueis.forEach(a -> System.out.println(a.getId()));\r\n return aluguel;\r\n }",
"IceApp selectByPrimaryKey(Long id);",
"public void getCheque(Integer id) {\n\t\t\r\n\t}",
"public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }",
"Game getGameById(long id);",
"@Override\r\npublic Detalle_pedido read(int id) {\n\treturn detalle_pedidoDao.read(id);\r\n}",
"CraftAdvReq selectByPrimaryKey(Integer id);",
"@Override\n\tpublic List<Rol> readHola(int id) {\n\t\treturn rolDao.readHola(id);\n\t}",
"WayShopCateRoot selectByPrimaryKey(Integer id);",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();",
"int getId();"
]
| [
"0.7589397",
"0.67441326",
"0.64887625",
"0.6136924",
"0.5987909",
"0.59723014",
"0.59051704",
"0.58759975",
"0.5867644",
"0.58609",
"0.58348167",
"0.58140427",
"0.5798457",
"0.57975864",
"0.5788787",
"0.5771614",
"0.5766884",
"0.57652897",
"0.5750002",
"0.57422453",
"0.5741863",
"0.5735437",
"0.572025",
"0.57042736",
"0.5703708",
"0.56995785",
"0.56948084",
"0.5690965",
"0.56856674",
"0.56845623",
"0.5684546",
"0.56843454",
"0.56754476",
"0.5664329",
"0.5628366",
"0.559782",
"0.5597053",
"0.55880946",
"0.5585485",
"0.5580055",
"0.5570894",
"0.5569515",
"0.5565148",
"0.5557168",
"0.55511856",
"0.5543724",
"0.5535749",
"0.5528763",
"0.5523171",
"0.55213815",
"0.55184907",
"0.5517564",
"0.551509",
"0.55106276",
"0.550222",
"0.54999804",
"0.54988474",
"0.54986876",
"0.5496409",
"0.5495676",
"0.54936373",
"0.5492495",
"0.5490826",
"0.54807085",
"0.54761136",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043",
"0.54671043"
]
| 0.60808164 | 4 |
Represents a reflection helper to support multiple versions of NMS | public interface SignReflection {
/**
* Reads an input packet of sign being updated
*
* @param packet The input packet of the sign being updated
* @return The lines stored in the input packet
*/
String[] readLines(Object packet);
/**
* Generates the sign editor packet
*
* @param location The location of the sign for the player's world or the game world
* @return The output packet that includes the required information to open the sign editor
*/
Object openSignEditor(Location location);
/**
* Update sign lines to the player
*
* @param player The player that you aim to update the sign for
* @param location The location of the sign in the player's world
* @param lines The new values of the lines of the sign
*/
void updateSignToPlayer(Player player, Location location, String[] lines);
/**
* Send a block change that sets a certain block to be a sign.
* Legacy and latest versions of Bukkit API includes different type of sign Material
*
* @param player The player to send the block change to
* @param location The location of the block
* @param data Raw data in bytes about the block
*/
void sendSignChangeToPlayer(Player player, Location location, byte data);
/**
* Sends a packet to the player using NMS
*
* @param player The player that you are going to send the packet to
* @param packet The object of the output packet
*/
void sendPacketToPlayer(Player player, Object packet);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private ReflectionUtil()\n {\n }",
"@ReflectiveMethod(name = \"t_\", types = {})\n public void t_(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"@Test\n public void test01()\n {\n MetaClass.forClass(Class, reflectorFactory)\n }",
"public interface ExtensionInterface {\n\n public static final Object CONST_class =\n \"Symfony\\\\Component\\\\CssSelector\\\\XPath\\\\Extension\\\\ExtensionInterface\";\n\n @ConvertedMethod\n public Object getNodeTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getCombinationTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getFunctionTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getPseudoClassTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getAttributeMatchingTranslators(RuntimeEnv env, Object... args);\n\n @ConvertedMethod\n public Object getName(RuntimeEnv env, Object... args);\n\n static final ReflectionClassData runtimeConverterReflectionData =\n ReflectionClassData.builder()\n .setName(\n \"Symfony\\\\Component\\\\CssSelector\\\\XPath\\\\Extension\\\\ExtensionInterface\")\n .setLookup(ExtensionInterface.class, MethodHandles.lookup())\n .setLocalProperties()\n .setFilename(\n \"vendor/symfony/css-selector/XPath/Extension/ExtensionInterface.php\")\n .get();\n}",
"public interface AccessibleClassParser\n{\n /**\n * Parses a Java-loaded class object to an AccessibleClass\n * \n * @param clazz\n * the class to parse\n * @return the parsed AccessibleClass\n */\n AccessibleClass parseAccessibleClass(Class<?> clazz);\n\n /**\n * Check whever the provided class name is said to be primitive\n * (Primitive_Single) or not (Object_Single)\n * \n * @param className\n * the class name\n * @return true if the type is primitive, false otherwise\n * @deprecated @see {@link PrimitiveTypeUtil}\n */\n @Deprecated\n boolean isPrimitiveType(String className);\n\n /**\n * Give the setter method name according to the field name\n * \n * @param name\n * the filed name\n * @return the setter name\n */\n String attributeToSetter(String name);\n\n /**\n * Give the getter method name according to the field name\n * \n * @param name\n * the field name\n * @return the getter name\n */\n String attributeToGetter(String name);\n\n /**\n * Give the getter method name according to the field name for boolean\n * values (is*())\n * \n * @param name\n * the boolean field name\n * @return the getter name\n */\n String booleanAttributeToGetter(String arg0);\n}",
"public interface StandardTypesLocalService {\n BigInteger getNewBigInteger(BigInteger bi);\n BigInteger[] getNewBigIntegerArray(BigInteger[] bia);\n \n BigDecimal getNewBigDecimal(BigDecimal bd);\n BigDecimal[] getNewBigDecimalArray(BigDecimal[] bda);\n\n Calendar getNewCalendar(Calendar c);\n Calendar[] getNewCalendarArray(Calendar[] ca);\n \n Date getNewDate(Date d);\n Date[] getNewDateArray(Date[] da);\n\n QName getNewQName(QName qname);\n QName[] getNewQNameArray(QName[] qnames);\n \n URI getNewURI(URI uri);\n URI[] getNewURIArray(URI[] uris);\n \n XMLGregorianCalendar getNewXMLGregorianCalendar(XMLGregorianCalendar xgcal);\n XMLGregorianCalendar[] getNewXMLGregorianCalendarArray(XMLGregorianCalendar[] xgcal);\n \n Duration getNewDuration(Duration d);\n Duration[] getNewDurationArray(Duration[] da);\n \n Object getNewObject(Object obj);\n Object[] getNewObjectArray(Object[] objs);\n \n Image getNewImage(Image img);\n Image[] getNewImageArray(Image[] imgs);\n \n DataHandler getNewDataHandler(DataHandler dh);\n DataHandler[] getNewDataHandlerArray(DataHandler[] dha);\n\n Source getNewSource(Source src);\n Source[] getNewSourceArray(Source[] srcs);\n \n UUID getNewUUID(UUID uuid);\n UUID[] getNewUUIDArray(UUID[] uuids);\n}",
"public interface Reflection {\n\t/**\n\t * Creates the template which specifies which constructor to \n\t * call upon. The specifies the classes of the arguments which\n\t * need to be given to the constructor.\n\t */\n\t@SuppressWarnings(\"unchecked\")\n\tpublic Class[] getTemplate();\n\t\n\t/**\n\t * Create the object array which serves as the parameters \n\t * to construct another object of this type.\n\t */\n\tpublic Object[] getConstructorArgs ();\n}",
"private static void reflection() throws Exception {\n Class cl = Class.forName(\"com.videobet.sandbox.Person\");\r\n Person p = (Person)cl.getConstructor(new Class[] {String.class, String.class})\r\n .newInstance(\"Smith\", \"John\");\r\n System.out.print(cl.getMethod(\"getFullName\").invoke(p));\r\n }",
"@ReflectiveMethod(name = \"d\", types = {})\n public void d(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"public interface Meta {\r\n\r\n /**\r\n * Get the Type of the OSM object\r\n * \r\n * @return the Type\r\n */\r\n @NotNull\r\n default Type getType() {\r\n throw new IllegalArgumentException(\"getType is unsupported\");\r\n }\r\n\r\n /**\r\n * Get the OSM elements tags\r\n * \r\n * @return a Map of KV tupels\r\n */\r\n @Nullable\r\n default Map<String, String> getTags() {\r\n throw new IllegalArgumentException(\"getTags is unsupported\");\r\n }\r\n\r\n /**\r\n * Get the OSM display name\r\n * \r\n * @return the OSM display name\r\n */\r\n String getUser();\r\n\r\n /**\r\n * Get the OSM id of the object\r\n * \r\n * @return the OSM id of the object\r\n */\r\n long getId();\r\n\r\n /**\r\n * Get the version of the object\r\n * \r\n * @return the version of the object\r\n */\r\n long getVersion();\r\n\r\n /**\r\n * Get the changeset id for this object\r\n * \r\n * @return the changeset id for this object\r\n */\r\n long getChangeset();\r\n\r\n /**\r\n * Get the timestamp (when this version of the object was created)\r\n * \r\n * @return the timestamp in seconds since the Unic EPOCH\r\n */\r\n long getTimestamp();\r\n\r\n /**\r\n * Get the state of the object\r\n * \r\n * @return a State\r\n */\r\n @NotNull\r\n State getState();\r\n\r\n /**\r\n * If the object is a Way check if it is closed\r\n * \r\n * @return true if the way is closed\r\n */\r\n boolean isClosed();\r\n\r\n /**\r\n * If the object is a Way return the number of way nodes\r\n * \r\n * @return the number of way nodes\r\n */\r\n int getNodeCount();\r\n\r\n /**\r\n * If the object is a Node return the number of ways it is a member of\r\n * \r\n * @return the number of ways the Node is a member of\r\n */\r\n int getWayCount();\r\n\r\n /**\r\n * If the object is a Relation return the number of members it has\r\n * \r\n * If not implemented this returns -1 which should always evaluate to false\r\n * \r\n * @return the number of members the Relation has\r\n */\r\n default int getMemberCount() {\r\n return Range.UNINITALIZED;\r\n }\r\n\r\n /**\r\n * If the object is a Way and closed return the area it covers\r\n * \r\n * @return the area it covers in m^2\r\n */\r\n int getAreaSize();\r\n\r\n /**\r\n * If the object is a Way return its length\r\n * \r\n * @return the the length in m\r\n */\r\n int getWayLength();\r\n\r\n /**\r\n * Get any roles the element has in Relations\r\n * \r\n * @return a Collection containing the roles\r\n */\r\n @NotNull\r\n Collection<String> getRoles();\r\n\r\n /**\r\n * Check if the element is selected\r\n * \r\n * @return true if selected\r\n */\r\n boolean isSelected();\r\n\r\n /**\r\n * Check if a relation has a member with role\r\n * \r\n * @param role the role\r\n * @return true if there is a member with the role\r\n */\r\n boolean hasRole(@NotNull String role);\r\n\r\n /**\r\n * Get a preset from a path specification\r\n * \r\n * @param presetPath the path\r\n * @return an Object that should be a instance of a preset for the syste,\r\n */\r\n @Nullable\r\n Object getPreset(@NotNull String presetPath);\r\n\r\n /**\r\n * Check if the object matches with a preset or a preset group\r\n * \r\n * @param preset the path to the preset or group\r\n * @return true if the object matches\r\n */\r\n boolean matchesPreset(@NotNull Object preset);\r\n\r\n /**\r\n * Check if the element is incomplete (this is not defined in the documentation)\r\n * \r\n * @return true if incomplete\r\n */\r\n boolean isIncomplete();\r\n\r\n /**\r\n * Check if the element is in the current view\r\n * \r\n * @return true if in view\r\n */\r\n boolean isInview();\r\n\r\n /**\r\n * Check if the element and all member elements is in the current view\r\n * \r\n * @return true if in view\r\n */\r\n boolean isAllInview();\r\n\r\n /**\r\n * Check if the element is in the downloaded areas\r\n * \r\n * @return true if in view\r\n */\r\n boolean isInDownloadedArea();\r\n\r\n /**\r\n * Check if the element and all member elements is in the downloaded areas\r\n * \r\n * @return true if in view\r\n */\r\n boolean isAllInDownloadedArea();\r\n\r\n /**\r\n * Check if the current element is a child of an element\r\n * \r\n * @param type type of the element\r\n * @param element the meta interface to the element\r\n * @param parents a List of elements\r\n * @return true if element is a child\r\n */\r\n default boolean isChild(@NotNull Type type, @NotNull Meta element, @NotNull List<Object> parents) {\r\n return false;\r\n }\r\n\r\n /**\r\n * Check if the current element is a parent of an element\r\n * \r\n * @param type type of the element\r\n * @param meta the meta interface to the element\r\n * @param children a List of elements\r\n * @return true if element is a parent\r\n */\r\n default boolean isParent(@NotNull Type type, @NotNull Meta meta, @NotNull List<Object> children) {\r\n return false;\r\n }\r\n\r\n /**\r\n * Return a List of Elements that match the condition c\r\n * \r\n * This is necessary so that we can cache these results in the caller\r\n * \r\n * @param c the Condition\r\n * @return a List of elements\r\n */\r\n @NotNull\r\n default List<Object> getMatchingElements(@NotNull Condition c) {\r\n return new ArrayList<>();\r\n }\r\n \r\n /**\r\n * Get an Meta implementing object \r\n * \r\n * @param o imput object\r\n * @return returns something that implements this interface\r\n */\r\n @NotNull\r\n Meta wrap(Object o);\r\n}",
"public interface MSK2Constants {\n @Metadata(description = \"The operation we want to perform\", javaType = \"String\")\n String OPERATION = \"CamelAwsMSKOperation\";\n @Metadata(description = \"The cluster name filter for list operation\", javaType = \"String\")\n String CLUSTERS_FILTER = \"CamelAwsMSKClusterFilter\";\n @Metadata(description = \"The cluster name for list and create operation\", javaType = \"String\")\n String CLUSTER_NAME = \"CamelAwsMSKClusterName\";\n @Metadata(description = \"The cluster arn for delete operation\", javaType = \"String\")\n String CLUSTER_ARN = \"CamelAwsMSKClusterArn\";\n @Metadata(description = \"The Kafka for the cluster during create operation\", javaType = \"String\")\n String CLUSTER_KAFKA_VERSION = \"CamelAwsMSKClusterKafkaVersion\";\n @Metadata(description = \"The number of nodes for the cluster during create operation\", javaType = \"Integer\")\n String BROKER_NODES_NUMBER = \"CamelAwsMSKBrokerNodesNumber\";\n @Metadata(description = \"The Broker nodes group info to provide during the create operation\",\n javaType = \"software.amazon.awssdk.services.kafka.model.BrokerNodeGroupInfo\")\n String BROKER_NODES_GROUP_INFO = \"CamelAwsMSKBrokerNodesGroupInfo\";\n}",
"@ReflectiveMethod(name = \"v\", types = {})\n public void v(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"public Reflect() {\n this(MethodReflectorFactory.class);\n }",
"boolean isReflectable();",
"public interface ospector\n{\n\n public abstract void addAbstractTypeResolver(AbstractTypeResolver abstracttyperesolver);\n\n public abstract void addBeanDeserializerModifier(BeanDeserializerModifier beandeserializermodifier);\n\n public abstract void addBeanSerializerModifier(BeanSerializerModifier beanserializermodifier);\n\n public abstract void addDeserializationProblemHandler(DeserializationProblemHandler deserializationproblemhandler);\n\n public abstract void addDeserializers(Deserializers deserializers);\n\n public abstract void addKeyDeserializers(KeyDeserializers keydeserializers);\n\n public abstract void addKeySerializers(Serializers serializers);\n\n public abstract void addSerializers(Serializers serializers);\n\n public abstract void addTypeModifier(TypeModifier typemodifier);\n\n public abstract void addValueInstantiators(ValueInstantiators valueinstantiators);\n\n public abstract void appendAnnotationIntrospector(AnnotationIntrospector annotationintrospector);\n\n public abstract w getMapperVersion();\n\n public abstract s getOwner();\n\n public abstract TypeFactory getTypeFactory();\n\n public abstract void insertAnnotationIntrospector(AnnotationIntrospector annotationintrospector);\n\n public abstract boolean isEnabled(f f);\n\n public abstract boolean isEnabled(i i);\n\n public abstract boolean isEnabled(n n);\n\n public abstract boolean isEnabled(DeserializationFeature deserializationfeature);\n\n public abstract boolean isEnabled(MapperFeature mapperfeature);\n\n public abstract boolean isEnabled(SerializationFeature serializationfeature);\n\n public transient abstract void registerSubtypes(NamedType anamedtype[]);\n\n public transient abstract void registerSubtypes(Class aclass[]);\n\n public abstract void setClassIntrospector(ClassIntrospector classintrospector);\n\n public abstract void setMixInAnnotations(Class class1, Class class2);\n}",
"boolean hasReflectionRequest();",
"Notentyp createNotentyp();",
"@ReflectiveMethod(name = \"m\", types = {})\n public void m(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"public interface Meta {\r\n\r\n\t/**\r\n\t * Lists method names exposed by endpoint.\r\n\t *\r\n\t * @return method name list\r\n\t */\r\n\t@XRMethod(value = \"system.listMethods\", help = \"List all method names available\")\r\n\tList<String> listMethods();\r\n\r\n\t/**\r\n\t * Provides help/usage information for a method.\r\n\t *\r\n\t * @param methodName\r\n\t * name of the method\r\n\t * @return help/usage information for a method\r\n\t */\r\n\t@XRMethod(value = \"system.help\", help = \"Returns usage information for a method\")\r\n\tString help(String methodName);\r\n\r\n\t// @XRMethod(\"system.multicall\")\r\n\t// List multicall(List calls);\r\n\r\n\t/**\r\n\t * Checks if method is supported by endpoint or not.\r\n\t *\r\n\t * @param methodName\r\n\t * name of the method\r\n\t * @return true if method is supported by endpoint, false otherwise\r\n\t */\r\n\t@XRMethod(value = \"system.supports\", help = \"Returns true if method is supported, false otherwise\")\r\n\tboolean supports(String methodName);\r\n}",
"public org.python.Object __getattribute__(java.lang.String name);",
"public static void main(String[] args) throws ClassNotFoundException, IllegalAccessException, InstantiationException, NoSuchMethodException, InvocationTargetException, NoSuchFieldException {\n Class clazz = Test.class;\n Class clazz3 = Class.forName(\"Reflection.Test\");\n\n Test test = (Test) clazz.newInstance();\n\n // вызвать метод по имени у заданного объекта\n Method method = clazz.getMethod(\"foo\");\n System.out.println(method.toString());\n method.invoke(test);\n\n // установить поле по имени у заданного объекта\n Field field = clazz.getDeclaredField(\"num\");\n field.setAccessible(true);\n field.set(test, 100);\n System.out.println(test);\n\n // выводим название пакета\n Package pack = clazz.getPackage();\n System.out.println(\"package \" + pack.getName() + \";\");\n\n // начинаем декларацию класса с модификаторов\n int modifiers = clazz.getModifiers();\n System.out.print(getModifiers(modifiers));\n // выводим название класса\n System.out.print(\"class \" + clazz.getSimpleName() + \" \");\n\n // выводим название родительского класса\n System.out.print(\"extends \" + clazz.getSuperclass().getSimpleName() + \" \");\n\n // выводим интерфейсы, которые реализует класс\n Class[] interfaces = clazz.getInterfaces();\n for (int i = 0, size = interfaces.length; i < size; i++) {\n System.out.print(i == 0 ? \"implements \" : \", \");\n System.out.print(interfaces[i].getSimpleName());\n }\n System.out.println(\" {\");\n\n // выводим поля класса\n Field[] fields = clazz.getDeclaredFields();\n for (Field f : fields) {\n System.out.println(\"\\t\" + getModifiers(f.getModifiers()) +\n getType(f.getType()) + \" \" + f.getName() + \";\");\n }\n\n // выводим методы класса\n Method[] methods = clazz.getDeclaredMethods();\n for (Method m : methods) {\n // получаем аннотации\n Annotation[] annotations = m.getAnnotations();\n System.out.print(\"\\t\");\n for (Annotation a : annotations) {\n System.out.print(\"@\" + a.annotationType().getSimpleName() + \" \");\n }\n System.out.println();\n\n System.out.print(\"\\t\" + getModifiers(m.getModifiers()) +\n getType(m.getReturnType()) + \" \" + m.getName() + \"(\");\n System.out.print(getParameters(m.getParameterTypes()));\n System.out.println(\") { }\");\n }\n\n System.out.println(\"}\");\n }",
"public interface Fqn {\n\n Fqn DECODE_NAMESPACE = Fqn.newInstance(\"decode\");\n Fqn RANGE = Fqn.newInstance(DECODE_NAMESPACE, ElementName.newInstanceFromMangledName(\"range\"));\n Fqn VARUINT = Fqn.newInstance(DECODE_NAMESPACE, ElementName.newInstanceFromMangledName(\"varuint\"));\n Fqn ARRAY = Fqn.newInstance(DECODE_NAMESPACE, ElementName.newInstanceFromMangledName(\"array\"));\n Fqn UNIT = Fqn.newInstance(DECODE_NAMESPACE, ElementName.newInstanceFromMangledName(\"unit\"));\n Fqn OPTION = Fqn.newInstance(DECODE_NAMESPACE, ElementName.newInstanceFromMangledName(\"option\"));\n Fqn OR = Fqn.newInstance(DECODE_NAMESPACE, ElementName.newInstanceFromMangledName(\"or\"));\n\n static Fqn newInstance(Fqn fqn, ElementName last) {\n List<ElementName> parts = Lists.newArrayList(fqn.getParts());\n parts.add(last);\n return Fqn.newInstance(parts);\n }\n\n static Fqn newInstance(String sourceText) {\n return newInstance(Stream.of(sourceText.split(Pattern.quote(\".\")))\n .map(ElementName::newInstanceFromSourceName).collect(Collectors.toList()));\n }\n\n static Fqn newInstance(List<ElementName> parts) {\n return new FqnImpl(parts);\n }\n\n List<ElementName> getParts();\n\n default String mangledNameString() {\n return getParts().stream().map(ElementName::mangledNameString).collect(Collectors.joining(\".\"));\n }\n\n default ElementName last() {\n return getParts().get(getParts().size() - 1);\n }\n\n Fqn copyDropLast();\n\n default Integer size() {\n return getParts().size();\n }\n\n default Boolean isEmpty() {\n return getParts().isEmpty();\n }\n\n}",
"public void test_sf_937810() throws IllegalAccessException {\n Field[] specs = OntModelSpec.class.getDeclaredFields();\n \n for (int i = 0; i < specs.length; i++) {\n if (Modifier.isPublic( specs[i].getModifiers()) && \n Modifier.isStatic( specs[i].getModifiers()) &&\n specs[i].getType().equals( OntModelSpec.class )) {\n OntModelSpec s = (OntModelSpec) specs[i].get( null );\n assertNotNull( s.getDescription() );\n }\n }\n }",
"PropertyInfo getPropertyInfo();",
"private ReflectionRequest(Builder builder) {\n super(builder);\n }",
"public Framework_annotation<T> build_normal();",
"InstrumentedType.WithFlexibleName represent(TypeDescription typeDescription);",
"@ReflectionDisable\npublic interface BaseObjectNominal extends BaseObjectNoOwnProperties {\n\n\t@Override\n\t@ReflectionHidden\n\tdefault String baseClass() {\n\n\t\treturn this.getClass().getSimpleName();\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitive<?> name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final BasePrimitiveString name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final CharSequence name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseProperty baseFindProperty(final String name, final BaseObject stop) {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BaseObject name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final BasePrimitive<?> name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final BasePrimitiveString name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\tdefault BaseObject baseGet(final CharSequence name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject baseGet(final String name, final BaseObject defaultValue) {\n\n\t\treturn defaultValue;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BaseObject basePrototype() {\n\n\t\treturn null;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveNumber baseToNumber() {\n\n\t\treturn BasePrimitiveNumber.NAN;\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault BasePrimitiveString baseToString() {\n\n\t\treturn Base.forString(this.toString());\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault Object baseValue() {\n\n\t\treturn this;\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BaseObject name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitive<?> name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\t@ReflectionHidden\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final BasePrimitiveString name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx,\n\t\t\tfinal CharSequence name,\n\t\t\tfinal BaseObject originalIfKnown,\n\t\t\tfinal BaseObject defaultValue,\n\t\t\tfinal ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final int index, final BaseObject originalIfKnown, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n\t@Override\n\tdefault ExecStateCode vmPropertyRead(final ExecProcess ctx, final String name, final BaseObject defaultValue, final ResultHandler store) {\n\n\t\treturn store.execReturn(ctx, defaultValue);\n\t}\n\n}",
"public static String getRuntimeMetadata() {\n StringBuilder s = new StringBuilder();\n String version;\n\n version = kotlinVersion();\n if (version != null) {\n s.append(\",kt=\").append(version);\n }\n\n version = scalaVersion();\n if (version != null) {\n s.append(\",sc=\").append(version);\n }\n\n version = clojureVersion();\n if (version != null) {\n s.append(\",clj=\").append(version);\n }\n\n version = groovyVersion();\n if (version != null) {\n s.append(\",gy=\").append(version);\n }\n\n version = jRubyVersion();\n if (version != null) {\n s.append(\",jrb=\").append(version);\n }\n\n return s.toString();\n }",
"private NamespaceHelper() {}",
"Object yangAugmentedInfo(Class classObject);",
"Object yangAugmentedInfo(Class classObject);",
"public String getNameForReflection() {\n return this.mNameForReflection;\n }",
"public abstract Member mo23408O();",
"public interface ObjectPropConstants {\n\n /**\n * A property key for models used to store the last-modified time stamp.\n * <p>\n * Type: A time stamp, encoded using ISO 8601. (Can be parsed using {@code java.time.Instant}.)\n * </p>\n */\n String MODEL_FILE_LAST_MODIFIED = \"tcs:modelFileLastModified\";\n /**\n * A property key for the orientation of a vehicle on a path.\n * <p>\n * Type: String (any string - details currently not specified)\n * </p>\n *\n * @deprecated Will be removed.\n */\n @Deprecated\n @ScheduledApiChange(when = \"5.0\", details = \"Will be removed.\")\n String PATH_TRAVEL_ORIENTATION = \"tcs:travelOrientation\";\n /**\n * A property key for {@link VisualLayout} instances used to provide a hint for which\n * {@link LocationTheme} implementation should be used for rendering locations in the\n * visualization client.\n * <p>\n * Type: String (the fully qualified class name of an implementation of {@link LocationTheme})\n * </p>\n *\n * @deprecated The theme to be used is now set directly via configuration.\n */\n @Deprecated\n @ScheduledApiChange(when = \"5.0\", details = \"Will be removed.\")\n String LOCATION_THEME_CLASS = \"tcs:locationThemeClass\";\n /**\n * A property key for {@link LocationType} instances used to provide a hint for the visualization\n * how locations of the type should be visualized.\n * <p>\n * Type: String (any element of {@link LocationRepresentation})\n * </p>\n */\n String LOCTYPE_DEFAULT_REPRESENTATION = \"tcs:defaultLocationTypeSymbol\";\n /**\n * A property key for {@link Location} instances used to provide a hint for the visualization how\n * the locations should be visualized.\n * <p>\n * Type: String (any element of {@link LocationRepresentation})\n * </p>\n */\n String LOC_DEFAULT_REPRESENTATION = \"tcs:defaultLocationSymbol\";\n /**\n * A property key for {@link Vehicle} instances to store a preferred initial position to be used\n * by simulating communication adapter, for example.\n * <p>\n * Type: String (any name of a {@link Point} existing in the same model.\n * </p>\n * \n * @deprecated Use vehicle driver-specific properties to specify the vehicle's initial position.\n */\n @Deprecated\n @ScheduledApiChange(when = \"5.0\", details = \"Will be removed.\")\n String VEHICLE_INITIAL_POSITION = \"tcs:initialVehiclePosition\";\n /**\n * A property key for {@link VisualLayout} instances used to provide a hint for which\n * {@link VehicleTheme} implementation should be used for rendering vehicles in the visualization\n * client.\n * <p>\n * Type: String (the fully qualified class name of an implementation of {@link VehicleTheme})\n * </p>\n *\n * @deprecated The theme to be used is now set directly via configuration.\n */\n @Deprecated\n @ScheduledApiChange(when = \"5.0\", details = \"Will be removed.\")\n String VEHICLE_THEME_CLASS = \"tcs:vehicleThemeClass\";\n}",
"private ReflectionResponse(Builder builder) {\n super(builder);\n }",
"@DSSafe(DSCat.SAFE_OTHERS)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.362 -0500\", hash_original_method = \"1F62AD2938072A93E19EAFFCDA555D07\", hash_generated_method = \"E522C6EE17CC779935F0D04DE1F1F350\")\n \npublic NamespaceSupport ()\n {\n reset();\n }",
"public interface DNBuilder extends SLCSServerComponent {\n\n /**\n * Returns the DN based on the attributes stored in the Map.\n * \n * @param attributes\n * The map of attributes name-value.\n * @return The constructed DN.\n * @throws SLCSException\n * if it is not possible to create a DN based on the attributes\n * map.\n */\n public String createDN(Map attributes) throws SLCSException;\n\n /**\n * Returns the DN based on the List of Attributes.\n * \n * @param attributes\n * The List of Attributes.\n * @return The constructed DN.\n * @throws SLCSException\n * if it is not possible to create a DN based on the attributes.\n * @see org.glite.slcs.attribute.Attribute\n */\n public String createDN(List attributes) throws SLCSException;\n\n}",
"public interface CwmDimensionedObjectClass extends javax.jmi.reflect.RefClass {\n /**\n * The default factory operation used to create an instance object.\n * \n * @return The created instance object.\n */\n public CwmDimensionedObject createCwmDimensionedObject();\n\n /**\n * Creates an instance object having attributes initialized by the passed values.\n * \n * @param name\n * An identifier for the ModelElement within its containing Namespace.\n * @param visibility\n * Specifies extent of the visibility of the ModelElement within its owning Namespace.\n * @param ownerScope\n * Specifies whether the Feature appears in every instance of the Classifier or whether it appears only once\n * for the entire Classifier.\n * @param changeability\n * Specifies whether the value may be modified after the object is created.\n * @param multiplicity\n * The possible number of data values for the feature that may be held by an instance. The cardinality of the\n * set of values is an implicit part of the feature. In the common case in which the multiplicity is 1..1,\n * then the feature is a scalar (i.e., it holds exactly one value).\n * @param ordering\n * Specifies whether the set of instances is ordered. The ordering must be determined and maintained by\n * Operations that add values to the feature. This property is only relevant if the multiplicity is greater\n * than one.\n * @param targetScope\n * Specifies whether the targets are ordinary Instances or are Classifiers.\n * @param initialValue\n * An Expression specifying the value of the attribute upon initialization. It is meant to be evaluated at\n * the time the object is initialized. (Note that an explicit constructor may supersede an initial value.)\n * @return The created instance object.\n */\n public CwmDimensionedObject createCwmDimensionedObject( java.lang.String name,\n org.pentaho.pms.cwm.pentaho.meta.core.VisibilityKind visibility,\n org.pentaho.pms.cwm.pentaho.meta.core.ScopeKind ownerScope,\n org.pentaho.pms.cwm.pentaho.meta.core.ChangeableKind changeability,\n org.pentaho.pms.cwm.pentaho.meta.core.CwmMultiplicity multiplicity,\n org.pentaho.pms.cwm.pentaho.meta.core.OrderingKind ordering,\n org.pentaho.pms.cwm.pentaho.meta.core.ScopeKind targetScope,\n org.pentaho.pms.cwm.pentaho.meta.core.CwmExpression initialValue );\n}",
"AbstractClassMetaData getMetaDataForClass(Class cls, PackageMetaData pmd, ClassLoaderResolver clr);",
"ClassType memberClassNamed(String name);",
"public interface InstanceFieldInitializationInfo {\n\n default boolean isArgumentInitializationInfo() {\n return false;\n }\n\n default InstanceFieldArgumentInitializationInfo asArgumentInitializationInfo() {\n return null;\n }\n\n default boolean isTypeInitializationInfo() {\n return false;\n }\n\n default InstanceFieldTypeInitializationInfo asTypeInitializationInfo() {\n return null;\n }\n\n default boolean isSingleValue() {\n return false;\n }\n\n default SingleValue asSingleValue() {\n return null;\n }\n\n default boolean isUnknown() {\n return false;\n }\n\n InstanceFieldInitializationInfo rewrittenWithLens(\n AppView<AppInfoWithLiveness> appView, GraphLens lens);\n}",
"boolean hasReflectionResponse();",
"public interface IDynamicAttributeService extends IZynapService {\n\n /**\n * Get active attributes for the given node type.\n * <br/> If attributeTypes is not provided will return all.\n * <br/> If searchableOnly is true will only return active searchable dynamic attributes.\n *\n * @param nodeType\n * @param searchableOnly true or false\n * @param attributeTypes can be null\n * @return Collection of DynamicAttribute objects\n */\n Collection<DynamicAttribute> getActiveAttributes(String nodeType, boolean searchableOnly, String[] attributeTypes);\n\n Collection<DynamicAttribute> getActiveAttributes(String nodeType, boolean searchableOnly, String[] attributeTypes, boolean includeCalcFields);\n\n /**\n * Get active attributes for the given node types.\n * <br/> If attributeTypes is not provided will return all.\n * <br/> If searchableOnly is true will only return active searchable dynamic attributes.\n *\n * @param nodeTypes nodeTypes the attributes are relevant for\n * @param searchableOnly true or false\n * @param attributeTypes can be null\n * @return Collection of DynamicAttribute objects\n */\n Collection<DynamicAttributeDTO> listActiveAttributes(String[] nodeTypes, boolean searchableOnly, String[] attributeTypes);\n\n List<DynamicAttributeDTO> listAllAttributes(String nodeType);\n\n /**\n * Finds the attributes for the given node type (active or not.)\n *\n * @param nodeType one of {@link com.zynap.talentstudio.organisation.Node#POSITION_UNIT_TYPE_ }\n * or {@link com.zynap.talentstudio.organisation.Node#SUBJECT_UNIT_TYPE_}\n * @return Collection of DynamicAttribute objects\n */\n Collection<DynamicAttribute> getAllAttributes(String nodeType);\n\n /**\n * Finds the searchable active attributes for the given node type.\n *\n * @param nodeType one of {@link com.zynap.talentstudio.organisation.Node#POSITION_UNIT_TYPE_ }\n * or {@link com.zynap.talentstudio.organisation.Node#SUBJECT_UNIT_TYPE_}\n * @return Collection of DynamicAttribute objects\n */\n Collection<DynamicAttribute> getSearchableAttributes(String nodeType);\n\n /**\n * Finds the active attributes of a given attribute type for the given node type.\n *\n * @param nodeType one of {@link com.zynap.talentstudio.organisation.Node#POSITION_UNIT_TYPE_ }\n * or {@link com.zynap.talentstudio.organisation.Node#SUBJECT_UNIT_TYPE_}\n * @param attributeType type of attribute required, may be any listed as constants in the DynamicAttribute class\n * such as {@link DynamicAttribute#DA_TYPE_NUMBER}\n * @return Collection of DynamicAttribute objects\n */\n Collection getTypedAttributes(String nodeType, String attributeType);\n\n /**\n * Find active attributes for the given node type.\n *\n * @param nodeType one of {@link com.zynap.talentstudio.organisation.Node#POSITION_UNIT_TYPE_ }\n * or {@link com.zynap.talentstudio.organisation.Node#SUBJECT_UNIT_TYPE_}\n * @param includeCalculatedAttributes\n * @return Collection of DynamicAttribute objects\n */\n Collection<DynamicAttribute> getAllActiveAttributes(String nodeType, boolean includeCalculatedAttributes);\n\n /**\n * Check if attribute has associated values.\n *\n * @param id The attribute id\n * @return true or false\n */\n boolean usedByNode(Long id);\n\n /**\n * Find attribute value file by id.\n *\n * @param id\n * @return AttributeValueFile\n */\n AttributeValueFile findAttributeValueFile(Long id);\n\n /**\n * Delete the dynamic attribute.\n *\n * @param attributeId The attribute id\n * @throws TalentStudioException\n */\n void delete(Long attributeId) throws TalentStudioException;\n\n /**\n * Get object based on the value of the attribute value (which will be the id) and the dynamic attribute type.\n *\n * @param attributeValue\n * @return The IDomainObject or null\n */\n IDomainObject getDomainObject(AttributeValue attributeValue);\n\n /**\n * Get label for object based on the value of the attribute value and the dynamic attribute type.\n * <br/> Used to find labels for node type and updated by questions.\n *\n * @param attributeValue\n * @return The label or empty string\n */\n String getDomainObjectLabel(AttributeValue attributeValue);\n\n /**\n * Get label for object based on the value of the attribute value and the dynamic attribute type.\n * <br/> Used to find labels for node type and updated by questions.\n *\n * @param id\n * @param dynamicAttribute\n * @return The label or empty string\n */\n String getDomainObjectLabel(String id, DynamicAttribute dynamicAttribute);\n\n /**\n * Get node label.\n *\n * @param id\n * @return The label or empty string\n */\n String getNodeLabel(String id);\n\n /**\n * Get help text.\n *\n * @param id\n * @return HelpTextItem or null (does not throw {@link com.zynap.exception.DomainObjectNotFoundException})\n * @throws TalentStudioException\n */\n HelpTextItem findHelpTextItem(Long id) throws TalentStudioException;\n\n Collection<DynamicAttributeDTO> getSearchableAttributeDtos(String nodeType);\n DynamicAttribute findAttributeByRefLabel(String refLabel, String artefactType);\n\n boolean checkUniqueness(Long daId, String value, Long nodeId);\n\n Collection<DynamicAttribute> getAllAttributes(Long[] attributeIds);\n\n Map<String, String> getAllSubjectAttributes(Long subjectId);\n\n DynamicAttribute PP_SUB_DERIVED_ATT_DEFINITION = new DynamicAttribute(\" Subordinate\", \"targetDerivedAttributes\");\n DynamicAttribute PP_SUP_DERIVED_ATT_DEFINITION = new DynamicAttribute(\" Superior\", \"sourceDerivedAttributes\");\n DynamicAttribute SP_SUB_DERIVED_ATT_DEFINITION = new DynamicAttribute(\" Person\", \"targetDerivedAttributes\");\n DynamicAttribute SP_SUP_DERIVED_ATT_DEFINITION = new DynamicAttribute(\" Position\", \"sourceDerivedAttributes\");\n DynamicAttribute INVALID_ATT = new DynamicAttribute();\n}",
"public interface ClassifierClass extends javax.jmi.reflect.RefClass {\n}",
"@Test\n\tpublic void test_TCM__Object_clone() {\n TCM__Object_clone__default();\n\n TCM__Object_clone__attributeType(Attribute.UNDECLARED_TYPE);\n TCM__Object_clone__attributeType(Attribute.CDATA_TYPE);\n TCM__Object_clone__attributeType(Attribute.ID_TYPE);\n TCM__Object_clone__attributeType(Attribute.IDREF_TYPE);\n TCM__Object_clone__attributeType(Attribute.IDREFS_TYPE);\n TCM__Object_clone__attributeType(Attribute.ENTITY_TYPE);\n TCM__Object_clone__attributeType(Attribute.ENTITIES_TYPE);\n TCM__Object_clone__attributeType(Attribute.NMTOKEN_TYPE);\n TCM__Object_clone__attributeType(Attribute.NMTOKENS_TYPE);\n TCM__Object_clone__attributeType(Attribute.NOTATION_TYPE);\n TCM__Object_clone__attributeType(Attribute.ENUMERATED_TYPE);\n\n\n TCM__Object_clone__Namespace_default();\n\n TCM__Object_clone__Namespace_attributeType(Attribute.UNDECLARED_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.CDATA_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ID_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.IDREF_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.IDREFS_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ENTITY_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ENTITIES_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.NMTOKEN_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.NMTOKENS_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.NOTATION_TYPE);\n TCM__Object_clone__Namespace_attributeType(Attribute.ENUMERATED_TYPE);\n\t}",
"String getMetadataClassName();",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:33:59.917 -0500\", hash_original_method = \"4F6254C867328A153FDD5BD23453E816\", hash_generated_method = \"627F9C594B5D3368AD9A21A5E43D2CB8\")\n \nprivate Extensions() {}",
"protected abstract Nfa buildInternal();",
"public abstract Class getDescriptedClass();",
"public interface NameGenerationHelper {\n\n /**\n * Basic name generation method, usually called by back-end methods or actions to generate a node name based\n * on the type\n * @param parent the parent object for which to create a new node name for a new child object\n * @param nodeType the node type of the new child object\n * @return a String containing the generated node name\n */\n String generatNodeName(JCRNodeWrapper parent, String nodeType);\n\n /**\n * Name generation method used mostly by Jahia's UI to generate node names based on the node type or the target\n * name. This method is passed the default language because it might use it to make resource bundle lookups to\n * generate the node name based on the node type.\n * The targetName is the name of the module that was specified in the view if it was set. This might be useful\n * to use as a node name in the case of more specific definitions\n * @param parent the parent object for which to create a new node name for a new child object\n * @param defaultLanguage the language code for the default language\n * @param nodeType the node type of the new child object\n * @param targetName the name of the module for the child node as specified in the definition (maybe be \"*\" if\n * any name is allowed or null if no targetName was specified at all).\n * @return a String containing the generated node name\n */\n String generatNodeName(JCRNodeWrapper parent, String defaultLanguage, ExtendedNodeType nodeType, String targetName);\n}",
"void init(ReflectionService reflectionService);",
"NassishneidermanPackage getNassishneidermanPackage();",
"Object getClass_();",
"Object getClass_();",
"@Override\npublic void getPropertyInfo(int arg0, Hashtable arg1, PropertyInfo arg2) {\narg2.setType(Feeds.class);\narg2.setName(\"Feeds\");\n\narg2.setNamespace(n1);\n\n}",
"protected JvmClassLoadingMeta createJvmClassLoadingMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 622 */ return new JvmClassLoadingMeta(this, this.objectserver);\n/* */ }",
"public interface MetaData {\r\n\r\n\tpublic static final String CV_SBML = \"SBML\";\r\n\r\n\tpublic static final String ET_SBML = \"SBML_import\";\r\n\r\n\tpublic static final String AN_SBO = \"SBO\";\r\n\r\n\tpublic static final String RT_CONSUMED_BY = \"cs_by\";\r\n\r\n\tpublic static final String RT_PRODUCED_BY = \"pd_by\";\r\n\r\n\tpublic static final String RT_REGULATED_BY = \"rg_by\";\r\n\r\n\tpublic static final String RT_TRANSFORMATION_OF = \"transformation_of\";\r\n\r\n\tpublic static final String CC_REACTION = \"Reaction\";\r\n\r\n\tpublic static final String CC_COMPOUND = \"Comp\";\r\n\r\n\tpublic static final String CC_CELCOMP = \"CelComp\";\r\n\r\n}",
"protected JvmOSMeta createJvmOSMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 217 */ return new JvmOSMeta(this, this.objectserver);\n/* */ }",
"@ReflectiveMethod(name = \"l\", types = {})\n public void l(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"@ReflectiveMethod(name = \"E\", types = {})\n public void E(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"public interface ScalaReflection {\n public class Schema implements scala.Product, scala.Serializable {\n public org.apache.spark.sql.catalyst.types.DataType dataType () { throw new RuntimeException(); }\n public boolean nullable () { throw new RuntimeException(); }\n // not preceding\n public Schema (org.apache.spark.sql.catalyst.types.DataType dataType, boolean nullable) { throw new RuntimeException(); }\n }\n // no position\n public class Schema$ extends scala.runtime.AbstractFunction2<org.apache.spark.sql.catalyst.types.DataType, java.lang.Object, org.apache.spark.sql.catalyst.ScalaReflection.Schema> implements scala.Serializable {\n public Schema$ () { throw new RuntimeException(); }\n }\n public class CaseClassRelation<A extends scala.Product> {\n // not preceding\n // TypeTree().setOriginal(TypeBoundsTree(TypeTree().setOriginal(Select(Select(Ident(_root_), scala), scala.Nothing)), TypeTree().setOriginal(Select(Ident(scala), scala.Product))))\n public CaseClassRelation (scala.collection.Seq<A> data, scala.reflect.api.TypeTags.TypeTag<A> evidence$3) { throw new RuntimeException(); }\n /**\n * Implicitly added to Sequences of case class objects. Returns a catalyst logical relation\n * for the the data in the sequence.\n */\n public org.apache.spark.sql.catalyst.plans.logical.LocalRelation asRelation () { throw new RuntimeException(); }\n }\n /** The universe we work in (runtime or macro) */\n public scala.reflect.api.Universe universe () ;\n /**\n * Converts Scala objects to catalyst rows / types.\n * Note: This is always called after schemaFor has been called.\n * This ordering is important for UDT registration.\n */\n public Object convertToCatalyst (Object a, org.apache.spark.sql.catalyst.types.DataType dataType) ;\n /** Converts Catalyst types used internally in rows to standard Scala types */\n public Object convertToScala (Object a, org.apache.spark.sql.catalyst.types.DataType dataType) ;\n public org.apache.spark.sql.catalyst.expressions.Row convertRowToScala (org.apache.spark.sql.catalyst.expressions.Row r, org.apache.spark.sql.catalyst.types.StructType schema) ;\n /** Returns a Sequence of attributes for the given case class type. */\n public <T extends java.lang.Object> scala.collection.Seq<org.apache.spark.sql.catalyst.expressions.Attribute> attributesFor (scala.reflect.api.TypeTags.TypeTag<T> evidence$1) ;\n /** Returns a catalyst DataType and its nullability for the given Scala Type using reflection. */\n public <T extends java.lang.Object> org.apache.spark.sql.catalyst.ScalaReflection.Schema schemaFor (scala.reflect.api.TypeTags.TypeTag<T> evidence$2) ;\n /** Returns a catalyst DataType and its nullability for the given Scala Type using reflection. */\n public org.apache.spark.sql.catalyst.ScalaReflection.Schema schemaFor (org.apache.spark.sql.catalyst.ScalaReflection.universe tpe) ;\n public scala.PartialFunction<java.lang.Object, org.apache.spark.sql.catalyst.types.DataType> typeOfObject () ;\n}",
"@Override\n protected String className(ClassType t, boolean longform, Locale locale) {\n Symbol sym = t.tsym;\n if (sym.name.length() == 0 && (sym.flags() & COMPOUND) != 0) {\n return OBJECT;\n } else if (sym.name.length() == 0) {\n // Anonymous\n String s;\n ClassType norm = (ClassType) t.tsym.type;\n if (norm == null) {\n s = OBJECT;\n } else if (norm.interfaces_field != null && norm.interfaces_field.nonEmpty()) {\n s = visit(norm.interfaces_field.head, locale);\n } else {\n s = visit(norm.supertype_field, locale);\n }\n return s;\n } else if (longform) {\n String pkg = \"\";\n for (Symbol psym = sym; psym != null; psym = psym.owner) {\n if (psym.kind == PCK) {\n pkg = psym.getQualifiedName().toString();\n break;\n }\n }\n return fullClassNameAndPackageToClass.apply(\n sym.getQualifiedName().toString(),\n pkg\n );\n } else {\n return sym.name.toString();\n }\n }",
"public interface VCloudDirectorMediaType {\n public final static String NS = \"http://www.vmware.com/vcloud/v1.5\";\n\n public final static String SESSION_XML = \"application/vnd.vmware.vcloud.session+xml\";\n\n public final static String ORGLIST_XML = \"application/vnd.vmware.vcloud.orgList+xml\";\n \n public final static String METADATA_XML = \"application/vnd.vmware.vcloud.metadata+xml\";\n \n public static final String METADATAENTRY_XML = \"TODO\"; // TODO\n \n public final static String ORG_XML = \"application/vnd.vmware.vcloud.org+xml\";\n\n public static final String ORG_NETWORK_XML = \"application/vnd.vmware.vcloud.orgNetwork+xml\";\n\n}",
"XUMLRTFactory getXUMLRTFactory();",
"public interface NamingStrategy {\n\n /**\n * @param errorShapeName Name of error shape to derive exception class name from.\n * @return Appropriate name to use for a Java exception class name\n */\n String getExceptionName(String errorShapeName);\n\n\n /**\n * @param operationName Name of operation used to derive request class name.\n * @return Appropriate name to use for the Java class representing the request shape.\n */\n String getRequestClassName(String operationName);\n\n /**\n * @param operationName Name of operation used to derive response class name.\n * @return Appropriate name to use for the Java class representing the response shape.\n */\n String getResponseClassName(String operationName);\n\n /**\n * @param name Some contextual name to derive variable name from (i.e. member name, java class name, etc).\n * @return Appropriate name to use for a Java variable or field.\n */\n String getVariableName(String name);\n\n /**\n * @param enumValue Enum value as defined in the service model used to derive the java name.\n * @return Appropriate name to use for a Java enum value\n */\n String getEnumValueName(String enumValue);\n\n /**\n * @param shapeName Name of structure used to derive Java class name.\n * @return Appropriate name to use for a Java class for an arbitrary (not a request, response, error) structure.\n */\n String getJavaClassName(String shapeName);\n\n /**\n * @param shapeName Name of an authorizer shape used to derive the authorizer name\n * @return Appropriate name to use for a Java class for an Authorizer\n */\n String getAuthorizerClassName(String shapeName);\n\n /**\n * @param memberName Member name to name getter for.\n * @return Name of the getter method for a model class member.\n */\n String getGetterMethodName(String memberName);\n\n /**\n * @param memberName Member name to name setter for.\n * @return Name of the setter method for a model class member.\n */\n String getSetterMethodName(String memberName);\n\n /**\n * @param memberName Member name to name fluent setter for.\n * @return Appropriate name to use for fluent setter method (i.e. withFoo) for a model class member.\n */\n String getFluentSetterMethodName(String memberName);\n}",
"private NaturePackage() {}",
"public interface IAttributeConverter\n{\n\n /**\n * Converts an ordered list of attributes to a newer one.\n * The result list has to be conform with the next ObsoleteVersion-Annotation.\n *\n * @param pAttributes Attributes to be converted\n * @param pNextAccessor Next accessor, for which the attributes should be mapped.\n * All containing attributes in this accessor are type-only -> no value\n * @return attributes of the next version\n */\n @NotNull\n List<OAAttribute> convert(@NotNull List<OAAttribute> pAttributes, @NotNull OAAccessor pNextAccessor) throws AttributeConversionException;\n\n /**\n * Default-Implementation with no conversion.\n * It just returns the original list back.\n */\n class DEFAULT implements IAttributeConverter\n {\n @NotNull\n @Override\n public List<OAAttribute> convert(@NotNull List<OAAttribute> pAttributes, @NotNull OAAccessor pNextAccessor)\n {\n return pAttributes;\n }\n }\n\n}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public <Y> SingularAttribute<X, Y> getDeclaredVersion(Class<Y> type) {\n return (SingularAttribute<X, Y>) version;\n }",
"public interface simpleClassFacade\n extends org.andromda.metafacades.uml.ClassifierFacade\n{\n\n /**\n * Indicates the metafacade type (used for metafacade mappings).\n *\n * @return always <code>true</code>\n */\n public boolean issimpleClassFacadeMetaType();\n\n /**\n * \n */\n public java.util.Collection attrToPy();\n\n /**\n * \n */\n public java.util.Collection operToPy();\n\n}",
"public VariableMeta getMeta();",
"public final java.util.List<p298d.p299a.p300a.p301a.p303y0.p314d.p315a.p322j0.C6439z> mo23417P(java.lang.reflect.Type[] r13, java.lang.annotation.Annotation[][] r14, boolean r15) {\n /*\n r12 = this;\n java.lang.String r0 = \"parameterTypes\"\n p298d.p344x.p346c.C6888i.m12438e(r13, r0)\n java.lang.String r0 = \"parameterAnnotations\"\n p298d.p344x.p346c.C6888i.m12438e(r14, r0)\n java.util.ArrayList r0 = new java.util.ArrayList\n int r1 = r13.length\n r0.<init>(r1)\n java.lang.reflect.Member r1 = r12.mo23408O()\n java.lang.String r2 = \"member\"\n p298d.p344x.p346c.C6888i.m12438e(r1, r2)\n d.a.a.a.y0.b.j1.b.a$a r3 = p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6170a.f12188a\n r4 = 0\n r5 = 0\n if (r3 != 0) goto L_0x004f\n p298d.p344x.p346c.C6888i.m12438e(r1, r2)\n java.lang.Class r2 = r1.getClass()\n java.lang.String r3 = \"getParameters\"\n java.lang.Class[] r6 = new java.lang.Class[r5] // Catch:{ NoSuchMethodException -> 0x0047 }\n java.lang.reflect.Method r3 = r2.getMethod(r3, r6) // Catch:{ NoSuchMethodException -> 0x0047 }\n java.lang.ClassLoader r2 = p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6173b.m11076e(r2)\n java.lang.String r6 = \"java.lang.reflect.Parameter\"\n java.lang.Class r2 = r2.loadClass(r6)\n d.a.a.a.y0.b.j1.b.a$a r6 = new d.a.a.a.y0.b.j1.b.a$a\n java.lang.Class[] r7 = new java.lang.Class[r5]\n java.lang.String r8 = \"getName\"\n java.lang.reflect.Method r2 = r2.getMethod(r8, r7)\n r6.<init>(r3, r2)\n r3 = r6\n goto L_0x004d\n L_0x0047:\n d.a.a.a.y0.b.j1.b.a$a r2 = new d.a.a.a.y0.b.j1.b.a$a\n r2.<init>(r4, r4)\n r3 = r2\n L_0x004d:\n p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6170a.f12188a = r3\n L_0x004f:\n java.lang.reflect.Method r2 = r3.f12189a\n if (r2 != 0) goto L_0x0054\n goto L_0x0058\n L_0x0054:\n java.lang.reflect.Method r3 = r3.f12190b\n if (r3 != 0) goto L_0x005a\n L_0x0058:\n r2 = r4\n goto L_0x0086\n L_0x005a:\n java.lang.Object[] r6 = new java.lang.Object[r5]\n java.lang.Object r1 = r2.invoke(r1, r6)\n java.lang.String r2 = \"null cannot be cast to non-null type kotlin.Array<*>\"\n java.util.Objects.requireNonNull(r1, r2)\n java.lang.Object[] r1 = (java.lang.Object[]) r1\n java.util.ArrayList r2 = new java.util.ArrayList\n int r6 = r1.length\n r2.<init>(r6)\n int r6 = r1.length\n r7 = r5\n L_0x006f:\n if (r7 >= r6) goto L_0x0086\n r8 = r1[r7]\n java.lang.Object[] r9 = new java.lang.Object[r5]\n java.lang.Object r8 = r3.invoke(r8, r9)\n java.lang.String r9 = \"null cannot be cast to non-null type kotlin.String\"\n java.util.Objects.requireNonNull(r8, r9)\n java.lang.String r8 = (java.lang.String) r8\n r2.add(r8)\n int r7 = r7 + 1\n goto L_0x006f\n L_0x0086:\n if (r2 != 0) goto L_0x008a\n r1 = r4\n goto L_0x0092\n L_0x008a:\n int r1 = r2.size()\n java.lang.Integer r1 = java.lang.Integer.valueOf(r1)\n L_0x0092:\n if (r1 != 0) goto L_0x0096\n r1 = r5\n goto L_0x009c\n L_0x0096:\n int r1 = r1.intValue()\n int r3 = r13.length\n int r1 = r1 - r3\n L_0x009c:\n int r3 = r13.length\n int r3 = r3 + -1\n if (r3 < 0) goto L_0x0152\n r6 = r5\n L_0x00a2:\n int r7 = r6 + 1\n r8 = r13[r6]\n java.lang.String r9 = \"type\"\n p298d.p344x.p346c.C6888i.m12438e(r8, r9)\n boolean r9 = r8 instanceof java.lang.Class\n if (r9 == 0) goto L_0x00be\n r10 = r8\n java.lang.Class r10 = (java.lang.Class) r10\n boolean r11 = r10.isPrimitive()\n if (r11 == 0) goto L_0x00be\n d.a.a.a.y0.b.j1.b.c0 r8 = new d.a.a.a.y0.b.j1.b.c0\n r8.<init>(r10)\n goto L_0x00e6\n L_0x00be:\n boolean r10 = r8 instanceof java.lang.reflect.GenericArrayType\n if (r10 != 0) goto L_0x00e0\n if (r9 == 0) goto L_0x00ce\n r9 = r8\n java.lang.Class r9 = (java.lang.Class) r9\n boolean r9 = r9.isArray()\n if (r9 == 0) goto L_0x00ce\n goto L_0x00e0\n L_0x00ce:\n boolean r9 = r8 instanceof java.lang.reflect.WildcardType\n if (r9 == 0) goto L_0x00da\n d.a.a.a.y0.b.j1.b.g0 r9 = new d.a.a.a.y0.b.j1.b.g0\n java.lang.reflect.WildcardType r8 = (java.lang.reflect.WildcardType) r8\n r9.<init>(r8)\n goto L_0x00e5\n L_0x00da:\n d.a.a.a.y0.b.j1.b.s r9 = new d.a.a.a.y0.b.j1.b.s\n r9.<init>(r8)\n goto L_0x00e5\n L_0x00e0:\n d.a.a.a.y0.b.j1.b.h r9 = new d.a.a.a.y0.b.j1.b.h\n r9.<init>(r8)\n L_0x00e5:\n r8 = r9\n L_0x00e6:\n if (r2 != 0) goto L_0x00ea\n r9 = r4\n goto L_0x00f4\n L_0x00ea:\n int r9 = r6 + r1\n java.lang.Object r9 = p298d.p334t.C6790h.m12365s(r2, r9)\n java.lang.String r9 = (java.lang.String) r9\n if (r9 == 0) goto L_0x010e\n L_0x00f4:\n if (r15 == 0) goto L_0x00fe\n int r10 = p005b.p291q.p292a.C5266a.m9790D1(r13)\n if (r6 != r10) goto L_0x00fe\n r10 = 1\n goto L_0x00ff\n L_0x00fe:\n r10 = r5\n L_0x00ff:\n d.a.a.a.y0.b.j1.b.f0 r11 = new d.a.a.a.y0.b.j1.b.f0\n r6 = r14[r6]\n r11.<init>(r8, r6, r9, r10)\n r0.add(r11)\n if (r7 <= r3) goto L_0x010c\n goto L_0x0152\n L_0x010c:\n r6 = r7\n goto L_0x00a2\n L_0x010e:\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n java.lang.String r14 = \"No parameter with index \"\n r13.append(r14)\n r13.append(r6)\n r14 = 43\n r13.append(r14)\n r13.append(r1)\n java.lang.String r14 = \" (name=\"\n r13.append(r14)\n d.a.a.a.y0.f.d r14 = r12.getName()\n r13.append(r14)\n java.lang.String r14 = \" type=\"\n r13.append(r14)\n r13.append(r8)\n java.lang.String r14 = \") in \"\n r13.append(r14)\n r13.append(r2)\n java.lang.String r14 = \"@ReflectJavaMember\"\n r13.append(r14)\n java.lang.String r13 = r13.toString()\n java.lang.IllegalStateException r14 = new java.lang.IllegalStateException\n java.lang.String r13 = r13.toString()\n r14.<init>(r13)\n throw r14\n L_0x0152:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p298d.p299a.p300a.p301a.p303y0.p304b.p309j1.p311b.C6204y.mo23417P(java.lang.reflect.Type[], java.lang.annotation.Annotation[][], boolean):java.util.List\");\n }",
"public interface ICompat {\n ICraftBookPageManager createCraftBookPageManager(BookMeta bookMeta) throws NoSuchFieldException, IllegalAccessException;\n}",
"@kotlin.Metadata(mv = {1, 1, 10}, bv = {1, 0, 2}, k = 1, d1 = {\"\\u0000&\\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0002\\b\\u0002\\bf\\u0018\\u0000 \\u000b2\\u00020\\u0001:\\u0001\\u000bJ\\b\\u0010\\u0002\\u001a\\u00020\\u0003H&J\\b\\u0010\\u0004\\u001a\\u00020\\u0003H&J\\b\\u0010\\u0005\\u001a\\u00020\\u0006H&J\\u0010\\u0010\\u0007\\u001a\\u00020\\b2\\u0006\\u0010\\t\\u001a\\u00020\\nH&\\u00a8\\u0006\\f\"}, d2 = {\"Lcom/android/example/paging/pagingwithnetwork/reddit/ServiceLocator;\", \"\", \"getDiskIOExecutor\", \"Ljava/util/concurrent/Executor;\", \"getNetworkExecutor\", \"getRedditApi\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/api/RedditApi;\", \"getRepository\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/repository/RedditPostRepository;\", \"type\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/repository/RedditPostRepository$Type;\", \"Companion\", \"app_debug\"})\npublic abstract interface ServiceLocator {\n public static final com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator.Companion Companion = null;\n \n @org.jetbrains.annotations.NotNull()\n public abstract com.android.example.paging.pagingwithnetwork.reddit.repository.RedditPostRepository getRepository(@org.jetbrains.annotations.NotNull()\n com.android.example.paging.pagingwithnetwork.reddit.repository.RedditPostRepository.Type type);\n \n @org.jetbrains.annotations.NotNull()\n public abstract java.util.concurrent.Executor getNetworkExecutor();\n \n @org.jetbrains.annotations.NotNull()\n public abstract java.util.concurrent.Executor getDiskIOExecutor();\n \n @org.jetbrains.annotations.NotNull()\n public abstract com.android.example.paging.pagingwithnetwork.reddit.api.RedditApi getRedditApi();\n \n @kotlin.Metadata(mv = {1, 1, 10}, bv = {1, 0, 2}, k = 1, d1 = {\"\\u0000 \\n\\u0002\\u0018\\u0002\\n\\u0002\\u0010\\u0000\\n\\u0002\\b\\u0003\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0018\\u0002\\n\\u0000\\n\\u0002\\u0010\\u0002\\n\\u0002\\b\\u0002\\b\\u0086\\u0003\\u0018\\u00002\\u00020\\u0001B\\u0007\\b\\u0002\\u00a2\\u0006\\u0002\\u0010\\u0002J\\u000e\\u0010\\u0004\\u001a\\u00020\\u00052\\u0006\\u0010\\u0006\\u001a\\u00020\\u0007J\\u0010\\u0010\\b\\u001a\\u00020\\t2\\u0006\\u0010\\n\\u001a\\u00020\\u0005H\\u0007R\\u000e\\u0010\\u0003\\u001a\\u00020\\u0001X\\u0082\\u0004\\u00a2\\u0006\\u0002\\n\\u0000R\\u0010\\u0010\\u0004\\u001a\\u0004\\u0018\\u00010\\u0005X\\u0082\\u000e\\u00a2\\u0006\\u0002\\n\\u0000\\u00a8\\u0006\\u000b\"}, d2 = {\"Lcom/android/example/paging/pagingwithnetwork/reddit/ServiceLocator$Companion;\", \"\", \"()V\", \"LOCK\", \"instance\", \"Lcom/android/example/paging/pagingwithnetwork/reddit/ServiceLocator;\", \"context\", \"Landroid/content/Context;\", \"swap\", \"\", \"locator\", \"app_debug\"})\n public static final class Companion {\n private static final java.lang.Object LOCK = null;\n private static com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator instance;\n \n @org.jetbrains.annotations.NotNull()\n public final com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator instance(@org.jetbrains.annotations.NotNull()\n android.content.Context context) {\n return null;\n }\n \n /**\n * * Allows tests to replace the default implementations.\n */\n @android.support.annotation.VisibleForTesting()\n public final void swap(@org.jetbrains.annotations.NotNull()\n com.android.example.paging.pagingwithnetwork.reddit.ServiceLocator locator) {\n }\n \n private Companion() {\n super();\n }\n }\n}",
"JDefinedClass objectFactory();",
"public TypeUtils() {\n\t}",
"PropertyType createPropertyType();",
"private String getType( )\n\t{\n\t\treturn this.getModuleName( ) + \"$\" + this.getSimpleName( ) + \"$\" + this.getSystem( );\n\t}",
"public interface IFieldInfo extends IInfo {\n\n\t/**\n\t * Dummy instance of this class made for utilitarian purposes.\n\t */\n\tpublic IFieldInfo NULL_FIELD_INFO = new IFieldInfo() {\n\n\t\tITypeInfo type = new DefaultTypeInfo(\n\t\t\t\tnew JavaTypeInfoSource(ReflectionUIUtils.STANDARD_REFLECTION, Object.class, null));\n\n\t\t@Override\n\t\tpublic String getName() {\n\t\t\treturn \"NULL_FIELD_INFO\";\n\t\t}\n\n\t\t@Override\n\t\tpublic void onControlVisibilityChange(Object object, boolean visible) {\n\t\t}\n\n\t\t@Override\n\t\tpublic double getDisplayAreaHorizontalWeight() {\n\t\t\treturn 1.0;\n\t\t}\n\n\t\t@Override\n\t\tpublic double getDisplayAreaVerticalWeight() {\n\t\t\treturn 1.0;\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean isHidden() {\n\t\t\treturn false;\n\t\t}\n\n\t\t@Override\n\t\tpublic String getOnlineHelp() {\n\t\t\treturn null;\n\t\t}\n\n\t\t@Override\n\t\tpublic String getCaption() {\n\t\t\treturn \"\";\n\t\t}\n\n\t\t@Override\n\t\tpublic void setValue(Object object, Object value) {\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean isGetOnly() {\n\t\t\treturn true;\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean isTransient() {\n\t\t\treturn false;\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean isNullValueDistinct() {\n\t\t\treturn false;\n\t\t}\n\n\t\t@Override\n\t\tpublic String getNullValueLabel() {\n\t\t\treturn null;\n\t\t}\n\n\t\t@Override\n\t\tpublic ValueReturnMode getValueReturnMode() {\n\t\t\treturn ValueReturnMode.INDETERMINATE;\n\t\t}\n\n\t\t@Override\n\t\tpublic Object getValue(Object object) {\n\t\t\treturn null;\n\t\t}\n\n\t\t@Override\n\t\tpublic Runnable getNextUpdateCustomUndoJob(Object object, Object value) {\n\t\t\treturn null;\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean hasValueOptions(Object object) {\n\t\t\treturn false;\n\t\t}\n\n\t\t@Override\n\t\tpublic Object[] getValueOptions(Object object) {\n\t\t\treturn null;\n\t\t}\n\n\t\t@Override\n\t\tpublic ITypeInfo getType() {\n\t\t\treturn type;\n\t\t}\n\n\t\t@Override\n\t\tpublic List<IMethodInfo> getAlternativeConstructors(Object object) {\n\t\t\treturn null;\n\t\t}\n\n\t\t@Override\n\t\tpublic List<IMethodInfo> getAlternativeListItemConstructors(Object object) {\n\t\t\treturn null;\n\t\t}\n\n\t\t@Override\n\t\tpublic InfoCategory getCategory() {\n\t\t\treturn null;\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean isFormControlMandatory() {\n\t\t\treturn false;\n\t\t}\n\n\t\t@Override\n\t\tpublic boolean isFormControlEmbedded() {\n\t\t\treturn false;\n\t\t}\n\n\t\t@Override\n\t\tpublic IInfoFilter getFormControlFilter() {\n\t\t\treturn IInfoFilter.DEFAULT;\n\t\t}\n\n\t\t@Override\n\t\tpublic Map<String, Object> getSpecificProperties() {\n\t\t\treturn Collections.emptyMap();\n\t\t}\n\n\t\t@Override\n\t\tpublic String toString() {\n\t\t\treturn \"NULL_FIELD_INFO\";\n\t\t}\n\n\t\t@Override\n\t\tpublic long getAutoUpdatePeriodMilliseconds() {\n\t\t\treturn -1;\n\t\t}\n\n\t};\n\n\t/**\n\t * @return the type information of the current field.\n\t */\n\tITypeInfo getType();\n\n\t/**\n\t * @param object The object hosting the field value or null if the field is\n\t * static.\n\t * @return the value of this field extracted from the given object.\n\t */\n\tObject getValue(Object object);\n\n\t/**\n\t * @param object The object hosting the field value or null if the field is\n\t * static.\n\t * @return whether this field value has options. If the return value is 'true'\n\t * then the {@link #getValueOptions(Object)} method must not return\n\t * null.\n\t */\n\tboolean hasValueOptions(Object object);\n\n\t/**\n\t * @param object The object hosting the field value or null if the field is\n\t * static.\n\t * @return options for the value of this field. If the\n\t * {@link #hasValueOptions(Object)} method return value is 'true' then\n\t * this method must not return null.\n\t */\n\tObject[] getValueOptions(Object object);\n\n\t/**\n\t * Updates the current field of the given object with the given value.\n\t * \n\t * @param object The object hosting the field value or null if the field is\n\t * static.\n\t * @param value The new field value.\n\t */\n\tvoid setValue(Object object, Object value);\n\n\t/**\n\t * @param object The object hosting the field value or null if the field is\n\t * static.\n\t * @param newValue The new field value.\n\t * @return a job that can revert the next field value update or null if the\n\t * default undo job should be used.\n\t */\n\tRunnable getNextUpdateCustomUndoJob(Object object, Object newValue);\n\n\t/**\n\t * @param object The object hosting the field value or null if the field is\n\t * static.\n\t * @return a list of constructors that must be used (if non-null) to create a\n\t * new item instead of those returned by the call of\n\t * {@linkplain ITypeInfo#getConstructors()} on the result of the call of\n\t * {@link #getType()}.\n\t */\n\tList<IMethodInfo> getAlternativeConstructors(Object object);\n\n\t/**\n\t * @param object The object hosting the field value or null if the field is\n\t * static.\n\t * @return a list of constructors that must be used (if non-null) to create a\n\t * new item when the current field is a list field ({@link #getType()}\n\t * instanceof {@link IListTypeInfo}) instead of those returned by the\n\t * call of {@linkplain ITypeInfo#getConstructors()} on the result of the\n\t * call of {@link IListTypeInfo#getItemType()} on the result of the call\n\t * of {@link #getType()}.\n\t */\n\tList<IMethodInfo> getAlternativeListItemConstructors(Object object);\n\n\t/**\n\t * @return true if and only if this field control must distinctly display and\n\t * allow to set the null value. This is usually needed if a null value\n\t * has a special meaning different from \"empty/default value\" for the\n\t * developer. Note that the null value may be returned by\n\t * {@link #getValue(Object)} even if it is not required to be distinctly\n\t * displayed (false returned by the current method).\n\t */\n\tboolean isNullValueDistinct();\n\n\t/**\n\t * @return false if and only if this field value can be set. Otherwise\n\t * {@link #setValue(Object, Object)} should not be called. Note that a\n\t * get-only field does not prevent all modifications. The field value\n\t * may be modified and these modifications may be volatile (for\n\t * calculated values, copies, ..) or persistent even if the new field\n\t * value is not set.\n\t */\n\tboolean isGetOnly();\n\n\t/**\n\t * @return true if and only if this field value update should not be stored in a\n\t * modification stack (in order to be reverted).\n\t */\n\tboolean isTransient();\n\n\t/**\n\t * @return a text that should be displayed by the field control to describe the\n\t * null value.\n\t */\n\tString getNullValueLabel();\n\n\t/**\n\t * @return the value return mode of this field. It may impact the behavior of\n\t * the field control.\n\t */\n\tValueReturnMode getValueReturnMode();\n\n\t/**\n\t * @return the category in which this field will be displayed.\n\t */\n\tInfoCategory getCategory();\n\n\t/**\n\t * @return true if this field value must be displayed as a generic form. If\n\t * false is returned then a custom control may be displayed. Note that\n\t * the form to display is either embedded in the current window or\n\t * displayed in a child dialog according to the return value of\n\t * {@link #isFormControlEmbedded()}.\n\t */\n\tboolean isFormControlMandatory();\n\n\t/**\n\t * @return whether this field value form is embedded in the current window or\n\t * displayed in a child dialog. Note that this method has no impact if a\n\t * custom control is displayed instead of a generic form.\n\t */\n\tboolean isFormControlEmbedded();\n\n\t/**\n\t * @return an object used to filter out some fields and methods from this field\n\t * value form. Note that this method has no impact if a custom control\n\t * is displayed instead of a generic form.\n\t */\n\tIInfoFilter getFormControlFilter();\n\n\t/**\n\t * @return the automatic update period (in milliseconds) that the field control\n\t * will try to respect.-1 means that there is no automatic update and 0\n\t * means that the update occurs as fast as possible.\n\t */\n\tlong getAutoUpdatePeriodMilliseconds();\n\n\t/**\n\t * @return true if and only if the control of this field is filtered out from\n\t * the display.\n\t */\n\tboolean isHidden();\n\n\t/**\n\t * @return a number that specifies how to distribute extra horizontal space\n\t * between sibling field controls. If the resulting layout is smaller\n\t * horizontally than the area it needs to fill, the extra space is\n\t * distributed to each field in proportion to its horizontal weight. A\n\t * field that has a weight of zero receives no extra space. If all the\n\t * weights are zero, all the extra space appears between the grids of\n\t * the cell and the left and right edges. It should be a non-negative\n\t * value.\n\t */\n\tdouble getDisplayAreaHorizontalWeight();\n\n\t/**\n\t * @return a number that specifies how to distribute extra vertical space\n\t * between sibling field controls. If the resulting layout is smaller\n\t * vertically than the area it needs to fill, the extra space is\n\t * distributed to each field in proportion to its vertical weight. A\n\t * field that has a weight of zero receives no extra space. If all the\n\t * weights are zero, all the extra space appears between the grids of\n\t * the cell and the left and right edges. It should be a non-negative\n\t * value.\n\t * \n\t */\n\tdouble getDisplayAreaVerticalWeight();\n\n\t/**\n\t * This method is called by the renderer when the visibility of the field\n\t * control changes for the given object in the generated UI.\n\t * \n\t * @param object The object hosting the field value or null if the field is\n\t * static.\n\t * @param visible true when the field becomes visible, false when it becomes\n\t * invisible.\n\t */\n\tvoid onControlVisibilityChange(Object object, boolean visible);\n\n}",
"private static <T> void LessonReflectionAndGenerics(Class<T> genericClass) {\n\n System.out.println(\"Full Name: \" + genericClass.getName());\n System.out.println(\"Simple Name: \" + genericClass.getSimpleName());\n\n //Get all the fields from class\n for(Field field: genericClass.getDeclaredFields()) {\n System.out.println(\"Field: \" + field.getName() + \" - Type: \" + field.getType());\n }\n //Get all the methods from class\n for(Method method: genericClass.getDeclaredMethods()) {\n System.out.println(\"Method: \" + method.getName());\n }\n }",
"DynamicInstance createDynamicInstance();",
"<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);",
"@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:41.996 -0500\", hash_original_method = \"CB9D9CAF93B6F7C6AC078700B30D5B3A\", hash_generated_method = \"6EEF3712392D06942F0E7086316BBAB4\")\n \n private void nativeConstructor(){\n }",
"public ViewMetamodel getMetamodel();",
"public interface TestMBean {\n\n /**\n * Returns the value of a string attribute.\n * \n * @return String\n */\n public String getStringAttribute();\n\n /**\n * Returns the value of a double attribute.\n * \n * @return Double\n */\n public Double getDoubleAttribute();\n\n /**\n * Returns the value of a float attribute.\n * \n * @return Float\n */\n public Float getFloatAttribute();\n\n /**\n * Returns the value of a long integer attribute.\n * \n * @return Long\n */\n public Long getLongAttribute();\n\n /**\n * Returns the value of a integer attribute.\n * \n * @return Integer\n */\n public Integer getIntegerAttribute();\n\n /**\n * Returns the value of a short attribute.\n * \n * @return Short\n */\n public Short getShortAttribute();\n\n /**\n * Returns the value of a byte attribute.\n * \n * @return Byte\n */\n public Byte getByteAttribute();\n\n /**\n * Returns the value of a big integer attribute.\n * \n * @return BigInteger\n */\n public BigInteger getBigIntegerAttribute();\n\n /**\n * Returns the value of a big decimal attribute.\n * \n * @return BigDecimal\n */\n public BigDecimal getBigDecimalAttribute();\n\n /**\n * Returns the value of a boolean attribute.\n * \n * @return Boolean\n */\n public Boolean getBooleanAttribute();\n\n /**\n * Returns a structured data attribute.\n * \n * @return StructuredData\n */\n public StructuredData getStructuredDataAttribute();\n\n /**\n * Returns an attribute with a data type that is invalid for the check_jmx plugin.\n * \n * @return String[]\n */\n public String[] getInvalidAttribute();\n\n /**\n * Returns an attribute with an invalid numeric type.\n * \n * @return Fraction\n */\n public Fraction getInvalidNumberAttribute();\n\n /**\n * Returns a null attribute value.\n * \n * @return String\n */\n public String getNullAttribute();\n\n /**\n * Operation that can be called as part of the check_jmx plugin flow.\n */\n public void testOperation();\n\n}",
"public interface MetaVisitor\n{\n void atomicType(SequenceType node, QName name, SequenceType baseType);\n\n void atomicUrType(SequenceType node);\n\n void attributeType(SequenceType node, QName name, SequenceType type);\n\n void choiceType(SequenceType node, SequenceType lhs, SequenceType rhs);\n\n void commentType(SequenceType node);\n\n void complexType(SequenceType node, QName name, SequenceType baseType);\n\n void complexUrType(SequenceType node);\n\n void concatType(SequenceType node, SequenceType lhs, SequenceType rhs);\n\n void documentType(SequenceType node, SequenceType contentType);\n\n void elementType(SequenceType node, QName name, SequenceType type, boolean nillable);\n\n void emptyType(SequenceType node);\n\n void interleaveType(SequenceType node, SequenceType lhs, SequenceType rhs);\n\n void multiplyType(SequenceType node, SequenceType argument, Quantifier multiplier);\n\n void namespaceType(SequenceType node);\n\n void noneType(SequenceType node);\n\n void processingInstructionType(SequenceType node, String name);\n\n void schemaAttributeType(SequenceType node, QName name);\n\n void schemaElementType(SequenceType type, QName name);\n\n void simpleUrType(SequenceType node);\n\n void textType(SequenceType node);\n}",
"private FieldMetadata getSerialVersionUIDField() {\n\t\t// Compute the relevant toString method name\n\t\tJavaSymbolName fieldName = new JavaSymbolName(\"serialVersionUID\");\n\t\tif (!this.serialVersionUIDField.equals(\"\")) {\n\t\t\tfieldName = new JavaSymbolName(this.serialVersionUIDField);\n\t\t}\n\n\t\t// See if the type itself declared the field\n\t\tFieldMetadata result = governorTypeDetails.getDeclaredField(fieldName);\n\t\tif (result != null) {\n\t\t\tFieldMetadataBuilder field = new FieldMetadataBuilder(result);\n\t\t\tfield.putCustomData(CustomDataSerializableTags.SERIAL_VERSION_UUID_FIELD.name(), null);\n\t\t\treturn field.build();\n\t\t}\n\n\t\tFieldMetadataBuilder fieldBuilder = new FieldMetadataBuilder(getId(), Modifier.PRIVATE | Modifier.STATIC | Modifier.FINAL, fieldName, JavaType.LONG_PRIMITIVE, \"1L\");\n\t\tfieldBuilder.putCustomData(CustomDataSerializableTags.SERIAL_VERSION_UUID_FIELD.name(), null);\n\t\treturn fieldBuilder.build();\n\t}",
"public abstract String getObjectType();",
"public interface C15428f {\n\n /* renamed from: com.ss.android.ugc.asve.context.f$a */\n public static final class C15429a {\n /* renamed from: a */\n public static String m45146a(C15428f fVar) {\n return \"\";\n }\n\n /* renamed from: b */\n public static String m45147b(C15428f fVar) {\n return \"\";\n }\n }\n\n /* renamed from: a */\n boolean mo38970a();\n\n /* renamed from: b */\n String mo38971b();\n\n /* renamed from: c */\n String mo38972c();\n\n /* renamed from: d */\n int mo38973d();\n\n /* renamed from: e */\n int mo38974e();\n}",
"NodeInformationProvider getNodeInformationProvider();",
"Reproducible newInstance();",
"@ImplementedBy(ServerPropertiesClasspath.class)\npublic interface ServerProperties\n{\n /**\n * Gets an integer property with a default\n * @param key The name of the property to retrieve\n * @param def The default value of the property\n * @return The int value of the property\n */\n int getInt( String key, int def);\n\n /**\n * Gets a string property, returning a default if undefined\n * @param key The name of the property to retrieve\n * @param def The default value of the property\n * @return The retrieved property value\n */\n String getString( String key, String def);\n\n /**\n * Gets the port on which the server should run\n */\n default int getPort()\n {\n return getInt(\"port\", 80);\n }\n\n /**\n * Gets the host on which the server is running\n */\n default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }\n\n /**\n * Gets the version of the current application\n */\n default String getVersion()\n {\n return getString( \"version\", \"Unknown Version\");\n }\n}",
"private VersionFactory() {\n\t\tversions = ClassResolverUtils.findImpl(Version.class);\n\t}",
"String assemblerCtor() {\n StringBuilder sb = new StringBuilder( entityType.getSimpleName() );\n sb.append( \"( \" );\n String params\n = entityMetaData.typeMap.values().stream().map( c -> c.\n getSimpleName() )\n .collect( Collectors.joining( \", \" ) );\n return sb.append( params ).append( ')' ).toString();\n }",
"public InstanceHelperMethod(Type t, MethodNode m, int i) throws Exception {\n\n super(t.getClassName(), \"\", \"\");\n methodNode = m;\n classNode = TypeTableBuilder.getMethodClassNode(methodNode);\n\n init(t);\n\n methodname = \"get_\" + typeName;\n if(i > 0)\n methodname += i;\n\n if(DEBUG)\n System.out.println(\"Making type \" + instanceType.getClassName() + \" with method \" + m.name + \"(\" + classNode.name + \")\");\n\n\n //test if the method is public\n if(!TypeUtil.isAccess(m.access, Opcodes.ACC_PUBLIC))\n throw new HelperCodeException(\"The method: \" + methodNode.name + \" is not public\");\n //Test if it is ok to build\n //if(TypeUtil.isAbletoGenerate(Type.getMethodType(m.desc))) {\n build();\n }",
"protected JvmRuntimeMeta createJvmRuntimeMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 379 */ return new JvmRuntimeMeta(this, this.objectserver);\n/* */ }",
"public MethodInfoImpl() {\n }",
"public interface Representation // C# has public abstract class\n{\n /// <summary>\n /// Creates a new type object of this representation, and\n /// associates it with the given HOW. Also sets up a new\n /// representation instance if needed.\n /// </summary>\n /// <param name=\"HOW\"></param>\n /// <returns></returns>\n RakudoObject type_object_for(ThreadContext tc, RakudoObject how);\n\n /// <summary>\n /// Creates a new instance based on the type object.\n /// </summary>\n /// <param name=\"WHAT\"></param>\n /// <returns></returns>\n RakudoObject instance_of(ThreadContext tc, RakudoObject what);\n\n /// <summary>\n /// Checks if a given object is defined.\n /// </summary>\n /// <param name=\"Obj\"></param>\n /// <returns></returns>\n boolean defined(ThreadContext tc, RakudoObject obj);\n\n /// <summary>\n /// Gets the current value for an attribute.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <returns></returns>\n RakudoObject get_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name);\n\n /// <summary>\n /// Gets the current value for an attribute, obtained using the\n /// given hint.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Hint\"></param>\n /// <returns></returns>\n RakudoObject get_attribute_with_hint(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, int hint);\n\n /// <summary>\n /// Binds the given value to the specified attribute.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Value\"></param>\n void bind_attribute(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, RakudoObject value);\n\n /// <summary>\n /// Binds the given value to the specified attribute, using the\n /// given hint.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <param name=\"Hint\"></param>\n /// <param name=\"Value\"></param>\n void bind_attribute_with_hint(ThreadContext tc, RakudoObject object, RakudoObject classHandle, String name, int hint, RakudoObject Value);\n\n /// <summary>\n /// Gets the hint for the given attribute ID.\n /// </summary>\n /// <param name=\"ClassHandle\"></param>\n /// <param name=\"Name\"></param>\n /// <returns></returns>\n int hint_for(ThreadContext tc, RakudoObject classHandle, String name);\n\n /// <summary>\n /// Used with boxing. Sets an integer value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_int(ThreadContext tc, RakudoObject classHandle, int Value);\n\n /// <summary>\n /// Used with boxing. Gets an integer value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n int get_int(ThreadContext tc, RakudoObject classHandle);\n\n /// <summary>\n /// Used with boxing. Sets a floating point value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_num(ThreadContext tc, RakudoObject classHandle, double Value);\n\n /// <summary>\n /// Used with boxing. Gets a floating point value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n double get_num(ThreadContext tc, RakudoObject classHandle);\n\n /// <summary>\n /// Used with boxing. Sets a string value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n void set_str(ThreadContext tc, RakudoObject classHandle, String Value);\n\n /// <summary>\n /// Used with boxing. Gets a string value, for representations that\n /// can hold one.\n /// </summary>\n /// <param name=\"Object\"></param>\n /// <param name=\"Value\"></param>\n String get_str(ThreadContext tc, RakudoObject classHandle);\n}",
"public void testGetObjectInstanceWithAttributesUsingNonReference()\r\n\t\t\tthrows Exception {\r\n\t\t// setup test builder\r\n\t\tfinal ObjectFactoryBuilder builder = new ObjectFactoryBuilder() {\r\n\t\t\tpublic ObjectFactory createObjectFactory(Object refInfo, Hashtable environment) throws NamingException {\r\n\t\t\t\treturn new TestDirObjectFactory();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t\tregisterService(ObjectFactoryBuilder.class.getName(), builder, null);\r\n\r\n\t\tServiceReference serviceReference = \r\n\t\t\tgetContext().getServiceReference(\r\n\t\t\t\t\t\"org.osgi.service.jndi.JNDIProviderAdmin\");\r\n\t\tassertNotNull(\"JNDIProviderAdmin service was not published as expected\",\r\n\t\t\t\t\t serviceReference);\r\n\r\n\t\tJNDIProviderAdmin contextAdmin = \r\n\t\t\t(JNDIProviderAdmin) getContext().getService(serviceReference);\r\n\t\t\t\r\n\t\tObject result = \r\n\t\t\tcontextAdmin.getObjectInstance(\"This is only a test, and is not a Reference\", null, null, new Hashtable(), null);\r\n\t\tassertNotNull(\r\n\t\t\t\t\"JNDIProviderAdmin did not properly consult the DirObjectFactory\",\r\n\t\t\t\tresult);\r\n\t\tassertTrue(\"JNDIProviderAdmin returned an incorrect type\",\r\n\t\t\t\tresult instanceof Integer);\r\n\t\tassertEquals(\"JNDIProviderAdmin returned an incorrect value\",\r\n\t\t\tnew Integer(100), result);\r\n\t\t\r\n\r\n\t}"
]
| [
"0.5774328",
"0.5451564",
"0.5400493",
"0.5334152",
"0.53113276",
"0.5252881",
"0.521143",
"0.51875335",
"0.51274776",
"0.5127011",
"0.512557",
"0.5096144",
"0.5093663",
"0.5043356",
"0.5036425",
"0.5030948",
"0.5022118",
"0.5019186",
"0.5005209",
"0.4992571",
"0.49819043",
"0.4939781",
"0.49263164",
"0.49163267",
"0.4913493",
"0.49018648",
"0.48976153",
"0.48863223",
"0.48693508",
"0.48607633",
"0.4844199",
"0.48330525",
"0.48330525",
"0.48138118",
"0.48110405",
"0.47905263",
"0.47676954",
"0.476434",
"0.47411907",
"0.47269946",
"0.4703152",
"0.46960416",
"0.46917167",
"0.46797535",
"0.46708393",
"0.46614927",
"0.46555904",
"0.4635992",
"0.46313885",
"0.46270898",
"0.46258414",
"0.4622162",
"0.4615762",
"0.46117",
"0.46101743",
"0.46101743",
"0.4608646",
"0.46057153",
"0.46044266",
"0.46042213",
"0.45915267",
"0.45841542",
"0.45786846",
"0.45722604",
"0.45706153",
"0.45644227",
"0.4560223",
"0.45575875",
"0.45568293",
"0.4550684",
"0.45374152",
"0.45270586",
"0.45229983",
"0.45167595",
"0.45064396",
"0.45051053",
"0.4503661",
"0.4501082",
"0.44870892",
"0.4478979",
"0.44777513",
"0.44744766",
"0.44737184",
"0.4471755",
"0.4470633",
"0.44666332",
"0.44561428",
"0.44557115",
"0.44549865",
"0.4449095",
"0.44481403",
"0.444811",
"0.44466585",
"0.44436893",
"0.4442475",
"0.4438598",
"0.44370922",
"0.44285962",
"0.442828",
"0.44243422"
]
| 0.4522816 | 73 |
Reads an input packet of sign being updated | String[] readLines(Object packet); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean readSignature(Integer[] sig) {\n Scales.sendByte((byte) 's');\n\t /* Get actual signature */\n sig[2] = Scales.getByte();\n sig[1] = Scales.getByte();\n sig[0] = Scales.getByte();\n return true;\n }",
"public abstract void read(NetInput in) throws IOException;",
"public void read(DataInputStream in) throws IOException;",
"@Override\r\n\tpublic void read(DataInput in) throws IOException {\n\t\t\r\n\t}",
"private void read() throws IOException {\n // The first byte of every data frame\n int firstByte;\n\n // Loop until end of stream is reached.\n while ((firstByte = bis.read()) != -1) {\n // Data contained in the first byte\n // int fin = (firstByte << 24) >>> 31;\n // int rsv1 = (firstByte << 25) >>> 31;\n // int rsv2 = (firstByte << 26) >>> 31;\n // int rsv3 = (firstByte << 27) >>> 31;\n int opcode = (firstByte << 28) >>> 28;\n\n // Reads the second byte\n int secondByte = bis.read();\n\n // Data contained in the second byte\n // int mask = (secondByte << 24) >>> 31;\n int payloadLength = (secondByte << 25) >>> 25;\n\n // If the length of payload data is less than 126, that's the\n // final\n // payload length\n // Otherwise, it must be calculated as follows\n if (payloadLength == 126) {\n // Attempts to read the next 2 bytes\n byte[] nextTwoBytes = new byte[2];\n for (int i = 0; i < 2; i++) {\n byte b = (byte) bis.read();\n nextTwoBytes[i] = b;\n }\n\n // Those last 2 bytes will be interpreted as a 16-bit\n // unsigned\n // integer\n byte[] integer = new byte[]{0, 0, nextTwoBytes[0], nextTwoBytes[1]};\n payloadLength = Utils.fromByteArray(integer);\n } else if (payloadLength == 127) {\n // Attempts to read the next 8 bytes\n byte[] nextEightBytes = new byte[8];\n for (int i = 0; i < 8; i++) {\n byte b = (byte) bis.read();\n nextEightBytes[i] = b;\n }\n\n // Only the last 4 bytes matter because Java doesn't support\n // arrays with more than 2^31 -1 elements, so a 64-bit\n // unsigned\n // integer cannot be processed\n // Those last 4 bytes will be interpreted as a 32-bit\n // unsigned\n // integer\n byte[] integer = new byte[]{nextEightBytes[4], nextEightBytes[5], nextEightBytes[6],\n nextEightBytes[7]};\n payloadLength = Utils.fromByteArray(integer);\n }\n\n // Attempts to read the payload data\n byte[] data = new byte[payloadLength];\n for (int i = 0; i < payloadLength; i++) {\n byte b = (byte) bis.read();\n data[i] = b;\n }\n\n // Execute the action depending on the opcode\n switch (opcode) {\n case OPCODE_CONTINUATION:\n // Should be implemented\n break;\n case OPCODE_TEXT:\n notifyOnTextReceived(new String(data, Charset.forName(\"UTF-8\")));\n break;\n case OPCODE_BINARY:\n notifyOnBinaryReceived(data);\n break;\n case OPCODE_CLOSE:\n closeInternal();\n notifyOnCloseReceived();\n return;\n case OPCODE_PING:\n notifyOnPingReceived(data);\n sendPong(data);\n break;\n case OPCODE_PONG:\n notifyOnPongReceived(data);\n break;\n default:\n closeInternal();\n Exception e = new UnknownOpcodeException(\"Unknown opcode: 0x\" + Integer.toHexString(opcode));\n notifyOnException(e);\n return;\n }\n }\n\n // If there are not more data to be read,\n // and if the connection didn't receive a close frame,\n // an IOException must be thrown because the connection didn't close\n // gracefully\n throw new IOException(\"Unexpected end of stream\");\n }",
"public abstract void readTagPayload(DataInput in) throws IOException;",
"public int readInt() throws IOException {\n return in.readInt();\n }",
"public void read(DataInputStream in) throws IOException {\n final int magic = in.readInt();\n if (magic != FILE_MAGIC) {\n throw new ProtocolException(\"unexpected magic: \" + magic);\n }\n\n final int version = in.readInt();\n switch (version) {\n case VERSION_UNIFIED_INIT: {\n // uid := size *(NetworkIdentitySet size *(uid set tag NetworkStatsHistory))\n final int identSize = in.readInt();\n for (int i = 0; i < identSize; i++) {\n final NetworkIdentitySet ident = new NetworkIdentitySet(in);\n\n final int size = in.readInt();\n for (int j = 0; j < size; j++) {\n final int uid = in.readInt();\n final int set = in.readInt();\n final int tag = in.readInt();\n\n final Key key = new Key(ident, uid, set, tag);\n final NetworkStatsHistory history = new NetworkStatsHistory(in);\n recordHistory(key, history);\n }\n }\n break;\n }\n default: {\n throw new ProtocolException(\"unexpected version: \" + version);\n }\n }\n }",
"@Override\n\tpublic void readImpl()\n\t{\n\t\t_degree = readD();\n\t\t_side = readD();\n\t}",
"public static boolean isSigned_reading() {\n return false;\n }",
"protected void readPayload() throws IOException {\n _data_stream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _data_stream.readInt();\n if (rlen == 0) {\n return;\n }\n _text_buffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(752);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(752);\n{\n rv = _in.read(_text_buffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv);\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(752);\n\n _data_stream = new DataInputStream(new ByteArrayInputStream(_text_buffer));\n }",
"@Override\n public int read() throws IOException {\n return input.read();\n }",
"@Override\n\tpublic void readData(DataInputStream input) throws IOException {\n\t\t\n\t}",
"Result_SignDecodeErrorZ read_chan_signer(byte[] reader);",
"public int receiveSignal() {\n try {\n return dIn.readInt();\n } catch (IOException e) {\n System.out.println(\"Signal not received\");\n e.printStackTrace();\n }\n return -1;\n }",
"protected void aInput(Packet packet)\r\n {\r\n \t\tif(!isCorrupted(packet))\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"|aInput| : packet\"+ packet.getSeqnum()+\"is received without corruption.\");\r\n \t\t\t\tint offset = ((packet.getSeqnum()+1) % LimitSeqNo - window_base);\r\n \t\t\t\tif(offset>1)\r\n \t\t\t\t{\r\n \t\t\t\t\tSystem.out.println(\"|aInput| : window_base: \"+window_base);\r\n \t\t\t\t\tSystem.out.println(\"|aInput| : next sequence number: \"+ Integer.toString((packet.getSeqnum()+1) % LimitSeqNo));\r\n \t\t\t\t\tSystem.out.println(\"|aInput| : offset: \"+offset);\r\n \t\t\t\t}\r\n \t\t\t\twindow_base = (packet.getSeqnum()+1) % LimitSeqNo;;\r\n \t\t\t\t\r\n \t\t\t\tif(messageCongestionBuffer.size()>0)\r\n \t\t\t\t{\r\n \t\t\t\t\tString data = messageCongestionBuffer.get(0).getData();\r\n \t\t \t\t\tmessageCongestionBuffer.remove(0);\r\n \t\t \t\t\r\n \t\t \t\t//public Packet(int seq, int ack, int check, String newPayload)\r\n \t\t \t\t\r\n \t\t \t\t\tint seq = next_seq_num % LimitSeqNo;\r\n \t\t \t\t\tint ack = ACK_NOT_USED;\r\n \t\t \t\t\tint check = makeCheckSum(seq,ack,data);\r\n \t\t \t\t\tpacketBufferAry[next_seq_num % LimitSeqNo] = new Packet(seq,ack,check,data);\r\n \t\t \t\t\tSystem.out.println(\"|aInput| : packet with seq number:\"+Integer.toString(next_seq_num)+\" is made\");\r\n \t\t \t\t\ttoLayer3(0,packetBufferAry[next_seq_num % LimitSeqNo]); //udt_send\r\n \t\t \t\t\tSystem.out.println(\"|aInput| : packet with seq number:\"+Integer.toString(next_seq_num)+\" is sent\");\r\n \t\t \t\t\t\r\n \t\t \t\t\tnext_seq_num = (next_seq_num+1)% LimitSeqNo;\t\r\n \t\t \t\tSystem.out.println(\"|aInput| : next_seq_num now becomes: \"+next_seq_num+\".\");\r\n \t\t\t\t}\r\n \t\t\t\t\r\n \t\t\t\tSystem.out.println(\"|aInput| : window_base becomes: \"+ window_base+\".\");\r\n \t\t\t\t\r\n \t\t\t\tif(window_base == next_seq_num)\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t\tSystem.out.println(\"|aInput| : timer is stopped\");\r\n \t\t\t\t\t\tstopTimer(0);\r\n \t\t\t\t\t}\r\n \t\t\t\telse\r\n \t\t\t\t\t{\r\n \t\t\t\t\t\tSystem.out.println(\"|aInput| : timer is restarted\");\r\n \t\t\t\t\t\tstopTimer(0);\r\n \t\t\t\t\t\tstartTimer(0,RxmtInterval);\r\n \t\t\t\t\t}\r\n \t\t\t}\r\n \t\r\n \t/*\r\n \t\tif(state_sender==STATE_WAIT_FOR_ACK_OR_NAK_0)\r\n \t\t{\r\n \t\t\t\r\n \t\t\tif(isCorrupted(packet)) //corrupted \r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: received packet 0 is corrupted\");\r\n \t\t\t\t//resendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse if(packet.getAcknum()== ACK_ACKed_1) \r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 1 is received\");\r\n \t\t\t\t//resendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse //Ack = 1 or bigger mean ACK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 0 is received\");\r\n \t\t\t\t\r\n \t\t\t\tstate_sender = STATE_WAIT_FOR_CALL_1_FROM_ABOVE;\r\n \t\t\t\tSystem.out.println(\"aInput: sender timer is stopped\");\r\n \t\t\t\tstopTimer(0); \r\n \t\t\t}\r\n \t\t\t\r\n \t\t}\r\n \t\telse if(state_sender==STATE_WAIT_FOR_ACK_OR_NAK_1)\r\n \t\t{\r\n \t\t\tif(isCorrupted(packet)) //corrupted\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: received packet 1 is corrupted\");\r\n \t\t\t\t//esendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse if(packet.getAcknum()==ACK_ACKed_0)//Ack = -1 means NAK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 0 is received\");\r\n \t\t\t\t//resendPacket(packetBuffer);\r\n \t\t\t}\r\n \t\t\telse //Ack = 1 or bigger mean ACK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"aInput: ACKed 1 is received\");\r\n \t\t\t\tstate_sender = STATE_WAIT_FOR_CALL_0_FROM_ABOVE;\r\n \t\t\t\tSystem.out.println(\"aInput: sender timer is stopped\");\r\n \t\t\t\tstopTimer(0); \r\n \t\t\t}\r\n \t\t}\r\n \t\t*/\r\n \t\t\r\n\r\n }",
"public abstract SeekInputStream getRawInput();",
"public abstract void read(DataInput input) throws IOException;",
"int inputBit(){\n if (position == 0)\r\n try{\r\n buf = System.in.read();\r\n if (buf < 0){ return -1;\r\n }\r\n \r\n position = 0x80;\r\n }catch(IOException e){\r\n System.err.println(e);\r\n return -1;\r\n }\r\n int t = ((buf & position) == 0) ? 0 : 1;\r\n position >>= 1; \r\n return t;\r\n }",
"public int readInt();",
"private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}",
"public int readRaw()\r\n {\r\n \tbyte[] buf = new byte[1];\r\n \treadRaw(buf, 0, 1);\r\n \treturn buf[0] & 0xFF;\r\n }",
"public void read(DataInput in) throws IOException {\r\n int size = in.readInt();\r\n\r\n buffer = new byte[size];\r\n in.readFully(buffer);\r\n }",
"public byte[] getInput() {\n return input;\n }",
"private boolean parseInput(byte[] input) {\r\n\t\tint p = 2;\t// pointer to first relevant character in input array\r\n\t\t// at least 13 bytes\r\n\t\tif(input.length > 12 && input.length < 500) {\r\n\t\t\tif(!(input[0] == (byte) 'A' && input[1] == (byte) '4')) return true;\r\n\t\t\t\r\n\t\t\tint checkSum = getByte(input[p]);\r\n\t\t\tif(debug) System.out.println(\"checkSum:\\t\\t\"+checkSum);\r\n\t\t\t\r\n\t\t\tint dataLength = getByte(input[p+1]) + ( getByte(input[p+2]) << 8 );\r\n\t\t\tif(debug) System.out.println(\"dataLength:\\t\"+dataLength); \r\n\t\t\t\r\n\t\t\t// ignore weird packets (usually 1st)\r\n\t\t\tif(dataLength > 1000) {\r\n\t\t\t\tif(debug) System.out.println();\r\n\t\t\t\treturn true;\t// return to clean out buffer\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint invDataLength = getByte(input[p+3]) + ( getByte(input[p+4]) << 8 );\r\n\t\t int check = ~invDataLength & 0xff;\r\n\t\t // TODO inverse check only works for 1-byte numbers \r\n\t\t\t\r\n\t\t int timestampLow = getByte(input[p+5]);\r\n\t\t int timestampSubseconds = getByte(input[p+6]) + ( getByte(input[p+7]) << 8 );\r\n\t\t float subseconds = timestampSubseconds / 65535.0f;\r\n\t\t if(debug) System.out.println(\"timestamp:\\t\\t\"+timestampLow+ \" + \"+ PApplet.nf(subseconds,1,2));\r\n\t\t \r\n\t\t int sequenceNo = getByte(input[p+8]);\r\n\t\t if(debug) System.out.println(\"sequenceNo:\\t\"+sequenceNo);\r\n\t\t\r\n\t\t byte[] data; \r\n\t\t try {\r\n\t\t data = PApplet.subset(input, p+9, dataLength);\r\n\t\t } catch (Exception e) {\r\n\t\t if(debug) System.out.println(\"ERROR: array not long enough for dataLength variable\");\r\n\t\t return false;\r\n\t\t }\r\n\t\t \r\n\t\t int dataType = getByte(data[0]);\r\n\t\t String dataTypeStr = getDataType(dataType);\r\n\t\t if(debug) System.out.println(\"dataType:\\t\\t\"+dataType+ \" (\"+dataTypeStr+\")\");\r\n\t\t \r\n\t\t int sum = 0;\r\n\t\t for(int i=0; i<data.length; i++) {\r\n\t\t sum+= getByte(data[i]);\r\n\t\t }\r\n\t\t if(debug) System.out.print(\"sum:\\t\\t\");\r\n\t\t if((sum%256) == checkSum) {\r\n\t\t \tif(debug) System.out.println(\"VALID\");\r\n\t\t } else {\r\n\t\t \tif(debug) System.out.println(\"SUM ERROR\");\r\n\t\t \treturn true;\t// return to clear out buffer\r\n\t\t }\r\n\t\t \r\n\t\t if(debug) System.out.print(\"data:\\t\\t\");\r\n\t\t for(int i=0; i<data.length; i++) {\r\n\t\t if(debug) System.out.print(getByte(data[i])+\" \");\r\n\t\t }\r\n\t\t if(debug) System.out.println();\r\n\t\t \r\n\t\t if(dataTypeStr == \"ZeoTimestamp\") {\r\n\t\t \t_timestamp = getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t \tif(debug) System.out.println(\"_timestamp:\\t\"+_timestamp);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"Version\") {\r\n\t\t _version = getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t if(debug) System.out.println(\"_version:\\t\"+_version);\r\n\t\t }\r\n\t\t \r\n\t\t // skip packet until version and timestamps arrive\r\n\t\t if(_timestamp == 0 || _version == 0) {\r\n\t\t if(debug) System.out.println();\r\n\t\t return true;\t// return and clear buffer \r\n\t\t }\r\n\t\t \r\n\t\t // construct full timestamp\r\n\t\t long timestamp = 0;\r\n\t\t if((_timestamp & 0xff) == timestampLow) timestamp = _timestamp;\r\n\t\t else if(((_timestamp -1) & 0xff) == timestampLow) timestamp = _timestamp - 1;\r\n\t\t else if(((_timestamp +1) & 0xff) == timestampLow) timestamp = _timestamp + 1;\r\n\t\t else timestamp = _timestamp;\r\n\t\t \r\n\t\t \r\n\t\t if(debug) {\r\n\t\t \tDate ts = new Date(timestamp);\r\n\t\t \tSystem.out.println(\"date:\\t\\t\"+ts);\r\n\t\t }\r\n\t\t \r\n\t\t // pass on data\r\n\t\t _slice.setTime(timestamp);\r\n\r\n\t\t if(dataTypeStr == \"FrequencyBins\") {\r\n\t\t _slice.setBins(data);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"SleepStage\") {\r\n\t\t \tsleepState = getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t if(debug) System.out.println(\"sleepstage:\\t\"+sleepState);\r\n\t\t triggerZeoSleepStateEvent();\r\n\t\t }\r\n\t\t \r\n\t\t _slice.setSleepState(sleepState);\r\n\t\t \r\n\t\t if(dataTypeStr == \"Waveform\") {\r\n\t\t _slice.setWaveForm(data);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"Impedance\") {\r\n\t\t \t_slice.impedance = (long) getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"BadSignal\") {\r\n\t\t \t_slice.badSignal = (long) getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"SQI\") {\r\n\t\t \t_slice.SQI = (long) getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"SliceEnd\") {\r\n\t\t // set public slice to tmp slice\r\n\t\t slice = _slice;\r\n\t\t // empty _slice\r\n\t\t _slice = new ZeoSlice();\r\n\t\t \r\n\t\t triggerZeoSliceEvent();\r\n\t\t }\r\n\t\t \r\n\t\t if(debug) System.out.println(); \r\n\t\t return true;\r\n\t\t} else return false; // return and keep buffer, because not long enough\r\n\t\t \r\n\t}",
"private void readInput() {\n byte[] byteForStream = new byte[2048];\n mListener.onCarRunning();\n\n String message = \"\";\n\n int bytes;\n\n while (true) {\n try {\n bytes = mInputStream.read(byteForStream);\n\n message += new String(byteForStream, 0, bytes);\n Log.d(TAG, \" Read from inputstream \" + message);\n System.out.println(\"Message is\" + message);\n\n if (message.equals(\"Done\")){\n mListener.onCarNotRunning();\n\n }\n if (message.equals(\"Obstacle\")){\n mListener.onCarNotRunning();\n\n\n }\n if (message.equals(\"Continue\")){\n mListener.onCarRunning();\n\n }\n if(message.contains(\"*\")){\n GPSTracker.getInstance(myContext).setGPSstring(message);\n Log.d(TAG, \"Setting GPSString to \" + message);\n }\n\n\n\n } catch (Exception e) {\n Log.e(TAG, \" error reading from inputstream \" + e.getMessage());\n break;\n }\n }\n message = \"\";\n\n }",
"protected void bInput(Packet packet)\r\n {\r\n \t\t\r\n \t\tif(!isCorrupted(packet)&&packet.getSeqnum()==expected_seq_num)\r\n \t\t{\r\n \t\t\t\r\n \t\tSystem.out.println(\"|bInput| : packet \"+Integer.toString(packet.getSeqnum())+\"is received correctly.\"); \r\n \t\t\tString data = packet.getPayload();\r\n \t\t\ttoLayer5(data);\r\n \t\t\tSystem.out.println(\"|bInput| : payload is sent to Layer 5\"); \r\n \t\t\tint check = makeCheckSum(expected_seq_num,ACK_ACKed,DATA_EMPTY);\r\n \t\t\tpacketBuffer = new Packet(expected_seq_num,ACK_ACKed,check,DATA_EMPTY);\r\n \t\t\tSystem.out.println(\"|bInput| : packet with seq number:\"+Integer.toString(expected_seq_num)+\" is stored in Buffer\"); \r\n \t\t\ttoLayer3(1,packetBuffer);\r\n \t\t\tSystem.out.println(\"|bInput| : packet with seq number:\"+Integer.toString(expected_seq_num)+\" is sent\"); \r\n \t\t\texpected_seq_num = (expected_seq_num+1)% LimitSeqNo;\r\n\t\t\tSystem.out.println(\"|bInput| : expected_seq_num becomes: \"+ expected_seq_num+\".\");\r\n \t\t\t\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\t\r\n \t\tSystem.out.println(\"packet is not correct or corrupted, sent ACK \"+packetBuffer.getSeqnum()+\" back to sender\"); \r\n \t\t\ttoLayer3(1,packetBuffer);\r\n \t\t\tSystem.out.println(\"|bInput| : packet with seq number:\"+Integer.toString(packetBuffer.getSeqnum())+\" is sent\");\r\n \t\t}\r\n \t\r\n \t/*\r\n \t\tif(state_receiver == STATE_WAIT_FOR_0_FROM_BELOW)\r\n \t\t{\r\n \t\t\tif(isCorrupted(packet)) //Ack = -1 means NAK\r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"bInput: received packet is corrupted\");\r\n \t\t\t\t//public Packet(int seq, int ack, int check)\r\n \t\t\t\tint seq = -1;\r\n \t\t\t\tint ack = ACK_ACKed_1;\r\n \t\t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY);\r\n \t\t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY); //NAK: seq = -1, ack = -1\r\n \t\t\t\ttoLayer3(1,resendpkt);\r\n \t\t\t\tSystem.out.println(\"bInput: send ACK 1\");\r\n \t\t\t}\r\n \t \t\telse \r\n \t \t\t{\r\n \t \t\t\tSystem.out.println(\"bInput: received packet is not corrupted\");\r\n \t \t\t\tif(packet.getSeqnum()==1)\r\n \t \t\t\t{\r\n \t \t\t\t\tint seq = -1;\r\n \t \t\t\tint ack = ACK_ACKed_1;\r\n \t \t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY); //ACK: seq = -1, ack = 1\r\n \t \t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY);\r\n \t \t\t\ttoLayer3(1,resendpkt); //send back ACK\r\n \t \t\t\tSystem.out.println(\"bInput: send ACK 1\");\r\n \t \t\t\t}\r\n \t \t\t\telse if(packet.getSeqnum()==0)\r\n \t \t\t\t{\r\n \t \t\t\t\tString data = packet.getPayload();\r\n \t \t\t\ttoLayer5(data);\r\n \t \t\t\tSystem.out.println(\"bInput: layer5 received packet 0\");\r\n \t \t\t\t\tint seq = -1;\r\n \t \t\t\tint ack = ACK_ACKed_0;\r\n \t \t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY); //ACK: seq = -1, ack = 1\r\n \t \t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY);\r\n \t \t\t\ttoLayer3(1,resendpkt); //send back ACK\r\n \t \t\t\tSystem.out.println(\"bInput: send ACK 0\");\r\n \t \t\t\tstate_receiver = STATE_WAIT_FOR_1_FROM_BELOW;\r\n \t \t\t\t}\r\n \t \t\t}\r\n \t\t}\r\n \t\t\r\n \t\telse if(state_receiver == STATE_WAIT_FOR_1_FROM_BELOW)\r\n \t\t{\r\n \t\t\tif(isCorrupted(packet)) \r\n \t\t\t{\r\n \t\t\t\tSystem.out.println(\"bInput: received packet is corrupted\");\r\n \t\t\t\t//public Packet(int seq, int ack, int check)\r\n \t\t\t\tint seq = -1;\r\n \t\t\t\tint ack = ACK_ACKed_0;\r\n \t\t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY);\r\n \t\t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY); //NAK: seq = -1, ack = -1\r\n \t\t\t\ttoLayer3(1,resendpkt);\r\n \t\t\t\tSystem.out.println(\"bInput: send ACK 0\");\r\n \t\t\t}\r\n \t \t\telse \r\n \t \t\t{\r\n \t \t\t\tSystem.out.println(\"bInput: received packet is not corrupted\");\r\n \t \t\t\tif(packet.getSeqnum()==0)\r\n \t \t\t\t{\r\n \t \t\t\t\tint seq = -1;\r\n \t \t\t\tint ack = ACK_ACKed_0;\r\n \t \t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY); //ACK: seq = -1, ack = 1\r\n \t \t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY);\r\n \t \t\t\ttoLayer3(1,resendpkt); //send back ACK\r\n \t \t\t\tSystem.out.println(\"bInput: send ACK 0\");\r\n \t \t\t\t}\r\n \t \t\t\telse if(packet.getSeqnum()==1)\r\n \t \t\t\t{\r\n \t \t\t\t\tString data = packet.getPayload();\r\n \t \t\t\ttoLayer5(data);\r\n \t \t\t\tSystem.out.println(\"bInput: layer5 received packet 1\");\r\n \t \t\t\t\tint seq = -1;\r\n \t \t\t\tint ack = ACK_ACKed_1;\r\n \t \t\t\tint check = makeCheckSum(seq,ack,DATA_EMPTY); //ACK: seq = -1, ack = 1\r\n \t \t\t\tPacket resendpkt = new Packet(seq,ack,check,DATA_EMPTY);\r\n \t \t\t\ttoLayer3(1,resendpkt); //send back ACK\r\n \t \t\t\tSystem.out.println(\"bInput: send ACK 1\");\r\n \t \t\t\tstate_receiver = STATE_WAIT_FOR_0_FROM_BELOW;\r\n \t \t\t\t}\r\n \t \t\t}\r\n \t\t}\r\n \t\t*/\r\n }",
"ReleaseFile parseClearSigned( InputStream is, InputStream keyStream ) throws IOException;",
"int readS8()\n throws IOException, EOFException;",
"protected void readData(DataInput input) throws IOException {\n try {\n operationStatus = input.readByte();\n\n if (operationStatus != ProtocolOpcode.OPERATION_OK) {\n exception = input.readByte();\n } else {\n // We have already readed operation for the manual reflection\n int length = input.readInt();\n \n byte[] data = new byte[length];\n input.readFully(data);\n\n ByteArrayInputStream bin = new ByteArrayInputStream(data);\n ObjectInputStream oin = new ObjectInputStream(bin);\n returnValue = (KSNSerializableInterface) oin.readObject();\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"private boolean ReadPacket(ByteVector packet)\n\t{\n\t\treturn codec.ReadPacket(packet, packet_index++);\n\t}",
"@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}",
"public void readSign()\n\t{\n\t\tboolean[][] boolTable = getTable();\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t public void run()\n\t\t {\n\t\t \tview.sPanel.updateTable(boolTable); // aktualizacja tablicy wypełenień w panelu do wyświetlania interpretacji znaku\n\t\t }\n\t\t});\n\t\t\n\t\tArrayList<Double> table = new ArrayList<Double>();\n\t\t\n\t\tfor(int i=0; i<10; ++i) // przygotowanie tablicy wejść dla sieci neuronowej\n\t\t\tfor(int j=0; j<7; ++j)\n\t\t\t\tif(boolTable[i][j])\n\t\t\t\t\ttable.add(1.0d);\n\t\t\t\telse\n\t\t\t\t\ttable.add(0.0d);\n\t\t\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t public void run()\n\t\t {\n\t\t \tview.label.setLabelText(model.getOutput(table)); // ustawienie zawartości pola tekstowego\n\t\t }\n\t\t});\n\t\t\n\t}",
"public byte[] read();",
"public abstract byte read_octet();",
"@Override\r\n public void onPacket(JPackectX packet) {\r\n System.out.println(\"Packet Received:\\n\\t\" + packet.toString());\r\n if (packet.getType() == JPacketTypeX.UPDATE) {\r\n try {\r\n //null for now\r\n }\r\n catch (Exception e) {\r\n }\r\n }\r\n }",
"protected void readFromPacket(NBTTagCompound nbt) {\n }",
"@Override\n public void readFields(DataInput in) throws IOException {\n eventType = EventType.values()[in.readShort()];\n // the timestamp\n stamp = in.readLong();\n // the encoded name of the region being transitioned\n regionName = Bytes.readByteArray(in);\n // remaining fields are optional so prefixed with boolean\n // the name of the regionserver sending the data\n if (in.readBoolean()) {\n byte [] versionedBytes = Bytes.readByteArray(in);\n this.origin = ServerName.parseVersionedServerName(versionedBytes);\n }\n if (in.readBoolean()) {\n this.payload = Bytes.readByteArray(in);\n }\n }",
"void sendSignChangeToPlayer(Player player, Location location, byte data);",
"byte readByte();",
"int readInt();",
"@Override\n\tpublic void read(InStream inStream) {\n\t}",
"protected void readPayload() throws IOException {\n _dataStream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _dataStream.readInt();\n if (rlen == 0) {\n return;\n }\n if (rlen > PushCacheProtocol.MAX_PAYLOAD_LEN) {\n throw new IOException(\"Payload length \" + rlen + \" exceeds maximum length \" + PushCacheProtocol.MAX_PAYLOAD_LEN);\n }\n _textBuffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(142);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(142);\n{\n rv = _stream.read(_textBuffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv + \" after reading \" + sofar + \" bytes\");\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(142);\n\n _dataStream = new DataInputStream(new ByteArrayInputStream(_textBuffer));\n }",
"public String getSigRequest() {\n return sigRequest;\r\n }",
"public void readFields(DataInput in) throws IOException {\n upFlow = in.readLong();\n downFlow = in.readLong();\n sumFlow = in.readLong();\n }",
"short readShort();",
"@Override\n\tpublic void readImpl()\n\t{\n\t\t_requestedPointType = readD();\n\t}",
"@Override\n public int read() throws IOException\n {\n try\n {\n byte [] buff = fAVMRemote.readInput(fTicketHolder.getTicket(), fHandle, 1);\n if (buff.length == 0)\n {\n return -1;\n }\n return ((int)buff[0]) & 0xff;\n }\n catch (Exception e)\n {\n throw new IOException(\"Remote I/O Error.\");\n }\n }",
"public void read(NetInput in)\r\n/* 35: */ throws IOException\r\n/* 36: */ {\r\n/* 37:35 */ this.entityId = in.readInt();\r\n/* 38:36 */ this.metadata = NetUtil.readEntityMetadata(in);\r\n/* 39: */ }",
"void read ();",
"@Override\n public int getSignal() {\n return signal & 0xFF;\n }",
"public void read(final EntityID sender, final int time, final BitArrayInputStream stream);",
"String read();",
"String read();",
"private void TestSerialInput() {\r\n int now = GetMills(), nby = now - PrioSeriTime;\r\n SerialPortSwapper myPort = surrealPort;\r\n if (myPort == null) return; // otherwise test for input, fwd to listener..\r\n PrioSeriTime = now;\r\n if (SpeakEasy) if (nby > 222) // should be every ms, but seems not..\r\n System.out.println(FormatMillis(\" (LATE TSI) +\", nby)\r\n + FormatMillis(\" @ \", now));\r\n if (CountingPulses > 0) { // once each second, ask for current count..\r\n PCtime = PCtime + nby; // count actual elapsed time\r\n if (PCtime >= CountingPulses) { // always logs..\r\n Send3bytes(REPORT_PULSECOUNT, 0, 0); // pin + is ignored\r\n PCtime = PCtime - CountingPulses;\r\n }\r\n } //~if\r\n try {\r\n nby = surrealPort.getInputBufferBytesCount();\r\n if (nby <= 0) return;\r\n if (OneSerEvt == null) // ProcInp only looks at type, so keep this one..\r\n OneSerEvt = new SerialPortEvent(\r\n CommPortNo, SerialPort.MASK_RXCHAR, nby);\r\n ProcessInput(OneSerEvt);\r\n } catch (Exception ex) {\r\n System.out.println(ex);\r\n }\r\n }",
"InputStream synthesize(String phrase, OutputFormat fmt) throws IOException;",
"private int read()\n\t{\n\t\ttry{\n\t\t\twhile(dev_in.available()==0);\n\t\t\treturn dev_in.read();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t\treturn -1;\n\t}",
"com.google.protobuf.ByteString getSig();",
"private void receiveSymbol(Complex symbol) {\n\t\tphase = (previousSymbol.conjugateTimes(symbol)).phase();\n\t\tpreviousSymbol = symbol;\n\n\t\t// ensure phase is between 0 and 2 pi radians\n\t\tif (phase < 0) {\n\t\t\tphase += 2 * Math.PI;\n\t\t}\n\n\t\t// work out if phase inversion has occurred\n\t\tbits = (((int) (phase / Math.PI + 0.5)) & 1) << 1;\n\n\t\t// simple low pass filter for quality of signal\n\t\tquality = new Complex(0.02 * Math.cos(2 * phase) + 0.98 * quality.Re(), 0.02 * Math.sin(2 * phase) + 0.98 * quality.Im());\n\t\tmetric = 100.0 * quality.norm();\n\n\t\tdecodeShiftRegister = (decodeShiftRegister << 2) | bits;\n\n\t\tswitch (decodeShiftRegister) {\n\t\tcase 0xAAAAAAAA: /* decode is on for preamble - 16 inversions */\n\t\t\tdecode = true;\n\t\t\tquality = new Complex(1.0, 0.0);\n\t\t\tbreak;\n\n\t\tcase 0: /* decode is off for postamble */\n\t\t\tdecode = false;\n\t\t\tquality = new Complex(0.0, 0.0);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tdecode = (!squelchOn || metric > squelch);\n\t\t}\n\n\t\tif (decode) {\n\t\t\treceiveBit(bits == 0 ? 1 : 0);\n\t\t}\n\t}",
"public byte[] readRawInt() throws IOException {\n byte[] bytes = new byte[5];\n bytes[0] = (byte) Type.INT.code;\n in.readFully(bytes, 1, 4);\n return bytes;\n }",
"private static InPacket deserializePacket(ByteArrayDataInput in)\n\t\t\tthrows IOException\n\t{\n\t\tbyte id = in.readByte();\n\t\tint len = in.readInt();\n\t\tbyte[] array = new byte[len];\n\t\tin.readFully(array);\n\n\t\treturn deserializeRawPacket(id, array);\n\t}",
"public static int getVersion(InputStream is, boolean littleEndianOk) throws IOException {\n if (! is.markSupported()) {\n throw new IllegalArgumentException(\"Input stream must support mark().\");\n }\n is.mark(4);\n byte sig[] = new byte[4];\n int read = is.read(sig);\n is.reset();\n\n if (read != sig.length) {\n return 0;\n }\n\n if (sig[0]=='T' && sig[1]=='r' && sig[2]=='i' && sig[3]=='e') {\n return 1;\n }\n if (sig[0]=='T' && sig[1]=='r' && sig[2]=='i' && sig[3]=='2') {\n return 2;\n }\n if (littleEndianOk) {\n if (sig[0]=='e' && sig[1]=='i' && sig[2]=='r' && sig[3]=='T') {\n return 1;\n }\n if (sig[0]=='2' && sig[1]=='i' && sig[2]=='r' && sig[3]=='T') {\n return 2;\n }\n }\n return 0;\n }",
"@Override\n public void doRead() throws IOException {\n if (sc.read(bbin) == -1) {\n state = State.CLOSED;\n }\n processIn();\n updateInterestOps();\n }",
"int readFrom(byte[] iStream, int pos, ORecordVersion version);",
"String shortRead();",
"ReleaseFile parseWithSignature( InputStream is, InputStream signStream, InputStream keyStream ) throws IOException;",
"public byte readByte() throws IOException {\n return in.readByte();\n }",
"public abstract void inputChangeEvent( float time, int dstPin, boolean v );",
"private Message readAndUpdateStatistics() throws IOException, BadPacketException {\n Message msg = messageFactory.read(_in, Network.TCP, HEADER_BUF, getSoftMax(), null);\n if (msg != null)\n processReadMessage(msg);\n return msg;\n }",
"public int readVectorHeader() throws IOException {\n return in.readInt();\n }",
"public void optionFromWire(DNSInput in) throws IOException {\n this.data = in.readByteArray();\n }",
"int readS8(String name)\n throws IOException, EOFException;",
"abstract void read();",
"GasData receiveGasData();",
"public void onInputSignalChange(String input, boolean hasSignal) {\n\n\t\t}",
"@Override\n public int read() throws IOException {\n int r = -1;\n \n if (encryptedDataBuffer!=null && pos>=encryptedDataBuffer.length && !closed)\n fillBuffer();\n \n if (encryptedDataBuffer!=null && pos<encryptedDataBuffer.length)\n r = (int)encryptedDataBuffer[pos++]; // next element in the buffer\n return r;\n }",
"public abstract short read_short();",
"static int readRawVarint32(InputStream input) throws IOException {\r\n int result = 0;\r\n int offset = 0;\r\n for (; offset < 32; offset += 7) {\r\n int b = input.read();\r\n if (b == -1) {\r\n throw new EOFException(\"stream is truncated\");\r\n }\r\n result |= (b & 0x7f) << offset;\r\n if ((b & 0x80) == 0) {\r\n return result;\r\n }\r\n }\r\n // Keep reading up to 64 bits.\r\n for (; offset < 64; offset += 7) {\r\n int b = input.read();\r\n if (b == -1) {\r\n throw new EOFException(\"stream is truncated\");\r\n }\r\n if ((b & 0x80) == 0) {\r\n return result;\r\n }\r\n }\r\n throw new IOException(\"malformed varInt\");\r\n }",
"public void readSampless(){\n\t\tif (loop) {\n\t\t\treadBytesLoop();\n\t\t} else {\n\t\t\treadBytes();\n\t\t}\n\t\t// convert them to floating point\n\t\t// hand those arrays to our effect\n\t\t// and convert back to bytes\n\t\tprocess();\n\t\t\n\t\t// write to the line.\n\t\twriteBytes();\n\t\t// send samples to the listener\n\t\t// these will be what we just put into the line\n\t\t// which means they should be pretty well sync'd\n\t\t// with the audible result\n\t\tbroadcast();\n\t}",
"public java.lang.String getReceiveSign () {\r\n\t\treturn receiveSign;\r\n\t}",
"public double getSignal() {return _signal;}",
"public String read();",
"public interface SignalInput extends DspObject {\r\n\t/**\r\n\t * Set the signal strength on this signal input. Normally 0.0f means 'no\r\n\t * signal', and normally the range is -1.0 until 1.0 for audio signals.\r\n\t * However, nothing prevents a signal to be outside of this range; and they\r\n\t * will often be. For example mixing multiple signals together will\r\n\t * typically lead to signals getting out of that -1.0 to 1.0 range. And a\r\n\t * signal doesn't need to be audio, but can be any kind of signal (for\r\n\t * example a signal that controls a frequency).<br/>\r\n\t * A signal should be treated as being in the range -1.0f to 1.0f for audio,\r\n\t * but can otherwise be completely arbitrary.\r\n\t * \r\n\t * @param signal\r\n\t * The signal\r\n\t */\r\n\tpublic void set(float signal);\r\n}",
"public int readInt() throws IOException;",
"private void processInputData() throws IOException {\n\t\tout.write(Protocol.PC_READY.value);\n\t\tout.flush();\n\t\tInputBuffer buffer = InputBuffer.readFrom(in);\n\t\tdispatcher.dispatch(buffer.entries);\n\t}",
"public int readFromDataStream( MixedDataInputStream in )\n {\n try {\n etype = new Integer( in.readInt() );\n pad = in.readInt();\n color = in.readString( StrColor.BYTESIZE );\n name = in.readString( StrDesc.BYTESIZE );\n format = in.readString( StrFormat.BYTESIZE );\n } catch ( IOException ioerr ) {\n ioerr.printStackTrace();\n return 0;\n }\n\n return BYTESIZE;\n }",
"public byte GetInputPolarity () throws IOException {\n return mDevice.readRegByte(IPOL);\n }",
"public abstract ChecksumPair read() throws IOException;",
"InputStream mo1151a();",
"public MaintenanceHandshakeRequest(DataInputStream dis) throws IOException\n {\n // Read the bytes from the input stream\n majorVersion = dis.readByte();\n minorVersion = dis.readByte();\n\n // Check version information\n if (majorVersion != MaintenanceConstants.VERSION_MINOR || minorVersion != MaintenanceConstants.VERSION_MINOR)\n {\n // Umm, bad version\n throw new IOException(\"bad version number\");\n }\n\n featureCode = dis.readByte();\n reserved = dis.readByte();\n }",
"ReadPolyState(boolean isAccept){\n this.isAccept = isAccept; \n }",
"public com.google.protobuf.ByteString getAudioIn() {\n if (converseRequestCase_ == 2) {\n return (com.google.protobuf.ByteString) converseRequest_;\n }\n return com.google.protobuf.ByteString.EMPTY;\n }",
"public byte getINS() {\n return this.apdu_buffer[INSTRUCTION];\n }",
"byte[] readBytes();",
"private static int readInt(InputStream is) throws IOException {\n int a = is.read();\n int b = is.read();\n int c = is.read();\n int d = is.read();\n return a | b << 8 | c << 16 | d << 24;\n }",
"int readS16BE()\n throws IOException, EOFException;",
"void requestInput();",
"@Override\n\tpublic void read() {\n\n\t}",
"@Override\n\tpublic int read() throws IOException {\n\t\tif (buf.isReadable()) {\n return buf.readByte() & 0xff;\n }\n return -1;\n\t}",
"int readInt() throws IOException;",
"@Override\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tbytes = in.readInt();\n\t\tbuffer = new byte[bytes];\n\t\tint num = 0;\t\t\n\t\twhile(num < bytes){\n\t\t\tbuffer[num] = in.readByte();\n\t\t\tnum++;\n\t\t}\n\t}"
]
| [
"0.5685956",
"0.5671504",
"0.55464226",
"0.5542544",
"0.55283767",
"0.5497878",
"0.5457325",
"0.5393975",
"0.5387252",
"0.53644645",
"0.53524137",
"0.5342065",
"0.5340346",
"0.52921885",
"0.5283539",
"0.52384",
"0.5196846",
"0.51945776",
"0.5187056",
"0.5185279",
"0.515865",
"0.51526046",
"0.51322865",
"0.5128569",
"0.5106156",
"0.51018184",
"0.5086461",
"0.5085929",
"0.5060734",
"0.50430626",
"0.5037201",
"0.5037195",
"0.5027233",
"0.50137573",
"0.5009809",
"0.5005084",
"0.49874106",
"0.49812028",
"0.49726957",
"0.49696758",
"0.4967036",
"0.49501517",
"0.49483848",
"0.49432477",
"0.4931966",
"0.4904123",
"0.48975152",
"0.48967725",
"0.48935944",
"0.48815924",
"0.48726898",
"0.48678482",
"0.48646694",
"0.48646694",
"0.4859968",
"0.48573402",
"0.4850017",
"0.48370838",
"0.48309192",
"0.4830607",
"0.48304418",
"0.48298198",
"0.48145667",
"0.48098728",
"0.4804204",
"0.47831368",
"0.47815013",
"0.477978",
"0.47760847",
"0.47659016",
"0.4763399",
"0.47633192",
"0.47625098",
"0.4748408",
"0.47446725",
"0.47313687",
"0.47228026",
"0.471878",
"0.4718356",
"0.47154474",
"0.47063842",
"0.47028685",
"0.46990427",
"0.4694493",
"0.46816108",
"0.46789813",
"0.46789426",
"0.46736598",
"0.4672738",
"0.46592343",
"0.46571738",
"0.46550274",
"0.46546912",
"0.46520334",
"0.46520293",
"0.46490714",
"0.46484718",
"0.46475756",
"0.46463165",
"0.46462426",
"0.46447927"
]
| 0.0 | -1 |
Generates the sign editor packet | Object openSignEditor(Location location); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void signMessage() {\n\n String messageText = messageTextArea.getText();\n SecureCharSequence secureCharSequence = new SecureCharSequence(currentPassword.getPassword());\n String signMessage = this.address.signMessage(messageText, secureCharSequence);\n signature.setText(signMessage);\n\n }",
"@Override\n public byte[] generateSignature() throws CryptoException, DataLengthException {\n if (!forSigning) {\n throw new IllegalStateException(\"CL04 Signer not initialised for signature generation.\");\n }\n\n try {\n CL04SignSecretPairingKeySerParameter sk = (CL04SignSecretPairingKeySerParameter) pairingKeySerParameter;\n Pairing pairing = PairingFactory.getPairing(sk.getParameters());\n final Element alpha = pairing.getZr().newRandomElement().getImmutable();\n final Element a = sk.getG().powZn(alpha);\n final List<Element> A = sk.getZ().stream().map(a::powZn).collect(Collectors.toCollection(ArrayList::new));\n final Element b = a.powZn(sk.getY()).getImmutable();\n final List<Element> B = A.stream().map(Ai -> Ai.powZn(sk.getY())).collect(Collectors.toCollection(ArrayList::new));\n final Element xTimesY = alpha.mul(sk.getX().mul(sk.getY()));\n final Element c = a.powZn(sk.getX()).mul(commitment.powZn(xTimesY)).getImmutable();\n\n Element[] signElements = new Element[3 + 2 * messages.size()];\n signElements[0] = a;\n signElements[1] = b;\n signElements[2] = c;\n for (int i = 0; i < messages.size(); i++) {\n signElements[3 + i] = A.get(i);\n signElements[3 + messages.size() + i] = B.get(i);\n }\n return derEncode(signElements);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }",
"private static void wxSignTest(){\n\t\t\n\t\tString sb=\"appid=wx791233ecd4e71c3f&attach=91_40090_3999&mch_id=1220845901&openid=oc9Xijt__DS0SyGDGqGnUPxSkDWQ&cash_fee=7600&fee_type=CNY\"+\n\t\t\t\t\"&time_end=20150831172810&bank_type=BOC_DEBIT&nonce_str\"+\n\t\t\t\t\"=5K8264ILTKCH16CQ2502SI8ZNMTM67VS&total_fee=7600&trade_type=JSAPI&result_code=SUCCESS&return_code=SUCCESS&is_subscribe=Y&out_trade_\"+\n\t\t\t\t\"no=2015083100400904657685188272&transaction_id=1007950222201508310755172159&key=48d15a39462fbe06f6391328ff685954\";\n\t\t\tString sign = DigestUtils.md5Hex(sb).toUpperCase();\n\t\t\tSystem.out.println(\"sign=\"+sign);\t\n\t}",
"@Override\n\tpublic Packet generateInitialReplyPacket(Packet p) {\n\t\tPacket pkt=super.generateInitialReplyPacket(p);\n\t\t pkt=sm.sign(pkt);\n\t return pkt;\n\t}",
"public interface SignReflection {\n /**\n * Reads an input packet of sign being updated\n *\n * @param packet The input packet of the sign being updated\n * @return The lines stored in the input packet\n */\n String[] readLines(Object packet);\n\n /**\n * Generates the sign editor packet\n *\n * @param location The location of the sign for the player's world or the game world\n * @return The output packet that includes the required information to open the sign editor\n */\n Object openSignEditor(Location location);\n\n /**\n * Update sign lines to the player\n *\n * @param player The player that you aim to update the sign for\n * @param location The location of the sign in the player's world\n * @param lines The new values of the lines of the sign\n */\n void updateSignToPlayer(Player player, Location location, String[] lines);\n\n /**\n * Send a block change that sets a certain block to be a sign.\n * Legacy and latest versions of Bukkit API includes different type of sign Material\n *\n * @param player The player to send the block change to\n * @param location The location of the block\n * @param data Raw data in bytes about the block\n */\n void sendSignChangeToPlayer(Player player, Location location, byte data);\n\n /**\n * Sends a packet to the player using NMS\n *\n * @param player The player that you are going to send the packet to\n * @param packet The object of the output packet\n */\n void sendPacketToPlayer(Player player, Object packet);\n}",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:55:06.831 -0500\", hash_original_method = \"E7A2FB4AC135D29D78CE09D5448C290F\", hash_generated_method = \"74B066602ECC20A74FD97E770D65E8BD\")\n \npublic String encodeBody() {\n return encodeBody(new StringBuffer()).toString();\n }",
"String getSign();",
"public String getSign() {\n return sign;\n }",
"@Override\n\tpublic String representation() {\n\t\treturn this.sign.name();\n\t}",
"public void generateSignature(PrivateKey privateKey) {\r\n\t\t\r\n\t\tString data;\r\n\t\t\r\n\t\tif(isTypeCreation){\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(creator) + name +\r\n\t\t\t\t\tdescription + begin + end+end_subscription+\r\n\t\t\t\t\tlocation+min_capacity+max_capacity;\r\n\t\t\t\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\tdata = StringUtil.getStringFromKey(subscriber)+id_event;\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsignature = StringUtil.applyECDSASig(privateKey,data);\r\n\t\tprocessTransaction();\r\n\t\t\t\r\n\t}",
"public byte[] generateSignature()\n {\n if (!forSigning)\n {\n throw new IllegalStateException(\"PairingDigestSigner not initialised for signature generation.\");\n }\n\n byte[] hash = new byte[digest.getDigestSize()];\n digest.doFinal(hash, 0);\n\n Element[] sig = pairingSigner.generateSignature(hash);\n\n try {\n return pairingSigner.derEncode(sig);\n } catch (IOException e) {\n throw new IllegalStateException(\"unable to encode signature\");\n }\n }",
"public byte[] sign() throws XMLSignatureException {\n/* 177 */ return this.signatureAlgorithm.engineSign();\n/* */ }",
"java.lang.String getSignatureText();",
"void sendSignChangeToPlayer(Player player, Location location, byte data);",
"public String getSign() {\n\n return this.sign;\n }",
"private static String signFirstTime() throws AddressFormatException\n {\n ECKey key1 = ECKey.fromPrivate(new BigInteger(\"64102401986961187973900162212679081334328198710146539384491794427145725009072\"));\n\n\n // Use the redeem script we have saved somewhere to start building the transaction\n Script redeemScript = new Script(hexStringToByteArray(\"5221021ae8964b8529dc3e52955f2cabd967e08c52008dbcca8e054143b668f3998f4a210306be609ef37366ab0f3dd4096ac23a6ee4d561fc469fa60003f799b0121ad1072102199f3d89fa00e6f55dd6ecdd911457d7264415914957db124d53bf0064963f3853ae\"));\n\n // Start building the transaction by adding the unspent inputs we want to use\n // The data is taken from blockchain.info, and can be found here: https://blockchain.info/rawtx/ca1884b8f2e0ba88249a86ec5ddca04f937f12d4fac299af41a9b51643302077\n Transaction spendTx = new Transaction(params);\n ScriptBuilder scriptBuilder = new ScriptBuilder();\n scriptBuilder.data(new String(\"a9145204ad7c5fa5a2491cd91c332e28c87221194ca087\").getBytes()); // Script of this output\n TransactionInput input = spendTx.addInput(new Sha256Hash(\"fed695bf5e2c15286956a7bd3464c5beb97ef064e1f9406eba189ea844733e7c\"), 1, scriptBuilder.build());\n\n // Add outputs to the person receiving bitcoins\n Address receiverAddress = new Address(params, \"n2cWhs5sbWFCwzuuWWsVM9ubPwykGtX75T\");\n Coin charge = Coin.valueOf(1000000); // 0.1 mBTC\n Script outputScript = ScriptBuilder.createOutputScript(receiverAddress);\n spendTx.addOutput(charge, outputScript);\n\n /*8888888888888888888888888888888888888888888888888888888888888*/\n\n // Sign the first part of the transaction using private key #1\n Sha256Hash sighash = spendTx.hashForSignature(0, redeemScript, Transaction.SigHash.ALL, false);\n ECKey.ECDSASignature ecdsaSignature = key1.sign(sighash);\n TransactionSignature transactionSignarture = new TransactionSignature(ecdsaSignature, Transaction.SigHash.ALL, false);\n\n // Create p2sh multisig input script\n Script inputScript = ScriptBuilder.createP2SHMultiSigInputScript(Arrays.asList(transactionSignarture), redeemScript);\n\n // Add the script signature to the input\n input.setScriptSig(inputScript);\n System.out.println(byteArrayToHex(spendTx.bitcoinSerialize()));\n\n return byteArrayToHex(spendTx.bitcoinSerialize());\n }",
"public byte[] generateCode(VBox editorBox) {\n ArrayList<Byte> bytes = generateByteList(editorBox);\n bytes.add((byte) 2);\n bytes.add((byte) 'e');\n byte[] byteArray = new byte[bytes.size()];\n\n for (int i = 0; i < bytes.size(); i++) {\n byteArray[i] = bytes.get(i);\n }\n\n return byteArray;\n// int count =0;\n// for(Byte b:bytes){\n// if(count==0){\n// System.out.println();\n// count = Byte.toUnsignedInt(b);\n// }\n// System.out.print(Byte.toUnsignedInt(b)+\" \");\n// count--;\n// }\n// try {\n// FileOutputStream fos = new FileOutputStream(new File(\"C:\\\\Users\\\\Udith Arosha\\\\Desktop\\\\output.txt\"));\n// byte[] outBytes = new byte[bytes.size()];\n// fos.write(outBytes);\n// fos.flush();\n// fos.close();\n// } catch (FileNotFoundException ex) {\n// Logger.getLogger(CodeGenerator.class.getName()).log(Level.SEVERE, null, ex);\n// } catch (IOException ex) {\n// Logger.getLogger(CodeGenerator.class.getName()).log(Level.SEVERE, null, ex);\n// }\n }",
"public static String sign(String message, ECKey privateKey) {\n JSONObject unitObj = JSONObject.parseObject(message);\n String str = getSourceString(unitObj);\n return signStr(str,privateKey);\n }",
"public static void main(String[] args) throws AddressFormatException {\n\n// generateMultisig();\n String getSignedTransaction = signFirstTime();\n String rawtx = signSecondTime(getSignedTransaction);\n\n System.out.println(\"rawtx ->\"+ rawtx);\n }",
"public String getSignType() {\n return signType;\n }",
"String getSignature();",
"String getSignature();",
"String getSignature();",
"public void buildSignature() throws IOException\n {\n PDFTemplateBuilder builder = new PDVisibleSigBuilder();\n PDFTemplateCreator creator = new PDFTemplateCreator(builder);\n setVisibleSignature(creator.buildPDF(getPdVisibleSignature()));\n }",
"private byte[] signData(byte[] data)\n throws CmsCadesException, GeneralSecurityException, IOException {\n CadesSignature cmsSig = new CadesSignature(data, SignedData.EXPLICIT);\n // CadesBESParameters params = new CadesBESParameters();\n CadesTParameters params = new CadesTParameters(\n \"http://tsp.iaik.tugraz.at/tsp/TspRequest\", null, null);\n params.setDigestAlgorithm(\"SHA512\");\n cmsSig.addSignerInfo(privKey_, certChain_, params);\n return cmsSig.encodeSignature();\n }",
"private String signString(int signed){\n\t\tString signedStr = \"NO\";\n\t\tif (signed == 1) {\n\t\t\tsignedStr = \"YES\";\n\t\t}\n\t\treturn signedStr;\n\t}",
"private void signSetter(Block b, Player p, String[] lines) \n\t{\t\t\n\t\t//TODO: virer debug\n\t\t//p.sendMessage(\"dbg1\");\n\t\t\n\t\t\n\t\tif(b==null) \n\t\t\treturn;\n\t\t\n\t\tBoutiqueSign bs = new BoutiqueSign();\n\t\t\n\t\tbs.setOwner(p);\n\t\tbs.setLocation(b.getLocation());\n\t\tbs.setLines(lines);\n\n\t\t//TODO: virer debug\n\t\t/*\n\t\tp.sendMessage(\"dbg1 : line1 = \" + bs.getLine1());\n\t\tp.sendMessage(\"dbg1 : line2 = \" + bs.getLine2());\n\t\tp.sendMessage(\"dbg1 : line3 = \" + bs.getLine3());\n\t\tp.sendMessage(\"dbg1 : line4 = \" + bs.getLine4());\t\t\n\t\tp.sendMessage(\"dbg2 : type = \" + bs.getType());\n\t\t*/\n\t\t\n\t\tif(bs.isSignServer())\n\t\t{\n\t\t\t\n\t\t\tif (!PermissionsHandler.canSetGlobalSign(p))\n\t\t\t{\n\t\t\t\tp.sendMessage(PermissionsHandler.permissionErr);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(!bs.checkLines(p))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.SERVERSIGNADDED\")); //$NON-NLS-1$\n\t\t}\n\t\t\n\t\telse if(bs.isSignChest())\n\t\t{\n\t\t\tif (!PermissionsHandler.canSetPersonalSign(p))\n\t\t\t{\n\t\t\t\tp.sendMessage(plugin.chatPrefix + PermissionsHandler.permissionErr);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(!bs.checkLines(p))\n\t\t\t{\n\t\t\t\t//TODO: virer debug\n\t\t\t\t//p.sendMessage(\"erreur checkline\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.CHESTSIGNADDED\")); //$NON-NLS-1$\n\t\t}\t\n\t\telse if(bs.isSignWebAuction())\n\t\t{\n\t\t\tif (!PermissionsHandler.canSetWebAuctionSign(p))\n\t\t\t{\n\t\t\t\tp.sendMessage(PermissionsHandler.permissionErr);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(!bs.checkLines(p))\n\t\t\t{\n\t\t\t\t//TODO: virer debug\n\t\t\t\t//p.sendMessage(\"erreur checkline\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.WEBAUCTIONSIGNADDED\")); //$NON-NLS-1$\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tbs.setLine4(\"ok\");\t\t\t //$NON-NLS-1$\n\t\tbs.Render();\n\t\t\n\t\tthis.put(bs);\n\t\tplugin.signmanager.saveGlobalSigns();\n\t}",
"public String getSignName() {\n return signName;\n }",
"public void dialogsign(final String c){\n tempDir = Environment.getExternalStorageDirectory() + \"/\" + getResources().getString(R.string.app_name) + \"/\";\n ContextWrapper cw = new ContextWrapper(Remittancetooic.this);\n File directory = cw.getDir(getResources().getString(R.string.app_name), Context.MODE_PRIVATE);\n\n prepareDirectory();\n uniqueId = getTodaysDate() + \"_\" + getCurrentTime() + \"_\" + Math.random();\n current = uniqueId + \".png\";\n mypath= new File(directory,current);\n\n\n mContent = (LinearLayout)dialog.findViewById(R.id.linearLayout);\n mSignature = new Remittancetooic.signature(Remittancetooic.this, null);\n mSignature.setBackgroundColor(Color.WHITE);\n mContent.addView(mSignature, ViewGroup.LayoutParams.FILL_PARENT, ViewGroup.LayoutParams.FILL_PARENT);\n mClear = (Button)dialog.findViewById(R.id.clearsign);\n mGetSign = (Button)dialog.findViewById(R.id.savesign);\n mGetSign.setEnabled(false);\n mCancel = (Button)dialog.findViewById(R.id.cancelsign);\n mView = mContent;\n\n mClear.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n Log.v(\"log_tag\", \"Panel Cleared\");\n mSignature.clear();\n mGetSign.setEnabled(false);\n }\n });\n\n mGetSign.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n //Log.v(\"log_tag\", \"Panel Saved\");\n boolean error = captureSignature();\n if(!error){\n mContent.setDrawingCacheEnabled(true);\n mSignature.save(mView);\n if (c.equals(\"tooic\")) {\n String type = \"OIC\";\n String trtype = \"Remittance\";\n String amount = amounthold.getText().toString();\n gen.addNewRemittance(type, oicname, \"\", \"\", amount,\n off, helper.logcount() + \"\", datereturn(), \"0\", \"1\");\n updateAll(helper.logcount()+\"\");\n gen.updateRemAmountStat(helper.logcount()+\"\", \"1\");\n\n gen.addTransactions(trtype, \"\"+helper.logcount(),\n \"Added new remittance to \"+type, datereturn(), getCurrentTime());\n\n updateAllAllowance();\n recreate();\n }else if (c.equals(\"tobank\")){\n String ty = \"BANK\";\n String trtype = \"Remittance\";\n String amount = amounthold.getText().toString();\n gen.addNewRemittance(ty, bank, acc_name, acc_num, amount, off,\n helper.logcount()+\"\", datereturn(), \"0\", \"1\");\n updateAll(helper.logcount()+\"\");\n gen.addTransactions(trtype, \"\"+helper.logcount(),\n \"Added new remittance to \"+ty, datereturn(), getCurrentTime());\n\n updateAllAllowance();\n recreate();\n }\n dialog.dismiss();\n }\n }\n });\n\n mCancel.setOnClickListener(new View.OnClickListener()\n {\n public void onClick(View v)\n {\n Log.v(\"log_tag\", \"Panel Canceled\");\n mSignature.clear();\n dialog.dismiss();\n }\n });\n dialog.show();\n }",
"byte[] getSignatureImage();",
"public static byte[] stageAPacket(ServerValuesHolder values) {\t\t\n\t\tbyte[] payload = new byte[ServerValuesHolder.HEADER_LENGTH + 4]; \n\t\tSystem.arraycopy(values.getNum_byte(), 0, payload, 0, 4);\n\t\tSystem.arraycopy(values.getLen_byte(), 0, payload, 4, 4);\n\t\tSystem.arraycopy(values.getUdp_port_byte(), 0, payload, 8, 4); // udp_port\n\t\tSystem.arraycopy(values.getSecretA_byte(), 0, payload, 12, 4); // secretA\n\t\t\n\t\treturn createPacket(ServerValuesHolder.secretInit, 2, values.getStudentID(), payload);\n\t}",
"public void setSign(String sign) {\n\n this.sign = sign;\n }",
"String signingRegion();",
"@Override\n public String buildSignature(RequestDataToSign requestDataToSign, String appKey) {\n // find private key for this app\n final String secretKey = keyStore.getPrivateKey(appKey);\n if (secretKey == null) {\n LOG.error(\"Unknown application key: {}\", appKey);\n throw new PrivateKeyNotFoundException();\n }\n\n // sign\n return super.buildSignature(requestDataToSign, secretKey);\n }",
"public static String sign(String preStr, String signType, String mchPrivateKey) throws Exception {\n\t\tRSAUtil.SignatureSuite suite = null;\n\t\tif (\"RSA_1_1\".equals(signType)) {\n\t\t\tsuite = RSAUtil.SignatureSuite.SHA1;\n\t\t} else if (\"RSA_1_256\".equals(signType)) {\n\t\t\tsuite = RSAUtil.SignatureSuite.SHA256;\n\t\t} else {\n\t\t\tthrow new Exception(\"不支持的签名方式\");\n\t\t}\n byte[] signBuf = RSAUtil.sign(suite, preStr.getBytes(\"UTF8\"),\n mchPrivateKey);\n return new String(Base64.encodeBase64(signBuf), \"UTF8\");\n }",
"public static void main(String[] args) {\n\n\t\tif (args.length != 5) {\n\t\t System.out.println(\"Usage: GenSig nameOfFileToSign keystore password sign publicKey\");\n\n\t\t }\n\t\telse try{\n\n\t\t KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t ks.load(new FileInputStream(args[1]), args[2].toCharArray());\n\t\t \n\t\t String alias = (String)ks.aliases().nextElement();\n\t\t PrivateKey privateKey = (PrivateKey) ks.getKey(alias, args[2].toCharArray());\n\n\t\t Certificate cert = ks.getCertificate(alias);\n\n\t\t // Get public key\t\n\t\t PublicKey publicKey = cert.getPublicKey();\n\n\t\t /* Create a Signature object and initialize it with the private key */\n\n\t\t Signature rsa = Signature.getInstance(\"SHA256withRSA\");\t\n\t\n\n\t\t rsa.initSign(privateKey);\n\n\t\t /* Update and sign the data */\n\n \t String hexString = readFile(args[0]).trim();\n\t\t byte[] decodedBytes = DatatypeConverter.parseHexBinary(hexString);\t\n\t\t InputStream bufin = new ByteArrayInputStream(decodedBytes);\n\n\n\t\t byte[] buffer = new byte[1024];\n\t\t int len;\n\t\t while (bufin.available() != 0) {\n\t\t\tlen = bufin.read(buffer);\n\t\t\trsa.update(buffer, 0, len);\n\t\t };\n\n\t\t bufin.close();\n\n\t\t /* Now that all the data to be signed has been read in, \n\t\t\t generate a signature for it */\n\n\t\t byte[] realSig = rsa.sign();\n\n\t\t \n\t\t /* Save the signature in a file */\n\n\t\t File file = new File(args[3]);\n\t\t PrintWriter out = new PrintWriter(file);\n\n\t\t\t// if file doesn't exists, then create it\n\t\t\tif (!file.exists()) {\n\t\t\t\tfile.createNewFile();\n\t\t\t}\n\n\t\t out.println(DatatypeConverter.printBase64Binary(realSig));\n\t\t out.close();\n\n\n\t\t /* Save the public key in a file */\n\t\t byte[] key = publicKey.getEncoded();\n\t\t FileOutputStream keyfos = new FileOutputStream(args[4]);\n\t\t keyfos.write(key);\n\n\t\t keyfos.close();\n\n\t\t} catch (Exception e) {\n\t\t System.err.println(\"Caught exception \" + e.toString());\n\t\t}\n\n\t}",
"private String getSignString(HttpServletRequest request) throws IOException {\n\t\tString date = ((HttpServletRequest) request).getHeader(HttpHeaders.DATE);\n\t\tString body = ((RequestWrapper) request).getPayload();\n\t\tString base64Body = Base64.encodeBase64String(body.getBytes());\n\n\t\tStringBuilder sb = new StringBuilder(request.getScheme());\n\t\tsb.append(\"://\");\n\t\tsb.append(request.getServerName());\n\t\tsb.append((\"http\".equals(request.getScheme()) && request.getServerPort() == 80) || (\"https\".equals(request.getScheme()) && request.getServerPort() == 443) ? \"\" : \":\" + request.getServerPort() );\n\t\tsb.append(request.getRequestURI());\n\t\tsb.append(request.getQueryString() != null ? \"?\" + request.getQueryString() : \"\");\n\t\tsb.append(\" \");\n\t\tsb.append(date);\n\t\tsb.append(\" \");\n\t\tsb.append(base64Body);\n\n\t\treturn sb.toString();\n\t}",
"public SignType getSignType();",
"BlsPoint sign(BigInteger privateKey, byte[] data);",
"@Override\n\tpublic String pack() {\n\t\treturn \"Bpxx packingg somjkjhha\";\n\t}",
"protected void buildPacket() throws IOException {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\t\n\t\t// write packet\n\t\tbaos.write(SPInstr.USER.getByte()); // username\n\t\tbaos.write(username.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.PASS.getByte()); // password\n\t\tbaos.write(password.getBytes());\n\t\tbaos.write(SPInstr.EOM.getByte());\n\t\tbaos.write(SPInstr.EOP.getByte()); // no action required since it is sent from the client\n\t\t\n\t\t// save packet\n\t\tpacket = baos.toByteArray();\n\t}",
"public abstract String getSignature();",
"public static byte[] stageCPacket(ServerValuesHolder values) {\n\t\tbyte[] payload = new byte[13];\n\t\tSystem.arraycopy(values.getNum2_byte(), 0, payload, 0, 4);\n\t\tSystem.arraycopy(values.getLen2_byte(), 0, payload, 4, 4);\n\t\tSystem.arraycopy(values.getSecretC_byte(), 0, payload, 8, 4);\n\t\tpayload[12] = (byte) values.getC();\n\t\t\n\t\treturn createPacket(values.getSecretB(), 2, values.getStudentID(), payload);\n\t}",
"com.google.protobuf.ByteString getSignature();",
"public Sign getSign() {\n return sign;\n }",
"public void sign(String reason, String location) throws IOException, DocumentException, GeneralSecurityException {\n\t\tPdfReader reader = new PdfReader(src);\n\t\tFileOutputStream os = new FileOutputStream(dest);\n\t\t\n\t\tPdfStamper sello = PdfStamper.createSignature(reader, os, '\\0');\n\t\t\n\t\t//Creamos el sello y su localización.\n\t\tPdfSignatureAppearance apariencia = sello.getSignatureAppearance();\n\t\tapariencia.setReason(reason);\n\t\tapariencia.setLocation(location);\n\t\tapariencia.setVisibleSignature(new Rectangle(36, 748, 144, 700), 1, \"sig\");\n\t\t\n\t\t//Creamos la firma.\n\t\tExternalSignature pks = new PrivateKeySignature(pk, DigestAlgorithms.SHA256, provider.getName());\n\t\t\n\t\tExternalDigest digest = new BouncyCastleDigest();\n\t\t\n\t\tMakeSignature.signDetached(apariencia, digest, pks, chain, \n\t\t\t\tnull, null, null, 0, CryptoStandard.CMS);\n\t}",
"SignatureSink createSignatureSink();",
"public byte[] sign(byte[] digest, int token, String pin) \n throws SignedDocException;",
"@Override\n\tprotected AbstractAlgorithm<ISDSRPacket> generateSignatureAlgorithm(HashMap<String, String> params) {\n\t\tparams.put(\"uid\", this.addr.getHostAddress());\n\t\tSystem.out.println(\"uid=\" + this.addr.getHostAddress());\n\t\t\n\t\treturn new IBSASalgorithm(params);\n\t}",
"public void doPack() {\n if (this._sendData == null) {\n this._sendData = new byte[13];\n }\n this._sendData[0] = 0;\n if (this.isMenu) {\n byte[] bArr = this._sendData;\n bArr[0] = (byte) (bArr[0] | 1);\n }\n if (this.isPlayback) {\n byte[] bArr2 = this._sendData;\n bArr2[0] = (byte) (bArr2[0] | 2);\n }\n if (this.isRecord) {\n byte[] bArr3 = this._sendData;\n bArr3[0] = (byte) (bArr3[0] | 4);\n }\n BytesUtil.arraycopy(generateChannelByte(), this._sendData, 1);\n this._sendData[11] = 0;\n if (this.isButton) {\n byte[] bArr4 = this._sendData;\n bArr4[11] = (byte) (bArr4[11] | 1);\n }\n byte[] bArr5 = this._sendData;\n bArr5[11] = (byte) (bArr5[11] | (this.buttonData << 1));\n byte[] bArr6 = this._sendData;\n bArr6[11] = (byte) (bArr6[11] | (this.symbol << 6));\n byte[] bArr7 = this._sendData;\n bArr7[11] = (byte) (bArr7[11] | (this.change << 7));\n byte[] bArr8 = this._sendData;\n bArr8[12] = (byte) (bArr8[12] | this.shutter);\n byte[] bArr9 = this._sendData;\n bArr9[12] = (byte) (bArr9[12] | (this.focus << 1));\n byte[] bArr10 = this._sendData;\n bArr10[12] = (byte) (bArr10[12] | (this.mode_sw << 2));\n byte[] bArr11 = this._sendData;\n bArr11[12] = (byte) (bArr11[12] | (this.transform_sw << 4));\n byte[] bArr12 = this._sendData;\n bArr12[12] = (byte) (bArr12[12] | (this.gohome << 6));\n }",
"SignatureSource createSignatureSource();",
"private void paintSign(Graphics g) {\n point = getPoint(endPoint);\n int[] maxWH = new int[2];\n int x = (FCanvas.canvasWidth - maxWH[0]) >> 1;\n int y = (FCanvas.canvasHeight - maxWH[1]) >> 1;\n if (ruteData[RUTE_SOURCE].equals(ruteData[RUTE_DESTINATION])) {\n auxsb = new StringBuffer(\"Encontrada baliza de '\");\n auxsb.append(FInteractionUtils.destinationHotspotName);\n auxsb.append(\"'. Llegó a su destino\");\n //auxsb.append(FInteractionUtils.sourceHotspotName);\n } else {\n auxsb = new StringBuffer(\"Ha llegado a '\");\n auxsb.append(ruteData[RUTE_DESTINATION]);\n auxsb.append(\"' desde '\");\n //TODO i don't like FMap to FRutePlanner communication\n if (FRutePlanner.rutes.length - 1 == FRutePlanner.currentRute) {\n auxsb.append(FInteractionUtils.sourceHotspotName);\n } else {\n auxsb.append(ruteData[RUTE_SOURCE]);\n }\n auxsb.append(\"'\");\n }\n maxWH = Utils.getWrappedTextWidthHeigh(auxsb.toString(), FCanvas.bigFont,\n 0, FCanvas.canvasWidth, false, null, y);\n x = (FCanvas.canvasWidth - maxWH[0]) >> 1;\n //y = (FCanvas.canvasHeight - maxWH[1]) >> 1;\n y = 5;\n g.setColor(Utils.COLOR_TANGO_BUTTER1);\n g.fillRoundRect(x - 3, y - 3, maxWH[0] + 6, maxWH[1] + 6, 6, 6);\n g.setColor(Utils.COLOR_TANGO_SKYBLUE1);\n g.fillRoundRect(x, y, maxWH[0], maxWH[1], 6, 6);\n g.setColor(Utils.COLOR_TANGO_ALUMINIUM1);\n Utils.getWrappedTextWidthHeigh(auxsb.toString(), FCanvas.bigFont,\n x, FCanvas.canvasWidth, true, g, y);\n }",
"public String getSignReturn() {\n return signReturn;\n }",
"@EventHandler(priority = EventPriority.MONITOR)\r\n\tpublic void onSignChange(SignChangeEvent event) {\r\n\t\t\r\n\t\tfinal Player creator = (Player)event.getPlayer();\r\n\t\tfinal InputPlayer iplayer = bSignModule.GUI_API.getPlayer(creator);\r\n\t\tfinal Location signLocation = event.getBlock().getLocation();\r\n\t\t\r\n\t\tSign newSign = null;\r\n\t\t\r\n\t\tif (event.getLine(0).equalsIgnoreCase(\"--weblink--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.web\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new WebSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the web link to link to\"));\r\n\t\t}\r\n\t\telse if (event.getLine(0).equalsIgnoreCase(\"--command--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.command\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new CommandSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the command for this sign to execute\"));\r\n\t\t}\r\n\t\telse if (event.getLine(0).equalsIgnoreCase(\"--info--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.info\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new InfoSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the info message for this sign\"));\r\n\t\t}\r\n\t\t\r\n\t\tbSignModule.SIGNS.add(newSign);\r\n\t\t\r\n\t}",
"@EventHandler\n\tvoid signWriter(SignChangeEvent event) {\n\t\tString[] lines = event.getLines();\n\t\tif (ChatColor.stripColor(lines[0]).equalsIgnoreCase(\"[MarioKart]\")) {\n\t\t\tlines[0] = MarioKart.colors.getTitle() + \"[MarioKart]\";\n\t\t\tBoolean text = true;\n\t\t\tString cmd = ChatColor.stripColor(lines[1]);\n\t\t\tif (cmd.equalsIgnoreCase(\"list\")) {\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + \"List\";\n\t\t\t\tif (!(lines[2].length() < 1)) {\n\t\t\t\t\ttext = false;\n\t\t\t\t}\n\t\t\t\tlines[2] = MarioKart.colors.getSuccess()\n\t\t\t\t\t\t+ ChatColor.stripColor(lines[2]);\n\t\t\t} else if (cmd.equalsIgnoreCase(\"join\")) {\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + \"Join\";\n\t\t\t\tlines[2] = MarioKart.colors.getSuccess()\n\t\t\t\t\t\t+ ChatColor.stripColor(lines[2]);\n\t\t\t\tif (lines[2].equalsIgnoreCase(\"auto\")) {\n\t\t\t\t\tlines[2] = MarioKart.colors.getTp() + \"Auto\";\n\t\t\t\t}\n\t\t\t\tlines[3] = MarioKart.colors.getInfo() + lines[3];\n\t\t\t\ttext = false;\n\t\t\t} else if (cmd.equalsIgnoreCase(\"shop\")) {\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + \"Shop\";\n\n\t\t\t} else if (cmd.equalsIgnoreCase(\"leave\")\n\t\t\t\t\t|| cmd.equalsIgnoreCase(\"exit\")\n\t\t\t\t\t|| cmd.equalsIgnoreCase(\"quit\")) {\n\t\t\t\tchar[] raw = cmd.toCharArray();\n\t\t\t\tif (raw.length > 1) {\n\t\t\t\t\tString start = \"\" + raw[0];\n\t\t\t\t\tstart = start.toUpperCase();\n\t\t\t\t\tString body = \"\";\n\t\t\t\t\tfor (int i = 1; i < raw.length; i++) {\n\t\t\t\t\t\tbody = body + raw[i];\n\t\t\t\t\t}\n\t\t\t\t\tbody = body.toLowerCase();\n\t\t\t\t\tcmd = start + body;\n\t\t\t\t}\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + cmd;\n\t\t\t} else if (cmd.toLowerCase().contains(\"items\")) {\n\t\t\t\tlines[1] = \"items\";\n\t\t\t\t/*\n\t\t\t\tLocation above = event.getBlock().getLocation().add(0, 1.4, 0);\n\t\t\t\tEnderCrystal crystal = (EnderCrystal) above.getWorld()\n\t\t\t\t\t\t.spawnEntity(above, EntityType.ENDER_CRYSTAL);\n\t\t\t\tabove.getBlock().setType(Material.COAL_BLOCK);\n\t\t\t\tabove.getBlock().getRelative(BlockFace.WEST)\n\t\t\t\t\t\t.setType(Material.COAL_BLOCK);\n\t\t\t\tabove.getBlock().getRelative(BlockFace.NORTH)\n\t\t\t\t\t\t.setType(Material.COAL_BLOCK);\n\t\t\t\tabove.getBlock().getRelative(BlockFace.NORTH_WEST)\n\t\t\t\t\t\t.setType(Material.COAL_BLOCK);\n\t\t\t\tcrystal.setFireTicks(0);\n\t\t\t\tcrystal.setMetadata(\"race.pickup\", new StatValue(true, plugin));\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\ttext = false;\n\t\t\t\tevent.getPlayer().sendMessage(\"Creating item box...\");\n\t\t\t\tMarioKart.powerupManager.spawnItemPickupBox(event.getBlock().getLocation());\n\t\t\t} else if(cmd.equalsIgnoreCase(\"queues\")){ \n\t\t\t\tString track = ChatColor.stripColor(lines[2]);\n\t\t\t\tif(track.length() < 1){\n\t\t\t\t\treturn; //No track\n\t\t\t\t}\n\t\t\t\ttrack = plugin.signManager.getCorrectName(track);\n\t\t\t\tif(!plugin.trackManager.raceTrackExists(track)){\n\t\t\t\t\tevent.getPlayer().sendMessage(MarioKart.colors.getSuccess()+MarioKart.msgs.get(\"setup.fail.queueSign\"));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//Register sign\n\t\t\t\tplugin.signManager.addQueueSign(track, event.getBlock().getLocation());\n\t\t\t\t//Tell the player it was registered successfully\n\t\t\t\tevent.getPlayer().sendMessage(MarioKart.colors.getSuccess()+MarioKart.msgs.get(\"setup.create.queueSign\"));\n\t\t\t\tfinal String t = track;\n\t\t\t\tMarioKart.plugin.getServer().getScheduler().runTaskLater(plugin, new BukkitRunnable(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tplugin.signManager.updateSigns(t);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}}, 2l);\n\t\t\t\t\n\t\t\t\ttext = false;\n\t\t\t} else {\n\t\t\t\ttext = false;\n\t\t\t}\n\t\t\tif (text) {\n\t\t\t\tlines[2] = ChatColor.ITALIC + \"Right click\";\n\t\t\t\tlines[3] = ChatColor.ITALIC + \"to use\";\n\t\t\t}\n\t\t}\n\t}",
"private byte[] createSignatureBase() {\n final Charset utf8 = StandardCharsets.UTF_8;\n byte[] urlBytes = url.getBytes(utf8);\n byte[] timeStampBytes = Long.toString(timestamp).getBytes(utf8);\n byte[] secretBytes = secret.getBytes(utf8);\n\n // concatenate\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n try {\n stream.write(urlBytes);\n stream.write(body);\n stream.write(timeStampBytes);\n stream.write(secretBytes);\n } catch (IOException ex){\n logger.error(\"Could not create signature base\", ex);\n return new byte[0];\n }\n\n return stream.toByteArray();\n }",
"private String signature() {\n\t\t++this.nonce;\n\t\tString message = new String(this.nonce + this.username + this.apiKey);\n\t\tMac hmac = null;\n\n\t\ttry {\n\t\t\thmac = Mac.getInstance(\"HmacSHA256\");\n\t\t\tSecretKeySpec secret_key = new SecretKeySpec(\n\t\t\t\t\t((String) this.apiSecret).getBytes(\"UTF-8\"), \"HmacSHA256\");\n\t\t\thmac.init(secret_key);\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (InvalidKeyException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn String.format(\"%X\",\n\t\t\t\tnew BigInteger(1, hmac.doFinal(message.getBytes())));\n\t}",
"private static String sign(String data, String key)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tMac mac = Mac.getInstance(\"HmacSHA1\");\n\t\t\t\tmac.init(new SecretKeySpec(key.getBytes(), \"HmacSHA1\"));\n\t\t\t\treturn Base64.encodeBytes(mac.doFinal(data.getBytes(\"UTF-8\")));\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tthrow new RuntimeException(new SignatureException(\"Failed to generate signature: \" + e.getMessage(), e));\n\t\t\t}\n\t\t}",
"byte[] generateSignature(byte[] message, PrivateKey privateKey, SecureRandom secureRandom) throws IOException;",
"@SuppressWarnings(\"finally\")\n\t@Override\n\tpublic Response showSignature() {\n\t\tBaseResponse<NotifyTemplate> br = new BaseResponse<NotifyTemplate>();\n\t\ttry\n\t\t{\n\t\tList<NotifyTemplate> signList;\n\t\tjdbcTemplate.setDataSource(dataSourceProvider.getDataSource(FiinfraConstants.BU_DEFAULT));\n\t\tsignList=jdbcTemplate.query(FiinfraConstants.SP_GET_SYSTEM_RECEPIENT_CHANNEL,new Object[]{FiinfraConstants.SIGNATURE_ID} ,new BeanPropertyRowMapper<NotifyTemplate>(NotifyTemplate.class));\n\t\tbr.setResponseListObject(signList); \n\t\tresponse=FiinfraResponseBuilder.getSuccessResponse(br, null);\n\t\t} \n\t\tcatch (DataAccessException e) {\n\t\t\tresponse = FiinfraResponseBuilder.getErrorResponse(e.getMessage().toString());\n\t\t} \n\t\tfinally\n\t\t{\n\t\t\treturn response;\n\t\t\t\t} \n\t}",
"public boolean signRequired() {\n\t\treturn false;\n\t}",
"public void displaySignInfo(Block b, Player p) \n\t{\n\t\t\n\t\tBoutiqueSign bs = getBoutiqueSign(b);\n\t\t\n\t\tString signOwnerString = bs.getOwnerString();\n\t\tString signTypeStr = bs.getType();\n\t\tString separator = Messages.getString(\"Sign.SIGNINFOSEPARATOR\"); //$NON-NLS-1$\n\t\t\n\n\t\t//debut texte\n\t\tp.sendMessage(separator);\n\t\t\n\t\tif (!bs.isEnabled())\n\t\t{\n\t\t\t//TODO: formatter le chat ailleurs ? \n\t\t\tp.sendMessage(ChatColor.YELLOW + Messages.getString(\"Sign.INACTIVESIGN\")); //$NON-NLS-1$\n\t\t\tp.sendMessage(ChatColor.YELLOW + Messages.getString(\"Sign.MAKEANOTHERONE\")); //$NON-NLS-1$\n\t\t\treturn;\n\t\t}\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t/* Affiche le type de panneau et le propriétaire */\n\t\t\n\t\t//TODO virer debug\n\t\t//p.sendMessage(\"dbg1: Type=\" + bs.getType());\n\t\t\n\t\tif(bs.isSignServer())\n\t\t{\n\t\t\t//Type BoutiqueSignServer\n\t\t\tp.sendMessage(Messages.getString(\"Sign.SIGNISSERVER\")); //$NON-NLS-1$\n\t\t}\n\t\telse if(bs.isSignChest())\n\t\t{\t\n\t\t\t//Type BoutiqueSignChest\n\t\t\t\n\t\t\tp.sendMessage(Messages.getString(\"Sign.SIGNISPLAYER\") + ChatColor.RED + signOwnerString + ChatColor.WHITE + \".\");\t\t\t //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\n\t\t\tString signchest = bs.getChestString();\t\t\t\n\t\t\tif(signchest.isEmpty()) \n\t\t\t{\n\t\t\t\tp.sendMessage(ChatColor.RED + Messages.getString(\"Sign.SIGNCHESTNOTBIND\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(bs.isSignWebAuction())\n\t\t{\n\t\t\t//Type BoutiqueSignWebAuction\n\t\t\tp.sendMessage(Messages.getString(\"Sign.SIGNISWEB\") + ChatColor.RED + signOwnerString + ChatColor.WHITE + \".\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Type inconnu\n\t\t\tp.sendMessage(ChatColor.RED + Messages.getString(\"Sign.SIGNISUNKNOWTYPE\") + ChatColor.WHITE + signOwnerString + ChatColor.RED + Messages.getString(\"Sign.ISTHEOWNER\") ); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\treturn;\n\t\t}\n\t\t\t\n\t\t\n\t\tInteger qtyFrom = bs.getQtyFrom();\n\t\tInteger qtyTo = bs.getQtyTo();\n\t\tBoutiqueItem itemTo = bs.getItemTo();\n\t\tBoutiqueItem itemFrom = bs.getItemFrom();\n\t\tDouble moneyFrom = bs.getMoneyFrom();\n\t\tDouble moneyTo = bs.getMoneyTo();\n\t\t\n\t\t\n\t\t/* Test iconomy */\n\t\tif(!EconomyHandler.currencyEnabled)\n\t\t{\n\t\t\tp.sendMessage(Messages.getString(\"Sign.NOECONERR\")); //$NON-NLS-1$\n\t\t\tp.sendMessage(separator);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tif(!bs.checkLines(p))\n\t\t{\n\t\t\t//TODO virer debug\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/* Détermine le message en fonction du type de panneau */\n\t\t\n\t\t//Freebies\n\t\tif(bs.isFreebiesSign())\n\t\t{\n\t\t\tif(itemTo == null)\n\t\t\t{\n\t\t\t\t//TODO: message && currencystring\n\t\t\t\tp.sendMessage\n\t\t\t\t(\n\t\t\t\t\tMessages.getString(\"Sign.RIGHTCLICKWILLGETYOU\") + //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + moneyTo + Messages.getString(\"Sign.22\") + ChatColor.WHITE //$NON-NLS-1$\n\t\t\t\t);\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//TODO: message\n\t\t\t\tp.sendMessage\n\t\t\t\t(\n\t\t\t\t\tMessages.getString(\"Sign.RIGHTCLICKWILLGETYOU\") + //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + qtyTo + ChatColor.WHITE + \t\" \"\t+ //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + itemTo.itemName + ChatColor.WHITE + \n\t\t\t\t\tMessages.getString(\"Sign.FORFREE\") //$NON-NLS-1$\n\t\t\t\t);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t//Donation (item ou $ => rien)\n\t\telse if(bs.isDonationSign())\n\t\t{\n\t\t\tif(itemFrom == null)\n\t\t\t{\n\t\t\t\t//TODO: message && currencystring\n\t\t\t\tp.sendMessage\n\t\t\t\t(\n\t\t\t\t\tMessages.getString(\"Sign.SIGNGETDONATIONS\") + //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + moneyFrom + Messages.getString(\"Sign.27\") + ChatColor.WHITE //$NON-NLS-1$\n\t\t\t\t);\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//TODO: message\n\t\t\t\tp.sendMessage\n\t\t\t\t(\n\t\t\t\t\tMessages.getString(\"Sign.SIGNGETDONATIONS\") + //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + qtyFrom + ChatColor.WHITE + \" \"\t+ //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + itemFrom.itemName + ChatColor.WHITE\n\t\t\t\t);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse if(bs.isSellSign())\n\t\t{\n\t\t\tp.sendMessage(\n\t\t\t\tMessages.getString(\"Sign.RIGHTCLICKWILLGETYOU\") + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + qtyTo + ChatColor.WHITE + \" \" + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + itemTo.itemName + ChatColor.WHITE + \n\t\t\t\tMessages.getString(\"Sign.FORMONEY\") + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + moneyFrom + \" Eus\" + ChatColor.WHITE + //$NON-NLS-1$\n\t\t\t\t\".\" //$NON-NLS-1$\n\t\t\t);\n\t\t}\n\t\telse if(bs.isBuySign())\n\t\t{\n\t\t\tp.sendMessage\n\t\t\t(\n\t\t\t\tMessages.getString(\"Sign.SIGNGIVEYOUFORMONEY\") + ChatColor.RED + moneyTo + \"Eus \" + //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\tChatColor.WHITE + Messages.getString(\"Sign.FOREACHSTACKOF\") + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + qtyFrom + Messages.getString(\"Sign.QTY1\") + itemFrom.itemName + //$NON-NLS-1$\n\t\t\t\tChatColor.WHITE + Messages.getString(\"Sign.YOUWILLGIVEHIM\") //$NON-NLS-1$\n\t\t\t);\n\t\t}\n\t\telse if(bs.isTradeSign())\n\t\t{\n\t\t\tp.sendMessage\n\t\t\t(\n\t\t\t\tMessages.getString(\"Sign.SIGNISTRADING\") + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + qtyFrom + Messages.getString(\"Sign.QTY\") + ChatColor.WHITE + \" \" + //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\tChatColor.RED + itemFrom.itemName + ChatColor.WHITE + Messages.getString(\"Sign.VERSUS1\") + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + qtyTo + Messages.getString(\"Sign.QTY\") + ChatColor.WHITE + \" \" + //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\tChatColor.RED + itemTo.itemName + ChatColor.WHITE + \".\" //$NON-NLS-1$\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp.sendMessage\n\t\t\t(\n\t\t\t\tMessages.getString(\"Sign.VROUMVROUMERR\") //$NON-NLS-1$\n\t\t\t);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tbs.Render();\n\t\t\n\t\tp.sendMessage(separator);\n\t}",
"@Override\n\tpublic void encode() {\n\t\tbyte[] messageData = encodeStarsMessage(message);\n\t\t\n\t\t// Allocate\n byte[] res = new byte[10 + messageData.length];\n\n // Write members\n Util.write16(res, 0, unknownWord0);\n Util.write16(res, 2, unknownWord2);\n Util.write16(res, 4, senderId);\n Util.write16(res, 6, receiverId);\n Util.write16(res, 8, unknownWord8);\n \n // Copy in message data\n System.arraycopy(messageData, 0, res, 10, messageData.length);\n \n // Save as decrypted data\n setDecryptedData(res, res.length);\n\t}",
"@Override\n protected String buildPaySign(Map<String, String> api_response_params, String api_key) throws PayException {\n Map<String,String > params = new LinkedHashMap<>();\n params.put(amount ,api_response_params.get(amount));\n params.put(order_no ,api_response_params.get(order_no));\n params.put(plat_num ,api_response_params.get(plat_num));\n params.put(app_id ,api_response_params.get(app_id));\n params.put(sign_type ,api_response_params.get(sign_type));\n params.put(pay_type ,api_response_params.get(pay_type));\n params.put(status ,api_response_params.get(status));\n params.put(back_status ,api_response_params.get(back_status));\n params.put(complete_time ,api_response_params.get(complete_time));\n String signMd5 = JSON.toJSONString(params);\n\n log.debug(\"[酷狗支付]-[响应支付]-2.生成加密URL签名完成:{}\", JSON.toJSONString(signMd5) );\n return signMd5;\n }",
"public String getSignature() {\n\tString sig;\n\n\tsig = dims.substring(0, dim_count);\n\tif (num_comp == 1) {\n\t if (comp[0].compareTo(\"byte\") == 0)\n\t\tsig += \"B\";\n\t else if (comp[0].compareTo(\"char\") == 0)\n\t\tsig += \"C\";\n\t else if (comp[0].compareTo(\"double\") == 0)\n\t\tsig += \"D\";\n\t else if (comp[0].compareTo(\"float\") == 0)\n\t\tsig += \"F\";\n\t else if (comp[0].compareTo(\"int\") == 0)\n\t\tsig += \"I\";\n\t else if (comp[0].compareTo(\"long\") == 0)\n\t\tsig += \"J\";\n\t else if (comp[0].compareTo(\"short\") == 0)\n\t\tsig += \"S\";\n\t else if (comp[0].compareTo(\"boolean\") == 0)\n\t\tsig += \"Z\";\n\t else if (comp[0].compareTo(\"void\") == 0)\n\t\tsig += \"V\";\n\t else {\n\t\t// Component is an object but might have implied context\n\t\tsig += \"L\" + fullName + \";\";\n\t }\n\t}\n\telse\n\t sig += \"L\" + fullName + \";\";\n\treturn(sig);\n }",
"public String sign(long expire, String nonce, byte[] msg) throws InvalidKeyException, NoSuchAlgorithmException\n\t{\n\t\tMac hmac = Mac.getInstance(ALGORITHM);\n\t\thmac.init(keySpec);\n\t\tbyte[] digest = hmac.doFinal(msg);\n\t\tString digestBase64 = encoder.encode(digest);\n\n\t\treturn prefix + Long.toString(expire) + \"-\" + nonce + \"-\" + digestBase64;\n\t}",
"public abstract byte[] getSignature();",
"@Override\r\n\tpublic String getSign(String data, String id, String struc) {\n\t\treturn null;\r\n\t}",
"public static byte[] genPackage(Protocol proto){\r\n\r\n\t\t// 2 soh/stx + 48 ids + 1 pers+ 1 cmd + 2nchar + N data+ 1 Etx + 1 bcc + 1 eot\r\n\t\tint pkgSize = 57 + proto.getData().length; \r\n\r\n\t\tbyte[] pkg = new byte[pkgSize];\r\n\r\n\t\tpkg[0] = (byte) Dictionary.SOH;\r\n\t\tpkg[1] = (byte) Dictionary.STX;\r\n\r\n\t\tbyte[] idFrom = proto.getIDFrom().getBytes();\t\t\t\r\n\t\tfor(int i=0;i<16;i++)\r\n\t\t{\r\n\t\t\tpkg[i+2] = idFrom[i];\r\n\t\t}\r\n\r\n\t\tbyte[] idTo = proto.getIDTo().getBytes();\r\n\t\tfor(int i=0;i<16;i++)\r\n\t\t{\r\n\t\t\tpkg[i+18] = idTo[i];\r\n\t\t}\r\n\r\n\t\tbyte[] idApp = proto.getIDApp().getBytes();\r\n\t\tfor(int i=0;i<16;i++)\r\n\t\t{\r\n\t\t\tpkg[i+34] = idApp[i];\r\n\t\t}\r\n\r\n\t\tint ndata = proto.getData().length;\r\n\r\n\t\tpkg[50] = (byte)(proto.isPersisted()?1:0);\r\n\t\tpkg[51] = (byte) proto.getCommand();\r\n\t\tpkg[52] = (byte) (ndata/256);\r\n\t\tpkg[53] = (byte) (ndata%256);\r\n\r\n\t\tfor(int i=0;i<ndata;i++)\r\n\t\t{\r\n\t\t\tpkg[i+54] = proto.getData()[i];\r\n\t\t}\r\n\r\n\t\tpkg[ndata+54] = 0x03; \t//ETX\r\n\t\tpkg[ndata+55] = 0;\t\t//BCC\r\n\t\tpkg[ndata+56] = 0x04; \t//EOT\r\n\r\n\t\treturn pkg;\r\n\t}",
"@Test\r\n public void testSign() throws SodiumException, CryptoException {\r\n\r\n byte[] data = \"Hola caracola\".getBytes();\r\n\r\n CryptoService instance = new CryptoService();\r\n Keys keys = instance.createKeys(null);\r\n byte[] result = instance.sign(data, keys);\r\n assertNotNull(result);\r\n }",
"String componentSignature();",
"public interface SignView extends BaseView {\n String getPKG();//获取PKG信息\n void getPKGSuccess(TransferParentInfoResult result);//获取PKG信息成功\n void failed();\n void summitInfoSuccess(TransferReceiveResult result);//签收成功\n}",
"ISModifySignature createISModifySignature();",
"com.google.protobuf.ByteString\n getSignatureBytes();",
"com.google.protobuf.ByteString\n getSignatureBytes();",
"private static final byte[] pkgsave_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 0, 0,\n\t\t\t\t0, -91, 42, 42, -128, -128, -128, 94, 94, 94, 94, 24, 24, 0, 0,\n\t\t\t\t-128, -1, -1, -1, -1, -1, 0, -64, -64, -64, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t33, -2, 14, 77, 97, 100, 101, 32, 119, 105, 116, 104, 32, 71,\n\t\t\t\t73, 77, 80, 0, 33, -7, 4, 1, 10, 0, 9, 0, 44, 0, 0, 0, 0, 16,\n\t\t\t\t0, 16, 0, 0, 4, 83, 48, 73, 32, 103, -67, 9, -128, 64, 51, -17,\n\t\t\t\t-43, 22, -116, -38, 72, 98, -101, 38, 12, 37, 120, 1, 66, 60,\n\t\t\t\t-60, 110, -8, -83, 45, 106, 126, 123, -35, 18, -127, -126, -31,\n\t\t\t\t64, 36, 26, 10, -109, 13, 80, 104, 104, 58, -111, -98, -64,\n\t\t\t\t114, 88, 60, 28, 67, -128, -87, -13, -119, 2, 20, -66, 96, 48,\n\t\t\t\t70, -14, 69, -104, -51, -33, 113, -94, -116, 40, -89, -57, 108,\n\t\t\t\t55, 20, -61, 62, 127, 35, 0, 59 };\n\t\treturn data;\n\t}",
"public String getSignature()\r\n {\r\n return signature;\r\n }",
"public static boolean isSigned_p_sendts() {\n return true;\n }",
"SnacCommand genSnacCommand(SnacPacket packet);",
"Result_RecoverableSignatureNoneZ sign_invoice(byte[] invoice_preimage);",
"public String getSigRequest() {\n return sigRequest;\r\n }",
"public void generateSignature(PrivateKey privateKey) {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\tsignature = StringUtil.applyECDSASig(privateKey, data);\n\t}",
"public String getSignLocation() {\n\t\treturn signLocation;\n\t}",
"private static String sign(String data, String secretKey)\n throws NoSuchAlgorithmException, InvalidKeyException,\n IllegalStateException, UnsupportedEncodingException {\n Mac mac = Mac.getInstance(ALGORITHM);\n mac.init(new SecretKeySpec(secretKey.getBytes(CHARACTER_ENCODING),\n ALGORITHM));\n byte[] signature = mac.doFinal(data.getBytes(CHARACTER_ENCODING));\n String signatureBase64 = new String(Base64.encodeBase64(signature),\n CHARACTER_ENCODING);\n return new String(signatureBase64);\n }",
"default String getSignature() {\n StringBuilder sb = new StringBuilder();\n sb.append(getName());\n sb.append(\"(\");\n for (int i = 0; i < getNumberOfParams(); i++) {\n if (i != 0) {\n sb.append(\", \");\n }\n sb.append(getParam(i).describeType());\n }\n sb.append(\")\");\n return sb.toString();\n }",
"public static byte[] stageDPacket(ServerValuesHolder values) {\n\t\tbyte[] payload = values.getSecretD_byte();\n\t\t\n\t\treturn createPacket(values.getSecretC(), 2, values.getStudentID(), payload);\n\t}",
"private String insertarCartaHealingSign() {\n int[] valoresEnemigo = {\n// this.dañoEnemigo=valoresEnemigo[0];\n 0,\n// this.curaEnemigo=valoresEnemigo[1];\n 0,\n// this.cartasEnemigo=valoresEnemigo[2];\n 0,\n// this.descarteEnemigo=valoresEnemigo[3];\n 0,\n// this.recursosEnemigo=valoresEnemigo[4];\n 0,\n// this.moverMesaAManoEnemigo=valoresEnemigo[5];\n 0,\n// this.moverDescarteAManoEnemigo=valoresEnemigo[6];\n 0,\n// this.moverDeckAManoEnemigo=valoresEnemigo[7];\n 0,\n// this.moverMesaADeckEnemigo=valoresEnemigo[8];\n 0,\n// this.moverDescarteADeckEnemigo=valoresEnemigo[9];\n 0,\n// this.moverManoADeckEnemigo=valoresEnemigo[10];\n 0,\n// this.moverMesaADescarteEnemigo=valoresEnemigo[11];\n 0,\n// this.moverManoADescarteEnemigo=valoresEnemigo[12];\n 0,\n// this.moverDeckADescarteEnemigo=valoresEnemigo[13];\n 0,\n// this.moverDescarteAMesaEnemigo=valoresEnemigo[14];\n 0,\n// this.moverManoAMesaEnemigo=valoresEnemigo[15];\n 0,\n// this.moverDeckAMesaEnemigo=valoresEnemigo[16];\n 0\n };\n int[] valoresOwner = {\n// this.dañoOwner=valoresOwner[0];\n 0,\n// this.curaOwner=valoresOwner[1];\n 2,\n// this.cartasOwner=valoresOwner[2];\n 0,\n// this.descarteOwner=valoresOwner[3];\n 0,\n// this.recursosOwner=valoresOwner[4];\n 0,\n// this.moverMesaAManoOwner=valoresOwner[5];\n 0,\n// this.moverDescarteAManoOwner=valoresOwner[6];\n 0,\n// this.moverDeckAManoOwner=valoresOwner[7];\n 0,\n// this.moverMesaADeckOwner=valoresOwner[8];\n 0,\n// this.moverDescarteADeckOwner=valoresOwner[9];\n 0,\n// this.moverManoADeckOwner=valoresOwner[10];\n 0,\n// this.moverMesaADescarteOwner=valoresOwner[11];\n 0,\n// this.moverManoADescarteOwner=valoresOwner[12];\n 0,\n// this.moverDeckADescarteOwner=valoresOwner[13];\n 0,\n// this.moverDescarteAMesaOwner=valoresOwner[14];\n 0,\n// this.moverManoAMesaOwner=valoresOwner[15];\n 0,\n// this.moverDeckAMesaOwner=valoresOwner[16];\n 0\n };\n boolean[]valoresPlay={\n //this.OnMoveMesaADescarte=valoresPlay[0];\n false,\n //this.OnMoveMesaADeck=valoresPlay[1];\n false,\n //this.OnMoveMesaAMano=valoresPlay[2];\n false,\n //this.OnMoveDescarteAMesa=valoresPlay[3];\n false,\n //this.OnMoveDescarteADeck=valoresPlay[4];\n false,\n// this.OnMoveDescarteAMano=valoresPlay[5];\n false,\n// this.OnMoveDeckADescarte=valoresPlay[6];\n false,\n// this.OnMoveDeckAMesa=valoresPlay[7];\n false,\n// this.OnMoveDeckAMano=valoresPlay[8];\n false,\n// this.OnMoveManoADescarte=valoresPlay[9];\n false,\n// this.OnMoveManoAMesa=valoresPlay[10];\n false,\n// this.OnMoveManoADeck=valoresPlay[11];\n false,\n// this.OnStartTurnTable=valoresPlay[12];\n false,\n// this.OnStartTurnHand=valoresPlay[13];\n false,\n// this.OnStartTurnDiscard=valoresPlay[14];\n false,\n// this.OnStartTurnDeck=valoresPlay[15];\n false,\n// this.OnEndTurnTable=valoresPlay[16];\n true,\n// this.OnEndTurnHand=valoresPlay[17];\n false,\n// this.OnEndTurnDiscard=valoresPlay[18];\n false,\n// this.OnEndTurnDeck=valoresPlay[19];\n false,\n };\n ArrayList<Integer> datos = new ArrayList<Integer>();\n for (int i = 0; i < valoresEnemigo.length; i++) {\n datos.add(valoresEnemigo[i]);\n }\n for (int i = 0; i < valoresOwner.length; i++) {\n datos.add(valoresOwner[i]);\n }\n for (int i = 0; i < valoresPlay.length; i++) {\n if(valoresPlay[i]){\n datos.add(1);\n }else{\n datos.add(0);\n }\n }\n String insert=\"\";\n for(int i=0;i<datos.size();i++){\n if(i<datos.size()-1) {\n insert += datos.get(i) + \", \";\n }else{\n insert += datos.get(i) + \" )\";\n }\n }\n return insert;\n }",
"private static final byte[] pkgsave_d_image() {\n\t\tbyte data[] = { 71, 73, 70, 56, 57, 97, 16, 0, 16, 0, -29, 0, 0, 96,\n\t\t\t\t96, 96, -96, -96, -96, -33, -33, -33, 96, 96, 96, 96, 96, 96,\n\t\t\t\t-128, -128, -128, -112, -112, -112, -64, -64, -64, -112, -112,\n\t\t\t\t-112, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,\n\t\t\t\t-1, -1, -1, -1, -1, -1, -1, 33, -2, 14, 77, 97, 100, 101, 32,\n\t\t\t\t119, 105, 116, 104, 32, 71, 73, 77, 80, 0, 33, -7, 4, 1, 10, 0,\n\t\t\t\t9, 0, 44, 0, 0, 0, 0, 16, 0, 16, 0, 0, 4, 83, 48, 73, 32, 103,\n\t\t\t\t-67, 9, -128, 64, 51, -17, -43, 22, -116, -38, 72, 98, -101,\n\t\t\t\t38, 12, 37, 120, 1, 66, 60, -60, 110, -8, -83, 45, 106, 126,\n\t\t\t\t123, -35, 18, -127, -126, -31, 64, 36, 26, 10, -109, 13, 80,\n\t\t\t\t104, 104, 58, -111, -98, -64, 114, 88, 60, 28, 67, -128, -87,\n\t\t\t\t-13, -119, 2, 20, -66, 96, 48, 70, -14, 69, -104, -51, -33,\n\t\t\t\t113, -94, -116, 40, -89, -57, 108, 55, 20, -61, 62, 127, 35, 0,\n\t\t\t\t59 };\n\t\treturn data;\n\t}",
"public void write() {\r\n\t\ttry {\r\n\t\t\tDataOutputStream dat = new DataOutputStream(new FileOutputStream(signlink.getDirectory() + \"idk.dat\"));\r\n\t\t\tdat.writeShort(IdentityKit.cache.length);\r\n\t\t\tfor (IdentityKit idk : IdentityKit.cache) {\r\n\t\t\t\tif (idk.partId != -1) {\r\n\t\t\t\t\tdat.writeByte(1);\r\n\t\t\t\t\tdat.writeByte(idk.partId);\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.models != null) {\r\n\t\t\t\t\tdat.writeByte(2);\r\n\t\t\t\t\tdat.writeByte(idk.models.length);\r\n\t\t\t\t\tfor (int index = 0; index < idk.models.length; index++) {\r\n\t\t\t\t\t\tdat.writeShort(idk.models[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.disableDisplay) {\r\n\t\t\t\t\tdat.writeByte(3);\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.oldColors != null) {\r\n\t\t\t\t\tfor (int index = 0; index < idk.oldColors.length; index++) {\r\n\t\t\t\t\t\tdat.writeByte(40 + index);\r\n\t\t\t\t\t\tdat.writeShort(idk.oldColors[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.newColors != null) {\r\n\t\t\t\t\tfor (int index = 0; index < idk.newColors.length; index++) {\r\n\t\t\t\t\t\tdat.writeByte(50 + index);\r\n\t\t\t\t\t\tdat.writeShort(idk.newColors[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (idk.dialogModels != null) {\r\n\t\t\t\t\tfor (int index = 0; index < idk.dialogModels.length; index++) {\r\n\t\t\t\t\t\tdat.writeByte(60 + index);\r\n\t\t\t\t\t\tdat.writeShort(idk.dialogModels[index]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tdat.writeByte(0);\r\n\t\t\t}\r\n\t\t\tdat.close();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public String getSignImgUrl() {\n return signImgUrl;\n }",
"void updateSignToPlayer(Player player, Location location, String[] lines);",
"private String createSignedRSAToken(String jwtToken, String clientId, String clientKeyPairs, String keyPair) throws ParseException, JOSEException {\n log.info(\"Entering createSignedRSAToken\");\n log.info(\"clientKeyPairs: {}\", clientKeyPairs);\n\n Object signingKey;\n\n // To not affect current functionality, if no clientId parameter is passed,\n // sign with the default playground's \"testing_key\"\n JSONObject parseKeyPairs = JSONObjectUtils.parse(clientKeyPairs);\n log.info(\"Parsed clientKeyPairs\");\n\n if (clientId.equals(\"none\")) {\n signingKey = parseKeyPairs.get(\"default\");\n } else {\n signingKey = parseKeyPairs.get(clientId);\n if (signingKey == null) {\n throw new OauthException(\"Client ID to private key mapping not found\", HttpStatus.BAD_REQUEST);\n }\n }\n log.info(\"signingKey: {}\", signingKey);\n\n String[] splitString = jwtToken.split(\"\\\\.\");\n\n log.info(\"Size of splitString: {}\", splitString.length);\n\n log.info(\"~~~~~~~~~ JWT Header ~~~~~~~\");\n String base64EncodedHeader = splitString[0];\n JWSHeader head = JWSHeader.parse(new Base64URL(base64EncodedHeader));\n\n\n log.info(\"~~~~~~~~~ JWT Body ~~~~~~~\");\n String base64EncodedBody = splitString[1];\n Payload payload = new Payload(new Base64URL(base64EncodedBody));\n\n // RSA signatures require a public and private RSA key pair,\n // the public key must be made known to the JWS recipient to\n // allow the signatures to be verified\n\n log.info(\"keyPair: {}\", keyPair);\n\n net.minidev.json.JSONObject parsedRsa = JSONObjectUtils.parse(keyPair);\n\n Object getSigningKey = parsedRsa.get(signingKey);\n String signingKeyToString = String.valueOf(getSigningKey);\n\n RSAKey rsaJWK = RSAKey.parse(signingKeyToString);\n RSAPrivateKey prK = (RSAPrivateKey) rsaJWK.toPrivateKey();\n RSAPublicKey puK = (RSAPublicKey) rsaJWK.toPublicKey();\n\n byte[] privateKeyEnc = prK.getEncoded();\n byte[] privateKeyPem = java.util.Base64.getEncoder().encode(privateKeyEnc);\n String privateKeyPemStr = new String(privateKeyPem);\n\n // Create RSA-signer with the private key\n JWSSigner signer = new RSASSASigner(rsaJWK);\n\n // Prepare JWS object with simple string as payload\n JWSObject jwsObject = new JWSObject(head, payload);\n\n // Compute the RSA signature\n jwsObject.sign(signer);\n\n // To serialize to compact form, produces something like\n String s = jwsObject.serialize();\n log.info(\"Signed RSA Token:\");\n log.info(s);\n\n // To parse the JWS and verify it, e.g. on client-side\n jwsObject = JWSObject.parse(s);\n\n JWSVerifier verifier = new RSASSAVerifier(puK);\n\n log.info(\"Verify: {}\", jwsObject.verify(verifier));\n\n log.info(\"In RSA we trust! --> {}\", jwsObject.getPayload().toString());\n return s;\n }",
"private static String signSHA256RSA(String input,\n PrivateKey privateKey) throws Exception {\n Signature s = Signature.getInstance(\"SHA256withRSA\");\n s.initSign(privateKey);\n s.update(input.getBytes(\"UTF-8\"));\n byte[] signature = s.sign();\n //Base64.getEncoder().encode(\"Test\".getBytes());\n return Base64.getEncoder().encodeToString(signature);\n }",
"public Signer(java.lang.String r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: java.security.Signer.<init>(java.lang.String):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: java.security.Signer.<init>(java.lang.String):void\");\n }",
"protected void engineInitSign(java.security.PrivateKey r1) throws java.security.InvalidKeyException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.engineInitSign(java.security.PrivateKey):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.jcajce.provider.asymmetric.ec.SignatureSpi.engineInitSign(java.security.PrivateKey):void\");\n }",
"protected void encode() {\t\n\t\tsuper.rawPkt = new byte[12 + this.pktData.length];\n\t\tbyte[] tmp = StaticProcs.uIntLongToByteWord(super.ssrc);\n\t\tSystem.arraycopy(tmp, 0, super.rawPkt, 4, 4);\n\t\tSystem.arraycopy(this.pktName, 0, super.rawPkt, 8, 4);\n\t\tSystem.arraycopy(this.pktData, 0, super.rawPkt, 12, this.pktData.length);\n\t\twriteHeaders();\n\t\t//System.out.println(\"ENCODE: \" + super.length + \" \" + rawPkt.length + \" \" + pktData.length);\n\t}",
"com.google.protobuf.ByteString getSig();",
"String signITRByAssesse(String PAN,String xml, DigitalSignatureWrapper digitalSignatureWrapper) throws MissingPrivateKeyException,InvalidDigitalSignatureException,Exception;",
"String getUniqueSignature();",
"public String getSignature() {\n return signature;\n }"
]
| [
"0.5998077",
"0.5774479",
"0.5740116",
"0.56740826",
"0.5670346",
"0.55597407",
"0.5542983",
"0.5519668",
"0.5515025",
"0.548473",
"0.54748696",
"0.5473582",
"0.54693836",
"0.54662883",
"0.54561484",
"0.5454272",
"0.54192775",
"0.5372148",
"0.5342771",
"0.5328901",
"0.5327673",
"0.5327673",
"0.5327673",
"0.5317231",
"0.52334595",
"0.5227126",
"0.52266026",
"0.51924527",
"0.51901627",
"0.51789415",
"0.51753676",
"0.5148992",
"0.5145554",
"0.5124667",
"0.5117355",
"0.5116987",
"0.51164055",
"0.5115689",
"0.5102911",
"0.50972813",
"0.5094399",
"0.5086861",
"0.5074953",
"0.5052764",
"0.50411165",
"0.50346965",
"0.50219065",
"0.501772",
"0.50121194",
"0.50045073",
"0.49929807",
"0.49914396",
"0.4990248",
"0.4987472",
"0.4981649",
"0.49785173",
"0.49748012",
"0.4973154",
"0.49662435",
"0.49608988",
"0.49584743",
"0.493807",
"0.49307832",
"0.492699",
"0.49240968",
"0.49215183",
"0.49064633",
"0.4901158",
"0.48938897",
"0.48823106",
"0.48766577",
"0.48740837",
"0.48723954",
"0.48667926",
"0.48667926",
"0.4856319",
"0.48480913",
"0.48413166",
"0.48398304",
"0.4833886",
"0.48320872",
"0.48243243",
"0.4821728",
"0.48212838",
"0.48196515",
"0.48179108",
"0.4811466",
"0.47945157",
"0.47931042",
"0.47874284",
"0.47855517",
"0.47680268",
"0.4765047",
"0.476119",
"0.4755875",
"0.47540006",
"0.47534132",
"0.47529936",
"0.47497",
"0.47494566"
]
| 0.55336654 | 7 |
Update sign lines to the player | void updateSignToPlayer(Player player, Location location, String[] lines); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void signSetter(Block b, Player p, String[] lines) \n\t{\t\t\n\t\t//TODO: virer debug\n\t\t//p.sendMessage(\"dbg1\");\n\t\t\n\t\t\n\t\tif(b==null) \n\t\t\treturn;\n\t\t\n\t\tBoutiqueSign bs = new BoutiqueSign();\n\t\t\n\t\tbs.setOwner(p);\n\t\tbs.setLocation(b.getLocation());\n\t\tbs.setLines(lines);\n\n\t\t//TODO: virer debug\n\t\t/*\n\t\tp.sendMessage(\"dbg1 : line1 = \" + bs.getLine1());\n\t\tp.sendMessage(\"dbg1 : line2 = \" + bs.getLine2());\n\t\tp.sendMessage(\"dbg1 : line3 = \" + bs.getLine3());\n\t\tp.sendMessage(\"dbg1 : line4 = \" + bs.getLine4());\t\t\n\t\tp.sendMessage(\"dbg2 : type = \" + bs.getType());\n\t\t*/\n\t\t\n\t\tif(bs.isSignServer())\n\t\t{\n\t\t\t\n\t\t\tif (!PermissionsHandler.canSetGlobalSign(p))\n\t\t\t{\n\t\t\t\tp.sendMessage(PermissionsHandler.permissionErr);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(!bs.checkLines(p))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.SERVERSIGNADDED\")); //$NON-NLS-1$\n\t\t}\n\t\t\n\t\telse if(bs.isSignChest())\n\t\t{\n\t\t\tif (!PermissionsHandler.canSetPersonalSign(p))\n\t\t\t{\n\t\t\t\tp.sendMessage(plugin.chatPrefix + PermissionsHandler.permissionErr);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(!bs.checkLines(p))\n\t\t\t{\n\t\t\t\t//TODO: virer debug\n\t\t\t\t//p.sendMessage(\"erreur checkline\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.CHESTSIGNADDED\")); //$NON-NLS-1$\n\t\t}\t\n\t\telse if(bs.isSignWebAuction())\n\t\t{\n\t\t\tif (!PermissionsHandler.canSetWebAuctionSign(p))\n\t\t\t{\n\t\t\t\tp.sendMessage(PermissionsHandler.permissionErr);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(!bs.checkLines(p))\n\t\t\t{\n\t\t\t\t//TODO: virer debug\n\t\t\t\t//p.sendMessage(\"erreur checkline\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.WEBAUCTIONSIGNADDED\")); //$NON-NLS-1$\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tbs.setLine4(\"ok\");\t\t\t //$NON-NLS-1$\n\t\tbs.Render();\n\t\t\n\t\tthis.put(bs);\n\t\tplugin.signmanager.saveGlobalSigns();\n\t}",
"void sendSignChangeToPlayer(Player player, Location location, byte data);",
"@Override\r\n public void updateMixer() {\n playerPosition = mixer.getGlobalCoordinates();\r\n playerOrientation = mixer.getGlobalOrientation();\r\n }",
"@Override\r\n public void updateMixer() {\n playerPosition = mixer.getGlobalCoordinates();\r\n }",
"public void updatePlayerPoints() {\n setText(Integer.toString(owner.getPlayerPoints()) + \" points\");\n }",
"private void updateUndoBuffers(List<Line> lines) {\n previousPositions.add(new TurtleState(new Point(xPos,yPos), myAngle));\n lastLinesPlaced.add(lines);\n }",
"public void addSign(Vector3D location, String world, String[] lines) {\n dirty = true;\n if (!getSignAt(location, world).isPresent()) {\n signLocations.add(new SignLocation(location, world, server, lines));\n }\n }",
"private void update(Level level, Player player) {\n if (lastTick == -1 || level.getGameTime() - lastTick > 1) {\n prevRotationYaw = player.getYRot();\n prevRotationPitch = player.getXRot();\n }\n lastTick = level.getGameTime();\n float yawDiff = player.yHeadRot - prevRotationYaw;\n float pitchDiff = player.getXRot() - prevRotationPitch;\n float jitter = MekanismConfig.client.hudJitter.get();\n prevRotationYaw += yawDiff / jitter;\n prevRotationPitch += pitchDiff / jitter;\n }",
"public void updateSign(boolean activated) {\n if (!ChunkLocation.fromLocation(activationBlock).isChunkLoaded()) return;\n\n try {\n BlockState state = activationBlock.getBlock().getState();\n if (state == null || !(state instanceof Sign)) return;\n\n final Sign sign = (Sign) state;\n\n String line;\n if (activated) {\n String signColor;\n if (isDisabled()) signColor = \"8\";\n else signColor = RCPrefs.getSignColor();\n line = (char) 167 + signColor + type;\n } else {\n line = type;\n }\n\n if (!line.equals(sign.getLine(0))) {\n sign.setLine(0, line);\n\n RedstoneChips.inst().getServer().getScheduler().scheduleSyncDelayedTask(RedstoneChips.inst(), () -> sign.update());\n }\n } catch (NullPointerException ne) {\n }\n }",
"public void updateStake(Player player)\n {\n stakeLabel.setText(\"€ \" + player.getStake());\n }",
"@EventHandler\n\tvoid signWriter(SignChangeEvent event) {\n\t\tString[] lines = event.getLines();\n\t\tif (ChatColor.stripColor(lines[0]).equalsIgnoreCase(\"[MarioKart]\")) {\n\t\t\tlines[0] = MarioKart.colors.getTitle() + \"[MarioKart]\";\n\t\t\tBoolean text = true;\n\t\t\tString cmd = ChatColor.stripColor(lines[1]);\n\t\t\tif (cmd.equalsIgnoreCase(\"list\")) {\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + \"List\";\n\t\t\t\tif (!(lines[2].length() < 1)) {\n\t\t\t\t\ttext = false;\n\t\t\t\t}\n\t\t\t\tlines[2] = MarioKart.colors.getSuccess()\n\t\t\t\t\t\t+ ChatColor.stripColor(lines[2]);\n\t\t\t} else if (cmd.equalsIgnoreCase(\"join\")) {\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + \"Join\";\n\t\t\t\tlines[2] = MarioKart.colors.getSuccess()\n\t\t\t\t\t\t+ ChatColor.stripColor(lines[2]);\n\t\t\t\tif (lines[2].equalsIgnoreCase(\"auto\")) {\n\t\t\t\t\tlines[2] = MarioKart.colors.getTp() + \"Auto\";\n\t\t\t\t}\n\t\t\t\tlines[3] = MarioKart.colors.getInfo() + lines[3];\n\t\t\t\ttext = false;\n\t\t\t} else if (cmd.equalsIgnoreCase(\"shop\")) {\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + \"Shop\";\n\n\t\t\t} else if (cmd.equalsIgnoreCase(\"leave\")\n\t\t\t\t\t|| cmd.equalsIgnoreCase(\"exit\")\n\t\t\t\t\t|| cmd.equalsIgnoreCase(\"quit\")) {\n\t\t\t\tchar[] raw = cmd.toCharArray();\n\t\t\t\tif (raw.length > 1) {\n\t\t\t\t\tString start = \"\" + raw[0];\n\t\t\t\t\tstart = start.toUpperCase();\n\t\t\t\t\tString body = \"\";\n\t\t\t\t\tfor (int i = 1; i < raw.length; i++) {\n\t\t\t\t\t\tbody = body + raw[i];\n\t\t\t\t\t}\n\t\t\t\t\tbody = body.toLowerCase();\n\t\t\t\t\tcmd = start + body;\n\t\t\t\t}\n\t\t\t\tlines[1] = MarioKart.colors.getInfo() + cmd;\n\t\t\t} else if (cmd.toLowerCase().contains(\"items\")) {\n\t\t\t\tlines[1] = \"items\";\n\t\t\t\t/*\n\t\t\t\tLocation above = event.getBlock().getLocation().add(0, 1.4, 0);\n\t\t\t\tEnderCrystal crystal = (EnderCrystal) above.getWorld()\n\t\t\t\t\t\t.spawnEntity(above, EntityType.ENDER_CRYSTAL);\n\t\t\t\tabove.getBlock().setType(Material.COAL_BLOCK);\n\t\t\t\tabove.getBlock().getRelative(BlockFace.WEST)\n\t\t\t\t\t\t.setType(Material.COAL_BLOCK);\n\t\t\t\tabove.getBlock().getRelative(BlockFace.NORTH)\n\t\t\t\t\t\t.setType(Material.COAL_BLOCK);\n\t\t\t\tabove.getBlock().getRelative(BlockFace.NORTH_WEST)\n\t\t\t\t\t\t.setType(Material.COAL_BLOCK);\n\t\t\t\tcrystal.setFireTicks(0);\n\t\t\t\tcrystal.setMetadata(\"race.pickup\", new StatValue(true, plugin));\n\t\t\t\t\n\t\t\t\t*/\n\t\t\t\ttext = false;\n\t\t\t\tevent.getPlayer().sendMessage(\"Creating item box...\");\n\t\t\t\tMarioKart.powerupManager.spawnItemPickupBox(event.getBlock().getLocation());\n\t\t\t} else if(cmd.equalsIgnoreCase(\"queues\")){ \n\t\t\t\tString track = ChatColor.stripColor(lines[2]);\n\t\t\t\tif(track.length() < 1){\n\t\t\t\t\treturn; //No track\n\t\t\t\t}\n\t\t\t\ttrack = plugin.signManager.getCorrectName(track);\n\t\t\t\tif(!plugin.trackManager.raceTrackExists(track)){\n\t\t\t\t\tevent.getPlayer().sendMessage(MarioKart.colors.getSuccess()+MarioKart.msgs.get(\"setup.fail.queueSign\"));\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t//Register sign\n\t\t\t\tplugin.signManager.addQueueSign(track, event.getBlock().getLocation());\n\t\t\t\t//Tell the player it was registered successfully\n\t\t\t\tevent.getPlayer().sendMessage(MarioKart.colors.getSuccess()+MarioKart.msgs.get(\"setup.create.queueSign\"));\n\t\t\t\tfinal String t = track;\n\t\t\t\tMarioKart.plugin.getServer().getScheduler().runTaskLater(plugin, new BukkitRunnable(){\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tplugin.signManager.updateSigns(t);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}}, 2l);\n\t\t\t\t\n\t\t\t\ttext = false;\n\t\t\t} else {\n\t\t\t\ttext = false;\n\t\t\t}\n\t\t\tif (text) {\n\t\t\t\tlines[2] = ChatColor.ITALIC + \"Right click\";\n\t\t\t\tlines[3] = ChatColor.ITALIC + \"to use\";\n\t\t\t}\n\t\t}\n\t}",
"public void changePlayerPixels() {\n //change the player point2pixels\n if (!playerFlag) {\n game.getPlayer().setPixels(convertor.gps2Pixels(game.getPlayer().getPoint()));\n Point3D point = new Point3D(game.getPlayer().getPixels()[0] , game.getPlayer().getPixels()[1]);\n GraphNode playerNode = new GraphNode(point);\n vertices.add(playerNode);\n\n }\n\n else {\n Point3D point = new Point3D(game.getPlayer().getPixels()[0] , game.getPlayer().getPixels()[1]);\n GraphNode playerNode = new GraphNode(point);\n vertices.add(playerNode);\n }\n\n playerFlag = true;\n\n }",
"@Override\n public void loop() {\n double X = x;\n double Y = y;\n telemetry.addData(\"X\", X);\n telemetry.addData(\"Y\", Y);\n telemetry.addData(\"angle\", angle);\n telemetry.addData(\"EncDr: \",EncDr);\n telemetry.addData(\"EncSp: \",EncSp);\n telemetry.addData(\"EncSt: \",EncSt);\n telemetry.addData(\"MovingAngle:\", Math.toDegrees(Math.atan(gamepad2.right_stick_x / (-gamepad2.right_stick_y))));\n telemetry.update();\n\n }",
"public void updateInformation() {\r\n onFirstCycle = false;\r\n lastLocation = player.getLocation();\r\n preparedAppearance = false;\r\n }",
"@EventHandler\n\tvoid signClicker(final PlayerInteractEvent event) {\n\t\tMarioKart.powerupManager.calculate(event.getPlayer(), event);\n\t\tif(MarioKart.fullServer){\n\t\t\treturn;\n\t\t}\n\t\tif (event.getAction() != Action.RIGHT_CLICK_BLOCK) {\n\t\t\treturn;\n\t\t}\n\t\tif (!(event.getClickedBlock().getState() instanceof Sign)) {\n\t\t\treturn;\n\t\t}\n\t\tfinal Sign sign = (Sign) event.getClickedBlock().getState();\n\t\tString[] lines = sign.getLines();\n\t\tMarioKart.plugin.getServer().getScheduler().runTaskAsynchronously(MarioKart.plugin, new BukkitRunnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif(plugin.signManager.isQueueSign(sign)){\n\t\t\t\t\tString trackName = ChatColor.stripColor(sign.getLine(0));\n\t\t\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] {\n\t\t\t\t\t\t\"join\", trackName, \"auto\" },\n\t\t\t\t\t\tevent.getPlayer());\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}});\n\t\tif (!ChatColor.stripColor(lines[0]).equalsIgnoreCase(\"[MarioKart]\")) {\n\t\t\treturn;\n\t\t}\n\t\tString cmd = ChatColor.stripColor(lines[1]);\n\t\tif (cmd.equalsIgnoreCase(\"list\")) {\n\t\t\tint page = 1;\n\t\t\ttry {\n\t\t\t\tpage = Integer.parseInt(ChatColor.stripColor(lines[2]));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t}\n\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] { \"list\",\n\t\t\t\t\t\"\" + page }, event.getPlayer());\n\t\t} else if (cmd.equalsIgnoreCase(\"leave\")\n\t\t\t\t|| cmd.equalsIgnoreCase(\"quit\") || cmd.equalsIgnoreCase(\"exit\")) {\n\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] { \"leave\" },\n\t\t\t\t\tevent.getPlayer());\n\t\t} else if (cmd.equalsIgnoreCase(\"join\")) {\n\t\t\tString mode = ChatColor.stripColor(lines[3]);\n\t\t\tif (mode.length() > 0) {\n\t\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] {\n\t\t\t\t\t\t\"join\", ChatColor.stripColor(lines[2]).toLowerCase(),\n\t\t\t\t\t\tmode }, event.getPlayer());\n\t\t\t} else {\n\t\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] {\n\t\t\t\t\t\t\"join\", ChatColor.stripColor(lines[2]).toLowerCase() },\n\t\t\t\t\t\tevent.getPlayer());\n\t\t\t}\n\t\t} else if (cmd.equalsIgnoreCase(\"shop\")) {\n\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] { \"shop\" },\n\t\t\t\t\tevent.getPlayer());\n\t\t}\n\t\treturn;\n\t}",
"private void updateObjects(Graphics g){\n\t\tclearMhos(g);\n\t\tclearPlayer(g);\n\t\tdrawMhos(g);\n\t\tdrawPlayer(g);\n\t\tdrawFences(g);\n\t\tDraw.drawInstructions(g,smallFont);\n\t}",
"public void updatePlayerPanel()\n {\n playerInfoPanel.updateLabel();\n }",
"@EventHandler(ignoreCancelled = true)\n\tpublic void onSignChange(SignChangeEvent event) {\n\n\t\t// Automatically flag players with bypass as posting non-empty signs to skip empty checks\n\t\tboolean empty = !event.getPlayer().hasPermission(\"sblock.sign.unlogged\");\n\n\t\tfor (int i = 0; i < event.getLines().length; i++) {\n\t\t\tevent.setLine(i, ChatColor.translateAlternateColorCodes('&', event.getLine(i)));\n\t\t\tif (empty && !TextUtils.appearsEmpty(event.getLine(i))) {\n\t\t\t\tempty = false;\n\t\t\t}\n\t\t}\n\n\t\tif (empty || event.getPlayer().hasPermission(\"sblock.sign.unlogged\")) {\n\t\t\treturn;\n\t\t}\n\n\t\tBlock block = event.getBlock();\n\n\t\tStringBuilder msg = new StringBuilder().append(ChatColor.GRAY)\n\t\t\t\t.append(block.getWorld().getName()).append(' ').append(block.getX()).append(\"x, \")\n\t\t\t\t.append(block.getY()).append(\"y, \").append(block.getZ()).append(\"z\\n\");\n\t\tfor (String line : event.getLines()) {\n\t\t\tif (!TextUtils.appearsEmpty(line)) {\n\t\t\t\tmsg.append(line).append(ChatColor.GRAY).append('\\n');\n\t\t\t}\n\t\t}\n\t\tmsg.delete(msg.length() - 3, msg.length());\n\n\t\tif (chat.testForMute(event.getPlayer(), msg.toString(), \"#sign\")) {\n\t\t\tevent.setCancelled(true);\n\t\t}\n\t}",
"public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}",
"@Override\n public void playerAttributeChange() {\n\n Logger.info(\"HUD Presenter: playerAttributeChange\");\n view.setLives(String.valueOf(player.getLives()));\n view.setMoney(String.valueOf(player.getMoney()));\n setWaveCount();\n }",
"protected void refresh() {\r\n // Toggle attached direction.\r\n org.bukkit.material.Sign material = new org.bukkit.material.Sign(this.getBlock().getType());\r\n material.setData(this.getSignMaterial().getData());\r\n \r\n material.setFacingDirection(material.getAttachedFace());\r\n this.getBlock().setData(material.getData());\r\n \r\n material.setFacingDirection(material.getAttachedFace());\r\n this.getBlock().setData(material.getData());\r\n }",
"public void update(Player player) {\n\t\t\n\t}",
"public void setListener(EntityPlayer player, float p_148615_2_) {\n/* 542 */ if (this.loaded && player != null) {\n/* */ \n/* 544 */ float f = player.prevRotationPitch + (player.rotationPitch - player.prevRotationPitch) * p_148615_2_;\n/* 545 */ float f1 = player.prevRotationYaw + (player.rotationYaw - player.prevRotationYaw) * p_148615_2_;\n/* 546 */ double d0 = player.prevPosX + (player.posX - player.prevPosX) * p_148615_2_;\n/* 547 */ double d1 = player.prevPosY + (player.posY - player.prevPosY) * p_148615_2_ + player.getEyeHeight();\n/* 548 */ double d2 = player.prevPosZ + (player.posZ - player.prevPosZ) * p_148615_2_;\n/* 549 */ float f2 = MathHelper.cos((f1 + 90.0F) * 0.017453292F);\n/* 550 */ float f3 = MathHelper.sin((f1 + 90.0F) * 0.017453292F);\n/* 551 */ float f4 = MathHelper.cos(-f * 0.017453292F);\n/* 552 */ float f5 = MathHelper.sin(-f * 0.017453292F);\n/* 553 */ float f6 = MathHelper.cos((-f + 90.0F) * 0.017453292F);\n/* 554 */ float f7 = MathHelper.sin((-f + 90.0F) * 0.017453292F);\n/* 555 */ float f8 = f2 * f4;\n/* 556 */ float f9 = f3 * f4;\n/* 557 */ float f10 = f2 * f6;\n/* 558 */ float f11 = f3 * f6;\n/* 559 */ this.sndSystem.setListenerPosition((float)d0, (float)d1, (float)d2);\n/* 560 */ this.sndSystem.setListenerOrientation(f8, f5, f9, f10, f7, f11);\n/* */ } \n/* */ }",
"public void updateScoreSign(String updatedString){\n scoreSign.setText(updatedString);\n }",
"@EventHandler\n void onSignChange(SignChangeEvent e){\n Player player = e.getPlayer();\n if (player.hasPermission(\"guildmc.createRaid\")){\n if (e.getLine(0).equalsIgnoreCase(\"[RAID]\")) {\n e.setLine(0,ChatColor.WHITE + \"[\" + ChatColor.GOLD + \"RAID\" + ChatColor.WHITE + \"]\");\n e.setLine(1, ChatColor.WHITE + e.getLine(1));\n e.setLine(2, ChatColor.WHITE + e.getLine(2));\n e.setLine(3, ChatColor.WHITE + e.getLine(3));\n GuildMCFunctions functions = new GuildMCFunctions();\n functions.displayRaidInfos(player);\n }\n } else {\n e.setCancelled(true);\n }\n }",
"@EventHandler(priority = EventPriority.MONITOR)\r\n\tpublic void onSignChange(SignChangeEvent event) {\r\n\t\t\r\n\t\tfinal Player creator = (Player)event.getPlayer();\r\n\t\tfinal InputPlayer iplayer = bSignModule.GUI_API.getPlayer(creator);\r\n\t\tfinal Location signLocation = event.getBlock().getLocation();\r\n\t\t\r\n\t\tSign newSign = null;\r\n\t\t\r\n\t\tif (event.getLine(0).equalsIgnoreCase(\"--weblink--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.web\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new WebSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the web link to link to\"));\r\n\t\t}\r\n\t\telse if (event.getLine(0).equalsIgnoreCase(\"--command--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.command\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new CommandSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the command for this sign to execute\"));\r\n\t\t}\r\n\t\telse if (event.getLine(0).equalsIgnoreCase(\"--info--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.info\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new InfoSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the info message for this sign\"));\r\n\t\t}\r\n\t\t\r\n\t\tbSignModule.SIGNS.add(newSign);\r\n\t\t\r\n\t}",
"void doUpdate() {\n\t\tdrawPlayer(backBufferContext, context);\n\t\tcheckForInteractions();\n\t}",
"void sendUpdatePlayer(int x, int y, int color, byte tool);",
"@Override\n\tpublic void update() {\n\n\t\ttimer++;\n\t\tupdatePlayer();\n\t\tupdateScreen();\n\t\tupdateLives();\n\n\t}",
"public void update() {\n\t\tthis.set(owner.getX(), owner.getY(), owner.getX() + length*(float)Math.cos(angle),\n\t\t\t\towner.getY() + length*(float)Math.sin(angle));\n\t}",
"private void updateSpotLight() {\n\t\tfloat light0_position[] = { player.getPosition().x, 16.0f, player.getPosition().z, 1.0f }; // x,y,z,1\n\t\tfloat light0_diff_spec[] = { 1f, 1f, 1f, 1.0f };\n\t\tfloat light0_direction[] = {-(float)Math.sin(Math.toRadians(player.getRotY())),0,-(float)Math.cos(Math.toRadians(player.getRotY())), 1f};\n\t\t// Eine weitere Lichtquellen definieren\n\t\tspotLight.setPosition(light0_position);\n\t\tspotLight.setCutoff(45.f);\n\t\tspotLight.setDirection(light0_direction);\n\t\tspotLight.setDiffAndSpek(light0_diff_spec);\n\t\t\n\t\tglEnable(GL_LIGHTING);\n\t}",
"public void draw()\r\n\t{\r\n\t\tfor(int i=1;i<accountValue.length;i++)\r\n\t\t{\r\n\t\t\taccountValue[i]+=playerBet[i];\r\n\t\t}\r\n\t\tendRund();\r\n\t}",
"@Override\n public void update() {\n if (Screen.checkState(GameState.RUNNING)) {\n healthToDraw = getPlayer().getHealth();\n maxHealthToDraw = getPlayer().getMaxHealth();\n minesToDraw = getPlayer().getCurrentMines();\n maxMinesToDraw = getPlayer().getMaxMines();\n currentLevelToDraw = Screen.getRoomHandler().getCurrentLevel();\n defenseToDraw = getPlayer().getDefense();\n speedToDraw = getPlayer().getSpeed();\n rangeToDraw = getPlayer().getSmallPlayerRange();\n damageToDraw = getPlayer().getPlayerDamage();\n playerRings = getPlayer().getRings();\n skillsToDraw = new Skill[4];\n for (int i = 0; i < getPlayer().getSkills().size(); i++) {\n if ( i < 4) {\n skillsToDraw[i] = getPlayer().getSkills().get(i);\n }\n }\n }\n }",
"public void editForwardLines(int line, int player, int newLine, int newPlayer) {\n Player selection1 = forwardLines[line][player];\n Player selection2 = forwardLines[newLine][newPlayer];\n\n //swap players\n forwardLines[line][player] = selection2;\n forwardLines[newLine][newPlayer] = selection1;\n }",
"public void updateCam()\r\n {\n \ttry{\r\n \tSystem.out.println();\r\n \tNIVision.IMAQdxGrab(curCam, frame, 1);\r\n \tif(curCam == camCenter){\r\n \t\tNIVision.imaqDrawLineOnImage(frame, frame, NIVision.DrawMode.DRAW_VALUE, new Point(320, 0), new Point(320, 480), 120);\r\n \t}\r\n server.setImage(frame);}\n \tcatch(Exception e){}\r\n }",
"@Override\n public void track() {\n tracker.update(\n driveEncoder.getCount(),\n getTurnAngle(turnEncoder.getCount())\n );\n }",
"void updatePlayer(Player player);",
"public void updateMarks() {\n this.marks.addAll(thisTurnMarks);\n thisTurnMarks.clear();\n if(game != null)\n game.notifyUpdateMarks(this);\n }",
"public void updatePlayer(Player player) {\n\t\t// update the flag GO TO JAIL in Player class\n\t}",
"public void playerNextMove(int row, int col){\r\n setSign(row,col,playerSign);\r\n }",
"@Override\n public void updateScreen() {\n if (dirty) {\n Alkahestry.logger.info(((ContainerMoleculeSplitter) container).moleculeSplitterTileEntity.progress);\n// String name = String.valueOf(((ContainerMoleculeSplitter) container).moleculeSplitterTileEntity.progress);\n// fontRenderer.drawString(name, xSize / 2 - fontRenderer.getStringWidth(name) / 2, 6, 0x404040);\n// fontRenderer.drawString(playerInv.getDisplayName().getUnformattedText(), 8, ySize - 94, 0x404040);\n dirty = false;\n }\n// ((ContainerMoleculeSplitter) container)\n// .moleculeSplitterTileEntity\n// .\n super.updateScreen();\n }",
"@Override\n public void update(){\n super.update();\n if(getPositionY() < -2.f){\n setAngleXYDeltaTheta(0.0f);\n setAngleXY(0.0f);\n setPositionY(1.0f);\n setDy(0.0f);\n setDx(0.0f);\n setInPlay(true);\n }\n }",
"@Override\r\n public void updateMixer() {\n playerPosition = mixer.getGlobalCoordinates();\r\n playerOrientation = mixer.getGlobalOrientation();\r\n Vec3d playerScalling = mixer.getGlobalScale();\r\n\r\n //scale ears\r\n rightEarPosition = Vec3d.multiplicationOfComponents((new Vec3d(-earsDistance, 0, 0)), playerScalling);\r\n leftEarPosition = Vec3d.multiplicationOfComponents((new Vec3d(earsDistance, 0, 0)), playerScalling);\r\n }",
"public void drawAngleIndicator(){\n\t\tfloat bottomLineHyp = 60;\n\t\tfloat topLineHyp = 100;\n\t\t\n\t\tfloat bottomXCoord = (float) ((Math.cos(Math.toRadians(angle) ) ) * bottomLineHyp);\n\t\tfloat bottomYCoord = (float) ((Math.sin(Math.toRadians(angle) ) ) * bottomLineHyp);\n\t\t\n\t\tfloat bottomX = Player.getxPlayerLoc() + ((Player.getPlayerImage().getWidth() * Player.getPlayerScale()) / 2 ) + bottomXCoord;\n\t\tfloat bottomY = Player.getyPlayerLoc() + ((Player.getPlayerImage().getHeight() * Player.getPlayerScale()) / 2 ) + bottomYCoord ;\n\t\t\n\t\tfloat topXCoord = (float) ((Math.cos(Math.toRadians(angle) ) ) * topLineHyp);\n\t\tfloat topYCoord = (float) ((Math.sin(Math.toRadians(angle) ) ) * topLineHyp);\n\t\t\n\t\tfloat topX = Player.getxPlayerLoc() + ((Player.getPlayerImage().getWidth() * Player.getPlayerScale() ) / 2 ) + topXCoord;\n\t\tfloat topY = Player.getyPlayerLoc() + ((Player.getPlayerImage().getHeight() * Player.getPlayerScale() ) / 2 ) + topYCoord;\n\t\t\n\t\tShapeRenderer shape = new ShapeRenderer();\n\t\tshape.setColor(Color.BLACK);\n\t\tshape.begin(ShapeType.Line);\n\t\tshape.line(bottomX, bottomY, topX, topY);\n\t\tshape.end();\n\t}",
"@Override\n\tpublic void updateSelfY(MinecraftClient client) {\n\t}",
"@Override\n\tvoid update(){\n\n\t\t\tif(Frogger.flag==1){\n\t\t\t\tif(orientation == Orientation.UP) y -= step;\n\t\t\t\telse if (orientation == Orientation.DOWN) y += step;\n\t\t\t\telse if (orientation == Orientation.RIGHT) x += step;\n\t\t\t\telse if (orientation == Orientation.LEFT) x -= step;\n\t\t}\n\t\tsetChanged();\n\t\tnotifyObservers();\n\t}",
"void playerPositionChanged(Player player);",
"@Override\n public void updateEnergy(int p, Racer player) {\n\n super.updateEnergy(p, player);\n player.setEnergy(player.getEnergy() * 2);\n }",
"public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped=true;\r\n\t}",
"public void update() {\n super.update();\n // Code specific to the ship gameObject\n action = ctrl.action();\n direction.rotate(action.turn * STEER_RATE * Constants.DT);\n velocity.addScaled(direction, (MAG_ACC * Constants.DT * action.thrust));\n position.addScaled(velocity, DRAG * Constants.DT);\n position.wrap(Constants.FRAME_WIDTH, Constants.FRAME_HEIGHT);\n\n // Checks if the user is pressing forwards\n if(action.thrust == 1){\n thrusting = true;\n } else{\n thrusting = false;\n }\n time -= 1;\n if(action.shoot && time <= 0){\n mkBullet();\n time = 30;\n }\n\n if(invincible)\n color = Color.blue;\n else\n color = Color.cyan;\n }",
"void drawPlayer(float x, float y, float w)\n\t{\n\t\tline(x, y, x + 50, y);\n\t\tline(x, y, x, y - 50);\n\t\tline(x + 50, y, x + 50, y - 50);\n\t\tline(x, y - 50, x + 50, y - 50);\n\t\tstroke(255,0,0);\n\t}",
"protected void serverAiStep() {\n/* 539 */ super.serverAiStep();\n/* 540 */ updateSwingTime();\n/* */ \n/* 542 */ this.yHeadRot = this.yRot;\n/* */ }",
"void increaseAngle() {\n this.strokeAngle += 3;\n this.updateAcc();\n this.updateStick();\n }",
"private void UpdateTimeLines(RadioPlayer player)\n {\n String start = player.getStartTime();\n String end = player.getEndTime();\n\n //Not live, playing mp3 file. Calc progress from file progress instead\n if (isAdded()) {\n if (player.getUrl() != getString(R.string.url_live_radio)) {\n float pct = player.getProgress();\n int duration = player.getDuration();\n timeline.setProgress(pct);\n smallTimeLine.setProgress(pct);\n timeLineSeekBar.setProgress(pct);\n\n //start and end times\n int past = (int) (pct * duration);\n int left = duration - past;\n\n int s0 = (int) (past / 1000) % 60;\n int m0 = (int) ((past / (1000 * 60)) % 60);\n int s1 = (int) (left / 1000) % 60;\n int m1 = (int) ((left / (1000 * 60)) % 60);\n\n String elapsed = String.format(\"%02d\", m0) + \":\" + String.format(\"%02d\", s0);\n String remaining = \"-\" + String.format(\"%02d\", m1) + \":\" + String.format(\"%02d\", s1);\n\n startTimeLabel.setText(elapsed);\n endTimeLabel.setText(remaining);\n\n return;\n }\n }\n\n Date now = new Date();\n SimpleDateFormat sdfr = new SimpleDateFormat(\"HH:mm\");\n Date curr = DateUtils.timeStringToDate(sdfr.format(now));\n\n Date startDate = DateUtils.timeStringToDate(start);\n Date endDate = DateUtils.timeStringToDate(end);\n\n startTimeLabel.setText(start);\n endTimeLabel.setText(end);\n\n if(startDate != null && endDate != null && curr != null)\n {\n long t0 = startDate.getTime();\n long t1 = endDate.getTime();\n long t = curr.getTime();\n\n float duration = t1 - t0;\n float time = t - t0;\n\n //if(duration == 0)\n if(Math.signum(duration) == 0)\n {\n timeline.setProgress(0);\n smallTimeLine.setProgress(0);\n timeLineSeekBar.setProgress(0);\n }\n\n float pct = time/duration;\n\n //TODO: If we've reached pct = 1 (or something like 0.9999), then start checking for new live content\n //Log.i(\"PS\", \"UpdateTimeLines, pct: \"+pct);\n /*\n if(player.isLive())\n {\n Log.i(\"PS\",\"Live radio @ \"+pct);\n if(pct >= 1.0 && liveReloadCallback == null)//!isLoadingNewContent)\n {\n //isLoadingNewContent = true;//Set to false on backend respons IF content is updated\n reloadBroadcastData();\n }\n }\n */\n\n timeline.setProgress(pct);\n smallTimeLine.setProgress(pct);\n timeLineSeekBar.setProgress(pct);\n }\n }",
"private void SetPlayerData(String playerLine) throws IOException\n {\n String fName = m_Parser.GetFirstName(playerLine);\n String lName = m_Parser.GetLastName(playerLine);\n int face = m_Parser.GetFace(playerLine);\n int jerseyNumber = m_Parser.GetJerseyNumber(playerLine);\n int[] attrs = m_Parser.GetInts(playerLine);\n int[] simData = m_Parser.GetSimVals(playerLine);\n\n mFirstNameTextBox.setText( fName);\n mLastNameTextBox.setText( lName);\n m_ImageNumber = face;\n if( jerseyNumber > -1 && jerseyNumber < 0x100)\n mJerseyNumberUpDown.setValue( Integer.parseInt(String.format(\"%x\", jerseyNumber)));\n\n if( attrs != null )\n {\n int attrIndex = 0;\n for(int i = 0; i < attrs.length && i < m_Attributes.length; i++)\n {\n attrIndex = AttrIndex(attrs[i]+\"\");\n if( attrIndex > -1 )\n m_Attributes[i].setSelectedIndex(attrIndex);\n }\n }\n if( simData != null)\n {\n for( int i =0; i < simData.length; i++)\n {\n m_SimAttrs[i].setValue( Integer.parseInt(simData[i]+\"\"));\n }\n }\n if( jerseyNumber > -1 && jerseyNumber < 0x100)\n {\n mJerseyNumberUpDown.setValue(Integer.parseInt(String.format(\"%x\", jerseyNumber)));\n ShowCurrentFace();\n }\n }",
"public void setPlayerPosition(Player player) {\n\n if (player.getPosition().equals(\"Left Wing\")) {\n\n for (int i = 0; i < 2; i++) {\n if (forwardLines[i][0] == null) {\n forwardLines[i][0] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Center\")) {\n for (int i = 0; i < 2; i++) {\n if (forwardLines[i][1] == null) {\n forwardLines[i][1] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Right Wing\")) {\n for (int i = 0; i < 2; i++) {\n if (forwardLines[i][2] == null) {\n forwardLines[i][2] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Left Defence\")) {\n for (int i = 0; i < 2; i++) {\n if (defenceLines[i][0] == null) {\n defenceLines[i][0] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Right Defence\")) {\n for (int i = 0; i < 2; i++) {\n if (defenceLines[i][1] == null) {\n defenceLines[i][1] = player;\n break;\n }\n }\n }\n }",
"public void update() {\n if(this.getLine(0) != \"\") this.setLine(0, \"\");\n if(this.getLine(0) != plugin.getGameManager().getAlivePlayers().size() + \" §7Joueurs\") this.setLine(1, plugin.getGameManager().getAlivePlayers().size() + \" §7Joueurs\");\n if(this.getLine(0) != Team.getTeams().size() + \" §7Equipes\") this.setLine(2, Team.getTeams().size() + \" §7Equipes\");\n if(this.getLine(0) != \" \") this.setLine(3, \" \");\n\n /* Timer part */\n if(plugin.getGameManager().hasStarted()) {\n this.setLine(4, \"§eTimer: §r\" + getFormattedTimer(plugin.getTimerManager().getMinutesLeft(), plugin.getTimerManager().getSecondsLeft()) + \" [§bE\" + getFormattedEpisode(plugin.getTimerManager().getEpisode()) + \"§r]\");\n\n String text = \"\";\n List<Integer> timers = new ArrayList<>();\n if(!plugin.getGameManager().isPvpActivated())\n timers.add(plugin.getTimerManager().getMinutesPvpLeft());\n if(!plugin.getGameManager().isRolesActivated())\n timers.add(plugin.getTimerManager().getMinutesRolesLeft());\n if(!plugin.getGameManager().isKitsActivated())\n timers.add(plugin.getTimerManager().getMinutesKitsLeft());\n if(!plugin.getBorderManager().isShrinking())\n timers.add(plugin.getTimerManager().getMinutesBorderLeft());\n\n try {\n int min = timers\n .stream()\n .filter(v -> v != -1)\n .mapToInt(v -> v)\n .min()\n .orElseThrow(NoSuchElementException::new);\n\n if(min == plugin.getTimerManager().getMinutesPvpLeft() && !plugin.getGameManager().isPvpActivated())\n text = \"Pvp\";\n else if(min == plugin.getTimerManager().getMinutesRolesLeft() && !plugin.getGameManager().isRolesActivated())\n text = \"Equipes\";\n else if(min == plugin.getTimerManager().getMinutesKitsLeft() && !plugin.getGameManager().isKitsActivated())\n text = \"Kits\";\n else if(min == plugin.getTimerManager().getMinutesBorderLeft() && !plugin.getBorderManager().isShrinking())\n text = \"Bordure\";\n\n if(!text.equals(\"\")) {\n this.setLine(5, \"§c\" + text + \": §r< \" + (min + 1) + \"min\");\n }\n } catch (NoSuchElementException e) {\n this.removeLine(5);\n }\n }\n }",
"void playerHandler() {\n player.turnToPoint(mouseX, mouseY);\n if (firing && sTimer < 1) {\n\n Sprite smb = new Sprite(smbulletbase);\n smb.moveToSprite(player);\n if(usingCoil){\n clickEffect = new KTSound(this, coilshotURL);\n ktAudio.add(clickEffect);\n clickEffect.play();\n clickEffect = new KTSound(this, gunshotURL);\n ktAudio.add(clickEffect);\n }\n smBullets.add(smb);\n clickEffect.play();\n if(weapon == \"minigun\"){\n smb.turnToPoint(mouseX+(int)random(-90,90), mouseY+(int)random(-90,90));\n }\n else{\n smb.turnToPoint(mouseX, mouseY);\n }\n\n sTimer = firingSpeed;\n }\n sTimer -= 1;\n \n prevX = player.getX();\n prevY = player.getY();\n\n if (up) {\n player.moveY( - 5);\n // pAngle -= 1;\n }\n if (down) {\n player.moveY(5);\n // pAngle += 1;\n }\n if (left) {\n player.moveX( - 5);\n // pAngle -= 1;\n }\n if (right) {\n player.moveX(5);\n }\n if (player.getY() < player.getH() / 2) {\n player.setY(player.getH() / 2);\n }\n if (player.getY() > 2048 - player.getH() / 2) {\n player.setY(2048 - player.getH() / 2);\n }\n if (player.getX() < player.getH() / 2) {\n player.setX(player.getH() / 2);\n }\n if (player.getX() > 2048 - player.getH() / 2) {\n player.setX(2048 - player.getH() / 2);\n }\n \n \n\n // player.turnToDir(pAngle);\n player.display();\n // player.displayHitbox();\n}",
"@Override\n\tpublic void updatePlayer(Joueur joueur) {\n\t\t\n\t}",
"protected synchronized void updatePoints(double points)\n\t{\n\t\tif(Config.VIT_MAX_PLAYER_LVL > _player.getLevel())\n\t\t{\n\t\t\tif(Config.VIT_CHECK_LUCKY_SKILL)\n\t\t\t{\n\t\t\t\tif(_player.getSkillLevel(LUCKY_SKILL) > 0)\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn;\n\t\t}\n\n\t\tint prevLvl = getLevel();\n\t\tint prevPoints = (int) _vitPoints;\n\n\t\tchangePoints(points);\n\t\tsendChangeMessage(prevPoints, prevLvl);\n\t}",
"@Override\r\n\tpublic void landOnSquare(Player player) {\n\t\tplayer.deposit(bonus);\r\n\t\tGUIControl.refugeMessage(this,player,bonus);//prints a message to the user.\r\n\t\tGUIControl.updateBalance(player);\r\n\t}",
"public void update() {\n MouseWrapper mouseWrapper = Engine.get().getMouseWrapper();\n bufferBuffer.clear();\n if (\n Engine.get().getEngineState() == Engine.EngineState.PLAY ||\n Engine.get().getEngineState() == Engine.EngineState.PAUSE\n ) {\n VectorD mousePos = new VectorD(\n mouseWrapper.getX(),\n mouseWrapper.getY()\n );\n VectorD difference = mousePos.diff(\n Engine.get().getGameState().getCursorFollow()\n );\n if (difference.length() > Constants.MOUSE_FOLLOW_CUTOFF) {\n difference =\n difference.multiplicate(Constants.MOUSE_FOLLOW_MULTIPLIER);\n }\n Engine\n .get()\n .getGameState()\n .setCursorFollow(\n Engine\n .get()\n .getGameState()\n .getCursorFollow()\n .sum(difference)\n );\n\n Entity player = EntityUtil.getPlayer(\n Engine.get().getEntityStream()\n );\n TransformationStorage playerPos = (TransformationStorage) player.getComponent(\n SpaxelComponent.TRANSFORMATION\n );\n\n Engine\n .get()\n .getGameState()\n .setScreenOffset(calculateScreenOffset(playerPos));\n }\n renderEntities();\n\n Engine.get().getCurrentUI().render(bufferBuffer);\n\n master.render(bufferBuffer);\n }",
"@Override\r\n\tpublic void update() {\n\t\tListIterator<Player> it = players.listIterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tit.next().update();\r\n\t\t}\r\n\t\t// Logica del juego, etc\r\n\t\tcontrolMenu();\r\n\t}",
"void updateStick() { \n Arrow a = (Arrow) this.arrow;\n a.updateArrow(this.strokeAcc, this.golfBall.coord);\n }",
"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 update() {\n Dashboard.sendToDash(\"/update Servo \" + id + \" \" + servo.getPosition());\n }",
"public void update() { \n rS = globeR;\n // *Generate the vector of the obj on the surface\n drawPosS = sphereToCart(lon, lat, rS);\n // *Generate the vector of the obj inside the globe\n drawPosD = sphereToCart(lon, lat, rD);\n }",
"private void addPlayerSheild() {\n this.playerShield += 1;\n }",
"private void resign(){\n try {\n // send the command and the color\n toServer.writeInt(RESIGN);\n toServer.writeInt(color);\n } catch (IOException e) {\n e.printStackTrace();\n }\n report(\"Client --> server: RESIGN \" + this.color);\n\n endGame();\n }",
"public void updateRenderAngles() {\n }",
"@Override\r\n public void givePlayerPoints(int player, int plValuePosition, int points) {\r\n // Incrememnt player values by the points passed in\r\n this.players.get(player).\r\n changePlayerValueNumeric(plValuePosition, points);\r\n }",
"public void playerCoinUpdate(Player player, Coin coin, GameEngine engine)\r\n {\n coin.flip();\r\n\r\n logger.log(Level.FINE,player.getPlayerName() + \" coin \" + coin.getNumber() + \" flipped to \" + coin.getFace());\r\n }",
"public void updateMoney()\n\t\t{\n\t\t\t\n\t\t\tFPlayer p1 = this.viewer;\n\t\t\tFPlayer p2 = (p1.equals(this.t.p1)) ? this.t.p2 : this.t.p1;\n\t\t\t\n\t\t\tItemStack om = new ItemStack(Material.GREEN_WOOL,1);\n\t\t\tItemMeta it = om.getItemMeta();\n\t\t\tit.setDisplayName(ChatColor.DARK_GREEN+ChatColor.BOLD.toString()+\"Money in trade:\");\n\t\t\tit.setLore(Arrays.asList(new String[] {\"\",Util.getMoney(this.t.getMoneyTraded(p1)),\"\",\"Click to add/remove money from trade\"}));\n\t\t\tom.setItemMeta(it);\n\t\t\t\n\t\t\tif (this.canAdd()) super.contents.put(0,new ItemSwapMenu(this,om,new MenuMoney(super.viewer,this.t)));\n\t\t\telse super.contents.put(0,new ItemDummy(this,om));\n\t\t\t\n\t\t\t// Trader money in trade\n\t\t\tItemStack tm = new ItemStack(Material.GREEN_WOOL,1);\n\t\t\tit = tm.getItemMeta();\n\t\t\tit.setDisplayName(ChatColor.DARK_GREEN+ChatColor.BOLD.toString()+\"Money in trade:\");\n\t\t\tit.setLore(Arrays.asList(new String[] {\"\",Util.getMoney(this.t.getMoneyTraded(p2))}));\n\t\t\ttm.setItemMeta(it);\n\t\t\tsuper.contents.put(8,new ItemDummy(this,tm));\n\t\t\tthis.composeInv();\n\t\t}",
"public void SRU() {\n\t\tgl.glColor3f(1.0f, 0.0f, 0.0f);\n\t\tgl.glLineWidth(1.0f);\n\t\tgl.glBegin( GL.GL_LINES );\n\t\t\tgl.glVertex2f( -200.0f, 0.0f );\n\t\t\tgl.glVertex2f( 200.0f, 0.0f );\n\t\t\tgl.glEnd();\n\t\t// eixo y\n\t\tgl.glColor3f(0.0f, 1.0f, 0.0f);\n\t\tgl.glBegin( GL.GL_LINES);\n\t\t\tgl.glVertex2f( 0.0f, -200.0f);\n\t\t\tgl.glVertex2f( 0.0f, 200.0f );\n\t\tgl.glEnd();\n\t}",
"public void update(){\n\t\t//Arm up (spool out cable from winch while going up)\n\t\tif(Robot.stick.getRawButton(4)){\n\t\t\ttalonArm.set(SmartDashboard.getNumber(\"Climber Arm Speed: \", 0.5));\n\t\t\twinchGroup.set(-SmartDashboard.getNumber(\"Climber Winch Speed: \", 0.25));\n\t\t}\n\t\t//Arm down\n\t\telse if(Robot.stick.getRawButton(2)){\n\t\t\ttalonArm.set(-SmartDashboard.getNumber(\"Climber Arm Speed: \", 0.5));\n\t\t}\n\t\t//Stop moving\n\t\telse{\n\t\t\ttalonArm.set(0);\n\t\t\twinchGroup.set(0);\n\t\t}\n\t\t//Climb with winch\n\t\tif(Robot.stick.getRawButton(1)){\n\t\t\twinchGroup.set(SmartDashboard.getNumber(\"Climber Winch Speed: \", 0.25));\n\t\t}\n\t}",
"private void draw() {\n this.player.getMap().DrawBackground(this.cameraSystem);\n\n //Dibujamos al jugador\n player.draw();\n\n for (Character character : this.characters) {\n if (character.getMap() == this.player.getMap()) {\n character.draw();\n }\n }\n\n //Dibujamos la parte \"superior\"\n this.player.getMap().DrawForeground();\n\n //Sistema de notificaciones\n this.notificationsSystem.draw();\n\n this.player.getInventorySystem().draw();\n\n //Hacemos que la cámara se actualice\n cameraSystem.draw();\n }",
"@Override\n public void loop() {\n telemetry.addData(\"Rotation: \", Round(stevens_IMU.getAngularOrientation().firstAngle * -57.143));\n telemetry.addData(\"Position \", stevens_IMU.getAngularOrientation());\n }",
"private void sendUpdates() {\n\n List<PeerUpdateMessage.Part> parts = new ArrayList<PeerUpdateMessage.Part>();\n for (ActivePlayer peer : player.getSavedNeighbors()) {\n PeerUpdateMessage.Part part = new PeerUpdateMessage.Part(\n peer.character.id, peer.character.getExtrapolatedMotionState());\n parts.add(part);\n }\n\n if (!parts.isEmpty()) {\n PeerUpdateMessage msg = new PeerUpdateMessage(parts);\n new ToClientMessageSink(player.session).sendWithoutConfirmation(msg);\n }\n }",
"@Override\n public void update(float delta) {\n\tcoinX = bounds.x + MainCamera.getInstance().getWidth() - margin - coinWidth;\n\tcoinY = bounds.y + MainCamera.getInstance().getHeight() - margin - coinHeight;\n\t\n\t/* Platform icon positioning */\n\tbillX = bounds.x + margin;\n\tbillY = bounds.y + MainCamera.getInstance().getHeight() - margin - billHeight;\n\t\n\t/* Add money button */\n\taddMoneyButton.setX(bounds.x + MainCamera.getInstance().getCenterX() - (addMoneyButton.getWidth() / 2));\n\taddMoneyButton.setY(billY + (billHeight / 2) - (addMoneyButton.getHeight() / 2));\n\tif (CurrentSettings.getInstance().adsPlayable) {\n\t if (GameManager.getInstance().stateManager.getCurrentState() != GameManager.getInstance().stateId_play) {\n\t\tif (!CurrentSettings.getInstance().moneyAdded)\n\t\t addMoneyButton.update(delta);\n\t }\n\t}\n }",
"private void paintSign(Graphics g) {\n point = getPoint(endPoint);\n int[] maxWH = new int[2];\n int x = (FCanvas.canvasWidth - maxWH[0]) >> 1;\n int y = (FCanvas.canvasHeight - maxWH[1]) >> 1;\n if (ruteData[RUTE_SOURCE].equals(ruteData[RUTE_DESTINATION])) {\n auxsb = new StringBuffer(\"Encontrada baliza de '\");\n auxsb.append(FInteractionUtils.destinationHotspotName);\n auxsb.append(\"'. Llegó a su destino\");\n //auxsb.append(FInteractionUtils.sourceHotspotName);\n } else {\n auxsb = new StringBuffer(\"Ha llegado a '\");\n auxsb.append(ruteData[RUTE_DESTINATION]);\n auxsb.append(\"' desde '\");\n //TODO i don't like FMap to FRutePlanner communication\n if (FRutePlanner.rutes.length - 1 == FRutePlanner.currentRute) {\n auxsb.append(FInteractionUtils.sourceHotspotName);\n } else {\n auxsb.append(ruteData[RUTE_SOURCE]);\n }\n auxsb.append(\"'\");\n }\n maxWH = Utils.getWrappedTextWidthHeigh(auxsb.toString(), FCanvas.bigFont,\n 0, FCanvas.canvasWidth, false, null, y);\n x = (FCanvas.canvasWidth - maxWH[0]) >> 1;\n //y = (FCanvas.canvasHeight - maxWH[1]) >> 1;\n y = 5;\n g.setColor(Utils.COLOR_TANGO_BUTTER1);\n g.fillRoundRect(x - 3, y - 3, maxWH[0] + 6, maxWH[1] + 6, 6, 6);\n g.setColor(Utils.COLOR_TANGO_SKYBLUE1);\n g.fillRoundRect(x, y, maxWH[0], maxWH[1], 6, 6);\n g.setColor(Utils.COLOR_TANGO_ALUMINIUM1);\n Utils.getWrappedTextWidthHeigh(auxsb.toString(), FCanvas.bigFont,\n x, FCanvas.canvasWidth, true, g, y);\n }",
"private void setPlayerInformations() {\n\t\t\t\n\t\t\t\n\t\t}",
"public Player updatePlayer(Player player);",
"public void updateRotations() {\n try {\n switch (this.mode) {\n case Packet:\n mc.player.renderYawOffset = this.yaw;\n mc.player.rotationYawHead = this.yaw;\n break;\n case Legit:\n mc.player.rotationYaw = this.yaw;\n mc.player.rotationPitch = this.pitch;\n break;\n case None:\n break;\n }\n } catch (Exception ignored) {\n\n }\n }",
"private void setInformationToDraw(Player player)\n {\n playerPieceList = player.getPieces();\n\n if (player == antagonistPlayer) {\n x = antagonistLocation[0];\n y = antagonistLocation[1];\n damageToAnnounce = antagonistDamage;\n healthBenefitToAnnounce = antagonistHealthBenefit;\n } else if (player == heroPlayer) {\n x = heroLocation[0];\n y = heroLocation[1];\n damageToAnnounce = heroDamage;\n healthBenefitToAnnounce = heroHealthBenefit;\n } else {\n x = 0;\n y = 0;\n }\n }",
"@Inject(method = \"render\", at = @At(\"TAIL\"))\n public void render(PoseStack matrices, int mouseX, int mouseY, float delta, CallbackInfo info) {\n drawCenteredString(\n matrices,\n minecraft.font,\n ChatFormatting.BOLD + status.toString(),\n authButton.x + authButton.getWidth(),\n authButton.y - 1,\n status.getColor());\n }",
"private void giveScords(){\n \t//bingo 題數, seconds花費秒數\n \tint totalSec = (int)seconds;\n \t\n \tif(correct){\n \t\tif(totalSec<=5){\n \t\t\tuserPoints = userPoints + 150;\n \t\t}else if(totalSec<=10){\n \t\t\tuserPoints = userPoints + 125;\n \t\t}else if(totalSec<=15){\n \t\t\tuserPoints = userPoints + 100;\n \t\t}else if(totalSec<=20){\n \t\t\tuserPoints = userPoints + 80;\n \t\t}\n \t}\n }",
"public void onClickPlayer() {\n carIcon.setOpacity(1);\n playerIcon.setOpacity(1);\n playerList.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {\n displayUserInfo(newValue);\n });\n MAIN_MENU_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }",
"public void draw(){\n textAlign(CENTER);\n route.update(pp, qq);\n SoundSys();\n fill(0xff31F0FF, 127);\n noStroke();\n ellipse(mouseX, mouseY, 30, 30);\n}",
"@Override\n public void draw() {\n super.draw(); \n double radius = (this.getLevel() * 0.0001 + 0.025) * 2.5e10;\n double x = this.getR().cartesian(0) - Math.cos(rot) * radius;\n double y = this.getR().cartesian(1) - Math.sin(rot) * radius;\n StdDraw.setPenRadius(0.01);\n StdDraw.setPenColor(StdDraw.RED);\n StdDraw.point(x, y);\n \n }",
"public void readSign()\n\t{\n\t\tboolean[][] boolTable = getTable();\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t public void run()\n\t\t {\n\t\t \tview.sPanel.updateTable(boolTable); // aktualizacja tablicy wypełenień w panelu do wyświetlania interpretacji znaku\n\t\t }\n\t\t});\n\t\t\n\t\tArrayList<Double> table = new ArrayList<Double>();\n\t\t\n\t\tfor(int i=0; i<10; ++i) // przygotowanie tablicy wejść dla sieci neuronowej\n\t\t\tfor(int j=0; j<7; ++j)\n\t\t\t\tif(boolTable[i][j])\n\t\t\t\t\ttable.add(1.0d);\n\t\t\t\telse\n\t\t\t\t\ttable.add(0.0d);\n\t\t\n\t\tSwingUtilities.invokeLater(new Runnable()\n\t\t{\n\t\t public void run()\n\t\t {\n\t\t \tview.label.setLabelText(model.getOutput(table)); // ustawienie zawartości pola tekstowego\n\t\t }\n\t\t});\n\t\t\n\t}",
"public void update(){\n\t\t\t//Key listener for keyboard input \n\t\t\taddKeyListener(new KeyAdapter(){\n\t\t\t\t\n\n\t\t\t\t@Override\n\t\t\t\tpublic void keyPressed(KeyEvent e)\n\t\t\t\t{\t\t\t\n\t\t\t\t\t \t// Moving on the x axis.\n\t\t\t\t if((e.getKeyCode() == KeyEvent.VK_D) || e.getKeyCode() == (KeyEvent.VK_RIGHT))\n\t\t\t\t pl.moveXspeed += pl.accelXspeed;\n\t\t\t\t \t\t\n\t\t\t\t else if(e.getKeyCode() == (KeyEvent.VK_A) || e.getKeyCode() == (KeyEvent.VK_LEFT))\n\t\t\t\t pl.moveXspeed -= pl.accelXspeed;\n\t\t\t\t \n\t\t\t\t // Moving on the y axis.\n\t\t\t\t if(e.getKeyCode() == (KeyEvent.VK_W) || e.getKeyCode() == (KeyEvent.VK_UP))\n\t\t\t\t pl.moveYspeed -= pl.accelYspeed;\n\t\t\t\t else if(e.getKeyCode() == (KeyEvent.VK_S) || e.getKeyCode() == (KeyEvent.VK_DOWN))\n\t\t\t\t pl.moveYspeed += pl.accelYspeed;\n\t\t\t\t else\n\t\t\t\t {\n\t\t\t\t \t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t if (GameOn == true){\n\t\t\t\t \t\n\t\t\t\t }\n\t\t\t\t else if (GameOn == false )\n\t\t\t\t {\n\t\t\t\t \t repaint(); \n\t\t\t\t \t \n\t\t\t\t \t \t\t\t\t\t\t\t\n\t\t\t\t\t\tData = \" Number of rockets remaining: \" + pl.NumRockets \n\t\t\t\t\t\t\t+ \"Number of bullets remaining: \" +pl.NumBullets\n\t\t\t\t\t\t\t+ \" Remaining health: \" +pl.Health\n\t\t\t\t\t\t\t+\" Number of runway enemies: \" + RunAwayEnemies\n\t\t\t\t\t\t\t+ \" Number of destroyed enemies: \" +DestroyedEnemies;\n\t\t\t\t \n\t\t\t\t \t Email = new EmailGUI(Data); \n\t\t\t\t \t \n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t /* else if (WinsState == true )\n\t\t\t\t {\n\t\t\t\t \t repaint(); \n\t\t\t\t \t //*******************stoip game here and send email with game details\n\t\t\t\t \t Data = \" Number of rockets remaining: \" + pl.NumRockets +\",\" \n\t\t\t\t\t\t\t\t\t+ \" Number of bullets remaining: \" +pl.NumBullets+\",\"\n\t\t\t\t\t\t\t\t\t+ \" Remaining health: \" +pl.Health+\",\"\n\t\t\t\t\t\t\t\t\t+ \" Number of destroyed enemies: \" +DestroyedEnemies+\",\"\n\t\t\t\t\t\t\t\t\t+\" Number of runway enemies: \" + RunAwayEnemies;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t\t \t Email = new EmailGUI(Data); \n\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\n\t\t\t});\n\t\t\t\n\t\t\t//mouse listener for mouse input \n\t\t\taddMouseListener(new MouseListener()\n\t\t\t{\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//actions performed when mouse button 1 is pressed \t\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON1)\n\t\t\t\t{\n\t\t\t\t\tif (pl.NumBullets > 0)\n\t\t\t\t\t{\n\t\t\t\t\t\t\t//creates shoot and adds the to the list\n\t\t\t\t\t\t\tpl.Shoot(); \n\t\t\t\t\t\t\tBulletFired = true; \n\t\t\t\t\t\t\tbul = new Bullet(pl.GetXCoord() + 240,pl.GetYCoord() + 70); \n\t\t\t\t\t\t\tBulletList.add(bul); \n\t\t\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\telse if (pl.NumBullets <= 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tGameOn = false;\n\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//actions performed when mouse button 2 is pressed \t\n\t\t\t\t\t if (e.getButton() == MouseEvent.BUTTON3)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tif (pl.NumRockets > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//creates rockets and adds the to the list\n\t\t\t\t\t\t\tpl.FireRocket(); \n\t\t\t\t\t\t\tRocketFired = true; \n\t\t\t\t\t\t\trock = new Rocket(pl.GetXCoord() + 200,pl.GetYCoord() + 60); \n\t\t\t\t\t\t\tRocketList.add(rock); \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}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\t\t\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}); \n\t\t\n\t\t}",
"public interface SignReflection {\n /**\n * Reads an input packet of sign being updated\n *\n * @param packet The input packet of the sign being updated\n * @return The lines stored in the input packet\n */\n String[] readLines(Object packet);\n\n /**\n * Generates the sign editor packet\n *\n * @param location The location of the sign for the player's world or the game world\n * @return The output packet that includes the required information to open the sign editor\n */\n Object openSignEditor(Location location);\n\n /**\n * Update sign lines to the player\n *\n * @param player The player that you aim to update the sign for\n * @param location The location of the sign in the player's world\n * @param lines The new values of the lines of the sign\n */\n void updateSignToPlayer(Player player, Location location, String[] lines);\n\n /**\n * Send a block change that sets a certain block to be a sign.\n * Legacy and latest versions of Bukkit API includes different type of sign Material\n *\n * @param player The player to send the block change to\n * @param location The location of the block\n * @param data Raw data in bytes about the block\n */\n void sendSignChangeToPlayer(Player player, Location location, byte data);\n\n /**\n * Sends a packet to the player using NMS\n *\n * @param player The player that you are going to send the packet to\n * @param packet The object of the output packet\n */\n void sendPacketToPlayer(Player player, Object packet);\n}",
"void updateCardSlots(String username, LightCardSlots cardSlots);",
"public void update(int strokes, int par) {\n strokesTotal += strokes;\n parTotal += par;\n displayRoundScore();\n }",
"private void updatePosition() {\n\t\tfor (int i = 0; i < encoders.length; i++) {\n\t\t\tdRot[i] = (encoders[i].get() - lastEncPos[i]) / this.cyclesPerRev;\n\t\t\tdPos[i] = dRot[i] * wheelDiameter * Math.PI;\n\t\t\tlastEncPos[i] = encoders[i].get();\n\t\t}\n\t\t\n\t\tdLinearPos = (dPos[0] + dPos[1]) / 2;\n\t\t\n\t\tposition[2] = Math.toRadians(gyro.getAngle()) + gyroOffset;\n\t\tposition[0] += dLinearPos * Math.sin(position[2]);\n\t\tposition[1] += dLinearPos * Math.cos(position[2]);\n\t}",
"public void setChest(Block sign, Chest chest, Player p)\n\t{\n\t\tBoutiqueSign bs = this.getBoutiqueSign(sign);\n\t\t\n\t\t\n\t\tif(bs == null)\n\t\t{\n\t\t\t// TODO: message \"Impossible de trouver le panneau en question\"\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.CHOOSESIGNBEFORE\")); //$NON-NLS-1$\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString newChestLoc = \"\"; //$NON-NLS-1$\n\t\t\tString oldChestLoc = \"\"; //$NON-NLS-1$\n\t\t\t\n\t\t\tChest bsc = bs.getChest();\n\t\t\t\n\t\t\t\n\t\t\toldChestLoc = bs.getChestString();\n\t\t\tnewChestLoc = BoutiqueSign.getLocationString(chest.getBlock().getLocation());\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//verifie que le panneau n'etait pas deja relié au coffre\t\t\t\n\t\t\tif (oldChestLoc == newChestLoc)\n\t\t\t{\n\t\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.SIGNALREADYBINDED\")); //$NON-NLS-1$\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tint distX = sign.getX() - chest.getBlock().getX();\n\t\t\tint distZ = sign.getZ() - chest.getBlock().getZ();\n\t\t\n\t\t\t\n\t\t\tint maxDist = 15;\n\t\t\tif (distX > maxDist || distZ > maxDist ) \n\t\t\t{\n\t\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.CHESTTOOFARAWAY\") + maxDist + Messages.getString(\"Sign.MAXBLOCKS\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t//DEBUG\n\t\t\t//p.sendMessage(plugin.chatPrefix + \"Enregistrement coffre\");\n\t\t\t\t\t\t\n\t\t\tbs.setChest(chest);\t\t\t\n\t\t\t\n\t\t\tupdateSignDb(bs);\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.CHESTBINDED\")); //$NON-NLS-1$\n\t\t\t\t\t\n\t\t\t//DEBUG\n\t\t\t//p.sendMessage(plugin.chatPrefix + \"panneau: \" + bs.getChestString());\n\t\t\t\n\t\t}\t\t\n\t}",
"public void updateInventory(ArrayList<Player> players) {\n inventoryArea.selectAll();\n inventoryArea.replaceSelection(\"\");\n for(Player p : players) {\n inventoryArea.append(\"\\n\" + p.toString());\n inventoryArea.setCaretPosition(inventoryArea.getDocument().getLength());\n\n }\n }",
"public void setLineVolume(int level) {\n if (level >= 0 && level <= 100) {\n int checkSum = 0x07 ^ 0x01 ^ 0x00 ^ 0x44 ^ 0x00 ^ level;\n String hexLevel = Integer.toHexString(level);\n if (hexLevel.length() == 1) {\n hexLevel = \"0\" + hexLevel;\n }\n String hexCheckSum = Integer.toHexString(checkSum);\n if (hexCheckSum.length() == 1) {\n hexCheckSum = \"0\" + hexCheckSum;\n }\n sendHexCommand(\"07 01 00 44 00 \" + hexLevel + \" \"\n + hexCheckSum, 20);\n lastVolumeChange = System.currentTimeMillis();\n }\n }",
"public void markLine(Line line, Player player) {\n // The logic preventing double marking of a side is handled\n // in the mark function of the Board type. CHECK THIS!\n //\n Side side = line.getSide();\n this.setSide(side, true);\n\n Color lineColor = player.getLineColor();\n BoardDisplay bd = controller.getDisplay().getBoardDisplay();\n bd.colorSelectedLine(line, lineColor);\n }",
"public void update() {\n\t\tif(snakeUpdateTimer.update()) {\n\t\t\tpreventMovementInOppositeDirection();\n\t\t\t\n\t\t\tsnake.removeFirst(); // \"last\" element of the snake\n\t\t\tconvertHeadToTailComponent();\n\t\t\taddNewHead();\n\t\t}\n\t}"
]
| [
"0.6263387",
"0.61512005",
"0.58599645",
"0.5839698",
"0.5805155",
"0.56824106",
"0.56309384",
"0.5587329",
"0.55746484",
"0.5542197",
"0.54919237",
"0.5457574",
"0.5398301",
"0.53399867",
"0.5339516",
"0.53352755",
"0.53331673",
"0.53265274",
"0.5322939",
"0.5317245",
"0.5298401",
"0.52801675",
"0.52603596",
"0.5246163",
"0.52404225",
"0.5237155",
"0.5224262",
"0.5213264",
"0.5206139",
"0.52053154",
"0.5201452",
"0.5194026",
"0.51908606",
"0.51867974",
"0.5181468",
"0.51792485",
"0.51788604",
"0.51660025",
"0.5165634",
"0.515412",
"0.51467806",
"0.5146742",
"0.51456064",
"0.5114008",
"0.5109702",
"0.51067966",
"0.51030964",
"0.50922465",
"0.5083303",
"0.5080306",
"0.50788784",
"0.5070901",
"0.5063506",
"0.50595284",
"0.5029143",
"0.50266516",
"0.50019616",
"0.49947163",
"0.4972828",
"0.4969018",
"0.49682847",
"0.49672398",
"0.49639624",
"0.49593693",
"0.49468428",
"0.49447045",
"0.49363515",
"0.49347422",
"0.49336132",
"0.49335724",
"0.49320832",
"0.49311537",
"0.49282554",
"0.49274442",
"0.49261412",
"0.49256814",
"0.4920519",
"0.4920294",
"0.49161294",
"0.49076614",
"0.49057755",
"0.49018148",
"0.4900023",
"0.48989415",
"0.48965845",
"0.4893655",
"0.48850247",
"0.4874172",
"0.48707092",
"0.48675233",
"0.48618543",
"0.48617905",
"0.48585597",
"0.48507988",
"0.48489302",
"0.48324704",
"0.4831073",
"0.48300022",
"0.48297173",
"0.48256263"
]
| 0.83289653 | 0 |
Send a block change that sets a certain block to be a sign. Legacy and latest versions of Bukkit API includes different type of sign Material | void sendSignChangeToPlayer(Player player, Location location, byte data); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private org.bukkit.material.Sign getSignMaterial() {\r\n if (this.getBlock() == null) return null;\r\n \r\n org.bukkit.material.Sign material = new org.bukkit.material.Sign(this.getBlock().getType());\r\n material.setData(this.getBlock().getData());\r\n return material;\r\n }",
"public void sendBlockChange ( Location loc , Material material , byte data ) {\n\t\texecute ( handle -> handle.sendBlockChange ( loc , material , data ) );\n\t}",
"private void signSetter(Block b, Player p, String[] lines) \n\t{\t\t\n\t\t//TODO: virer debug\n\t\t//p.sendMessage(\"dbg1\");\n\t\t\n\t\t\n\t\tif(b==null) \n\t\t\treturn;\n\t\t\n\t\tBoutiqueSign bs = new BoutiqueSign();\n\t\t\n\t\tbs.setOwner(p);\n\t\tbs.setLocation(b.getLocation());\n\t\tbs.setLines(lines);\n\n\t\t//TODO: virer debug\n\t\t/*\n\t\tp.sendMessage(\"dbg1 : line1 = \" + bs.getLine1());\n\t\tp.sendMessage(\"dbg1 : line2 = \" + bs.getLine2());\n\t\tp.sendMessage(\"dbg1 : line3 = \" + bs.getLine3());\n\t\tp.sendMessage(\"dbg1 : line4 = \" + bs.getLine4());\t\t\n\t\tp.sendMessage(\"dbg2 : type = \" + bs.getType());\n\t\t*/\n\t\t\n\t\tif(bs.isSignServer())\n\t\t{\n\t\t\t\n\t\t\tif (!PermissionsHandler.canSetGlobalSign(p))\n\t\t\t{\n\t\t\t\tp.sendMessage(PermissionsHandler.permissionErr);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(!bs.checkLines(p))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.SERVERSIGNADDED\")); //$NON-NLS-1$\n\t\t}\n\t\t\n\t\telse if(bs.isSignChest())\n\t\t{\n\t\t\tif (!PermissionsHandler.canSetPersonalSign(p))\n\t\t\t{\n\t\t\t\tp.sendMessage(plugin.chatPrefix + PermissionsHandler.permissionErr);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(!bs.checkLines(p))\n\t\t\t{\n\t\t\t\t//TODO: virer debug\n\t\t\t\t//p.sendMessage(\"erreur checkline\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.CHESTSIGNADDED\")); //$NON-NLS-1$\n\t\t}\t\n\t\telse if(bs.isSignWebAuction())\n\t\t{\n\t\t\tif (!PermissionsHandler.canSetWebAuctionSign(p))\n\t\t\t{\n\t\t\t\tp.sendMessage(PermissionsHandler.permissionErr);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(!bs.checkLines(p))\n\t\t\t{\n\t\t\t\t//TODO: virer debug\n\t\t\t\t//p.sendMessage(\"erreur checkline\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.WEBAUCTIONSIGNADDED\")); //$NON-NLS-1$\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tbs.setLine4(\"ok\");\t\t\t //$NON-NLS-1$\n\t\tbs.Render();\n\t\t\n\t\tthis.put(bs);\n\t\tplugin.signmanager.saveGlobalSigns();\n\t}",
"protected org.bukkit.block.Sign getSignBlock() {\r\n if (this.getBlock() == null) return null;\r\n \r\n return (org.bukkit.block.Sign) this.getBlock().getState();\r\n }",
"@EventHandler\n\tpublic void onSignHit (BlockDamageEvent event){\n\t\tdebugOut(\"BlockDamageEvent\");\n\t\t//getLogger().info(\"MEEP\");\n\t\tif(event.getBlock().getType()==Material.SIGN_POST || event.getBlock().getType()==Material.WALL_SIGN){\n\t\t\tdebugOut(\"A sign was done damage.\");\n\t\t\t//Credit: https://bukkit.org/threads/how-to-convert-block-class-to-sign-class.102313/\n\t\t\tBlockState blockState = event.getBlock().getState();\n\t\t\tSign sign = (Sign) blockState;\n\t\t\tif(isMakingShop(event.getPlayer())){\n\t\t\t\t//Do this if the player hits a shop while making one\n\t\t\t\tdebugOut(event.getPlayer()+\" is making a shop\");\n\t\t\t\tString[] playerHashInfo = PlayerMakingShop.get(event.getPlayer().getName() ).split(\",\");\n\t\t\t\tInteger shopX = event.getBlock().getX();\n\t\t\t\tInteger shopY = event.getBlock().getY();\n\t\t\t\tInteger shopZ = event.getBlock().getZ();\n\t\t\t\tInteger playerX = Integer.valueOf(playerHashInfo[0]);\n\t\t\t\tInteger playerY = Integer.valueOf(playerHashInfo[1]);\n\t\t\t\tInteger playerZ = Integer.valueOf(playerHashInfo[2]);\n\t\t\t\tString shopWorld = event.getBlock().getWorld().getName();\n\t\t\t\tString playerWorld = playerHashInfo[3];\n\t\t\t\tdebugOut(\"Shop: \"+shopX+shopY+shopZ+shopWorld);\n\t\t\t\tdebugOut(\"Play: \"+playerX+playerY+playerZ+playerWorld);\n\t\t\t\tif(shopX.intValue()==playerX.intValue() && shopY.intValue()==playerY.intValue() && shopZ.intValue() == playerZ.intValue() && shopWorld.equals(playerWorld)){\n\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" hit the shop that (s)he was creating\");\n\t\t\t\t\tItemStack equipped = event.getPlayer().getItemInHand();\n\t\t\t\t\tif(equipped.getType()!=Material.AIR && equipped.getType()!=Material.WRITTEN_BOOK){\n\t\t\t\t\t\tdebugOut(\"Begin establishing Shop at xyz (\"+shopX+\",\"+shopY+\",\"+shopZ+\") in \"+shopWorld);\n\t\t\t\t\t\tString ownerUUID = playerHashInfo[4];\n\t\t\t\t\t\tString establisherUUID = playerHashInfo[5];\n\t\t\t\t\t\tplayerSuccess(event.getPlayer(), \"Success!\");\n\t\t\t\t\t\tString[] buyLine = sign.getLine(2).split(\" \");\n\t\t\t\t\t\tFloat buy = Float.valueOf(buyLine[1]);\n\t\t\t\t\t\tFloat sell = Float.valueOf(buyLine[3]);\n\t\t\t\t\t\testablishShop(ownerUUID, establisherUUID, event.getPlayer().getName(),shopX, shopY, shopZ, event.getBlock().getWorld(), equipped, buy, sell);\n\t\t\t\t\t}else if(equipped.getType()==Material.AIR){\n\t\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" hit the shop with Air, which cannot be sold\");\n\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"cant-sell-air\") );\n\t\t\t\t\t}else if(equipped.getType()==Material.WRITTEN_BOOK) {\n\t\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" hit the shop with a written book, which cannot be sold\");\n\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"cant-sell-book\") );\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tdebugOut(event.getPlayer().getName()+\" did not hit the shop the shop (s)he was creating\");\n\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"click-wrong-shop\"));\n\t\t\t\t\tif(shopX.intValue()==playerX.intValue()){\n\t\t\t\t\t\tdebugOut(\"X matches\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerX + \" does not equal \" + shopX);\n\t\t\t\t\t}\n\t\t\t\t\tif(shopY.intValue()==playerY.intValue()){\n\t\t\t\t\t\tdebugOut(\"Y matches\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerY + \" does not equal \" + shopY);\n\t\t\t\t\t}\n\t\t\t\t\tif(shopZ.intValue() == playerZ.intValue()){\n\t\t\t\t\t\tdebugOut(\"Z matches\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerZ + \" does not equal \" + shopZ);\n\t\t\t\t\t}\n\t\t\t\t\tif(shopWorld.equals(playerWorld)){\n\t\t\t\t\t\tdebugOut(\"Worlds match\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdebugOut(playerWorld + \" does not equal \" + shopWorld);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if(sign.getLine(0).equals(getConfig().getString(\"sign-header\"))){\n\t\t\t\t//Do this if the player hit a shop, when he wasn't making one.\n\t\t\t\tInteger thisShopID = getShopID(event.getBlock().getX(), event.getBlock().getY(), event.getBlock().getZ(), event.getBlock().getWorld() );//GET FROM DATABASE\n\t\t\t\tdebugOut(event.getPlayer()+\" is not making a shop, but did click on a shop sign\");\n\t\t\t\tif(ActivePlayerShop.containsKey(event.getPlayer().getName())){\n\t\t\t\t\tInteger currentValue = ActivePlayerShop.get(event.getPlayer().getName());\n\t\t\t\t\tif(Integer.valueOf(currentValue)==Integer.valueOf(thisShopID) && Integer.valueOf(currentValue)!=0 ){\n\t\t\t\t\t\t//BUY FROM THE SHOP OR WITHDRAW\n\t\t\t\t\t\tdebugOut(\"Checking to see if the selected shop is owned\");\n\t\t\t\t\t\tString shopOwner = getShopOwner(thisShopID);\n\t\t\t\t\t\tif(shopOwner!=\"null\"){\n\t\t\t\t\t\t\tInteger currentStock = getStock(thisShopID);\n\t\t\t\t\t\t\tif(shopOwner.equals(event.getPlayer().getUniqueId().toString()) ){\n\t\t\t\t\t\t\t\tdebugOut(\"Shop is owned\");\n\t\t\t\t\t\t\t\t//Do shop owner stuff\n\t\t\t\t\t\t\t\tif(event.getPlayer().isSneaking()){\n\t\t\t\t\t\t\t\t\t//withdraw a stack\n\t\t\t\t\t\t\t\t\tdebugOut(\"withdrawing one stack -- attempt\");\n\t\t\t\t\t\t\t\t\tItemStack currentItem = getShopItem(thisShopID, true, sign.getLine(3) );\n\t\t\t\t\t\t\t\t\tInteger stackSize = currentItem.getMaxStackSize();\n\t\t\t\t\t\t\t\t\tif(Integer.valueOf(currentStock)>=stackSize){\n\t\t\t\t\t\t\t\t\t\t//Withdraw a stack\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"There are enough items in stock\");\n\t\t\t\t\t\t\t\t\t\tif(canAddItem(currentItem, event.getPlayer()) ){\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"The player can fit all of the items in inventory\");\n\t\t\t\t\t\t\t\t\t\t\tevent.getPlayer().getInventory().addItem(currentItem);\n\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-stackSize);\n\t\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"The player cannot fit all items in inventory\");\n\t\t\t\t\t\t\t\t\t\t\tif(getConfig().getString(\"buy-when-full\").matches(\"true\")){\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is true -- dropping extra items on floor\");\n\t\t\t\t\t\t\t\t\t\t\t\t//Drop extra items on floor\n\t\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-stackSize);\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\tdebugOut(\"buy-when-full is false -- cancelling trade\");\n\t\t\t\t\t\t\t\t\t\t\t\t//Do not sell\n\t\t\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"full-inventory-error\"));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t//Not enough in stock\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"There are not enough items in stock to withdraw a stack\");\n\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"not-enough-items\"));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t//withdraw one item\n\t\t\t\t\t\t\t\t\tdebugOut(\"withdrawing one item -- attempt\");\n\t\t\t\t\t\t\t\t\tif(Integer.valueOf(currentStock)>0){\n\t\t\t\t\t\t\t\t\t\t//Add one to player\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"In Stock\");\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Retrieving the item\");\n\t\t\t\t\t\t\t\t\t\tItemStack currentItem = getShopItem(thisShopID, false, sign.getLine(3) );\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Item retrieved\");\n\t\t\t\t\t\t\t\t\t\tif(canAddItem(currentItem, event.getPlayer()) ){\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player can fit item -- adding\");\n\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock by one...\");\n\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-1);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player cannot fit item\");\n\t\t\t\t\t\t\t\t\t\t\tif(getConfig().getString(\"buy-when-full\").matches(\"true\")){\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is true -- dropping extra items on floor\");\n\t\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock by one...\");\n\t\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-1);\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\tdebugOut(\"buy-when-full is false -- cancelling trade\");\n\t\t\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"full-inventory-error\"));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Transaction Completed\");\n\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Out of Stock\");\n\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"out-of-stock\"));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tdebugOut(\"Shop is not owned\");\n\t\t\t\t\t\t\t\t//Do consumer stuff\n\t\t\t\t\t\t\t\tdebugOut(\"getShopBuyPrice\");\n\t\t\t\t\t\t\t\tfloat buyPrice = getShopBuyPrice(thisShopID);\n\t\t\t\t\t\t\t\tdebugOut(\"getVaultbalance\");\n\t\t\t\t\t\t\t\tfloat customerBalance = (float) getVaultBalance(event.getPlayer().getUniqueId());\n\t\t\t\t\t\t\t\tdebugOut(\"Creating 'currentItem'\");\n\t\t\t\t\t\t\t\tItemStack currentItem;\n\t\t\t\t\t\t\t\tif(event.getPlayer().isSneaking()){\n\t\t\t\t\t\t\t\t\t//buy a stack\n\t\t\t\t\t\t\t\t\tdebugOut(\"attempting to buy a stack\");\n\t\t\t\t\t\t\t\t\tcurrentItem = getShopItem(thisShopID, true, sign.getLine(3));\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t//buy one item\n\t\t\t\t\t\t\t\t\tdebugOut(\"attempting to buy one item\");\n\t\t\t\t\t\t\t\t\tcurrentItem = getShopItem(thisShopID, false, sign.getLine(3));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif(currentStock>=currentItem.getAmount()){\n\t\t\t\t\t\t\t\t\tdebugOut(\"Item has sufficient stock\");\n\t\t\t\t\t\t\t\t\tif(customerBalance < (buyPrice*currentItem.getAmount()) ){\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Insufficient Funds -- player has: \"+customerBalance+\" | the shop needs: \"+(buyPrice*currentItem.getAmount() ));\n\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"insufficient-funds\"));\n\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player has sufficient funds: \"+customerBalance);\n\t\t\t\t\t\t\t\t\t\tUUID ownerUUID = UUID.fromString(getShopOwner(thisShopID));\n\t\t\t\t\t\t\t\t\t\tif(canAddItem(currentItem, event.getPlayer()) ){\n\t\t\t\t\t\t\t\t\t\t\t//Do transaction\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player can fit item -- adding\");\n\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock\");\n\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Changing funds...\");\n\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(ownerUUID, buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(event.getPlayer().getUniqueId(), -buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\tevent.getPlayer().sendMessage(ChatColor.GREEN + \"You have bought \"+ChatColor.YELLOW+currentItem.getAmount()+\" \"+ChatColor.GREEN+\" item(s) for \"+ChatColor.YELLOW+buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Player cannot fit item\");\n\t\t\t\t\t\t\t\t\t\t\tif(getConfig().getString(\"buy-when-full\").matches(\"true\")){\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is enabled -- continuing transaction\");\n\t\t\t\t\t\t\t\t\t\t\t\tsoftAddItem(currentItem, event.getPlayer());\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Decreasing stock\");\n\t\t\t\t\t\t\t\t\t\t\t\tsetStock(thisShopID, currentStock-currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Changing funds...\");\n\t\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(ownerUUID, buyPrice*currentItem.getAmount());\n\t\t\t\t\t\t\t\t\t\t\t\tchangeVaultBalance(event.getPlayer().getUniqueId(), -buyPrice*currentItem.getAmount()) ;\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"Notifying Player...\");\n\t\t\t\t\t\t\t\t\t\t\t\tevent.getPlayer().sendMessage(ChatColor.GREEN + \"You have bought \"+ChatColor.YELLOW+currentItem.getAmount()+\" \"+ChatColor.GREEN+\" item(s) for \"+ChatColor.YELLOW+buyPrice*currentItem.getAmount());\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}else{\n\t\t\t\t\t\t\t\t\t\t\t\tdebugOut(\"buy-when-full is not enabled -- cancelling transaction\");\n\t\t\t\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"full-inventory-error\"));\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\tdebugOut(\"Not enough in stock\");\n\t\t\t\t\t\t\t\t\tplayerError(event.getPlayer(), getConfig().getString(\"not-enough-items\"));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tdebugOut(\"This shop does not exist; is it finished being created?\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdebugOut(\"A shop was activated, but it was not this one; changing to this shop\");\n\t\t\t\t\t\tActivePlayerShop.put(event.getPlayer().getName(), thisShopID);\n\t\t\t\t\t\tshowShopInfo(thisShopID, event.getPlayer());\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tdebugOut(\"No shop activated, activating it\");\n\t\t\t\t\tActivePlayerShop.put(event.getPlayer().getName(), thisShopID);\n\t\t\t\t\tshowShopInfo(thisShopID, event.getPlayer());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void setChest(Block sign, Chest chest, Player p)\n\t{\n\t\tBoutiqueSign bs = this.getBoutiqueSign(sign);\n\t\t\n\t\t\n\t\tif(bs == null)\n\t\t{\n\t\t\t// TODO: message \"Impossible de trouver le panneau en question\"\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.CHOOSESIGNBEFORE\")); //$NON-NLS-1$\n\t\t\treturn;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString newChestLoc = \"\"; //$NON-NLS-1$\n\t\t\tString oldChestLoc = \"\"; //$NON-NLS-1$\n\t\t\t\n\t\t\tChest bsc = bs.getChest();\n\t\t\t\n\t\t\t\n\t\t\toldChestLoc = bs.getChestString();\n\t\t\tnewChestLoc = BoutiqueSign.getLocationString(chest.getBlock().getLocation());\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//verifie que le panneau n'etait pas deja relié au coffre\t\t\t\n\t\t\tif (oldChestLoc == newChestLoc)\n\t\t\t{\n\t\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.SIGNALREADYBINDED\")); //$NON-NLS-1$\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tint distX = sign.getX() - chest.getBlock().getX();\n\t\t\tint distZ = sign.getZ() - chest.getBlock().getZ();\n\t\t\n\t\t\t\n\t\t\tint maxDist = 15;\n\t\t\tif (distX > maxDist || distZ > maxDist ) \n\t\t\t{\n\t\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.CHESTTOOFARAWAY\") + maxDist + Messages.getString(\"Sign.MAXBLOCKS\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t//DEBUG\n\t\t\t//p.sendMessage(plugin.chatPrefix + \"Enregistrement coffre\");\n\t\t\t\t\t\t\n\t\t\tbs.setChest(chest);\t\t\t\n\t\t\t\n\t\t\tupdateSignDb(bs);\n\t\t\t\n\t\t\tp.sendMessage(plugin.chatPrefix + Messages.getString(\"Sign.CHESTBINDED\")); //$NON-NLS-1$\n\t\t\t\t\t\n\t\t\t//DEBUG\n\t\t\t//p.sendMessage(plugin.chatPrefix + \"panneau: \" + bs.getChestString());\n\t\t\t\n\t\t}\t\t\n\t}",
"public void sendBlockChange ( Location loc , BlockData block ) {\n\t\texecute ( handle -> handle.sendBlockChange ( loc , block ) );\n\t}",
"public void onBlockRedstoneChange(BlockRedstoneEvent event)\r\n {\n Block checkBlock = event.getBlock();\r\n\r\n // Check if it's a sign\r\n if ((checkBlock.getType() == Material.SIGN_POST) || (checkBlock.getType() == Material.WALL_SIGN))\r\n {\r\n \t plugin.shot = 0;\r\n if (event.getNewCurrent() > 0)\r\n {\r\n \t Sign s = (Sign)event.getBlock().getState();\r\n if ((\"<FIREWORK>\").equals(s.getLine(0))){ \r\n \tevent.getBlock();\r\n \tTNTPrimed tnt = event.getBlock().getLocation().getWorld().spawn(\r\n \tevent.getBlock().getLocation(), TNTPrimed.class);\r\n \ttnt.setVelocity(new Vector((plugin.rand.nextFloat() - 0.5f) / plugin.angle, plugin.speed, (plugin.rand.nextFloat() - 0.5f)\r\n \t/ plugin.angle));\r\n \ttnt.setFuseTicks(plugin.time);\r\n \tplugin.shot=1;\r\n }\r\n else{\r\n }\r\n }\r\n else if (event.getNewCurrent() == 0)\r\n {\r\n// \t System.out.println(\"SIGN NOT POWERED\"); \r\n }\r\n }}",
"public void updateSign(boolean activated) {\n if (!ChunkLocation.fromLocation(activationBlock).isChunkLoaded()) return;\n\n try {\n BlockState state = activationBlock.getBlock().getState();\n if (state == null || !(state instanceof Sign)) return;\n\n final Sign sign = (Sign) state;\n\n String line;\n if (activated) {\n String signColor;\n if (isDisabled()) signColor = \"8\";\n else signColor = RCPrefs.getSignColor();\n line = (char) 167 + signColor + type;\n } else {\n line = type;\n }\n\n if (!line.equals(sign.getLine(0))) {\n sign.setLine(0, line);\n\n RedstoneChips.inst().getServer().getScheduler().scheduleSyncDelayedTask(RedstoneChips.inst(), () -> sign.update());\n }\n } catch (NullPointerException ne) {\n }\n }",
"@Override\n protected void setBlock(Block block) {\n super.setBlock(block);\n updateAffectedBlocks();\n }",
"@EventHandler(ignoreCancelled = true)\n\tpublic void onSignChange(SignChangeEvent event) {\n\n\t\t// Automatically flag players with bypass as posting non-empty signs to skip empty checks\n\t\tboolean empty = !event.getPlayer().hasPermission(\"sblock.sign.unlogged\");\n\n\t\tfor (int i = 0; i < event.getLines().length; i++) {\n\t\t\tevent.setLine(i, ChatColor.translateAlternateColorCodes('&', event.getLine(i)));\n\t\t\tif (empty && !TextUtils.appearsEmpty(event.getLine(i))) {\n\t\t\t\tempty = false;\n\t\t\t}\n\t\t}\n\n\t\tif (empty || event.getPlayer().hasPermission(\"sblock.sign.unlogged\")) {\n\t\t\treturn;\n\t\t}\n\n\t\tBlock block = event.getBlock();\n\n\t\tStringBuilder msg = new StringBuilder().append(ChatColor.GRAY)\n\t\t\t\t.append(block.getWorld().getName()).append(' ').append(block.getX()).append(\"x, \")\n\t\t\t\t.append(block.getY()).append(\"y, \").append(block.getZ()).append(\"z\\n\");\n\t\tfor (String line : event.getLines()) {\n\t\t\tif (!TextUtils.appearsEmpty(line)) {\n\t\t\t\tmsg.append(line).append(ChatColor.GRAY).append('\\n');\n\t\t\t}\n\t\t}\n\t\tmsg.delete(msg.length() - 3, msg.length());\n\n\t\tif (chat.testForMute(event.getPlayer(), msg.toString(), \"#sign\")) {\n\t\t\tevent.setCancelled(true);\n\t\t}\n\t}",
"@EventHandler\n void onPlayerInteract(PlayerInteractEvent e){\n Player player = e.getPlayer();\n Block rawblock = e.getClickedBlock();\n Material block = null;\n if(rawblock != null){ block = rawblock.getType();}\n if(block != null && block == Material.DARK_OAK_WALL_SIGN){\n Sign sign = (Sign) e.getClickedBlock().getState();\n if(sign.getLine(0).equalsIgnoreCase(ChatColor.WHITE + \"[\" + ChatColor.GOLD + \"RAID\" + ChatColor.WHITE + \"]\"))\n {\n player.sendMessage(\"gg\");\n }\n }\n }",
"public static void registerBlockSmelting(){\n\t\t\n\t\tGameRegistry.addSmelting(blockInfo.myWood_ID, new ItemStack(items.compressedAir, 2), 0.1f);\n\t\t\n\t}",
"private void setBlock(Block block) {\r\n this.block = block;\r\n }",
"public void setBlock(Block newBlock) {\n\t\tthis.block = newBlock;\n\t}",
"void updateBlock(Block block) ;",
"public void setBlock(boolean block) {\n this.block = block;\n }",
"@EventHandler\n\tvoid signClicker(final PlayerInteractEvent event) {\n\t\tMarioKart.powerupManager.calculate(event.getPlayer(), event);\n\t\tif(MarioKart.fullServer){\n\t\t\treturn;\n\t\t}\n\t\tif (event.getAction() != Action.RIGHT_CLICK_BLOCK) {\n\t\t\treturn;\n\t\t}\n\t\tif (!(event.getClickedBlock().getState() instanceof Sign)) {\n\t\t\treturn;\n\t\t}\n\t\tfinal Sign sign = (Sign) event.getClickedBlock().getState();\n\t\tString[] lines = sign.getLines();\n\t\tMarioKart.plugin.getServer().getScheduler().runTaskAsynchronously(MarioKart.plugin, new BukkitRunnable(){\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif(plugin.signManager.isQueueSign(sign)){\n\t\t\t\t\tString trackName = ChatColor.stripColor(sign.getLine(0));\n\t\t\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] {\n\t\t\t\t\t\t\"join\", trackName, \"auto\" },\n\t\t\t\t\t\tevent.getPlayer());\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}});\n\t\tif (!ChatColor.stripColor(lines[0]).equalsIgnoreCase(\"[MarioKart]\")) {\n\t\t\treturn;\n\t\t}\n\t\tString cmd = ChatColor.stripColor(lines[1]);\n\t\tif (cmd.equalsIgnoreCase(\"list\")) {\n\t\t\tint page = 1;\n\t\t\ttry {\n\t\t\t\tpage = Integer.parseInt(ChatColor.stripColor(lines[2]));\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t}\n\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] { \"list\",\n\t\t\t\t\t\"\" + page }, event.getPlayer());\n\t\t} else if (cmd.equalsIgnoreCase(\"leave\")\n\t\t\t\t|| cmd.equalsIgnoreCase(\"quit\") || cmd.equalsIgnoreCase(\"exit\")) {\n\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] { \"leave\" },\n\t\t\t\t\tevent.getPlayer());\n\t\t} else if (cmd.equalsIgnoreCase(\"join\")) {\n\t\t\tString mode = ChatColor.stripColor(lines[3]);\n\t\t\tif (mode.length() > 0) {\n\t\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] {\n\t\t\t\t\t\t\"join\", ChatColor.stripColor(lines[2]).toLowerCase(),\n\t\t\t\t\t\tmode }, event.getPlayer());\n\t\t\t} else {\n\t\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] {\n\t\t\t\t\t\t\"join\", ChatColor.stripColor(lines[2]).toLowerCase() },\n\t\t\t\t\t\tevent.getPlayer());\n\t\t\t}\n\t\t} else if (cmd.equalsIgnoreCase(\"shop\")) {\n\t\t\tMarioKart.plugin.raceCommandExecutor.urace(event.getPlayer(), new String[] { \"shop\" },\n\t\t\t\t\tevent.getPlayer());\n\t\t}\n\t\treturn;\n\t}",
"@Test\n\tpublic void validateSignatureBlock()\n\t{\n\t\tDBSet databaseSet = DBSet.createEmptyDatabaseSet();\n\t\t\t\t\n\t\t//PROCESS GENESISBLOCK\n\t\tGenesisBlock genesisBlock = new GenesisBlock();\n\t\tgenesisBlock.process(databaseSet);\n\t\t\t\t\n\t\t//CREATE KNOWN ACCOUNT\n\t\tbyte[] seed = Crypto.getInstance().digest(\"test\".getBytes());\n\t\tbyte[] privateKey = Crypto.getInstance().createKeyPair(seed).getA();\n\t\tPrivateKeyAccount generator = new PrivateKeyAccount(privateKey);\n\t\t\t\t\t\t\n\t\t//PROCESS GENESIS TRANSACTION TO MAKE SURE GENERATOR HAS FUNDS\n\t\tTransaction transaction = new GenesisTransaction(generator, BigDecimal.valueOf(1000).setScale(8), NTP.getTime());\n\t\ttransaction.process(databaseSet);\n\t\t\t\t\n\t\t//GENERATE NEXT BLOCK\n\t\tBlockGenerator blockGenerator = new BlockGenerator();\n\t\tBlock newBlock = blockGenerator.generateNextBlock(databaseSet, generator, genesisBlock);\n\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\tbyte[] transactionsSignature = Crypto.getInstance().sign(generator, newBlock.getGeneratorSignature());\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t//CHECK IF SIGNATURE VALID\n\t\tassertEquals(true, newBlock.isSignatureValid());\n\t\t\n\t\t//INVALID TRANSACTION SIGNATURE\n\t\ttransactionsSignature = new byte[64];\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t//CHECK IF SIGNATURE INVALID\n\t\tassertEquals(false, newBlock.isSignatureValid());\n\t\t\n\t\t//INVALID GENERATOR SIGNATURE\n\t\tnewBlock = BlockFactory.getInstance().create(newBlock.getVersion(), newBlock.getReference(), newBlock.getTimestamp(), newBlock.getGeneratingBalance(), generator, new byte[32]);\n\t\ttransactionsSignature = Crypto.getInstance().sign(generator, newBlock.getGeneratorSignature());\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t///CHECK IF SIGNATURE INVALID\n\t\tassertEquals(false, newBlock.isSignatureValid());\n\t\t\n\t\t//VALID TRANSACTION SIGNATURE\n\t\tnewBlock = blockGenerator.generateNextBlock(databaseSet, generator, genesisBlock);\t\n\t\t\n\t\t//ADD TRANSACTION\n\t\tAccount recipient = new Account(\"XUi2oga2pnGNcZ9es6pBqxydtRZKWdkL2g\");\n\t\tlong timestamp = newBlock.getTimestamp();\n\t\tbyte[] signature = PaymentTransaction.generateSignature(databaseSet, generator, recipient, BigDecimal.valueOf(100).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp);\n\t\tTransaction payment = new PaymentTransaction(generator, recipient, BigDecimal.valueOf(100).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp, generator.getLastReference(databaseSet), signature);\n\t\tnewBlock.addTransaction(payment);\n\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\ttransactionsSignature = blockGenerator.calculateTransactionsSignature(newBlock, generator);\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t//CHECK VALID TRANSACTION SIGNATURE\n\t\tassertEquals(true, newBlock.isSignatureValid());\t\n\t\t\n\t\t//INVALID TRANSACTION SIGNATURE\n\t\tnewBlock = blockGenerator.generateNextBlock(databaseSet, generator, genesisBlock);\t\n\t\t\n\t\t//ADD TRANSACTION\n\t\tpayment = new PaymentTransaction(generator, recipient, BigDecimal.valueOf(200).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp, generator.getLastReference(databaseSet), signature);\n\t\tnewBlock.addTransaction(payment);\n\t\t\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\ttransactionsSignature = blockGenerator.calculateTransactionsSignature(newBlock, generator);\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t//CHECK INVALID TRANSACTION SIGNATURE\n\t\tassertEquals(false, newBlock.isSignatureValid());\t\n\t}",
"protected void refresh() {\r\n // Toggle attached direction.\r\n org.bukkit.material.Sign material = new org.bukkit.material.Sign(this.getBlock().getType());\r\n material.setData(this.getSignMaterial().getData());\r\n \r\n material.setFacingDirection(material.getAttachedFace());\r\n this.getBlock().setData(material.getData());\r\n \r\n material.setFacingDirection(material.getAttachedFace());\r\n this.getBlock().setData(material.getData());\r\n }",
"public interface SignReflection {\n /**\n * Reads an input packet of sign being updated\n *\n * @param packet The input packet of the sign being updated\n * @return The lines stored in the input packet\n */\n String[] readLines(Object packet);\n\n /**\n * Generates the sign editor packet\n *\n * @param location The location of the sign for the player's world or the game world\n * @return The output packet that includes the required information to open the sign editor\n */\n Object openSignEditor(Location location);\n\n /**\n * Update sign lines to the player\n *\n * @param player The player that you aim to update the sign for\n * @param location The location of the sign in the player's world\n * @param lines The new values of the lines of the sign\n */\n void updateSignToPlayer(Player player, Location location, String[] lines);\n\n /**\n * Send a block change that sets a certain block to be a sign.\n * Legacy and latest versions of Bukkit API includes different type of sign Material\n *\n * @param player The player to send the block change to\n * @param location The location of the block\n * @param data Raw data in bytes about the block\n */\n void sendSignChangeToPlayer(Player player, Location location, byte data);\n\n /**\n * Sends a packet to the player using NMS\n *\n * @param player The player that you are going to send the packet to\n * @param packet The object of the output packet\n */\n void sendPacketToPlayer(Player player, Object packet);\n}",
"@EventHandler(priority = EventPriority.MONITOR)\r\n\tpublic void onSignChange(SignChangeEvent event) {\r\n\t\t\r\n\t\tfinal Player creator = (Player)event.getPlayer();\r\n\t\tfinal InputPlayer iplayer = bSignModule.GUI_API.getPlayer(creator);\r\n\t\tfinal Location signLocation = event.getBlock().getLocation();\r\n\t\t\r\n\t\tSign newSign = null;\r\n\t\t\r\n\t\tif (event.getLine(0).equalsIgnoreCase(\"--weblink--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.web\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new WebSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the web link to link to\"));\r\n\t\t}\r\n\t\telse if (event.getLine(0).equalsIgnoreCase(\"--command--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.command\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new CommandSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the command for this sign to execute\"));\r\n\t\t}\r\n\t\telse if (event.getLine(0).equalsIgnoreCase(\"--info--\")) {\r\n\t\t\t\r\n\t\t\t// see if they have permissions to use signs\r\n\t\t\tif (!bSignModule.hasPermission(creator, \"bfundamental.bsign.create.info\"))\r\n\t\t\t\treturn;\r\n\t\t\t\r\n\t\t\tnewSign = new InfoSign(creator, signLocation);\r\n\t\t\tiplayer.openGui(new SignInputGui(newSign, \"Enter the info message for this sign\"));\r\n\t\t}\r\n\t\t\r\n\t\tbSignModule.SIGNS.add(newSign);\r\n\t\t\r\n\t}",
"public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int meta, float p_149727_7_, float p_149727_8_, float p_149727_9_)\n\t {\n//\t if (this.blockMaterial == Material.iron)\n//\t {\n//\t return false; //Allow items to interact with the door\n//\t }\n//\t else\n//\t {\t \t\n\t int i1 = this.func_150012_g(world, x, y, z);\n\t int j1 = i1 & 7;\n\t j1 ^= 4;\n\t int i = i1 & 3;\n//\t System.out.print(\" Direction :\");\n\t Block b=null;\n\t int x2=x;\n\t int y2=y;\n\t int z2=z;\n\t switch(i){\n\t case 0:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[2];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[2];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[3];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[3];\n\t \t}\n//\t \tSystem.out.print(\"WEST \"+Integer.toString(i, 2)+\" : \"+Integer.toString(4, 2));\n\t \tbreak;\n\t case 1:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[5];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[5];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[4];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[4];\n\t \t}\n//\t \tSystem.out.print(\"NORTH \"+Integer.toString(i, 2)+\" : \"+Integer.toString(2, 2));\n\t \tbreak;\n\t case 2:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[3];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[3];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[2];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[2];\n\t \t}\n\t \t\n//\t \tSystem.out.print(\"EAST \"+Integer.toString(i, 2)+\" : \"+Integer.toString(5, 2));\n\t \tbreak;\n\t case 3:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[4];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[4];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[5];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[5];\n\t \t}\n//\t \tSystem.out.print(\"SOUTH \"+Integer.toString(i, 2)+\" : \"+Integer.toString(3, 2));\n\t \tbreak;\n\t }\n\t b=world.getBlock(x2, y2, z2);\n//\t System.out.print(\" : \"+b+\" : \");\n\t\t\t\t/*\nDirection :SOUTH 11 : 100 Open :Open Y :1 Side :Right\nDirection :NORTH 01 : 010 Open :Open Y :1 Side :Left\nDirection :EAST 10 : 101 Open :Open Y :1 Side :Left\nDirection :WEST 00 : 100 Open :Open Y :1 Side :Left\n\t\t\t\t */\n//\t System.out.print(\" Open :\"+(((j1 & 4) >> 2)==0?\"Closed\":\"Open\"));\n//\t System.out.print(\" Y :\"+Integer.toBinaryString( (i1 & 8) >>3 ));\n//\t System.out.print(\" Side :\"+(((i1 & 16) >> 4)==0?\"Right\":\"Left\"));\n\t \n//\t System.out.println();\n\t \n\n\t if ((i1 & 8) == 0)\n\t {\n\t world.setBlockMetadataWithNotify(x, y, z, j1, 2);\n\t world.markBlockRangeForRenderUpdate(x, y, z, x, y, z);\n\t if( b!=null && b==this){\n\t \tworld.setBlockMetadataWithNotify(x2, y2, z2, j1, 2);\n\t \t world.markBlockRangeForRenderUpdate(x2, y2, z2, x2, y2, z2);\n\t }\n\t }\n\t else\n\t {\n\t world.setBlockMetadataWithNotify(x, y - 1, z, j1, 2);\n\t world.markBlockRangeForRenderUpdate(x, y - 1, z, x, y, z);\n\t if( b!=null && b==this){\n\t \tworld.setBlockMetadataWithNotify(x2, y2-1, z2, j1, 2);\n\t \t world.markBlockRangeForRenderUpdate(x2, y2-1, z2, x2, y2, z2);\n\t }\n\t }\n\n\t world.playAuxSFXAtEntity(player, 1003, x, y, z, 0);\n\t return true;\n//\t }\n\t }",
"@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)\n public void onPlayerQuickLockChest(PlayerInteractEvent event) {\n // Check quick lock enabled\n if (Config.getQuickProtectAction() == (byte) 0) return;\n // Get player and action info\n Action action = event.getAction();\n Player player = event.getPlayer();\n // Check action correctness\n if (action == Action.RIGHT_CLICK_BLOCK && Tag.SIGNS.isTagged(player.getInventory().getItemInMainHand().getType())) {\n if (player.getGameMode().equals(GameMode.SPECTATOR)) {\n return;\n }\n // Check quick lock action correctness\n if (!((event.getPlayer().isSneaking() && Config.getQuickProtectAction() == (byte) 2) ||\n (!event.getPlayer().isSneaking() && Config.getQuickProtectAction() == (byte) 1))) return;\n // Check permission \n if (!player.hasPermission(\"lockettepro.lock\")) return;\n // Get target block to lock\n BlockFace blockface = event.getBlockFace();\n if (blockface == BlockFace.NORTH || blockface == BlockFace.WEST || blockface == BlockFace.EAST || blockface == BlockFace.SOUTH) {\n Block block = event.getClickedBlock();\n if (block == null) return;\n // Check permission with external plugin\n if (Dependency.isProtectedFrom(block, player)) return; // blockwise\n if (Dependency.isProtectedFrom(block.getRelative(event.getBlockFace()), player)) return; // signwise\n // Check whether locking location is obstructed\n Block signLoc = block.getRelative(blockface);\n if (!signLoc.isEmpty()) return;\n // Check whether this block is lockable\n if (LocketteProAPI.isLockable(block)) {\n // Is this block already locked?\n boolean locked = LocketteProAPI.isLocked(block);\n // Cancel event here\n event.setCancelled(true);\n // Check lock info info\n if (!locked && !LocketteProAPI.isUpDownLockedDoor(block)) {\n // Get type\n Material signType = player.getInventory().getItemInMainHand().getType();\n // Not locked, not a locked door nearby\n Utils.removeASign(player);\n // Send message\n Utils.sendMessages(player, Config.getLang(\"locked-quick\"));\n // Put sign on\n Block newsign = Utils.putSignOn(block, blockface, Config.getDefaultPrivateString(), player.getName(), signType);\n Utils.resetCache(block);\n // Cleanups - UUID\n if (Config.isUuidEnabled()) {\n Utils.updateLineByPlayer(newsign, 1, player);\n }\n // Cleanups - Expiracy\n if (Config.isLockExpire()) {\n // set created to now\n Utils.updateLineWithTime(newsign, player.hasPermission(\"lockettepro.noexpire\")); // set created to -1 (no expire) or now\n }\n Dependency.logPlacement(player, newsign);\n } else if (!locked && LocketteProAPI.isOwnerUpDownLockedDoor(block, player)) {\n // Not locked, (is locked door nearby), is owner of locked door nearby\n Utils.removeASign(player);\n Utils.sendMessages(player, Config.getLang(\"additional-sign-added-quick\"));\n Utils.putSignOn(block, blockface, Config.getDefaultAdditionalString(), \"\", player.getInventory().getItemInMainHand().getType());\n Dependency.logPlacement(player, block.getRelative(blockface));\n } else if (LocketteProAPI.isOwner(block, player)) {\n // Locked, (not locked door nearby), is owner of locked block\n Utils.removeASign(player);\n Utils.putSignOn(block, blockface, Config.getDefaultAdditionalString(), \"\", player.getInventory().getItemInMainHand().getType());\n Utils.sendMessages(player, Config.getLang(\"additional-sign-added-quick\"));\n Dependency.logPlacement(player, block.getRelative(blockface));\n } else {\n // Cannot lock this block\n Utils.sendMessages(player, Config.getLang(\"cannot-lock-quick\"));\n }\n }\n }\n }\n }",
"private boolean checkSign(Block block, BlockFace face) {\n for(int i = 1; true; i++) {\n Block relative = block.getRelative(face, i);\n if(!plugin.allowedBlocks.contains(relative.getType()) || (block instanceof Stairs && ((Stairs)relative.getState().getData()).getDescendingDirection() != ((Stairs)block.getState().getData()).getDescendingDirection())) {\n if(relative.getType() == Material.SIGN || relative.getType() == Material.WALL_SIGN || relative.getType() == Material.SIGN_POST)\n return true;\n else\n return false;\n }\n }\n }",
"public static void blockMove(Player player) {\n Location location1 = (Location) plugin.getConfig().get(\"region1\");\n Location location2 = (Location) plugin.getConfig().get(\"region2\");\n\n int y = (location1.getBlockY() < location2.getBlockY() ? location2.getBlockY() : location1.getBlockY());\n\n for (Location location : blockPlace.redblockloc) {\n int x = location.getBlockX();\n int z = location.getBlockZ();\n new Location(player.getWorld(), x, y + 1, z).getBlock().setType(location.getBlock().getType());\n player.sendMessage(String.valueOf(location.getBlock().getType()));\n if(location.getBlock().getType()==Material.AIR) {\n blockPlace.redblock.remove(location.getBlock().getType());\n }\n if(location.getBlock().getType()==Material.WATER) {\n blockPlace.redblock.remove(location.getBlock().getType());\n }\n if(location.getBlock().getType()== Material.IRON_BLOCK) {\n blockPlace.redblock.add(location.getBlock());\n }\n location.getBlock().setType(Material.AIR);\n }\n\n for (Location location : blockPlace.blueblockloc) {\n int xb = location.getBlockX();\n int zb = location.getBlockZ();\n new Location(player.getWorld(), xb, y + 1, zb).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n if(location.getBlock().getType()==Material.AIR) {\n blockPlace.blueblock.remove(location.getBlock().getType());\n }\n }\n\n for (Location location : blockPlace.greenblockloc) {\n int xg = location.getBlockX();\n int zg = location.getBlockZ();\n new Location(player.getWorld(), xg, y + 1, zg).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n }\n for (Location location : blockPlace.yellowblockloc) {\n int xy = location.getBlockX();\n int zy = location.getBlockZ();\n new Location(player.getWorld(), xy, y + 1, zy).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n }\n }",
"@Command(command=\"thisisimpossibletowriteonasign\", permission=\"rs.sign.shop\")\n public static void shop(SignChangeEvent event) {\n Inventory chest = ChestFinder.findChest(event.getBlock());\n Block chestBlock = ChestFinder.findChestBlock(event.getBlock());\n \n if(chest == null) {\n event.getPlayer().sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Sign_Shop_NoChest);\n event.getBlock().breakNaturally();\n return;\n }\n \n //Get all lines and try to parse the amount\n String[] lines = event.getLines();\n Integer amount;\n \n try {\n amount = Integer.parseInt(lines[1]);\n } catch(NumberFormatException e) {\n event.getPlayer().sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Sign_Shop_InvalidAmount);\n event.getBlock().breakNaturally();\n return;\n }\n \n //Parse the third line (<sell>:<buy>)\n Matcher matcher = pattern.matcher(lines[2]);\n Float buy = 0.0F, sell = 0.0F;\n if(matcher.find()) {\n try {\n sell = Float.parseFloat(matcher.group(1));\n buy = Float.parseFloat(matcher.group(2));\n } catch(NumberFormatException e) {\n event.getPlayer().sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Sign_Shop_InvalidBuySell);\n event.getBlock().breakNaturally();\n return;\n }\n } else {\n event.getPlayer().sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Sign_Shop_NoValidBuySellLine);\n event.getBlock().breakNaturally();\n return;\n }\n \n //Check if Chest has items in it\n Boolean hasItem = false;\n ListIterator<ItemStack> itemStackListIterator = chest.iterator();\n \n while(itemStackListIterator.hasNext()) {\n ItemStack itemStack = itemStackListIterator.next();\n if(itemStack == null) continue;\n hasItem = true;\n break;\n }\n \n if(!hasItem) {\n event.getPlayer().sendMessage(ConfigManager.main.Chat_prefix + ConfigManager.language.Sign_Shop_ChestIsEmpty);\n event.getBlock().breakNaturally();\n return;\n }\n \n //Store the Chest\n com.geNAZt.RegionShop.Database.Model.Chest.store(event.getPlayer(), event.getBlock(), chestBlock, event.getPlayer().getWorld());\n com.geNAZt.RegionShop.Database.Table.Chest chest1 = com.geNAZt.RegionShop.Database.Model.Chest.get(chestBlock, event.getPlayer().getWorld(), false);\n \n //Store the Items\n itemStackListIterator = chest.iterator();\n Integer firstID = null;\n Byte firstData = null;\n Integer itemAmount = 0;\n ItemStack firstItemStack = null;\n while(itemStackListIterator.hasNext()) {\n ItemStack itemStack = itemStackListIterator.next();\n \n if(itemStack == null) continue;\n \n if(firstID == null) {\n firstID = itemStack.getTypeId();\n firstData = itemStack.getData().getData();\n firstItemStack = itemStack;\n \n if(Add.add(itemStack, event.getPlayer(), chest1, sell, buy, amount) == -1) {\n event.getBlock().breakNaturally();\n return;\n }\n \n itemAmount += itemStack.getAmount();\n \n continue;\n }\n \n if(itemStack.getTypeId() == firstID && itemStack.getData().getData() == firstData) {\n itemAmount += itemStack.getAmount();\n }\n }\n \n Items item = chest1.getItemStorage().getItems().iterator().next();\n item.setCurrentAmount(itemAmount);\n Database.getServer().update(item);\n \n item.getItemStorage().setItemAmount(itemAmount);\n Database.getServer().update(item.getItemStorage());\n \n //Create an itemdrop over the chest\n ItemStack itemStack = firstItemStack.clone();\n itemStack.setAmount(1);\n org.bukkit.entity.Item droppedItem = event.getPlayer().getWorld().dropItem(new Location(event.getPlayer().getWorld(), (double) chest1.getChestX() + 0.5, (double)chest1.getChestY() + 1.2, (double)chest1.getChestZ() + 0.5), itemStack);\n droppedItem.setVelocity(new Vector(0, 0.1, 0));\n NMS.safeGuard(droppedItem);\n \n //Change the Sign\n //Get the nice name\n String itemName = ItemName.getDataName(firstItemStack) + firstItemStack.getType().toString();\n if (firstItemStack.getItemMeta().hasDisplayName()) {\n itemName = \"(\" + firstItemStack.getItemMeta().getDisplayName() + \")\";\n }\n \n for(Integer line = 0; line < 4; line++) {\n event.setLine(line, ConfigManager.language.Sign_Shop_SignText.get(line).\n replace(\"%player\", event.getPlayer().getName()).\n replace(\"%itemname\", ItemName.nicer(itemName)).\n replace(\"%amount\", amount.toString()).\n replace(\"%sell\", sell.toString()).\n replace(\"%buy\", buy.toString()));\n }\n }",
"public void onBlockClicked(World world, int x, int y, int z, EntityPlayer player) {}",
"private BlockFace setAttachedFace() {\r\n Block check = null;\r\n \r\n Block sign = this.getBlock();\r\n \r\n org.bukkit.material.Sign material = this.getSignMaterial();\r\n \r\n BlockFace attachedTo = null; \r\n switch (material.getFacing().getOppositeFace()) {\r\n case NORTH:\r\n case EAST:\r\n case SOUTH:\r\n case WEST:\r\n check = sign.getRelative(material.getFacing().getOppositeFace());\r\n if (!check.getType().equals(Material.CHEST)) return null;\r\n if (Lock.getLock(check) != null) return null;\r\n attachedTo = material.getFacing().getOppositeFace();\r\n break;\r\n case NORTH_EAST:\r\n check = sign.getRelative(BlockFace.NORTH);\r\n if (check.getType().equals(Material.CHEST) \r\n && Lock.getLock(check) == null) {\r\n attachedTo = BlockFace.NORTH;\r\n break;\r\n }\r\n check = sign.getRelative(BlockFace.EAST);\r\n if (!check.getType().equals(Material.CHEST)) return null; \r\n if (Lock.getLock(check) != null) return null;\r\n attachedTo = BlockFace.EAST;\r\n break;\r\n case SOUTH_EAST:\r\n check = sign.getRelative(BlockFace.SOUTH);\r\n if (check.getType().equals(Material.CHEST) \r\n && Lock.getLock(check) == null) {\r\n attachedTo = BlockFace.SOUTH;\r\n break;\r\n }\r\n check = sign.getRelative(BlockFace.EAST);\r\n if (!check.getType().equals(Material.CHEST)) return null; \r\n if (Lock.getLock(check) != null) return null;\r\n attachedTo = BlockFace.EAST;\r\n break;\r\n case SOUTH_WEST:\r\n check = sign.getRelative(BlockFace.SOUTH);\r\n if (check.getType().equals(Material.CHEST) \r\n && Lock.getLock(check) == null) {\r\n attachedTo = BlockFace.SOUTH;\r\n break;\r\n }\r\n check = sign.getRelative(BlockFace.WEST);\r\n if (!check.getType().equals(Material.CHEST)) return null; \r\n if (Lock.getLock(check) != null) return null;\r\n attachedTo = BlockFace.WEST;\r\n break;\r\n case NORTH_WEST:\r\n check = sign.getRelative(BlockFace.NORTH);\r\n if (check.getType().equals(Material.CHEST) \r\n && Lock.getLock(check) == null) {\r\n attachedTo = BlockFace.NORTH;\r\n break;\r\n }\r\n check = sign.getRelative(BlockFace.WEST);\r\n if (!check.getType().equals(Material.CHEST)) return null; \r\n if (Lock.getLock(check) != null) return null;\r\n attachedTo = BlockFace.WEST;\r\n break;\r\n }\r\n \r\n return this.setAttachedFace(attachedTo);\r\n }",
"@EventHandler(priority = EventPriority.LOW)\r\n\tpublic void onBlockBreak(BlockBreakEvent event) {\r\n\r\n\t\tif (bSignModule.SIGNS == null)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tBlock block = event.getBlock();\r\n\t\t\r\n\t\t// if its not a sign, we dont care.\r\n\t\tif (!(block.getType() == Material.SIGN || block.getType() == Material.WALL_SIGN || block.getType() == Material.SIGN_POST))\r\n\t\t\treturn;\r\n\t\t\r\n\t\t// find the sign at the location\r\n\t\tSign contextSign = null;\r\n\t\tfor (Sign sign : bSignModule.SIGNS) {\r\n\t\t\t\r\n\t\t\tif (sign == null)\r\n\t\t\t\tcontinue;\r\n\t\t\t\r\n\t\t\tif (sign.getLocation().equals(block.getLocation())) {\r\n\t\t\t\tcontextSign = sign;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// not a bsign so carry on\r\n\t\tif (contextSign == null)\r\n\t\t\treturn;\r\n\t\t\r\n\t\tString location = contextSign.getLocation().getX() + \",\" + contextSign.getLocation().getY() + \",\" + contextSign.getLocation().getZ() + \",\" + contextSign.getLocation().getWorld().getName();\r\n\t\t\r\n\t\tString addSign = \"DELETE FROM \" + bSignModule.DBPREFIX + \"bSign \" +\r\n\t\t\t\t\"WHERE Location = '\" +\r\n\t\t\t\tlocation + \r\n\t\t\t\t\"'\";\r\n\t\tbSignModule.DATABASE.query(addSign);\r\n\t\t\r\n\t\tbSignModule.SIGNS.remove(contextSign);\r\n\t\tbSignModule.sendMessage(\"bSign\", event.getPlayer(), bSignModule.MODULE.getLanguageValue(\"SIGN-REMOVED\"));\r\n\t\t\r\n\t}",
"@Override\n \t\t\t\t\tpublic void run() {\n \t\t\t\t\t\ttry {\n \t\t\t\t\t\t\tRedstoneControlSign.getControlSign(block.getLocation());\n \t\t\t\t\t\t} catch (SMSException e) {\n \t\t\t\t\t\t\tMiscUtil.errorMessage(player, e.getMessage());\n \t\t\t\t\t\t}\n \t\t\t\t\t}",
"protected void a(IBlockData iblockdata, World world, BlockPosition blockposition, Block block) {\n/* 103 */ boolean flag = ((Boolean)iblockdata.get(POWERED)).booleanValue();\n/* 104 */ boolean flag1 = (world.isBlockIndirectlyPowered(blockposition) || a(world, blockposition, iblockdata, true, 0) || a(world, blockposition, iblockdata, false, 0));\n/* */ \n/* 106 */ if (flag1 != flag) {\n/* */ \n/* 108 */ int power = flag ? 15 : 0;\n/* 109 */ int newPower = CraftEventFactory.callRedstoneChange(world, blockposition, power, 15 - power).getNewCurrent();\n/* 110 */ if (newPower == power) {\n/* */ return;\n/* */ }\n/* */ \n/* 114 */ world.setTypeAndData(blockposition, iblockdata.set(POWERED, Boolean.valueOf(flag1)), 3);\n/* 115 */ world.applyPhysics(blockposition.down(), this);\n/* 116 */ if (((BlockPropertyTrackPosition)iblockdata.get(SHAPE)).c()) {\n/* 117 */ world.applyPhysics(blockposition.up(), this);\n/* */ }\n/* */ } \n/* */ }",
"public void removeSign(Block block) {\n dirty = true;\n ListIterator<SignLocation> iterator = signLocations.listIterator();\n while (iterator.hasNext()) {\n SignLocation loc = iterator.next();\n if (loc.getWorld().equals(block.getWorld()) && loc.getLocation().equals(block.getLocation())) {\n iterator.remove();\n markedForRemoval.add(loc);\n }\n }\n }",
"@Override\n public void broadcastBlock(final Block block) {}",
"private static void craftSlab(Block block)\r\n\t{\r\n\t\tBlockExtraSlab input = ((BlockExtraSlab)block);\r\n\t\tBlock parent = input.getParent();\r\n\t\tint parentMeta = input.getParentMeta();\r\n\t\t\r\n\t\tGameRegistry.addRecipe(new ItemStack(block, 6, 0), new Object[] { \"###\", '#', new ItemStack(parent, 1, parentMeta) });\r\n\t\tGameRegistry.addRecipe(new ItemStack(parent, 1, parentMeta), new Object[] { \"#\", \"#\", '#', new ItemStack(block) });\r\n\t}",
"private void setBlockMeta() {\n\t\tint meta = getBlockMetadata();\n\t\tForgeDirection dir = ForgeDirection.getOrientation(meta);\n\t\tif(dir != direction) {\n\t\t\tworldObj.setBlockMetadataWithNotify(xCoord, yCoord, zCoord, direction.ordinal(), 3);\n\t\t\tmarkDirty();\n\t\t}\n\t}",
"public void displaySignInfo(Block b, Player p) \n\t{\n\t\t\n\t\tBoutiqueSign bs = getBoutiqueSign(b);\n\t\t\n\t\tString signOwnerString = bs.getOwnerString();\n\t\tString signTypeStr = bs.getType();\n\t\tString separator = Messages.getString(\"Sign.SIGNINFOSEPARATOR\"); //$NON-NLS-1$\n\t\t\n\n\t\t//debut texte\n\t\tp.sendMessage(separator);\n\t\t\n\t\tif (!bs.isEnabled())\n\t\t{\n\t\t\t//TODO: formatter le chat ailleurs ? \n\t\t\tp.sendMessage(ChatColor.YELLOW + Messages.getString(\"Sign.INACTIVESIGN\")); //$NON-NLS-1$\n\t\t\tp.sendMessage(ChatColor.YELLOW + Messages.getString(\"Sign.MAKEANOTHERONE\")); //$NON-NLS-1$\n\t\t\treturn;\n\t\t}\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t/* Affiche le type de panneau et le propriétaire */\n\t\t\n\t\t//TODO virer debug\n\t\t//p.sendMessage(\"dbg1: Type=\" + bs.getType());\n\t\t\n\t\tif(bs.isSignServer())\n\t\t{\n\t\t\t//Type BoutiqueSignServer\n\t\t\tp.sendMessage(Messages.getString(\"Sign.SIGNISSERVER\")); //$NON-NLS-1$\n\t\t}\n\t\telse if(bs.isSignChest())\n\t\t{\t\n\t\t\t//Type BoutiqueSignChest\n\t\t\t\n\t\t\tp.sendMessage(Messages.getString(\"Sign.SIGNISPLAYER\") + ChatColor.RED + signOwnerString + ChatColor.WHITE + \".\");\t\t\t //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\n\t\t\tString signchest = bs.getChestString();\t\t\t\n\t\t\tif(signchest.isEmpty()) \n\t\t\t{\n\t\t\t\tp.sendMessage(ChatColor.RED + Messages.getString(\"Sign.SIGNCHESTNOTBIND\")); //$NON-NLS-1$\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(bs.isSignWebAuction())\n\t\t{\n\t\t\t//Type BoutiqueSignWebAuction\n\t\t\tp.sendMessage(Messages.getString(\"Sign.SIGNISWEB\") + ChatColor.RED + signOwnerString + ChatColor.WHITE + \".\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//Type inconnu\n\t\t\tp.sendMessage(ChatColor.RED + Messages.getString(\"Sign.SIGNISUNKNOWTYPE\") + ChatColor.WHITE + signOwnerString + ChatColor.RED + Messages.getString(\"Sign.ISTHEOWNER\") ); //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\treturn;\n\t\t}\n\t\t\t\n\t\t\n\t\tInteger qtyFrom = bs.getQtyFrom();\n\t\tInteger qtyTo = bs.getQtyTo();\n\t\tBoutiqueItem itemTo = bs.getItemTo();\n\t\tBoutiqueItem itemFrom = bs.getItemFrom();\n\t\tDouble moneyFrom = bs.getMoneyFrom();\n\t\tDouble moneyTo = bs.getMoneyTo();\n\t\t\n\t\t\n\t\t/* Test iconomy */\n\t\tif(!EconomyHandler.currencyEnabled)\n\t\t{\n\t\t\tp.sendMessage(Messages.getString(\"Sign.NOECONERR\")); //$NON-NLS-1$\n\t\t\tp.sendMessage(separator);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t\n\t\tif(!bs.checkLines(p))\n\t\t{\n\t\t\t//TODO virer debug\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/* Détermine le message en fonction du type de panneau */\n\t\t\n\t\t//Freebies\n\t\tif(bs.isFreebiesSign())\n\t\t{\n\t\t\tif(itemTo == null)\n\t\t\t{\n\t\t\t\t//TODO: message && currencystring\n\t\t\t\tp.sendMessage\n\t\t\t\t(\n\t\t\t\t\tMessages.getString(\"Sign.RIGHTCLICKWILLGETYOU\") + //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + moneyTo + Messages.getString(\"Sign.22\") + ChatColor.WHITE //$NON-NLS-1$\n\t\t\t\t);\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//TODO: message\n\t\t\t\tp.sendMessage\n\t\t\t\t(\n\t\t\t\t\tMessages.getString(\"Sign.RIGHTCLICKWILLGETYOU\") + //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + qtyTo + ChatColor.WHITE + \t\" \"\t+ //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + itemTo.itemName + ChatColor.WHITE + \n\t\t\t\t\tMessages.getString(\"Sign.FORFREE\") //$NON-NLS-1$\n\t\t\t\t);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t//Donation (item ou $ => rien)\n\t\telse if(bs.isDonationSign())\n\t\t{\n\t\t\tif(itemFrom == null)\n\t\t\t{\n\t\t\t\t//TODO: message && currencystring\n\t\t\t\tp.sendMessage\n\t\t\t\t(\n\t\t\t\t\tMessages.getString(\"Sign.SIGNGETDONATIONS\") + //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + moneyFrom + Messages.getString(\"Sign.27\") + ChatColor.WHITE //$NON-NLS-1$\n\t\t\t\t);\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t//TODO: message\n\t\t\t\tp.sendMessage\n\t\t\t\t(\n\t\t\t\t\tMessages.getString(\"Sign.SIGNGETDONATIONS\") + //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + qtyFrom + ChatColor.WHITE + \" \"\t+ //$NON-NLS-1$\n\t\t\t\t\tChatColor.RED + itemFrom.itemName + ChatColor.WHITE\n\t\t\t\t);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\telse if(bs.isSellSign())\n\t\t{\n\t\t\tp.sendMessage(\n\t\t\t\tMessages.getString(\"Sign.RIGHTCLICKWILLGETYOU\") + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + qtyTo + ChatColor.WHITE + \" \" + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + itemTo.itemName + ChatColor.WHITE + \n\t\t\t\tMessages.getString(\"Sign.FORMONEY\") + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + moneyFrom + \" Eus\" + ChatColor.WHITE + //$NON-NLS-1$\n\t\t\t\t\".\" //$NON-NLS-1$\n\t\t\t);\n\t\t}\n\t\telse if(bs.isBuySign())\n\t\t{\n\t\t\tp.sendMessage\n\t\t\t(\n\t\t\t\tMessages.getString(\"Sign.SIGNGIVEYOUFORMONEY\") + ChatColor.RED + moneyTo + \"Eus \" + //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\tChatColor.WHITE + Messages.getString(\"Sign.FOREACHSTACKOF\") + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + qtyFrom + Messages.getString(\"Sign.QTY1\") + itemFrom.itemName + //$NON-NLS-1$\n\t\t\t\tChatColor.WHITE + Messages.getString(\"Sign.YOUWILLGIVEHIM\") //$NON-NLS-1$\n\t\t\t);\n\t\t}\n\t\telse if(bs.isTradeSign())\n\t\t{\n\t\t\tp.sendMessage\n\t\t\t(\n\t\t\t\tMessages.getString(\"Sign.SIGNISTRADING\") + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + qtyFrom + Messages.getString(\"Sign.QTY\") + ChatColor.WHITE + \" \" + //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\tChatColor.RED + itemFrom.itemName + ChatColor.WHITE + Messages.getString(\"Sign.VERSUS1\") + //$NON-NLS-1$\n\t\t\t\tChatColor.RED + qtyTo + Messages.getString(\"Sign.QTY\") + ChatColor.WHITE + \" \" + //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\tChatColor.RED + itemTo.itemName + ChatColor.WHITE + \".\" //$NON-NLS-1$\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tp.sendMessage\n\t\t\t(\n\t\t\t\tMessages.getString(\"Sign.VROUMVROUMERR\") //$NON-NLS-1$\n\t\t\t);\n\t\t\t\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tbs.Render();\n\t\t\n\t\tp.sendMessage(separator);\n\t}",
"public void ProtectMe(Block block){\n \tplugin.getProtect().add(block);\r\n \t\t//run the timer to load the block\r\n \t\r\n \tif(plugin.getTreeprotect_Timer().getPoolSize() < plugin.getTreeprotect_Timer().getMaximumPoolSize()){\r\n \t\tplugin.getTreeprotect_Timer().schedule(new Runnable() {\r\n \t\t\t\tpublic void run() {\r\n \t\t\t\t\tif(!(plugin.getProtect().isEmpty())){\r\n \t\t\t\t\t\t//remove it from the list\r\n \t\t\t\t\t\tplugin.getProtect().remove(0);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}, plugin.getProtectTime(), TimeUnit.MILLISECONDS);\r\n \t}\r\n \t}",
"public void setBlockAt(Location loc, BlockType type) {\n\t\tsetBlockAt(loc.getX(), loc.getY(), loc.getZ(), type);\n\t}",
"public void PlantMe(Block block){\n \tplugin.getReplant().add(block);\r\n \t\t//run the timer to load the block\r\n \t\r\n \tif(plugin.getTreeplant_Timer().getPoolSize() < plugin.getTreeplant_Timer().getMaximumPoolSize()){\r\n \t\tplugin.getTreeplant_Timer().schedule(new Runnable() {\r\n \t\t\t\tpublic void run() {\r\n \t\t\t\t\tif(!(plugin.getReplant().isEmpty())){\r\n \t\t\t\t\t\tBlock loadedBlock = plugin.getReplant().get(0);\r\n \t\t\t\t\t\t//remove it from the list\r\n \t\t\t\t\t\tplugin.getReplant().remove(0);\r\n \t\t\t\t\t\t//protect it\r\n \t\t\t\t\t\tProtectMe(loadedBlock);\r\n \t\t\t\t\t\t//made into a sap\r\n \t\t\t\t\t\tif( (loadedBlock.getType().equals(Material.AIR)) || (loadedBlock.getType().equals(Material.FIRE)) ) //just incase it was on fire\r\n \t\t\t\t\t\t\tloadedBlock.setType(Material.SAPLING);\r\n \t\t\t\t\t\t\r\n \t\t\t\t\t\t/* No longer needed! Didn't realized leaves light blocking changed way back when.\r\n \t\t\t\t\t\t * for(int i=loadedBlock.getY(); i < 128; i++){\r\n \t\t\t\t\t\t\t//delete all the leaves in a line to the sky limit\r\n \t\t\t\t\t\t\tif(loadedBlock.getType()==Material.LEAVES){\r\n \t\t\t\t\t\t\t\t//it's a leaf delete it\r\n \t\t\t\t\t\t\t\tloadedBlock.setType(Material.AIR);\r\n \t\t\t\t\t\t\t\t//update on server | Not needed?\r\n \t\t\t\t\t\t\t\t//etc.getServer().setBlock(leafToDelete);\r\n \t\t\t\t\t\t\t}\r\n \t\t\t\t\t\t\t//go up one\r\n \t\t\t\t\t\t\tloadedBlock = loadedBlock.getFace(BlockFace.UP);\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}, plugin.getdelayTime(), TimeUnit.MILLISECONDS);\r\n \t}\r\n \t}",
"@EventHandler(priority = EventPriority.NORMAL, ignoreCancelled = true)\n public void onPlayerInteract(PlayerInteractEvent event) {\n if (event.getClickedBlock() != null && event.getItem() != null) {\n if (event.getAction() == Action.RIGHT_CLICK_BLOCK && !event.getPlayer().isSneaking()) {\n if (ItemUtils.HOES.contains(event.getMaterial())) {\n\n Block block = event.getClickedBlock();\n BlockData original = block.getBlockData();\n BlockData changed = safelyRotated(block);\n if (!original.matches(changed)) {\n\n // make sure player can build here\n Block against = block.getRelative(event.getBlockFace().getOppositeFace(), 1);\n BlockPlaceEvent e = new BlockPlaceEvent(block, block.getState(), against, event.getItem(), event.getPlayer(), true, EquipmentSlot.HAND);\n plugin.getServer().getPluginManager().callEvent(e);\n if (!e.isCancelled()) {\n block.setBlockData(changed);\n event.setCancelled(true);\n }\n }\n }\n }\n }\n }",
"public EntangledChaliceItem(Block block) {\n super(block);\n }",
"public Block()\n {\n this.blockType = BlockType.AIR;\n }",
"public String updateProductionBlock(ProductionBlock pb);",
"public void setSign(String sign) {\n\n this.sign = sign;\n }",
"private static String signFirstTime() throws AddressFormatException\n {\n ECKey key1 = ECKey.fromPrivate(new BigInteger(\"64102401986961187973900162212679081334328198710146539384491794427145725009072\"));\n\n\n // Use the redeem script we have saved somewhere to start building the transaction\n Script redeemScript = new Script(hexStringToByteArray(\"5221021ae8964b8529dc3e52955f2cabd967e08c52008dbcca8e054143b668f3998f4a210306be609ef37366ab0f3dd4096ac23a6ee4d561fc469fa60003f799b0121ad1072102199f3d89fa00e6f55dd6ecdd911457d7264415914957db124d53bf0064963f3853ae\"));\n\n // Start building the transaction by adding the unspent inputs we want to use\n // The data is taken from blockchain.info, and can be found here: https://blockchain.info/rawtx/ca1884b8f2e0ba88249a86ec5ddca04f937f12d4fac299af41a9b51643302077\n Transaction spendTx = new Transaction(params);\n ScriptBuilder scriptBuilder = new ScriptBuilder();\n scriptBuilder.data(new String(\"a9145204ad7c5fa5a2491cd91c332e28c87221194ca087\").getBytes()); // Script of this output\n TransactionInput input = spendTx.addInput(new Sha256Hash(\"fed695bf5e2c15286956a7bd3464c5beb97ef064e1f9406eba189ea844733e7c\"), 1, scriptBuilder.build());\n\n // Add outputs to the person receiving bitcoins\n Address receiverAddress = new Address(params, \"n2cWhs5sbWFCwzuuWWsVM9ubPwykGtX75T\");\n Coin charge = Coin.valueOf(1000000); // 0.1 mBTC\n Script outputScript = ScriptBuilder.createOutputScript(receiverAddress);\n spendTx.addOutput(charge, outputScript);\n\n /*8888888888888888888888888888888888888888888888888888888888888*/\n\n // Sign the first part of the transaction using private key #1\n Sha256Hash sighash = spendTx.hashForSignature(0, redeemScript, Transaction.SigHash.ALL, false);\n ECKey.ECDSASignature ecdsaSignature = key1.sign(sighash);\n TransactionSignature transactionSignarture = new TransactionSignature(ecdsaSignature, Transaction.SigHash.ALL, false);\n\n // Create p2sh multisig input script\n Script inputScript = ScriptBuilder.createP2SHMultiSigInputScript(Arrays.asList(transactionSignarture), redeemScript);\n\n // Add the script signature to the input\n input.setScriptSig(inputScript);\n System.out.println(byteArrayToHex(spendTx.bitcoinSerialize()));\n\n return byteArrayToHex(spendTx.bitcoinSerialize());\n }",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}",
"void updateSignToPlayer(Player player, Location location, String[] lines);",
"public void blockedAndBlock(){\n\t\tif(player.isAttacking() && random(BASE_BLOCK_PERCENTAJE + ((double)difficulty)/10)){\n\t\t\tplayer.hasBeenBlocked();\n\t\t\tthis.setCurrentAnimation(\"blocked and prepare block_\" + orientation, FRAME_DURATION);\n\t\t\tmanageSword(\"blocked and prepare block\", 0, false);\n\t\t} else{\n\t\t\tthis.setCurrentAnimation(\"attack end blocked_\" + orientation, FRAME_DURATION);\n\t\t\tmanageSword(\"attack end blocked\", 0, false);\n\t\t}\n\t}",
"public void onBlockHarvested(World world, int x, int y, int z, int meta, EntityPlayer player)\n\t {\n\t if (player.capabilities.isCreativeMode && (meta & 8) != 0 && world.getBlock(x, y - 1, z) == this)\n\t {\n\t world.setBlockToAir(x, y - 1, z);\n\t }\n\t }",
"@Override\n public void hitBlock(Block block) {\n if (doorTypes.contains(block.getType())) {\n if (doorMap.containsValue(block)) {\n \tHPS.PM.warn(p, \"That door is already locked.\");\n \treturn;\n }\n \n lockDoor(block);\n \n Block otherDoorBlock = getDoubleDoor(block);\n if (otherDoorBlock != null) {\n \tlockDoor(otherDoorBlock);\n }\n } else {\n HPS.PM.warn(p, \"You may only use this spell on doors.\");\n }\n }",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\r\n\t}",
"@Override\n\t\tpublic void onBlock(User arg0, User arg1) {\n\t\t\t\n\t\t}",
"public void updateMainBlock() {\n\t\tthis.mainblock = player.getWorld().getBlockAt(player.getLocation().add(0, -1, 0));\n\t}",
"public static void registerBlock(boolean fireproof, ItemGroup group, String name, Block block) {\n Item.Settings normalSettings = new Item.Settings().group(group);\n Item.Settings fireproofSettings = new Item.Settings().group(group).fireproof();\n\n Registry.register(Registry.BLOCK, newID(name), block);\n Registry.register(Registry.ITEM, newID(name), new BlockItem(block, (fireproof ? fireproofSettings : normalSettings)));\n }",
"@Override\n public void run() {\n if (config.DebugLogging) {\n getLogger().info(\"Reverting Ice to Water to prevent server overload\");\n }\n\n Block fixblock = getServer().getWorld(blockloc.getWorld().getName()).getBlockAt(blockloc);\n fixblock.setType(Material.STATIONARY_WATER);\n\n }",
"@Override\n\tpublic void visit(SendBlock sb) {\n\t\tSystem.out.println(\"SendBlock reću\");\n\t\tbyte[] body = sb.getBody();\n\t\tbyte[] indexB = new byte[4], beginB = new byte[4];\n\t\tTorrent torrent = ph.getTorrent();\n\t\tint index = 0, begin = 0;\n\t\tbyte[] block = new byte[sb.length - 9];\n\n\t\tindexB = Arrays.copyOfRange(body, 0, 4);\n\t\tindex = byteArrayToInt(indexB);\n\n\t\tbeginB = Arrays.copyOfRange(body, 4, 8);\n\t\tbegin = byteArrayToInt(beginB);\n\n\t\tblock = Arrays.copyOfRange(body, 8, body.length);\n\n\t\tPiece piece = torrent.getPieces().get(index);\n\t\tpiece.feed(begin, block);\n\t\tSystem.out.println(\"piece fed\");\n\t\tif (piece.getChecked()) {\n\t\t\tHave h = new Have(indexB);\n\t\t\tthis.ph.addMessageQueue(h);\n\t\t\tSystem.out.println(\"have envoye, block bien reću\");\n\t\t}\n\t}",
"@Override\n\tpublic boolean onBlockActivated(World par1World, int par2, int par3, int par4, EntityPlayer par5EntityPlayer, int par6, float par7, float par8, float par9)\n\t{\n\t\tUnsaga.debug(\"アクチベートされてます\");\n\n\t\tTileEntityChestUnsaga var10 = (TileEntityChestUnsaga)par1World.getTileEntity(par2, par3, par4);\n\n\t\tif(var10 == null){\n\t\t\tUnsaga.debug(\"タイルエンチチーがとれない\");\n\t\t\treturn true;\n\t\t}\n\n\t\tif(var10.hasItemSet){\n\t\t\tchestFunc(par1World, par2, par3, par4, par5EntityPlayer, par6, par7, par8, par9);\n\t\t\treturn false;\n\t\t}\n\n\t\tif(!var10.getWorldObj().isRemote){\n\t\t\tUnsaga.debug(\"同期します\");\n\t\t\tint chestlevel = 0;\n\t\t\tif(!var10.hasSetChestLevel()){\n\t\t\t\tvar10.initChestLevel(par1World);\n\t\t\t}\n\t\t\tchestlevel = var10.getChestLevel();\n\t\t\tPacketSyncChest ps = new PacketSyncChest(new XYZPos(par2,par3,par4),chestlevel);\n\t\t\tUnsaga.packetPipeline.sendTo(ps, (EntityPlayerMP) par5EntityPlayer);\n\t\t\tUnsaga.debug(\"パケット送ります\");\n\t\t\tPacketGuiOpen pg = new PacketGuiOpen(Unsaga.guiNumber.chest,new XYZPos(par2,par3,par4));\n\t\t\tUnsaga.packetPipeline.sendToServer(pg);\n\t\t\t//PacketDispatcher.sendPacketToPlayer(PacketHandler.getChestSyncPacket(chestlevel, par2, par3, par4,false,var10.trapOccured,var10.unlocked,var10.defused,var10.magicLock,var10.hasItemSet), (Player) par5EntityPlayer);\n\t\t\t//PacketDispatcher.sendPacketToServer(PacketHandler.getChestGuiPacket(par2,par3,par4));\n\n\t\t}\n\t\tif(var10.getWorldObj().isRemote){\n\n\t\t}\n\n\n\t\t\n\t\t\n\t\t\n\t\t\n//\t\tboolean chestopen = var10.touchChest(par5EntityPlayer);\n//\n//\t\tif(chestopen){\n//\t\t\tvar10.setItemsToChest(par1World.rand);\n//\t\t\tchestFunc(par1World, par2, par3, par4, par5EntityPlayer, par6, par7, par8, par9);\n//\t\t}\n\t\treturn false;\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic <TileEntityType extends ATileEntityBase<JSONDefinition>, JSONDefinition extends AJSONMultiModelProvider> boolean setBlock(ABlockBase block, Point3d position, WrapperPlayer playerWrapper, Axis axis){\r\n \tif(!world.isRemote){\r\n \t\tBuilderBlock wrapper = BuilderBlock.blockMap.get(block);\r\n \t\tBlockPos pos = new BlockPos(position.x, position.y, position.z);\r\n \t\tif(playerWrapper != null){\r\n \t\t\tWrapperPlayer player = playerWrapper;\r\n \t \tItemStack stack = playerWrapper.getHeldStack();\r\n \t \tAItemBase item = player.getHeldItem();\r\n \t \tEnumFacing facing = EnumFacing.valueOf(axis.name());\r\n \t \tif(!world.getBlockState(pos).getBlock().isReplaceable(world, pos)){\r\n \t pos = pos.offset(facing);\r\n \t position.add(facing.getXOffset(), facing.getYOffset(), facing.getZOffset());\r\n \t \t}\r\n \t \t\r\n\t if(item != null && player.player.canPlayerEdit(pos, facing, stack) && world.mayPlace(wrapper, pos, false, facing, null)){\r\n\t \tIBlockState newState = wrapper.getStateForPlacement(world, pos, facing, 0, 0, 0, 0, player.player, EnumHand.MAIN_HAND);\r\n\t \tif(world.setBlockState(pos, newState, 11)){\r\n\t\t \t//Block is set. See if we need to set TE data.\r\n\t\t \tif(block instanceof ABlockBaseTileEntity){\r\n\t\t \t\tBuilderTileEntity<TileEntityType> builderTile = (BuilderTileEntity<TileEntityType>) world.getTileEntity(pos);\r\n\t\t \t\tWrapperNBT data;\r\n\t\t \t\tif(stack.hasTagCompound()){\r\n\t\t \t\t\tdata = new WrapperNBT(stack);\r\n\t\t \t\t}else{\r\n\t\t \t\t\tdata = new WrapperNBT();\r\n\t\t \t\t\tif(item instanceof AItemPack){\r\n\t\t\t \t\t\tdata.setString(\"packID\", ((AItemPack<?>) item).definition.packID);\r\n\t\t\t\t \t\tdata.setString(\"systemName\", ((AItemPack<?>) item).definition.systemName);\r\n\t\t\t\t \t\tif(item instanceof AItemSubTyped){\r\n\t\t\t\t \t\t\tdata.setString(\"subName\", ((AItemSubTyped<?>) item).subName);\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\tbuilderTile.tileEntity = (TileEntityType) ((ABlockBaseTileEntity) block).createTileEntity(this, position, player, data);\r\n\t\t \t}\r\n\t\t \t//Shrink stack as we placed this block.\r\n\t\t stack.shrink(1);\r\n\t\t return true;\r\n\t\t }\r\n\t }\r\n \t\t}else{\r\n \t\t\tIBlockState newState = wrapper.getDefaultState();\r\n \t\t\tif(world.setBlockState(pos, newState, 11)){\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \treturn false;\r\n }",
"public void a(World world, BlockPosition blockposition, IBlockData iblockdata, int i) {\n/* 211 */ changeLevel(world, blockposition, iblockdata, i, (Entity)null, CauldronLevelChangeEvent.ChangeReason.UNKNOWN);\n/* */ }",
"private static void registerBlock(Block b)\n\t{\n\t}",
"void setBlock(int x, int y, int z, byte[][] chunk, Material material) {\r\n\t\tif (chunk[y >> 4] == null)\r\n\t\t\tchunk[y >> 4] = new byte[16 * 16 * 16];\r\n\t\tif (!(y <= 256 && y >= 0 && x <= 16 && x >= 0 && z <= 16 && z >= 0))\r\n\t\t\treturn; // Out of bounds\r\n\t\ttry {\r\n\t\t\tchunk[y >> 4][((y & 0xF) << 8) | (z << 4) | x] = (byte) material\r\n\t\t\t\t\t.getId();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@SubscribeEvent\n public void onPlayerClickGrassBlock(BonemealEvent event)\n {\n if (!event.getWorld().isRemote)\n {\n \t\n if (event.getBlock()==Blocks.GRASS.getDefaultState())\n {\n \tSystem.out.println(\"触发了骨粉对草方块施肥事件\");\n EntityLiving entityLiving = new EntityButterfly(event.getWorld());\n BlockPos pos = event.getPos();\n entityLiving.setPositionAndUpdate(pos.getX() , pos.getY()+1, pos.getZ());\n event.getWorld().spawnEntityInWorld(entityLiving);\n return;\n }\n }\n }",
"public void addRegenBlock(Material material, int percent) {\n blockValues.put(material, percent);\n }",
"@Override\n\tpublic void onBlock(User source, User blockedUser) {\n\n\t}",
"void block(Directions dir);",
"void setBlock(int x, int y, int z, byte[][] chunk, Material material) {\n\t\tif (chunk[y>>4] == null)\n\t\t\tchunk[y>>4] = new byte[16*16*16];\n\t\tif (!(y<=256 && y >= 0 && x <= 16 && x >= 0 && z <= 16 && z >= 0))\n\t\t\treturn; //Out of bounds\n\t\ttry {\n\t\t\tchunk[y>>4][((y & 0xF) << 8) | (z << 4) | x] = (byte)material.getId();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void Management_Block(Block block){\n\t\t\n\t\t switch(block.BlockState){\n\t\t \n\t\t case 0: // player is not lost game. continue with tile micro managment\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\n\t\t\t\t boolean CoinCollision = CollisionDetection(playerUser.bounds,rectTile);\n\t\t\t\t \n\t\t\t\t switch(tile.state)\n\t\t\t\t {\n\t\t\t\t \n\t\t\t\t case 0: // no collision, show the block\n\t\t\t\t\t \n\t\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\n\t\t\t\t\t \n\t\t\t\t\t if (PauseGame) \n\t\t\t\t\t\t continue;\n\t\t\t\t\t\t \n\t\t\t\t\t\t if (CoinCollision==true){\n\t\t\t\t\t\t\t tile.state++; \t\t\t\t\t\t\t\t\t\t\t\t \t\t\t \t\t\t\t\n\t\t\t\t\t\t }\t\t\t\t\t\t \n\t\t\t\t\t\t else if (ThisGameRound==GameState.Running){\t \n\t\t\t\t\t\t\t if (block.Passed==false){\n\t\t\t\t\t\t\t\t if (playerUser.position.x > block.Wall.get(0).rectTile.x){\n\t\t\t\t\t\t\t\t\t levelbuilder.gamePoints = levelbuilder.gamePoints + 1;\n\t\t\t\t\t\t\t\t\t fntScore.setBitmapText(\"Score: \" + String.valueOf(levelbuilder.gamePoints));\n\t\t\t\t\t\t\t\t\t block.Passed=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\t else if (block.Passed==true){\n\t\t\t\t\t\t\t\t //do nothing.\n\t\t\t\t\t\t\t }\t\t\t\t\t\t\t \n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t \n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t\t \n\t\t\t\t case 1: \n\t\t\t\t\t \n\t\t\t\t\t batch.draw(tile.getBlockImg(),rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t \n\t\t\t\t\t // if there is a collotion, draw it one time only \t\t\t \t\t\t\t \n\t\t\t\t\t \n\t\t\t\t\t\t// collision, but player has key\n\t\t\t\t\t\t PhoneDevice.Vibrate();\t\n\t\t\t\t\t\t if ((playerUser.color==block.color) || (playerUser.color==Color.ALL)){\t\t\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\ttile.setBlockImg(tile.BlockType);\t\n\t\t\t\t\t \t\ttile.PlayBreakThoughSound();\t\n\t\t\t\t\t\t }\n\t\t\t\t\t\t // collision, but player dont have a key: break from tile loop and \n\t\t\t\t\t \t // draw block crash effect\n\t\t\t\t\t\t else if (DEBUG==false){\n\t\t\t\t\t\t\t block.BlockState=1;\n\t\t\t\t\t\t\t ThisGameRound = GameState.GameOver;\t\n\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t }\t\t\t\n\t\t\t\t\t\t \n\t\t\t\t\t tile.pe = Effects.setNewEffect(enumEffects.TileDistruction, block.color);\t\t\t\t\t\t \n\t\t\t\t\t tile.pe.setPosition(tile.getRectTile().x,\n\t\t\t \t\t\t\ttile.getRectTile().y+tile.Height/2);\t\n\t\t\t\t\t tile.pe.start();\t\n\t\t\t\t\t tile.state++;\t\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t break;\n\t\t\t\t\t \n\t\t\t\t case 2:\n\t\t\t\t\t // continue to draw the effect: no matter collision result\n\t\t\t\t\t tile.pe.setPosition(tile.getRectTile().x,\n\t\t\t \t\t\t\ttile.getRectTile().y+tile.Height/2);\t\n\t\t\t\t\t \n\t\t\t\t\t tile.pe.update(Gdx.graphics.getDeltaTime());\n\t\t\t\t tile.pe.draw(batch,Gdx.graphics.getDeltaTime());\t\t\t\t \t\t\t\t\t\n\t\t\t\t\t break;\n\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 break;\n\t\t case 1: // player hit the wall without key\t\t\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\t\t\t\t\n\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t block.PlayCrashSound();\t\t\n\t\t\t block.pe = Effects.setNewEffect(enumEffects.Crash, block.color);\t\t\t\t\t\t \n\t\t\t block.pe.setPosition(playerUser.bounds.x + playerUser.bounds.width,\n\t\t\t\t\t playerUser.bounds.y + playerUser.bounds.height/2);\t\n\t\t\t block.pe.start();\n\t\t\t block.BlockState++;\n\t\t\t break;\n\t\t\t \n\t\t case 2:\n\t\t\t \n\t\t\t for (Tile tile : block.Wall){\t\t\n\t\t\t\t \n\t\t\t\t Rectangle rectTile = new Rectangle();\n\t\t\t\t rectTile = tile.getRectTile();\t\t\t\t\n\t\t\t\t batch.draw(tile.getBlockImg(), rectTile.x,rectTile.y,rectTile.width,rectTile.height);\t\t\t\t\t\t\t\t\t\t\t\t \t\t\t\t\t \n\t\t\t }\n\t\t\t \n\t\t\t block.pe.update(Gdx.graphics.getDeltaTime());\n\t\t\t block.pe.draw(batch,Gdx.graphics.getDeltaTime());\t\n\t\t\t break;\n\t\t }\t\t\n\t }",
"@Test\n\tpublic void validateBlock()\n\t{\n\t\tDBSet databaseSet = DBSet.createEmptyDatabaseSet();\n\t\t\t\t\t\t\n\t\t//PROCESS GENESISBLOCK\n\t\tGenesisBlock genesisBlock = new GenesisBlock();\n\t\tgenesisBlock.process(databaseSet);\n\t\t\t\t\t\t\n\t\t//CREATE KNOWN ACCOUNT\n\t\tbyte[] seed = Crypto.getInstance().digest(\"test\".getBytes());\n\t\tbyte[] privateKey = Crypto.getInstance().createKeyPair(seed).getA();\n\t\tPrivateKeyAccount generator = new PrivateKeyAccount(privateKey);\n\t\t\t\t\t\t\t\t\n\t\t//PROCESS GENESIS TRANSACTION TO MAKE SURE GENERATOR HAS FUNDS\n\t\tTransaction transaction = new GenesisTransaction(generator, BigDecimal.valueOf(1000).setScale(8), NTP.getTime());\n\t\ttransaction.process(databaseSet);\n\t\t\t\t\t\t\n\t\t//GENERATE NEXT BLOCK\n\t\tBlockGenerator blockGenerator = new BlockGenerator();\n\t\tBlock newBlock = blockGenerator.generateNextBlock(databaseSet, generator, genesisBlock);\n\t\t\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\tbyte[] transactionsSignature = Crypto.getInstance().sign(generator, newBlock.getGeneratorSignature());\n\t\tnewBlock.setTransactionsSignature(transactionsSignature);\n\t\t\n\t\t//CHECK IF VALID\n\t\tassertEquals(true, newBlock.isValid(databaseSet));\n\t\t\n\t\t//CHANGE REFERENCE\n\t\tBlock invalidBlock = BlockFactory.getInstance().create(newBlock.getVersion(), new byte[128], newBlock.getTimestamp(), newBlock.getGeneratingBalance(), newBlock.getGenerator(), newBlock.getGeneratorSignature());\n\t\t\n\t\t//CHECK IF INVALID\n\t\tassertEquals(false, invalidBlock.isValid(databaseSet));\n\t\t\n\t\t//CHANGE TIMESTAMP\n\t\tinvalidBlock = BlockFactory.getInstance().create(newBlock.getVersion(), newBlock.getReference(), 1L, newBlock.getGeneratingBalance(), newBlock.getGenerator(), newBlock.getGeneratorSignature());\n\t\t\n\t\t//CHECK IF INVALID\n\t\tassertEquals(false, invalidBlock.isValid(databaseSet));\n\t\t\n\t\t//CHANGE BASETARGET\n\t\tinvalidBlock = BlockFactory.getInstance().create(newBlock.getVersion(), newBlock.getReference(), newBlock.getTimestamp(), 1L, newBlock.getGenerator(), newBlock.getGeneratorSignature());\n\t\t\t\t\n\t\t//CHECK IF INVALID\n\t\tassertEquals(false, invalidBlock.isValid(databaseSet));\n\t\t\n\t\t//ADD INVALID TRANSACTION\n\t\tinvalidBlock = blockGenerator.generateNextBlock(databaseSet, generator, genesisBlock);\n\t\tAccount recipient = new Account(\"XUi2oga2pnGNcZ9es6pBqxydtRZKWdkL2g\");\n\t\tlong timestamp = newBlock.getTimestamp();\n\t\tbyte[] signature = PaymentTransaction.generateSignature(databaseSet, generator, recipient, BigDecimal.valueOf(-100).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp);\n\t\tTransaction payment = new PaymentTransaction(generator, recipient, BigDecimal.valueOf(-100).setScale(8), BigDecimal.valueOf(1).setScale(8), timestamp, generator.getLastReference(databaseSet), signature);\n\t\tinvalidBlock.addTransaction(payment);\t\t\n\t\t\n\t\t//CHECK IF INVALID\n\t\tassertEquals(false, invalidBlock.isValid(databaseSet));\n\t\t\n\t\t//ADD GENESIS TRANSACTION\n\t\tinvalidBlock = blockGenerator.generateNextBlock(databaseSet, generator, genesisBlock);\t\n\t\ttransaction = new GenesisTransaction(generator, BigDecimal.valueOf(1000).setScale(8), newBlock.getTimestamp());\n\t\tinvalidBlock.addTransaction(transaction);\t\n\t\t\n\t\t//CHECK IF INVALID\n\t\tassertEquals(false, invalidBlock.isValid(databaseSet));\n\t}",
"public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entity, ItemStack itemStack)\r\n {\r\n int l = MathHelper.floor_double((double)(entity.rotationYaw * (float)this.maxRotation / 360.0F) + 0.5D) & (this.maxRotation - 1);\r\n l %= this.maxRotation;\r\n\r\n TileCampfire tile = (TileCampfire)world.getTileEntity(x, y, z);\r\n tile.rotation = l; \r\n \r\n if (itemStack.hasDisplayName()) {\r\n \ttile.func_145951_a(itemStack.getDisplayName());\r\n }\r\n \t\t\r\n// if (l == 0)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 2, 2);\r\n// }\r\n//\r\n// if (l == 1)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 5, 2);\r\n// }\r\n//\r\n// if (l == 2)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 3, 2);\r\n// }\r\n//\r\n// if (l == 3)\r\n// {\r\n// world.setBlockMetadataWithNotify(x, y, z, 4, 2);\r\n// }\r\n//\r\n// if (itemStack.hasDisplayName())\r\n// {\r\n// ((TileCampfire)world.getTileEntity(x, y, z)).func_145951_a(itemStack.getDisplayName());\r\n// }\r\n \r\n// int l = MathHelper.floor_double((double)(par5EntityLivingBase.rotationYaw * (float)this.maxRotation() / 360.0F) + 0.5D) & this.maxRotation() - 1;\r\n// l %= this.maxRotation();\r\n// TileColorable tile = (TileColorable)par1World.getTileEntity(par2, par3, par4);\r\n// tile.rotation = l;\r\n }",
"public void setReceiveSign (java.lang.String receiveSign) {\r\n\t\tthis.receiveSign = receiveSign;\r\n\t}",
"Block saveBlock(Block block) throws BlockExistsException;",
"public void b(World paramaqu, BlockPosition paramdt, Block parambec, Random paramRandom)\r\n/* 39: */ {\r\n/* 40: 54 */ if (paramaqu.isClient) {\r\n/* 41: 55 */ return;\r\n/* 42: */ }\r\n/* 43: 58 */ if ((paramaqu.l(paramdt.up()) < 4) && (paramaqu.getBlock(paramdt.up()).getType().getLightOpacity() > 2))\r\n/* 44: */ {\r\n/* 45: 59 */ paramaqu.setBlock(paramdt, BlockList.dirt.instance());\r\n/* 46: 60 */ return;\r\n/* 47: */ }\r\n/* 48: 63 */ if (paramaqu.l(paramdt.up()) >= 9) {\r\n/* 49: 64 */ for (int i = 0; i < 4; i++)\r\n/* 50: */ {\r\n/* 51: 65 */ BlockPosition localdt = paramdt.offset(paramRandom.nextInt(3) - 1, paramRandom.nextInt(5) - 3, paramRandom.nextInt(3) - 1);\r\n/* 52: 66 */ BlockType localatr = paramaqu.getBlock(localdt.up()).getType();\r\n/* 53: 67 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 54: 68 */ if ((localbec.getType() == BlockList.dirt) && (localbec.getData(BlockDirt.a) == avd.a) && (paramaqu.l(localdt.up()) >= 4) && (localatr.getLightOpacity() <= 2)) {\r\n/* 55: 69 */ paramaqu.setBlock(localdt, BlockList.grass.instance());\r\n/* 56: */ }\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }",
"@SuppressWarnings(\"deprecation\")\r\n\t@Override\r\n public EnumActionResult onItemUse(EntityPlayer playerIn, World worldIn, BlockPos pos, EnumHand hand, EnumFacing side, float hitX, float hitY, float hitZ)\r\n {\r\n \tItemStack stack = playerIn.getHeldItem(hand);\r\n \tif (side == EnumFacing.DOWN && side == EnumFacing.UP)\r\n {\r\n return EnumActionResult.PASS;\r\n }\r\n else if (!playerIn.canPlayerEdit(pos.offset(side), side, stack))\r\n {\r\n return EnumActionResult.PASS;\r\n }\r\n \tIBlockState iblockstate = worldIn.getBlockState(pos);\r\n Block block = iblockstate.getBlock();\r\n if (block == ModBlocks.crystalLog)\r\n {\r\n \tCrystalColors.Basic wood = iblockstate.getValue(CrystalColors.COLOR_BASIC);\r\n \tif(wood == CrystalColors.Basic.BLUE && TYPE !=PlantType.BLUE)return EnumActionResult.PASS;\r\n \tif(wood == CrystalColors.Basic.RED && TYPE !=PlantType.RED)return EnumActionResult.PASS;\r\n \tif(wood == CrystalColors.Basic.GREEN && TYPE !=PlantType.GREEN)return EnumActionResult.PASS;\r\n \tif(wood == CrystalColors.Basic.DARK && TYPE !=PlantType.DARK)return EnumActionResult.PASS;\r\n pos = pos.offset(side);\r\n\r\n if (worldIn.isAirBlock(pos))\r\n {\r\n IBlockState iblockstate1 = getPlant().getBlock().getStateForPlacement(worldIn, pos, side, hitX, hitY, hitZ, 0, playerIn);\r\n worldIn.setBlockState(pos, iblockstate1, 10);\r\n SoundType soundtype = worldIn.getBlockState(pos).getBlock().getSoundType(worldIn.getBlockState(pos), worldIn, pos, playerIn);\r\n worldIn.playSound(playerIn, pos, soundtype.getPlaceSound(), SoundCategory.BLOCKS, (soundtype.getVolume() + 1.0F) / 2.0F, soundtype.getPitch() * 0.8F);\r\n \r\n if (!playerIn.capabilities.isCreativeMode)\r\n {\r\n \tItemStackTools.incStackSize(stack, -1);\r\n }\r\n }\r\n\r\n return EnumActionResult.SUCCESS;\r\n }\r\n return EnumActionResult.PASS;\r\n }",
"public void visit(SendBlock sb);",
"public void setSignMastered(String sign, boolean value){\n mUsersRef.child(getUsername()).child(\"myDeck\").child(sign).child(\"mastered\").setValue(value);\n }",
"@Test\n\tpublic void validateSignatureGenesisBlock()\n\t{\n\t\tLOGGER.info(\"getGeneratorSignature \" + gb.getSignature().length\n\t\t\t\t+ \" : \" + gb.getSignature());\n\n\t\tassertEquals(true, gb.isSignatureValid());\n\t\t\n\t\t//ADD TRANSACTION SIGNATURE\n\t\tLOGGER.info(\"getGeneratorSignature \" + gb.getSignature());\n\n\t\t//ADD a GENESIS TRANSACTION for invalid SIGNATURE\n\t\tList<Transaction> transactions = gb.getTransactions();\n\t\ttransactions.add( new GenesisTransferAssetTransaction(\n\t\t\t\tnew Account(\"7R2WUFaS7DF2As6NKz13Pgn9ij4sFw6ymZ\"), 1l, BigDecimal.valueOf(1).setScale(8)));\n\t\tgb.setTransactions(transactions);\n\t\t\n\t\t// SIGNATURE invalid\n\t\tassertEquals(false, gb.isSignatureValid());\t\t\n\n\t\tassertEquals(true, gb.isValid(db));\n\n\t}",
"public void setGrade() {\n \tthis.grade = trkMdl.getBlock(this.lineColor,this.currentBlock).getGrade();\n \t//int currentBlockID = position.getCurrentBlock();\n \t//Block current = trackModel.getBlock(curentBlockID);\n \t//grade = currentBlock.getGrade();\n }",
"private static boolean isLock(Block block, BlockFace attachedTo) {\r\n // Locks are always wall signs.\r\n if (!block.getType().equals(Material.WALL_SIGN))\r\n return false;\r\n \r\n org.bukkit.material.Sign material = new org.bukkit.material.Sign(block.getType());\r\n if (attachedTo != null) {\r\n // Locks must be directly attached to locked object.\r\n material.setData(block.getData());\r\n if (!material.getAttachedFace().equals(attachedTo))\r\n return false;\r\n }\r\n \r\n // First line of sign must contain standard lock title.\r\n if (!((org.bukkit.block.Sign) block.getState()).getLine(0).equals(Lock.title))\r\n return false;\r\n \r\n return true;\r\n }",
"public void setBlockdef(BlocksFromSymbolsFactory levelBlockDef) {\n this.blockDef = levelBlockDef;\n }",
"public static boolean Block_Whitelist(Block block, EntityPlayer player, int meta){\n\t\t\n\t\tif(!player.inventory.hasItem(Item.getItemFromBlock(block))){\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(Loader.isModLoaded(Chisel))\n\t\t {\n\t\t\t//if(block instanceof ICarvable ){return true;}\n\t\t }\n\t\t\n\t\tif(block instanceof BlockRotatedPillar\n\t\t\t\t||block instanceof BlockStairs\n\t\t\t\t||block == Blocks.quartz_block){\n\t\t\tint newMeta = block.damageDropped(meta);\n\t\t\tItemStack stacky = new ItemStack (block,0, newMeta); \n\t\t\t//System.out.println(\"new\"+newMeta);\n\t\t\tif(InventoryUtil.StackScan(stacky, player.inventory) >0){return true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) {\n\t\tif (player.getHeldItem() != null) {\n\t\t\tif (player.getHeldItem().getItem() == Items.iron_pickaxe) {\n\t\t\t\tplayer.getHeldItem().damageItem(100, player);\n\t\t\t\tfor (int i = -10; i < 10; i++) {// xval\n\t\t\t\t\tfor (int j = 0; j < 2; j++)\n\t\t\t\t\t\t// yval\n\t\t\t\t\t\tworld.setBlockToAir(x + i, y + j, z);\n\t\t\t\t}\n\n\t\t\t\tfor (int i = -10; i < 10; i++) {\n\t\t\t\t\tfor (int j = 0; j < 2; j++)\n\t\t\t\t\t\t// yval\n\t\t\t\t\t\tworld.setBlockToAir(x, y + j, z + i);\n\t\t\t\t}\n\t\t\t\t// player.getHeldItem().damageItem(100, player);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {//if hand empty\n\t\t\tplayer.addChatMessage(new ChatComponentText(\"[NausicaaMod]This block digs 10x2x1 mineshafts in all 4 directions\"));\n\t\t\tplayer.addChatMessage(new ChatComponentText(\"**DISTROYS BLOCK WITH NO DROPS**\"));\n\n\t\t}\n\t\treturn false;\n\t}",
"private static Block shiftBlock(int amount, Block blk) {\n\t\tHashMap<Integer,Integer> binding = new HashMap<Integer,Integer>();\n\t\tfor(int i=0;i!=blk.numSlots();++i) {\n\t\t\tbinding.put(i,i+amount);\n\t\t}\n\t\tBlock nblock = new Block(blk.numInputs());\n\t\tfor(Block.Entry e : blk) {\n\t\t\tCode code = e.code.remap(binding);\n\t\t\tnblock.append(code,e.attributes());\n\t\t}\n\t\treturn nblock.relabel();\n\t}",
"Block getBlock(String congName, String blockName, String blockNumber);",
"LocalMaterialData withDefaultBlockData();",
"@EventHandler(priority = EventPriority.MONITOR)\n public void onPlaceFirstBlockNotify(BlockPlaceEvent event) {\n if (event.isCancelled()) return;\n Block block = event.getBlock();\n Player player = event.getPlayer();\n if (!player.hasPermission(\"lockettepro.lock\")) return;\n if (Utils.shouldNotify(player) && Config.isLockable(block.getType())) {\n switch (Config.getQuickProtectAction()) {\n case (byte) 0 -> Utils.sendMessages(player, Config.getLang(\"you-can-manual-lock-it\"));\n case (byte) 1, (byte) 2 -> Utils.sendMessages(player, Config.getLang(\"you-can-quick-lock-it\"));\n }\n }\n }",
"@EventHandler(priority = EventPriority.HIGH)\n public void onAttemptInteractLockedBlocks(PlayerInteractEvent event) {\n Action action = event.getAction();\n Block block = event.getClickedBlock();\n if (block == null) return;\n if (LockettePro.needCheckHand()) {\n if (event.getHand() != EquipmentSlot.HAND) {\n if (action == Action.RIGHT_CLICK_BLOCK) {\n if (LocketteProAPI.isChest(block)) {\n // something not right\n event.setCancelled(true);\n }\n return;\n }\n }\n }\n switch (action) {\n case LEFT_CLICK_BLOCK:\n case RIGHT_CLICK_BLOCK:\n Player player = event.getPlayer();\n if (((LocketteProAPI.isLocked(block) && !LocketteProAPI.isUser(block, player)) ||\n (LocketteProAPI.isUpDownLockedDoor(block) && !LocketteProAPI.isUserUpDownLockedDoor(block, player)))\n && !player.hasPermission(\"lockettepro.admin.use\")) {\n Utils.sendMessages(player, Config.getLang(\"block-is-locked\"));\n event.setCancelled(true);\n Utils.playAccessDenyEffect(player, block);\n } else { // Handle double doors\n if (action == Action.RIGHT_CLICK_BLOCK) {\n if ((LocketteProAPI.isDoubleDoorBlock(block) || LocketteProAPI.isSingleDoorBlock(block)) && LocketteProAPI.isLocked(block)) {\n Block doorblock = LocketteProAPI.getBottomDoorBlock(block);\n org.bukkit.block.data.Openable openablestate = (org.bukkit.block.data.Openable) doorblock.getBlockData();\n boolean shouldopen = !openablestate.isOpen(); // Move to here\n int closetime = LocketteProAPI.getTimerDoor(doorblock);\n List<Block> doors = new ArrayList<>();\n doors.add(doorblock);\n if (doorblock.getType() == Material.IRON_DOOR || doorblock.getType() == Material.IRON_TRAPDOOR) {\n LocketteProAPI.toggleDoor(doorblock, shouldopen);\n }\n for (BlockFace blockface : LocketteProAPI.newsfaces) {\n Block relative = doorblock.getRelative(blockface);\n if (relative.getType() == doorblock.getType()) {\n doors.add(relative);\n LocketteProAPI.toggleDoor(relative, shouldopen);\n }\n }\n if (closetime > 0) {\n for (Block door : doors) {\n if (door.hasMetadata(\"lockettepro.toggle\")) {\n return;\n }\n }\n for (Block door : doors) {\n door.setMetadata(\"lockettepro.toggle\", new FixedMetadataValue(LockettePro.getPlugin(), true));\n }\n Bukkit.getScheduler().runTaskLater(LockettePro.getPlugin(), new DoorToggleTask(doors), closetime * 20L);\n }\n }\n }\n }\n break;\n default:\n break;\n }\n }",
"@EventHandler\n\tpublic void onPlayerInteract(PlayerInteractEvent event) {\n\t\tif (event.getAction() == Action.LEFT_CLICK_AIR || event.getAction() == Action.LEFT_CLICK_BLOCK) {\n\t\t\tSpoutItemStack stack = new SpoutItemStack(event.getPlayer().getItemInHand());\n\t\t\tif (stack.getMaterial() instanceof GenericCustomItem) {\n\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"HoldLeftClick\", ((GenericCustomItem) stack.getMaterial()).getCustomId(), event);\n\t\t\t} else if (stack.getMaterial() instanceof GenericCustomBlock) {\n\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"HoldLeftClick\", ((GenericCustomBlock) stack.getMaterial()).getCustomId(), event);\n\t\t\t}\n\t\t} else if (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) {\n\t\t\tSpoutItemStack stack = new SpoutItemStack(event.getPlayer().getItemInHand());\n\t\t\tif (stack.getMaterial() instanceof GenericCustomItem) {\n\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"HoldRightClick\", ((GenericCustomItem) stack.getMaterial()).getCustomId(), event);\n\t\t\t} else if (stack.getMaterial() instanceof GenericCustomBlock) {\n\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"HoldRightClick\", ((GenericCustomBlock) stack.getMaterial()).getCustomId(), event);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// The click event for the block you clicked on\n\t\tif (event.getAction() == Action.LEFT_CLICK_BLOCK || event.getAction() == Action.RIGHT_CLICK_BLOCK) {\n\t\t\tBlock block = ((SpoutCraftBlock) event.getClickedBlock()).getBlockType();\n\t\t\tif (block instanceof GenericCustomBlock) {\n\t\t\t\tif (event.getAction() == Action.LEFT_CLICK_BLOCK) {\n\t\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"LeftClick\", ((GenericCustomBlock) block).getCustomId(), event);\n\t\t\t\t} else {\n\t\t\t\t\tthis.plugin.getHandlerManager().triggerHandlers(\"RightClick\", ((GenericCustomBlock) block).getCustomId(), event);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public String getSignType() {\n return signType;\n }",
"private void signMessage() {\n\n String messageText = messageTextArea.getText();\n SecureCharSequence secureCharSequence = new SecureCharSequence(currentPassword.getPassword());\n String signMessage = this.address.signMessage(messageText, secureCharSequence);\n signature.setText(signMessage);\n\n }",
"@Override\r\n\tpublic void blockId() {\n\t\t\r\n\t\tSystem.out.println(\"Here you have information about blockID\");\r\n\t\t\r\n\t}",
"public void setBlock(Block node) {\n setChild(node, 0);\n }",
"public void setBlock(Block node) {\n setChild(node, 0);\n }",
"public void setBlockAsChanged(Integer block_id) {\n this.addIntoQueue(block_id);\n this.getBlockByID(block_id).setShadow(null);\n // getBlockByID(block_id).deleteOutputValues();// this function is missing, but probably not necessary\n for (Type port : this.getBlockByID(block_id).outputs) {\n for(Type dst_port : port.getDst()) {\n dst_port.deleteValues();\n }\n for(Integer id : port.getAllDstID()) {\n this.setBlockAsChanged(id);\n }\n }\n }",
"public synchronized void block() {\n\t\tsetBlocked(true);\n\t}",
"public void onBlockPlacedBy(World p_149689_1_, int p_149689_2_, int p_149689_3_, int p_149689_4_, EntityLivingBase p_149689_5_, ItemStack p_149689_6_)\n {\n int var7 = ((MathHelper.floor_double((double)(p_149689_5_.rotationYaw * 4.0F / 360.0F) + 0.5D) & 3) + 2) % 4;\n p_149689_1_.setBlock(p_149689_2_, p_149689_3_ + 1, p_149689_4_, this, 8 | var7, 2);\n }",
"Block createBlock();",
"public static void revertBlock(final Block block, final Material defaulttype) {\r\n\t\tif (instances_.containsKey(block)) {\r\n\t\t\t//We clone the list first, then remove before reverting. The tempblock list is cloned so we get no concurrent modification exceptions\r\n\t\t\tList<TempBlock> tempBlocks = new ArrayList<>(instances_.get(block));\r\n\t\t\ttempBlocks.forEach((b) -> {\r\n\t\t\t\tTempBlock.remove(b);\r\n\t\t\t\tb.trueRevertBlock();\r\n\t\t\t});\r\n\t\t} else {\r\n\t\t\tif ((defaulttype == Material.LAVA) && GeneralMethods.isAdjacentToThreeOrMoreSources(block, true)) {\r\n\t\t\t\tfinal BlockData data = Material.LAVA.createBlockData();\r\n\r\n\t\t\t\tif (data instanceof Levelled) {\r\n\t\t\t\t\t((Levelled) data).setLevel(0);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tblock.setBlockData(data, applyPhysics(data.getMaterial()));\r\n\t\t\t} else if ((defaulttype == Material.WATER) && GeneralMethods.isAdjacentToThreeOrMoreSources(block)) {\r\n\t\t\t\tfinal BlockData data = Material.WATER.createBlockData();\r\n\r\n\t\t\t\tif (data instanceof Levelled) {\r\n\t\t\t\t\t((Levelled) data).setLevel(0);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tblock.setBlockData(data, applyPhysics(data.getMaterial()));\r\n\t\t\t} else {\r\n\t\t\t\tblock.setType(defaulttype, applyPhysics(defaulttype));\r\n\t\t\t}\r\n\t\t}\r\n\t}"
]
| [
"0.6768346",
"0.656461",
"0.64040685",
"0.6313514",
"0.62441236",
"0.6239538",
"0.62127787",
"0.6142195",
"0.6080721",
"0.6064794",
"0.60456663",
"0.5998095",
"0.5992274",
"0.5986399",
"0.5954483",
"0.5852182",
"0.5818843",
"0.5816265",
"0.57124156",
"0.5671193",
"0.56211233",
"0.55965",
"0.5586832",
"0.55115175",
"0.55058044",
"0.5489272",
"0.54882497",
"0.54644406",
"0.5463541",
"0.5452281",
"0.542185",
"0.5420984",
"0.54182833",
"0.5400327",
"0.53975433",
"0.5392242",
"0.53906846",
"0.5377353",
"0.53708845",
"0.5365687",
"0.5356913",
"0.5353666",
"0.5337462",
"0.5333814",
"0.5332758",
"0.5332286",
"0.5311795",
"0.5311795",
"0.5311795",
"0.5280629",
"0.5280136",
"0.52717495",
"0.5264131",
"0.5262906",
"0.5240923",
"0.5188003",
"0.51854247",
"0.51747787",
"0.5172099",
"0.5165191",
"0.5160955",
"0.51578677",
"0.51571757",
"0.5141454",
"0.5138303",
"0.5135305",
"0.5126035",
"0.5116109",
"0.5114925",
"0.51064515",
"0.5104693",
"0.5100811",
"0.50989974",
"0.5091594",
"0.50874996",
"0.5084965",
"0.5080589",
"0.5070398",
"0.50584245",
"0.5053614",
"0.50390184",
"0.50374603",
"0.5028349",
"0.5018697",
"0.50163245",
"0.5013839",
"0.50125486",
"0.500765",
"0.5001595",
"0.5000457",
"0.4983901",
"0.49828833",
"0.4972269",
"0.49644962",
"0.49644962",
"0.4940211",
"0.49393687",
"0.49350584",
"0.49329036",
"0.49328247"
]
| 0.6515033 | 2 |
Sends a packet to the player using NMS | void sendPacketToPlayer(Player player, Object packet); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void sendPacket(Player player, Object packet);",
"public void sendPacket() throws IOException {\n\t\tbyte[] buf = playerList.toString().getBytes();\n\n\t\t// send the message to the client to the given address and port\n\t\tInetAddress address = packet.getAddress();\n\t\tint port = packet.getPort();\n\t\tpacket = new DatagramPacket(buf, buf.length, address, port);\n\t\tsocket.send(packet);\n\t}",
"public void send(Packet packet);",
"private void sendPacket(Player player, Object packet) {\n\t\ttry {\n\t\t\tObject handle = player.getClass().getMethod(\"getHandle\", new Class[0]).invoke(player, new Object[0]);\n\t\t\tObject playerConnection = handle.getClass().getField(\"playerConnection\").get(handle);\n\t\t\tplayerConnection.getClass().getMethod(\"sendPacket\", new Class[] { getNMSClass(\"Packet\") })\n\t\t\t\t\t.invoke(playerConnection, new Object[] { packet });\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void sendRawPacket(T player, ByteBuf packet) throws IllegalArgumentException;",
"void SendPacket(int packetIdentifier);",
"public void sendPacket(Packet pPacket) {\n mPacket = pPacket;\r\n \r\n \r\n }",
"public void sendNBTPacket()\n\t{\n\t\tif (!this.worldObj.isRemote)\n\t\t{\n\t\t\tNBTTagCompound tag = new NBTTagCompound();\n\t\t\tthis.writeToNBT(tag);\n\t\t\tPacketHandler.sendPacketToClients(ResonantInduction.PACKET_TILE.getPacket(this, SimplePacketTypes.NBT.name, this, tag), worldObj, new Vector3(this), 64);\n\t\t}\n\t}",
"@Override\n\tpublic void sendPacket(JBPacket packet) {\n\t\t\n\t}",
"private void sendNetMessage(Connect4MoveMessage message) {\n\t\tSystem.out.println(\"sending move over network\");\n\t\tSystem.out.println(\"sending row: \"+message.getRow());\n\t\tSystem.out.println(\"sending col: \"+message.getColumn());\n\t\tSystem.out.println(\"sending player: \"+message.getColor());\n\t\ttry {\n\t\t\toutput.writeObject(message);\n\t\t\toutput.flush();\n\t\t} catch (Exception x) {\n\t\t\tx.printStackTrace();\n\t\t}\n\t}",
"public void sendRequest(Pdu packet);",
"public static void sendToServer(Player player, String server) {\n try {\n ByteArrayDataOutput out = ByteStreams.newDataOutput();\n out.writeUTF(\"Connect\");\n out.writeUTF(server);\n player.sendMessage(StringUtil.translate(\"&eSending to \" + server + \"...\"));\n player.sendPluginMessage(astroHub, \"BungeeCord\", out.toByteArray());\n } catch (Exception e) {\n player.sendMessage(StringUtil.translate(\"&cAn error occurred while sending to the server.\"));\n }\n }",
"public int sendPacket(DatagramPacket p){\r\n\t\t\r\n\t\tpacket = p;\r\n\t\ttry{\r\n\t\t\tsock.send(packet);\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\tLogger.write(\"Errore invio pacchetto: \"+ex.getMessage());\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn 0;\r\n\t\t\r\n\t}",
"public void sendPlayerName(String s) {\n try {\n dOut.writeUTF(s);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send player name\");\n e.printStackTrace();\n }\n }",
"public void send(Packet<?> packet) {\n sendPacket(packet);\n }",
"void sendMessage(Message m) throws IOException {\n String msg = m.toString();\n\n buffer = msg.getBytes(\"Windows-1256\");\n toServer = new DatagramPacket(buffer, buffer.length,\n InetAddress.getByName(sendGroup), port);\n if (m.getType() == Message.DATA) {\n manager.mManager.addMessage(m);\n }\n\n System.out.println(getName() + \"-->\" + m);\n serverSocket.send(toServer);\n }",
"public void sendPacket(String data) throws IOException {\n\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));\n out.write(data + \"\\0\");\n out.flush();\n }",
"void sendPacket(Packet p){\n InetAddress address=p.getDestination().getAddress();\n if (this.socket.isClosed()){\n return;\n }\n if (chatRooms.containsKey(address)){\n chatRooms.get(address).sendMessage(p);\n }else{\n Socket distant;\n Discussion discussion;\n try {\n distant = new Socket(address, NetworkManager.UNICAST_PORT);\n discussion = new Discussion(distant);\n discussion.addObserver(this);\n chatRooms.put(distant.getInetAddress(), discussion);\n new Thread(discussion).start();\n discussion.sendMessage(p);\n } catch (IOException e) {\n System.out.println(\"Erreur à l'envois d'un nouveau message\");\n }\n }\n }",
"public static void sendPacket(int sequenceNo) throws IOException {\r\n if (sequenceNo <= packets.size()) {\r\n // System.out.println(\"Sending packet: \" + sequenceNo);\r\n byte[] packet = packets.get(sequenceNo - 1);\r\n DatagramPacket pkt = new DatagramPacket(packet, 1024, receiverIP, receiverPort);\r\n senderSocket.send(pkt);\r\n }\r\n }",
"public void sendmsg(Message msg){\n try {\n oos.writeObject(new Datapacket(1, null, msg,null, null));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void send(Packet packet) {\n\t\t\tthis.send(packet, session);\n\t}",
"public void sendPlayerToServer(Player player, String serverName) {\n\t\tByteArrayOutputStream b = new ByteArrayOutputStream();\n\t\tDataOutputStream out = new DataOutputStream(b);\n\t\ttry {\n\t\t\tout.writeUTF(\"Connect\");\n\t\t\tout.writeUTF(serverName);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"No connection to server.\");\n\t\t}\n\t\tplayer.sendPluginMessage(plugin, \"BungeeCord\", b.toByteArray());\n\t}",
"void send(TransportPacket pkt) throws CCommException, IllegalStateException;",
"void sendRawPacket(UUID uuid, ByteBuf packet) throws IllegalArgumentException;",
"public void sendData(Datapacket packet){\n try {\n oos.flush();\n oos.reset();\n oos.writeObject(packet);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}",
"public void sendPacket(Packet packet) {\n\t\tif(packet == null) {\n\t\t\tSystem.err.println(\"attempting to send but packet is null\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tif(sOutput != null)\n\t\t\t\tsOutput.writeObject(packet);\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"error sending packet: [\"+packet+\", \"+packet.getData()+\"]\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tif(sOutput != null)\n\t\t\t\tsOutput.reset();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"error resetting output stream\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tif(sOutput != null)\n\t\t\t\tsOutput.flush();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"error flushing output stream\");\n\t\t}\n\t}",
"void send(TransportPacket pkt, Address addr) throws CCommException, IllegalStateException;",
"@Override\n public void sendChatMessage(EntityPlayer player) {\n }",
"public void sendMessagePacket(String to, String message, Message.Type type) {\n Message msg = new Message(to, type);\n msg.setBody(message);\n xmppConnection.sendPacket(msg);\n// receiveMessage(connection);\n }",
"public void send(ILPacket dataPacket) throws IOException {\n\t\t \n\t\tDatagramPacket packet;\n\t\t\n\t\tbyte[] buffer = dataPacket.getBytes();\n\t\t\n\t\tpacket = new DatagramPacket(buffer, buffer.length, this.group, this.writePort);\n\t\tthis.outSocket.send(packet);\n\t}",
"public void sendMove (Move m){\n connect();\n try{\n doStream.writeUTF(\"MOVE\");\n doStream.writeUTF(currentUser.getUserName());\n doStream.writeUTF(m.toString());\n } catch (IOException e){\n e.printStackTrace();\n }\n\n disconnect();\n }",
"public static void sendPacket(@NonNull Player player, @NonNull PacketContainer packet) {\n try {\n manager().sendServerPacket(player, packet);\n } catch (InvocationTargetException e) {\n throw new RuntimeException(e);\n }\n }",
"public void sendJoiningPlayer() {\r\n Player p = nui.getPlayerOne();\r\n XferJoinPlayer xfer = new XferJoinPlayer(p);\r\n nui.notifyJoinConnected();\r\n networkPlayer.sendOutput(xfer);\r\n }",
"@Override\n public void Send(PacketDatagram packet) {\n try {\n //For Group Message\n if (packet.getSendMSG().isUDPMulticastMode()) {\n for (Network sendNetwork : networkManager.getNetworks().values()) {\n MakeSourceProfile(packet, sendNetwork);\n sendNetwork.sendAllNodes(packet);\n }\n } //For private message\n else {\n NetworkType nnodetype = packet.getNextNode().getNetworkType();\n Network sendNetwork = networkManager.getNetworks().get(nnodetype);\n MakeSourceProfile(packet, sendNetwork);\n sendNetwork.send(packet);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"public void sendPlayer(Player p) {\n\t\tp.sendMessage(ChatColor.GREEN + \"Welcome to the \" + ChatColor.GOLD + \"Tregmine Network\" + ChatColor.GREEN + \" Lobby!\");\n\t\tByteArrayDataOutput out = ByteStreams.newDataOutput();\n\t\tout.writeUTF(\"Connect\");\n\t\tout.writeUTF(\"Hub\");\n\t\tp.sendPluginMessage(this, \"BungeeCord\", out.toByteArray());\n\t}",
"public void sendStartGame (){\n connect();\n try{\n doStream.writeUTF(\"GAME_START\");\n doStream.writeUTF(currentUser.getUserName());\n\n } catch (IOException e){\n e.printStackTrace();\n }\n disconnect();\n }",
"public void sendUdpMessageToDrone() {\n\n DatagramPacket packet = null;\n try {\n packet = new DatagramPacket(message.getBytes(), message.length(), InetAddress.getByName(\"127.0.0.1\"), 6000);\n sender.send(packet);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void send(DataPacket packet){\n if(deviceDestination != null){\n deviceDestination.receive(packet, portDestination);\n }\n }",
"private void sendMessage(CommandSender p, String msg) {\n\t\tif (p instanceof Player) {\n\t\t\tif (!((Player) p).isOnline()) return;\n\t\t}\n\t\t_.msg(p, GameMode.Sonic, msg);\n\t}",
"public void packetSent(NIOSocket socket, Object tag)\n {\n }",
"public void send(String msg){\r\n\t\ttry{\r\n\t\t\tbyte[] buf = msg.getBytes();\r\n \tInetAddress address = InetAddress.getByName(server);\r\n \tDatagramPacket packet = new DatagramPacket(buf, buf.length, address, PORT);\r\n \tsocket.send(packet);\r\n }catch(Exception e){}\r\n\t\t\r\n\t}",
"public void sendStartGame() {\n \t\tclient.sendTCP(new StartGame());\n \t}",
"@Override\n\tpublic void sendPacket() {\n\t\t\n\t\tStringBuilder theURL = new StringBuilder();\n\t\t\n\t\ttheURL.append(core.modelCore.targetURL);\n\t\ttheURL.append(\"michael/updateevent.php?\");\n\t\ttheURL.append(\"page=\" + \"eleven\" +\"&\"); //page = \"three\"&\n\t\ttheURL.append(\"name=\" + core.modelCore.selectedEvent.eventName +\"&\");\n\t\ttheURL.append(\"answer=\" + yesBox.isChecked() +\"&\");\n\t\ttheURL.append(\"user=\" + core.modelCore.username);\n\t\t\n\t\tSystem.out.println( theURL.toString() );\n\t\t\n\t\tLogic_PHP.getResponseFromURL(core, theURL.toString());\n\t}",
"private void sendPacket(Player p, String world, int x, int y, int z, byte rotation, int entityID, int itemID) {\r\n\t\t//world check\r\n\t\tif(p==null || !p.getWorld().getName().equals(world)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tPacketContainer newPacket = new PacketContainer(24);\r\n\r\n\t\t//entitiy id\r\n\t\tnewPacket.getIntegers().\r\n\t\twrite(0, entityID).\r\n\t\twrite(1, (int) EntityType.ZOMBIE.getTypeId()).\r\n\t\t//position\r\n\t\twrite(2, (int) x).\r\n\t\twrite(3, (int) y).\r\n\t\twrite(4, (int) z);\r\n\t\t\r\n\t\t//rotation\r\n\t\tnewPacket.getBytes().\r\n\t\twrite(2, rotation);\r\n\r\n\t\t//invisibility\r\n\t\tWrappedDataWatcher zombieW = zombieWatcher.deepClone();\r\n\t\tzombieW.setObject(0, (byte) 0x20);\r\n\t\t\r\n\t\tnewPacket.getDataWatcherModifier().\r\n\t\twrite(0, zombieW);\r\n\t\t\r\n\t\t//equipment\r\n\t\tPacketContainer ePacket = new PacketContainer(Packets.Server.ENTITY_EQUIPMENT);\r\n\t\t\r\n\t\tePacket.getIntegers().\r\n\t\twrite(0, entityID);\r\n\t\t\r\n\t\tePacket.getItemModifier().\r\n\t\twrite(0, new ItemStack(itemID));\r\n\r\n\t\ttry {\r\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(p, newPacket);\r\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(p, ePacket);\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void sendData(byte[] data) {\r\n\t\t//send packet\r\n\t\ttry {\r\n\t\t\tout.write(data);\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void sendUpdate(String gameString, int sequenceNo) throws IOException\n\t{\n\t\tfor (Client client : clients)\n\t\t{\n\t\t\t//System.out.println(\"Sending packet to \" + client.toString()); \n\t\t\tUDPSender sender;\n\t\t\ttry {\n\t\t\t\tsender = new UDPSender(client, client.port, gameString, sequenceNo);\n\t\t\t\tThread worker = new Thread(sender);\n\t\t\t\tworker.start();\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 sendPacket(InetAddress address, byte[] data) {\n try {\n send.setAddress(address);\n send.setData(Encryption.encrypt(data));\n socket.send(send);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}",
"void send();",
"private static void sendSpecialPacket(ProfilingPacketType packet){\r\n\r\n try{\r\n clientObjectOutputStream.writeObject(packet);\r\n clientObjectOutputStream.flush();\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log and stuff\r\n }\r\n }",
"public void send(final String data) throws IOException {\r\n\t\t//Writes the packet as a byte buffer, using the data from the packet and converting in to bytes\r\n\t\t//Adds an end-of-packet footer to the data\r\n\t\tif(channel.isConnected()) {\r\n\t\t\tchannel.write(ByteBuffer.wrap((data + \"%EOP%\").getBytes()));\r\n\t\t}\r\n\t}",
"public void sendResponse(){\n\n //DropItPacket dropPkt = new DropItPacket(Constants.PONG.toString());\n // Send out a dropit Packet\n Channel channel = e.getChannel();\n ChannelFuture channelFuture = Channels.future(e.getChannel());\n ChannelEvent responseEvent = new DownstreamMessageEvent(channel, channelFuture, packet, channel.getRemoteAddress());\n// System.out.println(\"===== sending to\" + channel.getRemoteAddress().toString());\n try{\n ctx.sendDownstream(responseEvent);\n }catch (Exception ex){\n System.out.println(\"Node: \" + fileServer.getNode().getPort() + \" sending to\"+\n channel.getRemoteAddress().toString() +\"failed! \" + ex.toString());\n }\n }",
"public void sendResponse(Pdu packet);",
"public void send(String msg) throws IOException {\n\t\tbyte[] data = msg.getBytes() ;\n DatagramPacket packet = new DatagramPacket(data, data.length, host, port);\n s.send(packet);\n\t}",
"public void sendRequest(){\n fileServer.sendMessage(this.packet,new FileNode(ip,port));\n }",
"private void sendPlayerChat1(String s) {\n\t\tc.getPA().sendFrame200(969, 591);\n\t\tc.getPA().sendFrame126(c.playerName, 970);\n\t\tc.getPA().sendFrame126(s, 971);\n\t\tc.getPA().sendFrame185(969);\n\t\tc.getPA().sendFrame164(968);\n\t}",
"public void send(Opcode opcode);",
"public int sendDataPacket()\n{\n \n return(0);\n\n}",
"private void sendNewPackets() {\n\t\twhile(alive && (sendQueue.size() != 0)) {\n\t\t\tNetPacket send = sendQueue.peek();\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"(NetAPI) Sending a \" + send.getClass().getName() + \" packet\");\n\t\t\t\toos.writeObject(send);\n\t\t\t\toos.flush();\n\t\t\t\tsendQueue.poll();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"(NetAPI) Could not send packet: \" + e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"public void send(NetPacket packet) {\n\t\tsendQueue.add(packet);\n\t}",
"public void sendPacket(String message) {\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException ie) {\r\n }\r\n\r\n if (ipAddress == null) {\r\n MessageEvent e = new MessageEvent(MessageType.SendWarning);\r\n e.description = \"cannot send message to unreported device\";\r\n e.HWid = HWid;\r\n RGPIO.message(e);\r\n } else if (status == PDeviceStatus.ACTIVE) {\r\n UDPSender.send(message, ipAddress, this, RGPIO.devicePort);\r\n }\r\n }",
"public void processPacket(String packet) {\n try {\n Log.e(\"info\", packet);\n JSONObject obj = new JSONObject(packet);\n JSONObject toSend = new JSONObject();\n String id = obj.getString(\"packet\");\n\n\n\n if (id.equals(\"acknowledge\")) {\n LocalPlayer ply = new LocalPlayer(activity);\n ply.identifier = socket.toString();\n ply.socket = socket;\n activity.playerMap.put(ply.identifier, ply);\n ply.latitude = 0;\n ply.longitude = 0;\n ply.bomb = false;\n ply.name = obj.getString(\"name\");\n ply.update();\n\n JSONObject playerObj = new JSONObject();\n\n playerObj.put(\"identifier\", ply.identifier);\n playerObj.put(\"latitude\", ply.latitude);\n playerObj.put(\"longitude\", ply.longitude);\n playerObj.put(\"name\", ply.name);\n playerObj.put(\"bomb\", ply.bomb);\n toSend.put(\"player\", playerObj);\n\n server.sendPacket(socket, \"initialize\", toSend);\n }\n else if (id.equals(\"bomb\")) {\n for (HashMap.Entry<String, LocalPlayer> entry : activity.playerMap.entrySet()) {\n entry.getValue().bomb = false;\n }\n LocalPlayer ply = activity.playerMap.get(obj.getString(\"identifier\"));\n if (ply.identifier.equals(activity.selfPlayer))\n Toast.makeText(activity, \"You got the bomb\", Toast.LENGTH_LONG).show();\n\n if (ply != null) {\n ply.bomb = true;\n }\n }\n else if (id.equals(\"location\")) {\n LocalPlayer ply = activity.playerMap.get(socket.toString());\n if (ply != null) {\n ply.longitude = obj.getDouble(\"longitude\");\n ply.latitude = obj.getDouble(\"latitude\");\n ply.update();\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }",
"public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}",
"public void writePacket(DataOutputStream dataOutputStream) throws IOException;",
"public void send() {\n\t}",
"public void connectToServerPVP() {\n\n\t\ttry \n\t\t{\n\t\t\tSocket socket = new Socket(host, 8001);\n\t\t\tfromServer = new DataInputStream(socket.getInputStream());\n\t\t\ttoServer = new DataOutputStream(socket.getOutputStream());\n\n\t\t\ttoServer.writeInt(vsPLAYER);\n\n\t\t} catch (IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\tThread thread = new Thread(new clientHandlingPlayer(fromServer, toServer));\n\t\tthread.start();\n\t}",
"public int send(Object key, Packet p) throws IOException {\n if (p instanceof NIOPacket) {\n NIOPacket n = (NIOPacket) p;\n return send(key, n.getBuffer());\n } else {\n if (T.t) {\n T.warn(\"This has not been tested\");\n }\n int len = p.getAvailable();\n p.readArray(byteArray, 0, len);\n return send(key, byteArray, 0, len);\n }\n }",
"public void sendUdpMessageToDrone(ActionEvent actionEvent) {\n\n String message = testmessagebox.getText();\n DatagramPacket packet = null;\n try {\n packet = new DatagramPacket(message.getBytes(), message.length(), InetAddress.getByName(\"127.0.0.1\"), 6000);\n sender.send(packet);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void sendCommand(Command cmd);",
"@Override\r\n public void onSendTcp(Object obj) {\n mNetworkManager.sendTCPData(obj);\r\n }",
"public void send(T caller, Packet<T, S> packet);",
"public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public static void send(ArrayList<Packet> packets) {\r\n DatagramPacket sendPacket;\r\n for (Packet packet : packets) {\r\n byte[] packetByte = packet.toByteArray();\r\n sendPacket = new DatagramPacket(packetByte, packetByte.length, IPAddress, port);\r\n try {\r\n serverSocket.send(sendPacket);\r\n }\r\n catch (IOException e) {\r\n System.out.println(\"IOException while trying to send packet \" + packet.getSequenceNum());\r\n }\r\n System.out.println(\"Sent a packet back.\");\r\n System.out.println(packet.toString());\r\n }\r\n }",
"public void play() throws IOException{\n\t\tString imsg = Util.readInputStream(socket.getInputStream());\n\t\t//identificar o comando (PLAY)\n\t\tString code = imsg.replace(Constants.END_TOKEN, \"\");\n\t\t//log\n\t\tLogger.info(\"Recebendo um comando de PLAY para \" + code);\n\t\t//acionar o comando do server server\n\t\tboolean ok = false;\n\t\ttry {\n\t\t\tok = server.play(code);\n\t\t\t//enviar um OK ou ERROR\n\t\t\tString omsg = (ok ? \"OK\" : \"ERROR\") + Constants.END_TOKEN;\n\t\t\tsocket.getOutputStream().write(omsg.getBytes());\n\t\t\tsocket.getOutputStream().flush();\n\t\t} \n\t\tcatch (ProxyServerException e) {\n\t\t\tok = false;\n\t\t}\n\t\t//\n\t\t//enviar um OK ou ERROR\n\t\tString omsg = (ok ? \"OK\" : \"ERROR\") + Constants.END_TOKEN;\n\t\tsocket.getOutputStream().write(omsg.getBytes());\n\t\tsocket.getOutputStream().flush();\n\t}",
"public void sendPlayerData() throws JSONException {\n\t\tJSONObject json = new JSONObject();\n\t\tJSONObject json2 = new JSONObject();\n\t\tjson2.put(\"Name\", playerModel.getPlayerName());\n\n\t\tswitch (playerModel.getPlayerColor()) {\n\n\t\tcase PL_BLUE:\n\t\t\tjson2.put(\"Farbe\", \"Blau\");\n\t\t\tbreak;\n\t\tcase PL_RED:\n\t\t\tjson2.put(\"Farbe\", \"Rot\");\n\t\t\tbreak;\n\t\tcase PL_WHITE:\n\t\t\tjson2.put(\"Farbe\", \"Weiß\");\n\t\t\tbreak;\n\t\tcase PL_YELLOW:\n\t\t\tjson2.put(\"Farbe\", \"Orange\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\n\t\t}\n\t\tjson.put(\"Spieler\", json2);\n\t\tlog.info(playerModel + \" verschickt\");\n\t\tcontroller.getClient().send(json);\n\t}",
"private void send(String jsonRequest) throws NotConnectedException {\n Packet request = new GcmPacketExtension(jsonRequest).toPacket();\n connection.sendPacket(request);\n }",
"public void sendBindResponse(Pdu packet);",
"private void send (String messageToSend) throws IOException {\n byte[] ba = messageToSend.getBytes();\n \n packetToSend = new DatagramPacket (ba, ba.length, serverIPAddress, PORT);\n \n //Envia el paquete por el socket.\n clientSocket.send(packetToSend);\n }",
"public static void sendMessage(String s) {\r\n sendRaw(\"PRIVMSG \" + channel + \" :\" + s + \"\\n\");\r\n Console.writeLine(nick + \": \" + s);\r\n }",
"public void sendNameInfo(Player plr){\r\n\t\t\r\n\t\tString message = \"UDNM\" + lobby.getNameString();\r\n\t\tsendOnePlayer(plr, message);\r\n\t}",
"@Override\n\tpublic void send(DuDuMessage message, Object sessionToken) {\n\t\t\n\t}",
"public static void sendOK() {\n try {\n Server destServer = ServerState.getInstance().getServers().get(sourceID);\n MessageTransfer.sendServer(\n ServerMessage.getOk( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent OK to s\"+destServer.getServerID());\n }\n catch(Exception e) {\n System.out.println(\"INFO : Server s\"+sourceID+\" has failed. OK message cannot be sent\");\n }\n }",
"private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}",
"void sendRequest() throws IOException {\n InetAddress ipAddress = InetAddress.getByName(RootServers[serverNo]);\r\n\r\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\r\n DataOutputStream dataOutputStream = new DataOutputStream(byteArrayOutputStream);\r\n\r\n dataOutputStream.writeShort(0x1234);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n dataOutputStream.writeShort(0x0000);\t\t\t\r\n\r\n String[] domainParts = domain.split(\"\\\\.\");\t//Splits the given domian wrt '.'\r\n for (int i = 0; i < domainParts.length; i++) {\r\n byte[] domainBytes = domainParts[i].getBytes(\"UTF-8\");\r\n dataOutputStream.writeByte(domainBytes.length);\r\n dataOutputStream.write(domainBytes);\r\n }\r\n\r\n dataOutputStream.writeByte(0x00);\t\t\t\r\n\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n dataOutputStream.writeShort(0x0001);\t\t\t\r\n\r\n byte[] dnsFrameByteArray = byteArrayOutputStream.toByteArray();\r\n DatagramPacket datagramPacket = new DatagramPacket(dnsFrameByteArray, dnsFrameByteArray.length,\r\n ipAddress, Port);\r\n socket.send(datagramPacket);\t//Sends the request to obtained IP address\r\n }",
"@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}",
"protected void emit(Player p, String message) {\n }",
"public boolean sendMove(Move move) {\n // Define an array as large as the most packets sent by a single Move\n // Some moves send more than one packet.\n Packet[] packets = new Packet[2];\n\n switch (move.action) {\n case START:\n packets[0] = new Packet(Network.Command.START);\n packets[0].putField(\"id\", move.id);\n break;\n\n case ANTE_STAKES:\n packets[0] = new Packet(Network.Command.ANTE);\n packets[0].putField(\"chips\", move.chips);\n\n packets[1] = new Packet(Network.Command.STAKES);\n packets[1].putField(\"stakes_client\", move.cStakes);\n packets[1].putField(\"stakes_server\", move.sStakes);\n break;\n\n case STAKES:\n packets[0] = new Packet(Network.Command.STAKES);\n packets[0].putField(\"stakes_client\", move.cStakes);\n packets[0].putField(\"stakes_server\", move.sStakes);\n break;\n\n case QUIT:\n packets[0] = new Packet(Network.Command.QUIT);\n break;\n\n case ANTE_OK:\n packets[0] = new Packet(Network.Command.ANTE_OK);\n break;\n\n case DEALER_HAND:\n packets[0] = new Packet(Network.Command.DEALER);\n // Changed to 1 byte char\n packets[0].putField(\"dealer\", \"\" + move.dealer);\n //packets[0].putWrittable(new Writable.String(\"\"+move.dealer));\n\n packets[1] = new Packet(Network.Command.HAND);\n packets[1].putField(\"cards\", cardsToCodeString(move.cards));\n break;\n\n case PASS:\n packets[0] = new Packet(Network.Command.PASS);\n break;\n\n case BET:\n packets[0] = new Packet(Network.Command.BET);\n packets[0].putField(\"chips\", move.chips);\n break;\n\n case RAISE:\n packets[0] = new Packet(Network.Command.RAISE);\n packets[0].putField(\"chips\", move.chips);\n break;\n\n case FOLD:\n packets[0] = new Packet(Network.Command.FOLD);\n break;\n\n case CALL:\n packets[0] = new Packet(Network.Command.CALL);\n break;\n\n case DRAW:\n packets[0] = new Packet(Network.Command.DRAW);\n // Create a list of arguments as follows: '2' 2C 3H\n if (move.cDrawn == move.cards.length)\n // Changed to 1 byte char\n packets[0].putField(\"number\", move.cDrawn + \"\");\n\n else\n // Changed to 1 byte char\n packets[0].putField(\"number\", move.cards.length + \"\");\n\n if (move.cards.length > 0)\n packets[0].putField(\"cards\", cardsToCodeString(move.cards));\n\n break;\n\n case DRAW_SERVER:\n packets[0] = new Packet(Network.Command.DRAW_SERVER);\n // Create a list of arguments as follows: DRWS 2C 3H 4D '2'\n if (move.cDrawn > 0)\n packets[0].putField(\"cards\", cardsToCodeString(move.cards));\n\n // Changed to 1 byte char\n packets[0].putField(\"number\", \"\" + move.sDrawn);\n break;\n\n case SHOW:\n packets[0] = new Packet(Network.Command.SHOWDOWN);\n packets[0].putField(\"cards\", cardsToCodeString(move.cards));\n break;\n\n case ERROR:\n packets[0] = new Packet(Network.Command.ERROR);\n packets[0].putWrittable(new Writable.VariableString(2, move.error));\n }\n\n // Write all packets to the network\n for (Packet packet : packets) {\n if (packet != null) {\n // TODO Deal with exception inside try-catch\n\n if (!comUtils.write_NetworkPacket(packet)) {\n // Something has gone wrong. Terminate everything\n try {\n comUtils.getSocket().close();\n } catch (IOException ex) {\n NET_ERROR(\"Network: Error while closing connection.\");\n }\n comUtils = null;\n return false;\n }\n \n LOG_CLIENT(packet.toString());\n \n }\n\n }\n return true;\n }",
"public synchronized void sendNo() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_NO);\r\n\t\tendMessage();\r\n\t}",
"public void generateAroundPlayer() {\n try {\n DataOutputStream dataOutputStream = new DataOutputStream(SixEngineClient.client.socket.getOutputStream());\n\n dataOutputStream.writeByte(5);\n dataOutputStream.writeInt(getChunkX());\n dataOutputStream.writeInt(getChunkY());\n dataOutputStream.writeInt(getChunkZ());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void send(Message msg);",
"@Override\n\tpublic void onPacketData(NetworkManager network, Packet250CustomPayload packet, Player player)\n\t{\n\n\t}",
"private void send(String p)\t{\t\t\t\r\n\t\ttry{\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\toOutStream.writeObject(p);\r\n\t\t\t\toOutStream.flush();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e){\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void send(final Packet packet)\n\t{\n\t\tsend = new Thread(\"send_thread\"){\n\t\t\tpublic void run(){\n\t\t\t\tDatagramPacket dgpack = new DatagramPacket(\n\t\t\t\t\t\tpacket.getData(),\n\t\t\t\t\t\tpacket.getData().length,\n\t\t\t\t\t\tpacket.getAddr(),\n\t\t\t\t\t\tpacket.getPort()\n\t\t\t\t);\n\n\t\t\t\ttry{\n\t\t\t\t\tsocket.send(dgpack);\n\n\t\t\t\t}catch(IOException e)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tsend.start();\n\t}",
"public void sendPacket(String label, byte[] data) throws UnknownHostException {\n\t\tif (data != null && data.length + PACKET_HEADER_SIZE > SERVER_PACKET_MAX_SIZE) {\n\t\t\tSystem.err.println(\"Couldn't send packet, too much data. \");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\twhile (label.length() < 4) \n\t\t\tlabel = label + \" \";\n\t\tbyte[] labelArray = Arrays.copyOf(label.getBytes(Charset.forName(\"UTF-8\")), 4);\n\t\t\n\t\tbyte[] portArray = new byte[4];\n\t\tportArray[0] = (byte) (socket.getLocalPort() >> 24 & 0xFF);\n\t\tportArray[1] = (byte) (socket.getLocalPort() >> 16 & 0xFF);\n\t\tportArray[2] = (byte) (socket.getLocalPort() >> 8 & 0xFF);\n\t\tportArray[3] = (byte) (socket.getLocalPort() & 0xFF);\n\t\t\n\t\tbyte[] header = addArrays(\n\t\t\t\taddArrays(\n\t\t\t\t\t\tlabelArray, InetAddress.getLocalHost().getAddress()), \n\t\t\t\tportArray);\n\t\t\n\t\tDatagramPacket packet;\n\t\tif (data == null) {\n\t\t\tpacket = new DatagramPacket(header, header.length, connectedIP, SERVER_PORT);\n\t\t}else {\n\t\t\tbyte[] completeData = addArrays(header, data);\n\t\t\tpacket = new DatagramPacket(completeData, completeData.length, connectedIP, SERVER_PORT);\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tsocket.send(packet);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sendMessage(final ProxiedPlayer player, final BaseComponent component) {\r\n\t\tplayer.sendMessage(component);\r\n\t}",
"public void sendMessage(Player player, MessageType type, Object... args){\r\n player.sendMessage(type.format(args));\r\n }",
"private boolean sendToServer(clSyncNTPMessage syncNTPMessage) {\n\t\tObjectOutputStream objOut;\n\t\ttry {\n\t\t\tobjOut = new ObjectOutputStream(outStream);\n\t\t\tobjOut.writeObject(syncNTPMessage);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\t\t\n\t\treturn true;\n\t}",
"public void send(ComObject com) {\n\t\ttry {\n\t\t\tcomOut.writeObject(com);\n\t\t\tcomOut.flush();\n\t\t} catch (IOException e) {\n\t\t\trun = false;\n\t\t\tserver.disconnectPlayer(this);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void ping() {\n\t\tHeader.Builder hb = Header.newBuilder();\n\t\thb.setNodeId(999);\n\t\thb.setTime(System.currentTimeMillis());\n\t\thb.setDestination(-1);\n\n\t\tCommandMessage.Builder rb = CommandMessage.newBuilder();\n\t\trb.setHeader(hb);\n\t\trb.setPing(true);\n\n\t\ttry {\n\t\t\t// direct no queue\n\t\t\t// CommConnection.getInstance().write(rb.build());\n\n\t\t\t// using queue\n\t\t\tCommConnection.getInstance().enqueue(rb.build());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}"
]
| [
"0.80055237",
"0.741014",
"0.7246287",
"0.7112514",
"0.70636773",
"0.70345527",
"0.6959099",
"0.6684794",
"0.6610336",
"0.6601115",
"0.6477263",
"0.6436056",
"0.6432929",
"0.64050454",
"0.6397663",
"0.6395187",
"0.6349137",
"0.63351053",
"0.6329943",
"0.63278115",
"0.6309667",
"0.62640876",
"0.625717",
"0.624519",
"0.6238633",
"0.62197214",
"0.62050354",
"0.61634874",
"0.61512524",
"0.6143874",
"0.6133093",
"0.6127531",
"0.612086",
"0.611893",
"0.6112231",
"0.6098724",
"0.60973954",
"0.60861295",
"0.6072598",
"0.60709006",
"0.605457",
"0.60401946",
"0.59982246",
"0.5990541",
"0.5983222",
"0.5980596",
"0.59636146",
"0.59624493",
"0.59532773",
"0.59462917",
"0.59407926",
"0.59281504",
"0.5924038",
"0.59231204",
"0.59133536",
"0.58825165",
"0.58804584",
"0.5867862",
"0.5865019",
"0.5856877",
"0.5846189",
"0.5842075",
"0.58368254",
"0.58335465",
"0.5821664",
"0.58211106",
"0.58179677",
"0.5817614",
"0.58015585",
"0.57982296",
"0.5796756",
"0.57596093",
"0.5755448",
"0.57514805",
"0.57490826",
"0.57306784",
"0.5729479",
"0.57277685",
"0.572668",
"0.57231385",
"0.57215285",
"0.5709452",
"0.5708202",
"0.57048225",
"0.57043743",
"0.56961673",
"0.5688218",
"0.5684913",
"0.56819594",
"0.56809336",
"0.56753314",
"0.56625384",
"0.56601775",
"0.5659004",
"0.5649502",
"0.5640794",
"0.5630745",
"0.5629052",
"0.561712",
"0.56138504"
]
| 0.7786434 | 1 |
Constructs a waiting room to let clients connect to the server and wait till there is a room available for a Match | public WaitingRoom(int socketPort, int rmiPort) {
this.socketPort = socketPort;
this.rmiPort = rmiPort;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void showCreatorWaitingRoom();",
"@Override\n public void automatch() {\n Bundle am = RoomConfig.createAutoMatchCriteria(1, 1, 0);\n\n // build the room config:\n RoomConfig.Builder roomConfigBuilder = makeBasicRoomConfigBuilder();\n roomConfigBuilder.setAutoMatchCriteria(am);\n RoomConfig roomConfig = roomConfigBuilder.build();\n\n // create room:\n Games.RealTimeMultiplayer.create(gameHelper.getApiClient(), roomConfig);\n\n // prevent screen from sleeping during handshake\n getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n }",
"public static WebSocket<JsonNode> join() {\n return new WebSocket<JsonNode>() {\n @Override\n public void onReady(In<JsonNode> in, Out<JsonNode> out) {\n ConnectedPlayer lowerPlayer = new ConnectedPlayer(in, out);\n log.trace(\"Incoming {}.\", lowerPlayer);\n\n // Tell the player that we are trying to find a pair.\n new WaitingForOpponent(lowerPlayer.getId()).write(out);\n\n // Try to pair the incoming player with another player.\n ConnectedPlayer upperPlayer = pendingPlayers.poll();\n if (upperPlayer != null) {\n Game game = new Game(\n upperPlayer, lowerPlayer,\n new Game.ShutdownListener() {\n @Override\n public void onGameShutdown(String gameId) {\n Application.onGameShutdown(gameId);\n }\n });\n game.start();\n games.put(game.getId(), game);\n log.trace(\"Started {} with {} and {}.\", game, upperPlayer, lowerPlayer);\n }\n\n // Else, queue the player into the waiting list.\n else {\n pendingPlayers.add(lowerPlayer);\n log.trace(\"Queued {}.\", lowerPlayer);\n }\n }\n };\n }",
"public PlayersHolder() {\n randomRoomPlayers = new LinkedBlockingQueue<>();\n freePlayersRoom = new FreePlayers();\n }",
"public Reservation requestRoom(String guestName){\n\t\tfor (int i = 0; i<rooms.length; i++){\n\t\tif (rooms[i] == null){\n\t\t//then create a reservation for an empty room for the specified guest\n\t\t//and return the new Reservation;\n\t\t\trooms[i] = new Reservation(guestName, i);\n\t\t\treturn rooms[i];\n\t\t}\n\t\t}\n\t\t//Otherwise, add the guest into the end of waitList and return null\n\t\twaitList.add(guestName);\n\t\treturn null;\n\t}",
"public int lookAround(){\n Waiter w = (Waiter) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = w.getWaiterID();\n \tstate_fields[1] = w.getWaiterState();\n\n Message m_toServer = new Message(4, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n w.setState((int) m_fromServer.getStateFields()[1]);\n int result = (int) m_fromServer.getReturnValue();\n com.close ();\n\n return result;\n }",
"public void prepareTheBill(){\n Waiter w = (Waiter) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = w.getWaiterID();\n \tstate_fields[1] = w.getWaiterState();\n\n Message m_toServer = new Message(3, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n w.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"protected void enterWaitRoom(ArenaPlayer p){\n \t\tfinal String name = p.getName();\n \t\tinsideArena.add(name);\n \t\tinsideWaitRoom.add(name);\n \t\t/// Store the point at which they entered the waitroom\n \t\tif (!oldlocs.containsKey(name)) /// First teleportIn is the location we want\n \t\t\toldlocs.put(name, p.getLocation());\n \t\tBTInterface.stopTracking(p);\n \t\tTeam t = getTeam(p);\n \t\tPerformTransition.transition(this, MatchState.ONENTERWAITROOM, p, t, false);\n \t\tarenaInterface.onEnterWaitRoom(p,t);\t\n \t}",
"private static void createRooms() {\n// Room airport, beach, jungle, mountain, cave, camp, raft, seaBottom;\n\n airport = new Room(\"airport\");\n beach = new Room(\"beach\");\n jungle = new Room(\"jungle\");\n mountain = new Room(\"mountain\");\n cave = new Room(\"cave\");\n camp = new Room(\"camp\");\n seaBottom = new Room(\"seabottom\");\n\n //Setting the the exits in different rooms\n beach.setExit(\"north\", jungle);\n beach.setExit(\"south\", seaBottom);\n beach.setExit(\"west\", camp);\n\n jungle.setExit(\"north\", mountain);\n jungle.setExit(\"east\", cave);\n jungle.setExit(\"south\", beach);\n\n mountain.setExit(\"south\", jungle);\n\n cave.setExit(\"west\", jungle);\n\n camp.setExit(\"east\", beach);\n\n seaBottom.setExit(\"north\", beach);\n\n // Starting room\n currentRoom = airport;\n }",
"public void createRooms()//Method was given\n { \n \n // create the rooms, format is name = new Room(\"description of the situation\"); ex. desc = 'in a small house' would print 'you are in a small house.'\n outside = new Room(\"outside\", \"outside of a small building with a door straight ahead. There is a welcome mat, a mailbox, and a man standing in front of the door.\", false);\n kitchen = new Room(\"kitchen\", \"in what appears to be a kitchen. There is a sink and some counters with an easter egg on top of the counter. There is a locked door straight ahead, and a man standing next to a potted plant. There is also a delicious looking chocolate bar sitting on the counter... how tempting\", true);\n poolRoom = new Room(\"pool room\", \"in a new room that appears much larger than the first room.You see a table with a flashlight, towel, and scissors on it. There is also a large swimming pool with what looks like a snorkel deep in the bottom of the pool. Straight ahead of you stands the same man as before.\", true);\n library = new Room(\"library\", \"facing east in a new, much smaller room than before. There are endless rows of bookshelves filling the room. All of the books have a black cover excpet for two: one red book and one blue book. The man stands in front of you, next to the first row of bookshelves\", true);\n exitRoom = new Room(\"exit\", \"outside of the building again. You have successfully escaped, congratulations! Celebrate with a non-poisonous chocolate bar\",true);\n \n // initialise room exits, goes (north, east, south, west)\n outside.setExits(kitchen, null, null, null);\n kitchen.setExits(poolRoom, null, outside, null);\n poolRoom.setExits(null, library, kitchen, null);\n library.setExits(null, null, exitRoom, poolRoom);\n exitRoom.setExits(null, null, null, null); \n \n currentRoom = outside; // start game outside\n }",
"public static void waitToGo() {\r\n try {\r\n sendMessageToMaster(SocketMessage.SLAVE_READY_TO_GO);\r\n wait_to_run.acquire();\r\n } catch (InterruptedException e) {\r\n }\r\n }",
"public void alertTheWaiter(){\n Chef c = (Chef) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = c.getChefID();\n \tstate_fields[1] = c.getChefState();\n\n Message m_toServer = new Message(1, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n \t}\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n c.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"@FXML\n private void fastMatch() {\n if (Client.getUser().getState() != Type.UserState.IDLE) {\n JOptionPane.showMessageDialog(null, \"您已经在房间中\");\n return;\n }\n Room match = null;\n for (Room room : Client.roomsMap.values()) {\n if (room.hasSeat()) {\n match = room;\n Client.getUser().setRoom(match.getId());\n Client.getUser().setState(Type.UserState.READY);\n Client.updateUser();\n match.setState(Type.RoomState.READY);\n if (match.getPlayer1() == null || match.getPlayer1().isEmpty()) {\n match.setPlayer1(Client.getUser().getAccount());\n Client.updateRoom(room, Type.UpdateRoom.PLAYER1IN);\n } else {\n match.setPlayer2(Client.getUser().getAccount());\n Client.updateRoom(room, Type.UpdateRoom.PLAYER2IN);\n }\n break;\n }\n }\n if (match != null) {\n client.gotoGame(match);\n } else {\n int res = JOptionPane.showConfirmDialog(null, \"暂时找不到匹配的房间哦,是否要自己创建一个呢?\", \"未找到匹配的房间\", JOptionPane.YES_NO_OPTION);\n if (res == JOptionPane.YES_OPTION) {\n client.gotoCreateRoom();\n }\n }\n }",
"private void waitForConnection() throws IOException{\n\t\tshowMessage(\"\\n Waiting for a Punk Ass Bitch to connection... \\n \");\n\t\tConnection = server.accept();\n\t\tshowMessage(\"Now connected to \" + Connection.getInetAddress().getHostName() + \". Punk.\");\n\t\t//this is your own IP address, the machine running the the code\n\t\t//\n\t\t\n\t}",
"private void createRooms()//refactored\n {\n currentRoom = RoomCreator.buildCurrentRooms();//new\n }",
"private void createRooms()\n {\n Room a1, a2, a3, b1, b2, b3, c1, c2, c3, bridge, outskirts;\n \n // create the rooms\n a1= new Room(\"see a strong river flowing south to the west. The trees seem to be letting up a little to the north.\");\n a2 = new Room(\" are still in a very dense forest. Maybe the trees are clearing up the the north?\");\n a3 = new Room(\"see a 30 foot cliff looming over the forest to the east. No way you could climb that. Every other direction is full of trees.\");\n b1 = new Room(\"see a strong river flowing to the west. Heavily wooded areas are in all other directions.\");\n b2 = new Room(\"see only trees around you.\");\n b3 = new Room(\"see a 30 foot cliff to the east. There might be one spot that is climbable. Trees surround you every other way.\");\n c1 = new Room(\" see the river cuts east here, but there seems to be a small wooden bridge to the south over it. The trees are less the direction that the river flows.\");\n c2 = new Room(\"are on a peaceful riverbank. If you weren't lost, this might be a nice spot for a picnic.\");\n c3 = new Room(\"see a 30 foot cliff to your east and a strong flowing river to the south. Your options are definitely limited.\");\n outskirts = new Room(\"make your way out of the trees and find yourself in an open field.\");\n cliff = new Room(\"managed to climb up the rocks to the top of the cliff. Going down, doesn't look as easy. You have to almost be out though now!\");\n bridge = new Room(\"cross the bridge and find a small trail heading south!\");\n win = new Room(\" manage to spot a road not too far off! Congratulations on finding your way out of the woods! Have a safe ride home! :)\" );\n fail = new Room(\" are entirely lost. It is pitch black out and there is no way that you are getting out of here tonight. I'm sorry, you LOSE.\");\n \n // initialise room exits\n a1.setExit(\"north\", outskirts);\n a1.setExit(\"east\", a2);\n a1.setExit(\"south\", b1);\n \n a2.setExit(\"east\", a3);\n a2.setExit(\"west\", a1);\n a2.setExit(\"south\", b2);\n a2.setExit(\"north\", outskirts);\n \n a3.setExit(\"north\", outskirts);\n a3.setExit(\"west\", a2);\n a3.setExit(\"south\", b3);\n \n b1.setExit(\"north\", a1);\n b1.setExit(\"east\", b2);\n b1.setExit(\"south\", c1);\n \n b2.setExit(\"east\", b3);\n b2.setExit(\"west\", b1);\n b2.setExit(\"south\", c2);\n b2.setExit(\"north\", a2);\n \n b3.setExit(\"north\", a3);\n b3.setExit(\"west\", b2);\n b3.setExit(\"south\", c3);\n b3.setExit(\"up\", cliff);\n \n c1.setExit(\"north\", b1);\n c1.setExit(\"east\", c2);\n c1.setExit(\"south\" , bridge);\n \n c2.setExit(\"east\", c3);\n c2.setExit(\"west\", c1);\n c2.setExit(\"north\", b2);\n \n c3.setExit(\"west\", c2);\n c3.setExit(\"north\", b3);\n \n outskirts.setExit(\"north\", win);\n outskirts.setExit(\"east\", a3);\n outskirts.setExit(\"west\", a1);\n outskirts.setExit(\"south\", a2);\n \n cliff.setExit(\"north\", outskirts);\n cliff.setExit(\"east\", win);\n \n bridge.setExit(\"north\", c1);\n bridge.setExit(\"south\", win);\n \n c3.addItem(new Item (\"shiny stone\", 0.1));\n a1.addItem(new Item (\"sturdy branch\", 2));\n a3.addItem(new Item(\"water bottle\" , 0.5));\n a3.addItem(new Item(\"ripped backpack\" , 1));\n currentRoom = b2; // start game outside\n }",
"public void callTheWaiter(){\n Student s = (Student) Thread.currentThread();\n\n \tCommunicationChannel com = new CommunicationChannel (serverHostName, serverPortNumb);\n \tObject[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n \tstate_fields[0] = s.getID();\n \tstate_fields[1] = s.getStudentState();\n \t\n Message m_toServer = new Message(7, params, 0, state_fields, 2, null); \n Message m_fromServer; \n \n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n \n s.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"@Override\n\tpublic void onGetMatchedRoomsDone(MatchedRoomsEvent arg0) {\n\t\t\n\t}",
"@Override\n public void run() {\n new Thread(() -> {\n int port = config.getPort();\n try (ServerSocket server = new ServerSocket(port)) {\n List<ClientConnection> clientlist = new ArrayList<>();\n System.out.println(\"Game Server waiting on Port \" + port + \"!\");\n while (true) {\n Socket client = server.accept();\n\n synchronized (clientlist) {\n ClientConnection cc = new ClientConnection(client, playerId);\n int playerNr = (int) (playerId % 2) + 1;\n cc.start();\n\n clientlist.add(cc);\n System.out.println(\"Client \" + playerNr + \" (playerID: \" + playerId + \") accepted!\");\n\n playerId++; // increase playerId;\n if (clientlist.size() == 2) {\n synchronized (games) { // TODO no sync needed?\n Game game = new Game(clientlist);\n game.start();\n games.add(game);\n clientlist.clear(); // wait for two new clients\n }\n }\n }\n }\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }).start();\n }",
"public void ready(int playerNo) {\r\n\t\tthis.playersReady++;\r\n\r\n\t\t// Tell all of the players in the lobby that somebody has become ready\r\n\t\tthis.queueMessage(\"% \" + playerNo + \" READY\");\r\n\r\n\t\t// Do a 15 second timer to wait for more people to join\r\n\t\tif (this.playersReady != 0 && this.playersReady == this.players.size()) {\r\n\t\t\tthis.startReadyTimer(true);\r\n\t\t}\r\n\t}",
"public void waitingForPartner();",
"public static void sendElectionRequest()\n {\n System.out.println(\"INFO : Election initiated\");\n int numberOfFailedRequests = 0;\n for ( int key : ServerState.getInstance().getServers().keySet() ) {\n if( key > ServerState.getInstance().getSelfID() ){\n Server destServer = ServerState.getInstance().getServers().get(key);\n try {\n MessageTransfer.sendServer(\n ServerMessage.getElection( String.valueOf(ServerState.getInstance().getSelfID()) ),\n destServer\n );\n System.out.println(\"INFO : Sent election request to s\"+destServer.getServerID());\n }\n catch(Exception e){\n System.out.println(\"WARN : Server s\"+destServer.getServerID() +\n \" has failed, cannot send election request\");\n numberOfFailedRequests++;\n }\n }\n\n }\n if (numberOfFailedRequests == ServerState.getInstance().getNumberOfServersWithHigherIds()) {\n if(!electionInProgress){\n //startTime=System.currentTimeMillis();\n electionInProgress = true;\n receivedOk = false;\n Runnable timer = new BullyAlgorithm(\"Timer\");\n new Thread(timer).start();\n }\n }\n }",
"public synchronized void makeAvailable(){\n isBusy = false;\n }",
"public void waitServersReady() {\n }",
"public void startWait() {\n\t\tTimer timer = new Timer();\n\t\ttimer.schedule(new TimerTask() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tif (server.getNumberOfPlayers() > 0 && !server.gameStartFlag) {\n\t\t\t\t\tserver.runGame();\n\t\t\t\t}\n\t\t\t}\n\t\t}, 120000);\n\t\t// 2min(2*60*1000)\n\t\tsendMessage(\"The game will start 2 minute late\");\n\t}",
"public Room(int id, int roomNumber, int persons, int days){\n this.id = id;\n this.roomNumber = roomNumber;\n this.persons = persons;\n this.days = days;\n available = false; //default value, assignment not necessary\n }",
"public Roster readyRoster ()\n\t{\n\t\tList<Player> resultList = new ArrayList<Player>();\n\t\tIterator<Player> it = iterator();\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tPlayer p = it.next();\n\t\t\tif(p.available())\n\t\t\t\tresultList.add(p);\n\t\t}\n\t\treturn new Rosters(resultList);\n\t}",
"public void takeABus() {\n\t\tClientCom clientCom = new ClientCom(RunParameters.ArrivalQuayHostName, RunParameters.ArrivalQuayPort);\n\t\twhile (!clientCom.open()) {\n\t\t\tSystem.out.println(\"Arrival Quay not active yet, sleeping for 1 seccond\");\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tThread.currentThread().interrupt();\n\t\t\t}\n\t\t}\n\t\t;\n\t\tPassenger passenger = (Passenger) Thread.currentThread();\n\t\tMessage pkt = new Message();\n\t\tpkt.setType(MessageType.PASSENGERS_WAITING);\n\t\tpkt.setId(passenger.getPassengerId());\n\n\t\tclientCom.writeObject(pkt);\n\t\tpkt = (Message) clientCom.readObject();\n\n\t\tpassenger.setCurrentState(pkt.getState());\n\t\tclientCom.close();\n\t}",
"private void sendWait(final String ip, final String port)\n {\n final String url = \"http://\" + ip + \":\" + port + \"/wait?peer_id=\" + peerId;\n final String message = \"\";\n AsyncHttpURLConnection httpConnection =\n new AsyncHttpURLConnection(\"GET\", url, message, new AsyncHttpURLConnection.AsyncHttpEvents() {\n String toPeerId;\n @Override\n public void onHttpError(String errorMessage) {\n Log.e(TAG, \"Room connection error: \" + errorMessage);\n }\n\n @Override\n public void onHttpComplete(String response) {\n// parseWait(response, toPeerId);\n parseWait2(response, toPeerId);\n }\n\n @Override\n public void onPeerId(String pId) {\n if (!isEmpty(pId))\n {\n toPeerId = pId;\n }\n }\n });\n httpConnection.send();\n }",
"public void waitForPackets() {\n while (true) {\n // receive packet and display contents\n try {\n // set up packet\n byte[] data = new byte[100];\n DatagramPacket receivePacket = new DatagramPacket(\n data, data.length);\n\n // wait for packet\n socket.receive(receivePacket);\n\n // Displaying message Client side\n displayMessage(\"\\nPlayer: \" + new String(receivePacket.getData(), 0, receivePacket.getLength()));\n } catch (IOException exception) {\n displayMessage(exception + \"\\n\");\n exception.printStackTrace();\n }\n }\n }",
"@Override\n public boolean isAvailable() {\n return room.isAvailable();\n }",
"public WaiterAgent(String name, RestaurantGui gui, AStarTraversal aStar,\n\t\t Restaurant restaurant, Table[] tables) {\n\tsuper();\n\tthis.gui = gui;//main gui\n\tthis.name = name;\n\tthis.aStar = aStar;\n\tthis.restaurant = restaurant;//the layout for astar\n\twaiter = new Waiter(name.substring(0,2), new Color(255, 0, 0), restaurant);\n\t//currentPosition = new Position(3,13);\n\tcurrentPosition = new Position(waiter.getX(), waiter.getY());\n\tcurrentPosition.moveInto(aStar.getGrid());\n\toriginalPosition = currentPosition;//save this for moving into\n\tthis.tables = tables;\n\n\tString query =\n \"1 (?person)(and (person ?person)(hasname ?person \\\"\" + name+\"\\\"))\";\n loomInstance = PowerloomHelper.retrieve1(query);\n if (loomInstance!=null){\n PowerloomHelper.getloomMap().put(loomInstance, this);\n System.out.println(\"Found person in knowledge base: \" + loomInstance);\n }\n else {\n System.out.println(\"No waiter found. Instantiating...\");\n loomInstance = PowerloomHelper.instantiate(\"person\",this);//puts it in map\n\n String h = PowerloomHelper.instantiate(\"home\",null);\n query = \"(and (workingWaiter \" + loomInstance + \")\"\n +\"(haslocation \" +h+\" \"+gui.getneighborhoodInstance()\n +\") (lives \"+ loomInstance+\" \"+h+\")(hasname \"\n + loomInstance+\" \\\"\"+name+\"\\\"))\";\n print(\"asserting facts about new instance:\"+query);\n PLI.sAssertProposition(query, PowerloomHelper.getWorkingModule(), null);\n }\n\n }",
"protected static int creatingMaxWQSelect(int train, Passenger[][] waitingRoom) {\n // Declaring the number for selecting.\n int maxQueueSelect;\n\n // When the waiting room is higher than 5.\n if (waitingRoomSize(train, waitingRoom) > 5) {\n maxQueueSelect = new Random().nextInt(6) + 1;\n }\n // When the waiting room is empty\n else if (waitingRoomSize(train, waitingRoom) == 0){\n maxQueueSelect = 0;\n }\n // When the waaiting room is not empty and less than or equal to 5.\n else {\n maxQueueSelect = new Random().nextInt(waitingRoomSize(train, waitingRoom)) + 1;\n }\n\n // Returning the generated random number.\n return maxQueueSelect;\n }",
"@Test\n @SuppressWarnings({\"PMD.JUnitTestsShouldIncludeAssert\"})\n public void testCreateRoomOkResponse() {\n // given\n final CreateRoomRequest createRoomRequest = CreateRoomRequest.builder().name(TEST_ROOM).build();\n given(clientResponseProvider.sendPostRequest(\n MultiUserChatConstants.MULTI_USER_CHAT_CREATE_ROOM_COMMAND, createRoomRequest))\n .willReturn(OK_RESPONSE);\n\n // when\n multiUserChatService.createRoom(TEST_ROOM);\n\n // then\n\n }",
"private void startMatch() {\n game = new Match(players.get(0), players.get(1), \"Nueva Partida\");\n showMatch();\n state = 1;\n }",
"static void goRoom(Command command) throws InterruptedException {\n if (currentRoom == airport) {\n lockRoom(command);\n }\n if (!command.hasSecondWord()) {\n System.out.println(\"Go where?\");\n return;\n }\n\n String direction = command.getSecondWord();\n\n Room nextRoom = currentRoom.getExit(direction);\n player.setCurrentRoom(nextRoom);\n /* loop that when next room is equel to null it print a message that says \"there is no door\" \n but if nextRoom is not equel null set currentRoom to nextRoom and print the description of the new room*/\n if (nextRoom == null) {\n System.out.println(\"There is no path!\");\n } else {\n currentRoom = nextRoom;\n System.out.println(player.getCurrentRoom().getLongDescription());\n\n }\n\n forceDialog();\n }",
"public void selectroom() throws InterruptedException\r\n\t{\r\n\t\tExplicitWait(Select_Room);\r\n\t\t//SeleniumRepo.waitForElementPresent(Select_Room);\r\n\r\n\t\tif (Select_Room.isDisplayed()) \r\n\t\t{\r\n\t\t\tSelect_Room.click();\r\n\t\t\tThread.sleep(3000);\r\n\t\t\tSystem.out.println(\"Clicked on select room\");\r\n\t\t\tlogger.info(\"Clicked on select room\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on select room\");\r\n\r\n\t\t} else \r\n\t\t{\r\n\t\t\tSystem.out.println(\"Unable to Click on select room\");\r\n\t\t\tlogger.error(\"Unable to Click on select room\");\r\n\t\t\ttest.log(Status.FAIL, \"Unable to Click on select room\");\r\n\t\t}\r\n\r\n\t\t//Thread.sleep(2000);\r\n\t\tint roomlength = rooms.size();\r\n\t\tSystem.out.println(\"What is room size \" + roomlength);\r\n\t\tThread.sleep(3000);\r\n\r\n\t\t\r\n\t\t//This for loop selects the same room for a multi room booking. Inorder to change it\r\n\t\t//must handel the selection of a different room which clasp the select room dropdown\r\n\t\tfor(int L=1;L<=roomlength;L++)\r\n\t\t{\r\n\r\n\t\t\tif (SeleniumRepo.driver.findElement(By.xpath(\"(//ul[@class='rooms-selector-list']//li)[\"+L+\"]/a\")).isDisplayed()) \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t{ \r\n\t\t\t\tJavascriptexecutor(SeleniumRepo.driver.findElement(By.xpath(\"(//ul[@class='rooms-selector-list']//li)[\"+L+\"]/a\")));\r\n\t\t\t\tThread.sleep(7000);\r\n\r\n\t\t\t\t//System.out.println(\"room \"+L+\" selected successfully\");\r\n\t\t\t\tlogger.info(\"rooms selected successfully\");\r\n\t\t\t\ttest.log(Status.INFO, \"rooms selected successfully\");\r\n\r\n\t\t\t} else \r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"rooms not selected successfully\");\r\n\t\t\t\tlogger.error(\"rooms not selected successfully\");\r\n\t\t\t\ttest.log(Status.FAIL, \"rooms not selected successfully\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void waitForDecision(){\n if(gameOver) {\n return;\n }\n if(!decisionActive) {\n try {\n uiWaiting = true;\n synchronized(uiWait) {\n uiWait.wait();\n }\n } catch (Exception e) { logger.log(\"\"+e); }\n }\n }",
"public void start(){\n log.debug(\"Starting Host Router\");\n lobbyThread = pool.submit(new Runnable() {\n public void run() {\n waitForClients();\n }\n });\n }",
"private void createRooms()\n {\n Room outside, theatre, pub, lab, office , hallway, backyard,chickenshop;\n \n // create the rooms\n outside = new Room(\"outside the main entrance of the university\");\n theatre = new Room(\"in a lecture theatre\");\n pub = new Room(\"in the campus pub\");\n lab = new Room(\"in a computing lab\");\n office = new Room(\"in the computing admin office\");\n hallway=new Room (\"in the hallway of the university\");\n backyard= new Room( \"in the backyard of the university\");\n chickenshop= new Room(\"in the chicken shop\");\n \n \n \n // initialise room exits\n outside.setExit(\"east\", theatre);\n outside.setExit(\"south\", lab);\n outside.setExit(\"west\", pub);\n\n theatre.setExit(\"west\", outside);\n theatre.setExit(\"north\", backyard);\n\n pub.setExit(\"east\", outside);\n\n lab.setExit(\"north\", outside);\n lab.setExit(\"east\", office);\n \n office.setExit(\"south\", hallway);\n office.setExit(\"west\", lab);\n \n chickenshop.setExit(\"west\", lab);\n\n currentRoom = outside; // start game outside\n \n }",
"private void startReadyTimer(boolean newPlayerReady) {\r\n\t\t// Make sure that the server is not full\r\n\t\t// Otherwise, start the game right away\r\n\t\tthis.currentTimerNo++;\r\n\t\tif (this.currentTimerNo > Integer.MAX_VALUE / 2)\r\n\t\t\tthis.currentTimerNo = 0;\r\n\r\n\t\t// Only create a timer to start the game if a timer currently isn't\r\n\t\t// running or if a new player became ready, preventing multiple games\r\n\t\t// from starting\r\n\t\tif (newPlayerReady || !this.lobbyTimerActive) {\r\n\t\t\tif (this.players.size() < 6) {\r\n\t\t\t\tthis.lobbyTimerActive = true;\r\n\t\t\t\tlong startTime = System.nanoTime();\r\n\r\n\t\t\t\t// Create new thread to prevent interference with other\r\n\t\t\t\t// activities\r\n\t\t\t\tnew Thread(new Updatable(this.currentTimerNo) {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t// Keep checking if the entire lobby is ready until the\r\n\t\t\t\t\t\t// number of seconds specified by the\r\n\t\t\t\t\t\t// 'Server#START_DELAY' constant is reached\r\n\t\t\t\t\t\twhile ((System.nanoTime() - startTime) / 1000000000 < Server.START_DELAY) {\r\n\r\n\t\t\t\t\t\t\t// Cancel the timer if the number of players ready\r\n\t\t\t\t\t\t\t// changes\r\n\t\t\t\t\t\t\tif (Server.this.playersReady == 0\r\n\t\t\t\t\t\t\t\t\t|| Server.this.playersReady != Server.this.players\r\n\t\t\t\t\t\t\t\t\t\t\t.size()\r\n\t\t\t\t\t\t\t\t\t|| this.value != Server.this.currentTimerNo) {\r\n\t\t\t\t\t\t\t\tServer.this.println(\"Cancelled timer\");\r\n\t\t\t\t\t\t\t\tServer.this.lobbyTimerActive = false;\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tThread.sleep(10);\r\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tServer.this.startGame();\r\n\t\t\t\t\t}\r\n\t\t\t\t}).start();\r\n\t\t\t}\r\n\t\t\t// Skip the timer if the lobby is full and all the players are ready\r\n\t\t\t// because it's not possible for more players to join.\r\n\t\t\telse if (this.players.size() == this.playersReady) {\r\n\t\t\t\tthis.startGame();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void verify_Roomsavailable(String SelectProperty) throws InterruptedException\r\n\t{\r\n\t\tThread.sleep(2000);\r\n\t\tif(Roomslist.size()>0)\r\n\t\t{\r\n\t\t\tlogger.info(\"Rooms and rates are available for the property \"+SelectProperty);\r\n\t\t\ttest.log(Status.PASS,\"Rooms and rates are available for the property \"+SelectProperty);\r\n\r\n\t\t\tfor(int i=0;i<Roomslist.size();i++)\r\n\t\t\t{\r\n\t\t\t\ttest.log(Status.INFO, Roomslist.get(i).getText()+\" room is available for the property \"+SelectProperty);\r\n\t\t\t\tlogger.info(Roomslist.get(i).getText()+\" room is available for the property \"+SelectProperty);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tlogger.error(SelectProperty+\" property is not displaying any room\");\r\n\t\t\ttest.log(Status.FAIL,SelectProperty+\" property is not displaying any room\");\r\n\t\t}\r\n\t}",
"private void newGame() {\n try {\n toServer.writeInt(READY);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void createChatRoom(String name) throws RemoteException {\n\n\t\ttry {\n\t\t\tIChatServer chatStub;\n\t\t\t// make a new chatroom with supplied name\n\t\t\tIChatroom newRoom = new Chatroom(name);\n\t\t\tview.append(\"Make new ChatRoom: \" + newRoom.getName() + \"\\n\");\n\t\t\t// make a new chatserver stub for user in the newchatroom\n\t\t\tIChatServer newChatServer = new ChatServer(user, newRoom);\n\t\t\tview.append(\"Make new ChatServer: <User:\" + newChatServer.getUser().getName() + \", ChatServer: \"\n\t\t\t\t\t+ newChatServer.getChatroom().getName() + \">\\n\");\n\t\t\t//get a chatstub for new chatserver \n\t\t\tchatStub = (IChatServer) UnicastRemoteObject.exportObject(newChatServer, IChatServer.BOUND_PORT);\n\t\t\tregistry.rebind(IChatServer.BOUND_NAME + newRoom.hashCode(), chatStub);\n\t\t\tview.append(\"Make new ChatServer Stub for chatserver.\\n\");\n\t\t\t//add chatstub to newRoom\n\t\t\tnewRoom.addChatServer(chatStub);\n\t\t\tview.append(\"Add new ChatServer Stub to newRoom.\\n\");\n\t\t\t//add newchatroom to the user chatroom lists\n\t\t\tuser.addRoom(newRoom);\n\t\t\tview.append(\"Add new chatroom <\" + newRoom.getName() + \"> to user <\" + user.getName() + \">\\n\");\n\t\t\t//add all chatservers in that room to hashset\n\t\t\tHashSet<IChatServer> proxy = new HashSet<IChatServer>();\n\t\t\tfor (IChatServer item : newChatServer.getChatroom().getChatServers()) {\n\t\t\t\tIChatServer proxyChatServer = new ProxyIChatServer(item);\n\t\t\t\tproxy.add(proxyChatServer);\n\t\t\t}\n\t\t\tIMain2MiniAdpt miniMVCAdpt = view.makeMini(newChatServer, proxy);\n\t\t\tminiMVCAdpts.put(newRoom, miniMVCAdpt);\n\t\t\tcountRoom++;\n\t\t} catch (Exception e) {\n\t\t\tview.append(\"Error creating chatroom!\");\n\t\t}\n\n\t}",
"private void waitForConnection() throws IOException {\n\n\t\t\tSystem.out.println(\"Waiting for connection\" + myConID + \"\\n\");\n\t\t\tconnection = server.accept(); // allow server to accept connection\n\t\t\tSystem.out.println(\"Connection \" + myConID + \" received from: \"\n\t\t\t\t\t+ connection.getInetAddress().getHostName());\n\t\t}",
"@Override\n public void run(){\n\n boolean gotReady = false;\n\n try {\n player.sendCommandToPlayer(new Command(CommandTypes.waitingForClientToGetReady , null));\n } catch (IOException e) {\n God.removeOfflinePlayerNotifyOthers(player);\n }\n\n while (! gotReady){\n try {\n Command command = player.receivePlayerRespond();\n\n if(command.getType() == CommandTypes.imReady){\n gotReady = true;\n }\n\n else {\n God.doTheCommand(command);\n }\n\n } catch (IOException e) {\n God.removeOfflinePlayerNotifyOthers(player);\n break;\n }\n }\n }",
"public WaitMessage() {\n super(\"Wait for other player...\\n\");\n }",
"public synchronized void waitForAssignment(\n final HRegionInfo hri) throws InterruptedException {\n if (!isRegionAssigned(hri)) return;\n\n while(!server.isStopped() && !isRegionAssigned(hri)) {\n RegionState rs = getRegionState(hri);\n LOG.info(\"Waiting on \" + rs + \" to be assigned\");\n waitForUpdate(100);\n }\n\n if (server.isStopped()) {\n LOG.info(\"Giving up wait on region \" +\n \"assignment because stoppable.isStopped is set\");\n }\n }",
"void waitingForMyTurn();",
"private Room createCastle(){\n Room hallway = new Room(\"the hallway\");\n\n Room theStairs = new Room(\"the staircase\");\n Medic medic = new Medic(20, 3);\n theStairs.medic = medic;\n\n Room livingRoom = new Room(\"the living room\");\n Monster monster = new Monster(\"Grimeteeth\", 10, 100);\n livingRoom.monster = monster;\n\n Room firstFloor = new Room(\"first floor\");\n Room secondFloor = new Room(\"second floor\");\n Room thirdFloor = new Room(\"third floor\");\n monster = new Monster(\"Voodoobug\", 30, 100);\n thirdFloor.monster = monster;\n\n Room balcony = new Room(\"balcony\");\n balcony.endOfGameText = \"You fall out of the balcony, and die\";\n Room chamber = new Room(\"Chamber\");\n monster = new Monster (\"Smogstrike\", 50, 100);\n chamber.monster = monster;\n chamber.hasTreasure = true;\n chamber.endOfGameText = \"YEEES! You won the game, and found the treasure!\";\n\n Room bedchamber = new Room(\"bedchamber\");\n bedchamber.endOfGameText = \"You fall in a deep sleep, and will never wake up!\";\n\n\n /**\n * Options connecting to the rooms hallway,theStairs,sale,livingRoom variable\n */\n Connections[] hallwayConnections = new Connections[2];\n hallwayConnections[0] = new Connections(\"go left\",\"l\", theStairs);\n hallwayConnections[1] = new Connections(\"go right\",\"r\", livingRoom);\n hallway.connections = hallwayConnections;\n\n Connections[] stairsConnections = new Connections[3];\n stairsConnections[0] = new Connections(\"first floor\",\"1\", firstFloor);\n stairsConnections[1] = new Connections(\"second floor\",\"2\", secondFloor);\n stairsConnections[2] = new Connections(\"third floor\",\"3\", thirdFloor);\n theStairs.connections = stairsConnections;\n\n Connections[] firstFloorConnections = new Connections[3];\n firstFloorConnections[0] = new Connections(\"blue door\",\"b\",hallway);\n firstFloorConnections[1] = new Connections(\"red door\",\"r\",balcony);\n firstFloorConnections[2] = new Connections(\"yellow door\",\"y\",chamber);\n firstFloor.connections = firstFloorConnections;\n\n Connections[] secondFloorConnections = new Connections[1];\n secondFloorConnections[0] = new Connections(\"small door\",\"s\",chamber);\n secondFloor.connections = secondFloorConnections;\n\n Connections[] thridConnections = new Connections[2];\n thridConnections[0] = new Connections(\"big door\",\"bd\",balcony);\n thridConnections[1] = new Connections(\"elevator\",\"e\",firstFloor);\n thirdFloor.connections = thridConnections;\n\n Connections[] livingRoomConnections = new Connections[2];\n livingRoomConnections[0] = new Connections(\"iron door\",\"i\",hallway);\n livingRoomConnections[1] = new Connections(\"tree door\",\"t\",bedchamber);\n livingRoom.connections = livingRoomConnections;\n\n return hallway;\n }",
"public void waitForClients() throws IOException {\r\n try {\r\n while (this.running) {\r\n System.out.println(\"Waiting for a client ...\");\r\n Socket socket = serverSocket.accept();\r\n new ClientThread(socket).start();\r\n }\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n } finally {\r\n serverSocket.close();\r\n }\r\n }",
"private void createRooms()\n {\n // create the rooms\n prison = new Room(\"Prison\", \"Prison. You awake in a cold, dark cell. Luckily, the wall next to you has been blown open. \\nUnaware of your current circumstances, you press on... \\n\");\n promenade = new Room(\"Promenade\",\"Promenade. After stumbling upon a ladder, you decided to climb up. \\n\" + \n \"You appear outside a sprawling promenade. There appears to be something shiny stuck in the ground... \\n\");\n sewers = new Room(\"Sewers\",\"Sewers. It smells... interesting. As you dive deeper, you hear something creak\");\n ramparts = new Room(\"Ramparts\", \"Ramparts. You feel queasy as you peer down below. \\nAs you make your way along, you're greated by a wounded soldier.\" +\n \"\\nIn clear agony, he slowly closes his eyes as he says, 'the king... ki.. kil... kill the king..' \\n\");\n depths = new Room(\"Depths\", \"Depths. You can hardly see as to where you're going...\" + \"\\n\");\n ossuary = new Room(\"Ossuary\", \"Ossuary. A chill runs down your spine as you examine the skulls... \\n\" +\n \"but wait... is.. is one of them... moving? \\n\" +\"\\n\" + \"\\n\" + \"There seems to be a chest in this room!\" + \"\\n\");\n bridge = new Room(\"Bridge\", \"Bridge. A LOUD SHREIK RINGS OUT BEHIND YOU!!! \\n\");\n crypt = new Room(\"Crypt\", \"Crypt. An eerire feeling begins to set in. Something about this place doesn't seem quite right...\" + \"\\n\");\n graveyard = new Room(\"Graveyard\", \"Graveyard. The soil looks rather soft. \\n\" +\n \"As you being to dive deeper, you begin to hear moans coming from behind you...\");\n forest = new Room(\"Forest\", \"Forest. It used to be gorgeous, and gleaming with life; that is, until the king came...\" + \"\\n\" +\n \"there's quite a tall tower in front of you... if only you had something to climb it.\" + \"\\n\");\n tower = new Room(\"Tower\", \"Tower. As you look over the land, you're astounded by the ruin and destruction the malice and king have left behind. \\n\");\n castle = new Room(\"Castle\", \"Castle. Used to be the most elegant and awe-inspiring building in the land. \\n\" +\n \"That is, before the king showed up... \\n\" +\n \"wait... is that... is that a chest? \\n\");\n throneRoomEntrance = new Room(\"Throne Entrance\", \"You have made it to the throne room entrance. Press on, if you dare.\");\n throne = new Room(\"Throne Room\", \"You have entered the throne room. As you enter, the door slams shut behind you! \\n\" +\n \"Before you stands, the king of all malice and destruction, Mr. Rusch\" + \"\\n\");\n deathRoom1 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom2 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom3 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom4 = new Room(\"Death Room\", \"depths of the earth... well part of you at least.\" + \"\\n\" + \"You fell off the peaks of the castle to your untimely death\");\n \n // initialise room exits\n\n currentRoom = prison; // start game outside player.setRoom(currentRoom);\n player.setRoom(currentRoom);\n \n }",
"void makeMoreRooms() {\n\t\twhile(rooms.size() < size.maxRooms) {\n\t\t\t\tRoom made;\n\t\t\t\tint height = baseHeight;\n\t\t\t\tint x = random.nextInt(size.width);\n\t\t\t\tint z = random.nextInt(size.width);\n\t\t\t\tint xdim = random.nextInt(size.maxRoomSize - 5) + 6;\n\t\t\t\tint zdim = random.nextInt(size.maxRoomSize - 5) + 6;\n\t\t\t\tif(bigRooms.use(random)) {\n\t\t\t\t\txdim += random.nextInt((size.maxRoomSize / 2)) + (size.maxRoomSize / 2);\n\t\t\t\t\tzdim += random.nextInt((size.maxRoomSize / 2)) + (size.maxRoomSize / 2);\n\t\t\t\t}\n\t\t\t\tint ymod = (xdim <= zdim) ? (int) Math.sqrt(xdim) : (int) Math.sqrt(zdim);\n\t\t\t\tint roomHeight = random.nextInt((verticle.value / 2) + ymod + 1) + 2;\n\t\t\t\tmade = new PlaceSeed(x, height, z).growRoom(xdim, zdim, roomHeight, this, null, null);\n\t\t\t}\t\t\n\t\t//DoomlikeDungeons.profiler.endTask(\"Adding Extra Rooms (old)\");\n\t\t}",
"private static void performRoomManagement() {\n\t\t\r\n\t\t\r\n\r\n\t}",
"public Match(Arena arena, MatchParams mp) {\n \t\tif (Defaults.DEBUG) System.out.println(\"ArenaMatch::\" + mp);\n \t\tplugin = BattleArena.getSelf();\n \t\tthis.mp = mp;\t\n \t\tthis.arena = arena;\n \t\tarenaInterface =new ArenaInterface(arena);\n \t\tarenaListeners.add(arena);\n \n \t\tthis.mc = new MatchMessager(this);\n \t\tthis.oldlocs = new HashMap<String,Location>();\n \t\tthis.teams = new ArrayList<Team>();\n \t\tthis.tops = mp.getTransitionOptions();\n \t\tarena.setMatch(this);\n \t\tVictoryCondition vt = VictoryType.createVictoryCondition(this);\n \t\tif (!(vt instanceof TimeLimit))\n \t\t\taddVictoryCondition(new TimeLimit(this));\n \t\taddVictoryCondition(vt);\n \t\tthis.noEnter = tops.hasOptions(TransitionOption.WGNOENTER);\n \t\tthis.noLeave = tops.hasOptions(TransitionOption.WGNOLEAVE);\n \t\tthis.woolTeams = tops.hasOptions(TransitionOption.WOOLTEAMS) && mp.getMaxTeamSize() >1;\n \t\tthis.needsBlockEvents = tops.hasOptions(TransitionOption.BLOCKBREAKON,TransitionOption.BLOCKBREAKOFF,\n \t\t\t\tTransitionOption.BLOCKPLACEON,TransitionOption.BLOCKPLACEOFF);\n \t\tthis.needsDamageEvents = tops.hasOptions(TransitionOption.PVPOFF,TransitionOption.PVPON,TransitionOption.INVINCIBLE);\n \n \t\tthis.matchResult = new MatchResult();\n \t\tTransitionOptions mo = tops.getOptions(MatchState.PREREQS);\n \t\tthis.needsClearInventory = mo != null ? mo.clearInventory() : false;\n \t\tmo = tops.getOptions(MatchState.ONCOMPLETE);\n \t\tthis.clearsInventory = mo != null ? mo.clearInventory(): false;\n \t\tmo = tops.getOptions(MatchState.ONDEATH);\n \t\tthis.clearsInventoryOnDeath = mo != null ? mo.clearInventory(): false;\n \t\tthis.respawns = mo != null ? (mo.respawn() || mo.randomRespawn()): false;\n \t}",
"public void createRoom(LoadingDialog load, String code, String nickname, DataSnapshot roomToHaveAccess) {\n DatabaseReference roomRef = firebaseDatabase.getReference(ROOMS_NODE + \"/\" + code);\n room = new Room(nickname,EMPTY_STRING,0,0,0,0,0,0,false,0,0,0,0,0,3);\n\n roomRef.setValue(room, new DatabaseReference.CompletionListener() {\n @Override\n public void onComplete(@Nullable DatabaseError error, @NonNull DatabaseReference ref) {\n ref.child(PLAYER2_NODE).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot fieldPlayer2) {\n if(fieldPlayer2.getValue() != null){\n if(! fieldPlayer2.getValue().equals(EMPTY_STRING)){\n // il giocatore accede alla stanza poichè passa tutti i controlli sulla disponibilità del posto in stanza\n load.dismissDialog();\n Intent intent = new Intent(MultiplayerActivity.this,ActualGameActivity.class);\n intent.putExtra(CODE_ROOM_EXTRA,code);\n intent.putExtra(CODE_PLAYER_EXTRA,ROLE_PLAYER1);\n ref.child(PLAYER2_NODE).removeEventListener(this);\n startActivity(intent);\n }\n } else {\n ref.child(PLAYER2_NODE).removeEventListener(this);\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError error) {\n OfflineFragment offlineFragment = new OfflineFragment();\n offlineFragment.show(getSupportFragmentManager(),\"Dialog\");\n }\n });\n\n }\n });\n\n\n\n }",
"private void awaitT(){\n try {\n game.getBarrier().await(20, TimeUnit.SECONDS);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n } catch (TimeoutException e) {\n trimBarrier();\n synchronized (lock){\n if(!botSignal){\n bot = new BotClient();\n new Thread(bot).start();\n botSignal = true;\n }\n\n }\n }\n }",
"public void startToRecivePlayers() {\n while (numberOfPlayers == 0) {\n controller.getSpf().getLabel1().setText(\"Ingresa el numero de jugadores\");\n }\n try {\n ss = new ServerSocket(8888);\n Thread.sleep(100);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n controller.getSpf().getLabel1().setText(\"Recibido\");\n run();\n }",
"private void enterRoom() {\n connect();\n\n clientName = nameTextFiled.getText();\n try {\n toServer.writeInt(ENTERROOM);\n toServer.writeUTF(clientName);\n toServer.flush();\n report(\"Client ----> Server: \" + ENTERROOM + \" \" + clientId + \" \" + nameTextFiled.getText());\n\n clientFrame.setTitle(clientName);\n btnNewGame.setEnabled(true);\n\n// loginPanel.setVisible(false);\n// centerPanel.setVisible(true);\n // disable the login frame component\n nameTextFiled.removeActionListener(clientAction);\n nameTextFiled.setEnabled(false);\n btnEnterRoom.removeActionListener(clientAction);\n btnEnterRoom.setEnabled(false);\n\n // close the login frame\n loginFrame.setVisible(false);\n loginFrame.dispose();\n\n // open the client frame\n clientFrame.setVisible(true);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void createMap (int nRooms, Player player) {\n\t\t// Flag representing if the room has been created successfully or not\n\t\tboolean failed = false;\n\t\t// Clear the room array to make a hole new map\n\t\trooms = new ArrayList<Room>();\n\t\t\n\t\t// Set all the positions to be a wall\n\t\tfor(int y = 0; y < SIZE_Y; y++) {\n\t\t\tfor(int x = 0; x < SIZE_X; x++) {\n\t\t\t\tthis.cell[y][x].setReference(\"WALL\"); \n\t\t\t}\n\t\t}\n\n\t\t// Creates rooms with the max number given\n\t\tfor(int i = 0; i < nRooms; i++) {\n\t\t\tfailed = false;\n\t\t\tRoom room = new Room();\n\t\t\troom.setSizeX(rand.nextInt(10) + 3);\n\t\t\troom.setSizeY(rand.nextInt(8) + 3);\n\t\t\troom.setCenterX(rand.nextInt(SIZE_X - room.getSizeX()) + 1);\n\t\t\troom.setCenterY(rand.nextInt(SIZE_Y - room.getSizeY()) + 1);\n\t\t\t\n\t\t\tfor(Room roomTested : rooms) {\n\t\t\t\tif(room.intersects(roomTested)) {\n\t\t\t\t\tfailed = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(!failed) {\n\t\t\t\trooms.add(room);\n\t\t\t\tfor(int y = room.getCenterY(); y < room.getCenterY() + room.getSizeY() && y < SIZE_Y - 1; y++) {\n\t\t\t\t\tfor(int x = room.getCenterX(); x < room.getCenterX() + room.getSizeX() && x < SIZE_X - 1; x++) {\n\t\t\t\t\t\tthis.cell[y][x].setReference(\"FLOOR\"); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Makes the connections between rooms\n\t\tfor(int j = 0; j < rooms.size() - 1; j++ ) {\n\t\t\tthis.makeCorridor(rooms.get(j), rooms.get(j+1));\n\t\t}\n\t\t\n\t\tplayer.Spawn(rooms, this.getMap());\n\t}",
"private void createRooms()\n {\n Room outside, garden, kitchen, frontyard, garage, livingroom,\n upperhallway, downhallway, bedroom1, bedroom2, toilet,teleporter;\n\n // create the rooms\n outside = new Room(\"outside the house\",\"Outside\");\n garden = new Room(\"in the Garden\", \"Garden\");\n kitchen = new Room(\"in the Kitchen\",\"Kitchen\");\n frontyard = new Room(\"in the Frontyard of the house\", \"Frontyard\");\n garage = new Room(\"in the Garage\", \"Garage\");\n livingroom = new Room(\"in the Living room\", \"Living Room\");\n upperhallway = new Room(\"in the Upstairs Hallway\",\"Upstairs Hallway\");\n downhallway = new Room(\"in the Downstairs Hallway\", \"Downstairs Hallway\");\n bedroom1 = new Room(\"in one of the Bedrooms\", \"Bedroom\");\n bedroom2 = new Room(\"in the other Bedroom\", \"Bedroom\");\n toilet = new Room(\"in the Toilet upstairs\",\"Toilet\");\n teleporter = new Room(\"in the Warp Pipe\", \"Warp Pipe\");\n\n // initialise room exits\n outside.setExit(\"north\", garden);\n outside.setExit(\"east\", frontyard);\n\n garden.setExit(\"south\", outside);\n garden.setExit(\"east\", kitchen);\n\n kitchen.setExit(\"west\", garden);\n kitchen.setExit(\"north\", livingroom);\n kitchen.setExit(\"south\", downhallway);\n\n frontyard.setExit(\"west\", outside);\n frontyard.setExit(\"north\", downhallway);\n frontyard.setExit(\"east\", garage);\n\n garage.setExit(\"west\", frontyard);\n garage.setExit(\"north\", downhallway);\n\n livingroom.setExit(\"west\", kitchen);\n\n downhallway.setExit(\"north\",kitchen);\n downhallway.setExit(\"west\",frontyard);\n downhallway.setExit(\"south\",garage);\n downhallway.setExit(\"east\",upperhallway);\n\n upperhallway.setExit(\"north\", bedroom2);\n upperhallway.setExit(\"east\", bedroom1);\n upperhallway.setExit(\"south\", toilet);\n upperhallway.setExit(\"west\", downhallway);\n\n toilet.setExit(\"north\", upperhallway);\n\n bedroom1.setExit(\"west\",upperhallway);\n\n bedroom2.setExit(\"south\", upperhallway);\n\n rooms.add(outside);\n rooms.add(garden);\n rooms.add(kitchen);\n rooms.add(frontyard);\n rooms.add(garage);\n rooms.add(livingroom);\n rooms.add(upperhallway);\n rooms.add(downhallway);\n rooms.add(bedroom1);\n rooms.add(bedroom2);\n rooms.add(toilet);\n }",
"public void instantiateMeetingRooms(ResultSet resultSet) throws SQLException {\n\n\t\twhile (resultSet.next()) {\n\t\t\t// Instantiate\n\t\t\tMeetingRoom meetingRoom = new MeetingRoom(\n\t\t\t\t\tresultSet.getString(MeetingRoomColumns.RoomNumber.colNr()),\n\t\t\t\t\tresultSet.getInt(MeetingRoomColumns.Capacity.colNr()),\n\t\t\t\t\tresultSet.getString(MeetingRoomColumns.Name.colNr()),\n\t\t\t\t\tresultSet.getString(MeetingRoomColumns.Notes.colNr())\n\t\t\t\t);\n\t\t\t\n\t\t\t// Add to model\n\t\t\tmodel.addMeetingRoom(meetingRoom);\n\t\t}\n\t}",
"public ChatRoom createRoom(String room) {\r\n ChatRoom chatRoom = new ChatRoom(serviceAddress.withLocal(room), null, xmppSession, serviceDiscoveryManager, multiUserChatManager);\r\n chatRoom.initialize();\r\n return chatRoom;\r\n }",
"public MyRoom() {\r\n }",
"public void run() {\n\n while (!Thread.interrupted()) {\n while (randomRoomPlayers.size() > 1) {\n Player firstPlayer = randomRoomPlayers.poll();\n Player secondPlayer = randomRoomPlayers.poll();\n Thread newGameThread = new Thread(new BullCowGame(firstPlayer, secondPlayer, this));\n newGameThread.start();\n System.out.println(\"Game initiated by PlayersHolder.\");\n }\n synchronized (this) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n return;\n }\n }\n }\n }",
"private CreateRoomRequest toCreateRoomRequest(OffsetDateTime validFrom, OffsetDateTime validUntil,\n Iterable<RoomParticipant> participants) {\n CreateRoomRequest createRoomRequest = new CreateRoomRequest();\n if (validFrom != null) {\n createRoomRequest.setValidFrom(validFrom);\n }\n\n if (validUntil != null) {\n createRoomRequest.setValidUntil(validUntil);\n }\n\n Map<String, ParticipantProperties> roomParticipants = new HashMap<>();\n\n if (participants != null) {\n roomParticipants = convertRoomParticipantsToMapForAddOrUpdate(participants);\n }\n\n if (participants != null) {\n createRoomRequest.setParticipants(roomParticipants);\n }\n\n return createRoomRequest;\n }",
"private Rooms getRooms(boolean sociallyDistanced, LocalDateTime time, LocalDateTime endTime, Modules module) {\n // Get viable rooms\n Session s = HibernateUtil.getSessionFactory().openSession();\n CriteriaBuilder cb = s.getCriteriaBuilder();\n CriteriaQuery<Rooms> cq = cb.createQuery(Rooms.class);\n Root<Rooms> root = cq.from(Rooms.class);\n ParameterExpression<Integer> spacesNeeded = cb.parameter(Integer.class);\n if (sociallyDistanced) {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"socialDistancingCapacity\"), spacesNeeded));\n } else {\n cq.select(root).where(cb.greaterThanOrEqualTo(root.get(\"maxCapacity\"), spacesNeeded));\n }\n\n root.join(\"bookings\", JoinType.LEFT);\n root.fetch(\"bookings\", JoinType.LEFT);\n\n Query<Rooms> query = s.createQuery(cq);\n query.setParameter(spacesNeeded, module.getStudents().size());\n\n List<Rooms> results = query.getResultList();\n\n s.close();\n\n\n Map<String, Rooms> possibleRooms = new HashMap<>();\n\n for (Rooms room : results) {\n if (room.isAvailable(time, endTime) && !possibleRooms.containsKey(room.getRoomID())) {\n System.out.println(\" \" + room.getRoomID() + \" of type \" + room.getType() + \" is available and meets your capacity needs.\");\n possibleRooms.put(room.getRoomID(), room);\n }\n }\n\n System.out.println(\"Please enter the room ID you would like to book.\");\n String roomKey = sc.next();\n while (!possibleRooms.containsKey(roomKey)) {\n System.out.println(\"That is not a correct ID for a room. Look at the list above.)\");\n roomKey = sc.next();\n }\n sc.nextLine();\n\n return possibleRooms.get(roomKey);\n }",
"public WaitingScreen() {\r\n super(\"Please wait...\", new Item[0]);\r\n mWaitString = new StringItem(\"Network\", \"\\nServer contacting...\");\r\n append(mWaitString);\r\n }",
"public void waitingMissingPlayer() {\r\n\r\n\t\tthis.waitingPanel = new WaitingForPlayerPanel(this);\r\n\t\tgameFrame.add(waitingPanel);\r\n\t\tmultiplayerPanel.setVisible(false);\r\n\t\tgameFrame.pack();\r\n\t\tgameFrame.setVisible(true);\r\n\t\tgameFrame.repaint();\r\n\t}",
"ItcRoom()\r\n\t {\t }",
"public Communicator() {\n\n\t\tthis.isReady = false;\n\t\tthis.hold = 0;\n\t\tthis.speaker = 0;\n\t\tthis.listener = 0;\n\t\t//init values\n\n\t\tthis.newLock = new Lock();\n\t\t//new lock\n\t\tthis.speakerR = new Condition2(newLock);\n\t\t//condition variable for speakers\n\t\tthis.listenerR = new Condition2(newLock);\n\t\t//condition variable for listener\n\t\tthis.inProg = new Condition2(newLock);\n\t\t//condition variable for inprog message\n\n\t}",
"public void createConnection() throws ServerUnavailableException {\n clearConnection();\n while (serverSock == null) {\n try {\n // try to open a Socket to the server\n InetAddress addr = InetAddress.getByName(host);\n System.out.println(\"attempting to connect to \" + addr + \":\" + port + \"...\");\n serverSock = new Socket(addr, port);\n in = new BufferedReader(new InputStreamReader(serverSock.getInputStream()));\n out = new BufferedWriter(new OutputStreamWriter(serverSock.getOutputStream()));\n } catch (IOException e) {\n throw new ServerUnavailableException(\"Unable to connect to the server\");\n }\n }\n }",
"public void waitingEnemy(){\t\t\n\t\tgetController().changeFree(false);\n\t\tdisplayAdvertisement(\"waiting enemy\");\n\t\tadvertisementPanel.cancelRequestSetVisible(true);\n\t\tvalidate();\n\t}",
"@Test\n\tpublic void testFindFreeFacilityRoomNotAvailible() {\n\t\t// get current date\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.add(Calendar.HOUR, 1);\n\t\t// start is current date + 1\n\t\tDate startDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, 24);\n\t\tDate reservationEndDate = cal.getTime();\n\n\t\tcal.add(Calendar.HOUR, -23);\n\t\tDate findEndDate = cal.getTime();\n\n\t\tdataHelper.createPersistedReservation(\"aID\", Arrays.asList(room1.getId()), startDate, reservationEndDate);\n\n\t\t// search for one workplace in room1\n\t\tRoomQuery query = new RoomQuery(Arrays.asList(new Property(\"WLAN\")), \"\", 1);\n\t\tCollection<FreeFacilityResult> result;\n\t\tresult = bookingManagement.findFreeFacilites(query, startDate, findEndDate, false);\n\n\t\t// should find no room because room is not available\n\t\tassertNotNull(result);\n\t\tassertEquals(0, result.size());\n\t}",
"private boolean allReady() {\n PlayerModel[] playersInLobby = this.lobbyModel.getPlayersInLobby();\n if (playersInLobby.length <= 1)\n return false;\n for (PlayerModel pl : playersInLobby) {\n if (!pl.isReady() && !(pl instanceof ClientPlayerModel))\n return false;\n }\n return true;\n }",
"void startChecking()\n {\n UnitModel model = new UnitModel();\n model.UNIT_ID = Globals.unitId;\n Observable<RoomMeetingsResponse> data = retrofitInterface.roomreservations(model);\n\n subscription = data\n .subscribeOn(Schedulers.newThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(new Subscriber<RoomMeetingsResponse>() {\n @Override\n public void onCompleted() {\n\n }\n\n @Override\n public void onError(Throwable e) {\n e.printStackTrace();\n\n }\n\n @Override\n public void onNext(RoomMeetingsResponse serviceResponse) {\n //sweetAlertDialog.hide();\n progress_rel.setVisibility(View.GONE);\n OngoingReactAsync(serviceResponse);\n }\n });\n }",
"private Room boxCreatorFromHallway(Hallway hallway) {\n int[] previous = hallway.bottomleft;\n int length = hallway.length;\n String pdirection = hallway.orientation;\n int width = r.nextInt(5) + 5;\n int height = r.nextInt(6) + 5;\n if (pdirection.equals(\"up\")) {\n int[] coordinates = new int[2];\n coordinates[0] = r.nextInt(width - 2) + previous[0] + 2 - width + 1;\n coordinates[1] = previous[1] + length;\n ArrayList<String> sidesavailable = arrayMaker(pdirection);\n String numberofrooms = \"Room \" + (this.numberofRooms + 1);\n String received = \"S\";\n Room room = new Room(1, width, height, coordinates,\n false, sidesavailable, numberofrooms, received);\n if (overlapRooms(room)) {\n return null;\n } else {\n this.numberofRooms += 1;\n boxCreator(coordinates, width, height);\n tiles[previous[0] + 1][previous[1] + length] = Tileset.FLOWER;\n this.rooms.put(this.numberofRooms, room);\n return room;\n }\n } else if (pdirection.equals(\"down\")) {\n int[] coordinates = new int[2];\n coordinates[0] = r.nextInt(width - 2) + previous[0] + 2 - width + 1;\n coordinates[1] = previous[1] - height;\n ArrayList<String> sidesavailable = arrayMaker(pdirection);\n String numberofrooms = \"Room \" + (this.numberofRooms + 1);\n String received = \"N\";\n Room room = new Room(1, width, height, coordinates,\n false, sidesavailable, numberofrooms, received);\n if (overlapRooms(room)) {\n return null;\n } else {\n this.numberofRooms += 1;\n boxCreator(coordinates, width, height);\n tiles[previous[0] + 1][previous[1]] = Tileset.FLOWER;\n this.rooms.put(this.numberofRooms, room);\n return room;\n }\n } else if (pdirection.equals(\"right\")) {\n int[] coordinates = new int[2];\n coordinates[0] = previous[0] + length;\n coordinates[1] = r.nextInt(height - 2) + previous[1] + 2 - height + 1;\n ArrayList<String> sidesavailable = arrayMaker(pdirection);\n String numberofrooms = \"Room\" + (this.numberofRooms + 1);\n String received = \"W\";\n Room room = new Room(1, width, height, coordinates,\n false, sidesavailable, numberofrooms, received);\n if (overlapRooms(room)) {\n return null;\n } else {\n this.numberofRooms += 1;\n boxCreator(coordinates, width, height);\n tiles[previous[0] + length][previous[1] + 1] = Tileset.FLOWER;\n this.rooms.put(numberofRooms, room);\n return room;\n }\n } else {\n int[] coordinates = new int[2];\n coordinates[0] = previous[0] - width;\n coordinates[1] = r.nextInt(height - 2) + previous[1] + 2 - height + 1;\n ArrayList<String> sidesavailable = arrayMaker(pdirection);\n String numberofrooms = \"Room\" + (this.numberofRooms + 1);\n String received = \"E\";\n Room room = new Room(1, width, height, coordinates,\n false, sidesavailable, numberofrooms, received);\n if (overlapRooms(room)) {\n return null;\n } else {\n this.numberofRooms += 1;\n boxCreator(coordinates, width, height);\n tiles[previous[0]][previous[1] + 1] = Tileset.FLOWER;\n this.rooms.put(this.numberofRooms, room);\n return room;\n }\n }\n }",
"private void establishServerConnection() {\n int lb_port = Integer.parseInt(gui.getLBPort_Text().getText());\n gui.getLBPort_Text().setEnabled(false);\n String lb_ip = gui.getLBIP_Text().getText();\n gui.getLBIP_Text().setEnabled(false);\n int server_port = Integer.parseInt(gui.getServerPort_Text().getText());\n gui.getServerPort_Text().setEnabled(false);\n String server_ip = gui.getServerIP_Text().getText();\n gui.getServerIP_Text().setEnabled(false);\n obtainId(server_ip, server_port);\n lbInfo = new ConnectionInfo(lb_ip, lb_port, 3);\n\n if (connection.startServer(server_port)) {\n connectionHandler = new ServerConnections(connection, lbInfo, requestsAnswered, processingRequests, gui.getCompleted_Text(), gui.getProcessing_Text());\n new Thread(connectionHandler).start();\n\n requestServerId();\n scheduler.scheduleAtFixedRate(heartbeat, 10, 10, TimeUnit.SECONDS);\n } else {\n gui.getLBPort_Text().setEnabled(true);\n gui.getLBIP_Text().setEnabled(true);\n gui.getServerPort_Text().setEnabled(true);\n gui.getServerIP_Text().setEnabled(true);\n gui.getButton_Connect().setEnabled(true);\n }\n }",
"public void waitForClients() {\n\n\t\twhile (!Thread.interrupted()) {\n\t\t\tacceptClient();\n\t\t}\n\n\t}",
"@Test\n @SuppressWarnings({\"PMD.JUnitTestsShouldIncludeAssert\"})\n public void testCreateRoomWithOptionsOkResponse() {\n // given\n Map<String, String> options = new HashMap<>();\n final CreateRoomRequest createRoomRequest =\n CreateRoomRequest.builder().name(TEST_ROOM).options(options).build();\n given(clientResponseProvider.sendPostRequest(\n MultiUserChatConstants.MULTI_USER_CHAT_CREATE_ROOM_WITH_OPT_COMMAND, createRoomRequest))\n .willReturn(OK_RESPONSE);\n\n // when\n multiUserChatService.createRoomWithOptions(TEST_ROOM, options);\n\n // then\n }",
"public static void getRoomsAPI()\n\t{\n\t\ttry\n\t\t{\n\t\t\tWebClient checkIP = new WebClient(\"http://api.conceptnet.io/c/en/room/n?offset=0&limit=1000\");\n\t\t\tcheckIP.post(\"\");\n\t\t\tlong startIP = System.currentTimeMillis();\n\t\t\t\n\t\t\tArrayList<ArrayList<String> > checkq = new ArrayList<ArrayList<String> >();\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\tcheckIP.getQueue(checkq);\n\t\t\t\tboolean processedsomething = false;\n\t\t\t\tfor (int i = 0; i < checkq.size(); i++) \n\t\t\t\t{\n\t\t\t\t\tArrayList<String> resultlines = checkq.remove(i);\n\t\t\t\t\t\n\t\t\t\t\tString x = null;\n\t\t\t\t\tString relation = null;\n\t\t\t\t\tString relationweight = null;\n\t\t\t\t\tString y = null;\n\n\t\t\t\t\tfor(int li=0;li<resultlines.size();li++)\n\t\t\t\t\t{\t\t\n\t\t\t\t\t\tprocessedsomething = true;\n\t\t\t\t\t\t\n\t\t\t\t\t\tString line = resultlines.get(li);\n\t\t\t\t\t\tline = line.trim();\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(line.startsWith(\"\\\"@id\\\": \\\"/a/[\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tline = line.substring(\"\\\"@id\\\": \\\"/a/[\".length());\n\t\t\t\t\t\t\tint ind = line.indexOf(\",\");\n\t\t\t\t\t\t\trelation = line.substring(0,ind);\n\t\t\t\t\t\t\tline = line.substring(ind+1);\n\t\t\t\t\t\t\tind = line.indexOf(\",\");\n\t\t\t\t\t\t\tx = line.substring(0,ind);\n\t\t\t\t\t\t\tline = line.substring(ind+1);\n\t\t\t\t\t\t\tind = line.indexOf(\"]\");\n\t\t\t\t\t\t\ty = line.substring(0,ind);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(line.startsWith(\"\\\"weight\\\": \"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\trelationweight = line.substring(\"\\\"weight\\\": \".length());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//can now process the edge information\n\t\t\t\t\t\t\t//we only want the things that are a room not things a room is\n\t\t\t\t\t\t\tif(y.equalsIgnoreCase(\"c/en/room/n\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(x+\" \"+relation+\" \"+y);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(processedsomething)\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tThread.sleep(16);\n\t\t\t\t\n\t\t\t\tlong time = System.currentTimeMillis();\n//\t\t\t\tif((time-startIP)>1000)\n//\t\t\t\t{\n//\t\t\t\t\t//timeout\n//\t\t\t\t\tbreak;\n//\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\n\t}",
"public void createRoom(Rect room) {\n for(int x = room.x1 + 1; x < room.x2; x++) {\n for(int y = room.y1 + 1; y < room.y2; y++ ) {\n dungeon.map[x][y].blocked = false;\n dungeon.map[x][y].blockSight = false;\n }\n }\n }",
"public ChatRoom findChatRoom(Address peerAddr, Address localAddr);",
"public interface Waiter {\n void greetTo(String clientName);\n void serveTo(String clientName);\n}",
"public void returningToTheBar(){\n Waiter w = (Waiter) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = w.getWaiterID();\n \tstate_fields[1] = w.getWaiterState();\n\n Message m_toServer = new Message(2, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n \t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n }\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n w.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"private void waitForClient( int num ) throws IOException{\r\n\t\tshowMessage(\"\\n Waiting for Client \" + num + \" to connect ...\");\r\n\t\tif ( num == 1 ){\r\n\t\t\tconnectionClient1 = server.accept();\r\n\t\t\tshowMessage(\"\\nNow Connected to \" + connectionClient1.getInetAddress().getHostName() + \"/\" +connectionClient1.getInetAddress().getHostAddress());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tconnectionClient2 = server.accept();\r\n\t\t\tshowMessage(\"\\nNow Connected to \" + connectionClient2.getInetAddress().getHostName() + \"/\" +connectionClient2.getInetAddress().getHostAddress());\r\n\t\t}\r\n\t}",
"private void busquets() {\n\t\ttry {\n\t\t\tThread.sleep(5000); // espera, para dar tempo de ver as mensagens iniciais\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tint xInit = -25;\n\t\tint yInit = -10;\n\t\tplayerDeafaultPosition = new Vector2D(xInit*selfPerception.getSide().value(), yInit *selfPerception.getSide().value());\n\t\t\n\t\twhile (commander.isActive()) {\n\t\t\tupdatePerceptions(); // deixar aqui, no começo do loop, para ler o resultado do 'move'\n\t\t\tswitch (matchPerception.getState()) {\n\t\t\tcase BEFORE_KICK_OFF:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\t\t\t\n\t\t\t\tbreak;\n\t\t\tcase PLAY_ON:\n\t\t\t\tstate = State.ATTACKING;\n\t\t\t\texecuteStateMachine();\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_OFF_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\t//if(closer)\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_LEFT: // escanteio time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase CORNER_KICK_RIGHT: // escanteio time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase KICK_IN_LEFT: // lateral time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\tcase KICK_IN_RIGHT: // lateal time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_LEFT: // Tiro livre time esquerdo\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_RIGHT: // Tiro Livre time direito\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase FREE_KICK_FAULT_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase GOAL_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_LEFT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\n\t\t\t\tbreak;\n\t\t\tcase AFTER_GOAL_RIGHT:\n\t\t\t\tcommander.doMoveBlocking(xInit, yInit);\t\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_LEFT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.LEFT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase INDIRECT_FREE_KICK_RIGHT:\n\t\t\t\tif (selfPerception.getSide() == EFieldSide.RIGHT) {\n\t\t\t\t\tstate = State.PASSING_BALL;\n\t\t\t\t\texecuteStateMachine();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void startWatching(){\n\t\twhile(true) {\n\t\t\tif(Clock.moviesLeft >0) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep((long)(Math.random() * 1000));\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsynchronized(Driver.canWatchLock) {\n\t\t\t\t\t//if the session is over\n\t\t\t\t\tif(canWatch()){\n\t\n\t\t\t\t\t\t//TODO: What happens when the theater is open or has seats\n\t\t\t\t\t\t// waiting for signal from the clock thread\n\t\t\t\t\t\tDriver.currentVisitors++;\n\t\t\t\t\t\t//Clock.movieScreening();\n\t\t\t\t\t\tSystem.out.println( name + \" Im going into the theater my ticket is \" + Driver.currentVisitors);\n\t\n\t\t\t\t\t}else { // we cannot watch yet \n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(name + \", Leaving the room and waiting in the lobby\");\n\t\t\t\t\t\tDriver.waitingQ++;\n\t\t\t\t\t\tSystem.out.println(\"WAITING Q Before the can watch lock: \"+ Driver.waitingQ);\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tDriver.canWatchLock.wait();\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(name + \", Am off the waiting queue\");\n\t\t\t\t\t\t//end of waiting \n\t\t\t\t\t}//end of else\n\t\t\t\t}//end of the synchronized scope\n\t\t\t\t\n\t\t\t\tif(Driver.currentVisitors == 8 ) {\n\t\t\t\t\tSystem.out.println(\"IM GONNA TRY TO START THE MOVIE\");\n\t\t\t\t\tsynchronized(Driver.startTheMovie) {\n\t\t\t\t\t\tDriver.startTheMovie.notify();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsynchronized(Driver.inTheaterLock) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tDriver.inTheaterLock.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsynchronized(Driver.canWatchLock) {\n\t\t\t\t\tDriver.canWatchLock.notify();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDriver.currentVisitors = 0;\n\t\t\t\tDriver.waitingQ--;\n\t\t\t}\n\t\t}\n\t\t\t\n\t}",
"public void saluteTheClient(){\n Waiter w = (Waiter) Thread.currentThread();\n CommunicationChannel com = new CommunicationChannel(serverHostName, serverPortNumb);\n Object[] params = new Object[0];\n \tObject[] state_fields = new Object[2];\n state_fields[0] = w.getWaiterID();\n \tstate_fields[1] = w.getWaiterState();\n\n Message m_toServer = new Message(0, params, 0, state_fields, 2, null); \n Message m_fromServer;\n\n while (!com.open ()){ \n \ttry{ \n \t\tThread.currentThread ();\n\t\t\t\tThread.sleep ((long) (10));\n \t}\n \tcatch (InterruptedException e) {}\n \t}\n \n com.writeObject (m_toServer);\n \n m_fromServer = (Message) com.readObject(); \n\n w.setState((int) m_fromServer.getStateFields()[1]);\n \n com.close ();\n }",
"public void createGame()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startMultiPlayerGame(\"GameLobby\");\n }",
"Room getRoom();",
"Room getRoom();",
"FutureReservation createFutureReservation();",
"public void startserver()\r\n\t{\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tSocket clientsocket = serversocket.accept();\r\n\t\t\t\tif(clientsocket.isConnected())\r\n\t\t\t\t{\r\n\t\t\t\t\tDataOutputStream wdata = new DataOutputStream(clientsocket.getOutputStream());\r\n\t\t\t\t\tDataInputStream rdata = new DataInputStream(clientsocket.getInputStream());\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\t// read message from client and add new player\r\n\t\t\t\t\tJsonObject newplayrejson = gson.fromJson(rdata.readUTF(), JsonObject.class);\r\n\t\t\t\t\tint mode = newplayrejson.get(\"mode\").getAsInt();\r\n\t\t\t\t\tclientaddresslist.get(mode).add(clientsocket.getInetAddress());\r\n\t\t\t\t\tString profession = newplayrejson.get(\"profession\").getAsString();\r\n\t\t\t\t\tString teamname;\r\n\t\t\t\t\tif(mode == 0)\r\n\t\t\t\t\t\tteamname = \"deathMatch\";\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(teamcount)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tteamname = \"teamBlue\";\r\n\t\t\t\t\t\t\tif(king[0] == -1)\r\n\t\t\t\t\t\t\t\tking[0] = idcount[mode];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tteamname = \"teamRed\";\r\n\t\t\t\t\t\t\tif(king[1] == -1)\r\n\t\t\t\t\t\t\t\tking[1] = idcount[mode];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tteamcount = !teamcount;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tcdc.collideObjectManager[mode].addCharacter(collideObjecctClass.valueOf(profession), idcount[mode], randposition(), newplayrejson.get(\"name\").getAsString(), TeamName.valueOf(teamname));\r\n\t\t\t\t\tclientidlist.get(mode).add(idcount[mode]);\r\n\t\t\t\t\t++idcount[mode];\r\n\t\t\t\t\t++playercount[mode];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// sending collideobject list to client\r\n\t\t\t\t\twdata.writeInt(idcount[mode] - 1);\r\n\t\t\t\t\twdata.flush();\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tfor(CollideObject object : cdc.collideObjectManager[mode].collideObjectList)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twdata.writeUTF(object.getClass().getName());\r\n\t\t\t\t\t\twdata.writeUTF(gson.toJson(object));\r\n\t\t\t\t\t\twdata.flush();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\twdata.writeUTF(\"done\");\r\n\t\t\t\t\twdata.flush();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// send king id if mode is kingkill\r\n\t\t\t\t\tif(mode == 1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twdata.writeInt(king[0]);\r\n\t\t\t\t\t\twdata.writeInt(king[1]);\r\n\t\t\t\t\t\twdata.flush();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tThread thread = new Thread(new clientmanager(clientsocket , this , mode));\r\n\t\t\t\t\tthread.start();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private static void startSocket() throws MutexException {\n\t\tThread t1 = new ClientServerSockets();\n\t\tt1.start();\n\t\tboolean deadlock = false;\n\t\twhile(requestsCount != 20) {\n\t\t\t// for 2.3.a\n\t\t\trandomWait(2, 5);\n//\t\t\tMutex.fixedWait(5);\n\t\t\tMetrics.criticalSectionStartMsgSnapshot();\n\t\t\tMetrics.criticalSectionStartTimeSnapshot();\n\t\t\tArrayList<Integer> randomQuorum = Quorum.getRandomQuorum();\n//\t\t\trandomQuorum = new ArrayList<Integer>(Arrays.asList(4, 5, 6, 7));\n\t\t\tLogger.info(\"Selected a quorum: \" + randomQuorum);\n\n\t\t\tcurrentQuorum = randomQuorum;\n\t\t\tenteredCriticalSection = false;\t\t\t\n\t\t\tif(Client.requestsCount != 0) {\n\t\t\t\tMetrics.exitAndReEntry(Client.requestsCount);\n\t\t\t}\n\t\t\tfor(Integer id: randomQuorum) {\n\t\t\t\tMap<String, String> serverById = Host.getServerById(id);\n\t\t\t\tEntry<String, String> entry = serverById.entrySet().iterator().next();\n\t\t\t\tString serverName = entry.getKey();\n\t\t\t\tint serverPort = Integer.valueOf(entry.getValue());\n\t\t\t\tlong currentTimeStamp = System.currentTimeMillis();\n\t\t\t\tString clientId = String.valueOf(Host.getId());\n\t\t\t\tString formattedRequestMessage = Client.prepareRequestMessage(currentTimeStamp, clientId);\n\t\t\t\tLogger.info(\"Sending REQUEST to quorum member: \" + serverById + \", i.e., server name:\" + serverName);\n\t\t\t\tMutex.sendMessage(serverName, serverPort, formattedRequestMessage);\n\t\t\t}\n\t\t\tint waitingTimeinSeconds = 0;\n\t\t\twhile(!enteredCriticalSection) {\n\t\t\t\tLogger.info(\"Waiting for the old REQUEST to get COMPLETED before generating a new quorum.\");\n\t\t\t\tMutex.fixedWait(3);\n\t\t\t\twaitingTimeinSeconds+=3;\n\t\t\t\tif(waitingTimeinSeconds >= 90) {\n\t\t\t\t\tLogger.info(\"Looks like a DEADLOCK situation. Preparing to ABORT.\");\n\t\t\t\t\tdeadlock = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(deadlock) {\n\t\t\t\tMutex.sendMessage(Host.getname(), Integer.valueOf(Host.getPort()), MutexReferences.ABORT);\n\t\t\t}\n\t\t\tMetrics.criticalSectionEndMsgSnapshot(requestsCount);\n\t\t\trequestsCount++;\n\t\t\tif(requestsCount < 20) {\n\t\t\t\tLogger.info(\"Last request successfully completed. Generating a new request.\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tLogger.info(\"Completed 20 requests. Preparing to send COMPLETE to master.\");\n\t\t\t}\n\t\t}\n\t\t\t\n\t}",
"void waitStartGameString();",
"public void joinChatRoom(IChatroom room) {\n\t\tview.append(\"Join ChatRoom\" + room.getName());\n\t\tcountRoom++;\n\t\tIChatroom chatroom = new Chatroom(\"Chatroom\" + countRoom);\n\t\tIChatServer chatServer = new ChatServer(user, chatroom);\n\t\ttry {\n\t\t\tview.append(\"Start joining..\");\n\t\t\tIChatServer chatStub = (IChatServer) UnicastRemoteObject.exportObject(chatServer,\n\t\t\t\t\tIChatServer.BOUND_PORT + countRoom);\n\t\t\tfor (IChatServer members : room.getChatServers()) {\n\t\t\t\tchatroom.addChatServer(members);\n\t\t\t\tmembers.joinChatroom(chatStub);\n\t\t\t}\n\t\t\tchatroom.addChatServer(chatStub);\n\t\t\tuser.addRoom(chatroom);\n\t\t\tregistry.rebind(IChatServer.BOUND_NAME + chatroom.hashCode(), chatStub);\n\t\t\tHashSet<IChatServer> proxyChatServers = new HashSet<IChatServer>();\n\t\t\tfor (IChatServer stub : chatroom.getChatServers()) {\n\t\t\t\tProxyIChatServer proxyChatServer = new ProxyIChatServer(stub);\n\t\t\t\tproxyChatServers.add(proxyChatServer);\n\t\t\t}\n\t\t\tIMain2MiniAdpt miniMVCAdpt = view.makeMini(chatServer, proxyChatServers);\n\t\t\tminiMVCAdpts.put(chatroom, miniMVCAdpt);\n\t\t\tcountRoom++;\n\t\t\tview.append(\"Success!\");\n\t\t\t//\t\t\tminiMVCAdpt.refresh();\n\t\t} catch (Exception e) {\n\t\t\tview.append(\"Fail to join the room!\");\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void createRoom() {\n int hp = LabyrinthFactory.HP_PLAYER;\n if (hero != null) hp = hero.getHp();\n try {\n labyrinth = labyrinthLoader.createLabyrinth(level, room);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n characterLoader.createCharacter(level, room);\n hero = characterLoader.getPlayer();\n if (room > 1) hero.setHp(hp);\n createMonsters();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public Management getDeclareWinnerMessage(){\n\t\t \t\tLeaderElection.Builder elb = LeaderElection.newBuilder();\n\t\t \t\telb.setCandidateId(conf.getServer().getNodeId());\n\t\t \t\telb.setElectId(String.valueOf(Integer.parseInt(conf.getServer().getProperty(\"port.mgmt\"))%100));\n\t\t \t\telb.setDesc(\"Leader's declaration\");\n\t\t \t\telb.setAction(ElectAction.DECLAREWINNER);\n\n\t\t \t\tMgmtHeader.Builder mhb = MgmtHeader.newBuilder();\n\t\t\t\tmhb.setOriginator(conf.getServer().getNodeId());\n\t\t\t\tmhb.setTime(System.currentTimeMillis());\n\n\t\t\t\tRoutingPath.Builder rpb = RoutingPath.newBuilder();\n\t\t\t\trpb.setNodeId(conf.getServer().getNodeId());\n\t\t\t\trpb.setTime(mhb.getTime());\n\t\t\t\tmhb.addPath(rpb);\n\n\t\t\t\tManagement.Builder mb = Management.newBuilder();\n\t\t\t\tmb.setHeader(mhb.build());\n\t\t\t\tmb.setElection(elb.build());\n\t\t \t\treturn mb.build();\n\t\t \t}",
"private void waitForCommands() throws IOException, ClassNotFoundException, UnableToStartGameException\n\t{\n\t\tboolean gameBegins = false;\n\t\t\n\t\twhile(!gameBegins)\n\t\t{\n\t\t\tObject object = objectInputStream.readObject();\n\t\t\t\n\t\t\t//Hier Abfragen, ob der Server uns andre Anweisungen melden will (Kartenname, usw.)\n\t\t\t\n\t\t\t//Das Spiel soll beginnen\n\t\t\tif(object instanceof GameStarts)\n\t\t\t{\n\t\t\t\tobject = objectInputStream.readObject();\n\t\t\t\t//Model vom Server kriegen\n\t\t\t\tif(object instanceof Game)\n\t\t\t\t{\n\t\t\t\t\tgame = (Game) object;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new UnableToStartGameException(\"Konnte das Model nicht empfangen.\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tgameBegins = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\tGameManager gameManager = new GameManager(socket, gameServer, playerId, game, objectInputStream);\n\t\t//Uebergang von vor dem Spiel ins Spiel\n\t\tnew Thread(gameManager).start();\n\t}"
]
| [
"0.60036755",
"0.5727383",
"0.55510616",
"0.5527864",
"0.55241024",
"0.5515243",
"0.5510481",
"0.55064636",
"0.5418462",
"0.5405086",
"0.54050845",
"0.5370992",
"0.5365411",
"0.5363129",
"0.534599",
"0.53222",
"0.53196895",
"0.52974176",
"0.5292948",
"0.5269159",
"0.52422374",
"0.5219575",
"0.52188337",
"0.5209284",
"0.5198867",
"0.5194959",
"0.51936454",
"0.51837224",
"0.5183659",
"0.51805776",
"0.5176622",
"0.5163322",
"0.5162933",
"0.51550174",
"0.5147826",
"0.51369125",
"0.5129673",
"0.50993955",
"0.5083251",
"0.5079794",
"0.50729513",
"0.50694776",
"0.50615937",
"0.5051929",
"0.50417316",
"0.5037653",
"0.50368935",
"0.5035258",
"0.50313365",
"0.501761",
"0.49996826",
"0.49814096",
"0.4973865",
"0.49572855",
"0.49403554",
"0.49367827",
"0.49237347",
"0.49116823",
"0.49103868",
"0.48980317",
"0.48741865",
"0.48700604",
"0.48684597",
"0.48651972",
"0.48547322",
"0.48546526",
"0.485203",
"0.48383245",
"0.4833904",
"0.48262316",
"0.4824805",
"0.48214412",
"0.4820807",
"0.4819839",
"0.48197606",
"0.48191008",
"0.48172832",
"0.48081905",
"0.48063743",
"0.48050022",
"0.48033747",
"0.4801705",
"0.48016724",
"0.47991502",
"0.47981566",
"0.47965696",
"0.47937992",
"0.47936788",
"0.4789641",
"0.4786494",
"0.47791827",
"0.47791827",
"0.4778244",
"0.47754627",
"0.4773436",
"0.47631702",
"0.47579357",
"0.47559673",
"0.4751664",
"0.4751466"
]
| 0.5288964 | 19 |
Starts the background task that will collect clients | public void collectAsync() throws IOException {
rmiAcceptor = new RMIAcceptor(rmiPort);
socketAcceptor = new SocketAcceptor(socketPort);
// We prepare the task to get our first Future, it will then be overwritten once we get the promised result
currentRMITask = threadPool.submit(rmiAcceptor);
currentSocketTask = threadPool.submit(socketAcceptor);
threadPool.execute(this::scheduledTask);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void startCollectAppsTraffic() {\n\t\tsubmitCollectAppsTrafficTask();\n\t}",
"public void start(){\n log.debug(\"Starting Host Router\");\n lobbyThread = pool.submit(new Runnable() {\n public void run() {\n waitForClients();\n }\n });\n }",
"public void start() {\r\n\t\tLOGGER.info(\"Create result collection queue customers, customer count : [ \" + customerCount + \" ].\");\r\n\t\tthreadPool = Executors.newFixedThreadPool(customerCount);\r\n\t\tfor (int i = 0; i < customerCount; i++) {\r\n\t\t\tRunnable resultCollectorRunner = new ResultCollectorThread(ResultQueue.getInstance().getResultQueue(), \r\n\t\t\t\t\tnew ResultCollector(), new TaskReloader());\r\n\t\t\tthreadPool.submit(new Thread(resultCollectorRunner, \"ResultCollector-\" + i));\r\n\t\t}\r\n\t\tthreadPool.shutdown();\r\n\t}",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\twhile(true){\n\t\t\t\tif (client == null){\n\t\t\t\t\tsynchronized(holder){\n\t\t\t\t\t\trestTime = new Date();\n\t\t\t\t\t\tlogger.info(\"进入restRoom\");\n\t\t\t\t\t\tcentralSystem.rest(this);\n\t\t\t\t\t\tholder.wait();\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tthis.proc.process(client);\n client = centralSystem.fetchOne();\t\n if (client != null){\n \tlogger.info(\"领取新任务\");\n } \n\t\t\t\t}\t\t\t\t\n\t\t\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}",
"@Override\r\n\tpublic void run() {\n\t\trunClient();\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tObjectInputStream objectInput = new ObjectInputStream(\r\n\t\t\t\t\tclsock.getInputStream());\r\n\t\t\tObject object = objectInput.readObject();\r\n\t\t\ttask = (String) object;// reading URLs from client\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"The task Batch has not come from the Client\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tString clientId = task.split(\",\")[0];\r\n\r\n\t\tRemoteScheduler remoteScheduler = new RemoteScheduler(clientId,\r\n\t\t\t\ttask);\r\n\t\tremoteScheduler.sendTaskToQueue();\r\n\t\tExecutorService remoteService = Executors.newFixedThreadPool(1);\r\n\t\ttry {\r\n\t\t\tFuture<String> remoteResult = remoteService\r\n\t\t\t\t\t.submit(remoteScheduler);\r\n\t\t\tString clientResult = remoteResult.get();\r\n\t\t\tObjectOutputStream outputStream = new ObjectOutputStream(\r\n\t\t\t\t\tclsock.getOutputStream());\r\n\t\t\toutputStream.writeObject(clientResult);\r\n\t\t\toutputStream.close();\r\n\t\t} catch (InterruptedException | ExecutionException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tclsock.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"private void startClientStatisticsThread() {\r\n\t\tnew Thread(clientStatistics).start();\r\n\t}",
"public void startCollectSysTrafficTask() {\n\t\tsubmitCollectSysTrafficTask();\n\t}",
"@Override\n\tpublic void run() {\n\n\t\treceiveClients();\n\n\t\tbeginLogging();\n\t}",
"@Override\n public void run() {\n try {\n while (true) {\n finalLB.addClient();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void start() {\n threadPoolExecutor.setCorePoolSize(configurations.threadPoolSize());\n new Thread(this::startServer).start();\n }",
"protected synchronized void startClients() throws Exception {\r\n if (this.clients != null) {\r\n for (Client client : this.clients) {\r\n client.start();\r\n }\r\n }\r\n }",
"@Override\n public void start() {\n if (heartBeatService != null) {\n return;\n }\n super.start();\n heartBeatService.submit(new DataHeartbeatThread(this));\n pullSnapshotService = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors());\n pullSnapshotHintService = new PullSnapshotHintService(this);\n pullSnapshotHintService.start();\n resumePullSnapshotTasks();\n }",
"@Override\n public void start() {\n try {\n hostname = InetAddress.getLocalHost().getHostName().split(\"\\\\.\")[0];\n }catch (Exception ex2) {\n logger.warn(\"Unknown error occured\", ex2);\n }\n \n collectorRunnable.server = this;\n if (service.isShutdown() || service.isTerminated()) {\n service = Executors.newSingleThreadScheduledExecutor();\n }\n service.scheduleWithFixedDelay(collectorRunnable, 0,\n pollFrequency, TimeUnit.SECONDS);\n\n }",
"public void run() {\n Thread.currentThread().setPriority(Thread.NORM_PRIORITY);\n while( true ) {\n long currentTime = System.currentTimeMillis();\n for(H2ONode n: H2O.CLOUD._memary) {\n if (n == H2O.SELF) continue;\n for (RPC t : n.tasks()) {\n if (H2O.CLOUD.contains(t._target) ||\n // Also retry clients who do not appear to be shutdown\n (t._target._heartbeat._client && t._retry < HeartBeatThread.CLIENT_TIMEOUT)) {\n if (currentTime > (t._started + t._retry) && !t.isDone() && !t._nack) {\n if (++t._resendsCnt % 10 == 0)\n Log.warn(\"Got \" + t._resendsCnt + \" resends on task #\" + t._tasknum + \", class = \" + t._dt.getClass().getSimpleName());\n t.call();\n }\n } else { // Target is dead, nobody to retry to\n t.cancel(true);\n }\n }\n }\n long timeElapsed = System.currentTimeMillis() - currentTime;\n if(timeElapsed < 1000)\n try {Thread.sleep(1000-timeElapsed);} catch (InterruptedException e) {}\n }\n }",
"public void task() {\n try {\n Socket peerSocket = listeningSocket.accept(); // waits here until something tries to connect\n if (peerSocket != null) { addPeer(peerSocket); }\n } catch (IOException e) {\n throw new RuntimeException(\"Error accepting client connection\", e);\n }\n }",
"public void run() {\n\t\tfor (ConConsumer consumer : _consumers) {\n\t\t\tconsumer.register();\n\t\t}\n\t\t// commit the channels <\n\t\t// wait for the tasks finish >\n\t\t_monitor.checkFinish();\n\t\t// wait for the tasks finish <\n\t\t_threadPool.shutdown();\n\t}",
"private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}",
"public void start() {\n\t\tinstanceConfigUpdated();\n\n\t\tnew Thread(getUsageData, \"ResourceConsumptionManager : GetUsageData\").start();\n\n\t\tLoggingService.logInfo(MODULE_NAME, \"started\");\n\t}",
"public void run() {\n startSignalR();\n }",
"@Override\n public void start() throws Exception {\n databusClient.subscribe(databusListeningConfiguration.getSubscriptionName(), Conditions.alwaysTrue(), 86400, 86400);\n\n // Start a number of threads equal to \"core\" threads that will poll the databus independently looking for work.\n for (int threadCtr = 0; threadCtr < databusListeningConfiguration.getNumberPollingThreads(); ++threadCtr) {\n databusPollingExecutorService.submit(new Runnable() {\n @Override\n public void run() {\n while(true) {\n try {\n //log.info(\"[{}] Polling databus\", Thread.currentThread().getName());\n final List<Event> events = databusClient.poll(\n databusListeningConfiguration.getSubscriptionName(),\n databusListeningConfiguration.getEventTimeToLiveSeconds(),\n databusListeningConfiguration.getMaxNumEventsPerDatabusPoll());\n\n if (CollectionUtils.isNotEmpty(events)) {\n // Do something useful with the event\n for (Event event : events) {\n if(\"question\".equals(event.getContent().get(\"type\"))){\n handleQuestionBySMS(event);\n handleQuestionByiPhone(event);\n }\n\n log.info(\"[{}] Received event: key={}, contents={}\", Thread.currentThread().getName(), event.getEventKey(), event.getContent());\n }\n\n // Now that we've done \"something\" with the events, we need to ack them to prevent them from being repeatedly redelivered.\n databusClient.acknowledge(databusListeningConfiguration.getSubscriptionName(), Collections2.transform(events, new Function<Event, EventKey>() {\n @Override\n public EventKey apply(@Nullable Event input) {\n return input.getEventKey();\n }\n }));\n }\n } catch (Throwable t) {\n // These polling threads should be as resilient as possible.\n log.error(t, \"[{}] An uncaught exception occurred while polling for events from the Databus. Stacktrace follows: \", Thread.currentThread().getName());\n }\n\n // Slow things down just a little bit to avoid breaking a sweat\n try {\n if (!Thread.interrupted()) {\n Thread.sleep(databusListeningConfiguration.getPollDelayMillis());\n }\n } catch (InterruptedException e) { /* no-op */ }\n\n // Allow the thread to die if the interrupted flag is set (will get set by the Thread Pool when it wants to shut down).\n if (Thread.interrupted()) {\n break;\n }\n }\n log.info(\"DatabusPollerThread[name={}] exiting\", Thread.currentThread().getName());\n }\n });\n try {\n Thread.sleep(1000L); // Delay starting the threads a little bit so that they don't all slam the Databus at the same time.\n } catch (InterruptedException e) {/* no-op */}\n }\n\n\n // Create a scheduled and repeating action that will subscribe to the databus as long as this service remains alive.\n databusSubscriptionExecutorService.scheduleAtFixedRate(\n new Runnable() {\n @Override\n public void run() {\n try {\n // Renew subscription to the databus\n log.info(\"Renewing subscription to the databus\");\n databusClient.subscribe(\n databusListeningConfiguration.getSubscriptionName(),\n Conditions.alwaysTrue(),\n databusListeningConfiguration.getSubscriptionTimeToLiveSeconds(),\n databusListeningConfiguration.getSubscriptionEventTimeToLiveSeconds());\n } catch (Throwable t) {\n // Any exception or abnormal termination of this thread within the single-threaded ScheduledExecutorService will cause subsequent scheduled executions to be skipped.\n log.error(t, \"Error while renewing subscription to the databus\");\n }\n }\n },\n databusListeningConfiguration.getInitialSubscriptionDelaySeconds(),\n databusListeningConfiguration.getSubscriptionIntervalSeconds(),\n TimeUnit.SECONDS);\n }",
"@Override\n public void run() {\n logger.info(\"Servicing connection\");\n }",
"@Override\n public void run() {\n if(started) {\n showMessage(\"Killing data collection service\");\n stopService(collectDataService);\n started = false;\n }\n if(!SDKon) {\n showMessage(\"Starting data collection service\");\n startService(collectDataService);\n started = true;\n }\n }",
"@Override\n public void run()\n {\n lock = new Lock();\n messenger = new Messenger(notifier);\n clientList = new ClientList(notifier, messenger, connectionLimit);\n publisher = new Publisher(lock, clientList);\n\n try\n {\n notifier.sendToConsole(\"Server Started\");\n LOGGER.info(\"Server Started\");\n\n // Set up networking\n socketFactory = (SSLServerSocketFactory) SSLServerSocketFactory\n .getDefault();\n serverSocket = (SSLServerSocket) socketFactory\n .createServerSocket(port);\n serverSocket.setEnabledCipherSuites(enabledCipherSuites);\n\n int idCounter = 1;\n\n // Now repeatedly listen for connections\n while (true)\n {\n // Blocks whilst waiting for an incoming connection\n socket = (SSLSocket) serverSocket.accept();\n\n conn = new ClientConnection(socket, idCounter, notifier, lock,\n publisher, clientList, password);\n new Thread((Runnable) conn).start();\n\n LOGGER.info(\"Someone connected: \" + idCounter);\n idCounter++;\n }\n\n } catch (final SocketException e)\n {\n LOGGER.severe(\"Socket Exception: Server closed?\");\n notifier.sendToConsole(\"Server Stopped\");\n } catch (final IOException e)\n {\n LOGGER.severe(e.getMessage());\n notifier.sendError(e);\n } finally\n {\n kill();\n }\n }",
"public void run() {\n\n // Start threadPool\n for (int i = 0; i < nbThreads; i++) {\n ThreadClient threadClient = new ThreadClient(listSocketDevice, String.valueOf(i), handler);\n arrayThreadClients.add(threadClient);\n threadClient.start();\n }\n\n while (true) {\n try {\n if (v) Log.d(TAG, \"Server is waiting on accept...\");\n ISocket isocket = acceptISocket();\n\n if (v) Log.d(TAG, isocket.getRemoteSocketAddress() + \" accepted\");\n listSocketDevice.addSocketClient(isocket);\n\n // Notify handler\n handler.obtainMessage(Service.CONNECTION_PERFORMED,\n isocket.getRemoteSocketAddress()).sendToTarget();\n\n } catch (SocketException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n } catch (IOException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n }\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tLOGGER.info(\"***************************************邮件发送服务启动******************************************************\");\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(10000);\n//\t\t\t\t\t\tlog.debug(\"************************************ Email task check******************************************************\");\n\t\t\t\t\t\tEmail email = emailCollection.poll();\n\t\t\t\t\t\tif (null != email) {\n\t\t\t\t\t\t\tLOGGER.info(\"************************************ Email begin send******************************************************\");\n\t\t\t\t\t\t\trealSendMailReal(email);\n\t\t\t\t\t\t\tLOGGER.info(\"************************************ Email end send******************************************************\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLOGGER.error(\"{}\", e);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"private void startServiceThreads() {\n // Do after main thread name has been set\n this.metrics = new MasterMetrics();\n try {\n regionManager.start();\n serverManager.start();\n // Put up info server.\n int port = this.conf.getInt(\"hbase.master.info.port\", 60010);\n if (port >= 0) {\n String a = this.conf.get(\"hbase.master.info.bindAddress\", \"0.0.0.0\");\n this.infoServer = new InfoServer(MASTER, a, port, false);\n this.infoServer.setAttribute(MASTER, this);\n this.infoServer.start();\n }\n // Start the server so everything else is running before we start\n // receiving requests.\n this.server.start();\n } catch (IOException e) {\n if (e instanceof RemoteException) {\n try {\n e = RemoteExceptionHandler.decodeRemoteException((RemoteException) e);\n } catch (IOException ex) {\n LOG.warn(\"thread start\", ex);\n }\n }\n // Something happened during startup. Shut things down.\n this.closed.set(true);\n LOG.error(\"Failed startup\", e);\n }\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Started service threads\");\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSocket socket = serverSocket.accept();\n\t\t\t\t\t\tclients.add(new Client(socket));\n\t\t\t\t\t\tSystem.out.println(\"[클라이언트 접속] \" + socket.getRemoteSocketAddress() + \": \"\n\t\t\t\t\t\t\t\t+ Thread.currentThread().getName());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tif (!serverSocket.isClosed()) {\n\t\t\t\t\t\t\tstopServer();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"public void startTask() {\n\t}",
"public void run() {\n // Create a socket to wait for clients.\n try {\n //Set up all the security needed to run an SSLServerSocket for clients to connect to.\n SSLContext context = SSLContext.getInstance(\"TLS\");\n KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance(\"SunX509\");\n KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n\n keyStore.load(new FileInputStream(\"./keystore.txt\"), \"storepass\".toCharArray());\n keyManagerFactory.init(keyStore, \"keypass\".toCharArray());\n context.init(keyManagerFactory.getKeyManagers(), null, null);\n\n SSLServerSocketFactory factory = context.getServerSocketFactory();\n SSLServerSocket sslServerSocket = (SSLServerSocket) factory.createServerSocket(conf.SERVER_PORT);\n threads = new HashSet<>();\n\n while (true) {\n //Just keep running until the end of times (or until you're stopped.)\n // Wait for an incoming client-connection request (blocking).\n SSLSocket socket = (SSLSocket) sslServerSocket.accept();\n\n // When a new connection has been established, start a new thread.\n ClientThreadPC ct = new ClientThreadPC(this, socket);\n threads.add(ct);\n new Thread(ct).start();\n System.out.println(\"Num clients: \" + threads.size());\n\n // Simulate lost connections if configured.\n if (conf.doSimulateConnectionLost()) {\n DropClientThread dct = new DropClientThread(ct);\n new Thread(dct).start();\n }\n }\n } catch (IOException | KeyManagementException | KeyStoreException | UnrecoverableKeyException |\n NoSuchAlgorithmException | CertificateException e) {\n e.printStackTrace();\n }\n }",
"@SuppressWarnings(\"empty-statement\")\n public void runClient() {\n // setup MQTT Client\n String clientID = \"apto01\";\n String pass = \"1234\";\n connOpt = new MqttConnectOptions();\n\n connOpt.setCleanSession(true);\n connOpt.setKeepAliveInterval(30);\n connOpt.setUserName(\"isis2503\");\n connOpt.setPassword(pass.toCharArray());\n\n alertaLogic = new AlertLogic();\n\n // Connect to Broker\n try {\n myClient = new MqttClient(BROKER_URL, clientID);\n myClient.setCallback(this);\n myClient.connect(connOpt);\n } catch (MqttException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n System.out.println(\"Connected to \" + BROKER_URL);\n\n // setup topic\n // topics on m2m.io are in the form <domain>/<stuff>/<thing>\n // subscribe to topic if subscriber\n if (subscriber) {\n try {\n int subQoS = 0;\n myClient.subscribe(infoInoTopic, subQoS);\n } catch (MqttException e) {\n e.printStackTrace();\n }\n }\n // disconnect\n try {\n // wait to ensure subscribed messages are delivered\n while (subscriber);\n myClient.disconnect();\n } catch (MqttException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void run(String... args) throws Exception {\n initProgressReporter.submitProgress(String.format(LoaderProgress.ENTRY_POINT.message(), delayStartInSeconds));\n Thread.sleep(delayStartInSeconds * 1000);\n\n boolean allReady;\n do {\n initProgressReporter.submitProgress(LoaderProgress.WAITING_FOR_ALL.message());\n\n var applications = this.discoveryClient.getServices();\n initProgressReporter.submitProgress(\n String.format(LoaderProgress.N_SERVICES_REGISTERED.message(), applications.size()));\n for (var application : applications) {\n initProgressReporter.submitProgress(\n String.format(LoaderProgress.SERVICE_REGISTERED.message(), application));\n }\n\n allReady = applications.containsAll(\n Arrays.asList(\"config-server\", \"site-service\", \"role-service\", \"practitioner-service\"));\n if (!allReady) {\n Thread.sleep(5000);\n }\n } while (!allReady);\n\n initProgressReporter.submitProgress(LoaderProgress.ALL_REGISTERED.message());\n\n try {\n initProgressReporter.submitProgress(LoaderProgress.GET_ROLES_FROM_CONFIG.message());\n var roles = trialConfig.getRoles();\n\n initProgressReporter.submitProgress(LoaderProgress.CREATE_ROLES.message());\n roleServiceInvoker.createRoles(roles);\n\n initProgressReporter.submitProgress(LoaderProgress.GET_SITES_FROM_CONFIG.message());\n var sites = trialConfig.getSites();\n\n initProgressReporter.submitProgress(LoaderProgress.CREATE_SITES.message());\n List<String> siteIds = siteServiceInvoker.createSites(sites);\n\n initProgressReporter.submitProgress(LoaderProgress.GET_PERSONS_FROM_CONFIG.message());\n var persons = trialConfig.getPersons();\n\n initProgressReporter.submitProgress(String.format(\n LoaderProgress.SELECT_FIRST_SITE_FROM_COLLECTION_OF_SIZE.message(), siteIds.size()));\n // Assumption in story https://ndph-arts.atlassian.net/browse/ARTS-164\n String siteIdForUserRoles = siteIds.get(0);\n initProgressReporter.submitProgress(LoaderProgress.CREATE_PRACTITIONER.message());\n practitionerServiceInvoker.execute(persons, siteIdForUserRoles);\n initProgressReporter.submitProgress(LoaderProgress.FINISHED_SUCCESSFULY.message());\n } catch (Exception ex) {\n initProgressReporter.submitProgress(ex.toString());\n initProgressReporter.submitProgress(LoaderProgress.FAILURE.message());\n throw ex;\n }\n }",
"public void init(){\n taskClient.connect(\"127.0.0.1\", 9123);\n }",
"private void manageClients() {\n manage = new Thread(\"Manage\") {\n public void run() {\n //noinspection StatementWithEmptyBody\n while (running) {\n sendToAll(\"/p/server ping/e/\".getBytes());\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //noinspection ForLoopReplaceableByForEach\n for (int i = 0; i < clients.size(); i++) {\n ServerClient tempClient = clients.get(i);\n if (!clientResponse.contains(tempClient.getID())) {\n if (tempClient.getAttempt() >= MAX_ATTEMPTS)\n disconnect(tempClient.getID(), false);\n else\n tempClient.setAttempt(tempClient.getAttempt() + 1);\n } else {\n clientResponse.remove(new Integer(tempClient.getID()));\n tempClient.setAttempt(0);\n }\n }\n }\n }\n };\n manage.start();\n }",
"@Override\n\tpublic void run() {\n\t\tlog(\"Running on port \" + serverSocket.getLocalPort());\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\t// accept incomming connections\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\t\t\t\t//log(\"New connection from \" + client_socket.getRemoteSocketAddress());\n\t\t\t\t// create a new connection handler and run in a separate thread\n\t\t\t\tTrackerRequestHandler handler = new TrackerRequestHandler(this, clientSocket);\n\t\t\t\texecutor.execute(handler);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog(\"Problem accepting a connection\");\n\t\t\t}\n\t\t}\n\t}",
"public void runServer() {\n\t\tint i = 0;\n\n\t\tclientList = new ArrayList<>();\n\t\ttry {\n\t\t\tServerSocket listener = new ServerSocket(port);\n\n\t\t\tSocket server;\n\n\t\t\tprintDetails();\n\n\t\t\twhile ((i++ < maxConnections) || (maxConnections == 0)) {\n\n\t\t\t\tserver = listener.accept();\n\t\t\t\tSession session = new Session(server, this.storageLocation );\n\n\t\t\t\tnew Thread(session).start();\n\n\t\t\t\tString name = session.getName();\n\t\t\t\tSystem.out.printf(\"%s STARTED\\r\\n\", name );\n\t\t\t\tclientList.add( session );\n\t\t\t\tdoGC();\n\n\t\t\t}\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"IOException on socket listen: \" + ioe);\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}",
"public void waitForClients() {\n\n\t\twhile (!Thread.interrupted()) {\n\t\t\tacceptClient();\n\t\t}\n\n\t}",
"public void startWork() {\n for (int i = 0; i < cashiersCount; i++) {\n Cashier cashier = new Cashier(cashbox);\n cashierList.add(cashier);\n new Thread(cashier, \"Кассир \" + i).start();\n }\n ClientGenerator generator = new ClientGenerator(this);\n Thread t = new Thread(generator, \"Генератор\");\n t.start();\n }",
"public void run() {\n readFromClient();\n }",
"public void start() throws IOException {\n ServerSocket socket = new ServerSocket(80);\n while (!exec.isShutdown()) {\n try {\n final Socket conn = socket.accept();\n exec.execute(new Runnable() {\n @Override\n public void run() {\n handleRequest(conn);\n }\n });\n } catch (RejectedExecutionException e) {\n if (!exec.isShutdown()) {\n System.out.println(\"task submission rejected\" + e);\n }\n\n }\n\n }\n }",
"@Override\n public void run()\n {\n log(\"STARTED\");\n\n try\n {\n FileInputStream keystoreStream = new FileInputStream(keystoreFile);\n KeyStore keyStore = KeyStore.getInstance(\"JKS\");\n keyStore.load(keystoreStream, keystorePassword.toCharArray());\n CloseableUtil.close(keystoreStream);\n\n KeyManagerFactory kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());\n kmf.init(keyStore, keystorePassword.toCharArray());\n\n TrustManagerFactory tmf = TrustManagerFactory.getInstance(TrustManagerFactory.getDefaultAlgorithm());\n tmf.init(keyStore);\n\n SSLContext sslContext = SSLContext.getInstance(\"TLS\");\n sslContext.init(kmf.getKeyManagers(), tmf.getTrustManagers(), new SecureRandom());\n\n SSLServerSocketFactory ssf = sslContext.getServerSocketFactory();\n sslServer = (SSLServerSocket) ssf.createServerSocket(PORT);\n }\n catch (Exception e)\n {\n log(\"Exception caught. Message: \" + e.getMessage());\n }\n\n // Start a new thread for handling a client that connects\n try\n {\n log(\"Accepting new client connections...\");\n while (!isInterrupted())\n {\n SSLSocket connection = (SSLSocket) sslServer.accept();\n log(\"A new client connected: \" + connection.getInetAddress());\n new CAClientConnection(connection, callback, keystorePassword).start();\n }\n }\n catch (Exception e)\n {\n if (!e.getMessage().equals(\"socket closed\"))\n {\n log(\"Exception caught. Message: \" + e.getMessage());\n e.printStackTrace();\n }\n }\n }",
"public void run() {\n clientLogger.info(\"Client \" + name + \" started working\");\n EventLoopGroup group = new NioEventLoopGroup();\n try {\n Bootstrap bootstrap = new Bootstrap()\n .group(group)\n .channel(NioSocketChannel.class)\n .handler(new ClientInitializer());\n Channel channel = bootstrap.connect(host, port).sync().channel();\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n while (true) {\n channel.write(in.readLine() + \"\\r\\n\");\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n group.shutdownGracefully();\n }\n clientLogger.info(\"Client \" + name + \" finished working\");\n }",
"public void runClient() {\n\t\tString clientID = \"d:quickstart:MyDevice:\" + deviceId;\r\n\t\tSystem.out.println( \"deviceId=\" + deviceId );\r\n\t\tconnOpt = new MqttConnectOptions();\r\n\t\t\r\n\t\tconnOpt.setCleanSession( true );\r\n\t\tconnOpt.setKeepAliveInterval( 30 );\r\n\r\n\t\t// Connect to Broker\r\n\t\ttry{\r\n\t\t\tmyClient = new MqttClient( BROKER_URL, clientID );\r\n\t\t\tmyClient.setCallback( this );\r\n\t\t\tmyClient.connect( connOpt );\r\n\t\t}catch( MqttException e ){\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit( -1 );\r\n\t\t}\r\n\r\n\t\tString myTopic = \"iot-2/evt/estado_\" + dc + \"/fmt/json\";\r\n\t\tMqttTopic topic = myClient.getTopic( myTopic );\r\n\t\t\r\n\t\twhile( true ){\r\n\t\t\ttry{\r\n\t\t\t\tCalendar c = Calendar.getInstance();\r\n\t\t\t\tTimeZone tz = TimeZone.getTimeZone( \"Asia/Tokyo\" );\r\n\t\t\t\tc.setTimeZone( tz );;\r\n\t\t\t\tint y = c.get( Calendar.YEAR );\r\n\t\t\t\tint m = c.get( Calendar.MONTH ) + 1;\r\n\t\t\t\tint d = c.get( Calendar.DAY_OF_MONTH );\r\n\t\t\t\tint h = c.get( Calendar.HOUR_OF_DAY );\r\n\t\t\t\tint n = c.get( Calendar.MINUTE );\r\n\t\t\t\tint s = c.get( Calendar.SECOND );\r\n\t\t\t\tString dt = y\r\n\t\t\t\t\t\t+ \"/\" + ( m < 10 ? \"0\" : \"\" ) + m\r\n\t\t\t\t\t\t+ \"/\" + ( d < 10 ? \"0\" : \"\" ) + d\r\n\t\t\t\t\t\t+ \"T\" + ( h < 10 ? \"0\" : \"\" ) + h\r\n\t\t\t\t\t\t+ \":\" + ( n < 10 ? \"0\" : \"\" ) + n\r\n\t\t\t\t\t\t+ \":\" + ( s < 10 ? \"0\" : \"\" ) + s\r\n\t\t\t\t\t\t+ \"+09:00\";\r\n\r\n\t\t\t\tString out = \"\";\r\n\t\t\t\tHttpClient client = new HttpClient();\r\n\t\t\t\tGetMethod get = new GetMethod( \"http://estado.\" + dc + \".bluemix.net/\" );\r\n\r\n\t\t\t\tint sc = client.executeMethod( get );\r\n\t\t\t\tString html = get.getResponseBodyAsString();\r\n\t\t\t\tint x = html.indexOf( \"<table\" );\r\n\t\t\t\twhile( x > -1 ){\r\n//\t\t\t\tif( x > -1 ){\r\n\t\t\t\t\tint td1 = html.indexOf( \"<td>\", x + 1 );\r\n\t\t\t\t\tint td2 = html.indexOf( \"</td>\", td1 + 4 );\r\n\t\t\t\t\tint td3 = html.indexOf( \"<td>\", td2 + 1 );\r\n\t\t\t\t\tint td4 = html.indexOf( \"</td>\", td3 + 4 );\r\n\t\t\t\t\tif( td1 > -1 && td2 > -1 && td3 > -1 && td4 > -1 ){\r\n\t\t\t\t\t\tString name = html.substring( td1 + 4, td2 );\r\n\t\t\t\t\t\tString svalue = html.substring( td3 + 4, td4 );\r\n\r\n\t\t\t\t\t\tif( svalue.equals( \"down\" ) ){\r\n\t\t\t\t\t\t\tString line = \"\\\"\" + name + \"\\\"\";\r\n\t\t\t\t\t\t\tif( out.length() > 0 ){\r\n\t\t\t\t\t\t\t\tline = \",\" + line;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tout += line;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tx = td4;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = html.indexOf( \"<tr \", x + 1 );\r\n\t\t\t\t}\r\n\r\n\t\t\t\tout = \"{\\\"datetime\\\":\\\"\" + dt + \"\\\",\\\"error_services\\\":[\" + out + \"]}\";\r\n\t\t\t\t//System.out.println( \"out = \" + out );\r\n\t\t\t\t\r\n\t\t\t\t//. MQTT Publish\r\n\t\t \t\tint pubQoS = 0;\r\n\t\t\t\tMqttMessage message = new MqttMessage( out.getBytes() );\r\n\t\t \tmessage.setQos( pubQoS );\r\n\t\t \tmessage.setRetained( false );\r\n\r\n\t\t \t// Publish the message\r\n\t\t \t//System.out.println( \"Publishing to topic \\\"\" + topic + \"\\\" qos \" + pubQoS );\r\n\t\t \tMqttDeliveryToken token = null;\r\n\t\t \ttry{\r\n\t\t \t\t// publish message to broker\r\n\t\t\t\t\ttoken = topic.publish( message );\r\n\t\t\t \t// Wait until the message has been delivered to the broker\r\n\t\t\t\t\ttoken.waitForCompletion();\r\n\t\t\t\t\tThread.sleep( 1000 );\r\n\t\t\t\t}catch( Exception e ){\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//. 次の実行タイミングを待つ\r\n\t\t\t\tCalendar c0 = Calendar.getInstance();\r\n\t\t\t\tint s0 = ( c0.get( Calendar.SECOND ) % interval );\r\n\t\t\t\tint w = 1000 * ( interval - s0 );\r\n\t\t\t\tThread.sleep( w );\r\n\t\t\t}catch( Exception e ){\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void runProgram() {\n\n try {\n ServerSocket ss = new ServerSocket(8088);\n Dispatcher dispatcher = new Dispatcher(allmsg,allNamedPrintwriters,clientsToBeRemoved);\n Cleanup cleanup = new Cleanup(clientsToBeRemoved,allClients);\n cleanup.start();\n dispatcher.start();\n logger.initializeLogger();\n\n while (true) {\n Socket client = ss.accept();\n InputStreamReader ir = new InputStreamReader(client.getInputStream());\n PrintWriter printWriter = new PrintWriter(client.getOutputStream(),true);\n BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String input = br.readLine();\n System.out.println(input);\n String name = input.substring(8);\n logger.logEventInfo(name + \" has connected to the chatserver!\");\n allClients.put(name,client);\n allNamedPrintwriters.put(name,printWriter);\n ClientHandler cl = new ClientHandler(name,br, printWriter, allmsg);\n Thread t = new Thread(cl);\n t.start();\n allmsg.add(\"ONLINE#\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void startDiscovery() {\n client.startDiscovery(getResources().getString(R.string.service_id), endpointDiscoveryCallback, new DiscoveryOptions(STRATEGY));\n }",
"@Override\n\tpublic void run() {\n\t\tServerSocket serverSocket;\n\t\tSocket socket;\n\t\tDataInputStream dis;\n\t\tDataOutputStream dos;\n\n\t\ttry {\n\t\t\tserverSocket = new ServerSocket(portNo);\n\t\t\tserverSocket.setSoTimeout(10000000);\n\n\t\t\twhile (true) {\n\t\t\t\tSystem.out.println(COORDINATOR_WAIT_MSG);\n\t\t\t\tsocket = serverSocket.accept();\n\t\t\t\tdis = new DataInputStream(socket.getInputStream());\n\t\t\t\tdos = new DataOutputStream(socket.getOutputStream());\n\n\t\t\t\t// Check if threads are available in thread pool\n\t\t\t\tif (threadpool.getPoolSize() == MAX_THREADS) {\n\t\t\t\t\tSystem.out.println(PARTICIPANT_UNABLE_ACCEPT);\n\t\t\t\t\tdos.writeUTF(PARTICIPANT_UNABLE_ACCEPT);\n\t\t\t\t\tdos.flush();\n\t\t\t\t\tdos.close();\n\t\t\t\t\tdis.close();\n\t\t\t\t\tsocket.close();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Connected to participant: \" + socket);\n\t\t\t\tdos.writeUTF(PARTICIPANT_CONN_ACCEPT);\n\t\t\t\tdos.flush();\n\t\t\t\tthreadpool.execute(new CoordinatorWorker(socket, dis, dos));\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tthreadpool.shutdown();\n\t\t\ttry {\n\t\t\t\tthreadpool.awaitTermination(2, TimeUnit.MINUTES);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void clientStart()\n\t{\n\t\tint cnt = 0;\n\t\tfor(ConnectionThread i : connectionPool)\n\t\t{\n\t\t\ti.sendMessage(\"Rock and Roll\");\n\t\t\taddText(\"send start signal to Player\" + cnt++);\n\t\t}\n\t\tchangePicture();\n\t}",
"public void processStart(){\n initWorkerQueue();\n DataBean serverArgs = new DataBean();\n serverArgs.setValue(\"mode\",\"server\");\n serverArgs.setValue(\"messagekey\",\"72999\");\n serverArgs.setValue(\"user\",\"auth\");\n serverArgs.setValue(\"messagechannel\",\"/esb/system\");\n messageClient = new MessageClient(this,serverArgs);\n Helper.writeLog(1,\"starting message server\");\n messageClient.addHandler(this);\n \n }",
"public void start() {\n\t\tconnection.start((sender, message) -> message.accept(new Visitor(sender)));\n\t\tloadData();\n\t}",
"@Override\r\n public synchronized void start() throws Exception {\r\n if (isStopped()) {\r\n startClients();\r\n startServers();\r\n startHelper();\r\n super.start();\r\n }\r\n }",
"public void onStart() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tinitConnection();\n\t\t\t\treceive();\n\t\t\t}\n\t\t}.start();\n\t}",
"private void runServer() {\n while(true) {\n // This is a blocking call and waits until a new client is connected.\n Socket clientSocket = waitForClientConnection();\n handleClientInNewThread(clientSocket);\n } \n }",
"public void startPollingThread() {\n pool = ThreadUtil.startThread(polling);\n }",
"public void startAll() {\n distributors.forEach(Distributor::startThread);\n }",
"void syncImmediately() {\r\n // Utilize the current time as the seed time for each of the RecipeSyncServices\r\n long currentTime = Utilities.getCurrentTime();\r\n\r\n // Initialize and start the Services\r\n Intent allRecipesIntent = new Intent(this, AllRecipesService.class);\r\n allRecipesIntent.putExtra(getString(R.string.extra_time), currentTime);\r\n startService(allRecipesIntent);\r\n\r\n Intent epicuriousIntent = new Intent(this, EpicuriousService.class);\r\n epicuriousIntent.putExtra(getString(R.string.extra_time), currentTime);\r\n startService(epicuriousIntent);\r\n\r\n Intent foodIntent = new Intent(this, FoodDotComService.class);\r\n foodIntent.putExtra(getString(R.string.extra_time), currentTime);\r\n startService(foodIntent);\r\n\r\n Intent seriousIntent = new Intent(this, SeriousEatsService.class);\r\n seriousIntent.putExtra(getString(R.string.extra_time), currentTime);\r\n startService(seriousIntent);\r\n }",
"@Override\n public void start(){\n // Retrieve the configuration, and init the verticle.\n JsonObject config = config();\n init(config);\n // Every `period` ms, the given Handler is called.\n vertx.setPeriodic(period, l -> {\n mining();\n send();\n });\n }",
"public final void startAll() {\n for (BotTaskInterface bt : TASKS) {\n LOG.info(\"Starting BotTask {}\", bt.getName());\n bt.start();\n\n if (bt.getName().contains(\"UPGRADE\")) {\n bt.doWork();\n } else {\n LOG.info(\"{} scheduled to start at {}:{}\", bt.getName(), START_HOUR, START_MIN);\n }\n }\n }",
"@Override\n\tpublic void run() {\n\t\tL = new Listener(this.port);\n\t\tthis.listener = new Thread(L);\n\t\tthis.listener.start();\n\n\t\twhile (true) {\n\t\t\twhile (this.workQueue.isEmpty()) {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(10);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tClientRequest req = this.workQueue.poll();\n\t\t\tif (req.getType() == ClientRequestType.START) {\n\t\t\t\tsynchronized (nextWorkerLock) {\n\t\t\t\t\tthis.workers[this.nextWorker++].sendToWorker(req);\n\t\t\t\t\tthis.nextWorker %= this.workers.length;\n\t\t\t\t}\n\t\t\t} else if (req.getType() == ClientRequestType.KILLALL) {\n\t\t\t\tfor (WorkerInfo wi : workers) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twi.sendControlMessage(new ProcessControlMessage(0,\n\t\t\t\t\t\t\t\tProcessControlCommand.KILLALL, \"\"));\n\t\t\t\t\t\tSystem.out.println(\"Killed one\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tSystem.exit(0);\n\t\t\t} else {\n\t\t\t\tpidsToWorkers.get(req.getProcessId()).sendToWorker(req);\n\t\t\t}\n\t\t}\n\t}",
"protected void mainTask() {\n\ttry {\n\t socket = serverSocket.accept();\t\n\t spawnConnectionThread(socket);\n\t} catch (IOException e) {\n\t return;\n\t}\n }",
"private void startClient(){\n if (started) return;\n\n// //GET RID OF THIS!!\n// sensorReadingArrayList = new ArrayList<MHLSensorReading>();\n\n started = true;\n clientThread = new Thread(new MHLClientThread(ip, port, userID));\n clientThread.start();\n }",
"public void begin() {\n\t\t\tGeneralThreadPool.getInstance().schedule(this, 3000);\n\t\t}",
"public void begin() {\n\t\t\tGeneralThreadPool.getInstance().schedule(this, 3000);\n\t\t}",
"@Override\r\n\tpublic void run() {\n\t\twhile(true){\r\n\t\t\tlog.info(\"***** 连接池监控 *****\");\r\n\t\t\ttry {\r\n\t\t\t\tmonitor();\r\n\t\t\t\tThread.sleep(1000 * 60L);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void run()\n {\n parentProvider.getConnection()\n .removeAsyncStanzaListener(this);\n\n // init ssList\n ssContactList.init(contactChangesListener);\n\n // as we have dispatched the contact list and Roster is ready\n // lets start the jingle nodes discovery\n parentProvider.startJingleNodesDiscovery();\n }",
"@Override\n protected void onStart() {\n\n try {\n\n executorService = Executors.newFixedThreadPool(1);\n\n cryptoAddressesNetworkServiceDatabaseFactory = new CryptoAddressesNetworkServiceDeveloperDatabaseFactory(pluginDatabaseSystem,pluginId);\n try {\n cryptoAddressesNetworkServiceDatabaseFactory.initializeDatabase();\n } catch (CantInitializeCryptoAddressesNetworkServiceDatabaseException e) {\n e.printStackTrace();\n }\n\n //DAO\n cryptoAddressesNetworkServiceDao = new CryptoAddressesNetworkServiceDao(pluginDatabaseSystem, pluginId);\n\n try {\n cryptoAddressesNetworkServiceDao.initialize();\n } catch (CantInitializeCryptoAddressesNetworkServiceDatabaseException e) {\n e.printStackTrace();\n }\n\n\n\n // change message state to process again first time\n reprocessPendingMessage();\n\n //declare a schedule to process waiting request message\n startTimer();\n\n }catch (Exception e){\n\n System.out.println(\" -- CRYPTO ADDRESS NS START ERROR \" + e.getMessage());\n e.printStackTrace();\n }\n\n\n\n\n }",
"public void run () {\n\n String tflag = System.getenv (\"CSW_DONT_USE_THREADS\");\n\n if (tflag == null || tflag.isEmpty()) {\n HGWorker hgw = new HGWorker (hg);\n hgw.execute ();\n }\n else {\n hg.populateDlist ();\n hg.setVisible (true);\n }\n\n }",
"public void start() {\n \t\tLog.info(\"Starting service of repository requests\");\n \t\ttry {\n \t\t\tresetNameSpace();\n \t\t} catch (Exception e) {\n \t\t\tLog.logStackTrace(Level.WARNING, e);\n \t\t\te.printStackTrace();\n \t\t}\n \t\t\n \t\tbyte[][]markerOmissions = new byte[2][];\n \t\tmarkerOmissions[0] = CommandMarkers.COMMAND_MARKER_REPO_START_WRITE;\n \t\tmarkerOmissions[1] = CommandMarkers.COMMAND_MARKER_BASIC_ENUMERATION;\n \t\t_markerFilter = new Exclude(markerOmissions);\n \t\t\n \t\t_periodicTimer = new Timer(true);\n \t\t_periodicTimer.scheduleAtFixedRate(new InterestTimer(), PERIOD, PERIOD);\n \n \t}",
"private synchronized void start()\n\t{\n\t\tregisterReceiver(\n\t\t\t\tmConnectivityReceiver,\n\t\t\t\tnew IntentFilter( ConnectivityManager.CONNECTIVITY_ACTION )\n\t\t);\n\n\t\ttry\n\t\t{\n\t\t\t// Show notification in status bar\n\t\t\tshowNotification();\n\t\t} catch ( Exception e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public final static void main(String[] args) throws Exception {\n \n ThreadFactory threadFactory =\n new VerboseThreadFactory(log, Executors.defaultThreadFactory());\n \n ThreadPoolExecutor executor = (ThreadPoolExecutor)\n (MAX_THREADS == Integer.MAX_VALUE\n ? Executors.newCachedThreadPool(threadFactory)\n : Executors.newFixedThreadPool(MAX_THREADS, threadFactory));\n \n AsynchronousChannelProvider provider =\n AsynchronousChannelProvider.provider();\n \n AsynchronousChannelGroup group =\n provider.openAsynchronousChannelGroup(executor);\n \n log.log(Level.INFO, \"ChannelGroup is a {0}\", group.getClass());\n \n startSignal = new CountDownLatch(NUM_CLIENTS);\n doneSignal = new CountDownLatch(NUM_CLIENTS);\n \n log.log(Level.INFO,\n \"Prestarting {0,number,integer} threads\", NUM_THREADS);\n \n executor.setCorePoolSize(NUM_THREADS);\n executor.prestartAllCoreThreads();\n \n log.log(Level.INFO,\n \"Connecting {0,number,integer} clients\", NUM_CLIENTS);\n \n Set<EchoClient> clients = new HashSet<EchoClient>(NUM_CLIENTS);\n \n for (int i = 0; i < NUM_CLIENTS; ++i) {\n EchoClient client = new EchoClient(group);\n clients.add(client);\n client.connect();\n }\n \n startSignal.await();\n \n log.info(\"Starting test\");\n startTime = System.nanoTime();\n \n for (EchoClient client : clients)\n client.start();\n \n doneSignal.await();\n \n long ops = NUM_CLIENTS * NUM_MSGS * 2;\n long elapsed = System.nanoTime() - startTime;\n log.log(Level.INFO, \"Bytes read: {0} written:{1}\",\n new Object[] {\n totalBytesRead.get(),\n totalBytesWritten.get()\n });\n log.log(Level.INFO, \"{0} ops in {1} seconds = {2} ops/sec\",\n new Object[] {\n ops,\n TimeUnit.NANOSECONDS.toSeconds(elapsed),\n TimeUnit.SECONDS.toNanos(ops) / elapsed\n });\n \n group.shutdown();\n log.info(\"Awaiting group termination\"); \n if (! group.awaitTermination(5, TimeUnit.SECONDS)) {\n log.warning(\"Forcing group termination\");\n group.shutdownNow();\n if (! group.awaitTermination(5, TimeUnit.SECONDS)) {\n log.warning(\"Group could not be forcibly terminated\");\n }\n }\n if (group.isTerminated())\n log.info(\"Group terminated\");\n \n log.info(\"Terminating executor\");\n executor.shutdown();\n log.info(\"Awaiting executor termination\"); \n if (! executor.awaitTermination(5, TimeUnit.SECONDS)) {\n log.warning(\"Forcing executor termination\");\n executor.shutdownNow();\n if (! executor.awaitTermination(5, TimeUnit.SECONDS)) {\n log.warning(\"Executor could not be forcibly terminated\");\n }\n }\n if (executor.isTerminated())\n log.info(\"Executor terminated\");\n }",
"@Override\n public void run() {\n EndpointServer random = Preferences.getEndpointServer(mContext);\n\n /** no server found -- notify to user */\n if (random == null) {\n Log.i(TAG, \"no list to pick a random server from - aborting\");\n\n // notify to UI\n if (mListener != null)\n mListener.nodata();\n\n return;\n }\n\n try {\n // TODO\n /*\n mConnection = new ClientHTTPConnection(null, mContext, random, null);\n Protocol.ServerList data = mConnection.serverList();\n if (data != null) {\n // write down to cache\n OutputStream out = new FileOutputStream(getCachedListFile(mContext));\n data.writeTo(out);\n out.close();\n }\n\n // parse cached list :)\n sCurrentList = parseList(data);\n if (mListener != null)\n mListener.updated(sCurrentList);\n\n // restart message center\n MessageCenterService.restartMessageCenter(mContext.getApplicationContext());\n */\n throw new IOException();\n }\n catch (IOException e) {\n if (mListener != null)\n mListener.error(e);\n }\n finally {\n mConnection = null;\n }\n }",
"public void start() {\n\t\ttrackerThread.start();\n\t}",
"private void startRetrieve() {\n final Thread retrieveThread = new Thread(new FutureThread());\n retrieveThread.start();\n }",
"public void run() {\n while (true) {\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n if (connectionsPool < 10) {\n NotificationService.getInstance().sendEmail(\"[email protected]\", \"BaseStation \" + id + \" is really busy\", \"We're running out of free connection on base station!\");\n } else {\n System.out.println(\"connection pool ok\");\n }\n }\n }",
"public void run() {\n sendServerRegistrationMessage();\n if (serviceConnectedListener != null) {\n serviceConnectedListener.onServiceConnected(serviceDevice);\n }\n\n isRegistered = true;\n }",
"public void run() {\n sendMessageToClient(\"Connexion au serveur réussie\");\n\n while (isActive) {\n try {\n String input = retrieveCommandFromClient();\n handleCommand(input);\n } catch (ServerException e) {\n System.out.println(e.getMessage());\n sendMessageToClient(e.getMessage());\n } catch (ClientOfflineException e) {\n System.out.println(\"Client # \" + clientId + \" deconnecte de facon innattendue\");\n deactivate();\n }\n }\n\n close();\n }",
"@Override\r\n\tpublic void start() {\n\t\tscavenger.start();\r\n\t\tnew Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\twhile (!serverSocket.isClosed()) {\r\n\t\t\t\t\tSocket socket = null;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tsocket = serverSocket.accept();\r\n\t\t\t\t\t\tscavenger.addSocket(socket);\r\n\t\t\t\t\t\tnew SynchronousSocketThread(socket).start();\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}.start();\r\n\t}",
"public void run() {\n\t\tTestTool.log(mPort + \"[AutoSender] waiting...\");\n\t\twhile (mUserList.size() < 2) {\n\t\t\ttry {\n\t\t\t\tmClientEvent.trigger(EE.client_command_getListUser, null);\n\t\t\t\tThread.sleep(1000);\n\t\t\t\tif (mUserList.size() >= 2) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) { e.printStackTrace(); }\n\t\t}\n\t\tTestTool.log(mPort + \"[AutoSender] ...okay\");\n\n\t\t\n\t\tint count = 0;\n\t\twhile (mIsRunning && count++ < 5) {\n\t\t\tJSONObject msg = autoCreateMessage(count);\n\t\t\tTestTool.log(mPort + \"[AutoSender: run] sending message:\", msg);\n\t\t\tmMessengerUser.addMessage(msg);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tThread.sleep((int) Math.random() * 1000);\n\t\t\t} catch (InterruptedException e) { e.printStackTrace(); }\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tTask t = bq.take();\n\n\t\t\t\t\n\t\t\t\tThread.sleep(t.getProcessTime() * 1000);\n\t\t\t\twaitingTime.addAndGet((-1) * t.getProcessTime());\n\t\t\t\tSimulator.getFrame().displayData(\"Client \"+t.getNr()+\" left. \\n\");\n\t\t\t\tsize--;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n new ServerControl().start();\n new UserMonitor().start();\n boolean listening = true;\n //listen for connection attempt and handle it accordingly\n try (ServerSocket socket = new ServerSocket(4044)) {\n while (listening) {\n new AwaitCommand(Singleton.addToList(socket.accept())).start();\n System.out.println(\"Connection started...\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void start() {\n synchronized (initLock) {\n\n try {\n connectionPool = new ConnectionPool(driver, serverURL, username,\n password, minConnections, maxConnections, connectionTimeout,\n mysqlUseUnicode);\n }\n catch (IOException e) {\n Log.error(e);\n }\n }\n }",
"@Override\n public void run() {\n ApplicationInfo ai = null;\n try {\n ai = MainActivity.getAppContext().getPackageManager().getApplicationInfo(MainActivity.getAppContext().getPackageName(), PackageManager.GET_META_DATA);\n } catch (PackageManager.NameNotFoundException e) {\n e.printStackTrace();\n }\n String brokerAddress = (String) ai.metaData.get(\"BROKER_ADDRESS\");\n int brokerPort = (int) ai.metaData.get(\"BROKER_PORT\");\n\n // configurazione delle proprietà del broker e avvio del server relativo\n Properties properties = new Properties();\n properties.setProperty(BrokerConstants.HOST_PROPERTY_NAME, brokerAddress);\n properties.setProperty(BrokerConstants.PORT_PROPERTY_NAME, String.valueOf(brokerPort));\n properties.setProperty(BrokerConstants.PERSISTENT_STORE_PROPERTY_NAME, Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator + BrokerConstants.DEFAULT_MOQUETTE_STORE_MAP_DB_FILENAME);\n MemoryConfig memoryConfig = new MemoryConfig(properties);\n Server mqttBroker = new Server();\n try {\n mqttBroker.startServer(memoryConfig);\n } catch (IOException e) {\n e.printStackTrace();\n }\n Log.i(TAG, \"Server Started\");\n }",
"public Server(){\n this.tasks = new LinkedBlockingQueue<Task>();\n this.waitingPeriod = new AtomicInteger();\n }",
"private void ccListenerStarter(){\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t//spin off new ccListener\n\t\t\t\t\n\t\t\t\tThread listenerThread = new Thread(\n\t\t\t\t\t\tnew ClientCommunicatorListener(\n\t\t\t\t\t\t\t\tccSocket.getInputStream(), db, this));\n\t\t\t\t\n\t\t\t\tlistenerThread.start();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"public static void main(String[] args){ new ThreadPoolBlockingServer().processRequests(); }",
"@Override\n\tpublic void run() {\n\t\twhile(true) {\n\t\t\tCliente c = criaCliente();\n\t\t\tArrayList<Integer> t = new ArrayList<Integer>();\t\t\t\n\t\t\tt = geraTempoServicos(c.getServicosSolicitados().size());\n\n\t\t\t// Atribui o tempo aos serviços da forma especificada na descrição do projeto\n\t\t\t// Obs: getServico() da classe serviço não gasta um serviço\n\t\t\tfor(Servico s: c.getServicosSolicitados()) {\n\t\t\t\tif(s.getTipo() == TipoServico.PENTEADO) {\n\t\t\t\t\ts.setTempo(t.get(0));\n\t\t\t\t\tt.remove(0);\n\t\t\t\t} else if(s.getTipo() == TipoServico.CORTE) {\n\t\t\t\t\ts.setTempo(t.get(0));\n\t\t\t\t\tt.remove(0);\n\t\t\t\t} else if(s.getTipo() == TipoServico.DEPILACAO) {\t\n\t\t\t\t\ts.setTempo(t.get(0));\n\t\t\t\t\tt.remove(0);\n\t\t\t\t} else if(s.getTipo() == TipoServico.PEDICURE) {\t\n\t\t\t\t\ts.setTempo(t.get(0));\n\t\t\t\t\tt.remove(0);\n\t\t\t\t} else if(s.getTipo() == TipoServico.MASSAGEM) {\t\n\t\t\t\t\ts.setTempo(t.get(0));\n\t\t\t\t\tt.remove(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfilas.insereEmFilaClientes(0, c);\n\t\t\t\n\t\t\ttry {\t\n\t\t\t\t// Tempo de geração de clientes: 1 ~ 5 segundos\n\t\t\t\tThread.sleep(500*(rand.nextInt(5)+1));\n\t\t\t} catch(InterruptedException ex) {\n\t\t\t\t Thread.currentThread().interrupt();\n\t\t\t}\n\t\t}\n\t}",
"public void startThread() \n { \n ExecutorService taskList = \n Executors.newFixedThreadPool(2); \n for (int i = 0; i < 5; i++) \n { \n // Makes tasks available for execution. \n // At the appropriate time, calls run \n // method of runnable interface \n taskList.execute(new Counter(this, i + 1, \n \"task \" + (i + 1))); \n } \n \n // Shuts the thread that's watching to see if \n // you have added new tasks. \n taskList.shutdown(); \n }",
"@Override\n public void onStart() {\n this.dataGenerator = new DataGenerator(this.dataSize, this.dataValues, this.dataValuesBalancing);\n this.dataStream = new DataStream();\n if (this.flowRate != 0)\n this.sleepTime = dataStream.convertToInterval(this.flowRate);\n this.count = 0L;\n// this.me = this.me + \"_\" + getRuntimeContext().getIndexOfThisSubtask();\n new Thread(this::receive).start();\n }",
"public void startListening() {\n\twhile (true) {\n\t try {\n\t\tSocket s = socket.accept();\n\n\t\tnew TCPSessionClient(s, this.clients);\n\t } // end of try\n\n\t catch (IOException e) {\n\t\te.printStackTrace();\n\t } // end of catch\n\t} // end of while\n }",
"private void startBackgroundWorker() {\n\t\tworker.execute(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (!buildList.isEmpty()) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tTestsResultQueueEntry testsResultQueueEntry = buildList.get(0);\n\t\t\t\t\t\t\tTestsResult testsResult = pluginServices.getTestsResult(testsResultQueueEntry.jobId, testsResultQueueEntry.buildId);\n\t\t\t\t\t\t\tOctaneResponse response = pushTestsResult(testsResult);\n\t\t\t\t\t\t\tif (response.getStatus() == HttpStatus.SC_ACCEPTED) {\n\t\t\t\t\t\t\t\tlogger.info(\"tests result push SUCCEED\");\n\t\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t\t} else if (response.getStatus() == HttpStatus.SC_SERVICE_UNAVAILABLE) {\n\t\t\t\t\t\t\t\tlogger.info(\"tests result push FAILED, service unavailable; retrying after a breathe...\");\n\t\t\t\t\t\t\t\tbreathe(SERVICE_UNAVAILABLE_BREATHE_INTERVAL);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t// case of any other fatal error\n\t\t\t\t\t\t\t\tlogger.error(\"tests result push FAILED, status \" + response.getStatus() + \"; dropping this item from the queue\");\n\t\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tlogger.error(\"tests result push failed; will retry after \" + SERVICE_UNAVAILABLE_BREATHE_INTERVAL + \"ms\", e);\n\t\t\t\t\t\t\tbreathe(SERVICE_UNAVAILABLE_BREATHE_INTERVAL);\n\t\t\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\t\t\tlogger.error(\"tests result push failed; dropping this item from the queue \", t);\n\t\t\t\t\t\t\tbuildList.remove(0);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreathe(LIST_EMPTY_INTERVAL);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void startThread() {\n\t\tif (this.serverConnectorUsed <= Byte.MAX_VALUE) {\n\t\t\tthis.serverConnectorUsed++;\n\t\t\tLOG.info(\"Running new thread. Now pool is \"+Integer.toString(MAX_THREADS-this.serverConnectorUsed)+\" / \"+Integer.toString(MAX_THREADS));\n\t\t}\n\t}",
"@Override\n public void run() {\n while(true){\n try{\n Socket s = server.accept();\n String i = new DataInputStream(s.getInputStream()).readUTF();\n if(clientColl.containsKey(i)){\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"You Are Already Registered....!!\");\n }else{\n clientColl.put(i, s);\n txt.append(sdf.format(date) + \" \" + i + \" Joined !\\n\");\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"\");\n new MsgRead(s,i).start();\n new PrepareClientList().start();\n }\n \n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n \n }",
"public void run() {\n\t\tZMQ.Socket sender = context.socket(ZMQ.PUSH);\n\t\tsender.bind(\"tcp://*:5557\");\n\t\t\n\t\t//this lets you go to another machine to start a worker\n\t\tSystem.out.println(\"Press Enter when the workers are ready: \");\n\t\ttry {\n\t\t\tSystem.in.read();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// Messaging sending loop\n\t\tSystem.out.println(\"Sending tasks to workers\\n\");\n\t\twhile (!Thread.interrupted()) {\n\t\t\ttry {\n\t\t\t\t// If there are jobs to be sent, send them\n\t\t\t\t// Synchronize access to workParts structure before accessing it\n\t\t\t\tsynchronized (Master.lock) {\n\t\t\t\t\tif (!workParts.isEmpty()) {\t\n\t\t\t\t\t\tfor (Computation comp : workParts.values()) {\n\t\t\t\t\t\t\t// Submit only unsubmitted jobs\n\t\t\t\t\t\t\tif (!comp.isSubmitted()) {\n\t\t\t\t\t\t\t\tfor (int i=0; i < comp.getNumOfSubmissions(); i++) {\n\t\t\t\t\t\t\t\t\tsendJob(sender, comp);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t// Set submitted flag\n\t\t\t\t\t\t\t\tcomp.setSubmitted(true);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Take a short break before reading the job list again\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void start(){\n CoffeeMakerHelper coffeeMakerHelper = new CoffeeMakerHelper(inputArgs[0]);\n coffeeMakerService = coffeeMakerHelper.parseJsonFile();\n computeCoffeeMaker();\n }",
"@Override\n public void run() {\n this.running.set(true);\n Socket socket = null;\n // if flag is set to listen, keep listening for client connection request and keep accepting connections\n while (this.running.get()) {\n try {\n if (connectionCount.get() < Constants.MAX_CLIENT_CONNECTIONS) {\n socket = serverSocket.accept();\n socket.setSoTimeout(30000); // timeout set to 30,000 ms\n socket.setKeepAlive(true);\n log.info(\"Connection Accepted: Local Add {} Remote Add {}\", socket.getLocalAddress(),\n socket.getRemoteSocketAddress());\n // add the connected socket to the list\n socketList.add(socket);\n // Pass the socket to the RequestHandler thread for processing\n IncomingMessageHandler messageHandler = new IncomingMessageHandler(socket, logWriter, fileWriterQueue,\n periodicReportingService, orderShutdown);\n messageHandler.start();\n connectionCount.getAndIncrement();// increment connection count\n log.debug(\"Current number of connections {}\", connectionCount.get());\n } else {\n if(maxConnWarnCount < 4) {\n log.warn(\"Reached maximum connection limit {}; Stopping to accept more client connections\"\n , connectionCount.get());\n maxConnWarnCount++;\n }\n }\n } catch (IOException e) {\n log.error(\"Error in accepting connections\", e);\n if (e instanceof SocketException) {\n log.error(\"SocketException for remote connection\");\n }\n }\n }\n }",
"public void run(){\n\t\tstartServer();\n\t}",
"@Override\r\n\tpublic void run() {\n\t\twhile (true) {\r\n\t\t\tif (MatchReqPool.size() == 0) {\r\n\r\n\t\t\t\ttry {\r\n\r\n\t\t\t\t\tmatchReqDao = new MatchReqDaoImpl();\r\n\r\n\t\t\t\t\tList<MatchReq> list = matchReqDao.getAllNewReq();\r\n\r\n\t\t\t\t\tIterator<MatchReq> iterator = list.iterator();\r\n\t\t\t\t\tif (list.size() > 0) {\r\n\t\t\t\t\t\tLogger.info(\"Has New Request....\");\r\n\r\n\t\t\t\t\t\twhile (iterator.hasNext()) {\r\n\t\t\t\t\t\t\tMatchReq req = iterator.next();\r\n\t\t\t\t\t\t\treq.setPoint(\"[0:0]\");\r\n\t\t\t\t\t\t\treq.setStatus(MatchStatus.START);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tmatchReqDao.update(list);\r\n\t\t\t\t\t\tMatchReqPool.put(list);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} catch (MatchException em) {\r\n\t\t\t\t\tem.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tsleep(5000);\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}",
"public void start()\n {\n if (task != -1) {\n return;\n }\n\n task = Bukkit.getScheduler().scheduleSyncRepeatingTask(library.getPlugin(), this, 5, 1);\n }",
"private void startServer(){\n clients = new ArrayList<ClientThread>();\n ServerSocket ClientSocket = null;\n try {\n ClientSocket = new ServerSocket(ClientPort);\n ClientSocketConnection(ClientSocket);\n } catch (IOException e){\n e.printStackTrace();\n System.exit(1);\n }\n }",
"@Override\n\t\t\tprotected String doInBackground() throws Exception {\n\t\t\t\tQueue q = new Queue(1);\n\t\t\t\tQueue q1 = new Queue(2);\n\t\t\t\tQueue q2 = new Queue(3);\n\t\t\t\tQueue q3 = new Queue(4);\n\t\t\t\tQueue q4 = new Queue(5);\n\t\t\t\tQueue q5 = new Queue(6);\n\t\t\t\tQueue q6 = new Queue(7);\n\t\t\t\tClientGenerator gen = new ClientGenerator(simT,q,q1,q2,q3,q4,q5,q6);\n\t\t\t\t\n\t\t\t\tq.start();\n\t\t\t\tq1.start();\n\t\t\t\tq2.start();\n\t\t\t\tq3.start();\n\t\t\t\tq4.start();\n\t\t\t\tq5.start();\n\t\t\t\tq6.start();\n\t\t\t\tgen.start(minA, maxA, minS, maxS, qNr);\n\t\t\t\treturn null;\n\t\t\t}"
]
| [
"0.64696306",
"0.6396652",
"0.6346822",
"0.6331696",
"0.63079774",
"0.6303051",
"0.62605053",
"0.6259793",
"0.6255586",
"0.61665285",
"0.6111713",
"0.6107154",
"0.6089712",
"0.6047865",
"0.60133106",
"0.5981942",
"0.59770966",
"0.5918249",
"0.5917357",
"0.5848695",
"0.5822345",
"0.5802506",
"0.5800966",
"0.5782455",
"0.5778007",
"0.576756",
"0.5739833",
"0.5704246",
"0.56993234",
"0.56670076",
"0.56628084",
"0.5661195",
"0.5657161",
"0.5653287",
"0.56322515",
"0.56221277",
"0.56128514",
"0.56123656",
"0.5611153",
"0.56099844",
"0.56057197",
"0.5589783",
"0.5584591",
"0.558445",
"0.557231",
"0.55702186",
"0.55688936",
"0.5565958",
"0.5560645",
"0.55527884",
"0.55483955",
"0.55363744",
"0.5520589",
"0.55014294",
"0.549704",
"0.5496443",
"0.5489806",
"0.5485136",
"0.54803747",
"0.5477992",
"0.54713124",
"0.5471237",
"0.5471237",
"0.5471059",
"0.54696614",
"0.5457759",
"0.5454013",
"0.5452951",
"0.5452019",
"0.54505223",
"0.5450483",
"0.5449502",
"0.54482263",
"0.54393125",
"0.5433454",
"0.54330194",
"0.54327047",
"0.54296255",
"0.54284036",
"0.54232925",
"0.5422409",
"0.54182553",
"0.54162586",
"0.54159755",
"0.54151964",
"0.5412264",
"0.54084307",
"0.5405764",
"0.54007506",
"0.53958744",
"0.53902763",
"0.5387698",
"0.53781307",
"0.5373971",
"0.5371844",
"0.5370013",
"0.53676796",
"0.53649825",
"0.5362826",
"0.53611404"
]
| 0.5469882 | 64 |
Periodically retrieves clients from the acceptors and removes the ones that disconnected | private void scheduledTask() {
connectToNewViews();
removeDisconnectedViews();
try {
Thread.sleep(SCHEDULED_TASK_PERIOD);
// Scheduling future execution
synchronized (threadPool) {
if (!threadPool.isShutdown()) {
threadPool.execute(this::scheduledTask);
}
}
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void purgeStaleClients() {\n\t\tsynchronized (clients) {\n\t\t\tclients = clients.values().stream()\n\t\t\t .filter(od -> this.server.getClients().stream().anyMatch(c -> c.getName().equals(od.deviceId))\n\t\t\t || !od.purgeable())\n\t\t\t .collect(Collectors.toMap(od -> od.name, od -> od));\n\t\t}\n\t}",
"private void startEliminateExpiredClient() {\n this.expiredExecutorService.scheduleAtFixedRate(() -> {\n long currentTime = System.currentTimeMillis();\n List<ClientInformation> clients = ClientManager.getAllClient();\n if (clients != null && clients.size() > 0) {\n clients.stream().forEach(client -> {\n String clientId = ClientManager.getClientId(client.getAddress(), client.getPort());\n long intervalSeconds = (currentTime - client.getLastReportTime()) / 1000;\n if (intervalSeconds > configuration.getExpiredExcludeThresholdSeconds()\n && ClientStatus.ON_LINE.equals(client.getStatus())) {\n client.setStatus(ClientStatus.OFF_LINE);\n ClientManager.updateClientInformation(client);\n log.info(\"MessagePipe Client:{},status updated to offline.\", clientId);\n } else if (intervalSeconds <= configuration.getExpiredExcludeThresholdSeconds()\n && ClientStatus.OFF_LINE.equals(client.getStatus())) {\n client.setStatus(ClientStatus.ON_LINE);\n ClientManager.updateClientInformation(client);\n log.info(\"MessagePipe Client:{},status updated to online.\", clientId);\n }\n });\n }\n }, 5, configuration.getCheckClientExpiredIntervalSeconds(), TimeUnit.SECONDS);\n }",
"private void removeClient () {\n AutomatedClient c = clients.pollFirstEntry().getValue();\n Nnow--;\n\n c.signalToLeave();\n System.out.println(\"O cliente \" + c.getUsername() + \" foi sinalizado para sair\");\n }",
"public void cancelAllClients(){\n clientsPool.shutdownNow();\n }",
"private void manageClients() {\n manage = new Thread(\"Manage\") {\n public void run() {\n //noinspection StatementWithEmptyBody\n while (running) {\n sendToAll(\"/p/server ping/e/\".getBytes());\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //noinspection ForLoopReplaceableByForEach\n for (int i = 0; i < clients.size(); i++) {\n ServerClient tempClient = clients.get(i);\n if (!clientResponse.contains(tempClient.getID())) {\n if (tempClient.getAttempt() >= MAX_ATTEMPTS)\n disconnect(tempClient.getID(), false);\n else\n tempClient.setAttempt(tempClient.getAttempt() + 1);\n } else {\n clientResponse.remove(new Integer(tempClient.getID()));\n tempClient.setAttempt(0);\n }\n }\n }\n }\n };\n manage.start();\n }",
"private void killAllClients () {\n for (AutomatedClient c : clients.values()){\n c.signalToLeave();\n }\n\n LocalDateTime start = LocalDateTime.now();\n LocalDateTime max = start.plus(Duration.ofSeconds(WAIT_TIME));\n for (Thread t : threads.values()) { //Espera por todas as threads que foram corridas ao longo da execução do programa.\n try {\n t.join(WAIT_TIME*1000);\n if (LocalDateTime.now().isAfter(max)) {\n System.out.println(\"Force kill\");\n bruteKillAllClients();\n break;\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }",
"public void removeAll() {\n/* 105 */ this.connectionToTimes.clear();\n/* */ }",
"public void decrementClients() {\n\t\tconnectedClients.decrementAndGet();\n\t}",
"private void onPeersCleared()\n {\n for (PeerListener listener : getListeners()) {\n listener.onPeersCleared();\n }\n }",
"public static void clientListUpdater() {\r\n\t\tclientList.clear();\r\n\t\tclientList.addAll(serverConnector.getAllClients());\r\n\t}",
"public void clearAllClientConnections(String clientName) {\n for(int io = 0; io < 2; io++) {\n List<String> inputs = ports.get(clientName)[io];\n for (String input : inputs) {\n String thisPort = clientName + \":\" + input;\n //get all connections\n String cmd = \"/usr/local/bin/jack_lsp -c \" + thisPort;\n String connections = EZShell.call(cmd.split(\"[ ]\"));\n String[] lines = connections.split(\"[\\n]\");\n //connections start on line 1\n for (int i = 1; i < lines.length; i++) {\n String thatPort = lines[i].trim();\n String[] cmd2 = {\"/usr/local/bin/jack_disconnect\", thisPort, thatPort};\n EZShell.callNoResult(cmd2);\n System.out.println(\"disconnected: \" + thisPort + \" \" + thatPort);\n }\n }\n }\n\t}",
"private static void getClients() throws IOException {\r\n\t\tbidders=new ArrayList<Socket>();\r\n\t\tserverSocket=new ServerSocket(portno);\r\n\t\twhile ((bidders.size()<numBidders)&&(auctioneer==null)) {\r\n\t\t\tSocket temp=serverSocket.accept();\r\n\t\t\t//if (this client is a bidder)\r\n\t\t\t\tbidders.add(temp);\r\n\t\t\t//if (this client is the auctioneer)\r\n\t\t\t\tauctioneer=temp;\r\n\t\t}\r\n\t}",
"public void waitForClients() {\n\n\t\twhile (!Thread.interrupted()) {\n\t\t\tacceptClient();\n\t\t}\n\n\t}",
"private void removeClient(PrintWriter out) {\n\t\tsynchronized (clients) {\n\t\t\tclients.remove(out);\n\t\t}\n\t}",
"public void notifyDisconnection(String username){\r\n for(SocketClientHandlerObserver obs:observers){\r\n obs.onDisconnection(username);\r\n }\r\n }",
"public void exit() {\n\t\tJWebSocketTokenClient lClient;\n\t\tfor (int lIdx = 0; lIdx < mFinished; lIdx++) {\n\t\t\tlClient = mClients[lIdx];\n\t\t\tlClient.removeTokenClientListener(this);\n\t\t\ttry {\n\t\t\t\tmLog(\"Closing client #\" + lIdx + \" on thread: \" + Thread.currentThread().hashCode() + \"...\");\n\t\t\t\tlClient.close();\n\t\t\t\tThread.sleep(20);\n\t\t\t} catch (Exception lEx) {\n\t\t\t\tmLog(\"Exception: \" + lEx.getMessage() + \". Closing client #\" + lIdx + \"...\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tserveurConnect.add(client.getNomClient() + \" / \" + client.getClientSocket().getRemoteSocketAddress()\n\t\t\t\t\t\t+ \" déconnecté\");\n\n\t\t\t\tCompte c = new Compte(client.getNomClient(), client.getPassClient());\n\t\t\t\tComptes.remove(c);\n\n\t\t\t\tclients.remove(clientThreads.indexOf(client));\n\t\t\t\tSystem.out.println(\"erreur\" + clientThreads.indexOf(client));\n\t\t\t\tclientThreads.remove(clientThreads.indexOf(client));\n\t\t\t}",
"public synchronized void decrementClients()\r\n\t{\r\n\t\tnumberOfClients--;\r\n\t}",
"@Override\n public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {\n ctx.getChannel().getRemoteAddress();\n System.out.println(ctx.getChannel().getRemoteAddress()+\" Disconnected..\");\n Client user = ServerTools.getClientByChannel(ctx.getChannel());\n if(Server.live_clients.contains(user)){\n Server.live_clients.remove(user);\n System.out.println(\"User removed\");\n }\n }",
"protected synchronized void stopClients() throws Exception {\r\n if (this.clients != null) {\r\n for (Client client : this.clients) {\r\n client.stop();\r\n }\r\n }\r\n }",
"private void cleanPeerList() {\n\t\tfor (int i = 0; i < peers.size(); i++) {\n\t\t\tPeer p = peers.get(i);\n\t\t\tif (p == null)\n\t\t\t\tcontinue;\n\t\t\tif (p.closed()) {\n\t\t\t\tp.cancelAllPieces();\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tpeers.remove(i--);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tp.checkDisconnect();\n\t\t\t}\n\t\t}\n\t}",
"private void refreshServerList() {\n\t\tcurrentRequestId++;\n\t\tserverNames.clear();\n\t\tserverTable.clear();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\taddresses = client.discoverHosts(WifiHelper.UDP_PORT, 1000);\n\t\t\t\tint removed = 0;\n\t\t\t\tfor(int i = 0; i + removed < addresses.size(); i++) {\n\t\t\t\t\tsynchronized(client) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.connect(1000, addresses.get(i - removed), WifiHelper.TCP_PORT, WifiHelper.UDP_PORT);\n\t\t\t\t\t\t\tclient.sendTCP(new NameRequest(currentRequestId, addresses.size()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tclient.wait(5000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\taddresses.remove(i);\n\t\t\t\t\t\t\tremoved++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t}",
"private void closeConnections() throws IOException {\n\t\twhile(Server.clients != null && !Server.clients.isEmpty()){\n\t\t\tServerThread client = (Server.clients.removeFirst());\n\t\t\tclient.sendMessage(new Message(Message.CLOSE_CONNECTION));\n\t\t\t//client.close();\n\t\t}\n\t}",
"synchronized void remove(int id) {\n // server scans array list until id of the client that has logged off is found\n for (int i = 0; i < al.size(); ++i) {\n ClientThread ct = al.get(i);\n // found it, now remove the client with that id\n if (ct.id == id) {\n al.remove(i);\n return;\n }\n }\n }",
"private void removeConnections(String name_agent) {\n JConnector c;\n int i = 0;\n while (i < connections.size()) {\n c = connections.get(i);\n if(c.isConnection()){\n if(c.getSourceConnectionName().equals(name_agent) || c.getDestConnectionName().equals(name_agent)){\n connections.remove(i);\n i=0;\n }\n i++;\n }else{\n if(c.getAgentName().equals(name_agent)){\n connections.remove(i);\n i=0;\n }\n i++;\n }\n }\n }",
"private void handleWhiteboardCleared() {\n for (SocketConnection tobeNotified : SocketManager.getInstance()\n .getNotManagerConnectionList()) {\n tobeNotified.send(this.message);\n }\n }",
"@Override\n public void run() {\n while(true){\n try{\n Socket s = server.accept();\n String i = new DataInputStream(s.getInputStream()).readUTF();\n if(clientColl.containsKey(i)){\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"You Are Already Registered....!!\");\n }else{\n clientColl.put(i, s);\n txt.append(sdf.format(date) + \" \" + i + \" Joined !\\n\");\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"\");\n new MsgRead(s,i).start();\n new PrepareClientList().start();\n }\n \n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n \n }",
"private void addClients() {\n while (true) {\n Client client = readClient();\n if (client == null || client.getId() < 0) {\n break;\n }\n try {\n ctrl.addClient(client);\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }",
"private void channelPolling() throws IOException {\n\t\tSemaphore acceptLock = new Semaphore(1);\n\n\t\twhile (true) {\n\t\t\t//Waits until there is activity on one of the registered channels\n\t\t\tif (selector.selectNow() == 0) continue;\n\t\t\t//get list of all keys\n\t\t\tIterator<SelectionKey> keys = selector.selectedKeys().iterator();\n\n\t\t\twhile (keys.hasNext()) {\n\t\t\t\t//get key and find its activity\n\t\t\t\tSelectionKey key = keys.next();\n\n//\t\t\t\tSystem.out.printf(\"Key Value: Interest: %d, Ready: %d%n\", key.interestOps(), key.readyOps());\n\n\t\t\t\tif (!key.isValid()) {\n\t\t\t\t\tSystem.out.println(\"Canceled key encountered. Ignoring.\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( key.isAcceptable()) {\n\n\t\t\t\t\t//Stops redundant task creation. The lock is unlocked as soon as a thread handles\n\t\t\t\t\t//the registration of a client. Should never really bottleneck program\n\t\t\t\t\tif (!acceptLock.tryAcquire()) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t//Put new AcceptClientConnection in Queue with this key data\n\t\t\t\t\taddTask(new AcceptClientConnection(selector, serverChannel, acceptLock, this));\n\n\t\t\t\t}\n\n\t\t\t\tif ( key.isReadable()) {\n\t\t\t\t\t//deregister this key, as it's now not part of the serverSocketChannel, only a specific\n\t\t\t\t\t//client. Will reregister read interests as soon as it's read from\n\t\t\t\t\tkey.interestOps(0);\n\t\t\t\t\t//put new ReadClientData in Queue, which this key data\n\t\t\t\t\tSocketChannel client = (SocketChannel) key.channel();\n\n\t\t\t\t\t//Make sure the channelsToHandle isn't edited by a thread mid add/size check\n\t\t\t\t\t//also synchronized with the Thread's work when it handles the batch organization\n\t\t\t\t\tsynchronized (channelsToHandle) {\n\t\t\t\t\t\tchannelsToHandle.add(new ClientData(client, key));\n//\t\t\t\t\t\tSystem.out.printf(\"Client_Data: Appending '%s' to list. Size: %d%n\", client.getRemoteAddress(), channelsToHandle.size());\n\n\t\t\t\t\t\t//if there are more than enough clients to handle, hand it off to a client and move on\n\t\t\t\t\t\tif (channelsToHandle.size() >= batchSize && organizeLock.tryAcquire()) {\n\t\t\t\t\t\t\taddTask(new OrganizeBatch(channelsToHandle, queue, hashList, batchSize, organizeLock, this));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif ( key.isWritable()) {\n//\t\t\t\t\tSystem.out.println(\"Client can be written to\");\n\t\t\t\t}\n\t\t\t\t//done with the key this iteration, check again for any new activity next select\n\t\t\t\tkeys.remove();\n\t\t\t}\n\t\t}\n\t}",
"protected void disconnectFromAllEndpoints() {\n for (Endpoint endpoint : mEstablishedConnections.values()) {\n mConnectionsClient.disconnectFromEndpoint(endpoint.getId());\n }\n mEstablishedConnections.clear();\n }",
"public void deleteIObservers( )\n {\n observers.removeAllElements();\n }",
"void cleanUpExpiredSessions() {\n try (TarantoolClient client = clientSource.getClient()) {\n client.select(getSpace(client), SPACE_EXPIRY_INDEX, Integer.MAX_VALUE, 0, Iter.LE);\n client.setLong(System.currentTimeMillis());\n Result result = client.execute();\n Set<UUID> ids = new HashSet<>();\n while (result.next()) {\n ids.add(new UUID(result.getLong(2), result.getLong(3)));\n }\n ids.forEach(id -> deleteById(id, client));\n if (logger.isDebugEnabled()) {\n logger.debug(\"Cleaned up \" + ids.size() + \" expired sessions\");\n }\n }\n }",
"public void dispatchDisconnection(String clientId)\n {\n for (GpsUpdateListener listsner : registeredListeners)\n {\n listsner.onClientDisconnected(clientId);\n }\n }",
"private void terminateAllClientConnections() {\n log.info(\"Terminate command received; Closing sockets..\");\n log.info(\"Attempting closing client sockets..\");\n this.socketList.forEach(socket -> {\n try {\n socket.close();\n } catch (Exception e) {\n log.error(\"Error closing client socket address\", socket.getRemoteSocketAddress().toString());\n }\n });\n log.info(\"Attempting closing server listening socket\");\n try {\n this.serverSocket.close();\n this.running.set(false);\n } catch (Exception e) {\n log.error(\"Error closing server socket port\", port);\n }\n }",
"public void deleteClients(Collection<Client> clients, AsyncCallback<Void> cb);",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (OnlineObjectsContainer.this.onlineObjects) {\n\t\t\t\t\tIterator<OnlineObject> iterator = OnlineObjectsContainer.this.recentlyAddedObjects.iterator();\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tfinal OnlineObject anObject = iterator.next();\n\t\t\t\t\t\tif (anObject.getSeenAt().getTime() + OnlineObjectsContainer.RECENT_TIMEOUT < System.currentTimeMillis()) {\n\t\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\titerator = OnlineObjectsContainer.this.recentlyRemovedObjects.iterator();\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tfinal OnlineObject anObject = iterator.next();\n\t\t\t\t\t\tif (anObject.getSeenAt().getTime() + OnlineObjectsContainer.RECENT_TIMEOUT < System.currentTimeMillis()) {\n\t\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"public void run() {\n while (true) {\n try {\n /* Get string from client */\n String fromClient = this.in.readLine();\n \n /* If null, connection is closed, so just finish */\n if (fromClient == null) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this == clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + this.id + \" disconnected\"); }\n }\n this.in.close();\n this.out.close();\n this.socket.close();\n return;\n }\n \n /* If the client said \"bye\", close the connection */\n if (fromClient.equals(\"bye\")) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this != clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + this.id + \" said bye, disconnecting\"); }\n }\n this.in.close();\n this.out.close();\n this.socket.close();\n return;\n }\n\n if(fromClient.startsWith(\"/id \")) {\n String oldID=this.id;\n String msg = this.changeID(fromClient.substring(4));\n if (msg.equals(\"\")) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this != clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + oldID + \" changed his/her name to \" + this.id); }\n }\n }\n else {\n this.out.println(msg);\n }\n }\n else if(fromClient.startsWith(\"/whisper \")){\n String msg = this.whisper(fromClient.substring(9, StringUtils.ordinalIndexOf(fromClient, \" \", 2)));\n String user = fromClient.substring(9, StringUtils.ordinalIndexOf(fromClient, \" \", 2));\n for (int x=0; x<clientlist.size(); x++) {\n if (user.equalsIgnoreCase(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(this.id + \" whispered : \" + (fromClient.substring(StringUtils.ordinalIndexOf(fromClient, \" \", 2)+1)).toUpperCase() );\n }\n }\n if(!msg.equalsIgnoreCase(\"\")){ this.out.println(msg); }\n }\n else if(fromClient.startsWith(\"/room \")){\n String msg = this.roomChange(fromClient.substring(6));\n String roomName = fromClient.substring(6);\n for (int x=0; x<rooms.size(); x++) {\n if (rooms.get(x).title.equalsIgnoreCase(roomName)) {\n for (int y = 0; y < clientlist.size(); y++) {\n if (rooms.get(x).hasClient(clientlist.get(y).id) && !clientlist.get(y).id.equalsIgnoreCase(this.id)) {\n clientlist.get(y).out.println(this.id + \" has joined room \" + roomName);\n }\n }\n }\n }\n this.out.println(msg);\n\n room aRoom = new room(\"x\");\n for(room theRoom : rooms){\n ArrayList<String> members = theRoom.getMembers();\n for(String member : members) {\n if (member.equalsIgnoreCase(this.id)) {\n aRoom = theRoom;\n }\n }\n }\n\n this.out.print(\"The admins in the group are: \");\n for(String admin: aRoom.getAdmins()){\n this.out.print(admin + \" \");\n }\n this.out.println(\"\");\n this.out.println(\"The topic of the room is \" + aRoom.topic);\n }\n else if(fromClient.startsWith(\"/+admin \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String roomName=\"\";\n room aRoom = new room(\"x\");\n String user = fromClient.substring(8);\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n this.addAdmin(user, roomName);\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(user + \" was made an admin of \" + roomName);\n }\n }\n }\n else if(fromClient.startsWith(\"/-admin \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String roomName=\"\";\n room aRoom = new room(\"x\");\n String user = fromClient.substring(8);\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n this.removeAdmin(user);\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(clientlist.get(x).id + \" was removed from the admin position in \" + roomName);\n }\n }\n }\n else if(fromClient.startsWith(\"/kick \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String user = fromClient.substring(6);\n String roomName=\"\";\n room aRoom = new room(\"x\");\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id) && !clientlist.get(x).id.equalsIgnoreCase(user)){\n clientlist.get(x).out.println(user + \" was kicked from \" + roomName);\n }\n else if (aRoom.getAdmins().contains(user) && clientlist.get(x).id.equalsIgnoreCase(this.id) ){\n this.out.println(\"You cannot kick an admin of the group\");\n }\n else if (aRoom.getMembers().contains(clientlist.get(x).id) && clientlist.get(x).id.equalsIgnoreCase(user)) {\n clientlist.get(x).out.println(\"You are being kicked from \" + roomName + \" by \" + this.id + \", and being placed in Lobby.\");\n this.kick(user);\n }\n }\n }\n else if(fromClient.startsWith(\"/topic \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String topic = fromClient.substring(7);\n String roomName=\"\";\n\n for(room theRoom : rooms){\n ArrayList<String> members = theRoom.getMembers();\n for(String member : members) {\n if (member.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n }\n }\n }\n\n this.addTopic(topic);\n for (int x=0; x<rooms.size(); x++) {\n if (rooms.get(x).title.equalsIgnoreCase(roomName)) {\n for (int y = 0; y < clientlist.size(); y++) {\n if (rooms.get(x).hasClient(clientlist.get(y).id) && !clientlist.get(y).id.equalsIgnoreCase(this.id) && rooms.get(x).getAdmins().contains(this.id)) {\n clientlist.get(y).out.println(this.id + \" changed the topic of the room to \" + topic);\n }\n }\n }\n }\n }\n \n /* Otherwise send the text to the server*/\n\n else {\n for (int y=0; y < rooms.size(); y++) {\n for (int x = 0; x < clientlist.size(); x++) {\n if (this != clientlist.get(x)) {\n if(rooms.get(y).hasClient(this.id) && rooms.get(y).hasClient(clientlist.get(x).id)) {\n clientlist.get(x).out.println(\"Client \" + this.id + \" said: \" + fromClient);\n }\n }\n }\n }\n }\n \n } catch (IOException e) {\n /* On exception, stop the thread */\n System.out.println(\"IOException: \" + e);\n return;\n }\n }\n }",
"private void reEstablishConnections() {\n// System.out.println(\"Impossible to create overlay, starting over...\");\n for (NodeRecord node : registeredNodes.values()) {\n node.getNodesToConnectToList().clear();\n node.resetNumberOfConnections();\n }\n createOverlay();\n }",
"public static void main(String[] args) {\n try {\r\n ServerSocket server=new ServerSocket(port);\r\n System.out.println(\"Waiting for a client...\");\r\n\r\n connections=new ArrayList<>();\r\n ExecutorService es = Executors.newFixedThreadPool(max_clients);\r\n\r\n Connection tmp;\r\n while(true) {\r\n\r\n\r\n Socket socket = server.accept();\r\n if(max_clients<=clients){\r\n OutputStream out = socket.getOutputStream();\r\n BufferedWriter rout= new BufferedWriter(new OutputStreamWriter(out));\r\n rout.write(\"Chat is full(\"+max_clients+\" users). You can't join. Try again later.\");\r\n rout.write(\"\\n\");\r\n rout.flush();\r\n socket.close();\r\n out.close();\r\n continue;\r\n }\r\n\r\n tmp=new Connection(socket);\r\n es.submit(tmp);\r\n clients++;\r\n System.out.println(\"New user has joined. Number of users - \"+clients);\r\n connections.add(tmp);\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void clientDeconnection (ServerSocket client) {\n this.connectedClients.remove(client);\n }",
"private void maintain(){\n ArrayList<Integer> shutDown = new ArrayList<Integer>();\n for (String addr : slaveMap.keySet()){\n if (!responderList.containsKey(slaveMap.get(addr))){\n shutDown.add(slaveMap.get(addr));\n }\n }\n //print\n for (Integer id : shutDown){\n synchronized (slaveList) {\n slaveList.remove(id);\n }\n }\n //TODO: one a slave lost control, what should ArcherDFS do?\n }",
"@Override\n public void refresh() {\n serverJList.removeAll();\n client.searchForServer();\n }",
"private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal long now =SystemTime.getCurrentTime();\n\n\t\t//for every connection\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i =peer_transports.size() -1; i >=0 ; i--)\n\t\t{\n\t\t\tfinal PEPeerTransport pc =(PEPeerTransport)peer_transports.get(i);\n\t\t\tif (pc.getPeerState() ==PEPeer.TRANSFERING)\n\t\t\t{\n\t\t\t\tfinal List expired = pc.getExpiredRequests();\n\t\t\t\tif (expired !=null &&expired.size() >0)\n\t\t\t\t{ // now we know there's a request that's > 60 seconds old\n\t\t\t\t\tfinal boolean isSeed =pc.isSeed();\n\t\t\t\t\t// snub peers that haven't sent any good data for a minute\n\t\t\t\t\tfinal long timeSinceGoodData =pc.getTimeSinceGoodDataReceived();\n\t\t\t\t\tif (timeSinceGoodData <0 ||timeSinceGoodData >60 *1000)\n\t\t\t\t\t\tpc.setSnubbed(true);\n\n\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\tDiskManagerReadRequest request =(DiskManagerReadRequest) expired.get(0);\n\n\t\t\t\t\tfinal long timeSinceData =pc.getTimeSinceLastDataMessageReceived();\n\t\t\t\t\tfinal boolean noData =(timeSinceData <0) ||timeSinceData >(1000 *(isSeed ?120 :60));\n\t\t\t\t\tfinal long timeSinceOldestRequest = now - request.getTimeCreated(now);\n\n\n\t\t\t\t\t//for every expired request \n\t\t\t\t\tfor (int j = (timeSinceOldestRequest >120 *1000 && noData) ? 0 : 1; j < expired.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the request object\n\t\t\t\t\t\trequest =(DiskManagerReadRequest) expired.get(j);\n\t\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\t\tpc.sendCancel(request);\t\t\t\t//cancel the request object\n\t\t\t\t\t\t//get the piece number\n\t\t\t\t\t\tfinal int pieceNumber = request.getPieceNumber();\n\t\t\t\t\t\tPEPiece\tpe_piece = pePieces[pieceNumber];\n\t\t\t\t\t\t//unmark the request on the block\n\t\t\t\t\t\tif ( pe_piece != null )\n\t\t\t\t\t\t\tpe_piece.clearRequested(request.getOffset() /DiskManager.BLOCK_SIZE);\n\t\t\t\t\t\t// remove piece if empty so peers can choose something else, except in end game\n\t\t\t\t\t\tif (!piecePicker.isInEndGameMode())\n\t\t\t\t\t\t\tcheckEmptyPiece(pieceNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}",
"synchronized void removeClient(int id) \r\n {\r\n for(int i = 0; i < clientList.size(); ++i) \r\n {\r\n\r\n ClientProcess clientT1 = clientList.get(i);\r\n\r\n if(clientT1.id == id) {\r\n\r\n clientList.remove(i);\r\n return;\r\n }\r\n }\r\n }",
"protected void listClients() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tsynchronized (processors) {\r\n\t\t\t\tint procCount = processors.count();\r\n\t\t\t\tif (procCount > 0) {\r\n\t\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\t\tSystem.out.print(proc.getSystemId());\r\n\t\t\t\t\t\tif (!proc.isActive()) {\r\n\t\t\t\t\t\t\tSystem.out.println(\" (inactive)\");\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tSystem.out.println(\"No client connected.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}",
"@Override\n\t\t\tpublic void onCompleted() {\n\t\t\t\tSystem.out.println(\"Completed Operations\");\n\t\t\t\tconnected_clients.remove(responseObserver);\n\t\t\t}",
"@Override\n\tpublic List<Socket> GetConnectedClients() {\n\t\t\n\t\tArrayList<Socket> list = new ArrayList<Socket>();\n\t\t\n\t\tif(clients == null)return list;\n\t\t\n\t\tfor(Socket s : clients)\n\t\t{\n\t\t\tlist.add(s);\n\t\t}\n\t\t\n\t\treturn list;\n\t}",
"@Override\n\tpublic void run(){\n\t\tInetAddress IPAddress = serverTcpSocket.getInetAddress();\n\t\tfor (ClientObj c: clients)\n\t\t\tif (c.getId() == client.getId()){\n\t\t\t\tSystem.out.print(IPAddress + \" Client already connected!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\ttry{\n\t\t\t// Check handshake received for correctness\n\t\t\t//(connect c->s) [herader | \"JUSTIN\\0\" | connection port] (udp)\n\t\t\t//(connect response s->c) [header | client id | port] (udp)\n\t \n\t // open the connection\n\t\t clientSocket = null;\n\t\t Socket clientListener = null;\n\t\t // wait for client connection on tcp port\n\t\t //serverTcpSocket.setSoTimeout(5000);\n\t \tSystem.out.println (\" Waiting for tcp connection.....\");\n\t \tclientSocket = serverTcpSocket.accept();\n\t \tclientListener = serverTcpSocket.accept();\n\t \tclient.setListenerSocket(clientListener);\n\t\t\tIPAddress = clientSocket.getInetAddress();\n\t\t\tint recv_port = clientSocket.getPort();\n\t\t\tSystem.out.println(IPAddress + \": Client connected @ port \" + recv_port);\n\n\t\t // handle tcp connection\n\t\t\tclientSocket.setSoTimeout(Constants.ACK_TIMEOUT);\n\t\t out = new BufferedOutputStream(clientSocket.getOutputStream());\n\t\t\tin = new BufferedInputStream(clientSocket.getInputStream());\n\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\tclient.setPort(clientSocket.getPort());\n\t\t clients.add(client);\n\t\t\t\n\t\t // handle requests\n\t\t\twhile (!shutdown_normally) {\n\t\t\t\t// read just the header, then handle the req based on the info in the header\n\t\t\t\tif ((buf = Utility.readIn(in, Constants.HEADER_LEN)) == null)\n\t\t\t\t\tbreak;\n\t\t\t\tint flag = buf.getInt(0);\n\t\t\t\tint len2 = buf.getInt(4);\n\t\t\t\tint id = buf.getInt(8);\n\t\t\t\t\n\t\t\t\t// check for correctness of header\n\t\t\t\t\n\t\t\t\tif (flag < Constants.OPEN_CONNECTION || \n\t\t\t\t\t\tflag > Constants.NUM_FLAGS || \n\t\t\t\t\t\tid != client.getId() || \n\t\t\t\t\t\tlen2 < 0){\n\t\t\t\t\tout.close(); \n\t\t\t\t\tin.close(); \n\t\t\t\t\tclientSocket.close(); \n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t\t\tclients.remove(client);\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"Connection - FAILURE! (malformed header)\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// read payload\n\t\t\t\tif ((buf = Utility.readIn(in, Utility.getPaddedLength(len2))) == null)\n\t\t\t\t\tthrow new IOException(\"read failed.\");\n\t\t\t\t// update address (necessary?)\n\t\t\t\tclients.get(clients.indexOf(client)).setAddress(clientSocket.getInetAddress());\n\t\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\t\tswitch (flag){\n\t\t\t\t\tcase Constants.ACK:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.VIEW_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing view request...\");\n\t\t\t\t\t\tViewFiles(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download request...\");\n\t\t\t\t\t\tDownload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.UPLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing upload request...\");\n\t\t\t\t\t\tUpload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_ACK:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download acknowledgment...\");\n\t\t\t\t\t\tDownloadCompleted(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.CLOSE_CONNECTION:\n\t\t\t\t\t\tshutdown_normally = true;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// close all open sockets\n\t\t out.close(); \n\t\t in.close(); \n\t\t clientSocket.close(); \n\t\t serverTcpSocket.close();\n\t\t} catch (SocketTimeoutException e) {\n\t\t\tSystem.err.println(IPAddress + \": Timeout waiting for response.\");\n\t\t} catch (UnknownHostException e) {\n\t\t\t// IPAdress unknown\n\t\t\tSystem.err.println(\"Don't know about host \" + IPAddress);\n\t\t} catch (IOException e) {\n\t\t\t// Error in communication\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to \" +\n\t\t\t\t\tIPAddress);\n\t\t} catch (RuntimeException e){\n\t\t\t// Malformed Header or payload most likely\n\t\t\tSystem.err.println(IPAddress + \": Connection - FAILURE! (\" + e.getMessage() + \")\");\n\t\t} finally {\n\t\t\t// remove this client from active lists, close all (possibly) open sockets\n\t\t\tSystem.out.println(IPAddress + \": Connection - Closing!\");\n\t\t\tclients.remove(client);\n\t\t\ttry {\n\t\t\t\tSocket clientConnection = client.getListenerSocket();\n\t\t\t\tOutputStream out_c = new BufferedOutputStream(clientConnection.getOutputStream());\n\t\t\t\tbuf = Utility.addHeader(Constants.CLOSE_CONNECTION, 0, client.getId());\n\t\t\t\tout_c.write(buf.array());\n\t\t\t\tout_c.flush();\n\t\t\t\tout_c.close();\n\t\t\t\tclientConnection.close();\n\n\t\t\t\tif (out != null)\n\t\t\t\t\tout.close();\n\t\t\t\tif (in != null)\n\t\t\t\t\tin.close();\n\t\t\t\tif (!clientSocket.isClosed())\n\t\t\t\t\tclientSocket.close();\n\t\t\t\tif (!serverTcpSocket.isClosed())\n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t} catch (IOException e){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n }",
"public void videListeClient(){\n couleurs.clear();\n }",
"@Override\n\tpublic void onClientDisconnection(ClientThread client) {\n\n\t\ttry{\n\t\t\tlockClients.writeLock().lock();\n\t\t\tthis.clients.remove(client);\n\t\t} finally {\n\t\t\tlockClients.writeLock().unlock();\n\t\t}\n\n\t\ttry {\n\t\t\tlockClients.readLock().lock();\n\t\t\tLocalDateTime now = LocalDateTime.now();\n\t\t\tString toSend = \"[\"+dtf.format(now)+\"] \"+client.getClientName()+\" has disconnected the chat\";\n\t\t\tfor(ClientThread c : clients) {\n\t\t\t\tc.sendMessage(toSend);\n\t\t\t}\n\t\t\taddToHistory(toSend);\n\t\t} finally {\n\t\t\tlockClients.readLock().unlock();\n\t\t}\n\t}",
"public void run() {//metodo\n try {\n //start the input and output channels\n datain = new DataInputStream(port.getInputStream());\n dataout = new DataOutputStream(port.getOutputStream());\n \n \n while(true){//Receive de clients messages\n String received = datain.readUTF();\n \n for (int i = 0; i < users.size(); i++) {\n dataout = new DataOutputStream(users.get(i).getOutputStream());//send the message to all the active users\n dataout.writeUTF(received);//send the message\n }\n }\n } catch (IOException e) {\n for (int i = 0; i < users.size(); i++) {\n if(users.get(i) == port){\n users.remove(i);//Remove user if is disconnected\n break;\n } \n }\n }\n }",
"public Iterator getClients() {\n rrwl_serverclientlist.readLock().lock();\n try {\n return clientList.iterator();\n } finally {\n rrwl_serverclientlist.readLock().unlock();\n }\n }",
"@Override\n\t\tpublic void closeAll() {\n\t\t\tfor (ClientHandler clientHandler : new ArrayList<ClientHandler>(this.running)) {\n\t\t\t\tclientHandler.close();\n\t\t\t}\n\t\t}",
"Set<Client> getAllClients();",
"@Override\r\n \tpublic void clientDisconnectedCallback(RoMClient client) {\r\n \t\tthis.disconnectClient(client);\r\n \t}",
"public static void viewConnections(){\n\t\tfor(int i=0; i<Server.clients.size();i++){\n\t\t\tServerThread cliente = Server.clients.get(i);\n\t\t\tlogger.logdate(cliente.getConnection().getInetAddress().getHostName());\n\t\t}\n\t}",
"static void removeClient(String username) {\n\t\tif (ConnectedClients.containsKey(username)) {\n\t\t\tConnectedClients.remove(username);\n\t\t\tActiveClients.remove(username);\n\t\t\tSystem.out.println(\"Active clients after removal\"+ActiveClients);\n\t\t\tDML0=new DefaultListModel();\n\t\t\tCurrentClients.setModel(DML0);\n\t\t\tDML0.addAll(ActiveClients);\n\t\t\tCurrentClients.setModel(DML0);\n\t\t}\n\t}",
"public void shutdown() {\n\t\t//We call peers.values() and put into Array to create an unchanging copy, one that\n\t\t//does not shrink even as the sockets remove themselves from the peers list\n\t\t//this prevents a ConcurrentModificationException\n\t\tonline = false;\n\t\tArrayList<DecentSocket> connections = new ArrayList<DecentSocket>(peers.values());\n\t\tfor(DecentSocket socket: connections) {\n\t\t\tsocket.stop();\n\t\t}\n\t\tlistener.stop();\n\t\tchecker.stop();\n\t}",
"List<GroupUser> getConnectedClients();",
"@Override\n\tpublic Collection<Client> getAllClients() {\n\t\treturn null;\n\t}",
"@Override\n public void run()\n {\n System.out.println(\"[\" + getCurrentDateTimeStamp() + \"]\" + \" Received connection from: \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.INFO.toString(), \"Received connection from: \" + clientSocket);\n try (PrintWriter pw = new PrintWriter(clientSocket.getOutputStream());\n BufferedReader br = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()))) {\n String line = \"\";\n\n while ((line != null) && (!line.trim().toUpperCase().equals(\"CLOSE\")) && (!stop)) {\n if (!stop && !clientSocket.isClosed()) {\n synchronized (this) {\n line = br.readLine();\n }\n }\n\n if ((line != null) && (!line.trim().isEmpty()) && (!stop)) {\n if(\"getRegisterTopics\".equalsIgnoreCase(line))\n {\n sendRegisterTopics(pw);\n }\n else\n {\n line = processMessage(clientSocket, pw, line);\n }\n }\n }\n } catch (SocketException e1)\n {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"the connection was interrupted by the client - \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e1));\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] the connection was interrupted by the client - \" + clientSocket);\n } catch (IOException e)\n {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"Error while try to read from client \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e));\n System.out.println(\"Error while try to read from client \" + clientSocket);\n } finally {\n //remove from topic table\n synchronized (Server.class) {\n if (clientTopicsTable.containsKey(clientSocket)) {\n clientTopicsTable.remove(clientSocket);\n }\n //remove from threads table\n if (Server.handleClients.contains(this)) {\n Server.handleClients.remove(this);\n }\n }\n try {\n clientSocket.close();\n } catch (IOException e) {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"Error while try to close socket clientSocket: \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e));\n System.out.println(\"Error while try to close socket clientSocket: \" + clientSocket);\n }\n }\n }",
"protected void delete () {\n OleThreadRequest request = \n new OleThreadRequest(DELETE,\n 0, 0, 0, 0);\n synchronized (this) {\n messagesWaiting.add(request);\n notify();\n }\n while (!request.finished) { \n synchronized(request) {\n try {\n request.wait(POLL_FOR_RESULT_HEARTBEAT);\n }\n catch (InterruptedException e) { \n }\n } \n }\n }",
"private void processPendingRegistrations()\n throws ClosedChannelException {\n Iterator<SocketChannel> it = pendingRegistrations.iterator();\n while (it.hasNext() == true) {\n SocketChannel channel = it.next();\n it.remove();\n\n TransmissionTracker tracker = socketToTracker.get(channel);\n channel.register(selector, SelectionKey.OP_CONNECT, tracker);\n }\n }",
"public void run() {\n // to loop until LOGOUT\n boolean keepGoing = true;\n while (keepGoing) {\n // read a String (which is an object)\n try {\n msg = (String) sInput.readObject();\n } catch (IOException e) {\n //exception message displayed and then loop broken\n displayEvent(username + \" Exception reading Streams: \" + e);\n break; \n } catch(ClassNotFoundException e2) {\n //exception handling, loop broken\n break;\n }\n\n // Switch on the type of message received\n if (msg.equals(\"LOGOUT\")) {\n //logout message displayed in events section of server\n displayEvent(username + \" disconnected with a LOGOUT message. \\n \\n\");\n //goodbye message displayed client side\n writeMsg(\"Goodbye \" +username + \"! \\n \\n\");\n //client disconnected\n keepGoing = false;\n } else if (msg.equals(\"WHOISIN\")) { \n //message displayed client side with date\n writeMsg(\"List of the users connected at \" + sdf.format(new Date()) +\n \"\\n\");\n \n //arraylist scanned for clients connected, \n //message displayed client side with clients' names & the date connected\n for (int i = 0; i < al.size(); ++i) {\n ClientThread ct = al.get(i);\n writeMsg((i+1) + \") \" + ct.username + \" since \" + ct.date);\n }\n } else {\n //all other messages from client displayed client side\n broadcast(username + \" : \" + msg);\n }\n }\n //remove this client from arrayList\n remove(id);\n close();\n }",
"public synchronized void closeExpiredConnections() {\n/* 337 */ if (this.isShutdown.get()) {\n/* */ return;\n/* */ }\n/* 340 */ if (!this.leased) {\n/* 341 */ checkExpiry();\n/* */ }\n/* */ }",
"public static void decreaseNumberOfClients()\n {\n --numberOfClients;\n }",
"@Override\n\tpublic void run(){\n\t\ttry{\n\t\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\twhile(true){\n\t\t\t\ttry{\t\t\t\t\t\n\t\t\t\t\tmethReception(in);\n\t\t\t\t\texeBdd();\n\t\t\t\t\tmethEnvoie();\n\t\t\t\t}catch(IllegalArgumentException | ExecutionException | InterruptedException a){\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(a.getMessage());\t\t\t\t\n\t\t \tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Fin des comunucations avec :\" + socket.getPort());\n\t\t\tAuthentification.CLIENTS.remove(this);\n\t\t\tsocket.close();\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"problème BufferedReader du ChatServeur\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}",
"public void run()\n {\n try\n {\n logger.debug(\"Starting server-side thread\");\n while (active)\n {\n List<Node> nodesFromQuery = null;\n if (clients.size() > 0)\n {\n nodesFromQuery = BeanLocator.getRouterService().findNodesWithNumberOfMessages(routerId);\n logger.debug(\"Number of nodesFromQuery for this routerId :\" + routerId + \" is:\" + nodesFromQuery.size());\n\n for (Node node : nodesFromQuery)\n {\n // if node exists in map\n if (this.nodes.get(node.getId()) != null)\n {\n logger.debug(\"Node already in map\");\n // check if something has been updated on the node - using hashcode\n\n logger.debug(this.nodes.get(node.getId()).getNumberOfMessagesHandled().toString());\n logger.debug(node.getNumberOfMessagesHandled().toString());\n boolean hasNumberOfMessagesChanged = !this.nodes.get(node.getId()).getNumberOfMessagesHandled().equals(node.getNumberOfMessagesHandled());\n if (hasNumberOfMessagesChanged)\n {\n logger.debug(\"Fire update event..\");\n // if something has changed fire update event\n this.nodes.put(node.getId(), node);\n fireNodeUpdatedEvent(node);\n } else\n {\n // nothing changed - ignore and log\n logger.info(\"Nothing changed on node :\" + node.getId());\n }\n } else\n {\n // else if node does not exist store the node in the map\n logger.debug(\"Storing node in map\");\n this.nodes.put(node.getId(), node);\n fireNodeUpdatedEvent(node);\n }\n }\n } else\n {\n logger.info(\"Thread running but no registered clients\");\n }\n Thread.sleep(CALLBACK_INTERVALL);\n }\n logger.debug(\"Stopping server-side thread. Clearing nodes and clients.\");\n clients.clear();\n nodes.clear();\n }\n catch (InterruptedException ex)\n {\n logger.warn(\"Thread interrupted.\", ex);\n }\n }",
"void onRunawayReactionsDetected()\n {\n final List<String> observerNames =\n Arez.shouldCheckInvariants() && BrainCheckConfig.verboseErrorMessages() ?\n _pendingObservers.stream().map( Node::getName ).collect( Collectors.toList() ) :\n null;\n\n if ( ArezConfig.purgeReactionsWhenRunawayDetected() )\n {\n _pendingObservers.clear();\n }\n\n if ( Arez.shouldCheckInvariants() )\n {\n fail( () -> \"Arez-0101: Runaway reaction(s) detected. Observers still running after \" + _maxReactionRounds +\n \" rounds. Current observers include: \" + observerNames );\n }\n }",
"public void removeConnection(ClientHandler clientHandler){\n String nick=clientToNames.get(clientHandler);\n System.out.println(\"Removing player \"+nick+\" from the lobby number \" + lobbyID);\n namesToClient.remove(nick, clientHandler);\n nicknames.remove(nick);\n clientToNames.remove(clientHandler, nick);\n playersNumber--;\n }",
"public void timeout(){\n\t\tDate now = new Date();\n\t\tfor (Broadcast b : this.broadcasts){\n\t\t\tif (b.getTimeout().getTime() < now.getTime()){\n\t\t\t\tthis.remove(b);\n\t\t\t}\n\t\t}\n\t}",
"void clientDisconnected(Client client, DisconnectInfo info);",
"synchronized void remove(int id) {\n\n String disconnectedClient = \"\";\n // scan the array list until we found the Id\n for(int i = 0; i < clientThreads.size(); ++i) {\n ClientThread ct = clientThreads.get(i);\n // if found remove it\n if(ct.id == id) {\n disconnectedClient = ct.getUsername();\n clientThreads.remove(i);\n break;\n }\n }\n broadcast(notification + disconnectedClient + \" has left the chat room.\" + notification, clientThreads);\n }",
"public void disconnect(){\n\t\tfor (NodeInfo peerInfo : peerList) {\r\n\t\t\t// send leave to peer\r\n\t\t\tsend(\"0114 LEAVE \" + ip + \" \" + port, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\r\n\t\t\tfor (NodeInfo peerInfo2 : peerList) {\r\n\t\t\t\tif (!peerInfo.equals(peerInfo2)) {\r\n\t\t\t\t\tString joinString = \"0114 JOIN \" + peerInfo2.getIp() + \" \" + peerInfo2.getPort();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsend(joinString, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tunRegisterBootstrapServer(serverIp, serverPort, ip, port, username);\r\n\t\t\tapp.printInfo(\"Node disconnected from server....\");\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t//socket = null;\r\n\t}",
"public synchronized void prunePeers() {\n\t\tchecker.checkList(this.getPeers());\n\t}",
"@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t}",
"protected abstract void disconnect(UUID[] players, String reason, IntConsumer response);",
"public void getClients(AsyncCallback<List<Client>> cb);",
"public List<ClientThread> getClients(){\n return clients;\n }",
"private synchronized void broadcast(String message){\n //add dd-MM-yyyy HH:mm:ss to the message, each starting on a new line\n String messageLf = sdf.format(new Date()) + \" \" + message + \"\\n\";\n // display message in GUI\n displayMsg(messageLf);\n //loop in reverse order in case a client disconnects & needs to be removed\n for (int i = al.size(); --i >= 0;){\n ClientThread ct = al.get(i);\n // try to write to the client, if fail, remove client from the list\n if (!ct.writeMsg(messageLf)) {\n al.remove(i);\n displayEvent(\"Disconnected Client \" + ct.username +\n \" removed from list.\");\n }\n }\n }",
"@Override\n public void run() {\n List<Integer> list = new ArrayList<Integer>();\n int num_peer = P.peer_port.length;\n int ind = -1;\n while (P.choke_thread_running) {\n synchronized (P.lock_current_neighbors) { //lock the object\n for (int i = 0; i < num_peer; i++) {\n list.add(i);\n }\n //select randomly.\n java.util.Collections.shuffle(list);\n int[] cn = P.current_neighbors.clone();\n Arrays.sort(cn);\n for (int i = 0; i < num_peer; i++) {\n int ind2 = list.get(i);\n if (P.is_interested[ind2] && Arrays.binarySearch(cn, P.peer_id[ind2]) < 0 && P.peer_id[ind2] != P.id && P.sockets[ind2]!=null) {\n ind = ind2;\n P.current_neighbors[P.current_neighbors.length - 1] = P.peer_id[ind];\n break;\n }\n\n }\n }\n //send unchoke message.\n Message msg = new Message();\n msg.length = 0; //no payload.\n msg.type = 1; //unchoke.\n msg.payload = null; //no payload.\n \n if (ind >= 0) //there is someone interested in my data.\n {\n P.send(P.peer_id[ind], msg);\n P.print(\"OptChoke unchoked peer with id \" + P.peer_id[ind]);\n }\n ind = -1;\n //print debugging info.\n \n //sleep some interval.\n try {\n Thread.sleep(1000 * P.optimistic_unchoking_interval);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }\n }",
"public static void clearWinners(){winners.clear();}",
"public void UserClientAcceptor(ArrayList<User> cleints) {\r\n \tuserClient = (ArrayList<User>)cleints.clone();\r\n \t//System.out.println(userClient);\r\n\t\tList.addAll(cleints);\r\n\t\t}",
"private void closeFreshSelectConnections(Connection lastSelectConnect,\n List<Connection> serviceOffConnections)\n throws InterruptedException {\n if (null != lastSelectConnect) {\n if (lastSelectConnect.isInvokeFutureMapFinish()) {\n serviceOffConnections.add(lastSelectConnect);\n } else {\n Thread.sleep(RETRY_DETECT_PERIOD);\n if (lastSelectConnect.isInvokeFutureMapFinish()) {\n serviceOffConnections.add(lastSelectConnect);\n } else {\n if (logger.isInfoEnabled()) {\n logger.info(\"Address={} won't close at this schedule turn\",\n RemotingUtil.parseRemoteAddress(lastSelectConnect.getChannel()));\n }\n }\n }\n }\n }",
"@LargeTest\n @Test\n public void testRequestActiveScanFromMultipleClients_suppressActiveScanAfter30Seconds()\n throws Exception {\n sendDiscoveryRequest(mReceiveMessenger1, new MediaRouteDiscoveryRequest(mSelector, true));\n\n // Sleep 10 seconds and request active scan from client 2.\n Thread.sleep(10000);\n sendDiscoveryRequest(mReceiveMessenger2, new MediaRouteDiscoveryRequest(mSelector, true));\n\n // Active scan should be true.\n assertTrue(sActiveScanCountDownLatch.await(TIME_OUT_MS, TimeUnit.MILLISECONDS));\n\n // Right before the last client times out, active scan flag should still be true.\n resetActiveAndPassiveScanCountDownLatches();\n assertFalse(sActiveScanCountDownLatch.await(\n MAX_ACTIVE_SCAN_DURATION_MS - 1000, TimeUnit.MILLISECONDS));\n\n // Right after the active scan duration passed, active scan flag should be false.\n resetActiveAndPassiveScanCountDownLatches();\n assertTrue(sPassiveScanCountDownLatch.await(1000 + TIME_OUT_MS, TimeUnit.MILLISECONDS));\n }",
"@Override\n\tpublic void run() {\n\t\twhile(!Server.killServer){\n\t\t\ttry {\n\t\t\t\tThread.sleep(Constants.BROADCAST_BATTLEFIELD_PERIOD_TO_CLIENTS);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//send to EACH client\n\t\t\tfor(Node client : Server.getClientList().keySet()){\n\t\t\t\t//get client's RMI instance\n\t\t\t\tClientServer clientComm = null;\n\t\t\t\tclientComm = Server.getClientReg(client); \n\t\t\t\t//create Message\n\t\t\t\tClientServerMessage sendBattlefieldMessage = new ClientServerMessage(\n\t\t\t\t\t\t\tMessageType.GetBattlefield,\n\t\t\t\t\t\t\tthis.serverOwner.getName(),\n\t\t\t\t\t\t\tthis.serverOwner.getIP(),\n\t\t\t\t\t\t\tclient.getName(),\n\t\t\t\t\t\t\tclient.getIP());\n\t\t\t\tsendBattlefieldMessage.setBattlefield(Server.getBattlefield());\n\t\t\t\t\n\t\t\t\tif(clientComm==null){\n\t\t\t\t\tSystem.out.println(\"clientComm is null\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Server: Battlefield sent\");\n\n\t\t\t\ttry {\n\t\t\t\t\tclientComm.onMessageReceived(sendBattlefieldMessage);\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (NotBoundException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public void waitClientRegistration(PullMQ pmq)\n\t{\n\t\tHashSet<String> clients = new HashSet<String>();\n\t\twhile (clients.size() < totalClients)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString msg = pmq.pullMQ();\n\t\t\t\tElement client = DocumentHelper.parseText(msg).getRootElement();\n\t\t\t\t\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"void removeOfflineEndpointsCompleted();",
"private void pollAllWatchersOfThisTile() {\n/* 1287 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 1291 */ if (vz.getWatcher() instanceof Player)\n/* */ {\n/* 1293 */ if (!vz.getWatcher().hasLink())\n/* */ {\n/* */ \n/* */ \n/* 1297 */ removeWatcher(vz);\n/* */ }\n/* */ }\n/* */ }\n/* 1301 */ catch (Exception e) {\n/* */ \n/* 1303 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }",
"protected void handleDisconnect()\n {\n RemotingRMIClientSocketFactory.removeLocalConfiguration(locator);\n }",
"@Override\n public void run() {\n new Thread(() -> {\n int port = config.getPort();\n try (ServerSocket server = new ServerSocket(port)) {\n List<ClientConnection> clientlist = new ArrayList<>();\n System.out.println(\"Game Server waiting on Port \" + port + \"!\");\n while (true) {\n Socket client = server.accept();\n\n synchronized (clientlist) {\n ClientConnection cc = new ClientConnection(client, playerId);\n int playerNr = (int) (playerId % 2) + 1;\n cc.start();\n\n clientlist.add(cc);\n System.out.println(\"Client \" + playerNr + \" (playerID: \" + playerId + \") accepted!\");\n\n playerId++; // increase playerId;\n if (clientlist.size() == 2) {\n synchronized (games) { // TODO no sync needed?\n Game game = new Game(clientlist);\n game.start();\n games.add(game);\n clientlist.clear(); // wait for two new clients\n }\n }\n }\n }\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }).start();\n }",
"public void incrementClients() {\n\t\tconnectedClients.incrementAndGet();\n\t}",
"public synchronized void disconnectClient(Client client) {\r\n\t\tthis.allClients.remove(client);\r\n\t}",
"private void disconnect() {\n System.out.println(String.format(\"連線中斷,%s\",\n clientSocket.getRemoteSocketAddress()));\n final int delete = thisPlayer.id - 1;\n player[delete] = null;\n empty.push(delete);\n }",
"private void filterJreDaemonThreads(Set<Thread> now) {\n Iterator<Thread> i = now.iterator();\n while (i.hasNext()) {\n if (isJreDaemonThread(i.next()))\n i.remove();\n }\n }",
"private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n\n try{\n listenSocket = new ServerSocket(Integer.parseInt(serverPortText.getText())); \n Runnable helloRunnable = new Runnable() {\n public void run() {\n try {\n while(true){\n connection = listenSocket.accept();\n inFromClient = new BufferedReader(new InputStreamReader(connection.getInputStream()));\n sentence = inFromClient.readLine(); \n String arr[] = sentence.split(\",\");\n \n if(arr[0].equals(\"offline\")){\n listModel.removeElement(arr[1]);\n \n for(int i = 0 ; i < listModel2.getSize() ;i++){\n \n if(listModel2.get(i).getPort() == Integer.parseInt(arr[2])){\n listModel2.removeElementAt(i);\n }\n }\n sendClient(\"offline\" , connection);\n Client.listModel.removeAllElements();\n }\n else{\n\n listModel.addElement(arr[1]);\n listModel2.addElement(connection);\n Client.listModel.removeAllElements();\n jList1.setModel(listModel);\n sendClient(\"online\" , connection);\n \n }\n \n }\n \n \n \n }\n catch(Exception ex){\n ex.printStackTrace();\n }\n }\n };\n ScheduledExecutorService executor = Executors.newScheduledThreadPool(1);\n executor.scheduleAtFixedRate(helloRunnable, 0, 1, TimeUnit.SECONDS);\n \n //}\n }\n catch(Exception ex){\n ex.printStackTrace();\n }\n \n \n }",
"@FXML\r\n\tprivate void deconnecter()\r\n\t{\r\n\t\tchatModel.getConnectionEstablishedProperty().set(false);\r\n\t\tclient.closeClientSocket();\r\n\t\tPlatform.runLater(() -> ChatModel.getInstance().getStatusMessagesList()\r\n\t\t\t\t.add(\"Chat ended: you disconnected.\"));\r\n\t}",
"@Override\n\tpublic void interrupt() {\n\t\tshutdown_normally = true;\n\t\ttry {\n\t\t\tfor (ServerFwding f : peer_threads){\n\t\t\t\tif (f.isAlive())\n\t\t\t\t\tf.interrupt();\n\t\t\t}\n\t\t\t\n\t\t\tif (clients.contains(client)){\n\t\t\t\tSocket clientConnection = client.getListenerSocket();\n\t\t\t\tOutputStream out_c = new BufferedOutputStream(clientConnection.getOutputStream());\n\t\t\t\tbuf = Utility.addHeader(Constants.CLOSE_CONNECTION, 0, client.getId());\n\t\t\t\tout_c.write(buf.array());\n\t\t\t\tout_c.flush();\n\t\t\t\tout_c.close();\n\t\t\t\tclientConnection.close();\n\t\t\t\tclients.remove(client);\n\t\t\t}\n\t\t\tclientSocket.close();\n\t\t\tserverTcpSocket.close();\n\t\t} catch (IOException e) {\n\t\t\t// Error in communication\n\t\t\tSystem.err.println(client.getAddress() + \": Experienced trouble closing. (Warning)\");\n\t\t}\n\t}",
"public ArrayList<ServerSocket> getConnectedClients() {\n return connectedClients;\n }",
"private void processPeers() {\n\t\tif (System.currentTimeMillis() - lastPeerUpdate > 20000) {\n\t\t\tupdatePeers();\n\t\t\tlastPeerUpdate = System.currentTimeMillis();\n\t\t}\n\t\tif (System.currentTimeMillis() - lastPeerCheck > 5000) {\n\t\t\tcleanPeerList();\n\t\t\tlastPeerCheck = System.currentTimeMillis();\n\t\t}\n\t}",
"public void getAlreadyConnectedPeers() {\n ArrayList<Peer> alreadyConnected = parent.getConnections(name);\n for(Peer p : alreadyConnected) {\n if(p.connected()) {\n addPeer(p.getIP());\n nodeConnection(p.getIP());\n }\n }\n }"
]
| [
"0.6964488",
"0.6930813",
"0.64885503",
"0.6452328",
"0.6421518",
"0.64075226",
"0.6189594",
"0.6177859",
"0.6142084",
"0.6135873",
"0.60768986",
"0.606869",
"0.60192263",
"0.5987794",
"0.59575945",
"0.59528285",
"0.5942512",
"0.5913777",
"0.5910514",
"0.59042525",
"0.58882475",
"0.5865408",
"0.584712",
"0.5828815",
"0.57936305",
"0.57455325",
"0.5730898",
"0.56941986",
"0.5683526",
"0.56809187",
"0.5659532",
"0.5637199",
"0.5633924",
"0.5632102",
"0.56269705",
"0.56036186",
"0.5600509",
"0.55832213",
"0.5548055",
"0.5547319",
"0.5513428",
"0.550866",
"0.5505351",
"0.54962355",
"0.54891735",
"0.54750854",
"0.5469231",
"0.543088",
"0.5428634",
"0.54215264",
"0.5416566",
"0.53961134",
"0.5392587",
"0.5390611",
"0.5384308",
"0.5380947",
"0.53660303",
"0.5363462",
"0.5359081",
"0.5338825",
"0.5330361",
"0.532703",
"0.5326738",
"0.5326709",
"0.53229856",
"0.5321278",
"0.53139436",
"0.5303758",
"0.5300125",
"0.52857745",
"0.5284717",
"0.5281716",
"0.52805334",
"0.5272378",
"0.52652603",
"0.5261692",
"0.5259014",
"0.525802",
"0.5251798",
"0.5244366",
"0.52407414",
"0.5237071",
"0.52256465",
"0.5215592",
"0.5213366",
"0.52128106",
"0.52125216",
"0.5209626",
"0.52083594",
"0.52029353",
"0.52023834",
"0.5200809",
"0.51998556",
"0.51988864",
"0.519878",
"0.5197893",
"0.5196292",
"0.5195852",
"0.517638",
"0.5169098",
"0.5164347"
]
| 0.0 | -1 |
Using the acceptors verifies that one client per technology (socket or RMI) connected and adds it to the queue | private void connectToNewViews() {
try {
if (currentSocketTask.isDone()) {
addNewView(currentSocketTask.get());
// The previous task has been consumed, we can now submit a new task for waiting new views
synchronized (threadPool) {
if (!threadPool.isShutdown()) {
currentSocketTask = threadPool.submit(socketAcceptor);
}
}
}
} catch (ExecutionException ex) {
synchronized (threadPool) {
if (!threadPool.isShutdown()) {
currentSocketTask = threadPool.submit(socketAcceptor);
}
}
} catch (InterruptedException ex) {
Thread.currentThread().interrupt();
}
try {
if (currentRMITask.isDone()) {
addNewView(currentRMITask.get());
// The previous task has been consumed, we can now submit a new task for waiting new views
synchronized (threadPool) {
if (!threadPool.isShutdown()) {
currentRMITask = threadPool.submit(rmiAcceptor);
}
}
}
} catch (ExecutionException ex) {
synchronized (threadPool) {
if (!threadPool.isShutdown()) {
currentRMITask = threadPool.submit(rmiAcceptor);
}
}
} catch (InterruptedException ex) {
Thread.currentThread().interrupt();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n RemoteSensor remoteSensor = RemoteSensorManager.getInstance().addSensorChannel(ctx);\n QueuerManager.getInstance().addClient(remoteSensor);\n// System.out.println(RemoteSensorManager.getInstance().getRemoteSensorsNamesList().size());\n }",
"private void acceptConnection() throws Exception {\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \"TcpConnectionListener.acceptConnection()\");\n\n Socket sock = proxyService.getServerSocket().accept();\n String inaddr = sock.getInetAddress().getHostAddress();\n\n connectionCount++;\n\n if (logger.isLoggable(BasicLevel.INFO))\n logger.log(BasicLevel.INFO, \" -> accept connection from \" + inaddr);\n\n try {\n sock.setTcpNoDelay(true);\n\n // Fix bug when the client doesn't use the right protocol (e.g. Telnet)\n // and blocks this listener.\n sock.setSoTimeout(timeout);\n\n InputStream is = sock.getInputStream();\n NetOutputStream nos = new NetOutputStream(sock);\n\n byte[] magic = StreamUtil.readByteArrayFrom(is, 8);\n for (int i = 0; i < 5; i++) {\n if (magic.length == i || magic[i] != MetaData.joramMagic[i] && magic[i] > 0) {\n String errorMsg = \"Bad magic number. Client is not compatible with JORAM.\";\n protocolErrorCount++;\n throw new IllegalAccessException(errorMsg);\n }\n }\n if (magic[7] != MetaData.joramMagic[7]) {\n if (magic[7] > 0 && MetaData.joramMagic[7] > 0) {\n String errorMsg = \"Bad protocol version number \" + magic[7] + \" != \" + MetaData.joramMagic[7];\n protocolErrorCount++;\n throw new IllegalAccessException(errorMsg);\n }\n \n logger.log(BasicLevel.WARN,\n \"Wildcard protocol version number: from stream = \" + magic[7] + \", from MetaData = \" + MetaData.joramMagic[7]);\n }\n\n //read the ack mode(noAckedQueue)\n boolean noAckedQueue = StreamUtil.readBooleanFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read noAckedQueue = \" + noAckedQueue);\n if (noAckedQueue)\n TcpProxyService.createExecutors();\n \n long dt = Math.abs(StreamUtil.readLongFrom(is) - System.currentTimeMillis());\n if (dt > clockSynchroThreshold)\n logger.log(BasicLevel.WARN, \" -> bad clock synchronization between client and server: \" + dt);\n StreamUtil.writeTo(dt, nos);\n\n Identity identity = Identity.read(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read identity = \" + identity);\n\n int key = StreamUtil.readIntFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read key = \" + key);\n\n int heartBeat = 0;\n if (key == -1) {\n heartBeat = StreamUtil.readIntFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read heartBeat = \" + heartBeat);\n }\n \n if (logger.isLoggable(BasicLevel.INFO))\n logger.log(BasicLevel.INFO, \" -> open connection \" + identity + \"/\" + key + \" - \" + heartBeat);\n \n GetProxyIdNot gpin = new GetProxyIdNot(identity, inaddr);\n AgentId proxyId;\n try {\n gpin.invoke(AdminTopic.getDefault());\n proxyId = gpin.getProxyId();\n } catch (Exception exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \" -> login failed\", exc);\n failedLoginCount++;\n StreamUtil.writeTo(1, nos);\n StreamUtil.writeTo(exc.getMessage(), nos);\n nos.send();\n return;\n }\n\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> open connection, proxyId=\" + proxyId);\n \n IOControl ioctrl;\n ReliableConnectionContext ctx;\n if (key == -1) {\n OpenConnectionNot ocn = new OpenConnectionNot(Type.RELIABLE, heartBeat, noAckedQueue);\n ocn.invoke(proxyId);\n StreamUtil.writeTo(0, nos);\n ctx = (ReliableConnectionContext) ocn.getConnectionContext();\n key = ctx.getKey();\n StreamUtil.writeTo(key, nos);\n nos.send();\n ioctrl = new IOControl(sock);\n } else {\n GetConnectionNot gcn = new GetConnectionNot(key);\n try {\n gcn.invoke(proxyId);\n } catch (Exception exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \"TcpConnectionListener: reconnection failed\", exc);\n StreamUtil.writeTo(1, nos);\n StreamUtil.writeTo(exc.getMessage(), nos);\n nos.send();\n return;\n }\n ctx = (ReliableConnectionContext) gcn.getConnectionContext();\n StreamUtil.writeTo(0, nos);\n nos.send();\n ioctrl = new IOControl(sock, ctx.getInputCounter());\n\n // Close the remaining connection if it exists\n TcpConnection tcpConnection = proxyService.getConnection(proxyId, key);\n if (tcpConnection != null) {\n tcpConnection.close();\n }\n }\n\n // Reset the timeout in order to enable the server to indefinitely\n // wait for requests.\n sock.setSoTimeout(0);\n\n TcpConnection tcpConnection = new TcpConnection(ioctrl, ctx, proxyId, proxyService, identity);\n tcpConnection.start();\n } catch (IllegalAccessException exc) {\n if (logger.isLoggable(BasicLevel.ERROR))\n logger.log(BasicLevel.ERROR, \"TcpConnectionListener: close connection\", exc);\n sock.close();\n throw exc;\n } catch (IOException exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \"TcpConnectionListener: close socket\", exc);\n sock.close();\n throw exc;\n }\n }",
"@Override\n\tpublic void run(){\n\t\tInetAddress IPAddress = serverTcpSocket.getInetAddress();\n\t\tfor (ClientObj c: clients)\n\t\t\tif (c.getId() == client.getId()){\n\t\t\t\tSystem.out.print(IPAddress + \" Client already connected!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\ttry{\n\t\t\t// Check handshake received for correctness\n\t\t\t//(connect c->s) [herader | \"JUSTIN\\0\" | connection port] (udp)\n\t\t\t//(connect response s->c) [header | client id | port] (udp)\n\t \n\t // open the connection\n\t\t clientSocket = null;\n\t\t Socket clientListener = null;\n\t\t // wait for client connection on tcp port\n\t\t //serverTcpSocket.setSoTimeout(5000);\n\t \tSystem.out.println (\" Waiting for tcp connection.....\");\n\t \tclientSocket = serverTcpSocket.accept();\n\t \tclientListener = serverTcpSocket.accept();\n\t \tclient.setListenerSocket(clientListener);\n\t\t\tIPAddress = clientSocket.getInetAddress();\n\t\t\tint recv_port = clientSocket.getPort();\n\t\t\tSystem.out.println(IPAddress + \": Client connected @ port \" + recv_port);\n\n\t\t // handle tcp connection\n\t\t\tclientSocket.setSoTimeout(Constants.ACK_TIMEOUT);\n\t\t out = new BufferedOutputStream(clientSocket.getOutputStream());\n\t\t\tin = new BufferedInputStream(clientSocket.getInputStream());\n\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\tclient.setPort(clientSocket.getPort());\n\t\t clients.add(client);\n\t\t\t\n\t\t // handle requests\n\t\t\twhile (!shutdown_normally) {\n\t\t\t\t// read just the header, then handle the req based on the info in the header\n\t\t\t\tif ((buf = Utility.readIn(in, Constants.HEADER_LEN)) == null)\n\t\t\t\t\tbreak;\n\t\t\t\tint flag = buf.getInt(0);\n\t\t\t\tint len2 = buf.getInt(4);\n\t\t\t\tint id = buf.getInt(8);\n\t\t\t\t\n\t\t\t\t// check for correctness of header\n\t\t\t\t\n\t\t\t\tif (flag < Constants.OPEN_CONNECTION || \n\t\t\t\t\t\tflag > Constants.NUM_FLAGS || \n\t\t\t\t\t\tid != client.getId() || \n\t\t\t\t\t\tlen2 < 0){\n\t\t\t\t\tout.close(); \n\t\t\t\t\tin.close(); \n\t\t\t\t\tclientSocket.close(); \n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t\t\tclients.remove(client);\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"Connection - FAILURE! (malformed header)\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// read payload\n\t\t\t\tif ((buf = Utility.readIn(in, Utility.getPaddedLength(len2))) == null)\n\t\t\t\t\tthrow new IOException(\"read failed.\");\n\t\t\t\t// update address (necessary?)\n\t\t\t\tclients.get(clients.indexOf(client)).setAddress(clientSocket.getInetAddress());\n\t\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\t\tswitch (flag){\n\t\t\t\t\tcase Constants.ACK:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.VIEW_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing view request...\");\n\t\t\t\t\t\tViewFiles(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download request...\");\n\t\t\t\t\t\tDownload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.UPLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing upload request...\");\n\t\t\t\t\t\tUpload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_ACK:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download acknowledgment...\");\n\t\t\t\t\t\tDownloadCompleted(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.CLOSE_CONNECTION:\n\t\t\t\t\t\tshutdown_normally = true;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// close all open sockets\n\t\t out.close(); \n\t\t in.close(); \n\t\t clientSocket.close(); \n\t\t serverTcpSocket.close();\n\t\t} catch (SocketTimeoutException e) {\n\t\t\tSystem.err.println(IPAddress + \": Timeout waiting for response.\");\n\t\t} catch (UnknownHostException e) {\n\t\t\t// IPAdress unknown\n\t\t\tSystem.err.println(\"Don't know about host \" + IPAddress);\n\t\t} catch (IOException e) {\n\t\t\t// Error in communication\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to \" +\n\t\t\t\t\tIPAddress);\n\t\t} catch (RuntimeException e){\n\t\t\t// Malformed Header or payload most likely\n\t\t\tSystem.err.println(IPAddress + \": Connection - FAILURE! (\" + e.getMessage() + \")\");\n\t\t} finally {\n\t\t\t// remove this client from active lists, close all (possibly) open sockets\n\t\t\tSystem.out.println(IPAddress + \": Connection - Closing!\");\n\t\t\tclients.remove(client);\n\t\t\ttry {\n\t\t\t\tSocket clientConnection = client.getListenerSocket();\n\t\t\t\tOutputStream out_c = new BufferedOutputStream(clientConnection.getOutputStream());\n\t\t\t\tbuf = Utility.addHeader(Constants.CLOSE_CONNECTION, 0, client.getId());\n\t\t\t\tout_c.write(buf.array());\n\t\t\t\tout_c.flush();\n\t\t\t\tout_c.close();\n\t\t\t\tclientConnection.close();\n\n\t\t\t\tif (out != null)\n\t\t\t\t\tout.close();\n\t\t\t\tif (in != null)\n\t\t\t\t\tin.close();\n\t\t\t\tif (!clientSocket.isClosed())\n\t\t\t\t\tclientSocket.close();\n\t\t\t\tif (!serverTcpSocket.isClosed())\n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t} catch (IOException e){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n }",
"private void beginAcceptClients() throws Exception {\r\n \t\tClientAcceptThread acceptClientsThread = new ClientAcceptThread(this.serverSocket, this);\r\n \t\tacceptClientsThread.start();\r\n \r\n \t\tLogger.logMessage(\"ClientAcceptThread started\");\r\n \t}",
"@Override\n public void completed(AsynchronousSocketChannel sockChannel, AsynchronousServerSocketChannel serverSock ) {\n serverSock.accept( serverSock, this );\n\n try{\n //Print IP Address\n System.out.println( sockChannel.getLocalAddress().toString());\n\n //Add To Client List\n list.add(list.size(), sockChannel);\n\n }catch(IOException e) {\n e.printStackTrace();\n }\n\n //start to read message from the client\n startRead( sockChannel );\n \n }",
"@Override\n public void completed(AsynchronousSocketChannel sockChannel, AsynchronousServerSocketChannel serverSockMain ) {\n serverSockMain.accept( serverSockMain, this );\n\n //Print IP Address\n try{\n System.out.println( sockChannel.getLocalAddress());\n clientChannel = sockChannel;\n }catch(IOException e) {\n\n e.printStackTrace();\n }\n\n //Add To Client List\n //list.add(list.size(), sockChannel);\n\n //start to read message from the client\n startRead( sockChannel );\n \n }",
"@Override\n public void run() {\n while(true){\n try{\n Socket s = server.accept();\n String i = new DataInputStream(s.getInputStream()).readUTF();\n if(clientColl.containsKey(i)){\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"You Are Already Registered....!!\");\n }else{\n clientColl.put(i, s);\n txt.append(sdf.format(date) + \" \" + i + \" Joined !\\n\");\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"\");\n new MsgRead(s,i).start();\n new PrepareClientList().start();\n }\n \n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n \n }",
"private void addClients() {\n while (true) {\n Client client = readClient();\n if (client == null || client.getId() < 0) {\n break;\n }\n try {\n ctrl.addClient(client);\n } catch (ValidatorException e) {\n e.printStackTrace();\n }\n }\n }",
"private void registerClient() throws IOException {\n\t\tString instanceID = UUID.randomUUID().toString();\r\n\t\tString registerName = fromClient.readLine();\r\n\t\tString passwordInput = fromClient.readLine();\r\n\t\t\r\n\t\tif (!clientTable.has(registerName)) {\r\n\t\t\tReport.behaviour(registerName + \" has registered and connected\");\r\n\t\t\t\r\n\t\t\t//Adds the new user to the client table and adds a running queue\r\n\t\t\tclientTable.add(registerName, new Password(passwordInput, false));\r\n\t\t\tclientTable.addQueue(registerName, instanceID);\r\n\t\t\t\r\n\t\t\t//tell the client that the connection was a success\r\n\t\t\ttoClient.println(Commands.CONNECTION_SUCCESS);\r\n\t\t\t\r\n\t\t\t//create threads\r\n\t\t\tmakeThreads(registerName, instanceID);\r\n\t\t} else toClient.println(Commands.USER_ALREADY_EXISTS);\r\n\t}",
"private static void getClients() throws IOException {\r\n\t\tbidders=new ArrayList<Socket>();\r\n\t\tserverSocket=new ServerSocket(portno);\r\n\t\twhile ((bidders.size()<numBidders)&&(auctioneer==null)) {\r\n\t\t\tSocket temp=serverSocket.accept();\r\n\t\t\t//if (this client is a bidder)\r\n\t\t\t\tbidders.add(temp);\r\n\t\t\t//if (this client is the auctioneer)\r\n\t\t\t\tauctioneer=temp;\r\n\t\t}\r\n\t}",
"private void channelPolling() throws IOException {\n\t\tSemaphore acceptLock = new Semaphore(1);\n\n\t\twhile (true) {\n\t\t\t//Waits until there is activity on one of the registered channels\n\t\t\tif (selector.selectNow() == 0) continue;\n\t\t\t//get list of all keys\n\t\t\tIterator<SelectionKey> keys = selector.selectedKeys().iterator();\n\n\t\t\twhile (keys.hasNext()) {\n\t\t\t\t//get key and find its activity\n\t\t\t\tSelectionKey key = keys.next();\n\n//\t\t\t\tSystem.out.printf(\"Key Value: Interest: %d, Ready: %d%n\", key.interestOps(), key.readyOps());\n\n\t\t\t\tif (!key.isValid()) {\n\t\t\t\t\tSystem.out.println(\"Canceled key encountered. Ignoring.\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ( key.isAcceptable()) {\n\n\t\t\t\t\t//Stops redundant task creation. The lock is unlocked as soon as a thread handles\n\t\t\t\t\t//the registration of a client. Should never really bottleneck program\n\t\t\t\t\tif (!acceptLock.tryAcquire()) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t\t//Put new AcceptClientConnection in Queue with this key data\n\t\t\t\t\taddTask(new AcceptClientConnection(selector, serverChannel, acceptLock, this));\n\n\t\t\t\t}\n\n\t\t\t\tif ( key.isReadable()) {\n\t\t\t\t\t//deregister this key, as it's now not part of the serverSocketChannel, only a specific\n\t\t\t\t\t//client. Will reregister read interests as soon as it's read from\n\t\t\t\t\tkey.interestOps(0);\n\t\t\t\t\t//put new ReadClientData in Queue, which this key data\n\t\t\t\t\tSocketChannel client = (SocketChannel) key.channel();\n\n\t\t\t\t\t//Make sure the channelsToHandle isn't edited by a thread mid add/size check\n\t\t\t\t\t//also synchronized with the Thread's work when it handles the batch organization\n\t\t\t\t\tsynchronized (channelsToHandle) {\n\t\t\t\t\t\tchannelsToHandle.add(new ClientData(client, key));\n//\t\t\t\t\t\tSystem.out.printf(\"Client_Data: Appending '%s' to list. Size: %d%n\", client.getRemoteAddress(), channelsToHandle.size());\n\n\t\t\t\t\t\t//if there are more than enough clients to handle, hand it off to a client and move on\n\t\t\t\t\t\tif (channelsToHandle.size() >= batchSize && organizeLock.tryAcquire()) {\n\t\t\t\t\t\t\taddTask(new OrganizeBatch(channelsToHandle, queue, hashList, batchSize, organizeLock, this));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tif ( key.isWritable()) {\n//\t\t\t\t\tSystem.out.println(\"Client can be written to\");\n\t\t\t\t}\n\t\t\t\t//done with the key this iteration, check again for any new activity next select\n\t\t\t\tkeys.remove();\n\t\t\t}\n\t\t}\n\t}",
"protected void registerSockets() {\n if (!registerQueue.isEmpty()) {\n SocketChannel chan;\n while ((chan = registerQueue.poll()) != null) {\n System.out.println(Thread.currentThread().getName() + \": registering a new socket\");\n try {\n chan.configureBlocking(false);\n chan.register(selector, SelectionKey.OP_READ);\n } catch (IOException e) {\n //ignore the failure of not registering a socket\n //it shouldn't affect the rest of the program\n this.logger().log(e);\n e.printStackTrace();\n }\n }\n }\n }",
"public void run() {\n\n // Start threadPool\n for (int i = 0; i < nbThreads; i++) {\n ThreadClient threadClient = new ThreadClient(listSocketDevice, String.valueOf(i), handler);\n arrayThreadClients.add(threadClient);\n threadClient.start();\n }\n\n while (true) {\n try {\n if (v) Log.d(TAG, \"Server is waiting on accept...\");\n ISocket isocket = acceptISocket();\n\n if (v) Log.d(TAG, isocket.getRemoteSocketAddress() + \" accepted\");\n listSocketDevice.addSocketClient(isocket);\n\n // Notify handler\n handler.obtainMessage(Service.CONNECTION_PERFORMED,\n isocket.getRemoteSocketAddress()).sendToTarget();\n\n } catch (SocketException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n } catch (IOException e) {\n handler.obtainMessage(Service.LOG_EXCEPTION, e).sendToTarget();\n break;\n }\n }\n }",
"private void handleAccept(SelectionKey sk) throws IOException {\n\t\t\tSocketChannel accepted_channel = server_socket_channel.accept();\n\t\t\tif (accepted_channel != null) {\n\t\t\t\taccepted_channel.configureBlocking(false);\n\t\t\t\t\n\t\t\t\t//Create an SSL engine for this connection\n\t\t\t\tssl_engine = ssl_context.createSSLEngine(\"localhost\", accepted_channel.socket().getPort());\n\t\t\t\tssl_engine.setUseClientMode(false);\n\t\t\t\t\n\t\t\t\t// Create a SSL Socket Channel for the channel & engine\n\t\t\t\tSSLSocketChannel ssl_socket_channel = new SSLSocketChannel(accepted_channel, ssl_engine);\n\t\t\t\t\n\t\t\t\t// Create a new session class for the user\n\t\t\t\tSSLClientSession session = new SSLClientSession(ssl_socket_channel);\n\t\t\t\t\n\t\t\t\t// Register for OP_READ with ssl_socket_channel as attachment\n\t\t\t\tSelectionKey key = accepted_channel.register(server_selector, SelectionKey.OP_READ, session);\n\t\t\t\t\n\t\t\t\tsession.setSelectionKey(key);\n\t\t\t\t\n\t\t\t\tnum_players_connected++;\n\n\t\t\t\t// Add client to open channels map\n\t\t\t\topen_client_channels.put(ssl_socket_channel, session);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Thread with ID - \" + this.getName() + \" - accepted a connection.\");\n\t\t\t}\n\t\t}",
"@Override\r\n \tpublic void clientConnectedCallback(RoMClient newClient) {\r\n \t\t// Add new client and start listening to this one\r\n \t\tthis.clients.addClient(newClient);\r\n \r\n \t\t// Create the ReceiveClientCommandThread for this client\r\n \t\tReceiveClientCommandThread receiveCommandThread = new ReceiveClientCommandThread(newClient, this, this);\r\n \t\treceiveCommandThread.start();\r\n \r\n \t\t// Create the CommandQueue Thread for this client\r\n \t\tClientCommandQueueThread commandQueueThread = new ClientCommandQueueThread(newClient);\r\n \t\tcommandQueueThread.start();\r\n \t}",
"@Override\n protected void initChannel (SocketChannel ch) throws Exception {\n // can utilize channel to push message to different client since one channel correspond to one client\n System.out.println(\"client socket channel hashcode = \" + ch.hashCode());\n ch.pipeline().addLast(new NettyServerHandler());\n }",
"void startListening()\n {\n if (outstanding_accept != null || open_connection != null) {\n return;\n }\n \n outstanding_accept = new AcceptThread(bt_adapter, handler);\n outstanding_accept.start();\n }",
"@Override\n public void run() {\n this.running.set(true);\n Socket socket = null;\n // if flag is set to listen, keep listening for client connection request and keep accepting connections\n while (this.running.get()) {\n try {\n if (connectionCount.get() < Constants.MAX_CLIENT_CONNECTIONS) {\n socket = serverSocket.accept();\n socket.setSoTimeout(30000); // timeout set to 30,000 ms\n socket.setKeepAlive(true);\n log.info(\"Connection Accepted: Local Add {} Remote Add {}\", socket.getLocalAddress(),\n socket.getRemoteSocketAddress());\n // add the connected socket to the list\n socketList.add(socket);\n // Pass the socket to the RequestHandler thread for processing\n IncomingMessageHandler messageHandler = new IncomingMessageHandler(socket, logWriter, fileWriterQueue,\n periodicReportingService, orderShutdown);\n messageHandler.start();\n connectionCount.getAndIncrement();// increment connection count\n log.debug(\"Current number of connections {}\", connectionCount.get());\n } else {\n if(maxConnWarnCount < 4) {\n log.warn(\"Reached maximum connection limit {}; Stopping to accept more client connections\"\n , connectionCount.get());\n maxConnWarnCount++;\n }\n }\n } catch (IOException e) {\n log.error(\"Error in accepting connections\", e);\n if (e instanceof SocketException) {\n log.error(\"SocketException for remote connection\");\n }\n }\n }\n }",
"public void acceptedSocket(long socketId) {}",
"public void setup_clients()\n {\n ClientInfo t = new ClientInfo();\n for(int i=0;i<5;i++)\n {\n // for mesh connection between clients\n // initiate connection to clients having ID > current node's ID\n if(i > my_c_id)\n {\n // get client info\n String t_ip = t.hmap.get(i).ip;\n int t_port = Integer.valueOf(t.hmap.get(i).port);\n Thread x = new Thread()\n {\n \tpublic void run()\n {\n try\n {\n Socket s = new Socket(t_ip,t_port);\n // SockHandle instance with svr_hdl false and rx_hdl false as this is the socket initiator\n // and is a connection to another client node\n SockHandle t = new SockHandle(s,my_ip,my_port,my_c_id,c_list,s_list,false,false,cnode);\n }\n catch (UnknownHostException e) \n {\n \tSystem.out.println(\"Unknown host\");\n \tSystem.exit(1);\n } \n catch (IOException e) \n {\n \tSystem.out.println(\"No I/O\");\n e.printStackTrace(); \n \tSystem.exit(1);\n }\n \t}\n };\n \n x.setDaemon(true); \t// terminate when main ends\n x.setName(\"Client_\"+my_c_id+\"_SockHandle_to_Client\"+i);\n x.start(); \t\t\t// start the thread\n }\n }\n\n // another thread to check until all connections are established ( ie. socket list size =4 )\n // then send a message to my_id+1 client to initiate its connection setup phase\n Thread y = new Thread()\n {\n public void run()\n {\n int size = 0;\n // wait till client connections are setup\n while (size != 4)\n {\n synchronized(c_list)\n {\n size = c_list.size();\n }\n }\n // if this is not the last client node (ID =4)\n // send chain init message to trigger connection setup\n // phase on the next client\n if(my_c_id != 4)\n {\n c_list.get(my_c_id+1).send_setup();\n System.out.println(\"chain setup init\");\n }\n // send the setup finish, from Client 4\n // indicating connection setup phase is complete\n else\n {\n c_list.get(0).send_setup_finish();\n }\n }\n };\n \n y.setDaemon(true); \t// terminate when main ends\n y.start(); \t\t\t// start the thread\n }",
"public void run() {\n try {\n\n // Create character streams for the socket.\n in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n out = new PrintWriter(socket.getOutputStream(), true);\n System.out.println(\"...\"+socket.getInetAddress());\n\n // Request a name from this client. Keep requesting until\n // a name is submitted that is not already used. Note that\n // checking for the existence of a name and adding the name\n // must be done while locking the set of names.\n while (true) {\n out.println(\"SUBMIT NAME\");\n name = in.readLine();\n \tString[] arr= name.split(\":\", 2);\n \tname= arr[1];\n if (name == null) {\n return;\n }\n if (!ip.contains(socket.getInetAddress())) {\n ip.add(socket.getInetAddress());\n }\n else\n {\n \tout.println(\"already opened once.\");\n \tcontinue;\n }\n synchronized (clientOut) {\n if (clientOut.get(name) == null) {\n client.put(count, name);\n id= count;\n break;\n }\n }\n }\n\n // Now that a successful name has been chosen, add the\n // socket's print writer to the set of all writers so\n // this client can receive broadcast messages.\n clientOut.put(name, out);\n out.println(\"NAMEACCEPTED\"+name);\n //adding online users to the new user.\n for (int i= 0;i < count;i++) {\n \tString str;\n\t\t\t\t\tif((str= (String)client.get(i)) != null)\n \t\tout.println(\"TAB\"+i+str);\n }\n \n //adding new user to all the users who are online.\n for (int i= 0;i < count;i++) {\n \tPrintWriter wrt;\n \tif((wrt= clientOut.get(client.get(i))) != null)\n \t\twrt.println(\"TAB\"+count+name);\n }\n count++;\n\n // Accept messages from this client and broadcast them.\n // Ignore other clients that cannot be broadcasted to.\n while (true) {\n \tString input= in.readLine();\n \tchar c1;\n \tint c2;\n \tString[] arr= input.split(\":\", 2);\n \tif(arr[0].equals(\"FILE\"))\n \t{\n \t\tString[] arr1= input.split(\":\", 3);\n \t\tPrintWriter p= clientOut.get(client.get(Integer.valueOf(arr1[1])));\n \t\tp.println(\"FILE:\"+id+\":\"+arr1[2]);\n \t\twhile((input= in.readLine()) != \"stop\")\n \t\t{\n \t\t\tp.println(input);\n \t\t\tp.flush();\n \t\t}\n \t\tp.println(\"stop\");\n \t\tp.flush();\n \t\tSystem.out.println(\"sent.........\");\n/* \t\twhile((c2= in.read()) != -1)\n \t\t{\n \t\t\tc1= (char) c2;\n \t\t\tp.print(c1);\n \t\t\tp.flush();\n \t\t\tSystem.out.print(c2);\n \t\t}\n \t\tSystem.out.println(c2+\".......\");\n \t\tp.print((char)-1);*/\n \t}\n \telse\n \t\tclientOut.get(client.get(Integer.valueOf(arr[0]))).println(\"MESSAGE:\"+id+\":\"+name+\":\"+arr[1]);\n }\n } catch (IOException e) {\n System.out.println(e);\n } finally {\n // This client is going down! Remove its name and its print\n // writer from the sets, and close its socket.\n \t//remove this client from every other client.(TAB)\n \tfor (int i= 0;i < count;i++) {\n \t\tPrintWriter wrt;\n\t\t\t\t\tif(i != id && (wrt= clientOut.get(client.get(i))) != null)\n \t\t\twrt.println(\"REMOVE\"+id);\n }\n\n if (name != null) {\n \tclient.remove(id);\n \tclientOut.remove(name);\n \tip.remove(socket.getInetAddress());\n }\n try {\n socket.close();\n } catch (IOException e) {\n }\n }\n }",
"void clientConnected(Client client);",
"synchronized public boolean add(ClientMessage req) {\n //System.out.println(\"****adding to rc queue\");\n if (!initialized) {\n init();\n }\n int i = (int) req.getSendingClient();\n if (i > order.length) {\n BFT.Debug.kill(new RuntimeException(\"invalid client id\"));\n }\n boolean present = reqs[i] != null;\n if (present) {\n if (reqs[i].getRequestId() <= req.getRequestId()) {\n bSize -= reqs[i].getTotalSize();\n reqs[i] = req;\n bSize += req.getTotalSize();\n }\n //System.out.println(\"adding to rc queue with false\");\n return false;\n }\n reqs[i] = req;\n bSize += req.getTotalSize();\n // update the entry for the sending client, but if he's\n // already got a place in line, dont put him in line again\n\n order[size] = i;\n size++;\n if (size == order.length) {\n size = 0;\n }\n if (size == head) {\n BFT.Debug.kill(\"\");\n }\n //System.out.println(\"adding to RC queue with true\");\n entries++;\n return true;\n }",
"private void manageConnectedSocket(BluetoothSocket acceptSocket) {\n\n }",
"@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public SocketChannel accept(SelectionKey key, Selector selector, Pool<String, RequestWorker> clientReqPool, Server parentThread) throws IOException{\r\n\t\t// Step 1- Get the SocketChannel of Server.\r\n\t\tServerSocketChannel serverSocketChannel = (ServerSocketChannel) key.channel();\r\n\r\n\t\t/*\r\n\t\t * Accept the connection and make it non-blocking\r\n\t\t * Socket can be achieved from client's socketchannel\r\n\t\t * as well as Server Socket channel.\r\n\t\t */\r\n\t\tSocketChannel clientSocketChannel = serverSocketChannel.accept();\r\n\t\tSocket socket = clientSocketChannel.socket();\r\n\t\tclientSocketChannel.configureBlocking(false);\r\n\t\t/*\r\n\t\t * Register the Client's Socket Channel with selector and Key as 'READ'.\r\n\t\t */\t\t\r\n\t\tclientSocketChannel.register(selector, SelectionKey.OP_READ);\t\t\t\t\r\n\r\n\t\tlogger.info(\"Check Point 2 :CLIENT CONNECTED : \"+socket.getRemoteSocketAddress() + \" -- PASS\");\r\n\t\tparentThread.getReqPool().add(socket.getRemoteSocketAddress().toString(), new RequestWorker(key, socket.getRemoteSocketAddress()+\"\",parentThread));\t\t\r\n\t\treturn clientSocketChannel;\r\n\t}",
"public void addClient() throws IOException {\n BufferedReader in;\n Socket clientSocket; //pour chaque nouveau client\n System.out.println(\"New Client connected.\");\n clientSocket = serverSocket.accept();\n out = new PrintWriter(clientSocket.getOutputStream());\n in = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n tabClientsout.addElement(out);\n Runnable r = new recevoir(out, in);\n // genere le Thread pour le nouveau client\n new Thread(r).start();\n }",
"private synchronized void enqueueClient(IClient client) {\n clients.add(client);\n notifyAll();\n }",
"@Override\r\n\tpublic void run() {\r\n\t\twhile (closer) {\r\n\t\t\ttry {\r\n\t\t\t\tObjectInputStream ois = new ObjectInputStream(client.getInputStream());\r\n\t\t\t\tObject object = ois.readObject();\r\n\t\t\t\tArrayList<String> input = (ArrayList<String>) object;\r\n\t\t\t\tInteger election = inputTransformer(input);\r\n\t\t\t\tif (election == 1) {\r\n\t\t\t\t\tsl.getLogger().info(\"IncomingMessage on Client Type 1 - For Chat\");\r\n\t\t\t\t}\r\n\t\t\t\tif (election == 2) {\r\n\t\t\t\t\tsl.getLogger().info(\"IncomingMessage on Client Type 2 - For Points\");\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void waitForClients() {\n\n\t\twhile (!Thread.interrupted()) {\n\t\t\tacceptClient();\n\t\t}\n\n\t}",
"@EventHandler\n public void onServerConnected(ServerConnectedEvent event) {\n if (event.getServer().getInfo().getName().equals(Config.queue)) {\n if (!playersQueue.contains(event.getPlayer())) {\n // Add Player to queue\n try {\n mutex.acquire();\n playersQueue.add(event.getPlayer());\n Main.log(\"onServerConnected\", \"§3§b\" + event.getPlayer().toString() + \"§3 was added to §b\" + Config.queue + \"§3. Queue count is \" + playersQueue.size() + \".\");\n } catch (InterruptedException e1) {\n e1.printStackTrace();\n } finally {\n mutex.release();\n }\n }\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tSocket socket = serverSocket.accept();\n\t\t\t\t\t\tclients.add(new Client(socket));\n\t\t\t\t\t\tSystem.out.println(\"[클라이언트 접속] \" + socket.getRemoteSocketAddress() + \": \"\n\t\t\t\t\t\t\t\t+ Thread.currentThread().getName());\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t// TODO: handle exception\n\t\t\t\t\t\tif (!serverSocket.isClosed()) {\n\t\t\t\t\t\t\tstopServer();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"public static void main(String[] args) {\n try {\r\n ServerSocket server=new ServerSocket(port);\r\n System.out.println(\"Waiting for a client...\");\r\n\r\n connections=new ArrayList<>();\r\n ExecutorService es = Executors.newFixedThreadPool(max_clients);\r\n\r\n Connection tmp;\r\n while(true) {\r\n\r\n\r\n Socket socket = server.accept();\r\n if(max_clients<=clients){\r\n OutputStream out = socket.getOutputStream();\r\n BufferedWriter rout= new BufferedWriter(new OutputStreamWriter(out));\r\n rout.write(\"Chat is full(\"+max_clients+\" users). You can't join. Try again later.\");\r\n rout.write(\"\\n\");\r\n rout.flush();\r\n socket.close();\r\n out.close();\r\n continue;\r\n }\r\n\r\n tmp=new Connection(socket);\r\n es.submit(tmp);\r\n clients++;\r\n System.out.println(\"New user has joined. Number of users - \"+clients);\r\n connections.add(tmp);\r\n }\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public AcceptThread() throws IOException {\n setName(\"TcpHarvester AcceptThread\");\n setDaemon(true);\n selector = Selector.open();\n for (ServerSocketChannel channel : serverSocketChannels) {\n channel.configureBlocking(false);\n channel.register(selector, SelectionKey.OP_ACCEPT);\n }\n }",
"@Override\n\tpublic void run() {\n\t while (true) {\n\t try {\n\t\t\t\tsocket = serverSocket.accept();\n\n\t \tClient client = new Client(socket);\n\t \tclientList.add(client);\n\t \tSystem.out.println(\"New user connected.\");\n\n\t \tthreadProc = new Thread(client);\n\t \tthreadProc.start();\n\t \n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t }\n\t}",
"public synchronized void enqueue(Socket clientSocket) {\n\t\tqueue.add(clientSocket);\n\t\tnotifyAll(); // Wake up anyone waiting on the queue\n\n\t}",
"private void manageClients() {\n manage = new Thread(\"Manage\") {\n public void run() {\n //noinspection StatementWithEmptyBody\n while (running) {\n sendToAll(\"/p/server ping/e/\".getBytes());\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //noinspection ForLoopReplaceableByForEach\n for (int i = 0; i < clients.size(); i++) {\n ServerClient tempClient = clients.get(i);\n if (!clientResponse.contains(tempClient.getID())) {\n if (tempClient.getAttempt() >= MAX_ATTEMPTS)\n disconnect(tempClient.getID(), false);\n else\n tempClient.setAttempt(tempClient.getAttempt() + 1);\n } else {\n clientResponse.remove(new Integer(tempClient.getID()));\n tempClient.setAttempt(0);\n }\n }\n }\n }\n };\n manage.start();\n }",
"@Override\n public void run() {\n // When we read from the input stream, broadcast it to all client observers to relay to the clients via the respective socket.\n try {\n Object dataFromClient = inputFromClient.readObject();\n while (dataFromClient != null) {\n setChanged();\n if(dataFromClient instanceof Integer){\n Integer clientID = (Integer) dataFromClient;\n // This client sent its client id to be added to or removed from registered users. So, send the updated list to all observers to push to ALL clients.\n if(registeredUsers.contains(clientID)){\n removeClient(clientID);\n clientData.remove(clientID);\n }else {\n registeredUsers.add((Integer)dataFromClient); // Add the new client's future ID to the list of registered users. ID sent\n }\n System.out.println(\"Server sending \" + registeredUsers);\n notifyObservers(registeredUsers);\n }else if (dataFromClient instanceof Group){\n System.out.println(\"Server received \" + dataFromClient);\n Group group = (Group)dataFromClient;\n if(group.getGroupID() == -1){ // Indicates group is asking for proper id.\n group.setGroupID(currentGroupNumber);\n System.out.println(\"Here ya go, number \" + currentGroupNumber);\n currentGroupNumber++;\n }\n notifyObservers(group);\n }else{\n notifyObservers(dataFromClient);\n }\n System.out.println(\"Server sent \" + dataFromClient);\n dataFromClient = inputFromClient.readObject();\n }\n } catch (IOException | ClassNotFoundException e) {\n System.out.println(\"Could not read data from client\");\n }\n }",
"private void processPendingRegistrations()\n throws ClosedChannelException {\n Iterator<SocketChannel> it = pendingRegistrations.iterator();\n while (it.hasNext() == true) {\n SocketChannel channel = it.next();\n it.remove();\n\n TransmissionTracker tracker = socketToTracker.get(channel);\n channel.register(selector, SelectionKey.OP_CONNECT, tracker);\n }\n }",
"public void task() {\n try {\n Socket peerSocket = listeningSocket.accept(); // waits here until something tries to connect\n if (peerSocket != null) { addPeer(peerSocket); }\n } catch (IOException e) {\n throw new RuntimeException(\"Error accepting client connection\", e);\n }\n }",
"public void newClientConnection (ServerSocket client) {\n this.connectedClients.add(client);\n }",
"public void setAcceptors(List<Integer> acceptors) {\n this.acceptors = acceptors;\n }",
"private void treatAccept(SelectionKey key) throws IOException\n {\n ServerSocketChannel ssc = (ServerSocketChannel) key.channel();\n SocketChannel sc = ssc.accept();\n sc.configureBlocking(false);\n SelectionKey clientKey = sc.register(selector, SelectionKey.OP_READ,\n new RequestCommandHandler(root));\n\n System.out\n .println(\"New connection accepted for : \"\n + sc.socket().getRemoteSocketAddress() + \", key : \"\n + clientKey);\n }",
"public void run()\n {\n try\n {\n String ack = \"You are online!\";\n DatagramPacket outPacket = new DatagramPacket(ack.getBytes(), ack.getBytes().length, clientAddress, udpPort);\n DatagramSocket outSocket = new DatagramSocket();\n outSocket.send(outPacket);\n clients.add(new Client(inMsg.split(\",\")[1], clientAddress));\n System.out.println(LocalDateTime.now() + \n \"\\nClient \" + inMsg.split(\",\")[1] + \" connected!\" +\n \"\\nClient address is : \" + clientAddress + \" (\" + clientUDPPort + \")\" +\n \"\\n============================================\");\n }\n catch(SocketException e)\n {\n System.out.println(\"SocketException in ConnectionAccepter : \" +\n \"\\n\" + e + \n \"\\n============================================\");\n }\n catch(IOException e)\n {\n System.out.println(\"IOException in ConnectionAccepter : \" +\n \"\\n\" + e + \n \"\\n============================================\");\n }\n }",
"@Override\n public void run(){\n System.out.println(clientID+\" run\");\n open();\n if(isHost){ //HostClient listening\n try{\n controller.sendHostAddress(ip, port);\n socket = hostSocket.accept();\n System.out.println(clientID+\": run: accept\");\n close(); //closes hostSocket\n connected = true;\n open(); //gets streams\n controller.sendConnect(); \n }catch(IOException e){\n System.out.println(clientID+\": run: accept: failed: IOException: \"+e);\n }\n }\n while(connected){ //interprets requests from other client\n try{\n String request = streamIn.readUTF();\n System.out.println(clientID+\": receive: \"+request);\n String response[] = request.split(\"<&>\");\n controller.interpretRequest(response);\n }catch(IOException ioe){\n System.out.println(clientID+\": receive: failed: IOException:\"+ioe);\n connected = false; \n }\n }\n }",
"public void acceptClient() {\n if (mBluetoothAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, DISCOVERABLE_DURATION);\n mContext.startActivity(discoverableIntent);\n }\n\n stop();\n\n mAcceptThread = new AcceptThread();\n mAcceptThread.start();\n }",
"public interface IMessageAcceptor {\n\n void acceptMessage(String ip, String message);\n\n void connectionClosed(String ip);\n\n}",
"public synchronized void processReq() throws UnknownHostException, IOException, InterruptedException{\n\t\tsynchronized(quorum.locked){\n\n\t\t\tString words[] = msgFromClient.split(\" \");\n\t\t\tint reqNode = Integer.parseInt(words[1]);\n\t\t\tint reqPriority = Integer.parseInt(words[2]);\n\t\t\t\n\t\t\t//Ticking clock for reciept of request\n\t\t\ttry {\n\t\t\t\tclock.tick(0, reqPriority);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif(quorum.locked.get()){\n\t\t\t\tSystem.out.println(t.getName() + \"\\t ****** Quorum is LOCKED for \"+ quorum.getPermissionGivenTo() + \" ****** \");\n\t\t\t\t//**************** If locked, then add to the queue and send INQ or FAIL msgs ***********************\n\t\t\t\t\n\t\t\t\t//Putting in queue\n\t\t\t\tsynchronized(q){\n\t\t\t\t\tq.put(msgFromClient);\n\t\t\t\t\tSystem.out.println(t.getName() + \"\\tSize of queue: \" + q.getQueue().size());\n\t\t\t\t\tSystem.out.println(t.getName() + \"\\tCONTENTS OF THE QUEUE: \");\n\t\t\t\t\tq.printQueue();\n\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t//Check whether to send INQ or FAIl\t\t\t\t\t\t\n\t\t\t\tint currNode = quorum.getPermissionGivenTo();\n\t\t\t\tint currPriority = quorum.getPermissionGivenToPriority();\n\t\t\t\t\n\t\t\t\t//If new request has higher priority, send INQ to the node with the token, JUST ONCE\n\t\t\t\tif(reqPriority < currPriority && quorum.isCanSendInq()){\n\t\t\t\t\tSystem.out.println(t.getName() + \"\\t___New REQ has HIGHER priority___\");\n\t\t\t\t\tsendInq(myNodeId, currNode, quorum, clock);\n\t\t\t\t\t\n\t\t\t\t\t//Sent an INQ already to node whose is request is being processed. Can't send anymore INQ\n\t\t\t\t\tquorum.setCanSendInq(false);\n\t\t\t\t}\n\t\t\t\telse if(reqPriority == currPriority && reqNode < currNode && quorum.isCanSendInq()){\n\t\t\t\t\tSystem.out.println(t.getName() + \"\\t_____ New REQ has SAME priority but LOWER NodeId___\");\n\t\t\t\t\tsendInq(myNodeId, currNode, quorum, clock);\n\t\t\t\t\t\n\t\t\t\t\t//Sent an INQ already to node whose is request is being processed. Can't send anymore INQ\n\t\t\t\t\tquorum.setCanSendInq(false);\n\t\t\t\t}\n\t\t\t\t//If new request has lower priority, send FAIL to requesting node, JUST ONCE\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(t.getName() + \"\\t___FAILED__\");\n\t\t\t\t\tsendFail(myNodeId, reqNode, quorum, clock);\n\t\t\t\t\t\n\t\t\t\t\t//If a fail has been sent to the node, further fails can't be sent\n\t\t\t\t\t//quorum.getSentFailTo().add(reqNode);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(t.getName() + \"\\t ****** Quorum is NOT LOCKED for \"+ quorum.getPermissionGivenTo() + \" ****** \");\n\t\t\t\t\n\t\t\t\t//Sending TOKEN to self\n\t\t\t\tif(reqNode == myNodeId){\n\t\t\t\t\tSystem.out.println(t.getName()+\"\\t********* Received TOKEN of OWN node *********\");\n\t\t\t\t\t\n\t\t\t\t\t//Remove the nodeId from the list of tokenPending\n\t\t\t\t\tquorum.removePermissionPending(reqNode);\n\t\t\t\t\t\n\t\t\t\t\t//Check if it can enter critical section\n\t\t\t\t\tif(quorum.canEnterCritSec())\n\t\t\t\t\t\tcritSecExec(myNodeId, quorum, file, clock);\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(t.getName() + \"\\tCAN'T ENTER CRITICAL SECTION YET. PERMISSIONS PENDING FROM: \");\n\t\t\t\t\t\tquorum.printPermissionsPendingList();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//Setting details of request for which the TOKEN was sent\n\t\t\t\t\tquorum.setReqWithToken(msgFromClient);\n\t\t\t\t\tquorum.setPermissionGivenTo(reqNode);\n\t\t\t\t\tquorum.setPermissionGivenToPriority(reqPriority);\n\t\t\t\t\t\n\t\t\t\t\t//New TOKEN granted and so canSendInq and canSendFail booleans should be allowed\n\t\t\t\t\tquorum.setCanSendInq(true);\n\t\t\t\t\t//quorum.setCanSendFail(true);\n\t\t\t\t\t\n\t\t\t\t\t//Locking node for current request\n\t\t\t\t\tquorum.locked.compareAndSet(false, true);\n\n\t\t\t\t\t//continue;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//Sending TOKEN to others\n\t\t\t\t\tString destIpAdd = file.getIpAddressList().get(reqNode);\n\t\t\t\t\tint destPort = file.getPortList().get(reqNode);\n\t\t\t\t\tSystem.out.println(t.getName() + \"\\tDestIpAdd: \" + destIpAdd + \" DestPortNo: \" + destPort);\n\t\t\t\t\t\n\t\t\t\t\t//Setting client according to the quorum hashMap\n\t\t\t\t if(quorum.getQuorumSockets().containsKey(reqNode)){\n\t\t\t\t \tSystem.out.println(t.getName() + \"\\tGetting old socket\");\n\t\t\t\t\t\tclient = quorum.getQuorumSockets().get(reqNode);\n\t\t\t\t }\n\t\t\t\t\telse{\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSystem.out.println(t.getName() + \"\\tCreating new socket\");\n\t\t\t\t\t\t\tclient = new Socket(destIpAdd, destPort);\n\t\t\t\t\t\t\tquorum.getQuorumSockets().put(reqNode, client);\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t \n\t\t\t\t //Ticking clock for SEND event\n\t\t\t\t /*try {\n\t\t\t\t\t\tclock.tick(0, 0);\n\t\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}*/\n\t\t\t\t \n\t\t\t\t\t//****************** If unlocked, check for no pending requests ***********************\n\n\t\t\t\t\toutToClient = new DataOutputStream(client.getOutputStream());\n\t\t\t\t\tString msgToSend = \"TOK \" + myNodeId + \" \" + clock.getClockVal();\n\t\t\t\t\t\n\t\t\t\t\tsynchronized(outToClient){\n\t\t\t\t\t\toutToClient.writeBytes(msgToSend+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(t.getName()+ \"\\t***************** PERMISSION GRANTED TOKEN TO: \" + reqNode + \" ******************\");\n\t\t\t\t\t\n\t\t\t\t\t//Setting details of request for which the TOKEN was sent\n\t\t\t\t\tquorum.setReqWithToken(msgFromClient);\n\t\t\t\t\tquorum.setPermissionGivenTo(reqNode);\n\t\t\t\t\tquorum.setPermissionGivenToPriority(reqPriority);\n\t\t\t\t\t\n\t\t\t\t\t//New TOKEN granted and so canSendInq and canSendFail booleans should be allowed\n\t\t\t\t\tquorum.setCanSendInq(true);\n\t\t\t\t\t\n\t\t\t\t\t//Locking node for current request\n\t\t\t\t\tquorum.locked.compareAndSet(false, true);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\n\t}",
"private void acceptClient(ServerSocketChannel serverSocketChannel) throws ClosedChannelException, IOException {\n SocketChannel socketChannel = serverSocketChannel.accept();\n if (socketChannel != null) {\n\n Socket socket = socketChannel.socket();\n\n socket.setReceiveBufferSize(this._clientReceiveBufferSize);\n socket.setSendBufferSize(this._clientSendBufferSize);\n socket.setTcpNoDelay(true);\n socketChannel.configureBlocking(false);\n ClientManager client = new ClientManager(socketChannel, totSizeHolderBytesCount, pinnedBufferSize);\n\n client.addClientDisposedListner(new NEventStart() {\n @Override\n public Object hanleEvent(Object... obj) throws SocketException, Exception {\n OnClientDisposed((String) obj[1]);\n return null;\n }\n }, null);\n\n if (SocketServer.getLogger().getIsDetailedLogsEnabled()) {\n SocketServer.getLogger().getCacheLog().Info(\"ConnectionManager.AcceptCallback\", \"accepted client : \" + socket.getInetAddress().toString());\n }\n\n socketChannel.register(socketSelector, SelectionKey.OP_READ, client);\n\n }\n\n }",
"@Override\n public void run() {\n try {\n while (true) {\n finalLB.addClient();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"@Override\n public void run() {\n P.print(\"Listening on port \"+P.port+\", waiting for incomming connection...\");\n try {\n ServerSocket serverSocket = new ServerSocket(P.port);\n while (P.choke_thread_running) { //read input forever.\n Receive receive_thread = new Receive();\n Socket s = serverSocket.accept();\n String addr = s.getInetAddress().toString();\n int p = s.getPort();\n int i;\n for(i = 0;i<P.peer_ip.length;i++){\n if(addr.equals(P.peer_ip[i])){\n P.sockets[i] = s;\n P.tcp_out_stream[i] = new ObjectOutputStream(s.getOutputStream());\n break;\n }\n }\n receive_thread.start(P,s,P.peer_id[--i]);\n P.print(\"Accepted incomming connection: ip = \"+addr.substring(1)+\", port = \"+p);\n }\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"private void handleClient() {\n\t\t//Socket link = null;\n\t\tRequestRecord reqRec = new RequestRecord();\n\t\tResponder respondR = new Responder();\n\t\t\n\t\ttry {\n\t\t\t// STEP 1 : accepting client request in client socket\n\t\t\t//link = servSock.accept(); //-----> already done in *ThreadExecutor*\n\t\t\t\n\t\t\t// STEP 2 : creating i/o stream for socket\n\t\t\tScanner input = new Scanner(link.getInputStream());\n\t\t\tdo{\n\t\t\t\t//PrintWriter output = new PrintWriter(link.getOutputStream(),true);\n\t\t\t\t//DataOutputStream ds = new DataOutputStream(link.getOutputStream());\n\t\t\t\tint numMsg = 0;\n\t\t\t\tString msg = input.nextLine();\n\t\t\t\t\n\t\t\t\t//to write all requests to a File\n\t\t\t\tFileOutputStream reqFile = new FileOutputStream(\"reqFile.txt\");\n\t\t\t\tDataOutputStream dat = new DataOutputStream(reqFile);\n\t\t\t\t\n\t\t\t\t// STEP 4 : listening iteratively till close string send\n\t\t\t\twhile(msg.length()>0){\n\t\t\t\t\tnumMsg++;\n\t\t\t\t\tdat.writeChars(msg + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"\\nNew Message Received\");\n\t\t\t\t\tif(reqRec.setRecord(msg)==false)\n\t\t\t\t\t\tSystem.out.println(\"\\n-----\\nMsg#\"+numMsg+\": \"+msg+\":Error with Request Header Parsing\\n-----\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Msg#\" + numMsg + \": \" + msg);\n\t\t\t\t\tmsg = input.nextLine();\n\t\t\t\t};\n\t\t\t\tdat.writeChars(\"\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n\\n\");\n\t\t\t\tdat.close();\n\t\t\t\treqFile.close();\n\t\t\t\tSystem.out.println(\"---newEST : \" + reqRec.getResource());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n==========Send HTTP Response for Get Request of\\n\"+reqRec.getResource()+\"\\n***********\\n\");\n\t\t\t\tif(respondR.sendHTTPResponseGET(reqRec.getResource(), link)==true)//RES, ds)==true)\n\t\t\t\t\tSystem.out.println(\"-----------Resource Read\");\n\t\t\t\tSystem.out.println(\"Total Messages Transferred: \" + numMsg);\n\t\t\t\t//link.close();\n\t\t\t\tif(reqRec.getConnection().equalsIgnoreCase(\"Keep-Alive\")==true && respondR.isResourceExisting(reqRec.getResource())==true)\n\t\t\t\t\tlink.setKeepAlive(true);\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}while(true);\n\t\t\tSystem.out.print(\"Request Link Over as Connection: \" + reqRec.getConnection());\n\t\t} catch (IOException e) {\n\t\t\tif(link.isClosed())\n\t\t\t\tSystem.out.print(\"\\n\\nCritical(report it to developer):: link closed at exception\\n\\n\");\n\t\t\tSystem.out.println(\"Error in listening.\\n {Error may be here or with RespondR}\\nTraceString: \");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// STEP 5 : closing the connection\n\t\t\tSystem.out.println(\"\\nClosing Connection\\n\");\n\t\t\ttry {\t\t\t\t\n\t\t\t\tlink.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to disconnect.\\nTraceString: \");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}/*ends :: try...catch...finally*/\n\t\t\n\t}",
"private void handleNewClientProxyEvent(NewClientProxyEvent event) throws AppiaEventException {\n \t\tevent.loadMessage();\n \t\tSystem.out.println(\"Received a new client from a server\");\n \n \t\t//Get the parameters\n \t\tString groupId = event.getClient().getGroup().id;\n \n \t\t//Add the client as a future client\n \t\tVsClientManagement.addAsFutureClient(groupId, event.getClient());\n \n \t\t//I ask if I have some client in that group\n \t\tif( VsClientManagement.hasSomeClientConnectedToServer(groupId, listenAddress)){\n \t\t\tSystem.out.println(\"I have clients to ask to shut up\");\n \n \t\t\t//I need to ask my attached clients for them to Block\t\n \t\t\tVsGroup group = VsClientManagement.getVsGroup(groupId);\n \t\t\tShutUpStubEvent shutUpEvent = new ShutUpStubEvent(groupId);\n \t\t\tsendStubEvent(shutUpEvent, group);\n \t\t}\n \n \t\t//If I don't have no clients in that group\n \t\telse{\n \t\t\tSystem.out.println(\"I have no clients for group: \" + groupId + \" so I can send the blockOk\");\n \n \t\t\t//Get my version for this group\n \t\t\tint viewVersion = VsClientManagement.getVsGroup(groupId).getCurrentVersion();\n \n \t\t\t//I may send directly the BlockOkProxy event to me and the other server\n \t\t\tBlockOkProxyEvent blockedOkProxy = new BlockOkProxyEvent(groupId, myEndpt, viewVersion);\n \t\t\tsendToOtherServers(blockedOkProxy);\n \t\t\tsendToMyself(blockedOkProxy);\n \t\t}\n \t}",
"@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tRecieveSocketOfClient(SocketForClient);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}",
"private void addClient(PrintWriter out) {\n\t\tsynchronized (clients) {\n\t\t\tclients.add(out);\n\t\t}\n\t}",
"@Override\n public void run() {\n try{\n System.out.println(\"A new client is trying to connect\");\n inputFromClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n outputFromServer = new PrintWriter(socket.getOutputStream(),true);\n retrievingClientInformation(); // Identifies clients\n sendPreviousMessagesToClient(); // Sends last 15 messages to new comers\n while (clientConnected) // It will execute until client sends a signal to disconnect\n {\n readMessagesFromClients(); // Reads a client inputs then sends them to other clients\n }\n }catch (IOException ioException)\n {\n \tSystem.out.println(username + \" has left the chat.\"); // Announce client's disconnection on server\n }finally {\n try\n {\n socket.close();\n }catch (IOException ioException)\n {\n \tSystem.out.println(username + \" has left the chat.\"); // Announce client's disconnection on server\n }\n }\n }",
"@Override\n public void accept(ConnectionClientSocket client) {\n client.visit(this);\n }",
"String addReceiveQueue();",
"protected void addChannelToReadCompletePendingQueue() {\n/* 354 */ while (!Http2MultiplexHandler.this.readCompletePendingQueue.offer(this)) {\n/* 355 */ Http2MultiplexHandler.this.processPendingReadCompleteQueue();\n/* */ }\n/* */ }",
"@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n //4. Add ChannelHandler to intercept events and allow to react on them\n ch.pipeline().addLast(new ChannelHandlerAdapter() {\n @Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n //5. Write message to client and add ChannelFutureListener to close connection once message written\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }\n });\n }",
"private void waitForClient( int num ) throws IOException{\r\n\t\tshowMessage(\"\\n Waiting for Client \" + num + \" to connect ...\");\r\n\t\tif ( num == 1 ){\r\n\t\t\tconnectionClient1 = server.accept();\r\n\t\t\tshowMessage(\"\\nNow Connected to \" + connectionClient1.getInetAddress().getHostName() + \"/\" +connectionClient1.getInetAddress().getHostAddress());\r\n\t\t}\r\n\t\telse {\r\n\t\t\tconnectionClient2 = server.accept();\r\n\t\t\tshowMessage(\"\\nNow Connected to \" + connectionClient2.getInetAddress().getHostName() + \"/\" +connectionClient2.getInetAddress().getHostAddress());\r\n\t\t}\r\n\t}",
"SockHandle(Socket client,String my_ip,String my_port,int my_c_id,HashMap<Integer, SockHandle> c_list,HashMap<Integer, SockHandle> s_list, boolean rx_hdl,boolean svr_hdl,ClientNode cnode) \n {\n \tthis.client = client;\n \tthis.my_ip = my_ip;\n \tthis.my_port = my_port;\n this.my_c_id = my_c_id;\n this.remote_c_id = remote_c_id;\n this.c_list = c_list;\n this.s_list = s_list;\n this.rx_hdl = rx_hdl;\n this.svr_hdl = svr_hdl;\n this.cnode = cnode;\n // get input and output streams from socket\n \ttry \n \t{\n \t in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n \t out = new PrintWriter(client.getOutputStream(), true);\n \t} \n \tcatch (IOException e) \n \t{\n \t System.out.println(\"in or out failed\");\n \t System.exit(-1);\n \t}\n try\n {\n // only when this is started from a listening node\n // send a initial_setup message to the initiator node (like an acknowledgement message)\n // and get some information from the remote initiator node\n if(rx_hdl == true)\n {\n \t System.out.println(\"send cmd 1: setup sockets to other clients\");\n out.println(\"initial_setup\");\n ip = in.readLine();\n \t System.out.println(\"ip:\"+ip);\n port=in.readLine();\n \t System.out.println(\"port:\"+port);\n remote_c_id=Integer.valueOf(in.readLine());\n \t out.println(my_ip);\n \t out.println(my_port);\n \t out.println(my_c_id);\n \t System.out.println(\"neighbor connection, PID:\"+ Integer.toString(remote_c_id)+ \" ip:\" + ip + \" port = \" + port);\n // when this handshake is done\n // add this object to the socket handle list as part of the main Client object\n synchronized (c_list)\n {\n c_list.put(remote_c_id,this);\n }\n }\n }\n \tcatch (IOException e)\n \t{\n \t System.out.println(\"Read failed\");\n \t System.exit(1);\n \t}\n \t// handle unexpected connection loss during a session\n \tcatch (NullPointerException e)\n \t{\n \t System.out.println(\"peer connection lost\");\n \t System.exit(1);\n \t}\n // thread that continuously runs and waits for incoming messages\n // to process it and perform actions accordingly\n \tThread read = new Thread()\n {\n \t public void run()\n {\n \t while(rx_cmd(in,out) != 0) { }\n }\n \t};\n \tread.setDaemon(true); \t// terminate when main ends\n read.setName(\"rx_cmd_\"+my_c_id+\"_SockHandle_to_Server\"+svr_hdl);\n read.start();\t\t// start the thread\t\n }",
"private void initialyzeServer(int port) {\n\n try {\n server = new ServerSocket(port);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n while (true) {\n try {\n\n Client c = new Client(server.accept(), \"client \" + clientIterator, this);\n\n sockets.add(c);\n ex.submit(c);\n\n System.out.println(race);\n\n race.getBroker().registerClient(c);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n clientIterator++;\n\n System.out.println(\"Client\" + clientIterator + \" has connected the server\");\n }\n }",
"@Override\n public void run() {\n while (true) {\n try {\n\n Socket clientSocket = serverSock.accept();\n Client user = new Client(this, clientSocket);\n\n } catch (IOException ex) {\n Logger.getLogger(RSAServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"private void addClient () {\n ArrayList<String> info = loadOnePlayerInfo();\n Ntotal++;\n Nnow++;\n\n System.out.println(\"Vai ser inicializado o utilizador \" + info.get(0));\n initThread(info.get(0), info.get(1));\n }",
"private void ClientSocketConnection(ServerSocket serverSocket){\n while(true){\n try{\n Socket socket = serverSocket.accept();\n ClientThread client = new ClientThread(this, socket);\n Thread thread = new Thread(client);\n thread.start();\n clients.add(client);\n } \n catch (IOException e){\n e.printStackTrace();\n }\n }\n }",
"@Override\n\tpublic void addClient(Client c, String msg) throws RemoteException {\n\t\tif(!users.contains(c)){\n\t\t\tusers.add(c);\n\t\t\tfor(int i=0;i<users.size();i++) {\t \n\t //sendMessage((Client)users.get(i),msg);\n\t\t\t\tSystem.out.println(users.get(i).getName());\n\t }\n\t //users.add(c);\n\t }\n\t}",
"public void onMessage(javax.jms.Message message) {\n try {\n Serializable objectMessage = ((ObjectMessage)message).getObject();\n if (Register.class.isInstance(objectMessage)) {\n Register registerMsg = (Register) objectMessage;\n\n String sender = registerMsg.getSender();\n if (spineInstanceList == null) {\n spineInstanceList = new HashSet<String>();\n // Add LOCAL id to the list to ensure no other Spine tries to use it.\n log.trace(\"Adding first registered Spine with id: {}\", clientId);\n if (!sender.startsWith(SpineStatus.TEST_MASTER_STATUS)) {\n spineInstanceList.add(clientId);\n }\n }\n log.trace(\"Client '{}' Received Registration request from '{}'\", clientId, sender);\n TransactionUID uid = registerMsg.getUid();\n boolean permission = true;\n try {\n if (spineInstanceList.contains(sender)) {\n log.info(\"Spine Client id: '{}' has already been used, declining registration.\", sender);\n spine.sendSystemMessage(new RegisterConfirmation(clientId, uid, !permission));\n }\n else {\n spine.sendSystemMessage(new RegisterConfirmation(clientId, uid, permission));\n log.trace(\"Adding client '{}' to the authorized Spine List\", sender);\n if (!sender.startsWith(SpineStatus.TEST_MASTER_STATUS)) {\n spineInstanceList.add(sender);\n }\n }\n } catch (SpineException e) {\n log.warn(\"Exception while sending RegisterConfirmation Message\", e);\n }\n }\n else {\n log.warn(\"Attempt to subscribe to Unsupported Durable Message: '{}'\", message);\n }\n } catch (JMSException e) {\n log.warn(\"Exception while handling Durable Message\", e);\n }\n }",
"@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e)\n {\n \n Channel connectedChannel = e.getChannel();\n allChannels.add(connectedChannel);\n \n msg = StringAppender.mergeToStr(connectedMsg, e.getChannel().getLocalAddress().toString(), \" , Connections:\", String.valueOf(allChannels.size()));\n logger.info(msg);\n \n }",
"@Override\n\tpublic void run() {\n try {\n while (true) {\n Socket socket = listener.accept();\n try {\n \t\n\t\t\t\t\tDataInputStream in = new DataInputStream(\n\t\t\t\t\t\t\tsocket.getInputStream());\n\t\t\t\t\tBufferedReader d = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(in));\n\n\t\t\t\t\tString msg = d.readLine();\n\t\t\t\t\t\n third.notifyAllClients(msg);\n \n d.close();\n in.close();\n } finally {\n socket.close();\n }\n }\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n finally {\n try {\n\t\t\t\tlistener.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n\t}",
"public void dispatchConnection(String clientId)\n {\n for (GpsUpdateListener listsner : registeredListeners)\n {\n listsner.onClientConnected(clientId);\n }\n }",
"public void startUpUserClientDispatcher( int userClientDispatcherPort ) {\n\n final CountDownLatch readySignalUserDispatcher = new CountDownLatch( 1 );\n userClientDispatcher = new UserClientDispatcher( userClientDispatcherPort, readySignalUserDispatcher );\n userClientDispatcherThread = new Thread( userClientDispatcher );\n userClientDispatcherThread.start();\n\n try {\n readySignalUserDispatcher.await();\n logger.info( \"User Client Dispatcher is waiting for incoming connections...\" );\n } catch ( InterruptedException e ) {\n logger.error( \"Error while starting up User Client Dispatcher!\", e );\n }\n\n }",
"private void handleWhiteboardSynchronization() {\n String userName = EventMessageParser.extractUserName(this.message);\n\n if (StringHelper.isNullOrEmpty(userName)) {\n for (SocketConnection peer : SocketManager.getInstance()\n .getNotManagerConnectionList()) {\n peer.send(this.message);\n }\n } else {\n SocketConnection connection = SocketManager.getInstance()\n .getUserConnection(userName);\n connection.send(this.message);\n }\n }",
"@Override\n public void run()\n {\n System.out.println(\"[\" + getCurrentDateTimeStamp() + \"]\" + \" Received connection from: \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.INFO.toString(), \"Received connection from: \" + clientSocket);\n try (PrintWriter pw = new PrintWriter(clientSocket.getOutputStream());\n BufferedReader br = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()))) {\n String line = \"\";\n\n while ((line != null) && (!line.trim().toUpperCase().equals(\"CLOSE\")) && (!stop)) {\n if (!stop && !clientSocket.isClosed()) {\n synchronized (this) {\n line = br.readLine();\n }\n }\n\n if ((line != null) && (!line.trim().isEmpty()) && (!stop)) {\n if(\"getRegisterTopics\".equalsIgnoreCase(line))\n {\n sendRegisterTopics(pw);\n }\n else\n {\n line = processMessage(clientSocket, pw, line);\n }\n }\n }\n } catch (SocketException e1)\n {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"the connection was interrupted by the client - \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e1));\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] the connection was interrupted by the client - \" + clientSocket);\n } catch (IOException e)\n {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"Error while try to read from client \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e));\n System.out.println(\"Error while try to read from client \" + clientSocket);\n } finally {\n //remove from topic table\n synchronized (Server.class) {\n if (clientTopicsTable.containsKey(clientSocket)) {\n clientTopicsTable.remove(clientSocket);\n }\n //remove from threads table\n if (Server.handleClients.contains(this)) {\n Server.handleClients.remove(this);\n }\n }\n try {\n clientSocket.close();\n } catch (IOException e) {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"Error while try to close socket clientSocket: \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e));\n System.out.println(\"Error while try to close socket clientSocket: \" + clientSocket);\n }\n }\n }",
"@Override\n public void channelConnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n Channel channel = ctx.getChannel();\n //session.setAttachment(new Player(session));\n Client client = new Client(channel);\n channel.setAttachment(client);\n engine.addClient(client);\n }",
"public void setUpNetworking() throws Exception {\n this.serverSock = new ServerSocket(4242);\n\n groupChats = new HashMap<String, ArrayList<String>>();\n groupMessages = new HashMap<String, ArrayList<String>>();\n groupMessages.put(\"Global\", new ArrayList<String>());\n\n int socketOn = 0;\n\n while (true) {\n\n Socket clientSocket = serverSock.accept();\n System.out.println(\"Received connection \" + clientSocket);\n\n ClientObserver writer = new ClientObserver(clientSocket.getOutputStream());\n\n Thread t = new Thread(new ClientHandler(clientSocket, writer));\n t.start();\n System.out.println(\"Connection Established\");\n socketOn = 1;\n }\n }",
"public void run() {\n while (true) {\n try {\n /* Get string from client */\n String fromClient = this.in.readLine();\n \n /* If null, connection is closed, so just finish */\n if (fromClient == null) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this == clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + this.id + \" disconnected\"); }\n }\n this.in.close();\n this.out.close();\n this.socket.close();\n return;\n }\n \n /* If the client said \"bye\", close the connection */\n if (fromClient.equals(\"bye\")) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this != clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + this.id + \" said bye, disconnecting\"); }\n }\n this.in.close();\n this.out.close();\n this.socket.close();\n return;\n }\n\n if(fromClient.startsWith(\"/id \")) {\n String oldID=this.id;\n String msg = this.changeID(fromClient.substring(4));\n if (msg.equals(\"\")) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this != clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + oldID + \" changed his/her name to \" + this.id); }\n }\n }\n else {\n this.out.println(msg);\n }\n }\n else if(fromClient.startsWith(\"/whisper \")){\n String msg = this.whisper(fromClient.substring(9, StringUtils.ordinalIndexOf(fromClient, \" \", 2)));\n String user = fromClient.substring(9, StringUtils.ordinalIndexOf(fromClient, \" \", 2));\n for (int x=0; x<clientlist.size(); x++) {\n if (user.equalsIgnoreCase(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(this.id + \" whispered : \" + (fromClient.substring(StringUtils.ordinalIndexOf(fromClient, \" \", 2)+1)).toUpperCase() );\n }\n }\n if(!msg.equalsIgnoreCase(\"\")){ this.out.println(msg); }\n }\n else if(fromClient.startsWith(\"/room \")){\n String msg = this.roomChange(fromClient.substring(6));\n String roomName = fromClient.substring(6);\n for (int x=0; x<rooms.size(); x++) {\n if (rooms.get(x).title.equalsIgnoreCase(roomName)) {\n for (int y = 0; y < clientlist.size(); y++) {\n if (rooms.get(x).hasClient(clientlist.get(y).id) && !clientlist.get(y).id.equalsIgnoreCase(this.id)) {\n clientlist.get(y).out.println(this.id + \" has joined room \" + roomName);\n }\n }\n }\n }\n this.out.println(msg);\n\n room aRoom = new room(\"x\");\n for(room theRoom : rooms){\n ArrayList<String> members = theRoom.getMembers();\n for(String member : members) {\n if (member.equalsIgnoreCase(this.id)) {\n aRoom = theRoom;\n }\n }\n }\n\n this.out.print(\"The admins in the group are: \");\n for(String admin: aRoom.getAdmins()){\n this.out.print(admin + \" \");\n }\n this.out.println(\"\");\n this.out.println(\"The topic of the room is \" + aRoom.topic);\n }\n else if(fromClient.startsWith(\"/+admin \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String roomName=\"\";\n room aRoom = new room(\"x\");\n String user = fromClient.substring(8);\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n this.addAdmin(user, roomName);\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(user + \" was made an admin of \" + roomName);\n }\n }\n }\n else if(fromClient.startsWith(\"/-admin \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String roomName=\"\";\n room aRoom = new room(\"x\");\n String user = fromClient.substring(8);\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n this.removeAdmin(user);\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(clientlist.get(x).id + \" was removed from the admin position in \" + roomName);\n }\n }\n }\n else if(fromClient.startsWith(\"/kick \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String user = fromClient.substring(6);\n String roomName=\"\";\n room aRoom = new room(\"x\");\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id) && !clientlist.get(x).id.equalsIgnoreCase(user)){\n clientlist.get(x).out.println(user + \" was kicked from \" + roomName);\n }\n else if (aRoom.getAdmins().contains(user) && clientlist.get(x).id.equalsIgnoreCase(this.id) ){\n this.out.println(\"You cannot kick an admin of the group\");\n }\n else if (aRoom.getMembers().contains(clientlist.get(x).id) && clientlist.get(x).id.equalsIgnoreCase(user)) {\n clientlist.get(x).out.println(\"You are being kicked from \" + roomName + \" by \" + this.id + \", and being placed in Lobby.\");\n this.kick(user);\n }\n }\n }\n else if(fromClient.startsWith(\"/topic \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String topic = fromClient.substring(7);\n String roomName=\"\";\n\n for(room theRoom : rooms){\n ArrayList<String> members = theRoom.getMembers();\n for(String member : members) {\n if (member.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n }\n }\n }\n\n this.addTopic(topic);\n for (int x=0; x<rooms.size(); x++) {\n if (rooms.get(x).title.equalsIgnoreCase(roomName)) {\n for (int y = 0; y < clientlist.size(); y++) {\n if (rooms.get(x).hasClient(clientlist.get(y).id) && !clientlist.get(y).id.equalsIgnoreCase(this.id) && rooms.get(x).getAdmins().contains(this.id)) {\n clientlist.get(y).out.println(this.id + \" changed the topic of the room to \" + topic);\n }\n }\n }\n }\n }\n \n /* Otherwise send the text to the server*/\n\n else {\n for (int y=0; y < rooms.size(); y++) {\n for (int x = 0; x < clientlist.size(); x++) {\n if (this != clientlist.get(x)) {\n if(rooms.get(y).hasClient(this.id) && rooms.get(y).hasClient(clientlist.get(x).id)) {\n clientlist.get(x).out.println(\"Client \" + this.id + \" said: \" + fromClient);\n }\n }\n }\n }\n }\n \n } catch (IOException e) {\n /* On exception, stop the thread */\n System.out.println(\"IOException: \" + e);\n return;\n }\n }\n }",
"public void waitClientRegistration(PullMQ pmq)\n\t{\n\t\tHashSet<String> clients = new HashSet<String>();\n\t\twhile (clients.size() < totalClients)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tString msg = pmq.pullMQ();\n\t\t\t\tElement client = DocumentHelper.parseText(msg).getRootElement();\n\t\t\t\t\n\t\t\t} catch (Exception e)\n\t\t\t{\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void acceptSocket(AsynchronousSocketChannel arg0) {\n\r\n\t\tnew TCPClient(arg0);\r\n\t}",
"@Override\r\n\tpublic void run() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t// generate Client\r\n\t\t\tClient client = new Client(publicKeysOfMixes);\r\n\t\t\tclient.connect();\r\n\t\t\tInputStream cascadeInputStream = client.getInputStream();\r\n\t\t\tOutputStream cascadeOutputStream = client.getOutputStream();\r\n\t\t\t\r\n\t\t\t// \"Send K bytes of data with a delay of L ms between sending, M \r\n\t\t\t// times.\"\r\n\t\t\t\r\n\t\t\tint m = getVariable(\"M\");\r\n\t\t\tfor (int i=1; i<=m; i++) {\r\n\t\t\t\t\r\n\t\t\t\t// generate random message\r\n\t\t\t\tint size = getVariable(\"K\");\r\n\t\t\t\tbyte[] message = generateRandomMessage(size);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Starting to write \" +i +\". message (\"\r\n\t\t\t\t\t\t\t\t+size +\" bytes): \\n\" +new String(message)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// send message\r\n\t\t\t\tcascadeOutputStream.write(message);\r\n\t\t\t\tcascadeOutputStream.flush();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tint messageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(message, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addSentMessage(messageID);\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// receive reply\r\n\t\t\t\tbyte[] reply = new byte[size];\r\n\t\t\t\tint sizeOfReply = cascadeInputStream.read(reply);\r\n\t\t\t\t\r\n\t\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t\t+\") Received \" +i +\". reply (\"\r\n\t\t\t\t\t\t\t\t+sizeOfReply +\" bytes): \\n\" +new String(reply)\r\n\t\t\t\t\t\t\t\t);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// submit message id to ReceivalCheck\r\n\t\t\t\tmessageID = \r\n\t\t\t\t\tnew BigInteger(Arrays.copyOf(reply, 9)).abs().intValue();\r\n\t\t\t\t\r\n\t\t\t\tReceivalCheck.addReceivedMessage(messageID);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// add delay\r\n\t\t\t\tif (i != m) { // not last round\r\n\t\t\t\t\t\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tThread.sleep((long)ClientSimulator.getVariable(\"L\"));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tLOGGER.severe(e.getMessage());\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// disconnect\r\n\t\t\t\r\n\t\t\tLOGGER.fine(\t\"(Client\" +Thread.currentThread()\r\n\t\t\t\t\t\t\t+\") Disconnecting since all data is written!\"\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\r\n\t\t\tclient.disconnect();\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\tLOGGER.warning(\t\"(ClientSimulator) Message could not be sent! \"\r\n\t\t\t\t\t\t\t+e.getMessage()\r\n\t\t\t\t\t\t\t);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void run() {\n try {\n\n // Decorate the streams so we can send characters\n // and not just bytes. Ensure output is flushed\n // after every newline.\n BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n\n // Send a welcome message to the client.\n out.println(\"Hello, you are client #\" + clientNumber + \".\");\n out.println(\"Enter \\\"ADD,X,Y\\\",\\\"SUB,X,Y\\\",\\\"MUL,X,Y\\\",\\\"DIV,X,Y\\\", KILL, or \\\".\\\".\");\n out.println(\"KILL will terminate the server and all connections, \\\".\\\" will close this client only\");\n\n // Get messages from the client, line by line; return them\n // capitalized\n while (true) {\n String input = in.readLine();\n if (input == null || input.equals(\".\")){\n break;\n }\n this.queue.add(input, out);\n if(input.equalsIgnoreCase(\"KILL\"))\n {\n \tbreak;\n }\n }\n } catch (IOException e) {\n log(\"Error handling client# \" + clientNumber + \": \" + e);\n } finally {\n try {\n socket.close();\n } catch (IOException e) {\n log(\"Couldn't close a socket, what's going on?\");\n }\n log(\"Connection with client# \" + clientNumber + \" closed\");\n }\n }",
"public void run() {\n while(!serverSocket.isClosed()) {\n try {\n Socket newClient = serverSocket.accept();\n PrintWriter pw = new PrintWriter(newClient.getOutputStream());\n if(connections.size() < MAX_CONNECTIONS) {\n synchronized(this) {\n connections.addElement(newClient);\n writers.addElement(pw);\n pw.print(\"TelnetAppender v1.0 (\" + connections.size()\n\t\t + \" active connections)\" + EOL + EOL);\n pw.flush();\n }\n } else {\n pw.print(\"Too many connections.\" + EOL);\n pw.flush();\n newClient.close();\n }\n } catch(Exception e) {\n if (e instanceof InterruptedIOException || e instanceof InterruptedException) {\n Thread.currentThread().interrupt();\n }\n if (!serverSocket.isClosed()) {\n LogLog.error(\"Encountered error while in SocketHandler loop.\", e);\n }\n break;\n }\n }\n\n try {\n serverSocket.close();\n } catch(InterruptedIOException ex) {\n Thread.currentThread().interrupt();\n } catch(IOException ex) {\n }\n }",
"public void run() {\n try {\n //Create the input object stream and output object stream for this client\n toClient = new ObjectOutputStream(client.getOutputStream());\n fromClient = new ObjectInputStream(client.getInputStream());\n login = false;\n\n while (!login) {/*Wait for a client to login*/\n try {\n receviedProtocol = (Protocol) fromClient.readObject();\n if (receviedProtocol.getMethod().equals(\"HELP\"))\n sendHelpMenu();\n else if (receviedProtocol.getMethod().equals(\"LOGIN\")) {\n authorize(receviedProtocol);\n login = true;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n logout = false;\n while (!logout) {/*Keep conncetion between client and server until the client logout*/\n try{\n receviedProtocol = (Protocol)fromClient.readObject(); //Wait for client input\n startIndex = 0;//This will be used to track the starting point of next n groups to be send\n if(receviedProtocol.getMethod().equals(\"AG\"))\n allGroupHandler(receviedProtocol);\n else if(receviedProtocol.getMethod().equals(\"LOGOUT\")){\n logout();\n logout = true;\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }\n\n } catch (IOException e) {\n System.out.println(e);\n\n } finally {\n try {\n client.close();\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n }",
"public void updateList()\r\n\t{\r\n\t\tclientQueue.offer(name);\r\n\t}",
"public EchoClientHandler() {\n firstMessage = Unpooled.buffer(EchoClient.SIZE);\n for (int i = 0; i < firstMessage.capacity(); i ++) {\n firstMessage.writeByte((byte) i);\n }\n }",
"@Override\n public void run() {\n ServerChannel channel;\n if (socketFactory == null) {\n socketFactory = this;\n }\n serverLoop : while (!shutdown) {\n try {\n serverSocket = socketFactory.createServerSocket(port);\n\n Logger.log (new LogEvent (this, \"iso-server\",\n \"listening on \" + (bindAddr != null ? bindAddr + \":\" : \"port \") + port\n + (backlog > 0 ? \" backlog=\"+backlog : \"\")\n ));\n while (!shutdown) {\n try {\n if (pool.getAvailableCount() <= 0) {\n try {\n serverSocket.close();\n fireEvent(new ISOServerShutdownEvent(this));\n } catch (IOException e){\n Logger.log (new LogEvent (this, \"iso-server\", e));\n relax();\n }\n\n for (int i=0; pool.getIdleCount() == 0; i++) {\n if (shutdown) {\n break serverLoop;\n }\n if (i % 240 == 0 && cfg.getBoolean(\"pool-exhaustion-warning\", true)) {\n LogEvent evt = new LogEvent (this, \"warn\");\n evt.addMessage (\n \"pool exhausted \" + serverSocket.toString()\n );\n evt.addMessage (pool);\n Logger.log (evt);\n }\n ISOUtil.sleep (250);\n }\n serverSocket = socketFactory.createServerSocket(port);\n }\n channel = (ServerChannel) clientSideChannel.clone();\n channel.accept (serverSocket);\n\n if (cnt[CONNECT]++ % 100 == 0) {\n purgeChannels ();\n }\n WeakReference wr = new WeakReference (channel);\n channels.put (channel.getName(), wr);\n channels.put (LAST, wr);\n pool.execute (createSession(channel));\n setChanged ();\n notifyObservers (this);\n fireEvent(new ISOServerAcceptEvent(this));\n if (channel instanceof Observable) {\n ((Observable)channel).addObserver (this);\n }\n } catch (SocketException e) {\n if (!shutdown) {\n Logger.log (new LogEvent (this, \"iso-server\", e));\n relax();\n continue serverLoop;\n }\n } catch (IOException e) {\n Logger.log (new LogEvent (this, \"iso-server\", e));\n relax();\n }\n } // while !shutdown\n } catch (Throwable e) {\n Logger.log (new LogEvent (this, \"iso-server\", e));\n relax();\n }\n }\n }",
"public void addClient(ServerClient client) {\n rrwl_serverclientlist.writeLock().lock();\n try {\n clientList.add(client);\n } finally {\n rrwl_serverclientlist.writeLock().unlock();\n }\n }",
"private void startFedServer(){\r\n \r\n try {\r\n System.out.println(\"Start server to listen for client connection....\");\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", \"Start server to listen for client connection....\", \"info\");\r\n sSocket = new ServerSocket(serverPort);\r\n sSocket.setReuseAddress(true);\r\n //System.out.println(\"FedServer is launching\");\r\n } catch (IOException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", \"Error listening on port \" + serverPort, \"severe\");\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n List<Thread> proc_list = new ArrayList();\r\n while (FLAG) {\r\n if (proc_list.size() == PROC_MAX) {\r\n boolean full = true;\r\n //check if thread number reach the maximum number, if yes, sleep; \r\n while (full) {\r\n for (int i = proc_list.size() - 1; i >= 0; i--) {\r\n if (!proc_list.get(i).isAlive()) {\r\n proc_list.remove(i);\r\n full = false;\r\n }\r\n }\r\n if (full) {\r\n try {\r\n Thread.sleep(1000);\r\n } catch (InterruptedException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n }\r\n }\r\n }\r\n //if not full, accpet new client connection\r\n try {\r\n cSocket = sSocket.accept();\r\n //System.out.println(\"[C4C-Notification] Accept connection from client\");\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", \"Accept connection from client\", \"info\");\r\n //create new thread to process client request\r\n // System.out.println(\"Accept connection from client -step 1\");\r\n Thread request = new Thread(new processRequest(cSocket));\r\n request.start();\r\n proc_list.add(request);\r\n } catch (IOException ex) {\r\n FedLog.writeLog(this.getPeerIP().split(\":\")[1], \"masterLog%g-\" + this.getPeerIP().substring(2) + \".log\", FedLog.getExceptionStack(ex), \"severe\");\r\n }\r\n\r\n }\r\n closeFedSockets();\r\n }",
"public void run() {\n try {\n // Create character streams for the socket.\n in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n out = new PrintWriter(socket.getOutputStream(), true);\n // Request a name from this client. Keep requesting until\n // a name is submitted that is not already used. \n while (true) {\n out.println(\"SUBMITNAME\");\n name = in.readLine();\n if (name == null) {\n return;\n }\n synchronized (names) {\n if (!names.contains(name)) {\n names.add(name);\n break;\n }\n else {\n \tout.println(\"duplicate\");\n }\n }\n }\n // Now that a successful name has been chosen, add the\n // socket's print writer to the set of all writers so\n // this client can receive broadcast messages.\n out.println(\"NAMEACCEPTED,\"+name);\n System.out.println(out);\n for(PrintWriter writer : clients) {\n \twriter.println(\"\\n\"+name + \" is connected\\n\");\n \tSystem.out.println(\"broadcast\");\n }\n clients.add(out);\n System.out.println(\"client \"+name+\" is connected\"); \n serverMessageArea.append(name + \" is connected\\n\");\n writeFile( name + \" is connected\\n\");\n \n //String url = \"http://localhost:9000\";\n // Accept messages from this client and broadcast them.\n while (true) {\n String s = in.readLine();\n writeFile(\"Content:\"+s+\"\\n\");\n serverMessageArea.append(\"Content:\"+s+\"\\n\");\n System.out.println(s);\n String input=s.split(\",\")[0];\n System.out.println(input);\n if (input == null) {\n return;\n }\n for (PrintWriter writer : clients) { \t\t\n writer.println(\"MESSAGE,\" + name + \",\" + input);\n }\n writeFile(\"From: \"+name + \":\" + input+\"\\n\");\n serverMessageArea.append( \"From: \"+name + \":\" + input+\"\\n\");\n }\n } catch (IOException e) {\n System.out.println(e);\n } finally {\n // This client is going down! Remove its name and its print\n // writer from the sets, and close its socket.\n if (name != null) {\n names.remove(name); \n System.out.println(\"nr\");\n }\n if (out != null) {\n clients.remove(out); \n for(PrintWriter writer : clients) {\n \twriter.println(name + \" is disconnected\\n\");\n \tSystem.out.println(\"broadcast\");\n }\n \tserverMessageArea.append(name + \" is disconnected\\n\");\n \twriteFile(\"\\n\"+name + \" is disconnected\\n\");\n System.out.println(\"cr\");\n \n }\n try {\n socket.close();\n writeFile( \" Server is disconnected\\n\");\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n }",
"public void acceptConnection(SystemServiceConnection connection);",
"public void run() {\r\n while (!serverSocket.isClosed()) {\r\n try {\r\n Socket socket = serverSocket.accept();\r\n if (socket.isConnected()) {\r\n clientConnections.add(new ConnectionHandler(socket));\r\n }\r\n } catch (SocketException e) {\r\n System.out.println(\"Socket ist nicht verfügbar\");\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }",
"private static void startSocket() throws MutexException {\n\t\tThread t1 = new ClientServerSockets();\n\t\tt1.start();\n\t\tboolean deadlock = false;\n\t\twhile(requestsCount != 20) {\n\t\t\t// for 2.3.a\n\t\t\trandomWait(2, 5);\n//\t\t\tMutex.fixedWait(5);\n\t\t\tMetrics.criticalSectionStartMsgSnapshot();\n\t\t\tMetrics.criticalSectionStartTimeSnapshot();\n\t\t\tArrayList<Integer> randomQuorum = Quorum.getRandomQuorum();\n//\t\t\trandomQuorum = new ArrayList<Integer>(Arrays.asList(4, 5, 6, 7));\n\t\t\tLogger.info(\"Selected a quorum: \" + randomQuorum);\n\n\t\t\tcurrentQuorum = randomQuorum;\n\t\t\tenteredCriticalSection = false;\t\t\t\n\t\t\tif(Client.requestsCount != 0) {\n\t\t\t\tMetrics.exitAndReEntry(Client.requestsCount);\n\t\t\t}\n\t\t\tfor(Integer id: randomQuorum) {\n\t\t\t\tMap<String, String> serverById = Host.getServerById(id);\n\t\t\t\tEntry<String, String> entry = serverById.entrySet().iterator().next();\n\t\t\t\tString serverName = entry.getKey();\n\t\t\t\tint serverPort = Integer.valueOf(entry.getValue());\n\t\t\t\tlong currentTimeStamp = System.currentTimeMillis();\n\t\t\t\tString clientId = String.valueOf(Host.getId());\n\t\t\t\tString formattedRequestMessage = Client.prepareRequestMessage(currentTimeStamp, clientId);\n\t\t\t\tLogger.info(\"Sending REQUEST to quorum member: \" + serverById + \", i.e., server name:\" + serverName);\n\t\t\t\tMutex.sendMessage(serverName, serverPort, formattedRequestMessage);\n\t\t\t}\n\t\t\tint waitingTimeinSeconds = 0;\n\t\t\twhile(!enteredCriticalSection) {\n\t\t\t\tLogger.info(\"Waiting for the old REQUEST to get COMPLETED before generating a new quorum.\");\n\t\t\t\tMutex.fixedWait(3);\n\t\t\t\twaitingTimeinSeconds+=3;\n\t\t\t\tif(waitingTimeinSeconds >= 90) {\n\t\t\t\t\tLogger.info(\"Looks like a DEADLOCK situation. Preparing to ABORT.\");\n\t\t\t\t\tdeadlock = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(deadlock) {\n\t\t\t\tMutex.sendMessage(Host.getname(), Integer.valueOf(Host.getPort()), MutexReferences.ABORT);\n\t\t\t}\n\t\t\tMetrics.criticalSectionEndMsgSnapshot(requestsCount);\n\t\t\trequestsCount++;\n\t\t\tif(requestsCount < 20) {\n\t\t\t\tLogger.info(\"Last request successfully completed. Generating a new request.\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tLogger.info(\"Completed 20 requests. Preparing to send COMPLETE to master.\");\n\t\t\t}\n\t\t}\n\t\t\t\n\t}",
"@Override\n public void run() {\n final boolean isAuthorized = authzManager.checkClient(socket);\n /* not an authorized client, close this connection */\n if (!isAuthorized) {\n if (logger.isLoggable(Level.INFO)) {\n logger.log(Level.INFO, \"Client \" + socket + \"it' not authorized. Closing connection...\");\n }\n close();\n }\n\n // register in authorization manager for periodic checks of permissions\n authzManager.registerClient(socket);\n\n // ok pal, let's I agree to talk to you\n super.run();\n }",
"private void listenForConnection() throws IOException {\n\twhile(true) {\n System.out.println(\"Waiting for connection...\");\n // Wait for client to connect\n Socket cli = server.accept();\n if(connlist.size() < MAX_CONN) {\n\t\t// if numCli is less then 100\n initConnection(cli);\n }\n\t}\n }",
"public synchronized void incrementClients()\r\n\t{\r\n\t\tnumberOfClients++;\r\n\t}",
"public void UserClientAcceptor(ArrayList<User> cleints) {\r\n \tuserClient = (ArrayList<User>)cleints.clone();\r\n \t//System.out.println(userClient);\r\n\t\tList.addAll(cleints);\r\n\t\t}",
"public void listen(){\n \ttry{ \t\t\n \t\twhile(true){\n \t \t\tSocket socket = server.accept();\n \t \t\tString nickname = new String(\"Guest_\" + String.valueOf(nextId));\n \t \t\t\n \t \t\t// Create a server connection and connect it to the appropriate user.\n \t \t\tServerConnection userConnection = new ServerConnection(nextId, socket, this);\n \t \t\tUser user = new User(nextId, nickname, userConnection);\n \t \t\tuserConnection.setUser(user);\n \t \t\t\n \t \t\tsynchronized(userMap){\n \t \t\t\tuserMap.put(nextId, user);\n \t \t\t}\n \t \t\t// Send a response that connection was successful;\n \t \t\tuserConnection.sendMessage(new Message(Command.REPLY_SUCCESS, \"\", Calendar.getInstance(), \"\"));\n \t \t\t\n \t \t\tnextId++;\n \t\t}\n \t}\n \tcatch(IOException e){\n \t\te.printStackTrace();\n \t}\n }",
"public void run()\n {\n try {\n clientSocket = serverSocket.accept();\n System.out.println(\"Client connected.\");\n clientOutputStream = new PrintWriter(clientSocket.getOutputStream(), true);\n clientInputStream = new BufferedReader( new InputStreamReader(clientSocket.getInputStream()));\n\n while(isRunning)\n {\n try {\n serverTick(clientSocket, clientOutputStream, clientInputStream);\n } catch (java.net.SocketException e)\n {\n //System.out.println(\"Network.Client closed connection. Ending server\");\n this.closeServer();\n }\n }\n } catch (Exception e1) {\n // TODO Auto-generated catch block\n e1.printStackTrace();\n }\n\n /***Legacy Code for allowing multiple users. No point in spending time implementing\n * When this is just suppose to be one way communication\n\n try {\n acceptClients.join();\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n closeServer();\n */ }",
"@Override\n\tpublic void onClientConnection(ClientThread client) {\n\t\t//tcp.client.sendMessage(\"vous êtes connecté en tant que \" + tcp.client.getClientName());\n\t\ttry{\n\t\t\tlockHistory.readLock().lock();\n\t\t\tfor(String oldMessage : history){\n\t\t\t\tclient.sendMessage(oldMessage);\n\t\t\t}\n\t\t} finally {\n\t\t\tlockHistory.readLock().unlock();\n\t\t}\n\n\t\ttry {\n\t\t\tlockClients.writeLock().lock();\n\t\t\tthis.clients.add(client);\n\n\t\t} finally {\n\t\t\tlockClients.writeLock().unlock();\n\t\t}\n\n\t\ttry{\n\t\t\tlockClients.readLock().lock();\n\t\t\tLocalDateTime now = LocalDateTime.now();\n\t\t\tString toSend = \"[\"+dtf.format(now)+\"] \"+client.getClientName()+\" has joined the chat\";\n\t\t\tfor (ClientThread c : clients) {\n\t\t\t\tc.sendMessage(toSend);\n\t\t\t}\n\t\t\taddToHistory(toSend);\n\t\t} finally {\n\t\t\tlockClients.readLock().unlock();\n\t\t}\n\t}",
"private void handleAcceptable(@NotNull SelectionKey selectionKey) throws IOException {\n logger.debug(\"handling acceptable\");\n ServerSocketChannel serverChannel = (ServerSocketChannel) selectionKey.channel();\n SocketChannel socketChannel = serverChannel.accept();\n logger.debug(\"got client socket channel :\" + socketChannel.toString());\n\n socketChannel.configureBlocking(false);\n SelectionKey clientKey = socketChannel.register(selector, SelectionKey.OP_READ);\n MessageReader reader = new MessageReader((SocketChannel) clientKey.channel());\n clientKey.attach(reader);\n }",
"public void incrementClients() {\n\t\tconnectedClients.incrementAndGet();\n\t}"
]
| [
"0.6301198",
"0.6226915",
"0.6217527",
"0.6211874",
"0.61058474",
"0.6071591",
"0.60631275",
"0.59866536",
"0.59186757",
"0.58566135",
"0.5844254",
"0.58356214",
"0.57799757",
"0.57772344",
"0.5771922",
"0.57341087",
"0.5705851",
"0.5696837",
"0.56916547",
"0.563489",
"0.5634116",
"0.56178564",
"0.56134653",
"0.56055075",
"0.5601143",
"0.55870926",
"0.556989",
"0.55641013",
"0.55505544",
"0.5540679",
"0.5537811",
"0.5533146",
"0.55246973",
"0.5524608",
"0.5504808",
"0.5501958",
"0.54970294",
"0.5484766",
"0.54809237",
"0.5478344",
"0.5471946",
"0.54703933",
"0.5449011",
"0.5432443",
"0.54314566",
"0.5410304",
"0.54087096",
"0.5407084",
"0.53957134",
"0.5395632",
"0.53874034",
"0.53799075",
"0.5377923",
"0.5367445",
"0.53610265",
"0.5343805",
"0.5342035",
"0.53411764",
"0.5326049",
"0.53152364",
"0.5313615",
"0.5297882",
"0.52838755",
"0.5278197",
"0.527077",
"0.52706903",
"0.5267867",
"0.5255909",
"0.52489173",
"0.52376777",
"0.52376634",
"0.5232189",
"0.5223982",
"0.5222232",
"0.52184474",
"0.52141505",
"0.52054656",
"0.52024937",
"0.5197266",
"0.51888025",
"0.5184738",
"0.5180833",
"0.51784027",
"0.5172077",
"0.51678556",
"0.5164058",
"0.51625097",
"0.51563835",
"0.51563257",
"0.5153837",
"0.5153483",
"0.51533514",
"0.5153095",
"0.51521415",
"0.51441914",
"0.5139536",
"0.5128241",
"0.51278603",
"0.5127692",
"0.5126287",
"0.5124083"
]
| 0.0 | -1 |
Removes views that disconnected while waiting in the queue | private void removeDisconnectedViews() {
List<View> disconnectedViews;
synchronized (connectedViews) {
disconnectedViews = connectedViews
.stream()
.filter(view -> !view.isConnected())
.collect(Collectors.toList());
connectedViews.removeAll(disconnectedViews);
}
synchronized (connectedNicknames) {
disconnectedViews.forEach(v -> connectedNicknames.remove(v.getNickname()));
}
disconnectedViews.forEach(this::closeView);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public synchronized void shutdownView(View view) {\r\n systems.remove(view); // remove view from system calls\r\n view.shutdown(); // shutdown the view appropriately\r\n running = false; // set running to false, engine will exit on next loop\r\n }",
"public static void removeAll() {\n\t\t\n\t\tif(notificationsView != null) {\n\t\t\tComponent[] notifications = notificationsView.getComponents();\n\t\t\tfor(Component notification : notifications) {\n\t\t\t\tNotification n = (Notification) notification;\n\t\t\t\tif(n.expireOnDisconnect)\n\t\t\t\t\tn.removeNow();\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void dropWaitingStates() {\n waitlist.clear();\n }",
"public void removeAll() {\n/* 105 */ this.connectionToTimes.clear();\n/* */ }",
"private void connectToNewViews() {\n try {\n\n if (currentSocketTask.isDone()) {\n addNewView(currentSocketTask.get());\n\n // The previous task has been consumed, we can now submit a new task for waiting new views\n synchronized (threadPool) {\n if (!threadPool.isShutdown()) {\n currentSocketTask = threadPool.submit(socketAcceptor);\n }\n }\n }\n } catch (ExecutionException ex) {\n synchronized (threadPool) {\n if (!threadPool.isShutdown()) {\n currentSocketTask = threadPool.submit(socketAcceptor);\n }\n }\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n\n try {\n if (currentRMITask.isDone()) {\n addNewView(currentRMITask.get());\n\n // The previous task has been consumed, we can now submit a new task for waiting new views\n synchronized (threadPool) {\n if (!threadPool.isShutdown()) {\n currentRMITask = threadPool.submit(rmiAcceptor);\n }\n }\n }\n } catch (ExecutionException ex) {\n synchronized (threadPool) {\n if (!threadPool.isShutdown()) {\n currentRMITask = threadPool.submit(rmiAcceptor);\n }\n }\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n }",
"void detachFromGraphView();",
"private void emptyLayout() {\n int maxIndex = getNumPeers();\n for (int i = 0; i < maxIndex; i++) {\n // Iterate over the remote Peers only (first Peer is self Peer)\n Utils.removeViewFromParent(getVideoView(getPeerId(i + 1)));\n }\n }",
"private void handleWhiteboardCleared() {\n for (SocketConnection tobeNotified : SocketManager.getInstance()\n .getNotManagerConnectionList()) {\n tobeNotified.send(this.message);\n }\n }",
"@Override\n public void run() {\n tweetListRecyclerView.getRecycledViewPool().clear();\n // Notify the adapter that the data has changed.\n statusAdapter.notifyDataSetChanged();\n }",
"public void garbageCollectOrphans() {\r\n /**\r\n * The list of orphaned queues was assembled in the browser session \r\n * preceding the current one. At this point it is safe to get rid \r\n * of them; their windows must have long since being destroyed.\r\n */\r\n for (SeleneseQueue q : orphanedQueues) {\r\n q.endOfLife();\r\n }\r\n orphanedQueues.clear();\r\n }",
"public void detachAllObservers();",
"public void onCustomViewHidden() {\n mTimer.cancel();\n mTimer = null;\n if (mVideoView.isPlaying()) {\n mVideoView.stopPlayback();\n }\n if (isVideoSelfEnded)\n mCurrentProxy.dispatchOnEnded();\n else\n mCurrentProxy.dispatchOnPaused();\n\n // Re enable plugin views.\n mCurrentProxy.getWebView().getViewManager().showAll();\n\n isVideoSelfEnded = false;\n mCurrentProxy = null;\n mLayout.removeView(mVideoView);\n mVideoView = null;\n if (mProgressView != null) {\n mLayout.removeView(mProgressView);\n mProgressView = null;\n }\n mLayout = null;\n }",
"private void removeAllPictureViews() {\n\t\tscrollBarAdjEvtValueOld = 0;\n\t\tpictureViewTable.clear();\n\t\tint count = client.getComponentCount();\n\t\tif (count == 0) {\n\t\t\treturn; // no components (picture views painted)\n\t\t}\n\n\t\tpictureClosed.clear();\n\t\tclient.removeAll();\n\t\tclient.repaint();\n\t\tDimension cl = client.getPreferredSize();\n\t\tcl.height = 0;\n\t\tclient.setPreferredSize(cl);\n\t\tclient.revalidate();\n\t}",
"private void removeRemoteVideo() {\n if (mRemoteView != null) {\n mRemoteContainer.removeView(mRemoteView);\n }\n mRemoteView = null;\n }",
"public Optional<View> pop() {\n synchronized (connectedViews) {\n if (connectedViews.isEmpty()) {\n return Optional.empty();\n } else {\n return Optional.of(connectedViews.remove());\n }\n }\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n playlistDisposables.dispose();\n if (playlistAdapter != null) {\n playlistAdapter.unsetSelectedListener();\n }\n\n playlistDisposables.clear();\n playlistRecyclerView = null;\n playlistAdapter = null;\n }",
"public static void releaseRecycledViewPool() {\n sRecycledViewPool.clear();\n }",
"public void onViewportOut() {\n View child;\n AppWidgetHostView widgetView;\n AppWidgetProviderInfo widgetInfo;\n Intent intent;\n\n for (int i = this.getChildCount() - 1; i >= 0; i--) {\n try {\n child = this.getChildAt(i);\n if (child instanceof AppWidgetHostView) {\n widgetView = ((AppWidgetHostView) child);\n\n // Stop all animations in the view\n stopAllAnimationDrawables(widgetView);\n\n // Notify the widget provider\n widgetInfo = widgetView.getAppWidgetInfo();\n int appWidgetId = widgetView.getAppWidgetId();\n intent = new Intent(LauncherIntent.Notification.NOTIFICATION_OUT_VIEWPORT)\n .setComponent(widgetInfo.provider);\n intent.putExtra(LauncherIntent.Extra.EXTRA_APPWIDGET_ID, appWidgetId);\n intent.putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);\n getContext().sendBroadcast(intent);\n }\n } catch (Exception e) {\n // LauncherApplication.reportExceptionStack(e);\n }\n }\n }",
"public void removeAllSessionPanels() {\n Thread removeAllSessionPanelsThread = new Thread ( new Runnable() {\n public void run() {\n while (sessionV.size() > 0)\n {\n removeSessionPanel((SessionDetailPanel) sessionV.get(0));\n }\n }\n });\n\n removeAllSessionPanelsThread.setDaemon(false);\n removeAllSessionPanelsThread.setName(\"removeAllSessionPanels\");\n removeAllSessionPanelsThread.start();\n }",
"private void removeProgressView() {\n if (progressView == null) return;\n\n removeView(progressView);\n TurbolinksLog.d(\"Progress view removed\");\n }",
"public void disconnectLiveCalls() {\n if (!this.mCallMapById.isEmpty()) {\n for (Integer num : this.mCallMapById.keySet()) {\n Call callById = getCallById(num);\n if (!(callById == null || callById.getState() == 10 || callById.getState() == 7)) {\n HiLog.info(LOG_LABEL, \"disconnectLiveCalls: %{public}s.\", new Object[]{callById.toString()});\n callById.disconnect();\n }\n }\n this.mCallMapById.clear();\n }\n }",
"@Override\n public void run() {\n try {\n remove_elements();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"public void clearFinishedTasks(){\n todayLayout.removeAllViewsInLayout();\n tomorrowLayout.removeAllViewsInLayout();\n weekLayout.removeAllViewsInLayout();\n laterLayout.removeAllViewsInLayout();\n expiredLayout.removeAllViewsInLayout();\n tasksNumber = 0;\n taskManager.updateTasksTimeTag();\n for (Task t : taskManager.getTasksList()){\n t.setIdInView(tasksNumber);\n updateTaskInDatabase(t);\n submit(t.getName(), tasksNumber, t.getTimeForTask(), t.isFinished());\n tasksNumber++;\n }\n }",
"public void destroy() {\n synchronized (monitor) {\n while (!queue.isEmpty()) {\n queue.poll().node.discard();\n }\n destroyed = true;\n }\n }",
"void removeFromView(View view) {\n Task task = getTask(view);\n if (task == this)\n setTask(view, null);\n mViews.remove(view);\n if (mViews.isEmpty()) {\n cancel();\n }\n }",
"@Override\n public void run() {\n linLayScreansNoInternetConnection.setVisibility(View.VISIBLE); // show inofrmation NO internet\n linLayScreansConnectingSignalR.setVisibility(View.VISIBLE); // show view SignalR connection ...\n linLayScreansConnectingMSSQL.setVisibility(View.VISIBLE); // show view MS SQL connection ...\n linearLayoutBottomButtons.setVisibility(View.GONE); // hide bottom buttons\n scroolViewScanner.setVisibility(View.GONE); // hide view scanner\n scroolViewDefect.setVisibility(View.GONE); // hide view deffect\n linLayOverView.setVisibility(View.GONE); // hide view Over View\n\n // stop signalR connection\n if (hubConnection != null) {\n hubConnection.stop();\n }\n\n // stop MS SQL connection - no need\n\n // stop service\n stopService(new Intent(ActivityScreans.this, ServiceNotifications.class));\n }",
"public void onTaskVanished() {\n this.mHandler.post(new Runnable() {\n /* class com.android.systemui.stackdivider.$$Lambda$Divider$JQC7s2DcACmP1thtllRZ30N2PIw */\n\n public final void run() {\n Divider.this.removeDivider();\n }\n });\n }",
"@FXML\n void removeFreeze() {\n generalTextArea.clear();\n clearEverything();\n enableRemove();\n }",
"void clearAndNotify();",
"void removeOfflineEndpointsCompleted();",
"private void m125722q() {\n if (this.f88309g != null) {\n this.f88309g.removeAllViews();\n }\n }",
"private void m125724s() {\n ProgressView progressView = this.f90233z;\n if (progressView != null) {\n progressView.mo81953b();\n if (this.f88308f != null) {\n this.f88308f.removeView(this.f90233z);\n }\n }\n }",
"@Override\n public void onDetach() {\n if (myTask != null && myTask.getStatus() == AsyncTask.Status.RUNNING) {\n myTask.cancel(true);\n }\n mRecyclerView.destroyDrawingCache();\n Log.d(\"Fragments\", \"QueueFragment has been closed. Canceling AsyncTask()\");\n updateQueueNavCount();\n myQueue.getInstance().saveMyQueue(this.getContext());\n super.onDetach();\n }",
"public void dispose() {\n parent.removeListener(listener);\n PlatformUI.getWorkbench().getDisplay().asyncExec(displayRunnable);\n }",
"private void remove_elements() throws InterruptedException {\n while (buffer.getNumElementsInBuffer() > 0 || !this.threadComplete) {\n if (hasServerRemovedAllElements()) {\n return;\n }\n if (buffer.attemptRemove(this)) {\n elementsRemoved++;\n }\n //Thread.sleep(1); // For testing buffer being frequently full\n }\n }",
"@Override\n protected void onCleared() {\n super.onCleared();\n presenter.clearView();\n }",
"@Override\n protected void onCleared() {\n super.onCleared();\n presenter.clearView();\n }",
"@Override\n protected void onDestroy() {\n messageAdapter = null;\n recyclerView.setAdapter(null);\n super.onDestroy();\n }",
"private void layoutDisappearingViews(RecyclerView.Recycler recycler, RecyclerView.State state){\r\n Iterator<Integer> iterator = disappearingViewCache.keySet().iterator();\r\n while(iterator.hasNext()){\r\n int position = iterator.next();\r\n View view = recycler.getViewForPosition(position);\r\n DisappearingViewParams params = disappearingViewCache.get(position);\r\n addDisappearingView(view, 0);\r\n view.measure(params.widthSpec, params.heightSpec);\r\n layoutDecorated(view, params.left, params.top, params.right, params.bottom);\r\n }\r\n }",
"private void stopPulling() {\n\n // un register this task\n eventDispatcher.unRegister(this);\n\n // tell the container to send response\n asyncContext.complete();\n\n // cancel data changed listening\n if (pullingTimeoutFuture != null){\n pullingTimeoutFuture.cancel(false);\n }\n }",
"private void onPeersCleared()\n {\n for (PeerListener listener : getListeners()) {\n listener.onPeersCleared();\n }\n }",
"public static void removeAllObservers() {\n compositeDisposable.clear();\n observersList.clear();\n Timber.i(\"This is the enter point: All live assets and team feed auto refresh DOs are removed\");\n }",
"@Override\n protected void onCleared() {\n }",
"synchronized void recycle() {\n if (lastAsyncStart == 0) {\n return;\n }\n // Ensure in case of error that any non-container threads that have been\n // paused are unpaused.\n notifyAll();\n asyncCtxt = null;\n state = AsyncState.DISPATCHED;\n lastAsyncStart = 0;\n }",
"public void deleteIObservers( )\n {\n observers.removeAllElements();\n }",
"protected void unhookViewers() {\n\t}",
"public void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n e eVar = this.aeA.aeR;\n if (eVar != null) {\n eVar.unregisterObserver(this.aeK);\n }\n ViewTreeObserver viewTreeObserver = getViewTreeObserver();\n if (viewTreeObserver.isAlive()) {\n viewTreeObserver.removeGlobalOnLayoutListener(this.aeL);\n }\n if (hs()) {\n hr();\n }\n this.pv = false;\n }",
"public void afterWaitForShutdown()\n {\n SwingUtilities.invokeLater(directConnectionsCheckboxUnselector);\n }",
"public void removeTasks() {\n\t\t\r\n\t}",
"@Override // com.android.server.wm.WindowContainer\n public boolean checkCompleteDeferredRemoval() {\n if (super.checkCompleteDeferredRemoval() || !this.mDeferredRemoval) {\n return true;\n }\n removeImmediately();\n return false;\n }",
"void unsubscribeAll();",
"@Override\n protected void onDetachedFromWindow()\n {\n super.onDetachedFromWindow();\n /* cleanup reference to prevent memory leak */\n eraserCanvas.setBitmap(null);\n eraserBitmap = null;\n\n if (animatorSetArrayList != null && !animatorSetArrayList.isEmpty()) {\n for (int i = 0; i < animatorSetArrayList.size(); i++) {\n animatorSetArrayList.get(i).end();\n animatorSetArrayList.get(i).removeAllListeners();\n }\n }\n }",
"@Override public void onDestroyView() {\n super.onDestroyView();\n unbinder.unbind();\n }",
"public static void closeViews() {\n\t\tlogger.info(\"Close view\");\n\t\tIWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();\n\t\tif (page != null) {\n\t\t\tIViewReference[] viewReferences = page.getViewReferences();\n\t\t\tfor (IViewReference ivr : viewReferences) {\n\t\t\t\tif (ivr.getId().startsWith(\"br.usp.each.saeg.baduino\")) {\n\t\t\t\t\tpage.hideView(ivr);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"void detach (ObservateurGenerateurAsync observateur);",
"@Override\n\tpublic void onDestroy() {\n\t\tthis.async.cancel(true);\n\t\tthis.timer.removeCallbacks(this.refresh);\n\t\tsuper.onDestroy();\n\n\t}",
"public void removeAllAshPanels() {\n Thread removeAllASHPanelsThread = new Thread ( new Runnable() {\n public void run() {\n while (sessionV.size() > 0)\n {\n removeAshPanel((SessionASHPanel) ashV.get(0));\n numSessionPanelsRemoved++;\n }\n }\n });\n\n removeAllASHPanelsThread.setDaemon(false);\n removeAllASHPanelsThread.setName(\"removeAllASHPanels\");\n removeAllASHPanelsThread.start();\n }",
"@Override\n public void bailOut() {\n debug.println(\"bailOut: called\");\n\n UpdateThread upt = getUpdateThread();\n if (upt != null) upt.endLoop();\n\n // When we are stealing a previous RtDisplay's connection, we don't\n // want to shut it down. The makeRtDisplay() \"steal\" version handles\n // setting this to null.\n if (ss != null)\n ss.close();\n\n timeThread.kill();\n if (audioThread != null)\n audioThread.kill();\n\n setVisible(false);\n\n // inform all the children window that the parent has died (plots/lists)\n for (RtStatusListener i : watchers) {\n i.sourceDied();\n }\n\n // kill the parent frame\n if (parentFrame != null)\n parentFrame.dispose();\n\n // notify the RTDManager that we're dead\n manager.removeDisplay(this);\n }",
"@Override\n\tpublic void hide() {\n\t\thits.remove();\n\t\ttimeLeft.remove();\n\t\tdarken.remove();\n\t\tcontainer.remove();\n\t\ttimer = null;\n\t\ttrainingBag = null;\n\t}",
"public static void clean() {\n keptObservers.put(new Object(), new ArrayList<Runnable>());\n }",
"public void timeout(){\n\t\tDate now = new Date();\n\t\tfor (Broadcast b : this.broadcasts){\n\t\t\tif (b.getTimeout().getTime() < now.getTime()){\n\t\t\t\tthis.remove(b);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void removeNotify()\n {\n unregisterListeners();\n super.removeNotify();\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n recyclerAdapter = null;\n recyclerView = null;\n }",
"@Override\n public void run() {\n snackbar.setVisibility(View.GONE); //This will remove the View. and free s the space occupied by the View\n }",
"protected void processDisconnection(){}",
"protected void detachListeners() {\n\t\t\n\t}",
"void connectionLost() {\n LinearLayout internetStatusContainer = findViewById(R.id.internet_status_container);\n internetStatusContainer.setVisibility(View.VISIBLE);\n }",
"public void cleanup() {\n mParentLayout.removeView(mContainer);\n mControlsVisible.clear();\n }",
"void onRunawayReactionsDetected()\n {\n final List<String> observerNames =\n Arez.shouldCheckInvariants() && BrainCheckConfig.verboseErrorMessages() ?\n _pendingObservers.stream().map( Node::getName ).collect( Collectors.toList() ) :\n null;\n\n if ( ArezConfig.purgeReactionsWhenRunawayDetected() )\n {\n _pendingObservers.clear();\n }\n\n if ( Arez.shouldCheckInvariants() )\n {\n fail( () -> \"Arez-0101: Runaway reaction(s) detected. Observers still running after \" + _maxReactionRounds +\n \" rounds. Current observers include: \" + observerNames );\n }\n }",
"private void maintain() {\n SoftObject obj;\n int count = 0;\n\n while ((obj = (SoftObject)queue.poll()) != null) {\n count++;\n collection.remove(obj);\n }\n\n if (count != 0) {\n // some temporary debugging fluff\n System.err.println(\"vm reclaimed \" + count + \" objects\");\n }\n }",
"private void clearTasks(){\n ArrayList<Item> iteratorList = new ArrayList<Item>(items);\n Iterator<Item> it = iteratorList.iterator();\n while(it.hasNext()){\n Item i = it.next();\n if (!i.isCategory()){\n Task t = (Task) i;\n if(t.finished){\n \tDirectIO.RemoveItem(t);\n adapter.remove(i);\n }\n }\n }\n }",
"public void finalizeViewer()\n {\n viewer.stopViewer();\n\n // check whether star tasks still is running ! \n if (startTask.isAlive() == true)\n startTask.interruptAll(); // send interrupt signal\n \n // Wait 1s. \n try\n {\n Thread.sleep(1000);\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n }\n \n viewer.disposeViewer();\n \n // check parent frame:\n if (viewer.getViewContext().getStartInStandaloneWindow()==true)\n {\n Frame frame=getViewerFrame(viewer); \n \n if (frame != null)\n {\n frame.dispose();\n }\n }\n }",
"private void uponInConnectionDown(InConnectionDown event, int channelId) {\n Node dead = controlView.removeHost(event.getNode());\n if(dead != null && activeView.removeNode(dead)) {\n repair(dead);\n }\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (OnlineObjectsContainer.this.onlineObjects) {\n\t\t\t\t\tIterator<OnlineObject> iterator = OnlineObjectsContainer.this.recentlyAddedObjects.iterator();\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tfinal OnlineObject anObject = iterator.next();\n\t\t\t\t\t\tif (anObject.getSeenAt().getTime() + OnlineObjectsContainer.RECENT_TIMEOUT < System.currentTimeMillis()) {\n\t\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\titerator = OnlineObjectsContainer.this.recentlyRemovedObjects.iterator();\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tfinal OnlineObject anObject = iterator.next();\n\t\t\t\t\t\tif (anObject.getSeenAt().getTime() + OnlineObjectsContainer.RECENT_TIMEOUT < System.currentTimeMillis()) {\n\t\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"protected void delete () {\n OleThreadRequest request = \n new OleThreadRequest(DELETE,\n 0, 0, 0, 0);\n synchronized (this) {\n messagesWaiting.add(request);\n notify();\n }\n while (!request.finished) { \n synchronized(request) {\n try {\n request.wait(POLL_FOR_RESULT_HEARTBEAT);\n }\n catch (InterruptedException e) { \n }\n } \n }\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n // 页面销毁Grdivew里边的数据\n adapter.notifyDataSetChanged();\n Bimp.tempSelectBitmap.clear();\n Bimp.max = 0;\n }",
"public void clearInvisible() {\n\n Collection<NotificationPopup> syncList = Collections.synchronizedCollection(this);\n \n synchronized(syncList) {\n Collection del = new LinkedList();\n for (NotificationPopup n : syncList) {\n if (n.isVisible() == false) {\n del.add(n);\n }\n }\n\n syncList.removeAll(del);\n }\n\n }",
"private void timerFired() {\n\t\t\n\t\tArrayList<CedView> tempList = _pendingRefresh;\n\t\t_pendingRefresh = new ArrayList<>();\n\t\t\n\t\tfor (CedView view : tempList) {\n\t\t\tview.refresh();\n\t\t}\n\t\ttempList = null;\n\t}",
"public void disconnectedFromHost();",
"protected void clearOutEvents() {\n\t}",
"protected void clearOutEvents() {\n\t}",
"public void onDestroy() {\n cancelPausedTimer();\n k.a().b();\n stopSocket();\n clearAllMapData();\n if (this.pushManager != null) {\n this.pushManager.i();\n this.pushManager = null;\n }\n if (this.liveAnimationView != null) {\n this.liveAnimationView.onDestroy();\n }\n if (this.mLivePusherInfoView != null) {\n this.mLivePusherInfoView.onDestroy();\n }\n if (this.countDownAnimSet != null) {\n this.countDownAnimSet.cancel();\n }\n if (this.mainHandler != null) {\n this.mainHandler.removeCallbacksAndMessages(null);\n this.mainHandler = null;\n }\n if (this.workHandler != null) {\n this.workHandler.removeCallbacksAndMessages(null);\n this.workHandler = null;\n }\n if (this.mGiftBoxView != null) {\n this.mGiftBoxView.release();\n }\n if (this.mInputTextMsgDialog != null) {\n this.mInputTextMsgDialog.onDestroy();\n this.mInputTextMsgDialog = null;\n }\n super.onDestroy();\n }",
"private void removeScreenshotView() {\n if (screenshotView == null) return;\n\n removeView(screenshotView);\n screenshotView = null;\n TurbolinksLog.d(\"Screenshot removed\");\n }",
"@Override\n public void onDestroyView() {\n super.onDestroyView();\n mUnbinder.unbind();\n }",
"@FXML\r\n\tprivate void deconnecter()\r\n\t{\r\n\t\tchatModel.getConnectionEstablishedProperty().set(false);\r\n\t\tclient.closeClientSocket();\r\n\t\tPlatform.runLater(() -> ChatModel.getInstance().getStatusMessagesList()\r\n\t\t\t\t.add(\"Chat ended: you disconnected.\"));\r\n\t}",
"public void onStop() {\n this.mIsShowing.set(false);\n RefreshTask refreshTask = this.mRefreshTask;\n if (refreshTask != null) {\n refreshTask.cancel(true);\n this.mRefreshTask = null;\n }\n NetworkDiagnosticsActivity.super.onStop();\n }",
"protected void removeListeners() {\n Window topLevelWindows[] = EventQueueMonitor.getTopLevelWindows();\n if (topLevelWindows != null) {\n for (int i = 0; i < topLevelWindows.length; i++) {\n if (topLevelWindows[i] instanceof Accessible) {\n removeListeners((Accessible) topLevelWindows[i]);\n }\n }\n }\n }",
"public void clearReceivedEvents() {\n this.receivedEvents.clear();\n }",
"private void recycleOffscreenViews() {\n final int oldChildCount = getChildCount();\n final int height = getHeight();\n final int clearAbove = -height - mItemMargin; // XXX increased clearAbove and clearBelow values\n final int clearBelow = height * 2 + mItemMargin; // to reduce recycling.\n for (int i = getChildCount() - 1; i >= 0; i--) {\n final View child = getChildAt(i);\n if (child.getTop() <= clearBelow) {\n // There may be other offscreen views, but we need to maintain\n // the invariant documented above.\n break;\n }\n\n if (mInLayout) {\n removeViewsInLayout(i, 1);\n } else {\n removeViewAt(i);\n }\n\n mRecycler.addScrap(child);\n }\n\n while (getChildCount() > 0) {\n final View child = getChildAt(0);\n if (child.getBottom() >= clearAbove) {\n // There may be other offscreen views, but we need to maintain\n // the invariant documented above.\n break;\n }\n\n if (mInLayout) {\n removeViewsInLayout(0, 1);\n } else {\n removeViewAt(0);\n }\n\n mRecycler.addScrap(child);\n mFirstPosition++;\n }\n\n final int childCount = getChildCount();\n if (childCount > 0 && childCount != oldChildCount) {\n // Repair the top and bottom column boundaries from the views we still have\n Arrays.fill(mItemTops, Integer.MAX_VALUE);\n Arrays.fill(mItemBottoms, Integer.MIN_VALUE);\n\n for (int i = 0; i < childCount; i++) {\n final View child = getChildAt(i);\n final LayoutParams lp = (LayoutParams) child.getLayoutParams();\n final int top = child.getTop() - mItemMargin;\n final int bottom = child.getBottom();\n final int span = Math.min(mColCount, lp.span);\n final LayoutRecord rec = mLayoutRecords.get(mFirstPosition + i);\n\n final int colEnd = lp.column + span;\n for (int col = lp.column; col < colEnd; col++) {\n final int colTop = top - rec.getMarginAbove(col - lp.column);\n final int colBottom = bottom + rec.getMarginBelow(col - lp.column);\n if (colTop < mItemTops[col]) {\n mItemTops[col] = colTop;\n }\n if (colBottom > mItemBottoms[col]) {\n mItemBottoms[col] = colBottom;\n }\n }\n }\n\n for (int col = 0; col < mColCount; col++) {\n if (mItemTops[col] == Integer.MAX_VALUE) {\n // If one was untouched, both were.\n mItemTops[col] = 0;\n mItemBottoms[col] = 0;\n }\n }\n }\n }",
"public void disconnect() {\n watchDog.terminate();\n synchronized (sync) {\n if (!connections.isEmpty()) {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n try {\n tconn.conn.rollback();\n tconn.conn.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n this.setChanged();\n this.notifyObservers(\"disconnect\");\n }",
"public synchronized void deleteBaseObservers() {\n obs.removeAllElements();\n }",
"@Override\r\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\r\n\t\tstartAsync = false;\r\n\t}",
"public void clearConsumerDestinations() {\n this.consumerDestinations_ = emptyProtobufList();\n }",
"void connectionFound() {\n LinearLayout internetStatusContainer = findViewById(R.id.internet_status_container);\n internetStatusContainer.setVisibility(View.GONE);\n }",
"public void onDestroy() {\n if (view != null) {\n view.clear();\n view = null;\n }\n }",
"private void showDisconnectedView() {\n\t\tempty_icon.setBackgroundResource(R.drawable.ic_disconnected);\n\t\tempty_label.setText(R.string.search_disconnected_msg);\n\t\tempty_layout.setVisibility(View.VISIBLE);\n\t\tlst_friend.setAdapter(null);\n\t}",
"public void removeAll() {\n\t\tmListenerSet.clear();\n\t}",
"public void dispose() {\r\n\t\tif (view != null)\r\n\t\t\tview.stopThread = true;\r\n\t\tview = null;\r\n\t\tcontroller = null;\r\n\t\tsuper.dispose();\r\n\t}",
"public static void clearViewPort() {\n\t\tSensor.disposeAllSensors();\n\t\tGUIReferences.setConstructEnabled(true);\n\t\tTurnController.clearAll();\n\t\tGUIReferences.updateStatusBar();\n\t}",
"@Override\r\n\tprotected void detachListeners() {\n\t\t\r\n\t}"
]
| [
"0.5893624",
"0.588447",
"0.57860947",
"0.57837737",
"0.57286316",
"0.5714751",
"0.5620877",
"0.56176686",
"0.55838233",
"0.5562629",
"0.5540261",
"0.5455444",
"0.5453418",
"0.5452869",
"0.54526234",
"0.5449447",
"0.5447492",
"0.54352534",
"0.54292834",
"0.5423298",
"0.5419647",
"0.5416595",
"0.54160494",
"0.54044646",
"0.540117",
"0.5374562",
"0.53734434",
"0.5363046",
"0.5357495",
"0.5353459",
"0.53355616",
"0.53323776",
"0.5327825",
"0.5327511",
"0.53251505",
"0.530917",
"0.530917",
"0.5262362",
"0.5256385",
"0.52503365",
"0.5249482",
"0.5244352",
"0.5241522",
"0.5239742",
"0.5236151",
"0.5228",
"0.52256423",
"0.5218834",
"0.5213119",
"0.52096283",
"0.52047974",
"0.5201594",
"0.51886684",
"0.51853985",
"0.5168617",
"0.5167142",
"0.5165313",
"0.51651055",
"0.5162559",
"0.516062",
"0.51572335",
"0.51431906",
"0.5143165",
"0.51427615",
"0.5141278",
"0.51390535",
"0.5131347",
"0.51301086",
"0.51290077",
"0.51275146",
"0.5124916",
"0.51231945",
"0.51229095",
"0.51131463",
"0.51076174",
"0.5101033",
"0.5098967",
"0.50946254",
"0.50940317",
"0.5093541",
"0.5093541",
"0.5088974",
"0.50889546",
"0.5088534",
"0.508594",
"0.5080523",
"0.50793284",
"0.5070201",
"0.50691456",
"0.5065662",
"0.50653136",
"0.5064246",
"0.506097",
"0.50585943",
"0.505203",
"0.50513214",
"0.5051097",
"0.5050724",
"0.5048137",
"0.5047412"
]
| 0.7508491 | 0 |
Return a connected with if there is any, otherwise an empty optional | public Optional<View> pop() {
synchronized (connectedViews) {
if (connectedViews.isEmpty()) {
return Optional.empty();
} else {
return Optional.of(connectedViews.remove());
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Optional optionalToOptional(ElementOptional optional) throws SemQAException {\n\t\tElement elm = optional.getOptionalElement();\r\n\t\tGraphPattern gp;\r\n\t\tValueConstraint vc;\r\n\t\tif (elm instanceof ElementGroup) {\r\n\t\t\tList<Element> children = ((ElementGroup) elm).getElements();\r\n\t\t\tSet<GraphPattern> childSemQA = new LinkedHashSet<GraphPattern>();\r\n\t\t\tSet<Optional> optionals = new LinkedHashSet<Optional>();\r\n\t\t\tSet<ElementFilter> filters = new LinkedHashSet<ElementFilter>();\r\n\t\t\tfor (Element child : children) {\r\n\t\t\t\tif (child instanceof ElementFilter) {\r\n\t\t\t\t\tfilters.add((ElementFilter) child);\r\n\t\t\t\t}\r\n\t\t\t\telse if (child instanceof ElementOptional) {\r\n\t\t\t\t\t// if child is an optional, need to get the graph pattern for the optional\r\n\t\t\t\t\t// and add it to the list of optional graph patterns\r\n\t\t\t\t\toptionals.add(optionalToOptional((ElementOptional) child));\r\n//\t\t\t\t\tchildSemQA.add(optionalToOptional((ElementOptional) child));\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tchildSemQA.add(sparqlToSemQA(child));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tGraphPattern baseGp = convertSetToJoin(childSemQA);\r\n\t\t\tif (childSemQA.size() == 0) {\r\n\t\t\t\tthrow new SemQAException(\"semQA: OPTIONAL without non-optional side not supported.\");\r\n\t\t\t}\r\n\t\t\tif (optionals.size() > 0) {\r\n\t\t\t\t// if there are optional elements, create a left join\r\n\t\t\t\t// convert the non-filter non-optional graph patterns to a Join if necessary\r\n\t\t\t\t// then, each optional element is part of a left join\r\n\t\t\t\tgp = new LeftJoin(baseGp, optionals);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// no optionals, just return the join of the graph patterns\r\n\t\t\t\tgp = baseGp;\r\n\t\t\t}\r\n\t\t\tif (filters.size() > 0) {\r\n\t\t\t\tvc = getConstraintFromFilters(filters);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvc = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgp = sparqlToSemQA(elm); // if it is not a group\r\n\t\t\tvc = null;\r\n\t\t}\r\n\t\treturn new Optional(gp, vc);\r\n\t\t\r\n\t}",
"Optional<List<ConnectionResponse>> retrieveConnections();",
"public PhoneWifiInfo getConnectedWifi() {\n\t\tWifiInfo wifiInfo = wifiManager.getConnectionInfo();\n\t\tList<WifiConfiguration> configurations = wifiManager\n\t\t\t\t.getConfiguredNetworks();\n\t\tif (wifiInfo == null || configurations == null) {\n\t\t\treturn null;\n\t\t}\n\t\tWifiConfiguration matched = null;\n\t\tfor (WifiConfiguration item : configurations) {\n\t\t\tif (item.SSID.equals(wifiInfo.getSSID())) {\n\t\t\t\tmatched = item;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (matched == null) {\n\t\t\treturn null;\n\t\t}\n\t\treturn new WifiInfoWrapper(wifiInfo, matched);\n\t}",
"public Boolean getConnected() { return this.connected; }",
"public IAtomContainer getConnectedAtomContainer() {\n \n IAtomContainer ac = new AtomContainer();\n if (atoms.size() != 0) {\n ac = atoms.get(0).getBuilder().newInstance(IAtomContainer.class);\n for (IAtom atom : atoms) {\n ac.addAtom(atom);\n }\n }\n \n for (IBond bond : bonds) {\n ac.addBond(bond);\n }\n \n return ac;\n }",
"public RoadInterface getConnectedRoad (Direction dir) {\n if (dirOne == dir) {\n return (interOne);\n } else if (dirTwo == dir) {\n return (interTwo);\n } else {\n return (null);\n }\n }",
"protected abstract Optional<T> getSingleSelection();",
"boolean isConnected() {\n \t\tif (fConnected == null)\n \t\t\treturn false;\n \t\treturn !fConnected.isEmpty();\n \t}",
"@Test\n public void getGraphNull() throws Exception {\n try (final Graph defaultGraph = dataset.getGraph(null).get()) {\n // TODO: Can we assume the default graph was empty before our new triples?\n assertEquals(2, defaultGraph.size());\n assertTrue(defaultGraph.contains(alice, isPrimaryTopicOf, graph1));\n // NOTE: wildcard as graph2 is a (potentially mapped) BlankNode\n assertTrue(defaultGraph.contains(bob, isPrimaryTopicOf, null));\n }\n }",
"Exp join() {\n List<Node> connectedNode = null;\n Exp connectedExp = Exp.create(AND);\n List<Exp> disconnectedExp = new ArrayList<Exp>();\n boolean disconnectedFilter = false;\n\n for (int i = 0; i < size(); i++) {\n Exp e = get(i);\n\n switch (e.type()) {\n\n case FILTER:\n Filter f = e.getFilter();\n List<String> lvar = f.getVariables();\n\n if (connectedNode == null || isBound(lvar, connectedNode)) {\n // filter is first \n // or filter is bound by current exp : add it to exp\n connectedExp.add(e);\n } else {\n // filter not bound by current exp\n if (!disconnectedFilter) {\n add(disconnectedExp, connectedExp);\n disconnectedFilter = true;\n }\n add(disconnectedExp, e);\n }\n continue;\n\n case OPTION:\n if (connectedNode == null) {\n connectedNode = e.getAllNodes();\n } else {\n connectedNode.addAll(e.getAllNodes());\n }\n\n break;\n\n default:\n // TODO: UNION \n List<Node> nodes = null;\n if (type() == MINUS || type() == OPTIONAL) {\n nodes = e.first().getAllNodes();\n } else {\n nodes = e.getAllNodes();\n }\n\n if (disconnectedFilter) {\n if (!groupEdge) {\n connectedExp = Exp.create(AND);\n connectedNode = null;\n }\n disconnectedFilter = false;\n }\n\n if (connectedNode == null) {\n connectedNode = nodes;\n } else if (intersect(nodes, connectedNode)) {\n connectedNode.addAll(nodes);\n } else {\n add(disconnectedExp, connectedExp);\n connectedExp = Exp.create(AND);\n connectedNode = nodes;\n }\n }\n\n connectedExp.add(e);\n }\n\n if (connectedExp.size() > 0) {\n add(disconnectedExp, connectedExp);\n }\n\n if (disconnectedExp.size() <= 1) {\n return this;\n } else {\n Exp res = join(disconnectedExp);\n //System.out.println(\"E: \" + res);\n return res;\n }\n }",
"@Override\r\n\tpublic UserDto findCouple(UserDto user) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic boolean isConnected() {\n\t\tif(dwg.getV().size()==0) return true;\n\n\t\tIterator<node_data> temp = dwg.getV().iterator();\n\t\twhile(temp.hasNext()) {\n\t\t\tfor(node_data w : dwg.getV()) {\n\t\t\t\tw.setTag(0);\n\t\t\t}\n\t\t\tnode_data n = temp.next();\n\t\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\t\tn.setTag(1);\n\t\t\tq.add(n);\n\t\t\twhile(!q.isEmpty()) {\n\t\t\t\tnode_data v = q.poll();\n\t\t\t\tCollection<edge_data> arrE = dwg.getE(v.getKey());\n\t\t\t\tfor(edge_data e : arrE) {\n\t\t\t\t\tint keyU = e.getDest();\n\t\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\t\tif(u.getTag() == 0) {\n\t\t\t\t\t\tu.setTag(1);\n\t\t\t\t\t\tq.add(u);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tv.setTag(2);\n\t\t\t}\n\t\t\tCollection<node_data> col = dwg.getV();\n\t\t\tfor(node_data n1 : col) {\n\t\t\t\tif(n1.getTag() != 2) {\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}",
"default Optional<V> toOptional() {\n V item = orElseNull();\n return item == null ? Optional.empty() : Optional.of( item );\n }",
"public Pair getFirstExistingChapterAndIsLast() {\n if (chapters == null) {\n return null;\n }\n int size = chapters.size();\n if (size == 0) {\n return null;\n }\n MangaChapter chapter = chapters.get(0);\n Pair pair = Pair.obtain();\n pair.first = chapter;\n pair.second = 0 == (size - 1);\n return pair;\n }",
"public List<Node> getFirstChoices() {\n Set<Node> firstChoices = new HashSet<Node>();\n // find non-redundant connectors of matching needs or capabilities.\n for ( Connector connector : findRelatedLocalConnectors() ) {\n if ( !isRedundant( connector ) )\n firstChoices.add( connector );\n }\n // Find related external connectors\n for ( Connector connector : findRelatedExternalConnectors() ) {\n if ( !isRedundant( connector ) )\n firstChoices.add( connector );\n }\n // Find all parts involved in related sharing but without related need or capability\n for ( Part part : findRelatedParts() ) {\n if ( !isRedundant( part ) )\n firstChoices.add( part );\n }\n return new ArrayList<Node>( firstChoices );\n }",
"public Optional<ImageLayer> getActiveImageLayerOpt() {\n if (activeLayer instanceof ImageLayer) {\n ImageLayer imageLayer = (ImageLayer) activeLayer;\n return Optional.of(imageLayer);\n }\n return Optional.empty();\n }",
"Optional<ConnectionResponse> fetchById(String id);",
"public Optional<List<SalesOrderHeaderPartner>> getPartnerOrNull() {\r\n return Optional.fromNullable(toPartner);\r\n }",
"boolean isFirstJoinKit();",
"public DCEL_Edge getConnectingEdge(Cell c) {\n\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tIterator<DCEL_Edge> it = (Iterator<DCEL_Edge>) face.edges().iterator();\n\n\t\twhile (it.hasNext()) {\n\n\t\t\tDCEL_Edge e = it.next();\n\n\t\t\tif ((e.getLeftFace().equals(this.face) && e.getRightFace().equals(\n\t\t\t\t\tc.face))\n\t\t\t\t\t|| (e.getLeftFace().equals(c.face) && e.getRightFace()\n\t\t\t\t\t\t\t.equals(this.face))) {\n\n\t\t\t\treturn e;\n\t\t\t}\n\n\t\t}\n\n\t\tSystem.err\n\t\t\t\t.println(\"Edge Not Found-Error: This should not have happened\");\n\t\treturn null;\n\t}",
"TypeAssociationEXT getConcerneUniteUnite();",
"java.util.Optional<Boolean> getSeparate();",
"public KDNode CompNode() {\n\t\t\n\t\tKDNode ptr = this;\n\t\twhile(ptr.parent_ptr != null) {\n\t\t\t\n\t\t\tif(ptr.is_node_set == true) {\n\t\t\t\treturn ptr;\n\t\t\t}\n\t\t\t\n\t\t\tptr = ptr.parent_ptr;\n\t\t}\n\t\t\n\t\treturn ptr;\n\t}",
"public M csmiRelationNull(){if(this.get(\"csmiRelationNot\")==null)this.put(\"csmiRelationNot\", \"\");this.put(\"csmiRelation\", null);return this;}",
"public boolean isConnected() {\n\t\tif (m == null) return false;\n\t\telse return true;\n\t}",
"public Optional<ManagedObject> getMixedIn() {\n return Objects.equals(getOwner(), getTarget()) \n ? Optional.empty()\n : Optional.of(getOwner());\n }",
"public List<String> oneConnectionIdMustBePresent() {\n return this.oneConnectionIdMustBePresent;\n }",
"public Optional<E> one() {\n return Optional.ofNullable(queryOne());\n }",
"@Override\n public boolean isConnected() {\n for (node_data n : G.getV()) {\n bfs(n.getKey());\n for (node_data node : G.getV()) {\n if (node.getTag() == 0)\n return false;\n }\n }\n return true;\n }",
"boolean getRecursiveNull();",
"public NetworkInfo getActiveNetworkInfo() {\n\treturn null;\r\n}",
"@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public Boolean connected() {\n return this.connected;\n }",
"public String getComposite() {\n\t\treturn _composite == Utils.LIST ? \"list\":\n\t\t\t_composite == Utils.MAP ? \"map\": \"none\";\n\t}",
"public String getComposite() {\n\t\treturn _composite == Utils.LIST ? \"list\":\n\t\t\t_composite == Utils.MAP ? \"map\": \"none\";\n\t}",
"@Override\n public Object getReferenced(Optional<?> reference) {\n return reference.orElse(null);\n }",
"private EntityCocoon getConsumableCocoon()\n\t{\n\t\tfinal List<Entity> nearbyCocoons = RadixLogic.getAllEntitiesOfTypeWithinDistance(EntityCocoon.class, this, 5);\n\t\tEntityCocoon nearestCocoon = null;\n\t\tdouble lowestDistance = 100D;\n\n\t\tfor (final Entity entity : nearbyCocoons)\n\t\t{\n\t\t\tEntityCocoon cocoon = (EntityCocoon)entity;\n\t\t\tfinal double distanceToCurrentEntity = RadixMath.getDistanceToEntity(this, cocoon);\n\n\t\t\tif (!cocoon.isEaten() && distanceToCurrentEntity < lowestDistance)\n\t\t\t{\n\t\t\t\tlowestDistance = distanceToCurrentEntity;\n\t\t\t\tnearestCocoon = cocoon;\n\t\t\t}\n\t\t}\n\n\t\treturn nearestCocoon;\n\t}",
"public ConnectionConfiguration getResource(ConnectionConfiguration inbound){\n\t\t //If Already contains the connection-pair:\n\t\tfor( ConnectionConfiguration configuration : connections.keySet()){\n\t\t\tif(configuration.getHost().equals(inbound.getHost())) return connections.get(configuration);\n\t\t}\n\t\t//else:\n\t\tConnectionConfiguration config = getResource();\n\t\tconnections.put(inbound, config);\n\t\treturn config;\n\t}",
"public ConsolidatedPresence getConsolidatedPresence();",
"public Optional<Identification> getIdentificationFor(X x) {\n Identification identification = map.get(x);\n if (identification == null || identification.equals(placeholder)) {\n return Optional.empty();\n } else {\n return Optional.of(identification);\n }\n }",
"private boolean isEmpty() {return first == null;}",
"private static String oneOneRefTo(Branch charClassOr) {\n\t\tif (charClassOr.childs.size()!=1) return null;\n\t\tBranch charClassAnd = (Branch) charClassOr.childs.get(0);\n\t\tif (charClassAnd.childs.size()!=1) return null;\n\t\tBranch charClassNot = (Branch) charClassAnd.childs.get(0);\n\t\tif (charClassNot.childs.size()!=1) return null;\n\t\tif (charClassNot.childs.get(0).name.equals(\"charClassName\")) {\n\t\t\treturn charClassNot.childs.get(0).stringValue();\n\t\t}\n\t\treturn null;\n\t}",
"public THING orElseNull() {\n return directlyGetOrElse(null);\n }",
"@Override\n public Set<Edge<PhysicalObject>> getRelationBetweenObjects() {\n assert false : \"shouldn't call this method\";\n return null;\n }",
"public M csolSrcNull(){if(this.get(\"csolSrcNot\")==null)this.put(\"csolSrcNot\", \"\");this.put(\"csolSrc\", null);return this;}",
"Map<String, Collection<String>> getConnectedEntities();",
"private Redis getRandomConnection(Set<SocketAddress> exclude) {\n List<Redis> available = connections.entrySet().stream()\n .filter(kv -> !exclude.contains(kv.getKey()) && kv.getValue() != null)\n .map(Map.Entry::getValue)\n .collect(Collectors.toList());\n\n if (available.size() == 0) {\n // signal no client\n return null;\n }\n\n return available.get(RANDOM.nextInt(available.size()));\n }",
"public Optional<List<T>> returnPeople(){\n return Optional.of(people);\n }",
"@Override\n public Connection getConnection() {\n boolean createNewConnection = false;\n Connection returnConnection = null;\n synchronized (connections) { //Lock the arraylist\n if (connections.isEmpty()) { //Check if any connections available\n createNewConnection = true; //If not, create new one\n } else {\n returnConnection = connections.get(0); //Get first available one\n connections.remove(0); //And remove from list\n }\n }\n if (createNewConnection) { //If new connection needed\n returnConnection = createConnection();\n }\n return returnConnection;\n }",
"@Test\n public void streamDefaultGraphNameByPattern() throws Exception {\n final Optional<? extends Quad> aliceTopic = dataset.stream(Optional.empty(), null, null, null).findAny();\n assertTrue(aliceTopic.isPresent());\n // COMMONSRDF-55: should not be <urn:x-arq:defaultgraph> or similar\n assertNull(aliceTopic.get().getGraphName().orElse(null));\n assertFalse(aliceTopic.get().getGraphName().isPresent());\n }",
"@Override\n public boolean isConnected()\n {\n return connected;\n }",
"Object getConref();",
"@Override\n public boolean isConnected() {\n return connected;\n }",
"GraphNode firstEndpoint() \n\t{\n\t\treturn this.firstEndpoint;\n\t\t\n\t}",
"Optional<String> getOwner();",
"public Element lookupSourceOrOutput()\n {\n for (Element e: Element.values())\n if (e.sourceOf == this || this.sourceOf == e)\n return e;\n\n return null;\n }",
"public static Map<String, List<StationMap>> buildConnections() {\n\t\tif (connectionsCache.size() > 0)\n\t\t\treturn connectionsCache;\n\t\ttry {\n\t\t\tList<StationMap> stationMaps = buildStationMap();\n\t\t\tMap<String, List<StationMap>> connections = new HashMap<>();\n\t\t\tfor (int i = 0; i < stationMaps.size(); i++) {\n\t\t\t\tfor (int j = 0; j < stationMaps.size(); j++) {\n\t\t\t\t\tif (i != j && stationMaps.get(i).getStationName()\n\t\t\t\t\t\t\t.equalsIgnoreCase(stationMaps.get(j).getStationName())) {\n\t\t\t\t\t\tif (connections.containsKey(stationMaps.get(i).getStationName())) {\n\t\t\t\t\t\t\tList<StationMap> list = connections.get(stationMaps.get(i).getStationName());\n\t\t\t\t\t\t\tlist.add(stationMaps.get(j));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tList<StationMap> list = new ArrayList<>();\n\t\t\t\t\t\t\tlist.add(stationMaps.get(i));\n\t\t\t\t\t\t\tlist.add(stationMaps.get(j));\n\t\t\t\t\t\t\tconnections.put(stationMaps.get(i).getStationName(), list);\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\tconnectionsCache = connections;\n\t\t} catch (UrbanRailNetworkException e) {\n\t\t}\n\t\treturn connectionsCache;\n\t}",
"public GraphNode firstEndpoint(){\r\n return first;\r\n }",
"private Relationship findStatedRelationship(\n\t\t\tRelationship exampleRel, Concept c,\n\t\t\tActiveState active) {\n\t\tfor (Relationship r : c.getRelationships(CharacteristicType.STATED_RELATIONSHIP, exampleRel.getType(), active)) {\n\t\t\tif (r.getTarget().equals(exampleRel.getTarget())) {\n\t\t\t\treturn r;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public IntegrityConnection getDefaultConnection() throws IntegrityExceptionEx\n {\n try \n {\n Command cmd = new Command(Command.IM, \"servers\");\n Response resp = _cmdRunner.execute(cmd);\n if (resp.getWorkItemListSize() > 0) // Connected to something.\n {\n WorkItemIterator wkit = resp.getWorkItems();\n boolean found = false;\n while (wkit.hasNext() && !found)\n {\n WorkItem wk = wkit.next();\n if (wk.getField(\"default\").getBoolean().booleanValue())\n {\n String h = wk.getField(\"hostname\").getString();\n int p = wk.getField(\"portnumber\").getInteger().intValue();\n String u = wk.getField(\"username\").getString();\n _log.message(\"Found default connection \" + u + \"@\" + h + \":\" + p);\n return new IntegrityConnection(h, p, u);\n }\n }\n }\n return null;\n } catch (APIException ex) \n {\n throw IntegrityExceptionEx.create(\"Could not get the default api connection\", ex);\n }\n }",
"public boolean IsConnected() {\r\n\t\tHashMap<String, Boolean> processed = new HashMap<>();\r\n\t\tLinkedList<Pair> queue = new LinkedList<>();\r\n\t\tint counter = 0;\r\n\r\n\t\tArrayList<String> vnames = new ArrayList<>(vces.keySet());\r\n\t\tfor (String vname : vnames) {\r\n\t\t\tif (processed.containsKey(vname)) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\tcounter++;\r\n\t\t\tPair rootpair = new Pair(vname, vname);\r\n\t\t\tqueue.addLast(rootpair);\r\n\t\t\twhile (queue.size() != 0) {\r\n\t\t\t\t// 1. removeFirst\r\n\t\t\t\tPair rp = queue.removeFirst();\r\n\r\n\t\t\t\t// 2. check if processed, mark if not\r\n\t\t\t\tif (processed.containsKey(rp.vname)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tprocessed.put(rp.vname, true);\r\n\r\n\t\t\t\t// 3. Check, if an edge is found\r\n\t\t\t\tSystem.out.println(rp.vname + \" via \" + rp.psf);\r\n\r\n\t\t\t\t// 4. Add the unprocessed nbrs back\r\n\t\t\t\tArrayList<String> nbrnames = new ArrayList<>(rp.vtx.nbrs.keySet());\r\n\t\t\t\tfor (String nbrname : nbrnames) {\r\n\t\t\t\t\tif (!processed.containsKey(nbrname)) {\r\n\t\t\t\t\t\tPair np = new Pair(nbrname, rp.psf + nbrname);\r\n\t\t\t\t\t\tqueue.addLast(np);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn counter == 1;\r\n\t}",
"public boolean isConnected() {\n return (chord != null);\n }",
"public Vertex getAnyVertex()\n {\n for (GraphElement element : elements) {\n if(element instanceof Vertex) {\n return (Vertex) element;\n }\n }\n return null;\n }",
"NetNode representative() {\n\t\t\tfor (NetNode n : members) {\n\t\t\t\tif (!n.varAddress && !n.varMask)\n\t\t\t\t\treturn n;\n\t\t\t}\n\t\t\treturn members.iterator().next();\n\t\t}",
"public Optional<String> getBranch() {\n return Optional.fromNullable(branch);\n }",
"private Optional<Endpoint> getEndpointToCrawl(Dataset dataset) {\n // Are any of the endpoints eligible to be crawled\n List<Endpoint> sortedEndpoints = prioritySortEndpoints(dataset.getEndpoints());\n if (sortedEndpoints.isEmpty()) {\n return java.util.Optional.empty();\n }\n Endpoint ep = sortedEndpoints.get(0);\n return java.util.Optional.ofNullable(ep);\n }",
"public SegmentRefOrGroup get(Set<SegmentRefOrGroup> structure, String id){\n \treturn structure.stream().filter(x -> x.getId().equals(id)).findFirst().orElse(null);\n }",
"@Override\n\tpublic Entity SelectFirstOrDefault() {\n\t\treturn null;\n\t}",
"public boolean isConnected() {\r\n\treturn connected;\r\n }",
"@Override\n public Map<String, List<Connection>> getAll() {\n return null;\n }",
"public ComponentReferenceModelConnection getComponent( String name, ICancellationMonitor monitor ){\n for( ModelConnection connection : getConnections() ){\n if( connection.getTags().contains( ASTModel.IMPLEMENTATION )){\n ModelNode implementation = getDeclarationResolver().resolve( connection, monitor.getProgressMonitor() );\n monitor.checkCancellation();\n if( implementation != null ){\n for( ModelConnection implementationConnection : implementation.getConnections() ){\n if( implementationConnection.getTags().contains( ASTModel.COMPONENTS )){\n ModelNode components = getDeclarationResolver().resolve( implementationConnection, monitor.getProgressMonitor() );\n monitor.checkCancellation();\n if( components != null ){\n for( ModelConnection component : components.getConnections() ){\n if( component instanceof ComponentReferenceModelConnection ){\n ComponentReferenceModelConnection ref = (ComponentReferenceModelConnection)component;\n if( name.equals( ref.getName() ))\n return ref;\n }\n }\n }\n }\n }\n }\n \n return null;\n }\n }\n return null;\n }",
"Optional<X> elem();",
"public T caseConnectivityNode(ConnectivityNode object) {\n\t\treturn null;\n\t}",
"public String ipv6ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv6ConnectedPrefix();\n }",
"public Single<LocalConfigModel> getActiveConfig() {\n\t\treturn getMap().flatMap(map -> map.rxGet(LOCAL_CONFIG_KEY).toSingle());\n\t}",
"public V getDestination() {\r\n\r\n\t\tV result = null;\r\n\t\tif ((counter <= links.size()) && (counter > 0)) {\r\n\t\t\tresult = succNodes.get(counter - 1);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private LeftJoin convertToLeftJoin(GraphPattern gp, ElementOptional optional) throws SemQAException {\n\t\tGraphPattern right = sparqlToSemQA(optional.getOptionalElement());\r\n\t\treturn new LeftJoin(gp, right);\r\n\t}",
"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 boolean isConnected(){\n return connected;\n }",
"public interface Channel {\n\n /**\n * The name of the Channel.\n *\n * @return an optional that may contain the name of a channel.\n */\n Optional<String> getOName();\n\n /**\n * The ID of the Channel.\n *\n * @return an optional that may contain the ID of a channel.\n */\n Optional<String> getOId();\n\n /**\n * If channel ID is available, it will be returned, else the channel name will be returned.\n *\n * This method will always return a value.\n *\n * @return The channel ID if available, otherwise the channel name.\n */\n String getIdentifier();\n}",
"Collection<? extends Boolean> getIsCentralNode();",
"private Address determineCoordinator() {\r\n synchronized(members) {\r\n for(Address member:members) {\r\n if(!local_addr.equals(member)) {\r\n return member;\r\n }\r\n }\r\n }\r\n return null;\r\n }",
"public String ipv4ConnectedPrefix() {\n return this.innerProperties() == null ? null : this.innerProperties().ipv4ConnectedPrefix();\n }",
"boolean connected(int p, int q) {return false; /*mock*/}",
"@Override\n public Tuple nonDistinctNext() {\n //function takes tuples from o2, merges them with t1 from o1 and\n //evaluates them, if it finds a fitting Tuple, returns the result of merge;\n while (tuple1 != null) {\n Tuple tuple2 = o2.nonDistinctNext();\n\n while (tuple2 != null) {\n Tuple result = tupleTrans.transform(new Tuple(tuple1, tuple2));\n if (result != null) {\n return result;\n }\n tuple2 = o2.nonDistinctNext();\n }\n\n //if o2 runs out of Tupes, new t1 is taken from o1 and o2 is reset\n tuple1 = o1.nonDistinctNext();\n o2.reset();\n }\n //if o1 runs out of tuples (t1 == null), the operator is at the end\n return null;\n }",
"boolean getActiveNull();",
"public boolean isConnected() {\n \t\treturn connected;\n \t}",
"private Optional<Pair<S, S>> getCrossingPair(final Node<S> node, final Pair<S, S>[] map) {\n Pair<S, S> result = null;\n if(node.hasNext()) {\n //aX ?\n if(node.getElement().isTerminal()) {\n // ab\n if(!node.getNext().getElement().isTerminal()) {\n S a = node.getElement();\n S b = map[node.getNext().getElement().getId()].a;\n result = !a.equals(b) ? new Pair<S, S>(a,b) : null;\n }\n } // Ax or AX\n else {\n S a = map[node.getElement().getId()].b;\n S b = node.getNext().getElement();\n // Ab?\n if(b.isTerminal()) {\n result = !a.equals(b) ? new Pair<S, S>(a, b) : null;\n } //AB\n else {\n result = !a.equals(map[b.getId()].a) ? new Pair<S, S>(a, map[b.getId()].a) : null;\n }\n }\n }\n return Optional.ofNullable(result);\n }",
"private Optional<Squadron> getSelected(final Nation nation) {\n Squadron selectedSquadron = null;\n\n if (selectedAvailableSquadron.get(nation) != null) {\n selectedSquadron = selectedAvailableSquadron.get(nation);\n } else if (selectedAirfieldSquadron.get(nation) != null) {\n selectedSquadron = selectedAirfieldSquadron.get(nation);\n }\n\n return Optional.ofNullable(selectedSquadron);\n }",
"public Node getBestSuccessor(){\n\t\t// Send false to the method to not save the neighbors.\n\t\treturn state.neighborWithlowestAttachNo(false);\n\t}",
"public abstract Optional<TypeName> parent();",
"public M csolFromNull(){if(this.get(\"csolFromNot\")==null)this.put(\"csolFromNot\", \"\");this.put(\"csolFrom\", null);return this;}",
"public IAtom[] getConnectedAtoms(IAtom atom) {\n boolean atomIsInBond = false;\n for (IAtom localAtom : atoms) {\n if (localAtom == atom) {\n atomIsInBond = true;\n break;\n }\n }\n if (!atomIsInBond) return null;\n\n List<IAtom> conAtoms = new ArrayList<IAtom>();\n for (IAtom localAtom : atoms) {\n if (localAtom != atom) conAtoms.add(localAtom);\n }\n return conAtoms.toArray(new IAtom[]{}); \n }",
"public M csolIdNull(){if(this.get(\"csolIdNot\")==null)this.put(\"csolIdNot\", \"\");this.put(\"csolId\", null);return this;}",
"@Nullable\r\n List<Network> getNetwork();",
"public OBOProperty getDefaultRelationship() {\n return DEFAULT_REL; // genotype influences phenotype\n }",
"private DefaultCniNetworkProperties innerProperties() {\n return this.innerProperties;\n }",
"public Optional<E> first() {\n return Optional.ofNullable(queryFirst());\n }",
"public M csmiHostNull(){if(this.get(\"csmiHostNot\")==null)this.put(\"csmiHostNot\", \"\");this.put(\"csmiHost\", null);return this;}",
"public ArrayList<AStarNode> getConnections() {\n return connected;\n }"
]
| [
"0.5297756",
"0.51734835",
"0.51473725",
"0.5022528",
"0.497814",
"0.49741417",
"0.497387",
"0.49726608",
"0.49497536",
"0.49489436",
"0.49113196",
"0.49093485",
"0.4882565",
"0.48348725",
"0.4816954",
"0.4807559",
"0.48034123",
"0.48023283",
"0.47986937",
"0.4786625",
"0.47849804",
"0.47576854",
"0.47370335",
"0.47253156",
"0.47176614",
"0.4714535",
"0.47086138",
"0.47074118",
"0.47009924",
"0.46808982",
"0.46704572",
"0.46696195",
"0.4666668",
"0.46586275",
"0.46586275",
"0.4623998",
"0.46237487",
"0.46153396",
"0.46070838",
"0.45936143",
"0.4578216",
"0.4576419",
"0.4568677",
"0.45675114",
"0.45672",
"0.45669562",
"0.4566805",
"0.4562854",
"0.45595667",
"0.45585904",
"0.45441",
"0.4542283",
"0.45399097",
"0.45380104",
"0.45362544",
"0.45359257",
"0.45243567",
"0.4518808",
"0.4518222",
"0.45144516",
"0.451211",
"0.4505482",
"0.4499363",
"0.44984213",
"0.44965297",
"0.4479107",
"0.44722953",
"0.44705012",
"0.4467144",
"0.44666624",
"0.44643494",
"0.4459353",
"0.4453884",
"0.44514143",
"0.4447663",
"0.44475234",
"0.44466084",
"0.44463414",
"0.44423437",
"0.44391984",
"0.4434691",
"0.44261461",
"0.44252473",
"0.44243324",
"0.4415522",
"0.44139987",
"0.44109023",
"0.44085124",
"0.44045824",
"0.4401768",
"0.43970844",
"0.43961453",
"0.43912983",
"0.43911144",
"0.43898845",
"0.43835",
"0.43802464",
"0.4376031",
"0.4364492",
"0.4363022"
]
| 0.44601938 | 71 |
Add a new listener of the reconnection event | public void addViewReconnectedListener(ViewReconnectedListener l) {
this.viewReconnectedListeners.add(l);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addConnectionListener(ConnectionListener listener);",
"public void addOnReconnectListener(OnReconnect listener) {\n if (listener != null) {\n synchronized (reconnectListeners) {\n reconnectListeners.add(listener);\n log.debug(\"Added new OnReconnect listener {}\", listener);\n }\n }\n }",
"public synchronized void addConnectionEventListener(ConnectionEventListener connectioneventlistener) {\n/* 130 */ if (this.connectionEventListeners != null) {\n/* 131 */ this.connectionEventListeners.put(connectioneventlistener, connectioneventlistener);\n/* */ }\n/* */ }",
"@Override\n public void registerConnectionChangeListener(ConnectionChangeListener listener) {\n connectionListeners.add(listener);\n executor.execute(() -> listener.connectionChange(this, isConnected()));\n }",
"void onConnectionAdded(SocketConnection connection);",
"public void reconnected() { }",
"void onConnectionRemoved(SocketConnection connection);",
"public void addConnectionEventListener(ConnectionEventListener listener) {\n eventListener.addConnectorListener(listener);\n }",
"@Override\n\tpublic void listenerStarted(ConnectionListenerEvent evt) {\n\t\t\n\t}",
"@Override\n\tpublic void listenerClosed(ConnectionListenerEvent evt) {\n\t\t\n\t}",
"public void addDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.add(listener);\n\t}",
"private void invokeReconnection(WatchdogListener listener, Entry<String, Integer> entrySet) {\n logger.debug(\"[{}] - Invoke of reconnection.\", entrySet.getKey());\n if (listener != null) {\n listener.reconnectionRequired(entrySet.getKey());\n }\n }",
"public static void addOnWebSocketConnectionCreatedListener(WebSocketConnectionCreatedListener listener) {\n\t\tif (instance != null) {\n\t\t\tlistener.onWebSocketConnectionCreated(instance);\n\t\t} else {\n\t\t\twebSocketConnectionCreatedListeners.add(listener);\n\t\t}\n\t}",
"public interface ConnectionEventListener {\n /** \n * Called on all listeners when a connection is made or broken. \n */\n void connectionActivity(ConnectionEvent ce);\n}",
"@Override\n \tpublic void reconnectionFailed(Exception arg0) {\n \t}",
"public void addConnectedCallback(OctaveReference listener) {\n\t\tlistenerConnected.add(listener);\n\t}",
"private void registerConnectivityListener() {\r\n // Initialize a ConnectivityListener if it hasn't already been initialized\r\n if (mConnectivityListener == null) {\r\n mConnectivityListener = new ConnectivityListener();\r\n }\r\n\r\n // Create an IntentFilter for listening to a Broadcast for a change in network state\r\n IntentFilter filter = new IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION);\r\n\r\n // Register the receiver\r\n registerReceiver(mConnectivityListener, filter);\r\n\r\n // Set the boolean to indicate whether the ConnectivityListener is registered\r\n connectivityRegistered = true;\r\n }",
"public void add(ConnectionListener connectionListener) throws ServerException;",
"public void setConnectionEstablishedListener()\r\n\t{\r\n\t\tchatModel.getConnectionEstablishedProperty().addListener(\r\n\t\t\t\tnew ChangeListener<Object>()\r\n\t\t\t\t{\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\tObservableValue<? extends Object> observable,\r\n\t\t\t\t\t\t\tObject oldValue, Object newValue)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (chatModel.isConnectionEstablished())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tenableChat();\r\n\t\t\t\t\t\t\tdeconnecterButton.setDisable(false);\r\n\t\t\t\t\t\t\tbuttonConnexion.setDisable(true);\r\n\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdisableChat();\r\n\t\t\t\t\t\t\tbuttonConnexion.setDisable(false);\r\n\t\t\t\t\t\t\tdeconnecterButton.setDisable(true);\r\n\t\t\t\t\t\t\tserver.closeServerSockets();\r\n\t\t\t\t\t\t\tserver.startOpenSocketThread();\r\n\t\t\t\t\t\t\tserver.startReceiveMessageThread();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t}",
"boolean addConnectionListener(LWSConnectionListener lis);",
"protected void onConnectionChanged() {\n mConnectionChangedListener.didChange(mConnection);\n }",
"@Override\n public void trigger() {\n output.addNewEvent(\"Assinante \" + subscriberReconnect.getId() + \" deseja reconectar sua última ligação\");\n if (this.subscriberReconnect.isFree()) {\n takePhone();\n reestablishConnection();\n }\n }",
"@Override\n \tpublic void reconnectionSuccessful() {\n \t}",
"abstract protected void onDisconnection();",
"@Override\n\tpublic void registListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.register(listener);\n\t}",
"public void addListener(ClientConnectionListener l) {\n listeners.add(l);\n }",
"public void setConnectionReceiverListener(ConnectionReceiverListener listener) {\n ConnectivityReceiver.mConnectionReceiverListener = listener;\n }",
"@Override\n public void registerConnectorListener(RemoteConnectorListener listener) {\n connectorListeners.add(listener);\n }",
"void onConnectionLost();",
"public void removeConnectionListener(ConnectionListener listener);",
"public void addListener(SerialConnectionReadyListener listener) {\n listeners.add(listener);\n }",
"@FunctionalInterface\npublic interface ConnectionLostListener {\n\n /**\n * Called when a connection is list\n * \n * @param channelID The ID of the channel that had the connection lost\n */\n public void connectionLost(String channelID);\n\n}",
"private RRCPConnectionListener() {\n mainThread = new Thread(this);\n }",
"void subscribeReceiveListener(IDataReceiveListener listener);",
"public int addConnectionListener(boolean immediateNotify) {\n EnumSet<NetworkTableEvent.Kind> eventKinds = EnumSet.of(NetworkTableEvent.Kind.kConnection);\n if (immediateNotify) {\n eventKinds.add(NetworkTableEvent.Kind.kImmediate);\n }\n return NetworkTablesJNI.addListener(m_handle, m_inst.getHandle(), eventKinds);\n }",
"public void onConnection();",
"@Override\n\tpublic void reconnect() {\n\n\t}",
"public synchronized void removeConnectionEventListener(ConnectionEventListener connectioneventlistener) {\n/* 146 */ if (this.connectionEventListeners != null) {\n/* 147 */ this.connectionEventListeners.remove(connectioneventlistener);\n/* */ }\n/* */ }",
"public void registerConnectionListener(ConnectionConfig config, ConnectionListener listener) {\n connectionManagers.computeIfAbsent(config, connectionManagerFactoryFunction)\n .addListener(listener);\n }",
"@Override\n public void onServerDisconnectedListener() {\n disconnect();\n\n if (serviceDisconnectedListener != null) {\n serviceDisconnectedListener.onServerDisconnectedListener();\n }\n }",
"public boolean subscribeOnReconnected() {\n\t\treturn subscribeOnReconnected;\n\t}",
"void addRefreshListener(RefreshListener listener) throws RemoteException;",
"public abstract void mo27378a(OnConnectionFailedListener onConnectionFailedListener);",
"private void initListener()\n {\n listenerTimer = new Timer();\n listenerTimer.schedule(new RemoteListner(this), 1000, 2000);\n }",
"public void mo34037a() {\n if (this.f30043c == 0) {\n this.f30042b.registerReceiver(this, new IntentFilter(\"android.net.conn.CONNECTIVITY_CHANGE\"));\n }\n this.f30043c++;\n }",
"public interface ClientConnectionListener\n{\n /**\n * Event for when a Client connects to a server\n * @param client the client which connected\n */\n void clientConnected(Client client);\n\n /**\n * Event for when a Client Disconnects from a server\n * @param client the client which disconnected\n * @param info information about the disconnection\n */\n void clientDisconnected(Client client, DisconnectInfo info);\n}",
"@Override\n\tpublic void listenerInterrupted(ConnectionListenerEvent evt) {\n\t\t\n\t}",
"protected void notifyConnection() {\n connectionListeners.forEach(listener-> listener.connectionChange(this, isConnected()));\n }",
"public abstract void mo27384b(OnConnectionFailedListener onConnectionFailedListener);",
"void onIceConnectionChange(boolean connected);",
"boolean removeConnectionListener(LWSConnectionListener lis);",
"public ConnectionListener remove(String listenerID);",
"void connectionActivity(ConnectionEvent ce);",
"@Override\n\tpublic void connectionStateChanged(boolean connected, boolean connectionLost) {\n\t\t\n\t}",
"void onDisconnect( String errorMsg );",
"public void addConnectionEventListener(OfficeConnectionEventListener connectionEventListener) {\n\t\tconnectionEventListeners.add(connectionEventListener);\n\t}",
"interface Connect extends RconConnectionEvent, Cancellable {}",
"private void registerConnectivityListeners() {\n\t\tregisterReceiver(mBroadcastReceiver,\n\t\t\t\tnew IntentFilter(ConnectivityManager.CONNECTIVITY_ACTION));\n\t\t// mobile connection strength changes\n\t\tmSigStateListener = new SSListener();\n\t\t((TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE)).listen(mSigStateListener,\n\t\t\t\tPhoneStateListener.LISTEN_SIGNAL_STRENGTHS);\n\t}",
"void addListener(RosZeroconfListener listener);",
"private void registerReceivers() { \n\t\t\n\t\tregisterReceiver ( mConnReceiver, new IntentFilter ( ConnectivityManager.CONNECTIVITY_ACTION ) );\n\t\n\t}",
"@Override\n\tpublic void onDataConnectionStateChanged(int state) {\n\t\tLog.v(\"FMT\", \"Connection Listener appelé. State : \"+state);\n\t\tsuper.onDataConnectionStateChanged(state);\n\t}",
"@Override\n public void startNotificationListener(DBMSSynchronizer dbmsSynchronizer) {\n Logger.getLogger(ThreadedHousekeeper.class.getName()).setLevel(Level.SEVERE);\n\n this.listener = new PostgresSQLNotificationListener(dbmsSynchronizer);\n\n PGDataSource dataSource = new PGDataSource();\n dataSource.setHost(connectionProperties.getHost());\n dataSource.setPort(connectionProperties.getPort());\n dataSource.setDatabase(connectionProperties.getDatabase());\n dataSource.setUser(connectionProperties.getUser());\n dataSource.setPassword(connectionProperties.getPassword());\n\n try {\n pgConnection = (PGConnection) dataSource.getConnection();\n pgConnection.createStatement().execute(\"LISTEN jabrefLiveUpdate\");\n // Do not use `new PostgresSQLNotificationListener(...)` as the object has to exist continuously!\n // Otherwise the listener is going to be deleted by GC.\n pgConnection.addNotificationListener(listener);\n } catch (SQLException e) {\n LOGGER.error(\"SQL Error: \", e);\n }\n }",
"public interface ErisConnectionListener extends ErisInternetConnectionListner{\n public void onConnect(boolean value);\n public void onDisconnect();\n public void onException(Exception e);\n}",
"public ConnListener( MasterServerManager serverManager )\n {\n this.serverManager = serverManager;\n }",
"public interface OnDisconnectListener {\n\n /**\n * Called when client disconnects.\n * @param errorMsg if error caused desconnection, this contains error description.\n */\n void onDisconnect( String errorMsg );\n }",
"public void removeConnectedCallback(OctaveReference listener) {\n\t\tlistenerConnected.remove(listener);\n\t}",
"public void setSubscribeOnReconnected(boolean value) {\n\t\tsubscribeOnReconnected = value;\n\t}",
"void notifyPlayerReconnected(String username);",
"interface Disconnect extends RconConnectionEvent {}",
"void onDisconnect();",
"void onDisconnect();",
"public interface OnConnectListener {\n\n /**\n * Called when client connects.\n */\n void onConnect( );\n }",
"public void removeViewReconnectedListener(ViewReconnectedListener l) {\n this.viewReconnectedListeners.remove(l);\n }",
"public void registerReceiver() {\n if (mReceiver == null)\n mReceiver = new NetworkReceiver(new Listener() {\n @Override\n public void post(NetworkChangeEvent event) {\n if (mOnNetworkChangedListener != null) {\n mOnNetworkChangedListener.onChanged(event);\n }\n }\n });\n IntentFilter filter = new IntentFilter();\n filter.addAction(ConnectivityManager.CONNECTIVITY_ACTION);\n filter.addAction(BluetoothAdapter.ACTION_STATE_CHANGED);\n mContext.registerReceiver(mReceiver, filter);\n }",
"public void removeConnectionEventListener(ConnectionEventListener listener) {\n eventListener.removeConnectorListener(listener);\n }",
"private void registerLiveNodesListener() {\n LiveNodesListener listener =\n (oldNodes, newNodes) -> {\n oldNodes.removeAll(newNodes);\n if (oldNodes.isEmpty()) { // only added nodes\n return false;\n }\n if (isClosed) {\n return true;\n }\n // if this node is in the top three then attempt to create nodeLost message\n int i = 0;\n for (String n : newNodes) {\n if (n.equals(getNodeName())) {\n break;\n }\n if (i > 2) {\n return false; // this node is not in the top three\n }\n i++;\n }\n return false;\n };\n zkStateReader.registerLiveNodesListener(listener);\n }",
"private static void registerEventListener() {\r\n\r\n log.info(\"Registering event listener for Listeners\"); //$NON-NLS-1$\r\n\r\n try {\r\n ObservationManager observationManager = ContentRepository\r\n .getHierarchyManager(ContentRepository.CONFIG)\r\n .getWorkspace()\r\n .getObservationManager();\r\n\r\n observationManager.addEventListener(new EventListener() {\r\n\r\n public void onEvent(EventIterator iterator) {\r\n // reload everything\r\n reload();\r\n }\r\n }, Event.NODE_ADDED\r\n | Event.NODE_REMOVED\r\n | Event.PROPERTY_ADDED\r\n | Event.PROPERTY_CHANGED\r\n | Event.PROPERTY_REMOVED, \"/\" + CONFIG_PAGE + \"/\" + \"IPConfig\", true, null, null, false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\r\n }\r\n catch (RepositoryException e) {\r\n log.error(\"Unable to add event listeners for Listeners\", e); //$NON-NLS-1$\r\n }\r\n }",
"private void addConsoleWindowListener() {\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n ConnectWindow.exitConnectWindow();\n }\n });\n }",
"public void removeOnReconnectListener(OnReconnect listener) {\n if (listener != null) {\n boolean wasRemoved;\n synchronized (reconnectListeners) {\n wasRemoved = reconnectListeners.remove(listener);\n }\n if (wasRemoved) {\n log.debug(\"Removed OnReconnect listener {}\", listener);\n } else {\n log.warn(\n \"Was asked to remove OnReconnect listener {}, but remove operation \"\n + \"did not find it in the list of registered listeners.\",\n listener);\n }\n }\n }",
"@Override\n\tpublic void addListener() {\n\t\t\n\t}",
"void onConnect( );",
"void subscribe(LogListener listener);",
"public synchronized void restoreConnection(Connection connection) {\n\t\tconnections.add(connection);\n\t\tnotifyAll();\n\n\t}",
"public void removeDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.remove(listener);\n\t}",
"protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }",
"@Override\n\tpublic void onEvent(Event event, TCPConnection associatedConnection) {\n\t\tswitch (event.getType()) {\n\t\t//Extract our assigned ID\n\t\tcase Protocol.RegistryReportsRegistrationStatus:\n\t\t\tthis.myAssignedID = ((RegistryReportsRegistrationStatus) event)\n\t\t\t\t\t.getID();\n\t\t\tbreak;\n\t\t//Ack from Registry that this node has deregistered, ID==-1 if error\n\t\tcase Protocol.RegistryReportsDeregistrationStatus:\n\t\t\tSystem.out.println(\"This node with the ID:\"\n\t\t\t\t\t+ ((RegistryReportsDeregistrationStatus) event).getID()\n\t\t\t\t\t+ \" has deregistered and is now exiting.\");\n\t\t\tSystem.exit(0);\n\t\t\tbreak;\n\t\t//Registry sent routing tables. Setup routing tables\n\t\tcase Protocol.RegistrySendsNodeManifest:\n\t\t\ttry {\n\t\t\t\tif (initiateConnections((RegistrySendsNodeManifest) event)) {\n\t\t\t\t\tString msg = \"Successfully connected to routing nodes\";\n\t\t\t\t\tregistry.getSender().sendData(\n\t\t\t\t\t\t\tnew NodeReportsOverlaySetupStatus(myAssignedID, msg\n\t\t\t\t\t\t\t\t\t.getBytes(Charset.forName(\"UTF-8\")))\n\t\t\t\t\t\t\t\t\t.getBytes());\n\t\t\t\t} else {\n\t\t\t\t\tString msg = \"!Could not connect to routing nodes! Or couldn't send status on connecting\";\n\t\t\t\t\tregistry.getSender().sendData(\n\t\t\t\t\t\t\tnew NodeReportsOverlaySetupStatus(-1, msg\n\t\t\t\t\t\t\t\t\t.getBytes(Charset.forName(\"UTF-8\")))\n\t\t\t\t\t\t\t\t\t.getBytes());\n\t\t\t\t}\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\tSystem.out.println(e.getMessage()\n\t\t\t\t\t\t+ \"trouble connecting to routing nodes\");\n\t\t\t\tString msg = \"!Could not connect to routing nodes! Or couldn't send status on connecting\";\n\t\t\t\ttry {\n\t\t\t\t\tregistry.getSender().sendData(\n\t\t\t\t\t\t\tnew NodeReportsOverlaySetupStatus(-1, msg\n\t\t\t\t\t\t\t\t\t.getBytes(Charset.forName(\"UTF-8\")))\n\t\t\t\t\t\t\t\t\t.getBytes());\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tSystem.out.println(e1.getMessage());\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\tString msg = \"!Could not connect to routing nodes!\";\n\t\t\t\ttry {\n\t\t\t\t\tregistry.getSender().sendData(\n\t\t\t\t\t\t\tnew NodeReportsOverlaySetupStatus(-1, msg\n\t\t\t\t\t\t\t\t\t.getBytes(Charset.forName(\"UTF-8\")))\n\t\t\t\t\t\t\t\t\t.getBytes());\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\tSystem.out.println(e1.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t//Registry instructs node to begin communications with peers\n\t\tcase Protocol.RegistryRequestsTaskInitiate:\n\t\t\tsendPayloads(((RegistryRequestsTaskInitiate) event).getNumPackets());\n\t\t\tbreak;\n\t\t//Peer data packet received\n\t\tcase Protocol.OverlayNodeSendsData:\n\t\t\t//Determine if this node is final destination of packet\n\t\t\tif (finalDestination((OverlayNodeSendsData) event)) {\n\t\t\t\tthis.incrementReceiveTracker();\n\t\t\t\tthis.incrementReceiveSummation(((OverlayNodeSendsData) event)\n\t\t\t\t\t\t.getPayload());\n\t\t\t}\n\t\t\t//if the message should be relayed\n\t\t\telse {\n\t\t\t\tsynchronized (relayQueue) {\n\t\t\t\t\tOverlayNodeSendsData eventUpdated = new OverlayNodeSendsData(\n\t\t\t\t\t\t\t(OverlayNodeSendsData) event, myAssignedID);\n\t\t\t\t\trelayQueue.add(eventUpdated);\n\t\t\t\t\tthis.incrementRelayTracker();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t//Registry requests update on traffic, respond accordingly\n\t\tcase Protocol.RegistryRequestsTrafficSummary:\n\t\t\tsendTrafficSummary();\n\t\t\tbreak;\n\t\t//Should not be triggered, output error msg\n\t\tdefault:\n\t\t\tSystem.out.println(\"MsgNode received improper Event type\");\n\t\t\tbreak;\n\t\t}\n\t}",
"public void onPeerConnectionClosed();",
"public interface ConnectionStateListener {\n void onDisconnect();\n void onConnect();\n void onLogout();\n}",
"public Client addListener(ClientListener listener);",
"@Override\n \tpublic void reconnectingIn(int arg0) {\n \t}",
"@Override\r\n\t\tpublic void onConnect(Connection connection) {\n\r\n\t\t}",
"public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}",
"protected void registerListener() {\r\n\t\t// do nothing\r\n\t}",
"public void addMessageListener(SocketListener sl_arg){\n\t\tsl = sl_arg;\n\t}",
"private void setupConnStateBroadcastReceiver() {\n connStateBroadcastReceiver = new BroadcastReceiver() {\n @Override\n public void onReceive(Context context, Intent intent) {\n if (\"com.example.loravisual.CONNECTION_STATE_CHANGED\".equals(intent.getAction())) {\n connected = intent.getBooleanExtra(\"com.example.loravisual.CONNECTION_STATE\", false);\n if (connected) {\n if (!connToastsDeactivated)\n Toast.makeText(context, \"connected to device\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.connected));\n } else {\n ready = false;\n if (!connToastsDeactivated)\n Toast.makeText(context, \"disconnected\", Toast.LENGTH_SHORT).show();\n getSupportActionBar().setSubtitle(getString(R.string.disconnected));\n }\n }\n }\n };\n IntentFilter filter = new IntentFilter(\"com.example.loravisual.CONNECTION_STATE_CHANGED\");\n registerReceiver(connStateBroadcastReceiver, filter);\n }",
"@Override\n\t\tpublic void connectionStateChange(ProxyEvent<Proxy<?>> e) {\n\t\t\tif (e.getConnectionState()==ConnectionState.OPERATIONAL && getConnectionState()==ConnectionState.CONNECTING)\n\t\t\t\tsetConnectionState(ConnectionState.CONNECTED, null);\n\t\t\tsetConnectionState(e.getConnectionState(),e.getError());\n\t\t}",
"@FXML\n private void reconnect(ActionEvent actionEvent){\n\n // Connection choice\n\n int connectionchoice = 0;\n\n connectionchoice = srmi.getToggles().indexOf(srmi.getSelectedToggle());\n\n switch(connectionchoice) {\n\n case 0:\n protocolType = SOCKET;\n break;\n\n case 1:\n protocolType = RMI;\n break;\n }\n\n\n // Name Choice\n\n playerName = name.getText();\n\n gui.getView().createConnection(protocolType);\n new Thread(() -> gui.getView().reconnect(playerName)).start();\n\n }",
"public static void addListener(NetworkListener listener) {\n\t\tarcade.getClient().addListener(listener);\n\t}",
"private void registerResendEvent(TcpPacket tcpPacket) {\n TcpPacketResendEvent event = new TcpPacketResendEvent(roundTripTimeout, tcpPacket, this);\n Simulator.registerEvent(event);\n seqNumbToResendEventMap.put(tcpPacket.getSequenceNumber(), event);\n }",
"void onConnect();"
]
| [
"0.6732579",
"0.6653271",
"0.6540814",
"0.65225637",
"0.6468832",
"0.63442314",
"0.62609524",
"0.62550664",
"0.6241596",
"0.62286156",
"0.6199089",
"0.61574274",
"0.605687",
"0.605549",
"0.59833854",
"0.5977145",
"0.59559655",
"0.5945109",
"0.59072465",
"0.58993983",
"0.5884995",
"0.58834267",
"0.5863591",
"0.5813308",
"0.57927126",
"0.578183",
"0.5772455",
"0.57638806",
"0.5739231",
"0.57366246",
"0.5725313",
"0.5723579",
"0.57141256",
"0.57057756",
"0.5700369",
"0.56991845",
"0.56312853",
"0.5603607",
"0.5561097",
"0.5536926",
"0.5510233",
"0.55090594",
"0.55051035",
"0.5494158",
"0.54672897",
"0.5466185",
"0.54646367",
"0.5448748",
"0.5447674",
"0.54315776",
"0.5421355",
"0.5418442",
"0.5412872",
"0.5410263",
"0.54044425",
"0.5394961",
"0.53707844",
"0.53626585",
"0.5358566",
"0.53542846",
"0.5347486",
"0.5334139",
"0.5332834",
"0.53311753",
"0.5330467",
"0.53301704",
"0.53230125",
"0.5311373",
"0.530894",
"0.5301626",
"0.5301626",
"0.530055",
"0.5300547",
"0.52917683",
"0.52861804",
"0.5286162",
"0.52847713",
"0.5279378",
"0.5268621",
"0.5267092",
"0.5265183",
"0.5260698",
"0.5258818",
"0.52573246",
"0.5255115",
"0.52495164",
"0.524648",
"0.5246217",
"0.52405566",
"0.52367955",
"0.52340114",
"0.5232531",
"0.52276635",
"0.5225064",
"0.5223903",
"0.52234393",
"0.5215072",
"0.52145505",
"0.52113336",
"0.52100885"
]
| 0.6672273 | 1 |
Remove a listener of the reconnection event | public void removeViewReconnectedListener(ViewReconnectedListener l) {
this.viewReconnectedListeners.remove(l);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeConnectionListener(ConnectionListener listener);",
"public void removeConnectionEventListener(ConnectionEventListener listener) {\n eventListener.removeConnectorListener(listener);\n }",
"public synchronized void removeConnectionEventListener(ConnectionEventListener connectioneventlistener) {\n/* 146 */ if (this.connectionEventListeners != null) {\n/* 147 */ this.connectionEventListeners.remove(connectioneventlistener);\n/* */ }\n/* */ }",
"public void removeConnectedCallback(OctaveReference listener) {\n\t\tlistenerConnected.remove(listener);\n\t}",
"public void removeDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.remove(listener);\n\t}",
"public ConnectionListener remove(String listenerID);",
"void onConnectionRemoved(SocketConnection connection);",
"abstract protected void onDisconnection();",
"boolean removeConnectionListener(LWSConnectionListener lis);",
"private void unregisterConnectivityListener() {\r\n // Unregister the ConnectivityListener\r\n unregisterReceiver(mConnectivityListener);\r\n\r\n // Set the boolean to indicate that no ConnectivityListener has been registered\r\n connectivityRegistered = false;\r\n }",
"public void removeConnectionListener(ConnectionConfig config, ConnectionListener listener) {\n connectionManagers.computeIfAbsent(config, connectionManagerFactoryFunction)\n .removeListener(listener);\n }",
"public void removeOnReconnectListener(OnReconnect listener) {\n if (listener != null) {\n boolean wasRemoved;\n synchronized (reconnectListeners) {\n wasRemoved = reconnectListeners.remove(listener);\n }\n if (wasRemoved) {\n log.debug(\"Removed OnReconnect listener {}\", listener);\n } else {\n log.warn(\n \"Was asked to remove OnReconnect listener {}, but remove operation \"\n + \"did not find it in the list of registered listeners.\",\n listener);\n }\n }\n }",
"@Override\n public void removeListener() {\n this.mListener = null;\n }",
"public void unregisterListener() {\n\t\tthis.listener = null;\n\t}",
"void removeListener(RosZeroconfListener listener);",
"private void clearConnectionListeners()\n {\n XMPPConnection connection = parentProvider.getConnection();\n if(connection != null\n && subscribtionPacketListener != null\n && contactChangesListener != null)\n {\n connection.removeAsyncStanzaListener(\n subscribtionPacketListener);\n Roster.getInstanceFor(connection)\n .removeRosterListener(contactChangesListener);\n\n subscribtionPacketListener = null;\n contactChangesListener = null;\n }\n }",
"@Override\n\tpublic void unregistListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.unregister(listener);\n\t}",
"@Override\n public void removeListener(StreamListener listener) {\n streamListeners.remove(listener);\n }",
"public void unregisterListeners(){\n listeners.clear();\n }",
"private void unregisterListener() {\n mSensorManager.unregisterListener(this);\n }",
"void unsubscribe(LogListener listener);",
"@Override\n\tpublic void listenerClosed(ConnectionListenerEvent evt) {\n\t\t\n\t}",
"public void cleanUp() { listener = null; }",
"public void removeListener(DCCSessionListener listener) {\n while(this.chatListeners.remove(listener)) {\n // just keep removing the listener until we no longer have any more of that type left\n }\n }",
"public synchronized void clearNetworkListener() {\r\n\t\tlistener.clear();\r\n\t}",
"protected void removeListeners() {\n }",
"public void unregisterListener() {\n mPhone.listen(mPhoneStateListener, PhoneStateListener.LISTEN_NONE);\n /* SPRD: Bug 697839 add For VOLTE and VoWiFi icon. @{ */\n try {\n if (mIsImsListenerRegistered) {\n mIsImsListenerRegistered = false;\n if (mIImsServiceEx != null) {\n mIImsServiceEx.unregisterforImsRegisterStateChanged(mImsUtListenerExBinder);\n }\n }\n /* SPRD: modify for bug723743 @{ */\n if (mIsImsReceiverRegistered) {\n mContext.unregisterReceiver(mImsIntentReceiver);\n mIsImsReceiverRegistered = false;\n }\n if (mIsModemReciverRegistered) {\n mContext.unregisterReceiver(mModemStateChangeReciver);\n mIsModemReciverRegistered = false;\n }\n /* @} */\n } catch (RemoteException e) {\n Log.e(mTag, \"RemoteException: \" + e);\n }\n /* @} */\n mContext.getContentResolver().unregisterContentObserver(mObserver);\n /* SPRD: Dual volte signalStrength display for bug 666045. @{ */\n if (mDualVoLTEListener != null) {\n mPhone.listen(mDualVoLTEListener, PhoneStateListener.LISTEN_NONE);\n }\n mContext.unregisterReceiver(mReceiver);\n /* @} */\n }",
"void removeListener(IEventChannelListener<K, V> listener);",
"void removeListener(BotListener l);",
"private void unregisterListener() {\n\t\tif (!mHasStarted || mSensorManager == null) {\n\t\t\treturn;\n\t\t}\n\t\tmHasStarted = false;\n\t\tmSensorManager.unregisterListener(mAccListener);\n\t}",
"protected void uninstallListeners() {\n }",
"protected void uninstallListeners() {\n }",
"void removeListener( ConfigurationListener listener );",
"@Override\n\tpublic void listenerInterrupted(ConnectionListenerEvent evt) {\n\t\t\n\t}",
"@Override\n public void removeListener(ResourceListener listener) {\n }",
"void removeListener( AvailabilityListener listener );",
"@Override\n public void unpin(IObserver observer) {\n listeners.remove(observer);\n }",
"public synchronized void removeListener(IIpcEventListener listener) {\n\t\tlisteners.remove(listener);\n\t}",
"public void removeSocketNodeEventListener(\n final SocketNodeEventListener l) {\n listenerList.remove(l);\n }",
"public void addDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.add(listener);\n\t}",
"public void removeListener(T listener);",
"public void removeReachabilityListener(Consumer<ReachabilityEvent> reachabilityListener) {\r\n reachabilityListeners.remove(reachabilityListener);\r\n }",
"protected void uninstallListeners() {\n\t}",
"void unregisterListeners();",
"public void removeInvalidationListener(Runnable listener)\n {\n myInvalidationChangeSupport.removeListener(listener);\n }",
"void removeListener(\n ReaderSettingsListenerType l);",
"void removeListener(GraphListener listener);",
"public abstract void unregisterListeners();",
"protected void processDisconnection(){}",
"@Override\n public void onServerDisconnectedListener() {\n disconnect();\n\n if (serviceDisconnectedListener != null) {\n serviceDisconnectedListener.onServerDisconnectedListener();\n }\n }",
"@SubscribeEvent\n public void onFMLNetworkClientDisconnectionFromServer(ClientDisconnectionFromServerEvent event) {\n hypixel = false;\n bedwars = false;\n }",
"public void removeAllListener() {\r\n listeners.clear();\r\n }",
"public void removeAlpacaStreamListener(AlpacaStreamListener streamListener) {\n alpacaWebSocketClient.removeListener(streamListener);\n }",
"@Override\n\tpublic void removeStateListener(MemcachedClientStateListener arg0) {\n\n\t}",
"@Override\r\n\tpublic void removeListener(INotifyChangedListener notifyChangedListener) {\r\n\t\tchangeNotifier.removeListener(notifyChangedListener);\r\n\t}",
"public void detachListener()\n {\n m_localInstance.detachListener();\n }",
"void removeSessionListener(SessionListener listener);",
"@Override\n public void onDetach() {\n super.onDetach();\n listener = null;\n }",
"@Override\n public void onDetach() {\n super.onDetach();\n listener = null;\n }",
"@Override\n public void onDetach() {\n super.onDetach();\n listener = null;\n }",
"public void removeAnalysisServerListener(AnalysisServerListener listener);",
"public void removeListeners() {\n if ( listeners != null ) {\n listeners.clear();\n }\n }",
"public void removeListener(GrillEventListener listener);",
"public void removeEventListener(EventListener listener){\n try {\n listenerList.remove(EventListener.class, listener);\n } catch (Exception e) {\n System.out.println(\"[analizadorClient.removeEventListener]\" + e.getMessage());\n }\n \n \n }",
"private void disconnect() {\n activityRunning = false;\n MRTClient.getInstance().doHangup();\n MRTClient.getInstance().removeClientListener(this);\n\n finish();\n }",
"@Override\n\tpublic void removeListener(INotifyChangedListener notifyChangedListener) {\n\t\tchangeNotifier.removeListener(notifyChangedListener);\n\t}",
"@Override\n\tpublic void removeListener(INotifyChangedListener notifyChangedListener) {\n\t\tchangeNotifier.removeListener(notifyChangedListener);\n\t}",
"private void cleanup() {\n\t\tif (myListener!=null)\n\t\t\t_prb.removeListener(myListener);\n\t}",
"public void removeListener(INotifyChangedListener notifyChangedListener)\n {\n changeNotifier.removeListener(notifyChangedListener);\n }",
"public void removeSnapListeners() {\r\n\t\torthoSnapListeners.clear();\r\n\t}",
"@Override\n public void removeNotify()\n {\n unregisterListeners();\n super.removeNotify();\n }",
"public void removeChatListener(ChatListener listener){\r\n super.removeChatListener(listener);\r\n\r\n if (listenerList.getListenerCount(ChatListener.class) == 0){\r\n setDGState(Datagram.DG_PERSONAL_TELL, false);\r\n setDGState(Datagram.DG_PERSONAL_QTELL, false);\r\n setDGState(Datagram.DG_SHOUT, false);\r\n setDGState(Datagram.DG_CHANNEL_TELL, false);\r\n setDGState(Datagram.DG_CHANNEL_QTELL, true);\r\n setDGState(Datagram.DG_KIBITZ, false);\r\n }\r\n }",
"public void removeAllListeners() {\n die();\n }",
"private void removeListeners() {\n \t\tlistenToTextChanges(false);\n \t\tfHistory.removeOperationHistoryListener(fHistoryListener);\n \t\tfHistoryListener= null;\n \t}",
"public void removeListener(IEpzillaEventListner listener)\n\t\t\tthrows RemoteException;",
"@Override\r\n public void unregister(L listener) {\r\n synchronized (listeners) {\r\n listeners.remove(listener);\r\n weak.remove(listener);\r\n }\r\n }",
"public void reconnected() { }",
"private void dettachDatabaseListener() {\n if (mChildEventListener != null) {\n mSancionadosReference.removeEventListener(mChildEventListener);\n mChildEventListener = null;\n }\n\n if (mEmptyCheckListener != null) {\n mSancionadosReference.removeEventListener(mEmptyCheckListener);\n mEmptyCheckListener = null;\n }\n }",
"public void removeListener(RepaintRequestListener listener) {\n }",
"@Override\n\tpublic void removeAllListener() {\n\t\tLog.d(\"HFModuleManager\", \"removeAllListener\");\n\t\tthis.eventListenerList.clear();\n\t}",
"private void removeListener(final @NonNull Consumer<E> listener) {\n eventListeners.remove(listener);\n\n if (eventListeners.isEmpty()) {\n HandlerList.unregisterAll(this);\n LISTENERS_GROUPS.remove(configuration);\n }\n }",
"public void removeListener(final IMemoryViewerSynchronizerListener listener) {\n m_listeners.removeListener(listener);\n }",
"@Override\r\n\tpublic synchronized void unregisterListener(EventListener<T> listener) {\n\t\tlisteners.removeElement(listener);\r\n\t}",
"private void unsubscribe() {\n subscriber=null;\n }",
"void removeStateListener(MessengerStateListener listener);",
"public void removeEventListener(OneToOneChatListener listener) throws RcsServiceException {\n\t\tif (api != null) {\n\t\t\ttry {\n\t\t\t\tapi.removeEventListener2(listener);\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RcsServiceException(e.getMessage());\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new RcsServiceNotAvailableException();\n\t\t}\n\t}",
"private void removeMessageListener(MessageTypeEventHandler<?> messageListener) {\n messageListeners.remove(messageListener);\n }",
"public void unregisterAnimalAddedListener(AnimalAddedListenerReceipt receipt) {\n this.listeners.remove(receipt.getListener());\n }",
"public void removeChangeListener(ChangeListener<BufferedImage> listener) {\n observer.remove(listener);\n }",
"protected void uninstallListeners() {\n frame.removePropertyChangeListener(propertyChangeListener);\n }",
"public void removeListener(JuraMqttListener listener) {\n\t\tif (juraMqttClient != null)\n\t\t\tjuraMqttClient.removeListener(listener);\n\t}",
"public void removeNPTListener(NPTListener l) {}",
"public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }",
"public void unregister(IMessageListener listener) {\r\n registry.unregister(listener);\r\n }",
"public abstract void removeServiceListener(PhiDiscoverListener listener);",
"public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}",
"public void removeListener(LineListener listener) {\n\t\tplayer.removeListeners(listener);\n\t}",
"public void deconnectar() {\n connection = null;\n }",
"public void removeOnDataChangedListener(OnDataChangedListener listener) {\n dataChangedListeners.remove(listener);\n }",
"private void removeEventListener(IEventListener<T> listener) {\n\t\t\tevent.removeEventListener(listener);\n\t\t}"
]
| [
"0.7809647",
"0.7497894",
"0.74666816",
"0.7294062",
"0.72849107",
"0.7209398",
"0.70381445",
"0.70180833",
"0.6955944",
"0.6952031",
"0.6889048",
"0.68806154",
"0.6878445",
"0.67823625",
"0.6761763",
"0.65465605",
"0.6487521",
"0.64854413",
"0.64289355",
"0.63926363",
"0.6382661",
"0.6372078",
"0.6367138",
"0.63551724",
"0.635341",
"0.6342278",
"0.6319836",
"0.63008916",
"0.6300403",
"0.627301",
"0.626926",
"0.626926",
"0.62574685",
"0.6243344",
"0.6242796",
"0.62252474",
"0.6224723",
"0.62172055",
"0.6195812",
"0.6188604",
"0.61790544",
"0.6150566",
"0.61469537",
"0.6144207",
"0.6143915",
"0.613871",
"0.6130653",
"0.6128361",
"0.61225796",
"0.6121718",
"0.6110283",
"0.61094916",
"0.6101248",
"0.6085209",
"0.6077439",
"0.6075705",
"0.6074444",
"0.6074272",
"0.6074272",
"0.6074272",
"0.6049432",
"0.6042965",
"0.60427755",
"0.6038287",
"0.60170996",
"0.60110897",
"0.60110897",
"0.59941465",
"0.59919417",
"0.5991379",
"0.5990471",
"0.59880656",
"0.5985753",
"0.59730303",
"0.59686506",
"0.5945043",
"0.5916285",
"0.5909057",
"0.5908368",
"0.590543",
"0.5903009",
"0.5902267",
"0.5901209",
"0.5898689",
"0.5898498",
"0.58961225",
"0.58951765",
"0.5889545",
"0.58827007",
"0.5882298",
"0.5878525",
"0.5875457",
"0.5861577",
"0.5839252",
"0.58389163",
"0.58316797",
"0.5828302",
"0.5826289",
"0.58219373",
"0.5809639"
]
| 0.6991452 | 8 |
Closes this object and stops the background threads execution | @Override
public void close() throws Exception {
socketAcceptor.close();
rmiAcceptor.close();
connectedViews.clear();
synchronized (threadPool) {
threadPool.shutdown();
}
while (!threadPool.awaitTermination(5, TimeUnit.SECONDS)) {
logger.warning("Thread pool hasn't shut down yet, waiting...");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void close() {\n \t\trecallThreads();\n \n \t\tsetSize(0, 0);\n \t\t/* Notify everyone waiting for a thread */\n \t\tnotifyAll();\n \n \t\t// destroy the threadgroup, will never go away otherwise\n \t\ttry {\n \t\t\t// Need to set it to a daemon first otherwise it will not be destroyed\n \t\t\tsetDaemon(true);\n \t\t\tdestroy();\n \t\t} catch (Exception e) {\n \t\t\t// TODO: consider logging\n \t\t}\n \t}",
"public void close() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (globalLock) {\n isRunning = false;\n\n if (reconnectionThread != null) {\n reconnectionThread.interrupt();\n }\n\n webSocketConnection.closeInternal();\n }\n }\n }).start();\n }",
"private void closeThread() {\n running = false;\n }",
"public void close()\n {\n try\n {\n stop();\n }\n catch (IOException ioex)\n {\n logger.error(\"Failed to stop \" + getClass().getSimpleName(), ioex);\n }\n }",
"public void Stop() {\r\n\t\t\r\n\t\tthread = null;\r\n\t}",
"public void stop() {\n\t\tthis.close(this.btcomm);\n\t}",
"public void stopThread() {\n\t\talive = false;\n\t\t\n\t\ttry {\n\t\t\tif(oos != null) {\n\t\t\t\toos.close();\n\t\t\t}\n\t\t\tif(ois != null) {\n\t\t\t\tois.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// Why the hell is that being thrown here? Doesn't matter.\n\t\t}\n\t}",
"public void stop() {\n thread = null;\n }",
"@Override\n public void stop() {\n try {\n serverSocket.close();\n }\n catch (IOException e) {\n getExceptionHandler().receivedException(e);\n }\n\n // Close all open connections.\n synchronized (listConnections) {\n for (TcpConnectionHandler tch : listConnections)\n tch.kill();\n listConnections.clear();\n }\n\n // Now close the executor service.\n executorService.shutdown();\n try {\n executorService.awaitTermination(3, TimeUnit.SECONDS);\n }\n catch (InterruptedException e) {\n getExceptionHandler().receivedException(e);\n }\n }",
"public void stop() {\n \n // first interrupt the server engine thread\n if (m_runner != null) {\n m_runner.interrupt();\n }\n\n // close server socket\n if (m_serverSocket != null) {\n try {\n m_serverSocket.close();\n }\n catch(IOException ex){\n }\n m_serverSocket = null;\n } \n \n // release server resources\n if (m_ftpConfig != null) {\n m_ftpConfig.dispose();\n m_ftpConfig = null;\n }\n\n // wait for the runner thread to terminate\n if( (m_runner != null) && m_runner.isAlive() ) {\n try {\n m_runner.join();\n }\n catch(InterruptedException ex) {\n }\n m_runner = null;\n }\n }",
"public void stop()\n {\n if ( this.threadRunning.get() )\n {\n this.threadRunning.set(false);\n }\n }",
"public void stop() {\n log.info(\"Stopped\");\n execFactory.shutdown();\n cg.close();\n }",
"public void stop() {\n if (isStop.compareAndSet(false, true)) {\n if (bootstrap.config().group() != null) {\n Future future = bootstrap.config().group().shutdownGracefully();\n ((io.netty.util.concurrent.Future) future).syncUninterruptibly();\n }\n for (BrpcChannelGroup channelGroup : healthyInstances) {\n channelGroup.close();\n }\n for (BrpcChannelGroup channelGroup : unhealthyInstances) {\n channelGroup.close();\n }\n if (timeoutTimer != null) {\n timeoutTimer.stop();\n }\n if (namingService != null) {\n namingService.unsubscribe(subscribeInfo);\n }\n if (healthCheckTimer != null) {\n healthCheckTimer.stop();\n }\n if (loadBalanceStrategy != null) {\n loadBalanceStrategy.destroy();\n }\n if (callbackThread != null) {\n callbackThread.shutdown();\n }\n if (threadPool != null) {\n threadPool.stop();\n }\n }\n }",
"private void stop() {\r\n\t\tif (!running)\r\n\t\t\treturn;\r\n\t\trunning = false;\r\n\t\ttry {\r\n\t\t\tthread.join();//ends thread to close program correctly\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(0);//closes canvas\r\n\t\t}\r\n\t}",
"public void stop() {\n executor.shutdown();\n }",
"private void stop()\n {\n if(running)\n {\n scheduledExecutorService.shutdownNow();\n running = false;\n }\n }",
"public void terminate()\n\t{\n\t\tsynchronized (this) { this.running = false; }\n\t}",
"protected void stopBackgroundThread() {\n mBackgroundThread.quitSafely();\n try {\n mBackgroundThread.join();\n mBackgroundThread = null;\n mBackgroundHandler = null;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }",
"private void close() {\r\n closeListener.run();\r\n }",
"public void close() {\n // close socket\n if (socket != null) {\n try {\n socket.close();\n } catch (IOException e) {\n // ignore\n }\n }\n\n socket = null;\n in = null;\n out = null;\n\n // try to stop dispather\n if (dispatcher != null) {\n dispatcher.setStopped(true);\n dispatcher.interrupt();\n }\n\n // notify all blocked thread\n if (requests != null) {\n for (Element element : requests.values()) {\n if (element.lock != null) {\n synchronized (element.lock) {\n element.lock.notify();\n }\n } else {\n // TODO notify persistent search listeners\n }\n }\n requests.clear();\n requests = null;\n }\n\n }",
"protected void close()\n {\n stopped = true;\n }",
"@Override\n public void close() throws Exception {\n log.info(\"Shutting down task replicator...\");\n while (running) {\n Thread.sleep(300L);\n }\n }",
"@Override\n public void close() throws Exception {\n Future<Boolean> stopped = gracefulStop(mgr, Duration.create(5, TimeUnit.SECONDS));\n Await.result(stopped, Duration.create(5, TimeUnit.SECONDS));\n\n system.terminate();\n Await.result(system.whenTerminated(), Duration.create(5, TimeUnit.SECONDS));\n }",
"public void stopPollingThread() {\n pool.shutdown();\n }",
"@Override\n public void stop() {\n try {\n socket.close();\n } catch (IOException e) {\n getExceptionHandler().receivedException(e);\n }\n\n // Now close the executor service.\n\n }",
"public void shutdown() {\n /**\n * Make this thread instance null.\n */\n THREAD_INSTANCE = null;\n\n /**\n * Destroy Keep Alive Thread.\n */\n KEEP_ALIVE_THREAD.pause();\n KEEP_ALIVE_THREAD.stop();\n KEEP_ALIVE_THREAD = null;\n }",
"private void terminateWorkerThreads() {\n log.info(\"Terminating worker threads..\");\n try {\n this.periodicReportingService.stopPeriodicTasks();\n this.running.set(false);\n this.logWriter.join();\n this.join();\n } catch (Exception e) {\n log.error(\"Error shutting down \", port);\n }\n }",
"public void dispose() {\n thread.interrupt();\n }",
"public void stop() {\n\t\tif (this.isRunning() && !this.isManagedExternally) {\n\t\t\ttry {\n\t\t\t\tHTTP.release(this.http.get(this.shutdown));\n\t\t\t} catch (IOException exception) {\n\t\t\t\tthis.processRunner.abort();\n\t\t\t}\n\n\t\t\tthis.isManagedExternally = null;\n\t\t}\n\t}",
"public void stop() {\n if (stream != null) {\n try {\n stream.close();\n } catch (IOException e) {\n logger.error(\"Closing response stream failed\", e);\n }\n }\n\n executorService.shutdownNow();\n executorService = null;\n }",
"public void terminate() {\n this.terminated = true;\n executor.interrupt();\n this.handler = null;\n this.out = null;\n this.in = null;\n this.logger = null;\n this.buffer = null;\n }",
"public void stop() {\n if (this.thread != null) {\n Thread thre = this.thread;\n this.thread = null;\n thre.interrupt();\n }\n }",
"public synchronized void stop() {\n try {\n if (isRunning) {\n isRunning = false;\n thread.join();\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.exit(0);\n }",
"public void stopThread(){\r\n\t\tthis.p.destroy();\r\n\t\ttry {\r\n\t\t\tinput.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.stop();\r\n\t}",
"protected void end()\n\t{\n\t\tstop();\n\t}",
"@Override\n public void close() {\n while (!blocks.isEmpty()) {\n blocks.poll().clean();\n }\n }",
"public void terminate() {\n\t\trunning = false;\n\t}",
"public void stop() {\n\t\texec.stop();\n\t}",
"public void shutdown() {\n this.runnable.stop = true;\n LockSupport.unpark(this);\n }",
"public void stop() {\r\n\t\t//If the program has an error this will stop the program\r\n\t\ttry {\r\n\t\t\trunning = false;\r\n\t\t\tg.dispose();\r\n\t\t\tthread.join();\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void close() {\n connection.close();\n running = false;\n }",
"public void close() {\n trap.run();\n }",
"public void terminate() {\r\n running = false;\r\n }",
"@Override\n\t// O(1)\n\tpublic void close() {\n\t\tsynchronized (mInetAddressList) {\n\t\t\tmIsClosed = true;\n\t\t\tmCleanupTask.cancel();\n\t\t\tmInetAddressList.clear();\n\n\t\t\t// unblock the blocked threads\n\t\t\t// when they resume, they'll throw an interrupted exception\n\t\t\t// there's only one place where they'll be blocked (in take())\n\t\t\twhile (mInetAddressAvailableSemaphore.hasQueuedThreads()) {\n\t\t\t\tmInetAddressAvailableSemaphore.release();\n\t\t\t}\n\t\t}\n\t}",
"void shutdown() {\n this.shutdown.set(true);\n Thread currentThread = this.currentThread.get();\n if (currentThread != null) {\n currentThread.interrupt();\n }\n\n }",
"@Override\r\n public synchronized void close()\r\n {\r\n if (!isRunning)\r\n {\r\n throw new IllegalStateException(\"already stopped!\");\r\n }\r\n threadPool.shutdownNow();\r\n socket.close();\r\n isRunning = false;\r\n }",
"public void stop() {\n executorService.shutdown();\n try {\n if (!executorService.awaitTermination(500, TimeUnit.MILLISECONDS)) {\n executorService.shutdownNow();\n }\n } catch (InterruptedException e) {\n executorService.shutdownNow();\n }\n }",
"public void Stop(){\r\n\t\trunning = false;\r\n\t\thelp.print(\"Closing server, waiting for workers to complete\");\r\n\t}",
"public void interrupt() {\n close();\n }",
"@Override\n protected void onStop() {\n \tsuper.onStop();\n \tthread.setThreadExit(true);\n \tthread = null;\n \t\n }",
"public synchronized void stop(){\n\t\tthis.running = false;\n\t\ttry {\n\t\t\tthis.thread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public synchronized void closeAllConnections() {\n\t\tstop();\n\t}",
"public void close()\n {\n synchronized (m_lock)\n {\n // We are closed hence, decouple all threads from the pool\n for (int i = 0; i < m_pool.length; i++)\n {\n if (null != m_pool[i])\n {\n m_pool[i].release();\n \n m_pool[i] = null;\n }\n }\n \n m_closed = true;\n }\n }",
"public void stop() {\n closed.set(true);\n consumer.wakeup();\n }",
"public void close() {\n socket.close();\n game.close();\n this.running = false;\n }",
"@Override\n\tpublic void destroy() {\n\t\tif( null != mLooper ) {\n\t\t\tmLooper.quit();\n\t\t\tmLooper = null;\n\t\t\tmThread = null;\n\t\t}\n\t}",
"public void stop() {\n executor.shutdownNow();\n rescanThread.interrupt();\n }",
"public void close() {\n\t\tthis.isLoop = false;\n\t\tplayer.close();\n\t\tthis.interrupt();\n\t}",
"public void terminate () {\n for (int i=0; i<threads; i++) {\n servers[i].terminate ();\n }\n }",
"public synchronized void shutdown() {\n try {\n stop();\n } catch (Exception ex) {\n }\n \n try {\n cleanup();\n } catch (Exception ex) {\n }\n }",
"public void stop() {\n setClosedLoopControl(false);\n }",
"@Override\n public void stop() {\n Thread t = new Thread(server::stopOrderProcess);\n t.setName(\"Server close task\");\n t.start();\n serverFrame.enableControls(false, false);\n enableControls(false, false);\n }",
"public synchronized void close() {\r\n\r\n\t\tif (done) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tdone = true;\r\n\r\n\t\tabortScheduledTasks();\r\n\t}",
"public void shutDown()\n\t{\n\t\tthis.threadPool.shutdown();\n\t}",
"public void close() {\n this.consoleListenerAndSender.shutdownNow();\n this.serverListenerAndConsoleWriter.shutdownNow();\n try {\n this.getter.close();\n this.sender.close();\n this.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void stop() {\n thread.interrupt();\n }",
"private void dispose() {\n\t\t\t\r\n\t\t\tif (TRACE) {\r\n\t\t\t\tSystem.out.println(\"Disposing thread \" + workerNo);\r\n\t\t\t}\r\n\t\t\tcontrolLock.lock();\r\n\t\t\ttry {\r\n\t\t\t\tthreads.remove(thread.getId());\r\n\t\t\t}\r\n\t\t\tfinally {\r\n\t\t\t\tcontrolLock.unlock();\r\n\t\t\t}\r\n\t\t}",
"public abstract void stopThreads() throws IOException, InterruptedException;",
"public void close()\n {\n getConnectionManager().shutdown();\n }",
"public synchronized void stop() {\n\t\tif(!isRunning) return; //If the game is stopped, exit method\n\t\tisRunning = false; //Set boolean to false to show that the game is no longer running\n\t\t//Attempt to join thread (close the threads, prevent memory leaks)\n\t\ttry {\n\t\t\tthread.join();\n\t\t}\n\t\t//If there is an error, print the stack trace for debugging\n\t\tcatch(InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void stop() {\n stopped.set(true);\n if (this.currentThread != null) {\n this.currentThread.interrupt();\n this.currentThread = null;\n }\n }",
"@Override\n public void run() {\n stop();\n }",
"public void terminate(){\n running = false;\n }",
"@Override\n\tpublic void destroy() throws Exception\n\t{\n\t\tlog.debug(\"Shutdown threadpool\");\n\t\tpool.shutdownNow(); // disable new tasks from being submitted and interrupt running threads.\n\n\t\t// Wait briefly for tasks to respond to being cancelled\n\t\tif (!pool.awaitTermination(1, TimeUnit.SECONDS))\n\t\t{\n\t\t\tlog.error(\"Threads still running\");\n\t\t}\n\t\tsuper.destroy();\n\t\tlog.debug(\"Leaving servlet destroy\");\n\t}",
"public void close() {\n\t\tif (isClosed()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tsynchronized (waitingThreads) {\n\t\t\tfor (Handler thread : waitingThreads) {\n\t\t\t\tsynchronized (thread) {\n\t\t\t\t\tthread.notify();\n\t\t\t\t\tthread.close();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\twaitingThreads.clear();\n\t\t}\n\n\t\ttry {\n\t\t\tss.close();\n\t\t} catch (IOException ignore) {\n\t\t\t// ignore\n\t\t}\n\n\t\tclosed = Boolean.TRUE;\n\t}",
"@Override\r\n public void close() {\r\n\tsaveZip();\r\n\tsetChanged();\r\n\tnotifyObservers(\"shutting down\");\r\n\tthreadpool.shutdown();\r\n\t// wait 10 seconds over and over again until all running jobs have\r\n\t// finished\r\n\ttry {\r\n\t boolean allTasksCompleted = false;\r\n\t while (!(allTasksCompleted = threadpool.awaitTermination(10, TimeUnit.SECONDS)))\r\n\t\t;\r\n\t setChanged();\r\n\t notifyObservers(\"Server is safely closed\");\r\n\t} catch (InterruptedException e) {\r\n\t e.printStackTrace();\r\n\t}\r\n }",
"public void stopThread() \n {\n \tthis.exit = true;\n \t//ctr.getMemory().programmcounter = 65536;\n }",
"public void shutdown() {\n\t\tthreadPool.shutdown();\n\t}",
"public void closePool() {\n threadPool.destroy();\n }",
"public void stop() {\n thread.interrupt();\n }",
"public void stop()\n\t{\n\t\trunning = false;\n\t}",
"public void stopThreads() {\n int i;\n Thread[] thGroup;\n Thread t;\n\n thGroup = new Thread[Thread.activeCount()];\n Thread.enumerate(thGroup);\n\n for (i = 0; i < thGroup.length; i++) {\n t = thGroup[i];\n if (t != null) {\n if (t != Thread.currentThread()) {\n if (t.getName().startsWith(\"Thread\"))\n t.stop();\n else if (t.getName().startsWith(\"AWT-EventQueue\"))\n t.stop();\n }\n }\n }\n\n thGroup = null;\n\n System.gc();\n }",
"public void stop() {\n mSelf.stop();\n }",
"public void close()\n {\n done = true;\n wakeup();\n // TODO: if needed, use a CountdownLatch to sync...\n }",
"public void stop() {\n\t\trunning = false;\n\t\tfor (ArionumHasher hasher : hashers) {\n\t\t\thasher.setForceStop(true);\n\t\t}\n\n\t\tthreadCollection.clear();\n\t\thashers.clear();\n\t}",
"public void stop() {}",
"public synchronized void stop() {\n\t\tif (!isStart) {\n\t\t\tthrow new IllegalStateException();\n\t\t}\n\t\tfor (LoopThread l : thread) {\n\t\t\tl.finnish();\n\t\t}\n\t\tint activeCount;\n\t\tdo{\n\t\t\tactiveCount = 0;\n\t\t\tfor(LoopThread l : thread){\n\t\t\t\tif(l.isAlive()){\n\t\t\t\t\tactiveCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t} while (activeCount > 0);\n\t\t\n\t}",
"public void stop() {\n isRunning = false;\n\n mReadLogsHandler = null;\n if (mReadLogThread != null) {\n final Thread inherited = mReadLogThread;\n mReadLogThread = null;\n inherited.interrupt();\n }\n\n IOUtilities.closeStream(reader);\n }",
"public void destroy() {\n this.running = false;\n\n try {\n this.join();\n } catch (InterruptedException e) {\n RayonCore.LOGGER.error(\"Error joining \" + getName());\n e.printStackTrace();\n }\n }",
"public void stop() {\n _running = false;\n }",
"public void closeClick() {\n timeline.stop();\n threadWorker.shutDownExecutor();\n Platform.exit();\n }",
"public void terminate () {\n\t\t\t\n\t\t\tsynchronized (runningLock) {\n\t\t\t\tif (running == false)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\trunning = false;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tinputStream.close ();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println (\"ModemWorker.teminate(): IOException on close().\");\n\t\t\t}\n\t\t}",
"public void stop() {\r\n running = false;\r\n }",
"public void close() {\n\t\tSystem.out.println(\"Scraper terminated\");\n\t}",
"@Override\n public void stopThread() {\n Log.d(TAG, \"Stopping \" + getName() + \" thread!\");\n running = false;\n doStopAction();\n boolean retry = true;\n while (retry) {\n try {\n join();\n retry = false;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }",
"public synchronized void stop() {\r\n\t\t//TODO read why stop is deprecated http://docs.oracle.com/javase/1.5.0/docs/guide/misc/threadPrimitiveDeprecation.html\r\n\t\tif (udplistener != null) {\r\n\t\t\tudplistener.datagramSocket.close();\r\n\t\t\tudpthread.stop();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tif (tcplistener != null) {\r\n\t\t\t\ttcplistener.serverSocket.close();\r\n\t\t\t\ttcpthread.stop();\r\n\t\t\t}\r\n\t\t} catch (IOException e) {e.printStackTrace();}\t\t\r\n\t}",
"public void stop();",
"public void stop();",
"public void stop();",
"public void stop();"
]
| [
"0.7514898",
"0.72936183",
"0.72403526",
"0.7172825",
"0.7121503",
"0.7010123",
"0.7001867",
"0.6957425",
"0.6880942",
"0.6855762",
"0.6813037",
"0.6795051",
"0.6795003",
"0.67844486",
"0.67825234",
"0.6741837",
"0.6726887",
"0.67142636",
"0.67024887",
"0.6694227",
"0.6691575",
"0.6690232",
"0.6682417",
"0.6662859",
"0.66611886",
"0.66475916",
"0.66322565",
"0.6625864",
"0.6618781",
"0.6608436",
"0.66062874",
"0.66003454",
"0.65881926",
"0.65702236",
"0.6565316",
"0.6562325",
"0.65582055",
"0.6554177",
"0.654988",
"0.65475035",
"0.65402293",
"0.65387756",
"0.65321034",
"0.6526851",
"0.65228105",
"0.6508794",
"0.6489212",
"0.64882565",
"0.64808035",
"0.64798474",
"0.6478512",
"0.64750344",
"0.6473145",
"0.64689153",
"0.6467758",
"0.64633054",
"0.6461031",
"0.6457571",
"0.64387447",
"0.6436087",
"0.6426935",
"0.6421205",
"0.6416156",
"0.641242",
"0.64064777",
"0.6402722",
"0.64016724",
"0.639655",
"0.63964653",
"0.6383186",
"0.63825756",
"0.63623065",
"0.6361428",
"0.6360567",
"0.63596755",
"0.6356337",
"0.63559157",
"0.63538253",
"0.63538235",
"0.63482624",
"0.6346366",
"0.63438714",
"0.6341584",
"0.63387114",
"0.6327485",
"0.63130224",
"0.6308949",
"0.6293615",
"0.62831914",
"0.62830144",
"0.62822706",
"0.6282016",
"0.6280133",
"0.6278901",
"0.6278733",
"0.6277947",
"0.6276",
"0.6276",
"0.6276",
"0.6276"
]
| 0.6411439 | 64 |
TODO Autogenerated method stub | @Override
public synchronized void close()
{
super.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
]
| [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
]
| 0.0 | -1 |
Constructs a new separator control. | public SeparatorControl() {
_separator = new JSeparator();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SeparatorControl(int orientation) {\n _separator = new JSeparator(orientation);\n }",
"private Label createSeparator(Composite parent) {\n \t\tLabel separator= new Label(parent, SWT.NONE);\n \t\tseparator.setVisible(false);\n \t\tGridData gd= new GridData();\n \t\tgd.horizontalAlignment= GridData.FILL;\n \t\tgd.verticalAlignment= GridData.BEGINNING;\n \t\tgd.heightHint= 4;\n \t\tseparator.setLayoutData(gd);\n \t\treturn separator;\n \t}",
"private Line createSeparator(int length){\n\n Line sep = new Line();\n sep.setEndX(length);\n sep.setStroke(Color.DARKGRAY);\n return sep;\n\n }",
"private void createDelimiterPart() {\n\t\t//------------------------------------------------\n\t\t// Delimiter Label & Combo\n\t\t//------------------------------------------------\n\t\tLabel delimiterLabel = new Label(generalSettingsGroup, SWT.NONE);\n\t\tdelimiterLabel.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1));\n\t\tdelimiterLabel.setText(\"Result Delimiter:\");\n\t\t\n\t\tdelimiterDeco = new ControlDecoration(delimiterLabel, SWT.LEFT | SWT.TOP);\n\t\tdelimiterDeco.setImage(SWTResourceManager.getImage(GeneralSettingsGroup.class, \"/org/eclipse/jface/fieldassist/images/info_ovr.gif\"));\n\t\tdelimiterDeco.setDescriptionText(\"Choose the delimiter used in the result file.\");\n\t\t\n\t\tdelimiterCombo = new Combo(generalSettingsGroup, SWT.NONE);\n\t\tdelimiterCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 2, 1));\n\t\tdelimiterCombo.setItems(delimiterMap.keySet().toArray(new String[delimiterMap.size()]));\n\t\tdelimiterCombo.select(1);\n\t\t\n\t\tRegexCompilableValidator delimiterValidator = \n\t\t\t\tnew RegexCompilableValidator(delimiterLabel, SWT.BOTTOM | SWT.LEFT) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String getStringToValidate() {\n\t\t\t\t\t\treturn delimiterCombo.getText();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t\n\t\tdelimiterCombo.addModifyListener(delimiterValidator);\n\t\tdelimiterValidator.setTag(\"ALWAYS\");\n\t\tCSVComparatorGUI.getValidatorEngine().addValidator(delimiterValidator);\n\t}",
"private void addSeparator() {\n JSeparator separator = new JSeparator( SwingConstants.VERTICAL );\n separator.setPreferredSize( new Dimension( 2, 24 ) );\n toolPanel.add(separator);\n\t}",
"private JSeparator getSepView1() {\r\n\t\tif (sepView1 == null) {\r\n\t\t\tsepView1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepView1;\r\n\t}",
"String getSeparator();",
"public Component getComponent() {\n return _separator;\n }",
"private JSeparator getSepViewGoTo1() {\r\n\t\tif (sepViewGoTo1 == null) {\r\n\t\t\tsepViewGoTo1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepViewGoTo1;\r\n\t}",
"public String getSeparator() {\n\t\treturn separator;\n\t}",
"@Override\n\tpublic String getSeparator() {\n\t\treturn null;\n\t}",
"public String getLineSeparator();",
"public void addSeparator() {\n\t\tmenuToolBar.addSeparator();\n\t}",
"public String getSeparator() {\n\t\treturn mSeparator;\n\t}",
"private void addHorizontalSeparator(TableLayout tableLayout){\n View view = new View(getApplicationContext());\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, 1));\n view.setBackgroundColor(Color.rgb(50, 50, 50));\n tableLayout.addView(view);\n }",
"public final native void setLabelSeparator(String labelSeparator) /*-{\r\n\t\tthis.labelSeparator = labelSeparator;\r\n\t}-*/;",
"static void afficherLigneSep(int taille) {\n System.out.print(\" \");\n for (int i = 0; i < taille - 1; i++) {\n System.out.print(\"---+\");\n }\n System.out.println(\"---\");\n }",
"protected String getSeparator() {\n return isNewLineParameters() ? NEW_LINE_SEPARATOR : ONE_LINE_SEPARATOR;\n }",
"public void setSeparator(String separator) {\n\t\tthis.separator = separator;\n\t}",
"public ControlSpacer(int width, int height)\n {\n myWidth = width;\n myHeight = height;\n }",
"public static void buildSeparator(StringBuilder sb, int lineLength) {\n sb.append(\"-\".repeat(Math.max(0, lineLength)));\n sb.append(\"\\n\");\n }",
"protected void drawSeparator(Graphics g,int x,int y,int w,int h)\n {\n g.setColor(new Color(0x868686));\n g.drawLine(x+0,y+0,x+w-1,y+0);\n g.drawLine(x+0,y+0,x+0,y+1);\n g.drawLine(x+w-1,y+0,x+w-1,y+1);\n g.setColor(Color.black);\n g.drawLine(x+1,y+1,x+w-2,y+1);\n\n g.setColor(new Color(0x868686));\n g.drawLine(x+0,y+0,x+0,y+h-1);\n g.setColor(Color.black);\n g.drawLine(x+1,y+1,x+1,y+h-1);\n\n g.setColor(new Color(0xD7D3CB));\n g.drawLine(x+0,y+h-1,x+w-1,y+h-1);\n\n g.setColor(new Color(0xD7D3CB));\n g.drawLine(x+w-1,y+1,x+w-1,y+h-1);\n }",
"private void printSeparator() {\r\n\t\tthis.printLineGap();\r\n\t}",
"private JSeparator getSepBookmark1() {\r\n\t\tif (sepBookmark1 == null) {\r\n\t\t\tsepBookmark1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepBookmark1;\r\n\t}",
"private ELOperandToken readSeparatorToken() {\r\n \t\tfState = STATE_SEPARATOR;\r\n \t\tint ch = readCharBackward();\r\n \t\t\r\n \t\treturn (ch == '.' ? new ELOperandToken(index, 1, getCharSequence(index, 1), ELOperandToken.EL_SEPARATOR_TOKEN) :\r\n \t\t\tELOperandToken.EOF);\r\n \t}",
"Border createBorder();",
"public LineBorderPanel()\n {\n\tthis(null);\n }",
"public Integer getSep() {\n return sep;\n }",
"private javax.swing.JLabel getJLabelDivider() {\n\tif (JLabelDivider == null) {\n\t\ttry {\n\t\t\tJLabelDivider = new javax.swing.JLabel();\n\t\t\tJLabelTitle.setName(\"JLabelDivider\");\n\t\t\tJLabelDivider.setText(\" \");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\treturn JLabelDivider;\n}",
"public MenuBox(ArrayList<MenuItem> items) {\n getChildren().add(createSeparator(270));\n\n for(MenuItem item : items) {\n getChildren().addAll(item, createSeparator(270));\n }\n }",
"public MenuBox(MenuItem...items){\n\n //getChildren().add(createSeparator(210));\n\n for (MenuItem item : items){\n getChildren().addAll(item, createSeparator(210));\n }\n\n }",
"private JSeparator getSepFile1() {\r\n\t\tif (sepFile1 == null) {\r\n\t\t\tsepFile1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepFile1;\r\n\t}",
"private static Set<Character> createSeparators() {\r\n Set<Character> separators = new Set1L<>();\r\n final char[] arrayOfSeps = { '!', ',', '.', ' ', '\"', ';', ':', '(',\r\n ')', '?', '/', '-' };\r\n //Above: array of chosen separators to be read into a Set<Character>\r\n\r\n for (int i = 0; i < arrayOfSeps.length; i++) {\r\n separators.add(arrayOfSeps[i]);\r\n }\r\n return separators;\r\n }",
"private String createDashedLine(){\n return \"- \".repeat(Math.max(0, this.columns));\n }",
"public JsonFactory setRootValueSeparator(String sep)\n/* */ {\n/* 696 */ this._rootValueSeparator = (sep == null ? null : new SerializedString(sep));\n/* 697 */ return this;\n/* */ }",
"public String getPatternSeparator()\r\n\t{\r\n\t\treturn patternSeparator;\r\n\t}",
"public void setSeparator(String s) {\n\t\tseparator = s;\n\t}",
"public static void printSeparator() {\n\t\tfor (int i = 1; i <= 7; i++) {\n\t\t\tSystem.out.print(\"+\");\n\t\t\tfor (int j = 1; j <= 5; j++) {\n\t\t\t\tSystem.out.print(\"-\");\n\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println(\"+\");\n\n\t}",
"private static void printSeparatorLine() {\r\n System.out.print(\"\\n----------------------------------------------------------\" +\r\n \"----------------------------------------------------------\");\r\n }",
"public void setGroupingSeparator(AVT v)\n {\n m_groupingSeparator_avt = v;\n }",
"@Override\n\tprotected String getItemSeparator() {\n\t\treturn SVG_PATHSEG_LIST_SEPARATOR;\n\t}",
"@Override\r\n\tpublic String createHeader(String separator) {\n\t\treturn \"M1022C8\" + separator + \"M1022C7\" + separator + \"M1022C183\" + separator + \"M1022C31\" + separator + \"M1022C195\" + separator + \"M1022C32\"\r\n\t\t\t\t+ separator + \"M1022C210\" + separator + \"M1022C68\" + separator + \"M1022C67\" + separator + \"M1022C62\" + separator + \"M1022C61\" + separator\r\n\t\t\t\t+ \"M1022C213\" + separator + \"M1022C204\" + separator + \"M1022C62\" + separator + \"M1022C68\" + separator + \"M1022C61\" + separator + \"M1022C210\"\r\n\t\t\t\t+ separator + \"M1022C49\" + separator + \"M1022C67\" + separator + \"M1022C213\" + separator + \"M1022C49\";\r\n\t}",
"protected boolean isSeparator(char c) {\n return c == SEPARATOR;\n }",
"public void setDefaultExtractLineSeparator (String linesep);",
"public QueueSeparator(double topX, double topY, double width, double height) {\n\t\tsuper(topX, topY, width, height);\n\t}",
"@SuppressWarnings(\"unchecked\")\n public void insertarLineaSeparacion() {\n Tag hr = new Tag(\"hr\");\n hr.addAttribute(new Attribute(\"style\", \"width: 100%; height: 2px;\"));\n // <hr style=\"width: 100%; height: 2px;\">\n body.add(hr);\n }",
"public MyDialog dividerColor(int dividerColor) {\n this.mDividerColor = dividerColor;\n return this;\n }",
"public void separator() {\n LOGGER_BASE.separator();\n }",
"public abstract char getCustomDelimiter();",
"public abstract void setDividerLocation(JSplitPane jc, int location);",
"protected void addSpacer() {\r\n\t\tadd(new JPanel());\r\n\t}",
"public CssBorderWidth() {\n }",
"java.lang.String getCustomBreak();",
"protected static boolean isSeparator(int c) {\n return (c == -1 || SEPARATORS.indexOf(c) != -1);\n }",
"@Override\n public JComponent createPane() {\n\n JSplitPane jSplitPane = new JSplitPane();\n\n jSplitPane.setLeftComponent(new JButton(\"左边按钮\"));\n jSplitPane.setRightComponent(new JButton(\"右边按钮\"));\n\n jSplitPane.setOneTouchExpandable(false);\n\n jSplitPane.setContinuousLayout(false);\n jSplitPane.setDividerLocation(150);\n\n// jPanel.add(jSplitPane);\n return jSplitPane;\n }",
"private void createCanvasBorders() {\n\n\t\tLabel lblBorderMiddle = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderMiddle.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\t\tlblBorderMiddle.setBounds(0, 72, 285, 2);\n\n\t\tLabel lblBorderBottom = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderBottom.setBounds(0, 198, 285, 2);\n\t\tlblBorderBottom.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderLeft = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderLeft.setBounds(0, 0, 2, 200);\n\t\tlblBorderLeft.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderRight = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderRight.setBounds(283, 0, 2, 200);\n\t\tlblBorderRight.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\n\t\tLabel lblBorderTop = new Label(canvasLabel, SWT.NONE);\n\t\tlblBorderTop.setBounds(0, 0, 285, 2);\n\t\tlblBorderTop.setBackground(ResourceUtils.getColor(iDartColor.BLACK));\n\t}",
"public interface SeparatorArbitrator {\n\n /**\n * Choose the separator renderer to use when there is a possible conflict.\n *\n * <p>Although either of the separators may be null, it is not permitted\n * for them both to be so.</p>\n *\n * <p>If this method is supplied with a single separator then it simply\n * decides whether a renderer should be used or not. If supplied with two\n * then it can either choose one of the renderers, no renderer or create\n * some sort of compromise renderer.</p>\n *\n * @param manager The manager requesting arbitration.\n * @param first The first separator, may be null.\n * @param second The second separator, may be null.\n * @param decision Updated to reflect the arbitrator's decision.\n */\n/*\n public void betweenSeparators(SeparatorManager manager,\n SeparatorRenderer first,\n SeparatorRenderer second,\n ArbitratorDecision decision);\n*/\n\n /**\n * Choose the separator renderer to use after the content.\n * @param manager The manager requesting arbitration.\n * @param content The content that precedes the renderer. If null then this\n * indicates that no content has been rendered before the separator.\n * @param separator The renderer, may be null.\n * @param decision Updated to reflect the arbitrator's decision.\n */\n/*\n public void afterContent(SeparatorManager manager,\n SeparatedContent content,\n SeparatorRenderer separator,\n ArbitratorDecision decision);\n*/\n\n /**\n * Choose the separator renderer to use before the content.\n *\n * <p>This method must never defer the separator, it must always either use\n * it or ignore it.</p>\n *\n * @param manager The manager requesting arbitration.\n * @param separator The renderer, may be null.\n * @param content The content that will follow the renderer. If null then\n * this indicates that no content will be rendered after the separator.\n * @param decision Updated to reflect the arbitrator's decision.\n */\n/*\n public void beforeContent(SeparatorManager manager,\n SeparatorRenderer separator,\n SeparatedContent content,\n ArbitratorDecision decision);\n*/\n\n /**\n * The arbitrator must decide what the manager should do with the\n * deferred separator.\n *\n * @param manager\n * @param decision\n */\n public void decide(SeparatorManager manager,\n ArbitratorDecision decision);\n}",
"@Accessor(qualifier = \"fieldSeparator\", type = Accessor.Type.SETTER)\n\tpublic void setFieldSeparator(final Character value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(FIELDSEPARATOR, value);\n\t}",
"private String getSeparator(List<String> file)\n {\n String line = file.get(0);\n \n if (line.contains(\" \") || line.contains(\" ,\")) {\n /* for these delimeters the \"data\" and \"quantidade\" column are not\n * separated correctly, so we need to add one space to support them.\n */\n for (int i = 0; i < file.size(); i++) {\n String l = file.get(i);\n String a = l.substring(0, 16);\n String b = l.substring(16, l.length() - 1);\n file.set(i, a + \" \" + b);\n }\n }\n\n return FileUtil.SEPARATOR(line);\n }",
"public CSVList()\n\t{\n\t\tsuper(sepReg, sep);\n\t}",
"private String generateHorizontalDivider(Table inputTable) {\n StringBuilder horDivBuilder = new StringBuilder();\n for (int i = 0; i < inputTable.getColumnSize(); i++) {\n horDivBuilder.append(X_DIV);\n for (int j = 0; j < getColWidth(i) + XPADD; j++) {\n horDivBuilder.append(H_DIV);\n }\n }\n horDivBuilder.append(X_DIV + NEWLN);\n return horDivBuilder.toString();\n }",
"public DivisionJSP() {\r\n\t\tsetBackground(Color.WHITE);\r\n\t\tsetOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\t\tsetDividerLocation(SPLIT_POSITION);\r\n\t\tsetElements();\r\n\t}",
"private static MessageHeader createBreakHeader() {\n\n\t\tObject[] iov = new Object[1];\n\t\tiov[0] = JALP_BREAK_STR;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}",
"public String getSourceLineSeparator ();",
"public void setExtractLineSeparator (String linesep);",
"public String getDefaultExtractLineSeparator ();",
"private static String appendSeparatorLine(String left, String middle, String right, int padding, int... sizes) {\n boolean first = true;\n StringBuilder ret = new StringBuilder();\n for (int size : sizes) {\n if (first) {\n first = false;\n ret.append(left).append(Strings.repeat(\"-\", size + padding * 2));\n } else {\n ret.append(middle).append(Strings.repeat(\"-\", size + padding * 2));\n }\n }\n return ret.append(right).append(BotConfig.EOL).toString();\n }",
"private Token scanNewlineSeparator() {\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n c = in.read();\n return new Token(\"\\n\", TokenType.SEPARATOR, pos);\n }",
"private Pane createSpacer(){\n Pane spacer = new Pane();\n HBox.setHgrow(\n spacer,\n Priority.SOMETIMES\n );\n return spacer;\n }",
"private void addEspace() {\n simplePanel.add(new JLabel(\"\"));\n }",
"public QueueSeparator(double x0, double x1, double x2, double x3, double y0, double y1, double y2, double y3) {\n\t\tsuper(x0, x1, x2, x3, y0, y1, y2, y3);\n\t}",
"public void setDefaultSourceLineSeparator (String linesep);",
"public boolean noSeparator(){\n return separator == EMPTY_CHAR;\n }",
"public void setSep(Integer sep) {\n this.sep = sep;\n }",
"public String getFieldSeparator()\n\t{\n\t\treturn fieldSeparator;\n\t}",
"public Token delimiterMachine (int character) throws IOException {\n\t\tFileManipulator fileManipulator = FileManipulator.getInstance();\n\t\t// Variáveis de apoio\n\t\tString tokenValue = \"\";\n\t\ttokenValue += (char) character;\n\t\treturn new DelimiterToken(tokenValue, fileManipulator.getLineCounter(), fileManipulator.getColumnCounter());\n\t}",
"public AVT getGroupingSeparator()\n {\n return m_groupingSeparator_avt;\n }",
"CamelCaseKeyTranslator(String sep) {\n\t\tthis.separator = sep;\n\t}",
"@Override\n public void layout(LayoutContext lc) {\n //String s = new String(text);\n setFont(style.getFont());\n\n if (style.hasInitialValues()) {\n if (style.isDisjoint) {\n lc.disjoin();\n }\n Style.Header h = style.getHeader();\n if (h != null) {\n h.setFont(font);\n if (openIdent) {\n lc.setIdentation(style.indent, true);\n }\n parent.add((Control) h, lc.nextX, lc.nextY);\n lc.update(h.getWidth());\n }\n }\n\n boolean isPRE = style.alignment == Style.ALIGN_NONE;\n if (isPRE) {\n makePreformattedLines(lc);\n } else {\n makeLines(lc);\n }\n\n boolean disjoin = isPRE;\n boolean wasDisjoin = lc.lastStyle != null && lc.lastStyle.alignment == Style.ALIGN_NONE;\n lc.lastStyle = style;\n\n if (disjoin && wasDisjoin) {\n disjoin = false;\n } else if (!disjoin && wasDisjoin) {\n disjoin = true;\n }\n\n //debug(lc,style,new String(text));\n if (disjoin) {\n lc.disjoin();\n } else if (!disjoin && wasDisjoin) {\n lc.update(0);\n }\n if (finishIdent) {\n lc.setIdentation(0, false);\n }\n }",
"public GriddedPanel() {\n this(new Insets(2, 2, 2, 2));\n\n }",
"public Log nuevaLinea() {\n cadenas.add(\"\\n\");\n return this;\n }",
"public String getLineSeparator() {\n return lineSeparator;\n }",
"public void setSourceLineSeparator (String linesep);",
"public LineBorderPanel(LayoutManager layoutManager)\n {\n\tsuper(layoutManager);\n\n\t_childMouseListener = new ChildMouseListener();\n\taddMouseListener(new PanelMouseListener());\n\tsetBorderColor(getNormalBorderColor());\n }",
"private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(720, 480);\n\t\tshell.setText(\"1FN Normalization\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tcomposite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));\n\t\tcomposite.setLayout(new GridLayout(5, false));\n\t\tlblSeparators = new Label(composite, SWT.NONE);\n\t\tlblSeparators.setText(\"Separators:\");\n\t\tcomposite_1 = new Composite(composite, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(5, false));\n\t\tcomposite_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));\n\t\tchk1 = new Button(composite_1, SWT.CHECK);\n\t\tchk1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk1widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk1.setSelection(true);\n\t\tchk1.setText(\";\");\n\t\tchk2 = new Button(composite_1, SWT.CHECK);\n\t\tchk2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk2widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk2.setSelection(true);\n\t\tchk2.setText(\"cr\");\n\t\tchk3 = new Button(composite_1, SWT.CHECK);\n\t\tchk3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk3widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk3.setText(\",\");\n\t\tchk4 = new Button(composite_1, SWT.CHECK);\n\t\tchk4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk4widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk4.setText(\"space\");\n\t\tchk5 = new Button(composite_1, SWT.CHECK);\n\t\tchk5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk5widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk5.setText(\".\");\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\t\tlblColumn = new Label(composite, SWT.NONE);\n\t\tlblColumn.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));\n\t\tlblColumn.setText(\"Column:\");\n\t\tlstColumn = new List(composite, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\n\t\tlstColumn.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdolstColumnwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tGridData gd_lstColumn = new GridData(SWT.LEFT, SWT.FILL, false, true, 4, 1);\n\t\tgd_lstColumn.widthHint = 150;\n\t\tgd_lstColumn.heightHint = 80;\n\t\tlstColumn.setLayoutData(gd_lstColumn);\n\t\tlblMethod = new Label(composite, SWT.NONE);\n\t\tlblMethod.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblMethod.setText(\"Method:\");\n\t\tcheckSingle = new Button(composite, SWT.RADIO);\n\t\tcheckSingle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdocheckSinglewidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tcheckSingle.setText(\"Single Table (Recommended)\");\n\t\tchkMulti = new Button(composite, SWT.RADIO);\n\t\tchkMulti.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochkMultiwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchkMulti.setText(\"Multi table\");\n\t\tlblNewTableName = new Label(composite, SWT.NONE);\n\t\tlblNewTableName.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblNewTableName.setText(\"New table name: \");\n\t\ttxtNewTableName = new Text(composite, SWT.BORDER);\n\t\ttxtNewTableName.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tdotxtNewTableNamemodifyText(arg0);\n\t\t\t}\n\t\t});\n\t\ttxtNewTableName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tlblActual = new Label(shell, SWT.NONE);\n\t\tlblActual.setText(\"Actual\");\n\t\tlblRefatored = new Label(shell, SWT.NONE);\n\t\tlblRefatored.setText(\"Refator\");\n\t\tmodelEditor1 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tGridData gd_modelEditor1 = new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1);\n\t\tgd_modelEditor1.widthHint = 250;\n\t\tmodelEditor1.setLayoutData(gd_modelEditor1);\n\t\tmodelEditor2 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tmodelEditor2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tbtnConfirm = new Button(shell, SWT.NONE);\n\t\tbtnConfirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdobtnConfirmwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tbtnConfirm.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 2, 1));\n\t\tbtnConfirm.setText(\"Confirm\");\n\t\ttxtNewTableName.setEnabled(false);\n\t}",
"public BibFileFormatter() {\n this(\" \");\n }",
"public Bordereau() {\n\t\tsuper();\n\t}",
"public Indent()\n {\n this(\" \", 0);\n }",
"JComponent makeSpacingBox(Vector spacings, String command,\n double selected) {\n String value;\n if (selected == (int) selected) {\n value = (\"\" + (int) selected);\n } else {\n value = (\"\" + selected);\n }\n if ( !spacings.contains(value)) {\n spacings.add(value);\n }\n JComboBox jcb = new JComboBox(spacings);\n jcb.setSelectedItem(value);\n jcb.setEditable(true);\n jcb.addActionListener(this);\n jcb.setActionCommand(command);\n return GuiUtils.wrap(jcb);\n }",
"Rule ListSeparator() {\n // No effect on value stack\n return Sequence(AnyOf(\",;\"), WhiteSpace());\n }",
"public NewTextLineCodecFactory(String charset,String encodingDelimiter, String decodingDelimiter){\n\t\tsuper(Charset.forName(charset),encodingDelimiter,decodingDelimiter);\n\t}",
"public String getExtractLineSeparator ();",
"public String getDefaultSourceLineSeparator ();",
"public static StringSplit newSplit(int start) {\n return new StringSplit(start, END_OF_LINE, WordCase.NO_CASE, false);\n }",
"private JSplitPane getButtonSplitPane() {\n\t\tif (buttonSplitPane == null) {\n\t\t\tbuttonSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\n\t\t\t\t\tgetDirectoryPanel(), getFilePanel());\n\t\t\tbuttonSplitPane.setMinimumSize(new Dimension(50, 0));\n\t\t\tbuttonSplitPane.setDividerSize(0);\n\t\t\tbuttonSplitPane.setContinuousLayout(true);\n\t\t\tbuttonSplitPane.setDividerLocation(298);\n\t\t\tbuttonSplitPane.setEnabled(false);\n\t\t}\n\t\treturn buttonSplitPane;\n\t}",
"public void setLineSeparator(String separator) {\r\n defaultFormat.lineSeparator = separator;\r\n }",
"protected String getLastSeparator() {\n return \"and\";\n }",
"public GoalViewer()\r\n/* 25: */ {\r\n/* 26: 28 */ setBorder(BorderFactory.createLineBorder(Color.BLACK));\r\n/* 27: */ }",
"public KLabelMultiline() {\n // TODO codavaj!!\n }",
"public static void setFieldSeparator(char field) {\r\n\t\tfieldSep=\"\"+field;\r\n\t}"
]
| [
"0.75373137",
"0.74378777",
"0.7081592",
"0.65784407",
"0.649482",
"0.6350865",
"0.5971514",
"0.59701145",
"0.5924666",
"0.5891764",
"0.5764662",
"0.56633234",
"0.5540597",
"0.55313635",
"0.5496261",
"0.54942435",
"0.5470134",
"0.5449206",
"0.5445997",
"0.5419748",
"0.5391011",
"0.53669184",
"0.5364125",
"0.5315248",
"0.5292753",
"0.52708244",
"0.5268469",
"0.5229789",
"0.52092195",
"0.51637983",
"0.51495427",
"0.5130272",
"0.5105612",
"0.5088403",
"0.50827754",
"0.50580233",
"0.504549",
"0.50293404",
"0.5025232",
"0.5013312",
"0.5011435",
"0.50092447",
"0.4992344",
"0.49850243",
"0.49687418",
"0.4943146",
"0.49414575",
"0.49289906",
"0.49236536",
"0.49198842",
"0.48663363",
"0.4863758",
"0.48592687",
"0.4852075",
"0.48413137",
"0.4830388",
"0.48268944",
"0.48068437",
"0.4794567",
"0.4786172",
"0.47577986",
"0.47571653",
"0.4755756",
"0.47479618",
"0.47412053",
"0.47392592",
"0.47382548",
"0.4728559",
"0.47177714",
"0.47135141",
"0.4688509",
"0.4687778",
"0.46869028",
"0.4682446",
"0.4681863",
"0.46588683",
"0.46387884",
"0.4629953",
"0.46267578",
"0.46237004",
"0.46211222",
"0.46183363",
"0.46029526",
"0.46025118",
"0.4598377",
"0.4598225",
"0.45944762",
"0.45918438",
"0.45862502",
"0.45775312",
"0.4576797",
"0.45754868",
"0.45609617",
"0.45560881",
"0.45551714",
"0.45513046",
"0.45434445",
"0.45381978",
"0.45342478",
"0.453203"
]
| 0.8244658 | 0 |
Constructs a new separator control with the specified orientation. | public SeparatorControl(int orientation) {
_separator = new JSeparator(orientation);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public SeparatorControl() {\n _separator = new JSeparator();\n }",
"private Label createSeparator(Composite parent) {\n \t\tLabel separator= new Label(parent, SWT.NONE);\n \t\tseparator.setVisible(false);\n \t\tGridData gd= new GridData();\n \t\tgd.horizontalAlignment= GridData.FILL;\n \t\tgd.verticalAlignment= GridData.BEGINNING;\n \t\tgd.heightHint= 4;\n \t\tseparator.setLayoutData(gd);\n \t\treturn separator;\n \t}",
"private Line createSeparator(int length){\n\n Line sep = new Line();\n sep.setEndX(length);\n sep.setStroke(Color.DARKGRAY);\n return sep;\n\n }",
"private void createDelimiterPart() {\n\t\t//------------------------------------------------\n\t\t// Delimiter Label & Combo\n\t\t//------------------------------------------------\n\t\tLabel delimiterLabel = new Label(generalSettingsGroup, SWT.NONE);\n\t\tdelimiterLabel.setLayoutData(new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1));\n\t\tdelimiterLabel.setText(\"Result Delimiter:\");\n\t\t\n\t\tdelimiterDeco = new ControlDecoration(delimiterLabel, SWT.LEFT | SWT.TOP);\n\t\tdelimiterDeco.setImage(SWTResourceManager.getImage(GeneralSettingsGroup.class, \"/org/eclipse/jface/fieldassist/images/info_ovr.gif\"));\n\t\tdelimiterDeco.setDescriptionText(\"Choose the delimiter used in the result file.\");\n\t\t\n\t\tdelimiterCombo = new Combo(generalSettingsGroup, SWT.NONE);\n\t\tdelimiterCombo.setLayoutData(new GridData(SWT.FILL, SWT.FILL, false, false, 2, 1));\n\t\tdelimiterCombo.setItems(delimiterMap.keySet().toArray(new String[delimiterMap.size()]));\n\t\tdelimiterCombo.select(1);\n\t\t\n\t\tRegexCompilableValidator delimiterValidator = \n\t\t\t\tnew RegexCompilableValidator(delimiterLabel, SWT.BOTTOM | SWT.LEFT) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic String getStringToValidate() {\n\t\t\t\t\t\treturn delimiterCombo.getText();\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t\t\n\t\tdelimiterCombo.addModifyListener(delimiterValidator);\n\t\tdelimiterValidator.setTag(\"ALWAYS\");\n\t\tCSVComparatorGUI.getValidatorEngine().addValidator(delimiterValidator);\n\t}",
"private JSeparator getSepView1() {\r\n\t\tif (sepView1 == null) {\r\n\t\t\tsepView1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepView1;\r\n\t}",
"private void addSeparator() {\n JSeparator separator = new JSeparator( SwingConstants.VERTICAL );\n separator.setPreferredSize( new Dimension( 2, 24 ) );\n toolPanel.add(separator);\n\t}",
"public TextController createOrientation(ControllerCore genCode) {\n\t\torientationTXT = new TextController(\"orientation\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(orientation$1LBL);\n\t\t\t\tsetProperty(\"orientation\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn orientationTXT;\n\t}",
"private JSeparator getSepViewGoTo1() {\r\n\t\tif (sepViewGoTo1 == null) {\r\n\t\t\tsepViewGoTo1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepViewGoTo1;\r\n\t}",
"public abstract void setDividerLocation(JSplitPane jc, int location);",
"public ControlSpacer(int width, int height)\n {\n myWidth = width;\n myHeight = height;\n }",
"private void addHorizontalSeparator(TableLayout tableLayout){\n View view = new View(getApplicationContext());\n view.setLayoutParams(new TableRow.LayoutParams(TableRow.LayoutParams.MATCH_PARENT, 1));\n view.setBackgroundColor(Color.rgb(50, 50, 50));\n tableLayout.addView(view);\n }",
"public DivisionJSP() {\r\n\t\tsetBackground(Color.WHITE);\r\n\t\tsetOrientation(JSplitPane.VERTICAL_SPLIT);\r\n\t\tsetDividerLocation(SPLIT_POSITION);\r\n\t\tsetElements();\r\n\t}",
"String getSeparator();",
"public Component getComponent() {\n return _separator;\n }",
"public String getSeparator() {\n\t\treturn separator;\n\t}",
"@Override\n public void createSplitter(final int orientation, @Nullable final FileEditorWindow window) {\n if (window != null) {\n window.split(orientation, true, null, false);\n }\n // otherwise we'll split the current window, if any\n else {\n final FileEditorWindow currentWindow = getSplitters().getCurrentWindow();\n if (currentWindow != null) {\n currentWindow.split(orientation, true, null, false);\n }\n }\n }",
"@Override\n\tpublic String getSeparator() {\n\t\treturn null;\n\t}",
"public interface SeparatorArbitrator {\n\n /**\n * Choose the separator renderer to use when there is a possible conflict.\n *\n * <p>Although either of the separators may be null, it is not permitted\n * for them both to be so.</p>\n *\n * <p>If this method is supplied with a single separator then it simply\n * decides whether a renderer should be used or not. If supplied with two\n * then it can either choose one of the renderers, no renderer or create\n * some sort of compromise renderer.</p>\n *\n * @param manager The manager requesting arbitration.\n * @param first The first separator, may be null.\n * @param second The second separator, may be null.\n * @param decision Updated to reflect the arbitrator's decision.\n */\n/*\n public void betweenSeparators(SeparatorManager manager,\n SeparatorRenderer first,\n SeparatorRenderer second,\n ArbitratorDecision decision);\n*/\n\n /**\n * Choose the separator renderer to use after the content.\n * @param manager The manager requesting arbitration.\n * @param content The content that precedes the renderer. If null then this\n * indicates that no content has been rendered before the separator.\n * @param separator The renderer, may be null.\n * @param decision Updated to reflect the arbitrator's decision.\n */\n/*\n public void afterContent(SeparatorManager manager,\n SeparatedContent content,\n SeparatorRenderer separator,\n ArbitratorDecision decision);\n*/\n\n /**\n * Choose the separator renderer to use before the content.\n *\n * <p>This method must never defer the separator, it must always either use\n * it or ignore it.</p>\n *\n * @param manager The manager requesting arbitration.\n * @param separator The renderer, may be null.\n * @param content The content that will follow the renderer. If null then\n * this indicates that no content will be rendered after the separator.\n * @param decision Updated to reflect the arbitrator's decision.\n */\n/*\n public void beforeContent(SeparatorManager manager,\n SeparatorRenderer separator,\n SeparatedContent content,\n ArbitratorDecision decision);\n*/\n\n /**\n * The arbitrator must decide what the manager should do with the\n * deferred separator.\n *\n * @param manager\n * @param decision\n */\n public void decide(SeparatorManager manager,\n ArbitratorDecision decision);\n}",
"@Override\n public JComponent createPane() {\n\n JSplitPane jSplitPane = new JSplitPane();\n\n jSplitPane.setLeftComponent(new JButton(\"左边按钮\"));\n jSplitPane.setRightComponent(new JButton(\"右边按钮\"));\n\n jSplitPane.setOneTouchExpandable(false);\n\n jSplitPane.setContinuousLayout(false);\n jSplitPane.setDividerLocation(150);\n\n// jPanel.add(jSplitPane);\n return jSplitPane;\n }",
"public abstract int getDividerLocation(JSplitPane jc);",
"public ControlSpacer(Dimension dimension)\n {\n myWidth = (int)dimension.getWidth();\n myHeight = (int)dimension.getHeight();\n }",
"static void afficherLigneSep(int taille) {\n System.out.print(\" \");\n for (int i = 0; i < taille - 1; i++) {\n System.out.print(\"---+\");\n }\n System.out.println(\"---\");\n }",
"public String getSeparator() {\n\t\treturn mSeparator;\n\t}",
"private Orientation() {\n }",
"public /* synthetic */ void lambda$new$0$Divider(int i, int i2, int i3, WindowContainerTransaction windowContainerTransaction) {\n int i4;\n if (this.mSplits.isSplitScreenSupported() && this.mWindowManagerProxy != null) {\n WindowContainerTransaction windowContainerTransaction2 = new WindowContainerTransaction();\n SplitDisplayLayout splitDisplayLayout = new SplitDisplayLayout(this.mContext, new DisplayLayout(this.mDisplayController.getDisplayLayout(i)), this.mSplits);\n splitDisplayLayout.rotateTo(i3);\n this.mRotateSplitLayout = splitDisplayLayout;\n if (!isDividerVisible()) {\n i4 = splitDisplayLayout.getSnapAlgorithm().getMiddleTarget().position;\n } else if (this.mMinimized) {\n i4 = this.mView.mSnapTargetBeforeMinimized.position;\n } else {\n i4 = this.mView.getCurrentPosition();\n }\n DividerSnapAlgorithm snapAlgorithm = splitDisplayLayout.getSnapAlgorithm();\n splitDisplayLayout.resizeSplits(DividerInjector.updateSnapTargetIfNeed(snapAlgorithm.calculateNonDismissingSnapTarget(i4), this.mContext, snapAlgorithm).position, windowContainerTransaction2);\n if (isSplitActive() && this.mHomeStackResizable) {\n WindowManagerProxy.applyHomeTasksMinimized(splitDisplayLayout, this.mSplits.mSecondary.token, windowContainerTransaction2);\n }\n if (this.mWindowManagerProxy.queueSyncTransactionIfWaiting(windowContainerTransaction2)) {\n Slog.w(\"Divider\", \"Screen rotated while other operations were pending, this may result in some graphical artifacts.\");\n } else {\n windowContainerTransaction.merge(windowContainerTransaction2, true);\n }\n }\n }",
"@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite top = new Composite(parent, SWT.NONE);\n\t\tFillLayout layout = new FillLayout(SWT.HORIZONTAL);\n\t\tlayout.marginHeight = 10;\n\t\ttop.setLayout(layout);\n\n\t\t// TabFolder\n\t\tCTabFolder tabFolder = new CTabFolder(top, SWT.BORDER);\n\t\ttabFolder.setSelectionBackground(Display.getCurrent().getSystemColor(\n\t\t\t\tSWT.COLOR_TITLE_INACTIVE_BACKGROUND_GRADIENT));\n\t\tGridLayout tabLayout = new GridLayout();\n\t\ttabLayout.marginHeight = 10;\n\t\ttabLayout.marginWidth = 10;\n\t\ttabLayout.verticalSpacing = 20;\n\t\ttabLayout.numColumns = 1;\n\t\ttabFolder.setLayout(tabLayout);\n\n\t\tnew MQTTTab(tabFolder, SWT.NONE, connection, eventService);\n\n\t\t// Tab Options\n\t\tnew OptionsTab(tabFolder, SWT.NONE, connection);\n\n\t\t// select the first tab by default\n\t\ttabFolder.setSelection(0);\n\t}",
"protected void addSpacer() {\r\n\t\tadd(new JPanel());\r\n\t}",
"public MyDialog dividerColor(int dividerColor) {\n this.mDividerColor = dividerColor;\n return this;\n }",
"private VBox vboxFormat() {\n VBox vbox = new VBox();\n // vbox.setAlignment(Pos.BASELINE_CENTER);\n vbox.setSpacing(10);\n vbox.setPadding(new Insets(20, 20, 20, 20));\n return vbox;\n }",
"private JSplitPane getButtonSplitPane() {\n\t\tif (buttonSplitPane == null) {\n\t\t\tbuttonSplitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,\n\t\t\t\t\tgetDirectoryPanel(), getFilePanel());\n\t\t\tbuttonSplitPane.setMinimumSize(new Dimension(50, 0));\n\t\t\tbuttonSplitPane.setDividerSize(0);\n\t\t\tbuttonSplitPane.setContinuousLayout(true);\n\t\t\tbuttonSplitPane.setDividerLocation(298);\n\t\t\tbuttonSplitPane.setEnabled(false);\n\t\t}\n\t\treturn buttonSplitPane;\n\t}",
"public CylinderPanel() {\n\t\t\n\t\trInput = new JLabel(\"R = \");\n\t\trInput.setAlignmentX(JLabel.RIGHT_ALIGNMENT);\n\t rInput.setHorizontalAlignment(JLabel.RIGHT);\n\t\thInput = new JLabel(\"H = \");\n\t\thInput.setAlignmentX(JLabel.RIGHT_ALIGNMENT);\n\t hInput.setHorizontalAlignment(JLabel.RIGHT);\n\t\tvOutput = new JLabel(\"Volume: \");\n\t\tvOutput.setAlignmentX(JLabel.RIGHT_ALIGNMENT);\n\t vOutput.setHorizontalAlignment(JLabel.RIGHT);\n\t\tsaOutput = new JLabel(\"Surface Area: \");\n\t\tsaOutput.setAlignmentX(JLabel.RIGHT_ALIGNMENT);\n\t saOutput.setHorizontalAlignment(JLabel.RIGHT);\n\t\tvResult = new JLabel(\" --\");\n\t\tsaResult = new JLabel(\" --\");\n\t\t\n\t\trText = new JTextField(10);\n\t\thText = new JTextField(10);\n\t\t\n\t\tclear = new JButton(\"Clear\");\n\t\tcalculate = new JButton(\"Calculate\");\n\t\t\n\t\ts = new Cylinder();\n\t\t\n\t\tsetBorder(BorderFactory.createTitledBorder(\"Cylinder\"));\n\t\t\n\t\tadd(rInput);\n\t\tadd(rText);\n\t\tadd(hInput);\n\t\tadd(hText);\n\t\tadd(vOutput);\n\t\tadd(vResult);\n\t\tadd(saOutput);\n\t\tadd(saResult);\n\t\tadd(clear);\n\t\tadd(calculate);\n\t\t\n\t\tButtonListener listener = new ButtonListener();\n\t\t\n\t\tclear.addActionListener(listener);\n\t\tcalculate.addActionListener(listener);\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic String createHeader(String separator) {\n\t\treturn \"M1022C8\" + separator + \"M1022C7\" + separator + \"M1022C183\" + separator + \"M1022C31\" + separator + \"M1022C195\" + separator + \"M1022C32\"\r\n\t\t\t\t+ separator + \"M1022C210\" + separator + \"M1022C68\" + separator + \"M1022C67\" + separator + \"M1022C62\" + separator + \"M1022C61\" + separator\r\n\t\t\t\t+ \"M1022C213\" + separator + \"M1022C204\" + separator + \"M1022C62\" + separator + \"M1022C68\" + separator + \"M1022C61\" + separator + \"M1022C210\"\r\n\t\t\t\t+ separator + \"M1022C49\" + separator + \"M1022C67\" + separator + \"M1022C213\" + separator + \"M1022C49\";\r\n\t}",
"@Override\n public void layout(LayoutContext lc) {\n //String s = new String(text);\n setFont(style.getFont());\n\n if (style.hasInitialValues()) {\n if (style.isDisjoint) {\n lc.disjoin();\n }\n Style.Header h = style.getHeader();\n if (h != null) {\n h.setFont(font);\n if (openIdent) {\n lc.setIdentation(style.indent, true);\n }\n parent.add((Control) h, lc.nextX, lc.nextY);\n lc.update(h.getWidth());\n }\n }\n\n boolean isPRE = style.alignment == Style.ALIGN_NONE;\n if (isPRE) {\n makePreformattedLines(lc);\n } else {\n makeLines(lc);\n }\n\n boolean disjoin = isPRE;\n boolean wasDisjoin = lc.lastStyle != null && lc.lastStyle.alignment == Style.ALIGN_NONE;\n lc.lastStyle = style;\n\n if (disjoin && wasDisjoin) {\n disjoin = false;\n } else if (!disjoin && wasDisjoin) {\n disjoin = true;\n }\n\n //debug(lc,style,new String(text));\n if (disjoin) {\n lc.disjoin();\n } else if (!disjoin && wasDisjoin) {\n lc.update(0);\n }\n if (finishIdent) {\n lc.setIdentation(0, false);\n }\n }",
"public String getLineSeparator();",
"protected String getSeparator() {\n return isNewLineParameters() ? NEW_LINE_SEPARATOR : ONE_LINE_SEPARATOR;\n }",
"private void createMainMenuFooterComposite() {\n\n\t\tGridData gridData22 = new GridData();\n\t\tgridData22.horizontalAlignment = GridData.BEGINNING;\n\t\tgridData22.verticalAlignment = GridData.END;\n\t\tGridData gridData2 = new GridData();\n\t\tgridData2.grabExcessHorizontalSpace = true;\n\t\tgridData2.grabExcessVerticalSpace = true;\n\t\tgridData2.verticalAlignment = GridData.END;\n\t\tgridData2.heightHint = 75;\n\t\tgridData2.widthHint = 75;\n\t\tgridData2.horizontalAlignment = GridData.END;\n\n\t\tGridLayout gridLayout2 = new GridLayout();\n\t\tgridLayout2.horizontalSpacing = 30;\n\t\tgridLayout2.marginHeight = 20;\n\t\tgridLayout2.numColumns = 2;\n\t\tgridLayout2.marginWidth = 20;\n\n\t\tGridData gridData = new GridData();\n\t\tgridData.grabExcessHorizontalSpace = true;\n\t\tgridData.verticalAlignment = GridData.END;\n\t\tgridData.heightHint = 150;\n\t\tgridData.horizontalAlignment = GridData.FILL;\n\t\tmainMenuFooterComposite = new Composite(this, SWT.NONE);\n\t\tmainMenuFooterComposite.setBackground(new Color(Display.getCurrent(),\n\t\t\t\t255, 255, 255));\n\t\tmainMenuFooterComposite.setLayout(gridLayout2);\n\t\tmainMenuFooterComposite.setLayoutData(gridData);\n\n\t\tlblBallyCopyright = new CbctlLabel(mainMenuFooterComposite, SWT.NONE);\n\t\tlblBallyCopyright.setText(LabelLoader.getLabelValue(LabelKeyConstants.BALLY_COPYRIGHT_LABEL));\n\t\tlblBallyCopyright.setLayoutData(gridData22);\n\t\tlblBallyCopyright.setFont(new Font(Display.getDefault(), \"Arial\", 8, SWT.NORMAL));\n\t\tbtnExit = new CbctlButton(mainMenuFooterComposite, SWT.NONE, \"\",\n\t\t\t\tLabelKeyConstants.EXIT_BUTTON);\n\t\tbtnExit.setImage(new Image(Display.getCurrent(), getClass()\n\t\t\t\t.getResourceAsStream(imgExitBtn)));\n\t\tbtnExit.setLayoutData(gridData2);\n\t}",
"protected LayoutManager createLayout() {\n return new SpinnerLayout(); }",
"Drawable getBottomDivider(int section, int position);",
"public void addSeparator() {\n\t\tmenuToolBar.addSeparator();\n\t}",
"public SplitPaneTest2() {\n initComponents();\n\n horizontalSplitPane.putClientProperty(\"Quaqua.SplitPane.style\", \"bar\");\n horizontalSplitPane.setDividerSize(1);\n verticalSplitPane.putClientProperty(\"Quaqua.SplitPane.style\", \"bar\");\n\n messageScrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));\n messagesScrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));\n foldersScrollPane.setBorder(new EmptyBorder(0, 0, 0, 0));\n /*\n horizontalSplitPane.setContinuousLayout(true);\n verticalSplitPane.setContinuousLayout(true);\n */\n\n }",
"TinySpinnerButtonUI ( int type )\r\n {\r\n orientation = type;\r\n }",
"public void setSeparator(String separator) {\n\t\tthis.separator = separator;\n\t}",
"private Pane createSpacer(){\n Pane spacer = new Pane();\n HBox.setHgrow(\n spacer,\n Priority.SOMETIMES\n );\n return spacer;\n }",
"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 }",
"Border createBorder();",
"public MenuBox(ArrayList<MenuItem> items) {\n getChildren().add(createSeparator(270));\n\n for(MenuItem item : items) {\n getChildren().addAll(item, createSeparator(270));\n }\n }",
"private void createIndicators() {\n this.removeAllViews();\n int n = this.mViewpager.getAdapter().getCount();\n if (n > 0) {\n int n2 = this.mViewpager.getCurrentItem();\n int n3 = this.getOrientation();\n for (int i = 0; i < n; ++i) {\n if (n2 == i) {\n this.addIndicator(n3, this.mIndicatorBackgroundResId, this.mImmediateAnimatorOut);\n continue;\n }\n this.addIndicator(n3, this.mIndicatorUnselectedBackgroundResId, this.mImmediateAnimatorIn);\n }\n }\n }",
"private ELOperandToken readSeparatorToken() {\r\n \t\tfState = STATE_SEPARATOR;\r\n \t\tint ch = readCharBackward();\r\n \t\t\r\n \t\treturn (ch == '.' ? new ELOperandToken(index, 1, getCharSequence(index, 1), ELOperandToken.EL_SEPARATOR_TOKEN) :\r\n \t\t\tELOperandToken.EOF);\r\n \t}",
"private javax.swing.JLabel getJLabelDivider() {\n\tif (JLabelDivider == null) {\n\t\ttry {\n\t\t\tJLabelDivider = new javax.swing.JLabel();\n\t\t\tJLabelTitle.setName(\"JLabelDivider\");\n\t\t\tJLabelDivider.setText(\" \");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\treturn JLabelDivider;\n}",
"private JSeparator getSepFile1() {\r\n\t\tif (sepFile1 == null) {\r\n\t\t\tsepFile1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepFile1;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public void insertarLineaSeparacion() {\n Tag hr = new Tag(\"hr\");\n hr.addAttribute(new Attribute(\"style\", \"width: 100%; height: 2px;\"));\n // <hr style=\"width: 100%; height: 2px;\">\n body.add(hr);\n }",
"private String generateHorizontalDivider(Table inputTable) {\n StringBuilder horDivBuilder = new StringBuilder();\n for (int i = 0; i < inputTable.getColumnSize(); i++) {\n horDivBuilder.append(X_DIV);\n for (int j = 0; j < getColWidth(i) + XPADD; j++) {\n horDivBuilder.append(H_DIV);\n }\n }\n horDivBuilder.append(X_DIV + NEWLN);\n return horDivBuilder.toString();\n }",
"protected String getDividerLocationProperty() {\n return SPLIT_DIVIDER_LOCATION_PROPERTY;\n }",
"public final void setOrientation(Orientation value) {\n\n this.getWrappedControl().setOrientation(value);\n }",
"@NonNull\n public DividerAdapterBuilder outerView(@NonNull ViewFactory viewFactory) {\n return leadingView(viewFactory).trailingView(viewFactory);\n }",
"public VerticalLayout(int vgap) {\r\n this(vgap, CENTER, TOP);\r\n }",
"AngleScalarDivide createAngleScalarDivide();",
"public VerticalLayout(int vgap, int alignment) {\r\n this(vgap, alignment, TOP);\r\n }",
"public void setGroupingSeparator(AVT v)\n {\n m_groupingSeparator_avt = v;\n }",
"public Integer getSep() {\n return sep;\n }",
"@Override\n\tpublic void createPartControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\tcontainer.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tarchitectureCanvas = new ArchitectureCanvas(container,\n\t\t\t\tSWT.DOUBLE_BUFFERED);\n\n\t\tcreateActions();\n\t\tinitializeToolBar();\n\t\tinitializeMenu();\n\n\t\tCadmosUi.getInstance()\n\t\t\t\t.addListener(cadmosEditorSelectionChangedListener);\n\t}",
"private static String appendSeparatorLine(String left, String middle, String right, int padding, int... sizes) {\n boolean first = true;\n StringBuilder ret = new StringBuilder();\n for (int size : sizes) {\n if (first) {\n first = false;\n ret.append(left).append(Strings.repeat(\"-\", size + padding * 2));\n } else {\n ret.append(middle).append(Strings.repeat(\"-\", size + padding * 2));\n }\n }\n return ret.append(right).append(BotConfig.EOL).toString();\n }",
"private JSeparator getSepBookmark1() {\r\n\t\tif (sepBookmark1 == null) {\r\n\t\t\tsepBookmark1 = new JSeparator();\r\n\t\t}\r\n\t\treturn sepBookmark1;\r\n\t}",
"@Override\n protected Layout constructShellLayout() {\n GridLayout mainLayout = new GridLayout(1, false);\n\n return mainLayout;\n }",
"private String createDashedLine(){\n return \"- \".repeat(Math.max(0, this.columns));\n }",
"private void printSeparator() {\r\n\t\tthis.printLineGap();\r\n\t}",
"private void createFooterPanel()\n\t{\n\t\tGridLayout footerGrid = new GridLayout(4,5);\n\t\tfooterGrid.setHgap (5);\n\t\tfooterGrid.setVgap (5);\n\t\tfooterPanel.setLayout(footerGrid);\n\t\tfooterPanel.add (seven);\n\t\tfooterPanel.add (eight);\n\t\tfooterPanel.add (nine);\n\t\tfooterPanel.add (divide);\n\t\tfooterPanel.add (percent);\n\t\tfooterPanel.add (four);\n\t\tfooterPanel.add (five);\n\t\tfooterPanel.add (six);\n\t\tfooterPanel.add (multiply);\n\t\tfooterPanel.add (reciprocal);\n\t\tfooterPanel.add (one);\n\t\tfooterPanel.add (two);\n\t\tfooterPanel.add (three);\n\t\tfooterPanel.add (subtract);\n\t\tfooterPanel.add(PI);\n\t\tfooterPanel.add (zero);\n\t\tfooterPanel.add (decimalPoint);\n\t\tfooterPanel.add (equals);\n\t\tfooterPanel.add (add);\n\t\tfooterPanel.add(e);\n\t}",
"public static void buildSeparator(StringBuilder sb, int lineLength) {\n sb.append(\"-\".repeat(Math.max(0, lineLength)));\n sb.append(\"\\n\");\n }",
"protected void drawSeparator(Graphics g,int x,int y,int w,int h)\n {\n g.setColor(new Color(0x868686));\n g.drawLine(x+0,y+0,x+w-1,y+0);\n g.drawLine(x+0,y+0,x+0,y+1);\n g.drawLine(x+w-1,y+0,x+w-1,y+1);\n g.setColor(Color.black);\n g.drawLine(x+1,y+1,x+w-2,y+1);\n\n g.setColor(new Color(0x868686));\n g.drawLine(x+0,y+0,x+0,y+h-1);\n g.setColor(Color.black);\n g.drawLine(x+1,y+1,x+1,y+h-1);\n\n g.setColor(new Color(0xD7D3CB));\n g.drawLine(x+0,y+h-1,x+w-1,y+h-1);\n\n g.setColor(new Color(0xD7D3CB));\n g.drawLine(x+w-1,y+1,x+w-1,y+h-1);\n }",
"public Horizontal() {\r\n }",
"boolean separatorLine(String mode);",
"public SplitBarView(Context context, AttributeSet attrs) {\n super(context, attrs);\n\n TypedArray a = context.getTheme().obtainStyledAttributes(\n attrs,\n R.styleable.SplitBarView,\n 0, 0\n );\n\n int barColor;\n int textColor;\n float textSize;\n\n try {\n barColor = a.getColor(R.styleable.SplitBarView_bar_color, 0xff000000);\n textColor = a.getColor(R.styleable.SplitBarView_text_color, 0xff000000);\n textSize = a.getDimension(R.styleable.SplitBarView_text_size, 9.0f);\n } finally {\n a.recycle();\n }\n\n mText = \"\";\n mShowText = false;\n mTextAlpha = 0;\n\n //Paint for the bar\n mBarPaint = new Paint();\n mBarPaint.setColor(barColor);\n\n //Paint for the text\n mTextPaint = new Paint();\n mTextPaint.setColor(textColor);\n mTextPaint.setTextSize(textSize);\n mTextPaint.setTextAlign(Paint.Align.CENTER);\n mTextPaint.setStyle(Paint.Style.FILL);\n mTextPaint.setAlpha(mTextAlpha);\n\n mUpArrow = BitmapFactory.decodeResource(this.getResources(), R.drawable.white_arrow);\n mDownArrow = BitmapFactory.decodeResource(this.getResources(), R.drawable.white_arrow_down);\n }",
"private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\t\tshell.setSize(720, 480);\n\t\tshell.setText(\"1FN Normalization\");\n\t\tshell.setLayout(new GridLayout(2, false));\n\t\tcomposite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 2, 1));\n\t\tcomposite.setLayout(new GridLayout(5, false));\n\t\tlblSeparators = new Label(composite, SWT.NONE);\n\t\tlblSeparators.setText(\"Separators:\");\n\t\tcomposite_1 = new Composite(composite, SWT.NONE);\n\t\tcomposite_1.setLayout(new GridLayout(5, false));\n\t\tcomposite_1.setLayoutData(new GridData(SWT.LEFT, SWT.CENTER, false, false, 2, 1));\n\t\tchk1 = new Button(composite_1, SWT.CHECK);\n\t\tchk1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk1widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk1.setSelection(true);\n\t\tchk1.setText(\";\");\n\t\tchk2 = new Button(composite_1, SWT.CHECK);\n\t\tchk2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk2widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk2.setSelection(true);\n\t\tchk2.setText(\"cr\");\n\t\tchk3 = new Button(composite_1, SWT.CHECK);\n\t\tchk3.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk3widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk3.setText(\",\");\n\t\tchk4 = new Button(composite_1, SWT.CHECK);\n\t\tchk4.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk4widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk4.setText(\"space\");\n\t\tchk5 = new Button(composite_1, SWT.CHECK);\n\t\tchk5.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochk5widgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchk5.setText(\".\");\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\t\tlblColumn = new Label(composite, SWT.NONE);\n\t\tlblColumn.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false, 1, 1));\n\t\tlblColumn.setText(\"Column:\");\n\t\tlstColumn = new List(composite, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);\n\t\tlstColumn.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdolstColumnwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tGridData gd_lstColumn = new GridData(SWT.LEFT, SWT.FILL, false, true, 4, 1);\n\t\tgd_lstColumn.widthHint = 150;\n\t\tgd_lstColumn.heightHint = 80;\n\t\tlstColumn.setLayoutData(gd_lstColumn);\n\t\tlblMethod = new Label(composite, SWT.NONE);\n\t\tlblMethod.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblMethod.setText(\"Method:\");\n\t\tcheckSingle = new Button(composite, SWT.RADIO);\n\t\tcheckSingle.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdocheckSinglewidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tcheckSingle.setText(\"Single Table (Recommended)\");\n\t\tchkMulti = new Button(composite, SWT.RADIO);\n\t\tchkMulti.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdochkMultiwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tchkMulti.setText(\"Multi table\");\n\t\tlblNewTableName = new Label(composite, SWT.NONE);\n\t\tlblNewTableName.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));\n\t\tlblNewTableName.setText(\"New table name: \");\n\t\ttxtNewTableName = new Text(composite, SWT.BORDER);\n\t\ttxtNewTableName.addModifyListener(new ModifyListener() {\n\t\t\tpublic void modifyText(ModifyEvent arg0) {\n\t\t\t\tdotxtNewTableNamemodifyText(arg0);\n\t\t\t}\n\t\t});\n\t\ttxtNewTableName.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tlblActual = new Label(shell, SWT.NONE);\n\t\tlblActual.setText(\"Actual\");\n\t\tlblRefatored = new Label(shell, SWT.NONE);\n\t\tlblRefatored.setText(\"Refator\");\n\t\tmodelEditor1 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tGridData gd_modelEditor1 = new GridData(SWT.LEFT, SWT.FILL, false, false, 1, 1);\n\t\tgd_modelEditor1.widthHint = 250;\n\t\tmodelEditor1.setLayoutData(gd_modelEditor1);\n\t\tmodelEditor2 = new CompModelEditorController(shell, SWT.BORDER, SWT.V_SCROLL | SWT.H_SCROLL);\n\t\tmodelEditor2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));\n\t\tbtnConfirm = new Button(shell, SWT.NONE);\n\t\tbtnConfirm.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tdobtnConfirmwidgetSelected(e);\n\t\t\t}\n\t\t});\n\t\tbtnConfirm.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 2, 1));\n\t\tbtnConfirm.setText(\"Confirm\");\n\t\ttxtNewTableName.setEnabled(false);\n\t}",
"public final native void setLabelSeparator(String labelSeparator) /*-{\r\n\t\tthis.labelSeparator = labelSeparator;\r\n\t}-*/;",
"public void createControl(Composite parent) {\n\t\tComposite container = new Composite(parent, SWT.NONE);\n\t\tcontainer.setLayout(new GridLayout());\n\t\tsetControl(container);\n\n\t\tComposite container2 = new Composite(container, SWT.BORDER);\n\t\tcontainer2.setLayout(new GridLayout());\n\t\tcontainer2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\n\n\t\ttxtSummary = new StyledText(container2, SWT.LEFT | SWT.BORDER\n\t\t\t\t| SWT.READ_ONLY | SWT.WRAP | SWT.V_SCROLL);\n\t\ttxtSummary.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\n\t\ttxtSummary.setBackground(SWTResourceConstents.COLOR_WHITE);\n\n\t\ttxtDDL = new StyledText(container2, SWT.LEFT | SWT.BORDER\n\t\t\t\t| SWT.READ_ONLY | SWT.WRAP | SWT.V_SCROLL);\n\t\tGridData gd = new GridData(SWT.FILL, SWT.FILL, true, true);\n\t\tgd.exclude = true;\n\t\ttxtDDL.setLayoutData(gd);\n\t\ttxtDDL.setVisible(false);\n\t\ttxtDDL.setBackground(SWTResourceConstents.COLOR_WHITE);\n\t\tcreateButtons(container);\n\t}",
"private String getSeparator(List<String> file)\n {\n String line = file.get(0);\n \n if (line.contains(\" \") || line.contains(\" ,\")) {\n /* for these delimeters the \"data\" and \"quantidade\" column are not\n * separated correctly, so we need to add one space to support them.\n */\n for (int i = 0; i < file.size(); i++) {\n String l = file.get(i);\n String a = l.substring(0, 16);\n String b = l.substring(16, l.length() - 1);\n file.set(i, a + \" \" + b);\n }\n }\n\n return FileUtil.SEPARATOR(line);\n }",
"private JPanel createNorthPanel() \r\n\t{\r\n\t\tJPanel panel = new JPanel();\r\n\t\t\r\n\t\tJLabel title = new JLabel(\"Reservations\", SwingConstants.CENTER);\r\n\t\ttitle.setFont(new Font(\"serif\", Font.PLAIN, 29));\r\n\t\tpanel.add(title);\r\n\t\t\r\n\t\treturn panel;\r\n\t}",
"public QueueSeparator(double topX, double topY, double width, double height) {\n\t\tsuper(topX, topY, width, height);\n\t}",
"public Indent(int level)\n {\n this(\" \", level);\n }",
"@Override\n\tprotected void createShell() {\n\t\tString shellText = \"Add a New Pharmacy\";\n\t\tRectangle bounds = new Rectangle(25, 0, 800, 680);\n\t\tbuildShell(shellText, bounds);\n\t}",
"@Override\n protected ActiveAreaPresenter createPresenter() {\n return new ActiveAreaPresenter(this);\n }",
"String makeHeader() {\n StringBuilder ans = new StringBuilder(\" \"); // README shows two spaces at\n String sep=\"\"; //start with nothing to separate, then switch to | to separate\n for (int i = 0; i < toDisplay.getWidth(); i++) {\n ans.append(sep);\n ans.append(i);\n sep = \"|\";\n }\n ans.append(\"\\n\");\n return ans.toString();\n }",
"protected HeaderFooterListAdapter<MultiTypeAdapter> createListAdapter() {\n MultiTypeAdapter wrapped = createAdapter();\n HeaderFooterListAdapter<MultiTypeAdapter> adapter = new HeaderFooterListAdapter<MultiTypeAdapter>(getListView(), wrapped);\n if (isAddAdapterHeader()) {\n adapter.addHeader(adapterHeaderView());\n }\n return adapter;\n }",
"private void createIndicator(int tag) {\n\n LayoutParams params;\n int color;\n if (tag == mCurrentlySelectedIndicator) {\n params = mParamsSelected;\n color = mColorSelected;\n } else {\n params = mParamsDeselected;\n color = mColorDeselected;\n }\n\n // Create indicator view\n View indicator = new View(mContext);\n indicator.setTag(tag);\n\n // Set params\n indicator.setLayoutParams(params);\n\n // Set indicator color\n setColor(indicator, color);\n\n // Add it to the view\n addView(indicator);\n }",
"public VerticalLayout() {\r\n this(5, CENTER, TOP);\r\n }",
"public Indent()\n {\n this(\" \", 0);\n }",
"public Robot(int orientation, Position pos_ini) {\r\n\t\tthis.pos_courante = pos_ini;\r\n\t\tthis.orientation = orientation;\r\n\t\tderniereAction = AUCUNE_ACTION;\r\n\t}",
"public GriddedPanel() {\n this(new Insets(2, 2, 2, 2));\n\n }",
"private GridData newGridData(int horizSpan) {\n GridData gd = new GridData();\n gd.horizontalSpan = horizSpan;\n return gd;\n }",
"@Override\n public void createPartControl(Composite parent) {\n errorColor = parent.getDisplay().getSystemColor(SWT.COLOR_RED);\n parent.addControlListener(new ControlListener() {\n\n @Override\n public void controlMoved(ControlEvent e) {\n //\n }\n\n @Override\n public void controlResized(ControlEvent e) {\n computeOrientation();\n }\n });\n\n GridLayout parentLayout = new GridLayout();\n parentLayout.numColumns = 1;\n parentLayout.marginBottom = -5;\n parentLayout.marginTop = -5;\n parentLayout.marginLeft = -5;\n parentLayout.marginRight = -5;\n\n parent.setLayout(parentLayout);\n\n stackComposite = new Composite(parent, SWT.NONE);\n stackComposite.setLayoutData(new GridData(GridData.FILL_BOTH));\n stackComposite.setLayout(new StackLayout());\n\n statusLineManager = new StatusLineManager();\n statusControl = statusLineManager.createControl(parent, SWT.NONE);\n statusControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));\n\n createTextControl();\n\n createTextContextMenu();\n\n createVerifyControl();\n\n initModes();\n\n if (modes.get(BCOConstants.F_SHOW_ANALYZER)) {\n ((StackLayout) stackComposite.getLayout()).topControl = verifyControl;\n } else {\n ((StackLayout) stackComposite.getLayout()).topControl = textControl;\n }\n\n createSelectionProvider();\n\n createToolbarActions();\n\n setEnabled(false);\n\n// activateView();\n }",
"public void createPartControl(Composite parent) {\n\t\tString[] xmls = null;\n//\t\txmls = new String[]{\n//\t\t\t\"AppKitFull.bridgesupport\",\n//\t\t\t\"FoundationFull.bridgesupport\",\n//\t\t\t\"WebKitFull.bridgesupport\",\n//\t\t};\n\t\tMacGenerator gen = new MacGenerator();\n\t\tgen.setXmls(xmls);\n\t\tgen.setOutputDir(root.getLocation().toPortableString());\n\t\tgen.setMainClass(mainClassName);\n\t\tui = new MacGeneratorUI(gen);\n\t\tui.setActionsVisible(false);\n\t\tui.open(parent);\n\n\t\tmakeActions();\n\t\tcontributeToActionBars();\n\t}",
"public NewTextLineCodecFactory(String charset,String encodingDelimiter, String decodingDelimiter){\n\t\tsuper(Charset.forName(charset),encodingDelimiter,decodingDelimiter);\n\t}",
"public SVCustom build(){\n if(this.disks < 1) return new SVCustom();\n SVCustom s = new SVCustom(new Point(100, (int)Math.pow(2, this.disks)*104 - 52));\n int left[] = new int[]{0,1};\n int right[] = new int[]{1,2};\n int bottom[] = new int[]{0,2};\n SierpinskiTriangle t = new SierpinskiTriangle(0,this.disks,this.disks-1, left, right, bottom, buildInitial(this.disks));\n s.setAttribute(\"font-family\", \"Arial\");\n s.addContent(t, \"Triangle\");\n return s;\n }",
"public JsonFactory setRootValueSeparator(String sep)\n/* */ {\n/* 696 */ this._rootValueSeparator = (sep == null ? null : new SerializedString(sep));\n/* 697 */ return this;\n/* */ }",
"@NonNull\n public DividerAdapterBuilder innerView(@NonNull ViewFactory viewFactory) {\n mInnerItem = new Item(checkNotNull(viewFactory, \"viewFactory\"), false);\n return this;\n }",
"public MenuBox(MenuItem...items){\n\n //getChildren().add(createSeparator(210));\n\n for (MenuItem item : items){\n getChildren().addAll(item, createSeparator(210));\n }\n\n }",
"public Orientation rotate(int amount) {\r\n\t\tint newValue = (value + amount) % 4;\r\n\r\n\t\tif (newValue == 0) {\r\n\t\t\treturn North;\r\n\t\t} else if (newValue == 1) {\r\n\t\t\treturn East;\r\n\t\t} else if (newValue == 2) {\r\n\t\t\treturn South;\r\n\t\t} else {\r\n\t\t\treturn West;\r\n\t\t}\r\n\t}",
"private Command createRotateCommand(String command) {\n\t\tString[] tokens = command.split(\" \");\n\t\treturn new RotateCommand(Double.parseDouble(tokens[1]));\n\t}",
"public BarChartBuilder orientation(ChartOrientation orientation) {\n\tthis.orientation = orientation;\n\treturn this;\n }",
"private static MessageHeader createBreakHeader() {\n\n\t\tObject[] iov = new Object[1];\n\t\tiov[0] = JALP_BREAK_STR;\n\n\t\tMessageHeader mh = new MessageHeader();\n\t\tmh.setIov(iov);\n\n\t\treturn mh;\n\t}"
]
| [
"0.678267",
"0.656894",
"0.61994624",
"0.55946994",
"0.5581915",
"0.5421576",
"0.54189754",
"0.51682085",
"0.5123135",
"0.50882405",
"0.50527745",
"0.50414056",
"0.49475837",
"0.49421272",
"0.48908332",
"0.4836623",
"0.47549617",
"0.4738308",
"0.4671554",
"0.46377003",
"0.4621956",
"0.4602381",
"0.4601301",
"0.45615605",
"0.4536529",
"0.44961163",
"0.4486717",
"0.44748473",
"0.44559097",
"0.4442135",
"0.44263983",
"0.44167468",
"0.44111118",
"0.43991095",
"0.43922642",
"0.43921414",
"0.4389099",
"0.43759018",
"0.43673298",
"0.436462",
"0.43602335",
"0.4359648",
"0.43429452",
"0.43425947",
"0.4337506",
"0.4319519",
"0.43002468",
"0.42847642",
"0.42774767",
"0.42736343",
"0.4257299",
"0.42524746",
"0.4246727",
"0.42428067",
"0.4232688",
"0.42246598",
"0.4219888",
"0.42140934",
"0.42077252",
"0.4200939",
"0.4196123",
"0.4187994",
"0.41776675",
"0.41670564",
"0.4162894",
"0.4161356",
"0.4154317",
"0.41513762",
"0.41360408",
"0.41355512",
"0.41347387",
"0.41281956",
"0.41262925",
"0.41238192",
"0.41226235",
"0.41193363",
"0.4109471",
"0.41055396",
"0.41011313",
"0.41005677",
"0.40855786",
"0.4066111",
"0.4062565",
"0.4045778",
"0.40431398",
"0.40410495",
"0.4038035",
"0.40327832",
"0.4032114",
"0.40305465",
"0.4025437",
"0.4023316",
"0.40229926",
"0.401265",
"0.40076685",
"0.39952147",
"0.3994347",
"0.39820397",
"0.3978747",
"0.3978321"
]
| 0.8354716 | 0 |
Returns the GUI component contained by this control. | public Component getComponent() {
return _separator;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JComponent getComponent();",
"public JComponent getComponent() {\n return getGradleUI().getComponent();\n }",
"public JComponent getWidget() {\n return itsComp;\n }",
"public JComponent getComponent() {\n return itsComp;\n }",
"public String getComponent() {\r\n\t\treturn component;\r\n\t}",
"public Component getComponent() {\n return component;\n }",
"@Override\n\tpublic Component getComponent() {\n\t\tComponent component = button.getComponent();\n\t\tcomponent.setBackground(color);\n\t\treturn component;\n\t}",
"@Override\n public Component getUiComponent() {\n return this;\n }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn this;\n\t}",
"JComponent getImpl();",
"public String getComponent() {\n return this.component;\n }",
"protected final Component getComponent()\n\t{\n\t\treturn component;\n\t}",
"public abstract JComponent getComponent();",
"public Control getControl()\n {\n return composite;\n }",
"@Override\n public JComponent getComponent () {\n return this;\n }",
"public JComponent getComponent() { return _panel; }",
"@NotNull\n public Gui getGui() {\n return gui;\n }",
"@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}",
"public Component getComponent() {\n\treturn component;\n}",
"public Control getControl() {\n checkWidget();\n return control;\n }",
"public Component getComponent() {\n if (getUserObject() instanceof Component)\n return (Component)getUserObject();\n return null;\n }",
"public JawbComponent getMainComponent () {\n return null;\n }",
"public Object getComponentEditPart() {\n\t\treturn componentEditPart;\n\t}",
"@Override\r\n\tpublic Control getControl() {\r\n\t\treturn container;\r\n\t}",
"@Override\n\tpublic Component getComponent() {\n\t\treturn toolbox;\n\t}",
"public JComponent getWrappedComponent()\n {\n return field;\n }",
"public JawbComponent getEditorComponent () {\n if (editorComponent == null)\n initEditorComponent ();\n return editorComponent;\n }",
"public JComponent getContentComponent() {\r\n return this;\r\n }",
"@Override\n public SelectCurriculumVisualPanel getComponent() {\n if (component == null) {\n component = new SelectCurriculumVisualPanel();\n component.manager.addPropertyChangeListener(this);\n }\n return component;\n }",
"protected Component getControlOwner() {\r\n return null;\r\n }",
"public Object getGuiObject();",
"public ControlPanel controlPanel() {\n return this.controlPanel;\n }",
"@Override\n public GeneralOrthoMclSettingsVisualPanel getComponent() {\n if (component == null) {\n component = new GeneralOrthoMclSettingsVisualPanel();\n\n }\n return component;\n }",
"protected Node getComponentNode() {\n return componentNode;\n }",
"public JComponent getMainComponent() {\n\t return mainPanel;\n\t}",
"public ComponentLabel getComponentLabel() {\n\t\treturn componentLabel;\n\t}",
"@Override\r\n\tpublic Widget getWidget() {\n\t\treturn asWidget();\r\n\t}",
"public JTextComponent getTextComponent() {\n\t\treturn panelVirtualKeyboard.getTextComponent();\n\t}",
"public IRibbonComponent getRibbonComponent()\n\t{\n\t\treturn ribbonComponent;\n\t}",
"public GComponent getFocusedComponent()\n {\n return this.focusedComponent;\n }",
"protected final JTextComponent getComponent() {\n return editor;\n }",
"public AppComponent component(){\n return mComponent;\n }",
"public JComponent getToolbarComponent()\n {\n return _box;\n }",
"public static ApplicationComponent component() {\n return instance().applicationComponent;\n }",
"public java.awt.Component getControlledUI() {\r\n return ratesBaseWindow;\r\n }",
"public JComponent toSwingComponent();",
"JComponent getRenderComponent();",
"Gui getGui();",
"public GuiManager getGuiManager()\n\t{\n\t\treturn this.guiManager;\n\t}",
"String getComponentName();",
"String getComponentName();",
"public FrameUIModel getFrameUI()\n {\n return uiModel.getFrameUI();\n }",
"public Entity getComponent() {\n return component;\n }",
"public final AbstractControlComponent getController() {\n\t\treturn this.controller;\n\t}",
"public ViewAndControlsInterface getPodComponent() {\r\n return this;\r\n }",
"public Component getParentComponent() {\r\n\t\tif (parentComponent == null) {\r\n\t\t\tif (view != null)\r\n\t\t\t\tparentComponent = view.getComponent(parentComponentName);\r\n\t\t}\r\n\t\treturn parentComponent;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public <T extends Component> T getComponent() {\n try {\n return (T) component;\n } catch (ClassCastException ex) {\n getLogger().log(Level.SEVERE,\n \"Component code/design type mismatch\", ex);\n }\n return null;\n }",
"protected ComponentModel getComponentModel()\n {\n return componentModel;\n }",
"public Component getConfigFormPanel()\n {\n if (configFormPanel == null)\n {\n Object form = configForm.getForm();\n if ((form instanceof Component) == false)\n {\n throw new ClassCastException(\"ConfigurationFrame :\"\n + form.getClass()\n + \" is not a class supported by this ui implementation\");\n }\n configFormPanel = (Component) form;\n }\n return configFormPanel;\n }",
"public TextField getComponentNode() {\n return commandPromptTextArea;\n }",
"GuiView getGui();",
"@Override\n public Component getComponent() {\n if (component == null) {\n component = new PubMLSTVisualPanel2();\n }\n component.setPreferredSize(new java.awt.Dimension(480,340));\n return component;\n }",
"UIComponent getParent();",
"public GUISimulator getGui(){\n return this.gui;\n }",
"@Override\r\n\tpublic Panel getUI() {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic Panel getUI() {\n\t\treturn null;\r\n\t}",
"public Control getControl () {\r\n\tcheckWidget();\r\n\treturn control;\r\n}",
"public <T extends Control> T getComponentInParent(Class<T> clazz) {\r\n return getComponentInParent(spatial, clazz);\r\n }",
"public javax.accessibility.AccessibleComponent getAccessibleComponent() {\n try {\n XAccessibleComponent unoAccessibleComponent = (XAccessibleComponent)\n UnoRuntime.queryInterface(XAccessibleComponent.class, unoAccessibleContext);\n return (unoAccessibleComponent != null) ? \n new AccessibleComponentImpl(unoAccessibleComponent) : null;\n } catch (com.sun.star.uno.RuntimeException e) {\n return null;\n }\n }",
"public View getGuiView(){\n \t\n \treturn guiView;\n }",
"public PluginComponent getPluginComponent()\n {\n return (PluginComponent) getSource();\n }",
"public Component getPopupComponent() {\r\n return _component;\r\n }",
"public static Gui getGameGui() {\r\n\t\treturn gui;\r\n\t}",
"public Component getTabComponent();",
"public ResultGUI getResultGUI() {\n return resultGUI;\n }",
"@Override\n\tpublic Component getComponent() {\n\t\treturn p;\n\t}",
"public Label getComponentLabel() {\n return commandPromptLabel;\n }",
"public Component getComponent()\n {\n if(null == _sqlPanel)\n {\n _sqlPanel = createSqlPanel();\n }\n return _sqlPanel;\n }",
"public java.awt.Component getControlledUI() \r\n {\r\n return grantsByPIForm;\r\n }",
"@Override\n public Widget getWidget() {\n if (widget == null) {\n if (Profiler.isEnabled()) {\n Profiler.enter(\"AbstractComponentConnector.createWidget for \"\n + getClass().getSimpleName());\n }\n widget = createWidget();\n if (Profiler.isEnabled()) {\n Profiler.leave(\"AbstractComponentConnector.createWidget for \"\n + getClass().getSimpleName());\n }\n }\n\n return widget;\n }",
"public EMAComponentSymbol getComponent() {\n return (EMAComponentSymbol) this.getEnclosingScope().getSpanningSymbol().get();\n }",
"public JFormattedTextField getEditComponent() {\r\n\t\tif(m_editComponent==null) {\r\n\t\t\t// create\r\n\t\t\tm_editComponent = createDefaultComponent(true,m_documentListener);\r\n\t\t\t//m_editComponent.getDocument().addDocumentListener(m_documentListener);\r\n\t\t}\r\n\t\treturn m_editComponent;\r\n\t}",
"public Component getSelf(ExecutionCtrl exec);",
"public GUIManager getManager(){\n\t\treturn manager;\n\t}",
"public GUIManager getManager(){\n\t\treturn manager;\n\t}",
"private JButton getJButton() {\n\t\tif (jButton == null) {\n\t\t\tjButton = new JButton();\n\t\t\tjButton.setBounds(new Rectangle(57, 80, 34, 45));\n\t\t}\n\t\treturn jButton;\n\t}",
"protected JPanel getPanel() {\n\t\treturn (JPanel) window.getContentPane();\n\t}",
"public JPanel getPanel() {\n return panel;\n }",
"public <T extends Control> T getComponent(Class<T> clazz) {\r\n T control = spatial.getControl(clazz);\r\n return control;\r\n }",
"public JPanel getMainPanelFromGameGUI() {\n\t\treturn gameView.getMainPanel();\n\t}",
"public Component getViewerComponent() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic WaiterGui getGui() {\n\t\treturn null;\n\t}",
"public Component getEditorComponent ()\r\n {\r\n return editor;\r\n }",
"public static GUIContainer getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new GUIContainer();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"private JPanel getControlPanel() {\n if (controlPanel == null) {\n GridBagConstraints gridBagConstraints8 = new GridBagConstraints();\n gridBagConstraints8.gridx = 0;\n gridBagConstraints8.gridy = 1;\n GridBagConstraints gridBagConstraints7 = new GridBagConstraints();\n gridBagConstraints7.insets = new java.awt.Insets(5, 5, 5, 5);\n gridBagConstraints7.gridy = 0;\n gridBagConstraints7.weightx = 1.0D;\n gridBagConstraints7.fill = java.awt.GridBagConstraints.HORIZONTAL;\n gridBagConstraints7.gridx = 0;\n controlPanel = new JPanel();\n controlPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Add/Remove User(s)\",\n javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,\n javax.swing.border.TitledBorder.DEFAULT_POSITION, null, PortalLookAndFeel.getPanelLabelColor()));\n controlPanel.setLayout(new GridBagLayout());\n controlPanel.add(getUserAddEditPanel(), gridBagConstraints7);\n controlPanel.add(getUserManagerButtonPanel(), gridBagConstraints8);\n }\n return controlPanel;\n }",
"public final AbstractComponent getChildComponent() {\n return this.child;\n }",
"public String getText()\n {\n return getComponent().getText();\n }",
"public JFXPanel getPanel()\n {\n return panel;\n }",
"public JFrame getFrame() {\r\n\t\treturn frame;\r\n\t}",
"public int getComponentID() {\n return COMPONENT_ID;\n }",
"public String getRibbonComponentClass()\n\t{\n\t\treturn ribbonComponentClass;\n\t}"
]
| [
"0.7579355",
"0.75362724",
"0.74813616",
"0.72555953",
"0.7067986",
"0.7008198",
"0.6992722",
"0.69039506",
"0.6881031",
"0.6872154",
"0.68459594",
"0.6829493",
"0.68016243",
"0.67688894",
"0.6741486",
"0.6731523",
"0.6680582",
"0.6644896",
"0.66424704",
"0.6641696",
"0.66112244",
"0.6610538",
"0.6564239",
"0.65510917",
"0.653457",
"0.650184",
"0.6499357",
"0.64413095",
"0.64293104",
"0.6420403",
"0.64180243",
"0.640303",
"0.6380457",
"0.635522",
"0.6341135",
"0.63309896",
"0.6326043",
"0.63257724",
"0.63176954",
"0.6311543",
"0.6304697",
"0.62669027",
"0.6263802",
"0.6262426",
"0.6256542",
"0.6253974",
"0.622335",
"0.6212718",
"0.6192798",
"0.618175",
"0.618175",
"0.6150246",
"0.61319345",
"0.61263424",
"0.61217123",
"0.61193925",
"0.6118188",
"0.6101748",
"0.6101013",
"0.60879177",
"0.60858357",
"0.6077259",
"0.60761726",
"0.6070571",
"0.60509634",
"0.60509634",
"0.6047837",
"0.6039634",
"0.6025348",
"0.6024502",
"0.60165924",
"0.6015624",
"0.59853333",
"0.5966553",
"0.5965745",
"0.59587383",
"0.59548247",
"0.5953447",
"0.59294206",
"0.5921804",
"0.5916899",
"0.59122723",
"0.59043926",
"0.58921754",
"0.58921754",
"0.5885717",
"0.5883594",
"0.5883336",
"0.5880889",
"0.58708966",
"0.5848665",
"0.5847374",
"0.58252007",
"0.5823579",
"0.5813955",
"0.5813563",
"0.57934684",
"0.5779276",
"0.5772398",
"0.57693493",
"0.5754684"
]
| 0.0 | -1 |
Sets the font on this control. | public void setFont(Font f) {
_separator.setFont(f);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFont(Font value) {\r\n this.font = value;\r\n }",
"private void setFont() {\n\t}",
"public void setFont(Font font) {\n this.font = font;\r\n repaint();\r\n }",
"public void setFont( Font font ) {\r\n this.font = font;\r\n }",
"@Override\n public void setFont(String font) {\n graphicsEnvironmentImpl.setFont(canvas, font);\n }",
"public void setFont(Font font)\n {\n this.font = font;\n }",
"public void setTextFont(Font font)\n {\n setFont(font);\n }",
"public void setFont(Font f) {\n font = f;\n compute();\n }",
"private void setFont() {\n try {\n setFont(Font.loadFont(new FileInputStream(FONT_PATH), 23));\n } catch (FileNotFoundException e) {\n setFont(Font.font(\"Verdana\", 23));\n }\n }",
"public void setFont( Font font ) {\n\t\tgraphics.setFont( font );\n\t}",
"public void setFont(String font)\n {\n getStateHelper().put(PropertyKeys.font, font);\n }",
"public void setFont(Font font) {\n\tthis.font = font;\n }",
"public void setTextFont(Font font);",
"public void setFont(AWTFont font) {\r\n\t\trenderer = createRendererFromAWTFont(font);\r\n\t\tthis.font = font;\r\n\t\tupdateValues();\r\n\t}",
"private void setFont() {\n Typeface font = Typeface.createFromAsset(getContext().getAssets(), mFontPath);\n setTypeface(font, Typeface.NORMAL);\n }",
"public native void setFont(Font value) /*-{\n\t\tvar jso = [email protected]::getJsObj()();\n\t\tjso.font = [email protected]::getJsObj()();\n }-*/;",
"public void setFont(Font font)\r\n\t{\r\n\t\t_g2.setFont(font);\r\n\t}",
"@Override\r\n public void setFont(Font font) {\r\n super.setFont(new Font(\"Arial\", Font.PLAIN, 11)); \r\n }",
"private void setFont() {\n\t\tsessionTitle.setFont(FONT_TITLE);\n\t\tdetailedDescription.setFont(FONT_DESCRIPTION);\n\t\texitButton.setFont(FONT_BUTTON);\n\t}",
"public void setFont(Font font)\n{\n\ttextArea().setFont(font);\n}",
"@Override\r\n public void setFont(Font font) {\r\n super.setFont(new Font(\"Times New Roman\", Font.BOLD, 18));\r\n }",
"public void setLabelFont(Font f);",
"public void setFont(Font fnt) {\n\t\tborder.setTitleFont(fnt);\n\t}",
"public void setFont(Font newFont) {\r\n\t\tfont = newFont;\r\n\t}",
"public void setFont(String property, Font font) {\r\n Font oldValue = calendarTable.getFont(property);\r\n if (font == oldValue) {\r\n return;\r\n }\r\n calendarTable.setFont(property, font);\r\n if (property.equals(FONT_PREFIX + \"Controls\")) {\r\n for(int i = 0, n = controlsPanel.getComponentCount(); i < n; i++) {\r\n controlsPanel.getComponent(i).setFont(font);\r\n }\r\n }\r\n firePropertyChange(\"Font.\" + property, oldValue, font);\r\n }",
"void setFontFamily(ReaderFontSelection f);",
"public void setFont(Font newFont) {\n\tfont = newFont;\n }",
"public static void setFont(Font font){\n\t\tGComponent.fGlobalFont = font;\n\t}",
"public void setFont(org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont font)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont)get_store().find_element_user(FONT$0, 0);\n if (target == null)\n {\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont)get_store().add_element_user(FONT$0);\n }\n target.set(font);\n }\n }",
"public void setFont(String font) {\r\n\t\tProps p = getPage().getPageProperties();\r\n\t\t_fontTagStart = p.getProperty(font + Props.TAG_START);\r\n\t\t_fontTagEnd = p.getProperty(font + Props.TAG_END);\r\n\t}",
"public void setFont(BitmapFont font) {\n\t\tthis.font = font;\n\t\tthis.setLabel(this.label);\n\t}",
"public void setFontName(String name)\n {\n font.setFontName(name);\n }",
"public void setLabelFont(Font value) {\n labelFont = value;\n }",
"public void setFont(String fontname, int fontsize){\n\t\tint tw = textWidth;\n\t\tint fs = (int) localFont.getSize();\n\t\tlocalFont = GFont.getFont(winApp, fontname, fontsize);\n\t\tif(fontsize > fs)\n\t\t\theight += (fontsize - fs);\n\t\tsetText(text);\n\t\tif(textWidth > tw)\n\t\t\twidth += (textWidth - tw);\n\t\tArrayList<GOption> options = optGroup.getOptions();\n\t\tfor(int i = 0; i < options.size(); i++)\n\t\t\toptions.get(i).setWidth((int)width - 10);\n\t\tslider.setX((int)width - 10);\n\t}",
"@Override\n public void setFont(Font f) {\n super.setFont(f);\n menuDirty = true;\n ResizeUtils.updateSize(this, actions);\n }",
"public void setFontSize(int font) {\n\t\tthis.font = font;\n\t}",
"public static void setFont(String fontName, int fontSize, int style){\n\t\tGComponent.fGlobalFont = new Font(fontName, fontSize, style);\n\t}",
"public void setFontNameText( String text )\r\n\t{\r\n\t\t// set the text in the Font Name text field as per the String passed in\r\n\t\tfontNameTextField.setText( text );\r\n\t}",
"public final void setConsoleFont(Font font) {\r\n\t\tconsole.setFont(font);\r\n\t}",
"public void setFontName(String name) {\n\t\tthis.fontName = name;\n\t}",
"private void updateFont() {\n this.currFont = new Font(this.currentFontFamily.getItemText(this.currentFontFamily.getSelectedIndex()),\n Integer.parseInt(this.currentFontSize.getItemText(this.currentFontSize.getSelectedIndex())),\n this.currentFontStyle.getItemText(this.currentFontStyle.getSelectedIndex()),\n Font.NORMAL,\n this.currentFontWeight.getItemText(this.currentFontWeight.getSelectedIndex())); \n }",
"public void setFont(Font f) {\n super.setFont(f);\n columnWidth = 0;\n }",
"public void setFont(RMFont aFont) { }",
"public void setFont(int fontId){\n this.fontId = fontId;\n }",
"public void setFont(String str) {\n if (Strings.notEmpty(str)) {\n Typeface typeface = FontUtils.getTypeface(this.textView.getContext(), str);\n if (typeface != null) {\n this.textView.setTypeface(typeface);\n }\n }\n }",
"public HintPad setFont(Font font) {\r\n\t\tthis.font = font;\r\n\t\treturn this;\r\n\t}",
"public Font setFontStyle(String font){\n\t\treturn new Font(font, Font.BOLD, 1);\r\n\t}",
"public final void setFont(NativeCallback fontCallback) {\n\t\t// checks if consistent\n\t\tif (fontCallback != null) {\n\t\t\t// resets callback\n\t\t\tsetFont((FontCallback<DatasetContext>) null);\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, fontCallback);\n\t\t} else {\n\t\t\t// stores the font\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, getOriginalFont());\n\t\t}\n\t}",
"public final void setFont(FontCallback<DatasetContext> fontCallback) {\n\t\t// sets the callback\n\t\tthis.fontCallback = fontCallback;\n\t\t// checks if consistent\n\t\tif (fontCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, fontCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// stores the font\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, getOriginalFont());\n\t\t}\n\t}",
"public native final EditorBaseEvent fontFamily(String val) /*-{\n\t\tthis.fontFamily = val;\n\t\treturn this;\n\t}-*/;",
"public LabelBuilder setFont(FontCallback<LabelsContext> fontColorCallback) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.setFont(fontColorCallback);\n\t\treturn this;\n\t}",
"public void setTrueFont(Font font)\n\t{\n\t\tString bodyRule = \"body { font-family: \" + font.getFamily() + \"; \" +\n\t\t\t\t\"font-size: \" + font.getSize() + \"pt; }\";\n\t\t((HTMLDocument)getDocument()).getStyleSheet().addRule(bodyRule);\n\t\t//Sets the font for when the JEditorPane is switched to plain text.\n\t\tsetFont(font);\n\t}",
"public LabelBuilder setFontFamily(String fontFamily) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setFamily(fontFamily);\n\t\treturn this;\n\t}",
"private void setFonts() {\n fileTitle.setFont(MasterDisplay.titleFont);\n entryFileButton.setFont(MasterDisplay.tabAndButtonFont);\n entryFileLabel.setFont(MasterDisplay.tabAndButtonFont);\n itemFileButton.setFont(MasterDisplay.tabAndButtonFont);\n itemFileLabel.setFont(MasterDisplay.tabAndButtonFont);\n outputFolderButton.setFont(MasterDisplay.tabAndButtonFont);\n outputFolderLabel.setFont(MasterDisplay.tabAndButtonFont);\n }",
"public static void setFont(Font font) {\n if (sThis != null && sThis.mLogPanel != null) {\n sThis.mLogPanel.setFont(font);\n }\n }",
"public void setHtmlFont(Font font) {\n htmlFont = font;\n if (fontStyle != null) {\n mainStyle.removeStyleSheet(fontStyle);\n }\n fontStyle = new StyleSheet();\n fontStyle.addRule(createCSS(font));\n mainStyle.addStyleSheet(fontStyle);\n }",
"public void setFontStyle(TextView textObject) {\n textObject.setTypeface(mFontStyle);\n }",
"private void initFontAndChange(Context context) {\n changeFont(context);\n }",
"public static void setFont(PApplet theApplet, String fontName, int fontSize){\n\t\tif(theApplet != null)\n\t\t\tGComponent.globalFont = GFont.getFont(theApplet, fontName, fontSize);\n\t}",
"public static void setDefaultFont(Font f) {\r\n defaultFont = f;\r\n }",
"public void setFont(String key, Font value) {\n\t\tif (value != null && !value.equals(getDefault(key)))\n\t\t\tinternal.setProperty(key, value.getName() + \" \" + value.getSize() + \" \" + value.getStyle());\n\t\telse\n\t\t\tinternal.remove(key);\n\t}",
"public void change_browser_font(Font font){\n\t\tbrowser_font = font;\n\t\tgui_globals.change_html_pane_font(this.browser, font);\n\t}",
"private void setupFont() {\n CalligraphyConfig.initDefault(new CalligraphyConfig.Builder()\n .setDefaultFontPath(\"fonts/Montserrat-Regular.otf\")\n .setFontAttrId(R.attr.fontPath)\n .build()\n );\n }",
"public final void setFontFamily(final String fontFamily) {\n if (!this.fontFamily.equals(fontFamily)) {\n this.fontFamily = fontFamily;\n flush();\n }\n\n }",
"private void applyFontStyle() {\r\n\t\tfinal Font font = SWTGraphicUtil.buildFontFrom(this.control, PromptSupport.getFontStyle(this.control));\r\n\t\tthis.control.setFont(font);\r\n\t\tSWTGraphicUtil.addDisposer(this.control, font);\r\n\t}",
"public void setFont(Font newFont, Timing delay, Timing duration) {\r\n\t\tif (gen instanceof AdvancedTextGeneratorInterface)\r\n\t\t\t((AdvancedTextGeneratorInterface)gen).setFont(this, newFont, \r\n\t\t\t\t\tdelay, duration);\r\n\t\telse\r\n\t\t\tthrow new IllegalArgumentException(\"gen is not an AdvancedTextGeneratorInterface -- \" +gen);\r\n\r\n\t}",
"public static void setFont(String fontName, int fontSize){\n\t\tsetFont(fontName, fontSize, Font.PLAIN);\n\t}",
"public void setFontColor(Color fontColor) {\r\n try {\r\n this.setForeground(fontColor);\r\n } catch (Exception e) {\r\n ToggleButton.logger.error(this.getClass().toString() + \" : Error establishing font color\", e);\r\n if (ApplicationManager.DEBUG) {\r\n ToggleButton.logger.error(null, e);\r\n }\r\n }\r\n }",
"public void initFont() {\r\n\t\tFont dosFont = null;\r\n try {\r\n \t//setup font\r\n\t\t\t\tURL fontUrl = getURL(\"fonts/DOSFont.ttf\");\r\n\t\t \tdosFont = Font.createFont(Font.TRUETYPE_FONT, fontUrl.openStream());\r\n\t \tdosFont = dosFont.deriveFont(Font.PLAIN, 15);\r\n\t \tGraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();\r\n\t \tge.registerFont(dosFont);\r\n\t } catch(Exception e) {\r\n\t e.printStackTrace();\r\n\t System.exit(-1);\r\n\t }\r\n screen.setFont(dosFont);//set font on JTextArea\r\n\t}",
"@Override\n public void setTypeface() {\n mAppNameTxt.setTypeface(Typeface.createFromAsset(getContext().getAssets(),\n CUSTOM_FONTS_ROOT + CUSTOM_FONT_NAME));\n }",
"public PatchTextStyleProperties font(String font) {\n this.font = font;\n return this;\n }",
"public void setFontStyle(final FontStyles fontStyle)\n\t{\n\t\tthis.fontStyle = fontStyle;\n\t}",
"public void createFont()\n {\n my_font = new Font(\"Helvetica\", Font.BOLD, (int) (getWidth() * FONT_SIZE));\n }",
"public void setModifierFont(String name, int type, int size, float tracking, Boolean kerning) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size, kerning, tracking);\n _SPR.RefreshModifierFont();\n }",
"void setFontSpacingSlider(Font font);",
"public LabelBuilder setFontStyle(FontStyle fontStyle) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.getFont().setStyle(fontStyle);\n\t\treturn this;\n\t}",
"public String getFont() {\n return font;\n }",
"public void setDisplayFont(int size){\n\t\tscreen.setFont(new Font(\"Serif\",Font.BOLD,size));\r\n\t}",
"private void loadSystemFont(String font){\n mFont = new Font(font, mFontStyle, (int)mFontSize);\n }",
"public void setModifierFont(String name, int type, int size) \n {\n RendererSettings.getInstance().setLabelFont(name, type, size);\n _SPR.RefreshModifierFont();\n }",
"@Override\n public String getFont() {\n return graphicsEnvironmentImpl.getFont(canvas);\n }",
"public void setSelectedFontName( String fontName )\r\n\t{\r\n\t\t// set the currently selected font name as per the string passed in if it exists in the list\r\n\t\t// second parameter set to true so scroll pane will scroll to selected item\r\n\t\tfontNamesList.setSelectedValue( fontName, true );\r\n\t}",
"protected void doStandardFonts() {\r\n\t\trenderer.txt.setUseStandardFonts(ui.viewStandardFonts.isSelected());\r\n\t}",
"public void setFont(ViewGroup group, Typeface font) {\n\t\tint count = group.getChildCount();\n\t\tView v;\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tv = group.getChildAt(i);\n\t\t\tif (v instanceof TextView || v instanceof EditText || v instanceof Button) {\n\t\t\t\t((TextView) v).setTypeface(font);\n\t\t\t} else if (v instanceof ViewGroup)\n\t\t\t\tsetFont((ViewGroup) v, font);\n\t\t}\n\t}",
"private void updateFontSet() {\n if (!isBigFontSet()) {\n UIFontUtils.initFontDefaults(UIManager.getDefaults(), null);\n } else {\n// <snip> Install sscaled font\n FontPolicy windowsPolicy = FontPolicies.getDefaultWindowsPolicy();\n FontSet fontSet = windowsPolicy.getFontSet(null, UIManager\n .getLookAndFeelDefaults());\n WrapperFontSet scaled = new WrapperFontSet(fontSet, 5);\n UIFontUtils.initFontDefaults(UIManager.getDefaults(), scaled);\n// </snip>\n }\n updateLookAndFeel();\n }",
"public void setNodeLabelFont(Font value) {\n nodeLabelfont = value;\n }",
"@Override\r\n public void activate() {\n getControl().setFont(getControl().getParent().getFont());\r\n }",
"public void setMatchFontName(String matchFontName);",
"public static void changeFont ( Component component, Font font )\n {\n component.setFont ( font );\n if ( component instanceof Container )\n {\n for ( Component child : ( ( Container ) component ).getComponents () )\n {\n changeFont ( child, font );\n }\n }\n }",
"public synchronized void setProvider(FontProvider fontProvider) {\n/* 136 */ this.fontInfoByName = createFontInfoByName(fontProvider.getFontInfo());\n/* 137 */ this.fontProvider = fontProvider;\n/* */ }",
"@FXML\r\n void fontAction() {\r\n // default css code for each characteristics of the text\r\n String textFont = \"-fx-font-family: \";\r\n String textSize = \"-fx-font-size: \";\r\n String textStyle = \"\";\r\n\r\n // Create and take the input from the Font dialog\r\n Dialog<Font> fontSelector = new FontSelectorDialog(null);\r\n Optional<Font> result = fontSelector.showAndWait();\r\n\r\n // add changes to the default CSS code above based on the users\r\n if (result.isPresent()) {\r\n Font newFont = result.get();\r\n textFont += \"\\\"\" + newFont.getFamily() + \"\\\";\";\r\n textSize += newFont.getSize() + \"px;\";\r\n\r\n // some basics CSS font characteristics\r\n String style = newFont.getStyle();\r\n String style_italic = \"-fx-font-style: italic;\";\r\n String style_regular = \"-fx-font-weight: normal ;\";\r\n String style_bold = \"-fx-font-weight: bold;\";\r\n switch (style) {\r\n case \"Bold Italic\":\r\n textStyle += style_bold + \"\\n\" + style_italic;\r\n case \"Italic\":\r\n textStyle += style_italic;\r\n case \"Regular\":\r\n textStyle += style_regular;\r\n case \"Regular Italic\":\r\n textStyle += style_italic;\r\n default:\r\n textStyle += style_bold;\r\n }\r\n\r\n // Add all characteristic to a single string\r\n String finalText = textFont + \"\\n\" + textSize;\r\n finalText += \"\\n\" + textStyle;\r\n // Display options and set that options to the text\r\n defOutput.setStyle(finalText);\r\n }\r\n }",
"public void setFontSize(float fs) {\n\t\tif (fs != fontSize) {\n\t\t\tfontSize = fs;\n\t\t\treload();\n\t\t}\n\t}",
"public void setCharSet(byte charset)\n {\n font.setCharset(charset);\n }",
"protected void applyFont() {\n\t\tif (fields != null) {\n\t\t\tIterator<FieldEditor> e = fields.iterator();\n\t\t\twhile (e.hasNext()) {\n\t\t\t\tFieldEditor pe = e.next();\n\t\t\t\t// pe.applyFont();\n\t\t\t}\n\t\t}\n\t}",
"public void changeFonts(){\n Typeface typeFace = Typeface.createFromAsset (this.getAssets (), \"fonts/courier.ttf\");\n sloganTV.setTypeface (typeFace);\n }",
"public Handler(Font f)\n {\n font_var=f; //sets font as font button selected\n }",
"public FontUIResource getControlTextFont() { return fControlFont;}",
"public TextBox() {\n font = new Font(fontname, fontstyle, fontsize);\n }",
"public Font getFont(\n )\n {return font;}",
"public CanvasFont getFont() {\n return this.textFont;\n }"
]
| [
"0.8235779",
"0.82288396",
"0.81725985",
"0.81414425",
"0.8133497",
"0.81163645",
"0.81072056",
"0.80535376",
"0.8045172",
"0.7982945",
"0.7981309",
"0.7968219",
"0.78580487",
"0.7816034",
"0.7727839",
"0.7718763",
"0.7700486",
"0.76782453",
"0.76599056",
"0.7637393",
"0.7611833",
"0.7605156",
"0.75707465",
"0.7521241",
"0.75160617",
"0.74825466",
"0.7466373",
"0.74198186",
"0.7380443",
"0.7368456",
"0.73438126",
"0.7310891",
"0.73068",
"0.7170031",
"0.7137037",
"0.71036017",
"0.7074022",
"0.70255715",
"0.70238024",
"0.69971746",
"0.6996027",
"0.6990444",
"0.69333917",
"0.6931173",
"0.6883273",
"0.68686193",
"0.6854969",
"0.6847085",
"0.6763212",
"0.674778",
"0.67326677",
"0.6706626",
"0.6706394",
"0.6690891",
"0.66821426",
"0.66736645",
"0.6634901",
"0.66136765",
"0.65822464",
"0.6569198",
"0.6568105",
"0.65629506",
"0.6554823",
"0.654976",
"0.6533179",
"0.65287834",
"0.65013117",
"0.64979464",
"0.6496587",
"0.6476427",
"0.6464642",
"0.64512026",
"0.64457285",
"0.6445235",
"0.64366984",
"0.6431148",
"0.6391401",
"0.63849795",
"0.63732606",
"0.63593835",
"0.6357743",
"0.6331836",
"0.63124454",
"0.63026834",
"0.62953264",
"0.6293413",
"0.6281366",
"0.6280015",
"0.62630534",
"0.6259744",
"0.6256034",
"0.62519157",
"0.624058",
"0.623914",
"0.6228247",
"0.62262464",
"0.6224247",
"0.62159306",
"0.61803615",
"0.61712384"
]
| 0.663732 | 56 |
maintain the current login user info. after login. | public User getUser() {
return user;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkUser() {\n\t\tloginUser = mySessionInfo.getCurrentUser();\n\t}",
"private void loggedInUser() {\n\t\t\n\t}",
"public void updateCurrentTrempitUser() {\n\n // create the trempituser object\n TrempitUser currentUser = new TrempitUser();\n currentUser.setFullName(Profile.getCurrentProfile().getName());\n currentUser.setId(Long.valueOf(Profile.getCurrentProfile().getId()));\n\n // update the global variable so all activities can access the user\n globalState.setCurrentUser(currentUser);\n\n // insert the user to the server\n insertTrempitUserToServer(currentUser);\n\n Toast.makeText(this, \"logged in to facebook:\" + globalState.getCurrentUser().getFullName(), Toast.LENGTH_LONG).show();\n }",
"private void updateUserLogin() {\n\t\tSessionManager sessionManager = new SessionManager(\n\t\t\t\tMyApps.getAppContext());\n\n\t\tRequestParams params = new RequestParams();\n\t\tparams.add(\"user_id\", sessionManager.getUserDetail().getUserID());\n\n\t\tLog.d(\"EL\", \"userID: \" + sessionManager.getUserDetail().getUserID());\n\n\t\tKraveRestClient.post(WebServiceConstants.AV_UPDATE_USER_PROFILE_DATA_1,\n\t\t\t\tparams, new JsonHttpResponseHandler() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tJSONObject response) {\n\n\t\t\t\t\t\tsuper.onSuccess(statusCode, headers, response);\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLog.d(\"EL\", \"response: \" + response.toString(2));\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(int statusCode, Header[] headers,\n\t\t\t\t\t\t\tThrowable throwable, JSONObject errorResponse) {\n\n\t\t\t\t\t\tsuper.onFailure(statusCode, headers, throwable,\n\t\t\t\t\t\t\t\terrorResponse);\n\t\t\t\t\t}\n\t\t\t\t});\n\t}",
"private void storeLoggedInUser(LoginResponse response){\n preferenceManager = SharedPreferenceManager.getInstance(this);\n preferenceManager.StoreAccountDetails(response.getAccount());\n\n if(response.getCamera() != null){\n preferenceManager.StoreDeviceDetails(response.getCamera());\n }\n registerDeviceToken();\n }",
"@Override\n\tpublic UserFormData loggedIn(final UserFormData userData) {\n\t\tfinal Date now = new Date();\n\t\tLOG.info(new StringBuilder().append(\"User \" + userData.getEmail()).append(\" (login : \" + userData.getLogin())\n\t\t\t\t.append(\") juste logged in, updating stats data\").toString());\n\t\tSQL.insert(SQLs.USER_UPDATE_LAST_LOGIN, userData, new NVPair(\"currentDate\", now));\n\n\t\tthis.dataCache.clearCache(userData.getUserId().getValue());\n\t\treturn userData;\n\t}",
"private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }",
"private void getUser(){\n mainUser = DatabaseAccess.getUser();\n }",
"public void login() {\n\t\tUser user = new User(\"admin\", \"12345678\", Role.ADMIN);\n\t\tuser.setEmail(\"[email protected]\");\n\t\t\n\t\tif(user != null) {\n\t\t\tuserBean.setLoggedInUser(user);\n\t\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\tHttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();\n\t\t\treq.getSession().setAttribute(ATTR_USER, user);\n\t\t}else{\n\t\t\tkeepDialogOpen();\n\t\t\tdisplayErrorMessageToUser(\"Wrong Username/Password. Try again\");\n\t\t}\n\t\t\n\t}",
"public void login() {\n\t\tloggedIn = true;\n\t}",
"private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }",
"User getCurrentLoggedInUser();",
"private void setAuthenticatedUser(HttpServletRequest req, HttpSession httpSess, String userName) {\n\t\t// Set the authentication\n\t\tauthComponent.setCurrentUser(userName);\n\n\t\t// Set up the user information\n\t\tUserTransaction tx = transactionService.getUserTransaction();\n\t\tNodeRef homeSpaceRef = null;\n\t\tUser user;\n\t\ttry {\n\t\t\ttx.begin();\n\t\t\tuser = new User(userName, authService.getCurrentTicket(), personService.getPerson(userName));\n\t\t\thomeSpaceRef = (NodeRef) nodeService.getProperty(personService.getPerson(userName), ContentModel.PROP_HOMEFOLDER);\n\t\t\tif(homeSpaceRef == null) {\n\t\t\t\tlogger.warn(\"Home Folder is null for user '\"+userName+\"', using company_home.\");\n\t\t\t\thomeSpaceRef = (NodeRef) nodeService.getRootNode(Repository.getStoreRef());\n\t\t\t}\n\t\t\tuser.setHomeSpaceId(homeSpaceRef.getId());\n\t\t\ttx.commit();\n\t\t} catch (Throwable ex) {\n\t\t\tlogger.error(ex);\n\n\t\t\ttry {\n\t\t\t\ttx.rollback();\n\t\t\t} catch (Exception ex2) {\n\t\t\t\tlogger.error(\"Failed to rollback transaction\", ex2);\n\t\t\t}\n\n\t\t\tif (ex instanceof RuntimeException) {\n\t\t\t\tthrow (RuntimeException) ex;\n\t\t\t} else {\n\t\t\t\tthrow new RuntimeException(\"Failed to set authenticated user\", ex);\n\t\t\t}\n\t\t}\n\n\t\t// Store the user\n\t\thttpSess.setAttribute(AuthenticationHelper.AUTHENTICATION_USER, user);\n\t\thttpSess.setAttribute(LoginBean.LOGIN_EXTERNAL_AUTH, Boolean.TRUE);\n\n\t\t// Set the current locale from the Accept-Lanaguage header if available\n\t\tLocale userLocale = parseAcceptLanguageHeader(req, m_languages);\n\n\t\tif (userLocale != null) {\n\t\t\thttpSess.setAttribute(LOCALE, userLocale);\n\t\t\thttpSess.removeAttribute(MESSAGE_BUNDLE);\n\t\t}\n\n\t\t// Set the locale using the session\n\t\tI18NUtil.setLocale(Application.getLanguage(httpSess));\n\n\t}",
"private void initializeCurrentUser() {\n if (enableLoginActivity && mAuth.getCurrentUser() != null) {\n try {\n initializeUser();\n refreshGoogleCalendarToken();\n } catch (PetRepeatException e) {\n Toast toast = Toast.makeText(this, getString(R.string.error_pet_already_existing),\n Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (mAuth.getCurrentUser() != null) {\n mAuth.getCurrentUser().getIdToken(false).addOnCompleteListener(task -> {\n user.setToken(Objects.requireNonNull(task.getResult()).getToken());\n });\n }\n }\n }",
"private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }",
"protected void login() {\n\t\t\r\n\t}",
"@Override\n\tpublic void loginUser() {\n\t\t\n\t}",
"private boolean setLoggedInUser(String userId) {\n if (currentContext != null) {\n //Set the user Id when user is successfully logged_in\n if (mFireBaseAnalytics != null)\n mFireBaseAnalytics.setUserId(userId);\n SharedPreferences sharedPrefs = currentContext.getSharedPreferences(LOGIN_SHARED_PREF_NAME, 0);\n return sharedPrefs.edit().putString(USER_ID_SHARED_PREF_NAME, userId).commit() &&\n setLoggedInTime();\n }\n return false;\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public static void saveLogin(Context context) {\n // we save login so that if data is cleared, checkLogin() will always return false regardless of FirebaseAuth current user nullity, therefore forcing a re-login on the next launch of MainActivity\n SharedPreferences sharedPreferences = context.getSharedPreferences(Utils.SHARED_PREFERENCES_FILE, Context.MODE_PRIVATE);\n if (FirebaseAuth.getInstance().getCurrentUser() != null) {\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(LOGIN_SAVED_KEY, true);\n editor.apply();\n }\n }",
"private void getCurrentUser() {\r\n // Eingeloggte Person holen\r\n currentUser = loginBean.getLoggedInPerson();\r\n\r\n if (currentUser != null && currentUser.getEmployees().isEmpty() == false) {\r\n employeeList.clear();\r\n employeeList.addAll(currentUser.getEmployees());\r\n }\r\n }",
"public void persistLoginState(String email) {\n SharedPreferences sp = getSharedPreferences(SP_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n editor.putString(SP_USERNAME, email);\n editor.apply();\n }",
"private void initUser() {\n\t}",
"public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}",
"@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}",
"private EndUser getCurrentLoggedUserDetails() {\n\n\t\tEndUser endUser = endUserDAOImpl.findByUsername(getCurrentLoggedUserName()).getSingleResult();\n\n\t\treturn endUser;\n\n\t}",
"public void setAuthentication(){\n SharedPreferences settings = mContext.getSharedPreferences(\"UserData\", Context.MODE_PRIVATE);\n SharedPreferences.Editor preferencesEditor = settings.edit();\n preferencesEditor.putString(\"userid\", mUserId);\n preferencesEditor.putString(\"areaid\", mAreaId);\n preferencesEditor.commit();\n }",
"private static void logedIn(Request req, Response res, CloudService cloud) {\r\n\t\t\tif (cloud.getKorisnici().get(req.cookie(\"userID\")) == null) {\r\n\t\t\t\tString[] params = req.splat();\r\n\t\t\t\tString path;\r\n\t\t\t\tif(params.length == 0)\r\n\t\t\t\t\tpath = \"\";\r\n\t\t\t\telse\r\n\t\t\t\t\tpath = params[0];\r\n\t\t\t\tif(path.equals(\"checkLogin\") || path.equals(\"favicon.ico\"))\r\n\t\t\t\t\treturn;\r\n\t\t\t\tres.redirect(\"/login.html\");\r\n\t\t\t\thalt(302);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(req.session().attribute(\"user\") == null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tKorisnik k = cloud.getKorisnici().get(req.cookie(\"userID\"));\r\n\t\t\t\t\treq.session().attribute(\"user\", k); // postavi mu korisnika za sesiju\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"public static void userLogin(Context context)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t\r\n\t\t\r\n\t\t\tString username = context.formParam(\"myUsername\");\r\n\t\t\tString password = context.formParam(\"myPassword\");\r\n\t\t\t\r\n\t\t\tif(myAccountServ.attemptLoginServiceLayer(username, password)) //if true then get user account from DB\r\n\t\t\t{\r\n\t//\t\t\tSystem.out.println(myAccountServ.getMyAccountFromDatabase(username, password));\r\n\t\t\t\tcontext.sessionAttribute(\"currentUser\", myAccountServ.getMyAccountFromDatabase(username, password)); //set session to user account info\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")));\r\n\t//\t\t\tSystem.out.println(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1);\r\n\t\t\t\tif(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 1)//check user role id if they employeee\r\n\t\t\t\t{\r\n\t\t\t\t\t//take me to the employee page\r\n\t\t\t\t\tcontext.redirect(\"/html/employee-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(((Account)context.sessionAttribute(\"currentUser\")).getRoleId() == 0) // or if they manager\r\n\t\t\t\t{\r\n\t\t\t\t\tcontext.redirect(\"/html/manager-page.html\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse//if we failed login attempt... send us back to login page aka \"/index.html\"\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"not correct credentials\");\r\n\t\t\t\tcontext.redirect(\"/index.html\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tLogging.error(e);\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"username: \" + username);\r\n//\t\tSystem.out.println(\"pssword: \" + password);\r\n\t}",
"private void masuk(){\n Preferences.setLoggedInUser(getBaseContext(),Preferences.getRegisteredUser(getBaseContext()));\n Preferences.setLoggedInStatus(getBaseContext(), true);\n startActivity(new Intent(getBaseContext(),MainActivity.class));\n finish();\n }",
"public void userLoggedIn(CurrentUser user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged in\");\t\t\n\t\t\tMainActivity.this.userLoggedIn();\n\t\t}",
"public void userLoggedIn(CurrentUser user) \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"User logged in\");\n\t\t\tMainActivity.this.userLoggedIn();\n\t\t}",
"private boolean loginAndStore(boolean isNewUser)\r\n {\n \r\n List<Pair<String, String>> requestHeaderProperties = new ArrayList<>(1);\r\n String encoding = Base64.getEncoder().encodeToString((usernameField.getText() + \":\" + passwordField.getText()).getBytes());\r\n requestHeaderProperties.add(new Pair<>(\"Authorization\", \"Basic \" + encoding));\r\n \r\n JsonElement jsonDataPacket = new ArborJsonRetriever().getResponseJson(girderBaseURL + \"user/authentication\", \"GET\", requestHeaderProperties);\r\n \r\n //System.out.println(jsonDataPacket);\r\n \r\n if (jsonDataPacket == null)\r\n {\r\n if (isNewUser)\r\n new Alert(Alert.AlertType.ERROR, \"Exceptional error: New user registration completed successfully, but login with the new credentials failed.\", ButtonType.OK).showAndWait();\r\n else\r\n new Alert(Alert.AlertType.ERROR, \"Login failed.\", ButtonType.OK).showAndWait();\r\n \r\n return false;\r\n }\r\n \r\n JsonObject jsonDataPacketObj = jsonDataPacket.getAsJsonObject();\r\n \r\n userInfo = new ArborUserInfo(\r\n jsonDataPacketObj.get(\"user\").getAsJsonObject().get(\"_id\").getAsString(),\r\n jsonDataPacketObj.get(\"user\").getAsJsonObject().get(\"login\").getAsString(),\r\n jsonDataPacketObj.get(\"user\").getAsJsonObject().get(\"firstName\").getAsString(),\r\n jsonDataPacketObj.get(\"user\").getAsJsonObject().get(\"lastName\").getAsString(),\r\n jsonDataPacketObj.get(\"user\").getAsJsonObject().get(\"email\").getAsString(),\r\n jsonDataPacketObj.get(\"authToken\").getAsJsonObject().get(\"token\").getAsString(),\r\n jsonDataPacketObj.get(\"authToken\").getAsJsonObject().get(\"expires\").getAsString());\r\n \r\n if (isNewUser)\r\n new Alert(Alert.AlertType.CONFIRMATION, \"Account created! Welcome, \" + userInfo.getFirstName() + \"!\", ButtonType.OK).showAndWait();\r\n else\r\n new Alert(Alert.AlertType.CONFIRMATION, \"Login successful! Welcome, \" + userInfo.getFirstName() + \"!\", ButtonType.OK).showAndWait();\r\n \r\n return true;\r\n }",
"@Override\n public UserInfo loadUserInfo() {\n // load the user directly from the database. the instance returned from currentUser() might not\n // be with the latest changes\n return userGroupService.findUser(userGroupService.currentUser().getUsername());\n }",
"@Override\r\n\tpublic User getCurrentUser() {\r\n\t\tString currentUserName = this.getCurrentUserName();\r\n\t\tUser userdetails = this.getByUsername(currentUserName);\r\n\t\treturn userdetails;\r\n\t}",
"private UserID getCurrentUser()\n\t{\n\t return (UserID)request.getSession().getAttribute(\"userID\");\n\t}",
"private void makeLogin() {\n if (enableLoginActivity && mAuth.getCurrentUser() == null) {\n startActivity(new Intent(MainActivity.this, LoginActivity.class));\n finish();\n }\n else if (!enableLoginActivity) {\n user = new User(\"johnDoe\", \"[email protected]\", \"1234\");\n }\n }",
"private void getUserInfo() {\n\t}",
"private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }",
"@Override\r\n\tpublic void login() {\n\t\t\r\n\t}",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif (userManager.getCurrentUser() != null) {\n\t\t\t// ÿ���Զ���½��ʱ�����Ҫ�����µ�ǰλ�úͺ��ѵ�����\n\t\t\tupdateUserInfos();\n\t\t\tmHandler.sendEmptyMessageDelayed(GO_HOME, 2000);\n\t\t} else {\n\t\t\tmHandler.sendEmptyMessageDelayed(GO_LOGIN, 2000);\n\t\t}\n\t}",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setUser(java.lang.String param){\r\n localUserTracker = true;\r\n \r\n this.localUser=param;\r\n \r\n\r\n }",
"public void setlogUserIn() {\n\t\tmenu1.setOnAction(event -> {\n\t\t\topenUserSettings();\n\t\t});\n\t\tmenu2.setOnAction(event -> {\n\t\t\tsetlogUserOut();\n\t\t});\n\t\tuserMenuButton.setText(controller.loggedIn());\n\t\tuserMenuButton.setStyle(\"-fx-font-size: 10pt; -fx-text-fill:black;\"); // MUOTOILU CSSSSSÄÄÄÄN\n\t\tuserMenuButton.getItems().addAll(menu1, menu2);\n\t\tloggedinuser.setVisible(true);\n\t\tloggedinuser.setText(bundle.getString(\"mVloggedin\"));\n\t\tloggedinuser.setGraphic(userMenuButton);\n\t\tloggedinuser.setContentDisplay(ContentDisplay.RIGHT);\n\t\tuserSettings.setVisible(true);\n\t\tloginoption.setVisible(false);\n\t}",
"public void userLogin(User user) {\n SharedPreferences sharedPreferences = mCtx.getSharedPreferences(AppConfig.SHARED_PREF_NAME, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putInt(AppConfig.ID, user.getId());\n editor.putString(AppConfig.NAME, user.getName());\n editor.putString(AppConfig.EMAIL, user.getEmail());\n editor.putString(AppConfig.AGE, user.getAge());\n editor.putString(AppConfig.GENDER, user.getGender());\n editor.putString(AppConfig.ADDRESS, user.getAddress());\n editor.apply();\n }",
"UserDetails getCurrentUser();",
"public void setLoggedUser(CustomEmployee user) {\n loggedUser = user;\n }",
"public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}",
"private void getGredentialsFromMemoryAndSetUser()\n\t{\n\t SharedPreferences settings = getSharedPreferences(LOGIN_CREDENTIALS, 0);\n\t String username = settings.getString(\"username\", null);\n\t String password = settings.getString(\"password\", null);\n\t \n\t //Set credentials to CouponsManager.\n\t CouponsManager.getInstance().setUser(new User(username, password));\n\t \n\t}",
"protected void proccesValues() {\n Users user = new Users();\n user.setName(bean.getName());\n user.setSurname(bean.getSurname());\n user.setUsername(bean.getUsername());\n StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();\n String encryptedPassword = passwordEncryptor.encryptPassword(bean.getPassword());\n user.setPassword(encryptedPassword);\n \n usersService.persist(user);\n Notification.show(msgs.getMessage(INFO_REGISTERED), Notification.Type.ERROR_MESSAGE);\n resetValues();\n UI.getCurrent().getNavigator().navigateTo(ViewLogin.NAME);\n }",
"private void getUserNamePwd() {\n\n try {\n // get Application Connection ID\n LogonCoreContext lgCtx = LogonCore.getInstance().getLogonContext();\n userName = lgCtx.getBackendUser();\n pwd = lgCtx.getBackendPassword();\n appConnID = LogonCore.getInstance().getLogonContext()\n .getConnId();\n } catch (LogonCoreException e) {\n LogManager.writeLogError(Constants.device_reg_failed_txt, e);\n }\n }",
"private void saveUserInformation() {\n name.setText(nameInput.getText().toString());\n\n if (name.getText().toString().isEmpty()) {\n name.setError(\"Name required\");\n name.requestFocus();\n return;\n }\n\n FirebaseUser user = mAuth.getCurrentUser();\n if (user != null) {\n if (isBname()) {\n updateName(user);\n }\n if (isBtitle()) {\n updateTitle(user);\n }\n }\n }",
"protected synchronized void login() {\n\t\tauthenticate();\n\t}",
"@Override\n public boolean setLoggedUser(User user) \n {\n try\n {\n File file = new File(System.getProperty(\"user.home\")+\"\\\\user.ser\");\n \n File file_remember_me = new File(System.getProperty(\"user.home\")+\"\\\\remember.ser\");\n if(!file_remember_me.exists()) file.deleteOnExit();\n \n FileOutputStream fout = new FileOutputStream(file);\n ObjectOutputStream oos = new ObjectOutputStream(fout); \n oos.writeObject(user);\n oos.close();\n\t}\n catch(Exception ex){ ex.printStackTrace();return false;}\n \n return true;\n }",
"private User getCurrentUser() {\n Authentication auth = SecurityContextHolder.getContext().getAuthentication();\n String username = auth.getName();\n return userService.findByUsername(username);\n }",
"@Override\n\tpublic boolean login(String userName, String password) {\n\t\tuk.ac.glasgow.internman.users.User user = users.getUser(userName, password);\n\t\tif (user != null){\n\t\t\tcurrentUser = user;\n\t\t\treturn true;\n\t\t}\n\t\telse return false;\n\t}",
"@Override\n\tpublic AuthUser update(AuthUser knownUser) {\n\t\tUser.setLastLoginDate(knownUser);\n\t\treturn knownUser;\n\t}",
"public void setCurrentUser(String username) {\n currentUser = username;\n }",
"public void setUser_login_data(Think.XmlWebServices.User_login_data user_login_data) {\n this.user_login_data = user_login_data;\n }",
"@Override\n\t public void onUserInfoFetched(GraphUser user) {\n\t \tupdateUI(user);\n\t \tif(user!=null)\n\t \t{\n\n\t \t}\n\t \telse{\n\t \t\t\n\t \t\tLog.d(\"username1\",\"you are not logged in\");\n\t \t}\n\t \n\t }",
"private void validateLoginUser() {\n\t\tUser user = userDao.getByPin(et_password.getText().toString());\n\t\tSession.setDriver(user);\n\n\t\tif (user.getWorkStatus().equals(User.STATUS_INACTIVE)) {\n\n\t\t\tdoLogin();\n\t\t} else {\n\t\t\tString locAt = \"\";\n\t\t\tif (user.getWorkStatus().equals(User.STATUS_IN_VEHICLE)) {\n\t\t\t\tVehiclesDao dao = new VehiclesDao();\n\t\t\t\tlocAt = dao.getById(user.getCurrentVehicleId()).getName();\n\t\t\t} else {\n\t\t\t\tServiceLocationDao dao = new ServiceLocationDao();\n\t\t\t\tlocAt = dao.getById(user.getCurrentServiceLocationId()).getName();\n\t\t\t}\n\t\t\tString msg = \"You are currently marked as \" + user.getWorkStatus() + \" at \" + locAt + \" since \" + user.getWorkStatusDate()\n\t\t\t\t\t+ \"\\n\" + \"Do you want to continue and override this status?\";\n\t\t\tAlertDialog.Builder alert_box = new AlertDialog.Builder(this);\n\t\t\talert_box.setIcon(R.drawable.icon);\n\t\t\talert_box.setMessage(msg);\n\t\t\talert_box.setPositiveButton(\"YES\", new DialogInterface.OnClickListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdoPunchOut(et_password.getText().toString());\n\t\t\t\t\tdoLogin();\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t});\n\t\t\talert_box.setNeutralButton(\"NO\", new DialogInterface.OnClickListener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tdialog.dismiss();\n\t\t\t\t}\n\t\t\t});\n\n\t\t\talert_box.show();\n\t\t}\n\t}",
"public void setUserMap() {\n ResultSet rs = Business.getInstance().getData().getAllUsers();\n try {\n while (rs.next()) {\n userMap.put(rs.getString(\"username\"), new User(rs.getInt(\"id\"),\n rs.getString(\"name\"),\n rs.getString(\"username\"),\n rs.getString(\"password\"),\n rs.getBoolean(\"log\"),\n rs.getBoolean(\"medicine\"),\n rs.getBoolean(\"appointment\"),\n rs.getBoolean(\"caseAccess\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }",
"public UserData login() {\n return null;\n }",
"private void setLoginInformation()\n {\n // Set up the login form.\n mIPView_ = (EditText) findViewById( R.id.IP );\n mPortView_ = (EditText) findViewById( R.id.password );\n\n // Set the intial display\n if ( rememberLoginIsSet_ )\n {\n if ( properties_.containsKey( getString( R.string.saved_IP ) ) )\n {\n mIP_ =\n properties_\n .getProperty( getString( R.string.saved_IP ) );\n }\n\n if ( properties_.containsKey( getString( R.string.saved_Port ) ) )\n {\n mPort_ =\n properties_\n .getProperty( getString( R.string.saved_Port ) );\n }\n }\n\n // Set the values to whatever the load settings or default are\n mIPView_.setText( mIP_ );\n mPortView_.setText( mPort_ );\n\n mPortView_\n .setOnEditorActionListener( new TextView.OnEditorActionListener()\n {\n @Override\n public boolean onEditorAction( TextView textView, int id,\n KeyEvent keyEvent )\n {\n if ( id == R.id.login || id == EditorInfo.IME_NULL )\n {\n attemptLogin();\n return true;\n }\n return false;\n }\n } );\n\n mLoginFormView = findViewById( R.id.login_form );\n mLoginStatusView = findViewById( R.id.login_status );\n mLoginStatusMessageView =\n (TextView) findViewById( R.id.login_status_message );\n }",
"public void shared() {\n\n String Email = editTextEmail.getText().toString();\n String Password = editTextPassword.getText().toString();\n String username = userstring;\n\n SharedPreferences sharedlog = getSharedPreferences(\"usernamelast\" , MODE_PRIVATE);\n SharedPreferences.Editor editorlogin = sharedlog.edit();\n editorlogin.putString(\"usernamelast\", username);\n editorlogin.apply();\n\n SharedPreferences sharedPref = getSharedPreferences(\"email\", MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"email\", Email);\n editor.apply();\n //Los estados los podemos setear en la siguiente actividad\n SharedPreferences sharedPref2 = getSharedPreferences(\"password\", MODE_PRIVATE);\n SharedPreferences.Editor editor2 = sharedPref2.edit();\n editor2.putString(\"password\", Password);\n editor2.apply();\n\n\n }",
"public void authUser(){\n\n String emptyString = \"\";\n if(!(String.valueOf(userName.getText()).equals(emptyString) ||\n String.valueOf(userNumber.getText()).equals(emptyString))){\n\n SharedPreferences preferences = getApplicationContext().getSharedPreferences(\"user_info\", 0);\n SharedPreferences.Editor editor = preferences.edit();\n editor.putBoolean(getResources().getString(R.string.isLoggedIn), true);\n editor.putString(getResources().getString(R.string.userName), String.valueOf(userName.getText()));\n editor.putString(getResources().getString(R.string.userNumber), String.valueOf(userNumber.getText()));\n editor.apply();\n\n Intent intent = new Intent(getApplicationContext(), HomeScreen.class);\n\n startActivity(intent);\n }\n else{\n Toast.makeText(getApplicationContext(),\n \"Please enter compelete credentials..\", Toast.LENGTH_SHORT)\n .show();\n }\n\n }",
"private void updateUserDetails() {\n \tUser user=CurrentSession.getCurrentUser();\n \tjLabel1.setText(\"Name:\");\n jLabel2.setText(user.getFirstName()+\" \"+user.getLastName());\n jLabel3.setText(\"Card Number:\");\n jLabel4.setText(user.getCardNumber());\n jLabel5.setText(\"Daily Calorie Intake\");\n FoodPreference fp=new FoodPreference(user.getCardNumber());\n jLabel6.setText(\"\"+fp.getUserCalories());\n jLabel7.setText(\"Monthly Expenses\");\n jLabel8.setText(\"\"+user.getExpenses());\n\n\t\t\n\t}",
"public void getCurrentUid() {\n\t\tSharedPreferences pref = getSharedPreferences(\"user_login\", 0);\n\t\tuid = pref.getString(\"uid\", \"\");\n\t}",
"private Users buildLogin( ) {\n\t\t\r\n\t\t return LoginUtil.fillUserData(this.user, this);\r\n\t\t \r\n\t}",
"public void logincredentials() {\n\t\tutil.entertext(prop.getValue(\"locators.text.uname\"), \"admin\");\n\t\tutil.entertext(prop.getValue(\"locators.text.password\"), \"Admin123\");\n\t\tutil.ClickElement(prop.getValue(\"locators.button.regdesk\"));\n\t\tutil.ClickElement(prop.getValue(\"locators.button.login\"));\n\t\tlogreport.info(\"logged into the application\");\n\n\t}",
"public void setUser(LoginUser loginUser)\n {\n try (Connection connection = DatabaseAccess.getInstance().getConnection())\n {\n Statement statement = connection.createStatement();\n\n String query =\n \"SELECT * FROM \" + loginUser.getAccessType() + \" WHERE email = '\"\n + loginUser.getUsername() + \"' AND password = '\" + loginUser\n .getPassword() + \"'\";\n\n ResultSet r = statement.executeQuery(query);\n r.next();\n\n if (loginUser.getAccessType() == AccessType.DOCTOR)\n {\n Address address = new Address(r.getString(\"add_street\"),\n r.getString(\"add_no\"), r.getString(\"add_zip_code\"),\n r.getString(\"add_city\"));\n\n user = new Doctor(r.getString(\"f_name\"), r.getString(\"mid_name\"),\n r.getString(\"l_name\"), r.getLong(\"ssn\"), r.getDate(\"dob\"), address,\n r.getString(\"contact_f_name\"), r.getString(\"contact_mid_name\"),\n r.getString(\"contact_l_name\"), r.getString(\"contact_phone\"),\n r.getDate(\"start_date\"), r.getString(\"education\"),\n r.getString(\"specialization\"),\n new Ward(r.getString(\"ward_name\"), r.getInt(\"room_number\")),\n r.getString(\"email\"), r.getString(\"password\"));\n doctorsAppointments = r.getInt(\"nr_appointments\");\n }\n\n else if (loginUser.getAccessType() == AccessType.NURSE)\n {\n Address address = new Address(r.getString(\"add_street\"),\n r.getString(\"add_no\"), r.getString(\"add_zip_code\"),\n r.getString(\"add_city\"));\n\n user = new Nurse(r.getLong(\"ssn\"), r.getLong(\"doctor_ssn\"),\n r.getString(\"f_name\"), r.getString(\"mid_name\"),\n r.getString(\"l_name\"), r.getDate(\"dob\"), address,\n r.getString(\"contact_f_name\"), r.getString(\"contact_mid_name\"),\n r.getString(\"contact_l_name\"), r.getString(\"contact_phone\"),\n r.getDate(\"start_date\"), r.getString(\"education\"),\n r.getString(\"experience\"), r.getString(\"email\"),\n r.getString(\"password\"));\n }\n\n else if (loginUser.getAccessType() == AccessType.MANAGER)\n {\n Address address = new Address(r.getString(\"add_street\"),\n r.getString(\"add_no\"), r.getString(\"add_zip_code\"),\n r.getString(\"add_city\"));\n\n user = new Manager(r.getLong(\"ssn\"), r.getString(\"f_name\"),\n r.getString(\"mid_name\"), r.getString(\"l_name\"), r.getDate(\"dob\"),\n address, r.getString(\"contact_f_name\"),r.getString(\"contact_mid_name\"), r.getString(\"contact_l_name\"),\n r.getString(\"contact_phone\"), r.getDate(\"start_date\"), r.getString(\"education\"),\n r.getString(\"position\"), r.getString(\"email\"),\n r.getString(\"password\"));\n }\n }\n catch (SQLException e)\n {\n e.printStackTrace();\n }\n }",
"private void initUIAfterLogin() {\n lnLoggedOutState.setVisibility(View.GONE);\n lnLoggedInState.setVisibility(View.VISIBLE);\n initUserProfileUI();\n }",
"public void LogIn() {\n\t\t\r\n\t}",
"private void doLogin() {\r\n\t\tloggedIn = true;\r\n\t\tdoctor.setOnline(1);\r\n\t\t// Set doctor as logged in\r\n\t\tdbAdapter.updateDoctor(doctor);\r\n\t\t// Get a list of currently logged in doctors\r\n\t\tdoctors = dbAdapter.getDoctors(this.doctor);\r\n\t\t// Add listeners to keep the list updated\r\n\t\ttry {\r\n\t\t\teb.addListener(new LogoutListener(this.doctor.getMac(),\r\n\t\t\t\t\tthis.location));\r\n\t\t\teb.addListener(new DeviceDetectedListener());\r\n\t\t\teb.addListener(new DevicedMovedListener());\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO: Handle\r\n\t\t}\r\n\t\tnotifyObservers();\r\n\t}",
"public void clearLoginInfo(){\n ProfileSharedPreferencesRepository.getInstance(application).clearLoginInfo();\n }",
"private void login() {\n User user;\n SharedPreferences preferences = context.getSharedPreferences(context.getString(R.string.user_shared_preferences), MODE_PRIVATE);\n preferences.edit().putLong(context.getString(R.string.user_id), -1).apply();\n if(preferences.getLong(context.getString(R.string.user_id), -1) != -1){\n user = User.getUser();\n }\n else{\n Globals.showDialog(\"New User\",\"Choose a user name\", LoginActivity.this);\n\n }\n user = new User();\n\n HttpUserService userService = new HttpUserService();\n Call<User> call = userService.login(user.getId());\n\n call.enqueue(new Callback<User>() {\n @Override\n public void onResponse(Call<User> call, Response<User> response) {\n asyncLogin(response);\n\n\n }\n\n @Override\n public void onFailure(Call<User> call, Throwable t) {\n Globals.showConnectionDialog(LoginActivity);\n\n }\n });\n }",
"public void store() {\n session=(HttpSession)getPageContext().getSession();\n session.setAttribute(\"remoteUser\", getRemoteUser());\n session.setAttribute(\"authCode\", getAuthCode());\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tLoginInfo tInfo = ApiUtils.getUserDetail(loginInfo.id,\n\t\t\t\t\t\t\t\thandler);\n\t\t\t\t\t\tif (tInfo != null) {\n\t\t\t\t\t\t\tloginInfo.headimage = tInfo.headimage;\n\t\t\t\t\t\t\tloginInfo.mobile = tInfo.mobile;\n\t\t\t\t\t\t\tloginInfo.name = tInfo.name;\n\t\t\t\t\t\t\tUtils.writeLoginInfo(loginInfo,\n\t\t\t\t\t\t\t\t\tCommenData.LOGIN_INFO_PATH);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsuper.run();\n\t\t\t\t\t}",
"public void saveCurrentUserState(){\n\t\tCurrentUserState currState = new CurrentUserState();\n\t\tcurrState.setBatchOutput(batchState.getBatchOutput());\n\t\tcurrState.setCurrFields(batchState.getFields());\n\t\tcurrState.setCurrProject(batchState.getProject());\n\t\tcurrState.setCurrScale(display.getScale());\n\t\tcurrState.setCurrSelectedCell(batchState.getSelectedCell());\n\t\tcurrState.setErrorCells(batchState.getErrors());\n\t\t\n\t\tcurrState.setHighlight(display.isToggleOn());\n\t\tcurrState.setInverted(display.isInverted());\n\t\t\n\t\tcurrState.setCurrWindowPos(getLocationOnScreen());\n\t\tcurrState.setCurrWindowSize(getSize());\n\t\t\n\t\tcurrState.setHorizontalDiv(bottomPanel.getDividerLocation());\n\t\tcurrState.setVertivalDiv(centerPanel.getDividerLocation());\n\t\t\n\t\tcurrState.setOriginX(display.getW_originX());\n\t\tcurrState.setOriginY(display.getW_originY());\n\t\t\n\t\tcurrState.setValues(batchState.getValues());\n\t\t\n\t\t//put to xstream\n\t\tXStream xstream = new XStream(new DomDriver());\n\t\ttry {\n\t\t\n\t\t\txstream.toXML(currState, new FileOutputStream(new File(info.getUsername() + \".xml\")));\n\t\t\tSystem.out.println(\"current state is saved!\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"file not found/ couldn't go to xml\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void modify() {\n\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\tif (list.get(i).toString().equals(lu.toString())) {\r\n\t\t\t\tlist.set(i,\r\n\t\t\t\t\t\tnew LoginUser(logTxtIp.getText(), logTxtId.getText(),\r\n\t\t\t\t\t\t\t\tlogTxtPw.getText(), logTxtSdi.getText(),\r\n\t\t\t\t\t\t\t\tlogTxtPort.getText(), dbType.getValue()\r\n\t\t\t\t\t\t\t\t\t\t.toString()));\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tll.makeXml(list);\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tinitTableView();\r\n\r\n\t}",
"void updateLastLogin()\n throws Exception;",
"private void saveLoginDetails(String email, String password) {\n new PrefManager(this).saveLoginDetails(email, password);\n }",
"public void setLogin(String login) {\n Logger.getGlobal().log(Level.INFO, \"Account: \" +login +\" creating\");\r\n this.login = login;\r\n }",
"final String loginAsAutoUser() {\r\n \treturn loginAsAutoUser(false);\r\n }",
"private boolean isLoggedInUser(){\n return true;\n }",
"public void handleLogin() {\n\t\tString username = usernameInput.getText();\n\t\tString password = passwordInput.getText();\n\n\t\t// Saves username and password if remember me is ticked\n\t\t// otherwise it deletes the file.\n\t\tif (rememberMeCheckbox.isSelected()) {\n\t\t\twriteRememberMe(username, password);\n\t\t} else {\n\t\t\tclearRememberMe();\n\t\t}\n\n\n\t\ttryUsernamePassword(username, password);\n\t}",
"private void userLogin(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"private void checkForSavedLogin() {\n\t\taccessToken = getAccessToken();\n\t\tif (accessToken==null) return;\t//if there are no credentials stored then return to usual activity\n\n\t\t// initialize Twitter4J\n\t\ttwitter.setOAuthAccessToken(accessToken);\n\t}",
"public void changeUser() {\n refreshState();\n SystemUserDTO user = null;\n SystemUserDTO systemUser = null;\n systemUser = ctrl.getSystemUser(this.inputTextUser);\n if (systemUser == null) {\n user = new SystemUserDTO(this.inputTextUser, this.inputTextFName, this.inputTextLName, this.inputTextEMail);\n ctrl.addSystemUser(user);\n } else {\n user = new SystemUserDTO(this.inputTextUser, this.inputTextFName, this.inputTextLName, this.inputTextEMail);\n ctrl.updateSystemUser(user);\n }\n refreshState();\n this.currentUser = user;\n }",
"public void setLogin(LoginModel param) {\n localLoginTracker = true;\n\n this.localLogin = param;\n }",
"private void Login(User user) {\n // instantiate User Database to store User's details locally\n UserDB db = new UserDB(this);\n db.resetTables(); // clear previous table data\n db.addUser(user);\n Log.i(TAG, \"Logged in as \" + email);\n\n // Move to main activity\n startActivity(new Intent(this, MainActivity.class));\n finish();\n }",
"@Override\r\n\t\t\tpublic void onSuccess() {\n\t\t\t\tfinal User c = userManager.getCurrentUser(User.class);\r\n\t\t\t\tShowToast(\"修改成功:\"+c.getNick());\r\n\t\t\t\tfinish();\r\n\t\t\t}",
"@Override\n\tpublic void onCreate() {\n\t\tCommenData.LOGIN_INFO_PATH = \"//data//data//\" + this.getPackageName()\n\t\t\t\t+ \"//\" + \"userInfo.xml\";\n\t\tloginInfo = Utils.readLoginInfo(CommenData.LOGIN_INFO_PATH);\n\t\tif (loginInfo != null&&!loginInfo.isThirdLogin) {\n\t\t\tif (ApplicationUtils.netState(this)) {\n\t\t\t\tnew Thread() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tLoginInfo tInfo = ApiUtils.getUserDetail(loginInfo.id,\n\t\t\t\t\t\t\t\thandler);\n\t\t\t\t\t\tif (tInfo != null) {\n\t\t\t\t\t\t\tloginInfo.headimage = tInfo.headimage;\n\t\t\t\t\t\t\tloginInfo.mobile = tInfo.mobile;\n\t\t\t\t\t\t\tloginInfo.name = tInfo.name;\n\t\t\t\t\t\t\tUtils.writeLoginInfo(loginInfo,\n\t\t\t\t\t\t\t\t\tCommenData.LOGIN_INFO_PATH);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tsuper.run();\n\t\t\t\t\t}\n\t\t\t\t}.start();\n\t\t\t} else\n\t\t\t\thandler.sendEmptyMessage(ViewUtils.NET_ERROR);\n\t\t}\n\n\t\tsuper.onCreate();\n\t}",
"public void onAuthenticateNewUserLogged(\n RetailscmUserContext userContext,\n LoginContext loginContext,\n LoginResult loginResult,\n IdentificationHandler idHandler,\n BusinessHandler bizHandler)\n throws Exception {\n // Generally speaking, when authenticated user logined, we will create a new account for\n // him/her.\n // you need do it like :\n // First, you should create new data such as:\n // OccupationType newOccupationType = this.createOccupationType(userContext, ...\n // Next, create a sec-user in your business way:\n // SecUser secUser = secUserManagerOf(userContext).createSecUser(userContext, login, mobile\n // ...\n // And set it into loginContext:\n // loginContext.getLoginTarget().setSecUser(secUser);\n // Next, create an user-app to connect secUser and newOccupationType\n // UserApp uerApp = userAppManagerOf(userContext).createUserApp(userContext, secUser.getId(),\n // ...\n // Also, set it into loginContext:\n // loginContext.getLoginTarget().setUserApp(userApp);\n // and in most case, this should be considered as \"login success\"\n // loginResult.setSuccess(true);\n //\n // Since many of detailed info were depending business requirement, So,\n throw new Exception(\"请重载函数onAuthenticateNewUserLogged()以处理新用户登录\");\n }",
"@Override\n\tprotected void login() {\n\t\tsuper.login();\n\t}",
"private void setSessionAttribs(HttpServletRequest req, BlogUser user) {\n\t\treq.getSession().setAttribute(\"current.user.id\", user.getId());\n\t\treq.getSession().setAttribute(\"current.user.fn\", user.getFirstName());\n\t\treq.getSession().setAttribute(\"current.user.ln\", user.getLastName());\n\t\treq.getSession().setAttribute(\"current.user.nick\", user.getNick());\n\t}",
"private void checkIfLoggedIn() {\n LocalStorage localStorage = new LocalStorage(getApplicationContext());\n\n if(localStorage.checkIfAuthorityPresent()){\n Intent intent = new Intent(getApplicationContext(),AuthorityPrimaryActivity.class);\n startActivity(intent);\n } else if(localStorage.checkIfUserPresent()){\n Intent intent = new Intent(getApplicationContext(), UserPrimaryActivity.class);\n startActivity(intent);\n }\n }",
"private void updateUI() {\n user = mAuth.getCurrentUser();\n if (user != null) {\n user.reload().addOnCompleteListener(userReloadListener);\n }\n }"
]
| [
"0.76778615",
"0.7330332",
"0.713277",
"0.7115174",
"0.70872635",
"0.68421805",
"0.67510843",
"0.6728975",
"0.6695954",
"0.6641069",
"0.6606461",
"0.6588881",
"0.657815",
"0.65459114",
"0.6544184",
"0.651442",
"0.6503087",
"0.649174",
"0.64359385",
"0.64359385",
"0.64359385",
"0.6413514",
"0.64041734",
"0.63791466",
"0.63768566",
"0.6374673",
"0.63592786",
"0.6346833",
"0.6343769",
"0.63382417",
"0.63362306",
"0.63320893",
"0.6327467",
"0.6314818",
"0.6296796",
"0.62764233",
"0.626464",
"0.62638396",
"0.62483007",
"0.6234766",
"0.6232863",
"0.6225043",
"0.6219827",
"0.6208196",
"0.6208196",
"0.6208196",
"0.6202017",
"0.62009615",
"0.6200615",
"0.6197285",
"0.6191044",
"0.6186819",
"0.61851346",
"0.6180403",
"0.6171542",
"0.6162187",
"0.6158544",
"0.6154999",
"0.61519754",
"0.6143288",
"0.61257637",
"0.61253244",
"0.61239743",
"0.611991",
"0.61163455",
"0.61110294",
"0.61066896",
"0.6105999",
"0.610545",
"0.6101007",
"0.6097774",
"0.6092966",
"0.6090789",
"0.60746753",
"0.6071638",
"0.6063278",
"0.60499",
"0.603987",
"0.6039135",
"0.6036086",
"0.6036059",
"0.60327023",
"0.60299975",
"0.60225123",
"0.60222715",
"0.6013974",
"0.60125136",
"0.6012153",
"0.6008063",
"0.6006048",
"0.6003973",
"0.60033107",
"0.6003293",
"0.60032636",
"0.59999317",
"0.5997774",
"0.59911823",
"0.59889",
"0.5985665",
"0.59830755",
"0.59815717"
]
| 0.0 | -1 |
Creates Cold Observable using Observable.just() Because each and every onNext() gets their separate emission | private static void createColdObservable() {
var observable = Observable.just(1, 2, 3, 4, 5);
observable.subscribe(item -> LOG.info("Observer 1: {}", item));
pause(1000);
observable.subscribe(item -> LOG.info("Observer 2: {}", item));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void just() {\n Observable<List<String>> myObservable = Observable.just(Utils.getData());\n myObservable.subscribe(consumerList);\n }",
"public static void generateStateless() {\n Observable<String> myObservable = Observable.generate((emitter -> {\n System.out.println(\"got emitter = \" + emitter);\n try {\n emitter.onNext(\"generate - 1\");\n emitter.onNext(\"generate - 2 \");\n emitter.onComplete();\n } catch (Exception e) {\n emitter.onError(e);\n }\n }));\n myObservable.subscribe(genericObserver1);\n }",
"private static void createObservableUsingEmpty() {\n Observable<?> observable = Observable.empty();\n\n observable.subscribe(x -> LOG.info(\"{}\", x), error -> LOG.info(\"Error 1: {}\", error.hashCode()));\n observable.subscribe(x -> LOG.info(\"{}\", x),\n error -> LOG.info(\"{}\", error.getLocalizedMessage()),\n () -> LOG.info(\"Completed\"));\n }",
"private static void createObservableUsingNever() {\n Observable<?> observable = Observable.never();\n\n observable.subscribe(x -> LOG.info(\"{}\", x),\n error -> LOG.info(\"{}\", error.getLocalizedMessage()),\n () -> LOG.info(\"Completed\"));\n\n // Pause the main thread for the hope that it will print something\n sleep(3000);\n }",
"public static void main(String[] args) {\n System.out.println(\"Example of Observable.just()****\");\n Observable<String> justObs = Observable.just(\"one\", \"two\", \"three\", \"four\");\n justObs.subscribe(v -> System.out.println(\"Received:\" + v), e -> System.out.println(e), () -> System.out.println(\"Completed\"));\n\n System.out.println(\"\\nExample of Observable.create()****\");\n Observable<String> createdObs = Observable.create(o -> {\n o.onNext(\"Hello\");\n o.onCompleted();\n });\n createdObs.subscribe(System.out::println, e -> System.out.println(e), () -> System.out.println(\"Completed\"));\n\n System.out.println(\"\\nConverting FutureTask into Observable****\");\n FutureTask<Integer> task = new FutureTask<>(() -> {\n Thread.sleep(3000);\n return 28;\n });\n new Thread(task).start();\n\n Observable<Integer> futureObs = Observable.from(task);\n Subscription subscription = futureObs.subscribe(v -> System.out.println(\"Received :\" + v), e -> System.out.println(\"Error :\" + e),\n () -> System.out.println(\"Completed\"));\n\n System.out.println(\"\\nConverting Integer array into Observable****\");\n Integer[] in = new Integer[] { 1, 2, 3 };\n\n Observable<Integer> integerObs = Observable.from(in);\n Subscription arraySub = integerObs.subscribe(v -> System.out.println(\"Received :\" + v), e -> System.out.println(\"Error :\" + e),\n () -> System.out.println(\"Completed\"));\n }",
"public static void compose() {\n Observable.fromIterable(Utils.getData())\n .compose((source) -> {\n source.subscribe(new MyObserver<>());\n return source;\n });\n\n System.out.println(\"# 2\");\n\n Observable.fromIterable(Utils.getData())\n .compose((source) -> {\n Observable<String> observable = Observable.just(\"composed\");\n observable.subscribe(new MyObserver<>());\n return observable;\n });\n }",
"public void observaleJust() {\n\t\tObservable.just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10).subscribe(integerSubscribe());\r\n\t}",
"private static void createObservableUsingDefer() {\n LOG.info(LINE);\n // it prints from start up to (start + count - 1)\n final int start = 5;\n\n var observable = Observable.range(start, count);\n observable.subscribe(item -> LOG.info(\"Observer 1: {}\", item)); // only 5 6\n count = 3;\n observable.subscribe(item -> LOG.info(\"Observer 2: {}\", item)); // only 5 6 - count change is not reffered\n\n LOG.info(LINE);\n\n count = 2;\n observable = Observable.defer(() -> {\n System.out.println(\"New Observable is created with start = \" + start + \" and count = \" + count);\n return Observable.range(start, count);\n });\n\n observable.subscribe(item -> LOG.info(\"Observer 1: {}\", item)); // only 5 6\n count = 3;\n observable.subscribe(item -> LOG.info(\"Observer 2: {}\", item)); // 5 6 7 - count change used by new range object\n }",
"private static void scenario() {\n\n Observable<String> stringObservable = Observable.just(\"One\",\"Two\",\"Three\",\"Four\",\"Five\",\"Six\",\"Seven\",\"Eight\",\"Nine\");\n\n Observable<String> stringProcessor = stringObservable.concatMap(data -> Observable.just(data).delay(randomSleepTime(),\n TimeUnit.MILLISECONDS));\n\n stringProcessor.subscribe(System.out::println);\n\n sleep(20000);\n\n /* OUTPUT :\n One\n Two\n Three\n Four\n Five\n Six\n Seven\n Eight\n Nine\n */\n }",
"private static void createHotAndConnectableObservable() {\n var observable = Observable.just(1, 2, 3, 4, 5).publish();\n\n observable.subscribe(item -> LOG.info(\"Connectable Observer 1: {}\", item));\n observable.subscribe(item -> LOG.info(\"Connectable Observer 2: {}\", item));\n\n pause(1000);\n // calling connect starts emitting immediately - any order\n observable.connect();\n\n // if we subscribe now it'll now be emitted - hot observable\n observable.subscribe(item -> LOG.info(\"Connectable Observer 3: {}\", item));\n }",
"private Observable crearObservable(){\n /**\n * Hay otras muchas formas de crear el observable\n */\n return Observable.create(new ObservableOnSubscribe<String>() {\n\n @Override\n public void subscribe(ObservableEmitter<String> emitter) throws Exception {\n try {\n //Un observable puede emitir 3 tipos de datos\n //1\n emitter.onNext(\"Primer dato del observable\");\n emitter.onNext(\"Segundo dato del observable\");\n emitter.onNext(tareaLargaDuracion());\n //2\n emitter.onComplete();//Ha dejado ya de emitir datos\n }catch (Exception e){\n e.printStackTrace();\n //3\n emitter.onError(e);\n }\n }\n });\n }",
"public void observableDefer() {\r\n\t\tPerson person = new Person();\r\n\t\tObservable<String> nameOfPerson = Observable.defer(() -> Observable.just(person.getName()));\r\n\t\tObservable<Integer> ageOfPerson = Observable.defer(new Func0<Observable<Integer>>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Observable<Integer> call() {\r\n\t\t\t\treturn Observable.just(person.getAge());\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tperson.setAge(35);\r\n\t\tperson.setName(\"Bob\");\r\n\r\n\t\tsubscribe(nameOfPerson, ageOfPerson);\r\n\r\n\t}",
"public static void test015()\r\n {\r\n System.out.println(\"RxJavaTest04::test015\");\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n RxGroceries rxGroceries = new RxGroceries();\r\n\r\n Maybe<BigDecimal> totalPrice = Observable\r\n .fromIterable(Arrays.asList(\"bread\", \"butter\", \"milk\", \"tomato\", \"cheese\"))\r\n .subscribeOn(schedulerA)\r\n .flatMap(prod -> rxGroceries.purchase(prod, 1))\r\n .reduce(BigDecimal::add);\r\n totalPrice\r\n .subscribe(System.out::println);\r\n poolA.shutdown();\r\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> never() {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull Observer<? super T> observer) {\r\n\t\t\t\treturn Closeables.emptyCloseable();\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static void defer() {\n class Data {\n private String value = \"abc\";\n }\n\n final Data data = new Data();\n\n // Other observables gets created immediately e.g.\n Observable<String> myObservable = Observable.just(data.value);\n // Modify the data\n data.value = \"xyz\";\n // Even though data is modified, observer will get old data \"abc\"\n myObservable.subscribe(genericObserver1);\n\n data.value = \"abc\";\n myObservable = Observable.defer(() -> {\n System.out.println(\"defer supplier going to create observable\");\n return Observable.just(data.value);\n });\n // modify data\n data.value = \"xyz\";\n // Because of defer, observable will be created upon subscription, hence it will get the\n // modified data\n myObservable.subscribe(genericObserver1);\n }",
"@Test\n public void testDefer() throws InterruptedException {\n Observable<LocalTime> localTimeObservable =\n Observable.defer(\n () -> Observable\n .just(LocalTime.now()))\n .repeat(3);\n localTimeObservable.subscribe(System.out::println);\n Thread.sleep(3000);\n System.out.println(\"Next Subscriber\");\n localTimeObservable.subscribe(System.out::println);\n }",
"public static void test013()\r\n {\r\n System.out.println(\"RxJavaTest04::test013\");\r\n log(\"Starting\");\r\n final Observable<String> obs = mySimple();\r\n log(\"Created\");\r\n\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n\r\n obs\r\n .doOnNext(RxJavaTest04::log)\r\n .map(x -> x + '1')\r\n .doOnNext(RxJavaTest04::log)\r\n .map(x -> x + '2')\r\n .subscribeOn(schedulerA)\r\n .doOnNext(RxJavaTest04::log)\r\n .subscribe(\r\n x -> log(\"Got \" + x),\r\n Throwable::printStackTrace,\r\n () -> log(\"Completed\")\r\n );\r\n poolA.shutdown();\r\n }",
"public static void main(String[] args){\n Observable myObservable = Observable.create(new Observable.OnSubscribe(){\n\n @Override\n public void call(Object subscriber) {\n Subscriber mySubscriber = (Subscriber)subscriber;\n\n for(int i = 0 ; i < 10; i++){\n //if my subscriber was subscribed\n if(!mySubscriber.isUnsubscribed()){\n mySubscriber.onNext(\"Pushed value \" + i);\n }\n }\n\n if(!mySubscriber.isUnsubscribed()){\n mySubscriber.onCompleted();\n }\n\n }\n });\n\n //subscribe to your Observable\n myObservable.subscribe(new Action1<String>() {\n @Override\n public void call(String s) {\n System.out.println(s);\n }\n },\n new Action1<Throwable>() {\n @Override\n public void call(Throwable throwable) {\n System.out.println(\"Something went wrong the observable\");\n }\n },\n new Action0() {\n @Override\n public void call() {\n System.out.println(\"No more values will be pushed.\");\n }\n });\n\n }",
"public static void test001()\r\n {\r\n System.out.println(\"RxJavaTest04::test001\");\r\n Observable<String> peopleStream = myListPeople();\r\n Single<List<String>> peopleList = peopleStream.toList();\r\n List<String> people = peopleList.blockingGet();\r\n for (String person : people) {\r\n System.out.println(person);\r\n }\r\n }",
"private void test1() {\n Observable observable = Observable.create(new ObservableOnSubscribe<QuoteBean>() {\n @Override\n public void subscribe(ObservableEmitter<QuoteBean> e) throws Exception {\n e.onNext(Request.stringRequest(url, com.android.volley.Request.Method.GET, HomeActivity.class.getSimpleName()));\n }\n }).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread());\n\n Observer<QuoteBean> observer = new Observer<QuoteBean>() {\n @Override\n public void onSubscribe(Disposable d) {\n Log.d(TAG, \"test1 onSubscribe\");\n }\n\n @Override\n public void onNext(QuoteBean s) {\n Log.d(TAG, \"onNext:\" + s.toString());\n }\n\n @Override\n public void onError(Throwable e) {\n Log.d(TAG, \"onError\");\n }\n\n @Override\n public void onComplete() {\n Log.d(TAG, \"onComplete\");\n }\n };\n observable.subscribe(observer);\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> empty(\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tobserver.finish();\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}",
"@Test\n public void example() {\n Func1<Integer, Observable<Integer>> db1 = param -> Observable.range(1, param);\n\n // ws-kald som funktion der returner en Observable\n Func1<Integer, Observable<Integer>> ws1 = param -> Observable.just(param);\n\n // ws-kald som funktion der returner en Observable\n Func1<Integer, Observable<Integer>> ws2 = param -> Observable.just(param);\n\n // ws-kald som funktion der returner en Observable\n Func1<List<Integer>, Observable<Object>> ws3 = param -> Observable.empty();\n\n db1.call(5)\n .flatMap(row -> {\n if (row % 2 == 0) {\n // ws2 kaldes kun, hvis ws1 ikke var tom\n return Observable.concat(ws1.call(row), ws2.call(row)).first();\n } else {\n // ws1 og ws2 udføres parallelt\n return Observable.zip(ws1.call(10), ws2.call(20), (e1, e2) -> e1 + e2);\n }\n })\n .onErrorResumeNext(err -> {\n log.error(\"error - resume next \", err);\n return Observable.empty();\n })\n .doOnNext(n -> log.info(\"element {}\", n))\n // samle/batche 2 elementer i en liste (men højst vente 1 sekund)\n .buffer(2, 1, TimeUnit.SECONDS)\n // output sendes til en ws3\n .flatMap(ws3)\n // subscribe starter kæden\n .subscribe();\n }",
"private static void exSwitchMapTwo() {\n\n Observable.interval(5,TimeUnit.SECONDS)\n .switchMap(call -> Observable.just(getResponse()).doOnDispose(() -> System.out.println(\"Disposed\")))\n .subscribe(System.out::println);\n\n //An Observable which performs network call.\n sleep(40000);\n\n\n /* OUTPUT :\n 6\n 10\n 13\n 17\n 26\n 32\n 35\n 42\n\n */\n }",
"public static void test016()\r\n {\r\n System.out.println(\"RxJavaTest04::test016\");\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n RxGroceries rxGroceries = new RxGroceries();\r\n\r\n Maybe<BigDecimal> totalPrice = Observable\r\n .fromIterable(Arrays.asList(\"bread\", \"butter\", \"milk\", \"tomato\", \"cheese\"))\r\n .subscribeOn(schedulerA)\r\n .flatMap(prod -> rxGroceries\r\n .purchase(prod, 1)\r\n .subscribeOn(schedulerA)\r\n )\r\n .reduce(BigDecimal::add);\r\n totalPrice\r\n .subscribe(\r\n x -> log(\"Got \" + x),\r\n Throwable::printStackTrace,\r\n () -> log(\"Completed\")\r\n );\r\n myWait(2000); // We have to wait before shutting down the pool,\r\n // otherwise it will throw exception \r\n // [java] io.reactivex.exceptions.UndeliverableException:\r\n // java.util.concurrent.RejectedExecutionException:\r\n // Task java.util.concurrent.FutureTask@38d8f9d0 rejected\r\n // from java.util.concurrent.ThreadPoolExecutor@6a724a6c\r\n // [Shutting down, pool size = 1, active threads = 1, queued\r\n // tasks = 0, completed tasks = 0]\r\n poolA.shutdown();\r\n }",
"private void test() {\n Observable<String> observable = Observable.create(new ObservableOnSubscribe<String>() {\n\n @Override\n public void subscribe(ObservableEmitter<String> e) throws Exception {\n e.onNext(\"hello\");\n e.onNext(\"RXJAVA\");\n e.onComplete();\n }\n }).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread());\n\n Observer<String> observer = new Observer<String>() {\n @Override\n public void onSubscribe(Disposable d) {\n Log.d(TAG, \"onSubscribe\");\n }\n\n @Override\n public void onNext(String s) {\n Log.d(TAG, \"onNext:\" + s);\n }\n\n @Override\n public void onError(Throwable e) {\n Log.d(TAG, \"onError\");\n }\n\n @Override\n public void onComplete() {\n Log.d(TAG, \"onComplete\");\n }\n };\n observable.subscribe(observer);\n }",
"public static void flatMap() {\n List<String> data = Utils.getData();\n Observable.fromIterable(data)\n .flatMap((item) -> Observable.just(item + \" flat mapped\").repeat(2)\n ).subscribe(new MyObserver<>());\n }",
"@Override\n public ObservableSource<? extends String> call() throws Exception {\n SystemClock.sleep(2000);\n return Observable.just(\"one\", \"two\", \"three\", \"four\", \"five\");\n }",
"public static void test017()\r\n {\r\n System.out.println(\"RxJavaTest04::test017\");\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n RxGroceries store = new RxGroceries();\r\n\r\n Maybe<BigDecimal> totalPrice = Observable\r\n .just(\"bread\", \"butter\", \"egg\", \"milk\", \"tomato\",\r\n \"cheese\", \"tomato\", \"egg\", \"egg\")\r\n .groupBy(prod -> prod)\r\n .flatMapSingle(grouped -> grouped\r\n .count()\r\n .map(quantity -> {\r\n String productName = grouped.getKey();\r\n return Pair.of(productName, quantity);\r\n })\r\n )\r\n .flatMap(order -> store\r\n .purchase(order.getLeft(), (int)order.getRight().longValue())\r\n .subscribeOn(schedulerA)\r\n )\r\n .reduce(BigDecimal::add);\r\n\r\n totalPrice\r\n .subscribe(System.out::println);\r\n myWait(2000);\r\n poolA.shutdown();\r\n }",
"@Test\n public void all() {\n Observable.just(1, 2, 3, 4, 5)\n .doOnNext(System.out::println)\n .all(x -> x < 10)\n .subscribe(mList::add);\n assertEquals(mList, Collections.singletonList(true));\n }",
"private static void exSwitchMapThree(){\n Observable<String> intense =\n Observable.just(\"Savi\",\"Healer\",\"Three\",\"Four\",\"Wednesday\",\"Friday\",\"You\",\"Me\")\n .concatMap(result -> Observable.just(result).delay(randomSleepTime(),TimeUnit.MILLISECONDS))\n .doOnDispose(() -> System.out.println(\" * * Disposed * *\"));\n\n //Observable to execute intense task every 5 seconds\n Observable.interval(5,TimeUnit.SECONDS)\n .switchMap(r -> intense)\n .subscribe(System.out::println);\n\n //Sleep the main thread for few seconds\n Take.sleep(20000);\n\n /*\n After every 5 seconds it will dispose the ongoing intense (variable name) process and\n start the same process again.\n */\n\n //Output\n /*\n Savi\n Healer\n Three\n Four\n * * Disposed * *\n Savi\n Healer\n Three\n Four\n Wednesday\n Friday\n You\n * * Disposed * *\n Savi\n Healer\n Three\n Four\n Wednesday\n * * Disposed * *\n */\n }",
"public static void test014()\r\n {\r\n System.out.println(\"RxJavaTest04::test014\");\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n RxGroceries rxGroceries = new RxGroceries();\r\n\r\n Maybe<BigDecimal> totalPrice = Observable\r\n .fromIterable(Arrays.asList(\"bread\", \"butter\", \"milk\", \"tomato\", \"cheese\"))\r\n .subscribeOn(schedulerA)\r\n .map(prod -> rxGroceries.doPurchase(prod, 1))\r\n .reduce(BigDecimal::add);\r\n totalPrice\r\n .subscribe(System.out::println);\r\n poolA.shutdown();\r\n }",
"public static void concatMap() {\n List<String> data = Utils.getData();\n Observable.fromIterable(data)\n .concatMap((item) -> Observable.just(item + \" concat mapped\").repeat(2)\n ).subscribe(new MyObserver<>());\n }",
"public static Observable<Integer> addOne(int x) {\n return Observable.just(x + 1);\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tobserver.next(supplier.invoke());\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static Observable<String> getObservableDistinctUntilChanges() {\n return observableSrcDuplicated;//todo\n }",
"public static void empty() {\n Observable<String> myObservable = Observable.empty();\n myObservable.subscribe(genericObserver1);\n }",
"@Test\n public void onlyWithMap(){\n Observable<Observable<PhoneNumber>> usersPhonesNumbers = costService\n .findUserInDepartment(DEPARTMENT_ID)\n .map(costService::findPhoneNumber);//<-- returns observable\n\n //Strange type here :o\n Observable<Observable<BigDecimal>> priceStream = usersPhonesNumbers\n .map(phones -> phones.map(costService::getPricePerSmsForNumber));\n\n Observable<BigDecimal> costPerPerson = priceStream.map(userPhones -> userPhones.reduce(ZERO, BigDecimal::add).blockingGet());//blockingGet<---only one difference in comparison to streams\n\n BigDecimal totalCost = costPerPerson.reduce(ZERO, BigDecimal::add).blockingGet(); //blockingGet<---only one difference in comparison to streams\n log.info(\"Total cost of sending SMSes to all users all phones {}\", totalCost);\n }",
"@BackpressureSupport(BackpressureKind.FULL)\n @SchedulerSupport(SchedulerKind.NONE)\n public static <T> Observable<T> fromCallable(Callable<? extends T> supplier) {\n Objects.requireNonNull(supplier, \"supplier is null\");\n return create(new PublisherScalarAsyncSource<T>(supplier));\n }",
"public static void sample() {\n System.out.println(\"# 1\");\n Observable.fromIterable(sData)\n .timestamp()\n .sample(1000, TimeUnit.MICROSECONDS)\n .subscribe(new MyObserver<>());\n\n /*\n Emission controlled by sampler inner observable\n */\n System.out.println(\"# 2\");\n Observable.fromIterable(sData)\n .sample((observer) -> {\n System.out.println(\"emitter\");\n Observable.just(\"123\").subscribe(observer);\n }, true).subscribe(new MyObserver<>());\n }",
"public static Observable<String> getObservableDistinct() {\n return observableSrcDuplicated;//todo\n }",
"public static void test019()\r\n {\r\n System.out.println(\"RxJavaTest04::test019\");\r\n\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n ExecutorService poolB = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-B-%d\"));\r\n Scheduler schedulerB = Schedulers.from(poolB);\r\n ExecutorService poolC = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-C-%d\"));\r\n Scheduler schedulerC = Schedulers.from(poolC);\r\n\r\n log(\"Starting\");\r\n Observable<String> obs = Observable.create(subscriber -> {\r\n log(\"Subscribed\");\r\n subscriber.onNext(\"A\");\r\n subscriber.onNext(\"B\");\r\n subscriber.onNext(\"C\");\r\n subscriber.onNext(\"D\");\r\n subscriber.onComplete();\r\n });\r\n log(\"Created\");\r\n obs\r\n .subscribeOn(schedulerA)\r\n .flatMap(record -> myStore(record).subscribeOn(schedulerB))\r\n .observeOn(schedulerC)\r\n .subscribe(\r\n x -> log(\"Got: \" + x),\r\n Throwable::printStackTrace,\r\n () -> log(\"Completed\")\r\n );\r\n log(\"Exiting\");\r\n \r\n myWait(5000);\r\n poolA.shutdown();\r\n poolB.shutdown();\r\n poolC.shutdown();\r\n }",
"public <T> Observable.Transformer<T, T> applySchedulers() {\n return observable -> observable.subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread());\n }",
"public static void test018()\r\n {\r\n System.out.println(\"RxJavaTest04::test018\");\r\n log(\"Starting\");\r\n final Observable<String> obs = mySimple();\r\n log(\"Created\");\r\n\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n ExecutorService poolB = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-B-%d\"));\r\n Scheduler schedulerB = Schedulers.from(poolB);\r\n\r\n obs\r\n .doOnNext(RxJavaTest04::log)\r\n .map(x -> x + '1')\r\n .observeOn(schedulerB)\r\n .doOnNext(RxJavaTest04::log)\r\n .map(x -> x + '2')\r\n .doOnNext(RxJavaTest04::log)\r\n .subscribeOn(schedulerA)\r\n .subscribe(\r\n x -> log(\"Got \" + x),\r\n Throwable::printStackTrace,\r\n () -> log(\"Completed\")\r\n );\r\n myWait(2000);\r\n poolA.shutdown();\r\n poolB.shutdown();\r\n }",
"public static void combineLatest() {\n\n System.out.println(\"# 1\");\n\n /*\n Emits item every second\n */\n Observable sourceInterval = Observable.interval(1L, TimeUnit.MILLISECONDS).take(10);\n\n /*\n Emits string items\n */\n Observable sourceString = Observable.fromIterable(sData);\n\n Observable<?> combined = Observable.combineLatest((objects) -> {\n StringBuilder stringBuilder = new StringBuilder();\n Stream.of(objects).forEach(stringBuilder::append);\n return stringBuilder.toString();\n }, 1, sourceInterval, sourceString);\n\n combined.subscribe(new MyObserver<>());\n\n System.out.println(\"# 2\");\n\n /*\n Because empty observable immediately terminates hence whole sequence terminates.\n */\n combined = Observable.combineLatest((objects) -> {\n StringBuilder stringBuilder = new StringBuilder();\n Stream.of(objects).forEach(stringBuilder::append);\n return stringBuilder.toString();\n }, 1, sourceInterval, sourceString, Observable.empty());\n combined.subscribe(new MyObserver<>());\n\n System.out.println(\"# 3\");\n /*\n Same as above but instead collection of sources are used.\n */\n List<Observable<?>> collection = new ArrayList<>();\n collection.add(sourceInterval);\n collection.add(sourceString.repeat(1));\n combined = Observable.combineLatest(collection, (objects) -> {\n StringBuilder stringBuilder = new StringBuilder();\n Stream.of(objects).forEach(stringBuilder::append);\n return stringBuilder.toString();\n });\n combined.subscribe(new MyObserver<>());\n\n System.out.println(\"# 4\");\n /*\n Explicitly combine 2 sources, similarly it can be done up to 10 sources\n */\n combined = Observable.combineLatest(sourceInterval, sourceString.repeat(1),\n (first, second) -> first + \"-\" + second);\n combined.subscribe(new MyObserver<>());\n }",
"public static void generateStateful() {\n Observable<String> statefulObservable = Observable.generate(\n () -> {\n int initialState = 1;\n System.out.println(\"initial state = \" + initialState);\n return initialState;\n },\n (initialState, stringEmitter) -> {\n try {\n if (initialState <= 3) {\n System.out.println(\"emitter = \" + stringEmitter);\n stringEmitter.onNext(\"generate - \" + initialState);\n initialState += 1;\n System.out.println(\"update state = \" + initialState);\n } else {\n stringEmitter.onComplete();\n }\n } catch (Exception e) {\n stringEmitter.onError(e);\n }\n return initialState;\n }, (disposeState -> System.out.println(\"dispose state = \" + disposeState)));\n statefulObservable.subscribe(genericObserver1);\n }",
"@Test\r\n\tpublic void exerciseInterruptible() {\n\t\t\r\n\t\tList<String> articlesTopicA = Arrays.asList(\"Article A-1\",\"Article A-2\",\"Article A-3\");\r\n\t\tList<String> articlesTopicB = Arrays.asList(\"Article B-1\",\"Article B-2\",\"Article B-3\");\r\n\t\tList<String> articlesTopicC = Arrays.asList(\"Article C-1\",\"Article C-2\",\"Article C-3\");\r\n\t\t\r\n\t\tList<Observable<String>> topicObservables = Arrays.asList(\r\n\t\t\t\tObservable.interval(0, 80L, TimeUnit.MILLISECONDS, testScheduler)\r\n\t\t\t\t.take(3)\r\n\t\t\t\t.map(i -> articlesTopicA.get(i.intValue())),\r\n\t\t\t\tObservable.interval(50, 60L, TimeUnit.MILLISECONDS, testScheduler)\r\n\t\t\t\t.take(3)\r\n\t\t\t\t.map(i -> articlesTopicB.get(i.intValue())),\r\n\t\t\t\tObservable.interval(0, 40L, TimeUnit.MILLISECONDS, testScheduler)\r\n\t\t\t\t.take(3)\r\n\t\t\t\t.map(i -> articlesTopicC.get(i.intValue())));\r\n\t\t\r\n\t\tObservable<Observable<String>> topics = Observable.interval(0, 100L, TimeUnit.MILLISECONDS, testScheduler)\r\n\t\t\t\t.take(3)\r\n\t\t\t\t.map(i -> topicObservables.get(i.intValue()));\r\n\t\t\r\n\t\t//\t\t t[ms]: 0 100 200 300\r\n\t\t//\t\ttopics: A---------B---------C---------| \r\n\t\t//\t\t A: 1-------2-|-----3---|---------|\r\n\t\t//\t\t B: |---------|----1----|2-----3--|\r\n\t\t//\t\t C: |---------|---------1---2---3-|\r\n\t\t//\t\tResult: A-1 A-2 B-1 C-1 C-2 C-3\r\n\t\t\t\t\r\n\t\t// TODO: always switch to the latest topic\r\n\t\t// HINT: http://reactivex.io/documentation/operators/switch.html\r\n\t\tObservable<String> latestInteresting = Observable.empty();\r\n\r\n\t\t// verify\r\n\t\tTestSubscriber<String> testSubscriber = new TestSubscriber<>();\r\n\t\tlatestInteresting\r\n\t\t\t.doOnNext(article -> log(String.format(\" doOnNext(): %s Time: %d\", article, testScheduler.now())))\r\n\t\t\t.subscribe(testSubscriber);\r\n\t\t\r\n\t\t// let the time elapse until completion\r\n\t\ttestScheduler.advanceTimeBy(300, TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\ttestSubscriber.assertCompleted();\r\n\t\ttestSubscriber.assertNoErrors();\r\n\t\tList<String> expectedArticles = Arrays.asList(\r\n\t\t\t\t\"Article A-1\",\"Article A-2\", \r\n\t\t\t\t\"Article B-1\", \r\n\t\t\t\t\"Article C-1\", \"Article C-2\", \"Article C-3\");\r\n\t\ttestSubscriber.assertReceivedOnNext(expectedArticles);\r\n\t\t\r\n\t}",
"public static void zipObservables(CountDownLatch latch) {\n\n Observable<Observable<String>> source = Observable.create(observableEmitter -> {\n System.out.println(\"create\");\n observableEmitter.onNext(Observable.just(\"abc\", \"def\"));\n observableEmitter.onNext(Observable.just(\"123\", \"456\"));\n observableEmitter.onNext(Observable.just(\"alpha\", \"beta\", \"gama\"));\n observableEmitter.onComplete();\n });\n\n source.doOnSubscribe(d -> System.out.println(\"source doOnSubscribe\"));\n source.doOnNext(i -> System.out.println(\"source doOnNext = \" + i.toString()));\n source.doOnComplete(() -> System.out.println(\"source doOnComplete\"));\n\n\n Observable.zip(source, items -> items[0] + \"-\" + items[1] + \"-\" + items[2])\n .doOnSubscribe(d -> System.out.println(\"zip doOnSubscribe\"))\n .doOnNext(i -> System.out.println(\"zip doOnNext\"))\n .subscribe(new MyObserver<>(latch));\n }",
"public interface FcmReceiverData {\n /**\n * @return return the new instance observable after applying doOnNext operator.\n */\n Observable<Message> onNotification(Observable<Message> oMessage);\n}",
"@Nonnull\r\n\tpublic static <T> Observable<Option<T>> materializeForever(\r\n\t\t\t@Nonnull final Observable<? extends T> source) {\r\n\t\treturn new Observable<Option<T>>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super Option<T>> observer) {\r\n\t\t\t\treturn source.register(new Observer<T>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.next(Option.<T>error(ex));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\tobserver.next(Option.<T>none());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\tobserver.next(Option.some(value));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static void main(String[] args) {\n\t\tObservable<String> mObservable = Observable.create(new Observable.OnSubscribe<String>() {\n\t\t\t@Override\n\t\t\tpublic void call(Subscriber<? super String> subscriber) {\n\t\t\t\tsubscriber.onNext(\"hello world\");\n\t\t\t\tsubscriber.onCompleted();\n\t\t\t}\n\t\t}) ;\n\n\t\tSubscriber<String> mSubscriber = new Subscriber<String>() {\n\t\t\t@Override\n\t\t\tpublic void onCompleted() {}\n\n\t\t\t@Override\n\t\t\tpublic void onError(Throwable e) {}\n\n\t\t\t@Override\n\t\t\tpublic void onNext(String s) {System.out.println(s);}\n\t\t} ;\n\n\t\tmObservable.subscribe(mSubscriber);\n\t\t//1.2 abbreviate\n\t\t// TODO: 7/2/15 myObservable.subscribe(onNextAction, onErrorAction, onCompleteAction);\n\t\tObservable<String> mObservable2 = Observable.just(\"Hello RxJava\") ;\n\t\tAction1<String> onNextAction = new Action1<String>() {\n\t\t\t@Override\n\t\t\tpublic void call(String s) {\n\t\t\t\tSystem.out.println(s) ;\n\t\t\t}\n\t\t} ;\n\t\tmObservable2.subscribe(onNextAction);\n\t\t//1.3 simpler code\n\t\tObservable.just(\"simpler code\").subscribe(new Action1<String>() {\n\t\t\t@Override\n\t\t\tpublic void call(String s) {\n\t\t\t\tSystem.out.println(s) ;\n\t\t\t}\n\t\t});\n\t\t//1.4. Java8 lambda\n\t\tObservable.just(\"Hello Rx and lambda\").subscribe(s -> System.out.println(s)) ;\n\t\t//2. transformation\n\t\tObservable.just(\"Hello trans\").subscribe(s -> System.out.println(s+\"formation\")) ;\n\t\t//2.1 map()\n\t\tObservable.just(\"Hello trans\").map(new Func1<String, String>() {\n\t\t\t@Override\n\t\t\tpublic String call(String s) {\n\t\t\t\treturn s+\"formation\";\n\t\t\t}\n\t\t}).subscribe(s -> System.out.println(s));\n//\t\t}).subscribe(System.out::println);\n\t\t//2.2 trans + lambda\n\t\tObservable.just(\"Hello trans\").map(s -> s+\"fromation\").subscribe(s -> System.out.println(s));\n\t\t//or\n\t\tObservable.just(\"Hello trans\").map(s -> s+\"fromation\").subscribe(System.out::println);\n\t\t//2.3 trans String to Integer\n\t\tObservable.just(\"Hello trans!\").map(new Func1<String, Integer>() {\n\t\t\t@Override\n\t\t\tpublic Integer call(String s) {\n\t\t\t\treturn s.hashCode();\n\t\t\t}\n\t\t}).subscribe(i-> System.out.println(Integer.toString(i)));\n\t\tObservable.just(\"Hello trans!\").map(s -> s.hashCode())\n\t\t\t\t.subscribe(i -> System.out.println(Integer.toString(i)));\n\t\tObservable.just(\"Hello trans!\").map(String::hashCode)\n\t\t\t\t.subscribe(i->System.out.println(Integer.toString(i)));\n\t\tObservable.just(\"Hello trans!\").map(String::hashCode).map(i->Integer.toString(i))\n\t\t\t\t.subscribe(System.out::println);\n\t}",
"@Test\n public void shouldEmitEvents() {\n Observable.just('A', 'B', 'C')\n .subscribeOn(scheduler)\n .subscribe(subscriber);\n\n scheduler.advanceTimeBy(100, TimeUnit.MILLISECONDS);\n subscriber.assertCompleted();\n subscriber.assertValueCount(3);\n subscriber.assertValues('A', 'B', 'C');\n\n TimeDelayer.sleepForOneSecond();\n }",
"public static void test009()\r\n {\r\n System.out.println(\"RxJavaTest04::test009\");\r\n List<String> tickets = new ArrayList<String>(Arrays.asList(\"one\", \"two\", \"three\", \"four\", \"five\"));\r\n List<String> failures = Observable.fromIterable(tickets)\r\n .flatMap(ticket ->\r\n myRxSendEmail(ticket)\r\n .flatMap(response -> Observable.<String>empty())\r\n .doOnError(e -> System.out.printf(\"Failed to send %s: %s\\n\", ticket, e))\r\n .onErrorReturn(err -> ticket)\r\n .subscribeOn(Schedulers.io())\r\n )\r\n .toList()\r\n .blockingGet();\r\n for (String failure : failures) {\r\n System.out.println(failure);\r\n }\r\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> singleAsync(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func0<? extends T> defaultSupplier) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull\r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn (new DefaultObserverEx<T>() {\r\n\t\t\t\t\t/** True if the first element received. */\r\n\t\t\t\t\tboolean firstReceived;\r\n\t\t\t\t\t/** The first element encountered. */\r\n\t\t\t\t\tT first;\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onFinish() {\r\n\t\t\t\t\t\tif (firstReceived) {\r\n\t\t\t\t\t\t\tobserver.next(first);\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tobserver.next(defaultSupplier.invoke());\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onNext(T value) {\r\n\t\t\t\t\t\tif (!firstReceived) {\r\n\t\t\t\t\t\t\tfirst = value;\r\n\t\t\t\t\t\t\tfirstReceived = true;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\terror(new TooManyElementsException());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}).registerWith(source);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static void never() {\n Observable<String> myObservable = Observable.never();\n myObservable.subscribe(genericObserver1);\n }",
"@BackpressureSupport(BackpressureKind.FULL)\n @SchedulerSupport(SchedulerKind.NONE)\n public static <T> Observable<T> fromFuture(Future<? extends T> future) {\n Objects.requireNonNull(future, \"future is null\");\n Observable<T> o = create(new PublisherFutureSource<T>(future, 0L, null));\n \n return o;\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> defer(\r\n\t\t\t@Nonnull final Func0<? extends Observable<? extends T>> observableFactory) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull Observer<? super T> observer) {\r\n\t\t\t\treturn observableFactory.invoke().register(observer);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static <T> Observable<T> switchToNext(final Observable<? extends Observable<? extends T>> sources) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\tDefaultObserver<Observable<? extends T>> outer\r\n\t\t\t\t= new DefaultObserver<Observable<? extends T>>(false) {\r\n\t\t\t\t\t/** The inner observer. */\r\n\t\t\t\t\t@GuardedBy(\"lock\")\r\n\t\t\t\t\tCloseable inner;\r\n\r\n\t\t\t\t\tDefaultObserver<T> innerObserver = new DefaultObserver<T>(lock, true) {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tprotected void onError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\t\tinnerError(ex);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tprotected void onFinish() {\r\n\t\t\t\t\t\t\tinnerFinish();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tprotected void onNext(T value) {\r\n\t\t\t\t\t\t\tobserver.next(value);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t};\r\n\t\t\t\t\t/** Called from the inner observer when an error condition occurs. */\r\n\t\t\t\t\tvoid innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t/** Called from the inner observer when it finished. */\r\n\t\t\t\t\tvoid innerFinish() {\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\tclose();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onClose() {\r\n\t\t\t\t\t\tCloseables.closeSilently(inner);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t\tclose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onFinish() {\r\n\t\t\t\t\t\t// nothing to do\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onNext(Observable<? extends T> value) {\r\n\t\t\t\t\t\tCloseables.closeSilently(inner);\r\n\t\t\t\t\t\tinner = value.register(innerObserver);\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treturn sources.register(outer);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public Observable()\n {\n observers = new HashSet<>();\n }",
"private static void createObservableUsingInterval() {\n LOG.info(LINE);\n var observable = Observable.interval(1, TimeUnit.SECONDS);\n\n observable.subscribe(item -> LOG.info(\"Observer 1: {}\", item));\n sleep(2000);\n\n observable.subscribe(item -> LOG.info(\"Observer 2: {}\", item));\n sleep(3000);\n\n // this is a cold obervable as interval creates new instance for each observer\n }",
"@Override\n public void subscribe(ObservableEmitter<Integer> e) throws Exception {\n\n e.onNext(1);\n SystemClock.sleep(1000);\n e.onNext(2);\n SystemClock.sleep(1000);\n e.onNext(3);\n SystemClock.sleep(1000);\n e.onNext(4);\n\n //Once the Observable has emitted all items in the sequence, call onComplete//\n e.onComplete();\n //e.onError(new Throwable(\"Some Error!!\"));\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> toObservable(\r\n\t\t\t@Nonnull final Iterable<? extends T> iterable,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\tDefaultRunnable s = new DefaultRunnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onRun() {\r\n\t\t\t\t\t\tfor (T t : iterable) {\r\n\t\t\t\t\t\t\tif (cancelled()) {\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\tobserver.next(t);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif (!cancelled()) {\r\n\t\t\t\t\t\t\tobserver.finish();\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\treturn pool.schedule(s);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"@Test\n public void observableGetBooleanLogicOperationAndReturnBooleanValue() {\n assertTrue(Observable.just(10)\n .map(intValue -> intValue == 10)\n .toBlocking()\n .single());\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> firstAsync(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func0<? extends T> defaultSupplier) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull\r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn (new DefaultObserverEx<T>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onFinish() {\r\n\t\t\t\t\t\tobserver.next(defaultSupplier.invoke());\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onNext(T value) {\r\n\t\t\t\t\t\tobserver.next(value);\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\tclose();\r\n\t\t\t\t\t} \r\n\t\t\t\t\t\r\n\t\t\t\t}).registerWith(source);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public void flatMap() {\r\n\t\tList<Integer> list = Arrays.asList(1, 2, 3, 7, 8, 9, 10);\r\n\t\tList<Integer> list2 = Arrays.asList(4, 5, 6);\r\n\t\tObservable.just(list, list2).flatMap(x -> Observable.from(x)).map(x -> x * 10).subscribe(integerSubscribe());\r\n\t}",
"public static void switchOnNext(CountDownLatch latch) {\n\n List<Observable<Long>> collectionOfObservable = new ArrayList<>();\n\n Observable<Long> first = Observable.interval(1L, TimeUnit.SECONDS).take(5)\n .doOnNext((item) -> System.out.println(\"first doOnNext item = \" + item));\n\n Observable<Long> second = Observable.interval(1L, TimeUnit.SECONDS)\n .map(item -> item + 100).take(10);\n\n collectionOfObservable.add(first);\n collectionOfObservable.add(second);\n\n Observable.switchOnNext(Observable.fromIterable(collectionOfObservable))\n .subscribeOn(Schedulers.io()).subscribe(new MyObserver<>(latch));\n }",
"public static Observable<String> getObservableSkipWhileElement() {\n return observableSrc;//todo\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> singleAsync(\r\n\t\t\t@Nonnull final Observable<? extends T> source) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull\r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn (new DefaultObserverEx<T>() {\r\n\t\t\t\t\t/** True if the first element received. */\r\n\t\t\t\t\tboolean firstReceived;\r\n\t\t\t\t\t/** The first element encountered. */\r\n\t\t\t\t\tT first;\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onFinish() {\r\n\t\t\t\t\t\tif (firstReceived) {\r\n\t\t\t\t\t\t\tobserver.next(first);\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tobserver.error(new NoSuchElementException());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onNext(T value) {\r\n\t\t\t\t\t\tif (!firstReceived) {\r\n\t\t\t\t\t\t\tfirst = value;\r\n\t\t\t\t\t\t\tfirstReceived = true;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\terror(new TooManyElementsException());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}).registerWith(source);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"@Nonnull\r\n\tpublic static <T> Observable<List<T>> forkJoin(\r\n\t\t\t@Nonnull final Iterable<? extends Observable<? extends T>> sources) {\r\n\t\treturn new Observable<List<T>>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super List<T>> observer) {\r\n\t\t\t\tfinal CompositeCloseable closeables = new CompositeCloseable();\r\n\t\t\t\tfinal List<AtomicReference<T>> lastValues = new ArrayList<AtomicReference<T>>();\r\n\t\t\t\tfinal List<Observable<? extends T>> observableList = new ArrayList<Observable<? extends T>>();\r\n\t\t\t\tfinal List<Observer<T>> observers = new ArrayList<Observer<T>>();\r\n\t\t\t\tfinal AtomicInteger wip = new AtomicInteger(observableList.size() + 1);\r\n\r\n\t\t\t\tint i = 0;\r\n\t\t\t\tfor (Observable<? extends T> o : sources) {\r\n\t\t\t\t\tfinal int j = i;\r\n\t\t\t\t\tobservableList.add(o);\r\n\t\t\t\t\tlastValues.add(new AtomicReference<T>());\r\n\t\t\t\t\tobservers.add(new Observer<T>() {\r\n\t\t\t\t\t\t/** The last value. */\r\n\t\t\t\t\t\tT last;\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t\t\tcloseables.closeSilently();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\t\tlastValues.get(j).set(last);\r\n\t\t\t\t\t\t\trunIfComplete(observer, lastValues, wip);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\t\tlast = value;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\ti = 0;\r\n\t\t\t\tfor (Observable<? extends T> o : observableList) {\r\n\t\t\t\t\tcloseables.add(Observers.registerSafe(o, observers.get(i)));\r\n\t\t\t\t\ti++;\r\n\t\t\t\t}\r\n\t\t\t\trunIfComplete(observer, lastValues, wip);\r\n\t\t\t\treturn closeables;\r\n\t\t\t}\r\n\t\t\t/**\r\n\t\t\t * Runs the completion sequence once the WIP drops to zero.\r\n\t\t\t * @param observer the observer who will receive the values\r\n\t\t\t * @param lastValues the array of last values\r\n\t\t\t * @param wip the work in progress counter\r\n\t\t\t */\r\n\t\t\tpublic void runIfComplete(\r\n\t\t\t\t\tfinal Observer<? super List<T>> observer,\r\n\t\t\t\t\tfinal List<AtomicReference<T>> lastValues,\r\n\t\t\t\t\tfinal AtomicInteger wip) {\r\n\t\t\t\tif (wip.decrementAndGet() == 0) {\r\n\t\t\t\t\tList<T> values = new ArrayList<T>();\r\n\t\t\t\t\tfor (AtomicReference<T> r : lastValues) {\r\n\t\t\t\t\t\tvalues.add(r.get());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tobserver.next(values);\r\n\t\t\t\t\tobserver.finish();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static void fromArray() {\n Observable<String> myObservable = Observable.fromArray(Utils.getData().toArray(new String[0]));\n /*\n 1. Instead of providing a subscriber, single method can be provided just to get onNext().\n 2. Similarly 3 methods can be provided one for each onNext, onError, onCompleted.\n */\n myObservable.subscribe(value -> System.out.println(\"output = \" + value));\n }",
"public static Observable<String> myObserve()\r\n {\r\n return Observable.<String>create(subscriber -> {\r\n MessageSource source = new MessageSource();\r\n source.setListener(\r\n new MessageListener<String>() {\r\n public void onMessage(String message)\r\n {\r\n subscriber.onNext(message);\r\n }\r\n }\r\n );\r\n subscriber.setCancellable(source::stop);\r\n source.start();\r\n });\r\n }",
"public static void test008()\r\n {\r\n System.out.println(\"RxJavaTest04::test008\");\r\n List<String> tickets = new ArrayList<String>(Arrays.asList(\"one\", \"two\", \"three\", \"four\", \"five\"));\r\n List<String> failures = Observable.fromIterable(tickets)\r\n .flatMap(ticket ->\r\n myRxSendEmail(ticket)\r\n .flatMap(response -> Observable.<String>empty())\r\n .doOnError(e -> System.out.printf(\"Failed to send %s: %s\\n\", ticket, e))\r\n .onErrorReturn(err -> ticket))\r\n .toList()\r\n .blockingGet();\r\n for (String failure : failures) {\r\n System.out.println(failure);\r\n }\r\n }",
"public static Observable<String> getObservableSkipLastElement() {\n return observableSrc;//todo\n }",
"@Override\n public Observable<byte[]> onMessage() {\n return Observable.create(emitter -> {\n RtcCallbacks.MessageCallback messageCallback = msg -> {\n if (!emitter.isDisposed()) emitter.onNext(msg);\n };\n rtcCallbackProvider.addMessageCallback(messageCallback);\n emitter.setCancellable(rtcCallbackProvider::removeMessageCallback);\n });\n }",
"public static void test012()\r\n {\r\n System.out.println(\"RxJavaTest04::test012\");\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n log(\"Starting\");\r\n Observable<String> obs = mySimple();\r\n log(\"Created\");\r\n obs\r\n .subscribeOn(schedulerA)\r\n .subscribe(\r\n x -> log(\"Got \" + x),\r\n Throwable::printStackTrace,\r\n () -> log(\"Completed\")\r\n );\r\n log(\"After subscribe\");\r\n myWait(2000);\r\n log(\"Shutting down\");\r\n poolA.shutdown();\r\n }",
"public static void buffer() {\n\n List<String> data = Utils.getData();\n\n int numberOfBuffers = 11;\n\n CountDownLatch latch = new CountDownLatch(numberOfBuffers);\n\n\n Observable.fromIterable(data).buffer(3).subscribe(new MyObserver<>(latch));\n\n Observable.fromIterable(data).buffer(2, 3).subscribe(new MyObserver<>(latch));\n\n Observable.fromIterable(data).buffer(2, 3, ArrayList::new).subscribe(new MyObserver<>(latch));\n\n Observable.fromIterable(data).buffer(2, HashSet::new).subscribe(new MyObserver<>(latch));\n\n /*\n Opening and closing windows defined\n */\n Observable.fromIterable(data).buffer((observer) -> {\n System.out.println(\"opening\");\n // Starts buffer collection window\n // For every onNext a buffer window is created.\n observer.onNext(\"opening-1\");\n observer.onNext(\"opening-2\");\n }, (value) -> {\n System.out.println(\"closing, value = \" + value);\n // Closes buffer collection window\n // Gets invoked for each onNext in opening indicator\n return Observable.just(value).delay(100L, TimeUnit.MICROSECONDS);\n }, HashSet::new).subscribe(new MyObserver<>(latch));\n\n /*\n Buffer with boundary observable\n */\n Observable.fromIterable(data).buffer((Observer<? super Integer> observer) -> {\n System.out.println(\"onNext - 1\");\n observer.onNext(1);\n observer.onNext(2);\n }).subscribe(new MyObserver<>(latch));\n\n /*\n 1. Buffer with boundary observable by providing some other in built observable\n 2. Create a buffer of 100 Microseconds\n */\n Observable.fromIterable(data)\n .buffer(Observable.interval(100L, TimeUnit.MICROSECONDS))\n .subscribe(new MyObserver<>(latch));\n\n Observable.fromIterable(data)\n .buffer(Observable.interval(100L, TimeUnit.MICROSECONDS), 4)\n .subscribe(new MyObserver<>(latch));\n\n Observable.fromIterable(data)\n .buffer(Observable.interval(100L, TimeUnit.MICROSECONDS), () -> new HashSet<>())\n .subscribe(new MyObserver<>(latch));\n\n\n /*\n Boundary supplier is being passed from callable.\n */\n Observable.fromIterable(data)\n .buffer(() -> Observable.interval(100L, TimeUnit.MICROSECONDS))\n .subscribe(new MyObserver<>(latch));\n\n\n Observable.fromIterable(data)\n .buffer(() -> Observable.interval(100L, TimeUnit.MICROSECONDS), HashSet::new)\n .subscribe(new MyObserver<>(latch));\n\n try {\n latch.await();\n } catch (InterruptedException e) {\n System.out.println(e.getMessage());\n }\n }",
"@Test\n public void defaultIfEmpty() {\n Observable.empty()\n .defaultIfEmpty(\"geniusmart\")\n .subscribe(mList::add);\n assertEquals(mList, Collections.singletonList(\"geniusmart\"));\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> concat(\r\n\t\t\t@Nonnull final Iterable<? extends Observable<? extends T>> sources) {\r\n\t\treturn new Concat.FromIterable.Selector<Observable<? extends T>, T>(\r\n\t\t\t\tsources, Functions.<Observable<? extends T>>identity());\r\n\t}",
"private List<Observable<Word>> createObservables(){\n\t\tList<Observable<Word>> observables = new ArrayList<>();\n\t\tobservables.add(wordService.getSubject());\n\t\tobservables.add(wordService.getVerb());\n\t\tobservables.add(wordService.getArticle());\n\t\tobservables.add(wordService.getAdjective());\n\t\tobservables.add(wordService.getNoun());\n\t\treturn observables;\n\t}",
"@Test\n public void takeUntil() {\n Observable.just(1, 2, 3, 4)\n .takeUntil(integer -> integer > 2)\n .subscribe(mList::add);\n assertEquals(mList, Arrays.asList(1, 2, 3));\n\n mList.clear();\n Observable.just(1, 2, 3, 4)\n .takeUntil(integer -> integer < 10)\n .subscribe(mList::add);\n assertEquals(mList, Collections.singletonList(1));\n }",
"@Test\n public void observableEvolveAndReturnToStringValue() {\n assertTrue(Observable.just(10)\n .map(String::valueOf)\n .toBlocking()\n .single()\n .equals(\"10\"));\n }",
"@Override // org.reactivestreams.Subscriber\n public void onNext(T t) {\n if (this.done) {\n return;\n }\n if (this.sourceMode == 0) {\n try {\n this.actual.onNext(ObjectHelper.requireNonNull(this.a.apply(t), \"The mapper returned a null value\"));\n } catch (Throwable th) {\n fail(th);\n }\n } else {\n this.actual.onNext(null);\n }\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal T value,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tobserver.next(value);\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static void test006()\r\n {\r\n System.out.println(\"RxJavaTest04::test006\");\r\n Observable<String> flight = myRxLookupFlight(\"Amsterdam\").subscribeOn(Schedulers.io());\r\n Observable<String> passenger = myRxFindPassenger(1001).subscribeOn(Schedulers.io());\r\n Observable<String> ticket =\r\n flight.zipWith(passenger, (f, p) -> myBookTicket(f, p));\r\n System.out.println(\"Observables created, subscribing\");\r\n ticket.subscribe(RxJavaTest04::mySendEmail);\r\n myWait(10000);\r\n }",
"@Test\n public void amb() {\n Observable<Integer> o1 = Observable.just(20, 40, 60)\n .delay(500, TimeUnit.SECONDS, mTestScheduler);\n\n Observable<Integer> o2 = Observable.just(1, 2, 3)\n .delay(200, TimeUnit.SECONDS, mTestScheduler);\n\n Observable<Integer> o3 = Observable.just(0, 0, 0)\n .delay(1000, TimeUnit.SECONDS, mTestScheduler);\n\n Observable.amb(o1, o2, o3)\n .subscribe(mList::add);\n\n mTestScheduler.advanceTimeBy(1000, TimeUnit.SECONDS);\n assertEquals(mList, Arrays.asList(1, 2, 3));\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> merge(\r\n\t\t\t@Nonnull final Iterable<? extends Observable<? extends T>> sources) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\tfinal CompositeCloseable closeables = new CompositeCloseable();\r\n\t\t\t\t\r\n\t\t\t\tList<Observable<? extends T>> sourcesList = new ArrayList<Observable<? extends T>>();\r\n\t\t\t\tfor (Observable<? extends T> os : sources) {\r\n\t\t\t\t\tsourcesList.add(os);\r\n\t\t\t\t}\r\n\t\t\t\tfinal AtomicInteger wip = new AtomicInteger(sourcesList.size() + 1);\r\n\t\t\t\tfinal List<DefaultObserverEx<T>> observers = new ArrayList<DefaultObserverEx<T>>();\r\n\t\t\t\tfinal Lock lock = new ReentrantLock();\r\n\t\t\t\tfor (int i = 0; i < sourcesList.size(); i++) {\r\n\t\t\t\t\tfinal int j = i;\r\n\t\t\t\t\tDefaultObserverEx<T> obs = new DefaultObserverEx<T>(lock, true) {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t\t\tfor (int k = 0; k < observers.size(); k++) {\r\n\t\t\t\t\t\t\t\tif (k != j) {\r\n\t\t\t\t\t\t\t\t\tobservers.get(k).close();\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onFinish() {\r\n\t\t\t\t\t\t\tif (wip.decrementAndGet() == 0) {\r\n\t\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onNext(T value) {\r\n\t\t\t\t\t\t\tobserver.next(value);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t};\r\n\t\t\t\t\tobservers.add(obs);\r\n\t\t\t\t\tcloseables.add(obs);\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i = 0; i < observers.size(); i++) {\r\n\t\t\t\t\tDefaultObserverEx<T> obs = observers.get(i);\r\n\t\t\t\t\tObservable<? extends T> ov = sourcesList.get(i);\r\n\t\t\t\t\tobs.registerWith(ov);\r\n\t\t\t\t}\r\n\t\t\t\tif (wip.decrementAndGet() == 0) {\r\n\t\t\t\t\tobserver.finish();\r\n\t\t\t\t}\r\n\t\t\t\treturn closeables;\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static <T> Observable<T> repeat(\r\n\t\t\tfinal T value,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn repeat(Functions.constant0(value), pool);\r\n\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n @BackpressureSupport(BackpressureKind.FULL)\n @SchedulerSupport(SchedulerKind.NONE)\n public static <T> Observable<T> concatArray(Publisher<? extends T>... sources) {\n if (sources.length == 0) {\n return empty();\n } else\n if (sources.length == 1) {\n return fromPublisher(sources[0]);\n }\n return fromArray(sources).concatMap((Function)Functions.identity());\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> start(\r\n\t\t\t@Nonnull final Func0<? extends T> func,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tT value = func.invoke();\r\n\t\t\t\t\t\t\tobserver.next(value);\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} catch (Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"private static void backPressureChallenge() {\n\t\tObservable.range(1, 1000000)\n\t\t//below map will run in sequential\n\t\t//since sequential it has to complete whole task then only it can allow consumer to start\n\t\t\t.map(item -> {\n\t\t\t\tSystem.out.println(\"Produced item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t\treturn item;\n\t\t\t})\n\t\t\t.observeOn(Schedulers.io())\n\t\t\t//.subscribeOn(Schedulers.io())//with this whole pipelein runs in seprate thread paralleley\n\t\t\t//below will run in concurrent\n\t\t\t.subscribe(item ->{\n\t\t\t\t//mimcing slowness\n\t\t\t\tThreadUtil.sleep(300);\n\t\t\t\tSystem.out.println(\"Consumed item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t})\n\t\t\t\n\t\t\t;\n\t\t\n\t\t//since running in async we need to sleep\n\t\tThreadUtil.sleep(10000000);\n\t}",
"public static void scan() {\n Observable.range(1, 10)\n .scan((previous, current) -> {\n System.out.println(\"previous = \" + previous);\n System.out.println(\"current = \" + current);\n return previous + current;\n }).subscribe(new MyObserver<>());\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> repeat(\r\n\t\t\t@Nonnull final Func0<? extends T> func,\r\n\t\t\tfinal int count,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\tDefaultRunnable r = new DefaultRunnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onRun() {\r\n\t\t\t\t\t\tint i = count;\r\n\t\t\t\t\t\twhile (!cancelled() && i-- > 0) {\r\n\t\t\t\t\t\t\tobserver.next(func.invoke());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!cancelled()) {\r\n\t\t\t\t\t\t\tobserver.finish();\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\treturn pool.schedule(r);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"@Nonnull\r\n\tpublic static <T> Observable<T> repeat(\r\n\t\t\t@Nonnull final Func0<? extends T> func) {\r\n\t\treturn repeat(func, scheduler());\r\n\t}",
"@Nonnull\r\n\tpublic static <T> Observable<T> firstAsync(\r\n\t\t\t@Nonnull final Observable<? extends T> source) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull\r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn (new DefaultObserverEx<T>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onFinish() {\r\n\t\t\t\t\t\terror(new NoSuchElementException());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected void onNext(T value) {\r\n\t\t\t\t\t\tobserver.next(value);\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\tclose();\r\n\t\t\t\t\t} \r\n\t\t\t\t\t\r\n\t\t\t\t}).registerWith(source);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public void concatMap() {\r\n\t\tList<Integer> list1 = Arrays.asList(1, 2, 3, 7, 8, 9, 10);\r\n\t\tList<Integer> list2 = Arrays.asList(4, 5, 6);\r\n\t\tObservable.just(list1, list2).concatMap(x -> Observable.from(x)).map(x -> x * 10).subscribe(integerSubscribe());\r\n\t}",
"@Test\n public void async_2() throws InterruptedException {\n Func1<Integer, Observable<String>> wsKald = param -> Observable.<String>create(s -> {\n s.onStart();\n s.onNext(\"called with \" + param);\n s.onCompleted();\n }).subscribeOn(Schedulers.io());\n\n Func1<Long, Observable<Integer>> multi = param -> Observable.<Integer>create(s -> {\n s.onStart();\n IntStream.range(1, param.intValue()).forEach(s::onNext);\n s.onCompleted();\n }).subscribeOn(Schedulers.io());\n\n // asynkron tæller, hvert ½ sekund\n Observable<Long> ticker = Observable.interval(500, TimeUnit.MILLISECONDS);\n\n ticker.take(10)\n .flatMap(multi)\n .flatMap(wsKald)\n .toBlocking()\n .subscribe(log::info);\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> repeat(\r\n\t\t\tfinal T value,\r\n\t\t\tfinal int count,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn repeat(Functions.constant0(value), count, pool);\r\n\t}",
"@Nonnull \r\n\tpublic static <T> Observable<T> concat(\r\n\t\t\t@Nonnull final Observable<? extends Observable<? extends T>> sources\r\n\t) {\r\n\t\treturn new Concat.FromObservable.Selector<T, T>(sources, Functions.<Observable<? extends T>>identity());\r\n\t}",
"@Nonnull\r\n\tpublic static <T> Observable<Void> drain(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super T, ? extends Observable<Void>> pump,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<Void>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super Void> observer) {\r\n\t\t\t\t// keep track of the forked observers so the last should invoke finish() on the observer\r\n\t\t\t\tDefaultObserverEx<T> obs = new DefaultObserverEx<T>(true) {\r\n\t\t\t\t\t/** The work in progress counter. */\r\n\t\t\t\t\tfinal AtomicInteger wip = new AtomicInteger(1);\r\n\t\t\t\t\t/** The executor which ensures the sequence. */\r\n\t\t\t\t\tfinal SingleLaneExecutor<T> exec = new SingleLaneExecutor<T>(pool, new Action1<T>() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void invoke(T value) {\r\n\t\t\t\t\t\t\tpump.invoke(value).register(\r\n\t\t\t\t\t\t\t\tnew Observer<Void>() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\t\t\t\t\tlock.lock();\r\n\t\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t\t\t\t\t\t\tclose();\r\n\t\t\t\t\t\t\t\t\t\t} finally {\r\n\t\t\t\t\t\t\t\t\t\t\tlock.unlock();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\t\t\t\t\tif (wip.decrementAndGet() == 0) {\r\n\t\t\t\t\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t\t\t\t\t\tclose();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void next(Void value) {\r\n\t\t\t\t\t\t\t\t\t\tthrow new AssertionError();\r\n\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onClose() {\r\n//\t\t\t\t\t\texec.close(); FIX ME should not cancel the pool?!\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t\tclose();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onFinish() {\r\n\t\t\t\t\t\tif (wip.decrementAndGet() == 0) {\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void onNext(T value) {\r\n\t\t\t\t\t\twip.incrementAndGet();\r\n\t\t\t\t\t\texec.add(value);\r\n\t\t\t\t\t}\r\n\t\t\t\t};\r\n\t\t\t\treturn obs.registerWith(source);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"@Nonnull\r\n\tpublic static <T> Observable<Option<T>> materialize(\r\n\t\t\t@Nonnull final Observable<? extends T> source) {\r\n\t\treturn new Observable<Option<T>>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super Option<T>> observer) {\r\n\t\t\t\treturn source.register(new Observer<T>() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobserver.next(Option.<T>error(ex));\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\tobserver.next(Option.<T>none());\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\tobserver.next(Option.some(value));\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static void scanWithInitialValue() {\n Observable.range(1, 10)\n .scan(100, (previous, current) -> {\n System.out.println(\"previous = \" + previous);\n System.out.println(\"current = \" + current);\n return previous + current;\n }).subscribe(new MyObserver<>());\n\n System.out.println(\"# 2\");\n\n /*\n Same as above but initial value is returned via callable.\n */\n\n Observable.range(1, 10)\n .scanWith(() -> 1000, (previous, current) -> {\n System.out.println(\"previous = \" + previous);\n System.out.println(\"current = \" + current);\n return previous + current;\n }).subscribe(new MyObserver<>());\n\n }"
]
| [
"0.6635319",
"0.64810634",
"0.6436047",
"0.6346916",
"0.6344092",
"0.6281219",
"0.61726713",
"0.6106239",
"0.60722184",
"0.60659",
"0.6039107",
"0.6026433",
"0.60044014",
"0.5981519",
"0.5953431",
"0.5945126",
"0.59192735",
"0.58993185",
"0.58985484",
"0.5861174",
"0.5808083",
"0.57746685",
"0.57708335",
"0.5731323",
"0.56786036",
"0.564349",
"0.5639523",
"0.5628511",
"0.56073546",
"0.56071204",
"0.557697",
"0.55763197",
"0.55688024",
"0.5558117",
"0.5554315",
"0.55509305",
"0.55038285",
"0.54963154",
"0.54928434",
"0.54847294",
"0.5479761",
"0.5463646",
"0.54429656",
"0.54425234",
"0.5436274",
"0.54329115",
"0.54296106",
"0.5401002",
"0.5398058",
"0.5396292",
"0.5385717",
"0.5379158",
"0.5363932",
"0.5351943",
"0.5293698",
"0.5287485",
"0.52657956",
"0.5228478",
"0.52170545",
"0.52005905",
"0.5200538",
"0.5184952",
"0.517837",
"0.5161417",
"0.5158449",
"0.51455176",
"0.5145206",
"0.51322997",
"0.5131657",
"0.51204866",
"0.51170635",
"0.5115786",
"0.5113487",
"0.5104539",
"0.5086061",
"0.507441",
"0.5066634",
"0.5054848",
"0.50522715",
"0.50451034",
"0.5037355",
"0.5035716",
"0.5024238",
"0.5016692",
"0.50155133",
"0.5013412",
"0.49993196",
"0.49971184",
"0.49970695",
"0.49840713",
"0.4979233",
"0.49768546",
"0.49662974",
"0.49647483",
"0.4935379",
"0.49270833",
"0.492224",
"0.49137792",
"0.49012253",
"0.4897075"
]
| 0.6894028 | 0 |
Creates a Hot Observable The moment we call the publish() method on Observable.just() It Converts the Observable to a Connectable Observable Connectable Observable doesn't start its emission right after you subscribe The moment we call connect() method it starts emission Any Observer which subscribes after calling connect() misses emissions | private static void createHotAndConnectableObservable() {
var observable = Observable.just(1, 2, 3, 4, 5).publish();
observable.subscribe(item -> LOG.info("Connectable Observer 1: {}", item));
observable.subscribe(item -> LOG.info("Connectable Observer 2: {}", item));
pause(1000);
// calling connect starts emitting immediately - any order
observable.connect();
// if we subscribe now it'll now be emitted - hot observable
observable.subscribe(item -> LOG.info("Connectable Observer 3: {}", item));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static <T> ConnectableObservable<T> create(Observable<? extends T> source) {\n PublishState<T> ps = new PublishState<>();\n return new OperatorPublish<>(source, ps);\n }",
"private static void createColdObservable() {\n var observable = Observable.just(1, 2, 3, 4, 5);\n\n observable.subscribe(item -> LOG.info(\"Observer 1: {}\", item));\n\n pause(1000);\n\n observable.subscribe(item -> LOG.info(\"Observer 2: {}\", item));\n }",
"private static void createObservableUsingNever() {\n Observable<?> observable = Observable.never();\n\n observable.subscribe(x -> LOG.info(\"{}\", x),\n error -> LOG.info(\"{}\", error.getLocalizedMessage()),\n () -> LOG.info(\"Completed\"));\n\n // Pause the main thread for the hope that it will print something\n sleep(3000);\n }",
"public static void generateStateless() {\n Observable<String> myObservable = Observable.generate((emitter -> {\n System.out.println(\"got emitter = \" + emitter);\n try {\n emitter.onNext(\"generate - 1\");\n emitter.onNext(\"generate - 2 \");\n emitter.onComplete();\n } catch (Exception e) {\n emitter.onError(e);\n }\n }));\n myObservable.subscribe(genericObserver1);\n }",
"@Nonnull\r\n\tpublic static <T> ConnectableObservable<T> publish(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\tfinal T initialValue\r\n\t\t\t) {\r\n\t\treturn multicast(source, new Subject<T, T>() {\r\n\t\t\t/** The observable handling the registrations. */\r\n\t\t\tfinal DefaultObservable<T> obs = new DefaultObservable<T>(); \r\n\t\t\t@Override\r\n\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\tobs.error(ex);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void finish() {\r\n\t\t\t\tobs.finish();\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void next(T value) {\r\n\t\t\t\tobs.next(value);\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\t@Nonnull\r\n\t\t\tpublic Closeable register(@Nonnull Observer<? super T> observer) {\r\n\t\t\t\tobserver.next(initialValue);\r\n\t\t\t\treturn obs.register(observer);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t}",
"@Nonnull\r\n\tpublic static <T> ConnectableObservable<T> publish(\r\n\t\t\t@Nonnull final Observable<? extends T> source\r\n\t\t\t) {\r\n\t\treturn multicast(source, Subjects.<T>newSubject());\r\n\t}",
"@Override\n protected void onSubscribe() {\n Subscription s = subscription;\n Disposable d = Disposable.from(s);\n \n if (!TerminalAtomics.set(this, DISCONNECT, d)) {\n done = true;\n return;\n }\n \n connected = true;\n s.request(Flow.defaultBufferSize());\n }",
"private Observable crearObservable(){\n /**\n * Hay otras muchas formas de crear el observable\n */\n return Observable.create(new ObservableOnSubscribe<String>() {\n\n @Override\n public void subscribe(ObservableEmitter<String> emitter) throws Exception {\n try {\n //Un observable puede emitir 3 tipos de datos\n //1\n emitter.onNext(\"Primer dato del observable\");\n emitter.onNext(\"Segundo dato del observable\");\n emitter.onNext(tareaLargaDuracion());\n //2\n emitter.onComplete();//Ha dejado ya de emitir datos\n }catch (Exception e){\n e.printStackTrace();\n //3\n emitter.onError(e);\n }\n }\n });\n }",
"public Observable()\n {\n observers = new HashSet<>();\n }",
"private static void createObservableUsingEmpty() {\n Observable<?> observable = Observable.empty();\n\n observable.subscribe(x -> LOG.info(\"{}\", x), error -> LOG.info(\"Error 1: {}\", error.hashCode()));\n observable.subscribe(x -> LOG.info(\"{}\", x),\n error -> LOG.info(\"{}\", error.getLocalizedMessage()),\n () -> LOG.info(\"Completed\"));\n }",
"public static void main(String[] args) {\n System.out.println(\"Example of Observable.just()****\");\n Observable<String> justObs = Observable.just(\"one\", \"two\", \"three\", \"four\");\n justObs.subscribe(v -> System.out.println(\"Received:\" + v), e -> System.out.println(e), () -> System.out.println(\"Completed\"));\n\n System.out.println(\"\\nExample of Observable.create()****\");\n Observable<String> createdObs = Observable.create(o -> {\n o.onNext(\"Hello\");\n o.onCompleted();\n });\n createdObs.subscribe(System.out::println, e -> System.out.println(e), () -> System.out.println(\"Completed\"));\n\n System.out.println(\"\\nConverting FutureTask into Observable****\");\n FutureTask<Integer> task = new FutureTask<>(() -> {\n Thread.sleep(3000);\n return 28;\n });\n new Thread(task).start();\n\n Observable<Integer> futureObs = Observable.from(task);\n Subscription subscription = futureObs.subscribe(v -> System.out.println(\"Received :\" + v), e -> System.out.println(\"Error :\" + e),\n () -> System.out.println(\"Completed\"));\n\n System.out.println(\"\\nConverting Integer array into Observable****\");\n Integer[] in = new Integer[] { 1, 2, 3 };\n\n Observable<Integer> integerObs = Observable.from(in);\n Subscription arraySub = integerObs.subscribe(v -> System.out.println(\"Received :\" + v), e -> System.out.println(\"Error :\" + e),\n () -> System.out.println(\"Completed\"));\n }",
"public static void just() {\n Observable<List<String>> myObservable = Observable.just(Utils.getData());\n myObservable.subscribe(consumerList);\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> never() {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull Observer<? super T> observer) {\r\n\t\t\t\treturn Closeables.emptyCloseable();\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"private void test() {\n Observable<String> observable = Observable.create(new ObservableOnSubscribe<String>() {\n\n @Override\n public void subscribe(ObservableEmitter<String> e) throws Exception {\n e.onNext(\"hello\");\n e.onNext(\"RXJAVA\");\n e.onComplete();\n }\n }).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread());\n\n Observer<String> observer = new Observer<String>() {\n @Override\n public void onSubscribe(Disposable d) {\n Log.d(TAG, \"onSubscribe\");\n }\n\n @Override\n public void onNext(String s) {\n Log.d(TAG, \"onNext:\" + s);\n }\n\n @Override\n public void onError(Throwable e) {\n Log.d(TAG, \"onError\");\n }\n\n @Override\n public void onComplete() {\n Log.d(TAG, \"onComplete\");\n }\n };\n observable.subscribe(observer);\n }",
"public static void compose() {\n Observable.fromIterable(Utils.getData())\n .compose((source) -> {\n source.subscribe(new MyObserver<>());\n return source;\n });\n\n System.out.println(\"# 2\");\n\n Observable.fromIterable(Utils.getData())\n .compose((source) -> {\n Observable<String> observable = Observable.just(\"composed\");\n observable.subscribe(new MyObserver<>());\n return observable;\n });\n }",
"public void connect(p019io.reactivex.functions.Consumer<? super p019io.reactivex.disposables.Disposable> r7) {\n /*\n r6 = this;\n L_0x0000:\n java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.observable.ObservableReplay$ReplayObserver<T>> r0 = r6.current\n java.lang.Object r0 = r0.get()\n io.reactivex.internal.operators.observable.ObservableReplay$ReplayObserver r0 = (p019io.reactivex.internal.operators.observable.ObservableReplay.ReplayObserver) r0\n if (r0 == 0) goto L_0x0010\n boolean r1 = r0.isDisposed()\n if (r1 == 0) goto L_0x0025\n L_0x0010:\n io.reactivex.internal.operators.observable.ObservableReplay$BufferSupplier<T> r1 = r6.bufferFactory\n io.reactivex.internal.operators.observable.ObservableReplay$ReplayBuffer r1 = r1.call()\n io.reactivex.internal.operators.observable.ObservableReplay$ReplayObserver r2 = new io.reactivex.internal.operators.observable.ObservableReplay$ReplayObserver\n r2.<init>(r1)\n java.util.concurrent.atomic.AtomicReference<io.reactivex.internal.operators.observable.ObservableReplay$ReplayObserver<T>> r3 = r6.current\n boolean r3 = r3.compareAndSet(r0, r2)\n if (r3 != 0) goto L_0x0024\n goto L_0x0000\n L_0x0024:\n r0 = r2\n L_0x0025:\n java.util.concurrent.atomic.AtomicBoolean r1 = r0.shouldConnect\n boolean r1 = r1.get()\n r2 = 1\n r3 = 0\n if (r1 != 0) goto L_0x0039\n java.util.concurrent.atomic.AtomicBoolean r1 = r0.shouldConnect\n boolean r1 = r1.compareAndSet(r3, r2)\n if (r1 == 0) goto L_0x0039\n r1 = r2\n goto L_0x003a\n L_0x0039:\n r1 = r3\n L_0x003a:\n r7.accept(r0) // Catch:{ all -> 0x0047 }\n if (r1 == 0) goto L_0x0046\n io.reactivex.ObservableSource<T> r2 = r6.source\n r2.subscribe(r0)\n L_0x0046:\n return\n L_0x0047:\n r4 = move-exception\n if (r1 == 0) goto L_0x004f\n java.util.concurrent.atomic.AtomicBoolean r5 = r0.shouldConnect\n r5.compareAndSet(r2, r3)\n L_0x004f:\n p019io.reactivex.exceptions.Exceptions.throwIfFatal(r4)\n java.lang.RuntimeException r2 = p019io.reactivex.internal.util.ExceptionHelper.wrapOrThrow(r4)\n throw r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p019io.reactivex.internal.operators.observable.ObservableReplay.connect(io.reactivex.functions.Consumer):void\");\n }",
"@Override\r\n public Object connect() {\n if(status()){\r\n //creates thread that checks messages in the network\r\n System.out.println(\"notifying network that connection is good\");\r\n notifyObservers(this);\r\n }\r\n return socket;\r\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> defer(\r\n\t\t\t@Nonnull final Func0<? extends Observable<? extends T>> observableFactory) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull Observer<? super T> observer) {\r\n\t\t\t\treturn observableFactory.invoke().register(observer);\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public void connect(Consumer<? super Disposable> consumer) {\r\n PublishConnection publishConnection;\r\n while (true) {\r\n publishConnection = (PublishConnection) this.current.get();\r\n if (publishConnection != null && !publishConnection.isDisposed()) {\r\n break;\r\n }\r\n PublishConnection publishConnection2 = new PublishConnection(this.current, this.bufferSize);\r\n if (this.current.compareAndSet(publishConnection, publishConnection2)) {\r\n publishConnection = publishConnection2;\r\n break;\r\n }\r\n }\r\n boolean z = true;\r\n if (publishConnection.connect.get() || !publishConnection.connect.compareAndSet(false, true)) {\r\n z = false;\r\n }\r\n try {\r\n consumer.accept(publishConnection);\r\n if (z) {\r\n this.source.subscribe(publishConnection);\r\n }\r\n } catch (Throwable th) {\r\n Exceptions.throwIfFatal(th);\r\n throw ExceptionHelper.wrapOrThrow(th);\r\n }\r\n }",
"private static void createObservableUsingDefer() {\n LOG.info(LINE);\n // it prints from start up to (start + count - 1)\n final int start = 5;\n\n var observable = Observable.range(start, count);\n observable.subscribe(item -> LOG.info(\"Observer 1: {}\", item)); // only 5 6\n count = 3;\n observable.subscribe(item -> LOG.info(\"Observer 2: {}\", item)); // only 5 6 - count change is not reffered\n\n LOG.info(LINE);\n\n count = 2;\n observable = Observable.defer(() -> {\n System.out.println(\"New Observable is created with start = \" + start + \" and count = \" + count);\n return Observable.range(start, count);\n });\n\n observable.subscribe(item -> LOG.info(\"Observer 1: {}\", item)); // only 5 6\n count = 3;\n observable.subscribe(item -> LOG.info(\"Observer 2: {}\", item)); // 5 6 7 - count change used by new range object\n }",
"public Flux<OHLCData> getHotBitcoinDataFromConnectable() {\n /* ################### Return the hot stream ##################################*/\n return null;\n }",
"public static void main(String[] args){\n Observable myObservable = Observable.create(new Observable.OnSubscribe(){\n\n @Override\n public void call(Object subscriber) {\n Subscriber mySubscriber = (Subscriber)subscriber;\n\n for(int i = 0 ; i < 10; i++){\n //if my subscriber was subscribed\n if(!mySubscriber.isUnsubscribed()){\n mySubscriber.onNext(\"Pushed value \" + i);\n }\n }\n\n if(!mySubscriber.isUnsubscribed()){\n mySubscriber.onCompleted();\n }\n\n }\n });\n\n //subscribe to your Observable\n myObservable.subscribe(new Action1<String>() {\n @Override\n public void call(String s) {\n System.out.println(s);\n }\n },\n new Action1<Throwable>() {\n @Override\n public void call(Throwable throwable) {\n System.out.println(\"Something went wrong the observable\");\n }\n },\n new Action0() {\n @Override\n public void call() {\n System.out.println(\"No more values will be pushed.\");\n }\n });\n\n }",
"void disposeObservable();",
"@Override\n //called when something subscribes to this observable\n public void subscribe(ObservableEmitter<Task> emitter) throws Throwable {\n if(!emitter.isDisposed()){\n emitter.onNext(task);\n emitter.onComplete();\n }\n }",
"public void observaleJust() {\n\t\tObservable.just(1, 2, 3, 4, 5, 6, 7, 8, 9, 10).subscribe(integerSubscribe());\r\n\t}",
"private void test1() {\n Observable observable = Observable.create(new ObservableOnSubscribe<QuoteBean>() {\n @Override\n public void subscribe(ObservableEmitter<QuoteBean> e) throws Exception {\n e.onNext(Request.stringRequest(url, com.android.volley.Request.Method.GET, HomeActivity.class.getSimpleName()));\n }\n }).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread());\n\n Observer<QuoteBean> observer = new Observer<QuoteBean>() {\n @Override\n public void onSubscribe(Disposable d) {\n Log.d(TAG, \"test1 onSubscribe\");\n }\n\n @Override\n public void onNext(QuoteBean s) {\n Log.d(TAG, \"onNext:\" + s.toString());\n }\n\n @Override\n public void onError(Throwable e) {\n Log.d(TAG, \"onError\");\n }\n\n @Override\n public void onComplete() {\n Log.d(TAG, \"onComplete\");\n }\n };\n observable.subscribe(observer);\n }",
"private Subscriber<BluetoothDevice> prepareConnectionSubscriber() {\n Subscriber<BluetoothDevice> subscriber = new Subscriber<BluetoothDevice>() {\n @Override\n public void onCompleted() {\n mProgressDialog.dismiss();\n finish();\n }\n\n @Override\n public void onError(Throwable e) {\n mProgressDialog.dismiss();\n Toast.makeText(SearchDevicesActivity.this, R.string.error_unable_to_connect, Toast.LENGTH_LONG).show();\n }\n\n @Override\n public void onNext(BluetoothDevice device) {\n Log.d(BtApplication.TAG, \"Connection Subscriber: \" + device.getName());\n AppSettings.putDeviceMacAddress(device.getAddress());\n }\n };\n return subscriber;\n }",
"public void observableDefer() {\r\n\t\tPerson person = new Person();\r\n\t\tObservable<String> nameOfPerson = Observable.defer(() -> Observable.just(person.getName()));\r\n\t\tObservable<Integer> ageOfPerson = Observable.defer(new Func0<Observable<Integer>>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic Observable<Integer> call() {\r\n\t\t\t\treturn Observable.just(person.getAge());\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tperson.setAge(35);\r\n\t\tperson.setName(\"Bob\");\r\n\r\n\t\tsubscribe(nameOfPerson, ageOfPerson);\r\n\r\n\t}",
"public void createConnection() {\n final Property targetProperty = getTargetProperty();\n if (targetProperty != null) {\n targetProperty.setSource(getSourceProperty());\n }\n }",
"private static void createObservableUsingInterval() {\n LOG.info(LINE);\n var observable = Observable.interval(1, TimeUnit.SECONDS);\n\n observable.subscribe(item -> LOG.info(\"Observer 1: {}\", item));\n sleep(2000);\n\n observable.subscribe(item -> LOG.info(\"Observer 2: {}\", item));\n sleep(3000);\n\n // this is a cold obervable as interval creates new instance for each observer\n }",
"public static Observable<String> getObservableDistinct() {\n return observableSrcDuplicated;//todo\n }",
"@Test\n public void testDefer() throws InterruptedException {\n Observable<LocalTime> localTimeObservable =\n Observable.defer(\n () -> Observable\n .just(LocalTime.now()))\n .repeat(3);\n localTimeObservable.subscribe(System.out::println);\n Thread.sleep(3000);\n System.out.println(\"Next Subscriber\");\n localTimeObservable.subscribe(System.out::println);\n }",
"public static void defer() {\n class Data {\n private String value = \"abc\";\n }\n\n final Data data = new Data();\n\n // Other observables gets created immediately e.g.\n Observable<String> myObservable = Observable.just(data.value);\n // Modify the data\n data.value = \"xyz\";\n // Even though data is modified, observer will get old data \"abc\"\n myObservable.subscribe(genericObserver1);\n\n data.value = \"abc\";\n myObservable = Observable.defer(() -> {\n System.out.println(\"defer supplier going to create observable\");\n return Observable.just(data.value);\n });\n // modify data\n data.value = \"xyz\";\n // Because of defer, observable will be created upon subscription, hence it will get the\n // modified data\n myObservable.subscribe(genericObserver1);\n }",
"public static void empty() {\n Observable<String> myObservable = Observable.empty();\n myObservable.subscribe(genericObserver1);\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> empty(\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static void never() {\n Observable<String> myObservable = Observable.never();\n myObservable.subscribe(genericObserver1);\n }",
"public static Observable<String> myObserve()\r\n {\r\n return Observable.<String>create(subscriber -> {\r\n MessageSource source = new MessageSource();\r\n source.setListener(\r\n new MessageListener<String>() {\r\n public void onMessage(String message)\r\n {\r\n subscriber.onNext(message);\r\n }\r\n }\r\n );\r\n subscriber.setCancellable(source::stop);\r\n source.start();\r\n });\r\n }",
"public static void main(String[] args) {\n\t\tObservable<String> mObservable = Observable.create(new Observable.OnSubscribe<String>() {\n\t\t\t@Override\n\t\t\tpublic void call(Subscriber<? super String> subscriber) {\n\t\t\t\tsubscriber.onNext(\"hello world\");\n\t\t\t\tsubscriber.onCompleted();\n\t\t\t}\n\t\t}) ;\n\n\t\tSubscriber<String> mSubscriber = new Subscriber<String>() {\n\t\t\t@Override\n\t\t\tpublic void onCompleted() {}\n\n\t\t\t@Override\n\t\t\tpublic void onError(Throwable e) {}\n\n\t\t\t@Override\n\t\t\tpublic void onNext(String s) {System.out.println(s);}\n\t\t} ;\n\n\t\tmObservable.subscribe(mSubscriber);\n\t\t//1.2 abbreviate\n\t\t// TODO: 7/2/15 myObservable.subscribe(onNextAction, onErrorAction, onCompleteAction);\n\t\tObservable<String> mObservable2 = Observable.just(\"Hello RxJava\") ;\n\t\tAction1<String> onNextAction = new Action1<String>() {\n\t\t\t@Override\n\t\t\tpublic void call(String s) {\n\t\t\t\tSystem.out.println(s) ;\n\t\t\t}\n\t\t} ;\n\t\tmObservable2.subscribe(onNextAction);\n\t\t//1.3 simpler code\n\t\tObservable.just(\"simpler code\").subscribe(new Action1<String>() {\n\t\t\t@Override\n\t\t\tpublic void call(String s) {\n\t\t\t\tSystem.out.println(s) ;\n\t\t\t}\n\t\t});\n\t\t//1.4. Java8 lambda\n\t\tObservable.just(\"Hello Rx and lambda\").subscribe(s -> System.out.println(s)) ;\n\t\t//2. transformation\n\t\tObservable.just(\"Hello trans\").subscribe(s -> System.out.println(s+\"formation\")) ;\n\t\t//2.1 map()\n\t\tObservable.just(\"Hello trans\").map(new Func1<String, String>() {\n\t\t\t@Override\n\t\t\tpublic String call(String s) {\n\t\t\t\treturn s+\"formation\";\n\t\t\t}\n\t\t}).subscribe(s -> System.out.println(s));\n//\t\t}).subscribe(System.out::println);\n\t\t//2.2 trans + lambda\n\t\tObservable.just(\"Hello trans\").map(s -> s+\"fromation\").subscribe(s -> System.out.println(s));\n\t\t//or\n\t\tObservable.just(\"Hello trans\").map(s -> s+\"fromation\").subscribe(System.out::println);\n\t\t//2.3 trans String to Integer\n\t\tObservable.just(\"Hello trans!\").map(new Func1<String, Integer>() {\n\t\t\t@Override\n\t\t\tpublic Integer call(String s) {\n\t\t\t\treturn s.hashCode();\n\t\t\t}\n\t\t}).subscribe(i-> System.out.println(Integer.toString(i)));\n\t\tObservable.just(\"Hello trans!\").map(s -> s.hashCode())\n\t\t\t\t.subscribe(i -> System.out.println(Integer.toString(i)));\n\t\tObservable.just(\"Hello trans!\").map(String::hashCode)\n\t\t\t\t.subscribe(i->System.out.println(Integer.toString(i)));\n\t\tObservable.just(\"Hello trans!\").map(String::hashCode).map(i->Integer.toString(i))\n\t\t\t\t.subscribe(System.out::println);\n\t}",
"public static Observable<String> getObservableDistinctUntilChanges() {\n return observableSrcDuplicated;//todo\n }",
"public static void main(String[] args) throws InterruptedException {\n Flux<Long> hotPublisher = Flux.interval(Duration.ofMillis(200));\n //making it a hotflux and adding element delay time\n ConnectableFlux<Long> connectableFlux = hotPublisher.publish();\n //connecting to first sub\n connectableFlux.subscribe(x -> System.out.println(\"hotFlux1: \" + x));\n connectableFlux.connect();\n //waiting for 500ms to skip some stream\n Thread.sleep(500);\n // subscribing to next subscriber\n connectableFlux.subscribe(x -> System.out.println(\"\\thotFlux2: \" + x));\n // blocking main thread\n Thread.sleep(600);\n\n\n }",
"@Nonnull \r\n\tpublic static <T> ConnectableObservable<T> publishLast(\r\n\t\t\t@Nonnull final Observable<T> source\r\n\t\t\t) {\r\n\t\treturn multicast(source, new AsyncSubject<T>());\r\n\t}",
"public PublishSubscribeChannel() {\n\t\tthis(false);\n\t}",
"private static void exSwitchMapTwo() {\n\n Observable.interval(5,TimeUnit.SECONDS)\n .switchMap(call -> Observable.just(getResponse()).doOnDispose(() -> System.out.println(\"Disposed\")))\n .subscribe(System.out::println);\n\n //An Observable which performs network call.\n sleep(40000);\n\n\n /* OUTPUT :\n 6\n 10\n 13\n 17\n 26\n 32\n 35\n 42\n\n */\n }",
"@Nonnull \r\n\tpublic static <T, U> Observable<U> publish(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super Observable<? extends T>, ? extends Observable<? extends U>> selector,\r\n\t\t\tfinal T initialValue\r\n\t\t\t) {\r\n\t\treturn multicast(source, new Func0<Subject<T, T>>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Subject<T, T> invoke() {\r\n\t\t\t\treturn new Subject<T, T>() {\r\n\t\t\t\t\t/** The observable handling the registrations. */\r\n\t\t\t\t\tfinal DefaultObservable<T> obs = new DefaultObservable<T>(); \r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tobs.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\tobs.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\tobs.next(value);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\t@Nonnull\r\n\t\t\t\t\tpublic Closeable register(@Nonnull Observer<? super T> observer) {\r\n\t\t\t\t\t\tobserver.next(initialValue);\r\n\t\t\t\t\t\treturn obs.register(observer);\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}, selector);\r\n\t}",
"private static void backPressureChallenge() {\n\t\tObservable.range(1, 1000000)\n\t\t//below map will run in sequential\n\t\t//since sequential it has to complete whole task then only it can allow consumer to start\n\t\t\t.map(item -> {\n\t\t\t\tSystem.out.println(\"Produced item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t\treturn item;\n\t\t\t})\n\t\t\t.observeOn(Schedulers.io())\n\t\t\t//.subscribeOn(Schedulers.io())//with this whole pipelein runs in seprate thread paralleley\n\t\t\t//below will run in concurrent\n\t\t\t.subscribe(item ->{\n\t\t\t\t//mimcing slowness\n\t\t\t\tThreadUtil.sleep(300);\n\t\t\t\tSystem.out.println(\"Consumed item \"+item +\" using thread \"+Thread.currentThread().getName());\n\t\t\t})\n\t\t\t\n\t\t\t;\n\t\t\n\t\t//since running in async we need to sleep\n\t\tThreadUtil.sleep(10000000);\n\t}",
"@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable p1) {\n\t\t\t\t\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n public static void enable() {\n if (lock.compareAndSet(false, true)) {\n\n RxJavaPlugins.setOnFlowableAssembly(new Function<Flowable, Flowable>() {\n @Override\n public Flowable apply(Flowable f) throws Exception {\n if (f instanceof Supplier) {\n if (f instanceof ScalarSupplier) {\n return new FlowableOnAssemblyScalarSupplier(f);\n }\n return new FlowableOnAssemblySupplier(f);\n }\n return new FlowableOnAssembly(f);\n }\n });\n\n RxJavaPlugins.setOnConnectableFlowableAssembly(new Function<ConnectableFlowable, ConnectableFlowable>() {\n @Override\n public ConnectableFlowable apply(ConnectableFlowable f) throws Exception {\n return new FlowableOnAssemblyConnectable(f);\n }\n });\n\n RxJavaPlugins.setOnObservableAssembly(new Function<Observable, Observable>() {\n @Override\n public Observable apply(Observable f) throws Exception {\n if (f instanceof Supplier) {\n if (f instanceof ScalarSupplier) {\n return new ObservableOnAssemblyScalarSupplier(f);\n }\n return new ObservableOnAssemblySupplier(f);\n }\n return new ObservableOnAssembly(f);\n }\n });\n\n RxJavaPlugins.setOnConnectableObservableAssembly(new Function<ConnectableObservable, ConnectableObservable>() {\n @Override\n public ConnectableObservable apply(ConnectableObservable f) throws Exception {\n return new ObservableOnAssemblyConnectable(f);\n }\n });\n\n RxJavaPlugins.setOnSingleAssembly(new Function<Single, Single>() {\n @Override\n public Single apply(Single f) throws Exception {\n if (f instanceof Supplier) {\n if (f instanceof ScalarSupplier) {\n return new SingleOnAssemblyScalarSupplier(f);\n }\n return new SingleOnAssemblySupplier(f);\n }\n return new SingleOnAssembly(f);\n }\n });\n\n RxJavaPlugins.setOnCompletableAssembly(new Function<Completable, Completable>() {\n @Override\n public Completable apply(Completable f) throws Exception {\n if (f instanceof Supplier) {\n if (f instanceof ScalarSupplier) {\n return new CompletableOnAssemblyScalarSupplier(f);\n }\n return new CompletableOnAssemblySupplier(f);\n }\n return new CompletableOnAssembly(f);\n }\n });\n\n RxJavaPlugins.setOnMaybeAssembly(new Function<Maybe, Maybe>() {\n @Override\n public Maybe apply(Maybe f) throws Exception {\n if (f instanceof Supplier) {\n if (f instanceof ScalarSupplier) {\n return new MaybeOnAssemblyScalarSupplier(f);\n }\n return new MaybeOnAssemblySupplier(f);\n }\n return new MaybeOnAssembly(f);\n }\n });\n\n RxJavaPlugins.setOnParallelAssembly(new Function<ParallelFlowable, ParallelFlowable>() {\n @Override\n public ParallelFlowable apply(ParallelFlowable t) throws Exception {\n return new ParallelFlowableOnAssembly(t);\n }\n });\n\n lock.set(false);\n }\n }",
"public void connect() {}",
"@Override\n public void onSubscribe(Disposable d) {\n }",
"public final <T> Observable<T> mo129852e() {\n if (this instanceof FuseToObservable) {\n return ((FuseToObservable) this).aT_();\n }\n return RxJavaPlugins.m148463a(new CompletableToObservable(this));\n }",
"public static void test012()\r\n {\r\n System.out.println(\"RxJavaTest04::test012\");\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n log(\"Starting\");\r\n Observable<String> obs = mySimple();\r\n log(\"Created\");\r\n obs\r\n .subscribeOn(schedulerA)\r\n .subscribe(\r\n x -> log(\"Got \" + x),\r\n Throwable::printStackTrace,\r\n () -> log(\"Completed\")\r\n );\r\n log(\"After subscribe\");\r\n myWait(2000);\r\n log(\"Shutting down\");\r\n poolA.shutdown();\r\n }",
"void subscribe();",
"@Nonnull\r\n\tpublic static <T> Observable<T> singleton(\r\n\t\t\tfinal Func0<? extends T> supplier,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tobserver.next(supplier.invoke());\r\n\t\t\t\t\t\tobserver.finish();\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}",
"@Nonnull\r\n\tpublic static <T, U> ConnectableObservable<U> multicast(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Subject<? super T, ? extends U> subject) {\r\n\t\treturn new DefaultConnectableObservable<T, U>(source, subject);\r\n\t}",
"private static void exSwitchMapThree(){\n Observable<String> intense =\n Observable.just(\"Savi\",\"Healer\",\"Three\",\"Four\",\"Wednesday\",\"Friday\",\"You\",\"Me\")\n .concatMap(result -> Observable.just(result).delay(randomSleepTime(),TimeUnit.MILLISECONDS))\n .doOnDispose(() -> System.out.println(\" * * Disposed * *\"));\n\n //Observable to execute intense task every 5 seconds\n Observable.interval(5,TimeUnit.SECONDS)\n .switchMap(r -> intense)\n .subscribe(System.out::println);\n\n //Sleep the main thread for few seconds\n Take.sleep(20000);\n\n /*\n After every 5 seconds it will dispose the ongoing intense (variable name) process and\n start the same process again.\n */\n\n //Output\n /*\n Savi\n Healer\n Three\n Four\n * * Disposed * *\n Savi\n Healer\n Three\n Four\n Wednesday\n Friday\n You\n * * Disposed * *\n Savi\n Healer\n Three\n Four\n Wednesday\n * * Disposed * *\n */\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tlog.info(\"Se completa con éxito el observable\");\n\t\t\t\t\t}",
"@Override\n public Observable<byte[]> onMessage() {\n return Observable.create(emitter -> {\n RtcCallbacks.MessageCallback messageCallback = msg -> {\n if (!emitter.isDisposed()) emitter.onNext(msg);\n };\n rtcCallbackProvider.addMessageCallback(messageCallback);\n emitter.setCancellable(rtcCallbackProvider::removeMessageCallback);\n });\n }",
"@Override\n\t\t\tpublic void onSubscribe(Disposable arg0) {\n\t\t\t\t\n\t\t\t}",
"public static void generateStateful() {\n Observable<String> statefulObservable = Observable.generate(\n () -> {\n int initialState = 1;\n System.out.println(\"initial state = \" + initialState);\n return initialState;\n },\n (initialState, stringEmitter) -> {\n try {\n if (initialState <= 3) {\n System.out.println(\"emitter = \" + stringEmitter);\n stringEmitter.onNext(\"generate - \" + initialState);\n initialState += 1;\n System.out.println(\"update state = \" + initialState);\n } else {\n stringEmitter.onComplete();\n }\n } catch (Exception e) {\n stringEmitter.onError(e);\n }\n return initialState;\n }, (disposeState -> System.out.println(\"dispose state = \" + disposeState)));\n statefulObservable.subscribe(genericObserver1);\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> debugState(\r\n\t\t\t@Nonnull final Observable<? extends T> source) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn source.register(new Observer<T>() {\r\n\t\t\t\t\tObserverState state = ObserverState.OBSERVER_RUNNING;\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void error(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\tif (state != ObserverState.OBSERVER_RUNNING) {\r\n\t\t\t\t\t\t\tnew IllegalStateException(state.toString()).printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tstate = ObserverState.OBSERVER_ERROR;\r\n\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void finish() {\r\n\t\t\t\t\t\tif (state != ObserverState.OBSERVER_RUNNING) {\r\n\t\t\t\t\t\t\tnew IllegalStateException(state.toString()).printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tstate = ObserverState.OBSERVER_FINISHED;\r\n\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void next(T value) {\r\n\t\t\t\t\t\tif (state != ObserverState.OBSERVER_RUNNING) {\r\n\t\t\t\t\t\t\tnew IllegalStateException(state.toString()).printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tobserver.next(value);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public interface FcmReceiverData {\n /**\n * @return return the new instance observable after applying doOnNext operator.\n */\n Observable<Message> onNotification(Observable<Message> oMessage);\n}",
"public static void test016()\r\n {\r\n System.out.println(\"RxJavaTest04::test016\");\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n RxGroceries rxGroceries = new RxGroceries();\r\n\r\n Maybe<BigDecimal> totalPrice = Observable\r\n .fromIterable(Arrays.asList(\"bread\", \"butter\", \"milk\", \"tomato\", \"cheese\"))\r\n .subscribeOn(schedulerA)\r\n .flatMap(prod -> rxGroceries\r\n .purchase(prod, 1)\r\n .subscribeOn(schedulerA)\r\n )\r\n .reduce(BigDecimal::add);\r\n totalPrice\r\n .subscribe(\r\n x -> log(\"Got \" + x),\r\n Throwable::printStackTrace,\r\n () -> log(\"Completed\")\r\n );\r\n myWait(2000); // We have to wait before shutting down the pool,\r\n // otherwise it will throw exception \r\n // [java] io.reactivex.exceptions.UndeliverableException:\r\n // java.util.concurrent.RejectedExecutionException:\r\n // Task java.util.concurrent.FutureTask@38d8f9d0 rejected\r\n // from java.util.concurrent.ThreadPoolExecutor@6a724a6c\r\n // [Shutting down, pool size = 1, active threads = 1, queued\r\n // tasks = 0, completed tasks = 0]\r\n poolA.shutdown();\r\n }",
"boolean shouldAutoSubscribe();",
"public static void test013()\r\n {\r\n System.out.println(\"RxJavaTest04::test013\");\r\n log(\"Starting\");\r\n final Observable<String> obs = mySimple();\r\n log(\"Created\");\r\n\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n\r\n obs\r\n .doOnNext(RxJavaTest04::log)\r\n .map(x -> x + '1')\r\n .doOnNext(RxJavaTest04::log)\r\n .map(x -> x + '2')\r\n .subscribeOn(schedulerA)\r\n .doOnNext(RxJavaTest04::log)\r\n .subscribe(\r\n x -> log(\"Got \" + x),\r\n Throwable::printStackTrace,\r\n () -> log(\"Completed\")\r\n );\r\n poolA.shutdown();\r\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> registerOn(\r\n\t\t\t@Nonnull final Observable<T> observable,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\tSingleCloseable cancelRegister = new SingleCloseable();\r\n\t\t\t\t\r\n\t\t\t\tfinal SequentialCloseable cancelUnregister = new SequentialCloseable();\r\n\t\t\t\t\r\n\t\t\t\tcancelUnregister.set(cancelRegister);\r\n\t\t\t\t\r\n\t\t\t\tcancelRegister.set(pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tfinal Closeable c = observable.register(observer);\r\n\t\t\t\t\t\tcancelUnregister.set(new ScheduledCloseable(pool, c));\r\n\t\t\t\t\t}\r\n\t\t\t\t}));\r\n\t\t\t\t\r\n\t\t\t\treturn cancelUnregister;\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"void publish();",
"@Override\n public abstract void connect();",
"public final Disposable mo129849c() {\n EmptyCompletableObserver nVar = new EmptyCompletableObserver();\n subscribe(nVar);\n return nVar;\n }",
"protected IPhynixxConnectionProxy getObservableProxy() {\n\t\t\treturn null;\r\n\t\t}",
"<T> void defer(Observable<T> observable) {\n log.info(\"[Observable.defer()]\");\n Observable.defer(() -> observable)\n .subscribe(t -> log.info(\"{}\", t));\n }",
"public static void test006()\r\n {\r\n System.out.println(\"RxJavaTest04::test006\");\r\n Observable<String> flight = myRxLookupFlight(\"Amsterdam\").subscribeOn(Schedulers.io());\r\n Observable<String> passenger = myRxFindPassenger(1001).subscribeOn(Schedulers.io());\r\n Observable<String> ticket =\r\n flight.zipWith(passenger, (f, p) -> myBookTicket(f, p));\r\n System.out.println(\"Observables created, subscribing\");\r\n ticket.subscribe(RxJavaTest04::mySendEmail);\r\n myWait(10000);\r\n }",
"public void onSubscribe() {\n\n }",
"public interface ObservableOnSubcribe<T> {\n\n void subscribe(@NonNull ObservableEmitter<T> emitter) throws Exception;\n\n}",
"public void connect();",
"public void connect();",
"public void connect();",
"@Nonnull\r\n\tpublic static Observable<Void> start(\r\n\t\t\t@Nonnull final Action0 action,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<Void>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super Void> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\taction.invoke();\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} catch (Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"@Override\n public void onConnect() {\n connected.complete(null);\n }",
"public static void test019()\r\n {\r\n System.out.println(\"RxJavaTest04::test019\");\r\n\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n ExecutorService poolB = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-B-%d\"));\r\n Scheduler schedulerB = Schedulers.from(poolB);\r\n ExecutorService poolC = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-C-%d\"));\r\n Scheduler schedulerC = Schedulers.from(poolC);\r\n\r\n log(\"Starting\");\r\n Observable<String> obs = Observable.create(subscriber -> {\r\n log(\"Subscribed\");\r\n subscriber.onNext(\"A\");\r\n subscriber.onNext(\"B\");\r\n subscriber.onNext(\"C\");\r\n subscriber.onNext(\"D\");\r\n subscriber.onComplete();\r\n });\r\n log(\"Created\");\r\n obs\r\n .subscribeOn(schedulerA)\r\n .flatMap(record -> myStore(record).subscribeOn(schedulerB))\r\n .observeOn(schedulerC)\r\n .subscribe(\r\n x -> log(\"Got: \" + x),\r\n Throwable::printStackTrace,\r\n () -> log(\"Completed\")\r\n );\r\n log(\"Exiting\");\r\n \r\n myWait(5000);\r\n poolA.shutdown();\r\n poolB.shutdown();\r\n poolC.shutdown();\r\n }",
"public static void test015()\r\n {\r\n System.out.println(\"RxJavaTest04::test015\");\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n RxGroceries rxGroceries = new RxGroceries();\r\n\r\n Maybe<BigDecimal> totalPrice = Observable\r\n .fromIterable(Arrays.asList(\"bread\", \"butter\", \"milk\", \"tomato\", \"cheese\"))\r\n .subscribeOn(schedulerA)\r\n .flatMap(prod -> rxGroceries.purchase(prod, 1))\r\n .reduce(BigDecimal::add);\r\n totalPrice\r\n .subscribe(System.out::println);\r\n poolA.shutdown();\r\n }",
"public static void test001()\r\n {\r\n System.out.println(\"RxJavaTest04::test001\");\r\n Observable<String> peopleStream = myListPeople();\r\n Single<List<String>> peopleList = peopleStream.toList();\r\n List<String> people = peopleList.blockingGet();\r\n for (String person : people) {\r\n System.out.println(person);\r\n }\r\n }",
"@Override\n\tpublic void connect() {\n\t\t\n\t}",
"@Override\n\tpublic void connect() {\n\t\t\n\t}",
"@FunctionalInterface\npublic interface IObservable<T> {\n\n IDisposable subscribe(IObserver<T> observer);\n}",
"public static void test018()\r\n {\r\n System.out.println(\"RxJavaTest04::test018\");\r\n log(\"Starting\");\r\n final Observable<String> obs = mySimple();\r\n log(\"Created\");\r\n\r\n ExecutorService poolA = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-A-%d\"));\r\n Scheduler schedulerA = Schedulers.from(poolA);\r\n ExecutorService poolB = Executors.newFixedThreadPool(10, newThreadFactory(\"Sched-B-%d\"));\r\n Scheduler schedulerB = Schedulers.from(poolB);\r\n\r\n obs\r\n .doOnNext(RxJavaTest04::log)\r\n .map(x -> x + '1')\r\n .observeOn(schedulerB)\r\n .doOnNext(RxJavaTest04::log)\r\n .map(x -> x + '2')\r\n .doOnNext(RxJavaTest04::log)\r\n .subscribeOn(schedulerA)\r\n .subscribe(\r\n x -> log(\"Got \" + x),\r\n Throwable::printStackTrace,\r\n () -> log(\"Completed\")\r\n );\r\n myWait(2000);\r\n poolA.shutdown();\r\n poolB.shutdown();\r\n }",
"Observable<Config> observable();",
"public void makeConnection() {\n\t\t// make a socket, output stream, and try connecting to the server\n\t\twhile (!connection) {\n\t\t\ttry {\n\t\t\t\tsocket = new Socket(address, port);\n\t\t\t\toutStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\t\tconnection = true;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}",
"@Override\n\t\t\t\t\tpublic void onSubscribe(Disposable d) {\n\n\t\t\t\t\t}",
"public void connect() {\n try {\n socket = new Socket(serverAddress, serverPort);\n outputStream = new ObjectOutputStream(socket.getOutputStream());\n inputStream = new ObjectInputStream(socket.getInputStream());\n //A thread which will constantly listen for updates from the server and forward them to Client\n new Thread(() -> {\n while (socket.isConnected()) {\n try {\n Renderable message = (Renderable) inputStream.readObject();\n if(message != null) {\n //logger.info(\"Received \" + message.getClass().getSimpleName() + \" from server.\");\n renderablePublisher.submit(message);\n }\n } catch (IOException | ClassNotFoundException e) {\n renderablePublisher.submit(new ServerOfflineUpdate());\n break;\n }\n }\n }).start();\n } catch (IOException e) {\n renderablePublisher.submit(new ServerOfflineUpdate());\n }\n }",
"@Override\n public boolean isConnectable() {\n return true;\n }",
"public static void error() {\n Observable<String> myObservable = Observable.error(\n () -> new Exception(\"Exception from error observable\"));\n myObservable.subscribe(genericObserver1);\n }",
"@Test\r\n\tpublic void exerciseInterruptible() {\n\t\t\r\n\t\tList<String> articlesTopicA = Arrays.asList(\"Article A-1\",\"Article A-2\",\"Article A-3\");\r\n\t\tList<String> articlesTopicB = Arrays.asList(\"Article B-1\",\"Article B-2\",\"Article B-3\");\r\n\t\tList<String> articlesTopicC = Arrays.asList(\"Article C-1\",\"Article C-2\",\"Article C-3\");\r\n\t\t\r\n\t\tList<Observable<String>> topicObservables = Arrays.asList(\r\n\t\t\t\tObservable.interval(0, 80L, TimeUnit.MILLISECONDS, testScheduler)\r\n\t\t\t\t.take(3)\r\n\t\t\t\t.map(i -> articlesTopicA.get(i.intValue())),\r\n\t\t\t\tObservable.interval(50, 60L, TimeUnit.MILLISECONDS, testScheduler)\r\n\t\t\t\t.take(3)\r\n\t\t\t\t.map(i -> articlesTopicB.get(i.intValue())),\r\n\t\t\t\tObservable.interval(0, 40L, TimeUnit.MILLISECONDS, testScheduler)\r\n\t\t\t\t.take(3)\r\n\t\t\t\t.map(i -> articlesTopicC.get(i.intValue())));\r\n\t\t\r\n\t\tObservable<Observable<String>> topics = Observable.interval(0, 100L, TimeUnit.MILLISECONDS, testScheduler)\r\n\t\t\t\t.take(3)\r\n\t\t\t\t.map(i -> topicObservables.get(i.intValue()));\r\n\t\t\r\n\t\t//\t\t t[ms]: 0 100 200 300\r\n\t\t//\t\ttopics: A---------B---------C---------| \r\n\t\t//\t\t A: 1-------2-|-----3---|---------|\r\n\t\t//\t\t B: |---------|----1----|2-----3--|\r\n\t\t//\t\t C: |---------|---------1---2---3-|\r\n\t\t//\t\tResult: A-1 A-2 B-1 C-1 C-2 C-3\r\n\t\t\t\t\r\n\t\t// TODO: always switch to the latest topic\r\n\t\t// HINT: http://reactivex.io/documentation/operators/switch.html\r\n\t\tObservable<String> latestInteresting = Observable.empty();\r\n\r\n\t\t// verify\r\n\t\tTestSubscriber<String> testSubscriber = new TestSubscriber<>();\r\n\t\tlatestInteresting\r\n\t\t\t.doOnNext(article -> log(String.format(\" doOnNext(): %s Time: %d\", article, testScheduler.now())))\r\n\t\t\t.subscribe(testSubscriber);\r\n\t\t\r\n\t\t// let the time elapse until completion\r\n\t\ttestScheduler.advanceTimeBy(300, TimeUnit.MILLISECONDS);\r\n\t\t\r\n\t\ttestSubscriber.assertCompleted();\r\n\t\ttestSubscriber.assertNoErrors();\r\n\t\tList<String> expectedArticles = Arrays.asList(\r\n\t\t\t\t\"Article A-1\",\"Article A-2\", \r\n\t\t\t\t\"Article B-1\", \r\n\t\t\t\t\"Article C-1\", \"Article C-2\", \"Article C-3\");\r\n\t\ttestSubscriber.assertReceivedOnNext(expectedArticles);\r\n\t\t\r\n\t}",
"@Override\n public boolean subscribe(Task data) {\n return true;\n }",
"private NotificationPublisher() {\n subscribers = new ArrayList<>();\n }",
"@Nonnull \r\n\tpublic static <T, U> Observable<U> publish(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\t@Nonnull final Func1<? super Observable<? extends T>, ? extends Observable<? extends U>> selector\r\n\t\t\t) {\r\n\t\treturn multicast(source, new Func0<Subject<T, T>>() {\r\n\t\t\t@Override\r\n\t\t\tpublic Subject<T, T> invoke() {\r\n\t\t\t\treturn Subjects.newSubject();\r\n\t\t\t}\r\n\t\t}, selector);\r\n\t}"
]
| [
"0.6343003",
"0.62546414",
"0.5912867",
"0.59060776",
"0.5864067",
"0.5820636",
"0.5797016",
"0.5791754",
"0.576657",
"0.5573815",
"0.5550954",
"0.55042976",
"0.5503426",
"0.55001235",
"0.54846954",
"0.5384537",
"0.52278227",
"0.5212021",
"0.5188712",
"0.51650155",
"0.51641625",
"0.51323706",
"0.5130073",
"0.5126952",
"0.51149654",
"0.5097183",
"0.50943476",
"0.50802064",
"0.5073011",
"0.50282305",
"0.50255376",
"0.4985735",
"0.49721432",
"0.49314675",
"0.49178678",
"0.49101648",
"0.49101543",
"0.48795286",
"0.4860001",
"0.4855906",
"0.4838787",
"0.4834767",
"0.4830585",
"0.47746876",
"0.47709078",
"0.47487855",
"0.4735145",
"0.472199",
"0.46944475",
"0.46907288",
"0.46829683",
"0.46811473",
"0.46796927",
"0.46780422",
"0.46735397",
"0.46619546",
"0.46425617",
"0.46315375",
"0.46292984",
"0.46269283",
"0.46174192",
"0.4609485",
"0.4604061",
"0.45954233",
"0.45870823",
"0.4584929",
"0.45599484",
"0.45576683",
"0.4552283",
"0.45504367",
"0.45488408",
"0.45475113",
"0.45374924",
"0.45329306",
"0.45329306",
"0.45329306",
"0.4520655",
"0.45119628",
"0.4506211",
"0.4498756",
"0.44972146",
"0.44946912",
"0.44946912",
"0.44933057",
"0.4491122",
"0.44910777",
"0.44860303",
"0.44849163",
"0.44849163",
"0.44849163",
"0.44849163",
"0.44849163",
"0.44849163",
"0.44823948",
"0.44724593",
"0.4460595",
"0.44544548",
"0.4453677",
"0.4450254",
"0.44451618"
]
| 0.86177754 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.