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 |
|---|---|---|---|---|---|---|
The doGet method of the servlet. This method is called when a form has its tag value method equals to get. | public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html");
String para,val;
List<String> ls=new ArrayList<String>();
List<FileItem> list;
String book_name = "",author_name="",ISBN="",genre="",pid="",price="",page_number="",number="",warehouse="",percentage="";
String cover="";
String root = this.getServletContext().getRealPath("/photo");
String filename = "";
FileItem fi = null;
try {
list = FileUpload.getList(request, response, 20*1024);
for(int i=0;i<list.size();i++)
{
para=list.get(i).getFieldName();
val=list.get(i).getString("UTF-8");
//ordinary field
if(list.get(i).isFormField()){
// System.out.println(para+":"+val);
if(para.compareTo("book_name")==0){
book_name=val;
}else if (para.compareTo("author_name")==0) {
author_name=val;
}else if (para.compareTo("ISBN")==0) {
ISBN=val;
}else if (para.compareTo("genre")==0) {
genre=val;
}else if (para.compareTo("pid")==0) {
pid=val;
}else if (para.compareTo("price")==0) {
price=val;
}else if (para.compareTo("page_number")==0) {
page_number=val;
}else if (para.compareTo("number")==0) {
number=val;
}else if (para.compareTo("warehouse")==0) {
warehouse=val;
}else if (para.compareTo("percentage")==0) {
percentage=val;
}
}
//file field
else{
fi = list.get(i);
filename = fi.getName();
String imgPath=System.currentTimeMillis()+"";
if(filename.compareTo("")!=0){
int index = filename.lastIndexOf(".");
if(filename.substring(index+1).compareTo("jpg")!=0&&
filename.substring(index+1).compareTo("png")!=0&&
filename.substring(index+1).compareTo("jpeg")!=0&&
filename.substring(index+1).compareTo("gif")!=0) {
request.setAttribute("msg", "please select a photo");
request.getRequestDispatcher("admin/addbook.jsp").forward(request, response);
return;
}
if(index != -1) {
filename = imgPath +"."+filename.substring(index+1);
}
}else{
request.setAttribute("msg", "please select a photo");
request.getRequestDispatcher("admin/addbook.jsp").forward(request, response);
return;
}
if (para.compareTo("cover")==0) {
cover="photo/"+filename;
}
}
}
int result=new BookDao().insert(new Book(0, book_name, author_name, ISBN, genre, pid, cover, page_number, price, number, warehouse, percentage));
if(result!=0){
if(result==1){
File destFile=new File(root,filename);
fi.write(destFile);
}
response.sendRedirect("admin/book.jsp");
}else{
request.setAttribute("msg", "Add book failed. Please retry later!");
request.getRequestDispatcher("addbook.jsp").forward(request, response);
}
} catch (Exception e) {
System.out.println(e.getMessage());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}",
"void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;",
"@Override\r\n protected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n throws ServletException, IOException {\n this.doPost(req, resp);\r\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n throws ServletException, IOException {\r\n\r\n doPost(req, resp); // call doPost processing\r\n\r\n }",
"@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n protected void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException {\n doPost( request, response );\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doPost(request, response);\r\n }",
"@Override\n\tpublic void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tthis.doPost(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tdoPost(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}",
"@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n doPost(request, response);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\tthrows ServletException, IOException {\nthis.doPost(request, response);\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n \tdoPost(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req,resp);;\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n \n doPost(request, response);\n }",
"public void doGet(\r\n HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doPost(request, response);\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}",
"protected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response); // calling doPost method\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException\r\n\t{\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\t\tprotected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t this.doGet(request, response);\r\n\t }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t doPost(request, response);\n\t}",
"@Override\r\n\tprotected void doPost( final HttpServletRequest request, final HttpServletResponse response ) throws ServletException, IOException {\r\n\t\tdoGet( request, response );\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t doPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doPost(request, response);\n }",
"public synchronized void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {\r\n\t\tdoPost(request, response);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doGet(request, response);\r\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n\r\n\t\tdoPost(request, response);\r\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"protected void doGet(HttpServletRequest request, \r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\r\n\t\t// Send all get requests to doPost\r\n\t\tdoPost(request, response);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req,resp);\n\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException,\n IOException\n {\n doPost(request,response);\n }",
"@Override\n protected void doGet( HttpServletRequest req, HttpServletResponse resp )\n throws ServletException, IOException {\n log( \"GET\" );\n createInputBloodDonationForm( req, resp );\n }",
"protected void doGet(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\r\n\t\tdoPost(request,response);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\ndoPost(request, response);\n\t\t\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\r\n\t{\r\n\t\tdoPost(request, response);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(request, response);\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n\n doGet(request, response);\n\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\r\n\t\tdoGet(request, response);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n this.doPost(request, response);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}",
"public void doGet(HttpServletRequest request, \n HttpServletResponse response)\n throws ServletException, IOException \n {\n response.setContentType(\"text/html\");\n\n // Writing message to the web page\n PrintWriter out = response.getWriter();\n String title = \"Using GET Method to Read Form Data\";\n String docType =\n \"<!doctype html public \\\"-//w3c//dtd html 4.0 \" + \"transitional//en\\\">\\n\";\n \n out.println(docType +\n \t \"<html>\\n\" +\n \t \"<head><title>\" + title + \"</title></head>\\n\" +\n \t \"<body bgcolor = \\\"#f0f0f0\\\">\\n\" +\n \t \"<h1 align = \\\"center\\\">\" + title + \"</h1>\\n\" +\n \t \"<ul>\\n\" +\n \t \" <li><b>Email</b>: \"\n \t + request.getParameter(\"uname\") + \"\\n\" +\n \t \" <li><b>Password</b>: \"\n \t + request.getParameter(\"psw\") + \"\\n\" +\n \t \"\t<li><b>Remember?</b>: \"\n \t + request.getParameter(\"remember\") +\n \t \"</ul>\\n\" +\n \t \"</body>\" +\n \t \"</html>\"\n \t );\n \n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request,response);\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n\t{\n\t\tthis.doPost(request, response);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"public void doGet(HttpServletRequest request,\n HttpServletResponse response) throws ServletException,\n IOException {\n doPost(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n doGet(request, response);\n }"
] | [
"0.7431789",
"0.7351055",
"0.7253812",
"0.7251127",
"0.7242823",
"0.7240639",
"0.7206084",
"0.7206084",
"0.72046196",
"0.7200079",
"0.71998185",
"0.71821666",
"0.71724033",
"0.71697336",
"0.7158166",
"0.71544284",
"0.7151455",
"0.71504116",
"0.713911",
"0.71378016",
"0.71378016",
"0.71336967",
"0.71336967",
"0.71336967",
"0.7133017",
"0.7123439",
"0.7114862",
"0.71076477",
"0.7099081",
"0.70968455",
"0.70897156",
"0.70897156",
"0.70897156",
"0.70897156",
"0.70897156",
"0.70859045",
"0.70859045",
"0.70859045",
"0.70859045",
"0.7085649",
"0.7074734",
"0.7073033",
"0.7068351",
"0.7067699",
"0.70533615",
"0.7048533",
"0.7048533",
"0.704853",
"0.70466787",
"0.70356566",
"0.7031562",
"0.7008123",
"0.7008123",
"0.7003891",
"0.7003311",
"0.6999599",
"0.6995345",
"0.6995345",
"0.69921184",
"0.6992053",
"0.6989383",
"0.6984955",
"0.6983889",
"0.6979286",
"0.69789517",
"0.6977853",
"0.6974484",
"0.697394",
"0.6969555",
"0.6968948",
"0.69686604",
"0.6967525",
"0.6964977",
"0.6964608",
"0.69641024",
"0.6950879",
"0.69353914",
"0.69353914",
"0.69353914",
"0.69278157",
"0.69240534",
"0.6902844",
"0.6902844",
"0.6902844",
"0.6902844",
"0.6902844",
"0.6902844",
"0.6902844",
"0.6902844",
"0.6902844",
"0.6902844",
"0.6902844",
"0.6902844",
"0.6897509",
"0.68968326",
"0.68952405",
"0.68952405",
"0.68901044",
"0.6889408",
"0.6884372",
"0.68811107"
] | 0.0 | -1 |
The doPost method of the servlet. This method is called when a form has its tag value method equals to post. | public void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
doGet(request, response);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"public void doPost( )\n {\n \n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }",
"protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }",
"public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"@Override\r\n\t/**\r\n\t * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse\r\n\t * response)\r\n\t */\r\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoGet(request, response);\r\n\t}",
"public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\t\n\t\t\tdoGet(request, response);\n\t\t\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\n\tsuper.doPost(req, resp);\n\t\n\tSystem.out.println(\"dddd\");\n}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\ndoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n this.doGet(request, response);\n\t\t\n\t\t\t\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoGet(request, response);\r\n\t\t\r\n\t}",
"@Override\n public void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n \tdoGet(request, response);\n }",
"protected void doPost(HttpServletRequest request, \r\n \t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tdoGet(request, response);\r\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n processRequest(request, response);\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n doPost(request, response);\r\n }",
"public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString string= request.getParameter(\"action\");\n\t\tif(string.equals(\"fileUpload\")) {\n\t\t\tfileUpload(request, response);\n\t\t}\n\t\telse if(string.equals(\"updateImformation\")) {\n\t\t\tupdateImformation(request, response);\n\t\t}\n\t\telse {\n\t\t\trequest.getRequestDispatcher(\"index.jsp\").forward(request, response);\n\t\t}\n\t}",
"protected void doPost (HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException\n {\n doGet(request,response);\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}",
"protected void doPost(final HttpServletRequest request,final HttpServletResponse response)\r\n throws ServletException, IOException {\r\n this.doGet(request, response);\r\n \r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n processRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n processRequest(request, response);\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n protected void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException {\n doPost( request, response );\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n doGet(request,response);\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tdoGet(request, response);\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException\r\n {\r\n processRequest(request, response);\r\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}",
"public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\tthrows ServletException, IOException {\n\t\tMap<String, String> messages = new HashMap<String, String>();\n\t\treq.setAttribute(\"messages\", messages);\n\n\t\tList<MeetUps> meetups = new ArrayList<MeetUps>();\n \n\t\t// Retrieve and validate the user last name that is retrieved from the form POST submission. By default, it\n\t\t// is populated by the URL query string (in FindUsers.jsp).\n\t\tString district = req.getParameter(\"district\");\n\t\tif (district == null || district.trim().isEmpty()) {\n\t\t\tmessages.put(\"success\", \"Please enter a valid intensity value.\");\n\t\t} else {\n\t\t\t// Retrieve meetups, and store as a message.\n\t\t\ttry {\n\t\t\t\tmeetups = meetupsDao.getAllMeetUpsByDistrict(district);\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new IOException(e);\n\t\t\t}\n\t\t\tmessages.put(\"success\", \"Displaying results for meetups in the district: \" + district);\n\t\t}\n\t\treq.setAttribute(\"meetups\", meetups);\n \n\t\treq.getRequestDispatcher(\"/MeetUp.jsp\").forward(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req,resp);;\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response\n )\n throws ServletException\n , IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, java.io.IOException\n {\n internalProcessRequest(request, response);\n }",
"@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\r\n \tif(\"Submit Request\".equalsIgnoreCase(request.getParameter(\"action\"))){\t\t\t\r\n \t\tSite site = getLoggedOnSite(request);\r\n \t\tUser user = getLoggedOnUser(request);\r\n\r\n\t \tint itemId = Integer.parseInt(request.getParameter(\"itemId\"));\r\n\t \tint numRequested = Integer.parseInt(request.getParameter(\"numberUnits\"));\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tmakeFoodBankRequestDAO.makeFoodBankRequest(itemId, site.getId(), user.getEmail(), numRequested);\r\n\t\t\t\t\r\n\t\t\t\tresponse.getWriter().write((\"Success\"));\t\t\t\r\n\t\t\t\t\r\n\t\t\t} catch (SQLException e) {\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tresponse.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, e.toString());\r\n\t\t\t}\r\n\t\t}\r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n \r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoPost(request, response);\n\t}"
] | [
"0.7658706",
"0.7603883",
"0.7525566",
"0.74704945",
"0.74704945",
"0.74704945",
"0.74704945",
"0.74704945",
"0.74704945",
"0.74704945",
"0.74704945",
"0.74704945",
"0.74704945",
"0.74704945",
"0.7469401",
"0.74294287",
"0.741362",
"0.74038875",
"0.7387313",
"0.73722315",
"0.7371047",
"0.73708296",
"0.73708296",
"0.7348397",
"0.73457205",
"0.73404783",
"0.7325031",
"0.7320927",
"0.7315466",
"0.7310048",
"0.7306755",
"0.73029506",
"0.73029506",
"0.73029506",
"0.72713417",
"0.72713417",
"0.72713417",
"0.7269289",
"0.72263604",
"0.72263604",
"0.72263604",
"0.7225606",
"0.7225606",
"0.71469885",
"0.7129053",
"0.71172845",
"0.70895493",
"0.70703256",
"0.70593214",
"0.70503986",
"0.7041999",
"0.70387197",
"0.7036584",
"0.7032742",
"0.7015042",
"0.6999916",
"0.69886374",
"0.6984105",
"0.6977092",
"0.6936989",
"0.69346166",
"0.6926657",
"0.6926657",
"0.6926657",
"0.6926657",
"0.6926657",
"0.6926657",
"0.6926657",
"0.6920491",
"0.6920491",
"0.6920491",
"0.6920491",
"0.6920491",
"0.69168866",
"0.69134456",
"0.6910439",
"0.69098896",
"0.68992805",
"0.68992805",
"0.68942595",
"0.6890291",
"0.6885801",
"0.68750453",
"0.68750453",
"0.68750453",
"0.6874079",
"0.68676364",
"0.6864775",
"0.68617815",
"0.68584603",
"0.68529844",
"0.68511885",
"0.68478626",
"0.68463445",
"0.68405306",
"0.684011",
"0.6834165",
"0.6829812",
"0.6822358",
"0.68204165",
"0.68132555"
] | 0.0 | -1 |
int i = 0; | @Test
public void testThread() {
Thread thread1 = new Thread(() -> {
//i++;
for (int j = 0; j < 2000000; j++) {
(this.i)++;
}
});
Thread thread2 = new Thread(() -> {
//System.out.println("i = " + i);
for (int j = 0; j < 2000000; j++) {
System.out.println("i = " + this.i);
}
});
thread1.start();
thread2.start();
/*for (int j = 0; j < 20; j++) {
thread1.start();
thread2.start();
}*/
/* ValueTask valueTask = new ValueTask();
PrintTask printTask = new PrintTask();*/
/*for (int i = 0; i < 20; i++) {
Worker1 worker1 = new Worker1(valueTask);
Worker2 worker2 = new Worker2(printTask);
worker1.start();
worker2.start();
}*/
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int i() {\n \treturn i; \n }",
"void mo88773a(int i);",
"private final int initializeInt() {\n\t\treturn 0;\r\n\t}",
"void m15858a(int i);",
"void mo37668e(int i);",
"void mo66998a(int i);",
"public int geti(){\r\n return i;\r\n}",
"void mo1747a(int i);",
"void mo54406a(int i);",
"void mo26876a(int i);",
"void mo62991a(int i);",
"public static int nextInt() {\n\treturn 0;\r\n}",
"void mo17022c(int i);",
"void mo17007a(int i);",
"void mo3767a(int i);",
"void mo38565a(int i);",
"void mo54447l(int i);",
"public void mo3350a(int i) {\n }",
"public void mo5332a(int i) {\n }",
"void mo54437e(int i);",
"void mo17016a(int i);",
"public void foo() {\n\tint j;\n\tint jj = 0;\n\t// System.out.println(i); Will not compile; local variables must be initialized\n\tSystem.out.println(jj);\n }",
"public final void mo5394iy(int i) {\n }",
"void mo6247nm(int i);",
"void mo54452q(int i);",
"void mo27576a(int i);",
"void m(int i) {\r\n\t}",
"void mo1933b(int i);",
"public final void mo91727g(int i) {\n }",
"void mo32046rn(int i);",
"public final void mo91947k(int i) {\n }",
"private Index(int i) {\r\n _value = i;\r\n }",
"void mo13163e(int i);",
"void mo122221a(int i);",
"void mo1761g(int i);",
"public abstract long i();",
"void mo1494c(int i);",
"static void dosomething(Integer i) {\n i = 500;\n }",
"void mo1485a(int i);",
"public void mo44231a(int i) {\n }",
"void mo1753b(int i);",
"private final void i() {\n }",
"void mo54436d(int i);",
"int mo28885a(int i);",
"void mo3796b(int i);",
"C3579d mo19710g(int i) throws IOException;",
"void mo1754c(int i);",
"public long getI() {\n return i;\n }",
"void mo54446k(int i);",
"public void set(int i) {\n }",
"void mo85a(int i);",
"void mo1755d(int i);",
"void mo23327tY(int i);",
"public void test(int i) {\n\t\tSystem.out.println(\"int primitive\");\n\t}",
"public void whoAmI(int i) {\n crossOrZero = i;\n }",
"void mo25956a(int i);",
"public abstract int mo12581RU(int i);",
"public static int m148009a(int i) {\n return i;\n }",
"void mo17020b(int i);",
"public int mo4307b(int i) {\n return 1;\n }",
"int mo4095a(int i);",
"static int getInt(){\n return j;\n }",
"long getI();",
"void mo1491b(int i);",
"boolean mo307b(int i);",
"void mo1763h(int i);",
"C02(int i){\n\t\t\n\t}",
"public abstract int mo12582RV(int i);",
"public abstract void mo4376b(int i);",
"public synchronized float i() {\n return this.i;\n }",
"public void mo29749op(int i) {\n if (i == 0) {\n C6638d.this.daT.mo29698og(0);\n }\n }",
"void mo6888a(int i);",
"public int guess(int i) {\n return 1;\n }",
"public abstract void mo9809b(int i);",
"private static Counters[] m147577a(int i) {\n return new Counters[i];\n }",
"boolean mo28892c(int i);",
"private static void setCounter() {++counter;}",
"public void mo32111rr(int i) {\n }",
"Liczba(int i) {\n this.i= i;\n }",
"extern(int i) {\n var = i;\n }",
"int mo54441g(int i);",
"public abstract void mo9799a(int i);",
"public abstract AbstractC5666g mo39572a(int i);",
"int mo54450o(int i);",
"private int getMY() {\n\t\treturn 0;\r\n\t}",
"public void O000000o(final int i) {\n this.O00000o.O000000o(i, new oO000O0O.O000000o() {\n public void O000000o() {\n }\n\n public void O000000o(String str, String str2) {\n if (oO0O000o.this.O00000oo != null) {\n oO0O000o.this.O00000oo.onFailure(i, str, str2);\n }\n }\n });\n }",
"public int getNumber() {\n\t\treturn i;\r\n\t}",
"public MutableInt() {}",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"public abstract int mo12585RY(int i);",
"public abstract void mo9733a(int i);",
"void mo21050ml(int i);",
"public final int getPos() { return i; }",
"public int j() {\n \treturn j; \n }",
"int mo1756e(int i);",
"public final void mo91724f(int i) {\n }",
"public MyInteger(){\n //initialize to 0\n Integer myint = new Integer(0);\n }",
"boolean mo25262a(int i);",
"public Int() {\n super(Expression.X_IS_UNDEFINED);\n this.value = 0;\n }",
"public void add(int i) {\n\t\t\tthis.val =i;\n\t\t\t\n\t\t}",
"public myCounter() {\n\t\tcounter = 1;\n\t}"
] | [
"0.7340133",
"0.671264",
"0.6699176",
"0.65986115",
"0.6590442",
"0.65107054",
"0.6486693",
"0.6480871",
"0.64143187",
"0.63957494",
"0.63825953",
"0.6369617",
"0.63657945",
"0.63572437",
"0.6351441",
"0.6326865",
"0.6310568",
"0.6300307",
"0.62836283",
"0.6274899",
"0.6273952",
"0.6240914",
"0.6198045",
"0.6185759",
"0.61807185",
"0.6177473",
"0.61687565",
"0.61625296",
"0.61624706",
"0.615012",
"0.61394596",
"0.6127381",
"0.6120073",
"0.61174023",
"0.611698",
"0.6113599",
"0.6111327",
"0.61076057",
"0.60978734",
"0.60778683",
"0.6070456",
"0.606904",
"0.60624826",
"0.6056754",
"0.6042775",
"0.6036321",
"0.60262793",
"0.6023814",
"0.6022584",
"0.6010786",
"0.60082126",
"0.60013384",
"0.59999317",
"0.5994692",
"0.59910995",
"0.5974576",
"0.5968083",
"0.5967075",
"0.59638613",
"0.5958298",
"0.5935669",
"0.5932945",
"0.5925601",
"0.58637494",
"0.58586836",
"0.58552986",
"0.58427995",
"0.58115226",
"0.5811143",
"0.58044124",
"0.5799684",
"0.5790267",
"0.578035",
"0.5766934",
"0.5758431",
"0.5757572",
"0.5752126",
"0.5747283",
"0.57401365",
"0.5739998",
"0.572562",
"0.57221764",
"0.57185656",
"0.5708274",
"0.57078034",
"0.57048887",
"0.5704718",
"0.56987035",
"0.5694268",
"0.56913084",
"0.5675025",
"0.5671788",
"0.5671287",
"0.56633544",
"0.56604135",
"0.56556666",
"0.5655229",
"0.5654003",
"0.56486475",
"0.5637355",
"0.56243634"
] | 0.0 | -1 |
/ Gestion des orifices commerciaux | public void GestionOrificeCommercial(TapsVector tvector, OrificesVector ovector, double[] CstValue) {
// Step 1 : Add artificial Orifices
double dmin = 0.000001;
double dmax = 1;
ovector.addDiameters(dmin);
ovector.addDiameters(dmax);
// Sort orifice liste
Collections.sort(ovector, new Orifices(0));
for (int i = NbNodes - NbTaps - 1; i < (NbNodes - 1); i++) {
Taps tap = (Taps) tvector.get(i - NbNodes + NbTaps + 1);
// Step 2 : Bracket
double orif_sup = dmin;
double orif_inf = dmin;
int j = 0;
while ((j < ovector.size()) && (tap.orif_ideal > orif_sup)) {
orif_sup = ((Orifices) ovector.get(j)).diam;
if (j > 0) {
orif_inf = ((Orifices) ovector.get(j - 1)).diam;
}
j++;
}
// Step 3 : Assignation
if (tap.orif_ideal >= (Math.sqrt(2) * orif_inf)) {
tap.orif_com = orif_sup;
} else if ((orif_inf * orif_sup) <= (tap.orif_ideal * tap.orif_ideal)) {
tap.orif_com = orif_sup;
} else {
tap.orif_com = orif_inf;
}
// Step 4 : bounds
if (tap.orif_com == dmin) {
tap.orif_com = Orifices.MAXDIAM;
}
if (tap.orif_com == dmax) {
tap.orif_com = Orifices.MAXDIAM;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Ordenamiento() {\n\n\t}",
"public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"private void ordenarItems(Criterio criOrd) {\r\n // Ordenación > Desactivación Filtro\r\n desactivarFiltro(false);\r\n\r\n // Registra Criterio Ordenación\r\n this.criOrd = criOrd;\r\n\r\n // Ordenación Colección\r\n Collections.sort(CARRITO, new ComparadorItem(criOrd));\r\n\r\n // Mensaje\r\n System.out.printf(\"Items ordenados por %s%n\", criOrd.getNombre());\r\n\r\n // Pausa\r\n UtilesEntrada.hacerPausa();\r\n }",
"private void combo() {\n cargaCombo(combo_habitacion, \"SELECT hh.descripcion\\n\" +\n \"FROM huespedes h\\n\" +\n \"LEFT JOIN estadia_huespedes eh ON eh.huespedes_id = h.id\\n\" +\n \"LEFT JOIN estadia_habitaciones ehh ON eh.id_estadia = ehh.id_estadia\\n\" +\n \"LEFT JOIN estadia e ON e.id = ehh.id_estadia \\n\" +\n \"LEFT JOIN habitaciones hh ON hh.id = ehh.id_habitacion\\n\" +\n \"WHERE eh.huespedes_id = \"+idd+\" AND e.estado ='A'\\n\" +\n \"ORDER BY descripcion\\n\" +\n \"\",\"hh.descripcion\");\n cargaCombo(combo_empleado, \"SELECT CONCAT(p.nombre, ' ',p.apellido) FROM persona p\\n\" +\n \"RIGHT JOIN empleado e ON e.persona_id = p.id\", \"empleado\");\n cargaCombo(combo_producto, \"SELECT producto FROM productos order by producto\", \"producto\");\n }",
"private void mostrarDatosInterfaz() {\n\t\tif (this.opcion == CREAR) {\n\t\t\tthis.campoTextoNombreUsuario.setUserData(\"\");\n\t\t\tthis.campoTextoNombreUsuario.setDisable(false);\n\t\t\tthis.campoContrasena.setUserData(\"\");\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setUserData(\"\");\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.getSelectionModel().select(\"\");\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.getSelectionModel().select(\"\");\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == EDITAR) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == VER) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(true);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(true);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(true);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(true);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(true);\n\t\t}//FIN IF ELSE\n\t}",
"private void opciones() {\n switch (cboTipo.getSelectedIndex()) {\n case 1:\n txtPractica.setEditable(false);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 2:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 3:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(false);\n break;\n case 4:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(true);\n break;\n }\n\n }",
"public void construirSetOperadores() {\n\n\t\tlabeltituloSeleccionOperador = new JLabel();\n\n\t\tcomboOperadores = new JComboBox(operadores);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboOperadores.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\t\n\n\t\tlabeltituloSeleccionOperador.setText(\"Seleccione el operador que relaciona ambas reglas\");\n\t\tpanelCentral.add(labeltituloSeleccionOperador);\n\t\tlabeltituloSeleccionOperador.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboOperadores);\n\t\tcomboOperadores.setBounds(100, 30, 150, 24);\n\t\t\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboOperadores.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public void generarCuestionario() {\n setLayout(null);\n \n setTitle(\"Cuestionario de Fin de Curso\"); \n \n //Con el modelo construido debemos representar uestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n \n Opcion op1 = new Opcion();\n op1.setTitulo(\"Londres\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"Roma\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Paris\");\n op3.setCorrecta(true);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Oslo\");\n op4.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Cual es la capital de Francia\");\n p1.setOpciones(opciones);\n \n //Opiciones de la pregumta Numero 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Atlantico\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Indico\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Artico\");\n op23.setCorrecta(false);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Pacifico\");\n op24.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Cual es el oceano más grande del mundo?\");\n p2.setOpciones(opciones2);\n \n //Opiciones de la pregumta Numero 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"Cristobal Colon\");\n op31.setCorrecta(true);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Cristobal Nodal\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Cuahutemoc blanco\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Cuahutemoc\");\n op34.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien descubrio América?\");\n p3.setOpciones(opciones3);\n \n //Opiciones de la pregumta Numero 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"Fernanflo\");\n op41.setCorrecta(false);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Polinesios\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"Eh vegeta\");\n op43.setCorrecta(true);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Willyrex\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Quien es el mejor youtuber?\");\n p4.setOpciones(opciones4);\n \n //Opiciones de la pregumta Numero 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Amarillo patito\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Verde Sherec\");\n op52.setCorrecta(false);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Rojo me faltas tú\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Azul\");\n op54.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5 = {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿De que color es el cielo?\");\n p5.setOpciones(opciones5);\n \n //Opiciones de la pregumta Numero 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"200\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"100\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"45\");\n op63.setCorrecta(true);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"13\");\n op64.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿De cuantas localidades se compone una memoria de 8x5?\");\n p6.setOpciones(opciones6);\n \n //Opiciones de la pregumta Numero 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Try - Catch\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"IF\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Switch - Case\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"For anidado\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que estructura condicional se recomienda usar menos en una interfaz de usuario?\");\n p7.setOpciones(opciones7);\n \n //Opiciones de la pregumta Numero 8\n Opcion op81 = new Opcion();\n op81.setTitulo(\"Access\");\n op81.setCorrecta(false);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Oracle\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"MySQL\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Mongo DB\");\n op84.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Es una base de datos no relacional de uso moderno?\");\n p8.setOpciones(opciones8);\n \n //Opiciones de la pregumta Numero 9\n Opcion op91 = new Opcion();\n op91.setTitulo(\"GitHub\");\n op91.setCorrecta(true);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"MIcrosoft teams\");\n op22.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Zoom\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"Collaborate\");\n op94.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿Es una plataforma para trabajo en línea?\");\n p9.setOpciones(opciones9);\n\n //Opiciones de la pregumta Numero 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Prog. a nivel maquina\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Prog. orientada a objetos\");\n op102.setCorrecta(true);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"MySQL\");\n op103.setCorrecta(false);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"C++\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que aprendi en este curso?\");\n p10.setOpciones(opciones10);\n\n\n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n\n //Se agrega a este list la unica prgunta que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n c.setPreguntas(preguntas);\n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la preunta\n mostrarPregunta(preguntaActual);\n \n Salir.setVisible(false);\n siguiente.setEnabled(false);\n \n }",
"public void generarCuestionario() {\n \n try{\n ValidarOpcionSeleccionada.validar (radios);\n }catch (OpcionNoSeleccionadaException e) {\n etiquetaRespuesta.setText(\"Debes selecionar una opcion\");\n}\n \n\n //Con el modelo construido debemos representar nuestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n Opcion op1 = new Opcion();\n op1.setTitulo(\"Inglaterra\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"México\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Italia\");\n op3.setCorrecta(false);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Francia\");\n op4.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Que país tiene más Premios Nobel de Literatura?\");\n p1.setOpciones(opciones);\n\n \n //opciones de la pregunta 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Ares\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Prometeo\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Poseidón\");\n op23.setCorrecta(true);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Hefesto\");\n op24.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Quién es el padre del cíclope Polifemo según la mitología griega?\");\n p2.setOpciones(opciones2);\n \n //opciones de la pregunta 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"J.K Rowling\");\n op31.setCorrecta(false);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Emily Bronte\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Stephen King\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Jane Austen\");\n op34.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien escribio el libro Orgullo y Prejuicio?\");\n p3.setOpciones(opciones3);\n \n //Opciones pregunta 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"El Cáliz de Fuego\");\n op41.setCorrecta(true);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Festin de Cuervos\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"El prisionero de Azkaban\");\n op43.setCorrecta(false);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Principe Mecánico\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Como se llama el cuarto libro de Harry Potter?\");\n p4.setOpciones(opciones4);\n \n //Opciones pregunta 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Dunkirk\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Los Miserables\");\n op52.setCorrecta(true);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Interestelar\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Batman: El caballero de la noche\");\n op54.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5= {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿Que película NO dirigio Chistopher Nolan?\");\n p5.setOpciones(opciones5);\n \n //Opciones pregunta 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"Joe Greene\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"Tom Brady\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"Joe Montana\");\n op63.setCorrecta(false);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"Peyton Manning\");\n op64.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿Que jugador ha ganado más MVP en la NFL?\");\n p6.setOpciones(opciones6);\n \n //Opciones pregunta 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Bayern Munich\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"Real Madrid\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Barcelona\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"Manchester United\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que equipo ha ganado más Champions League en la hsitoria?\");\n p7.setOpciones(opciones7);\n \n \n //Opciones pregunta 8\n \n Opcion op81 = new Opcion();\n op81.setTitulo(\"Tratado de Versalles\");\n op81.setCorrecta(true);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Tratado de Granada\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"Tratado de Lyon\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Tratado de Londres\");\n op84.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Como se llamo el tratado con el que se le dio fin a la PGM?\");\n p8.setOpciones(opciones8);\n \n //opciones pregunta 9 \n \n Opcion op91 = new Opcion();\n op91.setTitulo(\"Hermanos Lumiere\");\n op91.setCorrecta(false);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"Steven Spielberg\");\n op92.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Thomas Harper\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"George Mellies\");\n op94.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿A quien se le considera como el mago del cine?\");\n p9.setOpciones(opciones9);\n \n //Opciones pregunta 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Miguel Ángel\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Rafael Sanzio\");\n op102.setCorrecta(false);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"Leonardo Da Vinci\");\n op103.setCorrecta(true);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"Bernini\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que artífice NO participo en la construcción de la Basílica de San Pedro?\");\n p10.setOpciones(opciones10);\n \n \n \n //Pregunta p11 =new Pregunta();\n System.out.println(\"Fin de Cuestionario \");\n \n \n \n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n \n \n \n //Se agrega a este list las preguntas que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n // preguntas.add(p11);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n \n c.setPreguntas(preguntas);\n //Ajustamos el titulo de la primera pregunta\n mostrarPregunta (preguntaActual); \n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la pregunta\ntry{\n int opcion= Integer.parseInt (etiquetaRespuesta.getText());\n ValidarNumeroPreguntas.validar (opcion);\n }catch (NumberFormatException e) {\n \n}\n \n }",
"VentanaPrincipal(InterfazGestorFF principal, InterfazEsquema estructura) {\n initComponents();\n setTitle(BufferDeRegistro.titulo);\n this.principal=principal;\n this.estructura=estructura;\n cargar_campos(); \n cargar_menu_listados();\n \n botones=new javax.swing.JButton[]{\n jBAbrirSGFF,jBActualizarRegistro,jBAyuda,jBBorrarRegistro,\n jBComenzarConsulta,jBGuardarSGFF,jBGuardarSGFF,jBImportarSGFF,\n jBInsertarRegistro,jBIrAlHV,jBIrAlHijo,\n jBIrAlPV,jBIrAlPadre,jBNuevaFicha,jBRegistroAnterior,jBRegistroSiguiente,jBSSGFF,jBCaracteres, jBAccInv, jBListar\n };\n combos=new javax.swing.JComboBox[]{\n jCBArchivos, jCBHijos, jCBPadresV, jCBHijosV\n };\n abrir(false);//Pongo en orden la barra de herramientas\n \n }",
"void Comunicasiones() { \t\r\n /* Comunicacion */\r\n Button dComunicacion01 = new Button();\r\n dComunicacion01.setWidth(\"73px\");\r\n dComunicacion01.setHeight(\"47px\");\r\n dComunicacion01.setIcon(ByosImagenes.icon[133]);\r\n dComunicacion01.setStyleName(EstiloCSS + \"BotonComunicacion\");\r\n layout.addComponent(dComunicacion01, \"left: 661px; top: 403px;\"); \r\n\r\n /* Comunicacion */\r\n Button iComunicacion01 = new Button();\r\n iComunicacion01.setWidth(\"73px\");\r\n iComunicacion01.setHeight(\"47px\");\r\n iComunicacion01.setIcon(ByosImagenes.icon[132]);\r\n iComunicacion01.setStyleName(EstiloCSS + \"BotonComunicacion\");\r\n layout.addComponent(iComunicacion01, \"left: 287px; top: 403px;\"); \r\n \r\n }",
"private void renderObjetos()\n {\n for (int i=0;i<NCONSUMIBLES;i++)\n {\n //EDIT:Ruta de Inventario\n Consumible consumible=(Consumible)VenganzaBelial.atributoGestion.getInv().getItems().get(i);\n if(eleccionJugador==i)\n {\n opcionesJugadorTTF.drawString(10,i*20+400,consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\");\n }\n else{\n opcionesJugadorTTF.drawString(10, i * 20 + 400, consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\", notChosen);\n }\n }\n }",
"private void agregarComponentes() {\n JButton botonEstudiante = new JButton(\"Estudiante\");\r\n JButton botonDocente = new JButton(\"Docente\");\r\n JButton botonEquipo = new JButton(\"Equipo\");\r\n\r\n botonEstudiante.addActionListener(new OyenteListaEstudiante(this));\r\n botonDocente.addActionListener(new OyenteListaDocente(this));\r\n botonEquipo.addActionListener(new OyenteListaEquipo(this));\r\n\r\n // crea objeto Box para manejar la colocación de areaConsulta y\r\n // botonEnviar en la GUI\r\n Box boxNorte = Box.createHorizontalBox();\r\n boxNorte.add(botonDocente);\r\n boxNorte.add(botonEstudiante);\r\n boxNorte.add(botonEquipo);\r\n\r\n // crea delegado de JTable para modeloTabla\r\n tablaDatosIngresdos = new JTable();\r\n add(boxNorte, BorderLayout.NORTH);\r\n\r\n add(new JScrollPane(tablaDatosIngresdos), BorderLayout.CENTER);\r\n\r\n }",
"public Collection<OrdenCompra> traerTodasLasOrdenesDeCompra() {\n Collection<OrdenCompra> resultado = null;\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n resultado = controlOC.traerTodasLasOrdenesDeCompra();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return resultado;\n }",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"public void estableceEquipoComputo() {\n\tsetDispositivo(JOptionPane.showInputDialog(\"Ingrese el nombre del dispositivo a adquirir\"));\n\tsetComercio(JOptionPane.showInputDialog(\"Ingrese el nombre del comercio donde lo comprara\"));\n}",
"private void cbOrdonariActionPerformed(java.awt.event.ActionEvent evt) { \n if (cbOrdonari.getSelectedIndex() == 0) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_NUME);\n }\n if (cbOrdonari.getSelectedIndex() == 1) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_PRENUME);\n }\n if (cbOrdonari.getSelectedIndex() == 2) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_DATA_NASTERII);\n }\n if (cbOrdonari.getSelectedIndex() == 3) {\n agenda.ordoneaza(Agenda.CriteriuOrdonare.DUPA_NUMAR_TELEFON);\n }\n }",
"public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }",
"private void manejoDeModales(){\n botonTipo1.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n comprar_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto1);\n });\n botonTipo2.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto2);\n }); \n botonTipo3.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto3);\n }); \n botonCategoria1.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n comprar_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto1);\n }); \n botonCategoria2.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto2);\n }); \n botonCategoria3.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto3);\n }); \n }",
"@Override\r\n\tpublic final String getNombreRaza() {\r\n\t\treturn \"Orco\";\r\n\t}",
"public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }",
"@Override\n public void alRechazarOperacion() {\n }",
"public combinacion() {\n initComponents();\n eventos();\n }",
"private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }",
"public void buscarGestor(){\r\n\t\t\r\n\t}",
"public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }",
"public void BuscarGrupo() {\r\n try {\r\n // Inicializamos la tabla para refrescar todos los datos contenidos.\r\n InicializarTabla(_escuchador.session);\r\n Transaction tx = _escuchador.session.beginTransaction();\r\n List<Cursos> tabla=rsmodel.lista;\r\n List<Cursos> borrados = new <Cursos>ArrayList();\r\n if(menuCursos.campoCursosBuscarCategorias.getSelectedItem().toString().equals(\"Todos los campos\")){\r\n for(Cursos obj : tabla) {\r\n if(!obj.getCodigo().toString().contains(menuCursos.campoCursosBuscar.getText().toLowerCase()) && !obj.getNombre().toLowerCase().contains(menuCursos.campoCursosBuscar.getText().toLowerCase())){\r\n borrados.add(obj);\r\n }\r\n }\r\n }\r\n else if(menuCursos.campoCursosBuscarCategorias.getSelectedItem().toString().equals(\"Código del curso\")){\r\n for(Cursos obj : tabla) {\r\n if(!obj.getCodigo().toString().contains(menuCursos.campoCursosBuscar.getText().toLowerCase())){\r\n borrados.add(obj);\r\n }\r\n }\r\n }\r\n else if(menuCursos.campoCursosBuscarCategorias.getSelectedItem().toString().equals(\"Nombre del curso\")){\r\n for(Cursos obj : tabla) {\r\n if(!obj.getNombre().toLowerCase().contains(menuCursos.campoCursosBuscar.getText().toLowerCase())){\r\n borrados.add(obj);\r\n }\r\n }\r\n }\r\n tabla.removeAll(borrados);\r\n tx.commit();\r\n if(tabla.isEmpty()){tabla.add(new Cursos(null));}\r\n rs=tabla;\r\n ControladorTabla registrosBuscados = new ControladorTabla(tabla);\r\n menuCursos.getTablaCursos().setModel(registrosBuscados);\r\n } catch (Exception e) {\r\n JOptionPane.showMessageDialog(null, e, \"Excepción\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }",
"Commands getCommandes();",
"@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}",
"public void selecteazaComanda()\n {\n for(String[] comanda : date) {\n if (comanda[0].compareTo(\"insert client\") == 0)\n clientBll.insert(idClient++, comanda[1], comanda[2]);\n else if (comanda[0].compareTo(\"insert product\") == 0)\n {\n Product p = productBll.findProductByName(comanda[1]);\n if(p!=null)//daca produsul exista deja\n productBll.prelucreaza(p.getId(), comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n else\n productBll.prelucreaza(idProduct++, comanda[1], Float.parseFloat(comanda[2]), Float.parseFloat(comanda[3]));\n\n }\n else if (comanda[0].contains(\"delete client\"))\n clientBll.sterge(comanda[1]);\n else if (comanda[0].contains(\"delete product\"))\n productBll.sterge(comanda[1]);\n else if (comanda[0].compareTo(\"order\")==0)\n order(comanda);\n else if (comanda[0].contains(\"report\"))\n report(comanda[0]);\n }\n }",
"public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}",
"private void cargaComonentes() {\n\t\trepoInstituciones = new InstitucionesRepository(session);\n\t\trepoInstitucion_usuario = new Institucion_UsuariosRepository(session);\n\t\tList upgdsList = null;\n\t\tif(mainApp.getUsuarioApp().getPer_Usu_Id().equalsIgnoreCase(\"Alcaldia\")){\n\t\t\tupgdsList = repoInstituciones.listByMunicipio(mainApp.getUsuarioApp().getMun_Usu_Id());\n\t\t\tInstituciones instiL=new Instituciones();\n\t\t\tIterator iter = upgdsList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tinstiL=(Instituciones) iter.next();\n\t\t\t\tinstitucionesList.add(instiL);\n\t\t\t}\n\t\t}else{\n\t\t\tInstitucion_Usuarios institucion_usuario = new Institucion_Usuarios();\n\t\t\tupgdsList = repoInstitucion_usuario.getListIpsByUsuario(mainApp.getUsuarioApp().getUsu_Id());\n\t\t\tIterator iter = upgdsList.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tinstitucion_usuario = (Institucion_Usuarios) iter.next();\n\t\t\t\tinstitucionesList.add(repoInstituciones.findById(institucion_usuario.getIps_Ipsu_Id()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tinstitucionesBox.setItems(institucionesList);\n\t\tinstitucionesBox.setValue(mainApp.getInstitucionApp());\n\n\t\tinstitucionesBox.valueProperty().addListener(new ChangeListener<Instituciones>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Instituciones> observable, Instituciones oldValue,\n\t\t\t\t\tInstituciones newValue) {\n\t\t\t\tmainApp.setInstitucionApp(newValue);\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tvoid geraDados() {\n\n\t}",
"public ControladorCombate(int tipo_simulacion,\r\n Entrenador entrenador1, Entrenador entrenador2, ControladorPrincipal cp){\r\n this.esLider = false;\r\n this.controlador_principal = cp;\r\n this.tipo_simulacion = tipo_simulacion;\r\n this.combate = new Combate();\r\n this.equipo1 = entrenador1.getPokemones();\r\n this.equipo2 = entrenador2.getPokemones();\r\n this.entrenador1 = entrenador1;\r\n this.entrenador2 = entrenador2;\r\n this.vc = new VistaCombate();\r\n this.va = new VistaAtaque();\r\n this.ve = new VistaEquipo();\r\n this.creg = new ControladorRegistros();\r\n String[] nombres1 = new String[6];\r\n String[] nombres2 = new String[6];\r\n for (int i = 0; i < 6; i++) {\r\n nombres1[i]=equipo1[i].getPseudonimo();\r\n nombres2[i]=equipo2[i].getPseudonimo(); \r\n }\r\n this.vpc = new VistaPreviaCombate(tipo_simulacion, entrenador1.getNombre(), entrenador2.getNombre());\r\n this.vpc.agregarListener(this);\r\n this.vpc.setjC_Equipo1(nombres1);\r\n this.vpc.setjC_Equipo2(nombres2);\r\n this.vpc.setVisible(true);\r\n this.termino = false;\r\n resetearEntrenadores();\r\n }",
"public void aplicarDescuento();",
"public void abrirDialogoCustodio(){\n\t\tif(aut_empleado.getValor()!=null){\n\t\t\ttab_tarspaso_Custodio.limpiar();\n\t\t\ttab_tarspaso_Custodio.insertar();\n\t\t\t//tab_direccion.limpiar();\n\t\t//\ttab_direccion.insertar();\n\t\t\tdia_traspaso_custodio.dibujar();\n\t\t}\n\t\telse{\n\t\t\tutilitario.agregarMensaje(\"Inserte un Custodio\", \"\");\n\t\t}\n\n\t}",
"private static void Relatorio() throws Exception \r\n {//Inicio menuRelatorio\r\n byte opcao;\r\n boolean fecharMenu = false;\r\n int idCliente, idProduto, quant;\r\n Produto p = null;\r\n Cliente c = null;\r\n do{\r\n System.out.println(\r\n \"\\n\\t*** MENU RELATORIO ***\\n\" +\r\n \"0 - Mostrar os N produtos mais Vendidos\\n\" +\r\n \"1 - Mostrar os N melhores clientes\\n\" +\r\n \"2 - Mostrar os produtos comprados por um cliente\\n\" +\r\n \"3 - Mostrar Clientes que compraram um produto\\n\" +\r\n \"4 - Sair\"\r\n );\r\n System.out.print(\"Digite sua opcao: \");\r\n opcao = read.nextByte();\r\n switch(opcao){\r\n case 0:\r\n ArrayList<Produto> listP = arqProdutos.toList();\r\n if(listP.isEmpty()) System.out.println(\"\\nNão tem produtos em nosso sistema ainda!\");\r\n else{\r\n System.out.print(\"Digite a quantidade de produtos que deseja saber: \");\r\n quant = read.nextInt();\r\n System.out.println();\r\n //Ordena a lista de forma decrescente:\r\n listP.sort((p1,p2) -> - Integer.compare(p1.getQuantVendidos(), p2.getQuantVendidos()));\r\n for(Produto n: listP){\r\n System.out.println(\"Produto de ID: \" + n.getID() + \" Nome: \" + n.nomeProduto + \"\\tQuantidade vendida: \" + n.getQuantVendidos());\r\n quant--;\r\n if(quant == 0) break;\r\n }\r\n }\r\n break;\r\n case 1:\r\n ArrayList<Cliente> listC = arqClientes.toList();\r\n if(listC.isEmpty()) System.out.println(\"Não ha clientes para mostrar!\");\r\n else{\r\n System.out.print(\"Digite a quantidade de Clientes: \");\r\n quant = read.nextInt();\r\n System.out.println();\r\n //Ordena a lista de forma decrescente:\r\n listC.sort((c1,c2) -> - Float.compare(c1.getTotalGasto(), c2.getTotalGasto()));\r\n for(Cliente n: listC){\r\n System.out.println(\"Cliente de ID: \" + n.getID() + \" Nome: \" + n.nomeCliente + \"\\tGasto total: \" + tf.format(n.getTotalGasto()));\r\n quant--;\r\n if(quant == 0) break; \r\n }\r\n }\r\n break;\r\n case 2:\r\n System.out.print(\"Digite o id do cliente: \");\r\n idCliente = read.nextInt();\r\n c = arqClientes.pesquisar(idCliente - 1);\r\n if (c != null){\r\n int[] idsProdutos = indice_Cliente_Produto.lista(idCliente);\r\n System.out.println(\"\\nO cliente \" + c.nomeCliente + \" de ID \" + c.getID() + \" comprou: \");\r\n for(int i = 0; i < idsProdutos.length; i++){\r\n p = arqProdutos.pesquisar(idsProdutos[i] - 1);\r\n System.out.println(\r\n \"\\n\\tProduto \" + i + \" -> \" + \r\n \" ID: \" + p.getID() + \r\n \" Nome: \" + p.nomeProduto + \r\n \" Marca: \" + p.marca\r\n );\r\n }\r\n }\r\n else {\r\n System.out.println(\"\\nID Invalido!\");\r\n Thread.sleep(1000);\r\n }\r\n break;\r\n case 3:\r\n System.out.print(\"Digite o id do Produto a consultar: \");\r\n idProduto = read.nextInt();\r\n p = arqProdutos.pesquisar(idProduto - 1);\r\n if(p != null){\r\n int[] idsClientes = indice_Produto_Cliente.lista(idProduto);\r\n System.out.println(\"\\nO produto '\" + p.nomeProduto + \"' de ID \" + p.getID() + \" foi comprado por: \");\r\n for(int i = 0; i < idsClientes.length; i++){\r\n c = arqClientes.pesquisar(idsClientes[i] - 1);\r\n System.out.println();\r\n System.out.println(c);\r\n }\r\n }\r\n else{\r\n System.out.println(\"\\nProduto Inexistende!\");\r\n Thread.sleep(1000);\r\n }\r\n break;\r\n case 4:\r\n fecharMenu = true;\r\n break; \r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n }while(!fecharMenu); \r\n }",
"public void eventos()\n\t{\n\t\tvuelos.addActionListener(new ActionListener()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\t\t\tif(v!=null)\n\t\t\t\t{\n\t\t\t\t\tllenarPasabordos(v.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}",
"public void executer()\r\n\t{\r\n\t\tswitch(this.type)\r\n\t\t{\r\n\t\tcase \"Gain\":\r\n\t\t\tPartie.getJoueurCourant().changeSolde(this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Perte\":\r\n\t\t\tPartie.getJoueurCourant().changeSolde(-this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Avancer\":\r\n\t\t\tPartie.getJoueurCourant().deplace(this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Aller en prison\":\r\n\t\t\tPartie.getJoueurCourant().setPosition(this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Sortie de prison\":\r\n\t\t\tPartie.getJoueurCourant().setEnPrison(false);\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\t}",
"private void setearOpcionesMenuCobros()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuCobros = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_GASTOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DEPOSITO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CONCILIACION) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO))\r\n\t\t\t\t\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tlstFormsMenuCobros.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuCobros.size()> 0)\r\n\t\t{\r\n\r\n\t\t\tthis.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbCobros.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbCobros);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuCobros) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_GASTOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_GASTOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarGastos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.gastos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_DEPOSITO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_DEPOSITO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarDeposito();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.deposito);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CONCILIACION:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarConciliacion();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.conciliacion);\r\n\t\t\t\t\t\t}\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\t\t\t\r\n\t\t\tthis.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void operacao();",
"List<Oficios> buscarActivas();",
"private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }",
"@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}",
"public CadastroCarroView() {\n initComponents();\n ReadTable();\n MarcaVeiculoDao marca = new MarcaVeiculoDao();\n ModeloVeiculoDao modelo = new ModeloVeiculoDao();\n StatusDao status = new StatusDao();\n //Função abaixo Carrega o jCombox Marca.\n for(MarcaVeiculoBeans marcab : marca.ReadMarca()){\n \n jComboMarca.addItem(marcab);\n \n \n }\n //Função abaixo carrega o jCombox Modelos.\n for(ModeloVeiculoBeans modelob : modelo.Read()){\n jComboModelo.addItem(modelob);\n }\n \n for(StatusBeans sts : status.ReadStatus() ){\n jComboStatusID.addItem(sts);\n }\n }",
"public void mostrarMenuLectura(TomarLectura tomarLectura, Lectura lecturaActual);",
"@Override\n\tpublic void chocoContraPared() {}",
"public void construirCuartoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet4ReglaCompleja = new JComboBox(dominio);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet4ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\titemscomboDominiosSet4ReglaCompleja = new JComboBox();// creamo el Cuarto combo, vacio\n\t\titemscomboDominiosSet4ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Cuarto Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet4ReglaCompleja);\n\t\tcomboDominiosSet4ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet4ReglaCompleja);\n\t\titemscomboDominiosSet4ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"@Override\r\n\t/**\r\n\t * Actionne l'effet de la carte.\r\n\t * \r\n\t * @param listejoueur\r\n\t * \t\t\tLa liste des joueurs de la partie.\r\n\t * @param cible\r\n\t * \t\t\tLa joueur contre qui l'effet sera joué.\r\n\t * @param table\r\n\t * \t\t\tCollection de cartes situées au centre de la table de jeu.\r\n\t * @param carte\r\n\t * \t\t\tLa carte qui joue l'effet.\r\n\t * @param j\r\n\t * \t\t\tLe joueur qui joue la carte.\r\n\t * @param collection\r\n\t * \t\t\tLe deck de cartes.\r\n\t * @param tourjoueur\r\n\t * \t\t\tLa liste des joueurs selon l'ordre de jeu.\r\n\t */\r\n\tpublic void utiliserEffet(ArrayList<Joueur> listejoueur, int cible, ArrayList<Carte> table, Carte carte,\r\n\t\t\tint j, ArrayList<Carte> collection,ArrayList<Joueur> tourjoueur) {\n\t\tcont = Controller.getInstance();\r\n\t\tint id = carte.getIdentifiantCarte();\r\n\t\tif (id ==9 || id ==10 || id==22 || id==23){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un croyant\");\r\n\t\t\t\t\r\n\t\t\t\tcont.setChoisirCible(true);\r\n\t\t\t\t\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\t\t\r\n\t\t\t\tif (listejoueur.get(cont.getChoixCible()).getNombreCroyantTotal()>0){\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\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\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierCroyant(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" n'a aucun croyant a sacrifier \");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\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\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Croyant\");\r\n\t\t\tif (listejoueur.get(joueurCible).getNombreCroyantTotal()>0){\r\n\t\t\t\t\r\n\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor (int k=0;k<listejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true); // On rend possible l'utilisation de la carte\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\tlistejoueur.get(joueurCible).setDoitSacrifierCroyant(true);\r\n\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierCroyant(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun croyant à sacrifier\");\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if ( id==11){\r\n\t\t\tif (tourjoueur.get(j) == listejoueur.get(0)){\r\n\t\t\t\tSystem.out.println(\"Choisissez le Divinité qui sera forcer de sacrifier un guide\");\r\n\t\t\t\twhile(cont.getChoixCible()==-1){\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tThread.sleep(200);\r\n\t\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(cont.getChoixCible()).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\t\r\n\t\t\t\tif(listejoueur.get(cont.getChoixCible()).getGuidePossede().size()>0){\r\n\t\t\t\t\tfor (int i=0;i<listejoueur.get(cont.getChoixCible()).getGuidePossede().size();i++){\r\n\t\t\t\t\t\tfor(int k=0;k<listejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().size();k++){\r\n\t\t\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).getGuidePossede().get(i).getCroyantPossede().get(k).setSelectionnee(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlistejoueur.get(cont.getChoixCible()).setDoitSacrifierGuide(true);\r\n\t\t\t\t\ttourjoueur.get(j).forcerAction(cont.getChoixCible(),listejoueur.get(cont.getChoixCible()).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t\r\n\t\t\t\t max = 0;\r\n\t\t\t\t\tjoueurCible =-1;;\r\n\t\t\t\tfor (int i=0; i<listejoueur.size();i++){\r\n\t\t\t\t\r\n\t\t\t\t\tif (listejoueur.get(i).getGuidePossede().size() > max){\r\n\t\t\t\t\tmax = listejoueur.get(i).getGuidePossede().size();\r\n\t\t\t\t\tjoueurCible = i;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Effet: Le \" +tourjoueur.get(j).getNom() + \" force le \" +listejoueur.get(joueurCible).getNom() + \" à sacrifier un Guide\");\r\n\t\t\t\tif (listejoueur.get(joueurCible).getGuidePossede().size()>0){\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tfor(int i=0;i<listejoueur.get(joueurCible).getGuidePossede().size();i++){\r\n\t\t\t\t\t\t\tlistejoueur.get(joueurCible).getGuidePossede().get(i).setSelectionnee(true); // On rend possible l'utilisation de la carte\t\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\tlistejoueur.get(joueurCible).setDoitSacrifierGuide(true);\r\n\t\t\t\ttourjoueur.get(j).forcerAction(joueurCible,listejoueur.get(joueurCible).isDoitSacrifierGuide(), listejoueur,0,table,collection,tourjoueur);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSystem.out.println(\"Info : Le \" +listejoueur.get(joueurCible).getNom() + \" n'a aucun guide à sacrifier\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t\r\n\t}",
"public void majAffichageConnectes() {\n effacerConnectes(); // on efface ce qui est deja ecrit dans la zone reservees a la liste des\n // connectes\n\n choixMessage.removeAllItems(); // Suppression de tous les items de la comboBox\n choixMessage.addItem(\"Tout le monde\");\n choixMessage.setSelectedIndex(0); // Par defaut => envoi a tout le monde\n\n // Parcours de la liste des personnes connectees\n for (Map.Entry<String, Color> entry : couleurs.entrySet()) {\n String nom = entry.getKey(); // recuperation du nom\n Color rgb = new Color(chercherCouleur(nom)); // recuperation de la couleur correspondante\n\n // Mise a jour de la combobox\n if(!fenetre.getClient().getNom().equals(nom)){\n choixMessage.addItem(nom);\n }\n\n // Mise a jour de l'affichage dans le panneau \"Connectes\"\n StyledDocument doc = connectes.getStyledDocument();\n StyleContext style = StyleContext.getDefaultStyleContext();\n // Modification de la couleur\n AttributeSet aset = style.addAttribute(style.getEmptySet(), StyleConstants.Foreground, rgb);\n // Mettre en gras\n aset = style.addAttributes(aset, style.addAttribute(style.getEmptySet(), StyleConstants.Bold, true));\n\n // ajout de la personne dans la liste avec la couleur correspondante\n try {\n doc.insertString(doc.getLength(), nom+\"\\n\", aset);\n } catch (BadLocationException e) {\n e.printStackTrace();\n }\n }\n\n System.out.println(\"maj de l'affichage de la liste des connectes\");\n }",
"private void controladorPerfil(Controlador controlador){\n this.contUserDisplayCollective = controlador.getUserDisplayCollective();\n perfil.setControlCollective((ListSelectionListener)contUserDisplayCollective);\n inicioUser.setControlCollective((ListSelectionListener)contUserDisplayCollective);\n\n this.contUserDisplayProject = controlador.getUserDisplayProject();\n perfil.setControlProject((ListSelectionListener)contUserDisplayProject);\n inicioUser.setControlProject((ListSelectionListener)contUserDisplayProject);\n inicioAdmin.setControlProject((ListSelectionListener)contUserDisplayProject);\n \n }",
"public void construirTercerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet3ReglaCompleja = new JComboBox(dominio);// creamos el Tercer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet3ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Tercer item\n\t\titemscomboDominiosSet3ReglaCompleja = new JComboBox();// creamo el Tercer combo, vacio\n\t\titemscomboDominiosSet3ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Tercer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet3ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet3ReglaCompleja);\n\t\titemscomboDominiosSet3ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public interface SistemaArqOperations \r\n{\r\n int list_Arq (String nome, String[] aq, String p);\r\n String[] att_clientes ();\r\n String[] get_Arq (int a);\r\n void set_Arq (String[] aq, int idd);\r\n String get_path (int a);\r\n int qtd_clientes ();\r\n}",
"private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }",
"@Override\r\n public void actionPerformed(ActionEvent e) {\r\n //-------------------- ASIGNACIONES INICIALES PARA EL COMBATE-------------------\r\n //Aqui se cargan todas las vistas y parametros iniciales, se llenan los label, etc\r\n //Este boton es el de iniciar combate en la vista previa combate\r\n if (vpc.getBotonIniciar() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario inicio el combate\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n this.termino = false;\r\n va.agregarListener(this);\r\n ve.agregarListener(this);\r\n this.vc.agregarListener(this);\r\n vpc.setVisible(false);\r\n int Index_inicial1 = vpc.getIndexjC_Inicial1();\r\n int Index_inicial2 = vpc.getIndexjC_Inicial2();\r\n vc.setjL_jugador1(entrenador1.getNombre());\r\n vc.setjL_jugador2(entrenador2.getNombre());\r\n vc.setjL_nombrepokemon1(getEquipo1()[Index_inicial1].getPseudonimo());\r\n vc.setjL_nombrepokemon2(getEquipo2()[Index_inicial2].getPseudonimo());\r\n vc.setjL_especie1(getEquipo1()[Index_inicial1].getNombre_especie());\r\n vc.setjL_especie2(getEquipo2()[Index_inicial2].getNombre_especie());\r\n vc.setjL_nombrepokemon2(vpc.getjC_Inicial2());\r\n vc.setjL_vida_actual1(getEquipo1()[Index_inicial1].getVida_restante(), getEquipo1()[Index_inicial1].getVida());\r\n vc.setjL_vida_actual2(getEquipo2()[Index_inicial2].getVida_restante(), getEquipo2()[Index_inicial2].getVida());\r\n vc.setjL_Nivel1(getEquipo1()[Index_inicial1].getNivel());\r\n vc.setjL_Nivel2(getEquipo2()[Index_inicial2].getNivel());\r\n vc.setjL_distincion1(entrenador1.getDistincion());\r\n vc.setjL_distincion2(entrenador2.getDistincion());\r\n this.turno = 0;\r\n this.pokemon_activo1 = getEquipo1()[Index_inicial1];\r\n this.pokemon_activo2 = getEquipo2()[Index_inicial2];\r\n vc.setVisible(true);\r\n if(tipo_simulacion == 1 || tipo_simulacion == 2){\r\n JOptionPane.showMessageDialog(this.vc, \"Turno\"+\" \"+entrenador1.getNombre(), \"Tu Turno\", JOptionPane.INFORMATION_MESSAGE);\r\n vc.turnoJugador1();\r\n System.out.println(\"Turno\"+\" \"+entrenador1.getNombre());\r\n try {\r\n creg.guardarRegistroSimulacion(\"Turno\"+\" \"+entrenador1.getNombre());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n vc.setjL_Turno_actual(entrenador1.getNombre());\r\n }\r\n else{\r\n JOptionPane.showMessageDialog(this.vc, \"Comenzando Simulacion Completa de un Combate Usuario vs Sistema\", \"Comienzo Simulacion\", JOptionPane.INFORMATION_MESSAGE); \r\n vc.turnoSimulacion();\r\n try {\r\n creg.guardarRegistroSimulacion(\"Comenzando simulacion completa usuario vs sistema\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n while (condicionVictoria(getEquipo1(), getEquipo2())==false){\r\n turnoUsuario();\r\n if(termino == true) break;\r\n turnoSistema();\r\n if(termino == true) break;\r\n }\r\n }\r\n \r\n }\r\n // Para cambiar a un equipo personalizado distinto al que se posee para el primer entrenador\r\n if(vpc.getBotonEquipo1()== (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador1 eligió cambiar su equipo por uno personalizado\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n VistaNuevoEquipo vnew = new VistaNuevoEquipo();\r\n try {\r\n int equipo = 1;\r\n ControladorEquipo ce = new ControladorEquipo(vnew, 0, 0, controlador_principal, this, vpc, equipo);\r\n ConexionBD cBD = new ConexionBD();\r\n ArrayList<String> nombres_pokemon = new ArrayList();\r\n nombres_pokemon = cBD.obtenerNombresPokemones();\r\n vnew.setJL_Pokemon1(nombres_pokemon);\r\n vnew.setJL_Pokemon2(nombres_pokemon);\r\n vnew.setJL_Pokemon3(nombres_pokemon);\r\n vnew.setJL_Pokemon4(nombres_pokemon);\r\n vnew.setJL_Pokemon5(nombres_pokemon);\r\n vnew.setJL_Pokemon6(nombres_pokemon);\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n // Lo mismo pero para el segundo\r\n if(vpc.getBotonEquipo2()== (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador2 eligió cambiar su equipo por uno personalizado\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n VistaNuevoEquipo vnew = new VistaNuevoEquipo();\r\n try {\r\n int equipo = 2;\r\n ControladorEquipo ce = new ControladorEquipo(vnew, 0, 0, controlador_principal, this, vpc, equipo);\r\n ConexionBD cBD = new ConexionBD();\r\n ArrayList<String> nombres_pokemon = new ArrayList();\r\n nombres_pokemon = cBD.obtenerNombresPokemones();\r\n vnew.setJL_Pokemon1(nombres_pokemon);\r\n vnew.setJL_Pokemon2(nombres_pokemon);\r\n vnew.setJL_Pokemon3(nombres_pokemon);\r\n vnew.setJL_Pokemon4(nombres_pokemon);\r\n vnew.setJL_Pokemon5(nombres_pokemon);\r\n vnew.setJL_Pokemon6(nombres_pokemon);\r\n \r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n // ----------ACCIONES BOTONES DE ATAQUE------------- \r\n //Boton ataque jugador 1\r\n //Setea la vista para los movimientos del pokemon activo del jugador 1\r\n if (vc.getBotonAtacar1() == (JButton) e.getSource()){\r\n va.activarAtaques();\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador1 eligio atacar\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n for (int i = 0; i < 4; i++) {\r\n if(pokemon_activo1.getMovimientos()[i].getPuntos_poder_restantes() <= 0){\r\n va.desactivarAtaque(i);\r\n }\r\n \r\n }\r\n va.setVistaAtaque(pokemon_activo1);\r\n va.setVisible(true);\r\n \r\n }\r\n //Boton ataque jugador 2\r\n //Setea la vista para los movimientos del pokemon activo del jugador 2\r\n if (vc.getBotonAtacar2() == (JButton) e.getSource()){\r\n va.activarAtaques();\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador2 eligió atacar\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n for (int i = 0; i < 4; i++) {\r\n if(pokemon_activo2.getMovimientos()[i].getPuntos_poder_restantes() <= 0){\r\n va.desactivarAtaque(i);\r\n }\r\n \r\n }\r\n va.setVistaAtaque(pokemon_activo2);\r\n va.setVisible(true);\r\n \r\n }\r\n //-------------ACCIONES DE LOS ATAQUES SELECCIONADOS DESDE EL PRIMERO HASTA EL CUARTO----------\r\n //-------------ACCION ATAQUE 1-------------------- \r\n // Boton para el primer ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque1() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el primer ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(0);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //---------------------ACCION ATAQUE 2 ------------------\r\n // Boton para el segundo ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque2() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el segundo ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(1);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //-----------------ACCION ATAQUE 3------------------\r\n // Boton para el tercer ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque3() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el tercer ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(2);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //-----------------ACCION ATAQUE 4-------------------\r\n // Boton para el cuarto ataque de la lista de movimientos del pokemon seleccionado \r\n if(va.getBotonAtaque4() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligió atacar con el cuarto ataque\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n try {\r\n accionAtaques(3);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n \r\n //-----------------ACCIONES BOTONES CAMBIAR---------\r\n //Boton cambiar del primer jugador\r\n if(vc.getBotonCambiar1() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador1 eligió cambiar de pokemon\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ve.activarBotones();\r\n int index = -1;\r\n for (int j = 0; j < getEquipo1().length; j++) {\r\n if(getEquipo1()[j].equals(pokemon_activo1))\r\n index=j; \r\n }\r\n ve.setVistaCambio(getEquipo1(), pokemon_activo1, index);\r\n ve.setVisible(true);\r\n }\r\n //Boton cambiar del segundo jugador \r\n if(vc.getBotonCambiar2() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Jugador2 eligió cambiar de pokemon\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ve.activarBotones();\r\n int index = -1;\r\n for (int j = 0; j < getEquipo2().length; j++) {\r\n if(getEquipo2()[j].equals(pokemon_activo2))\r\n index=j; \r\n }\r\n ve.setVistaCambio(getEquipo2(), pokemon_activo2, index);\r\n ve.setVisible(true);\r\n }\r\n //----------------SELECCION DE CADA POKEMON A CAMBIAR-------------\r\n //----------------CAMBIO POKEMON 1 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al primer pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon1() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el primero de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(0);\r\n }\r\n \r\n //----------------CAMBIO POKEMON 2 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al segundo pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon2() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el segundo de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(1);\r\n \r\n }\r\n \r\n //----------------CAMBIO POKEMON 3 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al tercer pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon3() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el tercero de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(2);\r\n \r\n }\r\n \r\n //----------------CAMBIO POKEMON 4 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al cuarto pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon4() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el cuarto de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(3);\r\n \r\n }\r\n \r\n //----------------CAMBIO POKEMON 5 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al quinto pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon5() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el quinto de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(4);\r\n \r\n }\r\n //----------------CAMBIO POKEMON 6 -------------------------------\r\n //Boton que ejecuta las acciones cuando se selecciona al sexto pokemon del equipo para el cambio\r\n if(ve.getBotonPokemon6() == (JButton) e.getSource()){\r\n try {\r\n creg.guardarAccionUsuario(\"Usuario eligio cambiar el pokemon activo por el sexto de su lista\");\r\n } catch (IOException ex) {\r\n Logger.getLogger(ControladorCombate.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n accionCambios(5);\r\n \r\n }\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n }",
"private void filtrarAccion() {\n\n if (cbOpcion.getSelectedIndex()==0) {\n paramFecha =false;\n jPanel1.setVisible(false);\n jPanel3.setVisible(false);\n }\n if (cbOpcion.getSelectedIndex() == 1) {\n System.out.println(\"opcion: \" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(true);\n jPanel3.setVisible(false);\n campo = \"cobran_codigo\";\n paramFecha = false;\n\n } \n if (cbOpcion.getSelectedIndex() == 2) {\n System.out.println(\"opcion: \" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(true);\n jPanel3.setVisible(false);\n campo = \"cli_codigo\";\n paramFecha = false;\n\n } if(cbOpcion.getSelectedIndex()==3) {\n System.out.println(\"seleccion:\" + cbOpcion.getSelectedIndex());\n jPanel1.setVisible(false);\n jPanel3.setVisible(true);\n campo = \"cobran_fecha\";\n paramFecha = true;\n }\n\n }",
"public void modificarCompraComic();",
"private void verficarChoques() {\n\t\t\n\t\tfor(int i=0; i<JuegoListener.elementos.size();i++){\n\t\t\t\n\t\t\tElemento e1 = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\t//guaramos las coordenadas para verificar si choco contra el tablero\n\t\t\tint coord1 = e1.getPosicion().getX();\n\t\t\tint coord2 = e1.getPosicion().getY();\n\t\t\t//Creamos el rectangulo\n\t\t\tRectangle r1 = new Rectangle(e1.getPosicion().getX(),\n\t\t\t\t\t\t\t\t\t\te1.getPosicion().getY(),\n\t\t\t\t\t\t\t\t\t\te1.getTamanio().getAncho(),\n\t\t\t\t\t\t\t\t\t\te1.getTamanio().getAlto());\n\t\t\t\n\t\t\tfor(int j=i+1; j<JuegoListener.elementos.size(); j++){\n\t\t\t\t\n\t\t\t\t//Creamos el rectangulo\n\t\t\t\tElemento e2 = JuegoListener.elementos.get(j);\n\t\t\t\tRectangle r2 = new Rectangle(e2.getPosicion().getX(),\n\t\t\t\t\t\te2.getPosicion().getY(),\n\t\t\t\t\t\te2.getTamanio().getAncho(),\n\t\t\t\t\t\te2.getTamanio().getAlto());\n\t\t\t\tif(r1.intersects(r2)){\n\t\t\t\t\te1.chocarContra(e2);\n\t\t\t\t\te1.chocarContra(e1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// estaContenidoDentro, hace referencia si no se paso del tope del tablero\n\t\t\t// esta contenidoposito, se fija si las posiciones son positivas \n\t\t\tboolean estaContenidoDentro = ( (coord1 >= this.config.getAnchoTablero()) || (coord2 >= this.config.getAltoTablero()) ); \n\t\t\tboolean estaContenidoPositivo= (coord1<= 0) || (coord2 <= 0 ); \n\t\t\tif(estaContenidoPositivo || estaContenidoDentro){\n\t\t\t\te1.chocarContraPared();\n\t\t\t}\t\t\t\n\t\t}\n\n\n\t}",
"private void establecerMenu(ArrayList<PlatilloMenu> lMenu) {\n Object[] columnas = {\"Platillo\", \"Reservados\", \"Para vender\"};\n Object[][] modelo = new Object[lMenu.size()][3];\n int x = 0;\n DefaultComboBoxModel modeloLista;\n ArrayList<Platillo> listaPlatilllos = new ArrayList<>();\n for (PlatilloMenu platilloMenu : lMenu) {\n int paraVender = platilloMenu.getCantidad();\n int reservados = platilloMenu.getReservados();\n // Si el platillo del menu aún se puede vender\n if (paraVender > 0 || reservados > 0) {\n // Se agrega el platillo a la lista de platillos\n listaPlatilllos.add(platilloMenu.getPlatillo());\n }\n modelo[x][0] = platilloMenu.getPlatillo().getNombre();\n modelo[x][1] = reservados;\n modelo[x][2] = paraVender;\n x++;\n }\n // Se establece el modelo en la tabla con los datos\n tablaMenu.setDefaultEditor(Object.class, null);\n tablaMenu.setModel(new DefaultTableModel(modelo, columnas));\n tablaMenu.setCellSelectionEnabled(false);\n tablaMenu.setRowSelectionAllowed(false);\n Object[] arregloPlatillos;\n // Si hay platillos que se puedan vender\n if (listaPlatilllos.size() > 0) {\n // Se guardan en el arreglo\n arregloPlatillos = listaPlatilllos.toArray();\n modeloLista = new DefaultComboBoxModel(arregloPlatillos);\n comboPlatillos.setModel(modeloLista);\n // Si es horario de comidas\n if (this.categoría.equals(\"COMIDA\")) {\n // Consulta la sopa del día\n this.sopaDelDia = Control.menu.consultarSopaDia(diaSemana);\n // si hay una sopa establecida en el menú\n if (sopaDelDia != null) {\n // Se habilita el checkbox y se establece el nombre\n checkBoxSopa.setEnabled(true);\n checkBoxSopa.setText(sopaDelDia.getNombre());\n } else {\n checkBoxSopa.setEnabled(false);\n checkBoxSopa.setText(\"SOPA NO ESTABLECIDA\");\n }\n } else {\n checkBoxSopa.setEnabled(false);\n }\n \n }//Si no\n else {\n \n // Se guarda un solo valor indicando el resultado de la búsqueda\n arregloPlatillos = new Object[1];\n arregloPlatillos[0] = \"-------SIN PLATILLOS DISPONIBLES------\";\n modeloLista = new DefaultComboBoxModel(arregloPlatillos);\n comboPlatillos.setModel(modeloLista);\n // Se desactivan todos los componentes\n //desactivarComponentes(this);\n }\n }",
"public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }",
"public ManipularEstudiantes() {\n initComponents();\n cme = new Control_Mantenimiento_Estudiante(this);\n this.gUI_botones2.agregar_eventos(cme);\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e)\r\n\t{\r\n\t\t\r\n\t\t if (e.getActionCommand().equals(\"Retour\")) {\r\n\t\t\t this.choixMenu = 1;\r\n\t\t }\r\n\r\n\t\t else if (e.getActionCommand().equals(\"Deplacement\")) {\r\n\t\t\t this.choixMenu = 4;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Fin du tour\")) {\r\n\t\t\t this.finDuTour = true; \r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Attaque\")) {\r\n\t\t\t this.choixMenu = 2;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Quitter\")) {\r\n\t\t\t System.exit(0);\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Haut\")) {\r\n\t\t this.choixMouvement = 1;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Gauche\")) {\r\n\t\t\t this.choixMouvement = 2;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Bas\")) {\r\n\t\t\t this.choixMouvement = 3;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Droite\")) {\r\n\t\t\t this.choixMouvement = 4;\r\n\t\t }\r\n\t\t \r\n\t\t else\r\n\t\t {\r\n\t\t\t int numComp;\r\n\t\t\t int numMonstre;\r\n\t\t\t for(numComp = 0;numComp<this.competences.length;numComp++)\r\n\t\t\t {\r\n\t\t\t\t if(e.getActionCommand().equals(this.competences[numComp].getNom()))\r\n\t\t\t\t {\r\n\t\t\t\t\t this.choixCompetence = numComp;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t \r\n\t\t\t for(numMonstre = 0;numMonstre<this.monstres.length;numMonstre++)\r\n\t\t\t {\r\n\t\t\t\t if(e.getActionCommand().equals(this.monstres[numMonstre].getNom()))\r\n\t\t\t\t {\r\n\t\t\t\t\t this.choixMonstre = numMonstre;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t for(numMonstre = 0;numMonstre<this.monstres.length;numMonstre++)\r\n\t\t\t {\r\n\t\t\t\t if(e.getActionCommand().equals(\"Info \" + this.monstres[numMonstre].getNom()))\r\n\t\t\t\t {\r\n\t\t\t\t\t this.choixMonstreAAfficher = numMonstre;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t}",
"private void setCurrentOperation(){ \r\n boolean isNamesVisible = true; //Valor logico si los campos de nombres y apellidos seran visibles\r\n Integer[] disables; //Se declara el arreglo que contendra las posiciones de la TOOLBAR que seran DESHABILITADOS para cada operacion\r\n loadToolBar(); //Se Refresca la barra de Herramientas\r\n lb_Title.setText(\"\"); //Se deja en blanco la etiqueta del Titulo\r\n //Se evalua el tipo de Operacion\r\n switch(tipoOperacion){\r\n case 0: //SOLO LECTURA \r\n tf_nroguia.setEditable(true);\r\n tf_nrorguia.setEditable(false);\r\n tf_chofer.setEditable(false);\r\n tf_veh1.setEditable(false);\r\n tf_veh2.setEditable(false);\r\n tf_ayud1.setEditable(false);\r\n tf_ayud2.setEditable(false);\r\n tf_cheqp.setEditable(false);\r\n tf_supruta.setEditable(false);\r\n\r\n dt_fcarga.setDisable(true);\r\n dt_relacion.setDisable(true);\r\n\r\n im_check.setVisible(false);\r\n im_val.setVisible(false);\r\n\r\n bt_c1.setDisable(true);\r\n bt_c2.setDisable(true);\r\n bt_c3.setDisable(true);\r\n bt_c4.setDisable(true);\r\n bt_c5.setDisable(true);\r\n bt_c6.setDisable(true);\r\n bt_c7.setDisable(true);\r\n\r\n //SE PERMITE: NUEVO, CANCELAR Y BUSCAR\r\n disables = new Integer[]{2,5,6,9,10};\r\n disableAllToolBar(disables); \r\n hb_1.setVisible(true);\r\n break;\r\n case 1: //NUEVO\r\n lb_Title.setText(\"NUEVO\");\r\n\r\n tf_nroguia.setEditable(false);\r\n tf_nrorguia.setEditable(true);\r\n\r\n dt_relacion.setDisable(false);\r\n\r\n im_check.setVisible(true);\r\n im_val.setVisible(false);\r\n\r\n //SE PERMITE: NUEVO,GUARDAR Y CANCELAR \r\n disables = new Integer[]{0,1,3,4,6,7,8,9,10,11};\r\n disableAllToolBar(disables); \r\n break;\r\n case 2: //EDITAR\r\n lb_Title.setText(\"EDITAR\");\r\n\r\n tf_nroguia.setEditable(false);\r\n tf_nrorguia.setEditable(true);\r\n\r\n dt_relacion.setDisable(false);\r\n \r\n im_check.setVisible(true);\r\n im_val.setVisible(false);\r\n \r\n //SE PERMITE: EDITAR,GUARDAR Y CANCELAR\r\n disables = new Integer[]{0,1,3,4,6,7,8,9,10,11};\r\n disableAllToolBar(disables); \r\n break;\r\n case 3: //GUARDAR\r\n tf_nroguia.setEditable(true);\r\n tf_nrorguia.setEditable(false);\r\n\r\n dt_relacion.setDisable(true);\r\n \r\n im_check.setVisible(false);\r\n im_val.setVisible(false);\r\n\r\n //SE PERMITE: GUARDAR Y CANCELAR\r\n disables = new Integer[]{0,1,3,4,6,7,8,9,10,11};\r\n disableAllToolBar(disables); \r\n break;\r\n case 4: //CAMBIAR STATUS \r\n tf_nroguia.setEditable(true);\r\n tf_nrorguia.setEditable(false);\r\n\r\n dt_relacion.setDisable(true);\r\n \r\n im_check.setVisible(false);\r\n im_val.setVisible(false);\r\n\r\n //SE PERMITE: GUARDAR,CAMBIO STATUS Y CANCELAR\r\n disables = new Integer[]{2,5,6,7,8,9,10};\r\n disableAllToolBar(disables); \r\n break;\r\n } \r\n init_FocusArray(tipoOperacion); \r\n Gui.getInstance().setTipoOperacion(tipoOperacion);\r\n }",
"public void cargaDatosInicialesSoloParaModificacionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n selectAuxiliarParaAsignacionModificacion = cntEntidadesService.listaDeAuxiliaresPorEntidad(selectedEntidad);\n //Obtien Ajuste Fin\n\n //Activa formulario para automatico modifica \n switch (selectedEntidad.getNivel()) {\n case 1:\n swParAutomatico = true;\n numeroEspaciador = 200;\n break;\n case 2:\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciador = 200;\n break;\n case 3:\n swParAutomatico = false;\n numeroEspaciador = 1;\n break;\n default:\n break;\n }\n\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n }",
"private void comboCarrega() {\n\n try {\n con = BancoDeDados.getConexao();\n //cria a string para inserir no banco\n String query = \"SELECT * FROM servico\";\n\n PreparedStatement cmd;\n cmd = con.prepareStatement(query);\n ResultSet rs;\n\n rs = cmd.executeQuery();\n\n while (rs.next()) {\n JCservico.addItem(rs.getString(\"id\") + \"-\" + rs.getString(\"modalidade\"));\n }\n\n } catch (SQLException ex) {\n System.out.println(\"Erro de SQL \" + ex.getMessage());\n }\n }",
"public void iniciar_combo() {\n try {\n Connection cn = DriverManager.getConnection(mdi_Principal.BD, mdi_Principal.Usuario, mdi_Principal.Contraseña);\n PreparedStatement psttt = cn.prepareStatement(\"select nombre from proveedor \");\n ResultSet rss = psttt.executeQuery();\n\n cbox_proveedor.addItem(\"Seleccione una opción\");\n while (rss.next()) {\n cbox_proveedor.addItem(rss.getString(\"nombre\"));\n }\n \n PreparedStatement pstt = cn.prepareStatement(\"select nombre from sucursal \");\n ResultSet rs = pstt.executeQuery();\n\n \n cbox_sucursal.addItem(\"Seleccione una opción\");\n while (rs.next()) {\n cbox_sucursal.addItem(rs.getString(\"nombre\"));\n }\n \n PreparedStatement pstttt = cn.prepareStatement(\"select id_compraE from compra_encabezado \");\n ResultSet rsss = pstttt.executeQuery();\n\n \n cbox_compra.addItem(\"Seleccione una opción\");\n while (rsss.next()) {\n cbox_compra.addItem(rsss.getString(\"id_compraE\"));\n }\n \n PreparedStatement ps = cn.prepareStatement(\"select nombre_moneda from moneda \");\n ResultSet r = ps.executeQuery();\n\n \n cbox_moneda.addItem(\"Seleccione una opción\");\n while (r.next()) {\n cbox_moneda.addItem(r.getString(\"nombre_moneda\"));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n \n }",
"public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }",
"private void selecionarOpcoesDeBackup() {\n try {\n if (dao.opcaoDeBackupAtual().equals(\"Não fazer Backup Automático\")) {\n rbNãofazerBackup.setSelected(true);\n }\n if (dao.opcaoDeBackupAtual().equals(\"Fazer Backup na Entrada\")) {\n rbFazerBackupnaEntrada.setSelected(true);\n }\n if (dao.opcaoDeBackupAtual().equals(\"Fazer Backup na Saída\")) {\n rbFazerBackupnaSaída.setSelected(true);\n }\n if (dao.opcaoDeBackupAtual().equals(\"Fazer Backup na Entrada e na Saída\")) {\n rbFazerBackupnaEntradaenaSaida.setSelected(true);\n }\n } catch (SQLException ex) {\n Logger.getLogger(Backup.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public static void menuPrincicipal() {\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| Elige una opcion |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 1-Modificar Orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 2-Eliminar orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 3-Ver todas las ordenes |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 0-Salir |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t}",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"private static void gestionarMenuGeneral(int opcion) {\n\t\tswitch(opcion){\n\t\tcase 1:\n\t\t\tmenuManejoJugadores();\n\t\t\tbreak;\n\t\tcase 2: jugar();\n\t\t\tbreak;\n\t\tcase 3:System.out.println(\"Hasta pronto.\");\n\t\t\tbreak;\n\t\t}\n\t}",
"public CadastrarFuncionario(Kernel obj,int acao,Object texto) {\n kernel = obj; \n bd_Funcionario = new BD_Funcionario(kernel);\n bd_Nivel = new BD_Nivel(kernel);\n \n initComponents(); \n \n /********* PREENCHENDO O VETOR Nivel *************/ \n Nivel[] Nivel_vetor = null;\n try {\n Nivel_vetor = bd_Nivel.getNivels();\n } catch (SQLException exx) {\n Logger.getLogger(CadastrarFuncionario.class.getName()).log(Level.SEVERE, null, exx);\n }\n String dados4[] = new String[Nivel_vetor.length];\n\n obj_Nivel = new Nivel();\n int pos4 = 0;\n for(int i=0; i < Nivel_vetor.length; i++){\n obj_Nivel = (Nivel)Nivel_vetor[i];\n dados4[i] = String.valueOf(obj_Nivel.getNome()).toUpperCase(); \n if(i==0){\n Nivel_id.setText(String.valueOf(obj_Nivel.getNivel_id()));\n }\n }\n combo_nivel.setModel(new javax.swing.DefaultComboBoxModel(dados4)); \n \n if(acao!=0){\n combo_nivel.setSelectedIndex(pos4);\n } \n /*****************************************************************/\n \n if(acao!=0){\n try {\n PreencherFormulario(acao);\n } catch (SQLException ex) {\n Logger.getLogger(CadastrarFuncionario.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n \n \n }",
"public void ComprarEdificio(int tipo){\n if(edificios[tipo].tipoCompra.equals(\"oro\")){\n if(aldea.oro >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar oro de edificio\n aldea.gastarOro(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro de culminacion\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldOro.setText(String.valueOf((int)aldea.oro));\n }\n }\n }else{\n if(aldea.elixir >= edificios[tipo].precioCompraMejora()){\n if(aldea.constructoresLibres() > 0){\n // Bloquear constructor\n aldea.bloquearConstructor();\n // Obtener tiempo actual\n Date tiempo = new Date();\n // Gastar elixir de edificio\n aldea.gastarElixir(edificios[tipo].precioCompraMejora());\n // Construir edificio y obtener evento futuro\n // Agregar evento a la LEF\n LEF.add(aldea.construirEdificio(tiempo, edificios[tipo]));\n jTextFieldElixir.setText(String.valueOf((int)aldea.elixir));\n }\n }\n }\n }",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"public void construirSegundoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet2ReglaCompleja = new JComboBox(dominio);// creamos el Segundo combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet2ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Segundo item\n\t\titemscomboDominiosSet2ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet2ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Segundo Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet2ReglaCompleja);\n\t\tcomboDominiosSet2ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet2ReglaCompleja);\n\t\titemscomboDominiosSet2ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet2ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public void acutualizarInfo(){\n String pibId = String.valueOf(comentario.getId());\n labelId.setText(\"#\" + pibId);\n\n String autor = comentario.getAutor().toString();\n labelAutor.setText(autor);\n\n String fecha = comentario.getFechaCreacion().toString();\n labelFecha.setText(fecha);\n \n String contenido = comentario.getContenido();\n textAreaContenido.setText(contenido);\n \n String likes = ((Integer)comentario.totalLikes()).toString();\n labelLikes.setText(likes);\n \n Collection<Comentario> comments = socialNetwork.searchSubComentarios(comentario);\n panelSubComentarios.loadItems(comments, 15);\n \n if(comentario.isSubcomentario()){\n jButton4.setEnabled(true);\n }\n else{\n jButton4.setEnabled(false);\n }\n }",
"@Override\n public Boolean colisionoCon(BOrigen gr) {\n return true;\n }",
"private void mostradados() {\r\n\t\tint in = 0;\r\n\r\n\t\tfor (Estado e : Estado.values()) {\r\n\t\t\tif (in == 0) {\r\n\t\t\t\tcmbx_estado.addItem(\"\");\r\n\t\t\t\tin = 1;\r\n\t\t\t}\r\n\t\t\tcmbx_estado.addItem(e.getNome());\r\n\t\t}\r\n\r\n\t\tfor (int x = 0; x < listacliente.size(); x++) {\r\n\t\t\tin = 0;\r\n\t\t\tif (x == 0) {\r\n\t\t\t\tcmbx_cidade.addItem(\"\");\r\n\t\t\t}\r\n\r\n\t\t\tfor (int y = 0; y < cmbx_cidade.getItemCount(); y++) {\r\n\t\t\t\tif (listacliente.get(x).getCidade().equals(cmbx_cidade.getItemAt(y).toString()))\r\n\t\t\t\t\tin++;\r\n\t\t\t\tif (in > 1)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (in < 1)\r\n\t\t\t\tcmbx_cidade.addItem(listacliente.get(x).getCidade());\r\n\t\t}\r\n\t}",
"public interface RangoSoloLectura {\n\n boolean getManoEnRango(int x, int y);\n boolean getManoEnRango(String mano);\n String toString();\n}",
"protected void agregarUbicacion(){\n\n\n\n }",
"public CtrlEditGrupos() {\n edEsc = EditEscenario.getInstance();\n try {\n cd = CtrlDomain.getInstance();\n } catch (Exception e) {\n System.out.println(\"ERROR EN LA CARGA DEL CONTROLADOR DE DOMINIO\");\n }\n planEstudiosFinal = edEsc.getPlanEstudiosFinal();\n asignaturasFinal = edEsc.getAsignaturasFinal();\n restriccionesFinal = edEsc.getRestriccionesFinal();\n }",
"public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }",
"private void iniciaTela() {\n try {\n tfCod.setText(String.valueOf(reservaCliDAO.getLastId()));\n desabilitaCampos(false);\n DefaultComboBoxModel modeloComboCliente;\n modeloComboCliente = new DefaultComboBoxModel(funDAO.getAll().toArray());\n cbFunc.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(quartoDAO.getAll().toArray());\n cbQuarto.setModel(modeloComboCliente);\n modeloComboCliente = new DefaultComboBoxModel(cliDAO.getAll().toArray());\n cbCliente.setModel(modeloComboCliente);\n btSelect.setEnabled(false);\n verificaCampos();\n carregaTableReserva(reservaDAO.getAll());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public NuevaOrden() {\n initComponents();\n this.setTitle(\"Nueva orden\");\n this.setIconImage(img.getImage());\n this.setLocationRelativeTo(null);\n control = FachadaControl.getInstance();\n modelTablaBusqueda = (DefaultTableModel) tablaProductos.getModel();\n modelTablaOrden = (DefaultTableModel) tablaOrden.getModel();\n }",
"public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }",
"protected abstract List<OpcionMenu> inicializarOpcionesMenu();",
"Compuesta createCompuesta();",
"public String obtemOponente(Integer idJogador) throws RemoteException;",
"protected void CriarEventos(){\n ListMenu.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String opcMenu = ((TextView) view).getText().toString();\n\n RedirecionaTela(opcMenu);\n }\n });\n }",
"public void inOrden(){\n\t\tPlanta planta= Singleton.GetPlanta();\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) {\n\t aux.inOrden();\n\t } \n\t \n\t planta.out().print(\" \"+this.datoRaiz);\n\t \n\t if ((aux=getHijoDer())!=null){\n\t aux.inOrden();\n\t } \n\t }\n\t}",
"private void editar(HttpPresentationComms comms) throws HttpPresentationException, KeywordValueException {\n/* 149 */ int idRecurso = 0;\n/* */ try {\n/* 151 */ idRecurso = Integer.parseInt(comms.request.getParameter(\"idRecurso\"));\n/* */ }\n/* 153 */ catch (Exception e) {}\n/* */ \n/* */ \n/* 156 */ PrcRecursoDAO ob = new PrcRecursoDAO();\n/* 157 */ PrcRecursoDTO reg = ob.cargarRegistro(idRecurso);\n/* 158 */ if (reg != null) {\n/* 159 */ this.pagHTML.getElementIdRecurso().setValue(\"\" + reg.getIdRecurso());\n/* 160 */ this.pagHTML.getElementDescripcionRecurso().setValue(\"\" + reg.getDescripcionRecurso());\n/* 161 */ this.pagHTML.getElementUsuarioInsercion().setValue(\"\" + reg.getUsuarioInsercion());\n/* 162 */ this.pagHTML.getElementFechaInsercion().setValue(\"\" + reg.getFechaInsercion());\n/* 163 */ this.pagHTML.getElementUsuarioModificacion().setValue(\"\" + reg.getUsuarioModificacion());\n/* 164 */ this.pagHTML.getElementFechaModificacion().setValue(\"\" + reg.getFechaModificacion());\n/* 165 */ HTMLSelectElement combo = this.pagHTML.getElementIdTipoRecurso();\n/* 166 */ comboMultivalores(combo, \"tipo_recurso\", \"\" + reg.getIdTipoRecurso(), true);\n/* */ \n/* 168 */ combo = this.pagHTML.getElementIdProcedimiento();\n/* 169 */ llenarCombo(combo, \"prc_procedimientos\", \"id_procedimiento\", \"objetivo\", \"1=1\", \"\" + reg.getIdProcedimiento(), true);\n/* */ \n/* 171 */ combo = this.pagHTML.getElementEstado();\n/* 172 */ comboMultivalores(combo, \"estado_activo_inactivo\", \"\" + reg.getEstado(), true);\n/* */ \n/* */ \n/* 175 */ this.pagHTML.getElementIdRecurso().setReadOnly(true);\n/* */ } \n/* 177 */ this.pagHTML.getElement_operacion().setValue(\"M\");\n/* 178 */ activarVista(\"nuevo\");\n/* */ }",
"public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}",
"@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\t@Override\r\n\tpublic void actulizar(String cUsuario, ColorAuto viejos, ColorAuto nuevos) {\n\t\t\r\n\t\tConnection conexion = null;\r\n\t\ttry {\r\n\t\t\tconexion = ConexionApp.iniConexion();\r\n\r\n\t\t\tBooleanHolder lhResultado = new BooleanHolder();\r\n\t\t\tStringHolder chTexto = new StringHolder();\r\n\t\t\tapp app = new app(conexion);\r\n\r\n\t\t\tVector vViejos = new Vector();\r\n\t\t\tvViejos.add(viejos.getLista());\r\n\t\t\t\t\t\t\r\n\t\t\tVector vNuevos = new Vector();\r\n\t\t\tvNuevos.add(nuevos.getLista());\r\n\t\t\t\r\n\t\t\tResultSet tt_Viejos = new VectorResultSet(vViejos);\r\n\t\t\tResultSet tt_Nuevos = new VectorResultSet(vNuevos);\t\t\t\r\n\t\t\t\t\t\t\r\n\t\t\tapp.as_ctColorAuto_Actualiza(cUsuario, tt_Viejos, tt_Nuevos, lhResultado, chTexto);\t\t\t\r\n\t\t\tthis.setResultado(lhResultado.getBooleanValue());\t\t\t\r\n\t\t\tthis.setMensaje(chTexto.getStringValue());\r\n\r\n\t\t\tapp._release();\r\n\r\n\t\t} catch (Open4GLException | IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tthis.setResultado(true);\r\n\t\t\tthis.setMensaje(\"error\" + \" \" + \"Open4GLException | IOException e\" + \" \"\r\n\t\t\t\t\t+ this.getClass().getEnclosingMethod().getName());\r\n\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tConexionApp.finConexion(conexion);\r\n\r\n\t\t\t} catch (Open4GLException | 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\tthis.setResultado(true);\r\n\t\t\t\tthis.setMensaje(\"error\" + \" \" + \"Open4GLException | IOException e\" + \" \"\r\n\t\t\t\t\t\t+ this.getClass().getEnclosingMethod().getName());\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t\r\n\t}",
"private void limpiarDatos() {\n\t\t\n\t}",
"protected void CriarComponentes(){\n\n //VINCULANDO A LISTA DA TELA AO LISTVIEW QUE DECLARAMOS\n ListMenu = (ListView) this.findViewById(R.id.ListMenu);\n }",
"public void afficherConnexion() {\n connexion.removeIf(new Integer(0)::equals);\n switch (connexion.size()) {\n case 1:\n Circle arc = new Circle(CONSTANTE_TAILLE * posx + CONSTANTE_TAILLE, CONSTANTE_TAILLE * posy + CONSTANTE_TAILLE, 10);\n arc.setFill(Couleur.getCouleurArc(connexion.get(0)));\n g.getChildren().add(arc);\n break;\n case 2:\n Arc arc1 = new Arc();\n arc1.setCenterX(CONSTANTE_TAILLE * posx + CONSTANTE_TAILLE);\n arc1.setCenterY(CONSTANTE_TAILLE * posy + CONSTANTE_TAILLE);\n arc1.setRadiusX(10);\n arc1.setRadiusY(10);\n arc1.setStartAngle(90.0f);\n arc1.setLength(180.0f);\n arc1.setType(ArcType.ROUND);\n arc1.setFill(Couleur.getCouleurArc(connexion.get(0)));\n g.getChildren().add(arc1);\n\n Arc arc2 = new Arc();\n arc2.setCenterX(CONSTANTE_TAILLE * posx + CONSTANTE_TAILLE);\n arc2.setCenterY(CONSTANTE_TAILLE * posy + CONSTANTE_TAILLE);\n arc2.setRadiusX(10);\n arc2.setRadiusY(10);\n arc2.setStartAngle(270.0f);\n arc2.setLength(180.0f);\n arc2.setType(ArcType.ROUND);\n arc2.setFill(Couleur.getCouleurArc(connexion.get(1)));\n g.getChildren().add(arc2);\n break;\n case 3:\n Arc arc3 = new Arc();\n arc3.setCenterX(CONSTANTE_TAILLE * posx + CONSTANTE_TAILLE);\n arc3.setCenterY(CONSTANTE_TAILLE * posy + CONSTANTE_TAILLE);\n arc3.setRadiusX(10);\n arc3.setRadiusY(10);\n arc3.setStartAngle(90.0f);\n arc3.setLength(120.0f);\n arc3.setType(ArcType.ROUND);\n arc3.setFill(Couleur.getCouleurArc(connexion.get(0)));\n g.getChildren().add(arc3);\n\n Arc arc4 = new Arc();\n arc4.setCenterX(CONSTANTE_TAILLE * posx + CONSTANTE_TAILLE);\n arc4.setCenterY(CONSTANTE_TAILLE * posy + CONSTANTE_TAILLE);\n arc4.setRadiusX(10);\n arc4.setRadiusY(10);\n arc4.setStartAngle(210.0f);\n arc4.setLength(120.0f);\n arc4.setType(ArcType.ROUND);\n arc4.setFill(Couleur.getCouleurArc(connexion.get(1)));\n g.getChildren().add(arc4);\n\n Arc arc5 = new Arc();\n arc5.setCenterX(CONSTANTE_TAILLE * posx + CONSTANTE_TAILLE);\n arc5.setCenterY(CONSTANTE_TAILLE * posy + CONSTANTE_TAILLE);\n arc5.setRadiusX(10);\n arc5.setRadiusY(10);\n arc5.setStartAngle(330.0f);\n arc5.setLength(120.0f);\n arc5.setType(ArcType.ROUND);\n arc5.setFill(Couleur.getCouleurArc(connexion.get(2)));\n g.getChildren().add(arc5);\n break;\n }\n\n if (hacker != null) {\n hacker.toFront();\n }\n }",
"public void inicarOuvintes() {\n\t\tJBAlocar.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\texecutarTelaAlocacao();\n\t\t\t\tJTAlocar.setModel(modelAlocar = new TableModelAlocar(ManipulacaoXml.getInstace().todasAlocacoes()));\n\n\t\t\t}\n\t\t});\n\n\t\tJBDesalocar.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (JTAlocar.getSelectedRow() != -1) {\n\t\t\t\t\tAlocar alocado = modelAlocar.getAlocar(JTAlocar.getSelectedRow());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tint op = JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\t\t\t\"Deseja Realmente desalocar o Evento: \" + alocado.getIdEvento(), \"Desalocar Evento\",\n\t\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION);\n\t\t\t\t\t\tif (op == 0) {\n\t\t\t\t\t\t\tBotaoDesalocar c = new BotaoDesalocar(alocado);\n\t\t\t\t\t\t\tprecionarControle(c);\n\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"O Evento \" + alocado.getIdEvento() + \" foi desalocado!\");\n\t\t\t\t\t\t\tmodelAlocar.removerAlocar(JTAlocar.getSelectedRow());\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (RoomsAllocationException e2) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, e2.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t} else\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Selecione uma linha da tabela para poder desalocar o evento.\",\n\t\t\t\t\t\t\t\"\", JOptionPane.ERROR_MESSAGE, null);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tJBLocalizar.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnew LocalizarAlocar();\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tJBDesfazerAlocar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tdesfazer();\n\t\t\t\t\tJTAlocar.setModel(modelAlocar = new TableModelAlocar(ManipulacaoXml.getInstace().todasAlocacoes()));\n\t\t\t\t} catch (RoomsAllocationException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}",
"private void reposicionarPersonajes() {\n // TODO implement here\n }"
] | [
"0.6560365",
"0.65520257",
"0.62969065",
"0.6271633",
"0.6258041",
"0.6220865",
"0.6200044",
"0.6189933",
"0.6182421",
"0.61463505",
"0.6117417",
"0.61033124",
"0.609762",
"0.6090507",
"0.6084248",
"0.60781074",
"0.60689914",
"0.6067933",
"0.60604537",
"0.6051402",
"0.6045177",
"0.60378265",
"0.6025554",
"0.6014587",
"0.60074216",
"0.5982201",
"0.59781104",
"0.5974725",
"0.59712607",
"0.5965355",
"0.5961544",
"0.59565926",
"0.5954567",
"0.59533805",
"0.59494644",
"0.59141576",
"0.5908861",
"0.5903814",
"0.58992445",
"0.5897232",
"0.58726627",
"0.5866769",
"0.5865029",
"0.5864277",
"0.58637124",
"0.58637124",
"0.5854762",
"0.58444583",
"0.58429617",
"0.583922",
"0.58359176",
"0.5835424",
"0.58341694",
"0.58335483",
"0.583146",
"0.582975",
"0.5828852",
"0.5821265",
"0.5817176",
"0.5807079",
"0.579767",
"0.5796535",
"0.57918495",
"0.5791793",
"0.5788846",
"0.57883036",
"0.5788183",
"0.57852584",
"0.5784339",
"0.5784181",
"0.57804626",
"0.57794183",
"0.5776647",
"0.57739115",
"0.5764635",
"0.5755173",
"0.5753979",
"0.57539016",
"0.57516336",
"0.57471895",
"0.57435304",
"0.5743484",
"0.57428765",
"0.57413465",
"0.5740591",
"0.57266515",
"0.57254636",
"0.5721973",
"0.5721732",
"0.5713194",
"0.5712904",
"0.5710255",
"0.57083255",
"0.5707208",
"0.57044876",
"0.57043904",
"0.5701273",
"0.5698203",
"0.56958455",
"0.56938064",
"0.5690547"
] | 0.0 | -1 |
/ Gestion des orifices parfait | public void GestionOrificeParfait(double[] x, NodesVector nvector, PipesVector pvector, DiametersVector dvector,
OrificesVector ovector, double[] LoadFactor, double[] Cste1, double outflow, TapsVector tvector,
double[] CstValue) {
double d = 0;
Taps taps;
for (int i = NbNodes - NbTaps - 1; i < (NbNodes - 1); i++) {
// test d'accessibilite au calcul
if (Cste1[i] > CstValue[i]) {
taps = (Taps) tvector.elementAt(i - NbNodes + NbTaps + 1);
d = Math.pow((Math.pow(CoefOrif, 4) * Math.pow(outflow, 2))
/ (Cste1[i] - CstValue[i] + (Math.pow(CoefOrif / taps.orifice, 4) * Math.pow(outflow, 2))),
0.25);
taps.orif_ideal = d;
taps.orifice = d;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void Ordenamiento() {\n\n\t}",
"public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"public void inOrden(){\n\t\tPlanta planta= Singleton.GetPlanta();\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) {\n\t aux.inOrden();\n\t } \n\t \n\t planta.out().print(\" \"+this.datoRaiz);\n\t \n\t if ((aux=getHijoDer())!=null){\n\t aux.inOrden();\n\t } \n\t }\n\t}",
"@Override\r\n\tpublic void AgregarOrden() {\n\r\n\t}",
"private void ordenarItems(Criterio criOrd) {\r\n // Ordenación > Desactivación Filtro\r\n desactivarFiltro(false);\r\n\r\n // Registra Criterio Ordenación\r\n this.criOrd = criOrd;\r\n\r\n // Ordenación Colección\r\n Collections.sort(CARRITO, new ComparadorItem(criOrd));\r\n\r\n // Mensaje\r\n System.out.printf(\"Items ordenados por %s%n\", criOrd.getNombre());\r\n\r\n // Pausa\r\n UtilesEntrada.hacerPausa();\r\n }",
"@Override\r\n\tpublic final String getNombreRaza() {\r\n\t\treturn \"Orco\";\r\n\t}",
"Position_ordonnee createPosition_ordonnee();",
"@Override\n public void alRechazarOperacion() {\n }",
"public interface autorOperations \r\n{\r\n boolean insertarAutor (String au_autor);\r\n String consultarAutor (int au_idautor);\r\n boolean actualizarAutor (int au_idautor, String au_autor);\r\n boolean eliminarAutor (int au_idautor);\r\n String listarAutor ();\r\n void shutdown ();\r\n}",
"private void reposicionarPersonajes() {\n // TODO implement here\n }",
"Oracion createOracion();",
"public NuevaOrden() {\n initComponents();\n this.setTitle(\"Nueva orden\");\n this.setIconImage(img.getImage());\n this.setLocationRelativeTo(null);\n control = FachadaControl.getInstance();\n modelTablaBusqueda = (DefaultTableModel) tablaProductos.getModel();\n modelTablaOrden = (DefaultTableModel) tablaOrden.getModel();\n }",
"@Override\n\tvoid geraDados() {\n\n\t}",
"public void mostrarOrdenadores() {\n\t\ttry {\n\t\t\tXPathQueryService consulta = \n\t\t\t\t\t(XPathQueryService) \n\t\t\t\t\tcol.getService(\"XPathQueryService\", \"1.0\");\n\t\t\tResourceSet r = consulta.query(\"//ordenador\");\n\t\t\tResourceIterator i = r.getIterator();\n\t\t\twhile(i.hasMoreResources()) {\n\t\t\t\tSystem.out.println(i.nextResource().getContent());\n\t\t\t}\n\t\t} catch (XMLDBException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void aggiornamento()\n {\n\t gestoreTasti.aggiornamento();\n\t \n\t /*Se lo stato di gioco esiste eseguiamo il suo aggiornamento.*/\n if(Stato.getStato() != null)\n {\n \t Stato.getStato().aggiornamento();\n }\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private void renderObjetos()\n {\n for (int i=0;i<NCONSUMIBLES;i++)\n {\n //EDIT:Ruta de Inventario\n Consumible consumible=(Consumible)VenganzaBelial.atributoGestion.getInv().getItems().get(i);\n if(eleccionJugador==i)\n {\n opcionesJugadorTTF.drawString(10,i*20+400,consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\");\n }\n else{\n opcionesJugadorTTF.drawString(10, i * 20 + 400, consumible.getNombre()+\" \"+consumible.getNumero()+\"/10\", notChosen);\n }\n }\n }",
"Position_changerOrdonnee createPosition_changerOrdonnee();",
"private void limpiarDatos() {\n\t\t\n\t}",
"public interface RangoSoloLectura {\n\n boolean getManoEnRango(int x, int y);\n boolean getManoEnRango(String mano);\n String toString();\n}",
"public void buscarGestor(){\r\n\t\t\r\n\t}",
"public void or (int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)){ // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes,auxOperacion(dirOp1,dirOp2,valor1,valor2,Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 =this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)){ // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)){ // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)){ // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)){ // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.OR));\n }\n }\n }\n }",
"public GestionProyectos() {\n initComponents();\n \n }",
"public void eventos()\n\t{\n\t\tvuelos.addActionListener(new ActionListener()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\t\t\tif(v!=null)\n\t\t\t\t{\n\t\t\t\t\tllenarPasabordos(v.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}",
"public void operacao();",
"public void executer()\r\n\t{\r\n\t\tswitch(this.type)\r\n\t\t{\r\n\t\tcase \"Gain\":\r\n\t\t\tPartie.getJoueurCourant().changeSolde(this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Perte\":\r\n\t\t\tPartie.getJoueurCourant().changeSolde(-this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Avancer\":\r\n\t\t\tPartie.getJoueurCourant().deplace(this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Aller en prison\":\r\n\t\t\tPartie.getJoueurCourant().setPosition(this.valeur);\r\n\t\t\tbreak;\r\n\t\tcase \"Sortie de prison\":\r\n\t\t\tPartie.getJoueurCourant().setEnPrison(false);\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\t}",
"public void ouvrirListe(){\n\t\n}",
"public void consultarEditorialesDAO() {\n Collection<Editorial> editoriales = em.createQuery(\"SELECT e\"\n + \" FROM Editorial e\").getResultList();\n\n //Iteramos entre autores\n for (Editorial e : editoriales) {\n\n System.out.println(e.getNombre());\n\n }\n\n }",
"public ManipularEstudiantes() {\n initComponents();\n cme = new Control_Mantenimiento_Estudiante(this);\n this.gUI_botones2.agregar_eventos(cme);\n }",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"public void actionsTouches () {\n\t\t//Gestion des deplacements du mineur si demande\n\t\tif (Partie.touche == 'g' || Partie.touche == 'd' || Partie.touche == 'h' || Partie.touche == 'b') deplacements();\n\n\t\t//Affichage du labyrinthe et des instructions, puis attente de consignes clavier.\n\t\tpartie.affichageLabyrinthe();\n\n\t\t//Quitte la partie si demande.\n\t\tif (Partie.touche == 'q') partie.quitter();\n\n\t\t//Trouve et affiche une solution si demande.\n\t\tif (Partie.touche == 's') affichageSolution();\n\n\t\t//Recommence la partie si demande.\n\t\tif (Partie.touche == 'r') {\n\t\t\tgrille.removeAll();\n\t\t\tpartie.initialisation();\n\t\t}\n\n\t\t//Affichage de l'aide si demande\n\t\tif (Partie.touche == 'a') {\n\t\t\tString texteAide = new String();\n\t\t\tswitch(themeJeu) {\n\t\t\tcase 2 : texteAide = \"Le but du jeu est d'aider Link à trouver la sortie du donjon tout en récupérant le(s) coffre(s).\\n Link doit egalement recuperer la Master Sword qui permet de tuer le monstre bloquant le chemin.\\n\\nLink se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 3 : texteAide = \"Le but du jeu est d'aider Samus à trouver la sortie du vaisseau tout en récupérant le(s) émeraude(s).\\nSamus doit egalement recuperer la bombe qui permet de tuer le metroid qui bloque l'accès à la sortie.\\n\\nSamus se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 4 : texteAide = \"Le but du jeu est d'aider le pompier à trouver la sortie du batiment tout en sauvant le(s) rescapé(s).\\nLe pompier doit egalement recuperer l'extincteur qui permet d'éteindre le feu qui bloque l'accès à la sortie.\\n\\nLe pompier se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\tcase 5 : texteAide = \"Le but du jeu est d'aider Mario à trouver le drapeau de sortie tout en ramassant le(s) pièce(s).\\nMario doit egalement recuperer l'étoile d'invincibilité qui permet de se débarasser du Goomba qui l'empêche de sortir.\\n\\nMario se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Here we gooo !\"; break;\n\t\t\tdefault : texteAide = \"Le but du jeu est d'aider le mineur à trouver la sortie du labyrinthe tout en extrayant le(s) filon(s).\\nLe mineur doit egalement recuperer la clef qui permet l'ouverture de le porte qui bloque l'accès à la sortie.\\n\\nLe mineur se déplace à l'aide des touches directionnelles.\\nUne solution peut-être affichée en appuyant sur la touche (s).\\nLa touche (r) permet de recommencer, (q) de quitter.\\n\\n Bon jeu !\"; break;\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n============================================ AIDE ========================================\\n\\n\" + texteAide + \"\\n\\n==========================================================================================\\n\");\n\t\t\tJOptionPane.showMessageDialog(null, texteAide, \"Aide\", JOptionPane.QUESTION_MESSAGE);\n\t\t\tPartie.touche = ' ';\n\t\t}\n\n\t\t//Affichage de les infos si demande\n\t\tif (Partie.touche == 'i') {\n\t\t\tSystem.out.println(\"\\n============================================ INFOS =======================================\\n\\nCe jeu a ete developpe par Francois ADAM et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\\n\\n==========================================================================================\\n\");\n\t\t\tPartie.touche = ' ';\n\t\t\tJOptionPane.showMessageDialog(null, \"Ce jeu a été développé par François Adam et Benjamin Rancinangue\\ndans le cadre du projet IPIPIP 2015.\", \"Infos\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(getClass().getResource(\"/images/EMN.png\")));\n\t\t}\n\n\t\t//Nettoyage de l'ecran de console\n\t\tSystem.out.println(\"\\n==========================================================================================\\n\");\n\t}",
"public static void main(String[] args) {\n Alumnos a = new Alumnos(\"3457794\",\"IDS\",\"A\",3,\"Juan\",\"Masculino\",158);\n //recibe: String folio,String nombre, String sexo, int edad\n Profesores p = new Profesores(\"SDW7984\",\"Dr. Pimentel\",\"Masculino\",25);\n \n //recibe: String puesto,String nombre, String sexo, int edad\n Administrativos ad = new Administrativos(\"Rectoria\",\"Jesica\",\"Femenino\",25);\n \n //datos de alumnos//\n System.out.println(\"\\nEl alumno tiene los siguientes datos:\");\n System.out.println(a.GetName());\n System.out.println(a.GetEdad());\n System.out.println(a.getCarrera());\n \n //datos de maestro//\n System.out.println(\"\\nLos datos de x maestro es:\");\n System.out.println(p.GetName());\n System.out.println(p.getFolio());\n System.out.println(p.GetEdad());\n \n //daros de Administrativo//\n System.out.println(\"\\nLos datos de x Administrativo\");\n System.out.println(ad.GetName());\n System.out.println(ad.getPuesto());\n System.out.println(ad.GetEdad());\n \n \n System.out.println(\"\\n\\nIntegranres de Equipo\");\n System.out.println(\"Kevin Serrano - 133369\");\n System.out.println(\"Luis Angel Farelo Toledo - 143404\");\n System.out.println(\"Ericel Nucamendi Jose - 133407\");\n System.out.println(\"Javier de Jesus Flores Herrera - 143372\");\n System.out.println(\"Carlos Alejandro Zenteno Robles - 143382\");\n }",
"private void opciones() {\n switch (cboTipo.getSelectedIndex()) {\n case 1:\n txtPractica.setEditable(false);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 2:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(false);\n txtTrabajo.setEditable(false);\n break;\n case 3:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(false);\n break;\n case 4:\n txtPractica.setEditable(true);\n txtLaboratorio.setEditable(true);\n txtTrabajo.setEditable(true);\n break;\n }\n\n }",
"public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }",
"@Override\n public void curar(Curandero curandero, Pieza receptor) {\n }",
"public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }",
"protected void agregarUbicacion(){\n\n\n\n }",
"private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }",
"private void agregarComponentes() {\n JButton botonEstudiante = new JButton(\"Estudiante\");\r\n JButton botonDocente = new JButton(\"Docente\");\r\n JButton botonEquipo = new JButton(\"Equipo\");\r\n\r\n botonEstudiante.addActionListener(new OyenteListaEstudiante(this));\r\n botonDocente.addActionListener(new OyenteListaDocente(this));\r\n botonEquipo.addActionListener(new OyenteListaEquipo(this));\r\n\r\n // crea objeto Box para manejar la colocación de areaConsulta y\r\n // botonEnviar en la GUI\r\n Box boxNorte = Box.createHorizontalBox();\r\n boxNorte.add(botonDocente);\r\n boxNorte.add(botonEstudiante);\r\n boxNorte.add(botonEquipo);\r\n\r\n // crea delegado de JTable para modeloTabla\r\n tablaDatosIngresdos = new JTable();\r\n add(boxNorte, BorderLayout.NORTH);\r\n\r\n add(new JScrollPane(tablaDatosIngresdos), BorderLayout.CENTER);\r\n\r\n }",
"@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}",
"@Override\n\tpublic void recreo() {\n\n\t}",
"public void VuforiaOrientator() {\n }",
"private void manejoDeModales(){\n botonTipo1.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n comprar_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto1);\n });\n botonTipo2.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto2);\n }); \n botonTipo3.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = false;\n openModalEventHandler(TIPO_MODAL_PATH, txtFieCodigoProducto3);\n }); \n botonCategoria1.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n comprar_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto1);\n }); \n botonCategoria2.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto2);\n }); \n botonCategoria3.addEventHandler(MouseEvent.MOUSE_CLICKED, (event) -> {\n obtener_es_categoria = true;\n openModalEventHandler(CATEGORIA_MODAL_PATH, txtFieCodigoProducto3);\n }); \n }",
"public int getIdOrgaos() {\n\t\treturn idOrgaos;\n\t}",
"Obligacion createObligacion();",
"private void initCoordLogic() throws SQLException {\n\t\tcoordUsuario = new CoordinadorUsuario();\n\t\tlogicaUsuario = new LogicaUsuario();\n\t\tcoordUsuario.setLogica(logicaUsuario);\n\t\tlogicaUsuario.setCoordinador(coordUsuario);\n\t\t/* Listados de ComboBox*/\n\t\trol = new RolVO();\n\t\templeado = new EmpleadoVO();\n\t}",
"public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}",
"public interface ComportementAjout {\n\n\n void ajouterEtudiant(Etudiant e, Promotion p, List<Groupe> l);\n\n}",
"String getEditore();",
"public CtrlEditGrupos() {\n edEsc = EditEscenario.getInstance();\n try {\n cd = CtrlDomain.getInstance();\n } catch (Exception e) {\n System.out.println(\"ERROR EN LA CARGA DEL CONTROLADOR DE DOMINIO\");\n }\n planEstudiosFinal = edEsc.getPlanEstudiosFinal();\n asignaturasFinal = edEsc.getAsignaturasFinal();\n restriccionesFinal = edEsc.getRestriccionesFinal();\n }",
"@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}",
"@Override\n\tpublic void acomodaVista() {\n\n\t}",
"public interface GestioneAmministratore {\n\t\n\tpublic void aggiungeAmministratore(Amministratore a);\n\n\tpublic void rimuoveAmministratore(Amministratore a);\n\n\tpublic void modificaAmministratore(Amministratore a);\n}",
"private void turnos() {\n\t\tfor(int i=0; i<JuegoListener.elementos.size(); i++){\n\t\t\tElemento elemento = JuegoListener.elementos.get(i);\n\t\t\t\n\t\t\telemento.jugar();\n\t\t}\n\t}",
"private void controladorPerfil(Controlador controlador){\n this.contUserDisplayCollective = controlador.getUserDisplayCollective();\n perfil.setControlCollective((ListSelectionListener)contUserDisplayCollective);\n inicioUser.setControlCollective((ListSelectionListener)contUserDisplayCollective);\n\n this.contUserDisplayProject = controlador.getUserDisplayProject();\n perfil.setControlProject((ListSelectionListener)contUserDisplayProject);\n inicioUser.setControlProject((ListSelectionListener)contUserDisplayProject);\n inicioAdmin.setControlProject((ListSelectionListener)contUserDisplayProject);\n \n }",
"public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y refresca el autocompletar\n\n\n\t}",
"public figuras(int opcion) {\r\n this.opcion = opcion;\r\n // this.aleatorio = aleatorio;\r\n }",
"public void mostrarMenuLectura(TomarLectura tomarLectura, Lectura lecturaActual);",
"private void carregarEventosLugares() {\n listaLugares.forEach(lugar -> {\n lugar.getCadeira().setOnMouseClicked(evento -> enviarRequisicaoSentar(lugar));\n lugar.getMao().setOnMouseClicked(evento -> enviarRequisicaoApostar(lugar.getNumeroLugar()));\n lugar.getAdicionar().setOnMouseClicked(evento -> enviarRequisicaoAdicionar());\n lugar.getRemover().setOnMouseClicked(evento -> enviarRequisicaoRemover());\n lugar.getPalpite().setOnMouseClicked(evento -> enviarRequisicaoPalpite());\n });\n }",
"@Override\r\n /**\r\n * *\r\n *Primero revisa si los apellidos con iguales, en el caso de que sean iguales\r\n *entra al if y compara por nombres, de lo contrario nunca entra al if y \r\n * compara normalmente por apellido\r\n * \r\n */ \r\n public void ordenarPersonas (){\r\n Comparator<Persona> comparacionPersona= (Persona persona1,Persona persona2)->{\r\n \r\n if(persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos())==0){\r\n return persona1.getNombres().compareToIgnoreCase(persona2.getNombres());}\r\n return persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos());\r\n }; \r\n\r\n listaPersona.sort(comparacionPersona);\r\n }",
"public void construirSetOperadores() {\n\n\t\tlabeltituloSeleccionOperador = new JLabel();\n\n\t\tcomboOperadores = new JComboBox(operadores);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboOperadores.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\t\n\n\t\tlabeltituloSeleccionOperador.setText(\"Seleccione el operador que relaciona ambas reglas\");\n\t\tpanelCentral.add(labeltituloSeleccionOperador);\n\t\tlabeltituloSeleccionOperador.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboOperadores);\n\t\tcomboOperadores.setBounds(100, 30, 150, 24);\n\t\t\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboOperadores.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}",
"public DAOTablaOperador() {\n\t\trecursos = new ArrayList<Object>();\n\t}",
"private void avaliaTagObrigatoria() throws SQLException {\r\n\t\t/*\r\n\t\t * busca as tags obrigatorias do documento.\r\n\t\t */\r\n\t\t// TODO ESTE SELECT SOH TRAZ A TAG !DOCTYPE, OU SEJA, SE ELE TRAZ AS\r\n\t\t// TAGS OBRIGATORIAS,\r\n\t\t// ENTAO ELE SOH TAH CONSIDERANDO O !DOCTYPE COMO OBRIGATORIO. OU ENTAO\r\n\t\t// TEM ALGUMA\r\n\t\t// COISA ERRADA NO BANCO DE DADOS. OBS: NA BASE DE DADOS SOH TEM\r\n\t\t// CADASTRADA UMA LINHA\r\n\t\t// COM ID_ATITUDE = 4 (TABELA ESPERADO) : (9,4,9,0,0,'','',0)\r\n\t\t// TRECHO COMENTADO E HARDCODED PARA DIMINUIR AS CONSULTAS A BANCO DE\r\n\t\t// DADOS\r\n\t\t// final String sql = \"SELECT ta.nome_tag, v.pv3 \"\r\n\t\t// + \" FROM esperado e, validante v, tipoavaliacaoerro t, tag ta \"\r\n\t\t// + \" WHERE e.idesperado=v.idesperado \"\r\n\t\t// + \" AND v.pv3=t.pv3 AND idatitude = 4 \"\r\n\t\t// + \" AND v.idtag=ta.idtag AND t.idorgao = \" + orgao;\r\n\t\t//\r\n\t\t// ResultSet rs = con.getCon().createStatement().executeQuery(sql);\r\n\t\t//\r\n\t\t// String nome = null;\r\n\t\t// ArrayList<Validado> validados = null;\r\n\t\t//\r\n\t\t// /*\r\n\t\t// * Monta as tags especificas.\r\n\t\t// */\r\n\t\t// while (rs.next()) {\r\n\t\t// nome = rs.getString(1);\r\n\t\t// validados = new ArrayList<Validado>();\r\n\t\t// validados.add(new Validado(nome, rs.getInt(2)));\r\n\t\t// this.erradosMap.put(nome, validados);\r\n\t\t// }\r\n\t\t// gambiarra?????\r\n\t\t// TRECHO HARDCODED QUE SUBSTITUI A CONSULTA AO BD ACIMA\r\n\r\n\t\tArrayList<ArmazenaErroOuAvisoAntigo> validados = new ArrayList<ArmazenaErroOuAvisoAntigo>();\r\n\r\n\t\tvalidados.add(new ArmazenaErroOuAvisoAntigo(\"!DOCTYPE\", 33));\r\n\r\n\t\tthis.erradosMap.put(\"!DOCTYPE\", validados);\r\n\r\n\t\t// FIM DO TRECHO\r\n\t\tfor (String element : this.erradosMap.keySet()) {\r\n\r\n\t\t\t/*\r\n\t\t\t * Verifica se a existencia da tag dentro do documento. N�o\r\n\t\t\t * existindo a tag, adiciona a mesma a lista de erros.\r\n\t\t\t */\r\n\t\t\tif (!tag.contains(element)) {\r\n\r\n\t\t\t\tthis.errados.addAll(this.erradosMap.get(element));\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"private void criaListaOrdenada(List<Tipo> listaOrdenada, List<AgrupamentoTipoBean> valoresMap) {\n\t\tfor (AgrupamentoTipoBean agrupamentoTipoBean : valoresMap) {\n\t\t\tlistaOrdenada.add(agrupamentoTipoBean.getTipoEvento());\n\t\t}\n\t}",
"protected abstract void onOrbCollect(Player pl);",
"public Collection<OrdenCompra> traerTodasLasOrdenesDeCompra() {\n Collection<OrdenCompra> resultado = null;\n try {\n controlOC = new ControlOrdenCompra();\n bitacora.info(\"Registro OrdenCompra Iniciado correctamente\");\n resultado = controlOC.traerTodasLasOrdenesDeCompra();\n } catch (IOException ex) {\n bitacora.error(\"No se pudo iniciar el registro OrdenCompra por \" + ex.getMessage());\n }\n return resultado;\n }",
"public TelaRelatorioFuncionarioCargo() {\n initComponents();\n funcionarios = new ArrayList<Funcionario>();\n }",
"Operations operations();",
"public DAOTablaOperador() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}",
"@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}",
"private void mostrarDatosInterfaz() {\n\t\tif (this.opcion == CREAR) {\n\t\t\tthis.campoTextoNombreUsuario.setUserData(\"\");\n\t\t\tthis.campoTextoNombreUsuario.setDisable(false);\n\t\t\tthis.campoContrasena.setUserData(\"\");\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setUserData(\"\");\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.getSelectionModel().select(\"\");\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.getSelectionModel().select(\"\");\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == EDITAR) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == VER) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(true);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(true);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(true);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(true);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(true);\n\t\t}//FIN IF ELSE\n\t}",
"Turno consultarTurno();",
"public void ordenaCatalogoJogos(TiposOrdenacao tipoOrdenacao) {\r\n\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.DEFAULT)) {\r\n\t\t\tCollections.sort(listaDeJogosComprados);\r\n\t\t}\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.DESEMPENHO)) {\r\n\t\t\tOrdenaPorDesempenho comparator = new OrdenaPorDesempenho();\r\n\t\t\tCollections.sort(listaDeJogosComprados, comparator);\r\n\t\t}\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.EXPERIENCIA)) {\r\n\t\t\tOrdenaPorExperiencia comparator = new OrdenaPorExperiencia();\r\n\t\t\tCollections.sort(listaDeJogosComprados, comparator);\r\n\t\t}\r\n\t\tif (tipoOrdenacao.equals(TiposOrdenacao.VICIO)) {\r\n\t\t\tOrdenaPorVicio comparator = new OrdenaPorVicio();\r\n\t\t\tCollections.sort(listaDeJogosComprados, comparator);\r\n\t\t}\r\n\t}",
"public void datos_elegidos(){\n\n\n }",
"public interface GestionDesProfilsOperations\r\n{\r\n /**\r\n * Read accessor for numeroGDP attribute\r\n * @return the attribute value\r\n */\r\n public short numeroGDP();\r\n\r\n /**\r\n * Operation connexion\r\n */\r\n public PostLicence.GestionDesVoeux connexion(PostLicence.IEtudiant iorEtudiant, String ine, String mdp)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation consulterProfil\r\n */\r\n public PostLicence.Etudiant consulterProfil(String ine)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation modifierProfil\r\n */\r\n public void modifierProfil(String ine, String adr)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation inscriptionGestionDesVoeux\r\n */\r\n public void inscriptionGestionDesVoeux(PostLicence.GestionDesVoeux GDesVx);\r\n\r\n}",
"public Ficha_Ingreso_Egreso() {\n initComponents();\n limpiar();\n bloquear();\n \n }",
"private void aggiornaContiFiglioRicorsivamente(Conto contoPadre) {\n\t\tString methodName = \"aggiornaContiFiglioRicorsivamente\";\n\t\tcontoPadre.setDataInizioValiditaFiltro(this.conto.getDataInizioValidita());\n\t\t\n\t\tListaPaginata<Conto> contiFiglio = contoDad.ricercaSinteticaContoFigli(contoPadre, new ParametriPaginazione(0,Integer.MAX_VALUE));\n\t\tfor (Conto contoFiglio : contiFiglio) {\n\t\t\t\n\t\t\t//TODO aggiungere qui tutti i parametri da ribaltare sui conti figli.\n\t\t\tcontoFiglio.setAttivo(contoPadre.getAttivo()); //in analisi c'è solo questo parametro!\n\t\t\t\n\t\t\tif(isContoDiLivelloDiLegge()) {\n\t\t\t\tlog.debug(methodName, \"Conto di livello di legge: aggiorno tutti i campi del figlio \" + contoFiglio.getCodice());\n\t\t\t\t\n\t\t\t\t//TODO controllare eventuali altri parametri da ribaltare ai conti figlio.\n\t\t\t\tcontoFiglio.setElementoPianoDeiConti(contoPadre.getElementoPianoDeiConti());\n\t\t\t\tcontoFiglio.setCategoriaCespiti(contoPadre.getCategoriaCespiti());\n\t\t\t\tcontoFiglio.setTipoConto(contoPadre.getTipoConto());\n\t\t\t\tcontoFiglio.setTipoLegame(contoPadre.getTipoLegame());\n\t\t\t\tcontoFiglio.setContoAPartite(contoPadre.getContoAPartite());\n\t\t\t\tcontoFiglio.setContoDiLegge(contoPadre.getContoDiLegge());\n\t\t\t\tcontoFiglio.setCodiceBilancio(contoPadre.getCodiceBilancio());\n\t\t\t\tcontoFiglio.setContoCollegato(contoPadre.getContoCollegato());\n\t\t\t} else {\n\t\t\t\tlog.debug(methodName, \"Conto NON di livello di legge: aggiorno solo il flag Attivo del figlio \" + contoFiglio.getCodice());\n\t\t\t}\n\t\t\t\n\t\t\tcontoDad.aggiornaConto(contoFiglio);\n\t\t\tlog.debug(methodName, \"Aggiornato conto figlio: \"+ contoFiglio.getCodice());\n\t\t\taggiornaContiFiglioRicorsivamente(contoFiglio);\n\t\t}\n\t}",
"public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario = 1;\r\n\t\t} else {\r\n\t\t\tthis.TituloNobiliario = 0;\r\n\t\t}\r\n\t}",
"public void agregarOrden(Orden o) {\n\t\tthis.colaOrdenes.add(o);\n\t}",
"public void generarCuestionario() {\n setLayout(null);\n \n setTitle(\"Cuestionario de Fin de Curso\"); \n \n //Con el modelo construido debemos representar uestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n \n Opcion op1 = new Opcion();\n op1.setTitulo(\"Londres\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"Roma\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Paris\");\n op3.setCorrecta(true);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Oslo\");\n op4.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Cual es la capital de Francia\");\n p1.setOpciones(opciones);\n \n //Opiciones de la pregumta Numero 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Atlantico\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Indico\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Artico\");\n op23.setCorrecta(false);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Pacifico\");\n op24.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Cual es el oceano más grande del mundo?\");\n p2.setOpciones(opciones2);\n \n //Opiciones de la pregumta Numero 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"Cristobal Colon\");\n op31.setCorrecta(true);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Cristobal Nodal\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Cuahutemoc blanco\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Cuahutemoc\");\n op34.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien descubrio América?\");\n p3.setOpciones(opciones3);\n \n //Opiciones de la pregumta Numero 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"Fernanflo\");\n op41.setCorrecta(false);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Polinesios\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"Eh vegeta\");\n op43.setCorrecta(true);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Willyrex\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Quien es el mejor youtuber?\");\n p4.setOpciones(opciones4);\n \n //Opiciones de la pregumta Numero 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Amarillo patito\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Verde Sherec\");\n op52.setCorrecta(false);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Rojo me faltas tú\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Azul\");\n op54.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5 = {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿De que color es el cielo?\");\n p5.setOpciones(opciones5);\n \n //Opiciones de la pregumta Numero 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"200\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"100\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"45\");\n op63.setCorrecta(true);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"13\");\n op64.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿De cuantas localidades se compone una memoria de 8x5?\");\n p6.setOpciones(opciones6);\n \n //Opiciones de la pregumta Numero 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Try - Catch\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"IF\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Switch - Case\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"For anidado\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que estructura condicional se recomienda usar menos en una interfaz de usuario?\");\n p7.setOpciones(opciones7);\n \n //Opiciones de la pregumta Numero 8\n Opcion op81 = new Opcion();\n op81.setTitulo(\"Access\");\n op81.setCorrecta(false);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Oracle\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"MySQL\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Mongo DB\");\n op84.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Es una base de datos no relacional de uso moderno?\");\n p8.setOpciones(opciones8);\n \n //Opiciones de la pregumta Numero 9\n Opcion op91 = new Opcion();\n op91.setTitulo(\"GitHub\");\n op91.setCorrecta(true);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"MIcrosoft teams\");\n op22.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Zoom\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"Collaborate\");\n op94.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿Es una plataforma para trabajo en línea?\");\n p9.setOpciones(opciones9);\n\n //Opiciones de la pregumta Numero 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Prog. a nivel maquina\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Prog. orientada a objetos\");\n op102.setCorrecta(true);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"MySQL\");\n op103.setCorrecta(false);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"C++\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que aprendi en este curso?\");\n p10.setOpciones(opciones10);\n\n\n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n\n //Se agrega a este list la unica prgunta que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n c.setPreguntas(preguntas);\n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la preunta\n mostrarPregunta(preguntaActual);\n \n Salir.setVisible(false);\n siguiente.setEnabled(false);\n \n }",
"@Override\r\n\tpublic void seleccionarPersona() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"public hesapekrani() {\n initComponents();\n getedits();\n \n \n }",
"public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }",
"@Override\n public void mostrarListadoEquipos(List<Equipo> equipos) {\n\n }",
"public void generTirarDados() {\n\r\n\t}",
"public void fetcherLesEo() {\r\n\t\r\n\t// Commence par fetcher les params ... et si Ok, fetche les EO !\r\n\tif (recupererValParams() && valParams != null) {\r\n\r\n\t NSArray bindings = new NSArray(valParams);\r\n\t EOQualifier qualifier = EOQualifier.qualifierWithQualifierFormat(chaineQualif, bindings);\r\n\t EOFetchSpecification fetchSpec = new EOFetchSpecification(nomEntite,qualifier, eoSortOrderings);\r\n\r\n\t fetchSpec.setRefreshesRefetchedObjects(true);\r\n\r\n\t NSArray res = null;\r\n\t res = monEc.objectsWithFetchSpecification(fetchSpec);\r\n\t listeEOFetches = res;\r\n\t \r\n\t // si on demande � ce qu'� l'init il n'y ait pas de ligne s�lectionn�e par d�faut, alors pas d'Item choisi (en cascade)\r\n\t if (noSelectionPossible) setItemChoisi(null);\r\n\t else {\r\n\t\tif (listeEOFetches != null && listeEOFetches.count() > 0)\r\n\t\t setItemChoisi((EOGenericRecord)listeEOFetches.objectAtIndex(0));\r\n\t\telse setItemChoisi(null);\r\n\t }\r\n\t}\r\n\t// les parametres n'ont pu être récupérés : vider le popUp...\r\n\telse {\r\n listeEOFetches = null;\r\n // pas d'Item choisi (en cascade)\r\n setItemChoisi(null);\r\n\t}\r\n }",
"public void generarCuestionario() {\n \n try{\n ValidarOpcionSeleccionada.validar (radios);\n }catch (OpcionNoSeleccionadaException e) {\n etiquetaRespuesta.setText(\"Debes selecionar una opcion\");\n}\n \n\n //Con el modelo construido debemos representar nuestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n Opcion op1 = new Opcion();\n op1.setTitulo(\"Inglaterra\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"México\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Italia\");\n op3.setCorrecta(false);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Francia\");\n op4.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Que país tiene más Premios Nobel de Literatura?\");\n p1.setOpciones(opciones);\n\n \n //opciones de la pregunta 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Ares\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Prometeo\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Poseidón\");\n op23.setCorrecta(true);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Hefesto\");\n op24.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Quién es el padre del cíclope Polifemo según la mitología griega?\");\n p2.setOpciones(opciones2);\n \n //opciones de la pregunta 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"J.K Rowling\");\n op31.setCorrecta(false);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Emily Bronte\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Stephen King\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Jane Austen\");\n op34.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien escribio el libro Orgullo y Prejuicio?\");\n p3.setOpciones(opciones3);\n \n //Opciones pregunta 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"El Cáliz de Fuego\");\n op41.setCorrecta(true);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Festin de Cuervos\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"El prisionero de Azkaban\");\n op43.setCorrecta(false);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Principe Mecánico\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Como se llama el cuarto libro de Harry Potter?\");\n p4.setOpciones(opciones4);\n \n //Opciones pregunta 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Dunkirk\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Los Miserables\");\n op52.setCorrecta(true);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Interestelar\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Batman: El caballero de la noche\");\n op54.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5= {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿Que película NO dirigio Chistopher Nolan?\");\n p5.setOpciones(opciones5);\n \n //Opciones pregunta 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"Joe Greene\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"Tom Brady\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"Joe Montana\");\n op63.setCorrecta(false);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"Peyton Manning\");\n op64.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿Que jugador ha ganado más MVP en la NFL?\");\n p6.setOpciones(opciones6);\n \n //Opciones pregunta 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Bayern Munich\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"Real Madrid\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Barcelona\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"Manchester United\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que equipo ha ganado más Champions League en la hsitoria?\");\n p7.setOpciones(opciones7);\n \n \n //Opciones pregunta 8\n \n Opcion op81 = new Opcion();\n op81.setTitulo(\"Tratado de Versalles\");\n op81.setCorrecta(true);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Tratado de Granada\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"Tratado de Lyon\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Tratado de Londres\");\n op84.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Como se llamo el tratado con el que se le dio fin a la PGM?\");\n p8.setOpciones(opciones8);\n \n //opciones pregunta 9 \n \n Opcion op91 = new Opcion();\n op91.setTitulo(\"Hermanos Lumiere\");\n op91.setCorrecta(false);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"Steven Spielberg\");\n op92.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Thomas Harper\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"George Mellies\");\n op94.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿A quien se le considera como el mago del cine?\");\n p9.setOpciones(opciones9);\n \n //Opciones pregunta 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Miguel Ángel\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Rafael Sanzio\");\n op102.setCorrecta(false);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"Leonardo Da Vinci\");\n op103.setCorrecta(true);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"Bernini\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que artífice NO participo en la construcción de la Basílica de San Pedro?\");\n p10.setOpciones(opciones10);\n \n \n \n //Pregunta p11 =new Pregunta();\n System.out.println(\"Fin de Cuestionario \");\n \n \n \n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n \n \n \n //Se agrega a este list las preguntas que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n // preguntas.add(p11);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n \n c.setPreguntas(preguntas);\n //Ajustamos el titulo de la primera pregunta\n mostrarPregunta (preguntaActual); \n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la pregunta\ntry{\n int opcion= Integer.parseInt (etiquetaRespuesta.getText());\n ValidarNumeroPreguntas.validar (opcion);\n }catch (NumberFormatException e) {\n \n}\n \n }",
"private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }",
"public void inicarOuvintes() {\n\t\tJBAlocar.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\texecutarTelaAlocacao();\n\t\t\t\tJTAlocar.setModel(modelAlocar = new TableModelAlocar(ManipulacaoXml.getInstace().todasAlocacoes()));\n\n\t\t\t}\n\t\t});\n\n\t\tJBDesalocar.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (JTAlocar.getSelectedRow() != -1) {\n\t\t\t\t\tAlocar alocado = modelAlocar.getAlocar(JTAlocar.getSelectedRow());\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tint op = JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\t\t\t\"Deseja Realmente desalocar o Evento: \" + alocado.getIdEvento(), \"Desalocar Evento\",\n\t\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION);\n\t\t\t\t\t\tif (op == 0) {\n\t\t\t\t\t\t\tBotaoDesalocar c = new BotaoDesalocar(alocado);\n\t\t\t\t\t\t\tprecionarControle(c);\n\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"O Evento \" + alocado.getIdEvento() + \" foi desalocado!\");\n\t\t\t\t\t\t\tmodelAlocar.removerAlocar(JTAlocar.getSelectedRow());\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (RoomsAllocationException e2) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, e2.getMessage());\n\t\t\t\t\t}\n\n\t\t\t\t} else\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Selecione uma linha da tabela para poder desalocar o evento.\",\n\t\t\t\t\t\t\t\"\", JOptionPane.ERROR_MESSAGE, null);\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tJBLocalizar.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tnew LocalizarAlocar();\n\n\t\t\t}\n\t\t});\n\t\t\n\t\tJBDesfazerAlocar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\ttry {\n\t\t\t\t\tdesfazer();\n\t\t\t\t\tJTAlocar.setModel(modelAlocar = new TableModelAlocar(ManipulacaoXml.getInstace().todasAlocacoes()));\n\t\t\t\t} catch (RoomsAllocationException e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t}",
"public interface SistemaArqOperations \r\n{\r\n int list_Arq (String nome, String[] aq, String p);\r\n String[] att_clientes ();\r\n String[] get_Arq (int a);\r\n void set_Arq (String[] aq, int idd);\r\n String get_path (int a);\r\n int qtd_clientes ();\r\n}",
"public String obtemOponente(Integer idJogador) throws RemoteException;",
"@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}",
"public void leerAlimentos();",
"public java.lang.String getOrigen(){\n return localOrigen;\n }",
"public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}",
"public static void registrarOrden(java.sql.Connection conexion, ArrayList<String> datos, String orden){\n try { \n crearDeclaracionPreparada(conexion, datos, orden).executeUpdate(); //Ejecutamos la orden de tipo Query creada a partir de la orden y datos dados\n if(conexion.isClosed() == false)//si la conexion está abierta la cerramos\n conexion.close();\n } catch (SQLException ex) {\n System.out.println(\"\\n\\n\\n\"+ex); //Imprimimos el error en consola en caso de fallar \n } \n }",
"public interface IRecepteur {\n\t\n\t\n\t/**\n\t * Methode permettant de recevoir un porcelet\n\t * @param p le porcelet \n\t */\n\tpublic void recevoir(IPorcelet p);\n\t\n\t/**\n\t * Methode permettant d'acceder au porcelet en dessous\n\t * @return le porcelet en dessous : Null si c'est une case, un porcelet sinon\n\t */\n\tpublic IRecepteur quiEstEnDessous();\n\t\n\t/** \n\t * Methode qui retourne la case sur laquelle se trouve le porcelet\n\t * renvoie null si le recepteur est une case\n\t **/\n\tpublic ICase retourneLaCase() ;\n\t\n\t/**\n\t * Methode permettant d'acceder au porcelet au dessus\n\t * @return le porcelet au dessus : Null si il n'y a personne, un porcelet sinon\n\t */\n\tpublic IRecepteur quiEstAuDessus();\n\t\n\t/** \n\t * Predicat pour tester si le porcelet occupe la case\n\t **/\n\tpublic boolean estSurLaCase(ICase c) ;\n\t\n\t/**\n\t * Methode utilisee uniquement pour les porcelets\n\t * @return le joueur proprietaire du porcelet\n\t */\n\tpublic IJoueur quiEstMonMaitre();\n\n}",
"public void mostrarSocios()\n\t{\n\t\t//titulo libro, autor\n\t\tIterator<Socio> it=socios.iterator();\n\t\t\n\t\tSystem.out.println(\"***********SOCIOS***********\");\n\t\tSystem.out.printf(\"\\n%-40s%-40s\", \"NOMBRE\" , \"APELLIDO\");\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tSocio socio=(Socio)it.next();\n\t\t\tSystem.out.printf(\"\\n%-40s%-40s\\n\",socio.getNombre(),socio.getApellidos());\n\t\t}\n\t}"
] | [
"0.69682604",
"0.6440004",
"0.6361715",
"0.63061273",
"0.6279832",
"0.60926485",
"0.60688704",
"0.5995961",
"0.5926036",
"0.59190404",
"0.58934987",
"0.58746445",
"0.5857962",
"0.58359426",
"0.579327",
"0.5790406",
"0.5763325",
"0.5745814",
"0.57387125",
"0.57266176",
"0.5717904",
"0.56762004",
"0.56627226",
"0.56623036",
"0.56535643",
"0.5652317",
"0.56497633",
"0.5638683",
"0.5637",
"0.5633132",
"0.56326914",
"0.5629887",
"0.5613603",
"0.561148",
"0.56113774",
"0.56072617",
"0.5605659",
"0.560016",
"0.5583506",
"0.55818623",
"0.5578134",
"0.55671066",
"0.5561676",
"0.55598027",
"0.55508596",
"0.55360526",
"0.55281025",
"0.5520243",
"0.55201054",
"0.5518045",
"0.55116206",
"0.5510411",
"0.5510411",
"0.5506765",
"0.55059385",
"0.5504721",
"0.5482899",
"0.5480048",
"0.54793787",
"0.54770076",
"0.5476603",
"0.54756284",
"0.5473558",
"0.5467688",
"0.54662037",
"0.54646873",
"0.54631007",
"0.5458531",
"0.54567975",
"0.5454196",
"0.5447276",
"0.5445277",
"0.54381424",
"0.54349667",
"0.54329985",
"0.5431242",
"0.5429932",
"0.5428589",
"0.5423798",
"0.54226714",
"0.5420198",
"0.5415648",
"0.5414111",
"0.54138625",
"0.541159",
"0.54105973",
"0.5408738",
"0.5408703",
"0.54051346",
"0.54022175",
"0.5401735",
"0.5397278",
"0.539542",
"0.53877705",
"0.5380399",
"0.5375864",
"0.53732127",
"0.5372022",
"0.53691286",
"0.536901",
"0.53659046"
] | 0.0 | -1 |
/ Resolution du probleme Design | public void Resolution(double[] x, NodesVector nvector, PipesVector pvector, DiametersVector dvector,
TapsVector tvector, double outflow, double PrixMax, double[] ACoeff, int[] AIRow, int[] AIColumn,
int[] AIColumn2, int L, double[] c, boundkey[] bkx, double[] blx, double[] bux, double lcom) {
/* constraints definition */
mosek.boundkey[] bkc = new mosek.boundkey[m];
double[] blc = new double[m];
InitializeConstraints(bkc, blc, nvector, pvector, tvector, outflow, PrixMax, lcom);
/* Call solver */
Solver solver = null;
try {
solver = new Solver();
} catch (Exception ex) {
ex.printStackTrace();
}
solver.lp(m, n, L, bkc, blc, Cste, bkx, blx, bux, AIColumn, AIColumn2, AIRow, ACoeff, x, c);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic String getProblem() {\n\t\treturn \"Le circuit est vide\";\n\t}",
"@Override\n protected void adicionarLetrasErradas() {\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }",
"@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }",
"void prosegui(String messaggio);",
"@Override\n\tpublic void initialisation_type_exercice() {\n\t\tthis.setEnnonce_exo(\"Ecrire un algorithme qui demande deux nombres à l’utilisateur et l’informe ensuite si le produit est négatif ou positif (on inclut cette fois le traitement du cas où le produit peut être nul). Attention toutefois, on ne doit pas calculer le produit !\");\n\n\t}",
"protected abstract boolean useReasoner();",
"protected Problem() {/* intentionally empty block */}",
"public void setProblema(String problema) {\n this.problema = problema;\n insertProblema();\n }",
"@Override\r\n\tpublic String getProblemDescription() {\n\t\treturn null;\r\n\t}",
"public boolean needsProblem();",
"public String validate() {\n\t\tString msg=\"\";\n\t\t// for name..\n\t\tif(name==null||name.equals(\"\"))\n\t\t{\n\t\t\tmsg=\"Task name should not be blank or null\";\n\t\t}\n\t\tif(name.split(\" \").length>1)\n\t\t{\n\t\t\tmsg=\"multiple words are not allowed\";\n\t\t}\n\t\telse\n\t\t{\n\t\t for(int i=0;i<name.length();i++)\n\t\t {\n\t\t\t char c=name.charAt(i);\n\t\t\t\tif(!(Character.isDigit(c)||Character.isLetter(c)))\n\t\t\t\t{\n\t\t\t\t\tmsg=\"special characters are not allowed\";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t }\n\t\t}\n\t\t\t\n\t\t\n\t\t\t// for Description...\n\t\t\tif(desc==null||desc.equals(\"\"))\n\t\t\t{\n\t\t\t\tmsg=\"Task descrshould not be blank or null\";\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t // for tag...\n\t\t\t \n\t\t\t if(tag==null||tag.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tmsg=\"Task tags not be blank or null\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t // for date { imp here}\n\t\t\t if(tarik!=null)\n\t\t\t {\n\t\t\t SimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\t sdf.setLenient(false); // very imp here..\n\t\t\t try {\n\t\t\t\tDate d=sdf.parse(tarik);\n\t\t\t} catch (ParseException e) {\n\t\t\t\t\n\t\t\t//\tmsg=\"date should be correct foramat\";\n\t\t\t\tmsg=e.getMessage();\n\t\t\t}\n\t\t\t }\n\t\t\t// for prority..\n\t\t\t if(prio<1&&prio>10)\n\t\t\t {\n\t\t\t\t msg=\"prority range is 1 to 10 oly pa\";\n\t\t\t }\n\t\t\t\t\n\t\t\t\tif(msg.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\treturn Constant.SUCCESS;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\treturn msg;\n\t}",
"private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }",
"List<E> resoudre (\n ProblemeAbstrait <E, A> probleme, \n HeuristiqueAbstrait<E> heuristique\n );",
"public String getProblema() {\n return problema;\n }",
"public void RealizarDiagnostico() {\n\t\tSystem.out.println(\"realizar dicho diagnostico con los sintomas presentados por el paciente\");\r\n\t}",
"protected abstract void showHint();",
"public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }",
"private void addQuestion() {\n Question q = new Question(\n \"¿Quien propuso la prueba del camino básico ?\", \"Tom McCabe\", \"Tom Robert\", \"Tom Charlie\", \"Tom McCabe\");\n this.addQuestion(q);\n\n\n Question q1 = new Question(\"¿Qué es una prueba de Caja negra y que errores desean encontrar en las categorías?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \" determina la funcionalidad del sistema\", \" determina la funcionalidad del sistema\");\n this.addQuestion(q1);\n Question q2 = new Question(\"¿Qué es la complejidad ciclomática es una métrica de calidad software?\", \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\", \"esta basada en la funcionalidad de los módulos del programa\", \"basada en el cálculo del número\", \"basada en el cálculo del número\");\n this.addQuestion(q2);\n //preguntas del quiz II\n Question q3=new Question(\"Las pruebas de caja blanca buscan revisar los caminos, condiciones, \" +\n \"particiones de control y datos, de las funciones o módulos del sistema; \" +\n \"para lo cual el grupo de diseño de pruebas debe:\",\n \"Conformar un grupo de personas para que use el sistema nuevo\",\n \"Ejecutar sistema nuevo con los datos usados en el sistema actual\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\",\n \"Generar registro de datos que ejecute al menos una vez cada instrucción\");\n this.addQuestion(q3);\n Question q4=new Question(\"¿Las pruebas unitarias son llamadas?\",\n \"Pruebas del camino\", \"Pruebas modulares\",\n \"Pruebas de complejidad\", \"Pruebas modulares\");\n this.addQuestion(q4);\n Question q5=new Question(\"¿Qué es una prueba de camino básico?\",\n \"Hace una cobertura de declaraciones del código\",\n \"Permite determinar si un modulo esta listo\",\n \"Técnica de pueba de caja blanca\",\n \"Técnica de pueba de caja blanca\" );\n this.addQuestion(q5);\n Question q6=new Question(\"Prueba de camino es propuesta:\", \"Tom McCabe\", \"McCall \", \"Pressman\",\n \"Tom McCabe\");\n this.addQuestion(q6);\n Question q7=new Question(\"¿Qué es complejidad ciclomatica?\",\"Grafo de flujo\",\"Programming\",\n \"Metrica\",\"Metrica\");\n this.addQuestion(q7);\n //preguntas del quiz III\n Question q8 = new Question(\n \"¿Se le llama prueba de regresión?\", \"Se tienen que hacer nuevas pruebas donde se han probado antes\",\n \"Manten informes detallados de las pruebas\", \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\");\n this.addQuestion(q8);\n Question q9 = new Question(\"¿Cómo se realizan las pruebas de regresión?\",\n \"Selección de los usuarios que van a realizar las pruebas\",\n \"Se tienen que hacer nuevas pruebas donde se han probado antes\", \"A través de herramientas de automatización de pruebas\", \"A través de herramientas de automatización de pruebas\");\n this.addQuestion(q9);\n Question q10 = new Question(\"¿Cuándo ya hay falta de tiempo para ejecutar casos de prueba ya ejecutadas se dejan?\",\n \"En primer plano\", \"En segundo plano\", \"En tercer plano\", \"En segundo plano\");\n this.addQuestion(q10);\n //preguntas del quiz IV\n Question q11 = new Question(\n \"¿En qué se enfocan las pruebas funcionales?\",\n \"Enfocarse en los requisitos funcionales\", \"Enfocarse en los requisitos no funcionales\",\n \"Verificar la apropiada aceptación de datos\", \"Enfocarse en los requisitos funcionales\");\n this.addQuestion(q11);\n Question q12 = new Question(\"Las metas de estas pruebas son:\", \"Verificar la apropiada aceptación de datos\",\n \"Verificar el procesamiento\", \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\",\n \"Verificar la apropiada aceptación de datos, procedimiento y recuperación\");\n this.addQuestion(q12);\n Question q13 = new Question(\"¿En qué estan basadas este tipo de pruebas?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Técnicas de cajas negra\", \"Técnicas de cajas negra\");\n this.addQuestion(q13);\n //preguntas del quiz V\n Question q14 = new Question(\n \"¿Cúal es el objetivo de esta técnica?\", \"Identificar errores introducidos por la combinación de programas probados unitariamente\",\n \"Decide qué acciones tomar cuando se descubren problemas\",\n \"Verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Identificar errores introducidos por la combinación de programas probados unitariamente\");\n this.addQuestion(q14);\n Question q15 = new Question(\"¿Cúal es la descripción de la Prueba?\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\",\n \"Describe cómo verificar que las interfaces entre las componentes de software funcionan correctamente\");\n this.addQuestion(q15);\n Question q16 = new Question(\"Por cada caso de prueba ejecutado:\",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Esta basada en la funcionalidad de los módulos del programa\",\n \"Comparar el resultado esperado con el resultado obtenido\", \"Comparar el resultado esperado con el resultado obtenido\");\n this.addQuestion(q16);\n //preguntas del quiz VI\n Question q17 = new Question(\n \"Este tipo de pruebas sirven para garantizar que la calidad del código es realmente óptima:\",\n \"Pruebas Unitarias\", \"Pruebas de Calidad de Código\",\n \"Pruebas de Regresión\", \"Pruebas de Calidad de Código\");\n this.addQuestion(q17);\n Question q18 = new Question(\"Pruebas de Calidad de código sirven para: \",\n \"Hace una cobertura de declaraciones del código, ramas, caminos y condiciones\",\n \"Verificar que las especificaciones de diseño sean alcanzadas\",\n \"Garantizar la probabilidad de tener errores o bugs en la codificación\", \"Garantizar la probabilidad de tener errores o bugs en la codificación\");\n this.addQuestion(q18);\n Question q19 = new Question(\"Este análisis nos indica el porcentaje que nuestro código desarrollado ha sido probado por las pruebas unitarias\",\n \"Cobertura\", \"Focalización\", \"Regresión\", \"Cobertura\");\n this.addQuestion(q19);\n\n Question q20 = new Question( \"¿Qué significa V(G)?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Regiones\");\n this.addQuestion(q20);\n\n Question q21 = new Question( \"¿Qué significa A?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Aristas\");\n this.addQuestion(q21);\n\n Question q22 = new Question( \"¿Qué significa N?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos\", \"Número de Nodos\");\n this.addQuestion(q22);\n\n Question q23 = new Question( \"¿Qué significa P?\",\n \"Número de Regiones\", \"Número de Aristas\", \"Número de Nodos Predicado\", \"Número de Nodos Predicado\");\n this.addQuestion(q23);\n Question q24 = new Question( \"De cuantás formas se puede calcular la complejidad ciclomatica V(G):\",\n \"3\", \"1\", \"2\", \"3\");\n this.addQuestion(q24);\n\n // END\n }",
"@Override\n protected void initErrorLookup() {\n errorLookup[0] = \"Wrong number of parameters\";\n errorLookup[1] = \"Invalid airline code\";\n errorLookup[2] = \"Invalid airline ID\";\n errorLookup[3] = \"Invalid source airport code\";\n errorLookup[4] = \"Invalid source airport ID\";\n errorLookup[5] = \"Invalid destination airport code\";\n errorLookup[6] = \"Invalid destination airport ID\";\n errorLookup[7] = \"Invalid value for codeshare\";\n errorLookup[8] = \"Invalid value for number of stops\";\n errorLookup[9] = \"Invalid equipment code\";\n errorLookup[10] = \"Duplicate route\";\n errorLookup[11] = \"Unknown error\";\n }",
"public interface ProblemInfo {\n}",
"private void obtainProblem(){\n followers = frame.getFollowers();\n followers = Math.min(followers, CreatureFactory.getStrongestMonster().getFollowers() * Formation.MAX_MEMBERS);\n maxCreatures = frame.getMaxCreatures();\n heroes = frame.getHeroes();//is this field needed?\n prioritizedHeroes = frame.getHeroes(Priority.ALWAYS);\n //create boss formation\n LinkedList<Creature> list = new LinkedList<>();\n list.add(frame.getBoss());\n bossFormation = new Formation(list);\n containsRandomBoss = bossFormation.containsRandomHeroes();\n yourRunes = frame.getYourRunes();\n for (int i = 0; i < Formation.MAX_MEMBERS; i++){\n //System.out.println(yourRunes[i]);\n if (!(yourRunes[i] instanceof Nothing)){\n hasRunes = true;\n //System.out.println(\"hasRunes\");\n break;\n }\n }\n \n NHWBEasy = heroes.length == 0 && prioritizedHeroes.length == 0 && frame.getBoss().getMainSkill().WBNHEasy() && !hasRunes && !containsRandomBoss;\n \n }",
"@Override\n public void computeSatisfaction() {\n\n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"public final void nonRedefinissableParEnfant(){\n\n }",
"@Override public String getQueso(){\n return \"manchego \";\n }",
"public Validacion(String descripcion) {\n super(descripcion);\n }",
"@Override\n\tpublic String getDescription() {\n\t\treturn \"Transfereix vida a l'enemic\";\n\t}",
"@Override\n protected void getExras() {\n }",
"public interface Plateau {\r\n\r\n\t/**\r\n\t * Pour afficher la solution pendant le jeu\r\n\t * \r\n\t * @param msg\r\n\t * solution à afficher en mode dev\r\n\t */\r\n\tpublic void setMsgDev(String msg); // afficher le code chercher\r\n\r\n\t/**\r\n\t * Effacer le champs de proposition\r\n\t */\r\n\tpublic void cleanProposition();\r\n\r\n\t/**\r\n\t * Rajouter des valeurs dans le tableau de jeu\r\n\t * \r\n\t * @param results\r\n\t * tableau de jeu (propositions et resultats précédents)\r\n\t */\r\n\tpublic void setValues(String[][] results);\r\n\r\n\t/**\r\n\t * Faire une proposition de combinaison\r\n\t * \r\n\t * @param string\r\n\t * combinaison\r\n\t */\r\n\tpublic void setProposition(String string);\r\n\r\n\t/**\r\n\t * valide la combinaison saisie\r\n\t */\r\n\tpublic void validerSaisie();\r\n\r\n\t/**\r\n\t * actualise l'affichage en cas de changement\r\n\t */\r\n\tpublic void actualiserAffichage();\r\n}",
"@Override\n\tpublic void Examinar() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec ao ser examinada\\n\");\t\n\t}",
"int getProblemCategory();",
"@Override\n\tprotected void getExras() {\n\n\t}",
"public static String ValidacionComida(String codigoComida, String nombreComida, String precioComida, String calorias) {\n\t\t\tif(!Comida.menuComidas.containsKey(codigoComida)) {\n\t\t\t\tComida.agregarComida(codigoComida, nombreComida,precioComida,calorias);\n\t\t\t\treturn \"La comida se ha agregado en el menú.\";\n\t\n\t\t\t}else {\n\t\t\t\treturn \"Este código ya se encuenta en el menú. La comida no ha sido agregada al menú.\";\n\t\t\t}\t\t\n\t}",
"private void afficheSuiv(){\n\t\ttry{ // Essayer ceci\n\t\t\tif(numCourant <= rep.taille()){\n\t\t\t\tnumCourant ++;\n\t\t\t\tPersonne e = rep.recherchePersonne(numCourant); // Rechercher la personne en fonction du numCourant\n\t\t\t\tafficherPersonne(e);\n\t\t\t}else{\n\t\t\t\tafficherMessageErreur();\n\t\t\t}\n\t\t}catch(Exception e){ // Permet de voir s'il y a cette exception\n\t\t\tafficherMessageErreur();\n\t\t\tnumCourant --;\n\t\t}\n\t}",
"@Override\n public String getReason()\n {\n return null;\n }",
"@Override\r\n\tprotected String getErrorInfo(String str, String cmds) {\n\t\treturn null;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tprivate String getInvalidMsg() {\n\t\t\n\t\tString retMsg = null;\n\t\t\n\t\tfinal HashSet<Integer>[] pOrders = new HashSet[] {\n\t\t\tnew HashSet<Integer>(8),\t//channel 0\n\t\t\tnew HashSet<Integer>(8),\t//channel 1\n\t\t\tnew HashSet<Integer>(8),\t//channel 2\n\t\t\tnew HashSet<Integer>(8)\t\t//channel 3\n\t\t};\n\t\t\n\t\tfor( int i = 0; i < getTableModel().getRowCount(); i++ ) {\n\t\t\tVideoEntry ve = getTableModel().getRowAt(i);\n\t\t\t\n\t\t\tfor( int j = 0; j < ve.getPlayOrder().length; j++ ) {\n\t\t\t\tif( pOrders[ve.getChannel()].contains(ve.getPlayOrder()[j]))\n\t\t\t\t\treturn \"Duplicate play order found for the \" + UIUtils.CRLF\n\t\t\t\t\t\t+ \" theme '\" + ve.getFileName()\n\t\t\t\t\t\t+ \"', choose a different play order.\";\n\n\t\t\t\tpOrders[ve.getChannel()].add( ve.getPlayOrder()[j] );\n\t\t\t}\n\n\t\t}\n\t\t\n\t\tif( getTableModel().getRowCount() <= 0 )\n\t\t\tretMsg = \"At least one theme file must be in this play list\";\n\t\t\n\t\treturn retMsg;\n\t}",
"public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}",
"@Override\n\tpublic String getDescription() {\n\t\treturn \"?\";\n\t}",
"@Override\n public String getDescription() {\n return \"Digital goods feedback\";\n }",
"protected boolean func_70041_e_() { return false; }",
"public void correctErrors();",
"@Override\n\tprotected void validators() {\n\t\tString nsrmc = getDj_nsrxx().getNsrmc();\n\n\t\tif (ValidateUtils.isNullOrEmpty(nsrmc)) {\n\t\t\tthis.setSystemMessage(\"纳税人名称不能为空\", true, null);\n\t\t}\n\n\t}",
"java.lang.String getReason();",
"private String bossReject(){\n return \"我覺得你們需要重做,因為跟我想的不一樣\";\n }",
"private void checkRep() throws RuntimeException {\r\n \t\r\n \t//check edge label\r\n if (this.label == null) {\r\n throw new RuntimeException(\"Edge label is undefined\");\r\n }\r\n \r\n //check parent node\r\n if (this.pnode.getName().toString().length() == 0) {\r\n throw new RuntimeException(\"Parent node name is invalid\");\r\n }\r\n\r\n if (this.pnode.getName() == null) {\r\n throw new RuntimeException(\"Parent node name is undefined\");\r\n }\r\n \r\n //check child node\r\n if (this.cnode.getName().toString().length() == 0) {\r\n throw new RuntimeException(\"Child node name is invalid\");\r\n }\r\n \r\n if (this.cnode.getName() == null) {\r\n throw new RuntimeException(\"Child node name is undefined\");\r\n }\r\n \r\n }",
"@Override\n public String descripcion() {\n return \"Viaje incentivo que te envia la empresa \" + empresa;\n }",
"@Override\n public void perish() {\n \n }",
"private boolean getNeedTitle()\r\n\t{\n\t\tif (new EditionSpeService().ficheProducteurNeedEngagement()==false)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Si on interdit d'afficher un des deux blocs : pas de titre\r\n\t\tif ((peMesContrats.canPrintContrat==ImpressionContrat.JAMAIS) || (peMesContrats.canPrintContratEngagement==ImpressionContrat.JAMAIS))\r\n\t\t{\t\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Sinon, il faut un titre\r\n\t\treturn true;\r\n\t}",
"private String notFound() {\n\t\tquestionBot.put(owner.id(), \"Desculpe, não entendi sua resposta\");\n\t\treturn buildMessage(questionBot.get(owner.id()));\n\t}",
"public String getReason();",
"public void choixduJeu() {\n afficheMessage(\"*- Choisissez le jeu auquel vous voulez jouer : \\n- R pour Recherche +/-\\n- M pour Mastermind\");\n choixJeu = Console.saisieListeDeChoix(\"R|M\");\n afficheMessage(\"*- Choisissez le mode de jeu auquel vous voulez jouer :\\n- C pour Challenger,\\n- U pour Duel\\n- D pour Defense\");\n choixModeJeu = Console.saisieListeDeChoix(\"C|U|D\");\n }",
"public String getDescription()\r\n {\r\n return \"unknow\";\r\n }",
"private void correctError()\r\n\t{\r\n\t\t\r\n\t}",
"public interface QuestView {\n\n void showError(String message);\n}",
"public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}",
"public String preValidar() {\n\t\tString errores = \"\";\r\n\t\t\r\n\t\tif (email == null || email.equals(\"\")) {\r\n\t\t\terrores = errores + \"indique el e-mail</br>\";\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\tif(!isValidEmailAddress()){\r\n\t\t\t\terrores = errores + \"indique un e-mail válido</br>\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (contrasenya == null || contrasenya.equals(\"\")) {\r\n\t\t\terrores = errores + \"indique la contraseña</br>\";\r\n\t\t} else {\r\n\t\t\tif(!isValidPwd()){\r\n\t\t\t\terrores = errores + \"la contraseña debe contener\"\r\n\t\t\t\t\t\t+ \" al menos 8 caracteres, y estos deben ser\"\r\n\t\t\t\t\t\t+ \"alfanuméricos</br>\";\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn errores;\r\n\t}",
"String failureReason();",
"public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }",
"private void poetries() {\n\n\t}",
"private int showProblem(Connection conn, int classId, int probId, String testType,PrePostProblemDefn p) throws SQLException {\n String host= Settings.prePostProblemURI;\r\n String url = host + p.getUrl();\r\n if (url != null)\r\n this.src.append(\"<img src=\\\"\" + url +\"\\\" /><p/>\\n\");\r\n String descr = p.getDescr();\r\n this.src.append(descr + \"<p/>\\n\");\r\n int ansType = p.getAnsType();\r\n if (ansType == PrePostProblemDefn.MULTIPLE_CHOICE) {\r\n String ansA,ansB,ansC,ansD,ansE;\r\n String ansAURL,ansBURL,ansCURL,ansDURL,ansEURL;\r\n ansA= p.getaAns();\r\n if (ansA == null) {\r\n ansAURL = p.getaURL();\r\n if (ansAURL != null)\r\n this.src.append(\"a: <img src=\\\"\" + host +ansAURL + \"\\\"><br/>\\n\");\r\n }\r\n else this.src.append(\"a: \" + ansA + \"<br/>\\n\");\r\n ansB= p.getbAns();\r\n if (ansB == null) {\r\n ansBURL = p.getbURL();\r\n if (ansBURL != null)\r\n this.src.append(\"b: <img src=\\\"\" + host +ansBURL + \"\\\"><br/>\\n\");\r\n }\r\n else this.src.append(\"b: \" + ansB + \"<br/>\\n\");\r\n ansC= p.getcAns();\r\n if (ansC == null) {\r\n ansCURL = p.getcURL();\r\n if (ansCURL != null)\r\n this.src.append(\"c: <img src=\\\"\" + host +ansCURL + \"\\\"><br/>\\n\");\r\n }\r\n else this.src.append(\"c: \" + ansC + \"<br/>\\n\");\r\n ansD= p.getdAns();\r\n if (ansD == null) {\r\n ansDURL = p.getdURL();\r\n if (ansDURL != null)\r\n this.src.append(\"d: <img src=\\\"\" + host + ansDURL + \"\\\"><br/>\\n\");\r\n }\r\n else if (ansD != null) this.src.append(\"d: \" + ansD + \"<br/>\\n\");\r\n ansE= p.geteAns();\r\n if (ansE == null) {\r\n ansEURL = p.geteURL();\r\n if (ansEURL != null)\r\n this.src.append(\"e: <img src=\\\"\" + host +ansEURL + \"\\\"><br/>\\n\");\r\n }\r\n else if (ansE != null) this.src.append(\"e: \" + ansE + \"<br/>\\n\");\r\n\r\n }\r\n return ansType;\r\n }",
"public void designBasement() {\n\t\t\r\n\t}",
"private void queryProblems(Message msg, String[] parameters) {\n if(data.isEmpty())\n loadData();\n\n // Bounds on the problem number and year number\n resetParams();\n\n int section = -1;\n int currentOption = -1;\n\n int success = 0;\n for(int i = 1; i < parameters.length; i++) {\n if(success == -1)\n return;\n\n String parameter = parameters[i];\n\n switch(currentOption) {\n case 0:\n success = restrictYear(msg, parameter, section);\n currentOption = -1;\n break;\n case 1:\n success = restrictProblem(msg, parameter);\n currentOption = -1;\n break;\n case 2:\n section = restrictSection(msg, parameter);\n // If -1, we need to break to avoid errors\n success = section;\n currentOption = -1;\n break;\n default:\n if (parameter.matches(\"-y(ear)?\")) {\n currentOption = 0;\n } else if (parameter.matches(\"-p(roblem)?\")) {\n currentOption = 1;\n } else if(parameter.matches(\"-s(ection)?\")) {\n currentOption = 2;\n } else {\n MessageChannel ch = msg.getChannel();\n ch.sendMessage(\"`Error: Invalid option in query [not -s, -y, or -p]. Query terminated.`\").queue();\n return;\n }\n }\n }\n\n // Check if last command is in error\n if(success == -1)\n return;\n\n // Assign section if none selected\n if(section == -1) {\n section = rng.nextInt(2);\n lowerYear = LOWER_YEARS[section];\n upperYear = UPPER_YEARS[section];\n }\n\n int problem = getValue(lowerProblem, upperProblem);\n int year = getValue(lowerYear, upperYear);\n\n queryImage(msg, year, problem, section);\n }",
"@Test\n public void nao_deve_aceitar_descricao_com_a_primeira_letra_minuscula() {\n telefone.setDescricao(\"celular empresarial.\");\n assertFalse(isValid(telefone, \"A descrição não pode conter acentos, caracteres especiais e números.\", Find.class));\n }",
"@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }",
"@Override\n public String getMessage(){\n \n }",
"@Override\n protected String getDescription() {\n return null;\n }",
"@Override\n\tprotected Mesure _resoudre(Unite probleme, Mesure source) {\n\t\tMesure g = null;\n\t\tUniteCompose u = (UniteCompose)probleme,\n\t\tsu = (UniteCompose) source.getUnite();\n\t\t\n\t\tMesure mf = new Mesure(1, su.getFirst());\n\t\tmf.setConvertisseur(new ConvertisseurDistance());\n\t\tmf = mf.convertir(u.getFirst());\n\t\t\n\t\tMesure ml = new Mesure(1, su.getLast());\n\t\tml.setConvertisseur(new ConvertisseurTemps());\n\t\tml = ml.convertir(u.getLast());\n\t\t\n\t\t//application selon la regle de grandeur\n\t\tGrandeur gr = source.getUnite().getGrandeur();\n\t\tHashMap<String, Double> val = new HashMap<String, Double>();\n\t\tval.put(Grandeur.Distance, mf.getValeur());\n\t\tval.put(Grandeur.Temps, ml.getValeur());\n\t\t\n\t\tg = new Mesure(source.getValeur() * gr.evaluer(val), probleme);\n\t\t\n\t\treturn g;\n\t}",
"@Override\n\tpublic void selfValidate() {\n\t\t\n\t}",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"java.lang.String getErrorInfo();",
"public boolean erreurStandard1() {\r\n\t\t\t\r\n\t\t\t//Initialisation du booléen, identification des champs à vérifer \r\n\t\t\tboolean verif = false;\r\n\t\t\tWebElement messageErreur = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[.='Out of range (>= 0).']\")));\r\n\t\t\t\r\n\t\t\t//Vérification\r\n\t\t\tif (messageErreur.isDisplayed()) {\r\n\t\t\t\tverif = true;\r\n\t\t\t}\r\n\t\t\treturn verif;\r\n\t\t}",
"@Override\n\tpublic void procesar() throws WrongValuesException, ExcEntradaInconsistente {\n\n\t}",
"int getProblemType();",
"private boolean validate(){\n return EditorUtils.editTextValidator(generalnformation,etGeneralnformation,\"Type in information\") &&\n EditorUtils.editTextValidator(symptoms,etSymptoms, \"Type in symptoms\") &&\n EditorUtils.editTextValidator(management,etManagement, \"Type in management\");\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public boolean erreurStandard2() {\r\n\t\t\t\r\n\t\t\t//Initialisation du booléen, identification des champs à vérifer \r\n\t\t\tboolean verif = false;\r\n\t\t\tWebElement messageErreur = wait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(\"//div[.='Out of range (0 ~ 59).']\")));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Vérification\r\n\t\t\tif (messageErreur.isDisplayed()) {\r\n\t\t\t\tverif = true;\r\n\t\t\t}\r\n\t\t\treturn verif;\r\n\t\t}",
"public void NPCCreation(){\r\n\t\t\r\n\t\t//Unicorn\r\n\t\tDialogueManager dialogueManagerUnicorn = new DialogueManager(new DialogueStage(\"Snif snif\"));\r\n\t\tdialogueManagerUnicorn .addDialogueStage(new DialogueStage(\"someone stole my horne\"));\r\n\t\tdialogueManagerUnicorn .addDialogueStage(new DialogueStage(\"I was quietly floundering in the water when a pervert, sadistic and psychopath\\n\"\r\n\t\t\t\t+ \"took my beautiful, sumptuous, flamboyant horn !\"));\r\n\t\tdialogueManagerUnicorn .addDialogueStage(new DialogueStage(\"Please, find it for me !!\"));\r\n\t\tunicornSentences.add(dialogueManagerUnicorn );\r\n\t\tunicorn = new NPC(\"Coro\", \"The castle guardian\", unicornSentences);\r\n\t\t\r\n\t\t//Otis\r\n\t\tDialogueManager dialogueManagerOtis = new DialogueManager(new DialogueStage(\"Snif snif\"));\r\n\t\tdialogueManagerOtis.addDialogueStage(new DialogueStage(\"Mais, vous savez, moi je ne crois pas \\n\"\r\n\t\t\t\t+ \"qu'il y ait de bonne ou de mauvaise situation.\\n\"\r\n\t\t\t\t+ \" Moi, si je devais resumer ma vie aujourd\\'hui \\n\"\r\n\t\t\t\t+ \"avec vous, je dirais que c\\'est d\\'abord des \\n\"\r\n\t\t\t\t+ \"rencontres, des gens qui m\\'ont tendu la main, \\n\"\r\n\t\t\t\t+ \"peut-etre a un moment ou je ne pouvais pas, ou \\n\"\r\n\t\t\t\t+ \"j\\'etais seul chez moi et c\\'est assez curieux \\n\"\r\n\t\t\t\t+ \"de se dire que les hasards, les rencontres forgent \\n\"\r\n\t\t\t\t+ \" une destinee... Parce que quand on a le gout \\n\"\r\n\t\t\t\t+ \"de la chose, quand on a le gout de la chose bien \\n\"\r\n\t\t\t\t+ \"faite, le beau geste, parfois on ne trouve pas \\n\"\r\n\t\t\t\t+ \"l\\'interlocuteur en face, je dirais, le miroir \\n\"\r\n\t\t\t\t+ \"qui vous aide a avancer. Or, ce n\\'est pas mon \\n\"\r\n\t\t\t\t+ \"cas, comme je le disais la, puisque moi au contraire,\\n\"\r\n\t\t\t\t+ \" j\\'ai pu ; et je dis merci a la vie, je lui dis merci,\\n\"\r\n\t\t\t\t+ \" je chante la vie, je danse la vie... Je ne suis qu\\'amour ! \\n\"\r\n\t\t\t\t+ \"Et finalement, quand beaucoup de gens aujourd\\'hui me disent \\n\"\r\n\t\t\t\t+ \"\\\"Mais comment fais-tu pour avoir cette humanite ?\\\",\\n\"\r\n\t\t\t\t+ \" eh ben je leur reponds tres simplement, je leur dis\\n\"\r\n\t\t\t\t+ \" que c\\'est ce gout de l\\'amour, ce gout donc qui\\n\"\r\n\t\t\t\t+ \" m\\'a pousse aujourd\\'hui a entreprendre une\\n\"\r\n\t\t\t\t+ \" construction mecanique, mais demain, qui sait, \\n\"\r\n\t\t\t\t+ \"peut-etre seulement a me mettre au service de la communaute,\\n\"\r\n\t\t\t\t+ \" a faire le don, le don de soi...\"));\r\n\t\totisSentences.add(dialogueManagerOtis);\r\n\t\totis = new NPC(\"Otis\",\" Villager who gives the purpose of the game and the sense of life\", otisSentences);\r\n\t\t\r\n\t\t//In the banquet hall\r\n\t\t\r\n\t\t//Guest\r\n\t\tDialogueManager dialogueManagerGuest = new DialogueManager(new DialogueStage(\"Hello!\"));\r\n\t\tdialogueManagerGuest.addDialogueStage(new DialogueStage(\"someone stole my horne\"));\r\n\t\tdialogueManagerGuest .addDialogueStage(new DialogueStage(\"I am very honored to see the savior of our dear unicorn!\"));\r\n\t\tdialogueManagerGuest .addDialogueStage(new DialogueStageChoice(\"Do you want to see the queen ?\",new ArrayList<>(Arrays.asList(\"yes\",\"no\")),0));\r\n\r\n\t\tDialogueManager dialogueManagerGuest2 = new DialogueManager(new DialogueStageGiveObject(\"Here i have the 'laisser-passer A38', it can help you in your quest. \\n\"\r\n\t\t\t\t+ \"Good Luck\",new ItemCreation().getA38()));\r\n\t\tguestSentences.add(dialogueManagerGuest);\r\n\t\tguestSentences.add(dialogueManagerGuest2);\r\n\t\tguest = new NPC(\"Coro\", \"The castle guardian\", guestSentences);\r\n\r\n///////************* A REFAIRE *******************\r\n\r\n\t\t//villager 1\r\n\t\tDialogueManager dialogueManagerVillager1 = new DialogueManager(new DialogueStage(\"Hello!\"));\r\n\t\tdialogueManagerVillager1.addDialogueStage(new DialogueStage(\"Go see my friend Otis in the courtyard, he will gives you the meaning of this game\"));\r\n\t\tvillager1Sentences.add(dialogueManagerVillager1);\r\n\t\tvillager1 = new NPC(\"Edwin\", \"Villager : Lets get the sense of the game\", villager1Sentences);\r\n\r\n\r\n\r\n\t\t//villager 2\r\n\t\tDialogueManager dialogueManagerVillager2 = new DialogueManager(new DialogueStage(\"I saw someone go in the stable,\"));\r\n\t\tdialogueManagerVillager2.addDialogueStage(new DialogueStage(\"I saw someone go in the stable,\\n\"\r\n\t\t\t\t+ \"he seemed hurried \\n\"\r\n\t\t\t\t+ \"and suspect. Have you seen my... \\n\"\r\n\t\t\t\t+ \"spoon ?\"));\r\n\t\tvillager2Sentences.add(dialogueManagerVillager2);\r\n\t\tvillager2 = new NPC(\"Theodore\", \"Villager : Gives an indication of the thief\", villager2Sentences);\r\n\r\n\t\t//villager 3\r\n\t\tDialogueManager dialogueManagerVillager3 = new DialogueManager(new DialogueStage(\"Hello!\"));\r\n\t\tdialogueManagerVillager3.addDialogueStage(new DialogueStage(\"Such a nice banquet, it is the season of the berries, what to cook...\"));\r\n\t\tvillager3Sentences.add(dialogueManagerVillager3);\r\n\t\tvillager3 = new NPC(\"Brunissen\", \"Villager : Gives a hint for the next steps\", villager3Sentences);\r\n\r\n\t\t//villager 4\r\n\t\tDialogueManager dialogueManagerVillager4 = new DialogueManager(new DialogueStage(\"Hello!\"));\r\n\t\tdialogueManagerVillager4.addDialogueStage(new DialogueStage(\"I guess the stable is closed. The Queen may have the key\"));\r\n\t\tvillager4Sentences.add(dialogueManagerVillager4);\r\n\t\tvillager4 = new NPC(\"Adelaide\", \"Give an indication for next steps\", villager4Sentences);\r\n\r\n\t\t\r\n\t\t//In the vestibule\r\n\r\n\t\t//guard 1\r\n\t\tDialogueManager dialogueManagerGuard1 = new DialogueManager(new DialogueStage(\"Do you want to see the queen ? \\n\"));\r\n\t\tdialogueManagerGuard1.addDialogueStage(new DialogueStage(\"someone stole my horne\"));\r\n\t\tdialogueManagerGuard1 .addDialogueStage(new DialogueStageChoice(\"Do you have the 'laisser-passer A38' ?\",new ArrayList<>(Arrays.asList(\"yes\",\"no\")),0));\r\n\t\tDialogueManager dialogueManagerGuard12 = new DialogueManager (new DialogueStage(\"Go , but we keep an eye on you !\"));\r\n\t\tDialogueManager dialogueManagerGuard13 = new DialogueManager(new DialogueStageExitJail(\"And you think that we will let you pass without authorization!\\n\"\r\n\t\t\t\t+ \"Go in jail, beggar !\",new Exit(roomCr.getAllRooms().get(6),roomCr.getAllRooms().get(7))));\r\n\t\tguard1Sentences.add(dialogueManagerGuard1);\r\n\t\tguard1Sentences.add(dialogueManagerGuard12);\r\n\t\tguard1Sentences.add(dialogueManagerGuard13);\r\n\t\tguard1 = new NPC(\"Alphonse\", \"Protects the queen from people who bother her\", guard1Sentences);\r\n\r\n\r\n\t\t// guard 2\r\n\t\tDialogueManager dialogueManagerGuard2 = new DialogueManager(new DialogueStage(\"...\"));\r\n\t\tguard2Sentences.add(dialogueManagerGuard2);\r\n\t\tguard2 = new NPC(\"Amori\", \"Monitors all the actions of passers-by \", guard2Sentences);\r\n\r\n\t\t// guard 3\r\n\t\tDialogueManager dialogueManagerGuard3 = new DialogueManager(new DialogueStage(\"...\"));\r\n\t\tguard3Sentences.add(dialogueManagerGuard3);\r\n\t\tguard3 = new NPC(\"Amora\", \"Monitors all the actions of passers-by \", guard2Sentences);\r\n\r\n\t\t//guard 4\r\n\t\tDialogueManager dialogueManagerGuard4 = new DialogueManager(new DialogueStage(\"...\"));\r\n\t\tguard4Sentences.add(dialogueManagerGuard4);\r\n\t\tguard4 = new NPC(\"granola\", \"Monitors all the actions of passers-by \", guard2Sentences);\r\n\r\n\t\t//In the throne hall\r\n\t\tDialogueManager dialogueManagerThroneGuard1 = new DialogueManager(new DialogueStage(\"The murderer, he wanted to kill our queen with raspberry !!\\n\"));\r\n\t\tDialogueManager dialogueManagerThroneGuard12 =new DialogueManager (new DialogueStageExitJail(\"Cassius, send up this man in jail !\",new Exit(roomCr.getAllRooms().get(6),roomCr.getAllRooms().get(7))));\r\n\t\tthroneGuard1Sentences.add(dialogueManagerThroneGuard1);\r\n\t\tthroneGuard1Sentences.add(dialogueManagerThroneGuard12);\r\n\t\tthroneGuard1 = new NPC(\"Boniface\", \"Be careful of what you do ...\", throneGuard1Sentences);\r\n\r\n\t\t//throneGuard 2\r\n\t\tDialogueManager dialogueManagerThroneGuard2 = new DialogueManager(new DialogueStage(\"...\"));\r\n\t\tthroneGuard2Sentences.add(dialogueManagerThroneGuard2);\r\n\t\tthroneGuard2 = new NPC(\"Cassius\", \"Monitors all the actions of passers-by \", throneGuard2Sentences);\r\n\r\n\r\n\t\t//queenCounsel\r\n\t\tDialogueManager dialogueManagerCounsel1 = new DialogueManager(new DialogueStage(\"The queen is very hungry, she will not talk so much without \\n\"\r\n\t\t\t\t+ \"her favorite cake\"));\r\n\t\tDialogueManager dialogueManagerCounsel2 = new DialogueManager(new DialogueStage(\"Very disturbing events are taking place in the kingdom. \\n\"\r\n\t\t\t\t+ \"Only the unicorn can save us ! \"));\r\n\t\tqueenCounselSentences.add(dialogueManagerCounsel1);\r\n\t\tqueenCounselSentences.add(dialogueManagerCounsel2);\r\n\t\tqueenCounsel = new NPC(\"Bertille\", \"She advises on what the queen likes eat\", queenCounselSentences);\r\n\r\n\t\t//Queen\r\n\t\tDialogueManager dialogueManagerQueen1 = new DialogueManager(new DialogueStage(\"I love blueberries\"));\r\n\t\tDialogueManager dialogueManagerQueen2 = new DialogueManager(new DialogueStage(\"No, no !! How dare you !\\n\"\r\n\t\t\t\t+ \"Are you not tired of giving me raspberry \\n\"\r\n\t\t\t\t+ \"I can not bear that name! \\n\"\r\n\t\t\t\t+ \"I will show you how a queen dies,\\n\"\r\n\t\t\t\t+ \"I will show you the direction of the JAIL\"));\r\n\t\tDialogueManager dialogueManagerQueen3 = new DialogueManager(new DialogueStage(\"OOOOh a blueberries cake, my favorite flavour ! \\n\"\r\n\t\t\t\t+ \"Take ,brave knight, the key of the stable. \\n\"\r\n\t\t\t\t+ \"But quickly, the thief is leaving !\"));\r\n\t\tqueenSentences.add(dialogueManagerQueen1);\r\n\t\tqueenSentences.add(dialogueManagerQueen2);\r\n\t\tqueenSentences.add(dialogueManagerQueen3);\r\n\t\tqueen = new NPC(\"Bertille\", \"She advises on what the queen likes eat\", queenSentences);\r\n\r\n\t\t//kitchenHelp\r\n\t\tDialogueManager dialogueManagerKitchenHelp1= new DialogueManager(new DialogueStage(\"You have nothing to do here ! Get out\"));\r\n\t\tDialogueManager dialogueManagerKitchenHelp2= new DialogueManager(new DialogueStage(\"Do you want a cake for the queen ? \\n\"\r\n\t\t\t\t+ \"I need : eggs, flour, raspberries, sugar, white chocolate\"));\r\n\t\tDialogueManager dialogueManagerKitchenHelp3= new DialogueManager(new DialogueStage(\"Ah finally someone helpful in this kitchen ! \\n\"\r\n\t\t\t\t+ \"Here is the muffin of the queen !\"));\r\n\t\tkitchenHelpSentences.add(dialogueManagerKitchenHelp1);\r\n\t\tkitchenHelpSentences.add(dialogueManagerKitchenHelp2);\r\n\t\tkitchenHelpSentences.add(dialogueManagerKitchenHelp3);\r\n\t\tkitchenHelp = new NPC(\"Linguini\", \"He is a kitchen helper\", kitchenHelpSentences);\r\n\r\n\t\t//kitchenChef\r\n\t\tDialogueManager dialogueManagerKitchenChef1= new DialogueManager(new DialogueStage(\"You have nothing to do here ! Get out\"));\r\n\t\tDialogueManager dialogueManagerKitchenChef2= new DialogueManager(new DialogueStage(\"Do you want a cake for the queen ? \\n\"\r\n\t\t\t\t+ \"I need : eggs, flour, blueberries, sugar, white chocolate\"));\r\n\t\tDialogueManager dialogueManagerKitchenChef3= new DialogueManager(new DialogueStage(\"Ah finally someone helpful in this kitchen ! \\n\"\r\n\t\t\t\t+ \"Here is the muffin of the queen !\"));\r\n\t\tkitchenChefSentences.add(dialogueManagerKitchenChef1);\r\n\t\tkitchenChefSentences.add(dialogueManagerKitchenChef2);\r\n\t\tkitchenChefSentences.add(dialogueManagerKitchenChef3);\r\n\t\tkitchenChef = new NPC(\"Gusto\", \"He is a kitchen chef\", kitchenChefSentences);\r\n\r\n\t\t//saucier\r\n\t\tDialogueManager dialogueManagerSaucier1= new DialogueManager(new DialogueStage(\"You have nothing to do here ! Get out\"));\r\n\t\tDialogueManager dialogueManagerSaucier2= new DialogueManager(new DialogueStage(\"What do you want? \\n\"\r\n\t\t\t\t+ \"Do I look like someone who makes cakes ? \\n\"\r\n\t\t\t\t+ \"I am a 'saucier' chef, I'm the one who takes care of sauces.\\n\"\r\n\t\t\t\t+ \"Do I look like someone who makes muffins ? \\n\"\r\n\t\t\t\t+ \"Nobody respects people like me ...\\n\"\r\n\t\t\t\t+ \"I am the best saucier ever !!\"));\r\n\t\tsaucierSentences.add(dialogueManagerSaucier1);\r\n\t\tsaucierSentences.add(dialogueManagerSaucier2);\r\n\t\tkitchenHelp = new NPC(\"Linguini\", \"He is a kitchen helper\", saucierSentences);\r\n\r\n\t\t//thief\r\n\t\tDialogueManager dialogueManagerThief1= new DialogueManager(new DialogueStage(\"Do you want to get back your corn ? \\n \"\r\n\t\t\t\t+ \"come with me they are totally crazy in this castle \\n\"\r\n\t\t\t\t+ \"I will give a lot of money with this corn \\n\"\r\n\t\t\t\t+ \"people loves corns of unicorn\"));\r\n\t\tdialogueManagerThief1 .addDialogueStage(new DialogueStageChoice(\"So you come with me to live a king's life, or you stay here in a crap life ?\",new ArrayList<>(Arrays.asList(\"yes\",\"no\")),0));\r\n\t\tDialogueManager dialogueManagerThief2= new DialogueManager(new DialogueStage(\"come on bro ! on horseback !\"));\r\n\t\tDialogueManager dialogueManagerThief3= new DialogueManager(new DialogueStage(\"Stop it ! take your stupid corn and get out of my sight\"));\r\n\t\tthiefSentences.add(dialogueManagerThief1);\r\n\t\tthiefSentences.add(dialogueManagerThief2);\r\n\t\tthiefSentences.add(dialogueManagerThief3);\r\n\t\tthief = new NPC(\"Gusto\", \"He is a kitchen chef\", thiefSentences);\r\n\r\n\t\t//blueberryChest\r\n\t\tDialogueManager dialogueManagerBlueberryChest1= new DialogueManager(new DialogueStageInput(\"To unlock me, answer to this question ... \\n\"\r\n\t\t\t\t+ \"As soon as I am called, I do not exist anymore. Who am I ?\",new ArrayList<>(Arrays.asList(\"\"))));\r\n\t\tDialogueManager dialogueManagerBlueberryChest2= new DialogueManager(new DialogueStage(\"Wrong, retry !\"));\r\n\t\tDialogueManager dialogueManagerBlueberryChest3= new DialogueManager (new DialogueStageGiveObject(\"Congratulations, take the bluberries !\",new ItemCreation().getBlueberry()));\r\n\t\tblueberryChestSentences.add(dialogueManagerBlueberryChest1);\r\n\t\tblueberryChestSentences.add(dialogueManagerBlueberryChest2);\r\n\t\tblueberryChestSentences.add(dialogueManagerBlueberryChest3);\r\n\t\tblueberryChest = new NPC(\"Coffre 1\", \"locked chest\", blueberryChestSentences);\r\n\r\n\t\t//raspberryChest\r\n\t\tDialogueManager dialogueManagerRaspberryChest1= new DialogueManager(new DialogueStageInput(\"To unlock me, answer to this question ... \\n\"\r\n\t\t\t\t+ \"What is this thing that lengthens in the hands,\\n\"\r\n\t\t\t\t+ \" When it is passed between the breasts and when it is inserted into a slot?\",new ArrayList<>(Arrays.asList(\"\"))));\r\n\t\tDialogueManager dialogueManagerRaspberryChest2= new DialogueManager(new DialogueStage(\"Wrong, retry !\"));\r\n\t\tDialogueManager dialogueManagerRaspberryChest3= new DialogueManager (new DialogueStageGiveObject(\"Congratulations, take the raspberries !\",new ItemCreation().getRaspberry()));\r\n\t\traspberryChestSentences.add(dialogueManagerRaspberryChest1);\r\n\t\traspberryChestSentences.add(dialogueManagerRaspberryChest2);\r\n\t\traspberryChestSentences.add(dialogueManagerRaspberryChest3);\r\n\t\traspberryChest = new NPC(\"Coffre 2\", \"locked chest\", raspberryChestSentences);\r\n\r\n\r\n\t\tDialogueManager dialogueManagerEmptyChest1= new DialogueManager(new DialogueStageInput(\"To unlock me, answer to this question ... \\n\"\r\n\t\t\t\t+ \"Find what it may be : \\n\"\r\n\t\t\t\t+ \"It is better than god \\n\"\r\n\t\t\t\t+ \"It is worst than devil\\n\"\r\n\t\t\t\t+ \"Poor people have it.\\n\"\r\n\t\t\t\t+ \"Rich people needs it\\n\"\r\n\t\t\t\t+ \"If we eat it, we die .\\n\"\r\n\t\t\t\t+ \"It is faster than the light\",new ArrayList<>(Arrays.asList(\"\"))));\r\n\t\tDialogueManager dialogueManagerEmptyChest2 = new DialogueManager(new DialogueStage(\"Wrong, retry !\"));\r\n\t\tDialogueManager dialogueManagerEmptyChest3 = new DialogueManager(new DialogueStage(\"Congratulation, you get the solution\"));\r\n\t\temptyChestSentences.add(dialogueManagerEmptyChest1);\r\n\t\temptyChestSentences.add(dialogueManagerEmptyChest2);\r\n\t\temptyChestSentences.add(dialogueManagerEmptyChest3);\r\n\t\temptyChest = new NPC(\"Coffre 3\", \"locked chest\", emptyChestSentences);\r\n\r\n\t\tDialogueManager dialogueManagerwhiteChocolateChest1= new DialogueManager(new DialogueStageInput(\"To unlock me, answer to this question ... \\n\"\r\n\t\t\t\t+ \"The bigger I am, the less you see me. Who am I ?\",new ArrayList<>(Arrays.asList(\"\"))));\r\n\t\tDialogueManager dialogueManagerwhiteChocolateChest2 = new DialogueManager(new DialogueStage(\"Wrong, retry !\"));\r\n\t\tDialogueManager dialogueManagerwhiteChocolateChest3 = new DialogueManager(new DialogueStageGiveObject(\"Congratulation, take the white chocolate\",new ItemCreation().getWhiteChocolate()));\r\n\t\twhiteChocolateChestSentences.add(dialogueManagerwhiteChocolateChest1);\r\n\t\twhiteChocolateChestSentences.add(dialogueManagerwhiteChocolateChest2);\r\n\t\twhiteChocolateChestSentences.add(dialogueManagerwhiteChocolateChest3);\r\n\t\twhiteChocolateChest = new NPC(\"Coffre 4\", \"locked chest\", whiteChocolateChestSentences);\r\n\t\t}",
"public void refrescarForeignKeysDescripcionesCierreCaja() throws Exception {\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\tCierreCajaConstantesFunciones.refrescarForeignKeysDescripcionesCierreCaja(this.cierrecajaLogic.getCierreCajas());\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE || Constantes.ISUSAEJBHOME) {\r\n\t\t\tCierreCajaConstantesFunciones.refrescarForeignKeysDescripcionesCierreCaja(this.cierrecajas);\r\n\t\t}\r\n\t\t\r\n\t\t/*\r\n\t\tArrayList<Classe> classes=new ArrayList<Classe>();\r\n\t\t\r\n\t\tclasses.add(new Classe(Empresa.class));\r\n\t\tclasses.add(new Classe(Sucursal.class));\r\n\t\tclasses.add(new Classe(Usuario.class));\r\n\t\tclasses.add(new Classe(TipoFormaPago.class));\r\n\t\t\t\r\n\t\tif(Constantes.ISUSAEJBLOGICLAYER) {\r\n\t\t\t//USA LOS OBJETOS DE LOGIC DIRECTAMENTE\r\n\t\t\t//cierrecajaLogic.setCierreCajas(this.cierrecajas);\r\n\t\t\tcierrecajaLogic.deepLoadsWithConnection(false, DeepLoadType.INCLUDE, classes,\"\");\r\n\t\r\n\t\t} else if(Constantes.ISUSAEJBREMOTE) {\r\n\t\t} else if(Constantes.ISUSAEJBHOME) {\r\n\t\t}\r\n\t\t*/\t\t\t\t\r\n\t}",
"@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }",
"public void bienvenida(){\n System.out.println(\"Bienvenid@ a nuestro programa de administracion de parqueos\");\n }",
"@Override\r\n\tprotected void validate() {\n\t}",
"public static void affichageErreur (int codeErreur) {\n\t\tSystem.out.println(\"\\n\\n!!!!!!!!!! ATTENTION !!!!!!!!!!\\n\");\n\t\tString messageErreur;\n\n\t\tswitch (codeErreur) {\n\t\tcase 1 : messageErreur = \"Une ligne comporte moins d'elements que les autres !\"; break;\n\t\tcase 2 : messageErreur = \"Un caractere inconnu a ete detecte !\"; break;\n\t\tcase 3 : messageErreur = \"Le labyrinthe n'a pas une seule entree !\"; break;\n\t\tcase 4 : messageErreur = \"Le labyrinthe n'a pas une seule sortie !\"; break;\n\t\tcase 5 : messageErreur = \"Le labyrinthe n'a pas de filon !\"; break;\n\t\tcase 6 : messageErreur = \"Trop de filons ont été demandés par rapport au nombre de cases vides du labyrinthe !\"; break;\n\t\tdefault : messageErreur = \"Erreur non repertoriee.\"; break;\n\t\t}\n\n\t\tSystem.out.println(messageErreur+\"\\nLe programme va s'interrompre.\");\n\t\tJOptionPane.showMessageDialog(null, messageErreur, \"Erreur\", JOptionPane.ERROR_MESSAGE);\t\t\n\t\tSystem.exit(0);\n\t}",
"public void generarCuestionario() {\n \n try{\n ValidarOpcionSeleccionada.validar (radios);\n }catch (OpcionNoSeleccionadaException e) {\n etiquetaRespuesta.setText(\"Debes selecionar una opcion\");\n}\n \n\n //Con el modelo construido debemos representar nuestra pregunta\n //y mostrarala\n //Primero creamos las opciones\n Opcion op1 = new Opcion();\n op1.setTitulo(\"Inglaterra\");\n op1.setCorrecta(false);\n\n Opcion op2 = new Opcion();\n op2.setTitulo(\"México\");\n op2.setCorrecta(false);\n\n Opcion op3 = new Opcion();\n op3.setTitulo(\"Italia\");\n op3.setCorrecta(false);\n\n Opcion op4 = new Opcion();\n op4.setTitulo(\"Francia\");\n op4.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones = {op1, op2, op3, op4};\n Pregunta p1 = new Pregunta();\n p1.setTitulo(\"¿Que país tiene más Premios Nobel de Literatura?\");\n p1.setOpciones(opciones);\n\n \n //opciones de la pregunta 2\n Opcion op21 = new Opcion();\n op21.setTitulo(\"Ares\");\n op21.setCorrecta(false);\n\n Opcion op22 = new Opcion();\n op22.setTitulo(\"Prometeo\");\n op22.setCorrecta(false);\n\n Opcion op23 = new Opcion();\n op23.setTitulo(\"Poseidón\");\n op23.setCorrecta(true);\n\n Opcion op24 = new Opcion();\n op24.setTitulo(\"Hefesto\");\n op24.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones2 = {op21, op22, op23, op24};\n Pregunta p2 = new Pregunta();\n p2.setTitulo(\"¿Quién es el padre del cíclope Polifemo según la mitología griega?\");\n p2.setOpciones(opciones2);\n \n //opciones de la pregunta 3\n Opcion op31 = new Opcion();\n op31.setTitulo(\"J.K Rowling\");\n op31.setCorrecta(false);\n\n Opcion op32 = new Opcion();\n op32.setTitulo(\"Emily Bronte\");\n op32.setCorrecta(false);\n\n Opcion op33 = new Opcion();\n op33.setTitulo(\"Stephen King\");\n op33.setCorrecta(false);\n\n Opcion op34 = new Opcion();\n op34.setTitulo(\"Jane Austen\");\n op34.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones3 = {op31, op32, op33, op34};\n Pregunta p3 = new Pregunta();\n p3.setTitulo(\"¿Quien escribio el libro Orgullo y Prejuicio?\");\n p3.setOpciones(opciones3);\n \n //Opciones pregunta 4\n Opcion op41 = new Opcion();\n op41.setTitulo(\"El Cáliz de Fuego\");\n op41.setCorrecta(true);\n\n Opcion op42 = new Opcion();\n op42.setTitulo(\"Festin de Cuervos\");\n op42.setCorrecta(false);\n\n Opcion op43 = new Opcion();\n op43.setTitulo(\"El prisionero de Azkaban\");\n op43.setCorrecta(false);\n\n Opcion op44 = new Opcion();\n op44.setTitulo(\"Principe Mecánico\");\n op44.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones4 = {op41, op42, op43, op44};\n Pregunta p4 = new Pregunta();\n p4.setTitulo(\"¿Como se llama el cuarto libro de Harry Potter?\");\n p4.setOpciones(opciones4);\n \n //Opciones pregunta 5\n Opcion op51 = new Opcion();\n op51.setTitulo(\"Dunkirk\");\n op51.setCorrecta(false);\n\n Opcion op52 = new Opcion();\n op52.setTitulo(\"Los Miserables\");\n op52.setCorrecta(true);\n\n Opcion op53 = new Opcion();\n op53.setTitulo(\"Interestelar\");\n op53.setCorrecta(false);\n\n Opcion op54 = new Opcion();\n op54.setTitulo(\"Batman: El caballero de la noche\");\n op54.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones5= {op51, op52, op53, op54};\n Pregunta p5 = new Pregunta();\n p5.setTitulo(\"¿Que película NO dirigio Chistopher Nolan?\");\n p5.setOpciones(opciones5);\n \n //Opciones pregunta 6\n Opcion op61 = new Opcion();\n op61.setTitulo(\"Joe Greene\");\n op61.setCorrecta(false);\n\n Opcion op62 = new Opcion();\n op62.setTitulo(\"Tom Brady\");\n op62.setCorrecta(false);\n\n Opcion op63 = new Opcion();\n op63.setTitulo(\"Joe Montana\");\n op63.setCorrecta(false);\n\n Opcion op64 = new Opcion();\n op64.setTitulo(\"Peyton Manning\");\n op64.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones6 = {op61, op62, op63, op64};\n Pregunta p6 = new Pregunta();\n p6.setTitulo(\"¿Que jugador ha ganado más MVP en la NFL?\");\n p6.setOpciones(opciones6);\n \n //Opciones pregunta 7\n Opcion op71 = new Opcion();\n op71.setTitulo(\"Bayern Munich\");\n op71.setCorrecta(false);\n\n Opcion op72 = new Opcion();\n op72.setTitulo(\"Real Madrid\");\n op72.setCorrecta(true);\n\n Opcion op73 = new Opcion();\n op73.setTitulo(\"Barcelona\");\n op73.setCorrecta(false);\n\n Opcion op74 = new Opcion();\n op74.setTitulo(\"Manchester United\");\n op74.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones7 = {op71, op72, op73, op74};\n Pregunta p7 = new Pregunta();\n p7.setTitulo(\"¿Que equipo ha ganado más Champions League en la hsitoria?\");\n p7.setOpciones(opciones7);\n \n \n //Opciones pregunta 8\n \n Opcion op81 = new Opcion();\n op81.setTitulo(\"Tratado de Versalles\");\n op81.setCorrecta(true);\n\n Opcion op82 = new Opcion();\n op82.setTitulo(\"Tratado de Granada\");\n op82.setCorrecta(false);\n\n Opcion op83 = new Opcion();\n op83.setTitulo(\"Tratado de Lyon\");\n op83.setCorrecta(false);\n\n Opcion op84 = new Opcion();\n op84.setTitulo(\"Tratado de Londres\");\n op84.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones8 = {op81, op82, op83, op84};\n Pregunta p8 = new Pregunta();\n p8.setTitulo(\"¿Como se llamo el tratado con el que se le dio fin a la PGM?\");\n p8.setOpciones(opciones8);\n \n //opciones pregunta 9 \n \n Opcion op91 = new Opcion();\n op91.setTitulo(\"Hermanos Lumiere\");\n op91.setCorrecta(false);\n\n Opcion op92 = new Opcion();\n op92.setTitulo(\"Steven Spielberg\");\n op92.setCorrecta(false);\n\n Opcion op93 = new Opcion();\n op93.setTitulo(\"Thomas Harper\");\n op93.setCorrecta(false);\n\n Opcion op94 = new Opcion();\n op94.setTitulo(\"George Mellies\");\n op94.setCorrecta(true);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones9 = {op91, op92, op93, op94};\n Pregunta p9 = new Pregunta();\n p9.setTitulo(\"¿A quien se le considera como el mago del cine?\");\n p9.setOpciones(opciones9);\n \n //Opciones pregunta 10\n Opcion op101 = new Opcion();\n op101.setTitulo(\"Miguel Ángel\");\n op101.setCorrecta(false);\n\n Opcion op102 = new Opcion();\n op102.setTitulo(\"Rafael Sanzio\");\n op102.setCorrecta(false);\n\n Opcion op103 = new Opcion();\n op103.setTitulo(\"Leonardo Da Vinci\");\n op103.setCorrecta(true);\n\n Opcion op104 = new Opcion();\n op104.setTitulo(\"Bernini\");\n op104.setCorrecta(false);\n\n //Sigue el arreglo de opcion\n Opcion[] opciones10 = {op101, op102, op103, op104};\n Pregunta p10 = new Pregunta();\n p10.setTitulo(\"¿Que artífice NO participo en la construcción de la Basílica de San Pedro?\");\n p10.setOpciones(opciones10);\n \n \n \n //Pregunta p11 =new Pregunta();\n System.out.println(\"Fin de Cuestionario \");\n \n \n \n //Vamos a adaptar el cuestioanario a lo que ya teniamos\n Cuestionario c = new Cuestionario();\n //Creamos el list de preguntas\n \n \n \n //Se agrega a este list las preguntas que tenemos\n preguntas.add(p1);\n preguntas.add(p2);\n preguntas.add(p3);\n preguntas.add(p4);\n preguntas.add(p5);\n preguntas.add(p6);\n preguntas.add(p7);\n preguntas.add(p8);\n preguntas.add(p9);\n preguntas.add(p10);\n // preguntas.add(p11);\n //A este list le vamos a proporcionar el valor del correspondiente\n //cuestioanrio\n \n c.setPreguntas(preguntas);\n //Ajustamos el titulo de la primera pregunta\n mostrarPregunta (preguntaActual); \n//Primero ajustamos el titulo de la primer pregunta en la etiqueta de la pregunta\ntry{\n int opcion= Integer.parseInt (etiquetaRespuesta.getText());\n ValidarNumeroPreguntas.validar (opcion);\n }catch (NumberFormatException e) {\n \n}\n \n }",
"WinningCombination getDescription();",
"private String makeUserReadableMessage(String username, String projectStr) {\n //return \"User \" + username + \" requested projects '\" + projectStr + \"' but may not access one or more of them.\";\n return \"You do not have permission to view or edit the project.\";\n }",
"public void choicePersonage() {\n\t\tSystem.out.println(\"souhaitez-vous créer un guerrier ou un magicien ?\");\n\t\tchoice = sc.nextLine().toLowerCase();\t\t\t\n\t\tSystem.out.println(\"Vous avez saisi : \" + choice);\n\t\tif(!(choice.equals(MAGICIEN) || choice.equals(GUERRIER))) {\n\t\t\tchoicePersonage();\n\t\t}\n\t\tsaisieInfoPersonage(choice);\n\t}",
"@Override\n public void setReason( String arg0)\n {\n \n }",
"@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}",
"public static void main(String[] args) {\n String matriz = \"ABCDEFGHIJLMNOPQRSTUVWXYZ\";\n Ejercicio1 c = new Ejercicio1();\n String retorno;\n String mensaje = JOptionPane.showInputDialog(\"Digite el mensaje\");\n// Convierte el mensaje a mayusculas\n mensaje = mensaje.toUpperCase();\n c.llenaMatriz(matriz);\n retorno = c.aTap(mensaje);\n JOptionPane.showMessageDialog(null, retorno);\n\n //Fin de la Primera parte del examen\n /*\n Inicio de la Segunda parte del examen\n */\n /*\n String[] lista = {\" auto \", \" pato \", \" palo \", \" poto \", \" amar \", \" amor \",\n \" loca \", \" loco \", \" polo \", \" poco \", \" poca \", \" rota \", \" roto \"};\n AdminPalabras admin = new AdminPalabras( lista );\n String[] letras = {\" escalopa \", \" automotor\", \" percatado\"};\n for(int i = 0; i < letras . length ; i ++) {\n int cont = admin .ContarPalabrasPosibles(letras [i ]);\n JOptionPane.showMessageDialog(null,letras [i] + \": \" + cont );\n }*/\n //Fin de la Segunda parte del Examen\n }",
"public void resolution() {\n\t\tLigneProposition essai = new LigneProposition(p.getNbTrou());\n\t\t\n\t\tfor(int i = 0; i < p.getNbTrou(); i++) {\n\t\t\tessai.setAt(i, 1 + (int)(Math.random() * ((p.getNbCouleur() -1))));\n\t\t}\n\t\t\n\t\tp.ajouterEssai(essai);\n\t}",
"protected String validateContents (Component component, Object o) \r\n { \r\n if (advancedBox.isSelected())\r\n {\r\n if (getWizardData(\"blacksaved\") == \"false\")\r\n {\r\n return \"You must save the black list before continuing... \";\r\n }\r\n }\r\n return null;\r\n }",
"@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}",
"private void prepararNoticias() {\n Noticia noticia = new Noticia(\n \"Novo Residencial perto de você!\",\n \"Venha conhecer nosso mais novo empreendimento.\"\n );\n noticias.add(noticia);\n\n noticia = new Noticia(\n \"As melhores condições para você adiquirir um imovel hoje mesmo\",\n \"Marque uma visita.\"\n );\n noticias.add(noticia);\n\n adapter.notifyDataSetChanged();\n }",
"private void checkRep() {\n\t\tassert (this != null) : \"this Edge cannot be null\";\n\t\tassert (this.label != null) : \"this Edge's label cannot be null\";\n\t\tassert (this.child != null) : \"this Edge's child cannot be null\";\n\t}",
"public QuestionInfo (String pergunta){\r\n this.question = pergunta;\r\n }",
"@Override\r\n\tpublic String getDescription() {\n\t\treturn \"\";\r\n\t}",
"public abstract String getDescription();"
] | [
"0.6424587",
"0.6324634",
"0.5813339",
"0.5795879",
"0.56997585",
"0.5686779",
"0.5611942",
"0.55991304",
"0.5591058",
"0.5544987",
"0.5540439",
"0.5488503",
"0.5478034",
"0.5467211",
"0.5451794",
"0.54488385",
"0.5425111",
"0.5422397",
"0.5375943",
"0.53633434",
"0.53422654",
"0.5320924",
"0.53048",
"0.53005856",
"0.52948195",
"0.5292285",
"0.5289967",
"0.5289527",
"0.5267072",
"0.5265293",
"0.5262603",
"0.5257412",
"0.52482295",
"0.5247368",
"0.52400815",
"0.5233324",
"0.52161276",
"0.5211792",
"0.5202185",
"0.5195185",
"0.5179551",
"0.5179016",
"0.51744",
"0.51739603",
"0.51694167",
"0.5161462",
"0.51581305",
"0.51518637",
"0.51486534",
"0.51452386",
"0.51399624",
"0.5137373",
"0.5133419",
"0.51329213",
"0.5131756",
"0.5130743",
"0.5130388",
"0.5120564",
"0.511957",
"0.5118326",
"0.510486",
"0.5101493",
"0.5096675",
"0.5096413",
"0.50952035",
"0.50935644",
"0.5081158",
"0.5081055",
"0.50807637",
"0.5079775",
"0.5079369",
"0.5079369",
"0.5079369",
"0.5079369",
"0.50786996",
"0.50749785",
"0.5072121",
"0.50718266",
"0.5067283",
"0.5067054",
"0.5064423",
"0.5062983",
"0.5062569",
"0.5062117",
"0.50612617",
"0.50610816",
"0.50601244",
"0.5059847",
"0.50597376",
"0.50589293",
"0.5058588",
"0.505584",
"0.50443226",
"0.50379694",
"0.50357413",
"0.5033368",
"0.5032936",
"0.5031177",
"0.5030994",
"0.50299275",
"0.50299144"
] | 0.0 | -1 |
/ definition de la matrice A sous forme creuse | public void MatriceA(double[] ACoeff, /* Tableau des coeff */
int[] AIRow, /* Tableau d'indice de ligne */
int[] AIColumn, int[] AIColumn2, PipesVector pvector, NodesVector nvector, DiametersVector dvector,
double[] LoadFactor, int L, int n1) {
Pipes pipes;
Nodes nodes;
Diameters diam = null;
int IPath;
String n_end;
String n_beg;
int I1 = 0;
int I2 = 0;
int I3 = 0;
for (int IPipes = 0; IPipes < NbPipes; IPipes++) {
for (int IDiam = 0; IDiam < NbDiam; IDiam++) {
AIColumn[I3] = I1;
/* creation du deuxieme vecteur necessaire a mosek */
if (I3 != 0) {
AIColumn2[I3 - 1] = AIColumn[I3];
}
pipes = (Pipes) pvector.elementAt(IPipes);
for (int INodes = 1; INodes < NbNodes; INodes++) {
nodes = (Nodes) nvector.elementAt(INodes);
IPath = nodes.path.size() - 1;
while ((IPath > 0)) {
n_beg = (String) nodes.path.elementAt(IPath);
n_end = (String) nodes.path.elementAt(IPath - 1);
if ((pipes.nodes_beg.equalsIgnoreCase(n_beg)) && (pipes.nodes_end.equalsIgnoreCase(n_end))) {
IPath = 0;
diam = (Diameters) dvector.elementAt(IDiam);
ACoeff[I1] = Math.pow(LoadFactor[IPipes], diam.p) / Math.pow(diam.diam, diam.q) * diam.beta;
AIRow[I2] = INodes - 1;
I1++;
I2++;
} else {
IPath--;
}
}
}
/* Contrainte de longueur */
ACoeff[I1] = 1;
AIRow[I2] = (NbNodes + IPipes) - 1;
I1++;
I2++;
/* Contrainte de prix max */
ACoeff[I1] = diam.cost;
AIRow[I2] = (NbNodes + NbPipes) - 1;
I1++;
I2++;
I3++;
}
}
/* Les variables d'ecarts */
for (int i = L - NbNodes + 1; i < L; i++) {
AIColumn[I3] = I1;
AIColumn2[I3 - 1] = AIColumn[I3];
ACoeff[I1] = -1;
AIRow[I2] = i - (L - NbNodes + 1);
I1++;
I2++;
I3++;
}
AIColumn2[n1 - 1] = L;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void matrizAdjunta (){\n float tablaA[][]= getMatriz();\n setMatrizAdjunta(new float[3][3]);\n getMatrizAdjunta()[0][0]=(tablaA[1][1]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][1]);\n getMatrizAdjunta()[0][1]=-((tablaA[0][1]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][1]));\n getMatrizAdjunta()[0][2]=(tablaA[0][1]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][1]);\n \n getMatrizAdjunta()[1][0]=-((tablaA[1][0]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][0]));\n getMatrizAdjunta()[1][2]=-((tablaA[0][0]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][0]));\n getMatrizAdjunta()[1][1]=(tablaA[0][0]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][0]);\n \n getMatrizAdjunta()[2][0]=(tablaA[1][0]*tablaA[2][1]) - (tablaA[1][1]*tablaA[2][0]);\n getMatrizAdjunta()[2][1]=-((tablaA[0][0]*tablaA[2][1]) - (tablaA[0][1]*tablaA[2][0]));\n getMatrizAdjunta()[2][2]=(tablaA[0][0]*tablaA[1][1]) - (tablaA[0][1]*tablaA[1][0]);\n mostrarMatriz(getMatrizAdjunta(),\"Matriz adjunta\");\n }",
"public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }",
"public Matrix P0 ();",
"public Espai(int a, int b){\n matriuElements = new Object[a][b];\n referencies = new Hashtable<Integer,Pos>();\n }",
"public TransformationMatrix() {\n\t\ta11 = 1; a12 = 0; a13 = 0; a14 = 0;\n\t\ta21 = 0; a22 = 1; a23 = 0; a24 = 0;\n\t\ta31 = 0; a32 = 0; a33 = 1; a34 = 0;\n\t}",
"@Test\n public void testSetA() {\n final double expected[] = getMatrix().getA();\n final Matrix33d m = new Matrix33d();\n m.setA(Arrays.copyOf(expected, expected.length));\n for (int i = 0; i < expected.length; i++) {\n assertEquals(m.getA()[i], expected[i]);\n }\n }",
"public Matrice getMatrice(){\n int t = this.sommets.size();\n Matrice ret = new Matrice( (t), (t));\n\n List<Arc<T>> arcsTemps ;\n\n for(int i=0 ; i < t ;i++){\n arcsTemps = getArcsDepuisSource(this.sommets.get(i));\n\n for (Arc<T> arcsTemp : arcsTemps) {\n System.out.println(i + \" == \" + arcsTemp.getDepart().getInfo()+ \" , \" +arcsTemp.getArrivee().getId());\n ret.setValue(i, arcsTemp.getArrivee().getId(), 1);\n }\n System.out.println(\"***\");\n }\n\n return ret;\n }",
"Matriz evaluar(Matriz A);",
"public void ConceptosMatrices() {\n int[][] maX={{5,6,6},\n {5,6,2},\n {5,12,2},\n {5,6,2}};\n //Obtener el tamaño de la fila de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX.length);\n //Obtener el tamaño de la columna de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX[0].length);\n System.out.println(\"Mostrar el valor 12 de la matriz maX=\"+maX[2][1]);\n //Cambiar el elemento 12 de la matriz maX por 16\n maX[2][1]=16;\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Ingrese un valor en los indices 2,2\");\n maX[2][2]=sc.nextInt();\n \n System.out.println(\"Defina el indice para fila:\");\n int iFx=sc.nextInt(); \n int iCx=sc.nextInt(); \n System.out.println(\"Ingrese un valor en los indices \"+iFx+\", \"+iCx+\":\");\n maX[iFx][iCx]=sc.nextInt(); \n \n imprimirMatriz(maX);\n \n //defenir matrices sin dimensiones\n int[][] matrizN;\n //definiendo dimensiones a una matriz\n System.out.println(\"Ingrese la dimension en fila para la MatrizN=\");\n int inFi=sc.nextInt();\n System.out.println(\"Ingrese la dimension en columna para la MatrizN=\");\n int inCo=sc.nextInt();\n matrizN=new int[inFi][inCo]; \n int vi=0;\n //Rellenando una matriz con una serie de numeros\n for (int f = 0; f < matrizN.length; f++) {\n for (int c = 0; c < matrizN[0].length; c++) {\n System.out.println(\"Ingrese un valor en matrizN[\"+f+\"][\"+c+\"]:=\");\n matrizN[f][c]=sc.nextInt();\n vi=vi+2;\n } \n } \n System.out.println(\"la nueva matrizN es de: \"+matrizN.length+\"x\"+matrizN[0].length);\n imprimirMatriz(matrizN); \n\n }",
"public abstract Matrix matrix(double s1, double s2, double s3, double c1, double c2, double c3);",
"void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }",
"protected SimpleMatrix() {}",
"public Matriz( int lin, int col )\n {\n if(lin <= 0 || col <= 0 )\n {\n IO.println(\"ERRO: Quantidade invalida. \" );\n } //end\n else\n {\n table = new Object[lin][col];\n } //end se\n }",
"public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }",
"static void productoEscalarMatriz() {\r\n\r\n System.out.println(\"PRODUCTO ESCALAR X MATRIZ \\n\");\r\n setup(false);\r\n String valor = inputDialog(\"Inserte un escalar\", \"Escalar\", JOptionPane.INFORMATION_MESSAGE);\r\n int escalar = Integer.parseInt(valor);\r\n matrizA.productoEscalarMatriz(escalar);\r\n messageDialog(\"La matriz resultante al multiplicar por el escalar \" + escalar + \", es: \\n\" + matrizA.datosMatrizNumeros(), \"Producto escalar\", 3);\r\n\r\n }",
"@Test\n public void testConstructor() {\n final Matrix33d m = new Matrix33d();\n double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n assertEquals(a[i], 0D);\n }\n }",
"public Matriz(int fila, int columna) {\n\t\tmatriz = new int[fila][columna];\n\t}",
"public Matriz(int[][] matriz) {\n\t\tthis.matriz = matriz;\n\t}",
"abstract public Matrix4fc getViewMatrix();",
"public abstract void cambiarA(int i);",
"public interface aa {\n void m5433a(Matrix matrix);\n}",
"public Matrix getValue();",
"Matrix( Vector a, Vector b )\n {\n x = b.times(a.x);\n y = b.times(a.y);\n z = b.times(a.z);\n }",
"private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}",
"public MMAge(){\n\t\t\n\t}",
"public Matrix4f() {\n setIdentity();\n }",
"public Matriz(Complejo[][] numeros){\n\t\tthis.numeros = numeros;\n\t}",
"private void pasar_a_matriz_adyacencia() {\n table_panel1.eliminar_All();//elimino todo los elemento de la matrices\n Grafo g = panel.getGrafo();//saco el grafo del panel\n data_fila[] dato = new data_fila[g.size_vertice()];//hago de una arreglo de vectores \n for (int i = 0; i < g.size_vertice(); i++) {//estructuras de datos\n dato[i] = new data_fila();\n }\n\n for (int i = 0; i < g.size_vertice(); i++) {\n Vertices A = g.get_vertices(i);\n dato[i].setNombre(A.getNombre());\n for (int j = 0; j < g.size_vertice(); j++) {\n if (j != i) {\n Vertices B = g.get_vertices(j);\n int peso =A.adyacencia(B);\n if (peso != Integer.MIN_VALUE) {\n dato[i].setArry(j, peso);\n }\n\n }\n }\n table_panel1.add(dato[i]);\n }\n }",
"public MatricesPN getMatriz() {\n\t\treturn this.matriz;\n\t}",
"public R1toConstantMatrix(Matrix A) {\n this.A = new ImmutableMatrix(A);\n }",
"public Funcionario(String nome, String funcao, int matricula) {\n\t\tsuper();\n\t\tthis.nome = nome;\n\t\tthis.funcao = funcao;\n\t\tthis.matricula = matricula;\n\t}",
"public Matrix33() {\r\n // empty\r\n }",
"public int[][] MatrizPesos(){\n return this.mat;\n }",
"public Matrix calculate();",
"MatrixParameter createMatrixParameter();",
"public interface IMatrix {\n\n /**\n * Set coefficient\n * @param y row (0..height-1)\n * @param x column (0..width-1)\n * @param v value\n */\n public void set(int y, int x, double v);\n /**\n * Get coefficient from matrix, by returning coeff[y*width + x].\n * @param y row (0..height-1)\n * @param x column (0..width-1)\n * @return coefficient\n */\n public double get(int y, int x);\n\n /**\n * Clear matrix to zeros\n */\n public void clear();\n\n /**\n * Get array of coefficients.\n * They are indexed by [y*height + x].\n * Not all classes support this method.\n * @return array of coefficients\n */\n public double[] coeff();\n\n /**\n * Get width of matrix\n * @return width\n */\n public int width();\n\n /**\n * Get height of matrix\n * @return height\n */\n public int height();\n}",
"EcirdelAubrac(Machecoulais machecoulais) {\n super(1);\n this.f16565a = machecoulais;\n }",
"public Point3D getA() {\r\n return a;\r\n }",
"public LinearSystem(AugmentedSquareMatrix A) {\n system = new AugmentedSquareMatrix(A);\n }",
"@Override\r\n public double obtenerVolumen() {\n return Math.pow(getA(), 3);//eleva al cubo\r\n }",
"public Matrix(int[][] array){\n this.matriz = array;\n }",
"public int[][] getMatriceAdjacence()\n {\n return matriceAdjacence;\n }",
"public DialogoAgregarMatACurso() {\n super();\n \n matricula = -1;\n idalumno = -1;\n \n initComponents();\n \n setearListeners();\n \n setearInicioDeClases();\n \n String sIdCurso = CursosagregarAlumnoCBCurso.getSelectedItem().toString();\n sIdCurso = sIdCurso.substring(0, sIdCurso.indexOf(\"-\"));\n int idCurso = Integer.valueOf(sIdCurso);\n setearGananciaProfesorRecargosYCuotas(idCurso);\n }",
"public static void main(String[] args) {\n\t\tEquation eq = new Equation();\n\t\teq.process(\"A = [ 2, -2, 0, 3, 4; 4, -1, 0, 1, -1; 0, 5, 0, 0, -1; 3, 2, -3, 4, 3; 7, -2, 0, 9, -5 ]\");\n\t\tDMatrixRMaj A = eq.lookupDDRM(\"A\");\n\t\t\n\t\tSystem.out.println(\"<==== A ====>\");\n\t\tSystem.out.println(A);\n\t\tSystem.out.println(\"Det(A): \" + CommonOps_DDRM.det(A));\n\t\t\n\t\tDMatrixRMaj C = cofactor(A);\n\t\teq.alias(C, \"C\");\n\t\t\n\t\tdouble det = A.get(3, 2) * C.get(3, 2);\n\t\t\n\t\tSystem.out.println(\"Column[\" + 2 + \"] has 4 zeros entries\");\n\t\tSystem.out.println(\"Det(A) = A[3][2] * cofactors[3][2]: \" + det);\n\t\t\n\t\n\t\tSystem.out.println(\"<==== adj(A) ====>\");\n\t\tSystem.out.println(C);\n\t\t\n\t\t\n\t\teq.process(\"AI = inv(A)\");\n\t\teq.process(\"AC = inv(det(A)) * C'\");\n\t\t\n\t\t\n\t\tSystem.out.println(\"<==== inv(A) ====>\");\n\t\tSystem.out.println(eq.lookupDDRM(\"AI\"));\n\t\t\n\t\tSystem.out.println(\"<==== 1 / det(A) * adj(A) ====>\");\n\t\tSystem.out.println(eq.lookupDDRM(\"AC\"));\n\t\t\n\t\tSystem.out.println(\"inv(A) == 1 / det(A) * adj(A): \" + MatrixFeatures.isIdentical(eq.lookupDDRM(\"AI\"), eq.lookupDDRM(\"AC\"), 0.00000001));\n\t\t\n\t\t\n\t}",
"private void aretes_aO(){\n\t\tthis.cube[40] = this.cube[7]; \n\t\tthis.cube[7] = this.cube[25];\n\t\tthis.cube[25] = this.cube[46];\n\t\tthis.cube[46] = this.cube[34];\n\t\tthis.cube[34] = this.cube[40];\n\t}",
"public void matarAPacman() {\n // TODO implement here\n }",
"public Calefactor(AutomataCelular ac,int fila, int columna)\n {\n automata = ac;\n this.fila = fila;\n this.columna = columna;\n automata.setElemento(fila, columna, (Elemento)this);\n color = Color.red;\n }",
"@Test\n public void testIdentity() {\n final double junk[] = new double[Matrix33d.LENGTH];\n for (int i = 0; i < Matrix33d.LENGTH; i++) {\n junk[i] = 1089.1451D;\n }\n final Matrix33d m = new Matrix33d();\n m.setA(junk);\n\n m.identity();\n final double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n if (i == 0 || i == 4 || i == 8) {\n assertEquals(a[i], 1D);\n } else {\n assertEquals(a[i], 0D);\n }\n }\n }",
"public abstract Vector4fc mulProject(IMatrix4f mat);",
"public void setTo( T a ) {\n if (a.getType() == getType())\n mat.setTo(a.getMatrix());\n else {\n setMatrix(a.mat.copy());\n }\n }",
"public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }",
"public interface IMatrix {\n\n\tpublic int getRowsCount();\n\tpublic int getColsCount();\n\tpublic double get(int numberOne, int numberTwo);\n\tpublic IMatrix set(int numberOne, int numberTwo, double numberThree);\n\tpublic IMatrix copy();\n\tpublic IMatrix newInstance(int numberOne, int numberTwo);\n\tpublic IMatrix nTranspose(boolean trans);\n\tpublic IMatrix add(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nAdd(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix sub(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nSub(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic IMatrix nMultiply(IMatrix matrix) throws OperationNotSupportedException;\n\tpublic double determinant() throws OperationNotSupportedException;\n\tpublic IMatrix subMatrix(int numberOne, int numberTwo, boolean subM);\n\tpublic IMatrix nInvert() throws OperationNotSupportedException;\n\tpublic double[][] toArray();\n\tpublic IVector toVector(boolean toVect) throws OperationNotSupportedException;\n\tpublic IMatrix scalarMultiply(double value);\n\tpublic IMatrix nScalarMultiply(double value);\n\t\n}",
"public Matrix asMatrix() {\n Matrix result;\n try {\n result = new Matrix(COMPONENTS, 1);\n asMatrix(result);\n } catch (final WrongSizeException ignore) {\n // never happens\n result = null;\n }\n return result;\n }",
"public Matrix add(double a) {\n\t\tMatrix m = new Matrix(this.rows, this.columns);\n\t\tfor (int r = 0; r < rows; r++) {\n\t\t\tfor (int c = 0; c < columns; c++) {\n\t\t\t\tm.matrix[r][c] = this.matrix[r][c] + a;\n\t\t\t}\n\t\t}\n\t\treturn m;\n\t}",
"public Matrice(int nr, int nc){\n\t\tthis.nr=nr;\n\t\tthis.nc=nc;\n\t\tmat = new int[nr][nc];\n\t}",
"public interface Matrix {\n\n void initZeroValues();\n\n void fillRandomValues();\n\n int getRows();\n\n int getColumns();\n\n Entity getEntity(int i, int j);\n\n String toString();\n}",
"private void aretes_aG(){\n\t\tthis.cube[31] = this.cube[14]; \n\t\tthis.cube[14] = this.cube[5];\n\t\tthis.cube[5] = this.cube[41];\n\t\tthis.cube[41] = this.cube[50];\n\t\tthis.cube[50] = this.cube[31];\n\t}",
"public int getA() {\n\t\treturn this.height*this.width;\n\t}",
"private void aretes_aB(){\n\t\tthis.cube[22] = this.cube[12]; \n\t\tthis.cube[12] = this.cube[48];\n\t\tthis.cube[48] = this.cube[39];\n\t\tthis.cube[39] = this.cube[3];\n\t\tthis.cube[3] = this.cube[22];\n\t}",
"private static String representacaoAM(Graph grafo) {\r\n\t\tfloat[][] matriz = new float[grafo.getVertexNumber()][grafo.getVertexNumber()];\r\n\r\n\t\tfor (Aresta aresta : grafo.getArestas()) {\r\n\t\t\tint valorA = aresta.getV1().getValor();\r\n\t\t\tint valorB = aresta.getV2().getValor();\r\n\r\n\t\t\tmatriz[valorA][valorB] = aresta.getPeso(); // vale nos dois sentidos\r\n\t\t\tmatriz[valorB][valorA] = aresta.getPeso(); // vale nos dois sentidos\r\n\t\t}\r\n\r\n\t\tStringBuilder result = new StringBuilder();\r\n\r\n\t\tfor (int i = 0; i < matriz.length; i++) {\r\n\t\t\tfor (int j = 0; j < matriz.length; j++) {\r\n\t\t\t\tresult.append(matriz[i][j] + \" \");\r\n\t\t\t}\r\n\t\t\tresult.append(\"\\n\");\r\n\t\t}\r\n\r\n\t\treturn result.toString();\r\n\t}",
"public Matrice(int dim){\n\t\tnr=dim;\n\t\tnc=nr;\n\t\tmat = new int[nr][nc];\n\t}",
"public Matrix(double[][] A, int m, int n) {\n this.data = A;\n this.m = m;\n this.n = n;\n }",
"public static void main(String[] args) {\n\t\tint[][] a = {{1,2}, {5,3}};\n\t\tint[][] b = {{3,2}, {4,5}};\n\t\tint[][] c = {{1,2}, {4,3}};\n\t\tint[][] d = {{1,2,3}, {4, 5, 6}};\n\t\tint[][] e = {{1, 4}, {2, 5}, {3,6}};\n\n\n\t\t//create new matrices using multidimensional arrays to get a size\n\t\tMatrix m = new Matrix(a);\n\t\tMatrix m2 = new Matrix(b);\n\t\tMatrix m3 = new Matrix(c);\n\t\tMatrix m4 = new Matrix(d);\n\t\tMatrix m5 = new Matrix(e);\n\n\n\n\t\t//Example of matrix addition\n\t\tSystem.out.println(\"Example of Matrix addition using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nSUM:\");\n\t\tSystem.out.println(m.add(m2));\n\t\t\n\t\t//Example of matrix subtraction\n\t\tSystem.out.println(\"Example of Matrix subtraction using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nDIFFERENCE:\");\n\t\tSystem.out.println(m.subt(m2));\n\n\t\t//Example of matrix multiplication\n\t\tSystem.out.println(\"Example of Matrix multiplication using the following matrices:\");\n\t\tSystem.out.println(m3.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nPRODUCT:\");\n\t\tSystem.out.println(m2.mult(m3));\n\t\t\n\t\t//Example of scalar multiplication\n\t\tSystem.out.println(\"Example of scalar multiplication using the following matrices with a scalar value of 2:\");\n\t\tSystem.out.println(m3.toString() + \"\\nSCALAR PRODUCT:\");\n\t\tSystem.out.println(m3.scalarMult(2));\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m.transpose());\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m4.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m4.transpose());\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"Example of equality using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m.equality(m));\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"\\nExample of equality using the following matrices:\");\n\t\tSystem.out.println(m4.toString());\n\t\tSystem.out.println(m5.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m4.equality(m5));\n\n\t}",
"public int[][] getMatriceValeurs()\n {\n return matriceValeurs;\n }",
"public void llenarMatriz(){\n Scanner in = new Scanner(System.in);\n setMatriz(new float[3][3]);\n //int matriz1[][] ={{2,3,1},{1,-1,2},{0,1,0}};\n //int matriz1[][] ={{5,-2,3},{1,2,2},{-4,-1,3}};\n //float matriz1[][] ={{1,-2,5},{3,3,-1},{0,4,-2}};\n for(int i=0;i<3;i++){\n for(int j=0;j<3;j++){\n System.out.println(\"Ingresa valor la posición [\"+i+\"][\"+j+\"]\");\n getMatriz()[i][j]= in.nextInt();\n }\n }\n mostrarMatriz(getMatriz(),\"Matriz inicial\");\n }",
"public Matrix xMatrix(){\n if(!this.pcaDone)this.pca();\n double denom = this.nItems;\n if(!super.nFactorOption)denom -= 1.0;\n Matrix mat = dataMinusMeans.times(1.0/Math.sqrt(denom));\n return mat;\n }",
"private Matriks KaliMatriks(Matriks A, Matriks B){\r\n\t\tMatriks Mhasil = new Matriks(A.BrsEff, B.KolEff);\r\n\t\tfor(int i=0; i<A.BrsEff; i++){\r\n\t\t\tfor(int j=0; j<B.KolEff; j++){\r\n\t\t\t\tfor(int k=0; k<A.KolEff; k++){\r\n\t\t\t\t\tMhasil.Elmt[i][j] += A.Elmt[i][k] * B.Elmt[k][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Mhasil;\r\n\t}",
"public abstract Vector4fc mul(IMatrix4f mat);",
"public Echiquier()\n\t{\n\t\ttableau = new Piece[8][8];\n\t}",
"Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }",
"public void agregarFicha(Ficha ficha){\n\t\t\n\t\tVector2D positionFicha = ficha.position;\n\t\tint medidaLado = GenericGame.getMedidaLado();\n\t\t\t\t\n\t\tint im = (int) (positionFicha.getX() / medidaLado);\n\t\tint jm = (int) (positionFicha.getY() / medidaLado);\n\t\t\n\t\tint [][] matriz = ficha.getFicha();\n\t\t//System.out.println(\"agregrar ficha\");\n\t\t//System.out.println(this);\n\t\t//System.out.println(ficha);\n\t\t//System.out.println(\"im \"+ im + \" jm \"+jm + \" posicion X \" + positionFicha.getX() + \" posicion Y \" + positionFicha.getY());\n\t\t\n\t\t\n\t\tfor(int i=0; i< matriz.length;i++)\n\t\t{\n\t\t\tfor(int j=0; j< matriz[0].length;j++)\n\t\t\t{\n\t\t\t\t//System.out.println(\"im \" +( im+ i) + \" ijm \" +( jm+j));\n\t\t\t\t\n\t\t\t\tif(matriz[i][j] != 0)\n\t\t\t\tmatrizTablero[jm+i][im+j]= matriz[i][j];\n\t\t\t}\n\t\t}\n\t}",
"public Matrix basis() {\r\n\t\treturn new Matrix(LeapJNI.Hand_basis(this.swigCPtr, this), true);\r\n\t}",
"protected void mo3350a() {\n super.a();\n this.f9051o = new YAxis(AxisDependency.LEFT);\n this.f9052p = new YAxis(AxisDependency.RIGHT);\n this.f9055s = new C3281g(this.Q);\n this.f9056t = new C3281g(this.Q);\n this.f9053q = new C3269t(this.Q, this.f9051o, this.f9055s);\n this.f9054r = new C3269t(this.Q, this.f9052p, this.f9056t);\n this.f9057u = new C2005q(this.Q, this.H, this.f9055s);\n setHighlighter(new C3210b(this));\n this.M = new C3284a(this, this.Q.m15881p(), 3.0f);\n this.f9043g = new Paint();\n this.f9043g.setStyle(Style.FILL);\n this.f9043g.setColor(Color.rgb(240, 240, 240));\n this.f9044h = new Paint();\n this.f9044h.setStyle(Style.STROKE);\n this.f9044h.setColor(ViewCompat.MEASURED_STATE_MASK);\n this.f9044h.setStrokeWidth(C3283i.m15928a(1.0f));\n }",
"public int[][] getMatriuSolucio() {\n\t\treturn null;\n\t}",
"public Matrix3f() {\n\t\n \tthis.setZero();\n }",
"public SchurDecomposition(FieldMatrix<Complex> A){\n\t\tint maxIter = 10;\n\t\tint n = A.getColumnDimension();\n\t\t\n\t\tFieldMatrix<Complex> Ak = A;\n\t\tFieldMatrix<Complex> Uk = MatrixUtils.createFieldIdentityMatrix(ComplexField.getInstance(), n);\n\t\t\n\t\tfor(int i = 1; i <= maxIter; i++){\n\t\t\tHausHolderQR myHaus = new HausHolderQR(Ak);\n\t\t\tAk = (myHaus.getR()).multiply(myHaus.getQ());\n\t\t\tUk = Uk.multiply(myHaus.getQ());\n\t\t\t\t\t\n\t\t}\n\t\t\n\t\tthis.T = Ak;\n\t\tthis.U = Uk;\n\t}",
"public void mostrarGrafo() {\n\t\tmatriz.mostrarMatriz();\n\t}",
"public void clearA(){\n for (int i = 0; i < I+1; i++){\n for (int j = 0; j < I+1; j++){\n a[i][j][I] = 0.0;\n }\n }\n\t }",
"public void mo23181a(Canvas canvas, Matrix matrix, int i) {\n }",
"public interface ExprMatrix extends ExprCellIterator{\n public int getColumnsDimension();\n\n public int getRowsDimension();\n\n public Expr apply(int row, int column);\n\n public Expr get(int row, int column);\n\n public void set(Expr exp, int row, int col);\n\n\n /**\n * create a preloaded sequence (all element are pre evaluated)\n * @return\n */\n public ExprMatrix preload();\n\n /**\n * same as index, provided for scala compatibility\n *\n * @param index index\n * @return get(index)\n */\n /**\n * create a cached instance of this expression sequence\n * @return\n */\n public ExprMatrix withCache();\n\n /**\n * create a sequence of simplified elements\n * @return\n */\n public ExprMatrix simplify() ;\n}",
"public char[][] getMatriz() {\r\n\t\treturn matriz;\r\n\t}",
"public static Matrix times(Matrix amat, double constant){\r\n \tMatrix cmat = new Matrix(amat.nrow, amat.ncol);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n\r\n \t \tfor(int i=0; i<amat.nrow; i++){\r\n \t\tfor(int j=0; j<amat.ncol; j++){\r\n \t\tcarray[i][j] = amat.matrix[i][j]*constant;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}",
"public Matrix(double[][] A) throws JPARSECException {\n m = A.length;\n n = A[0].length;\n for (int i = 0; i < m; i++) {\n if (A[i].length != n) {\n throw new JPARSECException(\"All rows must have the same length.\");\n }\n }\n this.data = A;\n }",
"public int[][] turfu() {\r\n\t\tint[][] tab = new int[matrice[0].length][matrice.length]; \r\n\t\tint n =0; \r\n\t\tfor(int i=0; i<tab.length; i++) {\r\n\t\t\tfor(int j=0; j< tab[0].length; j++) {\r\n\t\t\t\ttab[i][j] = matrice[j][n]; \r\n\t\t\t}\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn tab; \r\n\t}",
"public abstract Matrix4f getCameraMatrix();",
"public static void test() {\n // create M-by-N matrix that doesn't have full rank\n int M = 8, N = 5;\n Matrix B = Matrix.random(5, 3);\n Matrix A = Matrix.random(M, N).times(B).times(B.transpose());\n System.out.print(\"A = \");\n A.print(9, 6);\n\n // compute the singular vallue decomposition\n System.out.println(\"A = U S V^T\");\n System.out.println();\n SingularValueDecomposition s = A.svd();\n System.out.print(\"U = \");\n Matrix U = s.getU();\n U.print(9, 6);\n System.out.print(\"Sigma = \");\n Matrix S = s.getS();\n S.print(9, 6);\n System.out.print(\"V = \");\n Matrix V = s.getV();\n V.print(9, 6);\n System.out.println(\"rank = \" + s.rank());\n System.out.println(\"condition number = \" + s.cond());\n System.out.println(\"2-norm = \" + s.norm2());\n\n // print out singular values\n System.out.print(\"singular values = \");\n Matrix svalues = new Matrix(s.getSingularValues(), 1);\n svalues.print(9, 6);\n\n\t\t Matrix C = U.times(S).times(V.transpose());\n\t\t C.print(9, 6);\n\n\t\t Matrix D = A.transpose();\n\t\t D.print(9, 6);\n\n\t\t Matrix E = D.times(A);\n\t\t E.print(9, 6);\n }",
"public interface LinopTransform extends Transform {\r\n public double[][] getMat();\r\n}",
"public MatrixArray(int[][] MA){\r\n\t\tthis.MA = MA;\r\n\t\tthis.N = MA.length;\r\n\t}",
"public interface Matrix extends Entity{\n\tboolean isNull(int row, int column);\n\tvoid setNull(int row, int column);\n\tScalar getRowLabel(int row);\n\tScalar getColumnLabel(int column);\n\tScalar get(int row, int column);\n\tVector getRowLabels();\n\tVector getColumnLabels();\n\tboolean hasRowLabel();\n\tboolean hasColumnLabel();\n\tClass<?> getElementClass();\n}",
"public Arma obtenerArma() {\n\t\treturn arma;\n\t}",
"public void printMatriz( )\n {\n //definir dados\n int lin;\n int col;\n int i;\n int j;\n\n //verificar se matriz e' valida\n if( table == null )\n {\n IO.println(\"ERRO: Matriz invalida. \" );\n } //end\n else\n {\n //obter dimensoes da matriz\n lin = lines();\n col = columns();\n IO.println(\"Matriz com \"+lin+\"x\"+col+\" posicoes.\");\n //pecorrer e mostrar posicoes da matriz\n for(i = 0; i < lin; i++)\n {\n for(j = 0; j < col; j++)\n {\n IO.print(\"\\t\"+table[ i ][ j ]);\n } //end repetir\n IO.println( );\n } //end repetir\n } //end se\n }",
"public TransformationMatrix(TransformationMatrix l, TransformationMatrix r) {\n\t\ta11 = l.a11*r.a11 + l.a12*r.a21 + l.a13*r.a31;\n\t\ta12 = l.a11*r.a12 + l.a12*r.a22 + l.a13*r.a32;\n\t\ta13 = l.a11*r.a13 + l.a12*r.a23 + l.a13*r.a33;\n\t\ta14 = l.a11*r.a14 + l.a12*r.a24 + l.a13*r.a34 + l.a14;\n\t\ta21 = l.a21*r.a11 + l.a22*r.a21 + l.a23*r.a31;\n\t\ta22 = l.a21*r.a12 + l.a22*r.a22 + l.a23*r.a32;\n\t\ta23 = l.a21*r.a13 + l.a22*r.a23 + l.a23*r.a33;\n\t\ta24 = l.a21*r.a14 + l.a22*r.a24 + l.a23*r.a34 + l.a24;\n\t\ta31 = l.a31*r.a11 + l.a32*r.a21 + l.a33*r.a31;\n\t\ta32 = l.a31*r.a12 + l.a32*r.a22 + l.a33*r.a32;\n\t\ta33 = l.a31*r.a13 + l.a32*r.a23 + l.a33*r.a33;\n\t\ta34 = l.a31*r.a14 + l.a32*r.a24 + l.a33*r.a34 + l.a34;\n\n\t}",
"public Matriu() {\n \t/** <p><b>Pre:</b></p> <Ul>Cert.</Ul>\n\t\t * <p><b>Post:</b></p> <Ul> S'inicialitza una matriu esparsa buida. </Ul>\n\t\t * \n\t\t*/\n this.M = new HashMap<>(0);\n this.MatriuTF_IDF = new HashMap<>(0);\n this.IDFJ = new TreeMap<>();\n }",
"@Override\n\tpublic void acreage() {\n\t\tSystem.out.println(\"梯形的面积\"+getAcreage());\n\t}",
"public void initIdentity() \r\n\t{\r\n\t\tm[0][0] = 1.0f; m[0][1] = 0.0f; m[0][2] = 0.0f; m[0][3] = 0.0f;\r\n\t\tm[1][0] = 0.0f; m[1][1] = 1.0f; m[1][2] = 0.0f; m[1][3] = 0.0f;\r\n\t\tm[2][0] = 0.0f; m[2][1] = 0.0f; m[2][2] = 1.0f; m[2][3] = 0.0f;\r\n\t\tm[3][0] = 0.0f; m[3][1] = 0.0f; m[3][2] = 0.0f; m[3][3] = 1.0f;\r\n\t}",
"@Override\n public IComplexNDArray geru(IComplexNumber alpha, IComplexNDArray x, IComplexNDArray y, IComplexNDArray a) {\n NativeBlas.cgeru(a.rows(), a.columns(),\n new ComplexFloat(alpha.realComponent().floatValue(), alpha.imaginaryComponent().floatValue()),\n x.data(), x.offset(), 1, y.data(), y.offset(), 1, a.data(),\n a.offset(), a.rows());\n return a;\n }",
"public Dipendente() {\r\n\t\tsetnMat();\r\n\t}",
"protected abstract T createMatrix( int numRows, int numCols, MatrixType type );",
"public Coloca_imagen(){\n \n \n }",
"float[] getModelMatrix();"
] | [
"0.63533854",
"0.6267832",
"0.6131492",
"0.6008555",
"0.59880537",
"0.59506863",
"0.594724",
"0.59152573",
"0.5897269",
"0.57503194",
"0.57395935",
"0.5728706",
"0.5725277",
"0.5693922",
"0.565593",
"0.56495607",
"0.5615343",
"0.56009066",
"0.55796236",
"0.55480164",
"0.5527389",
"0.5514832",
"0.55122596",
"0.5509494",
"0.5497618",
"0.549216",
"0.5485324",
"0.54839927",
"0.5479451",
"0.5472437",
"0.54719245",
"0.5468511",
"0.54600513",
"0.54594666",
"0.545129",
"0.54369634",
"0.54358166",
"0.54201204",
"0.54100096",
"0.54079586",
"0.540709",
"0.5405357",
"0.54009646",
"0.53917235",
"0.5388059",
"0.53801",
"0.5379975",
"0.5374444",
"0.5365042",
"0.5364905",
"0.53644365",
"0.53556216",
"0.53547144",
"0.5331668",
"0.5329703",
"0.5320645",
"0.5320146",
"0.531072",
"0.53032523",
"0.529287",
"0.52860874",
"0.52824664",
"0.5282261",
"0.5281558",
"0.5267056",
"0.5265076",
"0.5253632",
"0.524099",
"0.52305907",
"0.522961",
"0.52294713",
"0.5225302",
"0.5223891",
"0.5223225",
"0.5219561",
"0.5217356",
"0.52168787",
"0.5209677",
"0.5209088",
"0.5203043",
"0.52013147",
"0.5201225",
"0.5194799",
"0.519114",
"0.5190157",
"0.5184314",
"0.5177163",
"0.5172024",
"0.5171994",
"0.51673615",
"0.51650715",
"0.5162752",
"0.5161977",
"0.5160371",
"0.51559925",
"0.51542664",
"0.5149127",
"0.51482904",
"0.514786",
"0.51356775"
] | 0.54680777 | 32 |
/ renvoie le nombre d'uunts non nul dans la matrice A | public int LengthTab(NodesVector nvector) {
int L = 0;
Nodes nodes;
for (int i = 1; i < nvector.size(); i++) {
nodes = (Nodes) nvector.elementAt(i);
L = (L + nodes.path.size()) - 1;
}
return (((L + NbPipes) * NbDiam) + NbNodes) - 1 + (NbDiam * NbPipes);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }",
"public void limpiarMesa() {\n for (int i = 0; i < mesa.length; i++) {\n mesa[i][1] = 0;\n }\n }",
"public void alustaAlue() {\n if (x >= 1) {\n for (int i = 0; i < x; i++) {\n this.ruudukko[i] = new ArrayList<Ruutu>();\n for (int j = 0; j < x; j++) {\n this.ruudukko[i].add(new Ruutu(taso));\n }\n }\n for (int i = 0; i < x; i++) {\n for (int j = 0; j < x; j++) {\n ArrayList<Ruutu> lista = this.ruudukko[i];\n if (lista.get(j).isMiina()) {\n lisaaMiina(i, j);\n } else {\n this.ruudut++;\n }\n }\n }\n }\n\n }",
"public void clearA(){\n for (int i = 0; i < I+1; i++){\n for (int j = 0; j < I+1; j++){\n a[i][j][I] = 0.0;\n }\n }\n\t }",
"public void majAffichage() {\n this.grid.getChildren().clear(); // vide tout le gridpane\n for (int i = 0; i < this.matrice.getNbLigne(); i++) {\n for (int j = 0; j < this.matrice.getNbColonne(); j++) {\n Node n = this.matrice.getCell(i, j); // recupère les imgViews de la matrice\n this.grid.setHalignment(n, HPos.CENTER); // place les labels au centre des cases\n this.grid.add(this.matrice.getCell(i, j), j, i);\n }\n }\n }",
"public void ZerarM() {\n\t\tfor(int i = 0;i<3;i++) {\n\t\t\tfor(int j = 0;j<3;j++) {\n\t\t\t\tthis.m[i][j] = \"0\";\n\t\t\t}\n\t\t}\n\t\tthis.emp = 0;\n\t\tJOptionPane.showMessageDialog(null,\"COMEÇOU\");\n\t}",
"public Alumno(String nombre,int edad)\n {\n this.nombre = nombre;\n this.edad = edad;\n numClase = inicialVal;\n inicialVal++;\n notas = new ArrayListInt();\n }",
"public void matrizAdjunta (){\n float tablaA[][]= getMatriz();\n setMatrizAdjunta(new float[3][3]);\n getMatrizAdjunta()[0][0]=(tablaA[1][1]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][1]);\n getMatrizAdjunta()[0][1]=-((tablaA[0][1]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][1]));\n getMatrizAdjunta()[0][2]=(tablaA[0][1]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][1]);\n \n getMatrizAdjunta()[1][0]=-((tablaA[1][0]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][0]));\n getMatrizAdjunta()[1][2]=-((tablaA[0][0]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][0]));\n getMatrizAdjunta()[1][1]=(tablaA[0][0]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][0]);\n \n getMatrizAdjunta()[2][0]=(tablaA[1][0]*tablaA[2][1]) - (tablaA[1][1]*tablaA[2][0]);\n getMatrizAdjunta()[2][1]=-((tablaA[0][0]*tablaA[2][1]) - (tablaA[0][1]*tablaA[2][0]));\n getMatrizAdjunta()[2][2]=(tablaA[0][0]*tablaA[1][1]) - (tablaA[0][1]*tablaA[1][0]);\n mostrarMatriz(getMatrizAdjunta(),\"Matriz adjunta\");\n }",
"private void aretes_aO(){\n\t\tthis.cube[40] = this.cube[7]; \n\t\tthis.cube[7] = this.cube[25];\n\t\tthis.cube[25] = this.cube[46];\n\t\tthis.cube[46] = this.cube[34];\n\t\tthis.cube[34] = this.cube[40];\n\t}",
"public AlumnoNota(String nombreAlumno, String nombreAsignatura, double nota, String profesor) {\n this.nombreAlumno = nombreAlumno;\n this.nombreAsignatura = nombreAsignatura;\n this.nota = nota;\n this.profesor = profesor;\n }",
"@Override\n\tpublic Vehiculo leerVehiculos(String matricula) {\n\t\treturn null;\n\t}",
"void recorridoCero(){\n \n for(int i=0;i<8;i++)\n\t\t\tfor(int j=0;j<8;j++)\n\t\t\t\t{\n\t\t\t\t\t//marcar con cero todas las posiciones\n\t\t\t\t\trecorrido[i][j]=0;\n\t\t\t\t}\n }",
"public listaAlumnos()\r\n\t{\r\n\t\tinicio = fin = null; \r\n\t}",
"public MiAlmacenN(int tamaño) {\n\t\tproductos = new Producto[tamaño];\n\t\tthis.tamaño = tamaño;\n\t\tthis.inserted = 0;\n\t\tthis.extracted = 0;\n\t\tthis.insertIn = 0;\n\t\tthis.extractFrom = 0;\n\t}",
"public void initialisationGrille(){\n for(int i = 0; i < this.grille.length ; i++)\n {\n for(int j = 0 ; j < this.grille[i].length;j++)\n {\n this.grille[i][j] = \"0\";\n this.grilleObjectif[i][j] = \"0\";\n }\n }\n }",
"@Nonnull\n public Matrix getU ()\n {\n final Matrix aNewMatrix = new Matrix (m_nCols, m_nCols);\n final double [] [] aNewArray = aNewMatrix.internalGetArray ();\n for (int nRow = 0; nRow < m_nCols; nRow++)\n {\n final double [] aSrcRow = m_aLU[nRow];\n final double [] aDstRow = aNewArray[nRow];\n for (int nCol = 0; nCol < m_nCols; nCol++)\n if (nRow <= nCol)\n aDstRow[nCol] = aSrcRow[nCol];\n else\n aDstRow[nCol] = 0.0;\n }\n return aNewMatrix;\n }",
"public int initialiser()\n\t{\n\n\t\tint nombreE;\n\t\tint k = 0;\n\t\t//int max = randInt(2,10);\n\t\ttableauPeres_ = new Case[longueur_][longueur_];\n\t\tint i, j = 0;\n\t\tfor(i=0; i<longueur_; ++i)\n\t\t{\n\t\t\tfor(j=0; j<longueur_; ++j)\n\t\t\t{\n\t\t\t\ttableauPeres_[i][j] = new Case(i, j, 0);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"Combien d'étoiles souhaitez vous pour chaque joueur ?\");\n\t\tnombreE = clavier.nextInt();\n\t\twhile (k < nombreE)\n\t\t{\n\t\t\taddEtoile(\"bleu\");\n\t\t\taddEtoile(\"rouge\");\n\t\t\t++k;\n\t\t}\n\t\treturn nombreE;\n\t}",
"static boolean alumnoAprobo(int notas[])\n\t\t{\n\t\t\tint notas[] = new int [3];\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\n\t\t\treturn false;\n\t\t}",
"public Curso() {\n\t\tthis.alumnos = new ArrayList<Alumno>();\n\t\tcupo = 0;\n\t\tcreditos = 0;\n\t}",
"private void populaUnidadeMedida()\n {\n UnidadeMedida u = new UnidadeMedida(\"Gramas\", \"g\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Quilo\", \"kg\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Quilo\", \"kg\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Unidade\", \"unidade\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Sopa\", \"col. sopa\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Sobremesa\", \"col. sobremesa\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Colher de Chá\", \"col. chá\");\n unidadeMedidaDAO.insert(u);\n u = new UnidadeMedida(\"Copo\", \"copo\");\n unidadeMedidaDAO.insert(u);\n\n }",
"@Test\n public void testSetA() {\n final double expected[] = getMatrix().getA();\n final Matrix33d m = new Matrix33d();\n m.setA(Arrays.copyOf(expected, expected.length));\n for (int i = 0; i < expected.length; i++) {\n assertEquals(m.getA()[i], expected[i]);\n }\n }",
"public int[][] turfu() {\r\n\t\tint[][] tab = new int[matrice[0].length][matrice.length]; \r\n\t\tint n =0; \r\n\t\tfor(int i=0; i<tab.length; i++) {\r\n\t\t\tfor(int j=0; j< tab[0].length; j++) {\r\n\t\t\t\ttab[i][j] = matrice[j][n]; \r\n\t\t\t}\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn tab; \r\n\t}",
"private void populaAula()\n {\n Aula aula = new Aula(\"Abdominal\", \"Aula que tem como objetivo o aumento da força e resistência muscular abdominal,\"\n + \" melhora da postura e diminuição das dores lombares, através de exercícios de resistência \"\n + \"muscular. Indicada para todos os níveis de condicionamento para iniciantes, intermediários e \"\n + \"avançados. DURAÇÃO 30'\", \"ab.jpg\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Boxe\", \"Aula de condicionamento físico que utiliza a técnica e exercícios do boxe. Indicada para todos os níveis \"\n + \"de condicionamento para iniciantes, intermediários e avançados. DURAÇÃO 60'\", \"boxe.gif\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Jiu Jitsu\", \"Aula com treinamento específico da modalidade\", \"jiujitsu.gif\");\n aulaDAO.insert(aula);\n\n aula = new Aula(\"Bike\", \"Aula que tem como objetivo o condicionamento cardiovascular, através de uma \"\n + \"periodização de treinamento específica da modalidade. Indicada para todos os níveis de condicionamento para \"\n + \"iniciantes, intermediários e avançados. DURAÇÃO 30', 45' E 60'\", \"bike.gif\");\n aulaDAO.insert(aula);\n }",
"public void tyhjenna() {\n this.kulmat.clear();\n }",
"public void ConceptosMatrices() {\n int[][] maX={{5,6,6},\n {5,6,2},\n {5,12,2},\n {5,6,2}};\n //Obtener el tamaño de la fila de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX.length);\n //Obtener el tamaño de la columna de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX[0].length);\n System.out.println(\"Mostrar el valor 12 de la matriz maX=\"+maX[2][1]);\n //Cambiar el elemento 12 de la matriz maX por 16\n maX[2][1]=16;\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Ingrese un valor en los indices 2,2\");\n maX[2][2]=sc.nextInt();\n \n System.out.println(\"Defina el indice para fila:\");\n int iFx=sc.nextInt(); \n int iCx=sc.nextInt(); \n System.out.println(\"Ingrese un valor en los indices \"+iFx+\", \"+iCx+\":\");\n maX[iFx][iCx]=sc.nextInt(); \n \n imprimirMatriz(maX);\n \n //defenir matrices sin dimensiones\n int[][] matrizN;\n //definiendo dimensiones a una matriz\n System.out.println(\"Ingrese la dimension en fila para la MatrizN=\");\n int inFi=sc.nextInt();\n System.out.println(\"Ingrese la dimension en columna para la MatrizN=\");\n int inCo=sc.nextInt();\n matrizN=new int[inFi][inCo]; \n int vi=0;\n //Rellenando una matriz con una serie de numeros\n for (int f = 0; f < matrizN.length; f++) {\n for (int c = 0; c < matrizN[0].length; c++) {\n System.out.println(\"Ingrese un valor en matrizN[\"+f+\"][\"+c+\"]:=\");\n matrizN[f][c]=sc.nextInt();\n vi=vi+2;\n } \n } \n System.out.println(\"la nueva matrizN es de: \"+matrizN.length+\"x\"+matrizN[0].length);\n imprimirMatriz(matrizN); \n\n }",
"public Alumno(String nombre, String apellido) {\n this.nombre = nombre;\n this.apellido = apellido;\n this.pagames=0;\n }",
"private void aretes_aG(){\n\t\tthis.cube[31] = this.cube[14]; \n\t\tthis.cube[14] = this.cube[5];\n\t\tthis.cube[5] = this.cube[41];\n\t\tthis.cube[41] = this.cube[50];\n\t\tthis.cube[50] = this.cube[31];\n\t}",
"public void makeIdentity() {\n if (rows == cols) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n if (i == j) {\n matrix.get(i)[j] = 1;\n }\n else {\n matrix.get(i)[j] = 0;\n }\n }\n }\n }\n else {\n throw new NonSquareMatrixException();\n }\n }",
"void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }",
"public void buscar_um_no(Norms norma_local){\n\t\tbuscar_no(this.raiz, norma_local);\n\t}",
"public void ordenarXNombreBurbuja() {\r\n\t\tfor (int i = datos.size(); i > 0; i-- ) {\r\n\t\t\tfor (int j=0; j<i-1; j++) {\r\n\t\t\t\tif(\tdatos.get(j).compare(datos.get(j), datos.get(j+1)) == (1)) {\r\n\t\t\t\t\tJugador tmp = datos.get(j);\r\n\t\t\t\t\tdatos.set(j, datos.get(j+1));\r\n\t\t\t\t\tdatos.set((j+1), tmp);\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 Scanner sc= new Scanner (System.in);\r\n //Se declara la variable para el tama;o de la matriz\r\n int a;\r\n System.out.println(\"Tama;o de la matriz\");\r\n //Se guarda en la cariable a el dato ingresado gracias a escanner\r\n a=sc.nextInt();\r\n //Se declara la matriz de tipo char para mostrar caracteres con tama;o que ingrese el usuario\r\n char [][] sup = new char [a][a];\r\n //se inicia el recorrido del arreglo\r\n for (int i = 0; i < sup.length; i++) {\r\n for (int j = i; j < sup[i].length; j++) {\r\n //if que detecta que cuando la posicion de i es superior a la de j no mostrara nada solo sera un valor nulo\r\n if (j < i) {\r\n //Se muestra lo que se muestra en el sout\r\n System.out.print(\" \");\r\n } else {\r\n //Si es diferente a la condicion muestra valores con *\r\n System.out.print(sup[i][j]='*'); \r\n \r\n }\r\n }\r\n System.out.println(); \r\n }}",
"public final m aoA() {\n return null;\n }",
"public Alumnos(String nombre, String apellido, Condicion condicion, Genero genero, Vector<Asignatura> asignaturas) {\n\t\t//super();\n\t\tthis.nombre = nombre;\n\t\tthis.apellido = apellido;\n\t\tthis.condicion = condicion;\n\t\tthis.genero = genero;\n\t\tthis.asignaturas = new Vector<Asignatura>(asignaturas);\n\t\tthis.calculadorNotaFinal();\t\t\n\t}",
"public int compterAnimaux(){\r\n\t\treturn noms.size();\r\n\t}",
"private void aretes_aR(){\n\t\tthis.cube[13] = this.cube[52]; \n\t\tthis.cube[52] = this.cube[19];\n\t\tthis.cube[19] = this.cube[1];\n\t\tthis.cube[1] = this.cube[28];\n\t\tthis.cube[28] = this.cube[13];\n\t}",
"public boolean ident() {\n clear();\n for (int i = 0; i < 4; i++) {\n double[] toAdd = new double[4];\n for (int j = 0; j < 4; j++) {\n if (j == i) {\n toAdd[j] = 1;\n } else {\n toAdd[j] = 0;\n }\n }\n mat.add(toAdd);\n }\n maxCols = mat.size();\n return true;\n }",
"public DialogoAgregarMatACurso() {\n super();\n \n matricula = -1;\n idalumno = -1;\n \n initComponents();\n \n setearListeners();\n \n setearInicioDeClases();\n \n String sIdCurso = CursosagregarAlumnoCBCurso.getSelectedItem().toString();\n sIdCurso = sIdCurso.substring(0, sIdCurso.indexOf(\"-\"));\n int idCurso = Integer.valueOf(sIdCurso);\n setearGananciaProfesorRecargosYCuotas(idCurso);\n }",
"public void carregarAno() {\n\t\tif (usuario.getOrganizacaoMilitar().toString().equals(\"AMAN\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t}\n\t\telse if (usuario.getOrganizacaoMilitar().toString().equals(\"ECEME\")){\n\t\t\tano.addAll(Arrays.asList(Ano.values()));\n\t\t\tano.remove(Ano.TERCEIRO);\n\t\t\tano.remove(Ano.QUARTO);\n\t\t}\n\t\telse{\n\t\t\tcarregarRegistroDoPrimeiroAno();\n\t\t}\n\t}",
"public void generaBuits() {\r\n\r\n //FIX PARA EL OUT OF BOUNDS DE la columna 9 \r\n //int cellId = randomGenerator(N*N) - 1;\r\n //QUITAR \r\n //if (j != 0)\r\n //j = j - 1;\r\n int count = K;\r\n while (count != 0) {\r\n int cellId = generadorAleatoris(N * N) - 1;\r\n\r\n //System.out.println(cellId); \r\n // extract coordinates i and j \r\n int i = (cellId / N);\r\n int j = cellId % 9;\r\n\r\n // System.out.println(i+\" \"+j); \r\n if (mat[i][j] != 0) {\r\n count--;\r\n mat[i][j] = 0;\r\n }\r\n }\r\n }",
"private void resetPieza() {\n for (int i = 0; i < altoTablero * anchoTablero; ++i) {\r\n piezas[i] = PiezasTetris.NoPieza;\r\n }\r\n }",
"private void pasar_a_matriz_adyacencia() {\n table_panel1.eliminar_All();//elimino todo los elemento de la matrices\n Grafo g = panel.getGrafo();//saco el grafo del panel\n data_fila[] dato = new data_fila[g.size_vertice()];//hago de una arreglo de vectores \n for (int i = 0; i < g.size_vertice(); i++) {//estructuras de datos\n dato[i] = new data_fila();\n }\n\n for (int i = 0; i < g.size_vertice(); i++) {\n Vertices A = g.get_vertices(i);\n dato[i].setNombre(A.getNombre());\n for (int j = 0; j < g.size_vertice(); j++) {\n if (j != i) {\n Vertices B = g.get_vertices(j);\n int peso =A.adyacencia(B);\n if (peso != Integer.MIN_VALUE) {\n dato[i].setArry(j, peso);\n }\n\n }\n }\n table_panel1.add(dato[i]);\n }\n }",
"public void listadoNotaMediaAlumnos() {\r\n\t\tint acumulador;\r\n\t\tfor(int i=0; i<notasAlumnos.length; i++) {\r\n\t\t\tacumulador = 0;\r\n\t\t\tfor(int j=0; j<notasAlumnos[i].length; j++) {\r\n\t\t\t\tacumulador += notasAlumnos[i][j];\r\n\t\t\t}\r\n\t\t\tSystem.out.println(alumnos[i] + \": \" + acumulador + \" de Nota Media.\");\r\n\t\t}\r\n\t}",
"public static void DeterminarArregloDeMisiles() {\n\t\tVectorDeMisilesCrucerosPorNivel[3] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[4] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[7] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[8] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[11] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[12] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[15] = true;\n\t\tVectorDeMisilesCrucerosPorNivel[16] = true;\n\t}",
"private void aretes_aW(){\n\t\tthis.cube[4] = this.cube[16]; \n\t\tthis.cube[16] = this.cube[23];\n\t\tthis.cube[23] = this.cube[37];\n\t\tthis.cube[37] = this.cube[30];\n\t\tthis.cube[30] = this.cube[4];\n\t}",
"private void aumentaCapacidade(){\n\t\tif(this.tamanho == this.elementos.length){\n\t\t\tObject[] elementosNovos = new Object[this.elementos.length*2];\n\t\t\tfor(int i =0; i<this.elementos.length;i++){\n\t\t\t\telementosNovos[i]=this.elementos[i];\n\t\t\t}\n\t\t\tthis.elementos=elementosNovos;\n\t\t}\n\t}",
"void makeZero(){\n nnz = 0;\n for(int i=0; i<this.matrixSize; i++){\n this.rows[i] = new List();\n }\n }",
"public void etatInitial(){\r\n\t\t\r\n\t\tfor(int i=0; i<plateau.length;i++){\r\n\t\t\tfor(int j =0; j< plateau[0].length; j++)\r\n\t\t\t{\r\n\t\t\t\tplateau[i][j] = \" \";\r\n\t\t\t}\r\n\t\t}\r\n\t\tplateau[3][3] = \" B \";\r\n\t\tplateau[3][4] = \" N \";\r\n\t\tplateau[4][4] = \" B \";\r\n\t\tplateau[4][3] = \" N \";\r\n\t\t\r\n\t}",
"private void moverCarroLujo() {\n for (Auto auto : arrEnemigosAuto) {\n auto.render(batch);\n\n auto.moverIzquierda();\n }\n }",
"public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }",
"public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }",
"public void ordenarXNombreInsercion() {\r\n\t\tfor (int i = 1; i < datos.size(); i++) {\r\n\t\t\tfor (int j = i; j>0 && ( (datos.get(j-1).compare(datos.get(j-1), datos.get(j)))==(1) ); j--) {\r\n\t\t\t\tJugador temp = datos.get(j);\r\n\t\t\t\tdatos.set(j, datos.get(j-1));\r\n\t\t\t\tdatos.set(j-1, temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"PlateauGauffre(int largeur, int hauteur)\n {\n this(new Boolean[largeur][hauteur]);\n for (int x = 0; x < getLargeur(); x++)\n {\n for (int y = 0; y < getHauteur(); y++)\n {\n setAt(x, y, true);\n }\n }\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"@Override\n\tpublic double getMassaInterna()\n\t{\n\t\treturn 0.0;\n\t}",
"public static void MostrarMatriz(){\n int IFila=0;\n System.out.println(\"Nombre\\t\\tNOta\\t\\tGano/Perdio\");\n for(IFila=0;IFila<10;IFila++)\n {\n System.out.println(StrNotas[IFila][0]+\"\\t\\t\"+StrNotas[IFila][1]+\"\\t\\t\"+StrNotas[IFila][2]);\n }\n }",
"public void nullifyMatrix(int[][] mat) {\r\n //extra space\r\n boolean rows[] = new boolean[mat[0].length];\r\n boolean columns[] = new boolean[mat.length];\r\n \r\n for (int i=0;i<mat.length ;i++ ) {\r\n for (int j=0; j<mat[0].length;j++ ) {\r\n if(mat[i][j] == 0) {\r\n rows[i] = true;\r\n columns[j] = true;\r\n }\r\n } \r\n }\r\n \r\n //Nullify rows\r\n for(int i=0; i<rows.length; i++) {\r\n if(rows[i])\r\n helperNullifyRow(mat, i);\r\n }\r\n //Nullify columns\r\n for(int i=0; i<columns.length; i++) {\r\n if(columns[i])\r\n helperNullifyColumn(mat,i);\r\n }\r\n printMat(mat);\r\n }",
"public void reiniciar(){\r\n for(int i=0; i<3; i++){\r\n for(int a=0; a<3; a++){\r\n gato[i][a] = ' ';\r\n }\r\n }\r\n }",
"@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}",
"public void ponerFichaOrdenador(){\n\t\tif (verificaGana() == -1){\n\t\t\t\n\t\t\tint nx = (int) Math.floor(Math.random()*3);\n\t\t\tint ny = (int) Math.floor(Math.random()*3);\n\t\t\tint res=0;\n\t\t\tfor (int i=nx;i<3;i++){\n\t\t\t\tfor (int j=ny;j<3;j++){\n\t\t\t\t\tif (m[i][j]==0){\n\t\t\t\t\t\tm[i][j]=2;\n\t\t\t\t\t\tres = 1;\n\t\t\t\t\t\ti=3;j=3;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (res==0) {\n\t\t\t\tfor (int i=0;i<3;i++){\n\t\t\t\t\tfor (int j=0;j<3;j++){\n\t\t\t\t\t\tif (m[i][j]==0){\n\t\t\t\t\t\t\tm[i][j]=2;\n\t\t\t\t\t\t\tres = 1;\n\t\t\t\t\t\t\ti=3;j=3;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\t}",
"public String modificar() {\n\n\t\tLOG.info(\"accion crear alumno\");\n\t\tString view = VIEW_LISTADO;\n\t\tview = VIEW_FORM_ALTA;\n\t\tthis.alumnos.add(this.alumno);\n\t\treturn view;\n\t}",
"public void agregarVidaLogica(){\n int numvida = tam * tam;\n numvida*=0.05;\n System.out.println(numvida);\n for(int i=0;i<numvida;i++){\n int x= (int)(Math.random()*tam);\n int y= (int)(Math.random()*tam);\n if(matriz[y][x]!=2 && matriz[y][x]!=1){\n matriz[y][x]=4;\n }\n }\n }",
"private void removerFaltas(final String matricula) {\n firebase.child(\"Alunos/\" + matricula + \"/faltas\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n long qtdAtual = (long) dataSnapshot.getValue();\n if (qtdAtual > 0) {\n firebase.child(\"Alunos/\" + matricula + \"/faltas\").setValue(qtdAtual - 1);\n\n if (alunoEncontrado == null) {\n Log log = new Log(matricula, 0);\n log.faltas(\"Remover\");\n } else {\n Log log = new Log(alunoEncontrado, 0);\n log.faltas(\"Remover\");\n }\n Toast.makeText(getContext(), \"Falta removida com sucesso.\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getContext(), \"Aluno possui 0 faltas.\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }",
"public void resetNuevoNombre()\r\n {\r\n this.nuevoNombre = null;\r\n }",
"public void Nouvelleligne() {\n int maxEleve = retourneMaxNumber() + 1;\n try {\n Connector1.statement.executeUpdate(\"Insert INTO eleve(id_el) VALUES (\" + maxEleve + \")\");\n Object[] val = {maxEleve, \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\", \"\"};\n effaceTable(jTable2, mode);\n mode.addRow(val);\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"ERROR \\n\" + e.getMessage());\n\n }\n\n }",
"public Builder clearA() {\n \n a_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearA() {\n \n a_ = 0;\n onChanged();\n return this;\n }",
"private void resetMatrixB() {\n\t\t// find the magnitude of the largest diagonal element\n\t\tdouble maxDiag = 0;\n\t\tfor( int i = 0; i < N; i++ ) {\n\t\t\tdouble d = Math.abs(B.get(i,i));\n\t\t\tif( d > maxDiag )\n\t\t\t\tmaxDiag = d;\n\t\t}\n\n\t\tB.zero();\n\t\tfor( int i = 0; i < N; i++ ) {\n\t\t\tB.set(i,i,maxDiag);\n\t\t}\n\t}",
"private void Limpiar() {\n txtEnunciado.setText(\"\");\n txtOpcionNumerica.setText(\"\");\n txtOpcionNominal.setText(\"\");\n controladorAgrePreguntas.limpiarArray();\n x = 0;\n }",
"@Test\n public void testConstructor() {\n final Matrix33d m = new Matrix33d();\n double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n assertEquals(a[i], 0D);\n }\n }",
"private static String nombreMayorNota(int[] notas ,String[] nombres) {\n\t\tint notaInicial = 0;\n\t\tint posicionMayor = 0;\n\n\t\tfor (int i = 0; i < notas.length; i++) {\n\n\t\t\tif (notaInicial < notas[i]) {\n\n\t\t\t\tposicionMayor = i;\n\t\t\t\tnotaInicial = notas[i];\n\t\t\t}\n\t\t}\n\t\treturn nombres[posicionMayor];\n\t}",
"public Plateau(int largeur, int hauteur) {\r\n\t\tplateau = new Cellule[hauteur][largeur];\r\n\t\tint equipe = 1;\r\n\t\tfor (int i=0; i<hauteur; i++) {\r\n\t\t\tfor (int j=0; j<largeur; j++) {\r\n\t\t\t\tif ((i == 0 && j == 0) || (i == hauteur-1 && j == largeur -1))\r\n\t\t\t\t\tplateau[i][j] = new Base(j,i,equipe++);\r\n\t\t\t\telse\r\n\t\t\t\t\tplateau[i][j] = new Case(j,i);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.hauteur = hauteur;\r\n\t\tthis.largeur = largeur;\r\n\t}",
"private void remplirMaterielData() {\n\t}",
"public void notaFinal() {\n\n for (int i = 0; i <= (nombres.size() - 1); i++) {\n\n notaFinal.add((notas.get(0) + notas.get(1) + notas.get(2)) / 3);\n\n }\n\n }",
"public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }",
"public void inscribir(Alumno a) throws InscripcionCursoException{\n\t\tif (cupo < 1) {\n\t\t\tthrow new CupoNoDisponibleException(cupo);\n\t\t} else {\n\t\t\talumnos.add(a);\n\t\t\tcupo--;\n\t\t}\n\t}",
"public void imprimir() {\n Nodo reco=raiz;\n System.out.println(\"Listado de todos los elementos de la pila.\");\n System.out.print(\"Raiz-\");\n while (reco!=null) {\n \tSystem.out.print(\"(\");\n System.out.print(reco.edad+\"-\");\n System.out.print(reco.nombre+\"\");\n System.out.print(\")-\");\n //System.out.print(reco.sig+\"-\");\n reco=reco.sig;\n }\n System.out.print(\"Cola\");\n System.out.println();\n }",
"void miauler() {\r\n\t\tSystem.out.println(this.miaulement);\r\n\t}",
"private void laskeMatkojenPituus() {\n matkojenpituus = 0.0;\n\n for (Matka m : matkat) {\n matkojenpituus += m.getKuljettumatka();\n }\n\n }",
"private void arretes_fO(){\n\t\tthis.cube[40] = this.cube[37]; \n\t\tthis.cube[37] = this.cube[39];\n\t\tthis.cube[39] = this.cube[43];\n\t\tthis.cube[43] = this.cube[41];\n\t\tthis.cube[41] = this.cube[40];\n\t}",
"public static void IngresoDatos(){\n int IFila=0,ICol=0;\n int INota;\n for(IFila=0;IFila<10;IFila++)\n {\n StrNotas[IFila][0]=JOptionPane.showInputDialog(null, \"Ingrse nombre del alumno:\");\n INota=LlenadoRandom(0,100);\n StrNotas[IFila][1]=Integer.toString(INota);\n if(INota<61)\n StrNotas[IFila][2]=\"Perdio\";\n else\n StrNotas[IFila][2]=\"gano\";\n }\n }",
"public Matriz( int lin, int col )\n {\n if(lin <= 0 || col <= 0 )\n {\n IO.println(\"ERRO: Quantidade invalida. \" );\n } //end\n else\n {\n table = new Object[lin][col];\n } //end se\n }",
"private static void empty() {\n\t\t// 행과 열을 상수로\n\t\tfinal int ROW_COUNT = 5, COL_COUNT = 8;\n\t\t// 5행\n\t\tfor (int rowIdx = 0; rowIdx < ROW_COUNT; rowIdx++) {\n\t\t\t// 8열 만들기\n\t\t\tfor (int colIdx = 0; colIdx < COL_COUNT; colIdx++) {\n\t\t\t\tif (rowIdx == 0 || rowIdx == ROW_COUNT - 1) {\n\t\t\t\t\t// 첫 행과 마지막 행은 경계\n\t\t\t\t\tSystem.out.print('*');\n\t\t\t\t} else if (colIdx == 0 || colIdx == COL_COUNT - 1){\n\t\t\t\t\t// 첫 열과 마지막 열은 경계\n\t\t\t\t\tSystem.out.print('*');\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// 가운데 공간 채우기\n\t\t\t\t\tSystem.out.print('-');\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t// 행을 나누기\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public Alumno darDeAltaAlumno(Scanner sc) {\n\n System.out.println(\"Por Favor, Introduzca el nombre y el primer apellido del alumno a matricular\");\n Alumno nombreYApellido = new Alumno(sc.nextLine(), sc.nextLine());\n //crear el alumno\n alumnos[numAlumnos] = nombreYApellido;\n numAlumnos++;\n //devolver alumno\n return nombreYApellido;\n }",
"void Death(){\r\n if (vie==0){\r\n this.plateau[this.x][this.y]='0';\r\n }\r\n }",
"public void resetEmpty() {\n\t /*reset the mineField with no mines*/\n mineField = blankField(this.row, this.col);\n }",
"private void registrar() {\n String nombre = txtNombre.getText();\n if (!nombre.trim().isEmpty()) {\n Alumno a = new Alumno();\n \n // cont++ , ++cont\n// contIds++;\n a.setNombre(nombre);\n a.setId(++contIds);\n \n listaAlumnos.add(a);\n\n lblCantidad.setText(\"Cantidad de nombres: \" + listaAlumnos.size());\n\n txtNombre.setText(null);\n txtNombre.requestFocus();\n // Actualiza la interfaz gráfica de la tabla\n tblNombres.updateUI();\n \n// int cont = 1;\n// System.out.println(\"------------------\");\n// System.out.println(\"Listado de alumnos\");\n// System.out.println(\"------------------\");\n// for (String nom : listaNombres) {\n// System.out.println(cont+\") \"+nom);\n// cont++;\n// }\n// System.out.println(\"------------------\");\n }\n }",
"public void rellenarTerreno() {\n Random rnd = new Random();\r\n int restante = V;\r\n int[][] aux = terreno;\r\n do {\r\n for (int i = 0; i < Filas; i++) {\r\n for (int j = 0; j < Columnas; j++) {\r\n if (restante > max) {\r\n int peso = rnd.nextInt(max);\r\n if (aux[i][j] + peso <= max) {\r\n aux[i][j] += peso;\r\n restante -= peso;\r\n }\r\n } else {\r\n if (aux[i][j] + restante <= max) {\r\n aux[i][j] += restante;\r\n restante = 0;\r\n }\r\n }\r\n }\r\n }\r\n } while (restante != 0);\r\n }",
"@Override\n\tpublic void setMatrix(int n) {\n\t\tthis.baris = DeretAngka.getLastTriAngluar(n);\n\t\tthis.kolom = n*n;\n\t\tthis.matrix = new String[this.baris][this.kolom];\n\t\t//int[] bil1 = {1,2,3,4};\n\t\t//int[] bil2 = {1,3,5,7};\n\t\t//int[] bil3 = {0,1,2,3};\n\t\tint[] bil4 = DeretAngka.getTriAngluar(n);//{0,1,3,6};\n\t\tint[] bil5 = DeretAngka.getPangkat(n);//{0,1,4,9};\n\t\tint addBangun = 1;\n\t\tint addGanjil = 1;\n\t\tfor(int bangun =0; bangun < n; bangun++) {\n\t\t\t//int pangkat = bangun * bangun; //0*0,1*1,2*2,3*3\n\t\t\tfor (int i = 0; i < addBangun; i++) {\n\t\t\t\tfor (int j = 0; j < addGanjil; j++) {\n\t\t\t\t\tif(i+j >= bangun && j - i <= bangun) {\n\t\t\t\t\t\tthis.matrix[i + bil4[bangun]][j+bil5[bangun]] = \"*\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\taddBangun = addBangun + 1;\n\t\t\taddGanjil = addGanjil + 2;\n\t\t}\n\t\t\n\t\t\n//\t\tfor (int i = 0; i < bil1[0]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[0]; j++) {\n//\t\t\t\tif(i+j >= 0 && j - i <= 0) {\n//\t\t\t\t\tthis.matrix[i+0][j+0] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\tfor (int i = 0; i < bil1[1]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[1]; j++) {\n//\t\t\t\tif(i+j >= 1 && j - i <= 1) {\n//\t\t\t\t\tthis.matrix[i+1][j+1] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\tfor (int i = 0; i < bil1[2]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[2]; j++) {\n//\t\t\t\tif(i+j >= 2 && j - i <= 2) {\n//\t\t\t\t\tthis.matrix[i+3][j+4] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n\t\t\n\t}",
"private void Mostra() {\n mat = matriz.getMatriz();\n\n for (int lin = 0; lin < 9; lin++) {\n for (int col = 0; col < 9; col++) {\n array_texto[lin][col].setEditable(true);\n array_texto[lin][col].setText(mat[lin][col]);\n array_texto[lin][col].setBackground(Color.white);\n\n for (char letra : array_texto[lin][col].getText().toCharArray()) {\n if ((letra < 1 || letra > 9)) {\n array_texto[lin][col].setEditable(false);\n array_texto[lin][col].setBackground(Color.LIGHT_GRAY);\n }\n }\n }\n }\n }",
"@Test\n public void testIdentity() {\n final double junk[] = new double[Matrix33d.LENGTH];\n for (int i = 0; i < Matrix33d.LENGTH; i++) {\n junk[i] = 1089.1451D;\n }\n final Matrix33d m = new Matrix33d();\n m.setA(junk);\n\n m.identity();\n final double a[] = m.getA();\n for (int i = 0; i < a.length; i++) {\n if (i == 0 || i == 4 || i == 8) {\n assertEquals(a[i], 1D);\n } else {\n assertEquals(a[i], 0D);\n }\n }\n }",
"public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }",
"public int[][] getMatriuSolucio() {\n\t\treturn null;\n\t}",
"public void nombre(ArrayList<Alumno> lista)\n {\n int flag = 1, cont = 0, tam2 = 0, cont2 = 0;\n int tam = lista.size();\n \n for (int i = 0; i < tam; i++)\n {\n if (flag == 1)\n {\n Bloque1I.add(lista.get(i).getNombre());\n Bloque1.add(lista.get(i));\n cont++;\n cont2++;\n }\n if (flag == -1)\n {\n Bloque2I.add(lista.get(i).getNombre());\n Bloque2.add(lista.get(i));\n cont++;\n cont2++;\n }\n\n if (cont == n || ((validador == 1) && (cont2+1 > tam2)))\n {\n validador = 0;\n if (flag == 1)\n {\n int size = Bloque1.size();\n Sort.sort(Bloque1, Bloque1I);\n for (int j = 0; j < size; j++)\n {\n F1.add(Bloque1.get(j));\n F1I.add(Bloque1I.get(j));\n }\n Bloque1.clear();\n Bloque1I.clear();\n if(cont2+n > tam)\n {\n validador = 1;\n tam2 = tam-cont2;\n cont2 = 0;\n }\n }\n else\n {\n int size = Bloque2.size();\n Sort.sort(Bloque2, Bloque2I);\n for (int j = 0; j < size; j++)\n {\n F2.add(Bloque2.get(j));\n F2I.add(Bloque2I.get(j));\n }\n Bloque2.clear();\n Bloque2I.clear();\n if(cont2 + n > tam)\n {\n validador = 1;\n tam2 = tam-cont2;\n cont2 = 0;\n }\n }\n flag = flag * (-1);\n cont = 0;\n }\n }\n \n F0 = intercalacion.intercalar(F1, F2, F1I, F2I, n, tam);\n \n devolverArchivo(F0);\n }",
"public Repertoire(String nom) throws mesExceptions {\r\n super(nom);\r\n nbElem = 0;\r\n }",
"Soldat[][] getUnites();",
"public Value.Builder clearJamMulai() {\n fieldSetFlags()[2] = false;\n return this;\n }",
"public MatkaKokoelma() {\n tallentaja = new TXTTallentaja();\n matkat = new ArrayList<Matka>();\n matkojenkesto = 0.0;\n }",
"public Summalista()\r\n\t{\r\n\t\tthis.summa = 0;\r\n\t\tthis.alkiot = 0;\r\n\t}",
"public void clear() {\n\t members = 0;\n\t dense[0] = -1;\n\t}",
"public static Matrix getUpperMatrix(Matrix A) {\n\t\tint size = A.getColumnDimension();\n\t\t\n\t\tdouble[][] u = new double[size][size];\n\t\t\n\t\tfor(int i = 0; i<size; i++){\n\t\t\tfor(int j=0; j < size; j++){\n\t\t\t\tif(j>i) u[i][j] = A.get(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tMatrix U = new Matrix(u);\n\t\t\n\t\treturn U;\n\t}"
] | [
"0.5926546",
"0.59098977",
"0.5632948",
"0.5599293",
"0.55668515",
"0.5543492",
"0.5525888",
"0.5502684",
"0.5452053",
"0.5398104",
"0.5378612",
"0.53243834",
"0.5321407",
"0.5291718",
"0.52834195",
"0.52651143",
"0.5257089",
"0.52543676",
"0.524745",
"0.52381474",
"0.52366334",
"0.5228391",
"0.5228024",
"0.52100843",
"0.5209916",
"0.5205059",
"0.5203987",
"0.5200618",
"0.519554",
"0.51952976",
"0.5192214",
"0.51883847",
"0.5164434",
"0.51520085",
"0.51512593",
"0.51426685",
"0.5119425",
"0.51081693",
"0.5100236",
"0.5089051",
"0.5087886",
"0.5074482",
"0.50678986",
"0.50628763",
"0.50572675",
"0.50557494",
"0.5039304",
"0.5014145",
"0.5013636",
"0.4999907",
"0.49969015",
"0.49937102",
"0.4992245",
"0.49898398",
"0.4987244",
"0.49792123",
"0.49757466",
"0.49730626",
"0.4972991",
"0.49720064",
"0.49714205",
"0.49679512",
"0.49632967",
"0.49596277",
"0.49448434",
"0.4944335",
"0.4944335",
"0.4943163",
"0.4943068",
"0.4938998",
"0.4938246",
"0.49373564",
"0.4937009",
"0.4931475",
"0.49296513",
"0.49240413",
"0.49226227",
"0.491953",
"0.4916683",
"0.49138665",
"0.49089834",
"0.48982006",
"0.48968133",
"0.4896629",
"0.48966038",
"0.48954818",
"0.48907644",
"0.48885715",
"0.48878613",
"0.48872992",
"0.4878655",
"0.48768112",
"0.4875511",
"0.48693454",
"0.48682117",
"0.4867189",
"0.48662034",
"0.48633394",
"0.48579013",
"0.48573187",
"0.48555282"
] | 0.0 | -1 |
/ Initialise les valeurs constantes et le type des contraintes | public void InitializeConstraints(boundkey[] bkc, double[] blc, NodesVector nvector, PipesVector pvector,
TapsVector tvector, double outflow, double PrixMax, double lcom) {
Nodes nodes;
Pipes pipes;
Taps taps;
/* Contraintes sur les Nodes - taps */
for (int i = 0; i < (NbNodes - NbTaps - 1); i++) {
nodes = (Nodes) nvector.elementAt(i + 1);
Cste[i] = -nodes.height;
bkc[i] = mosek.boundkey.up;
blc[i] = -1.0e30;
}
/* Contraintes sur les Taps */
for (int i = NbNodes - NbTaps - 1; i < (NbNodes - 1); i++) {
nodes = (Nodes) nvector.elementAt(i + 1);
taps = (Taps) tvector.elementAt(i - (NbNodes - NbTaps - 1));
if (taps.orifice == Orifices.MAXDIAM) {
Cste[i] = -nodes.height - ((outflow * outflow) / taps.faucetCoef);
} else {
Cste[i] = (-nodes.height
- (outflow * outflow * ((1 / taps.faucetCoef) + Math.pow(CoefOrif / taps.orifice, 4))));
}
bkc[i] = mosek.boundkey.up;
blc[i] = -1.0e30;
}
/* Contraintes sur les longueurs des Pipes */
for (int i = NbNodes - 1; i < (m - 1); i++) {
pipes = (Pipes) pvector.elementAt(i - NbNodes + 1);
Cste[i] = pipes.length;
bkc[i] = mosek.boundkey.fx;
blc[i] = Cste[i];
}
/* contrainte de prix max */
Cste[m - 1] = PrixMax;
bkc[m - 1] = mosek.boundkey.up;
blc[m - 1] = -1.0e30;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\t\n\t}",
"protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\t\n\t\tCursurIndex = 1;\n\t\t\n\t}",
"protected void init()\n {\n m_fModified = false;\n m_fLoaded = false;\n m_abClazz = null;\n m_clzName = null;\n m_clzSuper = null;\n m_pool = new ConstantPool(this);\n m_flags = new AccessFlags();\n m_tblInterface = new StringTable();\n m_tblField = new StringTable();\n m_tblMethod = new StringTable();\n m_tblAttribute = new StringTable();\n\n CONTAINED_TABLE[0] = m_tblField;\n CONTAINED_TABLE[1] = m_tblMethod;\n CONTAINED_TABLE[2] = m_tblAttribute;\n }",
"public static void initialisations() {\n\t\tit = 0;\r\n\t\tbc = 1;\r\n\r\n\t\t// pile des reprises pour compilation des branchements en avant\r\n\t\tpileRep = new TPileRep(); \r\n\t\t// programme objet = code Mapile de l'unite en cours de compilation\r\n\t\tpo = new ProgObjet();\r\n\t\t// COMPILATION SEPAREE: desripteur de l'unite en cours de compilation\r\n\t\tdesc = new Descripteur();\r\n\r\n\t\t// initialisation necessaire aux attributs lexicaux\r\n\t\tUtilLex.initialisation();\r\n\r\n\t\t// initialisation du type de l'expression courante\r\n\t\ttCour = NEUTRE;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de param�tres de chaque proc�dure \r\n\t\tnbParamProc = 0;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de variables d�clar�es\r\n\t\tnbVar++;\r\n\r\n\t\t//Initialisation vTmp\r\n\t\tvTmp = 0;\r\n\t\t\r\n\t\tdesc.setUnite(\"programme\");\r\n\t\t\r\n\t}",
"private void setNulls() {\n mEnum = null;\n mString = null;\n mCharSequence = null;\n //mBoolean = true;\n mBoolByte = BooleanDataType.NULL;\n mChar = CharDataType.NULL;\n mDateTime = DateTimeDataType.NULL;\n mTimeOfDay = TimeOfDayDataType.NULL;\n\n mByte = IntegerDataType.INT8_NULL;\n mShort = IntegerDataType.INT16_NULL;\n mInt = IntegerDataType.INT32_NULL;\n mInt48 = IntegerDataType.INT48_NULL;\n mLong = IntegerDataType.INT64_NULL;\n mFloat = FloatDataType.IEEE32_NULL;\n mDouble = FloatDataType.IEEE64_NULL;\n //mDouble2 = FloatDataType.IEEE64_NULL;\n mPUINT30 = IntegerDataType.PUINT30_NULL;\n mPUINT61 = IntegerDataType.PUINT61_NULL;\n mPIneterval = IntegerDataType.PINTERVAL_NULL;\n mSCALE_AUTO = FloatDataType.DECIMAL_NULL;\n mSCALE4 = FloatDataType.DECIMAL_NULL;\n }",
"protected void initVars() {}",
"private void initValues() {\n \n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }",
"public Constants() {\n }",
"private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}",
"private void initTables()\n {\n if ( vc == null )\n {\n // statics are not initialised yet\n vc = new char[ 64 ];\n cv = new int[ 256 ];\n // build translate valueToChar table only once.\n // 0..25 -> 'A'..'Z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i ] = ( char ) ( 'A' + i );\n }\n // 26..51 -> 'a'..'z'\n for ( int i = 0; i <= 25; i++ )\n {\n vc[ i + 26 ] = ( char ) ( 'a' + i );\n }\n // 52..61 -> '0'..'9'\n for ( int i = 0; i <= 9; i++ )\n {\n vc[ i + 52 ] = ( char ) ( '0' + i );\n }\n vc[ 62 ] = spec1;\n vc[ 63 ] = spec2;\n // build translate charToValue table only once.\n for ( int i = 0; i < 256; i++ )\n {\n cv[ i ] = IGNORE;// default is to ignore\n }\n for ( int i = 0; i < 64; i++ )\n {\n cv[ vc[ i ] ] = i;\n }\n cv[ spec3 ] = PAD;\n }\n valueToChar = vc;\n charToValue = cv;\n }",
"public void initDefaultValues() {\n }",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"public static void init()\n\t{\n\t\t\n\t\tu.creerGalaxie(\"VoieLactee\", \"spirale\", 0);\n\t\tu.creerEtoile(\"Soleil\", 0, 'F', u.getGalaxie(\"VoieLactee\")); //1\n\t\tu.creerObjetFroid(\"Terre\", 150000 , 13000 , 365 , u.getObjet(1)); //2\n\n\t\tu.creerObjetFroid(\"Lune\", 200 , 5000 , 30 , u.getObjet(2)); //3\n\n\t\tu.creerObjetFroid(\"Mars\", 200000 , 11000 , 750 , u.getObjet(1)); //4\n\n\t\tu.creerObjetFroid(\"Phobos\", 150 , 500 , 40 , u.getObjet(4)); //5\n\n\t\tu.creerObjetFroid(\"Pluton\", 1200000 , 4000 , 900 , u.getObjet(1)); //6\n\n\t\tu.creerEtoile(\"Sirius\", 2, 'B', u.getGalaxie(\"VoieLactee\")); //7\n\n\t\tu.creerObjetFroid(\"BIG-1\", 1000 , 50000 , 333 , u.getObjet(7)); //8\n\n\t\tu.creerGalaxie(\"M31\", \"lenticulaire\", 900000);\n\t\tu.creerEtoile(\"XS67\", 8, 'F', u.getGalaxie(\"M31\")); //9\n\t\tu.creerObjetFroid(\"XP88\", 160000 , 40000 , 400 , u.getObjet(9)); //10\n\t}",
"public void init (){\n for (int i = 0; i < tvalores.length; i++) {\n tvalores[i] = Almacen1.LIBRE;\n }\n valoresAlmacenados = 0;\n }",
"private static void initialize_sensorTypeToTableProperties() {\n\t\tinitialized_LinkType();\n\t\tinitialized_RoadActivitysType();\n\t\tinitialized_SealevelType();\n\t\tinitialized_SnowDepthType();\n\t\tinitialized_SnowFallType();\n\t\tinitialized_TrafficType();\n\t\tinitialized_WeatherType();\n\t\tinitialized_BikeHireType();\n\t\tinitialized_RailwayStationType();\n\t\tinitialized_ADSBHubType();\n\t}",
"private Constants() {\n }",
"private Constants() {\n }",
"public ValorVariavel() {\r\n }",
"private LevelConstants() {\n\t\t\n\t}",
"private DatabaseValidationProperties() {}",
"private USBConstant() {\r\n\r\n\t}",
"private void setupPrimitiveTypes()\n {\n primitiveTypes.add(INTEGER_TYPE);\n primitiveTypes.add(FLOAT_TYPE);\n primitiveTypes.add(DOUBLE_TYPE);\n primitiveTypes.add(STRING_TYPE);\n primitiveTypes.add(BOOL_TYPE);\n primitiveTypes.add(TIMESTAMP_TYPE);\n }",
"@Override\n\tprotected void init() {\n\t\tsuper.init();\n\t\tsintaticoHelper = AnalisadorSintaticoHelper.getInstancia();\n\t\tsintaticoHelper.errors = \"\";\n\t\tsintaticoHelper.errosCount = 0;\n\t}",
"private Constants() {\n\n }",
"private VolumeDataConstants() {\r\n \r\n }",
"private void initValues()\n {\n this.viewToolBar.setSelected(\n ConfigurationUtils.isChatToolbarVisible());\n\n this.viewSmileys.setSelected(\n ConfigurationUtils.isShowSmileys());\n\n this.chatSimpleTheme.setSelected(\n ConfigurationUtils.isChatSimpleThemeEnabled());\n }",
"private void initValues() {\n this.closeConnection();\n this.agregarRol = false;\n rutRoles = null; rutRoles = new Vector(); rutRoles.clear();\n deudasContribuyente = null; deudasContribuyente = new Vector(); deudasContribuyente.clear();\n rutRolesConsultados = null; rutRolesConsultados = new HashMap(); rutRolesConsultados.clear();\n param = null; param = new HashMap(); param.clear();\n\n demandasContribuyente = null; demandasContribuyente = new Vector(); demandasContribuyente.clear();\n demandaSeleccionada=null; demandaSeleccionada= new Long(-1);\n\n\n this.conveniosMasivo = null;\n\n porcentajeCuotaContado = null; porcentajeCuotaContado = new Long(0);\n porcentajeCondonacion = null; porcentajeCondonacion = new Long(0);\n pagoContado = null; pagoContado = new Long(0);\n numeroCuotas = null; numeroCuotas = new Long(0);\n totalPagar = null; totalPagar = new Long(0);\n totalPagarConCondonacion = null; totalPagarConCondonacion = new Long(0);\n arregloDeudas=\"\";\n tipoPago=1;\n estadoCobranza=\"T\";\n codigoPropuesta = new Long(0);\n codigoFuncionario = new Long(0);\n idTesoreria = new Long(0);\n liquidada = false;\n }",
"public ConstantProduct() {\n constProperty = \"constant\";\n constProperty2 = \"constant2\";\n }",
"public interface JCConstants {\n /**\n *\n */\n public final static String[] OP_LEFT = new String[] {\n \"\", \"(\"};\n public final static String[] OP_COMPARE = new String[] {\n \"\", \" = \", \" > \", \" >= \", \" < \", \" <= \", \" <> \", \" LIKE \",\" 包含 \"};\n public final static String[] OP_RIGHT = new String[] {\n \"\", \")\"};\n public final static String[] OP_CONN = new String[] {\n \"\", \"并且\", \"或者\"};\n\n public static final String[] COL_NAMES = {\n \"左(\", \"比较项目\", \"比较符\", \"比较值\", \"右)\", \"连接符\"};\n\n public static final String FILE_NAME = \"wizard.xml\";\n public static final String COBJ_ROOT_NAME = \"BaseConditionObjects\";\n\n public static final int DEFAULT_ROW_HEIGHT = 20;\n\n public static final String COLUMN_NAME_PREFIX=\"Column_\";\n}",
"@Override\n\tpublic void setConstant(InterpreteConstants c) {\n\t\t\n\t}",
"public interface DublinCoreConstants {\n \n /** Creates a new instance of Class */\n public static int DC_TITLE = 0;\n public static int DC_CREATOR = 1;\n public static int DC_SUBJECT = 2;\n public static int DC_DATE = 3;\n public static int DC_TYPE= 4;\n public static int DC_FORMAT= 5;\n public static int DC_IDENTIFIER = 6;\n public static int DC_COLLECTION = 7;\n public static int DC_COVERAGE = 8;\n \n public static int SUPPORTED_NUMBER = 9;\n \n public static final String[] DC_FIELDS = {\"title\",\"creator\",\"subject\",\"date\",\"type\",\"format\",\"identifier\",\"collection\",\"coverage\"};\n public static final String DC_NAMESPACE = \"dc:\";\n \n}",
"private Constants(){\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"public static void init(){\n\t\t\n\t\tif(!daoRol.existeRol(cliente.getNombre()))daoRol.save(cliente);\n\t\t\n\t\tif(!daoRol.existeRol(analista.getNombre()))daoRol.save(analista);\n\t\t\n\t\tif(!daoUsuario.existeUsuario(admin.getEmail(), admin.getMd5()))daoUsuario.save(admin);\n\t\t\n\t\t\n\t\tfor(TipoAccionPublicitaria t : TipoAccionPublicitaria.values()){\n\t\t\t\n\t\t\tif(daoPrecio.getCurrentPriceOf(t) == null){\n\t\t\t\tPrecioAccionPublicitaria p = new PrecioAccionPublicitaria();\n\t\t\t\tp.setCurrent(true);\n\t\t\t\tp.setFechaCreacion(DateTime.now());\n\t\t\t\tp.setMonto(\"0\");\n\t\t\t\tp.setObjetoValuable(t);\n\t\t\t\t\n\t\t\t\tdaoPrecio.save(p);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public static void initializeClassAttributes() {\n\t\tAboraSupport.findAboraClass(IntegerVarArray.class).setAttributes( new Set().add(\"CONCRETE\").add(\"PSEUDOCOPY\"));\n\t}",
"@Override\r\n\tprotected void initVentajas() {\n\r\n\t}",
"private CommonUIConstants()\n {\n }",
"void init() {\n txtClassname.getDocument().removeDocumentListener(syncTableDocL);\n txtTablename.getDocument().removeDocumentListener(syncClassDocL);\n txtDescription.getDocument().removeDocumentListener(syncClassDocL);\n txtPrimaryKeyfield.getDocument().removeDocumentListener(syncClassDocL);\n cidsClass = model.getCidsClass();\n initCboAttrPolicy();\n final DomainserverProject project = model.getProject();\n classTableModel = new ClassTableModel(project, cidsClass);\n tblAttr.setModel(classTableModel);\n final JXTable attrTable = (JXTable)tblAttr;\n attrTable.setSortOrder(0, SortOrder.ASCENDING);\n attrTable.setSortable(true);\n for (int i = 1; i < attrTable.getColumnCount(); ++i) {\n attrTable.getColumnExt(i).setSortable(false);\n }\n attrTable.getColumnExt(0).setVisible(false);\n retrieveAndSortTypes();\n final List<Icon> allIcons = new ArrayList<Icon>(project.getCidsDataObjectBackend().getAllEntities(Icon.class));\n Collections.sort(allIcons, new Comparators.Icons());\n cboClassIcons.setModel(new DefaultComboBoxModel(allIcons.toArray()));\n cboObjectIcons.setModel(new DefaultComboBoxModel(allIcons.toArray()));\n cboClassIcons.setRenderer(new Renderers.IconCellRenderer(project));\n cboObjectIcons.setRenderer(new Renderers.IconCellRenderer(project));\n if (cidsClass == null) {\n txtClassname.setText(\"\"); // NOI18N\n txtTablename.setText(\"\"); // NOI18N\n chkSync.setSelected(true);\n cboClassIcons.setSelectedIndex(0);\n cboObjectIcons.setSelectedIndex(0);\n txtPrimaryKeyfield.setText(\"ID\"); // NOI18N\n chkType.setEnabled(false);\n chkType.setSelected(true);\n chkIndexed.setSelected(false);\n txtDescription.setText(\"\"); // NOI18N\n } else {\n cboClassIcons.setSelectedItem(cidsClass.getClassIcon());\n cboObjectIcons.setSelectedItem(cidsClass.getObjectIcon());\n txtClassname.setText(cidsClass.getName());\n txtTablename.setText(cidsClass.getTableName());\n chkSync.setSelected(cidsClass.getName().equalsIgnoreCase(cidsClass.getTableName()));\n txtPrimaryKeyfield.setText(cidsClass.getPrimaryKeyField());\n cboObjectIcons.getSelectedItem();\n cboObjectIcons.getModel();\n chkType.setEnabled(false);\n chkType.setSelected(true);\n chkIndexed.setSelected((cidsClass.isIndexed() != null) && cidsClass.isIndexed());\n final String desc = cidsClass.getDescription();\n txtDescription.setText((desc == null) ? \"\" : desc); // NOI18N\n }\n this.cidsClass = classTableModel.getCidsClass();\n txtClassname.getDocument().addDocumentListener(syncTableDocL);\n txtTablename.getDocument().addDocumentListener(syncClassDocL);\n txtDescription.getDocument().addDocumentListener(syncClassDocL);\n txtPrimaryKeyfield.getDocument().addDocumentListener(syncClassDocL);\n syncTablename();\n classTableModel.setAttrSync(jtbAttrSync.isSelected());\n model.fireChangeEvent();\n tblAttr.getSelectionModel().clearSelection();\n }",
"private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerPerson = 0.0;\n\n }",
"private void inicializaValores(){\n /**\n * Reinicia los valores de las variables.\n */\n ce.setVariables();\n valorA.setText(null);\n valorB.setText(null);\n valorC.setText(null);\n x1.setText(null);\n x2.setText(null);\n \n }",
"protected NConstants() {\n }",
"public void init() {\r\n\r\n\t}",
"private void init() {\r\n\t\t// Convert the string Values from file to numerical values\r\n\t\tif ((field.getDecimalMinimum() != null)\r\n\t\t\t\t&& (field.getDecimalMaximum() != null)) {\r\n\t\t\ttry {\r\n\t\t\t\thasRange = true;\r\n\t\t\t\tminimum = Long.valueOf(Long.parseLong(field.getDecimalMinimum()));\r\n\t\t\t\tmaximum = Long.valueOf(Long.parseLong(field.getDecimalMaximum()));\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\thasRange = false;\r\n\t\t\t\tminimum = Long.valueOf(Integer.MIN_VALUE);\r\n\t\t\t\tmaximum = Long.valueOf(Integer.MAX_VALUE);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\thasRange = false;\r\n\t\t\tminimum = Long.valueOf(Integer.MIN_VALUE);\r\n\t\t\tmaximum = Long.valueOf(Integer.MAX_VALUE);\r\n\t\t}\r\n\r\n\t\tisNumeric = field.getCharacterSet().matches(\"^[0-9\\\\-*\\\\[\\\\]]*$\");\r\n\t\tintBitLength = field.getBitLength() == null ? 0 : field.getBitLength()\r\n\t\t\t\t.intValue();\r\n\t\tString charSet = \"^\"\r\n\t\t\t\t+ (field.getCharacterSet().endsWith(\"*\") ? field\r\n\t\t\t\t\t\t.getCharacterSet() : field.getCharacterSet() + \"*\")\r\n\t\t\t\t+ \"$\";\r\n\t\tcharSetRegex = Pattern.compile(charSet);\r\n\t\tintLength = field.getLength() == null ? Integer.MAX_VALUE : field\r\n\t\t\t\t.getLength().intValue();\r\n\t}",
"private LabelUtilsConstants() {}",
"public void initDefaultValues(BinaryContent t)\r\n\t{\n\r\n\t}",
"public void init() {\n \n }",
"private void validateConstants(final Class c) throws IDLTypeException {\n/* 564 */ Field[] arrayOfField = null;\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 569 */ arrayOfField = AccessController.<Field[]>doPrivileged(new PrivilegedExceptionAction<Field>() {\n/* */ public Object run() throws Exception {\n/* 571 */ return c.getFields();\n/* */ }\n/* */ });\n/* 574 */ } catch (PrivilegedActionException privilegedActionException) {\n/* 575 */ IDLTypeException iDLTypeException = new IDLTypeException();\n/* 576 */ iDLTypeException.initCause(privilegedActionException);\n/* 577 */ throw iDLTypeException;\n/* */ } \n/* */ \n/* 580 */ for (byte b = 0; b < arrayOfField.length; b++) {\n/* 581 */ Field field = arrayOfField[b];\n/* 582 */ Class<?> clazz = field.getType();\n/* 583 */ if (clazz != String.class && \n/* 584 */ !isPrimitive(clazz)) {\n/* */ \n/* */ \n/* 587 */ String str = \"Constant field '\" + field.getName() + \"' in class '\" + field.getDeclaringClass().getName() + \"' has invalid type' \" + field.getType() + \"'. Constants in RMI/IIOP interfaces can only have primitive types and java.lang.String types.\";\n/* */ \n/* */ \n/* 590 */ throw new IDLTypeException(str);\n/* */ } \n/* */ } \n/* */ }",
"private void init() {\n\n\t}",
"private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }",
"public Valvula(){}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public interface VerificationConst {\n\t/**\n\t * Минимальные габариты зала\n\t */\n\tpublic static final int MIN_SECTOR_DIMENSIONS = 1000;\n\t/**\n\t * минимальные габариты стеллажа\n\t */\n\tpublic static final int MIN_RACK_DIMENSIONS = 10;\n\t/**\n\t * минимальные габариты полки стеллажа\n\t */\n\tpublic static final int MIN_RACK_SHELF_DIMENSIONS = 5;\n}",
"public void initialize() {\n\t\tanzPakete = Integer.parseInt(textFieldAnzPakete.getText());\r\n\r\n\t\t// Tabelle erzeugen\r\n\t\tsetupTabelle();\r\n\t}",
"private FTConfigConstants() {\n }",
"@Override\r\n\tpublic void initData() {\n\t\tsuper.initData();\r\n\t\t// 初始化防丢数据\r\n\t\tAntilostInfos infos = ProtocolUtils.getInstance().getAntilostInfos();\r\n\t\t// 防丢类型\r\n\t\t//LOSE_MODE_NO_ANTI 不防丢 \r\n\t\t//LOSE_MODE_NEAR_ANTI 近距离防丢\r\n\t\t//LOSE_MODE_MID_ANTI 中距离防丢\r\n\t\t//LOSE_MODE_FAR_ANTI 远距离防丢\r\n\t\tswitchAntiLost.setChecked(infos.getMode()!=Constants.LOSE_MODE_NO_ANTI);//如果防丢类型为LOSE_MODE_NO_ANTI 说明不防丢 防丢开关也就是关闭,其他类型的话就是防丢开启\r\n\t}",
"private Const() {\n }",
"protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\tbScreenOnFlag = false;\n\t}",
"@Override\n\tpublic void initialisation_type_exercice() {\n\t\tthis.setEnnonce_exo(\"Ecrire un algorithme qui demande deux nombres à l’utilisateur et l’informe ensuite si le produit est négatif ou positif (on inclut cette fois le traitement du cas où le produit peut être nul). Attention toutefois, on ne doit pas calculer le produit !\");\n\n\t}",
"private void init() {\n\n\n\n }",
"public void init(){\n \n }",
"public void init() {\n\t\t}",
"public void initialiseValues() {\n\t\tif (validationRule == null) { // NOSONAR\n\t\t\tvalidationRule = Optional.empty();\n\t\t}\n\t}",
"public void init(){\n nomInscription = (EditText)findViewById(R.id.inscriptionNomEdit);\n prenomInscription = (EditText)findViewById(R.id.inscriptionPrenomEdit);\n mailInscription = (EditText)findViewById(R.id.inscriptionMailEdit);\n telInscription = (EditText)findViewById(R.id.inscriptionGSMEdit);\n mdpInscription = (EditText)findViewById(R.id.inscriptionPSWEdit);\n mdpConfirmation = (EditText)findViewById(R.id.inscriptionConfirmEdit);\n }",
"public void init() {\n\t\n\t}",
"public void init() {\n\t\t\n\t}",
"public void inicializar() {\n\t\t// TODO Auto-generated method stub\n\t\tIDISFICHA=\"\";\n\t\tNOTAS=\"\";\n\t\tANOTACIONES=\"\";\n\t\tNOTAS_EJERCICIOS=\"\";\n\t}",
"private void init() {\n FieldWrapper id = new FieldWrapper();\n id.fieldDescription = new HashMap<String, Object>();\n id.fieldDescription.put(\"fullName\", \"Id\");\n id.fieldDescription.put(\"type\", \"Text\");\n\n FieldWrapper name = new FieldWrapper();\n name.fieldDescription = new HashMap<String, Object>();\n name.fieldDescription.put(\"fullName\", \"Name\");\n\n FieldWrapper createdBy = new FieldWrapper();\n createdBy.fieldDescription = new HashMap<String, Object>();\n createdBy.fieldDescription.put(\"fullName\", \"CreatedBy\");\n createdBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper lastModifiedBy = new FieldWrapper();\n lastModifiedBy.fieldDescription = new HashMap<String, Object>();\n lastModifiedBy.fieldDescription.put(\"fullName\", \"LastModifiedBy\");\n lastModifiedBy.fieldDescription.put(\"type\", \"Lookup\");\n\n FieldWrapper owner = new FieldWrapper();\n owner.fieldDescription = new HashMap<String, Object>();\n owner.fieldDescription.put(\"fullName\", \"Owner\");\n owner.fieldDescription.put(\"type\", \"Lookup\");\n\n fieldDescribe = new HashMap<String, FieldWrapper>();\n\n fieldDescribe.put((String) id.fieldDescription.get(\"fullName\"), id);\n fieldDescribe.put((String) name.fieldDescription.get(\"fullName\"), name);\n fieldDescribe.put((String) createdBy.fieldDescription.get(\"fullName\"), createdBy);\n fieldDescribe.put((String) lastModifiedBy.fieldDescription.get(\"fullName\"), lastModifiedBy);\n fieldDescribe.put((String) owner.fieldDescription.get(\"fullName\"), owner);\n }",
"private ExplorationTypes(int type_val) \n { \n this.type_val = type_val; \n }",
"private PuzzleConstants() {\n // not called\n }",
"private RBACConstants() {\r\n }",
"public static void init() {\n\t\t\n\t}",
"public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }",
"protected void createFields()\n {\n createEffectiveLocalDtField();\n createDiscontinueLocalDtField();\n createScanTypeField();\n createContractNumberField();\n createContractTypeField();\n createProductTypeField();\n createStatusIndicatorField();\n createCivilMilitaryIndicatorField();\n createEntryUserIdField();\n createLastUpdateUserIdField();\n createLastUpdateTsField();\n }",
"private void init() {\n }",
"public void init() throws IllegalArgumentException {\r\n\t\tthis.listItemMapper = ListItemMapper.listitemMapper();\r\n\t\tthis.itemMapper = ItemMapper.itemMapper();\r\n\t\tthis.personMapper = PersonMapper.personMapper();\r\n\t\tthis.shoppingListMapper = ShoppingListMapper.shoppinglistMapper();\r\n\t\tthis.storeMapper = StoreMapper.storeMapper();\r\n\t\tthis.groupMapper = GroupMapper.groupMapper();\r\n\t\tthis.responsibilityMapper = ResponsibilityMapper.responsibilityMapper();\r\n\t\tthis.favoriteItemMapper = FavoriteItemMapper.favoriteItemMapper();\r\n\r\n\t}",
"public interface Params\n{\n\tpublic static final String DEFAULT_PATH=\"default_path\";\n\tpublic static final String DEFAULT_NAME=\"default_name\";\n\tpublic static final String MODE=\"mode\";\n\tpublic static final String FILE_TYPE=\"file_type\";\n}",
"private static void initDatatypeProperties() {\n OntModel ontologie = ModelFactory.createOntologyModel();\n OntologyFactory.readOntology(ontologyPath, ontologie);\n ontologie.add(ontologie);\n datatypeProperties.addAll(ontologie.listDatatypeProperties().toList());\n }",
"public interface Constants {\n public static final int CASE_ZERO = 0;\n public static final int CASE_ONE = 1;\n\n}",
"private SecurityConsts()\r\n\t{\r\n\r\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 static void initDataTypeList()\n\t{\n\t\tfor(String numberType : DATA_TYPE_ARRAY)\n\t\t{\n\t\t\tdataTypeList.add(numberType);\n\t\t}\n\t\tlogger.info(\" --|*|-- All Data types are initialized! --|*|--\");\n\t}",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n public Constraint converConstrain(String classname, String parvarn1, String parvarn2, String parvarn3) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException {\n IntVar varConverX = new IntVar(); IntVar varConverY = new IntVar(); IntVar varConverZ = new IntVar(); varConverX.id = parvarn1;varConverY.id = parvarn2; varConverZ.id = parvarn3 ;\n Class<?> clasCon = Class.forName(classname);\n Constructor<?> constru2 = clasCon.getDeclaredConstructor(new Class<?>[] {JaCoP.core.IntVar.class,JaCoP.core.IntVar.class, JaCoP.core.IntVar.class});\n Constraint c = (Constraint) constru2.newInstance(varConverX,varConverY, varConverZ);\n return c;\n }",
"private void initialise() {\n\t\tok=(Button)findViewById(R.id.button1);\n clear=(Button)findViewById(R.id.bExit);\n symptoms=(EditText)findViewById(R.id.edAppointTime);\n other=(EditText)findViewById(R.id.edSecondName);\n headache = (CheckBox) findViewById(R.id.cbHeadache);\n stomach = (CheckBox) findViewById(R.id.cbStomach);\n fever = (CheckBox) findViewById(R.id.cbFever);\n diarrhoea = (CheckBox) findViewById(R.id.cbDiarrhoea);\n hiv = (CheckBox) findViewById(R.id.cbHiv);\n disability = (CheckBox) findViewById(R.id.cbDisability);\n\t}",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"public interface ProductTypeConstants {\n // 商品类型 1: 网课; 2: 图书\n Integer NETWORK_COURSE = 1;\n Integer BOOK = 2;\n}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"public void setUpFields() {\n //Assigning each of the warning to relevant TextViews\n warning1 = findViewById(R.id.tvWarning1);\n warning2 = findViewById(R.id.tvWarning2);\n warning3 = findViewById(R.id.tvWarning3);\n warning4 = findViewById(R.id.tvWarning4);\n warning5 = findViewById(R.id.tvWarning5);\n warning6 = findViewById(R.id.tvWarning6);\n warning7 = findViewById(R.id.tvWarning7);\n warning8 = findViewById(R.id.tvWarning8);\n }"
] | [
"0.6665934",
"0.62649053",
"0.61604697",
"0.6145301",
"0.6135188",
"0.6107844",
"0.60878485",
"0.60874295",
"0.6035128",
"0.59897417",
"0.59717125",
"0.59051466",
"0.5870141",
"0.5845582",
"0.581483",
"0.57891655",
"0.5788149",
"0.5775819",
"0.5775819",
"0.57607436",
"0.575235",
"0.57504314",
"0.57363635",
"0.57277834",
"0.5727243",
"0.5726282",
"0.5691549",
"0.56866336",
"0.5658438",
"0.5650133",
"0.56429267",
"0.56426674",
"0.56342787",
"0.56247926",
"0.561817",
"0.5613058",
"0.56066006",
"0.5577036",
"0.55707973",
"0.5557844",
"0.5557711",
"0.55405223",
"0.55395186",
"0.5524993",
"0.55231816",
"0.55126774",
"0.55104226",
"0.55018044",
"0.54995716",
"0.5499183",
"0.5497289",
"0.5496603",
"0.5496086",
"0.5496086",
"0.5496086",
"0.5489113",
"0.54839563",
"0.54780525",
"0.5476374",
"0.54620284",
"0.5460042",
"0.5449495",
"0.5440504",
"0.5439328",
"0.54363793",
"0.5435601",
"0.5429916",
"0.5422749",
"0.5422063",
"0.54170775",
"0.5416612",
"0.54049087",
"0.53957516",
"0.538761",
"0.53842217",
"0.537795",
"0.5369781",
"0.5369468",
"0.5367793",
"0.53671664",
"0.5361393",
"0.53603643",
"0.5358714",
"0.5357439",
"0.5357439",
"0.5357439",
"0.5353226",
"0.53493434",
"0.53493434",
"0.53493434",
"0.53493434",
"0.5346548",
"0.5344151",
"0.53440577",
"0.53407747",
"0.5339937",
"0.5339937",
"0.5339937",
"0.53380585",
"0.53348166",
"0.5334178"
] | 0.0 | -1 |
/ Initialise les bornes inferieures et superieures des variables | public void InitializeVariable(double[] x, PipesVector pvector, boundkey[] bkx, double[] blx, double[] bux,
DiametersVector dvector, NodesVector nvector, double outflow) {
Pipes pipes;
Diameters diam;
Nodes nodes;
/* les variables de longeurs */
for (int i = 0; i < NbPipes; i++) {
pipes = (Pipes) pvector.elementAt(i);
nodes = (Nodes) nvector.elementAt(nvector.getPosition(pipes.nodes_end));
for (int j = 0; j < NbDiam; j++) {
diam = (Diameters) dvector.elementAt(j);
/* control du SDR */
if ((-nodes.height < diam.pression) && (diam.diam > pipes.imposdiammin)
&& (diam.diam < pipes.imposdiammax)) {
blx[(i * NbDiam) + j] = 0;
bux[(i * NbDiam) + j] = pipes.length;
bkx[(i * NbDiam) + j] = mosek.boundkey.ra;
} else {
blx[(i * NbDiam) + j] = 0;
bux[(i * NbDiam) + j] = 0;
bkx[(i * NbDiam) + j] = mosek.boundkey.fx;
}
if (pipes.imposdiam1 == diam.diam) {
bux[(i * NbDiam) + j] = pipes.imposlength1;
blx[(i * NbDiam) + j] = bux[(i * NbDiam) + j];
bkx[(i * NbDiam) + j] = mosek.boundkey.fx;
}
if (pipes.imposdiam2 == diam.diam) {
bux[(i * NbDiam) + j] = pipes.length - pipes.imposlength1;
blx[(i * NbDiam) + j] = bux[(i * NbDiam) + j];
bkx[(i * NbDiam) + j] = mosek.boundkey.fx;
}
}
}
// Slack variables
for (int i = NbPipes * NbDiam; i < (((NbPipes * NbDiam) + NbNodes) - 1); i++) {
bux[i] = 1.0e30; // borne superieure infinie
blx[i] = 0; // borne inferieure finie
bkx[i] = mosek.boundkey.lo; /* bornee inferieurement */
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"public static void initialisations() {\n\t\tit = 0;\r\n\t\tbc = 1;\r\n\r\n\t\t// pile des reprises pour compilation des branchements en avant\r\n\t\tpileRep = new TPileRep(); \r\n\t\t// programme objet = code Mapile de l'unite en cours de compilation\r\n\t\tpo = new ProgObjet();\r\n\t\t// COMPILATION SEPAREE: desripteur de l'unite en cours de compilation\r\n\t\tdesc = new Descripteur();\r\n\r\n\t\t// initialisation necessaire aux attributs lexicaux\r\n\t\tUtilLex.initialisation();\r\n\r\n\t\t// initialisation du type de l'expression courante\r\n\t\ttCour = NEUTRE;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de param�tres de chaque proc�dure \r\n\t\tnbParamProc = 0;\r\n\r\n\t\t//Initialisation de la variable qui compte le nombre de variables d�clar�es\r\n\t\tnbVar++;\r\n\r\n\t\t//Initialisation vTmp\r\n\t\tvTmp = 0;\r\n\t\t\r\n\t\tdesc.setUnite(\"programme\");\r\n\t\t\r\n\t}",
"protected void initVars() {}",
"public void initialiser() {\n double inf = Double.POSITIVE_INFINITY;\n create_add(\"bagel\", 20, 8);\n create_add(\"burger\", 10, 10);\n create_add(\"smoothie\", 30, 5);\n create_add(\"café\", (int)inf, 2);\n }",
"public void init() {\n //De leden mogen niet extreem obesitas hebben. Onder of gelijk aan 180kg.\n Valerie= 40;\n Jeroen=100;\n Hans=80;\n\n // Teller begint bij 0. Stel: staaf is 80 hoog.\n // 180 is waar de grafiek begint.\n nulpunt=180; //Dit is het nulpunt van de staaf\n som_v = nulpunt - Valerie;\n som_j = nulpunt - Jeroen;\n som_h = nulpunt - Hans;\n }",
"private void initFields() {\n\n tipPercent = 0.0;\n noPersons = 1;\n totalPay = 0.0;\n totalTip = 0.0;\n totalPerPerson = 0.0;\n\n }",
"@Override\r\n\tpublic void init() { \r\n\t\t\r\n\t\tsession = -1;\r\n\t\t\r\n\t\tProgressDif = 0;\r\n\t\tnoisFact = 0;\r\n\t\tcompromiseFact = 0;\r\n\t\t\r\n\t\tcompromiseLearn = 20;\r\n\t\tprogressLearn = 10;\r\n\t\tnoisLearn = 0.2;\r\n\t\t\r\n\t\treservationPanic = 0.2;\r\n\t\tmyBids = new ArrayList<Pair<Bid,Double>>();\r\n\t\topponentBidsA = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\t\topponentBidsB = new Vector<ArrayList<Pair<Bid,Double>>>();\r\n\r\n\t\tdf = utilitySpace.getDiscountFactor();\r\n\t\tif (df==0) df = 1; \r\n\r\n\t\ttry {\r\n\t\t\tinitStates();\r\n\t\t} catch (Exception e) {\r\n \t\t\te.printStackTrace();\r\n\t\t}\t\t\r\n\t}",
"private void initValues() {\n \n }",
"public void init() {\n\n\n verdiend = 133;\n\n verdeling = verdiend / 4;\n }",
"private void init() {\r\n\tlocals = new float[maxpoints * 3];\r\n\ti = new float[] {1, 0, 0};\r\n\tj = new float[] {0, 1, 0};\r\n\tk = new float[] {0, 0, 1};\r\n\ti_ = new float[] {1, 0, 0};\r\n\tk_ = new float[] {0, 0, 1};\r\n }",
"public void initialise() {\n number_of_rays = 4; // how many rays are fired from the boat\n ray_angle_range = 145; // the range of the angles that the boat will fire rays out at\n ray_range = 30; // the range of each ray\n ray_step_size = (float) 10;\n regen = false;\n }",
"void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}",
"@Override\r\n\tprotected void initVariableSet() {\n\t\tthis.lineImpetanz = this.initVariable(\"lineImpetance\", new NumericValue(0.1,0.2), EnumUnit.ohm, true, true);\r\n\t\tthis.lineCharge = this.initVariable(\"lineCharge\", new NumericValue(0), EnumUnit.ohm, true, true);\r\n\t\t\t\t\r\n\t}",
"void initial()\n\t{\n\t\tint i;\n\t\tfor(i=0;i<FoodNumber;i++)\n\t\t{\n\t\tinit(i);\n\t\t}\n\t\tGlobalMin=f[0];\n\t for(i=0;i<D;i++)\n\t GlobalParams[i]=Foods[0][i];\n\n\n\t}",
"private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }",
"Variables createVariables();",
"private void initiliaze() {\r\n\t\tthis.inputFile = cd.getInputFile();\r\n\t\tthis.flowcell = cd.getFlowcell();\r\n\t\tthis.totalNumberOfTicks = cd.getOptions().getTotalNumberOfTicks();\r\n\t\tthis.outputFile = cd.getOutputFile();\r\n\t\tthis.statistics = cd.getStatistic();\r\n\t}",
"private void inicializaValores(){\n /**\n * Reinicia los valores de las variables.\n */\n ce.setVariables();\n valorA.setText(null);\n valorB.setText(null);\n valorC.setText(null);\n x1.setText(null);\n x2.setText(null);\n \n }",
"private void initVariables(){\n int counter = 1;\n for (int vCount = 0; vCount < vertexCount; vCount++){\n for (int pCount = 0; pCount < positionCount; pCount++){\n variables[vCount][pCount] = counter++;\n }\n }\n }",
"protected void init() {\n \t\r\n ratios.put(1, 32.0f);\r\n ratios.put(2, 16.0f);\r\n ratios.put(3, 8.0f);\r\n ratios.put(4, 4.0f);\r\n ratios.put(5, 2.0f);\r\n ratios.put(6, 1.0f);\r\n }",
"private void init() {\n\t\t\n\t\ttry{\t\t\t\n\t\t\tinfos = new HashMap<String, VariableInfo>();\n\t\t\t\n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\t\n\t\t\t\tif(this.problem.getNbrNeighbors(var) != 0){ // an isolated variable doesn't need a CryptoScheme and therefore no VariableInfo either\n\t\t\t\t\t\n\t\t\t\t\tVariableInfo info = new VariableInfo(var);\n\t\t\t\t\tinfos.put(var, info);\n\t\t\t\t\t\n\t\t\t\t\tinfo.cs = cryptoConstr.newInstance(this.cryptoParameter);\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//initialize request counter for my own variables\n\t\t\trequestCount = new HashMap<String,Integer>(); \n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\trequestCount.put(var, 0);\n\t\t\t}\n\t\t\t\n\t\t\tthis.started = true;\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}",
"private void initializeVariables() {\n\t\tseekBar = (SeekBar) findViewById(R.id.seekBar1);\n\t\ttextView = (TextView) findViewById(R.id.finishText);\n\t\tspinner = (Spinner) findViewById(R.id.algorithm);\n\t\tsetSeekBarListener();\n\t\taddListenerOnAlgorithmSelection();\n\t}",
"public void initState() {\n\n\t\tdouble bsc_p = 0.09; // TODO : doit dependre du souffle !?\n\t\tfor (int i=0; i<n; i++) lambda[i] = 0;\n\t\taddBSCnoise(lambda, bsc_p); \n\t\t// lambda: log likelihood ratio\n\t\tcalc_q0(lambda);\n\n\t\t// initialization of beta\n\t\tfor (int i = 0; i <= m - 1; i++) {\n\t\t\tfor (int j = 0; j <= row_weight[i] - 1; j++) {\n\t\t\t\tbeta[i][j] = 0.0;\n\t\t\t}\n\t\t}\t\t\n\n\t}",
"private void initVars(){\n this.dice = new Dice();\n this.playing = true;\n this.currentPlayer = 0;\n this.turn = 0;\n this.xPlayers=new ArrayList<>(); \n this.players = new Player[4];\n this.diceRoller=true;\n this.xTokens=new ArrayList<>();\n this.winners=new ArrayList<>();\n this.computerPlayer= new Autoplay();\n this.gameResults = \"\";\n this.debug = false;\n }",
"protected void initialize() {\n\t\tright = left = throttle = turn = forward = 0;\n\t}",
"void setupVariables(IVariableFactory factory);",
"public void baiscSetting(){\n generations_ = 0;\n maxGenerations_ = ((Integer) this.getInputParameter(\"maxGenerations\")).intValue();\n populationSize_ = ((Integer) this.getInputParameter(\"populationSize\")).intValue();\n mutation_ = operators_.get(\"mutation\");\n crossover_ = operators_.get(\"crossover\");\n selection_ = operators_.get(\"selection\");\n learning_ = operators_.get(\"learning\");\n\n }",
"protected void initialize() {\n \tbrakeFactor = 0.0;\n }",
"public Variables() {\n this.numCliente = 0;\n this.tiempoSalida = 999;\n }",
"public void inicializarVariables(boolean inicializa){\n\t\tif(inicializa){\n\t\t\tx = 1;\n\t\t\ty = 3*x;\n\t\t\t//TODO cómo se resuelve este problema?\n\t\t\tDouble temp = Math.pow(x, 2) + y;\n\n\t\t\tz = temp.intValue(); \n\t\t\tSystem.out.println(\"Valor de z\"+z);\n\t\t}else{\n\t\t\t// No hacer nada\n\t\t}\t\t\n\t}",
"public TradeVariables() { /*gets default values*/ }",
"public void inicialisation(){\r\n\t\t\r\n\t\tgoods = new AutoParts[0];\r\n\t\tclient = new Client[0];\r\n\t\t\r\n\t\tshop = new Shopping[0];\r\n\t\tsale = new Sale[0];\r\n\t\ttransaction = new Document[0];\r\n\t\t\r\n\t\tbalancesAutoParts = new BalancesAutoParts[0];\r\n\t\t\r\n\t\tprices = new Prices[0];\r\n\t\t\r\n\t\tagriment = new Agreement[0];\r\n\t\t\r\n\t}",
"public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }",
"private void initializeVariables() {\n rnd = new Random();\n\n pieceKind = rnd.nextInt() % 7;\n if(pieceKind < 0) pieceKind *= -1;\n pieceKind2 = rnd.nextInt() % 7;\n if(pieceKind2 < 0) pieceKind2 *= -1;\n\n piece = new Piece(pieceKind,this);\n newPiece();\n startedGame = true;\n\n for(i=0; i<276; i++) {\n modulo = i%12;\n if(modulo == 0 || modulo == 11 || i>251) {\n matrix[i] = 0; colMatrix[i] = true;\n } else {\n matrix[i] = -1; colMatrix[i] = false;\n }\n }\n\n for(i=0; i<5; i++) completeLines[i] = -1;\n for(i=0; i<4; i++) keybl.setMovTable(i, false);\n }",
"private void initVariables() {\n ivBack.setVisibility(View.VISIBLE);\n tvTitle.setVisibility(View.VISIBLE);\n tvTitle.setText(getString(R.string.change_language));\n\n gifProgress.setImageResource(R.drawable.shopholic_loader);\n progressBar.setVisibility(View.GONE);\n String currentLang = AppSharedPreference.getInstance().getString(this, AppSharedPreference.PREF_KEY.CURRENT_LANGUAGE);\n setLanguage(currentLang);\n }",
"public void afficherVariables() {\n System.out.println\r\n (\"Objet de type GrillePain avec variables d'instance année = \" +\r\n annee + \" et nbTranches = \" + nbTranches);\r\n }",
"private void initializeVariable() {\n\n\t\tlearn = (Button) findViewById(R.id.learnButton);\n\t\tlearn.setOnClickListener(this);\n\t\tplay = (Button) findViewById(R.id.playButton);\n\t\tplay.setOnClickListener(this);\n\t\tmode = (Button) findViewById(R.id.b_mode);\n\t\tmode.setOnClickListener(this);\n\t\tmode.setText(Global.currentMode + \" MODE\");\n\t\tclassID_SD = \"com.example.northamericanwildlifesounds.SOUNDDISPLAY\";\n\t\tsetUpAnimalData();\n\t}",
"private void setInitializationParams() {\n\t\tint spreadRate = 130-((JSlider)components.get(\"spreadSlider\")).getValue();\n\t\tint intensity = ((JSlider)components.get(\"intensitySlider\")).getValue();\n\t\tint[] boatParams = new int[8];\n\t\tboatParams[0] = (int) ((JSpinner)components.get(\"cleanerSpinner\")).getValue();\n\t\tboatParams[1] = (int) ((JSpinner)components.get(\"cleanerFuelSpinner\")).getValue();\n\t\tboatParams[2] = (int) ((JSpinner)components.get(\"cleanerLoadSpinner\")).getValue();\n\t\tboatParams[3] = (int) ((JSpinner)components.get(\"collectorSpinner\")).getValue();\n\t\tboatParams[4] = (int) ((JSpinner)components.get(\"collectorFuelSpinner\")).getValue();\n\t\tboatParams[5] = (int) ((JSpinner)components.get(\"collectorLoadSpinner\")).getValue();\n\t\tboatParams[6] = (int) ((JSpinner)components.get(\"refuelSpinner\")).getValue();\n\t\tboatParams[7] = (int) ((JSpinner)components.get(\"refuelFuelSpinner\")).getValue();\n\t\tlog.info(\"Simulation initializing with spread rate \"+ spreadRate + \" and intensity \" + intensity);\n\t\tsimulateInitialConditions(spreadRate,boatParams,3,intensity);\n\t}",
"public void init() {\n\t\tint totalFrequencia = 0;\n\t\tfor (Entry<String, Integer> clusterFrequencia : clustersFrequencia.entrySet()) {\n\t\t\ttotalFrequencia = totalFrequencia + clusterFrequencia.getValue();\n\t\t}\n\t\tsetTotalFrequencia(totalFrequencia);\n\t\t\n\t\t//atualiza a entropia\n\t\tDouble entropiaF = 0.0;\n\t\tfor (Entry<String, Integer> clusterFrequencia : clustersFrequencia.entrySet()) {\n\t\t\tDouble pxi = 1.0 * clusterFrequencia.getValue()/totalFrequencia;\n\t\t\tentropiaF = entropiaF + pxi * Math.log(pxi);\n\t\t}\n\t\tif (entropiaF != 0 )\n\t\t\tentropiaF = entropiaF * -1;\n\t\tsetEntropiaF(entropiaF);\n\t\t\n\t\t//atualiza o valor da formula\n\t\tDouble formulaScoreF = 1.0* Math.log10(totalFrequencia)/(entropiaF+1);\n\t\tsetFormulaScoreF(formulaScoreF);\n\t\t\n\t}",
"public void initializeObliqueLaunch(){\r\n world = new Environment();\r\n cannon = new Thrower();\r\n ball = new Projectile();\r\n this.setInitialValues();\r\n }",
"private void prepare()\n {\n Victoria victoria = new Victoria();\n addObject(victoria,190,146);\n Salir salir = new Salir();\n addObject(salir,200,533);\n Volver volver = new Volver();\n addObject(volver,198,401);\n }",
"protected void InitValuables() {\n\t\tsuper.InitValuables();\n\t\t\n\t}",
"private void Initialize()\n {\n \tEcran = new Rectangle(Framework.gauche, Framework.haut, Framework.frameWidth\n\t\t\t\t- Framework.droite - Framework.gauche, Framework.frameHeight - Framework.bas\n\t\t\t\t- Framework.haut);\n\t\tCentreEcranX = (int)(Ecran.getWidth()/2);\n\t\tCentreEcranY = (int)(Ecran.getHeight()/2);\n\t\twidth = Ecran.getWidth();\n\t\theight = Ecran.getHeight();\t\t\n\t\tpH=height/768;\t\t\n\t\tpW=width/1366;\n\t\tObjets = new ArrayList<Objet>(); // Créer la liste chainée en mémoire\n\t\tMissiles = new ArrayList<Missile>(); // Créer la liste chainée en mémoire\n\t\tStations = new ArrayList<Station>(); // Créer la liste chainée en mémoire\n\t\tJoueurs = new ArrayList<Joueur>();\n\t\tlastTrajectoires = new ArrayList<Trajectoire>();\n\n\t\tDisposeAstres(Framework.niveauChoisi);\n\t\tstationCourante = Stations.get(0);\n\n\t\tetat = ETAT.PREPARATION;\n\t\tmouseClicked = mousePressed = mouseReleased = false;\n\t}",
"private synchronized void init(){\n _2_zum_vorbereiten.addAll(spielzeilenRepo.find_B_ZurVorbereitung());\n _3_vorbereitet.addAll(spielzeilenRepo.find_C_Vorbereitet());\n _4_spielend.addAll(spielzeilenRepo.find_D_Spielend());\n }",
"public void steuern() {\n\t\teinlesenUndInitialisieren();\n\t\tausgabe();\n\t}",
"private void initializeNumbers() {\n\t\tthis.longitude_e6=Integer.MIN_VALUE;\n\t\tthis.latitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityRadius=Integer.MIN_VALUE;\n\t\tthis.visibilityLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinRadius=Integer.MIN_VALUE;\n\t\tthis.joinLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinStartTime=Long.MIN_VALUE;\n\t\tthis.joinEndTime=Long.MIN_VALUE;\n\t\tthis.startTime=Long.MIN_VALUE;\n\t\tthis.endTime=Long.MIN_VALUE;\n\t}",
"private void init() {\n\n\n\n }",
"private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}",
"public void initialisieren(String neuerName, int neuesAlter, float neuesGewicht, String neuesUrsprungsland, boolean neuGefaehrlich) {\n // deshalb kann man hier auch ohne super arbeiten\n initialisieren(\"Affe\", neuerName, neuesAlter, neuesGewicht, neuesUrsprungsland, neuGefaehrlich);\n }",
"public void initialize() {\n\n // Calculate the average unit price.\n calculateAvgUnitPrice() ;\n\n // Calculate the realized profit/loss for this stock\n calculateRealizedProfit() ;\n\n this.itdValueCache = ScripITDValueCache.getInstance() ;\n this.eodValueCache = ScripEODValueCache.getInstance() ;\n }",
"private void init() {\n for (Node n : reader.getNodes().values()) {\n da_collegare.add(n);\n valori.put(n, Double.MAX_VALUE);\n precedenti.put(n, null);\n }\n valori.put(start_node, 0.0);\n da_collegare.remove(start_node);\n }",
"public static void initializeVariables() {\n // System.out.println(\"initializeVariables()\");\n for (int i = 1; i <= 20; i++) {\n\n\n List<Variable> variablecopies = new LinkedList<Variable>();\n List<Integer> siteList = new LinkedList<Integer>();\n\n Variable var = null;\n if (i % 2 == 0) {\n for (int j = 1; j <= 10; j++) {\n sites.get(j).addVariable(i, 10 * i);\n var = sites.get(j).getVariable(i);\n siteList.add(j);\n variablecopies.add(var);\n }\n } else {\n for (int j = 1; j <= 10; j++) {\n if (j == 1 + i % 10) {\n sites.get(j).addVariable(i, 10 * i);\n var = sites.get(j).getVariable(i);\n variablecopies.add(var);\n siteList.add(j);\n }\n }\n }\n variable_site_map.put(i, siteList);\n variable_copies_map.put(i, variablecopies);\n }\n }",
"private void init() {\n visitado = new boolean[N+2][N+2];\n for (int x = 0; x < N+2; x++) visitado[x][0] = visitado[x][N+1] = true;\n for (int y = 0; y < N+2; y++) visitado[0][y] = visitado[N+1][y] = true;\n\n\n // todas las paredes levantadas\n norte = new boolean[N+2][N+2];\n este = new boolean[N+2][N+2];\n sur = new boolean[N+2][N+2];\n oeste = new boolean[N+2][N+2];\n for (int x = 0; x < N+2; x++)\n for (int y = 0; y < N+2; y++)\n norte[x][y] = este[x][y] = sur[x][y] = oeste[x][y] = true;\n }",
"public void initializeScoringVariables(){\n\t\tgame.setMovement(moveDistance);\n\t\tgame.setRight(correctGuess);\n\t\tgame.setWrong(incorrectGuesses);\n\t\tgame.setTime(duration(startTime,endTime));\n\t}",
"private void init() {\n cloudAmount = null;\n cloudGenus = null;\n cloudAltitude = null;\n cloudDescription = null;\n }",
"public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}",
"@Override\n\t\tprotected void initialise() {\n\n\t\t}",
"protected void initialize() {\n \tsetSetpoint(0.0);\n }",
"public static void init()\n\t{\n\t\t\n\t\tu.creerGalaxie(\"VoieLactee\", \"spirale\", 0);\n\t\tu.creerEtoile(\"Soleil\", 0, 'F', u.getGalaxie(\"VoieLactee\")); //1\n\t\tu.creerObjetFroid(\"Terre\", 150000 , 13000 , 365 , u.getObjet(1)); //2\n\n\t\tu.creerObjetFroid(\"Lune\", 200 , 5000 , 30 , u.getObjet(2)); //3\n\n\t\tu.creerObjetFroid(\"Mars\", 200000 , 11000 , 750 , u.getObjet(1)); //4\n\n\t\tu.creerObjetFroid(\"Phobos\", 150 , 500 , 40 , u.getObjet(4)); //5\n\n\t\tu.creerObjetFroid(\"Pluton\", 1200000 , 4000 , 900 , u.getObjet(1)); //6\n\n\t\tu.creerEtoile(\"Sirius\", 2, 'B', u.getGalaxie(\"VoieLactee\")); //7\n\n\t\tu.creerObjetFroid(\"BIG-1\", 1000 , 50000 , 333 , u.getObjet(7)); //8\n\n\t\tu.creerGalaxie(\"M31\", \"lenticulaire\", 900000);\n\t\tu.creerEtoile(\"XS67\", 8, 'F', u.getGalaxie(\"M31\")); //9\n\t\tu.creerObjetFroid(\"XP88\", 160000 , 40000 , 400 , u.getObjet(9)); //10\n\t}",
"private void init() {\n setMinutes(new int[] {});\n setHours(new int[] {});\n setDaysOfMonth(new int[] {});\n setMonths(new int[] {});\n setDaysOfWeek(new int[] {});\n }",
"public void initVariables() {\n\tif (CL_Initializer.headerTemplateFile == null) {\n\n\t if (ImageHeader.imageExists(CL_Initializer.inputFile)) {\n\t\tCL_Initializer.headerTemplateFile = CL_Initializer.inputFile;\n\t }\n\t else if (imageType == imageType.BEDPOSTX || imageType == imageType.BEDPOSTX_DYAD) {\n\n\t\tString bedpostxRoot = BedpostxTractographyImage.getBedpostxInputRoot(bedpostxDir);\n\t\tString ext = BedpostxTractographyImage.getBedpostxImageExtension(bedpostxRoot);\n\t\t\n\t\tCL_Initializer.headerTemplateFile = bedpostxRoot + \"dyads1\" + ext;\n\t \n\t }\n\t \n\t}\n\n\t\n if (CL_Initializer.headerTemplateFile != null) { \n logger.info(\"Defining input physical space from \" + CL_Initializer.headerTemplateFile);\n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n else if (CL_Initializer.voxelDims[0] > 0.0) { \n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n else if (seedFile != null) {\n logger.info(\"Defining input physical space from seed file\");\n CL_Initializer.headerTemplateFile = seedFile;\n CL_Initializer.initInputSpaceAndHeaderOptions();\n }\n \n\n\n xDataDim = CL_Initializer.dataDims[0];\n yDataDim = CL_Initializer.dataDims[1];\n zDataDim = CL_Initializer.dataDims[2];\n \n xVoxelDim = CL_Initializer.voxelDims[0];\n yVoxelDim = CL_Initializer.voxelDims[1];\n zVoxelDim = CL_Initializer.voxelDims[2];\n\n if (xVoxelDim == 0.0) {\n // failed to get a definition of input space from anywhere\n throw new LoggedException(\"Definition of input space required, use -header\");\n }\n\n\n voxelToPhysicalTrans = CL_Initializer.headerTemplate.getVoxelToPhysicalTransform();\n\n\n\tif (anisThresh > 0.0) {\n\t switch(imageType) {\n\t\t\n\t case DT : case MULTITENSOR : case BEDPOSTX : case BEDPOSTX_DYAD :\n\t\t// No problem since these input formats have anisotropy information built in\n\t\tbreak;\n\t\t\n\t default: \n\t\t\n\t\tif (anisMapFile == null) {\n\t\t throw new LoggedException(\"Input data does not contain anisotropy, anisotropy map (-anisfile) must be \" +\n\t\t\t\t\t \"supplied when -anisthresh is used\");\n\t\t}\n\t }\n\t}\n\n\n // no interpolation with FACT, by definition\n if (trackingAlgorithm == TrackingAlgorithm.FACT) {\n\n if (dataInterpolation != DataInterpolation.NEAREST_NEIGHBOUR) { \n logger.warning(\"Interpolation is not compatible with FACT tracking, using Euler tracker with step size \" + stepSize + \" mm\");\n }\n\n trackingAlgorithm = TrackingAlgorithm.EULER;\n }\n\n \n ran = new MTRandom(seed);\n \n \n // get seeds\n if (seedFile != null) {\n \n VoxelROI imageROIs = new VoxelROI(seedFile, CL_Initializer.headerTemplate);\n\n allROIs = imageROIs.getAllRegions();\n \n }\n else if (seedList != null) {\n allROIs = new RegionOfInterest[] {PointListROI.readPoints(seedList, CL_Initializer.headerTemplate)};\n }\n\telse {\n\t throw new LoggedException(\"No seed points specified\");\n\t}\n \n \n }",
"public void init (){\n for (int i = 0; i < tvalores.length; i++) {\n tvalores[i] = Almacen1.LIBRE;\n }\n valoresAlmacenados = 0;\n }",
"private static void init() {\n\t\t// TODO Auto-generated method stub\n\t\tviewHeight = VIEW_HEIGHT;\n\t\tviewWidth = VIEW_WIDTH;\n\t\tfwidth = FRAME_WIDTH;\n\t\tfheight = FRAME_HEIGHT;\n\t\tnMines = N_MINES;\n\t\tcellSize = MINE_SIZE;\n\t\tnRows = N_MINE_ROW;\n\t\tnColumns = N_MINE_COLUMN;\n\t\tgameOver = win = lost = false;\n\t}",
"private void init() {\n\n\t}",
"public void init() {\n \n }",
"private void setTEMinitsFromRunner(){\n\t\n\t\tSiteIn inits = new SiteIn();\n\t\t\n\t\tString dummy=\" \";\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_MOSSTHICK, 1);\n\t\tif (dummy!=\" \") inits.setMossthick(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_FIBTHICK, 1);\n\t\tif (dummy!=\" \") inits.setFibthick(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_HUMTHICK, 1);\n\t\tif (dummy!=\" \") inits.setHumthick(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_VEGC, 1);\n\t\tif (dummy!=\" \") inits.setVegc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_VEGN, 1);\n\t\tif (dummy!=\" \") inits.setVegn(Float.valueOf(dummy));\n\t\t\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_SOILC, 1);\n\t\tif (dummy!=\" \") inits.setSoilc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_FIBSOILC, 1);\n\t\tif (dummy!=\" \") inits.setFibc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_HUMSOILC, 1);\n\t\tif (dummy!=\" \") inits.setHumc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_MINESOILC, 1);\n\t\tif (dummy!=\" \") inits.setMinc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_AVAILN, 1);\n\t\tif (dummy!=\" \") inits.setAvln(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_SOILN, 1);\n\t\tif (dummy!=\" \") inits.setOrgn(Float.valueOf(dummy));\n \n\t\tif (dummy!=\" \") TEM.runcht.cht.setSiteStates(inits);\n \n\t}",
"protected void initialize() {\n \t_finalTickTargetLeft = _ticksToTravel + Robot.driveTrain.getEncoderLeft();\n \t_finalTickTargetRight = _ticksToTravel + Robot.driveTrain.getEncoderRight();\n \t\n }",
"protected void initVar2Factor(int[] nodes)\n {\n for(int x=0, N=nodes.length; x < N; x++)\n {\n int n = nodes[x];\n VariableNode vn = _fg.getVarNode(n);\n ProbTable pt = vn.getProbs();\n \n List messages = _fg.getAdjacentMessages(n);\n for(int m=0, M=messages.size(); m < M; m++)\n {\n EdgeMessage em = (EdgeMessage) messages.get(m);\n em.v2f(pt);\n }\n }\n }",
"@Override\r\n\tprotected void initVentajas() {\n\r\n\t}",
"public void setup() \n { \n \tsize(400,400);\n \tbac = new Bacteria[15];\n \tfor (int i = 0; i<bac.length; i++)\n \t{\n \t\tbac[i]= new Bacteria(200,200);\n \t\tbac[i].c();\n \t} //initialize bacteria variables here \n }",
"public static void initial(){\n\t}",
"protected void initialize() {\n\t\t// startAngle = drive.getAngle();\n\t\tdrive.resetBothEncoders();\n\t\tpLeft = speed;\n\t\tpRight = speed;\n\t}",
"private void instantiateVariables() {\n paint = new Paint();\n fightActivity = (FightActivity) context;\n Typeface tf = Typeface.create(\"Arial\", Typeface.BOLD);\n paint.setTypeface(tf);\n }",
"protected abstract void initializeBartender();",
"private void initDefaults() {\n _nodeFadeSourceColor = _defNodeFadeSourceColor;\n _nodeFadeDestinationColor = _defNodeFadeDestinationColor;\n\n _nodeStrokeSourceColor = _defNodeStrokeSourceColor;\n _nodeStrokeDestinationColor = _defNodeStrokeDestinationColor;\n\n _nodeStrokeSourceWidth = _defNodeStrokeSourceWidth;\n _nodeStrokeDestinationWidth = _defNodeStrokeDestinationWidth;\n\n _supportEdgeFadeSourceColor = _defSupportEdgeFadeSourceColor;\n _supportEdgeFadeDestinationColor = _defSupportEdgeFadeDestinationColor;\n\n _refuteEdgeFadeSourceColor = _defRefuteEdgeFadeSourceColor;\n _refuteEdgeFadeDestinationColor = _defRefuteEdgeFadeDestinationColor;\n\n _edgeStrokeSourceWidth = _defEdgeStrokeSourceWidth;\n _edgeStrokeDestinationWidth = _defEdgeStrokeDestinationWidth;\n\n _curvedLines = _defCurvedLines;\n\n _manualBackgroundColor = _defManualBackgroundColor;\n\n _realTimeSliderResponse = _defRealTimeSliderResponse;\n }",
"private void init() {\n }",
"protected void initialize() {\r\n x = 0;\r\n y = 0;\r\n driveTrain.reInit();\r\n }",
"@Override\n\tpublic void initializeValues() {\n\n\t}",
"private void initialize() {\n\t\tfor(String key: count_e_f.keySet()){\n\t\t\tcount_e_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\tfor(Integer key: total_f.keySet()){\n\t\t\ttotal_f.put(key, 0.0);\n\t\t}\n\t\t\n\t\t//This code is not efficient.\n//\t\tfor(Entry<String, Integer> german : mainIBM.gerWordsIdx.entrySet()){\n//\t\t\tfor(Entry<String, Integer> english : mainIBM.engWordsIdx.entrySet()){\n//\t\t\t\tcount_e_f.put(english.getValue() + \"-\" + german.getValue(), 0.0);\n//\t\t\t}\n//\t\t\ttotal_f.put(german.getValue(), 0.0);\n//\t\t}\t\n\n\t}",
"private void initializeVariables(Date timeSlotDate)\n\t\t{\n\t\t\tthis.timeSlot = timeSlotDate;\n\t\t}",
"@PostConstruct\n public void init() {\n this.facts.addAll(checkExtractor.obtainFactList());\n this.facts.addAll(facebookExtractor.obtainFactList());\n this.facts.addAll(googleExtractor.obtainFactList());\n this.facts.addAll(linkedinExtractor.obtainFactList());\n this.facts.addAll(twitterExtractor.obtainFactList());\n\n this.checkHeader = this.utils.generateDatasetHeader(this.checkExtractor.obtainFactList());\n this.facebookHeader = this.utils.generateDatasetHeader(this.facebookExtractor.obtainFactList());\n this.googleHeader = this.utils.generateDatasetHeader(this.googleExtractor.obtainFactList());\n this.linkedinHeader = this.utils.generateDatasetHeader(this.linkedinExtractor.obtainFactList());\n this.twitterHeader = this.utils.generateDatasetHeader(this.twitterExtractor.obtainFactList());\n }",
"public void init() {\r\n\r\n\t}",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void initializationParameters(int numberOfPartitions){\n int tempNumber = numberOfPartitions * 2 + 1;\n ksi = new int[tempNumber];\n ksi[0] = NUMOFTESTCASES;\n eta = new int[numberOfPartitions];\n Y = new int[numberOfPartitions];\n d = 2;\n p = new double[numberOfPartitions];\n for (int i = 0; i < numberOfPartitions; i++) {\n p[i] = 1.0 / numberOfPartitions ;\n }\n }",
"public void initDefaultValues() {\n }",
"@Override\n protected void initialize() {\n mDrive.resetGyroPosition();\n try {\n Trajectory left_trajectory = PathfinderFRC.getTrajectory(pathName + \".left\");\n Trajectory right_trajectory = PathfinderFRC.getTrajectory(pathName + \".right\");\n\n m_left_follower = new EncoderFollower(left_trajectory);\n m_right_follower = new EncoderFollower(right_trajectory);\n\n if(isBackwards) {\n initBackwards();\n } else {\n initForwards();\n }\n } catch (IOException e) {\n\t\t e.printStackTrace();\n\t }\n }",
"public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}",
"private void prepare()\n {\n AmbulanceToLeft ambulanceToLeft = new AmbulanceToLeft();\n addObject(ambulanceToLeft,717,579);\n Car2ToLeft car2ToLeft = new Car2ToLeft();\n addObject(car2ToLeft,291,579);\n Car3 car3 = new Car3();\n addObject(car3,45,502);\n CarToLeft carToLeft = new CarToLeft();\n addObject(carToLeft,710,262);\n Car car = new Car();\n addObject(car,37,190);\n AmbulanceToLeft ambulanceToLeft2 = new AmbulanceToLeft();\n addObject(ambulanceToLeft2,161,264);\n }",
"private void setupStuff() {\n\t\tm_seenNumbers = new double[featureArray.length][];\n\t\tm_Weights = new double[featureArray.length][];\n\t\tm_NumValues = new int[featureArray.length];\n\t\tm_SumOfWeights = new double[featureArray.length];\n\t\tfeatureTotals = new int[featureArray.length];\n\n\t\tfor (int i = 0; i < featureArray.length; i++) {\n\t\t\tm_NumValues[i] = 0;\n\t\t\tm_seenNumbers[i] = new double[100];\n\t\t\tm_Weights[i] = new double[100];\n\t\t}\n\n\t\t/*\n\t\t * initialize structures for probabilities of each class and of each\n\t\t * feature\n\t\t */\n\t\tclassCounts = new double[MLearner.NUMBER_CLASSES];\n\t\tprobs = new HashMap[MLearner.NUMBER_CLASSES][featureArray.length];\n\t\tRealprobs = new HashMap[MLearner.NUMBER_CLASSES][featureArray.length];\n\t\tfor (int i = 0; i < MLearner.NUMBER_CLASSES; i++) {\n\t\t\tfor (int j = 0; j < featureArray.length; j++) {\n\t\t\t\tif (featureArray[j]) {//only create if we are using that\n\t\t\t\t\t// feature\n\t\t\t\t\tprobs[i][j] = new HashMap();\n\t\t\t\t\tif (EmailInternalConfigurationWindow.isFeatureDiscrete(j)) {\n\t\t\t\t\t\tprobs[i][j].put(\"_default\", new Double(0));\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tclassCounts[i] = 0;\n\t\t}\n\n\t}",
"private void setInititalValues() {\n drone.setTranslateX(INITIAL_X_POSITION);\n drone.setTranslateY(INITIAL_Y_POSITION);\n drone.setTranslateZ(INITIAL_Z_POSITION);\n\n // set initial orientation to z-axis (into the screen)\n setxOrientation(0);\n setyOrientation(0);\n setzOrientation(1);\n setYawAngle(0);\n setRollAngle(0);\n setPitchAngle(0);\n setSpeed(TelloDefaultValues.DEFAULT_SPEED);\n }",
"private void inicializarVariablesControlRonda() {\n\t\ttieneAs = new int[4];\n\t\tfor(int i=0;i<tieneAs.length;i++) {\n\t\t\ttieneAs[i]=0;\n\t\t}\n\t\tidJugadores = new String[3];\n\t\tvalorManos = new int[4];\n\t\t\n\t\tmazo = new Baraja();\n\t\tCarta carta;\n\t\tganador = new ArrayList<String>();\n\t\tapuestasJugadores = new int[3];\n\t\tmanoJugador1 = new ArrayList<Carta>();\n\t\tmanoJugador2 = new ArrayList<Carta>();\n\t\tmanoJugador3 = new ArrayList<Carta>();\n\t\tmanoDealer = new ArrayList<Carta>();\n\t\tparejaNombreGanancia = new ArrayList<Pair<String,Integer>>(); \n\t\t\n\t\t// gestiona las tres manos en un solo objeto para facilitar el manejo del hilo\n\t\tmanosJugadores = new ArrayList<ArrayList<Carta>>(4);\n\t\tmanosJugadores.add(manoJugador1);\n\t\tmanosJugadores.add(manoJugador2);\n\t\tmanosJugadores.add(manoJugador3);\n\t\tmanosJugadores.add(manoDealer);\n\t\t// reparto inicial jugadores 1 y 2\n\t\tfor (int i = 1; i <= 2; i++) {\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador1.add(carta);\n\t\t\tcalcularValorMano(carta, 0);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador2.add(carta);\n\t\t\tcalcularValorMano(carta, 1);\n\t\t\tcarta = mazo.getCarta();\n\t\t\tmanoJugador3.add(carta);\n\t\t\tcalcularValorMano(carta, 2);\n\t\t}\n\t\t// Carta inicial Dealer\n\t\tcarta = mazo.getCarta();\n\t\tmanoDealer.add(carta);\n\t\tcalcularValorMano(carta, 3);\n\n\t\t\n\t}",
"public void performInitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}",
"@Override\n\tprotected void initialise() {\n\t}",
"public void inicializar() {\n\t\tarestas.forEach(aresta -> {\n\t\t\taresta.getOrigin().atribuirPesoInicial();\n\t\t\taresta.getTarget().atribuirPesoInicial();\n\t\t});\n\t}",
"protected void initialize() {\n \tstartTime = System.currentTimeMillis();\n \tintake.setLeftPower(power);\n \tintake.setRightPower(power);\n }",
"private void initVariables() {\n neueLinien = 0;\n feldVoll = false;\n pause = false;\n nextAction = \"\";\n verloren = false;\n zoom = 0;\n bhfs = 0;\n\n timer = new Timer();\n timerS = new Timer();\n tageszeit = Stadtteil.NICHTS;\n strgPause = 500; // Timer-Rate\n\n hatBahnhof = new boolean[hoehe][breite];\n teile = new Stadtteil[hoehe][breite];\n bahnhoefe = new Bahnhof[hoehe][breite];\n linien = new Linie[20];\n\n for (int y = 0; y < hoehe; y++) {\n for (int x = 0; x < breite; x++) {\n hatBahnhof[y][x] = false;\n teile[y][x] = null;\n bahnhoefe[y][x] = null;\n }\n }\n\n for (int i = 0; i < linien.length; i++) {\n linien[i] = null;\n }\n\n String[] bhfNamenTmp = {\"Marienplatz\", \"Blumenstraße\", \"Graf Maxi von Krause Allee\",\n \"Nicolaiplatz\", \"Großer Imperator Felix Maurer Platz\", \"Christine Kaps Allee\",\n \"Felix der Hecker Platz\", \"Hofstraße\", \"Sonnenstraße\", \"Kirchplatz\",\n \"Javagasse\", \"Berglerweg\", \"Stiftstraße\", \"Unterberg\", \"Hauptstraße\",\n \"Feldweg\", \"Serviettenmarkt\", \"Kalterbach\", \"Bürgermeister Horst Bichler Straße\",\n \"Laaange Straße\", \"Weit-Weit-Weg\", \"Waschstraße\", \"Schnitzelstraße\",\n \"Platz des Bieres\", \"Alte Heide\", \"Baumhausen\", \"Geldweg\", \"Berg\", \"Hausen\",\n \"Schneiderei\", \"Alte Weberei\", \"Brauereigasse\", \"Färbergraben\", \"H-Brücke\",\n \"Sickergraben\", \"Turmstraße\", \"Schneckenbahn\", \"Rosengarten\", \"Humboldt-Platz\",\n \"Wurzelplatz\", \"Adlerstraße\", \"Flamingostraße\", \"Taubenweg\", \"Spechtweg\",\n \"Sperberstraße\", \"Schlosstraße\", \"Friedensstraße\", \"Sackgasse\", \"Platz der Partei\",\n \"Keksweg\", \"Börsenplatz\", \"Gleisweg\", \"Dateipfad\", \"Milchstraße\", \"Qwertzweg\",\n \"Holzweg\", \"Heringsberger Straße\", \"Ausfallstraße\", \"Bahnhofstraße\", \"Finkenweg\",\n \"Steinstraße\", \"Pfauenstraße\", \"Bergstraße\", \"Bürgersteig\", \"Schorlenplatz\",\n \"Saftladen\", \"Gullygasse\", \"Kassettenweg\", \"Egelstraße\", \"Wurmstraße\", \"Wasserweg\",\n \"{return null;}-Platz\", \"Rinderstraße\", \"Maulwurfstraße\", \"Eckpunkt\",\n \"Kleiberstraße\", \"Paragraphenweg\", \"Kabelbrücke\", \"Roter Weg\", \"Geisterbahn\",\n \"Gartenstraße\", \"Lilienstraße\", \"Pöppelstraße\", \"Stadtstraße\", \"Jägerweg\",\n \"Parrweg\", \"Bayerstraße\", \"Baderstraße\", \"Fichtenweg\", \"Birkenstraße\",\n \"Buchenweg\", \"Kastanienweg\", \"Kellergasse\", \"Himmelspforte\", \"Auberginenweg\",\n \"Jedermannsweg\", \"Ladenstraße\", \"Exilstraße\", \"Wegstraße\", \"Kepplerstraße\",\n \"Hammerweg\", \"Spitzweg\", \"Lötstraße\", \"Weinstraße\", \"Waldmeisterstraße\",\n \"Primelstraße\", \"Kamillenweg\", \"Balkenweg\", \"Farnweg\", \"Konfettiwerk\",\n \"Weckerwerk\", \"Kürbisstraße\", \"Pralinenallee\", \"Lindenstraße\", \"Autobahn\",\n \"Straße der Liebe\", \"Straße des Hass\", \"Zunftplatz\", \"Glaserviertel\", \"Gerberviertel\",\n \"Rotlichtviertel\", \"Platz der Arbeiter\", \"Fluchtweg\", \"Papierstraße\", \"Rennbahn\",\n \"Prangerviertel\", \"Henkerweg\", \"Peterplatz\", \"Staufenallee\", \"Besenallee\", \"Schaufelstraße\",\n \"Kugelbahn\", \"Genitivgasse\", \"Scharfe Kurve\", \"Ausweg\", \"Schulstraße\",\n \"Universität\", \"Bibliothek\", \"Rettungsweg\", \"Melinaplatz\", \"Zeigerkurve\",\n \"Südkurve\", \"Kurvenstraße\", \"Federweg\", \"Kreidebahn\", \"Dunkle Gasse\", \"Letzter Weg\",\n \"Zustellweg\", \"Unterer Marktplatz\", \"Oberer Marktplatz\", \"Sitzplatz\", \"Am Feld\",\n \"Oberweg\", \"Meyerstraße\", \"Frühlingsstraße\", \"Herbststraße\", \"Winterstraße\",\n \"Löwengrube\", \"Am Galgenberg\", \"Maistraße\", \"Februarstraße\", \"Augustusweg\",\n \"Kartoffelring\", \"Lederring\", \"Kohlstraße\", \"Museumstraße\", \"Zeppelinstraße\",\n \"Röhrenstraße\", \"Pixelstraße\", \"Herzogstraße\", \"Königsplatz\", \"Wallstraße\",\n \"Ohmstraße\", \"Schnorrerstraße\", \"Ackerstraße\", \"Winzergasse\", \"Panzerstraße\",\n \"Abtstraße\", \"Albrechtstraße\", \"Alte Allee\", \"Messeplatz\", \"Blütenanger\",\n \"Anhalterstraße\", \"Barabarenstraße\", \"Benediktinerstraße\", \"Bernsteinweg\",\n \"Poststraße\", \"Clemensstraße\", \"Delphinstraße\", \"Drosselweg\", \"Münchner Straße\",\n \"Berliner Straße\", \"Stuttgarter Straße\", \"Hamburger Straße\", \"Dresdner Straße\",\n \"Frankfurter Straße\", \"Bremer Straße\", \"Promenade\", \"Wiener Straße\", \"Berner Straße\",\n \"Bozen Ring\", \"Ehe Ring\", \"Kryptographenheim\", \"Blutweg\", \"Rosinenstraße\",\n \"Fassring\", \"Grüngarten\", \"Gärtnerstraße\", \"Kanzlerstraße\", \"Streicherholz\",\n \"Katzenweg\", \"Hundeweg\", \"Luxweg\", \"Gänsemarsch\", \"Marderweg\", \"Giraffenplatz\",\n \"Elephantenstraße\", \"Beuteltierstraße\", \"Schnabeltierstraße\", \"Mäuseweg\",\n \"Nashornstraße\", \"Schmetterlingsweg\", \"Wanzenweg\", \"Krokodilstraße\", \"Licht\",\n \"Hemdstraße\", \"Jeansstraße\", \"Hutstraße\", \"Regengasse\", \"Donnerweg\",\n \"Blitzstraße\", \"Schuhstraße\", \"Glücksleiter\", \"Kleestraße\", \"Anemonenstraße\",\n \"Rehweg\", \"Ameisenbärstraße\", \"Pandastraße\", \"Antilopenweg\", \"Analphabetenstraße\",\n \"Platz der Geometrie\", \"Volksstraße\", \"Bajuwarenstraße\", \"Ameisenstraße\",\n \"Apfelstraße\", \"Birnenstraße\", \"Pampelmusenstraße\", \"Melonenstraße\", \"Himbeerweg\",\n \"Brombeerweg\", \"Erdbeerweg\", \"Stinktierstraße\", \"Mangostraße\", \"Walnussstraße\",\n \"Sehr Seriöse Straße\", \"Wegweiser\", \"Balkonien\", \"Kolonie\", \"Busbahnhof\", \"Ungern\",\n \"Granatapfelweg\", \"Mühlenallee\", \"Platz des 30. Juni\", \"Sparschweinweg\", \"Sankt-Paul-Straße\",\n \"Silvesterstraße\", \"Taschenrechnerstraße\"};\n bhfNamen = new ArrayList<String>();\n for (int i = 0; i < bhfNamenTmp.length; i++) {\n bhfNamen.add(bhfNamenTmp[i]);\n }\n }",
"public void init() {\n\t\t\n\t}",
"private void initialize() {\n this.pm10Sensors = new ArrayList<>();\n this.tempSensors = new ArrayList<>();\n this.humidSensors = new ArrayList<>();\n }"
] | [
"0.7449146",
"0.7000395",
"0.6939784",
"0.65269536",
"0.6458471",
"0.64263815",
"0.6416309",
"0.6363981",
"0.63398415",
"0.6298365",
"0.6187557",
"0.617845",
"0.6166163",
"0.61655664",
"0.6109207",
"0.6101122",
"0.60954094",
"0.6083722",
"0.607245",
"0.6059096",
"0.6036891",
"0.6026706",
"0.60035557",
"0.60022247",
"0.59775406",
"0.59554356",
"0.59498554",
"0.59312314",
"0.591983",
"0.59051037",
"0.58904374",
"0.58827233",
"0.5874167",
"0.58701056",
"0.5862018",
"0.5829925",
"0.58198106",
"0.5804906",
"0.5797835",
"0.5789482",
"0.5780954",
"0.577001",
"0.57595724",
"0.5749802",
"0.57408065",
"0.5727494",
"0.5718811",
"0.57102555",
"0.5698649",
"0.56982136",
"0.5691227",
"0.5680522",
"0.5678515",
"0.5677108",
"0.5673683",
"0.56710094",
"0.56700927",
"0.5646648",
"0.5645682",
"0.5644306",
"0.56305546",
"0.56280047",
"0.5618796",
"0.56183356",
"0.561629",
"0.56152195",
"0.5612734",
"0.56124604",
"0.56075764",
"0.56067926",
"0.5600448",
"0.55983335",
"0.5594536",
"0.5594504",
"0.55881363",
"0.55880374",
"0.55865145",
"0.5584261",
"0.5579707",
"0.55785054",
"0.5578218",
"0.55780274",
"0.5569391",
"0.5569391",
"0.5569391",
"0.5569391",
"0.55590135",
"0.55486435",
"0.5545166",
"0.5544899",
"0.5540762",
"0.5539639",
"0.55344635",
"0.5532421",
"0.5530289",
"0.5529048",
"0.55206776",
"0.55187887",
"0.55180883",
"0.5512465",
"0.55098355"
] | 0.0 | -1 |
/ Calcul des valeurs des contraintes avec les l1 et l2 | public double[] CstValue2(double[] x, int n1, int m1, NodesVector nvector, PipesVector pvector,
DiametersVector dvector, TapsVector tvector, double[] LoadFactor, double outflow) {
double[] Cst = new double[m1];
Nodes nodes;
Pipes pipes;
String n_end;
/* Les noeuds sans les robinets */
for (int i = 1; i < (nvector.size() - tvector.size()); i++) {
Cst[i - 1] = 0;
nodes = (Nodes) nvector.elementAt(i);
for (int j = 0; j < (nodes.path.size() - 1); j++) {
n_end = (String) nodes.path.elementAt(j);
pipes = (Pipes) pvector.elementAt(pvector.getPosition(n_end));
Cst[i - 1] = Cst[i - 1]
+ ((pipes.l1 * Math.pow(LoadFactor[pvector.getPosition(n_end)], pipes.p1))
/ Math.pow(pipes.d1, pipes.q1) * pipes.beta1)
+ ((pipes.l2 * Math.pow(LoadFactor[pvector.getPosition(n_end)], pipes.p2))
/ Math.pow(pipes.d2, pipes.q2) * pipes.beta2);
}
nodes.pressure = Cst[i - 1];
}
/* Les robinets */
for (int i = nvector.size() - tvector.size(); i < nvector.size(); i++) {
Cst[i - 1] = 0;
nodes = (Nodes) nvector.elementAt(i);
for (int j = 0; j < (nodes.path.size() - 1); j++) {
n_end = (String) nodes.path.elementAt(j);
pipes = (Pipes) pvector.elementAt(pvector.getPosition(n_end));
Cst[i - 1] = Cst[i - 1]
+ ((pipes.l1 * Math.pow(LoadFactor[pvector.getPosition(n_end)], pipes.p1))
/ Math.pow(pipes.d1, pipes.q1) * pipes.beta1)
+ ((pipes.l2 * Math.pow(LoadFactor[pvector.getPosition(n_end)], pipes.p2))
/ Math.pow(pipes.d2, pipes.q2) * pipes.beta2);
}
nodes.pressure = Cst[i - 1];
}
return Cst;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean constraintChecker(Norm norm1, Norm norm2) {\n\t\tif (norm1.getActivationConstraint() == null || norm1.getDeactivationConstraint() == null ||\n\t\t\tnorm2.getActivationConstraint() == null || norm2.getDeactivationConstraint() == null) {\n\t\t\t\n\t\t\tnorm1.setActivationConstraint(null);\n\t\t\tnorm2.setActivationConstraint(null);\n\t\t\tnorm1.setDeactivationConstraint(null);\n\t\t\tnorm2.setDeactivationConstraint(null);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tConstraintType na1 = norm1.getActivationConstraint().getConstraintType();\n\t\tConstraintType nd1 = norm1.getDeactivationConstraint().getConstraintType();\n\t\t\n\t\tConstraintType na2 = norm2.getActivationConstraint().getConstraintType();\n\t\tConstraintType nd2 = norm2.getDeactivationConstraint().getConstraintType();\n\t\t\n\t\t//it is necessary only 3 tests\n\t\tif (!na1.equals(nd1) || !na2.equals(nd2) || !na1.equals(na2)) {\n\t\t\tnorm1.setActivationConstraint(null);\n\t\t\tnorm2.setActivationConstraint(null);\n\t\t\tnorm1.setDeactivationConstraint(null);\n\t\t\tnorm2.setDeactivationConstraint(null);\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t// If the activation conditions are actions\n\t\tif (norm1.getActivationConstraint().getConstraintType().equals(ConstraintType.ACTIONTYPE)\n\t\t\t\t&& norm1.getActivationConstraint().getConstraintType().equals(ConstraintType.ACTIONTYPE)) {\n\n\t\t\t//todo...o tratamento vai ser realizado no futuro, caso necessário\n\t\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//\n\t\t//at this moment the constrainttype are both DATETYPE, so it is not necessary more comparisons\n\t\t//\n\t\t\n\t\tDateTime d1Begin = ((ConstraintDate) norm1.getActivationConstraint()).getDate();\n\t\tDateTime d1End = ((ConstraintDate) norm1.getDeactivationConstraint()).getDate();\n\t\tDateTime d2Begin = ((ConstraintDate) norm2.getActivationConstraint()).getDate();\n\t\tDateTime d2End = ((ConstraintDate) norm2.getDeactivationConstraint()).getDate();\n\t\t\n\t\tboolean r = this.compareDateIntervals(d1Begin, d1End, d2Begin, d2End);\n\t\treturn r;\n\t}",
"private void checkNeqContradictions(HashMap<ComparableExpression, HashSet<ComparableExpression>> cNeq,\n HashMap<TimeSelector, Long> lowerBounds,\n HashMap<TimeSelector, Long> upperBounds)\n throws QueryContradictoryException {\n ArrayList<ArrayList<ComparableExpression>> neq = relationToTuples(cNeq);\n for (ArrayList<ComparableExpression> tuple : neq) {\n if (tuple.get(0) instanceof TimeSelector) {\n TimeSelector sel = (TimeSelector) tuple.get(0);\n // if lower(sel)!=upper(sel), no constraint sel!=x is contradictory\n if (!lowerBounds.get(sel).equals(upperBounds.get(sel))) {\n return;\n }\n // selector1 != selector2 only contradictory if both selectors have the same fixed value\n // (lower(selector1)=upper(selector1)=lower(selector2)=upper(selector2)\n if (tuple.get(1) instanceof TimeSelector) {\n TimeSelector sel2 = (TimeSelector) tuple.get(1);\n if (lowerBounds.get(sel).equals(lowerBounds.get(sel2)) &&\n lowerBounds.get(sel2).equals(upperBounds.get(sel2))) {\n throw new QueryContradictoryException();\n } // selector != literal only contradictory if lower(selector)=upper(selector)=literal\n } else if (tuple.get(1) instanceof TimeLiteral) {\n Long literalValue = ((TimeLiteral) tuple.get(1)).getMilliseconds();\n if (lowerBounds.get(sel).equals(literalValue)) {\n throw new QueryContradictoryException();\n }\n }\n } else if (tuple.get(0) instanceof TimeLiteral && tuple.get(1) instanceof TimeSelector) {\n // selector != literal only contradictory if lower(selector)=upper(selector)=literal\n TimeSelector sel = (TimeSelector) tuple.get(1);\n Long literalValue = ((TimeLiteral) tuple.get(0)).getMilliseconds();\n if (lowerBounds.get(sel).equals(upperBounds.get(sel)) && lowerBounds.get(sel).equals(literalValue)) {\n throw new QueryContradictoryException();\n }\n }\n }\n }",
"public ValidationResult validateMerge(Concept concept1,\n Concept concept2);",
"protected String comprobarConsumoEnergetico(Letra letra){\r\n if(getConsumoEnergetico() == Letra.A | getConsumoEnergetico() == Letra.B | getConsumoEnergetico() == Letra.C \r\n | getConsumoEnergetico() == Letra.D | getConsumoEnergetico() == Letra.E | getConsumoEnergetico() == Letra.F){\r\n return \"Consumo energetico correcto; letra correcta\";\r\n }\r\n else{\r\n return \"Consumo energetico incorrecto; letra erronea\";\r\n }\r\n}",
"protected void addConstraints() throws IloException {\n// Constrain (2)\n for (int i = 0; i < m; i++) {\n IloLinearNumExpr expr_2 = model.linearNumExpr();\n for (int j = 0; j < n; j++) {\n expr_2.addTerm(x[i][j], 1);\n }\n model.addLe(expr_2, supply[i]);\n }\n\n // Constrain (3)\n for (int j = 0; j < n; j++) {\n IloLinearNumExpr expr_3 = model.linearNumExpr();\n for (int i = 0; i < m; i++) {\n expr_3.addTerm(x[i][j], 1);\n }\n model.addEq(expr_3, demands[j]);\n }\n }",
"public static void c1_vl() {\n\t}",
"public ConstraintChecker(\n\t\t\tArrayList<TimeSlot> cSlots, \n\t\t\tArrayList<TimeSlot> lSlots, \n\t\t\tArrayList<Pair<Course, Course>> notCompat,\n\t\t\tArrayList<Pair<Course, TimeSlot>> unWant,\n\t\t\tArrayList<Pair<Course, TimeSlot>> parts,\n\t\t\tArrayList<Triple<TimeSlot, Course, Integer>> pref,\n\t\t\tArrayList<Pair<Course, Course>> pair)\n\t\n\t{\n\t\tcourseSlots = cSlots;\n\t\tlabSlots = lSlots;\n\t\tnotCompatible = notCompat;\n\t\tunwanted = unWant;\n\t\tpartials = parts;\n\t\tpreferences = pref;\n\t\tpairs = pair;\n\t}",
"@Test\n public void testBoundsAsCompositesWithMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n Restriction eq = newMultiEq(cfMetaData, 0, value1, value2);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, EOC.END);\n }",
"private static boolean validos(int d1, int d2, \n\t\t\tList<Par<Integer,Integer>> v) {\n\t\tboolean result = v != null;\n\t\tfor(int i = 0 ; i < v.size() && result ; i++) {\n\t\t\tPar<Integer,Integer> p = v.get(i);\n\t\t\tresult = result && p != null;\n\t\t\tresult = result && \n\t\t\t\t\tp.primeiro() >= 0 && p.primeiro() < d1 && \n\t\t\t\t\tp.segundo() >= 0 && p.segundo() < d2;\n\t\t}\n\t\treturn result;\n\t}",
"@Override\r\n public int compare(Node o1, Node o2) {\r\n\r\n ArrayList<Litteral> solution1 = o1.getValeur();\r\n ArrayList<Litteral> solution2 = o2.getValeur();\r\n int satisfaitClauseNumberS1 = satInstance.satisfaitClauseNumber(solution1);\r\n int satisfaitClauseNumberS2 = satInstance.satisfaitClauseNumber(solution2);\r\n return satisfaitClauseNumberS2 - satisfaitClauseNumberS1;\r\n\r\n }",
"public void validateRpd1s2()\n {\n // This guideline cannot be automatically tested.\n }",
"public boolean compareLength(Length l1, Length l2){\n return Double.compare(l1.value*l1.unit.baseUnitConversion, l2.value*l2.unit.baseUnitConversion) == 0;\n }",
"private void checkLtContradictions(HashMap<ComparableExpression, HashSet<ComparableExpression>> ltRelation)\n throws QueryContradictoryException {\n for (Map.Entry<ComparableExpression, HashSet<ComparableExpression>> tuple : ltRelation.entrySet()) {\n ComparableExpression key = tuple.getKey();\n for (ComparableExpression value : tuple.getValue()) {\n if (key.equals(value)) {\n throw new QueryContradictoryException();\n }\n }\n }\n }",
"public boolean conflicts(int c1, int c2)\n {\n c1 = reverse(c1);\n c2 = reverse(c2);\n while (c1 > 0 && c2 > 0)\n {\n if ((c1 & Click.BIT_MASK) != (c2 & Click.BIT_MASK))\n {\n return false;\n }\n c1 >>= Click.BITS;\n c2 >>= Click.BITS;\n }\n return true;\n }",
"public boolean validate() {\n double ab = lengthSide(a, b);\n double ac = lengthSide(a, c);\n double bc = lengthSide(b, c);\n\n return ((ab < ac + bc)\n && (ac < ab + bc)\n && (bc < ab + ac));\n }",
"public static Result comp2(){\n\t\t\t\n\t\t\t//Requête pour récupèrer le nombre de viols en espagne\n\t \t //requete pour recuperer les valeurs , les dates et les pays avec filtre date et pays \n\t \t// creattion d modele \n\t\t\tModel m = ModelFactory.createDefaultModel();\n\t\t\t // j'int�gre mon modele dans un autre modele inf�r� \n\t\t\tInfModel infm = ModelFactory.createRDFSModel(m);\n\t\t\t // je lis les deus fichier .RDF et .ttl pour le sujet crime \t\t\n\t\t\tString ns = \"http://www.StatisticSquade.fr#\";\n\t\t \tinfm.setNsPrefix(\"StatisticSquade\", ns);\n\t\t \t/// name space de eurostat\n\t\t \tString nsEuro = \"http://eurostat.linked-statistics.org/data/\";\n\t\t\tinfm.setNsPrefix(\"Eurostat\", nsEuro);\n\t\t\tFileManager.get().readModel(infm, rdf_file0 );\n\t\t\tFileManager.get().readModel(infm, rdf_file1 ); \n\t\t\t\n\t\t\t//Construction dynamique des requêtes\n\t\t\t/**\n\t\t\t * Récupération des pays\n\t\t\t */\n\t\t\n\t\t\t/**\n\t\t\t * \n\t\t\t * récupétation autes\n\t\t\t */\n\t\t\tString pays = Form.form().bindFromRequest().get(\"pays\");\n\t\t\tanneeDebut = Form.form().bindFromRequest().get(\"anneeDebut\");\n\t\t\tanneeFin = Form.form().bindFromRequest().get(\"anneeFin\");\n\t\t\tString sujet1 = Form.form().bindFromRequest().get(\"sujet1\");\n\t\t\tString sujet2 = Form.form().bindFromRequest().get(\"sujet2\");\n\t\t\tString [] tabAnneeDebut = anneeDebut.split(\"-\");\n\t String anneeD = tabAnneeDebut[0];\n\t int aDebut = Integer.parseInt(anneeD);\n\t String [] tabAnneeFin = anneeFin.split(\"-\");\n\t String anneeF = tabAnneeFin[0];\n\t int aFin = Integer.parseInt(anneeF);\n\t if(aFin < aDebut){\n\t \tString anneeTemp = anneeDebut;\n\t \tanneeDebut = anneeFin;\n\t \tanneeFin = anneeTemp;\n\t }\n\n\t String rdq1 = \n\t\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet1+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \"; \n\t\t \n\t\tString rdq2 = \n\t \t\t\t \n\t\t\t \t\t\"PREFIX sdmx-dimension: <http://purl.org/linked-data/sdmx/2009/dimension#>\" +\n\t\t\t\t\t\"PREFIX property: <http://eurostat.linked-statistics.org/property#>\" +\n\t\t\t \"PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>\" +\n\t\t\t\t \"PREFIX sdmx-measure: <http://purl.org/linked-data/sdmx/2009/measure#>\" +\n\t\t\t\t \"PREFIX skos: <http://www.w3.org/2004/02/skos/core#>\" +\n\t\t\t\t \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\" +\n\t\t\t\t \"PREFIX qb: <http://purl.org/linked-data/cube#>\" +\n\t\t\t\t \"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\" +\n\t\t\t\t \"PREFIX StatisticSquade: <http://www.StatisticSquade.fr#>\" +\n\t\t\t\t \n\t\t\t \t\t\"SELECT \" +\n\t\t\t \t\" ?Pays ?Date ?Valeur \" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/data/crim_gen.rdf>\" +\n\t\t\t\t\t \t\t\"FROM <http://eurostat.linked-statistics.org/dsd/crim_gen.ttl>\" +\n\t\t\t \t\t\"WHERE {\" +\n\t\t\t \t\t\t\t\t\" ?x sdmx-dimension:timePeriod ?Date . \" +\n\t\t\t\t\t\t \t\t\" ?x sdmx-measure:obsValue ?Valeur .\" +\n\t\t\t\t\t \t\t \"?x property:geo ?y .\" +\n\t\t\t\t\t \t\t \"?y skos:prefLabel ?Pays .\" +\n\t\t\t\t\t\t \t\t \" ?x property:crim ?z . \" +\n\t\t\t\t\t\t \t \t \"?z skos:notation ?l . \" +\n\t\t\t\t\t\t \t\t \"FILTER regex( ?l ,\\\"\"+sujet2+\"\\\" ) . \" +\n\n\t\t\t\t\t\t \t\t\" FILTER ( ?Date >= \\\"\"+anneeDebut+\"\\\"^^xsd:date && ?Date <= \\\"\"+anneeFin+\"\\\"^^xsd:date ) .\" +\n\t\t\t\t\t\t \t\t\"FILTER regex (?Pays , \\\"\"+pays+\"\\\" ) . \" +\n\t\t\t \t\t\" } \";\n\t\t\n \n //mapping entre sujets et leurs codes\n HashMap<String,String> codeToSujet = new HashMap<String,String>();\n codeToSujet.put(\"DBURG\", \"Cambriolages dans un lieu d'habitation\");\n codeToSujet.put(\"DRUGT\", \"Trafic de stupéfiants\");\n codeToSujet.put(\"HCIDE\", \"Homicides\");\n codeToSujet.put(\"VTHFT\", \"Vols de véhicules à moteur\");\n codeToSujet.put(\"VIOLT\", \"Crimes et délits violents\");\n codeToSujet.put(\"ROBBR\", \"Vols avec violences\");\n\t\t\t\n //Execution des requêtes\n /**\n * Requête 1\n */\n Query query1 = QueryFactory.create(rdq1); \n\t QueryExecution qexec1 = QueryExecutionFactory.create(query1,m);\n\t /////////\n\t ResultSet rs1 = qexec1.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste1 = ResultSetFormatter.toList(rs1);\n\t Iterator<QuerySolution> it1 = liste1.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map1 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString1 = new ArrayList<String>();\n while(it1.hasNext()){\n \t \n \t QuerySolution elt1 = it1.next();\n String anneeElt1 = elt1.get(\"Date\").toString();\n String valeur1 = elt1.get(\"Valeur\").toString();\n String [] tabAnnee1 = anneeElt1.split(\"-\");\n String annee1 = tabAnnee1[0];\n map1.put(Integer.parseInt(annee1), valeur1);\t \n donneesString1.add(valeur1);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd1 = new TreeMap<Integer,String>(map1);\n /**\n * Requete 2\n */\n Query query2 = QueryFactory.create(rdq2); \n\t QueryExecution qexec2 = QueryExecutionFactory.create(query2,m);\n\t /////////\n\t ResultSet rs2 = qexec2.execSelect() ;\n\t //Transformation en List de querySolution\n\t List<QuerySolution> liste2 = ResultSetFormatter.toList(rs2);\n\t Iterator<QuerySolution> it2 = liste2.iterator();\n \n ////////// Mise des résultats dans une hashmap\n HashMap<Integer,String> map2 = new HashMap<Integer,String>(); \n ArrayList<String> donneesString2 = new ArrayList<String>();\n while(it2.hasNext()){\n \t \n \t QuerySolution elt2 = it2.next();\n String anneeElt2 = elt2.get(\"Date\").toString();\n String valeur2 = elt2.get(\"Valeur\").toString();\n String [] tabAnnee2 = anneeElt2.split(\"-\");\n String annee2 = tabAnnee2[0];\n map2.put(Integer.parseInt(annee2), valeur2);\t \n donneesString2.add(valeur2);\n }\n //Pour ordonner la HashMap en se basant sur la clé\n TreeMap<Integer, String> mapOrd2 = new TreeMap<Integer,String>(map2);\n \n //////////\n JsonObject title = new JsonObject();\n title.put(\"text\", \"Nombre de \"+codeToSujet.get(sujet1)+\" et de \"+codeToSujet.get(sujet2));\n \n JsonObject subtitle = new JsonObject();\n subtitle.put(\"text\", pays);\n \n JsonObject xAxis = new JsonObject();\n xAxis.put(\"type\", \"value\");\n \n JsonObject titleY = new JsonObject();\n titleY.put(\"text\", \"valeurs :\");\n JsonObject yAxis = new JsonObject();\n yAxis.put(\"title\", titleY);\n yAxis.put(\"min\", 0);\n \n JsonArray series = new JsonArray();\n \n JsonObject objSerie1 = new JsonObject();\n objSerie1.put(\"name\", codeToSujet.get(sujet1));\n JsonArray data1 = new JsonArray();\n for(Entry<Integer, String> entry1 : mapOrd1.entrySet()){\n \t \n \t JsonArray eltData1 = new JsonArray();\n eltData1.add(entry1.getKey());\n eltData1.add(Integer.parseInt(entry1.getValue()));\n data1.add(eltData1);\n \n }\n objSerie1.put(\"data\",data1);\n series.add(objSerie1);\n \n \n \n JsonObject objSerie2 = new JsonObject();\n objSerie2.put(\"name\", codeToSujet.get(sujet2));\n JsonArray data2 = new JsonArray(); \n for(Entry<Integer, String> entry2 : mapOrd2.entrySet()){\n \t \n \t JsonArray eltData2 = new JsonArray();\n eltData2.add(entry2.getKey());\n eltData2.add(Integer.parseInt(entry2.getValue()));\n data2.add(eltData2);\n }\t \n objSerie2.put(\"data\",data2); \n series.add(objSerie2);\n \n \n //Ajouter au graphe\n JsonObject graphe = new JsonObject();\n graphe.put(\"title\", title);\n graphe.put(\"subtitle\", subtitle);\n graphe.put(\"xAxis\", xAxis);\n graphe.put(\"yAxis\", yAxis);\n graphe.put(\"series\", series);\n /**\n * \n * données statistiques\n */\n \n \n StatisticsComputation myStats = new StatisticsComputation(donneesString1, donneesString2);\n double covariance = myStats.covariance();\n\t\tdouble pearsonsCorrelation = myStats.pearsonsCorrelation();\n\t\tSystem.out.println(\"Ma covariance \" + covariance);\n\t\tSystem.out.println(\"Ma correlation \" + pearsonsCorrelation);\n\t\tdouble mean = myStats.mean();\n\t\tdouble standardDeviation = myStats.standardDeviation();\n\t\tSystem.out.println(\"Ma moyenne \" + mean);\n\t\tSystem.out.println(\"Mon écart-type \" + standardDeviation);\n\n /**\n * \n * Données statistiques fin\n */\n\t\t/**\n\t\t * Ajout au graphe\n\t\t */\n\t\tGraphCreation gc = new GraphCreation(\"crim_gen\");\n\t\tgc.postGraph(sujet1+\"-\"+sujet2+\"-\"+pays, sujet1+pays, sujet2+pays, anneeDebut, anneeFin, \n\t\t\t\t Double.toString(pearsonsCorrelation), Double.toString(mean), Double.toString(standardDeviation), \n\t\t\t\t Double.toString(covariance));\n\t\tgc.save();\n\t\t\n\t\tString ip = request().remoteAddress();\n ArrayList<String> listeComments = gc.getComments(sujet1+\"-\"+sujet2+\"-\"+pays, false); \n if(listeComments !=null){\n\t\tIterator<String> it = listeComments.iterator();\n\t\tList<Comment> listeCom = new ArrayList<Comment>();\n\t\twhile(it.hasNext()){\n\t\t\tString elt = it.next();\n\t\t\tString [] tab = elt.split(\";\");\n\t\t\tString nomRecup = tab[0];\n\t\t\tString dateRecup = tab[1];\n\t\t\tString contenuRecup = tab[2];\n\t\t\tComment comment1 = new Comment(nomRecup,dateRecup,contenuRecup);\n\t\t\tlisteCom.add(comment1);\n\t\t}\n\t\tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,listeCom,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n\t\treturn ok(comp2.render(g));\n }else{\n \tGraphe g = new Graphe(graphe.toString(),covariance,pearsonsCorrelation,mean,standardDeviation,null,ip,sujet1+\"-\"+sujet2+\"-\"+pays,null);\n \t\treturn ok(comp2.render(g));\t\n \t\n }\n\t\t \n\t\t \n\t \t\n\t \t\n\t }",
"private static int editDis(String str1, String str2, int l1, int l2) {\n\t\tint[][] dp = new int[l1+1][l2+1];\n\t\tfor(int i=0;i<l2+1;i++) {\n\t\t\tdp[0][i]=i;\n\t\t}\n\t\tfor(int i=0;i<l1+1;i++) {\n\t\t\tdp[i][0]=i;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<l1+1;i++) {\n\t\t\tfor(int j=1;j<l2+1;j++) {\n\t\t\t\tif(str1.charAt(i-1)==str2.charAt(j-1))\n\t\t\t\t\tdp[i][j]=dp[i-1][j-1];\n\t\t\t\telse {\n\t\t\t\t\tdp[i][j]=Math.min(dp[i][j], Math.min(dp[i][j-1], dp[i-1][j]))+1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[l1][l2];\n\t\t\n\t}",
"@Test\n public void testBoundsAsCompositesWithOneEqRestrictionsAndTwoClusteringColumns()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer clustering_0 = ByteBufferUtil.bytes(1);\n Restriction eq = newSingleEq(cfMetaData, 0, clustering_0);\n\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), clustering_0, EOC.END);\n }",
"boolean intersectsProper(tLine l1)\n {\n if(l1.state == penStates.PENUP | this.state == penStates.PENUP)\n return false;\n\n //collinear doesn't count\n if (this.collinear(l1.p0) | this.collinear(l1.p1) | l1.collinear(this.p0) | l1.collinear(this.p1))\n return false;\n\n if(this.left(l1.p0) | this.left(l1.p1))\n {\n if (this.left(l1.p0) && this.left(l1.p1))\n return false;\n if (l1.left(this.p0) | l1.left(this.p1))\n {\n if (l1.left(this.p0) && l1.left(this.p1))\n return false;\n else\n return true;\n }\n }\n return false;\n }",
"int llegue(int a,int b,int c,int d){\n if(a==c && b==d){\n return 1;\n }else{return 0;}\n }",
"private int lcs(String word1, String word2) {\n int m = word1.length();\n int n = word2.length();\n int[][] dp = new int[m + 1][n + 1];\n //mem[i][j] means the LCS length formed by A[:i] and B[:j]\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n if (word1.charAt(i) == word2.charAt(j)) {\n dp[i + 1][j + 1] = dp[i][j] + 1;\n } else {\n dp[i + 1][j + 1] = Math.max(dp[i + 1][j], dp[i][j + 1]);\n }\n }\n }\n return dp[m][n];\n }",
"@FXML\n private void onAjouterPressed(ActionEvent event) throws IOException, SQLException {\n if(DPendDate.isVisible()){\n check3=false;\n if(DPendDate.getValue()== null){\n erreurFin.setOpacity(1);\n }else if(DPendDate.getValue().isBefore(DPchoosedDate.getValue())){\n erreurFin.setOpacity(1);\n }else{\n check3 = true;\n erreurFin.setOpacity(0);\n }\n }\n if(DPchoosedDate.getValue()== null){\n erreurConstruit.setOpacity(0);\n erreurChamp.setOpacity(1);\n check = false;\n }else if(user.getData().isWeekConstruct(DPchoosedDate.getValue())){\n erreurConstruit.setOpacity(1);\n erreurChamp.setOpacity(0);\n }else{\n check = true;\n erreurConstruit.setOpacity(0);\n }\n if(CR11.isSelected()|CR12.isSelected()|CR21.isSelected()|CR22.isSelected()){\n check2 = true;\n }else{\n erreurChamp.setOpacity(1);\n check2 = false;\n }\n if(check && check2 && check3){\n ArrayList<Constraint> theCo;\n theCo = user.getData().getAllConstraintsFromId(this.id);\n user.getData().removeConstraintFamily(this.id);\n erreurChamp.setOpacity(0);\n System.out.println(\"Lancement de la procédure d'ajout de la contrainte\");\n if(CBduree.getValue().toString().equals(\"Unique\")){\n System.out.println(\"unique\");\n int beginHourTemp = 0;\n int endHourTemp = 0;\n int hours = 0; //entre 0 et \n int extendedHours;\n boolean extend = true;\n boolean overwriteError = false;\n ArrayList<Constraint> coList = new ArrayList<>();\n \n for (hours = 0 ; hours != 4 ; hours++){\n if(getThisShittyCheckBox(hours).isSelected()){\n beginHourTemp = hours;\n endHourTemp = hours;\n for(extendedHours = hours ; extend ; extendedHours++){\n if(hours != 4){\n if(getThisShittyCheckBox(hours+1).isSelected()){\n endHourTemp++;\n hours = extendedHours+1;\n }else extend = false;\n }\n }\n Constraint co = new Constraint(getThisShittyConstraintType(CBtype.getValue().toString()), DPchoosedDate.getValue(), nomTextField.getText(), util.getComplicateHoursFromSimple(beginHourTemp), util.getComplicateHoursFromSimple(endHourTemp), 0 , user.getData().getNewGeneratedIdSame());\n coList.add(co);\n if(user.getData().isOverwrite(co)) overwriteError = true;\n }\n }\n if(overwriteError){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Une ou plusieurs contraintes déjà ajoutées pour ce ce/ces créneaux\");\n String textOverwrite = \"\";\n for(Constraint aConstraint : coList){\n for(String overwriteConstraintTitle : user.getData().checkOverwrite(aConstraint)){\n textOverwrite += overwriteConstraintTitle + \", \";\n }\n }\n alert.setContentText(\"La/Les contrainte(s) : \" + textOverwrite + \"empêche(nt) l'ajout de votre contrainte.\");\n alert.showAndWait();\n for(Constraint coco : theCo) user.getData().addConstraint(coco);\n }else{\n for(Constraint aConstraint : coList) user.getData().addConstraint(aConstraint);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Ajout de la contrainte réussi\");\n alert.setHeaderText(null);\n alert.setContentText(\"L'ajout de votre contrainte a bien été pris en compte !\");\n alert.showAndWait();\n }\n }else if(CBduree.getValue().toString().equals(\"Définitive\")){\n System.out.println(\"Définitive\");\n int beginHourTemp = 0;\n int endHourTemp = 0;\n int hours = 0; //entre 0 et \n int extendedHours;\n int id_same[] = {user.getData().getNewGeneratedIdSame() , user.getData().getNewGeneratedIdSame()};\n int indice_idSame;\n int occurence_Type = 1;\n boolean extend = true;\n boolean overwriteError = false;\n ArrayList<Constraint> coList = new ArrayList<>();\n LocalDate dateTempForConstraint = DPchoosedDate.getValue();\n \n while(!overwriteError && dateTempForConstraint.isBefore(user.getData().getLastweekEndDate())){\n indice_idSame = 0;\n for (hours = 0 ; hours != 4 ; hours++){\n if(getThisShittyCheckBox(hours).isSelected()){\n beginHourTemp = hours;\n endHourTemp = hours;\n for(extendedHours = hours ; extend ; extendedHours++){\n if(hours != 4){\n if(getThisShittyCheckBox(hours+1).isSelected()){\n endHourTemp++;\n hours = extendedHours+1;\n }else extend = false;\n }\n }\n if(CBtousLes.getValue().toString().equals(\"Tous les jours\")){\n occurence_Type = 1;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les semaines\")){\n occurence_Type = 2;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 2 semaines\")){\n occurence_Type = 3;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 4 semaines\")){\n occurence_Type = 4;\n }\n Constraint co = new Constraint(getThisShittyConstraintType(CBtype.getValue().toString()), dateTempForConstraint , nomTextField.getText(), util.getComplicateHoursFromSimple(beginHourTemp), util.getComplicateHoursFromSimple(endHourTemp), occurence_Type , id_same[indice_idSame]);\n coList.add(co);\n indice_idSame++;\n if(indice_idSame == 2) indice_idSame = 0;\n if(user.getData().isOverwrite(co)) overwriteError = true;\n }\n }\n if(CBtousLes.getValue().toString().equals(\"Tous les jours\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(1);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(7);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 2 semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(14);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 4 semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(28);\n }\n \n System.out.println(dateTempForConstraint.toString());\n }\n \n if(overwriteError){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Une ou plusieurs contraintes déjà ajoutées pour ce ce/ces créneaux\");\n String textOverwrite = \"\";\n for(Constraint aConstraint : coList){\n for(String overwriteConstraintTitle : user.getData().checkOverwrite(aConstraint)){\n textOverwrite += overwriteConstraintTitle + \", \";\n }\n }\n alert.setContentText(\"La/Les contrainte(s) : \" + textOverwrite + \"empêche(nt) l'ajout de votre contrainte.\");\n alert.showAndWait();\n for(Constraint coco : theCo) user.getData().addConstraint(coco);\n }else{\n for(Constraint aConstraint : coList) user.getData().addConstraint(aConstraint);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Ajout de la contrainte réussi\");\n alert.setHeaderText(null);\n alert.setContentText(\"L'ajout de votre contrainte a bien été pris en compte !\");\n alert.showAndWait();\n }\n }else if(CBduree.getValue().toString().equals(\"Jusqu'au\")){\n System.out.println(\"Jusqu'au\");\n if(DPendDate.getValue().isAfter(user.getData().getLastweekEndDate())){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Date de fin de répétition invalide !\");\n alert.setContentText(\"La date de fin de répétition de la contrainte est en dehors de l'année en cours.\");\n alert.showAndWait();\n }else if(DPendDate.getValue().isBefore(user.getData().getFirstweekBeginDate())){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Date de fin de répétition invalide !\");\n alert.setContentText(\"La date de fin de répétition de la contrainte est antérieure à l'année en cours.\");\n alert.showAndWait();\n }else if(DPendDate.getValue().isBefore(DPchoosedDate.getValue())){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Date de fin de répétition invalide !\");\n alert.setContentText(\"La date de fin de répétition de la contrainte est antérieure à celle du début de celle-ci.\");\n alert.showAndWait();\n }else{\n int beginHourTemp = 0;\n int endHourTemp = 0;\n int hours = 0; //entre 0 et \n int extendedHours;\n int id_same[] = {user.getData().getNewGeneratedIdSame() , user.getData().getNewGeneratedIdSame()};\n int indice_idSame;\n int occurence_Type = 1;\n boolean extend = true;\n boolean overwriteError = false;\n ArrayList<Constraint> coList = new ArrayList<>();\n LocalDate dateTempForConstraint = DPchoosedDate.getValue();\n \n while(!overwriteError && dateTempForConstraint.isBefore(DPendDate.getValue())){\n indice_idSame = 0;\n for (hours = 0 ; hours != 4 ; hours++){\n if(getThisShittyCheckBox(hours).isSelected()){\n beginHourTemp = hours;\n endHourTemp = hours;\n for(extendedHours = hours ; extend ; extendedHours++){\n if(hours != 4){\n if(getThisShittyCheckBox(hours+1).isSelected()){\n endHourTemp++;\n hours = extendedHours+1;\n }else extend = false;\n }\n }\n if(CBtousLes.getValue().toString().equals(\"Tous les jours\")){\n occurence_Type = 5;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les semaines\")){\n occurence_Type = 6;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 2 semaines\")){\n occurence_Type = 7;\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 4 semaines\")){\n occurence_Type = 8;\n }\n Constraint co = new Constraint(getThisShittyConstraintType(CBtype.getValue().toString()), dateTempForConstraint , nomTextField.getText(), util.getComplicateHoursFromSimple(beginHourTemp), util.getComplicateHoursFromSimple(endHourTemp), occurence_Type , id_same[indice_idSame]);\n coList.add(co);\n indice_idSame++;\n if(indice_idSame == 2) indice_idSame = 0;\n if(user.getData().isOverwrite(co)) overwriteError = true;\n }\n }\n if(CBtousLes.getValue().toString().equals(\"Tous les jours\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(1);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(7);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 2 semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(14);\n }else if(CBtousLes.getValue().toString().equals(\"Toutes les 4 semaines\")){\n dateTempForConstraint = dateTempForConstraint.plusDays(28);\n }\n \n System.out.println(dateTempForConstraint.toString());\n }\n \n if(overwriteError){\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Erreur\");\n alert.setHeaderText(\"Une ou plusieurs contraintes déjà ajoutées pour ce ce/ces créneaux\");\n String textOverwrite = \"\";\n for(Constraint aConstraint : coList){\n for(String overwriteConstraintTitle : user.getData().checkOverwrite(aConstraint)){\n textOverwrite += overwriteConstraintTitle + \", \";\n }\n }\n alert.setContentText(\"La/Les contrainte(s) : \" + textOverwrite + \"empêche(nt) l'ajout de votre contrainte.\");\n alert.showAndWait();\n for(Constraint coco : theCo) user.getData().addConstraint(coco);\n }else{\n for(Constraint aConstraint : coList) user.getData().addConstraint(aConstraint);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Ajout de la contrainte réussi\");\n alert.setHeaderText(null);\n alert.setContentText(\"L'ajout de votre contrainte a bien été pris en compte !\");\n alert.showAndWait();\n }\n }\n }\n onAnnulerPressed(event);\n }\n }",
"@Check\n \tpublic void checkCompareConstraints(CompareConstraint constraint) {\n \t\tboolean op1Variable = PatternLanguagePackage.Literals.VARIABLE_VALUE.isSuperTypeOf(constraint.getLeftOperand().eClass());\n \t\tboolean op2Variable = PatternLanguagePackage.Literals.VARIABLE_VALUE.isSuperTypeOf(constraint.getRightOperand().eClass());\n \t\tif (!op1Variable && !op2Variable) {\n \t\t\twarning(\"Both operands are constants - constraint is always true or always false.\",\n \t\t\t\t\tPatternLanguagePackage.Literals.COMPARE_CONSTRAINT__LEFT_OPERAND,\n \t\t\t\t\tIssueCodes.CONSTANT_COMPARE_CONSTRAINT);\n \t\t\twarning(\"Both operands are constants - constraint is always true or always false.\",\n \t\t\t\t\tPatternLanguagePackage.Literals.COMPARE_CONSTRAINT__RIGHT_OPERAND,\n \t\t\t\t\tIssueCodes.CONSTANT_COMPARE_CONSTRAINT);\n \t\t}\n \t\t//If both operands are the same, issues a warning\n \t\tif (op1Variable && op2Variable) {\n \t\t\tVariableValue op1 = (VariableValue) constraint.getLeftOperand();\n \t\t\tVariableValue op2 = (VariableValue) constraint.getRightOperand();\n \t\t\tif (op1.getValue().getVar().equals(op2.getValue().getVar())) {\n \t\t\t\twarning(\"Comparing a variable with itself.\",\n \t\t\t\t\t\tPatternLanguagePackage.Literals.COMPARE_CONSTRAINT__LEFT_OPERAND,\n \t\t\t\t\t\tIssueCodes.SELF_COMPARE_CONSTRAINT);\n \t\t\t\twarning(\"Comparing a variable with itself.\",\n \t\t\t\t\t\tPatternLanguagePackage.Literals.COMPARE_CONSTRAINT__RIGHT_OPERAND,\n \t\t\t\t\t\tIssueCodes.SELF_COMPARE_CONSTRAINT);\n \t\t\t}\n \t\t}\n \t}",
"private boolean consistencyCheckC2Constraints(double[][] xResults, double[][] yResults, double[] alpha) {\n\t\tint n = mExplicitMDP.getNumStates();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble outxValue = GRBSolverUtils.getOutValue(i, xResults, mExplicitMDP);\n\t\t\tdouble outyValue = GRBSolverUtils.getOutValue(i, yResults, mExplicitMDP);\n\t\t\tdouble inyValue = GRBSolverUtils.getInValue(i, yResults, mExplicitMDP);\n\t\t\tboolean satisfied = GRBSolverUtils.approximatelyEqual(outxValue + outyValue - inyValue, alpha[i],\n\t\t\t\t\tmSettings.getFeasibilityTolerance());\n\n\t\t\tif (!satisfied) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public List<SDVariable> doDiff(List<SDVariable> f1) {\n List<SDVariable> out = new ArrayList<>();\n for(SDVariable v : args()){\n out.add(sameDiff.zerosLike(v));\n }\n return out;\n }",
"@Test\n\tpublic void evalCrispDistanceWithCrisp1(){\n\t\tFuzzySet res = (CrispSet)cs1.distance(cs2);\n\t\tassertTrue(res instanceof CrispSet);\n\t\tCrispSet resCrisp = (CrispSet)res;\n\t\t//Puntos limite\t\t\n\t\tassertTrue(resCrisp.getLeftBoundary()==3);\n\t\tassertTrue(resCrisp.getRightBoundary()==6);\n\t\t//Valores extremos\n\t\tassertTrue(resCrisp.getMembershipValue(0)==0);\n\t\tassertTrue(resCrisp.getMembershipValue(3)==1);\n\t\tassertTrue(resCrisp.getMembershipValue(4)==1);\n\t\tassertTrue(resCrisp.getMembershipValue(4.5)==1);\n\t\tassertTrue(resCrisp.getMembershipValue(5)==1);\n\t\tassertTrue(resCrisp.getMembershipValue(6)==1);\n\t\tassertTrue(resCrisp.getMembershipValue(6.01)==0);\n\t}",
"RequireExprsRule createRequireExprsRule();",
"private void updateViewModelValidatorSupports()\n {\n if (myValidator == null)\n {\n return;\n }\n Conditional cond = myOperator.get();\n if (cond == Conditional.IN_LIST || cond == Conditional.NOT_IN_LIST || cond == Conditional.LIKE_LIST\n || cond == Conditional.NOT_LIKE_LIST)\n {\n myCriterionValue.setValidatorSupport(new TextModelListValidatorSupport(myCriterionValue, myValidator));\n myCriterionMaxValue.setValidatorSupport(new TextModelListValidatorSupport(myCriterionMaxValue, myValidator));\n }\n else\n {\n myCriterionValue.setValidatorSupport(new ObservableValueValidatorSupport<>(myCriterionValue, myValidator));\n myCriterionMaxValue.setValidatorSupport(new ObservableValueValidatorSupport<>(myCriterionMaxValue, myValidator));\n }\n }",
"boolean checkValidity(int side1, int side2, int side3);",
"public void printType(){\n l1= v1.distance(v2);\r\n l2= v1.distance(v3);\r\n l3= v2.distance(v3); \r\n if(l1 == l2 && l1==l3 && l2==l3)\r\n System.out.println(\"Equilateral\");\r\n if(l1 == l2 || l1==l3 || l2==l3)\r\n System.out.println(\"Isosceles\");\r\n else \r\n System.out.println(\"Scalene\"); \r\n \r\n }",
"public ValidatorStandardSubsetBroad() {\n super();\n addErrorKey(ERROR_KEY1);\n addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY1);\n addErrorKey(ERROR_KEY2);\n addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY2); \n }",
"private void validation(Solution sol) {\n List<Route> routes = sol.getRoutes();\n double totalDist = 0;\n double totalPenalty = 0;\n for (Route route : routes) {\n double dist = 0;\n double penalty = 0;\n double time = 0;\n double load = 0;\n List<Node> routeNodes = route.getNodes();\n for (int i = 1; i < routeNodes.size(); i++) {\n Node prevNode = routeNodes.get(i - 1);\n Node node = routeNodes.get(i);\n load += node.getq();\n if (!Utils.doubleEqual(node.getQ(), load)) throw new IllegalArgumentException(\"Wrong with load.\");\n if (load < 0 || load > route.getVehicle().getCapacity()) throw new IllegalArgumentException(\"Load Violation.\");\n time = Math.max(node.getTw1(), prevNode.gets() + time + Utils.calculateDistance(prevNode, node));\n if (node.getMembership() == 1 && time > node.getTw2()) throw new IllegalArgumentException(\"Time window violation.\");\n if (!Utils.doubleEqual(time, node.getT())) throw new IllegalArgumentException(\"Wrong with time.\");\n double tempPenalty = Math.max(0, time - node.getTw2());\n if (!Utils.doubleEqual(tempPenalty, node.getDL())) throw new IllegalArgumentException(\"Wrong penalty\");\n penalty += tempPenalty;\n dist += Utils.calculateDistance(prevNode, node);\n }\n if (!Utils.doubleEqual(dist, route.getDist())) throw new IllegalArgumentException(\"Wrong route distance\");\n// System.out.println(penalty + \" \" + route.getPenalty());\n if (!Utils.doubleEqual(penalty, route.getPenalty())) throw new IllegalArgumentException(\"Wrong route penalty\");\n totalDist += dist;\n totalPenalty += penalty;\n }\n if (!Utils.doubleEqual(totalDist, sol.getTotalDist())) throw new IllegalArgumentException(\"Wrong solution distance\");\n if (!Utils.doubleEqual(totalPenalty, sol.getTotalPenalty())) throw new IllegalArgumentException(\"Wrong solution penalty\");\n }",
"boolean verifications(int i, int j, int val) { \r\n return (verifCarre(i-i%nCarre, j-j%nCarre, val) && verifLigne(i, val) && verifColonne(j, val)); \r\n }",
"public boolean compareTo(\n String tokens_[],\n String labels_[],\n String types_[],\n String constrType_[],\n String dependId_[],\n int connectQty_[],\n int componentId_[]) throws Exception {\n int N = tokens_.length;\n \n ArrayList<String> tokens = new ArrayList<String>();\n ArrayList<String> labels = new ArrayList<String>(); \n ArrayList<FieldType> types = new ArrayList<FieldType>();\n ArrayList<ArrayList<ConstraintType>> constrType \n = new ArrayList<ArrayList<ConstraintType>>();\n ArrayList<ArrayList<Integer>> dependId\n = new ArrayList<ArrayList<Integer>>();\n ArrayList<Integer> connectQty = new ArrayList<Integer>();\n ArrayList<Integer> componentId = new ArrayList<Integer>();\n \n if (labels_.length != N) throw new Exception(\n String.format(\"labels len (%d) != tokens len (%d), args))\", \n N, labels_.length));\n if (types_.length != N) throw new Exception(\n String.format(\"labels len (%d) != types len (%d), args))\", \n N, types_.length));\n if (constrType_.length != N) throw new Exception(\n String.format(\"labels len (%d) != constrType len (%d), args))\", \n N, constrType_.length));\n if (dependId_.length != N) throw new Exception(\n String.format(\"dependId len (%d) != dependId len (%d), args))\", \n N, dependId_.length));\n if (connectQty_.length != N) throw new Exception(\n String.format(\"labels len (%d) != connectQty len (%d), args))\", \n N, connectQty_.length));\n if (componentId_.length != N) throw new Exception(\n String.format(\"labels len (%d) != componentId len (%d), args))\", \n N, componentId_.length)); \n \n for (int i = 0; i < N; ++i) {\n tokens.add(tokens_[i]);\n labels.add(labels_[i]);\n types.add(FieldType.valueOf(types_[i]));\n ArrayList<ConstraintType> ct = new ArrayList<ConstraintType>();\n for (String t:constrType_[i].split(\"[,]\")) \n if (!t.isEmpty()) { \n // \"\".split(\",\") returns [\"\"] \n try {\n ct.add(ConstraintType.valueOf(t));\n } catch (java.lang.IllegalArgumentException e) {\n throw new Exception(\"Failed to parse the constraint value: '\" + t + \"'\");\n }\n }\n constrType.add(ct);\n ArrayList<Integer> it = new ArrayList<Integer>();\n for (String t:dependId_[i].split(\"[,]\")) \n if (!t.isEmpty()) { \n // \"\".split(\",\") returns [\"\"] \n try {\n it.add(Integer.valueOf(t));\n } catch (java.lang.IllegalArgumentException e) {\n throw new Exception(\"Failed to parse the dependent id value: '\" + t + \"'\");\n }\n }\n dependId.add(it);\n connectQty.add(connectQty_[i]);\n }\n \n boolean bTokens = DeepEquals.deepEquals(mTokens, tokens);\n boolean bLabels = DeepEquals.deepEquals(mLabels, labels);\n boolean bTypes = DeepEquals.deepEquals(mTypes, types);\n boolean bConstrType = DeepEquals.deepEquals(mConstrType, constrType);\n boolean bDependId = DeepEquals.deepEquals(mDependId, dependId);\n boolean bConnectQty = DeepEquals.deepEquals(mConnectQty, connectQty);\n boolean bComponentId= DeepEquals.deepEquals(mComponentId, componentId);\n boolean bFinal = bTokens && bLabels && bTypes && \n bConstrType && bDependId && bConnectQty;\n if (!bFinal) {\n System.out.println(String.format(\"Comparison failed: \\n\" +\n \" Tokens : %b \\n\" +\n \" Labels : %b \\n\" + \n \" Types : %b \\n\" + \n \" ConstrType : %b \\n\" + \n \" DependId : %b \\n\" + \n \" ConnectQty : %b \\n\" +\n \" ComponentId : %b \\n\",\n bTokens, bLabels, bTypes, bConstrType, bDependId, \n bConnectQty, bComponentId\n ));\n }\n \n return bFinal;\n }",
"protected void validate(String operationType) throws Exception\r\n\t{\r\n\t\tsuper.validate(operationType);\r\n\r\n\t\tMPSString id_validator = new MPSString();\r\n\t\tid_validator.setConstraintIsReq(MPSConstants.DELETE_CONSTRAINT, true);\r\n\t\tid_validator.setConstraintIsReq(MPSConstants.MODIFY_CONSTRAINT, true);\r\n\t\tid_validator.validate(operationType, id, \"\\\"id\\\"\");\r\n\t\t\r\n\t\tMPSString name_validator = new MPSString();\r\n\t\tname_validator.setConstraintCharSetRegEx(MPSConstants.GENERIC_CONSTRAINT,\"[ a-zA-Z0-9_#.:@=-]+\");\r\n\t\tname_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 128);\r\n\t\tname_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tname_validator.setConstraintIsReq(MPSConstants.ADD_CONSTRAINT, true);\r\n\t\tname_validator.validate(operationType, name, \"\\\"name\\\"\");\r\n\t\t\r\n\t\tMPSString type_validator = new MPSString();\r\n\t\ttype_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 128);\r\n\t\ttype_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\ttype_validator.validate(operationType, type, \"\\\"type\\\"\");\r\n\t\t\r\n\t\tMPSBoolean is_default_validator = new MPSBoolean();\r\n\t\tis_default_validator.validate(operationType, is_default, \"\\\"is_default\\\"\");\r\n\t\t\r\n\t\tMPSString username_validator = new MPSString();\r\n\t\tusername_validator.setConstraintCharSetRegEx(MPSConstants.GENERIC_CONSTRAINT,\"[ a-zA-Z0-9_#.:@=-]+\");\r\n\t\tusername_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 127);\r\n\t\tusername_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tusername_validator.setConstraintIsReq(MPSConstants.ADD_CONSTRAINT, true);\r\n\t\tusername_validator.validate(operationType, username, \"\\\"username\\\"\");\r\n\t\t\r\n\t\tMPSString password_validator = new MPSString();\r\n\t\tpassword_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 127);\r\n\t\tpassword_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tpassword_validator.setConstraintIsReq(MPSConstants.ADD_CONSTRAINT, true);\r\n\t\tpassword_validator.validate(operationType, password, \"\\\"password\\\"\");\r\n\t\t\r\n\t\tMPSString snmpversion_validator = new MPSString();\r\n\t\tsnmpversion_validator.validate(operationType, snmpversion, \"\\\"snmpversion\\\"\");\r\n\t\t\r\n\t\tMPSString snmpcommunity_validator = new MPSString();\r\n\t\tsnmpcommunity_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 31);\r\n\t\tsnmpcommunity_validator.validate(operationType, snmpcommunity, \"\\\"snmpcommunity\\\"\");\r\n\t\t\r\n\t\tMPSString snmpsecurityname_validator = new MPSString();\r\n\t\tsnmpsecurityname_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 31);\r\n\t\tsnmpsecurityname_validator.validate(operationType, snmpsecurityname, \"\\\"snmpsecurityname\\\"\");\r\n\t\t\r\n\t\tMPSString snmpsecuritylevel_validator = new MPSString();\r\n\t\tsnmpsecuritylevel_validator.validate(operationType, snmpsecuritylevel, \"\\\"snmpsecuritylevel\\\"\");\r\n\t\t\r\n\t\tMPSString snmpauthprotocol_validator = new MPSString();\r\n\t\tsnmpauthprotocol_validator.validate(operationType, snmpauthprotocol, \"\\\"snmpauthprotocol\\\"\");\r\n\t\t\r\n\t\tMPSString snmpauthpassword_validator = new MPSString();\r\n\t\tsnmpauthpassword_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 31);\r\n\t\tsnmpauthpassword_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 8);\r\n\t\tsnmpauthpassword_validator.validate(operationType, snmpauthpassword, \"\\\"snmpauthpassword\\\"\");\r\n\t\t\r\n\t\tMPSString snmpprivprotocol_validator = new MPSString();\r\n\t\tsnmpprivprotocol_validator.validate(operationType, snmpprivprotocol, \"\\\"snmpprivprotocol\\\"\");\r\n\t\t\r\n\t\tMPSString snmpprivpassword_validator = new MPSString();\r\n\t\tsnmpprivpassword_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 31);\r\n\t\tsnmpprivpassword_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 8);\r\n\t\tsnmpprivpassword_validator.validate(operationType, snmpprivpassword, \"\\\"snmpprivpassword\\\"\");\r\n\t\t\r\n\t}",
"private static double calcError(Instances data, Instances data2) {\n\t\t// calculate the total l1 norm of the class values of the two data sets \n\t\tdouble error = 0;\n\t\tfor (int i=0; i < data.numInstances(); ++i) {\n\t\t\terror += Math.abs(data.instance(i).classValue() - data2.instance(i).classValue());\t\t\t\n\t\t}\n\t\treturn error;\n\t}",
"private void checkValues(int yMin2, int yMax2, List<XYValue> listOfValues2) {\n\t\tif(yMin2 < 0) {\n\t\t\tthrow new IllegalArgumentException(\"Number can not be negative!\");\n\t\t}\n\t\tif(yMax2 <= yMin2) {\n\t\t\tthrow new IllegalArgumentException(\"Max has to be greater than min!\");\n\t\t}\n\t\tfor(XYValue value : listOfValues2) {\n\t\t\tif(value.getY() < yMin2) {\n\t\t\t\tthrow new IllegalArgumentException(\"Found smaller y than minimum!\");\n\t\t\t}\n\t\t}\n\t}",
"public boolean checkDif2Level(GroupSP g1, GroupSP g2) {\n\t\tfor (Node n1 : g1.lstSP) {\n\t\t\tfor (Node n2 : g2.lstSP) {\n\t\t\t\tif (!StringUtil.isNullOrEmpty(n1.productCode) && !StringUtil.isNullOrEmpty(n2.productCode) && n1.productCode.equals(n2.productCode)) {\n\t\t\t\t\treturn false;\n\t\t\t\t} else if (StringUtil.isNullOrEmpty(n1.productCode) && StringUtil.isNullOrEmpty(n2.productCode)) {//type\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}",
"@Test\n public void testBoundsAsCompositesWithSingleEqAndMultiEqRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC, Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n ByteBuffer value4 = ByteBufferUtil.bytes(4);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3)\n Restriction singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND clustering_1 = 2 AND (clustering_2, clustering_3) = (3, 4)\n singleEq = newSingleEq(cfMetaData, 0, value1);\n Restriction singleEq2 = newSingleEq(cfMetaData, 1, value2);\n multiEq = newMultiEq(cfMetaData, 2, value3, value4);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(singleEq2).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n\n // (clustering_0, clustering_1) = (1, 2) AND clustering_2 = 3\n singleEq = newSingleEq(cfMetaData, 2, value3);\n multiEq = newMultiEq(cfMetaData, 0, value1, value2);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, EOC.END);\n\n // clustering_0 = 1 AND (clustering_1, clustering_2) = (2, 3) AND clustering_3 = 4\n singleEq = newSingleEq(cfMetaData, 0, value1);\n singleEq2 = newSingleEq(cfMetaData, 3, value4);\n multiEq = newMultiEq(cfMetaData, 1, value2, value3);\n restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(singleEq).mergeWith(multiEq).mergeWith(singleEq2);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(1, bounds.size());\n assertComposite(bounds.get(0), value1, value2, value3, value4, EOC.END);\n }",
"private boolean propriedadesIguais( Integer pro1, Integer pro2 ){\r\n\t if ( pro2 != null ){\r\n\t\t if ( !pro2.equals( pro1 ) ){\r\n\t\t\t return false;\r\n\t\t }\r\n\t } else if ( pro1 != null ){\r\n\t\t return false;\r\n\t }\r\n\t \r\n\t // Se chegou ate aqui quer dizer que as propriedades sao iguais\r\n\t return true;\r\n\t}",
"@Override\n public int test(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2) {\n // For A to contain B (where each loop interior is defined to be its left\n // side), the CCW edge order around ab1 must be a2 b2 b0 a0. We split\n // this test into two parts that test three vertices each.\n return orderedCCW(a2, b2, b0, ab1) && orderedCCW(b0, a0, a2, ab1) ? 1 : 0;\n }",
"@Override\n public int compare(Slope s1, Slope s2){\n if(s2.deno * s1.nomi - s1.deno * s2.nomi < 0) return -1;\n else if(s2.deno * s1.nomi - s1.deno * s2.nomi > 0) return 1;\n else return 0;\n }",
"private boolean checkRowCol(int c1, int c2, int c3) \r\n {\r\n return ((c1 != -1) && (c1 == c2) && (c2 == c3)); //eida ekhon porjonto kaaj e lage nai\r\n }",
"public boolean verificarLongitudCamposIPRMI(TextField campoIPRMI1, TextField campoIPRMI2, TextField campoIPRMI3, TextField campoIPRMI4) {\n boolean camposCorrectos = true;\n if (campoIPRMI1.getText().length() > 3 || campoIPRMI2.getText().length() > 3 || campoIPRMI3.getText().length() > 3 || campoIPRMI4.getText().length() > 3) {\n camposCorrectos = false;\n }\n return camposCorrectos;\n }",
"protected void validate(String operationType) throws Exception\r\n\t{\r\n\t\tsuper.validate(operationType);\r\n\r\n\t\tMPSString id_validator = new MPSString();\r\n\t\tid_validator.setConstraintIsReq(MPSConstants.DELETE_CONSTRAINT, true);\r\n\t\tid_validator.setConstraintIsReq(MPSConstants.MODIFY_CONSTRAINT, true);\r\n\t\tid_validator.validate(operationType, id, \"\\\"id\\\"\");\r\n\t\t\r\n\t\tMPSInt adapter_id_validator = new MPSInt();\r\n\t\tadapter_id_validator.validate(operationType, adapter_id, \"\\\"adapter_id\\\"\");\r\n\t\t\r\n\t\tMPSInt pdcount_validator = new MPSInt();\r\n\t\tpdcount_validator.validate(operationType, pdcount, \"\\\"pdcount\\\"\");\r\n\t\t\r\n\t\tMPSInt ldcount_validator = new MPSInt();\r\n\t\tldcount_validator.validate(operationType, ldcount, \"\\\"ldcount\\\"\");\r\n\t\t\r\n\t}",
"@Override\n AbstractConstraints<X> reconcile(X context, Meta<X> other, Conjunction<X> cs) {\n return cs;\n }",
"@Override\n public void validate(ValidationContext vc) {\n Map<String,Property> beanProps = vc.getProperties(vc.getProperty().getBase());\n \n validateKode(vc, (String)beanProps.get(\"idKurikulum\").getValue(), (Boolean)vc.getValidatorArg(\"tambahBaru\")); \n validateDeskripsi(vc, (String)beanProps.get(\"deskripsi\").getValue()); \n }",
"@Override\n\tpublic boolean validateTrustworthiness(MFeatureVersion fv_official,\tMFeatureVersion fv2, String graph) {\n\t\tMTrustworthinessTandr trustworthiness = (MTrustworthinessTandr) fv2.getTrustworthiness();\n\t\t\n\t\tdouble dirEffectWeight = 1;\n\t\tdouble indEffectWeight = 0;\n\t\tdouble tempEffectWeight = 0;\n\t\t\n//\t\tdouble dirEffectWeight = 0.3333333;\n//\t\tdouble indEffectWeight = 0.3333333;\n//\t\tdouble tempEffectWeight = 0.3333333;\n\t\tdouble trustValue = 0.0;\n\t\t\t\n\t\ttrustValue = trustValue + (dirEffectWeight * trustworthiness.getDirectEffect().validateTrustworthiness(fv_official, fv2)) ;\n//\t\ttrustValue = trustValue + (indEffectWeight * trustworthiness.getIndirectEffect().validateTrustworthiness(fv1, fv2));\n//\t\ttrustValue = trustValue + (tempEffectWeight * trustworthiness.getTemporalEffect().validateTrustworthiness(fv1, fv2));\n\t\t\n\t\ttrustworthiness.setValue(trustValue);\n\t\ttrustworthiness.setComputedAt(fv2.getIsValidFrom());\n\t\t\n\t\tfoundation.create(trustworthiness, graph);\n\t\t\n\t\treturn true;\n\t}",
"public int check_both()\r\n {\r\n if(((check_passwrd.compareTo(conf_password))==0) && (Email_id.compareTo(Email))==0 && check_email()==0)\r\n {\r\n return 0;\r\n }\r\n else\r\n {\r\n return 1;\r\n }\r\n }",
"static int lcs(int x, int y, String s1, String s2)\n {\n // your code here\n \n int len1 = x;\n \n int len2 = y;\n \n int dp[][] = new int[len1+1][len2+1];\n \n for(int i=0;i<=len1;i++){\n dp[i][0] = 0;\n }\n \n for(int i=0;i<=len2;i++){\n dp[0][i] = 0;\n }\n \n for(int i=1;i<=len1;i++){\n for(int j=1;j<=len2;j++){\n \n if(s1.charAt(i-1)==s2.charAt(j-1)){\n dp[i][j]=1+dp[i-1][j-1];\n }\n else {\n dp[i][j] = Math.max(dp[i-1][j],dp[i][j-1]);\n }\n \n }\n }\n \n return dp[len1][len2];\n }",
"@Override\n public int test(S2Point a0, S2Point ab1, S2Point a2, S2Point b0, S2Point b2) {\n // For A not to intersect B (where each loop interior is defined to be\n // its left side), the CCW edge order around ab1 must be a0 b2 b0 a2.\n // Note that it's important to write these conditions as negatives\n // (!OrderedCCW(a,b,c,o) rather than Ordered(c,b,a,o)) to get correct\n // results when two vertices are the same.\n return (orderedCCW(a0, b2, b0, ab1) && orderedCCW(b0, a2, a0, ab1) ? 0 : -1);\n }",
"public static double getResemblance(Vector<Long> v1, Vector<Long> v2) {\n int minSize = Math.min(v1.size(), v2.size());\n int count = 0;\n for (int i=0; i < minSize; i++) {\n if (v1.get(i) != -1 && (v1.get(i).equals(v2.get(i)))) {\n count++;\n } //else {\n //System.out.println(\"in position \"+i+\": \"+v1.get(i)+\" is different from \"+v2.get(i));\n //}\n }\n return count/(double) minSize;\n }",
"void calculateValidationRequirement() {\n this.elementRequiringJSR303Validation = Util.hasValidation(this.type);\n\n // Check for JSR 303 or @OnValidate annotations in default group\n if (Util.requiresDefaultValidation(this.type)) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any simple index uniqueness constraints\n if (!this.uniqueConstraintFields.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n\n // Check for any composite index uniqueness constraints\n if (!this.uniqueConstraintCompositeIndexes.isEmpty()) {\n this.requiresDefaultValidation = true;\n return;\n }\n }",
"boolean isOptionsConsistentIncludingAllRequired(Integer optionId1,\n Integer optionId2);",
"private static boolean RevalidationDecl_2(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"RevalidationDecl_2\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, K_STRICT);\n if (!r) r = consumeToken(b, K_LAX);\n if (!r) r = consumeToken(b, K_SKIP);\n exit_section_(b, m, null, r);\n return r;\n }",
"public static void main(String[] args) {\n JFrame j = new JFrame();\r\n j.setSize(500, 500);\r\n FlowLayout flow = new FlowLayout();\r\n JLabel l1 = new JLabel();\r\n l1.setFont(new Font(\"굴림\", Font.PLAIN, 42));\r\n JLabel l2 = new JLabel();\r\n l2.setFont(new Font(\"굴림\", Font.PLAIN, 42));\r\n //JLabel result = new JLabel();\r\n JTextField t1 = new JTextField(10);\r\n l1.setText(\"숫자1\");\r\n t1.setFont(new Font(\"Dialog\", Font.PLAIN, 51));\r\n JTextField t2 = new JTextField(10);\r\n l2.setText(\"숫자2\");\r\n t2.setFont(new Font(\"Dialog\", Font.PLAIN, 51));\r\n JButton compare = new JButton();\r\n compare.addActionListener(new ActionListener() {\r\n \tpublic void actionPerformed(ActionEvent e) {\r\n \t String s1 = t1.getText();\r\n \t String s2 = t2.getText();\r\n \t int c1 = Integer.parseInt(s1);\r\n \t int c2 = Integer.parseInt(s2);\r\n \t if(c1 > c2) {\r\n \t \tJOptionPane.showMessageDialog(j, \"숫자1이 더 큽니다.\");\r\n \t }\r\n \t else {\r\n \t \tJOptionPane.showMessageDialog(j, \"숫자2가 더 큽니다.\");\r\n \t }\r\n \t}\r\n });\r\n compare.setText(\"비교\");\r\n compare.setFont(new Font(\"굴림\", Font.PLAIN, 41));\r\n \r\n \r\n \r\n \r\n \r\n \r\n j.getContentPane().setLayout(flow);\r\n j.getContentPane().add(l1);\r\n j.getContentPane().add(t1);\r\n \r\n \r\n j.getContentPane().add(l2);\r\n j.getContentPane().add(t2);\r\n \r\n //j.getContentPane().add(result);\r\n j.getContentPane().add(compare);\r\n \r\n j.setVisible(true);\r\n\t}",
"private void checkAbstractContest(AbstractContest contest1, AbstractContest contest2) {\n\t\t\n\t\tassertEquals(\"wrong id\", contest1.getId(), contest2.getId());\n\t\tassertEquals(\"wrong title\", contest1.getTitle(), contest2.getTitle());\n\t\tassertEquals(\"wrong desc\", contest1.getDescription(), contest2.getDescription());\n\t\tassertEquals(\"wrong forum id\", contest1.getForumId(), contest2.getForumId());\n\t\tcheckLanguages(contest1.getLanguages(), contest2.getLanguages());\n\t\tcheckLimit(contest1.getLimit(), contest2.getLimit());\t\t\t\t\t\t\t\t\n\t}",
"@Test\n public void testEditDistDifferentStrings() throws Exception{\n assertEquals(1,Esercizio2.edit_distance_dyn(s1, s2));\n }",
"protected void validate(String operationType) throws Exception\r\n\t{\r\n\t\tsuper.validate(operationType);\r\n\r\n\t\tMPSString id_validator = new MPSString();\r\n\t\tid_validator.validate(operationType, id, \"\\\"id\\\"\");\r\n\t\t\r\n\t\tMPSBoolean secure_access_only_validator = new MPSBoolean();\r\n\t\tsecure_access_only_validator.validate(operationType, secure_access_only, \"\\\"secure_access_only\\\"\");\r\n\t\t\r\n\t\tMPSString svm_ns_comm_validator = new MPSString();\r\n\t\tsvm_ns_comm_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tsvm_ns_comm_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tsvm_ns_comm_validator.validate(operationType, svm_ns_comm, \"\\\"svm_ns_comm\\\"\");\r\n\t\t\r\n\t\tMPSString ns_br_interface_validator = new MPSString();\r\n\t\tns_br_interface_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tns_br_interface_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tns_br_interface_validator.validate(operationType, ns_br_interface, \"\\\"ns_br_interface\\\"\");\r\n\t\t\r\n\t\tMPSBoolean vm_auto_poweron_validator = new MPSBoolean();\r\n\t\tvm_auto_poweron_validator.validate(operationType, vm_auto_poweron, \"\\\"vm_auto_poweron\\\"\");\r\n\t\t\r\n\t\tMPSString ns_br_interface_2_validator = new MPSString();\r\n\t\tns_br_interface_2_validator.setConstraintMaxStrLen(MPSConstants.GENERIC_CONSTRAINT, 10);\r\n\t\tns_br_interface_2_validator.setConstraintMinStrLen(MPSConstants.GENERIC_CONSTRAINT, 1);\r\n\t\tns_br_interface_2_validator.validate(operationType, ns_br_interface_2, \"\\\"ns_br_interface_2\\\"\");\r\n\t\t\r\n\t\tMPSInt init_status_validator = new MPSInt();\r\n\t\tinit_status_validator.validate(operationType, init_status, \"\\\"init_status\\\"\");\r\n\t\t\r\n\t}",
"public static int validateNullDateValues(Date date1, Date date2) {\n\t\tint returnValue = 0;\n\t\tif ((date1 == null) & (date2 == null)){\n\t\t\treturnValue = 0;\n\t\t}else if ((date1 == null) & (date2 != null)) {\n\t\t\treturnValue = -1;\n\t\t}else if ((date1 != null) & (date2 == null)) {\n\t\t\treturnValue = 1;\n\t\t}\n\t\treturn returnValue;\n\t}",
"public void validar_campos(){\r\n\t\tfor(int i=0;i<fieldNames.length-1;++i) {\r\n\t\t\tif (jtxt[i].getText().length() > 0){\r\n\t\t\t}else{\r\n\t\t\t\tpermetir_alta = 1;\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tif((CmbPar.getSelectedItem() != null) && (Cmbwp.getSelectedItem() != null) && (CmbComp.getSelectedItem() != null) && (jdc1.getDate() != null) && (textdescripcion.getText().length() > 1) && (textjustificacion.getText().length() > 1)){\t\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\tpermetir_alta = 1;\r\n\t\t}\r\n\t\t\r\n\t}",
"private static void testStuff(int i1, int i2) {\n\t\tif (i1 != i2)\n\t\t\terrors += 1;\n\t}",
"private int checkStatus(Concept concept_1, Concept concept_2) throws\n Exception {\n int reviewed = 0;\n\n if (JekyllKit.getCoreDataClient().getRelationshipCount(concept_1) > 1000) {\n MEMEToolkit.notifyUser(\"There are more than 1000 relationships\"\n + \"\\nfor the cluster of concepts:\"\n + concept_1.getIdentifier().toString()\n + \" and \"\n +\n ( (concept_2 == null) ? \"0\" :\n concept_2.getIdentifier().toString())\n + \"\\nThe check whether cluster has been reviewed\"\n + \"\\nbefore will not be performed.\");\n return reviewed;\n }\n\n JekyllKit.getCoreDataClient().populateRelationships(concept_1);\n Relationship[] rels = concept_1.getRestrictedRelationships(new\n BySourceRestrictor(RelSemantics.getCurrentSAB_SL()));\n\n for (int i = 0; i < rels.length; i++) {\n if (rels[i].getRelatedConcept().equals(concept_2)) {\n if (rels[i].getTimestamp().after(worklist_creation_date)) {\n reviewed = 1;\n }\n }\n }\n\n return reviewed;\n }",
"private boolean isCollinear(Point p1, Point p2, Point p3, Point p4) {\n return (Double.compare(p1.slopeTo(p2), p1.slopeTo(p3)) == 0 && Double.compare(p1.slopeTo(p2), p1.slopeTo(p4)) == 0);\n }",
"private int check(Button A1, Button A2, Button A3, Button B1, Button B2, Button B3,Button C1,Button C2,Button C3)\r\n {\n if(A1.getText().equals(A2.getText())&& A2.getText().equals(A3.getText()) && A3.getText().equals(\"X\")||\r\n B1.getText().equals(B2.getText())&& B2.getText().equals(B3.getText()) && B3.getText().equals(\"X\")||\r\n C1.getText().equals(C2.getText())&& C2.getText().equals(C3.getText()) && C3.getText().equals(\"X\")||\r\n A1.getText().equals(B1.getText())&& B1.getText().equals(C1.getText()) && C1.getText().equals(\"X\")||\r\n A2.getText().equals(B2.getText())&& B2.getText().equals(C2.getText()) && C2.getText().equals(\"X\")||\r\n A3.getText().equals(B3.getText())&& B3.getText().equals(C3.getText()) && C3.getText().equals(\"X\")||\r\n A1.getText().equals(B2.getText())&& B2.getText().equals(C3.getText()) && C3.getText().equals(\"X\")||\r\n A3.getText().equals(B2.getText())&& B2.getText().equals(C1.getText()) && C1.getText().equals(\"X\")\r\n ) //end of if condition\r\n {\r\n return 2;\r\n }\r\n else if(A1.getText().equals(A2.getText())&& A2.getText().equals(A3.getText()) && A3.getText().equals(\"O\")||\r\n B1.getText().equals(B2.getText())&& B2.getText().equals(B3.getText()) && B3.getText().equals(\"O\")||\r\n C1.getText().equals(C2.getText())&& C2.getText().equals(C3.getText()) && C3.getText().equals(\"O\")||\r\n A1.getText().equals(B1.getText())&& B1.getText().equals(C1.getText()) && C1.getText().equals(\"O\")||\r\n A2.getText().equals(B2.getText())&& B2.getText().equals(C2.getText()) && C2.getText().equals(\"O\")||\r\n A3.getText().equals(B3.getText())&& B3.getText().equals(C3.getText()) && C3.getText().equals(\"O\")||\r\n A1.getText().equals(B2.getText())&& B2.getText().equals(C3.getText()) && C3.getText().equals(\"O\")||\r\n A3.getText().equals(B2.getText())&& B2.getText().equals(C1.getText()) && C1.getText().equals(\"O\")\r\n ) //end of if condition\r\n {\r\n return 1;\r\n }\r\n else if(turn > 9 && playerfirst == 1)\r\n {\r\n return 0;\r\n }\r\n else if(turn > 10 && playerfirst == 2)\r\n {\r\n return 0;\r\n }\r\n else{\r\n return 4;\r\n }\r\n }",
"@Override\n\tpublic double calc(double d1, double d2) {\n\t\treturn 0;\n\t}",
"public void doCheckingMatl() {\n \tcheckIntPosMatl = true;\n \tcheckFloatPosMatl = true;\n \tif(!reactionsText.getText().equals(\"\")) {\n \t\tcheckIntPosMatl = checkIntPosMatl && checkPosIntValues(reactionsText);\n \t}\n \tif(!specificText.getText().equals(\"\")) {\n \t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(specificText);\n \t}\n\t\tif(!reactionText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(reactionText);\t\t\n \t}\n\t\tif(!referenceText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(referenceText);\n\t\t}\n\t\tif(!densityText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(densityText);\n\t\t}\n\t\tif(!conductivityText.getText().equals(\"\")) {\n\t\t\tcheckFloatPosMatl = checkFloatPosMatl && checkPosFloatValues(conductivityText);\n\t\t}\n }",
"private double intersect(double start0, double end0, double start1, double end1)\n {\n double length = Double.min(end0, end1) - Double.max(start0, start1);\n return Double.min(Double.max(0, length), 1.0);\n }",
"public void changePasswordCard() {\n SpringLayout changeLayout = new SpringLayout();\n\n JLabel changeLabel = new JLabel(\"Change User Password\");\n JPanel changePass = new JPanel();\n changePass.setLayout(changeLayout);\n changePass.setBackground(Color.white);\n\n\n JLabel userIDLabel = new JLabel(\"User ID\");\n userID = new JTextField(25);\n JLabel passwordLabel = new JLabel(\"New Password\");\n passwordChange = new JTextField(25);\n\n changePass.add(changeLabel);\n changePass.add(userID);\n changePass.add(passwordChange);\n\n changePassBtn = new JButton(\"SUBMIT\");\n changePassBtn.addActionListener(this);\n\n buttonStyle(changePassBtn);\n\n changePass.add(changeLabel);\n changePass.add(userIDLabel);\n changePass.add(userID);\n changePass.add(passwordLabel);\n changePass.add(passwordChange);\n changePass.add(changePassBtn);\n\n changeLayout.putConstraint(SpringLayout.NORTH, changeLabel, 50, SpringLayout.NORTH, changePass);\n changeLayout.putConstraint(SpringLayout.WEST, changeLabel, 50, SpringLayout.WEST, changePass);\n\n changeLayout.putConstraint(SpringLayout.NORTH, userIDLabel, 100, SpringLayout.NORTH, changePass);\n changeLayout.putConstraint(SpringLayout.WEST, userIDLabel, 50, SpringLayout.WEST, changePass);\n changeLayout.putConstraint(SpringLayout.NORTH, userID, 90, SpringLayout.NORTH, changePass);\n changeLayout.putConstraint(SpringLayout.WEST, userID, 90, SpringLayout.EAST, userIDLabel);\n\n changeLayout.putConstraint(SpringLayout.NORTH, passwordLabel, 50, SpringLayout.NORTH, userIDLabel);\n changeLayout.putConstraint(SpringLayout.WEST, passwordLabel, 50, SpringLayout.WEST, changePass);\n changeLayout.putConstraint(SpringLayout.NORTH, passwordChange, 50, SpringLayout.NORTH, userID);\n changeLayout.putConstraint(SpringLayout.WEST, passwordChange, 50, SpringLayout.EAST, passwordLabel);\n\n changeLayout.putConstraint(SpringLayout.NORTH, changePassBtn, 60, SpringLayout.NORTH, passwordLabel);\n changeLayout.putConstraint(SpringLayout.WEST, changePassBtn, 80, SpringLayout.EAST, passwordLabel);\n\n functions.add(changePass, \"Change\");\n }",
"boolean test() {\n int comp = this._col1.value().compareTo(this._col2.value());\n if (comp < 0 && (this.compRep & LT) != 0\n || comp > 0 && (this.compRep & GT) != 0\n || comp == 0 && (this.compRep & EQ) != 0) {\n return true;\n }\n return false;\n }",
"private void computeSat(){\n addVertexVisitConstraint();\n //add clause for each vertex must be visited only once/ all vertices must be on path\n addVertexPositionConstraint();\n //add clause for every edge in graph to satisfy constraint of vertices not belonging to edge not part of successive positions\n addVertexNonEdgeConstraint();\n }",
"private int caculate(Operation opt, int t1, int t2) {\n\t\tint res;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = t1 + t2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = t1 - t2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = t1 * t2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = t1 / t2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\tres = 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\t\t/*\n\t\t * lex.intHolder.add(res); return lex.intHolder.lastIndexOf(res);\n\t\t */\n\t}",
"public int calculateDistance(GraphNodeAL<MapPoint> l1, GraphNodeAL<MapPoint> l2){\n double x1 = l1.data.getxCo();\n double y1 = l1.data.getyCo();\n double x2 = l2.data.getxCo();\n double y2 = l2.data.getyCo();\n double dist = Math.sqrt(Math.pow(x2 - x1, 2) + Math.pow(y2 - y1, 2));\n return (int) dist;\n }",
"@Override\n public int compare( ReservaViaje r1, ReservaViaje r2 )\n {\n int diff = ( int ) (r1.darCostoTotal( )-r2.darCostoTotal( ));\n return diff==0?0:(diff>0?1:-1);\n }",
"@Override\n\tpublic Constraint converConstrain(String classname, String parvarn1, String parvarn2) throws ClassNotFoundException,\n\t\t\tSecurityException, NoSuchMethodException, IllegalArgumentException,\n\t\t\tInstantiationException, IllegalAccessException,\n\t\t\tInvocationTargetException {\n\n\t\tIntVar varConverX = new IntVar(); IntVar varConverY = new IntVar(); varConverX.id = parvarn1;varConverY.id = parvarn2; \n\t\tClass<?> clasCon = Class.forName(classname);\n\t\tConstructor<?> constru2 = clasCon.getDeclaredConstructor(new Class<?>[] {JaCoP.core.IntVar.class,JaCoP.core.IntVar.class});\n\t\tConstraint c = (Constraint) constru2.newInstance(varConverX,varConverY);\n\t\treturn c;\n\t}",
"Condition(Column col1, String relation, Column col2) {\n this._col1 = col1;\n this._col2 = col2;\n this.compRep = 0;\n\n switch (relation) {\n case \"<=\":\n this.compRep |= EQ;\n this.compRep |= LT;\n break;\n case \"<\":\n this.compRep |= LT;\n break;\n case \">=\":\n this.compRep |= EQ;\n this.compRep |= GT;\n break;\n case \">\":\n this.compRep |= GT;\n break;\n case \"=\":\n this.compRep |= EQ;\n break;\n case \"!=\":\n this.compRep = (GT | LT) & ~EQ;\n break;\n default:\n throw new DBException(\"Error: invalid relation.\");\n }\n\n }",
"@Override\n protected void doAlgorithmA1() {\n int xP = 0;\n int yP = 0;\n\n\n //Taking the variable out of the list that are in the bounds\n //Testing that the bound has variables\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getX() != null) {\n xP = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getX().getPosition();\n }\n int xU = 0;\n int xL = 0;\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getY() != null) {\n yP = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getY().getPosition();\n }\n int yU = 0;\n int yL = 0;\n int cright = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getCright();\n int cleft = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getCleft();\n\n\n\n for (Variable variable : csp.getVars()) {\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getX() != null) {\n if (variable.getPosition() == xP) {\n xU = variable.getUpperDomainBound();\n xL = variable.getLowerDomainBound();\n }\n }\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex).getY() != null) {\n if (variable.getPosition() == yP) {\n yU = variable.getUpperDomainBound();\n yL = variable.getLowerDomainBound();\n }\n }\n }\n\n boolean first = false;\n boolean second = false;\n\n //Testing if the bound is true, false or inconclusive\n\n if (xL + cleft >= yU + cright) {\n first = true;\n }\n if (xU + cleft < yL + cright) {\n second = true;\n }\n\n //are first and second not equal is the bound not inconclusive\n if (first != second) {\n if (first) { //a true Simple Bound was found\n //checks if it was the last constraint in a csp\n //If so the csp is true\n //else check the next constraint and do this method again\n if (csp.getSimpleConstraints().size() - 1 == cIndex) {\n System.out.println(\"P is satisfiable\");\n System.out.println(System.nanoTime()-startTime);\n return;\n } else {\n bIndex = 0;\n cIndex++;\n unit=false;\n doAlgorithmA1();\n }\n } else if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().size() - 1 == bIndex) { //a false Simple Bound was found\n //\n bIndex = 0;\n cIndex = 0;\n if (isInconclusive) {\n if(unit){\n doDeduction();\n }else {\n doAlgorithmA3();\n }\n } else {\n doAlgorithmA2();\n }\n } else {\n bIndex++;\n doAlgorithmA1();\n }\n } else {//an inconclusive Simple Bound was found\n //checks if the bound wasn't already inconclusive\n if(!isInconclusive){\n unit=true;\n unitSB = csp.getSimpleConstraints().get(cIndex).getSimpleBounds().get(bIndex);\n }else {\n unit=false;\n }\n isInconclusive = true;\n\n if (csp.getSimpleConstraints().get(cIndex).getSimpleBounds().size() - 1 == bIndex) {\n cIndex = 0;\n bIndex = 0;\n if(unit){\n doDeduction();\n }else {\n doAlgorithmA3();\n }\n } else {\n bIndex++;\n doAlgorithmA1();\n }\n }\n }",
"private void updateValidationMessages()\r\n {\r\n String errorMessage = myModel.getErrorMessage();\r\n String warningMessage = myModel.getWarningMessage();\r\n\r\n if (StringUtils.isNotEmpty(errorMessage))\r\n {\r\n myValidator.setValidationResult(ValidationStatus.ERROR, errorMessage);\r\n }\r\n else if (StringUtils.isNotEmpty(warningMessage))\r\n {\r\n myValidator.setValidationResult(ValidationStatus.WARNING, warningMessage);\r\n }\r\n else\r\n {\r\n myValidator.setValidationResult(ValidationStatus.VALID, null);\r\n }\r\n }",
"private boolean isThereEquivalenceBetweenNorms(Norm norm1, Norm norm2) {\n\t\tboolean conflictContext = contextChecker(norm1, norm2);\n\t\tif (!conflictContext) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// returns true if the if the entities are the same OR one is ALL\n\t\tboolean conflictEntity = entityChecker(norm1, norm2);\n\t\tif (!conflictEntity) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// returns true if there is not conflict between activation and deactivation constraint\n\t\tboolean conflictConstraint = constraintChecker(norm1, norm2);\n\t\tif (!conflictConstraint) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// returns true if the action are the same\n\t\tboolean conflictAction = actionChecker(norm1, norm2);\n\t\tif (!conflictAction) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// at this moment all conditions are valid and the norms are in conflict\n\t\treturn true;\n\t}",
"public static void validateInitialConstraints(Constraints constraints) \n throws InvalidInputDataException, ArrayIndexOutOfBoundsException { \n \t\n \tint[][] constraintsArray = Utilities.convertSolutionToArray(constraints);\n \t//check that no non-zero number appears twice in a row\n \tfor (int x=0; x<constraints.getDimSq(); x++) {\n \t\tList<Integer> cellList = new ArrayList<Integer>();\n \t\tfor(int y=0; y<constraints.getDimSq(); y++) {\n \tif (constraintsArray[x][y] != 0){\n \t\tif ((constraintsArray[x][y] < 0) || (constraintsArray[x][y] > constraints.getDimSq())) {\n \t\t\tthrow new InvalidInputDataException(\"Out-of-range value \" + constraintsArray[x][y] + \" found at cell x = \" + x + \" y = \" + y);\n \t\t}\n \t\tInteger currentValue = new Integer(constraintsArray[x][y]);\n \t\tif (cellList.contains(currentValue)){\n \t\t\tthrow new InvalidInputDataException(\"Value \" + currentValue.intValue() + \" found twice in row \" + x);\n \t\t}\n \t\tcellList.add(currentValue);\n \t}\n }\n }\n //check that non-zero number appears twice in a column\n for (int y=0; y<constraints.getDimSq(); y++) {\n List<Integer> cellList = new ArrayList<Integer>();\n for(int x=0; x<constraints.getDimSq(); x++) {\n \tif (constraintsArray[x][y] != 0){\n \t\tInteger currentValue = new Integer(constraintsArray[x][y]);\n \t\tif (cellList.contains(currentValue)) {\n \t\t\tthrow new InvalidInputDataException(\"Value \" + currentValue.intValue() + \" found twice in column \" + y);\n \t\t}\n \t\tcellList.add(currentValue);\n \t}\n }\n }\n //check that no non-zero number appears twice in the same box\n for (int bx=0;bx<constraints.getDim();bx++){\n for (int by=0;by<constraints.getDim();by++) {\n \tList<Integer> cellList = new ArrayList<Integer>();\n \tfor (int x=0; x<constraints.getDimSq(); x++) {\n \t for(int y=0; y<constraints.getDimSq(); y++) {\n \t \tif ((x / constraints.getDim() == bx) && (y / constraints.getDim() == by)){\n \t \tif (constraintsArray[x][y] != 0){\n \t \t\tInteger currentValue = new Integer(constraintsArray[x][y]);\n \t \t\tif (cellList.contains(currentValue)) {\n \t \t\t\tthrow new InvalidInputDataException(\"Value \" + currentValue.intValue() + \" found twice in box \" + bx + \" \" + by);\n \t \t\t}\n \t \t\tcellList.add(currentValue);\n \t \t}\n \t \t}\n \t }\n \t}\n }\n }\n }",
"EnsureExprsRule createEnsureExprsRule();",
"private boolean purelySequentialDependent(\r\n\t\t\tfinal Rule r1, \r\n\t\t\tint indx_r1,\r\n\t\t\tfinal Rule r2,\r\n\t\t\tint indx_r2,\r\n\t\t\tGraph g) {\n\t\t\r\n\t\tfinal Match embedding = BaseFactory.theFactory().createMatch(r2, r1.getRight());\t\t\r\n\t\tembedding.setCompletionStrategy(this.strategy, true);\r\n\t\tboolean result = false;\r\n\t\twhile (embedding.nextCompletionWithConstantsChecking() && !result) {\r\n\t\t\tEnumeration<GraphObject> codom = embedding.getCodomain();\t\t\t\t\t\t\r\n\t\t\t// exist l21 : L2 -> R1\r\n\t\t\twhile (codom.hasMoreElements()) {\r\n\t\t\t\tGraphObject obj = codom.nextElement();\r\n\t\t\t\t// rule r1 produce at least one object which is used in LHS of r2\r\n\t\t\t\tif (!r1.getInverseImage(obj).hasMoreElements()) {\r\n\t\t\t\t\tresult = true;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (this.ruleSequence.isObjFlowActive()) {\r\n\t\t\t\t\t\tfinal ObjectFlow objFlow = this.ruleSequence.getObjFlowForRules(r1, indx_r1, r2, indx_r2);\r\n\t\t\t\t\t\tif (objFlow != null && !objFlow.isEmpty()) \r\n\t\t\t\t\t\t\tresult = pureEnablingAlongObjectFlow(embedding, objFlow);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// add match to matchSequence\r\n\t\t\t\t\tif (result)\r\n\t\t\t\t\t\tthis.ruleSequence.getMatchSequence().addTotalPureEnablingSourceMatch(r2, r1, embedding, indx_r2, indx_r1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tbreak; \r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif (result) {\r\n\t\t\t\tboolean attrCondUsesIP = attrConditionUsesInputParameterRight(r2, r1, embedding);\r\n\t\t\t\t\t\r\n\t\t\t\tif (attrCondUsesIP) {\r\n\t\t\t\t\tsetRuleResult(indx_r2, r2.getName(), false, ApplicabilityConstants.PURE_ENABLING_PREDECESSOR, r1.getName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsetRuleResult(indx_r2, r2.getName(), true, ApplicabilityConstants.PURE_ENABLING_PREDECESSOR, r1.getName());\t\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// TODO: apply r1, then r2 along the comatch of r2 to check NACs of r2\r\n//\t\t\tresult = isPurelyEnabledRuleApplicable(r1, r2, embedding, g);\r\n//\t\t\tif (result) {\r\n//\t\t\t\t// to test : add match to matchSequence\r\n//\t\t\t\tthis.ruleSequence.getMatchSequence().addTotalPureEnablingSourceOfMatch(r2, r1, embedding, indx_r2, indx_r1);\r\n//\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tembedding.dispose();\r\n\t\tBaseFactory.theFactory().unsetAllTransientAttrValuesOfRule(r1);\r\n//\t\tr1.getRight().setNotificationRequired(true);\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"@Test\n\tpublic void testaConstrutor() {\n\t\tAssert.assertEquals(\"Erro no Contrutor.\", \"Disciplina 1\",\n\t\t\t\tminitElimBai_1.getNome());\n\t\tAssert.assertEquals(\"Erro no Contrutor.\", 5,\n\t\t\t\tminitElimBai_1.getQtdProvas());\n\t\tAssert.assertEquals(\"Erro no Contrutor.\", 0, minitElimBai_1\n\t\t\t\t.getPosRequisitos().size());\n\t\tAssert.assertEquals(\"Erro no Contrutor.\", 1,\n\t\t\t\tminitElimBai_1.getQtdMinitestesAEliminar());\n\n\t\tAssert.assertEquals(\"Erro no Contrutor.\", \"Disciplina 2\",\n\t\t\t\tminitElimBai_2.getNome());\n\t\tAssert.assertEquals(\"Erro no Contrutor.\", 10,\n\t\t\t\tminitElimBai_2.getQtdProvas());\n\t\tAssert.assertEquals(\"Erro no Contrutor.\", 3, minitElimBai_2\n\t\t\t\t.getPosRequisitos().size());\n\t\tAssert.assertEquals(\"Erro no Contrutor.\", 2,\n\t\t\t\tminitElimBai_2.getQtdMinitestesAEliminar());\n\n\t\tAssert.assertTrue(minitElimBai_2.getPosRequisitos().contains(\n\t\t\t\t\"Disciplina 3\"));\n\t\tAssert.assertTrue(minitElimBai_2.getPosRequisitos().contains(\n\t\t\t\t\"Disciplina 4\"));\n\t\tAssert.assertTrue(minitElimBai_2.getPosRequisitos().contains(\n\t\t\t\t\"Disciplina 5\"));\n\t}",
"@Override\n public int compare(Tuple2<String, Long> o1, Tuple2<String, Long> o2) {\n return -(o1.f1.compareTo(o2.f1));\n }",
"public void validate() throws org.apache.thrift.TException {\n if (sourceCharged != null) {\n sourceCharged.validate();\n }\n if (targetDeposit != null) {\n targetDeposit.validate();\n }\n }",
"public TypeList typeValide(TypeList t1, TypeList t2) {\n if(t1 != t2 || t1 == TypeList.ERREUR)\n return TypeList.ERREUR;\n switch(operateur) {\n case SUP:\n case INF:\n case SUPEG:\n case INFEG:\n if(t1 == TypeList.ENTIER)\n return TypeList.BOOLEEN;\n else\n return TypeList.ERREUR;\n case PLUS:\n case MOINS:\n case FOIS:\n case DIV:\n case NEG:\n if(t1 == TypeList.ENTIER)\n return TypeList.ENTIER;\n else\n return TypeList.ERREUR;\n case OU:\n case ET:\n case NON:\n if(t1 == TypeList.BOOLEEN)\n return TypeList.BOOLEEN;\n else\n return TypeList.ERREUR;\n case EG:\n case DIFF:\n //on est dans le cas (t1!=ERREUR) == (t2!=ERREUR), donc pas de probleme.\n return TypeList.BOOLEEN;\n default:\n return TypeList.ERREUR;\n }\n }",
"@Test\n public void testEditDistEqualStrings() throws Exception{\n assertEquals(0,Esercizio2.edit_distance_dyn(s1,s4));\n }",
"public Boolean checkConformance(AbstractSymbol C1, AbstractSymbol C2) {\n \tif ( C1 == C2 ) {\n \t\treturn true;\n \t}\n \t// Check for a path from C2 to reach C1\n \treturn isReachable(C1.getString(), C2.getString());\n }",
"public static boolean contradicts(final Sentence expr1, final Sentence expr2) {\n\t\tif (contradicts.containsKey(expr1)) {\n\t\t\tif (contradicts.get(expr1).containsKey(expr2)) {\n\t\t\t\treturn contradicts.get(expr1).get(expr2);\n\t\t\t} else {\n\t\t\t\tfinal boolean val = SatChecker.isContradiction(Sentence.newConjunction(expr1, expr2));\n\t\t\t\tcontradicts.get(expr1).put(expr2, val);\n\t\t\t\treturn val;\n\t\t\t}\n\t\t} else {\n\t\t\tcontradicts.put(expr1, new HashMap<>());\n\t\t\treturn contradicts(expr1, expr2);\n\t\t}\n\t}",
"@Override\n public Forme symetrieAxiale(final Ligne l) {\n double coeficient = (l.getPointB().getY() - l.getPointA().getY()) / (l.getPointB().getX() - l.getPointA().getX());\n double b = l.getPointA().getY() - (coeficient * l.getPointA().getX());\n /* Calcul de l'equation de la deuxieme droite (entre le centre et le centre symetrique) :\n * coefficient = 1 / coefficientPremiereDroite\n * donc yCentre = xCentre * coefficient + b\n * */\n\n double coefficientBis = -1 / coeficient;\n\n double bBis = this.centre.getY() - (this.centre.getX() * coefficientBis);\n double bpCercle =this.pCercle.getY() - (this.pCercle.getX() * coefficientBis);\n\n /*\n Soit les droites dont les équations sont y = x – 4 et y = –2x + 5, alors : x – 4 = –2x + 5. On représente ces droites dans un plan cartésien.\n Donc : 3x = 9 et x = 3\n Puis : y = –1\n Les coordonnées du point d’intersection de ces droites sont (3, –1).\n\n */\n double xCentre = (bBis - b) / (coeficient - coefficientBis);\n double yCentre = coefficientBis * xCentre + bBis;\n\n double xPCercle = (bpCercle - b) / (coeficient - coefficientBis);\n double yPCercle = coefficientBis * xPCercle + bpCercle;\n\n Point newCentre = new Point(Math.floor((2*xCentre - this.centre.getX())*100)/100,Math.floor((2*yCentre - this.centre.getY())*100)/100);\n Point newPoint = new Point(Math.floor((2*xPCercle - this.pCercle.getX())*100)/100,Math.floor((2*yPCercle - this.pCercle.getY())*100)/100);\n return new Cercle(newCentre,newPoint);\n }",
"public static void bi_vl() {\n\t}",
"@Test\n public void testBoundsAsCompositesWithEqAndInRestrictions()\n {\n CFMetaData cfMetaData = newCFMetaData(Sort.ASC, Sort.ASC);\n\n ByteBuffer value1 = ByteBufferUtil.bytes(1);\n ByteBuffer value2 = ByteBufferUtil.bytes(2);\n ByteBuffer value3 = ByteBufferUtil.bytes(3);\n Restriction eq = newSingleEq(cfMetaData, 0, value1);\n Restriction in = newSingleIN(cfMetaData, 1, value1, value2, value3);\n PrimaryKeyRestrictions restrictions = new PrimaryKeyRestrictionSet(cfMetaData.comparator);\n restrictions = restrictions.mergeWith(eq).mergeWith(in);\n\n List<Composite> bounds = restrictions.boundsAsComposites(cfMetaData, Bound.START, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.START);\n assertComposite(bounds.get(1), value1, value2, EOC.START);\n assertComposite(bounds.get(2), value1, value3, EOC.START);\n\n bounds = restrictions.boundsAsComposites(cfMetaData, Bound.END, QueryOptions.DEFAULT);\n assertEquals(3, bounds.size());\n assertComposite(bounds.get(0), value1, value1, EOC.END);\n assertComposite(bounds.get(1), value1, value2, EOC.END);\n assertComposite(bounds.get(2), value1, value3, EOC.END);\n }",
"@Override\n\t@Transactional\n\tpublic boolean virement(String cpte1, String cpte2, double montant, Long codeEmp) {\n\t\tretirer(cpte1, montant, codeEmp);\n\t\tverser(cpte2, montant, codeEmp);\n\t\treturn true;\n\t}",
"public static String generateNegativeConstraintsConjunct(GenerateCVC1 cvc, QueryBlockDetails queryBlock, Conjunct conjunct) throws Exception {\n\n\t\t\n\t\tString constraintString = \"\";\n\n\t\tconstraintString += \"%--------------------------------\\n%NEGATIVE CONSTRAINTS FOR THIS CONJUNCT\\n%---------------------------------------\\n\";\n\t\t\n\t\tVector<String> OrConstraints=new Vector<String>();\n\t\tVector<String> OrStringConstraints = new Vector<String>();\n\n\t\t/** Generate negative constraint for equivalence class.*/\n\t\t/**FIXME: Mahesh..Ask Amol why the below code and why cant't we use getconstraintsforequijoins()*/\n\t\tif(!conjunct.getEquivalenceClasses().isEmpty()){\n\n\t\t\t/**Get the equivalence classes*/\n\t\t\tVector<Vector<Node>> equivalenceClasses = conjunct.getEquivalenceClasses();\n\n\t\t\tfor(int i=0; i<equivalenceClasses.size(); i++){\t/** For each equivalence class list*/\n\n\t\t\t\t/**Get this equivalence */\n\t\t\t\tVector<Node> ec = equivalenceClasses.get(i);\n\n\t\t\t\t/**for each node in this equivalence*/\n\t\t\t\tfor(int j=0;j<ec.size(); j++)\n\t\t\t\t{\n\n\t\t\t\t\tNode eceNulled = ec.get(j);\t\t\t/** This is R.a - to be nulled */\n\n\n\t\t\t\t\tString CVCStr = \"%DataSet Generated By Nulling: \"+ ((Node)eceNulled).toString() + \"\\n\";\n\t\t\t\t\tTable tableNulled = eceNulled.getTable();\n\t\t\t\t\tColumn colNulled = eceNulled.getColumn();\n\n\t\t\t\t\t/** TODO: Have one vector for positive and negative conditions. */\n\n\t\t\t\t\tcvc.setResultsetTableColumns1( new HashMap<Table, Vector<String>>() );\t\t\t\t\t\n\n\t\t\t\t\t/** S = set of elements in ec which have a foreign key relationship with R.a <use closure for this> */\n\t\t\t\t\tArrayList<Node> S = new ArrayList<Node>();\n\t\t\t\t\tVector<Node> nullableFKs = new Vector<Node>();\n\t\t\t\t\tS.add(eceNulled);\n\n\t\t\t\t\tfor(int k=0; k<ec.size(); k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tNode ece = ec.get(k);\n\t\t\t\t\t\tTable tableEce = ece.getTable();\n\t\t\t\t\t\tColumn colEce = ece.getColumn();\n\t\t\t\t\t\t/**TODO Maintain a datasructure for list of PK and FK so as to compare in one pass.*/\n\t\t\t\t\t\tfor(int l=0; l < cvc.getForeignKeys().size(); l++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t/**In ForeignKeys Left points to the foreign key attribute while the right points to the Primary or the referenced column*/\n\t\t\t\t\t\t\tNode fk = cvc.getForeignKeys().get(l);\n\n\t\t\t\t\t\t\t/**Adapted for Nullable foreign keys.\n\t\t\t\t\t\t\t *If FK is not nullable, then we need to null it along with the referenced relation which is eceNulled*/\n\t\t\t\t\t\t\tif( (fk.getLeft().getTable() == tableEce && fk.getLeft().getColumn() == colEce) \n\t\t\t\t\t\t\t\t\t&& (fk.getRight().getTable() == tableNulled && fk.getRight().getColumn() == colNulled)){\n\t\t\t\t\t\t\t\tif(!colEce.isNullable())\n\t\t\t\t\t\t\t\t\tS.add(ece);/**To be taken along with nulled Column*/\n\t\t\t\t\t\t\t\tif(colEce.isNullable())\n\t\t\t\t\t\t\t\t\tnullableFKs.add(ece);/** To be taken along with nulled column, in case P.size > 1 */\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t/**\n\t\t\t\t\t * Now, we have in S, the nulled column along with the foreign key columns in that equivalence class\n\t\t\t\t\t * that reference the nulled column and are not nullable.\n\t\t\t\t\t * But, if EC - S, contains a nullable column which references the nulled column, \n\t\t\t\t\t * AND also contains some other column which may or may not be nullable, \n\t\t\t\t\t * then we cannot assign NULL to the nullable FK column. We then need to nullify the nullable FK column\n\t\t\t\t\t * along with the nulled column. If EC - S, just contains a single nullable column referencing the \n\t\t\t\t\t * nulled column, then we can assign NULL to that column in order to nullify the nulled column. \n\t\t\t\t\t */\n\n\n\t\t\t\t\t/** Form P = EC - S */\n\t\t\t\t\tVector<Node> P = new Vector<Node>();\n\t\t\t\t\tfor(int k=0; k<ec.size(); k++)\t\t\t\t\t\t\n\t\t\t\t\t\tif( cvc.getqParser().alreadyNotExistInEquivalenceClass(S, ec.get(k)))\n\t\t\t\t\t\t\tP.add(ec.get(k));\n\n\n\t\t\t\t\tSystem.out.println(\"R.a = \"+eceNulled);\n\t\t\t\t\tSystem.out.print(\"EC : \"); Node.printPredicateVector(ec);\n\n\t\t\t\t\t/**For Now : if P is empty continue;*/\n\t\t\t\t\tif(P.size() == 0)\n\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\tif(P.size() == 1 \n\t\t\t\t\t\t\t&& P.get(0).getColumn().getReferenceColumn() == eceNulled.getColumn()\n\t\t\t\t\t\t\t&& P.get(0).getColumn().isNullable()){\n\n\t\t\t\t\t\t/**check if the column in P is referencing the nulled column and is nullable.\n\t\t\t\t\t\t *If so, then we can nullify the nulled relation inspite of the FK*/\n\t\t\t\t\t\tOrConstraints.add( GenerateCVCConstraintForNode.cvcSetNull(cvc, P.get(0).getColumn(), \"1\"));\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t/**Otherwise, we need to nullify the foreign keys along with the nulled column.\n\t\t\t\t\t\t * Note that we need to do this irrespective of whether the column in P is FK \n\t\t\t\t\t\t * or whether it is nullable. Because, then we cannot assign NULL to any of the columns in P\n\t\t\t\t\t\t * This is because, NULLs cannot be equated and hence the joins in P will not be propogated up.\n\t\t\t\t\t\t */\n\t\t\t\t\t\tP.removeAll(nullableFKs);\n\n\t\t\t\t\t\t/** Generate positiveConds for members in P*/ \n\t\t\t\t\t\tGenerateJoinPredicateConstraints.genPositiveConds(P);\n\t\t\t\t\t}\n\n\t\t\t\t\t/**Now generate negative conditions for Nulled relation\n\t\t\t\t\t *i.e. NOT EXISTS (i: Nulled Rel): NulledRel[i].col = P[1].col*/\n\t\t\t\t\tOrConstraints.add( GenerateJoinPredicateConstraints.genNegativeConds( cvc, queryBlock, colNulled, P.get(0)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\n\n\t\t/**Now generate Positive conditions for each of the non equi join conditions \n\t\t * that were not considered when building equivalence classes*/\n\t\tVector<Node> allConds = conjunct.getAllConds();\n\t\t\n\t\t/**get constraint*/\n\t\tString constraint = GenerateJoinPredicateConstraints.getNegativeConstraintsForNonEquiJoins(cvc, queryBlock, allConds) ;\n\n\t\tif( constraint.length() != 0)\n\t\t\tOrConstraints.add( constraint );\n\n\t\t/** Now generate Negative constraints for selection conditions */\n\t\tVector<Node> selectionConds = conjunct.getSelectionConds();\n\n\t\t/**get negative conditions for these nodes*/\n\t\tVector<Node> negativeSelConds = GenerateCVCConstraintForNode.getNegativeConditions(selectionConds);\n\n\t\t/**Generate constraints for the negative conditions*/\n\t\tfor(int k = 0; k < negativeSelConds.size(); k++){\n\n\t\t\t/**get table details*/\n\t\t\tString tableNo = negativeSelConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l = 1; l <= count; l++)\n\t\t\t\tOrConstraints.add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, negativeSelConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\n\t\t/**Generate negative constraints for string selection conditions */\n\t\tVector<Node> stringSelectionConds = conjunct.getStringSelectionConds();\t\n\n\t\t/**get negative conditions for these nodes*/\n\t\tVector<Node> negativeStringSelConds = GenerateCVCConstraintForNode.getNegativeConditions(stringSelectionConds);\n\n\t\t/**Generate constraints for the negative conditions*/\n\t\tfor(int k = 0; k < negativeStringSelConds.size(); k++){\n\n\t\t\t/**get table details*/\n\t\t\tString tableNo = negativeStringSelConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l = 1; l <= count; l++)\n\t\t\t\tOrStringConstraints.add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, negativeStringSelConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\t\t/**Generate negative constraints for like conditions */\n\t\tVector<Node> likeConds = conjunct.getLikeConds();\n\n\t\t/**get negative conditions for these nodes*/\n\t\tVector<Node> negativeLikeConds = GenerateCVCConstraintForNode.getNegativeConditions(likeConds);\n\n\t\tfor(int k=0; k<likeConds.size(); k++){\n\n\t\t\t/**get table details*/\n\t\t\tString tableNo = negativeLikeConds.get(k).getLeft().getTableNameNo();\n\t\t\tint offset = cvc.getRepeatedRelNextTuplePos().get(tableNo)[1];\n\n\t\t\tint count = cvc.getNoOfTuples().get(tableNo)* queryBlock.getNoOfGroups();/** We should generate the constraints across all groups */;;\n\t\t\tfor(int l=1;l<=count;l++)\n\t\t\t\tOrStringConstraints.add( \"ASSERT \" + GenerateCVCConstraintForNode.genPositiveCondsForPred(queryBlock, negativeLikeConds.get(k),l+offset-1)+\";\" +\"\\n\" );\n\t\t}\n\n\n\t\t/**get the where clause sub query conditions in this conjunct*/\n\t\tif(conjunct.getAllSubQueryConds() != null){\n\t\t\tfor(int i=0; i < conjunct.getAllSubQueryConds().size(); i++){\n\t\t\t\t\n\t\t\t\tNode subQ = conjunct.getAllSubQueryConds().get(i);\n\t\t\t\t\n\t\t\t\t/**FIXME: Add negative constraints for this where clause sub query block\n\t\t\t\t * We could use methods of class: GenerateConstraintsForWhereClauseSubQueryBlock*/\n\t\t\t\t/**FIXME:If the given conjunct has NOT EXISTS conditions, then negative of that becomes positive*/\n\t\t\t\tint index = UtilsRelatedToNode.getQueryIndexOfSubQNode(subQ);\n\n\t\t\t\t/**get sub query block*/\n\t\t\t\tQueryBlockDetails subQuery = queryBlock.getWhereClauseSubQueries().get(index);\n\t\t\t\t\n\t\t\t\tString negativeConstraint = \"\";\n\t\t\t\t\n\t\t\t\t/**if this sub query is of EXISTS Type*/\n\t\t\t\tif(subQ.getType().equals(Node.getExistsNodeType()) ){\n\t\t\t\t\t\n\t\t\t\t\tfor (Conjunct con: subQuery.getConjuncts())\n\t\t\t\t\t\tnegativeConstraint += generateNegativeConstraintsConjunct(cvc, subQuery, con);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/**if sub query is of type NOT Exists*/\n\t\t\t\t/**We need to get positive constraints for this sub query*/\n\t\t\t\telse if ( subQ.getType().equals(Node.getNotExistsNodeType() ) ){\n\t\t\t\t\t\n\t\t\t\t\tfor (Conjunct con: subQuery.getConjuncts())\n\t\t\t\t\t\tnegativeConstraint += getConstraintsForConjuct(cvc, queryBlock, con);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t\n\t\t\t\t\t/**get negative condition for this sub query node*/\n\t\t\t\t\tNode subQNegative = GenerateCVCConstraintForNode.getNegativeCondition(subQ);\n\t\t\t\t\t\n\t\t\t\t\t/**get negative constraints for where clause connective*/\t\t\t\t\t\n\t\t\t\t\tnegativeConstraint = GenerateConstraintsForWhereClauseSubQueryBlock.getConstraintsForWhereSubQueryConnective(cvc, queryBlock, subQNegative);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconstraintString += negativeConstraint;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!OrConstraints.isEmpty() && OrConstraints.size() != 0)\n\t\t\tconstraintString += processOrConstraints(OrConstraints);\n\t\tconstraintString += \"\\n%--------------------------------\\n%END OF NEGATIVE CONSTRAINTS FOR THIS CONJUNCT\\n%---------------------------------------\";\n\n\t\tif(!OrStringConstraints.isEmpty() && OrStringConstraints.size() != 0 )\n\t\t\tcvc.getStringConstraints().add(processOrConstraints(OrStringConstraints));\n\n\t\treturn constraintString;\n\t}",
"protected abstract void defineConstraints();",
"public void addRestrictions()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\t\t\t\t\n\t\t\t\tif(restriction[i][j] == 1 )\n\t\t\t\t{\n\t\t\t\t\tcost[i][j] = 1000000000;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static boolean isOpuestoLado(int lado1, int lado2){\r\n\t\tint distancia = distanciaLado(lado1, lado2);\r\n\t\tif (distancia == 4)\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}",
"@Test\n public void isValid() {\n \tSecondLevelEntity_ secondLevelEntity = new SecondLevelEntity_();\n \tsecondLevelEntity.setText1(\"test\");\n \tsecondLevelEntity.setText2(\"test\");\n \tsecondLevelEntity.setText3(\"test\");\n \t\n \tassertTrue(validator.isValid(secondLevelEntity, constraintValidatorContext));\n \t\n }",
"public static String compose(RDFLicense lic1, RDFLicense lic2) {\r\n \r\n \r\n String compatible = \"\";\r\n String reason = \"\";\r\n String source = \"\";\r\n String resulting =\"\";\r\n\r\n reason =\"A computation has been made on the basis of the main permissions, prohibitions. The result has been computed automatically and no warranty exists on its reliability. Please check the legal text.\";\r\n source=\"computed\";\r\n \r\n List<String> per1 = RDFLicenseCheck.getPermissions(lic1);\r\n List<String> pro1 = RDFLicenseCheck.getProhibitions(lic1);\r\n List<String> dut1 = RDFLicenseCheck.getDuties(lic1);\r\n List<String> per2 = RDFLicenseCheck.getPermissions(lic2);\r\n List<String> pro2 = RDFLicenseCheck.getProhibitions(lic2);\r\n List<String> dut2 = RDFLicenseCheck.getDuties(lic2);\r\n \r\n\r\n /*System.out.print(\"Per1: \");\r\n for(String p : per1)\r\n System.out.print(p+\" \");\r\n System.out.print(\"\\nPro1: \");\r\n for(String p : pro1)\r\n System.out.print(p+\" \");\r\n System.out.print(\"\\nPer2: \");\r\n for(String p : per2)\r\n System.out.print(p+\" \");\r\n System.out.print(\"\\nPro2: \");\r\n for(String p : pro2)\r\n System.out.print(p+\" \");\r\n System.out.print(\"\\n\");*/\r\n \r\n \r\n \r\n if (lic1.getURI().equals(lic2.getURI()))\r\n {\r\n compatible=\"compatible\";\r\n reason = \"The licenses are the same.\";\r\n }\r\n\r\n List<String> per3 = ListUtils.intersection(per1, per2);\r\n List<String> pro3 = ListUtils.union(pro1, pro2);\r\n List<String> dut3 = ListUtils.union(dut1, dut2);\r\n \r\n List<String> em1=ListUtils.intersection(pro3, per3);\r\n if (!em1.isEmpty() )\r\n {\r\n compatible = \"not compatible\";\r\n }\r\n else\r\n {\r\n compatible =\"compatible\";\r\n }\r\n \r\n RDFLicense lic3 = RDFLicenseFactory.createLicense(per3, dut3, pro3);\r\n\r\n resulting = lic3.toTTL();\r\n// System.out.println(lic3.toTTL());\r\n \r\n \r\n String json =\"\";\r\n try {\r\n JSONObject obj = new JSONObject();\r\n obj.put(\"compatible\", compatible);\r\n obj.put(\"reason\", reason);\r\n obj.put(\"source\", source);\r\n obj.put(\"resulting\", resulting);\r\n json = obj.toString();\r\n } catch (Exception e) {\r\n json = \"error\";\r\n }\r\n return json;\r\n }",
"public int \r\nomStudent_ObjectConstraints( View mStudent,\r\n Integer Event,\r\n Integer State )\r\n{\r\n zVIEW wXferO = new zVIEW( );\r\n int RESULT = 0;\r\n //:VIEW lTermLST BASED ON LOD lTermLST\r\n zVIEW lTermLST = new zVIEW( );\r\n //:VIEW lTermLST2 BASED ON LOD lTermLST\r\n zVIEW lTermLST2 = new zVIEW( );\r\n //:VIEW mUser BASED ON LOD mUser\r\n zVIEW mUser = new zVIEW( );\r\n //:VIEW mStudentT BASED ON LOD mStudent\r\n zVIEW mStudentT = new zVIEW( );\r\n //:VIEW sAppMgr BASED ON LOD sAppMgr\r\n zVIEW sAppMgr = new zVIEW( );\r\n //:VIEW mStuChgH BASED ON LOD mStuChgH\r\n zVIEW mStuChgH = new zVIEW( );\r\n //:VIEW mStuChgH2 BASED ON LOD mStuChgH\r\n zVIEW mStuChgH2 = new zVIEW( );\r\n //:VIEW mStuChgL BASED ON LOD mStuChgL\r\n zVIEW mStuChgL = new zVIEW( );\r\n //:STRING ( 20 ) szCollegeTerm\r\n String szCollegeTerm = null;\r\n //:STRING ( 50 ) szAnticipatedGradPeriod\r\n String szAnticipatedGradPeriod = null;\r\n //:STRING ( 50 ) szOriginalValue\r\n String szOriginalValue = null;\r\n //:STRING ( 50 ) szNewValue\r\n String szNewValue = null;\r\n //:STRING ( 1 ) szChangeFlag\r\n String szChangeFlag = null;\r\n //:STRING ( 8 ) szCurrentDate\r\n String szCurrentDate = null;\r\n //:STRING ( 1 ) szCurrentAcademicLevel\r\n String szCurrentAcademicLevel = null;\r\n //:SHORT nRC\r\n int nRC = 0;\r\n int lTempInteger_0 = 0;\r\n String szTempString_0 = null;\r\n int lTempInteger_1 = 0;\r\n String szTempString_1 = null;\r\n int lTempInteger_2 = 0;\r\n int lTempInteger_3 = 0;\r\n int lTempInteger_4 = 0;\r\n int lTempInteger_5 = 0;\r\n int lTempInteger_6 = 0;\r\n int lTempInteger_7 = 0;\r\n int lTempInteger_8 = 0;\r\n int lTempInteger_9 = 0;\r\n int lTempInteger_10 = 0;\r\n int lTempInteger_11 = 0;\r\n int lTempInteger_12 = 0;\r\n int lTempInteger_13 = 0;\r\n int lTempInteger_14 = 0;\r\n int lTempInteger_15 = 0;\r\n int lTempInteger_16 = 0;\r\n int lTempInteger_17 = 0;\r\n int lTempInteger_18 = 0;\r\n int lTempInteger_19 = 0;\r\n int lTempInteger_20 = 0;\r\n int lTempInteger_21 = 0;\r\n zVIEW vTempViewVar_0 = new zVIEW( );\r\n int lTempInteger_22 = 0;\r\n\r\n RESULT = GetViewByName( wXferO, \"wXferO\", mStudent, zLEVEL_TASK );\r\n\r\n //:CASE Event\r\n switch( Event )\r\n { \r\n //:OF zOCE_ACTIVATE:\r\n case zOCE_ACTIVATE :\r\n\r\n// if ( lTempInteger_16 == 0 )\r\n// return 0;\r\n// \r\n// View v = mStudent.activateOiFromFile( \"mStudent\", \"testdata/ZENCAs/mstudent_ac.por\" );\r\n// boolean c = v.equalsOi( mStudent );\r\n \r\n //:// Order the Retention, Transcript and Residency data in reverse date order.\r\n //:OrderEntityForView( mStudent, \"RetentionRisk\", \"CreationDate D\" )\r\n OrderEntityForView( mStudent, \"RetentionRisk\", \"CreationDate D\" );\r\n //:OrderEntityForView( mStudent, \"TranscriptRequest\", \"CreationDate D\" )\r\n OrderEntityForView( mStudent, \"TranscriptRequest\", \"CreationDate D\" );\r\n //:OrderEntityForView( mStudent, \"TermOfResidence\", \"BeginDate D\" )\r\n OrderEntityForView( mStudent, \"TermOfResidence\", \"BeginDate D\" );\r\n\r\n //:// Order Student Major/Degree Track according to Ranking.\r\n //:IF mStudent.StudentMajorDegreeTrack EXISTS\r\n lTempInteger_0 = CheckExistenceOfEntity( mStudent, \"StudentMajorDegreeTrack\" );\r\n if ( lTempInteger_0 == 0 )\r\n { \r\n //:IF mStudent.StudentMajorDegreeTrack.Ranking > 0\r\n if ( CompareAttributeToInteger( mStudent, \"StudentMajorDegreeTrack\", \"Ranking\", 0 ) > 0 )\r\n { \r\n //:OrderEntityForView( mStudent, \"StudentMajorDegreeTrack\", \"Ranking A\" )\r\n OrderEntityForView( mStudent, \"StudentMajorDegreeTrack\", \"Ranking A\" );\r\n } \r\n\r\n //:END\r\n } \r\n\r\n //:END\r\n\r\n //:// Build Chapel Attendance Summary entries.\r\n //:GET VIEW lTermLST NAMED \"lTermLST\"\r\n RESULT = GetViewByName( lTermLST, \"lTermLST\", mStudent, zLEVEL_TASK );\r\n //:CreateViewFromView( lTermLST2, lTermLST )\r\n CreateViewFromView( lTermLST2, lTermLST );\r\n //:FOR EACH mStudent.ChapelSession \r\n RESULT = mStudent.cursor( \"ChapelSession\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n //:SET CURSOR FIRST mStudent.ChapelAttendanceByTerm \r\n //: WHERE mStudent.ChapelAttendanceByTerm.CollegeTerm = mStudent.CollegeTerm.YearSemester \r\n {StringBuilder sb_szTempString_0;\r\n if ( szTempString_0 == null )\r\n sb_szTempString_0 = new StringBuilder( 32 );\r\n else\r\n sb_szTempString_0 = new StringBuilder( szTempString_0 );\r\n GetStringFromAttribute( sb_szTempString_0, mStudent, \"CollegeTerm\", \"YearSemester\" );\r\n szTempString_0 = sb_szTempString_0.toString( );}\r\n RESULT = mStudent.cursor( \"ChapelAttendanceByTerm\" ).setFirst( \"CollegeTerm\", szTempString_0 ).toInt();\r\n //:IF RESULT < zCURSOR_SET\r\n if ( RESULT < zCURSOR_SET )\r\n { \r\n //:CREATE ENTITY mStudent.ChapelAttendanceByTerm\r\n RESULT = CreateEntity( mStudent, \"ChapelAttendanceByTerm\", zPOS_AFTER );\r\n //:// We keep CollegeYear and Semester for sorting purposes.\r\n //:szCollegeTerm = mStudent.CollegeTerm.YearSemester\r\n {MutableInt mi_lTempInteger_1 = new MutableInt( lTempInteger_1 );\r\n StringBuilder sb_szCollegeTerm;\r\n if ( szCollegeTerm == null )\r\n sb_szCollegeTerm = new StringBuilder( 32 );\r\n else\r\n sb_szCollegeTerm = new StringBuilder( szCollegeTerm );\r\n GetVariableFromAttribute( sb_szCollegeTerm, mi_lTempInteger_1, 'S', 21, mStudent, \"CollegeTerm\", \"YearSemester\", \"\", 0 );\r\n lTempInteger_1 = mi_lTempInteger_1.intValue( );\r\n szCollegeTerm = sb_szCollegeTerm.toString( );}\r\n //:mStudent.ChapelAttendanceByTerm.CollegeTerm = szCollegeTerm\r\n SetAttributeFromString( mStudent, \"ChapelAttendanceByTerm\", \"CollegeTerm\", szCollegeTerm );\r\n //:mStudent.ChapelAttendanceByTerm.CollegeYear = szCollegeTerm[1:9]\r\n {StringBuilder sb_szTempString_0;\r\n if ( szTempString_0 == null )\r\n sb_szTempString_0 = new StringBuilder( 32 );\r\n else\r\n sb_szTempString_0 = new StringBuilder( szTempString_0 );\r\n ZeidonStringCopy( sb_szTempString_0, 1, 0, szCollegeTerm, 1, 9, 21 );\r\n szTempString_0 = sb_szTempString_0.toString( );}\r\n SetAttributeFromString( mStudent, \"ChapelAttendanceByTerm\", \"CollegeYear\", szTempString_0 );\r\n //:mStudent.ChapelAttendanceByTerm.Semester = mStudent.CollegeTerm.Semester\r\n SetAttributeFromAttribute( mStudent, \"ChapelAttendanceByTerm\", \"Semester\", mStudent, \"CollegeTerm\", \"Semester\" );\r\n //:SET CURSOR FIRST lTermLST2.CollegeTerm WHERE lTermLST2.CollegeTerm.YearSemester = mStudent.CollegeTerm.YearSemester \r\n {StringBuilder sb_szTempString_1;\r\n if ( szTempString_1 == null )\r\n sb_szTempString_1 = new StringBuilder( 32 );\r\n else\r\n sb_szTempString_1 = new StringBuilder( szTempString_1 );\r\n GetStringFromAttribute( sb_szTempString_1, mStudent, \"CollegeTerm\", \"YearSemester\" );\r\n szTempString_1 = sb_szTempString_1.toString( );}\r\n RESULT = lTermLST2.cursor( \"CollegeTerm\" ).setFirst( \"YearSemester\", szTempString_1 ).toInt();\r\n //:mStudent.ChapelAttendanceByTerm.TotalChapelsRequired = lTermLST2.CollegeTerm.NumberOfChapelsRequired\r\n SetAttributeFromAttribute( mStudent, \"ChapelAttendanceByTerm\", \"TotalChapelsRequired\", lTermLST2, \"CollegeTerm\", \"NumberOfChapelsRequired\" );\r\n } \r\n\r\n //:END\r\n //:mStudent.ChapelAttendanceByTerm.TotalChapelsAttended = mStudent.ChapelAttendanceByTerm.TotalChapelsAttended + 1\r\n {MutableInt mi_lTempInteger_2 = new MutableInt( lTempInteger_2 );\r\n GetIntegerFromAttribute( mi_lTempInteger_2, mStudent, \"ChapelAttendanceByTerm\", \"TotalChapelsAttended\" );\r\n lTempInteger_2 = mi_lTempInteger_2.intValue( );}\r\n lTempInteger_3 = lTempInteger_2 + 1;\r\n SetAttributeFromInteger( mStudent, \"ChapelAttendanceByTerm\", \"TotalChapelsAttended\", lTempInteger_3 );\r\n RESULT = mStudent.cursor( \"ChapelSession\" ).setNext().toInt();\r\n } \r\n\r\n //:END\r\n //:FOR EACH mStudent.OverrideChapelRequirement\r\n RESULT = mStudent.cursor( \"OverrideChapelRequirement\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n //:SET CURSOR FIRST lTermLST2.CollegeTerm WHERE lTermLST2.CollegeTerm.ID = mStudent.OverrideChapelReqCollegeTerm.ID \r\n {MutableInt mi_lTempInteger_4 = new MutableInt( lTempInteger_4 );\r\n GetIntegerFromAttribute( mi_lTempInteger_4, mStudent, \"OverrideChapelReqCollegeTerm\", \"ID\" );\r\n lTempInteger_4 = mi_lTempInteger_4.intValue( );}\r\n RESULT = lTermLST2.cursor( \"CollegeTerm\" ).setFirst( \"ID\", lTempInteger_4 ).toInt();\r\n //:SET CURSOR FIRST mStudent.ChapelAttendanceByTerm WHERE mStudent.ChapelAttendanceByTerm.CollegeTerm = lTermLST2.CollegeTerm.YearSemester\r\n {StringBuilder sb_szTempString_1;\r\n if ( szTempString_1 == null )\r\n sb_szTempString_1 = new StringBuilder( 32 );\r\n else\r\n sb_szTempString_1 = new StringBuilder( szTempString_1 );\r\n GetStringFromAttribute( sb_szTempString_1, lTermLST2, \"CollegeTerm\", \"YearSemester\" );\r\n szTempString_1 = sb_szTempString_1.toString( );}\r\n RESULT = mStudent.cursor( \"ChapelAttendanceByTerm\" ).setFirst( \"CollegeTerm\", szTempString_1 ).toInt();\r\n //:IF RESULT >= zCURSOR_SET\r\n if ( RESULT >= zCURSOR_SET )\r\n { \r\n //:// A ChapelAttendanceByTerm entity already exists for the Term, just add the Override value.\r\n //:mStudent.ChapelAttendanceByTerm.TotalChapelsRequiredOverride = mStudent.OverrideChapelRequirement.NumberOfChapelsRequiredForTerm\r\n SetAttributeFromAttribute( mStudent, \"ChapelAttendanceByTerm\", \"TotalChapelsRequiredOverride\", mStudent, \"OverrideChapelRequirement\", \"NumberOfChapelsRequiredForTerm\" );\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:// We need to add the ChapelAttendanceByTerm for the Override Term.\r\n //:CREATE ENTITY mStudent.ChapelAttendanceByTerm\r\n RESULT = CreateEntity( mStudent, \"ChapelAttendanceByTerm\", zPOS_AFTER );\r\n //:szCollegeTerm = lTermLST2.CollegeTerm.YearSemester \r\n {MutableInt mi_lTempInteger_5 = new MutableInt( lTempInteger_5 );\r\n StringBuilder sb_szCollegeTerm;\r\n if ( szCollegeTerm == null )\r\n sb_szCollegeTerm = new StringBuilder( 32 );\r\n else\r\n sb_szCollegeTerm = new StringBuilder( szCollegeTerm );\r\n GetVariableFromAttribute( sb_szCollegeTerm, mi_lTempInteger_5, 'S', 21, lTermLST2, \"CollegeTerm\", \"YearSemester\", \"\", 0 );\r\n lTempInteger_5 = mi_lTempInteger_5.intValue( );\r\n szCollegeTerm = sb_szCollegeTerm.toString( );}\r\n //:mStudent.ChapelAttendanceByTerm.CollegeTerm = szCollegeTerm\r\n SetAttributeFromString( mStudent, \"ChapelAttendanceByTerm\", \"CollegeTerm\", szCollegeTerm );\r\n //:mStudent.ChapelAttendanceByTerm.CollegeYear = szCollegeTerm[1:9]\r\n {StringBuilder sb_szTempString_1;\r\n if ( szTempString_1 == null )\r\n sb_szTempString_1 = new StringBuilder( 32 );\r\n else\r\n sb_szTempString_1 = new StringBuilder( szTempString_1 );\r\n ZeidonStringCopy( sb_szTempString_1, 1, 0, szCollegeTerm, 1, 9, 21 );\r\n szTempString_1 = sb_szTempString_1.toString( );}\r\n SetAttributeFromString( mStudent, \"ChapelAttendanceByTerm\", \"CollegeYear\", szTempString_1 );\r\n //:mStudent.ChapelAttendanceByTerm.Semester = lTermLST2.CollegeTerm.Semester \r\n SetAttributeFromAttribute( mStudent, \"ChapelAttendanceByTerm\", \"Semester\", lTermLST2, \"CollegeTerm\", \"Semester\" );\r\n //:mStudent.ChapelAttendanceByTerm.TotalChapelsRequired = lTermLST2.CollegeTerm.NumberOfChapelsRequired \r\n SetAttributeFromAttribute( mStudent, \"ChapelAttendanceByTerm\", \"TotalChapelsRequired\", lTermLST2, \"CollegeTerm\", \"NumberOfChapelsRequired\" );\r\n //:mStudent.ChapelAttendanceByTerm.TotalChapelsRequiredOverride = mStudent.OverrideChapelRequirement.NumberOfChapelsRequiredForTerm\r\n SetAttributeFromAttribute( mStudent, \"ChapelAttendanceByTerm\", \"TotalChapelsRequiredOverride\", mStudent, \"OverrideChapelRequirement\", \"NumberOfChapelsRequiredForTerm\" );\r\n } \r\n\r\n RESULT = mStudent.cursor( \"OverrideChapelRequirement\" ).setNext().toInt();\r\n //:END\r\n } \r\n\r\n //:END\r\n //:DropView( lTermLST2 )\r\n DropView( lTermLST2 );\r\n //:OrderEntityForView( mStudent, \"ChapelAttendanceByTerm\", \"CollegeYear D Semester D\" )\r\n OrderEntityForView( mStudent, \"ChapelAttendanceByTerm\", \"CollegeYear D Semester D\" );\r\n //:OrderEntityForView( mStudent, \"ChapelSession\", \"Date D\" )\r\n OrderEntityForView( mStudent, \"ChapelSession\", \"Date D\" );\r\n\r\n //:// Generate Degree1 and Degree2 relationships.\r\n //:FOR EACH mStudent.StudentMajorDegreeTrack \r\n RESULT = mStudent.cursor( \"StudentMajorDegreeTrack\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n //:IF mStudent.DegreeTrackCollegeDegree EXISTS\r\n lTempInteger_6 = CheckExistenceOfEntity( mStudent, \"DegreeTrackCollegeDegree\" );\r\n if ( lTempInteger_6 == 0 )\r\n { \r\n //:IF mStudent.CollegeDegree1 EXISTS\r\n lTempInteger_7 = CheckExistenceOfEntity( mStudent, \"CollegeDegree1\" );\r\n if ( lTempInteger_7 == 0 )\r\n { \r\n //:IF mStudent.CollegeDegree1.ID != mStudent.DegreeTrackCollegeDegree.ID \r\n if ( CompareAttributeToAttribute( mStudent, \"CollegeDegree1\", \"ID\", mStudent, \"DegreeTrackCollegeDegree\", \"ID\" ) != 0 )\r\n { \r\n //:IF mStudent.CollegeDegree2 DOES NOT EXIST\r\n lTempInteger_8 = CheckExistenceOfEntity( mStudent, \"CollegeDegree2\" );\r\n if ( lTempInteger_8 != 0 )\r\n { \r\n //:INCLUDE mStudent.CollegeDegree2 FROM mStudent.DegreeTrackCollegeDegree\r\n RESULT = IncludeSubobjectFromSubobject( mStudent, \"CollegeDegree2\", mStudent, \"DegreeTrackCollegeDegree\", zPOS_AFTER );\r\n } \r\n\r\n //:END\r\n } \r\n\r\n //:END\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:INCLUDE mStudent.CollegeDegree1 FROM mStudent.DegreeTrackCollegeDegree\r\n RESULT = IncludeSubobjectFromSubobject( mStudent, \"CollegeDegree1\", mStudent, \"DegreeTrackCollegeDegree\", zPOS_AFTER );\r\n } \r\n\r\n //:END\r\n } \r\n\r\n RESULT = mStudent.cursor( \"StudentMajorDegreeTrack\" ).setNext().toInt();\r\n //:END \r\n } \r\n\r\n //:END\r\n\r\n //:// Build display subobject of Transcript Requests.\r\n //:FOR EACH mStudent.TranscriptRequest\r\n RESULT = mStudent.cursor( \"TranscriptRequest\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n //:INCLUDE mStudent.DisplayTranscriptRequest FROM mStudent.TranscriptRequest \r\n RESULT = IncludeSubobjectFromSubobject( mStudent, \"DisplayTranscriptRequest\", mStudent, \"TranscriptRequest\", zPOS_AFTER );\r\n RESULT = mStudent.cursor( \"TranscriptRequest\" ).setNext().toInt();\r\n } \r\n\r\n //:END\r\n //:OrderEntityForView( mStudent, \"DisplayTranscriptRequest\", \"ID A\" )\r\n OrderEntityForView( mStudent, \"DisplayTranscriptRequest\", \"ID A\" );\r\n\r\n //:// Build derived paths for Degree Candidacy relationship to StudentMajorDegreeTrack and CurrentDegreeCandidacy.\r\n //:FOR EACH mStudent.StudentMajorDegreeTrack \r\n RESULT = mStudent.cursor( \"StudentMajorDegreeTrack\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n //:IF mStudent.SMDT_DegreeCandidacy EXISTS\r\n lTempInteger_9 = CheckExistenceOfEntity( mStudent, \"SMDT_DegreeCandidacy\" );\r\n if ( lTempInteger_9 == 0 )\r\n { \r\n //:SET CURSOR FIRST mStudent.DegreeCandidacy WHERE mStudent.DegreeCandidacy.ID = mStudent.SMDT_DegreeCandidacy.ID \r\n {MutableInt mi_lTempInteger_10 = new MutableInt( lTempInteger_10 );\r\n GetIntegerFromAttribute( mi_lTempInteger_10, mStudent, \"SMDT_DegreeCandidacy\", \"ID\" );\r\n lTempInteger_10 = mi_lTempInteger_10.intValue( );}\r\n RESULT = mStudent.cursor( \"DegreeCandidacy\" ).setFirst( \"ID\", lTempInteger_10 ).toInt();\r\n //:INCLUDE mStudent.MajorTrackDegreeCandidacy FROM mStudent.DegreeCandidacy \r\n RESULT = IncludeSubobjectFromSubobject( mStudent, \"MajorTrackDegreeCandidacy\", mStudent, \"DegreeCandidacy\", zPOS_AFTER );\r\n //:INCLUDE mStudent.DC_StudentMajorDegreeTrack FROM mStudent.StudentMajorDegreeTrack \r\n RESULT = IncludeSubobjectFromSubobject( mStudent, \"DC_StudentMajorDegreeTrack\", mStudent, \"StudentMajorDegreeTrack\", zPOS_AFTER );\r\n } \r\n\r\n RESULT = mStudent.cursor( \"StudentMajorDegreeTrack\" ).setNext().toInt();\r\n //:END\r\n } \r\n\r\n //:END\r\n //:IF mStudent.DegreeCandidacy EXISTS\r\n lTempInteger_11 = CheckExistenceOfEntity( mStudent, \"DegreeCandidacy\" );\r\n if ( lTempInteger_11 == 0 )\r\n { \r\n //:// Se need to set a work date to be used in sorting DegreeCandidacy entries in descending date order, so that the\r\n //:// most recent entry will be first. If there is a null entry, make it first.\r\n //:FOR EACH mStudent.DegreeCandidacy \r\n RESULT = mStudent.cursor( \"DegreeCandidacy\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n //:IF mStudent.DC_GraduationDate EXISTS\r\n lTempInteger_12 = CheckExistenceOfEntity( mStudent, \"DC_GraduationDate\" );\r\n if ( lTempInteger_12 == 0 )\r\n { \r\n //:mStudent.DegreeCandidacy.wSortDate = mStudent.DC_GraduationDate.Date \r\n SetAttributeFromAttribute( mStudent, \"DegreeCandidacy\", \"wSortDate\", mStudent, \"DC_GraduationDate\", \"Date\" );\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:IF mStudent.DC_AnticipatedGraduationDate EXISTS\r\n lTempInteger_13 = CheckExistenceOfEntity( mStudent, \"DC_AnticipatedGraduationDate\" );\r\n if ( lTempInteger_13 == 0 )\r\n { \r\n //:mStudent.DegreeCandidacy.wSortDate = mStudent.DC_AnticipatedGraduationDate.Date \r\n SetAttributeFromAttribute( mStudent, \"DegreeCandidacy\", \"wSortDate\", mStudent, \"DC_AnticipatedGraduationDate\", \"Date\" );\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:IF mStudent.DegreeCandidacy.ReceivedDate != \"\"\r\n if ( CompareAttributeToString( mStudent, \"DegreeCandidacy\", \"ReceivedDate\", \"\" ) != 0 )\r\n { \r\n //:mStudent.DegreeCandidacy.wSortDate = mStudent.DegreeCandidacy.ReceivedDate\r\n SetAttributeFromAttribute( mStudent, \"DegreeCandidacy\", \"wSortDate\", mStudent, \"DegreeCandidacy\", \"ReceivedDate\" );\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:mStudent.DegreeCandidacy.wSortDate = \"21000101\"\r\n SetAttributeFromString( mStudent, \"DegreeCandidacy\", \"wSortDate\", \"21000101\" );\r\n } \r\n\r\n //:END\r\n } \r\n\r\n //:END\r\n } \r\n\r\n RESULT = mStudent.cursor( \"DegreeCandidacy\" ).setNext().toInt();\r\n //:END\r\n } \r\n\r\n //:END\r\n //:OrderEntityForView( mStudent, \"DegreeCandidacy\", \"wSortDate D\" )\r\n OrderEntityForView( mStudent, \"DegreeCandidacy\", \"wSortDate D\" );\r\n //:SET CURSOR FIRST mStudent.DegreeCandidacy \r\n RESULT = mStudent.cursor( \"DegreeCandidacy\" ).setFirst().toInt();\r\n //:INCLUDE mStudent.CurrentDegreeCandidacy FROM mStudent.DegreeCandidacy \r\n RESULT = IncludeSubobjectFromSubobject( mStudent, \"CurrentDegreeCandidacy\", mStudent, \"DegreeCandidacy\", zPOS_AFTER );\r\n //:IF mStudent.DC_StudentMajorDegreeTrack EXISTS \r\n lTempInteger_14 = CheckExistenceOfEntity( mStudent, \"DC_StudentMajorDegreeTrack\" );\r\n if ( lTempInteger_14 == 0 )\r\n { \r\n //:INCLUDE mStudent.CDC_StudentMajorDegreeTrack FROM mStudent.DC_StudentMajorDegreeTrack \r\n RESULT = IncludeSubobjectFromSubobject( mStudent, \"CDC_StudentMajorDegreeTrack\", mStudent, \"DC_StudentMajorDegreeTrack\", zPOS_AFTER );\r\n } \r\n\r\n //:END\r\n } \r\n\r\n //:END\r\n\r\n //:// Drop any Private Categories that are not from this Functional Area.\r\n //:nRC = GetViewByName( sAppMgr, \"sAppMgr\", mStudent, zLEVEL_APPLICATION )\r\n nRC = GetViewByName( sAppMgr, \"sAppMgr\", mStudent, zLEVEL_APPLICATION );\r\n //:IF nRC >= 0 \r\n if ( nRC >= 0 )\r\n { \r\n //:FOR EACH mStudent.Category \r\n RESULT = mStudent.cursor( \"Category\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n //:IF mStudent.Category.PrivateToFunctionalAreaFlag = \"Y\"\r\n if ( CompareAttributeToString( mStudent, \"Category\", \"PrivateToFunctionalAreaFlag\", \"Y\" ) == 0 )\r\n { \r\n //:IF mStudent.Category.FunctionalArea != sAppMgr.FunctionalArea.FunctionalAreaName \r\n if ( CompareAttributeToAttribute( mStudent, \"Category\", \"FunctionalArea\", sAppMgr, \"FunctionalArea\", \"FunctionalAreaName\" ) != 0 )\r\n { \r\n //:DropEntity( mStudent, \"Category\", zREPOS_NONE )\r\n DropEntity( mStudent, \"Category\", zREPOS_NONE );\r\n } \r\n\r\n //:END\r\n } \r\n\r\n RESULT = mStudent.cursor( \"Category\" ).setNext().toInt();\r\n //:END\r\n } \r\n\r\n //:END\r\n } \r\n\r\n //:END\r\n\r\n //:// Keep Legal Name for change comparison on COMMIT.\r\n //:mStudent.Student.wOriginalLegalName = mStudent.Student.LegalName\r\n SetAttributeFromAttribute( mStudent, \"Student\", \"wOriginalLegalName\", mStudent, \"Student\", \"LegalName\" );\r\n break ;\r\n\r\n //: /* end zOCE_ACTIVATE */\r\n //:OF zOCE_ACTIVATE_EMPTY:\r\n case zOCE_ACTIVATE_EMPTY :\r\n break ;\r\n\r\n //: /* end zOCE_ACTIVATE_EMPTY */\r\n //:OF zOCE_COMMIT:\r\n case zOCE_COMMIT :\r\n\r\n \t /*\r\n //:IF mStudent.Student EXISTS\r\n lTempInteger_15 = CheckExistenceOfEntity( mStudent, \"Student\" );\r\n if ( lTempInteger_15 == 0 )\r\n { \r\n\r\n //:// If the Legal Name has been changed, create change entry.\r\n //:IF mStudent.Student.wOriginalLegalName != mStudent.Student.LegalName\r\n if ( CompareAttributeToAttribute( mStudent, \"Student\", \"wOriginalLegalName\", mStudent, \"Student\", \"LegalName\" ) != 0 )\r\n { \r\n //:CREATE ENTITY mStudent.PersonalDataModification \r\n RESULT = CreateEntity( mStudent, \"PersonalDataModification\", zPOS_AFTER );\r\n //:mStudent.PersonalDataModification.OriginalLegalName = mStudent.Student.wOriginalLegalName \r\n SetAttributeFromAttribute( mStudent, \"PersonalDataModification\", \"OriginalLegalName\", mStudent, \"Student\", \"wOriginalLegalName\" );\r\n //:mStudent.PersonalDataModification.NewLegalName = mStudent.Student.LegalName \r\n SetAttributeFromAttribute( mStudent, \"PersonalDataModification\", \"NewLegalName\", mStudent, \"Student\", \"LegalName\" );\r\n //:SetAttributeFromCurrentDateTime( mStudent, \"PersonalDataModification\", \"ModifiedDateTime\" )\r\n //:GetViewByName( mUser, \"mUser\", mStudent, zLEVEL_APPLICATION )\r\n GetViewByName( mUser, \"mUser\", mStudent, zLEVEL_APPLICATION );\r\n //:INCLUDE mStudent.PersonalDataModificationUser FROM mUser.User\r\n RESULT = IncludeSubobjectFromSubobject( mStudent, \"PersonalDataModificationUser\", mUser, \"User\", zPOS_AFTER );\r\n //:mStudent.Student.wOriginalLegalName = mStudent.Student.LegalName\r\n SetAttributeFromAttribute( mStudent, \"Student\", \"wOriginalLegalName\", mStudent, \"Student\", \"LegalName\" );\r\n } \r\n\r\n //:END\r\n\r\n //:// Set Graduation Dates in StudentMajorDegreeTrack entries, if a Graduation Date has been set in associated Degree Candidacy.\r\n //:CreateViewFromView( mStudentT, mStudent )\r\n CreateViewFromView( mStudentT, mStudent );\r\n //:FOR EACH mStudentT.StudentMajorDegreeTrack \r\n RESULT = mStudentT.cursor( \"StudentMajorDegreeTrack\" ).setFirst().toInt();\r\n while ( RESULT > zCURSOR_UNCHANGED )\r\n { \r\n //:IF mStudentT.SMDT_GraduationDate EXISTS\r\n lTempInteger_16 = CheckExistenceOfEntity( mStudentT, \"SMDT_GraduationDate\" );\r\n if ( lTempInteger_16 == 0 )\r\n { \r\n //:IF mStudentT.StudentMajorDegreeTrack.GraduationDate != mStudentT.SMDT_GraduationDate.Date \r\n if ( CompareAttributeToAttribute( mStudentT, \"StudentMajorDegreeTrack\", \"GraduationDate\", mStudentT, \"SMDT_GraduationDate\", \"Date\" ) != 0 )\r\n { \r\n //:mStudentT.StudentMajorDegreeTrack.GraduationDate = mStudentT.SMDT_GraduationDate.Date\r\n SetAttributeFromAttribute( mStudentT, \"StudentMajorDegreeTrack\", \"GraduationDate\", mStudentT, \"SMDT_GraduationDate\", \"Date\" );\r\n } \r\n\r\n //:END\r\n } \r\n\r\n RESULT = mStudentT.cursor( \"StudentMajorDegreeTrack\" ).setNext().toInt();\r\n //:END\r\n } \r\n\r\n //:END\r\n //:DropView( mStudentT )\r\n DropView( mStudentT );\r\n\r\n //:// For students that ARE NOT Undergraduate Main Campus, always set ResidencyStatus to Commuter.\r\n //:szCurrentAcademicLevel = mStudent.Student.CurrentLevel\r\n {MutableInt mi_lTempInteger_17 = new MutableInt( lTempInteger_17 );\r\n StringBuilder sb_szCurrentAcademicLevel;\r\n if ( szCurrentAcademicLevel == null )\r\n sb_szCurrentAcademicLevel = new StringBuilder( 32 );\r\n else\r\n sb_szCurrentAcademicLevel = new StringBuilder( szCurrentAcademicLevel );\r\n GetVariableFromAttribute( sb_szCurrentAcademicLevel, mi_lTempInteger_17, 'S', 2, mStudent, \"Student\", \"CurrentLevel\", \"\", 0 );\r\n lTempInteger_17 = mi_lTempInteger_17.intValue( );\r\n szCurrentAcademicLevel = sb_szCurrentAcademicLevel.toString( );}\r\n //:IF mStudent.AdministrativeDivision.ID = 1 AND\r\n //:( szCurrentAcademicLevel = \"1\" OR // Freshman\r\n //:szCurrentAcademicLevel = \"2\" OR // Sophomore\r\n //:szCurrentAcademicLevel = \"3\" OR // Junior\r\n //:szCurrentAcademicLevel = \"4\" OR // Senior\r\n //:szCurrentAcademicLevel = \"7\" OR // Special\r\n //:szCurrentAcademicLevel = \"8\" OR // Freshman-2\r\n //:szCurrentAcademicLevel = \"9\" ) // 5-Yr Senior\r\n if ( CompareAttributeToInteger( mStudent, \"AdministrativeDivision\", \"ID\", 1 ) == 0 && ( ZeidonStringCompare( szCurrentAcademicLevel, 1, 0, \"1\", 1, 0, 2 ) == 0 || ZeidonStringCompare( szCurrentAcademicLevel, 1, 0, \"2\", 1, 0, 2 ) == 0 ||\r\n ZeidonStringCompare( szCurrentAcademicLevel, 1, 0, \"3\", 1, 0, 2 ) == 0 || ZeidonStringCompare( szCurrentAcademicLevel, 1, 0, \"4\", 1, 0, 2 ) == 0 || ZeidonStringCompare( szCurrentAcademicLevel, 1, 0, \"7\", 1, 0, 2 ) == 0 ||\r\n ZeidonStringCompare( szCurrentAcademicLevel, 1, 0, \"8\", 1, 0, 2 ) == 0 || ZeidonStringCompare( szCurrentAcademicLevel, 1, 0, \"9\", 1, 0, 2 ) == 0 ) )\r\n { \r\n\r\n //:// This is case where student is Main Campus undergraduate.\r\n\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:IF mStudent.Student.ResidencyStatus != \"C\"\r\n if ( CompareAttributeToString( mStudent, \"Student\", \"ResidencyStatus\", \"C\" ) != 0 )\r\n { \r\n //:mStudent.Student.ResidencyStatus = \"C\"\r\n SetAttributeFromString( mStudent, \"Student\", \"ResidencyStatus\", \"C\" );\r\n } \r\n\r\n //:END\r\n } \r\n\r\n //:END\r\n\r\n //:// Automatically set Student graduation date attributes.\r\n //:IF mStudent.Student.UndergradGraduationDate = \"\"\r\n if ( CompareAttributeToString( mStudent, \"Student\", \"UndergradGraduationDate\", \"\" ) == 0 )\r\n { \r\n //:CreateViewFromView( mStudentT, mStudent )\r\n CreateViewFromView( mStudentT, mStudent );\r\n //:SET CURSOR FIRST mStudentT.DegreeMajorCollege WHERE mStudentT.DegreeMajorCollege.Type = \"U\"\r\n RESULT = mStudentT.cursor( \"DegreeMajorCollege\" ).setFirst( \"Type\", \"U\" ).toInt();\r\n //:IF RESULT >= zCURSOR_SET\r\n if ( RESULT >= zCURSOR_SET )\r\n { \r\n //:mStudent.Student.UndergradGraduationDate = mStudentT.StudentMajorDegreeTrack.GraduationDate \r\n SetAttributeFromAttribute( mStudent, \"Student\", \"UndergradGraduationDate\", mStudentT, \"StudentMajorDegreeTrack\", \"GraduationDate\" );\r\n } \r\n\r\n //:END\r\n //:DropView( mStudentT )\r\n DropView( mStudentT );\r\n } \r\n\r\n //:END\r\n //:IF mStudent.Student.GradGraduationDate = \"\"\r\n if ( CompareAttributeToString( mStudent, \"Student\", \"GradGraduationDate\", \"\" ) == 0 )\r\n { \r\n //:CreateViewFromView( mStudentT, mStudent )\r\n CreateViewFromView( mStudentT, mStudent );\r\n //:SET CURSOR FIRST mStudentT.DegreeMajorCollege WHERE mStudentT.DegreeMajorCollege.Type = \"G\"\r\n RESULT = mStudentT.cursor( \"DegreeMajorCollege\" ).setFirst( \"Type\", \"G\" ).toInt();\r\n //:IF RESULT >= zCURSOR_SET\r\n if ( RESULT >= zCURSOR_SET )\r\n { \r\n //:mStudent.Student.GradGraduationDate = mStudentT.StudentMajorDegreeTrack.GraduationDate \r\n SetAttributeFromAttribute( mStudent, \"Student\", \"GradGraduationDate\", mStudentT, \"StudentMajorDegreeTrack\", \"GraduationDate\" );\r\n } \r\n\r\n //:END\r\n //:DropView( mStudentT )\r\n DropView( mStudentT );\r\n } \r\n\r\n //:END\r\n\r\n //:// If the Anticipated Grad Date exists, force the Clearing House Grad Date to that value.\r\n //:IF mStudent.DC_AnticipatedGraduationDate EXISTS\r\n lTempInteger_18 = CheckExistenceOfEntity( mStudent, \"DC_AnticipatedGraduationDate\" );\r\n if ( lTempInteger_18 == 0 )\r\n { \r\n //:mStudent.Student.ClearingHouseGradDate = mStudent.DC_AnticipatedGraduationDate.Date \r\n SetAttributeFromAttribute( mStudent, \"Student\", \"ClearingHouseGradDate\", mStudent, \"DC_AnticipatedGraduationDate\", \"Date\" );\r\n } \r\n\r\n //:END\r\n\r\n //:// REGULAR CHANGE LOG\r\n //:// Create the Change Log entry.\r\n //:GenerateTransactionEntryWDesc( mStudent, \"General Student Data\" )\r\n\r\n //:// STUDENT CHANGE LOG AND HISTORY\r\n //:// Generate Student Change Log entries, if something has changed. We will determine this by looking at\r\n //:// the last StudentChangeHistory entry and comparing its values.\r\n //:szAnticipatedGradPeriod = \"\"\r\n {StringBuilder sb_szAnticipatedGradPeriod;\r\n if ( szAnticipatedGradPeriod == null )\r\n sb_szAnticipatedGradPeriod = new StringBuilder( 32 );\r\n else\r\n sb_szAnticipatedGradPeriod = new StringBuilder( szAnticipatedGradPeriod );\r\n ZeidonStringCopy( sb_szAnticipatedGradPeriod, 1, 0, \"\", 1, 0, 51 );\r\n szAnticipatedGradPeriod = sb_szAnticipatedGradPeriod.toString( );}\r\n //:IF mStudent.DC_AnticipatedGraduationDate EXISTS\r\n lTempInteger_19 = CheckExistenceOfEntity( mStudent, \"DC_AnticipatedGraduationDate\" );\r\n if ( lTempInteger_19 == 0 )\r\n { \r\n //:szAnticipatedGradPeriod = mStudent.DC_AnticipatedGraduationDate.Name \r\n {MutableInt mi_lTempInteger_20 = new MutableInt( lTempInteger_20 );\r\n StringBuilder sb_szAnticipatedGradPeriod;\r\n if ( szAnticipatedGradPeriod == null )\r\n sb_szAnticipatedGradPeriod = new StringBuilder( 32 );\r\n else\r\n sb_szAnticipatedGradPeriod = new StringBuilder( szAnticipatedGradPeriod );\r\n GetVariableFromAttribute( sb_szAnticipatedGradPeriod, mi_lTempInteger_20, 'S', 51, mStudent, \"DC_AnticipatedGraduationDate\", \"Name\", \"\", 0 );\r\n lTempInteger_20 = mi_lTempInteger_20.intValue( );\r\n szAnticipatedGradPeriod = sb_szAnticipatedGradPeriod.toString( );}\r\n } \r\n\r\n //:END\r\n //:ACTIVATE mStuChgH WHERE mStuChgH.StudentChangeHistory.LastDate = \"\"\r\n //: AND mStuChgH.Student.ID = mStudent.Student.ID \r\n {MutableInt mi_lTempInteger_21 = new MutableInt( lTempInteger_21 );\r\n GetIntegerFromAttribute( mi_lTempInteger_21, mStudent, \"Student\", \"ID\" );\r\n lTempInteger_21 = mi_lTempInteger_21.intValue( );}\r\n omStudent_fnLocalBuildQual_0( mStudent, vTempViewVar_0, lTempInteger_21 );\r\n RESULT = ActivateObjectInstance( mStuChgH, \"mStuChgH\", mStudent, vTempViewVar_0, zSINGLE );\r\n DropView( vTempViewVar_0 );\r\n //:IF RESULT < 0\r\n if ( RESULT < 0 )\r\n { \r\n //:// Since no history record has yet been created, create it here.\r\n //:ACTIVATE mStuChgH EMPTY \r\n RESULT = ActivateEmptyObjectInstance( mStuChgH, \"mStuChgH\", mStudent, zSINGLE );\r\n //:CREATE ENTITY mStuChgH.StudentChangeHistory \r\n RESULT = CreateEntity( mStuChgH, \"StudentChangeHistory\", zPOS_AFTER );\r\n //:mStuChgH.StudentChangeHistory.StudentStatus = mStudent.Student.Status \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"StudentStatus\", mStudent, \"Student\", \"Status\" );\r\n //:mStuChgH.StudentChangeHistory.Classification = mStudent.Student.CurrentLevel \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"Classification\", mStudent, \"Student\", \"CurrentLevel\" );\r\n //:mStuChgH.StudentChangeHistory.ResidencyStatus = mStudent.Student.ResidencyStatus \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"ResidencyStatus\", mStudent, \"Student\", \"ResidencyStatus\" );\r\n //:mStuChgH.StudentChangeHistory.FinancialHoldFlag = mStudent.Student.FinancialHoldFlag \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"FinancialHoldFlag\", mStudent, \"Student\", \"FinancialHoldFlag\" );\r\n //:mStuChgH.StudentChangeHistory.AdministrativeDivisionName = mStudent.AdministrativeDivision.Name \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"AdministrativeDivisionName\", mStudent, \"AdministrativeDivision\", \"Name\" );\r\n //:mStuChgH.StudentChangeHistory.AnticipatedGradPeriod = szAnticipatedGradPeriod\r\n SetAttributeFromString( mStuChgH, \"StudentChangeHistory\", \"AnticipatedGradPeriod\", szAnticipatedGradPeriod );\r\n //:SetAttributeFromCurrentDateTime( mStuChgH, \"StudentChangeHistory\", \"FirstDate\" ) \r\n //:INCLUDE mStuChgH.Student FROM mStudent.Student\r\n RESULT = IncludeSubobjectFromSubobject( mStuChgH, \"Student\", mStudent, \"Student\", zPOS_AFTER );\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:// There is a History entry, so see if anything has changed.\r\n //:szChangeFlag = \"\"\r\n {StringBuilder sb_szChangeFlag;\r\n if ( szChangeFlag == null )\r\n sb_szChangeFlag = new StringBuilder( 32 );\r\n else\r\n sb_szChangeFlag = new StringBuilder( szChangeFlag );\r\n ZeidonStringCopy( sb_szChangeFlag, 1, 0, \"\", 1, 0, 2 );\r\n szChangeFlag = sb_szChangeFlag.toString( );}\r\n //:GetViewByName( mUser, \"mUser\", mStudent, zLEVEL_APPLICATION )\r\n GetViewByName( mUser, \"mUser\", mStudent, zLEVEL_APPLICATION );\r\n\r\n //:// Student Status\r\n //:IF mStuChgH.StudentChangeHistory.StudentStatus != mStudent.Student.Status \r\n if ( CompareAttributeToAttribute( mStuChgH, \"StudentChangeHistory\", \"StudentStatus\", mStudent, \"Student\", \"Status\" ) != 0 )\r\n { \r\n //:ACTIVATE mStuChgL EMPTY \r\n RESULT = ActivateEmptyObjectInstance( mStuChgL, \"mStuChgL\", mStudent, zSINGLE );\r\n //:CREATE ENTITY mStuChgL.StudentChangeLog \r\n RESULT = CreateEntity( mStuChgL, \"StudentChangeLog\", zPOS_AFTER );\r\n //:GetStringFromAttributeByContext( szOriginalValue, mStuChgH, \"StudentChangeHistory\", \"StudentStatus\", \"\", 50 )\r\n {StringBuilder sb_szOriginalValue;\r\n if ( szOriginalValue == null )\r\n sb_szOriginalValue = new StringBuilder( 32 );\r\n else\r\n sb_szOriginalValue = new StringBuilder( szOriginalValue );\r\n GetStringFromAttributeByContext( sb_szOriginalValue, mStuChgH, \"StudentChangeHistory\", \"StudentStatus\", \"\", 50 );\r\n szOriginalValue = sb_szOriginalValue.toString( );}\r\n //:GetStringFromAttributeByContext( szNewValue, mStudent, \"Student\", \"Status\", \"\", 50 )\r\n {StringBuilder sb_szNewValue;\r\n if ( szNewValue == null )\r\n sb_szNewValue = new StringBuilder( 32 );\r\n else\r\n sb_szNewValue = new StringBuilder( szNewValue );\r\n GetStringFromAttributeByContext( sb_szNewValue, mStudent, \"Student\", \"Status\", \"\", 50 );\r\n szNewValue = sb_szNewValue.toString( );}\r\n //:mStuChgL.StudentChangeLog.AttributeName = \"StudentStatus\"\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"AttributeName\", \"StudentStatus\" );\r\n //:mStuChgL.StudentChangeLog.OriginalValue = szOriginalValue\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"OriginalValue\", szOriginalValue );\r\n //:mStuChgL.StudentChangeLog.NewValue = szNewValue\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"NewValue\", szNewValue );\r\n //:mStuChgL.StudentChangeLog.UserName = mUser.User.UserName \r\n SetAttributeFromAttribute( mStuChgL, \"StudentChangeLog\", \"UserName\", mUser, \"User\", \"UserName\" );\r\n //:SetAttributeFromCurrentDateTime( mStuChgL, \"StudentChangeLog\", \"ModificationDate\" )\r\n //:INCLUDE mStuChgL.Student FROM mStudent.Student\r\n RESULT = IncludeSubobjectFromSubobject( mStuChgL, \"Student\", mStudent, \"Student\", zPOS_AFTER );\r\n //:COMMIT mStuChgL\r\n RESULT = CommitObjectInstance( mStuChgL );\r\n //:DropObjectInstance( mStuChgL )\r\n DropObjectInstance( mStuChgL );\r\n //:szChangeFlag = \"Y\"\r\n {StringBuilder sb_szChangeFlag;\r\n if ( szChangeFlag == null )\r\n sb_szChangeFlag = new StringBuilder( 32 );\r\n else\r\n sb_szChangeFlag = new StringBuilder( szChangeFlag );\r\n ZeidonStringCopy( sb_szChangeFlag, 1, 0, \"Y\", 1, 0, 2 );\r\n szChangeFlag = sb_szChangeFlag.toString( );}\r\n } \r\n\r\n //:END\r\n\r\n //:// Classification (CurrentLevel)\r\n //:IF mStuChgH.StudentChangeHistory.Classification != mStudent.Student.CurrentLevel \r\n if ( CompareAttributeToAttribute( mStuChgH, \"StudentChangeHistory\", \"Classification\", mStudent, \"Student\", \"CurrentLevel\" ) != 0 )\r\n { \r\n //:ACTIVATE mStuChgL EMPTY \r\n RESULT = ActivateEmptyObjectInstance( mStuChgL, \"mStuChgL\", mStudent, zSINGLE );\r\n //:CREATE ENTITY mStuChgL.StudentChangeLog \r\n RESULT = CreateEntity( mStuChgL, \"StudentChangeLog\", zPOS_AFTER );\r\n //:GetStringFromAttributeByContext( szOriginalValue, mStuChgH, \"StudentChangeHistory\", \"Classification\", \"\", 50 )\r\n {StringBuilder sb_szOriginalValue;\r\n if ( szOriginalValue == null )\r\n sb_szOriginalValue = new StringBuilder( 32 );\r\n else\r\n sb_szOriginalValue = new StringBuilder( szOriginalValue );\r\n GetStringFromAttributeByContext( sb_szOriginalValue, mStuChgH, \"StudentChangeHistory\", \"Classification\", \"\", 50 );\r\n szOriginalValue = sb_szOriginalValue.toString( );}\r\n //:GetStringFromAttributeByContext( szNewValue, mStudent, \"Student\", \"CurrentLevel\", \"\", 50 )\r\n {StringBuilder sb_szNewValue;\r\n if ( szNewValue == null )\r\n sb_szNewValue = new StringBuilder( 32 );\r\n else\r\n sb_szNewValue = new StringBuilder( szNewValue );\r\n GetStringFromAttributeByContext( sb_szNewValue, mStudent, \"Student\", \"CurrentLevel\", \"\", 50 );\r\n szNewValue = sb_szNewValue.toString( );}\r\n //:mStuChgL.StudentChangeLog.AttributeName = \"Classification\"\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"AttributeName\", \"Classification\" );\r\n //:mStuChgL.StudentChangeLog.OriginalValue = szOriginalValue\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"OriginalValue\", szOriginalValue );\r\n //:mStuChgL.StudentChangeLog.NewValue = szNewValue\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"NewValue\", szNewValue );\r\n //:mStuChgL.StudentChangeLog.UserName = mUser.User.UserName \r\n SetAttributeFromAttribute( mStuChgL, \"StudentChangeLog\", \"UserName\", mUser, \"User\", \"UserName\" );\r\n //:SetAttributeFromCurrentDateTime( mStuChgL, \"StudentChangeLog\", \"ModificationDate\" )\r\n //:INCLUDE mStuChgL.Student FROM mStudent.Student\r\n RESULT = IncludeSubobjectFromSubobject( mStuChgL, \"Student\", mStudent, \"Student\", zPOS_AFTER );\r\n //:COMMIT mStuChgL\r\n RESULT = CommitObjectInstance( mStuChgL );\r\n //:DropObjectInstance( mStuChgL )\r\n DropObjectInstance( mStuChgL );\r\n //:szChangeFlag = \"Y\"\r\n {StringBuilder sb_szChangeFlag;\r\n if ( szChangeFlag == null )\r\n sb_szChangeFlag = new StringBuilder( 32 );\r\n else\r\n sb_szChangeFlag = new StringBuilder( szChangeFlag );\r\n ZeidonStringCopy( sb_szChangeFlag, 1, 0, \"Y\", 1, 0, 2 );\r\n szChangeFlag = sb_szChangeFlag.toString( );}\r\n } \r\n\r\n //:END\r\n\r\n //:// Residency Status\r\n //:IF mStuChgH.StudentChangeHistory.ResidencyStatus != mStudent.Student.ResidencyStatus \r\n if ( CompareAttributeToAttribute( mStuChgH, \"StudentChangeHistory\", \"ResidencyStatus\", mStudent, \"Student\", \"ResidencyStatus\" ) != 0 )\r\n { \r\n //:ACTIVATE mStuChgL EMPTY \r\n RESULT = ActivateEmptyObjectInstance( mStuChgL, \"mStuChgL\", mStudent, zSINGLE );\r\n //:CREATE ENTITY mStuChgL.StudentChangeLog \r\n RESULT = CreateEntity( mStuChgL, \"StudentChangeLog\", zPOS_AFTER );\r\n //:GetStringFromAttributeByContext( szOriginalValue, mStuChgH, \"StudentChangeHistory\", \"ResidencyStatus\", \"\", 50 )\r\n {StringBuilder sb_szOriginalValue;\r\n if ( szOriginalValue == null )\r\n sb_szOriginalValue = new StringBuilder( 32 );\r\n else\r\n sb_szOriginalValue = new StringBuilder( szOriginalValue );\r\n GetStringFromAttributeByContext( sb_szOriginalValue, mStuChgH, \"StudentChangeHistory\", \"ResidencyStatus\", \"\", 50 );\r\n szOriginalValue = sb_szOriginalValue.toString( );}\r\n //:GetStringFromAttributeByContext( szNewValue, mStudent, \"Student\", \"ResidencyStatus\", \"\", 50 )\r\n {StringBuilder sb_szNewValue;\r\n if ( szNewValue == null )\r\n sb_szNewValue = new StringBuilder( 32 );\r\n else\r\n sb_szNewValue = new StringBuilder( szNewValue );\r\n GetStringFromAttributeByContext( sb_szNewValue, mStudent, \"Student\", \"ResidencyStatus\", \"\", 50 );\r\n szNewValue = sb_szNewValue.toString( );}\r\n //:mStuChgL.StudentChangeLog.AttributeName = \"ResidencyStatus\"\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"AttributeName\", \"ResidencyStatus\" );\r\n //:mStuChgL.StudentChangeLog.OriginalValue = szOriginalValue\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"OriginalValue\", szOriginalValue );\r\n //:mStuChgL.StudentChangeLog.NewValue = szNewValue\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"NewValue\", szNewValue );\r\n //:mStuChgL.StudentChangeLog.UserName = mUser.User.UserName \r\n SetAttributeFromAttribute( mStuChgL, \"StudentChangeLog\", \"UserName\", mUser, \"User\", \"UserName\" );\r\n //:SetAttributeFromCurrentDateTime( mStuChgL, \"StudentChangeLog\", \"ModificationDate\" )\r\n //:INCLUDE mStuChgL.Student FROM mStudent.Student\r\n RESULT = IncludeSubobjectFromSubobject( mStuChgL, \"Student\", mStudent, \"Student\", zPOS_AFTER );\r\n //:COMMIT mStuChgL\r\n RESULT = CommitObjectInstance( mStuChgL );\r\n //:DropObjectInstance( mStuChgL )\r\n DropObjectInstance( mStuChgL );\r\n //:szChangeFlag = \"Y\"\r\n {StringBuilder sb_szChangeFlag;\r\n if ( szChangeFlag == null )\r\n sb_szChangeFlag = new StringBuilder( 32 );\r\n else\r\n sb_szChangeFlag = new StringBuilder( szChangeFlag );\r\n ZeidonStringCopy( sb_szChangeFlag, 1, 0, \"Y\", 1, 0, 2 );\r\n szChangeFlag = sb_szChangeFlag.toString( );}\r\n } \r\n\r\n //:END\r\n\r\n //:// Financial Hold Flag\r\n //:IF mStuChgH.StudentChangeHistory.FinancialHoldFlag != mStudent.Student.FinancialHoldFlag \r\n if ( CompareAttributeToAttribute( mStuChgH, \"StudentChangeHistory\", \"FinancialHoldFlag\", mStudent, \"Student\", \"FinancialHoldFlag\" ) != 0 )\r\n { \r\n //:ACTIVATE mStuChgL EMPTY \r\n RESULT = ActivateEmptyObjectInstance( mStuChgL, \"mStuChgL\", mStudent, zSINGLE );\r\n //:CREATE ENTITY mStuChgL.StudentChangeLog \r\n RESULT = CreateEntity( mStuChgL, \"StudentChangeLog\", zPOS_AFTER );\r\n //:GetStringFromAttributeByContext( szOriginalValue, mStuChgH, \"StudentChangeHistory\", \"FinancialHoldFlag\", \"\", 50 )\r\n {StringBuilder sb_szOriginalValue;\r\n if ( szOriginalValue == null )\r\n sb_szOriginalValue = new StringBuilder( 32 );\r\n else\r\n sb_szOriginalValue = new StringBuilder( szOriginalValue );\r\n GetStringFromAttributeByContext( sb_szOriginalValue, mStuChgH, \"StudentChangeHistory\", \"FinancialHoldFlag\", \"\", 50 );\r\n szOriginalValue = sb_szOriginalValue.toString( );}\r\n //:GetStringFromAttributeByContext( szNewValue, mStudent, \"Student\", \"FinancialHoldFlag\", \"\", 50 )\r\n {StringBuilder sb_szNewValue;\r\n if ( szNewValue == null )\r\n sb_szNewValue = new StringBuilder( 32 );\r\n else\r\n sb_szNewValue = new StringBuilder( szNewValue );\r\n GetStringFromAttributeByContext( sb_szNewValue, mStudent, \"Student\", \"FinancialHoldFlag\", \"\", 50 );\r\n szNewValue = sb_szNewValue.toString( );}\r\n //:mStuChgL.StudentChangeLog.AttributeName = \"FinancialHoldFlag\"\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"AttributeName\", \"FinancialHoldFlag\" );\r\n //:mStuChgL.StudentChangeLog.OriginalValue = szOriginalValue\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"OriginalValue\", szOriginalValue );\r\n //:mStuChgL.StudentChangeLog.NewValue = szNewValue\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"NewValue\", szNewValue );\r\n //:mStuChgL.StudentChangeLog.UserName = mUser.User.UserName \r\n SetAttributeFromAttribute( mStuChgL, \"StudentChangeLog\", \"UserName\", mUser, \"User\", \"UserName\" );\r\n //:SetAttributeFromCurrentDateTime( mStuChgL, \"StudentChangeLog\", \"ModificationDate\" )\r\n //:INCLUDE mStuChgL.Student FROM mStudent.Student\r\n RESULT = IncludeSubobjectFromSubobject( mStuChgL, \"Student\", mStudent, \"Student\", zPOS_AFTER );\r\n //:COMMIT mStuChgL\r\n RESULT = CommitObjectInstance( mStuChgL );\r\n //:DropObjectInstance( mStuChgL )\r\n DropObjectInstance( mStuChgL );\r\n //:szChangeFlag = \"Y\"\r\n {StringBuilder sb_szChangeFlag;\r\n if ( szChangeFlag == null )\r\n sb_szChangeFlag = new StringBuilder( 32 );\r\n else\r\n sb_szChangeFlag = new StringBuilder( szChangeFlag );\r\n ZeidonStringCopy( sb_szChangeFlag, 1, 0, \"Y\", 1, 0, 2 );\r\n szChangeFlag = sb_szChangeFlag.toString( );}\r\n } \r\n\r\n //:END\r\n\r\n //:// Administrative Division\r\n //:IF mStuChgH.StudentChangeHistory.AdministrativeDivisionName != mStudent.AdministrativeDivision.Name \r\n if ( CompareAttributeToAttribute( mStuChgH, \"StudentChangeHistory\", \"AdministrativeDivisionName\", mStudent, \"AdministrativeDivision\", \"Name\" ) != 0 )\r\n { \r\n //:ACTIVATE mStuChgL EMPTY \r\n RESULT = ActivateEmptyObjectInstance( mStuChgL, \"mStuChgL\", mStudent, zSINGLE );\r\n //:CREATE ENTITY mStuChgL.StudentChangeLog \r\n RESULT = CreateEntity( mStuChgL, \"StudentChangeLog\", zPOS_AFTER );\r\n //:mStuChgL.StudentChangeLog.AttributeName = \"AdministrativeDivisionName\"\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"AttributeName\", \"AdministrativeDivisionName\" );\r\n //:mStuChgL.StudentChangeLog.OriginalValue = mStuChgH.StudentChangeHistory.AdministrativeDivisionName\r\n SetAttributeFromAttribute( mStuChgL, \"StudentChangeLog\", \"OriginalValue\", mStuChgH, \"StudentChangeHistory\", \"AdministrativeDivisionName\" );\r\n //:mStuChgL.StudentChangeLog.NewValue = mStudent.AdministrativeDivision.Name \r\n SetAttributeFromAttribute( mStuChgL, \"StudentChangeLog\", \"NewValue\", mStudent, \"AdministrativeDivision\", \"Name\" );\r\n //:mStuChgL.StudentChangeLog.UserName = mUser.User.UserName \r\n SetAttributeFromAttribute( mStuChgL, \"StudentChangeLog\", \"UserName\", mUser, \"User\", \"UserName\" );\r\n //:SetAttributeFromCurrentDateTime( mStuChgL, \"StudentChangeLog\", \"ModificationDate\" )\r\n //:INCLUDE mStuChgL.Student FROM mStudent.Student\r\n RESULT = IncludeSubobjectFromSubobject( mStuChgL, \"Student\", mStudent, \"Student\", zPOS_AFTER );\r\n //:COMMIT mStuChgL\r\n RESULT = CommitObjectInstance( mStuChgL );\r\n //:DropObjectInstance( mStuChgL )\r\n DropObjectInstance( mStuChgL );\r\n //:szChangeFlag = \"Y\"\r\n {StringBuilder sb_szChangeFlag;\r\n if ( szChangeFlag == null )\r\n sb_szChangeFlag = new StringBuilder( 32 );\r\n else\r\n sb_szChangeFlag = new StringBuilder( szChangeFlag );\r\n ZeidonStringCopy( sb_szChangeFlag, 1, 0, \"Y\", 1, 0, 2 );\r\n szChangeFlag = sb_szChangeFlag.toString( );}\r\n } \r\n\r\n //:END\r\n\r\n //:// Anticipated Graduation Period\r\n //:IF mStuChgH.StudentChangeHistory.AnticipatedGradPeriod != szAnticipatedGradPeriod\r\n if ( CompareAttributeToString( mStuChgH, \"StudentChangeHistory\", \"AnticipatedGradPeriod\", szAnticipatedGradPeriod ) != 0 )\r\n { \r\n //:ACTIVATE mStuChgL EMPTY \r\n RESULT = ActivateEmptyObjectInstance( mStuChgL, \"mStuChgL\", mStudent, zSINGLE );\r\n //:CREATE ENTITY mStuChgL.StudentChangeLog \r\n RESULT = CreateEntity( mStuChgL, \"StudentChangeLog\", zPOS_AFTER );\r\n //:mStuChgL.StudentChangeLog.AttributeName = \"AnticipatedGradPeriod\"\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"AttributeName\", \"AnticipatedGradPeriod\" );\r\n //:mStuChgL.StudentChangeLog.OriginalValue = mStuChgH.StudentChangeHistory.AnticipatedGradPeriod\r\n SetAttributeFromAttribute( mStuChgL, \"StudentChangeLog\", \"OriginalValue\", mStuChgH, \"StudentChangeHistory\", \"AnticipatedGradPeriod\" );\r\n //:mStuChgL.StudentChangeLog.NewValue = szAnticipatedGradPeriod\r\n SetAttributeFromString( mStuChgL, \"StudentChangeLog\", \"NewValue\", szAnticipatedGradPeriod );\r\n //:mStuChgL.StudentChangeLog.UserName = mUser.User.UserName \r\n SetAttributeFromAttribute( mStuChgL, \"StudentChangeLog\", \"UserName\", mUser, \"User\", \"UserName\" );\r\n //:SetAttributeFromCurrentDateTime( mStuChgL, \"StudentChangeLog\", \"ModificationDate\" )\r\n //:INCLUDE mStuChgL.Student FROM mStudent.Student\r\n RESULT = IncludeSubobjectFromSubobject( mStuChgL, \"Student\", mStudent, \"Student\", zPOS_AFTER );\r\n //:COMMIT mStuChgL\r\n RESULT = CommitObjectInstance( mStuChgL );\r\n //:DropObjectInstance( mStuChgL )\r\n DropObjectInstance( mStuChgL );\r\n //:szChangeFlag = \"Y\"\r\n {StringBuilder sb_szChangeFlag;\r\n if ( szChangeFlag == null )\r\n sb_szChangeFlag = new StringBuilder( 32 );\r\n else\r\n sb_szChangeFlag = new StringBuilder( szChangeFlag );\r\n ZeidonStringCopy( sb_szChangeFlag, 1, 0, \"Y\", 1, 0, 2 );\r\n szChangeFlag = sb_szChangeFlag.toString( );}\r\n } \r\n\r\n //:END\r\n\r\n //:// If any of the key attributes have changed, then we will:\r\n //:// 1. Create a new Student Change History entry, if the current one was not created today.\r\n //:// 2. Update the current Student Change History entry, if it was created today.\r\n //:IF szChangeFlag = \"Y\"\r\n if ( ZeidonStringCompare( szChangeFlag, 1, 0, \"Y\", 1, 0, 2 ) == 0 )\r\n { \r\n //:szCurrentDate = wXferO.Root.dCurrentDate\r\n {MutableInt mi_lTempInteger_22 = new MutableInt( lTempInteger_22 );\r\n StringBuilder sb_szCurrentDate;\r\n if ( szCurrentDate == null )\r\n sb_szCurrentDate = new StringBuilder( 32 );\r\n else\r\n sb_szCurrentDate = new StringBuilder( szCurrentDate );\r\n GetVariableFromAttribute( sb_szCurrentDate, mi_lTempInteger_22, 'S', 9, wXferO, \"Root\", \"dCurrentDate\", \"\", 0 );\r\n lTempInteger_22 = mi_lTempInteger_22.intValue( );\r\n szCurrentDate = sb_szCurrentDate.toString( );}\r\n //:IF mStuChgH.StudentChangeHistory.FirstDate = szCurrentDate\r\n if ( CompareAttributeToString( mStuChgH, \"StudentChangeHistory\", \"FirstDate\", szCurrentDate ) == 0 )\r\n { \r\n //:// The entry was created today, so just update it.\r\n //:// Note that we can just set all the attributes, without regard to which ones changed,\r\n //:// since this entity is a record of attribute values as of this point in time.\r\n //:mStuChgH.StudentChangeHistory.StudentStatus = mStudent.Student.Status \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"StudentStatus\", mStudent, \"Student\", \"Status\" );\r\n //:mStuChgH.StudentChangeHistory.Classification = mStudent.Student.CurrentLevel \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"Classification\", mStudent, \"Student\", \"CurrentLevel\" );\r\n //:mStuChgH.StudentChangeHistory.ResidencyStatus = mStudent.Student.ResidencyStatus \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"ResidencyStatus\", mStudent, \"Student\", \"ResidencyStatus\" );\r\n //:mStuChgH.StudentChangeHistory.FinancialHoldFlag = mStudent.Student.FinancialHoldFlag \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"FinancialHoldFlag\", mStudent, \"Student\", \"FinancialHoldFlag\" );\r\n //:mStuChgH.StudentChangeHistory.AdministrativeDivisionName = mStudent.AdministrativeDivision.Name \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"AdministrativeDivisionName\", mStudent, \"AdministrativeDivision\", \"Name\" );\r\n //:mStuChgH.StudentChangeHistory.AnticipatedGradPeriod = szAnticipatedGradPeriod\r\n SetAttributeFromString( mStuChgH, \"StudentChangeHistory\", \"AnticipatedGradPeriod\", szAnticipatedGradPeriod );\r\n //:COMMIT mStuChgH\r\n RESULT = CommitObjectInstance( mStuChgH );\r\n //:DropObjectInstance( mStuChgH )\r\n DropObjectInstance( mStuChgH );\r\n //:ELSE\r\n } \r\n else\r\n { \r\n //:// The entry was created earlier, so create a new entry with the new values\r\n //:ACTIVATE mStuChgH2 EMPTY \r\n RESULT = ActivateEmptyObjectInstance( mStuChgH2, \"mStuChgH\", mStudent, zSINGLE );\r\n //:CREATE ENTITY mStuChgH2.StudentChangeHistory \r\n RESULT = CreateEntity( mStuChgH2, \"StudentChangeHistory\", zPOS_AFTER );\r\n //:mStuChgH2.StudentChangeHistory.StudentStatus = mStudent.Student.Status \r\n SetAttributeFromAttribute( mStuChgH2, \"StudentChangeHistory\", \"StudentStatus\", mStudent, \"Student\", \"Status\" );\r\n //:mStuChgH2.StudentChangeHistory.Classification = mStudent.Student.CurrentLevel \r\n SetAttributeFromAttribute( mStuChgH2, \"StudentChangeHistory\", \"Classification\", mStudent, \"Student\", \"CurrentLevel\" );\r\n //:mStuChgH2.StudentChangeHistory.ResidencyStatus = mStudent.Student.ResidencyStatus \r\n SetAttributeFromAttribute( mStuChgH2, \"StudentChangeHistory\", \"ResidencyStatus\", mStudent, \"Student\", \"ResidencyStatus\" );\r\n //:mStuChgH2.StudentChangeHistory.FinancialHoldFlag = mStudent.Student.FinancialHoldFlag \r\n SetAttributeFromAttribute( mStuChgH2, \"StudentChangeHistory\", \"FinancialHoldFlag\", mStudent, \"Student\", \"FinancialHoldFlag\" );\r\n //:mStuChgH2.StudentChangeHistory.AdministrativeDivisionName = mStudent.AdministrativeDivision.Name \r\n SetAttributeFromAttribute( mStuChgH2, \"StudentChangeHistory\", \"AdministrativeDivisionName\", mStudent, \"AdministrativeDivision\", \"Name\" );\r\n //:mStuChgH2.StudentChangeHistory.AnticipatedGradPeriod = szAnticipatedGradPeriod\r\n SetAttributeFromString( mStuChgH2, \"StudentChangeHistory\", \"AnticipatedGradPeriod\", szAnticipatedGradPeriod );\r\n //:SetAttributeFromCurrentDateTime( mStuChgH2, \"StudentChangeHistory\", \"FirstDate\" )\r\n //:INCLUDE mStuChgH2.Student FROM mStudent.Student\r\n RESULT = IncludeSubobjectFromSubobject( mStuChgH2, \"Student\", mStudent, \"Student\", zPOS_AFTER );\r\n\r\n //:// Set the LastDate attribute in the previous history entry to yesterday.\r\n //:SetAttributeFromCurrentDateTime( wXferO, \"Root\", \"WorkDate\" )\r\n //:mStuChgH.StudentChangeHistory.LastDate = wXferO.Root.WorkDate \r\n SetAttributeFromAttribute( mStuChgH, \"StudentChangeHistory\", \"LastDate\", wXferO, \"Root\", \"WorkDate\" );\r\n\r\n //:COMMIT mStuChgH\r\n RESULT = CommitObjectInstance( mStuChgH );\r\n //:COMMIT mStuChgH2\r\n RESULT = CommitObjectInstance( mStuChgH2 );\r\n //:DropObjectInstance( mStuChgH2 )\r\n DropObjectInstance( mStuChgH2 );\r\n //:DropObjectInstance( mStuChgH )\r\n DropObjectInstance( mStuChgH );\r\n } \r\n\r\n //:END\r\n } \r\n\r\n //:END\r\n } \r\n\r\n //:END\r\n } \r\n*/\r\n\r\n //:END\r\n break ;\r\n\r\n //: /* end zOCE_COMMIT */\r\n //:OF zOCE_DROPOI:\r\n case zOCE_DROPOI :\r\n break ;\r\n } \r\n\r\n\r\n //: /* end zOCE_DROPOI */\r\n //:END /* case */\r\n return( 0 );\r\n// END\r\n}",
"public int enfrentarJugadores(int J1, int J2) {\n if ((J1 == 0 && J2 == 2) || (J1 == 1 && J2 == 0) || (J1 == 2 && J2 == 1)) {\n return 1;\n } else if ((J2 == 0 && J1 == 2) || (J2 == 1 && J1 == 0) || (J2 == 2 && J1 == 1)) {\n return 2;\n } else {\n return 0;\n }\n }"
] | [
"0.5986338",
"0.52943337",
"0.5254881",
"0.5152505",
"0.5150076",
"0.51391995",
"0.5132344",
"0.5120854",
"0.511386",
"0.5105931",
"0.5104986",
"0.5064697",
"0.49602443",
"0.4955275",
"0.49502727",
"0.49263802",
"0.49255717",
"0.48963237",
"0.48670042",
"0.48561335",
"0.48406672",
"0.48059225",
"0.47913426",
"0.4781266",
"0.47487146",
"0.4743495",
"0.47242516",
"0.47035772",
"0.47014713",
"0.4697017",
"0.46905306",
"0.4689263",
"0.46885103",
"0.46870282",
"0.46776146",
"0.46716243",
"0.46700773",
"0.46697584",
"0.46691602",
"0.46659458",
"0.46655232",
"0.4665175",
"0.4663472",
"0.46548855",
"0.46539265",
"0.46533954",
"0.46499306",
"0.46478608",
"0.46448252",
"0.46362606",
"0.4634345",
"0.46122992",
"0.46110633",
"0.46025124",
"0.4600515",
"0.4597235",
"0.45939794",
"0.45917234",
"0.45845208",
"0.45837492",
"0.45778468",
"0.45771566",
"0.4564686",
"0.45527834",
"0.45507193",
"0.45473287",
"0.4542879",
"0.4542709",
"0.45406598",
"0.45397362",
"0.45395568",
"0.45389137",
"0.45380673",
"0.45354107",
"0.45295596",
"0.45281485",
"0.4526923",
"0.45247003",
"0.4521729",
"0.4520374",
"0.45169187",
"0.45144245",
"0.45129704",
"0.45080763",
"0.4507569",
"0.4500067",
"0.4499642",
"0.44923145",
"0.44901696",
"0.44897726",
"0.4489699",
"0.44857284",
"0.4485427",
"0.4480263",
"0.4476515",
"0.44755203",
"0.44718656",
"0.44691455",
"0.44656798",
"0.4463153",
"0.4460489"
] | 0.0 | -1 |
/ Calcul le coeff de la variable d'ecart dans la fonction objectif | public double CoeffM(PipesVector pvector, DiametersVector dvector) {
double Coeff = 0;
Pipes pipes;
Diameters diam = (Diameters) dvector.lastElement();
for (int i = 0; i < pvector.size(); i++) {
pipes = (Pipes) pvector.elementAt(i);
Coeff = Coeff + pipes.length;
}
return Coeff * diam.cost;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public double[] coeff();",
"public double getCoeff() {\n\t\t\t\treturn coeff;\n\t\t\t}",
"public double getCoefficient();",
"double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }",
"@Override\r\n public double obtenerVolumen() {\n return Math.pow(getA(), 3);//eleva al cubo\r\n }",
"public int coeff(int n, int k) {\n // Insert your code here\n return fact(n) / (fact(k) * fact(n - k));\n }",
"public double get_coefficient() {\r\n\t\treturn this._coefficient;\r\n\t}",
"public abstract double calcular();",
"public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}",
"public void setCoeff(double value) {\n\t\t\t\tthis.coeff = value;\n\t\t\t}",
"float getCpMultiplier();",
"private void set_coefficient(double a){\r\n\t\tthis._coefficient = a;\r\n\t}",
"private void set_coefficient(double a){\r\n\t\tthis._coefficient = a;\r\n\t}",
"@Override\n public double calcTerm( Map<String, Object> param_map )\n {\n double result = 0.0;\n int cat = (Integer) param_map.get( name );\n\n if( value == cat )\n result = coefficient;\n\n LOG.debug( String.format( \"calc: %s, %d, %d, %e\", name, value, cat, result ) );\n\n return result;\n }",
"public double calcular(){\n double calculo = 1;\n\n for(INodo descendiente : getDescendientes()) {\n calculo *= descendiente.calcular();\n }\n\n return calculo;\n }",
"public double eval(double x) {\n double result = 0;\n for (int i = coefs.length - 1; i >= 0; i--) {\n result = result * x + coefs[i];\n }\n return result;\n }",
"public abstract double getPreis();",
"public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }",
"public double getCustoAluguel(){\n return 2 * cilindradas;\n }",
"public double getPreco();",
"public double getPreco();",
"Double getFrictionCoefficient();",
"public double getC() {\n return c;\n }",
"@Override\n public double obtenerVolumen(){\n return (1.0 / 3.0) * c.obtenerArea() * c.obtenerAltura();\n }",
"Sum getMultiplier();",
"private double calcuCMetric() {\n\t\treturn (p-1)/fcost;\n\t}",
"public void set_coefficient1(double a){\n\t\tset_coefficient(a);\n\t}",
"public double[] getCot() { return Cot; }",
"public Double getFactor();",
"Double getMultiplier();",
"@Override\n\tpublic double DienTich() {\n\t\treturn (canhGoc*canhGoc);\n\t}",
"abstract public double compute(Composition comp, double e0);",
"public double calculerCout(int coefficient) {\n return coefficient * cout;\n }",
"void getCirculation (double effaoa, double thickness_pst, double camber_pst) { \n double beta;\n double th_abs = thickness_pst/100.0; \n xcval = 0.0;\n ycval = camber_pst/50; // was: current_part.camber/25/2\n\n if (current_part.foil == FOIL_CYLINDER || /* get circulation for rotating cylnder */\n current_part.foil == FOIL_BALL) { /* get circulation for rotating ball */\n rval = radius/lconv;\n gamval = 4.0 * Math.PI * Math.PI *spin * rval * rval\n / (velocity/vconv);\n gamval = gamval * spindr;\n ycval = .0001;\n } else {\n rval = th_abs + Math.sqrt((current_part.foil == FOIL_FLAT_PLATE\n ? 0 : th_abs*th_abs)\n + ycval*ycval + 1.0);\n xcval = current_part.foil == FOIL_JOUKOWSKI ? 0 : (1.0 - Math.sqrt(rval*rval - ycval*ycval));\n beta = Math.asin(ycval/rval)/convdr; /* Kutta condition */\n gamval = 2.0*rval*Math.sin((effaoa+beta)*convdr);\n }\n }",
"double compute() {\r\ndouble b, e;\r\nb = (1 + rateOfRet/compPerYear);\r\ne = compPerYear * numYears;\r\nreturn principal * Math.pow(b, e);\r\n}",
"public double getCEMENTAmount();",
"@Override\r\n\tpublic double obliczCenePoRabacie(double cena){\n\t\tcena = cena - kwotaRabatu;\r\n\t\treturn cena;\r\n\t\t\r\n\t}",
"public double eval(double x) {\n return c - x*x;\n }",
"public void cal_AdjustedFuelMoist(){\r\n\tADFM=0.9*FFM+0.5+9.5*Math.exp(-BUO/50);\r\n}",
"public void computeEquation()\n {\n // Curve equation of type : y = ax^2 + bx + c\n // OR (x*x)a + (x)b + 1c = y\n // ex : 50 = 4a + 2b + c where y = 50 and x = 2 and z = 1\n double[][] matrice = {{Math.pow(A.getKey(),2),A.getKey(),1},\n {Math.pow(B.getKey(),2),B.getKey(),1},\n {Math.pow(C.getKey(),2),C.getKey(),1}};\n\n double deter = computeSarrus(matrice);\n\n double [][] matriceA = {{A.getValue(),A.getKey(),1},\n {B.getValue(),B.getKey(),1},\n {C.getValue(),C.getKey(),1}};\n\n double [][] matriceB = {{Math.pow(A.getKey(),2),A.getValue(),1},\n {Math.pow(B.getKey(),2),B.getValue(),1},\n {Math.pow(C.getKey(),2),C.getValue(),1}};\n\n double [][] matriceC = {{Math.pow(A.getKey(),2),A.getKey(),A.getValue()},\n {Math.pow(B.getKey(),2),B.getKey(),B.getValue()},\n {Math.pow(C.getKey(),2),C.getKey(),C.getValue()}};\n\n abc[0] = computeSarrus(matriceA) / deter;\n abc[1] = computeSarrus(matriceB) / deter;\n abc[2] = computeSarrus(matriceC) / deter;\n }",
"protected final double fr(double x, double rc, double re) {return rc*(K*K)/Math.pow(x, re);}",
"public double getCoeffAt (int i) {\n return myCoefficients.get(i);\n\n }",
"FloatResource temperatureCoefficient();",
"public double berechneFlaeche()\n {\n return (2 * p1.getX()) * (2 * p1.getX());\n }",
"@Test\n\tpublic void testGetterCoefficient() {\n\t\tf.ajouterMatiere(\"Français\", 3);\n\t\tf.ajouterMatiere(\"Mathématiques\", 5);\n\t\t\n\t\tassertEquals(\"Le coefficient de la matiere devrait etre de 3\", 3, f.getCoefficient(\"Français\"), 5);\n\t\tassertEquals(\"Le coefficient de la matiere devrait etre de 5\", 5, f.getCoefficient(\"Mathématiques\"), 5);\n\t\tassertEquals(\"Le coefficient de la matiere devrait etre de 5\", 0, f.getCoefficient(\"Maths\"), 5);\n\t}",
"public double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}",
"double getPerimetro(){\n return 2 * 3.14 * raggio;\n }",
"public VDouble getC() {\r\n return c;\r\n }",
"@Override\n public double evaluate(float x) {\n\n int polynomial[] = getPolynomialCoefficientArray();\n double result = 0;\n for (int i = 0; i < polynomial.length; i++) {\n result += polynomial[i] * Math.pow(x, i);\n }\n return result;\n }",
"@Override\n\tpublic double getRx() {\n\ndouble object = 0;\n for(int i = 0; i < x.length; i++){\n object += Math.pow(y[i] - ( theta[0] + theta[1] * x[i]), 2);\n }\n return object / 2 ;\n }",
"public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }",
"public void calcular()\r\n/* 530: */ {\r\n/* 531:556 */ this.facturaProveedorSRI.setMontoIva(this.facturaProveedorSRI.getBaseImponibleDiferenteCero().multiply(\r\n/* 532:557 */ ParametrosSistema.getPorcentajeIva().divide(BigDecimal.valueOf(100L))));\r\n/* 533: */ }",
"double getAxon();",
"public abstract double calculate(Complex c,Complex current);",
"@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}",
"QuoteCoefficient createQuoteCoefficient();",
"public static double promptForCoeff( String prompt ) \r\n {\n return 0;\r\n }",
"public void calculeReduction(Produit p) {\r\n\t\tdouble res=0;\r\n\t\tres=p.getPrix()*taux;\r\n\t\tp.ajoutReduction(res);\r\n\t}",
"public double getC1() {\n return c1;\n }",
"@Override public double getCosto(){\n double d = 190.00;\n return d;\n }",
"public double getEquinox();",
"public double calcularInteresSimple(){\n double interesSimple = capital * interes * tiempo;\n return interesSimple;\n }",
"public float Superficie() {\n\t\t\n\t\tfloat cuadradob = (float) (Math.pow(puntos[3].getX() - puntos[0].getX(), 2) + Math.pow(puntos[3].getY() - puntos[0].getY(), 2));\n\t\tfloat cuadradoa = (float) (Math.pow(puntos[1].getX() - puntos[0].getX(), 2) + Math.pow(puntos[1].getY() - puntos[0].getY(), 2));\n\t\tfloat raizb = (float) Math.sqrt(cuadradob);\n\t\tfloat raiza = (float) Math.sqrt(cuadradoa);\n\t\treturn raiza * raizb;\n\t\t\n\t\t//return (puntos[3].getX() - puntos[0].getX())*(puntos[1].getY() - puntos[0].getY());\n\t}",
"public double setCoefficient(double coefficient) {\n this.coefficient = coefficient;\n return this.coefficient;\n }",
"public abstract ArrayList< Double > getObjectiveCoefs();",
"public double getCena() {\r\n\t\treturn cena;\r\n\t}",
"float determinante (){\r\n //lo de adentro de la raiz\r\n float det= (float)(Math.pow(b, 2)-4*a*c);\r\n //(float) por que pow tiene valores por defecto de double\r\n //entonces, hacemos casting: poniendole el (float) antes de\r\n //toda la funcion.\r\n return det; \r\n }",
"public double getPrecioCompra() {\n return precioCompra;\n }",
"float calculate (int x){\n\n float y ;\n y = a* (float) Math.pow(x,2) + b*x +c;\n return y;\n\n }",
"void adobe_coeff( CharPtr make, CharPtr model) {\n \n adobe_coeff( make.toString(), model.toString());\n}",
"@Override\n public int accion() {\n return this.alcance*2/3*3;\n }",
"public float carga(){\n return (this.capacidade/this.tamanho);\n }",
"public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }",
"@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }",
"public Double getCtr() {\r\n return ctr;\r\n }",
"public static void main(String[] args) {\n\t\tint monCoef = 3 ;\n\t\tfloat maNote = 14.5f;\n\t\tfloat resultat = monCoef * maNote ;\n\t\tSystem.out.println(\"resultat = \" + resultat);\n\t\t\n\t\t\n\t\t//affectation\n\t\t//nomVariable = valeur\n\t\tmonCoef = 5 ;\n\t\tmaNote = 12.3f;\n\t\tresultat = monCoef * maNote ;\n\t\tSystem.out.println(\"resultat = \" + resultat);\n\t\t\n\t\t//Declaration et affectation\n\t\t//Type nomVariable =valeur\n\t\tfloat noteJava = 10.5f;\n\t\tfloat noteHtml = 13.2f;\n\t\tfloat noteJavascript = 11.3f;\n\t\tfloat noteCss = 8.5f;\n\t\tfloat moyenne = (noteJava + noteHtml +noteJavascript + noteCss) / 4;\n\t\tSystem.out.println(\"moyenne = \" + moyenne);\n\t\t\n\t\t\n\t\t//Declaration et affectation\n\t\t//Type nomVariable = valeur\n\t\tint coefJava = 3;\n\t\tint coefJavascript =3 ;\n\t\tint coefHtml = 2 ;\n\t\tint coefCss = 1 ; \n\t\tint coefSum = coefJava + coefJavascript + coefHtml + coefCss; \n\t\tmoyenne = (coefJava *noteJava + coefJavascript * noteJavascript + coefHtml * noteHtml + coefCss * noteCss) / coefSum;\n\t\tSystem.out.println(\"moyenne= \" + moyenne );\n\t\t\n\t\t\n\t\t// declaration\n\t\t// [type] [nomDeLaVariable];\n\t\tint quantite;\n\t\t// Affectation\n\t\t// [nomDeLaVariable] = [LaValeur];\n\t\tquantite = 100 ;\n\t\t\n\t\t// Declaration + Affectation\n\t\t//[ type] [nomDeLaVariable] = [LaValeur];\n\t\tint variable = 123;\n\t\n\t}",
"@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}",
"@Override\n\t\tpublic void afectarPorPantano(double coeficiente) {\n\t\t}",
"float dot(IVec3 v);",
"@Override\n public double calcularValorCompra(ArrayList<Mueble> muebles){\n double total = 0d;\n for (Mueble m : muebles) {\n total+= m.getCantidad()*m.getPrecio();\n }\n return total; \n }",
"float calcularFinal(){\n return (calif1*0.3f)+(calif2*0.3f)+(calif3*0.4f);// debo agregar la f para que lo tome como float y no como double\r\n }",
"public BigInteger[] coefficients()\n\t{\n\t\treturn coefficients;\n\t}",
"public double carre(double v) {\n return v*v;\n }",
"public interface Term {\n\t\n\t/**\n\t * Get the coefficient of a term\n\t * @return the coefficient \n\t */\n\tpublic double getCoefficient();\n\t\n\t/**\n\t * Get the exponent of a term\n\t * @return the exponent\n\t */\n\tpublic int getExponent();\n\t\n\t/**\n\t * Evaluate a term by a given value. c = constant, a(c)^n \n\t * @param x The value to be evaluated \n\t * @return The result of the evaluated term \n\t */\n\tpublic double evaluate(double x);\n\t\n}",
"private double equation(long n) {\n\t\treturn (4d * montoCarlo(n) / n);\n\t}",
"public double calculatePrice(Model model)\n\t{\n\t\t//sum each of the price components price value\n\t\tString finalprice = \"\";\n\t\tdouble pc_price = -1, lower_limit = -1, upper_limit = -1, function_price = -1,finalvalue=0;\n\t\tfor(PriceComponent pc : this.priceComponents)\n\t\t{\n\t\t\tpc_price = -1; lower_limit = -1; upper_limit = -1;function_price = -1;\n\t\t\t//get the variables and define their value\n\t\t\tif(pc.getPriceFunction() != null)\n\t\t\t{\n\t\t\t\tif (pc.getPriceFunction().getSPARQLFunction() != null) {\n\t\t\t\t\tcom.hp.hpl.jena.query.Query q = ARQFactory.get().createQuery(pc.getPriceFunction().getSPARQLFunction());\n\t\t\t\t\tQueryExecution qexecc = ARQFactory.get().createQueryExecution(q, model);\t\n\t\t\t\t\t\n\t\t\t\t\tResultSet rsc = qexecc.execSelect();\n//\t\t\t\t\tSystem.out.println(q.toString());\n\t\t\t\t\tfunction_price = rsc.nextSolution().getLiteral(\"result\").getDouble();// final result is store in the ?result variable of the query\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pc.getComponentCap() != null) {\n\t\t\t\tupper_limit = pc.getComponentCap().getValue();\n\t\t\t}\n\n\t\t\tif (pc.getComponentFloor() != null) {\n\t\t\t\tlower_limit =pc.getComponentFloor().getValue();\n\t\t\t}\n\n\t\t\tif (pc.getPrice() != null) {\n\t\t\t\tpc_price = pc.getPrice().getValue();\n\t\t\t}\n\t\t\t\n\t\t\tif(function_price >=0)\n\t\t\t{\n\t\t\t\tif(function_price > upper_limit && upper_limit >= 0)\n\t\t\t\t\tfunction_price = upper_limit;\n\t\t\t\telse if(function_price < lower_limit && lower_limit >=0)\n\t\t\t\t\tfunction_price = lower_limit;\n\t\t\t}\n\t\t\t\n\t\t\tif(pc_price >= 0)\n\t\t\t{\n\t\t\t\tif(pc_price > upper_limit && upper_limit >=0)\n\t\t\t\t\tpc_price = upper_limit;\n\t\t\t\telse if(pc_price < lower_limit && lower_limit >= 0)\n\t\t\t\t\tpc_price = lower_limit;\n\t\t\t}\n\t\t\t\n\t\t\tif(pc.getPrice() != null && pc.getPriceFunction() != null)\n\t\t\t\tSystem.out.println(\"Dynamic and static price? offer->\"+this.name+\",pc->\"+pc.getName() + \"price ->\"+pc_price);//throw expection?\n\t\t\t\n\t\t\t\n\t\t\tif(pc.isDeduction())\n\t\t\t{\n\t\t\t\tif(function_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" - \" +function_price;\n\t\t\t\t\tfinalvalue-=function_price;\n\t\t\t\t}\n\t\t\t\tif(pc_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" - \" +pc_price;\n\t\t\t\t\tfinalvalue-=pc_price;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif(function_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" + \" +function_price;\n\t\t\t\t\tfinalvalue+=function_price;\n\t\t\t\t}\n\t\t\t\tif(pc_price >= 0)\n\t\t\t\t{\n\t\t\t\t\tfinalprice = finalprice+\" + \" +pc_price;\n\t\t\t\t\tfinalvalue+=pc_price;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//conditions to verify that the final price is inside the interval defined by the lower and upper limit, in case these exist\n\t\tif(this.getPriceCap() != null)\n\t\t{\n\t\t\tif(this.getPriceCap().getValue() >= 0 && finalvalue < this.getPriceCap().getValue())\n\t\t\t\tfinalvalue = this.getPriceCap().getValue();\n\t\t}\n\t\tif(this.getPriceFloor() != null)\n\t\t{\n\t\t\tif(this.getPriceFloor().getValue() >= 0 && finalvalue > this.getPriceFloor().getValue())\n\t\t\t\tfinalvalue = this.getPriceFloor().getValue();\n\t\t}\n\t\t\t\t\n\t\treturn finalvalue;\n\t}",
"public int cumulativeProduct() {\n int product = 1;\n EquationList p_eqn = eqn;\n while (p_eqn != null) {\n product = product * p_eqn.result;\n p_eqn = p_eqn.next;\n }\n if (p_eqn == null) {\n product = product;\n }\n return product;\n }",
"public int getCoeficienteBernua()\n {\n return potenciaCV;\n }",
"@Override\n\tprotected double calcularImpuestoVehiculo() {\n\t\treturn this.getValor() * 0.003;\n\t}",
"public void cal_FineFuelMoisture(){\r\n\tdouble DIF=dry-wet;\r\n\tfor (int i=1;i<=3; i++){\r\n\tif ((DIF-C[i])<=0){ \r\n\t\t\r\n\t\tFFM=B[i]*Math.exp(A[i]*DIF);\r\n\t}\r\n\t}\r\n}",
"@Override\n public int getCoefficient(int d) {\n Object coeff = this.values.get(d);\n if (coeff == null)\n return 0;\n return (Integer)coeff;\n }",
"Term(int coefficient, int exponent)\r\n\t{\r\n\t\tsetAll(coefficient, exponent);\r\n\t}",
"@Override\n\tpublic double calculate() \n\t{\t\n\t\t//return 2.45e6;\n\t\t//return (2499.64 - (2.51 * tempCelsius.value)) * 1000;\t\n\t\t//return ((2.501 - (0.002361 * tempCelsius.value)) * 1e6)*0.33;\n\t\treturn ((2.501 - (0.002361 * tempCelsius.value)) * 1e6);\n\t}",
"public PolyTerm derivate() {\n\t\tScalar coeffi=this.coefficient.mul(this.exponent);\n\t\tint expon=this.exponent-1;\n\t\treturn new PolyTerm(coeffi, expon);\n\t}",
"public String get_exponent_part();",
"double cekStop(double x[][], double v0[],double v[][],double w0[],double w[][], double t[]){\n double akumY=0;\n //~ itung z_in dan z\n for(int h=0; h<jumlah_data; h++){\n for(int j=0; j<unit_hidden; j++){\n //itung sigma xi vij\n double jum_xv=0;\n for(int i=0; i<unit_input; i++){\n double cc=x[h][i]*v[i][j];\n jum_xv=jum_xv+cc;\n //System.out.println(x[h][j]);\n }\n z_in[j]=v0[j]+jum_xv;\n //itung z\n z[j]=1/(1+(double)Math.exp(-z_in[j]));\n //System.out.println(\" dan z= \"+z[j]);\n }\n \n //~ itung y_in dan y (output)\n double cxc=0;\n for(int k=0; k<unit_output; k++){\n double jum_zw=0;\n for(int j=0; j<unit_hidden; j++){\n double cc=z[j]*w[j][k];\n jum_zw=jum_zw+cc;\n }\n y_in[k]=w0[k]+jum_zw;\n y[k]=1/(1+(double)Math.exp(-y_in[k]));\n akumY = akumY + Math.pow((t[h]-y[k]),2);\n //System.out.println(t[h]+\"-\"+y[k]+\"=\"+(t[k]-y[k]));\n }\n }\n double E = 0.5 * akumY;\n //System.out.println(E);\n return E;\n }",
"public Double retornaSubTotal(Double totalGeral,Double desconto){\n return totalGeral - (totalGeral*(desconto/100));\n}",
"public static float power(float[] coefficients) {\n float p = 0f;\n\n for (int i = MultiWave.SINE; i < MultiWave.VARIABLE; i++) {\n p += (MultiWave.CROSS_CORRELATIONS[i][i] * coefficients[i] * coefficients[i]);\n for (int j = MultiWave.SINE; j < i; j++) {\n p += (2.0f * MultiWave.CROSS_CORRELATIONS[i][j] * coefficients[i] * coefficients[j]);\n }\n } // end for i\n\n return p;\n }",
"public double getReal() {return this.real;}",
"private double getExponentTerm(final double[] values) {\n //final double[] centered = new double[values.length];\n //for (int i = 0; i < centered.length; i++) {\n // centered[i] = values[i] - means[i];\n //}\n // I think they are already centered from earlier?\n //final double[] preMultiplied = covariance_rpt_inv_normal.multiply(values/*centered*/);\n double sum = 0;\n for (int i = 0; i < values.length; i++) {\n sum += (Math.exp(-0.5 * values[i]) / constant_normal);//centered[i];\n }\n return sum;\n }",
"public double eval(double x) {\n double y;\n y = this.a * Math.pow(x, 3) + this.b * Math.pow(x, 2) + this.c * x + this.d;\n return y;\n }"
] | [
"0.72190845",
"0.71552396",
"0.7067061",
"0.6946377",
"0.67195827",
"0.6431322",
"0.6403854",
"0.6390001",
"0.63725746",
"0.62728995",
"0.62619936",
"0.62513256",
"0.62513256",
"0.6234234",
"0.6206213",
"0.61886716",
"0.61311215",
"0.6127826",
"0.607924",
"0.60781354",
"0.60781354",
"0.60617256",
"0.60404736",
"0.60287046",
"0.6027838",
"0.6017524",
"0.59950244",
"0.59818935",
"0.597679",
"0.59732056",
"0.59607315",
"0.5953482",
"0.59501094",
"0.5946042",
"0.5941834",
"0.5935313",
"0.59277856",
"0.5920464",
"0.589462",
"0.58851177",
"0.5875467",
"0.5874048",
"0.5854063",
"0.58539987",
"0.58528984",
"0.58431315",
"0.5834429",
"0.5831844",
"0.58035624",
"0.58006567",
"0.5795441",
"0.57878065",
"0.5782597",
"0.57677746",
"0.5764515",
"0.5752871",
"0.5751561",
"0.5749495",
"0.57487017",
"0.5743809",
"0.5730277",
"0.57226956",
"0.5721865",
"0.57141364",
"0.57110554",
"0.571051",
"0.5709695",
"0.57043827",
"0.5703463",
"0.5694789",
"0.5689888",
"0.5682757",
"0.5672271",
"0.5671802",
"0.5663819",
"0.5650881",
"0.5648241",
"0.5643419",
"0.56404716",
"0.5639395",
"0.5628035",
"0.5622767",
"0.5619118",
"0.5618664",
"0.5610807",
"0.5599309",
"0.55905694",
"0.55905485",
"0.55902547",
"0.55863976",
"0.5579888",
"0.5578599",
"0.55747783",
"0.5570003",
"0.5567275",
"0.5548383",
"0.5546737",
"0.5545316",
"0.55436766",
"0.5538812",
"0.55365264"
] | 0.0 | -1 |
Obtiene un String con los argumentos de la linea de comandos y los suma | public static double sumaD(String[] args){
double suma = 0;
for(String num : args){
suma += Double.parseDouble(num);//< Cada argumento en la linea de comandos se convierte a tipo double
}
return suma;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String CombineCommand(String paramString1,String paramString2,String paramString3,String paramString4,String paramString5,String paramString6){\n String str1 = intToHex(Integer.valueOf((4+(2+(paramString1.length()+paramString2.length()+paramString3.length()+paramString4.length()))+paramString5.length())));\n String str2 = \"00\"+intToHex(Integer.valueOf(Integer.valueOf(2 + (4 + (2 + (paramString1.length() + paramString2.length() + paramString3.length() + paramString4.length())) + paramString5.length() + paramString6.length()))));\n String str3 = getCheckNumber(paramString1.toUpperCase()+paramString2+paramString3+paramString4+str1.toUpperCase()+str2.toUpperCase()+paramString5+paramString6);\n\n return paramString1.toUpperCase()+paramString2+paramString3+paramString4+str1.toUpperCase()+str2.toUpperCase()+paramString5+paramString6+str3.toUpperCase();\n\n }",
"public String determineFormattedSumString(int a, int b);",
"public static void main(String[] args) {\n\t\tInteger a, b, c, d;\n\t\ta = readWindowInteger(\"Digite um número para var A\");\n\t\tb = readWindowInteger(\"Digite um número para var B\");\n\t\tc = readWindowInteger(\"Digite um número para var C\");\n\t\td = readWindowInteger(\"Digite um número para var D\");\n\n\t\t//Passo 2: fazer as combinações de soma\n\t\tInteger\n\t\t\t\tsomaAB, //1\n\t\t\t\tsomaAC, //2\n\t\t\t\tsomaAD, //3\n\t\t\t\tsomaBC, //4\n\t\t\t\tsomaBD, //5\n\t\t\t\tsomaCD; //6\n\t\t\n\t\tsomaAB = a + b; //1\n\t\tsomaAC = a + c; //2\n\t\tsomaAD = a + d; //3\n\t\tsomaBC = b + c; //4\n\t\tsomaBD = b + d; //5\n\t\tsomaCD = c + d; //6\n\t\t\t\t\n\t\t//Passo 3: fazer as combinações de multiplicacao\n\t\tInteger\n\t\t\t\tmultiAB,\n\t\t\t\tmultiAC,\n\t\t\t\tmultiAD,\n\t\t\t\tmultiBC,\n\t\t\t\tmultiBD,\n\t\t\t\tmultiCD;\n\t\t\n\t\tmultiAB = a * b;\n\t\tmultiAC = a * c;\n\t\tmultiAD = a * d;\n\t\tmultiBC = b * c;\n\t\tmultiBD = b * d;\n\t\tmultiCD = c * d;\n\t\t\n\t\t//Passo 4: exibir todas as combinações\n\t\twriteWindow(\n\t\t\t\t\"+----------------------------------------+\\n\" +\n\t\t\t\t\"| Combinações da Operações Matemáticas |\\n\" +\n\t\t\t\t\"+----------------------------------------+\\n\" +\n\t\t\t\t\" Valores Originais\\n\" +\n\t\t\t\t\" A = \" + a + \" \\n\" +\n\t\t\t\t\" B = \" + b + \" \\n\" +\n\t\t\t\t\" C = \" + c + \" \\n\" +\n\t\t\t\t\" D = \" + d + \" \\n\" +\n\t\t\t\t\"\\n\" +\n\t\t\t\t\" Somas \\n\" +\n\t\t\t\t\" A + B = \" + somaAB + \" \\n\" +\n\t\t\t\t\" A + C = \" + somaAC + \" \\n\" +\n\t\t\t\t\" A + D = \" + somaAD + \" \\n\" +\n\t\t\t\t\" B + C = \" + somaBC + \" \\n\" +\n\t\t\t\t\" B + D = \" + somaBD + \" \\n\" +\n\t\t\t\t\" C + D = \" + somaCD + \" \\n\" +\n\t\t\t\t\" \\n\" +\n\t\t\t\t\" Multiplicações \\n\" +\n\t\t\t\t\" A * B = \" + multiAB + \" \\n\" +\n\t\t\t\t\" A * C = \" + multiAC + \" \\n\" +\n\t\t\t\t\" A * D = \" + multiAD + \" \\n\" +\n\t\t\t\t\" B * C = \" + multiBC + \" \\n\" +\n\t\t\t\t\" B * D = \" + multiBD + \" \\n\" +\n\t\t\t\t\" C * D = \" + multiCD + \" \\n\" +\n\t\t\t\t\"\t\\n\" +\n\t\t\t\t\"+----------------------------------------+\"\n\t\t\n\t\t);\n\t\t\n\t\t\n\t\t// Your code ends here :(\n//<editor-fold defaultstate=\"collapsed\" desc=\"final program settings...\">\n\t}",
"private String concatWithNewLineFeed(String ...inputs) {\n String userInput = \"\";\n for(String s : inputs) {\n userInput += s + System.lineSeparator();\n }\n return userInput;\n }",
"public static void main(String[] args){\n int result = Stream.of(1,2,3,4,5,6,7,8,9,10)\n .reduce(0,Integer::sum);//metodo referenciado\n// .reduce(0, (acumulador, elemento) -> acumulador+elemento);\n System.out.println(result);\n\n // Obtener lenguajes separados por pipeline entre ellos y sin espacios\n // opcion 1(mejor) con operador ternario\n String cadena = Stream.of(\"Java\",\"C\",\"Python\",\"Ruby\")\n .reduce(\"\", (acumulador, lenguaje) -> acumulador.equals(\"\")?lenguaje:acumulador + \"|\" + lenguaje);\n\n System.out.println(cadena);\n\n //Opcion 2 Con regex\n String cadenaRegex = Stream.of(\"Java\",\"C\",\"Python\",\"Ruby\")\n .reduce(\"\", (acumulador, lenguaje) -> acumulador + \"|\" + lenguaje)\n .replaceFirst(\"\\\\|\",\"\") // Quitamos la primera pipeline\n .replaceAll(\"\\\\s\",\"\"); // Quitamos todos los espacios\n\n System.out.println(cadenaRegex);\n }",
"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 sumatoria(String columna) {\r\n\t\ttry {\r\n\t\t\tdouble total = 0;\r\n\t\t\tDouble cAux = new Double(total);\r\n\t\t\tString totalChar = \"\";\r\n\t\t\tString valchar = \"\";\r\n\t\t\tfor (int i = 1; i <= this.elemVS.size(); i++) {\r\n\t\t\t\tvalchar = (getObject(i, columna)).toString();\r\n\t\t\t\ttotal = total + (Double.valueOf(valchar)).doubleValue();\r\n\t\t\t}\r\n\t\t\ttotalChar = Double.toString(total);\r\n\t\t\treturn totalChar;\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\treturn \" \" + elemVS.size();\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n // 1234567890123456789012345678901234567890.1234567890123456789012345678901234567890\n // 1000000000100000000010000000001000000000.1000000000100000000010000000001000000000\n // 2234567890223456789022345678902234567890.2234567890223456789022345678902234567890\n\n String num1 = sc.nextLine();\n String num2 = sc.nextLine();\n\n String sum = add4(num1, num2);\n System.out.println(sum);\n }",
"public static int Add(String numbers){\r\n \r\n int sum = 0;\r\n String negString = \"\";\r\n boolean negFlag = false;\r\n boolean commaFlag = false;\r\n \r\n String numberComponent[];\r\n String delimiterString;\r\n String delimiters[];\r\n String delimiterRegEx = \"\";\r\n \r\n System.out.println(\"Working string:\\n\"+numbers);\r\n //separate delimiter and number strings\r\n String newlineSplit[] = numbers.split(\"\\n\");\r\n \r\n if(numbers == null || numbers.isEmpty()){ //check for empty or null input\r\n System.out.println(\"String is empty or null\\n\");\r\n return 0;\r\n }\r\n else if(newlineSplit[0].charAt(0) != '/' || newlineSplit[0].charAt(1) != '/') { //check if string begins with '//'\r\n \tSystem.out.println(\"String is invalid\\n\");\r\n \treturn 0;\r\n }\r\n else { //get here if string has content and begins with '//'\r\n \t//take delimiter string of first split and ignore '//'\r\n \tdelimiterString = newlineSplit[0].substring(2);\r\n \t\r\n \t//check if ',' is one of the delimiters (do this since comma is also delimiter in delimiter string\r\n \tif(delimiterString.contains(\",,\") || delimiterString.equals(\",\")) {\r\n \t\tcommaFlag = true;\r\n \t}\r\n \t\r\n \tdelimiters = delimiterString.split(\",\");\r\n \t\r\n \t//add comma as delimiter if it existed (split erases comma if used as delimiter previously)\r\n \tif(commaFlag == true) {\r\n \t\tdelimiterRegEx += \"\\\\,\";\r\n \t\t\tcommaFlag = false;\r\n \t\t}\r\n \t\r\n \t//for each delimiter found\r\n \tfor(String temp:delimiters) {\r\n \t\t//escape all characters\r\n \t\ttemp = temp.replace(\"\"+temp.charAt(0), \"\\\\\"+temp.charAt(0));\r\n \t\t//continuously add to new regex (separate with OR for multiple delimiters)\r\n \t\tif(delimiterRegEx.length() == 0) {\r\n \t\t\tdelimiterRegEx += temp;\r\n \t\t}\r\n \t\telse {\r\n \t\t\tdelimiterRegEx += \"|\"+temp;\r\n \t\t}\r\n \t}\r\n }\r\n \r\n System.out.println(\"Start of calculation...\");\r\n //split using regex generated, get every number as string\r\n numberComponent = newlineSplit[1].split(delimiterRegEx);\r\n \r\n for (String tempVal: numberComponent){\r\n \tif(Integer.valueOf(tempVal) < 0) { //raise error and record number if negative\r\n \t\tif(negString.length() == 0) {\r\n \t\t\tSystem.out.println(\"Negatives not allowed\");\r\n \t\t\tnegFlag = true;\r\n \t\t\tnegString += tempVal;\r\n \t\t}\r\n \t\telse {\r\n \t\t\tnegString += \",\"+tempVal;\r\n \t\t}\r\n \t\tcontinue;\r\n \t}\r\n \telse if(Integer.valueOf(tempVal) > 1000) { //raise message and ignore if number is >1000\r\n \t\tSystem.out.println(\"Large number found and ignored\");\r\n \t\tcontinue;\r\n \t}\r\n \telse { //if passes all checks, add to sum\r\n \t\tsum += Integer.valueOf(tempVal);\r\n \t}\r\n \r\n }\r\n \r\n //display end message, depending if negatives were found or not\r\n if(negFlag == true) {\r\n \tSystem.out.println(\"Negative number(s) found: \"+negString+\"\\n\");\r\n }\r\n else {\r\n \tSystem.out.println(\"Sum is \"+sum);\r\n \tSystem.out.println(\"End of calculation!\\n\");\r\n }\r\n return 0;\r\n }",
"private static String StringifyBody(String[] line , double... args){\n\n String output = String.format(\"%-20s %-20s\" , line[0] , line[1]);\n\n for(int i = 0; i < line.length - 2 ;i++){\n output += String.format(\"%-10s\",line[2 + i]); // Skip the first two element City & Country\n\n }\n for (double element: args) { //args is again for the total\n output += String.format(\"%-10.1f\" ,element );\n }\n\n return output;\n }",
"public static void main(String[] args){\n\t\tSystem.out.println(\"Resultado1: (a + b) = \" + Operaciones.sumar(3,4));\n\t\tSystem.out.println();\n\n\t\t//Metodo int double\n\t\tSystem.out.println(\"Resultado2: (a + b) = \" + Operaciones.sumar(5,4.1));\n\t\tSystem.out.println();\n\n\t\t//Metodo double int\n\t\tSystem.out.println(\"Resultado3: (a + b) = \" + Operaciones.sumar(7.1,6));\n\t\tSystem.out.println();\n\n\t\t//¿Cúal es el metodo que se manda a llamar si utilizamos los siguientes argumentos?\n\t\tSystem.out.println(\"Resultado4: (a + b) = \" + Operaciones.sumar(3,4L)); //Se manda a llamar un (int,double) ya que un double y un long son de 64 bytes\n\t\tSystem.out.println();\n\n\t\t//¿Cúal es el metodo que se manda a llamar si utilizamos los siguientes argumentos?\n\t\tSystem.out.println(\"Resultado4: (a + b) = \" + Operaciones.sumar(5F,'A')); //Se manda a llamar un (double,int) ya que un \"float\" lo soporta un \"double\" y el \"char\" lo soporta el \"int\"\n\t\tSystem.out.println();\n\t}",
"public static void main(String[] args) {\n\t\tString num1 = \"123455\";\n\t\tString num2 = \"56789\";\n\t\tSystem.out.println(addStrings(num1, num2));\n\t}",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tint sum=0;\r\n\t\tSystem.out.println(\"Enter the Numbers string\");\r\n\t\tString str=sc.nextLine();\r\n\t\t\r\n\t\tString arr[]= str.split(\",\");\r\n\t\tfor(String ar:arr)\r\n\t\t{\r\n\t\t\tsum+=Integer.parseInt(ar);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Sum of All String of Integer numbers is ... \"+sum);\r\n\r\n\t\t\r\n\t\t \r\n\t\t\r\n\t}",
"public String sumatoria(int columna) {\r\n\t\ttry {\r\n\t\t\tdouble total = 0;\r\n\t\t\tDouble cAux = new Double(total);\r\n\t\t\tString totalChar = \"\";\r\n\t\t\tString valchar = \"\";\r\n\t\t\tfor (int i = 1; i <= this.elemVS.size(); i++) {\r\n\t\t\t\tvalchar = (getObject(i, columna)).toString();\r\n\t\t\t\ttotal = total + (Double.valueOf(valchar)).doubleValue();\r\n\t\t\t}\r\n\t\t\ttotalChar = Double.toString(total);\r\n\t\t\treturn totalChar;\r\n\t\t}\r\n\t\tcatch (Exception e) {\r\n\t\t\treturn \" \";\r\n\t\t}\r\n\t}",
"private String constructGeneralArgs() {\n StringBuilder cmd = new StringBuilder();\n\n cmd.append(size).append(ExternalExecutor.TOKEN_SEP);\n\n cmd.append(writeDataPipeFile).append(ExternalExecutor.TOKEN_SEP);\n cmd.append(readDataPipeFile).append(ExternalExecutor.TOKEN_SEP);\n\n cmd.append(writePipeFiles.length).append(ExternalExecutor.TOKEN_SEP);\n for (int i = 0; i < writePipeFiles.length; ++i) {\n cmd.append(writePipeFiles[i]).append(ExternalExecutor.TOKEN_SEP);\n }\n\n cmd.append(readPipeFiles.length).append(ExternalExecutor.TOKEN_SEP);\n for (int i = 0; i < readPipeFiles.length; ++i) {\n cmd.append(readPipeFiles[i]).append(ExternalExecutor.TOKEN_SEP);\n }\n\n return cmd.toString();\n }",
"@Override\n public String run(String left, String right) {\n \n buildSum(left,right);\n\n return sum + \"\";\n }",
"public static void main(String[] args) {\n\t\tint result = 0;\r\n\t\tif (args[0].equals(\"/?\")) {\r\n\t\t\tSystem.out.println(\"도움말 출력\");\r\n\t\t} else if (args[0].equals(\"+\")) {\r\n\t\t\tresult = Integer.parseInt(args[1])\r\n\t\t\t\t\t+ Integer.parseInt(args[2]);\r\n\t\t\tSystem.out.println(result);\r\n\t\t} else if (args[0].equals(\"+\")) {\r\n\t\t\tresult = Integer.parseInt(args[1])\r\n\t\t\t\t\t- Integer.parseInt(args[2]);\r\n\t\t\tSystem.out.println(result);\r\n\t\t}\r\n\t\t\r\n\t\t//String[] args = {\"+\" , \"10\" , \"20\"}\r\n\t\tString [] str = {\"이숭무\" , \"이상범\" , \"이장범\"};\r\n\t\tSystem.out.println(str[0]);\r\n\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tString str = \"te12ch33no3credit4s\";\n\t\tSumOFNumbers sumOFNumbers = new SumOFNumbers();\n\t\tint optputSum = sumOFNumbers.getSumOfNumbers(str);\n\t\tSystem.out.println(optputSum);\n\t}",
"public static void main(String[] args) {\n\t\tint a=10;\n\t\tint b=20; \n\t\tString y=\"Hello\";\n\t\tString x=\"Bye\"; \n\t\tSystem.out.println(a+b+x+y); \n\t\tSystem.out.println(x+y+a+b);\n\t\tSystem.out.println(x+y+(a+b));\n\t\tSystem.out.println(a+\"\"+b+x+y);\n\t\t\t\t\n\n\n\t}",
"public List<Arguments> source_StringDouble() {\n //Processing done here\n return Arrays.asList(Arguments.arguments(\"tomato\", 2.0),\n Arguments.arguments(\"carrot\", 4.5),\n Arguments.arguments(\"cabbage\", 7.8));\n }",
"@Override\n public String reduce(String arg0, String arg1) throws Exception {\n return arg0.concat(arg1);\n }",
"public static Double sumarColeccion(ListaVinculada<Double> coleccionStrings) {\n double acumulador=0.0;\n for (Double dato : coleccionStrings) {\n acumulador =acumulador+dato;\n }\n return acumulador;\n }",
"public static void main(String[] args) {\n\t\tStringBuffer tudo = new StringBuffer(\"\");\n\t\tScanner leia = new Scanner(System.in);\n\t\t\n\t\tint a, b;\n\t\tdo {\n\t\t\ta = leia.nextInt();\n\t\t\tb = leia.nextInt();\n\t\t\t\n\t\t\tif(a <= 0 || b <= 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tint cont = 0;\n\t\t\tfor (int i = b; i <= a; i++) {\n\t\t\t\ttudo.append(i).append(\" \");\n\t\t\t\tcont += i;\n\t\t\t}\n\t\t\tfor (int i = a; i <= b; i++) {\n\t\t\t\ttudo.append(i).append(\" \");\n\t\t\t\tcont += i;\n\t\t\t}\n\t\t\ttudo.append(\"Sum=\").append(cont).append(\"\\n\");\n\t\t} while (true);\n\t\tSystem.out.print(tudo);\n\t\tleia.close();\n\t}",
"public static void main(String[] args) {\n System.out.println(\"Nombre d'arguments : \" + args.length);\n for(int i = 0; i < args.length; i++) {\n System.out.println(\"Argument \" + i + \" : \" + args[i]);\n }\n \n if(args.length > 2) {\n float res = 0;\n \n switch(args[1]) {\n case \"+\":\n res = Float.parseFloat(args[0]) + Float.parseFloat(args[2]);\n System.out.println(\"Résultat : \" + args[0] + \" \" + args[1] + \" \" + args[2] + \" = \" + res);\n break;\n case \"-\":\n res = Float.parseFloat(args[0]) - Float.parseFloat(args[2]);\n System.out.println(\"Résultat : \" + args[0] + \" \" + args[1] + \" \" + args[2] + \" = \" + res);\n break;\n case \"x\":\n res = Float.parseFloat(args[0]) * Float.parseFloat(args[2]);\n System.out.println(\"Résultat : \" + args[0] + \" \" + args[1] + \" \" + args[2] + \" = \" + res);\n break;\n case \"/\":\n res = Float.parseFloat(args[0]) / Float.parseFloat(args[2]);\n System.out.println(\"Résultat : \" + args[0] + \" \" + args[1] + \" \" + args[2] + \" = \" + res);\n break;\n default:\n res = Float.parseFloat(args[0]) + Float.parseFloat(args[2]);\n System.out.println(\"Résultat : \" + args[0] + \" + \" + args[2] + \" = \" + res);\n }\n } else {\n System.out.println(\"Pas assez d'arguments pour effectuer un calcul.\");\n }\n \n \n /*\n //Exo 3\n //A.\n int i = 1294;\n String str = Integer.toString(i);\n System.out.println(i);\n \n //B.\n int j = 0;\n if(args.length != 0) j = Integer.parseInt(args[0]);\n \n //C.\n float f = 0;\n if(args.length != 0) f = Float.parseFloat(args[0]);\n \n //D.\n System.out.println(\"Entrez un nom de ville : \");\n */\n \n Scanner sc1 = new Scanner(System.in);\n \n /*\n String str1 = sc1.nextLine();\n System.out.println(str1.toUpperCase());\n \n //E.\n System.out.println(\"Entrez une chaîne s1 : \");\n String s1 = sc1.nextLine();\n String s2 = sc1.nextLine();\n if(s1.charAt(0) == s2.charAt(0)) System.out.println(\"Ces deux chaînes commencent par le même caractère : \" + s1.charAt(0));\n else System.out.println(\"Ces deux chaînes ne commencent pas par le même caractère !\");\n \n //F.\n System.out.println(\"s1 == s2 renvoie : \" + (s1 == s2));\n System.out.println(\"s1.equals(s2) renvoie : \" + s1.equals(s2));\n System.out.println(\"s1.compareTo(s2) renvoie : \" + s1.compareTo(s2));\n System.out.println(\"s1.compareToIgnoreCase(s2) renvoie : \" + s1.compareToIgnoreCase(s2));\n \n //G.\n if(s1.startsWith(s2)) System.out.println(\"s1 commence par s2\");\n else System.out.println(\"s1 ne commence pas par s2\");\n \n if(s1.endsWith(s2)) System.out.println(\"s1 finit par s2\");\n else System.out.println(\"s1 ne finit pas par s2\");\n \n if(s1.contains(s2)) System.out.println(\"s1 contient s2\");\n else System.out.println(\"s1 ne contient pas s2\");\n \n //H.\n if(s1.contains(s2)) System.out.println(\"s1 sans s2 : \" + s1.replace(s2, \"\"));\n else System.out.println(\"s1 ne contient pas s2 : opération impossible !\");\n \n //I.\n s1 = s1.intern();\n s2 = s2.intern();\n System.out.println(\"s1.equals(s2) apprès intern() : \" + s1.equals(s2));\n System.out.println(\"s1 == s2 apprès intern() : \" + (s1 == s2));\n */\n \n /*\n //Exo 4\n System.out.println(\"Combien de nombres aléatoires voulez-vous : \");\n int nbNombres = sc1.nextInt();\n int[] n = new int[nbNombres];\n for(int b = 0; b < nbNombres; b++) {\n n[b] = (int) (Math.random() * 1000);\n }\n \n System.out.println(\"Etude de 100 000 nombres aléatoires compris entre 1 et \" + nbNombres + \" : \");\n \n double sum = 0;\n double q = 0;\n double m;\n double et;\n \n for(int b = 0; b < nbNombres; b++) {\n sum += n[b];\n q += n[b] * n[b];\n }\n \n m = sum / nbNombres;\n et = q / nbNombres - m * m;\n et = Math.sqrt(et);\n System.out.println(\"Moyenne : \" + m);\n System.out.println(\"Ecart-type : \" + et);\n */\n \n /*\n //Exo 5\n System.out.println(\"Entrez le nombre dont vous voulez avoir la factorielle : \");\n int nb = sc1.nextInt();\n Fact fact = new Fact(nb);\n */\n \n //Exo 6\n //Chrono chr = new Chrono();\n }",
"public static int add(String numbers) throws IllegalArgumentException {\t\t\n\t\tint sum = 0; //resultado da soma;\n\t\tboolean negatives = false; //verifica se existem negativos;\n\t\tString ExceptMessage = \"negativos proibidos [\", //mensagem de erro quando negativo eh lido;\n\t\t\t RegEx = \"\"; //caracteres a serem considerados delimitadores;\n\t\t\n\t\tif(numbers.length() > 0) {\n\t\t \ti = 1; dl = false;\n\t\t\tRegEx = delimiters(numbers); //leitura dos novos delimitadores, se existirem;\n\t\t\t\n\t\t\t//remocao do inicio de numbers, caso hajam definicoes de novos delimitadores;\n\t\t\tif(dl) numbers = numbers.substring(i, numbers.length()); \n\t\t}\n\t\t\t\t\t\t\n\t\tString[] splt = numbers.split(\",|\\\\n|\\\\s\" + RegEx); //quebra de numbers nos delimitadores;\n\t\t\n\t//tratamento dos caracteres restantes apos remocao dos delimitadores; - - - - - - - - - - - - - - -\n\t\ttry {\n\t\t\tfor(String w:splt) {\n\t\t\t\tif(w.length() == 0) //string vazia, desconsiderar;\n\t\t\t\t\tcontinue;\n\n\t\t\t\telse if(Integer.parseInt(w) < 0) { //numero negativo, joga excecao + mensagem de erro;\n\t\t\t\t\tif(negatives)\n\t\t\t\t\t\tExceptMessage += \" \"; //realiza espaçamento correto na mensagem de erro;\n\n\t\t\t\t\tExceptMessage += w;\n\t\t\t\t\tnegatives = true;\n\t\t\t\t\t\n\t\t\t\t\tcontinue; //impede processamento do numero negativo na soma;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint par = Integer.parseInt(w); //converte a string em numero;\n\t\t\t\t\n\t\t\t\tif(par > 1000) //desconsidera numeros maiores que 1000;\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\tsum += par; //se tudo der certo, atualiza a soma;\n\t\t\t}\n\t\t}\n\t\tcatch (NumberFormatException e) { throw new IllegalArgumentException(); }\n\t//fim do tratamento dos caracteres; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\n\t\t\n\t\tif(negatives) { //se houverem numeros negativos, joga excecao apos registrar os negativos na entrada;\n\t\t\tExceptMessage += \"]\\n\";\n\t\t\tthrow new IllegalArgumentException(ExceptMessage);\n\t\t}\n\t\t\n\t\treturn sum; //se der tudo certo, retorna a soma dos numeros em numbers;\n\t}",
"private String getSumString(int[][] input)\n {\n int sum = 0;\n for (int i = 0; i < input.length; i++)\n {\n for (int j = 0; j < input[i].length; j++)\n {\n sum += input[i][j];\n }\n }\n return Integer.toString(sum);\n }",
"public static void getSum(String[] args) {\n\t\tint sum = 0;\n\t\t\n\t\tSystem.out.println(Arrays.toString(args));\n\n\t\ttry {\n\t\t\tfor (String num : args) {\n\t\t\t\tint number = Integer.parseInt(num);\n\t\t\t\tsum += number;\n\t\t\t}\n\t\t\tSystem.out.printf(\"Sum of all inputed numbers is: %d\\n\", sum);\n\t\t} catch (NumberFormatException ex) {\n\t\t\tSystem.out.println(\"Not all values of an array are numbers!\");\n\t\t}\n\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = reader.readLine();\n\t\treader.close();\n\t\tString[] split = line.split(\" \");\n\t\tdouble sum=Integer.valueOf(split[0]);\n\t\tString aString=split[1];\n\t\tfor (int i = 0; i < Math.round(sum/2.0); i++) {\n\t\t\tif (i==0||i==Math.round(sum/2.0)-1) {\n\t\t\t\tfor (int j = 0; j < sum; j++) {\n\t\t\t\t\tSystem.out.print(aString);\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}else {\n\t\t\t\tSystem.out.print(aString);\n\t\t\t\tfor (int j = 1; j < sum-1; j++) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(aString);\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n int sum=0;\n for(int i=0;i< args.length;i++)\n {\n sum+=Integer.parseInt(args[i]);\n System.out.println(sum);\n }\n\n }",
"public static void main(String[] args) {\n\n Scanner sc=new Scanner(System.in);\n System.out.print(\"Nhap phan so dang a/b: \");\n String strPS=sc.nextLine();\n PhanSo ps=PhanSo.fromString(strPS);\n System.out.println(ps);\n\n //tinh tong\n System.out.print(\"Nhap phan so dang a/b: \");\n String strPS2=sc.nextLine();\n PhanSo ps2=PhanSo.fromString(strPS);\n ps.plus(ps2);\n\n\n\n }",
"public static void main(String[] args) {\n\n\n Scanner scanner = new Scanner(System.in);\n // V skobite mu kazvame OT KUDE DA CHETE, v sluchaq da chete ot standarniq\n // vhod, t.e. OT KONZOLATA ! NO MOJE I DA CHETE OT DRUGI MESTA !!!\n // SKENERA VAJI SAMO ZA METODA V KOITO E SUZDADEN, MOJEM DA GO KRUSTIM KAKTO SI ISKAME !\n\n // V Java Integer.parseInt() e ekvivalentno na int.Parse() v C# !!!!!\n //Double.parseDouble() E KATO double.Prse() !!!!\n //scanner.nextLine() e kato console.ReadLine() v C# !!!\n double firstNum = Double.parseDouble(scanner.nextLine());\n double secondNum = Double.parseDouble(scanner.nextLine());\n\n double sum = firstNum + secondNum;\n\n\n // S Place holdera mojem da formatirame kakto si poiskame\n //Trqbva da e .printf() za da raboti.\n System.out.printf(\"Sum = %.2f\", sum);\n\n //VAJNO !!! :\n // V Java nqma decimal, Ima BigInteger, BigDecimal i dr\n // BigInteger e Cqlo chislo koeto e golqmo kolkoto ni subira pametta !\n // BigDecimal e DROBNO CHISLO koeto e golqmo kolkoto ni subira pametta !\n }",
"@Test\n\tpublic void test_StringCalculator_WhenNewlineBetweenNumbers_Then_ReturnTheValidSum() {\n\t\tAssert.assertEquals(6,calc.Add(\"1\\n2,3\"));\n\t}",
"public String[] camposDivididos(){\r\nString[] args=column().split(\"[,]\");\r\nreturn args;\r\n //return Arrays.toString(args);\r\n}",
"public static void main(String[] args) {\n for (String str: args) {\n pl(commafyR(Integer.parseInt(str)));\n }\n }",
"public static void main(String[] args) {int a=10;\n//\t\tint b=9;\n//\t\tString c =\"surya\";\n//\t\tString d=\"9\";\n//\t\t\n//\t\tint e=Integer.parseInt(d);\n//\t\t\n//\t\tSystem.out.println(a+b);\t\t\n//\t\tSystem.out.println(b+c);\n//\t\tSystem.out.println(b+d);\n//\t\tSystem.out.println(b+e);\n\t\t\n//\t\tString A=\"10\";\n//\t\tString B=\"30\";\n//\t\tSystem.out.println(A+B);//1020\n//\t\t\n//\t\tint c= Integer.parseInt(B);\n//\t\tint d= Integer.parseInt(A);\n//\t\tSystem.out.println(c+d);//30\n//\t\t\n\t\n\tint A = 10;\n\tint B = 20;\n\t\n\tSystem.out.println(A+B);//30\n\t\n\tString C = String.valueOf(A);\n\tString D = String.valueOf(B);\n\t\n\tSystem.out.println(C+D);//1020\n\t\n\t\n\t\n\t}",
"public void sumar(){\n recogidaDatos();\n System.out.println(\"El resultado de la suma es: \" + (numerando1 + numerando2));\n System.out.println(\"***********************************\");\n\n }",
"private void getEachElementOfTheLine() {\n int nbOfComa = 0;\n String idItemCraft = \"\";\n ArrayList<String> idItemNeeded = new ArrayList<>();\n ArrayList<String> quantityItemNeeded = new ArrayList<>();\n boolean isFinished = false;\n for (int c = 0; c < line.length() && !isFinished; c++) {\n switch (nbOfComa) {\n\n case 2:\n quantityItemNeeded.add(new String(\"\" + line.charAt(c)));\n if (line.charAt(c + 1) == '.') {\n isFinished = true;\n } else if (line.charAt(c + 1) == ';') {\n nbOfComa = 1;\n c++;\n }\n break;\n\n case 1:\n idItemNeeded.add(new String(\"\" + line.charAt(c)));\n if (line.charAt(c + 1) == ',') {\n nbOfComa++;\n c++;\n }\n break;\n\n case 0:\n idItemCraft = idItemCraft + line.charAt(c);\n if (line.charAt(c + 1) == ';') {\n nbOfComa++;\n c++;\n }\n break;\n\n default:\n break;\n }\n }\n this.idItemCraft = idItemCraft;\n this.idItemNeeded = idItemNeeded;\n this.quantityItemNeeded = quantityItemNeeded;\n }",
"public String toString () {\n\t\tString a = \"ChampionnatComplexe :\\n\";\n\t\ta = a + \"Poule A Groupe 1 :\\t\" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpA1 [i] +\" \\t\" ;\n\t\t}\n\t\ta = a + \"\\nPoule A Groupe 2 :\\t\" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpA2 [i] +\" \\t\" ;\n\t\t}\n\t\ta = a + \"\\nPoule B Groupe 1 :\\t\" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpB1 [i] +\" \\t\" ;\n\t\t}\n\t\ta = a + \"\\nPoule B Groupe 2 :\\t\" ;\n\t\tfor ( int i = 0 ; i < 3 ; i++ ) {\n\t\t\ta = a + grpB2 [i] +\" \\t\" ;\n\t\t}\n\t\ta = a + \"\\nEquilibre des poules:\\t\" + getEquilibreDesPoules()+\" (note = \"+ noteEquilibre +\")\\n\" ;\n\t\ta = a + \"Distance totale parcourue:\\t\" +getDistanceTotale()+\" (note = \"+ noteDistance +\")\\nDistance moyenne par equipe parcourue : \"+getDistanceMoyenne()+\"\\n\";\n\t\tif (opt.getEvaluation() == 2) {\n\t\t\ta = a + \"Moyenne pondérée de l'equilibre et de la distance ramenées sur 100 : \"+getNoteMoyennePondereeEqDist()+\" (avec un coefiscient de \"+opt.getPourcentageDistance()+\" pour la distance et de \"+(100-opt.getPourcentageDistance())+\" pour l'equilibre) \\n\";\n\t\t}\n\t\treturn a;\n\t}",
"public static void main(String[] args) {\n\t\tint sum=0;\n\t\tfor(String num:args)\n\t\t{\n\t\t\tsum+=Integer.parseInt(num);\n\t\t}\n\t\t\tSystem.out.println(\"sum is \"+sum);\n\t}",
"public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String s[] = br.readLine().split(\" \");\n // So s[0] contains i and s[1] contains j.\n // Parse s[0] and s[1] and proceed with your logic\n System.out.println(findSum(new BigInteger(s[0]), new BigInteger(s[1])));\n\n\n }",
"private String concatFields()\n {\n String concatedFields = \"\";\n Integer intChecker;\n String strChecker;\n Double doubleChecker;\n \n concatedFields += ( (intChecker = getCodigo()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (strChecker = getNome()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (strChecker = getSigla()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (intChecker = getCodigoMantenedora()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (strChecker = getMantenedora()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (intChecker = getCategoria()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getOrganizacao()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getCodigoMunicipio()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (strChecker = getMunicipio()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (strChecker = getUf()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (strChecker = getRegiao()) == null ? \"\" : strChecker ) + \" \";\n concatedFields += ( (intChecker = getTecnico()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getPeriodico()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (intChecker = getLivro()) == null ? \"\" : intChecker ) + \" \";\n concatedFields += ( (doubleChecker = getReceita()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getTransferencia()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getOutraReceita()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaDocente()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaTecnico()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaEncargo()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaCusteio()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaInvestimento()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaPesquisa()) == null ? \"\" : doubleChecker ) + \" \";\n concatedFields += ( (doubleChecker = getDespesaOutras()) == null ? \"\" : doubleChecker ) + \" \";\n \n return new MyString(concatedFields).removeLastChar().toString();\n }",
"public static void main(String[] args) {\n\t\tint a = 12;\n\t\tint b = 12;\n\t\t\t\t\n\t\tSystem.out.println(\"A soma entre 12 + 12 = \");\n\t\tSystem.out.println(a + b);\n\t}",
"public static void main (String[] args)\n\t{\n\t\tString bat;\n\t\tString bi;\n\n\t\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"\\n Intruoduce el el primer string: \");\n\t\tbat = sc.nextLine();\n\n\t\n\t\tSystem.out.print(\"\\n Introduce el segundo string: \");\n\t\tbi = sc.nextLine();\n\n\n\n\t\t// con el siguiente objeto concatena el string bat con el string 2\n \t\tString concatenado = bat.concat(bi);\n \t\tSystem.out.println(\"\\n El texto concatenado es: \" + concatenado);\n\n\t\t\n\t\t// para imprimir los dos strings ya concatenados\n\t\tSystem.out.println(\"\\n Primer valor de la cadena concatenada: \" + concatenado);\n\t\t\n\n\t\t//para convertir en mayusculas o minusculas los caracteres del string\n\t\tString minus = concatenado.toLowerCase();\n\t\tString mayus = concatenado.toUpperCase();\n\n\t\tSystem.out.print(\"lo concatenado en minuscula: \" + minus);\n\t\tSystem.out.print(\"\\nlo concatenado en mayuscula: \" + mayus);\n\n\n\n\n\n\t\t//para comparar los dos Strings si son iguales da igual mayuscula o minuscula\n\t\tif (bat.equalsIgnoreCase(bi) ) // igual con mayuscula y minusculas bat.equals(bi)\n\t\t\tSystem.out.println(\"\\nLos dos strings son iguales\");\n\t\telse\n\t\t\tSystem.out.println(\"\\nlos dos strings son diferentes\");\n\n\t\t//si el string esta vacio para ello lo escrito por teclado tiene que ser de tipo nextLine\n\t\tif (bat.isEmpty())\n\t\t\tSystem.out.println(\"el string bat esta vacio\");\n\n\t\tif (bi.isEmpty())\n\t\t\tSystem.out.println(\"el string bi esta vacio\");\n\n\t\t//para convertir datos de cualquier tipo a string\n\t\tSystem.out.print(\"\\n Intruoduce un numero para convertirlo a string \");\n\t\tint zenbaki = sc.nextInt();\n\n\t\tString berria = String.valueOf(zenbaki);\n\t\tSystem.out.print(zenbaki);\n\t\t\n\n\t\t\n\t\t\t\n\t}",
"public String devolver_campos_concatenados(){\n String dato_concatenado=\"\";\n campos_concaenados=\" \";\n for (int j=0;j<numero_campos;j++){\n if(j==numero_campos-1){\n dato_concatenado=campos[j];\n }else{\n dato_concatenado=campos[j]+\", \";\n }\n campos_concaenados=campos_concaenados+dato_concatenado;\n }\n \n return campos_concaenados;\n }",
"public static void main(String[] args) {\n\t\tint index = 0 ;\n\t\tint sum =0;\n\t\twhile (index< args.length) {\n\t\t\tsum+=Integer.parseInt(args[index]);\n\t\t\tindex+=1;\n\t\t}\n\t\n\t\tSystem.out.println(sum);\t\t\n\n\t}",
"public static void main(String[] args) {\n\n\t\tSystem.out.println(\"*** Extract Digits Method ***\");\n\t\tExtractDigitsToSum(\"23adf5dsf4\"); \n\t\tExtractDigitsToSum(\"235a4\");\n\t\tExtractDigitsToSum(\"2354a\"); \n\t\tExtractDigitsToSum(\"a2354\");\n\t\tExtractDigitsToSum(\"a2a3a5a4a\"); \n\t\tExtractDigitsToSum(\"123a-bc-22\");\n\n\t\tSystem.out.println(\"\\n*** ******** ***\\n\");\n\t\tSystem.out.println(\"*** Add summation method ***\");\n\t\tSystem.out.println(addSummation(\"123abc45def6gh78\"));\n\t\tSystem.out.println(addSummation(\"23adf5dsf4\"));\n\t\tSystem.out.println(addSummation(\"235a4\"));\n\t\tSystem.out.println(addSummation(\"2354a\"));\n\t\tSystem.out.println(addSummation(\"a2a3a5a4a\"));\n\t\tSystem.out.println(addSummation(\"232345\"));\n\t\tSystem.out.println(addSummation(\"abcde\"));\n\t\tSystem.out.println(addSummation(\"1abcde1\"));\n\t}",
"public static void main(String[] args) {\n\n\t\tSolution_415 sl = new Solution_415();\n\t\tSystem.out.println(sl.addStrings2(\"0\", \"0\"));\n\n\t\t\n\t}",
"@Override\n String operations(ArrayList<String> value) {\n \n spreadsheet = Spreadsheet.getSpreadsheet();\n \n double res=0;\n \n if (!value.isEmpty()) {\n if (value.get(0).contains(\":\")) {\n return verifyIfMultipleAddAndReturnValue(value.get(0));\n } else {\n\n for (int i = 0; i < value.size(); i++) {\n if (value.get(i).isEmpty()) {\n res += 0;\n } else {\n if(verifyIsNumber(value.get(i))){\n res += Double.parseDouble(value.get(i));\n }else{\n res+=0;\n }\n }\n }\n }\n }\n \n return String.valueOf(res);\n }",
"public String buildingString() {\r\n\t\twhichBuild = 1 - whichBuild;\r\n\t\tif (whichBuild == 1) {\r\n\r\n\t\t}\r\n\t\treturn \"420 400;10 10 140 60 60 60 10;140 10 240 60 180 60 10;240 10 400 60 320 60 20 ;10 90 120 180 40 90 15;120 90 280 180 160 90 10;280 90 400 180 340 90 10\";\r\n\t}",
"@Test\n\tpublic void test_StringCalculator_WhenMultipleDigitsUsed_ThenReturmSum() {\n\t\tAssert.assertEquals(10, calc.Add(\"1,2,3,2,2\"));\n\t}",
"private int additionWithoutCarrying(int param1, int param2) {\n String num1 = String.valueOf(param1);\n String num2 = String.valueOf(param2);\n int tamanioNum1 = num1.length();\n int tamanioNum2 = num2.length();\n\n //2. build a formatter in order to pad with zeroes in the left\n String formatter = \"%0\" + Math.max(tamanioNum1, tamanioNum2) + \"d\";\n num2 = String.format(formatter, param2);\n num1 = String.format(formatter, param1);\n\n //3. construct a StringBuilder which saves the result as a string. Also, a simple integer to perform the\n // real arithmetic sum.\n StringBuilder resultBadSum = new StringBuilder();\n int digitSum;\n\n //4. for each String position I sum up the digits and ask if it's greater than 10 (more than 1 digit); if so,\n //I save only the right-most digit.\n for (int i = 0; i < Math.max(tamanioNum1, tamanioNum2); i++) {\n digitSum = Integer.parseInt(String.valueOf(num1.charAt(i)))\n + Integer.parseInt(String.valueOf(num2.charAt(i)));\n if (digitSum < 10) {\n resultBadSum.append(digitSum);\n } else {\n resultBadSum.append(digitSum % 10); //% 10 preserves only the last digit.\n }\n }\n\n return Integer.parseInt(resultBadSum.toString());\n }",
"public String executable(String[] a) {\r\n\t\t\r\n\t\tdouble number;\r\n\t\ttry{\r\n\t\t\t// parsen naar double.\r\n\t\tnumber = Double.parseDouble(a[0]); \r\n\t\t}catch(NumberFormatException e){\r\n\t\t\treturn \"Error: parseDouble bij SQRT!\";\r\n\t\t}\r\n\t\t\r\n\t\t// Het waarde waarvan de wortel wordt genomen mag niet 0 zijn!\r\n\t\tif(number>=0){\t\t\r\n\t\treturn \"\" + Math.sqrt(number) + \"\";\r\n\t\t}else{\r\n\t\t\treturn\"Error: Het getal waarvan de wortel moet berekend worden is negatief!\";\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n String primerNumero = JOptionPane.showInputDialog(\"Introduzca el primer entero\");\r\n String segundoNumero = JOptionPane.showInputDialog(\"Introduzca el segundo entero\");\r\n \r\n //Convertir las entradas String en valores int para usarlos en un calculo\r\n int numero1 = Integer.parseInt(primerNumero);\r\n int numero2 = Integer.parseInt(segundoNumero);\r\n int suma = numero1 + numero2;\r\n \r\n //Muestra los resultados en un dialogo de mensajes de JOptionPane\r\n JOptionPane.showMessageDialog(null,\"La suma es \" + suma, \"Suma de dos enteros\", JOptionPane.PLAIN_MESSAGE);\r\n }",
"@Test\n\tpublic void test_StringCalculator_WhenNewLineIsOnlyDelimiter_then_return_validSum() {\n\t\tAssert.assertEquals(8, calc.Add(\"1\\n2\\n1\\n2\\n2\"));\n\t}",
"private String syuneri_gumar(ArrayList<Integer> syun, int size) {\n int summa = 0, i = 0;\n do {\n summa = summa + syun.get(i);\n i++;\n }\n while (i < size);\n return \"\" + summa;\n }",
"static String MostrarPergunta(int pergunta)\n {\n String montada = \"\";\n \n montada = montada + Perguntas(pergunta); //pega as perguntas na função de Perguntas, contatena com a String montada\n montada = montada + \"\\n\";\n \n String [] opcoes = Opcoes(pergunta); //pega as opções de acordo com a numeração da pergunta \n \n for (int i = 0; i < opcoes.length; i++) \n {\n montada = montada + (opcoes[i] + \"\\n\"); //monta as opções com as perguntas com as respectivas numeração \n }\n montada = montada + \"\\n\";\n montada = montada + \"\\n\";\n \n return montada;\n \n }",
"public String getSum();",
"public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Please enter value1: \");\r\n\t\tSystem.out.println(\"Please enter value2: \");\r\n\t\tint value1 = scanning();\r\n\t\tint value2 = scanning();\r\n\t\tint sum = calcsum(value1, value2, \"+\");\r\n\t\tSystem.out.print(sum);\r\n\t}",
"public static String sumStringValues(String... values) {\n\t\tFloat total = new Float(0);\n\t\tfor (String value : values) {\n\t\t\ttotal += formatString(value);\n\t\t}\n\t\treturn curencyFormatterString(total);\n\t}",
"public static void main(String[] args) {\n\n\t\t// sum(\"abc\", 2, 3, 5, 6, 7, 8);\n\t\tsum(\"abc\", \"def\");\n\t\tint[] arr = { 3, 4, 5 };\n\t\tsum(arr);\n\t}",
"private String createInput(int[] input){\n\t\tString inputString = \"\";\n\t\tfor(int index = 0; index < input.length; index++)\n\t\t\tinputString += input[index] + \"\\n\";\n\t\treturn inputString;\n\t}",
"private static void calcularTotal(String[] campos) {\n\t\tif (campos.length == 1)\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos: \" + gestor.totalAtribuidos());\n\t\telse {\n\t\t\tint escalao = Integer.valueOf(campos[1]);\n\t\t\tSystem.out.println(\"TOTAL de lugares atribuidos no escalao \" + escalao + \" : \" + gestor.atribuidosNoEscalao(escalao));\n\t\t}\n\t}",
"public static String formatarCampoParaConcatenacao(Object parametro) {\r\n\t\tif (parametro == null) {\r\n\t\t\treturn \"|\";\r\n\t\t} else {\r\n\t\t\treturn parametro + \"|\";\r\n\t\t}\r\n\t}",
"public String toString() {\n\t\treturn \"(\" + this.primeiro + \",\" + this.segundo + \")\";\n\t}",
"public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }",
"@Test\n public void testToString() {\n Command cmd = new Command(\"add\");\n \n Value dialogic = new Value(\"dialogic\");\n dialogic.add(new Parameter(\"module_id\"));\n \n Value dahdi = new Value(\"dahdi\");\n dahdi.add(new Parameter(\"span\"));\n dahdi.add(new Parameter(\"channel\"));\n \n Parameter linkset = new Parameter(\"linkset\", new Value[]{dialogic, dahdi});\n Parameter opc = new Parameter(\"opc\");\n Parameter apc = new Parameter(\"apc\");\n Parameter ni = new Parameter(\"network indicator\");\n \n cmd.add(linkset);\n cmd.add(opc);\n cmd.add(apc);\n cmd.add(ni);\n \n System.out.println(cmd);\n }",
"public StringBuilder add(StringBuilder m, StringBuilder n)\n {\n \n int carryover=0 , sum=0;\n StringBuilder result=new StringBuilder();\n if(m.length()>=n.length())\n {\n n=align(n,m.length());\n }\n else{\n m=align(m,n.length());\n }\n \n String temp1=new String();\n String temp2=new String();\n for (int i=m.length()-1;i>=0;i--) {\n \n \n temp1=temp1+m.charAt(i);\n temp2=temp2+n.charAt(i);\n sum=Integer.parseInt(temp1)+Integer.parseInt(temp2)+carryover;\n //sum=(int) m.charAt(i)+(int)n.charAt(i)+carryover;\n if (sum>=10)\n {\n carryover=1;\n sum=sum-10;\n result.insert(0,sum);\n temp1=\"\";\n temp2=\"\";\n }\n else{\n carryover=0;\n result.insert(0,sum);\n temp1=\"\";\n temp2=\"\";\n } \n }\n if (carryover==1) {\n result.insert(0,carryover);\n }\n //int value=Integer.parseInt(result.toString());\n //result.delete(0,result.length());\n //result.append(value);\n //if (result.length()<m.length())\n // result=align(result,m);\n \n return result;\n \n }",
"static Stream<Arguments> args() {\n\t\treturn Stream.of(\n\t\t\tArguments.of(0, 1, 0, 0, \"one\"),\n\t\t\tArguments.of(3, 1, 0, 3, \"one \"),\n\t\t\tArguments.of(4, 2, 1, 0, \"one \"),\n\n\t\t\tArguments.of(0, 2, 0, 0, \"one two\"),\n\t\t\tArguments.of(1, 2, 0, 1, \"one two\"),\n\t\t\tArguments.of(2, 2, 0, 2, \"one two\"),\n\t\t\tArguments.of(3, 2, 0, 3, \"one two\"),\n\t\t\tArguments.of(7, 2, 1, 3, \"one two\"),\n\t\t\tArguments.of(7, 2, 1, 3, \"one two \"),\n\t\t\tArguments.of(8, 3, 2, 0, \"one two \"),\n\n\t\t\tArguments.of(0, 1, 0, 0, \"'one'\"),\n\t\t\t// Arguments.of(5, 1, 0, 3, \"'one' \"),\n\t\t\tArguments.of(6, 2, 1, 0, \"'one' \"),\n\n\t\t\tArguments.of(0, 1, 0, 0, \"'one'\"),\n\t\t\tArguments.of(1, 1, 0, 0, \"'one'\"),\n\t\t\tArguments.of(2, 1, 0, 1, \"'one'\"),\n\t\t\tArguments.of(3, 1, 0, 2, \"'one'\"),\n\t\t\tArguments.of(4, 1, 0, 3, \"'one'\"),\n\t\t\t// Arguments.of(5, 1, 0, 3, \"'one'\"),\n\n\t\t\tArguments.of(0, 1, 0, 0, \"'one' \"),\n\t\t\tArguments.of(1, 1, 0, 0, \"'one' \"),\n\t\t\tArguments.of(2, 1, 0, 1, \"'one' \"),\n\t\t\tArguments.of(3, 1, 0, 2, \"'one' \"),\n\t\t\tArguments.of(4, 1, 0, 3, \"'one' \"),\n\t\t\t// Arguments.of(5, 1, 0, 3, \"'one' \"),\n\t\t\tArguments.of(6, 2, 1, 0, \"'one' \"),\n\n\t\t\tArguments.of(0, 1, 0, 0, \"\\\"one\\\"\"),\n\t\t\tArguments.of(1, 1, 0, 0, \"\\\"one\\\"\"),\n\t\t\tArguments.of(2, 1, 0, 1, \"\\\"one\\\"\"),\n\t\t\tArguments.of(3, 1, 0, 2, \"\\\"one\\\"\"),\n\t\t\tArguments.of(4, 1, 0, 3, \"\\\"one\\\"\"),\n\t\t\t// Arguments.of(5, 1, 0, 3, \"\\\"one\\\"\"),\n\n\t\t\tArguments.of(0, 1, 0, 0, \"\\\"one\\\" \"),\n\t\t\tArguments.of(1, 1, 0, 0, \"\\\"one\\\" \"),\n\t\t\tArguments.of(2, 1, 0, 1, \"\\\"one\\\" \"),\n\t\t\tArguments.of(3, 1, 0, 2, \"\\\"one\\\" \"),\n\t\t\tArguments.of(4, 1, 0, 3, \"\\\"one\\\" \"),\n\t\t\t// Arguments.of(5, 1, 0, 3, \"\\\"one\\\" \"),\n\t\t\tArguments.of(6, 2, 1, 0, \"\\\"one\\\" \")\n\t\t\t);\n\t}",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\r\n\t\tint line=Integer.parseInt(br.readLine());\r\n\t\t\r\n\t\tint setno=1;\r\n\t\twhile(line-->0)\r\n\t\t{\r\n\t\t\tString[] data=br.readLine().split(\" \");\r\n\t\t\tint n=Integer.parseInt(data[0]);\r\n\t\t\tString ss=data[1];\r\n\t\t\t\r\n\t\t\tString newss=\"\";\r\n\t\t\tfor(int i=0;i<ss.length();i++)\r\n\t\t\t\tif(i+1!=n) newss+=ss.charAt(i);\r\n\t\t\t\r\n\t\t\tSystem.out.println(setno+\" \"+newss);\r\n\t\t\tsetno++;\r\n\t\t}\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tString str;\n\t\tint introdnum;\n\t\tint suma=0;\n\t\t\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tstr=JOptionPane.showInputDialog(\"Introduce el numero \"+(i+1));\n\t\t\tintrodnum=Integer.parseInt(str);\n\t\t\tif(introdnum>=10) {\n\t\t\t\tsuma=suma+introdnum;\n\t\t\t}\n\t\t}\n\t\tJOptionPane.showMessageDialog(null, \"La suma es: \"+suma);\n\t}",
"public static void main(String[] args) {\r\n\t\tSystem.out.println(\"Hallo\" + \" \" + \"Welt\");\r\n\t\tSystem.out.println(\"4 + 5 ergibt \" + 4 + 5);\r\n\t\t\r\n\t\tSystem.out.println(\"4 + 5 ergibt \" + (4 + 5));\r\n\t\tSystem.out.println(4 + 5 + \" ab hier werden Strings aneinandergehangen \" + 4 + 5);\r\n\t\t\r\n\t\tString s1 = \" Hallo\";\r\n\t\tString s2 = \" \";\r\n\t\tString s3 = \"Welt \";\r\n\t\tString s4 = s1 + s2 + s3;\r\n\t\tSystem.out.println(4 + 5 + s4 + 4 + 5);\r\n\t\t\r\n\t\t\r\n\t}",
"public String getVals(){\n return (\"a: \" + a + \"\\nr: \" + r + \"\\nb: \" + b + \"\\ng: \" + g);\n }",
"public static void main(String[] args) {\n\t\tint input1 = 5;//total number of shops//\n\t\tint[] input2 = {3,10,8,6,11};//rates of the cold drinks in different shop\n\t\tint input3 = 4; //total days//\n\t\tint[] input4 = {1,10,3,11};//money available on those days//\n\t int[] show = program(input1,input2,input3,input4);\n\t String sep = \"\";\n\t System.out.print(\"{\");\n\t for(int i=0;i<input3;i++)\n\t {\n\t \tSystem.out.print(sep+show[i]);\n\t \tsep=\",\";\n\t }\n\t System.out.print(\"}\");\n\t \n\n\t}",
"public static String addStrings(String nums1, String nums2) {\n int i = nums1.length() - 1;\n int j = nums2.length() - 1;\n StringBuilder sb = new StringBuilder();\n int carry = 0;\n\n while (i >= 0 || j >= 0) {\n int sum = carry;\n if (i >= 0) {\n sum += nums1.charAt(i--) - '0';\n }\n if (j >= 0) {\n sum += nums2.charAt(j--) - '0';\n }\n sb.append(sum % 10);\n carry = sum / 10;\n }\n if (carry != 0) {\n sb.append(carry);\n }\n return sb.reverse().toString();\n }",
"public static void main (String[] args) {\n Scanner s = new Scanner(System.in);\n String input = s.nextLine();\n int result = Integer.parseInt(input);\n System.out.println(SimpleAdding(result));\n }",
"public static int add(String numbers) {\n\t\t\n String[] numbersArray = numbers.split(\",\");\n \n //throw exception if more than two numbers are provided for addition \n if (numbersArray.length > 2) {\n throw new RuntimeException(\"upto two numbers are allowed seperated by comma\");\n } else {\n\t\t\tfor (String num : numbersArray) {\n\t\t\t\t\n\t\t//check if string is empty or not \n\t\t\t\tif (!num.isEmpty()) {\n\t\t\t\t\tInteger.parseInt(num);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n //return zero if the string is empty\n\t\treturn 0; \n\t}",
"public ArrayList<String> ExcutarCalculo(ArrayList<String> linha, String tipo){\n ArrayList<String> cod = new ArrayList();\n String reg, rv1, rv2;\n \n /*Verifica se a variavel tem registrador*/\n reg = r.getRegistrador(linha.get(0));\n if(linha.size() == 3){//x = n\n rv1 = r.getRegistrador(linha.get(2));//Verifica se é variavel\n \n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n } \n \n if(rv1 == null)\n cod.add(\"load \"+reg+\", \"+linha.get(2));\n else\n cod.add(\"load \"+reg+\", \"+rv1);\n }else{\n ArrayList<String> aux = new ArrayList();\n String[] ordem = new String[100];\n String [][]operador = {{\"(\",\"\"},{\"*\",\"mult\"},{\"/\",\"div\"},{\"+\",\"add\"},{\"-\",\"sub\"}};\n String []temp = {\"ra\",\"rb\",\"rc\",\"rd\",\"re\",\"rf\"};\n Boolean ctr = false;\n int i, j, k, tl, ctrTemp, r1, r2, pos;\n \n for(i = 0; i < 100; i++){\n ordem[i] = \"\";\n } \n \n tl = ctrTemp = 0;\n for(i = 0; i < 5; i++){\n for(j = 0; j < linha.size(); j++){\n if(linha.get(j).contains(operador[i][0])){\n if(i == 0){\n /* min = verificaRegistradores(linha.get(j+1),linha.get(j+3),temp);\n \n if(min == -1){\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t1\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+3);//Carrega val no registrador t2\n }\n \n \n for(k = 0; k < 5; k++){\n if(linha.get(j+2).contains(operador[k][0])){ \n if(operador[k][1].equals(\"add\")){\n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n }\n \n k = 5;\n }\n }\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3 por conta de reuso\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n \n for(k = 0; k < 5; k++)//( ate )\n linha.remove(j);\n linha.add(j,temp[ctrTemp-2]);\n \n if(min == -1)\n ctrTemp -= 1;\n else\n ctrTemp = 0;*/\n }else{\n rv1 = r.getRegistrador(linha.get(j-1));\n rv2 = r.getRegistrador(linha.get(j+1));\n \n r1 = verificaRegistradores(linha.get(j-1),temp);\n if(r1 == -1){//Nenhum registrador\n if(rv1 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j-1);//Carrega val no registrador t1\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv1;\n }\n r2 = verificaRegistradores(linha.get(j+1),temp);\n if(r2 == -1){//Nenhum registrador\n if(rv2 == null)\n ordem[tl++] = \"load \"+temp[ctrTemp++]+\", \"+linha.get(j+1);//Carrega val no registrador t2\n else\n ordem[tl++] = \"move \"+temp[ctrTemp++]+\", \"+rv2;//Carrega val no registrador t2\n } \n \n pos = ctrTemp;//como posso entrar no mult ou no add\n if(operador[i][1].equals(\"mult\") || operador[i][1].equals(\"div\")){\n ctrTemp -= 2;\n \n if(operador[i][1].equals(\"mult\")){\n aux = mult(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }else\n if(operador[i][1].equals(\"div\")){\n aux = div(linha.get(j-1), linha.get(j+1), tipo, temp[ctrTemp++]);\n }\n \n tl -= 2;\n for(k = 0; k < aux.size(); k++){\n ordem[tl++] = aux.get(k);\n }\n pos = ctrTemp-1;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n /*else\n ctrTemp -= 1;*/\n }else\n if(operador[i][1].equals(\"add\") || operador[i][1].equals(\"sub\")){\n if(operador[i][1].equals(\"sub\")){\n ordem[tl-1] = \"load \"+temp[ctrTemp-1]+\", -\"+linha.get(j+1);\n }\n \n if(tipo.equals(\"int\"))\n ordem[tl] += \"addi\";\n else\n ordem[tl] += \"addf\";\n \n ordem[tl] += \" \"+temp[ctrTemp-2];//temp3\n ordem[tl] += \", \"+temp[ctrTemp-1];//temp2\n ordem[tl] += \", \"+temp[ctrTemp-2];//temp1\n tl++;\n pos = ctrTemp-2;\n \n if(r1!= -1 && r2 != -1)\n ctrTemp -= 2;\n else\n ctrTemp -= 1;\n }\n \n for(k = 0; k < 3; k++)\n linha.remove(j-1);\n linha.add(j-1,temp[pos]);\n }\n ctr = true;//Faz repetir denovo caso adicione;\n }\n }\n if(ctr){\n i--;//Controla pra só sair quando tiver excluido todas operacoes desse tipo\n ctr = false;\n }\n }\n for(k = 0; k < tl; k++){\n cod.add(ordem[k]);\n }\n\n if(reg == null){\n reg = \"r\"+(r.getMax()+1);\n r.Add(linha.get(0), reg);\n }\n cod.add(\"move \"+reg+\", \"+temp[ctrTemp-1]);\n ctrTemp = 0;\n }\n \n return cod;\n }",
"public static void main(String[] args) {\n\n Triangulo triangulo = new TrianguloEquilatero();\n Rectangulo rectangulo = new Rectangulo();\n Circulo circulo = new Circulo();\n\n Matematica matematica = new Matematica();\n matematica.calcularArea(triangulo);\n matematica.calcularArea(rectangulo);\n System.out.println(\"Area cuadrado: \" + rectangulo.getArea());\n matematica.calcularArea(circulo);\n\n matematica.calcularPerimetro(triangulo);\n matematica.calcularPerimetro(rectangulo);\n matematica.calcularPerimetro(circulo);\n\n // No se permite porque solo tiene metodos estaticos\n // y por eso se creo el contructor privado\n // MatematicaUtils matematicaUtils = new MatematicaUtils();\n double suma = MatematicaUtils.suma(1,2,3,4,5);\n System.out.println(\"Suma: \" + suma);\n\n\n String[] nombres = StringUtils.dividir1();\n System.out.println(\"Cadena estatico: \" + StringUtils.cadena1);\n }",
"public static void main(String[] args) {\n\t\tString[] tokens = {\"4\", \"13\", \"5\", \"/\", \"+\"};\n\t\tSystem.out.println(cal(tokens));\n\t}",
"@Override\n\tpublic void execute(Tuple input, BasicOutputCollector collector) {\n\t\tString[] numbers = (String[]) input.getString(1).split(\"\\\\+\");\n\t\tInteger added = 0;\n\t\ttry{\n\t\t\tif(numbers.length<2){\n\t\t\t\tthrow new InvalidParameterException(\"Should be at least 2 numbers\");\n\t\t\t}\n\t\t\tfor(String num : numbers){\n\t\t\t\t//Add each member\n\t\t\t\tadded += Integer.parseInt((java.lang.String) num);\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\t//On error emit null\n\t\t\tcollector.emit(new Values(input.getValue(0),NULL));\n\t\t}\n\t\t//Emit the result\n\t\tcollector.emit(new Values(input.getValue(0),added));\n\t}",
"public static void main(String[] args) {\n\t\t//int num = 1;\n\t\t//String nombre = \"Daniel\";\n\t\t//String resultado = (num > 0)?nombre:\"\";\n\t\tString uno = \"ABRAZADERA OMEGA\";\n\t\tString dos = \"DE 2\\\"\";\n\t\tString datos = (uno.equals(dos))?uno:uno+\" \"+dos;\n\t\tSystem.out.println(datos);\n\t}",
"public static void main(String[] args) {\r\n String s1 = \"123\";\r\n String s2 = \"30\";\r\n System.out.println(addStringInteger(s1, s2));\r\n }",
"String performCalculation(String str) {\n // will get all numbers and store it to `numberStr`\n String numberStr[] = str.replaceAll(\"[+*/()-]+\", \" \").split(\" \");\n // will get all operators and store it to `operatorStr`\n String operatorStr[] = str.replaceAll(\"[0-9()]+\", \"\").split(\"\");\n\n int total = Integer.parseInt(numberStr[0]);\n\n for (int i = 0; i < operatorStr.length; i++) {\n switch (operatorStr[i]) {\n case \"+\":\n total += Integer.parseInt(numberStr[i + 1]);\n break;\n case \"-\":\n total -= Integer.parseInt(numberStr[i + 1]);\n break;\n case \"*\":\n total *= Integer.parseInt(numberStr[i + 1]);\n break;\n case \"/\":\n total /= Integer.parseInt(numberStr[i + 1]);\n break;\n }\n\n if (i + 2 >= operatorStr.length)\n continue; // if meets the last operands already\n numberStr[i + 1] = String.valueOf(total);\n\n }\n return String.valueOf(total);\n }",
"public static void main(String[] args) {\n\t\t\t\t\t\t\tInteger firstNumber=new Integer(args[0]);\r\n\t\t\t\t\t\t\t//here it takes the value which we passed in the index arguments \r\n\t\t\t\t\t\t\tInteger secondNumber=Integer.parseInt(args[3]); \r\n\t\t\t\t\t\t\t//here in two ways we can read integer value\r\n\t\t\t\t\t\t\tSystem.out.println(\"given arguments are :11 37 21 12 \");\r\n\r\n\t\t\t\t\t\t\tSystem.out.println(\"the output is :\");\r\n\r\n\t\t\t\t\t\t\tSystem.out.println(firstNumber+\" \"+secondNumber);// here it prints the values of index of size zero and of index size three\r\n\r\n\t\t\t\t\t\t\tSystem.out.println( firstNumber + secondNumber );// here it adds the two values of the given arguments\r\n\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t \t\t // Integer.parseInt(firstNumber) + Integer.parseInt(secondNumber)\r\n\r\n\t\t\t\t\t \t\t // = Integer.parseInt(\"11\") + Integer.parseInt(\"12\")\r\n\r\n\t\t\t\t\t \t\t // = 11 + 12 = 23\r\n\r\n\t\t\t\t\t \t\t // Because + = ADD when used on integers\r\n\r\n\t\t\t\t\t\t}",
"public static void main(String[] args) {\n\n\t\tSystem.out.println(\"Enter the String : \");\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\tint sum = 0;\n\t\t\n\t\tfor(int i = 0;i < s.length();i++) {\n\t\t\t\n\t\t\tsum += (int)s.charAt(i);\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.println(sum);\n\t\t\n\t}",
"public static String addStrings(String num1, String num2) {\n\t\tif (num1 == null || num1.length() == 0 || num2 == null || num2.length() == 0) return null;\n char[] c1 = num1.toCharArray();\n char[] c2 = num2.toCharArray();\n int n1 = c1.length;\n int n2 = c2.length;\n \n StringBuilder sb = new StringBuilder();\n int i, j;\n int add = 0;\n for (i = n1 - 1, j = n2 - 1; i >= 0 && j >= 0; i--, j--) {\n \tint sum = (c1[i] - '0') + (c2[j] - '0') + add;\n \tsb.append(sum % 10);\n \tadd = sum / 10;\n }\n if (j > 0) {\n \tc1 = c2;\n }\n for (i = Math.max(i, j); i >= 0; i--) {\n \t\tint v = c1[i] - '0' + add;\n \t\tsb.append(v % 10);\n \t\tadd = v / 10;\n \t}\n \tif (add > 0) {\n \t sb.append(add);\n \t}\n \t\n \treturn sb.reverse().toString();\n }",
"static String addStringInteger(String s1, String s2) {\r\n //return String.valueOf(Integer.parseInt(s1) + Integer.parseInt(s2));\r\n return String.valueOf(Integer.valueOf(s1) + Integer.valueOf(s2));\r\n }",
"public String toString(){\n\t\tString maChaineRetour=\"\";\n\t\t\n\t\tfor(Cristal[] ligne: tabCristaux){\n\t\t\tfor(Cristal colonne: ligne){\n\t\t\t\tif(colonne == null)\n\t\t\t\t\tmaChaineRetour = maChaineRetour + \"0\" ;\n\t\t\t\telse\n\t\t\t\t\tmaChaineRetour = maChaineRetour + colonne.toString();\n\t\t\t}\n\t\t\tmaChaineRetour = maChaineRetour + \"\\n\";\n\t\t}\n\t\treturn maChaineRetour;\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tSystem.out.println(\"calculate (18273645,81726354) and (12345678,87654321): \\nResult: \");\r\n\t\tSystem.out.print(get(18273645,81726354) + \"\\t\" + get(12345678,87654321));\r\n\t\t\r\n\t}",
"public String getScriptOfParameters() {\r\n\t\tString str = \"\";\r\n\r\n\t\tfor (DataVariable var : dataTestModel) {\r\n\t\t\tstr += var.getName() + \",\";\r\n\t\t}\r\n\t\tif (str.endsWith(\",\")) {\r\n\t\t\tstr = str.substring(0, str.length() - 1);\r\n\t\t}\r\n\t\treturn str;\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tint numInt = 2020;\n\t\tString string1 = Integer.toString(numInt);\n\t\tString string2 = \"\" + numInt;\n\t\t\n\t\tSystem.out.println(\"Le mie due stringhe sono: \" + string1 + \", \" + string2);\n\t\t\n\t\tdouble numDou = 2020.0;\n\t\tString string3 = Double.toString(numDou);\n\t\tString string4 = \"\" + numDou;\n\t\t\n\t\tSystem.out.println(\"Le mie due stringhe sono: \" + string3 + \", \" + string4);\n\t\t\n\t\t//Ora converto una stringa in un numero\n\t\t\n\t\tString pi = \"3.1415\";\t\t\n\t\tdouble piG = Double.parseDouble(pi);\n\t\tSystem.out.println(\"Il mio double è: \" + piG);\n\t\t\n\t\tString mil = \"10000000\";\n\t\tint mill = Integer.parseInt(mil);\n\t\tSystem.out.println(\"Il mio int è: \" + mill);\n\t\t\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn \"\" + nome + \",\" + String.format(\"%.2f\", getPrecoTotal());\n\t}",
"public static void main(String[] args) {\n\t\tString st1= \"jdk\" + 6.0;\n\t\tString st2 = st1 + \" Ư¡\";\n\t\tSystem.out.println(st2);\n\t\tString st3 = \"jdk\"+3+3.0;\n\t\tString st4 = 3+3.0+\"jdk\";\n\t\tSystem.out.println(st3);\n\t\tSystem.out.println(st4);\n\t\t\n\t\n\t}",
"public String paramString() {\n\t\tString tail = super.paramString();\n\t\ttail = tail.substring(tail.indexOf(')') + 1);\n\t\treturn \"points=\" + points + \", lineWidth=\" + getLineWidth() + tail;\n\t}",
"public static void main(String[] args) {\n String[] input = new String[]{\"A,E,N,S\", \"S,H,N\", \"E,N\", \"H\", \"N\"};\n List<String> list = costOfModules(input);\n for (String str : list) {\n System.out.println(str);\n }\n }",
"public void calculos() {\n a = a1+a2+a3;\n b = b1+b2+b3;\n c = c1+c2+c3;\n }",
"public String toMathString(){\n String string = \"{\\n\" + nrVertices + \",\\n{\\n\";\n boolean firstElem = true;\n for(DEdge edge : edges){\n if(!firstElem){\n string += \",\";\n }\n else{\n firstElem = false;\n }\n string += \"{\" + (edge.getVertex1()+1) + \",\" + (edge.getVertex2()+1) + \"},\" + (edge.getWeight());\n }\n string += \"\\n}\\n}\\n\";\n return string;\n }",
"public static void main(String[] args) {\n\n\t\tint[] digits={9,9,9,9};\n\t\t//System.out.println(plusOne(digits).toString());\n\t}",
"public static String checksumComputationWithData(String hex1, String hex2, String hex3,\n String hex4, String hex5, String datos){\n //Se hace la suma de los campos junto con la suma del carry out\n String sumas = fieldAdd(hex1,hex2,hex3,hex4,hex5);\n //Se parte la data en chunks de 16 bits\n String [] arr = datos.split(\"(?<=\\\\G.{4})\");\n\n //Se suman los campos con los chunks de la data\n for (int i = 0; i < arr.length; i++) {\n sumas = binaryAdd(sumas, hexToBinary(arr[i]));\n }\n\n //Se le saca el complemento a 1\n String checksumRes = complement1(sumas);\n //Se convierte a hex\n checksumRes = Integer.toString(Integer.parseInt(checksumRes,2),16).toUpperCase();\n return checksumRes;\n }"
] | [
"0.6127203",
"0.5998808",
"0.5822689",
"0.5584495",
"0.5550392",
"0.55105275",
"0.5483549",
"0.5473563",
"0.5463863",
"0.54634196",
"0.54467237",
"0.5432855",
"0.5414422",
"0.5412366",
"0.54082304",
"0.54049563",
"0.5389969",
"0.5356633",
"0.53558123",
"0.5349887",
"0.53485966",
"0.5342631",
"0.53402257",
"0.5333292",
"0.53218454",
"0.5311733",
"0.53089017",
"0.53009135",
"0.5263548",
"0.5251795",
"0.52332795",
"0.52327055",
"0.5228676",
"0.52228355",
"0.5196971",
"0.51932806",
"0.5179709",
"0.51669425",
"0.51646864",
"0.5156217",
"0.5147127",
"0.51333934",
"0.51325214",
"0.51296264",
"0.5129",
"0.5119036",
"0.5113281",
"0.5110746",
"0.5105001",
"0.5100763",
"0.50856984",
"0.50856143",
"0.5081281",
"0.5068142",
"0.5061535",
"0.5052005",
"0.5049066",
"0.504699",
"0.5041544",
"0.502722",
"0.5024569",
"0.50231355",
"0.5013352",
"0.50131404",
"0.5008948",
"0.5008479",
"0.49996263",
"0.49995747",
"0.49978763",
"0.49974123",
"0.4991757",
"0.49769595",
"0.49759966",
"0.49654952",
"0.49526328",
"0.49484375",
"0.49465963",
"0.4939783",
"0.49263826",
"0.4926359",
"0.49253088",
"0.49164894",
"0.49147832",
"0.49089974",
"0.49000463",
"0.4898688",
"0.48933765",
"0.4893272",
"0.4892234",
"0.48920128",
"0.48715296",
"0.4870499",
"0.48693654",
"0.48641187",
"0.48634845",
"0.48574442",
"0.4856826",
"0.48565632",
"0.4856042",
"0.48503867"
] | 0.6024077 | 1 |
Univocity parser is a library for csv data parsing | static CsvParser getCsvParser(){
CsvParserSettings settings = new CsvParserSettings();
settings.getFormat().setLineSeparator("\n");
return new CsvParser(settings);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void parseCSV(String csv) {\n\t\t\n\t}",
"@Override\n\tpublic void executeParser() {\n\t\tString filepath = (!filePath.isEmpty() && !filePath.equals(null)) ? filePath : \"faculty.csv\";\n\n\t\tList<String> linesFromFile = loadLinesFromFile(filepath);\n\t\t// Convert the list to an Array of Strings.\n\t\tString[] lines = linesFromFile.toArray(new String[0]);\n\t\tList<AuthorAffiliation> authorAffiliationList = new ArrayList<AuthorAffiliation>();\n\n\t\tfor (int i = 1; i < lines.length; i++) {\n\t\t\tString[] nameAffiliation = lines[i].split(\",\");\n\n\t\t\tif (nameAffiliation.length == 2) {\n\t\t\t\tAuthorAffiliation authorAffiliation = new AuthorAffiliation();\n\t\t\t\tauthorAffiliation.setName(nameAffiliation[0]);\n\t\t\t\tauthorAffiliation.setAffiliation(nameAffiliation[1]);\n\t\t\t\tauthorAffiliationList.add(authorAffiliation);\n\t\t\t}\n\t\t}\n\n\t\tHandleFacultyAffiliation facultyAffiliation;\n\t\ttry {\n\t\t\tfacultyAffiliation = new HandleFacultyAffiliation();\n\t\t\tfacultyAffiliation.insertRecords(authorAffiliationList);\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Error while processing faculty affilications.\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public NParseCsv(String charset, boolean isHeaderPresent)\n {\n try\n {\n _decoder = Charset.forName(charset).newDecoder();\n _inBytes = null;\n _outChars = null;\n }\n catch(Exception e)\n {\n System.err.println(\"Error creating charset decoder for '\"+charset+\"' in NParseCsv(): \"+e);\n }\n \n _isHeaderPresent = isHeaderPresent;\n _linePos = 0;\n _fieldPos = 0;\n _charPos = 0;\n }",
"@Override\n DBO consume(String csv) throws TransformerException;",
"private void parseData() {\n\t\t\r\n\t}",
"public void readEntityCSV(String line) {\n List<String> items = Arrays.asList(line.split(\",\"));\n this.setId(Long.valueOf(items.get(0)));\n this.noOfRounds = Integer.parseInt(items.get(1));\n this.caliber = Float.parseFloat(items.get(2));\n this.manufacturer = items.get(3);\n this.price = Float.parseFloat(items.get(4));\n }",
"@Override\n public void importCSV(File file) {\n System.out.println(\"oi\");\n System.out.println(file.isFile()+\" \"+file.getAbsolutePath());\n if(file.isFile() && file.getPath().toLowerCase().contains(\".csv\")){\n System.out.println(\"Entro\");\n try {\n final Reader reader = new FileReader(file);\n final BufferedReader bufferReader = new BufferedReader(reader);\n String[] cabecalho = bufferReader.readLine().split(\",\");\n int tipo;\n if(cabecalho.length == 3){\n if(cabecalho[2].equalsIgnoreCase(\"SIGLA\")){\n tipo = 1;\n System.out.println(\"TIPO PAIS\");\n }\n else {\n tipo = 2;\n System.out.println(\"TIPO CIDADE\");\n }\n }else {\n tipo = 3;\n System.out.println(\"TIPO ESTADO\");\n }\n \n while(true){\n String linha = bufferReader.readLine();\n if(linha == null){\n break;\n }\n String[] row = linha.split(\",\");\n switch (tipo) {\n case 1:\n Pais pais = new Pais();\n pais.setId(Long.parseLong(row[0]));\n pais.setNome(row[1]);\n pais.setSigla(row[2]);\n new PaisDaoImpl().insert(pais);\n break;\n case 2:\n Cidade cidade = new Cidade();\n cidade.setId(Long.parseLong(row[0]));\n cidade.setNome(row[1]);\n cidade.setEstado(Long.parseLong(row[2]));\n new CidadeDaoImpl().insert(cidade);\n break;\n default:\n Estado estado = new Estado();\n estado.setId(Long.parseLong(row[0]));\n estado.setNome(row[1]);\n estado.setUf(row[2]);\n estado.setPais(Long.parseLong(row[3]));\n new EstadoDaoImpl().insert(estado);\n break;\n }\n }\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(SQLUtilsImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }",
"@SuppressWarnings(\"resource\")\r\n\tpublic static ArrayList<UserInfo> getUserDataFromCsvFile()\r\n\t{\r\n\t\t\r\n\t\tArrayList<UserInfo> unfList=null;\r\n\t\ttry{\r\n\t\t\tFile myObj= new File(\"E:\\\\Selenium Setup\\\\datadriven.csv\");\r\n\t\t\tunfList = new ArrayList<UserInfo>();\r\n\t\t\tScanner myReader= new Scanner(myObj);\r\n\t\t\tint count=0;\r\n\t\t\twhile (myReader.hasNextLine()) \r\n\t\t\t{\r\n\t\t\t\tString data= myReader.nextLine();\r\n\t\t\t\tif (count !=0)\r\n\t\t\t\t{\r\n\t\t\t\t\tString[] info =data.split(\"\\\\,\");\r\n\t\t\t\t\tunfList.add(new UserInfo(info[0],info[1]));\r\n\t\t\t\t\t//unfList.add(new UserInfo(info[0], info[1]));\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t++count;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch (Exception e)\r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t}\r\n\t\t\treturn unfList;\r\n\t}",
"public void Parse()\n {\n String prepend = \"urn:cerner:mid:core.personnel:c232:\";\n try{\n\n BufferedReader br = new BufferedReader(new FileReader(new File(path)));\n\n String line;\n\n while ((line = br.readLine()) != null)\n {\n line = line.trim();\n String[] lines = line.split(\",\");\n for (String entry : lines)\n {\n entry = entry.trim();\n entry = entry.replace(prepend, replace);\n System.out.println(entry+\",\");\n }\n\n }\n \n br.close();\n }catch(IOException IO)\n {\n System.out.println(IO.getStackTrace());\n } \n \n }",
"@Override\n\tprotected Object csvRecordToObject(String cvsRecord) {\n\t\t \n String[] arrOfStr = cvsRecord.split(\",\");\n\t\t Item item =new Item();\n\t\t item.setItemno(Integer.parseInt(arrOfStr[0]));\n\t\t item.setItemName(arrOfStr[1]);\n\t\t item.setUnitPrice(arrOfStr[2]);\n\t\t return item;\n\t\t\n\t}",
"public void Read_Csv() {\n\t\t\n\t\tFile file = new File(\"Faucets.csv\");\n\t\tif(file.exists() == false) {\n\t\t\ttry {\n\t\t\t\t if (file.createNewFile()) {\n\t\t\t\t System.out.println(\"File created: \" + file.getName());\n\t\t\t\t } else {\n\t\t\t\t System.out.println(\"File already exists... Error\");\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\tFileWriter myWriter = new FileWriter(\"Faucets.csv\");\n\t\t\t\tmyWriter.write(\"Freebitco.in,3600,228,\");\n\t\t\t\tmyWriter.close();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Error\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//Reading the file\n\t\tString line = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"Faucets.csv\");\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\t\t\t\n\t\t\tint x = 0;\n\t\t\tint commacounter = 0;\n\t\t\tint commaposition[] = new int[3];\n\t\t\twhile((line = bufferedReader.readLine()) != null) {\n\t\t\t\t\n\t\t\t\twhile(x < line.length()) {\n\t\t\t\t\t\n\t\t\t\t\tif(line.charAt(x) == ',') {\n\t\t\t\t\t\tcommaposition[commacounter] = x;\n\t\t\t\t\t\tcommacounter +=1;\n\t\t\t\t\t}\n\t\t\t\t\tif(commacounter == 3) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tFaucets.site[amount_counter] = line.substring(0, commaposition[0]);\n\t\t\t\t\t\tFaucets.time[amount_counter] = Integer.parseInt(line.substring(commaposition[0]+1, commaposition[1]));\n\t\t\t\t\t\tFaucets.amount[amount_counter] = Integer.parseInt(line.substring(commaposition[1]+1, commaposition[2]));\n\t\t\t\t\t\tamount_counter += 1;\n\t\t\t\t\t\tcommacounter=0;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tx+=1;\n\t\t\t\t}\n\t\t\t\tx=0;\n\t\t\t}\n\t\t\tbufferedReader.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\n\t\t\t\n\t}",
"public void loadActivitiesFromCsv(UserTrees tree, LocalDateTime timePeriodBegin, LocalDateTime timePeriodEnd) {\n\t\t\n\t\tActivity atividade;\n\t\tNode<Object> userNode, timeNode, pcNode;\n\t\tString csvLine = getNextLine();\n\t\t/*Verifies if the line is a header. ignores it if that's the case*/\n\t\tPattern p = Pattern.compile(\"/id|date|user|pc|activity/i\");\n\t\tMatcher m = p.matcher( csvLine );\n\t\tif(!m.find()) {\n\t\t\tatividade = (Activity) stringsToClass( parseCsvLine( csvLine ) );\n\t\t\t\n\t\t\tuserNode = tree.getUserNode( atividade.getUserIdentifier() );\n\t\t\ttimeNode = userNode.getChild(0);\n\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\tloadActivityIntoPc(pcNode, atividade);\t\n\t\t\tif(atividade.getDate().isAfter(timePeriodBegin) && atividade.getDate().isBefore(timePeriodEnd))\n\t\t\t{\n\t\t\t\ttimeNode = userNode.getChild(1);\n\t\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\t\tloadActivityIntoPc(pcNode, atividade);\n\t\t\t}\n\t\t}\n\t\tcsvLine = getNextLine();\n\t\twhile(csvLine != null)\n\t\t{\n\t\t\tatividade = (Activity) stringsToClass( parseCsvLine( csvLine ) );\n\t\t\tif(atividade==null)\n\t\t\t{\n\t\t\t\tcsvLine = getNextLine();\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tuserNode = tree.getUserNode( atividade.getUserIdentifier() );\n\t\t\tif(userNode == null) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttimeNode = userNode.getChild(0);\n\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\tloadActivityIntoPc(pcNode, atividade);\t\n\t\t\tif(timePeriodBegin == null || timePeriodEnd == null) \n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(atividade.getDate().isAfter(timePeriodBegin) && atividade.getDate().isBefore(timePeriodEnd))\n\t\t\t{\n\t\t\t\ttimeNode = userNode.getChild(1);\n\t\t\t\tpcNode = loadPcIntoTime(timeNode, atividade.getPc());\n\t\t\t\tloadActivityIntoPc(pcNode, atividade);\n\t\t\t}\n\t\t\tcsvLine = getNextLine();\n\t\t}\n\t\t\n\t}",
"private static void generateUnis() {\r\n\t\tString[] lines = readFile(\"resources/unidata.csv\");\r\n\t\tint numOfUnis = lines.length + 1;\r\n\t\tfor (String line : lines) {\r\n\t\t\tString[] attributes = line.split(\",\");\r\n\t\t\tUniversity temp = new University();\r\n\t\t\ttemp.name = attributes[0];\r\n\t\t\ttemp.type = attributes[1];\r\n\t\t\ttemp.isRussellGroup = Boolean.parseBoolean(attributes[2]);\r\n\t\t\ttemp.studentSatisfaction = Double.parseDouble(attributes[3]);\r\n\t\t\ttemp.nationwideRanking = numOfUnis - Integer.parseInt(attributes[4]);\r\n\t\t\ttemp.costOfLiving = Double.parseDouble(attributes[5]);\r\n\t\t\ttemp.studentFacultyRatio = Double.parseDouble(attributes[6]);\r\n\t\t\ttemp.researchOutput = (int) Double.parseDouble(attributes[7]); // THIS LINE IS INCORRECT\r\n\t\t\ttemp.internationalStudentsRatio = Double.parseDouble(attributes[8]);\r\n\t\t\ttemp.graduateProspects = Double.parseDouble(attributes[9]);\r\n\t\t\t/*\r\n\t\t\t * Structure of CSV file containing general university data: NAME, TYPE (City or\r\n\t\t\t * Campus), RUSSELL GROUP, STUDENT SATISFACTION, NATIONWIDE RANKING (Overall),\r\n\t\t\t * COST OF LIVING (According to appropriate cost of living index), STUDENT\r\n\t\t\t * FACULTY RATIO, RESEARCH OUTPUT, INTERNATIONAL STUDENT RATIO and GRADUATE\r\n\t\t\t * PROSPECTS (How many graduates in full-time employment or education after an\r\n\t\t\t * appropriate period).\r\n\t\t\t */\r\n\t\t\tunis.put(temp.name, temp);\r\n\t\t}\r\n\t}",
"private CSVParser() {\n this.headerMap = new HashMap<>();\n this.header = null;\n this.toDoList = new ToDoList();\n }",
"protected AbstractCSVParser(TokenStream input) {\n super(input);\n }",
"public TreeSet<Product> readCSV() throws IOException, NumberFormatException {\n\r\n TreeSet<Product> products = new TreeSet<>();\r\n\r\n try (BufferedReader reader = new BufferedReader(new FileReader(\"src/Collection/file.csv_2.txt\"));) {\r\n while ((line = reader.readLine()) != null) {\r\n String[] row = line.split(\",\");\r\n\r\n Location location = new Location(\r\n Double.parseDouble(row[14]),\r\n Integer.parseInt(row[15]),\r\n Float.parseFloat(row[16]),\r\n row[17]);\r\n Address address = new Address(\r\n row[12],\r\n row[13],\r\n location\r\n );\r\n Organization organization = new Organization(\r\n Integer.parseInt(row[8]),\r\n row[9],\r\n row[10],\r\n OrganizationType.valueOf(row[11]),\r\n address\r\n );\r\n Coordinates coordinates = new Coordinates(\r\n Float.parseFloat(row[3]),\r\n Double.parseDouble(row[4])\r\n );\r\n try {\r\n\r\n\r\n Product product = new Product (\r\n Integer.parseInt(row[0]),\r\n row[1],\r\n LocalDate.parse(row[2].replace(\"/\", \"-\")),\r\n coordinates,\r\n Integer.parseInt(row[5]),\r\n row[6],\r\n UnitOfMeasure.valueOf(row[7]),\r\n organization\r\n );\r\n products.add(product);}\r\n catch (NumberFormatException e){\r\n System.out.println(\"wrong format\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n products.forEach(System.out::println);\r\n return products;\r\n }",
"@Test\r\n\tpublic void readCsvTest() throws IOException {\r\n\t\t\tfail(\"Not yet implemented\");\r\n\t}",
"public void loadListFromCsv() {\n List<Publication> list = new ArrayList<>();\n String line;\n try(BufferedReader bufferedReader = new BufferedReader(new FileReader(\"saves/data.csv\"))){\n while ((line = bufferedReader.readLine()) != null){\n String[] attributes = line.split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n String[] formattedAttributes = formatAttributes(attributes);\n Publication book = createPublicationFromAttributes(formattedAttributes);\n list.add(book);\n }\n } catch (IOException e){\n System.out.println(\"IOException occurred: \" + e.getMessage());\n }\n\n this.library = list;\n }",
"private static CSVParser getCustomNutrientParser() throws IOException, GoBackException {\n System.out.println();\n System.out.println(\"-------------------------------------------\");\n System.out.println(\"Managing a custom data file.\");\n\n Path inputPath = manageCustomNutrientCSVFile();\n\n Path outputPath = manageCustomNutrientDataFile();\n\n StandardOpenOption option = manageCustomNutrientDataOpenOption();\n\n return new CSVParser(inputPath, outputPath, option);\n }",
"public String[] parseLine() {\n String[] tokens = null;\n try {\n tokens = csvReader.readNext();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return tokens;\n }",
"private static List<City> getCitiesFromString(String line, SocialNetwork r) {\n List<City> cities = new LinkedList<City>();\n String[] splitString = line.split(\",\");\n for (int i = 2; i < splitString.length; i++) {\n City city = r.getListOfCities().getCityByName(splitString[i]);\n cities.add(city);\n }\n return cities;\n }",
"protected AbstractCSVParser(TokenStream input, RecognizerSharedState state) {\n super(input, state);\n }",
"public ExpenseEntity parse(String line);",
"private void parseCSVToBean(String url) throws Exception {\r\n\r\n\t\t// later we have to implement to check created time of the CSV file\r\n\r\n\t\tColumnPositionMappingStrategy<DealerDetails> strat = new ColumnPositionMappingStrategy<>();\r\n\t\tstrat.setType(DealerDetails.class);\r\n\t\tString[] columns = new String[] { \"firstName\", \"lastName\", \"username\",\r\n\t\t\t\t\"contactNumber\", \"panNumber\", \"vatNumber\", \"bankName\",\r\n\t\t\t\t\"bankAccountNumber\", \"websiteUrl\", \"address\",\r\n\t\t\t\t\"branchTelNumber\", \"country\", \"state\", \"city\", \"zipcode\" };\r\n\t\tstrat.setColumnMapping(columns);\r\n\r\n\t\tCsvToBean<DealerDetails> csvToBean = new CsvToBean<DealerDetails>();\r\n\r\n\t\t// URL fileURL = new URL(url);\r\n\t\t// BufferedReader br = new BufferedReader(new InputStreamReader(\r\n\t\t// fileURL.openStream()));\r\n\r\n\t\tURL csvFileURL = new URL(url);\r\n\t\tBufferedReader bufferedReader = new BufferedReader(\r\n\t\t\t\tnew InputStreamReader(csvFileURL.openStream()));\r\n\r\n\t\tCSVReader reader = new CSVReader(bufferedReader);\r\n\r\n\t\tList<DealerDetails> dealers = csvToBean.parse(strat, reader);\r\n\r\n\t\tfor (DealerDetails dealerDetails : dealers) {\r\n\t\t\t// create user\r\n\t\t\tcreateUser(dealerDetails);\r\n\t\t}\r\n\r\n\t}",
"List<String[]> readCsv(String inputFilePath, char separator)throws IOException;",
"@Test\n\tpublic void testReadCsvFile() throws FileNotFoundException {\n\t\tFileParser fp = new FileParser();\n\t\tArrayList<String> parsedLines = fp.readCsvFile(\"movies.csv\");\n\t\tassertEquals(\"toy story\", parsedLines.get(0));\n\t}",
"private static GiaoVu readGiaoVu(String line) {\n\t String[] s = line.split(\",\");\n GiaoVu gv = new GiaoVu(s[1], s[2], s[3], s[4], s[5]);\n return gv;\n }",
"@Test\r\n public void readCsvFile() throws FileNotFoundException, IOException { \r\n CsvReader csvr = new CsvReader(CSV_FILE);\r\n \r\n List<NetworkElement> nes = csvr.getNetworkElements();\r\n assertEquals(55,nes.size()); \r\n }",
"public void parse(){\r\n\t\t//StringTokenizer st = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tst = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tString sv = \"\";\r\n\r\n\t\ttry{\r\n\t\t\tnmeaHeader = st.nextToken();//Global Positioning System Fix Data\r\n\t\t\tmode = st.nextToken();\r\n\t\t\tmodeValue = Integer.parseInt(st.nextToken());\r\n\r\n\t\t\tfor(int i=0;i<=11;i++){\r\n\t\t\t\tsv = st.nextToken();\r\n\t\t\t\tif(sv.length() > 0){\r\n\t\t\t\t\tSV[i] = Integer.parseInt(sv);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSV[i] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tPDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tHDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tVDOP = Float.parseFloat(st.nextToken());\r\n\r\n\t\t}catch(NoSuchElementException e){\r\n\t\t\t//Empty\r\n\t\t}catch(NumberFormatException e2){\r\n\t\t\t//Empty\r\n\t\t}\r\n\r\n\t}",
"public void fromCsv(String line, String separator, NumberFormat numberFormat) throws ParseException {\r\n\t\t\tString[] values = line.split(separator);\r\n\t\t\t\r\n\t\t\tid = values[0];\r\n\t\t\tdate = ZonedDateTime.parse(values[1]);\r\n\t\t\tresolution = values[2];\r\n\t\t\thypothesis = values[3];\r\n\t\t\tquality = (values[4].length() == 0 ? Integer.MIN_VALUE : Integer.parseInt(values[4]));\r\n\t\t\tvalue = numberFormat.parse(values[5]).doubleValue();\r\n\t\t\tunit = values[6];\r\n\t\t}",
"public void readToCsv() {\r\n\r\n String seperator = \";\";\r\n\r\n try (BufferedReader reader = new BufferedReader(\r\n new FileReader(\"Products.csv\"))){\r\n\r\n String line = null;\r\n for(int i=1; (line = reader.readLine()) != null; i++) {\r\n String[] fields = line.split(seperator, -1);\r\n\r\n // For nutrients objects to read\r\n if(fields.length ==5){\r\n Nutrient object= new Nutrient();\r\n object.name = fields[0];\r\n object.price = Double.parseDouble(fields[1]);\r\n object.tag=fields[2];\r\n object.content = fields[3];\r\n object.numOfProduct = Integer.parseInt(fields[4]);\r\n //object.addFeatures(object.name,object.price,object.size,object.gender,object.tag,object.content,object.numOfProduct);\r\n NutrientList.add(object);\r\n allProducts.add(object);\r\n }\r\n // For Cosmetics objects to read\r\n if (fields.length==6){\r\n Cosmetics object2=new Cosmetics();\r\n object2.name = fields[0];\r\n object2.price = Double.parseDouble(fields[1]);\r\n object2.gender = fields[2];\r\n object2.tag=fields[3];\r\n object2.content = fields[4];\r\n object2.numOfProduct = Integer.parseInt(fields[5]);\r\n //object2.addFeatures(object2.name,object2.price,object2.size,object2.gender,object2.tag,object2.content,object2.numOfProduct);\r\n CosmeticsList.add(object2);\r\n allProducts.add(object2);\r\n }\r\n // For clothes objects to read\r\n if(fields.length ==7){\r\n\r\n Clothes object3=new Clothes();\r\n object3.name = fields[0];\r\n object3.price = Double.parseDouble(fields[1]);\r\n object3.size= fields[2];\r\n object3.tag=fields[4];\r\n object3.content = fields[5];\r\n object3.numOfProduct = Integer.parseInt(fields[6]);\r\n object3.addFeatures(object3.name,object3.price,object3.size,\"E\",object3.tag,object3.content,object3.numOfProduct);\r\n ClothesList.add(object3);\r\n allProducts.add(object3);\r\n }\r\n\r\n }}\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"List<CountryEntity> parseLines(List<String> line);",
"List<String[]> readCsv(String inputFilePath)throws IOException;",
"public static void main(String[] args) {\r\n\r\n\r\n\tCsvPipeDecoder csvdeco = new CsvPipeDecoder();\r\n\r\n//\tSystem.out.println(cvsde.getHasHeader());\r\n\r\n\tList<String> inputRecordLines = new ArrayList<String>();\r\n\r\n\tinputRecordLines.add(\"FIRST NAME|LAST NAME|STREET ADDRESS|CITY|STATE|ZIP\");\r\n\tinputRecordLines.add(\"Machi|Gulinski|5367 Eastway|Greendale|WI|53129\");\r\n\tinputRecordLines.add(\"Ola|Druzny|5467 Blue St.|Milwaukee|WI|53209\");\r\n\tinputRecordLines.add(\"Les|Klimek|919 St. Paul St.|Wauwatosa|WI|53217\");\r\n\r\n\tcsvdeco.setHasHeader(true);\r\n\r\n\tList< LinkedHashMap<String, String>> decodedData;\r\n\r\n\tdecodedData = csvdeco.decodeData(inputRecordLines);\r\n\r\n\r\n\tfor (LinkedHashMap r : decodedData) {\r\n\r\n\t Set<String> keys = r.keySet();\r\n\r\n\t for (String key : keys) {\r\n\r\n//\t String record = r.get(key).toString();\r\n\t\tSystem.out.println(key + \": \" + r.get(key).toString());\r\n\t }\r\n\r\n//\t System.out.println(r.keySet() + \": \" + r.entrySet());\r\n\t}\r\n\r\n }",
"protected abstract void parse(String line);",
"private static void readInputDataFromCSV(String pathToCSVfile) throws IOException {\n\n // open the file\n BufferedReader reader = new BufferedReader(new FileReader(pathToCSVfile));\n // read line by line\n String line = null;\n Scanner scanner = null;\n int index = 0;\n inputPlayersList = new ArrayList<>();\n\n while ((line = reader.readLine()) != null) {\n Player pl = new Player();\n scanner = new Scanner(line);\n scanner.useDelimiter(\",\");\n while (scanner.hasNext()) {\n String data = scanner.next();\n if (index == 0)\n pl.setLastName(data);\n else if (index == 1)\n pl.setFirstName(data);\n else if (index == 2)\n pl.setCountry(data);\n else if (index == 3)\n pl.setTicketNumber(data);\n else\n System.out.println(\"Incorrect data: \" + data);\n index++;\n }\n index = 0;\n inputPlayersList.add(pl);\n\n }\n //close reader\n reader.close();\n }",
"private boolean parseLine()\r\n\t{\r\n\t\tString delim = \"\\t\";\r\n\t\tm_tokenizer = new StringTokenizer(m_line, delim, true);\r\n\t\tString token;\r\n\t\t\r\n\t\tint tokCount = m_tokenizer.countTokens();\r\n\t\tif ((fieldIndexArray.length <= tokCount) &&\t(tokCount <= fieldIndexArray.length*2))\r\n\t\t{\r\n\t\t\tint lastDelim = -2; /** case when line has consecutive (>=2) tabs!*/\r\n\t\t\tint columnIndex = 0;\r\n\t\t\t/** Tokenise the chip data file's line to separate the data to be put in various columns*/\r\n\t\t\tfor (int i=0; i< tokCount; i++) \r\n\t\t\t{\r\n\t\t\t\ttoken = m_tokenizer.nextToken();\r\n\t\t\t\tif (token.equalsIgnoreCase(delim)) \r\n\t\t\t\t{\r\n\t\t\t\t\tif (lastDelim + 1 == i) \r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/** 2 consecutive tags - empty string value*/\r\n\t\t\t\t\t\tif(columnIndex<fieldIndexArray.length)\r\n\t\t\t\t\t\t\tbaseRecord.fields[fieldIndexArray[columnIndex++]].append(\"\");\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlastDelim = i;\r\n\t\t\t\t} \r\n\t\t\t\telse \r\n\t\t\t\t{\r\n\t\t\t\t\t/** Each time when new token rrpresenting column data is encountered then columnIndex is \r\n\t\t\t\t\t * incremented and tokens are stored till the token number is less than total number\r\n\t\t\t\t\t * of tokens on one line according to fieldIndexArray */\r\n\t\t\t\t\tif(columnIndex < fieldIndexArray.length)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t/** If total description length exceeds the precision of that field in the table then \r\n\t\t\t\t\t\t * it will be truncated to load it in the description field*/\r\n\t\t\t\t\t\tif(columnIndex == (fieldIndexArray.length-1))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (token.length() > max)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tStringBuffer tokenbuffer = new StringBuffer(token);\r\n\t\t\t\t\t\t\t\ttokenbuffer.setLength(max);\r\n\t\t\t\t\t\t\t\tif(tokenbuffer.charAt(max-1) != '\"')\r\n\t\t\t\t\t\t\t\t\ttokenbuffer.append('\"');\r\n\t\t\t\t\t\t\t\ttoken=tokenbuffer.toString();\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/** Here fieldIndexArray will give the actual location of particular token\r\n\t\t\t\t\t\t * in the chipinformation table. This mapping is already done in fieldIndexArray */\r\n\t\t\t\t\t\tbaseRecord.fields[fieldIndexArray[columnIndex++]].append(token);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} \r\n\t\telse\r\n\t\t{\r\n\t\t\tLogger.log(\"Invalid record: \"+ tokCount + \" fields. \",\r\n\t\t\t\t\tLogger.WARNING);\r\n\t\t\tLogger.log(\"Expected tokens = \"+ fieldIndexArray.length,\r\n\t\t\t\t\tLogger.WARNING);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Test\n public void testVisaCCPositive_CSV() {\n String visaCCNumber = UtilityParsers.csvHelper(visaInputFilePathCSV);\n CreditCardValidator creditCardValidator = new VisaCCValidator(visaCCNumber);\n assertTrue(creditCardValidator.validateCreditCard());\n }",
"public String[] parseCsv(Reader reader, String separator, boolean hasHeader) throws IOException {\n List<String> columnNames = new LinkedList<String>();\n String[] nodesInfo = new String[GlobalVar.numberOfNodes];\n int nodeCount=0;\n BufferedReader br = null;\n br = new BufferedReader(reader);\n String line;\n int numLines = 0;\n while ((line = br.readLine()) != null) {\n if (!line.startsWith(\"#\")) {\n String[] tokens = line.split(separator);\n if (tokens != null) {\n if (numLines == 0) {\n for (int i = 0; i < tokens.length; ++i) {\n columnNames.add(hasHeader ? tokens[i] : (\"row_\"+i));\n }\n } else {\n nodesInfo[nodeCount++]= tokens[0]; \n }\n \n }\n ++numLines; \n }\n }\n return nodesInfo;\n }",
"public void ach_doc_type_csv_test () {\n\t\t\n\t}",
"private void processCSVFile( BufferedReader csvFile ) throws IOException {\r\n\t\t\r\n\t\tboolean headerRowRead = false;\r\n\t\tString[] headerArray = null;\r\n\t\t\r\n\t\t//loop through all rows and create contacts\r\n\t\tString row = csvFile.readLine();\r\n\t\t\r\n\t\twhile (row != null) {\r\n\t\t\t\r\n\t\t\tif (row.length()==0 || row.startsWith(\"#\") || row.startsWith(\";\") ) {\t\t\r\n\t\t\t\t\r\n\t\t\t\t//empty or comment row: skip\r\n\t\t\t\t\r\n\t\t\t} else if (!headerRowRead) {\r\n\t\t\t\t\r\n\t\t\t\t//header row is the first non-blank, not-comment row in the CSV file\r\n\t\t\t\t//the required header row contains the attribute names\r\n\t\t\t\t\r\n\t\t\t\theaderRowRead = true;\r\n\t\t\t\t\r\n\t\t\t\t//read header\r\n\t\t\t\theaderArray = parseCSVLine( row, true); \t\t\r\n\t\t\t\tLogger.debug(\"header: \" + row);\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\r\n\t\t\t\tHashMap<String,String> contactObject = ContactsImport.getRowValues(headerArray, row);\r\n\t\t\t\tcreateContact(contactObject);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\trow = csvFile.readLine(); //read next line form csv file\r\n\t\t}\r\n\t\t\r\n\t\tLogger.debug(\"finished\");\r\n\r\n\t}",
"public void LoadFromCSV(){\n InputStream inputStream = getResources().openRawResource(R.raw.movielist);\n CSVinput csVinput = new CSVinput(inputStream);\n final List<String[]> movList = csVinput.read();\n\n for(String[] data : movList) {\n itemArrAdapt.add(data);\n }\n }",
"protected abstract DataTypes[] processLine(MutableCharArrayString line);",
"static FxVanillaOptionTrade parse(CsvRow row, TradeInfo info, TradeCsvInfoResolver resolver) {\n FxSingleTrade singleTrade = FxSingleTradeCsvPlugin.parseRow(row, info);\n FxVanillaOptionTrade trade = parseRow(row, info, singleTrade.getProduct());\n return resolver.completeTrade(row, trade);\n }",
"private static List<String> parseLine(String csvLine) {\n List<String> result = new ArrayList<>();\n if (Objects.isNull(csvLine) || csvLine.isEmpty()) {\n return result;\n }\n StringBuilder charSet = new StringBuilder();\n char[] chars = csvLine.toCharArray();\n for (char character : chars) {\n if (character == DEFAULT_SEPARATOR) {\n result.add(charSet.toString().trim());\n charSet = new StringBuilder();\n } else {\n charSet.append(character);\n }\n }\n result.add(charSet.toString().trim());\n return result;\n }",
"List<String[]> readCsv(String inputFilePath,int skipLine,char separator)throws IOException;",
"private List<String> read_level_row(String line){\r\n List<String> row = new ArrayList<>();\r\n try (Scanner rowScanner = new Scanner(line)){\r\n rowScanner.useDelimiter(\",\");\r\n while (rowScanner.hasNext()) {\r\n row.add(rowScanner.next());\r\n }\r\n }\r\n return row;\r\n }",
"private Agent loadFromFile(String _login)\n {\n Agent agent = new Agent();\n File file = new File(_login + \".csv\");\n FileReader fr;\n BufferedReader br;\n String line;\n try {\n fr = new FileReader(file);\n br = new BufferedReader(fr);\n\n line = br.readLine();\n\n int numCients;\n { // to restrain the scope of csvData\n String[] csvData = line.split(\",\");\n agent.setID(Integer.parseInt(csvData[0]));\n agent.setName(csvData[1]);\n agent.setSalary(Double.parseDouble(csvData[2]));\n agent.setSalesBalance(Double.parseDouble(csvData[3]));\n\n numCients = Integer.parseInt(csvData[4]);\n }\n\n for(int i = 0; i<numCients; i++) {\n line = br.readLine();\n\n Client client = new Client();\n int numProp;\n\n {\n String[] csvData = line.split(\",\");\n client.setID(Integer.parseInt(csvData[0]));\n client.setName(csvData[1]);\n client.setIncome(Double.parseDouble(csvData[2]));\n\n numProp = Integer.parseInt(csvData[3]);\n }\n\n for(int j=0; j<numProp; j++)\n {\n line = br.readLine();\n\n String[] csvData = line.split(\",\");\n\n if(csvData[0].equals(\"house\")) {\n House property = new House();\n\n property.setAddress(csvData[1]);\n property.setNumRoom(Integer.parseInt(csvData[2]));\n property.setPrice(Double.parseDouble(csvData[3]));\n property.setSize(Double.parseDouble(csvData[4]));\n property.setHasGarage(Boolean.parseBoolean(csvData[5]));\n\n property.setHasGarden(Boolean.parseBoolean(csvData[6]));\n property.setHasPool(Boolean.parseBoolean(csvData[7]));\n\n client.addProperty(property);\n }\n else if(csvData[0].equals(\"apt\"))\n {\n Apartment property = new Apartment();\n\n property.setAddress(csvData[1]);\n property.setNumRoom(Integer.parseInt(csvData[2]));\n property.setPrice(Double.parseDouble(csvData[3]));\n property.setSize(Double.parseDouble(csvData[4]));\n property.setHasGarage(Boolean.parseBoolean(csvData[5]));\n\n property.setHasTerrace(Boolean.parseBoolean(csvData[6]));\n property.setHasElevator(Boolean.parseBoolean(csvData[7]));\n property.setFloor(Integer.parseInt(csvData[8]));\n property.setNumber(Integer.parseInt(csvData[9]));\n\n client.addProperty(property);\n }\n }\n\n agent.addClient(client);\n }\n fr.close();\n br.close();\n return agent;\n }\n catch (NumberFormatException nfEx) {\n JOptionPane.showMessageDialog(null, \"There was a problem when retrieving \" +\n \"the agent's data.\\n Please try again\");\n return null;\n }\n catch (IOException ioEx) {\n JOptionPane.showMessageDialog(null, \"This user doesn't exist....\");\n return null;\n }\n }",
"@Override\n public List<TimetableUpload> parseCsvFile(MultipartFile file) {\n try (Reader reader = new BufferedReader(new InputStreamReader(file.getInputStream()))) {\n // create csv bean reader\n CsvToBean<TimetableUpload> csvToBean = new CsvToBeanBuilder(reader)\n .withType(TimetableUpload.class)\n .withIgnoreLeadingWhiteSpace(true)\n .build();\n return csvToBean.parse();\n } catch (IOException e) {\n System.err.println(\"Something went wrong while parsing the csv file\");\n return null;\n }\n }",
"public void loadData()\n\t{\n\t\tString fileName = \"YouthTobaccoUse.csv\"; //file to be read and loaded in\n\t\tScanner input = FileUtils.openToRead(fileName).useDelimiter(\",\");\n\t\tint count = 0;\n\t\tboolean isNewState = false;\n\t\tString state = \"\", measure = \"\", stateAbbr = \"\";\n\t\tdouble percent = 0.0;\n\t\tint stateDate = 0;\n\t\twhile(input.hasNext())\n\t\t{\n\t\t\tString line = input.nextLine();\n\t\t\tint tokenCount = 0;\n\t\t\ttokens[tokenCount] = \"\";\n\t\t\t//each line tokenized\n\t\t\tfor(int i = 0; i < line.length(); i++)\n\t\t\t{\n\t\t\t\tif(line.charAt(i) == ',')\n\t\t\t\t{\n\t\t\t\t\ttokenCount++;\n\t\t\t\t\ttokens[tokenCount] = \"\";\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttokens[tokenCount] += line.charAt(i);\n\t\t\t}\n\t\t\t//loads values into variables, converts String into integers and doubles\n\t\t\tString abbr = tokens[1];\n\t\t\tString name = tokens[2];\n\t\t\tString measureDesc = tokens[5];\n\t\t\tint date = convertInteger(tokens[0]);\n\t\t\tdouble percentage = 0.0;\n\t\t\tif(tokens[10].equals(\"\") == false)\n\t\t\t\tpercentage = convertDouble();\n\t\t\tif(abbr.equals(stateAbbr))\n\t\t\t{\n\t\t\t\tif(measureDesc.equals(\"Smoking Status\") \n\t\t\t\t\t\t\t\t\t|| measureDesc.equals(\"User Status\"))\n\t\t\t\t\tpercent += percentage;\n\t\t\t}\n\t\t\telse\n\t\t\t\tisNewState = true;\n\t\t\tif(isNewState)\n\t\t\t{\n\t\t\t\t//calculates the average values for each state, then adds to \n\t\t\t\t//array list, stored as fields\n\t\t\t\tpercent = (double)(percent/count);\n\t\t\t\tif(state.equals(\"Arizona\") && stateDate == 2017)\n\t\t\t\t\ttobacco.add(new StateTobacco(state, stateAbbr, 3.75, 2017));\n\t\t\t\telse if(state.equals(\"Guam\") == false && count != 0 && count != 1\n\t\t\t\t&& stateAbbr.equals(\"US\") == false)\n\t\t\t\t\ttobacco.add(new StateTobacco(state, stateAbbr, percent, stateDate));\n\t\t\t\tstate = name;\n\t\t\t\tstateAbbr = abbr; \n\t\t\t\tstateDate = date;\n\t\t\t\tisNewState = false;\n\t\t\t\tpercent = 0.0;\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t\tcount++;\n\t\t}\n\t}",
"public static LinkedList<Patient> CSVImport(String str) {\n\t\treturn CSVImport(new File(str));\n\t}",
"public interface CSVDataRow\n{\n String toLine();\n}",
"static public List<Product> productReader() throws IOException {\n BufferedReader csvReader = new BufferedReader(new FileReader(PRODUCTS_REFERENCE_FILE));\n String row;\n List<Product> dataList = new ArrayList<>();\n\n row = csvReader.readLine();\n while ((row = csvReader.readLine()) != null){\n\n Product data = new Product();\n //I separate the row data by a separator, a coma in this case and add all the data in the class\n String[] datas = row.split(SEPARATOR_COLON);\n\n data.setProduct_id(Integer.parseInt(datas[0]));\n data.setName(datas[1]);\n data.setDescription(datas[2]);\n data.setCategory_id(Integer.parseInt(datas[3]));\n\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"MM/dd/yyyy\");\n\n //Since some dates had just one number for the month, I had to use this to add a 0\n //to make all the dates the same length after getting rid of the 0:01 that was not necessary\n String[] creationDate = datas[4].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setCreation_date(LocalDate.parse(creationDate[0], formatter));\n\n creationDate = datas[5].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setUpdate_date(LocalDate.parse(creationDate[0], formatter));\n\n creationDate = datas[6].split(\" \");\n if(creationDate[0].length() == 9){\n creationDate[0] = \"0\"+ creationDate[0];\n }\n data.setLast_purchased_date(LocalDate.parse(creationDate[0], formatter));\n\n dataList.add(data);\n\n }\n return dataList;\n\n }",
"public interface LineParser {\n boolean hasProtocolVersion(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor);\n\n Header parseHeader(CharArrayBuffer charArrayBuffer) throws ParseException;\n\n ProtocolVersion parseProtocolVersion(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor) throws ParseException;\n\n RequestLine parseRequestLine(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor) throws ParseException;\n\n StatusLine parseStatusLine(CharArrayBuffer charArrayBuffer, ParserCursor parserCursor) throws ParseException;\n}",
"void parse();",
"public void extractData(Scanner in) {\n while (in.hasNext()) {\n in.useDelimiter(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\n\n term = (in.next());\n subject = (in.next());\n number = Integer.parseInt(in.next());\n section = (in.next());\n crossList = (in.next());\n title = (in.next());\n\n if (title.startsWith(\"\\\"\")) {\n String newTitle = title.substring(1, title.length() - 1);\n title = \"\";\n title = newTitle;\n }\n\n faculty = (in.next());\n building = (in.next());\n room = (in.next()); // Integer.parseInt(in.next());\n\n if (Character.isLetter(room.charAt(room.length() - 1))) {\n oldRoomLetter = room.substring(room.length() - 1);\n String newRoomString = room.substring(0, room.length() - 1);\n newRoom = Integer.parseInt(newRoomString);\n } else {\n newRoom = Integer.parseInt(room);\n }\n\n startDate = (in.next());\n dayTime = (in.next());\n }\n\n }",
"public void importUserMadeTable(BufferedReader br) {\r\n\t\tString line;\r\n\t\tTable table = null;\r\n\t\ttry {\r\n\t\t\tString tableName = br.readLine();\r\n\t\t\ttable = new Table(tableName);\r\n\t\t\tint[] types = convertTypes(br.readLine().split(\",\"));\r\n\t\t\tString[] names = br.readLine().split(\",\");\r\n\t\t\tassert (types.length == names.length);\r\n\t\t\tfor (int i = 0 ; i < types.length; i++) {\r\n\t\t\t\ttable.newAttribute(names[i], types[i]);\r\n\t\t\t}\r\n\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\tString[] entries = line.split(\",\");\r\n\t\t\t\tfor (int i = 0; i < entries.length; i++) {\r\n\t\t\t\t\tif (!table.getAttributes(i + 1).checkType(entries[i]))\r\n\t\t\t\t\t\tentries[i] = \"--\";\r\n\t\t\t\t}\r\n\t\t\t\ttable.newEntry(entries);\r\n\t\t\t}\r\n\t\t\tbr.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\ttable.delete();\r\n\t\t}\r\n\t}",
"public interface CsvParser extends Iterator<CsvLine>, Closeable {\n}",
"public void parse(String content, String separator, NumberFormat numberFormat) throws Exception {\r\n\t\t\r\n\t\tScanner scanner = new Scanner(content);\r\n\t\t\r\n\t\theader = new Header();\r\n\t\t\r\n\t\tif(rows.size() > 0) {\r\n\t\t\trows.clear();\r\n\t\t}\r\n\t\t\r\n\t\tPattern metaPattern = Pattern.compile(\"'.*\");\r\n\t\tPattern headerPattern = Pattern.compile(\"'(.*)=([^;]*);*\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\twhile(scanner.hasNextLine()) {\r\n\t\t\t\tString line = scanner.nextLine();\r\n\t\t\t\r\n\t\t\t\tMatcher metaMatcher = metaPattern.matcher(line);\r\n\t\t\t\tif(metaMatcher.matches()) {\r\n\t\t\t\t\t// header or comment\r\n\t\t\t\t\t\r\n\t\t\t\t\tMatcher headerMatcher = headerPattern.matcher(line);\r\n\t\t\t\t\tif(headerMatcher.matches()) {\r\n\t\t\t\t\t\t// header\r\n\t\t\t\t\t\tString parameter = headerMatcher.group(1);\r\n\t\t\t\t\t\tString value = headerMatcher.group(2);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(parameter.equalsIgnoreCase(\"format\")) {\r\n\t\t\t\t\t\t\tif(Integer.parseInt(value) != 4) {\r\n\t\t\t\t\t\t\t\tthrow new Exception(\"Wrong format version\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if(parameter.equalsIgnoreCase(\"CheckUnit\")) {\r\n\t\t\t\t\t\t\theader.checkUnit = value;\r\n\t\t\t\t\t\t} else if(parameter.equalsIgnoreCase(\"CheckPlausibility\")) {\r\n\t\t\t\t\t\t\theader.checkPlausibility = value;\r\n\t\t\t\t\t\t} else if(parameter.equalsIgnoreCase(\"Source\")) {\r\n\t\t\t\t\t\t\theader.source = value;\r\n\t\t\t\t\t\t} else if(parameter.equalsIgnoreCase(\"TimeZone\")) {\r\n\t\t\t\t\t\t\theader.timeZone = value;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// read values\r\n\t\t\t\t\tRow row = new Row();\r\n\t\t\t\t\trow.fromCsv(line, separator, numberFormat);\r\n\t\t\t\t\trows.add(row);\r\n\t\t\t\t}\t\t\t\r\n\t\t\t}\r\n\t\t} catch(Exception e) {\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tscanner.close();\r\n\t\t}\t\r\n\t}",
"public void cadastrarOfertasQuad3(){\n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q3.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine();\n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(3);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas3LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n } \n }",
"public DataProcessor(String filename) throws FileNotFoundException{\n\tlst = new ArrayList();\n\tScanner input = new Scanner(new FileReader(filename));\n //skip the first line of the csv file\n\tString escapedLine = input.nextLine();\n \twhile(input.hasNextLine()){\n\t recordCount++;\n\t String line = input.nextLine();\n\t //CORRECTION BLOC to skip quoted commas\n\t if (line.contains(\"\\\"\")){\n\t\tint first= line.indexOf(\"\\\"\");\n\t\twhile(first >0 ){\n\t\t String problem = line.substring(first,line.indexOf(\"\\\"\",first+1)+1);\n\t\t \tint second = line.indexOf(\"\\\"\",first+1);\n\t\t\t//look for comma between quoted\n\t\t\tif(problem.contains(\",\")){\n\t\t\t //replace comma by space not to change string indices\n\t\t\t problem=problem.replace(\",\",\" \");\n\t\t\t line=line.replace(line.substring(first,line.indexOf(\"\\\"\",first+1)+1),problem);\n\t\t\t}\n\t\t\t//look for another quote symbol\n\t\t\tfirst = line.indexOf(\"\\\"\",second+1);\n\t\t}\n\t }\n\t String[] fields = line.split(\",\");\n\t //create Person object to store the suspect's data\n\t Person suspect = new Person(fields[SEX].charAt(0),fields[RACE].charAt(0),Integer.parseInt(fields[DOB]),Integer.parseInt(fields[HEIGHTFT]),fields[EYECOLOR],fields[BUILD].charAt(0));\n\t lst.add(suspect);\n\t}\n\t//close scanner\n\tinput.close();\n }",
"public void globalParserExample() {\n\t\tGlobalContentParser parser = new GlobalContentParser(\n\t\t\t\t\"/sdcard/test.csv\", GlobalCSVFormat.v0);\n\n\t\ttry {\n\t\t\tList<GlobalRow> parsedRows = parser.load();\n\n\t\t\t// we can do something with parsedRows manually, or we can do some\n\t\t\t// filtered searches\n\t\t\t// NOTE: this method is currently unoptimized and thus kinda slow\n\t\t\tList<GlobalRow> filterResults = parser.filterByKeyword(\n\t\t\t\t\t\"SomeColumn\", new String[] { \"keyword1\", \"keyword2\" });\n\n\t\t\t// If we want to actuall examine the contents of the row, we look\n\t\t\t// them up by column name\n\t\t\tGlobalRow row = filterResults.get(0);\n\t\t\t// Note that we have to remember the type of data stored in that\n\t\t\t// particular row:\n\t\t\tString[] someKeywords = row.getKeywords(\"SomeKeywordsColumn\");\n\t\t\tDate myDate = row.getDate(\"SomeDateColumn\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLog.e(\"CSVParser\", \"File not found\");\n\t\t\treturn;\n\t\t} catch (IOException e) {\n\t\t\tLog.e(\"CSVParser\", \"IO EXCEPTION!\");\n\t\t\treturn;\n\t\t}\n\n\t}",
"public CsvParser getCsvParser()\n {\n return parser;\n }",
"@Override\n public ToDoList readCSV(String csvPath) throws InvalidArgumentException {\n this.csvPath = csvPath;\n this.toDoList = new ToDoList();\n\n BufferedReader inputFile = null;\n try {\n inputFile = new BufferedReader(new FileReader(this.csvPath));\n\n String line = inputFile.readLine();\n if (line == null) {\n inputFile.close();\n return this.toDoList;\n } // Empty CSV file, no need for processing.\n this.processHeader(line);\n while ((line = inputFile.readLine()) != null) {\n this.processToDoItem(line);\n }\n inputFile.close();\n return this.toDoList;\n } catch (FileNotFoundException fnfe) {\n throw new InvalidArgumentException(\"OOPS! File not found!\");\n } catch (IOException ioe) {\n throw new InvalidArgumentException(\"There is somthing wrong!\");\n }\n }",
"private void testDataReader() {\n File csv = new File(pathTest);\n try (FileReader fr = new FileReader(csv); BufferedReader bfr = new BufferedReader(fr)) {\n Logger.printInfo(\"Reading test data\");\n for (String line; (line = bfr.readLine()) != null; ) {\n String[] split = line.split(\",\");\n String data = textCleaner(split[indexData].toLowerCase());\n int label = Integer.parseInt(split[indexLabel].toLowerCase());\n\n linesTest.add(data);\n labelsTest.add(label);\n Logger.print(\"Reading size: \" + linesTest.size());\n }\n for (String l : linesTest) {\n matrixTest.add(wordVectorizer(l));\n }\n } catch (IOException ex) {\n Logger.printError(\"!! Test Data Not Reading !!\");\n System.exit(0);\n }\n }",
"private static String[] parseCSVLine(String line, boolean convertToLowerCase ) {\r\n\t\t\r\n\t\t//split the line om commas, but only if that comma is not between quotes (0 or even nr of quotes ahead)\r\n\t\tString[] tokens = line.split(\",(?=([^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)\");\r\n\t\t\r\n\t\tString[] result = new String[tokens.length];\r\n\t\t\r\n\t\t//get rid of spaces and enclosing double quotes\r\n\t\tfor (int i=0; i<tokens.length; i++) {\r\n\t\t\t\r\n\t\t\tString t = tokens[i].trim().replaceAll(\"^\\\"|\\\"$\", \"\");\r\n\t\t\t\r\n\t\t\tif (convertToLowerCase) {\r\n\t\t\t\tt = t.toLowerCase();\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\tresult[i] = t;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"@Override\n public void parse(CSVParser context, char character) {\n if (character == '\"') { // transition to enclosed cell parse.\n context.setState(new EnclosedRecordReadState());\n } else if (Character.isWhitespace(character)) { // continue consuming whitespace.\n return;\n } else if (character == ',') { // terminate the cell\n context.terminateCell();\n } else { // All other characters enter cell parse state.\n context.append(character);\n context.setState(new CellReadState());\n }\n }",
"public void openPlayerDataFromCSV() throws FileNotFoundException {\n csvReader = new BufferedReader(new FileReader(PATH_TO_CSV));\n }",
"public void readData(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\r\n String line = \"\";\r\n try {\r\n while ((line = reader.readLine()) != null) {\r\n //Split line by \",\"\r\n String[] fields = line.split(\",\");\r\n //Log.d(\"csvParseFieldLength\", String.valueOf(fields.length));\r\n ArrayList<Race> races = new ArrayList<>();\r\n if (fields[9].equals(\"\"))\r\n break;\r\n else {\r\n Swimmer s = new Swimmer(fields[0],fields[10], fields[9], Integer.parseInt(fields[8]), fields[7], races);\r\n swimmers.add(s);\r\n s.addRace(new Race(Integer.parseInt(fields[2]), Integer.parseInt(fields[3]), 0, null, (fields[4] + \" \" + fields[5])));\r\n \r\n EventID e = new EventID(eventId);\r\n String b = fields[12];\r\n \r\n \r\n if (!b.equals(\" \")) \r\n \te.addNames(b);\r\n \r\n \r\n \r\n }\r\n }\r\n } catch (IOException ex) {\r\n //Log.d(\"csvParseSwim\", \"Error reading data from file on line \" + line);\r\n }\r\n }",
"CSV createCSV();",
"public void loadCSVData() throws IOException, SQLException {\r\n //SQL statement to load csv information into data table\r\n String insertvaluesSQL = \"INSERT INTO data\"\r\n + \"(InvoiceNo, StockCode, Description, Quantity, InvoiceDate, UnitPrice, CustomerID, Country)\"\r\n + \" VALUES (?,?,?,?,?,?,?,?);\";\r\n\r\n //code to read csv file taken from W03 practical\r\n BufferedReader br = new BufferedReader(new FileReader(filePath));\r\n String line = br.readLine();\r\n String[] informationArray;\r\n while (line != null) {\r\n informationArray = line.split(\",\");\r\n PreparedStatement preparedStatement = connection.prepareStatement(insertvaluesSQL);\r\n //the first '?' corresponds to the 0th term in the information array\r\n //the second '?' corresponds to the 1st term in the information array\r\n for (int i = 1; i < 9; i++) {\r\n preparedStatement.setString(i, informationArray[i - 1]);\r\n }\r\n preparedStatement.executeUpdate();\r\n line = br.readLine();\r\n }\r\n Statement statement = connection.createStatement();\r\n statement.executeUpdate(\"DELETE FROM data WHERE InvoiceNo = 'InvoiceNo';\");\r\n statement.close();\r\n }",
"@Override\n\tpublic void configuration(String csv) {\n\n\t}",
"public void processLine(String line){\n\t\tString[] splitted = line.split(\"(\\\\s+|\\\\t+)\");\n\t\tif(splitted.length < FIELDS){\n\t\t\tSystem.err.println(\"DataRow: Cannot process line : \" + line);\n\t\t\tSystem.exit(1);\n\t\t}\n\t\tindex \t\t= Integer.parseInt(splitted[0]);\n\t\tparentIndex = Integer.parseInt(splitted[1]);\n\t\tword \t\t= splitted[2].trim();\n\t\tpos\t\t\t= splitted[3].trim();\n\t\tpredicateLabel = splitted[4].trim();\n\t\tintervenes = splitted[5];\n\t\t\n\t\tidentificationLabel = splitted[6];\n\t\tclassificationLabel = splitted[7];\n\t\t\n\t\thmmState = Integer.parseInt(splitted[8]);\n\t\tnaiveState = Integer.parseInt(splitted[9]);\n\t\tchunk = splitted[10];\n\t\tne = splitted[11];\n\t\tif(splitted.length > FIELDS){\n\t\t\tSystem.err.println(\"WARNING: data row has more than required columns: \" + line);\n\t\t}\n\t}",
"private ImportCommand parseLinesFromFile(BufferedReader br) {\n boolean hasContactWithInvalidField = false;\n boolean hasContactWithoutName = false;\n try {\n String line = br.readLine();\n while (line != null) {\n String[] attributes = line.split(\",\", -1);\n int numAttributes = attributes.length;\n\n if (attributes[NAME_FIELD].equalsIgnoreCase(\"Name\")\n || attributes[NAME_FIELD].equalsIgnoreCase(\"Name:\")) { // ignore headers\n line = br.readLine();\n continue;\n }\n\n if (contactHasNoName(attributes, numAttributes)) {\n hasContactWithoutName = true;\n line = br.readLine();\n continue;\n }\n\n Name name = null;\n Optional<Phone> phone = Optional.empty();\n Optional<Email> email = Optional.empty();\n Optional<Address> address = Optional.empty();\n Meeting meeting = null;\n\n try {\n name = ParserUtil.parseName(attributes[NAME_FIELD]);\n if (!attributes[PHONE_FIELD].matches(\"\")) {\n phone = Optional.of(ParserUtil.parsePhone(attributes[PHONE_FIELD]));\n }\n if (!attributes[EMAIL_FIELD].matches(\"\")) {\n email = Optional.of(ParserUtil.parseEmail(attributes[EMAIL_FIELD]));\n }\n if (!attributes[ADDRESS_FIELD].matches(\"\")) {\n address = Optional.of(ParserUtil.parseAddress(attributes[ADDRESS_FIELD]));\n }\n if (!attributes[MEETING_FIELD].matches(\"\")) {\n meeting = ParserUtil.parseMeeting(attributes[MEETING_FIELD]);\n }\n } catch (ParseException pe) {\n hasContactWithInvalidField = true;\n line = br.readLine();\n continue;\n }\n\n ArrayList<String> tags = new ArrayList<>();\n //Check for tags\n if (numAttributes > TAG_FIELD_START) {\n for (int i = TAG_FIELD_START; i < numAttributes; i++) {\n if (!attributes[i].matches(\"\")) {\n tags.add(attributes[i]);\n }\n }\n }\n\n Set<Tag> tagList = null;\n try {\n tagList = ParserUtil.parseTags(tags);\n } catch (ParseException e) {\n line = br.readLine();\n continue;\n }\n if (meeting == null) {\n persons.add(new Person(name, phone, email, address, tagList));\n } else {\n persons.add(new Person(name, phone, email, address, tagList, meeting));\n }\n line = br.readLine();\n }\n br.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n return new ImportCommand(persons, hasContactWithInvalidField, hasContactWithoutName);\n }",
"private void handleImportLines(String inputLineString ){\n String [] splitInputLine = inputLineString.split(\",\");\n String command = splitInputLine[0];\n String name = \"\";\n String date = \"\";\n String department = \"\";\n\n double pay = 0;\n int role = 0;\n\n if(splitInputLine.length == ADDPARTFULLCOMMANDS){\n name = splitInputLine[1];\n department = splitInputLine[2];\n date = splitInputLine[3];\n pay = Double.parseDouble(splitInputLine[4]);\n\n }else if(splitInputLine.length == ADDMANAGECOMMANDS){\n name = splitInputLine[1];\n department = splitInputLine[2];\n date = splitInputLine[3];\n pay = Double.parseDouble(splitInputLine[4]);\n role = Integer.parseInt(splitInputLine[5]);\n }else if(splitInputLine.length == OTHEREXPECTEDCOMMANDS){\n name = splitInputLine[1];\n department = splitInputLine[2];\n date = splitInputLine[3];\n }\n\n if(command.equals(\"P\")){\n Profile newEmployeeProfile = profileData(name, department, date);\n Employee newEmployee = new Parttime(newEmployeeProfile, pay);\n company.add(newEmployee);\n }else if(command.equals(\"F\")){\n Profile newEmployeeProfile = profileData(name, department, date);\n Employee newEmployee = new Fulltime(newEmployeeProfile, pay);\n company.add(newEmployee);\n }else if(command.equals(\"M\")){\n Profile newEmployeeProfile = profileData(name, department, date);\n Employee newEmployee = new Management(newEmployeeProfile, pay, role);\n company.add(newEmployee);\n }\n }",
"@Test\n void testVariableUNFs() throws IOException, UnfException {\n long expectedNumberOfVariables = 13L;\n long expectedNumberOfCases = 24L; // aka the number of lines in the TAB file produced by the ingest plugin\n\n String[] expectedUNFs = {\n \"UNF:6:wb7OATtNC/leh1sOP5IGDQ==\",\n \"UNF:6:0V3xQ3ea56rzKwvGt9KBCA==\",\n \"UNF:6:0V3xQ3ea56rzKwvGt9KBCA==\",\n \"UNF:6:H9inAvq5eiIHW6lpqjjKhQ==\",\n \"UNF:6:Bh0M6QvunZwW1VoTyioRCQ==\",\n \"UNF:6:o5VTaEYz+0Kudf6hQEEupQ==\",\n \"UNF:6:eJRvbDJkIeDPrfN2dYpRfA==\",\n \"UNF:6:JD1wrtM12E7evrJJ3bRFGA==\",\n \"UNF:6:xUKbK9hb5o0nL5/mYiy7Bw==\",\n \"UNF:6:Mvq3BrdzoNhjndMiVr92Ww==\",\n \"UNF:6:KkHM6Qlyv3QlUd+BKqqB3Q==\",\n \"UNF:6:EWUVuyXKSpyllsrjHnheig==\",\n \"UNF:6:ri9JsRJxM2xpWSIq17oWNw==\"\n };\n\n TabularDataIngest ingestResult;\n File file = getFile(\"csv/ingest/election_precincts.csv\");\n\n try (BufferedInputStream stream = new BufferedInputStream(new FileInputStream(file))) {\n CSVFileReader instance = createInstance();\n ingestResult = instance.read(Tuple.of(stream, file), null);\n }\n\n File generatedTabFile = ingestResult.getTabDelimitedFile();\n DataTable generatedDataTable = ingestResult.getDataTable();\n\n assertThat(generatedDataTable).isNotNull();\n assertThat(generatedDataTable.getDataVariables()).isNotNull();\n assertThat(generatedDataTable.getVarQuantity()).isEqualTo((long) generatedDataTable.getDataVariables().size());\n assertThat(generatedDataTable.getVarQuantity()).isEqualTo(expectedNumberOfVariables);\n assertThat(generatedDataTable.getCaseQuantity()).isEqualTo(expectedNumberOfCases);\n\n IngestDataProvider dataProvider = new InMemoryIngestDataProvider();\n dataProvider.initialize(generatedDataTable, generatedTabFile);\n\n for (int i = 0; i < expectedNumberOfVariables; i++) {\n String unf = null;\n\n if (generatedDataTable.getDataVariables().get(i).isIntervalContinuous()) {\n Double[] columnVector = dataProvider.getDoubleColumn(i);\n unf = UNFUtil.calculateUNF(columnVector);\n }\n if (generatedDataTable.getDataVariables().get(i).isIntervalDiscrete()\n && generatedDataTable.getDataVariables().get(i).isTypeNumeric()) {\n Long[] columnVector = dataProvider.getLongColumn(i);\n unf = UNFUtil.calculateUNF(columnVector);\n }\n if (generatedDataTable.getDataVariables().get(i).isTypeCharacter()) {\n String[] columnVector = dataProvider.getStringColumn(i);\n String[] dateFormats = null;\n\n // Special handling for Character strings that encode dates and times:\n if (\"time\".equals(generatedDataTable.getDataVariables().get(i).getFormatCategory())\n || \"date\".equals(generatedDataTable.getDataVariables().get(i).getFormatCategory())) {\n\n dateFormats = new String[(int) expectedNumberOfCases];\n for (int j = 0; j < expectedNumberOfCases; j++) {\n dateFormats[j] = generatedDataTable.getDataVariables().get(i).getFormat();\n }\n }\n unf = dateFormats == null ? UNFUtil.calculateUNF(columnVector) : UNFUtil.calculateUNF(columnVector, dateFormats);\n }\n\n assertThat(unf).isEqualTo(expectedUNFs[i]);\n }\n }",
"public static void main(String[] args) throws NumberFormatException, IlegalMuseoException {\n\t\tList<Museos> lista = new ArrayList<Museos>();\r\n\t\ttry (Scanner sc = new Scanner(new File(\"datosMuseos/datos.csv\"));) {\r\n\t\t\tString datos = sc.nextLine();\r\n\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\tdatos = sc.nextLine();\r\n\t\t\t\tSystem.out.println(datos);\r\n\t\t\t\tString[] campos = datos.split(\",\");\r\n\t\t\t\tlista.add(new Museos(Integer.parseInt(campos[0]), campos[1], campos[2], campos[3], campos[4]));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\tSystem.out.println(\"fichero no encontrado\");\r\n\t\t}\r\n\r\n\t}",
"@Override\n protected void processLine(String line) {\n String[] lines = line.split(\",\");\n for (String l : lines) {\n data.add(l);\n }\n }",
"public static void main(String[] args) {\n\t\tScanner sc = null;\n\t\ttry {\n\t\t\tsc = new Scanner(new File(\"E:\\\\java nots\\\\demo.csv\"));\n\t\t\tsc.useDelimiter(\",\"); // sets the delimiter pattern\n\t\t\twhile (sc.hasNext()) // returns a boolean value\n\t\t\t{\n\t\t\t\tSystem.out.print(sc.next() + \"\\t\"); // find and returns the next complete token from this scanner\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tsc.close(); // closes the scanner\n\t\t}\n\n\t}",
"public InputReader(String csv){\n inputStream = new Scanner(csv);\n instantiate();\n assert(invariant());\n }",
"@Test(timeout=100)\r\n\tpublic void testUnquoted() {\r\n\t\tString [] r1 = {\"aaa\",\"bbb\",\"ccc\"};\r\n\t\tString [] r2 = {\"A\",\"Bb\",\"C\",\"Dd\",\"5555\",\"six\",\"7-11\",\"8\",\"Nines\",\"10!!!\"};\r\n\t\tString [] r3 = {\"a\"};\r\n\t\twriteArrayToLine(r1);\r\n\t\twriteArrayToLine(r2);\r\n\t\twriteArrayToLine(r3);\r\n\t\tout.close();\r\n\t\t\r\n\t\tCSVReader csv = new CSVReader( getInstream() );\r\n\t\tassertTrue( csv.hasNext() );\r\n\t\tString [] next = csv.next();\r\n\t\tassertEquals( r1.length, next.length );\r\n\t\tassertArrayEquals( r1, next );\r\n\t\tassertTrue( csv.hasNext() );\r\n\t\tassertArrayEquals( r2, csv.next() );\r\n\t\tassertTrue( csv.hasNext() );\r\n\t\tassertArrayEquals( r3, csv.next() );\r\n\t\tassertFalse( csv.hasNext() );\r\n\t}",
"@Override\r\n\tpublic ArrayList<String> importCsv(File file) {\r\n\t\t\tFileReader monFichier = null;\r\n\t\t\tBufferedReader tampon = null;\r\n\t\t\tArrayList<String> aLImport = new ArrayList<String>();\r\n\t\t\tString[] tabString ;\r\n\t\t\tint sizeLine;\r\n\t\t\r\n\t\t\ttry {\r\n\t\t\t\t// file path\r\n\t\t\t\tmonFichier = new FileReader(file.getAbsolutePath());\r\n\t\t\t\ttampon = new BufferedReader(monFichier);\r\n\r\n\t\t\t\t// read the first line of the file .csv\r\n\t\t\t\tString ligneTemp = tampon.readLine();\r\n\t\t\t\ttabString = ligneTemp.split(\";\");\r\n\t\t\t\tthis.setNbColumnsRead(tabString.length);\r\n\t\t\t\t\r\n\t\t\t\t//Start of the actual content (first line only acting as a header)\r\n\t\t\t\tligneTemp = tampon.readLine();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\t\t// faire la gestion des erreurs \r\n\t\t\t\t\t\t/*JOptionPane.showMessageDialog(this, \"Le fichier .csv n'est pas valide\", \"Erreur !\",\r\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);*/\r\n\t\t\t\t\r\n\t\t\t\t// read all the lines one by one and split them to keep the\r\n\t\t\t\t// structure's name\r\n\t\t\t\twhile (ligneTemp != null) {\t\t\t\t\t\r\n\t\t\t\t\ttabString = ligneTemp.split(\";\");\r\n\t\t\t\t\t\r\n\t\t\t\t\tsizeLine = tabString.length;\r\n\t\t\t\t\t//This for start at 1 in order to skip the first cell, assuming it is always \"Start\" and is therefore not required in the ArrayList\r\n\t\t\t\t\tfor (int i = 1; i < sizeLine; i+=2) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(!tabString[i].contains(\"End\")){\r\n\t\t\t\t\t\t\taLImport.add(tabString[i]);\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\tligneTemp = tampon.readLine();\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException exception) {\r\n\t\t\t\texception.printStackTrace();\r\n\t\t\t\treturn null;\r\n\t\t\t} finally {\r\n\t\t\t\ttry {\r\n\t\t\t\tif (tampon != null)\r\n\t\t\t\t{\r\n\t\t\t\t\ttampon.close();\r\n\t\t\t\t}\r\n\t\t\t\tif (monFichier != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmonFichier.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException exception1) {\r\n\t\t\t\t\texception1.printStackTrace();\r\n\t\t\t\t\treturn null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn aLImport;\t\r\n\t}",
"public void read()\r\n\t{\r\n\t\tScanner input = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tint i = 0;\r\n\r\n\t\t\tinput = new Scanner(new File(\"netflix.csv\")).useDelimiter(\"[,\\r\\n]\");\r\n\r\n\t\t\twhile (input.hasNext())\r\n\t\t\t{\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t\tString title = input.next();\r\n\r\n\t\t\t\tString rating = input.next();\r\n\r\n\t\t\t\tint year = Integer.parseInt(input.next());\r\n\r\n\t\t\t\tint score = Integer.parseInt(input.next());\r\n\t\t\t\tMovie a = new Movie(title, rating, year, score);\r\n\t\t\t\tdata[i] = a;\r\n\t\t\t\ti++;\r\n\t\t\t\tactualSize++;\r\n\r\n\t\t\t}\r\n\t\t\tinput.close();\r\n\r\n\t\t}\r\n\t\tcatch (FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\r\n\t\t}\r\n\r\n\t}",
"public List<Country> readCountriesFromCSV(String fileName){\n try {\n Scanner scanner = new Scanner(new File(fileName));\n scanner.useDelimiter(\",\");\n scanner.nextLine();\n while(scanner.hasNextLine()){\n lsta.add(createCountry(scanner.nextLine().split(\",\")));\n// System.out.println(pyr.get_pharaoh()+\"|\"+pyr.get_modern_name()+\"|\"+pyr.get_site()+\"|\"+pyr.get_height()+\"|\");\n }\n scanner.close();\n } catch (FileNotFoundException ex) {\n Logger.getLogger(CityCSVDAO.class.getName()).log(Level.SEVERE, null, ex);\n }\n return lsta;\n }",
"@ProcessElement\r\n\t\tpublic void processElement(ProcessContext c) throws Exception {\n\t\t\t\r\n\t\t\tString line = c.element();\r\n\t\t\tCSVParser csvParser = new CSVParser();\r\n\t\t\tString[] words = csvParser.parseLine(line);\r\n\t\t\t\r\n\t\t\tTableRow row = new TableRow();\t\t\t\r\n\t\t\tlogger.info(\"column size======>\" + columnList.size());\r\n\t\t\tfor (int i = 0; i < columnList.size(); i++) {\r\n\t\t\t\tlogger.info(\"column name ===>value\" + columnList.get(i) + words[i]);\r\n\t\t\t\t/*if (words[i].startsWith(\"\\\"\") && words[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\tcolumnValue = words[i].replace(\"\\\"\",\"\");\r\n\t\t\t\t}*/\r\n\t\t\t\trow.set(columnList.get(i), /*columnValue*/ words[i]);\r\n\t\t\t}\r\n\r\n\t\t\tc.output(row);\r\n\t\t}",
"static void parseData(String filename) {\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\t\t \n\t\t\tString line;\n\t\t String[] tokens;\n\t\t ArrayList<Double> temp;\n\t\t \n\t\t while ((line = br.readLine()) != null) {\n\t\t \ttemp = new ArrayList<Double>();\n\t\t \ttokens = line.split(\",\");\n\t\t \tfor(String s : tokens) {\n\t\t \t\ttemp.add(Double.parseDouble(s));\n\t\t \t}\n\t\t \tData.add(new Vector(temp));\n\t\t }\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void cadastrarOfertasQuad2(){\n \n String[] palavras;\n \n //Primeiro quadrimestre\n try {\n try (BufferedReader lerArq = new BufferedReader(new InputStreamReader(new FileInputStream(\"/home/charles/alocacao/Arquivos Alocação/Arquivos CSV/Planejamento2017_q2.csv\"), \"UTF-8\"))) {\n String linha = lerArq.readLine(); //cabeçalho\n \n linha = lerArq.readLine(); \n\n// linha = linha.replaceAll(\"\\\"\", \"\");\n while (linha != null) {\n\n linha = linha.replaceAll(\"\\\"\", \"\");\n\n palavras = linha.split(\";\", -1);\n\n oferta = new OfertaDisciplina();\n\n oferta.setCurso(palavras[0]);//2\n\n String nome = palavras[2];//4\n \n String codigo = palavras[1];//3\n \n Disciplina d = disciplinaFacade.findByCodOrName(codigo, nome);\n\n if (d != null) {\n// Disciplina d = disciplinaFacade.findByName(nome).get(0);\n oferta.setDisciplina(d);\n }\n oferta.setT(Integer.parseInt(palavras[3]));//5\n oferta.setP(Integer.parseInt(palavras[4]));//6\n oferta.setTurno(palavras[6]);//11\n oferta.setCampus(palavras[7]);//12\n if (!palavras[8].equals(\"\")) {\n oferta.setNumTurmas(Integer.parseInt(palavras[8]));//13\n }\n if (!palavras[9].equals(\"\")) {\n oferta.setPeriodicidade(palavras[9]);//19\n } else{\n oferta.setPeriodicidade(\"semanal\");\n }\n oferta.setQuadrimestre(2);\n\n salvarNoBanco();\n\n linha = lerArq.readLine();\n// linha = linha.replaceAll(\"\\\"\", \"\");\n }\n } //cabeçalho\n ofertas2LazyModel = null;\n\n } catch (IOException e) {\n System.err.printf(\"Erro na abertura do arquivo: %s.\\n\", e.getMessage());\n }\n }",
"public static StockSetData getStockSetDataFromCSV(String filePath) {\r\n int TOP_HEADER_ROW_INDEX = 4;\r\n // Create our BuyOptionObject\r\n StockSetData stockSetData = new StockSetData();\r\n // Get all the data as records\r\n List<List<String>> records = getCSV2(filePath);\r\n // Label the columns\r\n List<String> topHeader = records.get(TOP_HEADER_ROW_INDEX);\r\n List<String> nameHeader = records.get(TOP_HEADER_ROW_INDEX + 1);\r\n\r\n // loop horizontally through the elements in the top header\r\n for (int i = 0; i < topHeader.size(); i++) {\r\n // decide the type of column\r\n\r\n if (topHeader.get(i).equals(\"l\")) {\r\n ArrayList<String> loaderArray = new ArrayList<>();\r\n for (int j = TOP_HEADER_ROW_INDEX + 2; j < records.size(); j++) {\r\n loaderArray.add(records.get(j).get(i));\r\n }\r\n ColumnAndName columnAndName = new ColumnAndName(loaderArray ,nameHeader.get(i));\r\n stockSetData.getLabelValues().add(columnAndName);\r\n }\r\n if (topHeader.get(i).equals(\"s\")) {\r\n ArrayList<String> loaderArray = new ArrayList<>();\r\n for (int j = TOP_HEADER_ROW_INDEX + 2; j < records.size(); j++) {\r\n loaderArray.add(records.get(j).get(i));\r\n }\r\n ColumnAndName columnAndName = new ColumnAndName(loaderArray ,nameHeader.get(i));\r\n stockSetData.getSortingValues().add(columnAndName);\r\n }\r\n if (topHeader.get(i).equals(\"f\")) {\r\n ArrayList<String> loaderArray = new ArrayList<>();\r\n for (int j = TOP_HEADER_ROW_INDEX + 2; j < records.size(); j++) {\r\n loaderArray.add(records.get(j).get(i));\r\n }\r\n ColumnAndName columnAndName = new ColumnAndName(loaderArray ,nameHeader.get(i));\r\n stockSetData.getFitnessValues().add(columnAndName);\r\n }\r\n\r\n\r\n }\r\n\r\n return stockSetData;\r\n }",
"public CsvToVector(String csvPath)\n\t{\n\t\tthis.csvPath = csvPath;\n\t\t//this.fs = fs;\n\t}",
"static TreeSet<Adjective> parseAdjective3(Scanner data){\n\t\tArrayList<String[]> raw = parseDataToArray(data);\n\t\tTreeSet<Adjective> output = new TreeSet<Adjective>();\n\n\t\tfor(String[] current : raw){ //iterate over each line from the original file.\n\n\t\t\tif(current.length != Values.ADJECTIVE_DATA_ARRAY_LENGTH_CORRECT){\n\t\t\t\tSystem.err.println(\"Error parsing a line.\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t//System.out.println(\"Raw: \" + Arrays.toString(current));\n\n\t\t\t//current[] contains a split based on tabs. Generally {chapter, nom/gen/gender, definition}.\n\n\t\t\tint chapter = 0;\n\t\t\tArrayList<String> definitions = new ArrayList<String>();\n\t\t\tAdjective currentAdjective = null;\n\n\t\t\t//Values.betterStringArrayPrint(current);\n\n\t\t\ttry{ //try to read a noun, assuming that the chapter IS specified\n\t\t\t\t\n\t\t\t\tchapter = Integer.parseInt(current[0].trim());\n\t\t\t\tList<String> tempDefinitions = Arrays.asList(current[2].split(\",|;\")); //definitions\n\t\t\t\tdefinitions.addAll(tempDefinitions);\n\t\t\t\ttrimAll(definitions);\n\t\t\t\t\n\t\t\t\tif(current[1].split(\", \").length == 1){\n\t\t\t\t\tcurrentAdjective = new OneTerminationAdjective(current[1].split(\", \")[0].split(\":\")[0], current[1].split(\", \")[0].split(\":\")[1], chapter, definitions);\n\t\t\t\t} else if(current[1].split(\", \").length == 2){\n\t\t\t\t\tString mascFem = current[1].split(\", \")[0];\n\t\t\t\t\tString neuter = current[1].split(\", \")[1];\n\t\t\t\t\tcurrentAdjective = new TwoTerminationAdjective(mascFem, neuter, chapter, definitions);\n\t\t\t\t} else if(current[1].split(\", \").length == 3){\n\t\t\t\t\tString masculine = current[1].split(\", \")[0];\n\t\t\t\t\tString feminine = current[1].split(\", \")[1];\n\t\t\t\t\tString neuter = current[1].split(\", \")[2];\n\t\t\t\t\tcurrentAdjective = new ThreeTerminationAdjective(masculine, feminine, neuter, chapter, definitions);\n\t\t\t\t}\n\n\t\t\t} catch(Exception e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.err.println(\"Could not read a line!\");\n\t\t\t\tcontinue; //We can't make a noun out of the botrked line.\n\t\t\t}\n\t\t\t//Adjective currentAdjective = new Adjective(masculine, feminine, neuter, chapter, declension, definitions);\n\t\t\tSystem.out.println(\"Added: \" + currentAdjective);\n\t\t\toutput.add(currentAdjective);\n\t\t}\n\n\t\treturn output;\n\t}",
"public abstract T parseLine(String inputLine);",
"public void parse() {\n }",
"public static void test000(String[] args) throws IOException\n {\n\n\n //System.out.println(sql_insert_shipto_template);\n\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%SALES_ORGANIZATION_CODE%\", \"261\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%DC_SHORTNAME%\", \"PF\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%SHIPTO_CODE%\", \"10156409\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%PRODUCT_CODE%\", \"10104574\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%STARTDATE%\", \"01.02.2014\");\n// sql_insert_shipto_template = sql_insert_shipto_template.replaceAll(\"%FINISHDATE%\", \"31.12.9999\");\n\n\n // String test = \"1\\t2\\t3\\n4\\t5\\t6\";\n\n String test = \"SO;SHIPTO;SHIPTO;DCSHORT;REP;GRD;Name;start date;end date\\n\" +\n \"261;10156405PF;10156405;PF;249394;10104570;A.KORKUNOV DARK 5*10*100G;07.10.2014;31.12.9999\\n\" +\n \"261;10156405CH;10156405;CH;249410;10104542;A.KORKUNOV MILK 5*10*100G;07.10.2014;31.12.9999\\n\" +\n \"377;10156409PF;10156409;PF;249399;10104574;A.KORKUNOV DARK ALMOND 5*10*100G;07.10.2014;31.12.9999\\n\";\n\n\n //CSVParser parser = CSVParser.parse(test, CSVFormat.newFormat(';'));\n File file = new File(\"c:\\\\MATDET_SHIPTO_EXAMPLE.csv\");\n CSVParser parser = CSVParser.parse(file, java.nio.charset.Charset.defaultCharset(), CSVFormat.newFormat(';'));\n\n int rownum = 0;\n for (CSVRecord strings : parser)\n {\n\n if (rownum++ == 0)\n continue;\n String SO = strings.get(0);\n String SHIPTO = strings.get(2);\n String DCSHORT = strings.get(3);\n //String REP = strings.get(4);\n String PRODUCT = strings.get(5);\n String START = strings.get(7);\n String END = strings.get(8);\n\n String temp = SQL_INSERT_TMATDET_SHIPTO_TEMPLATE;\n temp = temp.replaceAll(\"%SALES_ORGANIZATION_CODE%\", SO);\n temp = temp.replaceAll(\"%DC_SHORTNAME%\", DCSHORT);\n temp = temp.replaceAll(\"%SHIPTO_CODE%\", SHIPTO);\n temp = temp.replaceAll(\"%PRODUCT_CODE%\", PRODUCT);\n temp = temp.replaceAll(\"%STARTDATE%\", START);\n temp = temp.replaceAll(\"%FINISHDATE%\", END);\n\n\n System.out.println(temp);\n }\n\n System.out.println(\"rows=\" + rownum);\n\n\n// CsvParser parser = new CsvParserImpl();\n// CSV\n// parser.\n// List parsed = parser.parse(\"1\\t2\\t3\\n4\\t5\\t6\");\n// System.out.println(parsed.get(0));\n\n //System.out.println(sql_insert_shipto_template);\n\n }",
"@Test\n public void givenIndianStateCensusData_WhenSorted_ReturnSortedResult() {\n String CSV_FILE_PATH = \"src/test/resources/StateCensusData.csv\";\n try {\n indianCensusAnalyzer.loadStateCensusCSVData(CensusAnalyser.Country.INDIA, CSV_FILE_PATH);\n String SortedData = indianCensusAnalyzer.sortedStateCensusData(CensusAnalyser.SortingMode.STATENAME);\n CSVStateCensus[] censusCSV = new Gson().fromJson(SortedData, CSVStateCensus[].class);\n Assert.assertEquals(\"Andhra Pradesh\", censusCSV[0].StateName);\n } catch (CSVBuilderException e) {\n\n }\n }",
"public LoadCSV(String file_position){\r\n this.file_position = file_position;\r\n }",
"protected abstract List<O> parseFileForObservations(Scanner scn);",
"public interface DataParser {\n\n /**\n * Returns list of parsed CountryEntity in domain presentation.\n * @param @List<String> line, list of countries metadata in string presentation.\n * @return List<@CountryEntity>\n */\n List<CountryEntity> parseLines(List<String> line);\n}",
"@Test\n public void testCSVHandlerForNodes() throws IOException, URISyntaxException {\n val csvHandler = TestInjector.create(CSVHandler.class);\n // todo clean this up but also keep it working on windows\n val input = Paths.get(getClass().getResource(\"PrototypeNodes.csv\").toURI()).toString();\n val output = \"build/Nodes.csv\";\n csvHandler.importNodes(input);\n csvHandler.exportNodes(output);\n val inputLines = Files.readAllLines(Paths.get(input));\n val outputLines = Files.readAllLines(Paths.get(output));\n assertEquals(inputLines.size(), outputLines.size());\n assertEquals(inputLines.get(0), outputLines.get(0)); // make sure header lines are the same\n assertTrue(outputLines.containsAll(inputLines));\n assertTrue(inputLines.containsAll(outputLines));\n }",
"List<String[]> readCsv(String inputFilePath,int skipLine)throws IOException;",
"protected static ArrayList<String> load() throws Exception {\r\n\t\tArrayList<String> list;\r\n\t\tFileReader fileRead = new FileReader(csv);\r\n\t\tBufferedReader buff = Files.newBufferedReader(Paths.get(\"story.csv\"));\r\n\t\tlist = buff.lines().map(line -> line.split(\",\")).flatMap(Arrays::stream)\r\n\t\t\t\t.collect(Collectors.toCollection(ArrayList::new));\r\n\t\tbuff.close();\r\n\t\tfileRead.close();\r\n\r\n\t\treturn list;\r\n\t}"
] | [
"0.7047617",
"0.617328",
"0.5753881",
"0.57187545",
"0.57110035",
"0.56873846",
"0.56834143",
"0.56817335",
"0.5643453",
"0.5593038",
"0.55804235",
"0.55758303",
"0.5567217",
"0.5550853",
"0.55388963",
"0.5538578",
"0.5535181",
"0.55127215",
"0.55078304",
"0.54888064",
"0.54373443",
"0.5430418",
"0.53736985",
"0.53708243",
"0.5353172",
"0.5334361",
"0.533091",
"0.5321656",
"0.531538",
"0.53085953",
"0.5295366",
"0.5272458",
"0.5265857",
"0.5264435",
"0.52613914",
"0.52356493",
"0.5228008",
"0.5226021",
"0.52184516",
"0.52039856",
"0.5194158",
"0.5186429",
"0.5183354",
"0.5173173",
"0.5167817",
"0.5167313",
"0.5165496",
"0.5144524",
"0.5142762",
"0.514148",
"0.51404846",
"0.51372683",
"0.5132615",
"0.5126292",
"0.5122011",
"0.512141",
"0.51063544",
"0.50979453",
"0.50966495",
"0.5087366",
"0.507928",
"0.50777704",
"0.5076327",
"0.50721514",
"0.50719136",
"0.5069395",
"0.50683224",
"0.50527865",
"0.504903",
"0.5048408",
"0.5029033",
"0.50258774",
"0.5022239",
"0.5019691",
"0.5010779",
"0.5008307",
"0.5001921",
"0.49961865",
"0.4993295",
"0.498867",
"0.49850652",
"0.49828866",
"0.49791217",
"0.49737912",
"0.49715972",
"0.4961855",
"0.4957691",
"0.4953435",
"0.49525636",
"0.49499738",
"0.4949942",
"0.49380085",
"0.4931454",
"0.49291846",
"0.49264246",
"0.49239302",
"0.49234447",
"0.4922289",
"0.4921674",
"0.4912531"
] | 0.50965476 | 59 |
Bind screen buffer to an offscreen frame buffer, to enable render to texture. | public void bind() {GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, mFrameBufferHandle[0]);} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void unbind() {GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);}",
"public GlBuffer bind(){\n\t\t//Log.d(TAG,\"bind()\");\n if(mVaoHandle != UNBIND_HANDLE){\n GLES30.glBindVertexArray(mVaoHandle);\n }\n GLES20.glBindBuffer(this.target, this.handle);\n\t\treturn this;\n\t}",
"public void setUseOffscreenBuffer( boolean useOffscreenBuffer ) {\n this.paintStrategy = useOffscreenBuffer ? new OffscreenBufferStrategy( this ) : (PaintStrategy) new DefaultPaintStrategy( this );\n // Todo: Determine if the following two lines help or not\n// setOpaque( useOffscreenBuffer );\n setDoubleBuffered( !useOffscreenBuffer );\n }",
"public void backBufferIntoTexture()\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tif (InternalTexture[0] == 0) {\r\n\t\t\tgl.glGenTextures(1,InternalTexture);\r\n\t\t\tSystem.out.print(\"Initializing internal texture \"+InternalTexture[0]+\":[\"+getWidth()+\",\"+getHeight()+\"]\\n\");\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, this.getWidth(), this.getHeight(), 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, this.getWidth(), this.getHeight());\r\n\t\t}\r\n\t\tglut.glutReportErrors();\r\n\t}",
"public void bind()\n {\n glBindTexture(GL_TEXTURE_2D, texture);\n }",
"public void bind() {\n if (isTextureLoaded()) {\n glBindTexture(GL_TEXTURE_2D, texId.getId());\n } else {\n System.err.println(\"[Error] texture::bind() Binding a unloaded texture.\");\n }\n }",
"public void bind()\r\n\t{\r\n\t\tVector3f color;\r\n\r\n\t\tcolor = ambient;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_AMBIENT);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tcolor = diffuse;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_DIFFUSE);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tcolor = specular;\r\n\t\tglColorMaterial(GL_FRONT_AND_BACK, GL_SPECULAR);\r\n\t\tglColor4f(color.x, color.y, color.z, transparency);\r\n\r\n\t\tif (texture != null)\r\n\t\t{\r\n\t\t\ttexture.bind();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tglBindTexture(GL_TEXTURE_2D, 0);\r\n\t\t}\r\n\t}",
"@Override\n public void onFrameAvailable(SurfaceTexture st) {\n mGLView.requestRender();\n }",
"public void bindAll(GL2 gl) throws OpenGLException\n\t{\t\t\n\t\t/* Save state and adjust viewport if this is the first bind. */\n\t\tif (!mIsBound)\n\t\t{\n\t\t\tgl.glPushAttrib(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_VIEWPORT_BIT);\n\t\t\tgl.glGetIntegerv(GL2.GL_FRAMEBUFFER_BINDING, mPreviousBinding, 0);\n\t\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, getHandle());\n\t\t\tgl.glViewport(0, 0, mWidth, mHeight);\n\t\t\tmIsBound = true;\n\t\t}\n\t\t\n\t\t/* Set draw buffers to all color attachments. */\n\t\tint bindings[] = new int[getColorTextureCount()];\n\t\t\n\t\tfor (int i = 0; i < getColorTextureCount(); ++i)\n\t\t{\n\t\t\tbindings[i] = GL2.GL_COLOR_ATTACHMENT0 + i;\n\t\t}\n\t\t\n\t\tgl.glDrawBuffers(getColorTextureCount(), bindings, 0);\n\n\t\t/* Make sure it worked. */\n\t\tOpenGLException.checkOpenGLError(gl);\n\t}",
"private void finalRenderToTexture() {\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\t\tGL11.glCullFace(GL11.GL_BACK);\n\t\tGL11.glColorMask(true, true, true, true);\n\t\tGL11.glDepthFunc(GL11.GL_LEQUAL);\n\t\tGL11.glStencilOp(GL11.GL_KEEP, GL11.GL_KEEP, GL11.GL_KEEP);\n\t\tGL11.glDepthMask(false);\n\t\tGL11.glEnable(GL11.GL_STENCIL_TEST);\n\n\t\t// ambient pass\n\t\tGL11.glStencilFunc(GL11.GL_NOTEQUAL, 0, 0xff);\n\t\tphongShadowContext.uniform1f(\"ambientOnly\", 1);\n\t\tfor (PhysicsEntity<? extends RenderEntity> e : entities) {\n\t\t\tRenderEntity re = e.getWorldEntity();\n\t\t\tre.render(phongShadowContext);\n\t\t}\n\n\t\t// diffuse pass\n\t\tGL11.glStencilFunc(GL11.GL_EQUAL, 0, 0xff);\n\t\tphongShadowContext.uniform1f(\"ambientOnly\", 0);\n\t\tfor (PhysicsEntity<? extends RenderEntity> e : entities) {\n\t\t\tRenderEntity re = e.getWorldEntity();\n\t\t\tre.render(phongShadowContext);\n\t\t}\n\n\t\tGL11.glDisable(GL11.GL_BLEND);\n\t\tGL11.glDepthFunc(GL11.GL_LEQUAL);\n\t\tGL11.glDepthMask(true);\n\t\tGL11.glDisable(GL11.GL_STENCIL_TEST);\n\n\t\t// SCREEN POST PROCESSING\n\t\tscreenBuffer.copyPixels();\n\t}",
"public void bindGiven(GL2 gl, int textureTarget, int textureHandle, int colorTextureIndex) throws OpenGLException\n\t{\t\t\n\t\t/* Save state and adjust viewport if this is the first bind. */\n\t\tif (!mIsBound)\n\t\t{\n\t\t\tgl.glPushAttrib(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_VIEWPORT_BIT);\n\t\t\tgl.glGetIntegerv(GL2.GL_FRAMEBUFFER_BINDING, mPreviousBinding, 0);\n\t\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, getHandle());\n\t\t\tgl.glViewport(0, 0, mWidth, mHeight);\n\t\t\tmIsBound = true;\n\t\t}\n\t\t\n\t\t/* Attach the given texture */\n\t\tgl.glFramebufferTexture2D(GL2.GL_FRAMEBUFFER, GL2.GL_COLOR_ATTACHMENT0 + colorTextureIndex, textureTarget, textureHandle, 0);\t\n\t\t\n\t\t/* Set draw buffer to the requested color attachment. */\n\t\tgl.glDrawBuffer(GL2.GL_COLOR_ATTACHMENT0 + colorTextureIndex);\n\t\t\n\t\t/* Make sure it worked. */\n\t\tOpenGLException.checkOpenGLError(gl);\n\t}",
"@Override\n\tpublic void rebind () {\n\t\tsetParams(Param.Texture, u_texture0);\n\t\tsetParams(Param.ViewportInverse, viewportInverse);\n\t\tendParams();\n\t}",
"int vkCreateFramebuffer(DeviceContext device, VkFramebufferCreateInfo pCreateInfo, Pointer pAllocator, PointerByReference pFramebuffer);",
"@Override\n\t\tpublic void render()\n\t\t{\n\t\t\tif(color.alpha() > 0)\n\t\t\t{\n\t\t\t\tbind();\n\t\t\t\tGL11.glBindTexture(GL11.GL_TEXTURE_2D, 0);\n\t\t\t\tGL11.glBegin(GL11.GL_TRIANGLE_STRIP);\n\t\t\t\t\tfloat screenWidth = WindowManager.controller().width();\n\t\t\t\t\tfloat screenHeight = WindowManager.controller().height();\n\t\t\t\t\tGL11.glVertex2f(0, 0);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, 0);\n\t\t\t\t\tGL11.glVertex2f(0, screenHeight);\n\t\t\t\t\tGL11.glVertex2f(screenWidth, screenHeight);\n\t\t\t\tGL11.glEnd();\n\t\t\t\trelease();\n\t\t\t}\n\t\t}",
"public void rebind() {\n // FBOs might be null if the instance wasn't initialized with #resize(int, int) yet.\n if (buffer1.getFbo() != null) {\n Texture texture = buffer1.getFbo().getColorBufferTexture();\n texture.setWrap(wrapU, wrapV);\n texture.setFilter(filterMin, filterMag);\n }\n if (buffer2.getFbo() != null) {\n Texture texture = buffer2.getFbo().getColorBufferTexture();\n texture.setWrap(wrapU, wrapV);\n texture.setFilter(filterMin, filterMag);\n }\n }",
"public void end() {\r\n GL11.glViewport(0, 0, GLContext.getCurrent().getWidth(), GLContext.getCurrent().getHeight());\r\n glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);\r\n }",
"private void setupTexture() {\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n GLES20.glGenTextures(1, textures, 0);\n checkGlError(\"Texture generate\");\n\n GLES20.glBindTexture(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, textures[0]);\n checkGlError(\"Texture bind\");\n\n videoTexture = new SurfaceTexture(textures[0]);\n videoTexture.setOnFrameAvailableListener(this);\n }",
"public GlBuffer unbind(){\n\t\t//Log.d(TAG,\"unbind()\");\n\t\tGLES20.glBindBuffer(this.target, this.UNBIND_HANDLE);\n\t\tif(mVaoHandle != UNBIND_HANDLE){\n GLES30.glBindVertexArray(UNBIND_HANDLE);\n }\n\t\treturn this;\n\t}",
"public void setTextureCoordsBuffer(ByteBuffer coords) {\n this.texCoordsBuf = coords;\n }",
"private void drawFrameBufferContents(GameCanvas.BlendState blend) {\r\n\t\tcanvas.beginCustom(blend, GameCanvas.ChannelState.ALL);\r\n\t\tTexture fbo_t = fbo.getColorBufferTexture();\r\n\t\tfloat fbo_x = camera.position.x - canvas.getWidth() / 2;\r\n\t\tfloat fbo_y = camera.position.y - canvas.getHeight() / 2 + fbo_t.getHeight();\r\n\t\tcanvas.draw(fbo_t, Color.WHITE, fbo_x, fbo_y, fbo_t.getWidth(), -fbo_t.getHeight());\r\n\t\tcanvas.endCustom();\r\n\t}",
"public void bind(TextureInfo tex) {\n buffer(() -> TextureManager.bind(tex));\n }",
"public void applyBufferToSurface(SurfaceControl surfaceControl, GraphicBufferEx buffer) {\n attachBufferToSurface(surfaceControl, buffer);\n }",
"public void bind()\n {\n glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, this.ID);\n }",
"public void showBgBufferSurface(GraphicBufferEx buffer, Point position) {\n this.mBackgroundBuffer = buffer;\n this.mBackgourndSurface = makeSurfaceController(TAG, buffer.getWidth(), buffer.getHeight());\n attachBufferToSurface(this.mBackgourndSurface, this.mBackgroundBuffer);\n showBackgroundSurface(position);\n }",
"public Framebuffer render(int framebufferWidth, int framebufferHeight) throws OpenGLException;",
"@Override\n\tpublic void prepareScreen() {\n\t\tgl.glColor3d(0.0, 0.0, 0.0);\n\t\tgl.glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);\n\t}",
"public void begin() {\r\n GL11.glViewport(0, 0, colorTexture.getWidth(), colorTexture.getHeight());\r\n bind();\r\n }",
"public void bind(GL gl) {\n\tgl.glBindTexture(target, textureID);\n }",
"protected Texture initializeTexture(DrawContext dc)\n {\n if (this.sourceTexture != null && dc.getTextureCache().get(sourceTexture.getImageSource()) == null)\n {\n // Limit FBO size to the max OGL size or 4k, whichever is smaller\n int maxSize = Math.min(dc.getGLRuntimeCapabilities().getMaxTextureSize(), 4096);\n\n sourceTexture.bind(dc); // bind loads the image and sets the width and height\n if (sourceTexture.getWidth(dc) != 0 && sourceTexture.getHeight(dc) != 0)\n {\n this.width = Math.min(maxSize, sourceTexture.getWidth(dc));\n this.height = Math.min(maxSize, sourceTexture.getHeight(dc));\n }\n }\n\n GL gl = GLContext.getCurrent().getGL();\n\n int[] fbo = new int[1];\n gl.glGenFramebuffersEXT(1, fbo, 0);\n gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, fbo[0]);\n\n TextureData td = new TextureData(GL.GL_RGBA, this.width, this.height, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE,\n false, false, true, BufferUtil.newByteBuffer(this.width * this.height * 4), null);\n Texture t = TextureIO.newTexture(td);\n t.bind();\n\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL.GL_CLAMP_TO_EDGE);\n\n gl.glFramebufferTexture2DEXT(GL.GL_FRAMEBUFFER_EXT, GL.GL_COLOR_ATTACHMENT0_EXT, GL.GL_TEXTURE_2D,\n t.getTextureObject(), 0);\n\n int status = gl.glCheckFramebufferStatusEXT(GL.GL_FRAMEBUFFER_EXT);\n if (status == GL.GL_FRAMEBUFFER_COMPLETE_EXT)\n {\n this.generateTexture(dc, this.width, this.height);\n gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, 0);\n gl.glDeleteFramebuffersEXT(1, fbo, 0);\n }\n else\n {\n throw new IllegalStateException(\"Frame Buffer Oject not created.\");\n }\n\n dc.getTextureCache().put(this, t);\n\n return t;\n }",
"public ScreenManager(Frame mainFrame){\n\t\t GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t device = env.getDefaultScreenDevice();\n\t device.setFullScreenWindow(mainFrame);\n\t if(device.isDisplayChangeSupported()){\n\t \t _chooseBestDisplayMode(device);\n\t }\n\t mainFrame.createBufferStrategy(Config.BUFFERS);\n\n\t}",
"void vkDestroyFramebuffer(DeviceContext device, FrameBuffer framebuffer, Pointer pAllocator);",
"public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}",
"public void attachTo(@NonNull TextureView view) {\n if (attach(view)) {\n view.setOpaque(isOpaque());\n\n mRenderSurface = new TextureViewHandler(view);\n\n TextureView.SurfaceTextureListener listener = new TextureView.SurfaceTextureListener() {\n @Override\n public void onSurfaceTextureAvailable(\n SurfaceTexture surfaceTexture, int width, int height) {\n if (LOGGING) Log.d(LOG_TAG, \"onSurfaceTextureAvailable()\");\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH_MR1) {\n if (mDesiredWidth > 0 && mDesiredHeight > 0) {\n surfaceTexture.setDefaultBufferSize(mDesiredWidth, mDesiredHeight);\n }\n }\n\n Surface surface = new Surface(surfaceTexture);\n TextureViewHandler textureViewHandler = (TextureViewHandler) mRenderSurface;\n textureViewHandler.setSurface(surface);\n\n createSwapChain(surface);\n\n // Call this the first time because onSurfaceTextureSizeChanged()\n // isn't called at initialization time\n mRenderCallback.onResized(width, height);\n }\n\n @Override\n public void onSurfaceTextureSizeChanged(\n SurfaceTexture surfaceTexture, int width, int height) {\n if (LOGGING) Log.d(LOG_TAG, \"onSurfaceTextureSizeChanged()\");\n if (mDesiredWidth > 0 && mDesiredHeight > 0) {\n surfaceTexture.setDefaultBufferSize(mDesiredWidth, mDesiredHeight);\n mRenderCallback.onResized(mDesiredWidth, mDesiredHeight);\n } else {\n mRenderCallback.onResized(width, height);\n }\n // We must recreate the SwapChain to guarantee that it sees the new size.\n // More precisely, for an EGL client, the EGLSurface must be recreated. For\n // a Vulkan client, the SwapChain must be recreated. Calling\n // onNativeWindowChanged() will accomplish that.\n // This requirement comes from SurfaceTexture.setDefaultBufferSize()\n // documentation.\n TextureViewHandler textureViewHandler = (TextureViewHandler) mRenderSurface;\n mRenderCallback.onNativeWindowChanged(textureViewHandler.getSurface());\n }\n\n @Override\n public boolean onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture) {\n if (LOGGING) Log.d(LOG_TAG, \"onSurfaceTextureDestroyed()\");\n destroySwapChain();\n return true;\n }\n\n @Override\n public void onSurfaceTextureUpdated(SurfaceTexture surface) { }\n };\n\n view.setSurfaceTextureListener(listener);\n\n // in case the View's SurfaceTexture already existed\n if (view.isAvailable()) {\n SurfaceTexture surfaceTexture = view.getSurfaceTexture();\n listener.onSurfaceTextureAvailable(surfaceTexture, mDesiredWidth, mDesiredHeight);\n }\n }\n }",
"public EGLSurface createOffscreenSurface(int width, int height) {\n int[] surfaceAttribs = {\n EGL10.EGL_WIDTH, width,\n EGL10.EGL_HEIGHT, height,\n EGL10.EGL_NONE\n };\n EGLSurface eglSurface = argonEGL.eglCreatePbufferSurface(argonGLDisplay, mEGLConfig,\n surfaceAttribs);\n checkEglError(\"eglCreatePbufferSurface\");\n if (eglSurface == null) {\n throw new RuntimeException(\"surface was null\");\n }\n return eglSurface;\n }",
"@Override\n public void prepareRendering() {\n GL11.glClearStencil(0);\n GL11.glClear(GL11.GL_STENCIL_BUFFER_BIT);\n \n GlStateManager.enableDepthTest();\n GL11.glEnable(GL_STENCIL_TEST);\n \n IEFrameBuffer ieFrameBuffer = (IEFrameBuffer) client.getFramebuffer();\n if (!ieFrameBuffer.getIsStencilBufferEnabled()) {\n ieFrameBuffer.setIsStencilBufferEnabledAndReload(true);\n if (Minecraft.func_238218_y_()) {\n client.worldRenderer.loadRenderers();\n }\n }\n \n }",
"public void bindOne(GL2 gl, int colorTextureIndex) throws OpenGLException\n\t{\n\t\t/* Sanity check. */\n\t\tif (colorTextureIndex < 0 || colorTextureIndex >= getColorTextureCount())\n\t\t{\n\t\t\tthrow new AssertionError(\"Color texture index out of range: required that 0 <= \" + colorTextureIndex + \" < \" + getColorTextureCount() + \".\");\n\t\t}\n\t\t\n\t\t/* Save state and adjust viewport if this is the first bind. */\n\t\tif (!mIsBound)\n\t\t{\n\t\t\tgl.glPushAttrib(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_VIEWPORT_BIT);\n\t\t\tgl.glGetIntegerv(GL2.GL_FRAMEBUFFER_BINDING, mPreviousBinding, 0);\n\t\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, getHandle());\n\t\t\tgl.glViewport(0, 0, mWidth, mHeight);\n\t\t\tmIsBound = true;\n\t\t}\n\t\t\n\t\t/* Set draw buffer to the requested color attachment. */\n\t\tgl.glDrawBuffer(GL2.GL_COLOR_ATTACHMENT0 + colorTextureIndex);\n\t\t\n\t\t/* Make sure it worked. */\n\t\tOpenGLException.checkOpenGLError(gl);\n\t}",
"public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}",
"public void setUseBitmapBuffer(boolean useBitmapBuffer) {\n this.useBitmapBuffer = useBitmapBuffer;\n }",
"public void blit() {}",
"public void unbind(GL2 gl) throws OpenGLException\n\t{\n\t\tif (mIsBound)\n\t\t{\n\t\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, mPreviousBinding[0]);\n\t\t\tgl.glPopAttrib();\n\t\t\tmIsBound = false;\n\n\t\t\tOpenGLException.checkOpenGLError(gl);\n\t\t}\n\t}",
"private void renderEngine() {\r\n GL11.glDisable(GL11.GL_LIGHTING);\r\n\r\n GL11.glEnable(GL11.GL_BLEND);\r\n GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE);\r\n\r\n shotTexture.bind();\r\n engine.render();\r\n\r\n GL11.glDisable(GL11.GL_BLEND);\r\n }",
"@Override\n\tpublic void onSurfaceCreated(GL10 gl, EGLConfig config) {\n\t\tgl.glClearColor(0,0,0,1); \n\t\t//enable vertex array for vertex pointer\n\t\tgl.glEnableClientState(GL10.GL_VERTEX_ARRAY); \n\t\t//enable normal array\n\t\tgl.glEnableClientState(GL10.GL_NORMAL_ARRAY);\n\t\t//enable DepthTest\n\t\tgl.glEnable(GL10.GL_DEPTH_TEST); \n\t\t//enable Blend\n\t\tgl.glEnable(GL10.GL_BLEND);\n\t\t//set blend function\n\t\tgl.glBlendFunc(GL10.GL_SRC_ALPHA, GL10.GL_ONE_MINUS_SRC_ALPHA);\n\t\t//Gen texture\n\t\t//initialize array\n\t\tint textureIds[] = new int[1];\n\t\t//generate 1 texture return handle to textureIds\n\t\tgl.glGenTextures(1, textureIds, 0);\n\t\t//get handle from array to an int\n\t\ttextureId = textureIds[0];\n\t\t//bind using array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textureId);\n\t\t//copy image pixels data to texture buffer on video mem\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t\t//filter for minif\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\t//filter for magnif\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_NEAREST);\n\t\t//unbind texture buffer\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, 0);\n\t\t//bitmap.recycle(); just if not used anymore \n\t}",
"public void draw(int texture){\n\t\tGLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);\n\t\tGLES20.glUseProgram(program);\n\t\tGLES20.glDisable(GLES20.GL_BLEND);\n\n\t\tint positionHandle = GLES20.glGetAttribLocation(program, \"aPosition\");\n\t\tint textureHandle = GLES20.glGetUniformLocation(program, \"uTexture\");\n\t\tint texturePositionHandle = GLES20.glGetAttribLocation(program, \"aTexPosition\");\n\n\t\tGLES20.glVertexAttribPointer(texturePositionHandle, 2, GLES20.GL_FLOAT, false, 0, textureBuffer);\n\t\tGLES20.glEnableVertexAttribArray(texturePositionHandle);\n\n\t\tGLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texture);\n\t\tGLES20.glUniform1i(textureHandle, 0);\n\n\t\tGLES20.glVertexAttribPointer(positionHandle, 2, GLES20.GL_FLOAT, false, 0, verticesBuffer);\n\t\tGLES20.glEnableVertexAttribArray(positionHandle);\n\n\t\tGLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLE_STRIP, 0, 4);\n\t}",
"public native void renderFrame();",
"public native void renderFrame();",
"public void render(){\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Sets graphics in screen and clears them\n\t\tGraphics g = bs.getDrawGraphics();\n\t\tscreen.graphics(g);\n\t\tscreen.clear();\n\t\t\n\t\tGraphics2D graphics2d = (Graphics2D) g;\n\t\t\n\t\t//Adds antialiasing to text\n\t\tgraphics2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\tmanager.render(screen);\n\t\t\n\t\tfor(int i = 0; i < WIDTH*HEIGHT; i++){\n\t\t\tpixels[i] = screen.getPixels()[i];\n\t\t}\n\t\tg.drawImage(image, 0, 0, getWidth(), getHeight(), null);\n\t\t\n\t\t//Draw text from string buffer\n\t\tfor(StringObject so : screen.stringBuffer){\n\t\t\tString s = so.string;\n\t\t\tg.setColor(so.color);\n\t\t\tg.setFont(so.font);\n\t\t\tg.drawString(s, so.xp, so.yp);\n\t\t}\n\t\tscreen.stringBuffer.clear();\n\t\t\n\t\t//Draws pause graphics\n\t\tif(screen.pause && manager.getState() == 2){\n\t\t\tg.setColor(new Color((0xcc00aa & 0xff0000) >> 16, (0xcc00aa & 0xff00) >> 8, (0xcc00aa & 0xff), 255));\n\t\t\tg.fillRect(0, 290, screen.getWidth(), 170);\n\t\t\tg.setColor(new Color((0x222222 & 0xff0000) >> 16, (0x222222 & 0xff00) >> 8, (0x222222 & 0xff), 255));\n\t\t\tg.fillRect(0, 300, screen.getWidth(), 150);\n\t\t\t\n\t\t\tg.setColor(Color.WHITE);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 90));\n\t\t\tg.drawString(\"PAUSED\", 330, 380);\n\t\t\tg.setFont(new Font(\"Audiowide\", Font.PLAIN, 30));\n\t\t\tg.drawString(\"Press Escape to Resume\", 340, 420);\n\t\t}\n\t\t\n\t\tg.dispose();\n\t\tbs.show();\n\t}",
"@Override\n\tpublic void onDrawFrame(GL10 gl) {\n\t\tLibNative.render();\n\t}",
"public abstract void setBufferMode(int mode);",
"public void unbind()\n {\n glBindTexture(GL_TEXTURE_2D, 0);\n }",
"private void endRender() {\n //Restore state by unbinding everything\n glDisableVertexAttribArray(0);\n glDisableVertexAttribArray(1);\n glDisableVertexAttribArray(2);\n glDisableVertexAttribArray(3);\n glDisableVertexAttribArray(4);\n glBindVertexArray(0);\n\n glBindTexture(GL_TEXTURE_2D, 0);\n }",
"public native WinFileMappingBuffer createScreenCaptureAsFileMapping(Rectangle screenRect);",
"@Override // com.android.server.wm.HwMagicWinSplitAnimation\n public void applyBufferToSurface(SurfaceControl sc, GraphicBufferEx buffer) {\n Surface surface = new Surface(sc);\n Rect bounds = new Rect(0, 0, this.mWidth, this.mHeigth);\n Canvas canvas = null;\n try {\n canvas = surface.lockCanvas(bounds);\n } catch (Surface.OutOfResourcesException | IllegalArgumentException e) {\n SlogEx.i(HwMagicWinSplitAnimation.TAG, \"lockCanvas exception\");\n }\n if (canvas != null) {\n Bitmap blurBitmap = null;\n Bitmap hwBitmap = null;\n try {\n canvas.drawColor(-1);\n hwBitmap = GraphicBufferEx.wrapHardwareBuffer(buffer, (ColorSpace) null);\n blurBitmap = HwBlur.blur(hwBitmap, 10, 1, false);\n canvas.drawBitmap(blurBitmap, (Rect) null, bounds, new Paint(5));\n canvas.drawColor(HwMagicWinSplitAnimation.COVER_COLOR);\n surface.unlockCanvasAndPost(canvas);\n surface.release();\n } finally {\n if (blurBitmap != null && !blurBitmap.isRecycled()) {\n blurBitmap.recycle();\n }\n if (hwBitmap != null && !hwBitmap.isRecycled()) {\n hwBitmap.recycle();\n }\n if (!buffer.isDestroyed()) {\n buffer.destroy();\n }\n }\n }\n }",
"public GlBuffer allocate(final int usage, final int target, final boolean freeLocal){\n\t\t//android.util.//Log.d(TAG,\"createVBO(\"+usage+\",\"+target+\",\"+freeLocal+\")\");\n\t\tif(this.handle == UNBIND_HANDLE){\n\t\t\tfinal int[] handles = new int[1];\n\n\t\t\t//Create buffer on server\n\t\t\tGLES20.glGenBuffers(1, handles, 0);\n\t\t\tthis.handle = handles[0];\n\t\t\tthis.target = target;\n\n\t\t\tGlOperation.checkGlError(TAG, \"glGenBuffers\");\n\n\t\t\t//Bind it\n\t\t\tGLES20.glBindBuffer(target, this.handle);\n\t\t\tif(this.buffer == null){\n\t\t\t\tthis.commit(false);\n\t\t\t}\n\t\t\t//Push data into it\n\t\t\tthis.buffer.position(0);\n\t\t\tGLES20.glBufferData(target, this.size, this.buffer, usage);\n\t\t\t//Unbind it\n\t\t\tGLES20.glBindBuffer(target, UNBIND_HANDLE);\n\n\t\t\t//Check error on bind only\n\t\t\tGlOperation.checkGlError(TAG, \"glBufferData\");\n\n\t\t\t//Free local buffer is queried\n\t\t\tif(mManagedBuffer && freeLocal){\n\t\t\t\tswitch(this.datatype){\n\t\t\t\t\tcase TYPE_BYTE :\n\t\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ByteBuffer)this.buffer);\n\t\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TYPE_SHORT :\n\t\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ShortBuffer)this.buffer);\n\t\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase TYPE_INT :\n\t\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((IntBuffer)this.buffer);\n\t\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((FloatBuffer)this.buffer);\n\t\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t}\n\t\t\t\tthis.buffer = null;\n\t\t\t}\n\n\t\t\tmode = MODE_VBO;\n\n if(GlOperation.getVersion()[0] >= 3 && this.vertexAttribHandles != null\n && this.vertexAttribHandles.length > 0){\n GLES30.glGenVertexArrays(1, handles, 0);\n mVaoHandle = handles[0];\n GlOperation.checkGlError(TAG, \"glGenVertexArrays\");\n\n GLES30.glBindVertexArray(mVaoHandle);\n GLES20.glBindBuffer(target, this.handle);\n\n for(int index=0; index < this.vertexAttribHandles.length; index++){\n GLES20.glEnableVertexAttribArray(this.vertexAttribHandles[index]);\n GLES20.glVertexAttribPointer(this.vertexAttribHandles[index], this.chunks[index].components,\n this.chunks[index].datatype, this.chunks[index].normalized, stride, this.chunks[index].offset);\n }\n GlOperation.checkGlError(TAG, \"glVertexAttribPointer\");\n\n GLES20.glBindBuffer(target, UNBIND_HANDLE);\n GLES30.glBindVertexArray(UNBIND_HANDLE);\n\n mode = MODE_VAO;\n }\n\t\t}\n\t\telse{\n\t\t Log.w(TAG, \"multiple allocation detected !\");\n }\n\n\t\treturn this;\n\t}",
"public void unbind()\n {\n glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, this.ID);\n }",
"public void render(GL2 gl){\r\n\t\tgl.glEnableClientState(GL2.GL_VERTEX_ARRAY); // enable vertex array\r\n\t\tgl.glEnableClientState(GL2.GL_COLOR_ARRAY); // enable color array\r\n\t\tgl.glEnableClientState(GL2.GL_NORMAL_ARRAY); // enable normal array\r\n\t\t\r\n\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, buffer[0]);\r\n gl.glVertexPointer(3, GL.GL_FLOAT, 0, 0); // Set The Vertex Pointer To The Vertex Buffer \r\n \r\n gl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[1]);\r\n gl.glNormalPointer(GL.GL_FLOAT, 0, 0); // Set the normal pointer to the normal buffer\r\n \r\n gl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[2]);\r\n gl.glColorPointer(3, GL.GL_FLOAT, 0, 0); // set the color pointer to the color buffer\r\n \r\n\t\tgl.glDrawArrays(GL.GL_TRIANGLES, 0, vertexCount); // draw the buffer\r\n\t\t\r\n\t\tgl.glDisableClientState(GL2.GL_VERTEX_ARRAY); \r\n\t\tgl.glDisableClientState(GL2.GL_COLOR_ARRAY); \r\n\t\tgl.glDisableClientState(GL2.GL_NORMAL_ARRAY); \r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0); // reset bound buffer\r\n\t}",
"public FrameBuffer(Texture texture, boolean hasDepth) {\r\n this.width = texture.getWidth();\r\n this.height = texture.getHeight();\r\n this.hasDepth = hasDepth;\r\n colorTexture = texture;\r\n// build();\r\n\r\n }",
"public void attachTo(@NonNull SurfaceHolder holder) {\n if (attach(holder)) {\n int format = isOpaque() ? PixelFormat.OPAQUE : PixelFormat.TRANSLUCENT;\n holder.setFormat(format);\n\n mRenderSurface = new SurfaceHolderHandler(holder);\n\n final SurfaceHolder.Callback callback = new SurfaceHolder.Callback() {\n @Override\n public void surfaceCreated(SurfaceHolder surfaceHolder) {\n if (LOGGING) Log.d(LOG_TAG, \"surfaceCreated()\");\n createSwapChain(holder.getSurface());\n }\n\n @Override\n public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {\n // Note: this is always called at least once after surfaceCreated()\n if (LOGGING) Log.d(LOG_TAG, \"surfaceChanged(\" + width + \", \" + height + \")\");\n mRenderCallback.onResized(width, height);\n }\n\n @Override\n public void surfaceDestroyed(SurfaceHolder surfaceHolder) {\n if (LOGGING) Log.d(LOG_TAG, \"surfaceDestroyed()\");\n destroySwapChain();\n }\n };\n\n holder.addCallback(callback);\n if (mDesiredWidth > 0 && mDesiredHeight > 0) {\n holder.setFixedSize(mDesiredWidth, mDesiredHeight);\n }\n\n // in case the SurfaceHolder's surface already existed\n final Surface surface = holder.getSurface();\n if (surface != null && surface.isValid()) {\n callback.surfaceCreated(holder);\n callback.surfaceChanged(holder, format,\n holder.getSurfaceFrame().width(), holder.getSurfaceFrame().height());\n }\n }\n }",
"public void renderFrame(State state, float[] lPMatrix) {\n\t\tisModelVisible = false;\n\t\t// Renders video background replacing Renderer.DrawVideoBackground()\n\t\tmRenderer.renderVideoBackground();\n\n\t\tGLES20.glEnable(GLES20.GL_DEPTH_TEST);\n\t\tGLES20.glEnable(GLES20.GL_CULL_FACE);\n\t\tGLES20.glCullFace(GLES20.GL_BACK);\n\t\tGLES20.glEnable(GLES20.GL_BLEND);\n\t\tGLES20.glBlendFunc(GLES20.GL_SRC_ALPHA, GLES20.GL_ONE_MINUS_SRC_ALPHA);\n\n\t\t// Did we find any trackables this frame?\n\t\tfor (int tIdx = 0; tIdx < state.getNumTrackableResults(); tIdx++) {\n\t\t\tmActivity.setFirstLoading();\n\t\t\tisModelVisible = true;\n\t\t\tTrackableResult result = state.getTrackableResult(tIdx);\n\t\t\t//Trackable trackable = result.getTrackable();\n\t\t\t//printUserData(trackable);\n\t\t\tMatrix44F modelViewMatrix_Vuforia = Tool.convertPose2GLMatrix(result.getPose());\n\n\t\t\tfloat[] lMVMatrix = modelViewMatrix_Vuforia.getData();\n\t\t\tfloat[] lMVPMatrix = new float[16];\n\n\t\t\t//String trackName = trackable.getName();\n\t\t\tint textureIndex = 0;\n\n\t\t\t//mActivity.showDebugMsg(trackable.getName());\n\n\t\t\t// deal with the modelview and projection matrices\n\n\n\t\t\tMatrix.translateM(lMVMatrix, 0, startX, startY, startZ);\n\t\t\tMatrix.scaleM(lMVMatrix, 0, objectScaleFloat, objectScaleFloat, objectScaleFloat);\n\t\t\t/// rotate based on gestures\n\t\t\tMatrix.rotateM(lMVMatrix, 0, objectRotateFloatZ, 0, 0, 1.0f);\n\t\t\tMatrix.rotateM(lMVMatrix, 0, objectRotateFloatY, 0, 1.0f, 0);\n\n\t\t\tMatrix.multiplyMM(lMVPMatrix, 0, lPMatrix, 0, lMVMatrix, 0);\n\n\t\t\t// activate the shader program and bind the vertex/normal/tex coords\n\t\t\tGLES20.glUseProgram(shaderProgramID);\n\n\t\t\tGLES20.glVertexAttribPointer(vertexHandle, 3, GLES20.GL_FLOAT, false, 0, object.getVertices());\n\t\t\tGLES20.glVertexAttribPointer(textureCoordHandle, 2, GLES20.GL_FLOAT, false, 0, object.getTexCoords());\n\n\t\t\tGLES20.glEnableVertexAttribArray(vertexHandle);\n\t\t\tGLES20.glEnableVertexAttribArray(textureCoordHandle);\n\n\t\t\t// bind the texture and pass to shader\n\t\t\tGLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mTextures.get(textureIndex).mTextureID[0]);\n\t\t\tGLES20.glUniform1i(texSampler2DHandle, 0);\n\n\t\t\t// pass the model view matrix to the shader\n\t\t\tGLES20.glUniformMatrix4fv(mvpMatrixHandle, 1, false, lMVPMatrix, 0);\n\n\t\t\t// vykreslit objekt\n\t\t\t// if indices are set in 3D object\n\t\t\tif(object.getNumObjectIndex() > 0) {\n\t\t\t\tGLES20.glDrawElements(GLES20.GL_TRIANGLES, object.getNumObjectIndex(), GLES20.GL_UNSIGNED_SHORT,\n\t\t\t\t\t\tobject.getIndices());\n\t\t\t\t//Log.d(LOGTAG, \"Draw Elements with INDICES\");\n\t\t\t}else {\n\t\t\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, object.getNumObjectVertex());\n\t\t\t\t//Log.d(LOGTAG, \"Draw Elements without INDICES\");\n\t\t\t}\n\n\t\t\t// disable the enabled arrays\n\t\t\tGLES20.glDisableVertexAttribArray(vertexHandle);\n\t\t\tGLES20.glDisableVertexAttribArray(textureCoordHandle);\n\t\t\tArUtils.checkGLError(\"Render Frame\");\n\t\t}\n\n\t\tGLES20.glDisable(GLES20.GL_BLEND);\n\t\tGLES20.glDisable(GLES20.GL_DEPTH_TEST);\n\n\t}",
"public void renderGraphics(BufferStrategy b) {\n\t\tGraphics g = b.getDrawGraphics();\n\t\tg.setColor(new Color(135, 206, 235));\n\t\tg.fillRect(0, 0, frame.getWidth(), frame.getHeight());\n\t\t//g.translate(handler.getCamera().getX(), handler.getCamera().getY());\n\t\tnotifyObservers((Object)g);\n\t\tg.dispose();\n\t\tb.show();\n\t}",
"@Override\n public void onFrameAvailable(SurfaceTexture surfaceTexture) {\n if(DEBUG) Log.d(TAG, \"Frame available\");\n\n mGLHelper.drawFrame(sTexture, textureID);\n frame = mGLHelper.readPixels(mWidth, mHeight);\n frameProcessed();\n }",
"public boolean isUseOffscreenBuffer() {\n return paintStrategy instanceof OffscreenBufferStrategy;\n }",
"public void regulateFramerate(){\n\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\n\t\ttry {\n\t\t\tif(sleepTime > 0) {\n\t\t\t\tlong takeOne = sleepTime/2;\n\t\t\t\tThread.sleep(takeOne);\n\t\t\t\t\n\t\t\t\tif(capturedMouse && !mouseLeftScreen && !focusLost) {\n\t\t\t\t\tcurrentMouseX = MouseInfo.getPointerInfo().getLocation().x;\n\t\t\t\t\tcurrentMouseY = MouseInfo.getPointerInfo().getLocation().y; \n\t\t\t\t\t\n\t\t\t\t\tint deltaX = currentMouseX - centerScreenX;\n\t\t\t\t\tint deltaY = currentMouseY - centerScreenY;\n\t\t\t\t\n\t\t\t\t\tmouseX+=deltaX;\n\t\t\t\t\tmouseY+=deltaY;\n\t\t\t\t\t\n\t\t\t\t\tmyRobot.mouseMove(centerScreenX, centerScreenY);\n\t\t\t\t\t\n\t\t\t\t\tif(mouseX < 0)\n\t\t\t\t\t\tmouseX = 0;\n\t\t\t\t\tif(mouseX >= screen_width)\n\t\t\t\t\t\tmouseX = screen_width-1;\n\t\t\t\t\tif(mouseY < 0)\n\t\t\t\t\t\tmouseY = 0;\n\t\t\t\t\tif(mouseY >= screen_height)\n\t\t\t\t\t\tmouseY = screen_height-1;\n\t\t\t\t\t\n\t\t\t\t\tinputHandler.mouse_x = mouseX;\n\t\t\t\t\tinputHandler.mouse_y = mouseY;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex %2 == 0 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(bufferScreen);\n\t\t\t\t\t\n\t\t\t\n\t\t\t\t}else if(frameIndex != 1 && frameIndex > 3){\n\t\t\t\t\tbf = doubleBuffer2;\n\t\t\t\t\t//draw mouse cursor \n\t\t\t\t\ttheGameCursor.updateAndDraw(buffer2Screen);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(frameIndex > 3)\n\t\t\t\t\tpanel.getGraphics().drawImage(bf, 0, 0, this);\n\t\t\t\t\n\t\t\t\tsleepTime = frameInterval - (System.currentTimeMillis()-lastDraw);\n\t\t\t\tif(sleepTime > 0) \n\t\t\t\t\tThread.sleep(sleepTime);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t} catch (InterruptedException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tlastDraw=System.currentTimeMillis();\n\t}",
"public void render(int x, int y, Screen screen) {\n }",
"public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }",
"@Override\n\tpublic void glDraw(float[] mvpMatrix, int vboHandle, FrameBufferInfo fbi,\n\t\t\tint posDataSize, int textureHandle) {\n\t\tGLES20.glUseProgram(mShader.program);\n\t\tGLES20.glViewport(0, 0, mImageSize.x, mImageSize.y);\n\t\tGLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, fbi == null ? 0\n\t\t\t\t: fbi.frameBufferHandle);\n\t\tGLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, textureHandle);\n\t\tGLES20.glUniform1i(mShader.uniforms.get(\"uTexture\"), 0);\n\t\tGLES20.glActiveTexture(GLES20.GL_TEXTURE1);\n\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, mCurveHandle);\n\t\tGLES20.glUniform1i(mShader.uniforms.get(\"uTextureCurve\"), 1);\n\t\tGLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vboHandle);\n\t\tGLES20.glVertexAttribPointer(mShader.attribute, posDataSize,\n\t\t\t\tGLES20.GL_FLOAT, false, 0, 0);\n\t\tGLES20.glEnableVertexAttribArray(mShader.attribute);\n\t\tGLES20.glUniformMatrix4fv(mShader.uniforms.get(\"uMVPMatrix\"), 1, false,\n\t\t\t\tmvpMatrix, 0);\n\t\tGLES20.glDrawArrays(GLES20.GL_TRIANGLES, 0, 6);\n\n\t}",
"public Builder setUseDirectBuffer(boolean useDirectBuffer) {\n useDirectBuffer_ = useDirectBuffer;\n return this;\n }",
"public void render()\n\t{\n\t\t// Get or create the BufferStrategy to plan rendering\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Get the graphics that can be drawn to\n\t\tg = bs.getDrawGraphics();\n\t\t\n\t\t// Set the Graphics2D\n\t\tg2d = (Graphics2D)g;\n\t\t\n\t\t// Create a black rectangle to fill the canvas as a base background\n\t\tg.setColor(Color.black);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\tif (screenLoaded)\n\t\t{\n\t\t\t// Draw the static background\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawStaticBackground(g);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(game.getCamera().getxPos(), \n\t\t\t\t\t\t \t game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the background layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawBackground(g);\n\t\t\t\n\t\t\t// Render all of the Tiles\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesWorld())\n\t\t\t\tgame.getWorldHandler().renderTiles(g);\n\t\t\t\n\t\t\t// Render all of the GameObjects\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesGameObjects())\n\t\t\t\tgame.getObjectHandler().renderGameObjects(g);\n\t\t\t\n\t\t\t// Draw the foreground layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawForeground(g);\n\t\t\t\n\t\t\t// Draw the lighting\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null && game.usesLighting())\n\t\t\tg.drawImage(game.getLightHandler().getLightmap(), -1500, -3100, null);\n\t\t\t\n\t\t\t// Translate the screen based on the Camera\n\t\t\tif (game.getCamera() != null && game.usesCamera())\n\t\t\t\tg2d.translate(-game.getCamera().getxPos(), \n\t\t\t\t\t\t \t -game.getCamera().getyPos());\n\t\t\t\n\t\t\t// Draw the gui layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null)\n\t\t\t\tgame.getScreenHandler().getCurrentScreen().drawGui(g);\n\t\t\t\n\t\t\t// Draw the debug layer\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null\n\t\t\t\t&& game.getDebugScreen() != null\n\t\t\t\t&& game.isDebugShown())\n\t\t\t\tgame.getDebugScreen().showDebug(g);\n\t\t\t\n\t\t\t// Draw the loading \"curtain\" if the screen is still loading\n\t\t\tif (game.getScreenHandler().getCurrentScreen() != null &&\n\t\t\t\t!screenLoaded)\n\t\t\t{\n\t\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tg.setColor(Color.black);\n\t\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\t\tg.setColor(Color.white);\n\t\t\t\t\tif (loadingFont == null)\n\t\t\t\t\t\tg.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\t\telse\n\t\t\t\t\t\tg.setFont(loadingFont);\n\t\t\t\t\tg.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Dispose of all graphics\n\t\t\tg.dispose();\n\t\t\t// Show all graphics prepared on the BufferStrategy\n\t\t\tbs.show();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tGraphics2D g2 = (Graphics2D)g;\n\t\t\tg2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\t\n\t\t\tif (timeCount < game.getFps() / 4)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 2)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse if (timeCount < (game.getFps() / 4) * 3)\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tg.setColor(Color.black);\n\t\t\t\tg.fillRect(0, 0, game.getWindow().getWidth(), \n\t\t\t\t\t\tgame.getWindow().getHeight());\n\t\t\t\tg2.setColor(Color.white);\n\t\t\t\tif (loadingFont == null)\n\t\t\t\t\tg2.setFont(new Font(\"Verdana\", Font.PLAIN, 32));\n\t\t\t\telse\n\t\t\t\t\tg2.setFont(loadingFont);\n\t\t\t\tg2.drawString(\"Loading . . . \", (game.getWindow().getWidth() / 2) - 80, \n\t\t\t\t\t\t(game.getWindow().getHeight() / 2) - 80);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Dispose of all graphics\n\t\tg.dispose();\n\t\t// Show all graphics prepared on the BufferStrategy\n\t\tbs.show();\n\t}",
"@Override\n public void onSurfaceTextureAvailable(SurfaceTexture surface, int width, int height) {\n setupCamera(width, height);\n openCamera();\n }",
"public void setupOpenGL() {\n try {\n PixelFormat pixelFormat = new PixelFormat();\n ContextAttribs contextAtrributes = new ContextAttribs(3, 2)\n .withForwardCompatible(true)\n .withProfileCore(true);\n\n DisplayMode displayMode = new DisplayMode(WIDTH, HEIGHT);\n Display.setDisplayMode(displayMode);\n Display.setTitle(WINDOW_TITLE);\n Display.create(pixelFormat, contextAtrributes);\n\n GL11.glEnable(GL11.GL_DEPTH_TEST);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n } catch (LWJGLException e) {\n e.printStackTrace();\n System.exit(-1);\n }\n\n // Setup an XNA like background color\n GL11.glClearColor(0.4f, 0.6f, 0.9f, 0f);\n\n // Map the internal OpenGL coordinate system to the entire screen\n GL11.glViewport(0, 0, WIDTH, HEIGHT);\n\n this.exitOnGLError(\"Error in setupOpenGL\");\n }",
"public boolean useDirectBuffer() {\n return useDirectBuffer_;\n }",
"public GlBuffer free(){\n\t\t//android.util.//Log.d(TAG,\"free()\");\n final int[] handles = new int[1];\n if(this.handle != UNBIND_HANDLE){\n handles[0] = this.handle;\n this.handle = UNBIND_HANDLE;\n GLES20.glDeleteBuffers(1, handles, 0);\n GlOperation.checkGlError(TAG, \"glDeleteBuffers\");\n }\n\n if(mVaoHandle != UNBIND_HANDLE){\n handles[0] = mVaoHandle;\n mVaoHandle = UNBIND_HANDLE;\n GLES30.glDeleteVertexArrays(1, handles, 0);\n GlOperation.checkGlError(TAG, \"glDeleteVertexArrays\");\n }\n\n\t\tif(mManagedBuffer && this.buffer != null){\n\t\t\tswitch(this.datatype){\n\t\t\t\tcase TYPE_BYTE :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ByteBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TYPE_SHORT :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((ShortBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TYPE_INT :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((IntBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tByteBufferPool.getInstance().returnDirectBuffer((FloatBuffer)this.buffer);\n\t\t\t\t\tmManagedBuffer = false;\n\t\t\t}\n\t\t\tthis.buffer = null;\n\t\t}\n\t\tthis.size = 0;\n\t\treturn this;\n\t}",
"private void render() {\n\t\tBufferStrategy bufferStrategy = getBufferStrategy(); //Create BufferStrategy object\n\n\t\t//If the Buffer Strategy doesn't exist, create one\n\t\tif(bufferStrategy == null) {\n\t\t\tcreateBufferStrategy(3); //Triple buffer\n\t\t\treturn; //Return\n\t\t}\n\n\t\tGraphics g = bufferStrategy.getDrawGraphics(); //Create Graphics object\n\t\tg.setColor(Color.black); //Set the colour of the object to black\n\t\tg.fillRect(0, 0, Game.WIDTH, Game.HEIGHT); //Fill the window\n\n\t\t//Start screen\n\t\tif(!startScreen.start && !player.dead && !player.win) {\n\t\t\tstartScreen.render(g); //Render the start screen\n\t\t\t//If the user presses enter\n\t\t\tif(enter) {\n\t\t\t\tstartScreen.start = true; //Game has started\n\t\t\t}\n\t\t}\n\n\t\t//Playing screen\n\t\tif(!player.dead && !player.win && startScreen.start) {\n\t\t\tlevel.render(g); //Render the level\n\t\t\tplayer.render(g); //Render the player to the graphics object\n\t\t\thp(g); //Render the hit points\n\t\t\tif(paused) {\n\t\t\t\tpauseScreen.render(g);\n\t\t\t}\n\t\t}\n\n\t\t//Dead screen\n\t\tif(player.dead){\n\t\t\tdeadScreen.render(g); //Render the dead screen\n\t\t}\n\n\t\t//Win screen\n\t\tif(player.win) {\n\t\t\twinScreen.render(g); //Render the win screen\n\t\t}\n\t\tg.dispose(); //Dispose of the object\n\t\tbufferStrategy.show(); //Show it\n\t}",
"@Override\n public void onDrawFrame(GL10 unused) {\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n GLES20.glClearColor(Player.colorBG[0], Player.colorBG[1], Player.colorBG[2], 1.0f);\n // Set the camera position (View matrix)\n Matrix.setLookAtM(mViewMatrix, 0, 0, 0, -3, 0f, 0f, 0f, 0f, 1.0f, 0.0f);\n\n // Calculate the projection and view transformation\n Matrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n\n Matrix.translateM(mMVPMatrix, 0, getScreenWidth()/2, -getScreenHeight()/2, 0); // apply translation\n Matrix.scaleM(mMVPMatrix,0,scaler,scaler,scaler);\n mSquare.draw(mMVPMatrix,Player.colorP1);\n mHat.draw(mMVPMatrix);\n\n robe.draw(mMVPMatrix, Robe.LEFT_ROBE);\n p1Eye.draw(mMVPMatrix, Circle.FACE_RIGHT, true, true);\n\n Matrix.multiplyMM(mMVPMatrix2, 0, mProjectionMatrix, 0, mViewMatrix, 0);\n Matrix.translateM(mMVPMatrix2, 0, -getScreenWidth()/2, -getScreenHeight()/2, 0);\n Matrix.scaleM(mMVPMatrix2,0,scaler,scaler,scaler);\n mSquare2.draw(mMVPMatrix2,Player.colorP2);\n mHat2.draw(mMVPMatrix2);\n\n robe2.draw(mMVPMatrix2, Robe.RIGHT_ROBE);\n p2Eye.draw(mMVPMatrix2, Circle.FACE_LEFT, true, true);\n }",
"@Override\n public void onSurfaceChanged(GL10 glUnused, int width, int height) {\n // Set the OpenGL viewport to fill the entire surface.\n glViewport(0, 0, width, height);\n }",
"@Override\r\n\tpublic Buffer setBuffer(int pos, Buffer b) {\n\t\treturn null;\r\n\t}",
"void createDummyPbufferSurface();",
"@Test\n public void forceUseTextureViewMode_whenNonLegacyDevice_andInRemoteDisplayMode() {\n assumeTrue(Build.VERSION.SDK_INT <= 24);\n final PreviewView previewView = new PreviewView(mContext);\n\n // Provides mock CameraInfo to make the device return non-legacy type.\n final CameraInfo cameraInfo = createCameraInfo(CameraInfo.IMPLEMENTATION_TYPE_CAMERA2);\n\n // Simulates the remote display mode by adding an additional display and returns the\n // second display's id when PreviewView is querying the default display's id.\n int secondDisplayId = addNewDisplay();\n WindowManager windowManager =\n (WindowManager) ApplicationProvider.getApplicationContext().getSystemService(\n Context.WINDOW_SERVICE);\n Shadows.shadowOf(windowManager.getDefaultDisplay()).setDisplayId(secondDisplayId);\n\n previewView.setImplementationMode(PreviewView.ImplementationMode.PERFORMANCE);\n Preview.SurfaceProvider surfaceProvider = previewView.getSurfaceProvider();\n mSurfaceRequest = createSurfaceRequest(cameraInfo);\n surfaceProvider.onSurfaceRequested(mSurfaceRequest);\n assertThat(previewView.mImplementation).isInstanceOf(TextureViewImplementation.class);\n }",
"public void bindSome(GL2 gl, int indices[]) throws OpenGLException\n\t{\t\t\n\t\t/* Save state and adjust viewport if this is the first bind. */\n\t\tif (!mIsBound)\n\t\t{\n\t\t\tgl.glPushAttrib(GL2.GL_COLOR_BUFFER_BIT | GL2.GL_VIEWPORT_BIT);\n\t\t\tgl.glGetIntegerv(GL2.GL_FRAMEBUFFER_BINDING, mPreviousBinding, 0);\n\t\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, getHandle());\n\t\t\tgl.glViewport(0, 0, mWidth, mHeight);\n\t\t\tmIsBound = true;\n\t\t}\n\t\t\n\t\t/* Set draw buffers to all color attachments. */\n\t\tint bindings[] = new int[indices.length];\n\t\t\n\t\tfor (int i = 0; i < indices.length; ++i)\n\t\t{\n\t\t\tif (indices[i] >= getColorTextureCount())\n\t\t\t{\n\t\t\t\tthrow new OpenGLException(\"FBO bind index \" + indices[i] + \" out of range; only \" + getColorTextureCount() + \" color textures.\");\n\t\t\t}\n\t\t\t\n\t\t\tbindings[i] = GL2.GL_COLOR_ATTACHMENT0 + indices[i];\n\t\t}\n\t\t\n\t\tgl.glDrawBuffers(indices.length, bindings, 0);\n\n\t\t/* Make sure it worked. */\n\t\tOpenGLException.checkOpenGLError(gl);\n\t}",
"@Override\n public void reshape(ViewPort vp, int w, int h) {\n Texture2D redTexture = new Texture2D(w, h, Format.RGBA8); // color texture\n Texture2D greenTexture = new Texture2D(w, h, Format.Luminance8); // monochrome texture\n Texture2D blueTexture = new Texture2D(w, h, Format.Luminance8); // monochrome texture\n Texture2D rgbTexture = new Texture2D(w, h, Format.RGBA8); // color texture\n\n fb = new FrameBuffer(w, h, 1);\n fb.addColorTarget(FrameBuffer.FrameBufferTarget.newTarget(redTexture)); // location 0\n fb.addColorTarget(FrameBuffer.FrameBufferTarget.newTarget(greenTexture)); // location 1\n fb.addColorTarget(FrameBuffer.FrameBufferTarget.newTarget(blueTexture)); // location 2\n fb.addColorTarget(FrameBuffer.FrameBufferTarget.newTarget(rgbTexture)); // location 3\n fb.setMultiTarget(true);\n\n display1.setTexture(assetManager, rgbTexture, false);\n display2.setTexture(assetManager, redTexture, false);\n display3.setTexture(assetManager, greenTexture, false);\n display4.setTexture(assetManager, blueTexture, false);\n\n display1.setPosition(0, 0); // lower-left quadrant\n display1.setWidth(w / 2f);\n display1.setHeight(h / 2f);\n\n display2.setPosition(0, h / 2f); // upper-left quadrant\n display2.setWidth(w / 2f);\n display2.setHeight(h / 2f);\n\n display3.setPosition(w / 2f, h / 2f); // upper-right quadrant\n display3.setWidth(w / 2f);\n display3.setHeight(h / 2f);\n\n display4.setPosition(w / 2f, 0f); // lower-right quadrant\n display4.setWidth(w / 2f);\n display4.setHeight(h / 2f);\n\n guiNode.updateGeometricState();\n initialized = true;\n }",
"@Test\n public void forceUseTextureViewMode_whenLegacyDevice_andInRemoteDisplayMode() {\n assumeTrue(Build.VERSION.SDK_INT <= 24);\n final PreviewView previewView = new PreviewView(mContext);\n\n // Provides mock CameraInfo to make the device return legacy type.\n final CameraInfo cameraInfo = createCameraInfo(\n CameraInfo.IMPLEMENTATION_TYPE_CAMERA2_LEGACY);\n\n // Simulates the remote display mode by adding an additional display and returns the\n // second display's id when PreviewView is querying the default display's id.\n int secondDisplayId = addNewDisplay();\n WindowManager windowManager =\n (WindowManager) ApplicationProvider.getApplicationContext().getSystemService(\n Context.WINDOW_SERVICE);\n Shadows.shadowOf(windowManager.getDefaultDisplay()).setDisplayId(secondDisplayId);\n\n previewView.setImplementationMode(PreviewView.ImplementationMode.PERFORMANCE);\n Preview.SurfaceProvider surfaceProvider = previewView.getSurfaceProvider();\n mSurfaceRequest = createSurfaceRequest(cameraInfo);\n surfaceProvider.onSurfaceRequested(mSurfaceRequest);\n assertThat(previewView.mImplementation).isInstanceOf(TextureViewImplementation.class);\n }",
"private void handleSetSurfaceTexture(SurfaceTexture st) {\n st.setOnFrameAvailableListener(this);\n try {\n mCamera.setPreviewTexture(st);\n } catch (IOException ioe) {\n throw new RuntimeException(ioe);\n }\n mCamera.startPreview();\n }",
"public Framebuffer(int width, int height) {\n\t\tviewWidth = width;\n\t\tviewHeight = height;\n\t\tid = glGenFramebuffers();\n\t}",
"public void initBuffers(VrState state);",
"private void createBackBuffer() {\r\n GraphicsConfiguration gc = getGraphicsConfiguration();\r\n volatileImg = gc.createCompatibleVolatileImage(getWidth(), getHeight());\r\n// volatileImg.setAccelerationPriority(1);\r\n }",
"private void initGL() {\n\t\ttry {\n\t\t\tDisplay.setDisplayMode(new DisplayMode(displayWidth, displayHeight));\n\t\t\tDisplay.setVSyncEnabled(true);\n\t\t\tDisplay.setTitle(\"Shooter\");\n\t\t\tDisplay.create();\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t\t// init OpenGL\n\t\tglEnable(GL_TEXTURE_2D);\n\t\t\n\t\tglClearColor(0.0f, 0.0f, 0.0f, 0.0f);\n\t\t\n\t\t// enable alpha blending\n\t\tglEnable(GL_BLEND);\n\t\tglBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);\n\t\t\n\t\tglViewport(0, 0, displayWidth, displayHeight);\n\t\t\n\t\tglMatrixMode(GL_PROJECTION);\n\t\tglLoadIdentity();\n\t\tglOrtho(0, displayWidth, displayHeight, 0, 1, -1);\n\t\tglMatrixMode(GL_MODELVIEW);\n\t}",
"@Override\n public void onSurfaceCreated(GL10 unused, EGLConfig config) {\n GLES20.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n \n // Do backface culling\n GLES20.glEnable(GLES20.GL_CULL_FACE);\n GLES20.glFrontFace(GLES20.GL_CCW);\n // Why using GL_BACK won't work is a mystery\n GLES20.glCullFace(GLES20.GL_BACK);\n // Enable depth buffer\n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n GLES20.glDepthFunc(GLES20.GL_LEQUAL);\n GLES20.glDepthMask(true);\n \n for (int i = 0; i < NUM_CARS; i++) {\n mCarBody[i] = new CarBody((float) Math.random(),\n (float) Math.random(),\n (float) Math.random());\n mCarWheels[i] = new CarWheels();\n }\n \n // Create transformation matrices for each car\n for (int i = 0; i < NUM_CARS; i++) {\n mCarXOffsets[i] = (i % NUM_LANES) * 1.1f;\n mCarZOffsets[i] = ((i / NUM_LANES) * -2) + ((i % NUM_LANES) * 1.3f);\n }\n \n road = new Square(0.6f, 0.6f, 0.6f);\n land = new Square(0.1f, 0.6f, 0.1f);\n sky = new Square(0.6f, 0.6f, 0.9f);\n background = new Sprite(mActivityContext);\n \n }",
"@Override\n public void onSurfaceTextureAvailable(@NonNull SurfaceTexture surfaceTexture, int width, int height) {\n setupCamera(width, height);\n connectCamera();\n }",
"public native void renderOneFrame();",
"@Override\n\tpublic void render() {\n\t\tgl.glEnableClientState(GL2.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n\t\tgl.glEnableClientState(GL2.GL_NORMAL_ARRAY);\n\t\tfloat posx = startxPos;\n\t\tint[] vboIds;\n\t\tfor(int i=0;i<nbWidth;i++) {\n//\t\t\tindexBuffer = cacheBands.getDataLocalIndex(i); // mapIndexBands[i]\n//\t\t\tindexBuffer.rewind();\n\t\t\tvboIds = cacheBands.getDataLocalIndex(i);\n\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n\t\t\tgl.glVertexPointer(3, GL.GL_FLOAT, 0, 0);\n\t\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n\t\t\tgl.glTexCoordPointer(2, GL.GL_FLOAT, 0, 0);\n\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n\t\t\tgl.glNormalPointer(GL.GL_FLOAT, 0, 0);\n\n\t\t\t\n\t\t\tgl.glPushMatrix();\n\t\t\tgl.glTranslatef(posx, startyPos,0);\n\t\t\t//gl.glCallList(cacheBands.getDataLocalIndex(i));\n\t // gl.glDrawElements(GL2.GL_QUADS, indices.capacity(), GL.GL_UNSIGNED_SHORT, 0);\n\t gl.glDrawArrays(GL2.GL_QUADS, 0, vboIds[0]); \n\t\t\tgl.glPopMatrix();\n\t\t\tposx+=blockWidth;\n\t\t}\n\t\t// unbind vbo\n\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\tgl.glDisableClientState(GL2.GL_NORMAL_ARRAY);\n gl.glDisableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n gl.glDisableClientState(GL2.GL_VERTEX_ARRAY);\n\n\t}",
"public void setBufferImage(Image bufferImage) {\n this.bufferImage = bufferImage;\n }",
"public void render() {\r\n glPushMatrix();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glVertexPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glColorPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBindTexture(GL_TEXTURE_2D, 1);\r\n glTexCoordPointer(2, GL_FLOAT, 0, 0l);\r\n glDrawArrays(GL_QUADS, 0, CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 24);\r\n glPopMatrix();\r\n }",
"@Override\n public void loadBuffer(final Tuple3d origin, final ByteBuffer buffer) {\n this.loadGpuBuffer(origin);\n buffer.put(this.gpuBuffer);\n this.gpuBuffer.rewind();\n }",
"@Override\n public void onSurfaceChanged(GL10 glUnused, int width, int height) {\n glViewport(0, 0, width, height);\n\n this.width = width;\n this.height = height;\n setPerspectiveView();\n \n }",
"@Override\n public BufferedImage createScreenCapture(Rectangle screenRect) {\n if (screenRect == null) {\n return null;\n }\n WinFileMappingBuffer fm = createScreenCaptureAsFileMapping(screenRect);\n //return null;\n if (fm == null) {\n return null;\n }\n BufferedImage image = CreateBuffedImage(fm, false);\n fm.close();\n return image;\n }",
"public FramebufferObject(GL2 gl, Texture2D.Format format, Texture2D.Datatype datatype, int width, int height, int colorTextureCount, boolean makeDepthTexture, boolean rectTextures) throws OpenGLException\n\t{\n\t\t/* Sanity check. */\n\t\tif (colorTextureCount == 0 && !makeDepthTexture)\n\t\t{\n\t\t\tthrow new OpenGLException(\"It is not valid to make an FBO with no color buffers and no depth buffer.\");\n\t\t}\n\t\t\n\t\tint maxColorTextures[] = new int[1];\n\t\tgl.glGetIntegerv(GL2.GL_MAX_COLOR_ATTACHMENTS, maxColorTextures, 0);\n\t\tif (colorTextureCount > maxColorTextures[0])\n\t\t{\n\t\t\tthrow new OpenGLException(\"Cannot create an FBO with \" + colorTextureCount + \" render targets. Your graphics card only supports \" + maxColorTextures[0] + \".\");\n\t\t}\n\t\t\n\t\tmWidth = width;\n\t\tmHeight = height;\n\t\t\n\t\t/* Create OpenGL FBO. */\n\t\tint names[] = new int[1];\n\t\tgl.glGenFramebuffers(1, names, 0);\n\t\tmHandle = names[0];\n\t\t\n\t\t/* Remember previous FBO binding, and then bind this one. */\n\t\tint previousBinding[] = new int[1];\n\t\tgl.glGetIntegerv(GL2.GL_FRAMEBUFFER_BINDING, previousBinding, 0);\n\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, mHandle);\n\t\t\n\t\t/* Create and attach color textures. */\n\t\tmColorTextures = new Texture2D[colorTextureCount];\n\t\t\n\t\tfor (int i = 0; i < colorTextureCount; ++i)\n\t\t{\n\t\t\tmColorTextures[i] = new Texture2D(gl, format, datatype, width, height, null, rectTextures);\n\t\t\tgl.glFramebufferTexture2D(GL2.GL_FRAMEBUFFER, GL2.GL_COLOR_ATTACHMENT0 + i, mColorTextures[i].getTextureTarget(), mColorTextures[i].getHandle(), 0);\n\t\t}\n\t\t\n\t\t/* Create and attach depth texture, if requested. */\n\t\tif (makeDepthTexture)\n\t\t{\n\t\t\tmDepthTexture = new Texture2D(gl, Format.DEPTH, Datatype.INT32, width, height, null, rectTextures);\n\t\t\tgl.glFramebufferTexture2D(GL2.GL_FRAMEBUFFER, GL2.GL_DEPTH_ATTACHMENT, mDepthTexture.getTextureTarget(), mDepthTexture.getHandle(), 0);\n\t\t}\n\n\t\t/* Make sure everything is set up properly. */\n\t\tint status = gl.glCheckFramebufferStatus(GL2.GL_FRAMEBUFFER);\n\t\tif (status != GL2.GL_FRAMEBUFFER_COMPLETE)\n\t\t{\n\t\t\tthrow new OpenGLException(\"Framebuffer incomplete: \" + status + \".\");\n\t\t}\n\t\t\n\t\t/* Restore whatever FBO was bound before this function was called. */\n\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, previousBinding[0]);\n\t}",
"protected void showBackBuffer(final FrameContainer frame, final String filename) {\n if (frame == null) {\n eventBus.publishAsync(new UserErrorEvent(ErrorLevel.LOW, null, \"Given a null frame\", \"\"));\n return;\n }\n \n final Path testFile = Paths.get(filename);\n if (Files.exists(testFile)) {\n try {\n final ReverseFileReader file = new ReverseFileReader(testFile);\n // Because the file includes a newline char at the end, an empty line\n // is returned by getLines. To counter this, we call getLines(1) and do\n // nothing with the output.\n file.getLines(1);\n final Stack<String> lines = file.getLines(backbufferLines);\n while (!lines.empty()) {\n frame.addLine(getColouredString(colour, lines.pop()), backbufferTimestamp);\n }\n file.close();\n frame.addLine(getColouredString(colour, \"--- End of backbuffer\\n\"),\n backbufferTimestamp);\n } catch (IOException | SecurityException e) {\n eventBus.publishAsync(new UserErrorEvent(ErrorLevel.LOW, e,\n \"Unable to show backbuffer (Filename: \" + filename + \"): \" + e.getMessage(),\n \"\"));\n }\n }\n }",
"public void drawImage() {\n mTextureRender.drawFrame(mSurfaceTexture);\n }",
"@Override\n public void postRender(GL2 gl)\n {\n gl.glDisable(GL.GL_TEXTURE_2D);\n }",
"public void setScreen(final Rect screen)\n {\n this.screen = screen;\n }",
"public void initBufferStrategy() {\n // Triple-buffering\n createBufferStrategy(3);\n bufferStrategy = getBufferStrategy();\n }"
] | [
"0.65322685",
"0.63225365",
"0.6277837",
"0.6178773",
"0.6124973",
"0.57971317",
"0.5754566",
"0.57525015",
"0.5751427",
"0.57467455",
"0.5658867",
"0.56455916",
"0.5625273",
"0.5600158",
"0.55987126",
"0.5593262",
"0.5546031",
"0.554224",
"0.55196124",
"0.55033785",
"0.5503271",
"0.5479602",
"0.5405542",
"0.5391158",
"0.537709",
"0.53698045",
"0.5305578",
"0.5301673",
"0.52888864",
"0.52840805",
"0.52508676",
"0.5249761",
"0.5243008",
"0.52364624",
"0.5235556",
"0.5234771",
"0.5218871",
"0.5209527",
"0.51953596",
"0.5165716",
"0.5165682",
"0.5160499",
"0.5089547",
"0.50849956",
"0.50849956",
"0.506985",
"0.5068605",
"0.50596523",
"0.5041756",
"0.5017571",
"0.5006568",
"0.49998465",
"0.49972427",
"0.49701205",
"0.49529886",
"0.49507967",
"0.49493",
"0.49158993",
"0.49087903",
"0.49076688",
"0.489814",
"0.48929507",
"0.48678684",
"0.483332",
"0.48111823",
"0.48029986",
"0.47999677",
"0.4779788",
"0.47757003",
"0.47729176",
"0.476833",
"0.47658482",
"0.47632906",
"0.4757308",
"0.47530162",
"0.47461432",
"0.47439897",
"0.47356486",
"0.47352114",
"0.47330204",
"0.47329324",
"0.47318795",
"0.47286838",
"0.47229785",
"0.47220966",
"0.47201496",
"0.47197387",
"0.4719581",
"0.47072083",
"0.4701115",
"0.46996835",
"0.4687826",
"0.46840876",
"0.4682608",
"0.46823233",
"0.46795368",
"0.46785018",
"0.46783283",
"0.46749187",
"0.46719328"
] | 0.7860769 | 0 |
Unbind screen buffer from offscreen frame buffer, to enable render to screen. | public void unbind() {GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, 0);} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GlBuffer unbind(){\n\t\t//Log.d(TAG,\"unbind()\");\n\t\tGLES20.glBindBuffer(this.target, this.UNBIND_HANDLE);\n\t\tif(mVaoHandle != UNBIND_HANDLE){\n GLES30.glBindVertexArray(UNBIND_HANDLE);\n }\n\t\treturn this;\n\t}",
"public void unbind()\n {\n glBindTexture(GL_TEXTURE_2D, 0);\n }",
"public void unbind()\n {\n glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, this.ID);\n }",
"public void unbind(GL2 gl) throws OpenGLException\n\t{\n\t\tif (mIsBound)\n\t\t{\n\t\t\tgl.glBindFramebuffer(GL2.GL_FRAMEBUFFER, mPreviousBinding[0]);\n\t\t\tgl.glPopAttrib();\n\t\t\tmIsBound = false;\n\n\t\t\tOpenGLException.checkOpenGLError(gl);\n\t\t}\n\t}",
"void unbind() { }",
"void unbind();",
"protected void unbindModel() {\n\n //Unbind the vao and vbo\n glDisableVertexAttribArray(0);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n }",
"private void screenOffBroadcast() {\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {\n mDoScreenOff = true;\n }\n // prize add v8.0 by zhaojian 20171102 end\n\n Intent intent = new Intent(\"prize.set.keyguard.state\");\n intent.putExtra(\"hide\",false);\n intent.putExtra(\"sleep\",true);\n getContext().sendBroadcast(intent);\n flags = false;\n // prize add v8.0 by zhaojian 20171102 start\n beforeIsLock = false;\n // prize add v8.0 by zhaojian 20171102 end\n\n handler.removeMessages(1);\n\n // prize add v8.0 by zhaojian 2017912 start\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N){\n mIsAutoEnterReceiveUi = false;\n }\n // prize add v8.0 by zhaojian 2017912 end\n Log.d(TAG,\"screen off\");\n }",
"protected abstract void unbind();",
"protected abstract void unbind();",
"public void free(){\n\t\t\t\tif(this.handle != GlBuffer.UNBIND_HANDLE){\n\t\t\t\t\tfinal int[] handles = new int[]{this.handle};\n\t\t\t\t\tthis.handle = GlBuffer.UNBIND_HANDLE;\n\t\t\t\t\tGLES20.glDeleteBuffers(1, handles, 0);\n\t\t\t\t}\n\t\t\t}",
"public void clearScreen();",
"public void setUseOffscreenBuffer( boolean useOffscreenBuffer ) {\n this.paintStrategy = useOffscreenBuffer ? new OffscreenBufferStrategy( this ) : (PaintStrategy) new DefaultPaintStrategy( this );\n // Todo: Determine if the following two lines help or not\n// setOpaque( useOffscreenBuffer );\n setDoubleBuffered( !useOffscreenBuffer );\n }",
"void unsetSurfaceRefs();",
"void unbind(boolean shouldPlaceSpacer, boolean switchingStream);",
"public void restoreScreen(){\n\n Window w = vc.getFullScreenWindow();\n if (w != null){\n w.dispose();\n }\n vc.setFullScreenWindow(null);\n }",
"public void hideScreen() {\n\t}",
"void vkDestroyFramebuffer(DeviceContext device, FrameBuffer framebuffer, Pointer pAllocator);",
"public void end() {\r\n GL11.glViewport(0, 0, GLContext.getCurrent().getWidth(), GLContext.getCurrent().getHeight());\r\n glBindFramebufferEXT(GL_FRAMEBUFFER_EXT, 0);\r\n }",
"private void unbindTexturedModel() {\n\t\tGL20.glDisableVertexAttribArray(0);\n\t\tGL20.glDisableVertexAttribArray(1);\n\t\tGL20.glDisableVertexAttribArray(2);\n\t\t\t\t\n\t\t// Then also have to unbind the VAO, instead of putting a ID in, we just put in 0\n\t\tGL30.glBindVertexArray(0);\n\t}",
"private void unbindGameTerrain(){\r\n\t\t//Disable the vertex position attribute from VAO\r\n\t\tGL20.glDisableVertexAttribArray(0);\r\n\t\t//Disable the texture coordinate attribute from VAO\r\n\t\tGL20.glDisableVertexAttribArray(1);\r\n\t\t//Disable the normal coordinate attribute from VAO\r\n\t\tGL20.glDisableVertexAttribArray(2);\r\n\t\t//Unbind\r\n\t\tGL30.glBindVertexArray(0);\r\n\t}",
"public Builder clearScreenMode() {\n \n screenMode_ = 0;\n onChanged();\n return this;\n }",
"public void clearScreen() \n\t{\n\t\tthis.myLineView.clearScreen();\n\t}",
"public void unbind() {\n\t\tview.setAdapter(null);\n\t}",
"public void setScreenForGame(){\r\n screen.removeAll();\r\n screen.repaint();\r\n }",
"public void doUnbind(){\n\t\tboolean isBound = settings.getBoolean(\"isBound\", false);\n\t\tif(isBound){\n\t\t\tcontext.unbindService(SpeedConnection);\n\t\t\tcontext.stopService(i);\n\t\t\teditor.putBoolean(\"isBound\", false);\n\t\t\teditor.apply();\n\t\t}\n\t}",
"void onUnbind();",
"@Override\n\tpublic void dispose() { if(screen != null) screen.hide(); }",
"private void endRender() {\n //Restore state by unbinding everything\n glDisableVertexAttribArray(0);\n glDisableVertexAttribArray(1);\n glDisableVertexAttribArray(2);\n glDisableVertexAttribArray(3);\n glDisableVertexAttribArray(4);\n glBindVertexArray(0);\n\n glBindTexture(GL_TEXTURE_2D, 0);\n }",
"private void handleScreenTurnedOff() {\n DejankUtils.startDetectingBlockingIpcs(\"KeyguardUpdateMonitor#handleScreenTurnedOff\");\n Assert.isMainThread();\n this.mHardwareFingerprintUnavailableRetryCount = 0;\n this.mHardwareFaceUnavailableRetryCount = 0;\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onScreenTurnedOff();\n }\n }\n DejankUtils.stopDetectingBlockingIpcs(\"KeyguardUpdateMonitor#handleScreenTurnedOff\");\n }",
"public void yUnbind(String bind_name);",
"@Override\n public void unbindRequested(ChannelHandlerContext ctx, ChannelStateEvent e) {\n \tSystem.out.println(\"unBind Requested\");\n \t/*\n \tPlayer player = (Player) ctx.getAttachment();\n if (player != null && !player.destroyed()) {\n \tplayer.destroy(false);\n }\n ctx.getChannel().disconnect(); */\n }",
"public static void bgfx_destroy_frame_buffer(@NativeType(\"bgfx_frame_buffer_handle_t\") short _handle) {\n long __functionAddress = Functions.destroy_frame_buffer;\n invokeCV(_handle, __functionAddress);\n }",
"private void clearLocalBuffer() {\r\n \t\tcurrentTarget = null;\r\n \t\tcurrentTargetId = -1;\r\n \t\topenGLModelConfiguration = null;\r\n \t\tif(indicators != null) {\r\n \t\t\tindicators.clear();\r\n \t\t}\r\n \t}",
"public void resetBuffer(){\n bufferSet = false;\n init();\n }",
"public static void switchScreenOff(Context ctx) {\n PowerManager pm = (PowerManager) ctx.getSystemService(Context.POWER_SERVICE);\n if (pm!= null && pm.isScreenOn()) {\n pm.goToSleep(SystemClock.uptimeMillis());\n }\n }",
"public abstract void unbindComponents();",
"private void clearSurface(SurfaceHolder holder) {\n\t\tSurface surface = holder.getSurface();\n\t\tEglCore eglCore = new EglCore();\n\t\tWindowSurface win = new WindowSurface(eglCore, surface, false);\n\t\twin.makeCurrent();\n\t\tGLES20.glClearColor(0, 0, 0, 0);\n\t\tGLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT);\n\t\twin.swapBuffers();\n\t\twin.release();\n\t\teglCore.release();\n\t}",
"public void removeAllScreens() {\n Gdx.app.log(\"TowerDefence::removeAllScreens()\", \"--\");\n if (screensArray != null) {\n// for(Screen screen : screensArray) {\n// screen.dispose(); // Дич ебаная. с этими скринами у нас точно какие то проблемы...\n// }\n screensArray.clear();\n// int size = screensArray.size;\n// if (size > 0) {\n// for (int i = size - 1; i >= 0; i--) {\n// Screen screen = screensArray.get(i);\n// if (screen != null) {\n//// screen.hide();\n// screensArray.removeIndex(size - 1);\n// }\n// }\n// }\n }\n }",
"public void setScreenUnlockSecurityNone() {\n // try {\n // new LockPatternUtils(mContext).clearLock();\n // } catch (Exception e) {\n // // e.printStackTrace();\n // }\n }",
"public native void exitScreenShotModeNative();",
"public void bind() {GLES20.glBindFramebuffer(GLES20.GL_FRAMEBUFFER, mFrameBufferHandle[0]);}",
"void unbindAll();",
"@Override\n public void stop() {\n animatorThread = null;\n\n //Get rid of the objects necessary for double buffering.\n offGraphics = null;\n offImage = null;\n }",
"@Override\n public void clearStencilBuffer() {\n GL11.glClearStencil(0);\n GL11.glStencilMask(~0);\n GL11.glDisable(GL11.GL_DITHER);\n GL11.glEnable(GL11.GL_SCISSOR_TEST);\n GL11.glScissor(0, 0, getWidth(), getHeight());\n GL11.glClear(GL11.GL_STENCIL_BUFFER_BIT);\n GL11.glDisable(GL11.GL_SCISSOR_TEST);\n }",
"public static void destroyFullScreenWindow() {\n GraphicsEnvironment env = GraphicsEnvironment\n .getLocalGraphicsEnvironment();\n GraphicsDevice device = env.getDefaultScreenDevice();\n device.setFullScreenWindow(null);\n }",
"void hideSoftKeyBoard();",
"private void unbind() {\n ThreadUtil.checkOnMainThread();\n Iterator<Map.Entry<ComponentName, InCallServiceConnection>> iterator =\n mServiceConnections.entrySet().iterator();\n while (iterator.hasNext()) {\n Log.i(this, \"Unbinding from InCallService %s\");\n mContext.unbindService(iterator.next().getValue());\n iterator.remove();\n }\n mInCallServices.clear();\n }",
"public void onUnblock();",
"public static void bgfx_destroy_indirect_buffer(@NativeType(\"bgfx_indirect_buffer_handle_t\") short _handle) {\n long __functionAddress = Functions.destroy_indirect_buffer;\n invokeCV(_handle, __functionAddress);\n }",
"public void deactivate() {\n\t\tcameraNXT.enableTracking(false);\n\t}",
"@Override\r\npublic boolean isOnScreen() {\nreturn false;\r\n}",
"public void clearFocusWithoutChangingState() {\n this.mFocusManager.removeMessages();\n this.mUI.clearFocus();\n this.mCameraDevice.cancelAutoFocus();\n this.mUI.clearEvoPendingUI();\n if (this.mEvoFlashLock != null) {\n this.mAppController.getButtonManager().enableButtonWithToken(0, this.mEvoFlashLock.intValue());\n this.mEvoFlashLock = null;\n }\n this.mFocusManager.setAeAwbLock(false);\n setCameraParameters(4);\n }",
"void unbind(EventService service);",
"public void freeBuffer() {\n if(allocatedBufferSource.get() != null) {\n allocatedBufferSource.getAndSet(null).freeVideo(this);\n }\n }",
"public boolean isUseOffscreenBuffer() {\n return paintStrategy instanceof OffscreenBufferStrategy;\n }",
"void unbind(Object element);",
"private static void clearScreen() \n {\n Console c = System.console();\n if (c != null) \n {\n // Clear screen for the first time\n System.out.print(\"\\033[H\\033[2J\");\n System.out.flush();\n //c.writer().print(ESC + \"[2J\");\n //c.flush();\n\n // Clear the screen again and place the cursor in the top left\n System.out.print(\"\\033[H\\033[1;1H\");\n System.out.flush();\n //c.writer().print(ESC + \"[1;1H\");\n //c.flush();\n }\n }",
"public IBinder onUnBind(Intent arg0) {\n return null;\n }",
"public void unRender() {\n\t\tif (this.isPlaying) {\n\t\t\ttry {\n\t\t\t\tthis.mMediaPlayer.stop();\n\t\t\t\tLog.w(\"AUDIO PLAYER\", \"should have just stopped\");\n\t\t\t} catch (IllegalStateException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void unsetFrame()\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_attribute(FRAME$24);\n }\n }",
"@Override // com.android.server.wm.WindowContainer\n public void removeImmediately() {\n this.mRemovingDisplay = true;\n try {\n this.mOpeningApps.clear();\n this.mClosingApps.clear();\n this.mChangingApps.clear();\n this.mUnknownAppVisibilityController.clear();\n this.mAppTransition.removeAppTransitionTimeoutCallbacks();\n handleAnimatingStoppedAndTransition();\n this.mWmService.stopFreezingDisplayLocked();\n super.removeImmediately();\n if (WindowManagerDebugConfig.DEBUG_DISPLAY) {\n Slog.v(TAG, \"Removing display=\" + this);\n }\n this.mPointerEventDispatcher.dispose();\n this.mWmService.mAnimator.removeDisplayLocked(this.mDisplayId);\n this.mWindowingLayer.release();\n this.mOverlayLayer.release();\n this.mHwSingleHandOverlayLayer.release();\n this.mInputMonitor.onDisplayRemoved();\n this.mDisplayReady = false;\n this.mRemovingDisplay = false;\n getPendingTransaction().apply();\n this.mWmService.mWindowPlacerLocked.requestTraversal();\n } catch (Throwable th) {\n this.mDisplayReady = false;\n this.mRemovingDisplay = false;\n getPendingTransaction().apply();\n throw th;\n }\n }",
"public void release() {\n if (argonGLDisplay != EGL10.EGL_NO_DISPLAY) {\n // Android is unusual in that it uses a reference-counted EGLDisplay. So for\n // every eglInitialize() we need an eglTerminate().\n argonEGL.eglMakeCurrent(argonGLDisplay, EGL10.EGL_NO_SURFACE, EGL10.EGL_NO_SURFACE,\n \t\tEGL10.EGL_NO_CONTEXT);\n argonEGL.eglDestroyContext(argonGLDisplay, argonGLContext);\n //EGL10.eglReleaseThread();\n argonEGL.eglTerminate(argonGLDisplay);\n }\n\n argonGLDisplay = EGL10.EGL_NO_DISPLAY;\n argonGLContext = EGL10.EGL_NO_CONTEXT;\n mEGLConfig = null;\n }",
"public void disableCtxRecording();",
"public synchronized void unpin(Buffer buff) {\n //=====================================CS4432-Project1=====================\n buff.unpin();\n if (!buff.isPinned()) {\n //if the buffer is now unpinned, we should re-add the buffer to the least recently\n //used linked list so that we can use it if need be\n if (replacementPolicy.equalsIgnoreCase(\"LRU\")){\n leastRecentlyUsedArray.add(buff.getFrameNumber());\n }\n //increment the number of available\n numAvailable++;\n }\n }",
"public void setClearScreen(boolean state) {\r\n\t\tthis.clearScreen=state;\r\n\t}",
"@Override\n public boolean onUnbind(Intent intent){\n return false;\n }",
"void detachCurrent();",
"public void unbindService() {\n synchronized (this.mLock) {\n if (!this.mBound) {\n Log.e(\"TileServiceManager\", \"Service not bound\");\n return;\n }\n this.mBound = false;\n this.mJustBound = false;\n this.mStateManager.setBindService(false);\n }\n }",
"private void disableFullscreen() {\n mainContentView.setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION);\r\n isFullscreen = false;\r\n\r\n // Schedule a runnable to display UI elements after a delay\r\n fullscreenHandler.removeCallbacks(enableFullscreenRunnable);\r\n fullscreenHandler.postDelayed(disableFullscreenRunnable, UI_ANIMATION_DELAY);\r\n }",
"public void stopHostingGame() {\n \t\tgameSetup.reset();\n \t\tlobbyManager.stopHostingGame();\n \t\tlobby.updateGameListPane();\n \t\tgameMain.showScreen(lobby);\n \t}",
"public synchronized void unbind()\n\t\t{\n\t\t\tpageStore.folders.remove(sessionIdentifier);\n\n\t\t\tsessionIdentifier = null;\n\t\t}",
"public native final void stopPreview();",
"public void resetScreen(){\n\t\tGame_Map_Manager.infoVisible= false;\n\t\tGame_PauseMenu.actorManager.open = false;\n\t\tPlayerGoals.open = false;\n\t\tGame_Shop.actorManager.open = false;\n\t\tTrainDepotUI.actorManager.open = false;\n\t\tGameScreenUI.resourcebarexpanded =false;\n\t\tGoalMenu.open= false;\n\t\t\n\t\t//CARDS\n\t\tGame_CardHand.actorManager.open=false;\n\t\tGame_CardHand.actorManager.cardactors.clear();;\n\t\t\n\t\t//Map\n\t\tGame_StartingSequence.reset();\n\t\tGame_Map_Manager.resetMap();\n\t}",
"public void clearFirePort();",
"public void ClearBuffer() {\n\t\tfor (int y = 0; y < height; y++) {\n\t\t\tfor (int x = 0; x < width; x++) {\n\t\t\t\tpixel_data[x + y * width] = 0x00000000;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic String unbind(String arg0) {\n\t\treturn null;\n\t}",
"public void unbindAll() {\n\t\tmGlobalCallbacks.clear();\n\t\t/* remove all local callback lists, that is removes all local callbacks */\n\t\tmLocalCallbacks.clear();\n\t}",
"private void unbindMediaPlayerService() {\n mediaPlayerService.setCoverArt(coverArt);\n mediaPlayerService.setSelectedMed(selectedMed);\n mediaPlayerService.setBindIsOngoing(true);\n\n unbindService(mediaPlayerConnection);\n serviceIsBound = false;\n setControlsVisible(false);\n\n Log.v(TAG, \"Service unbound\");\n }",
"public void turnStrobeOff(){\n Intent stop_strobe_intent = new Intent(FlareConstants.STOP_STROBE);\n stop_strobe_intent.putExtra(FlareConstants.STOP_STROBE, FlareConstants.STOP_STROBE);\n LocalBroadcastManager.getInstance(this).sendBroadcast(stop_strobe_intent);\n Log.d(TAG, \"Sent stop strobe intent broadcast\");\n }",
"public void release() {\n if (mEglDisplay != null && mEglSurface != null && mEglContext != null) {\n EGL14.eglMakeCurrent(this.mEglDisplay, this.mEglSurface, this.mEglSurface, this.mEglContext);\n EGL14.eglDestroySurface(mEglDisplay, mEglSurface);\n EGL14.eglDestroyContext(mEglDisplay, mEglContext);\n EGL14.eglTerminate(mEglDisplay);\n }\n EGL14.eglMakeCurrent(mEglDisplay, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_SURFACE, EGL14.EGL_NO_CONTEXT);\n }",
"public void reset(){\n this.context.msr.setReadyForInput(false);\n emptyAllInputBuffers();\n emptyAllOutputBuffers();\n emptyEngineersConsoleBuffer();\n }",
"@Override\n public void clearBuffers() {\n if (defaultStateList.containsKey(RenderState.StateType.ZBuffer)) {\n defaultStateList.get(RenderState.StateType.ZBuffer).setNeedsRefresh(true);\n applyState(defaultStateList.get(RenderState.StateType.ZBuffer));\n }\n GL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n }",
"@Override\n public boolean onUnbind(Intent intent) {\n stopPlayer();\n return false;\n }",
"public void dispose() {\r\n\r\n// ByteBuffer tmp = ByteBuffer.allocateDirect(4);\r\n// tmp.order(ByteOrder.nativeOrder());\r\n// IntBuffer handle = tmp.asIntBuffer();\r\n IntBuffer handle = BufferUtils.createIntBuffer(1);\r\n\r\n// colorTexture.dispose();\r\n if (hasDepth) {\r\n handle.put(depthbufferHandle);\r\n handle.flip();\r\n glDeleteRenderbuffersEXT(handle);\r\n }\r\n\r\n handle.put(framebufferHandle);\r\n handle.flip();\r\n glDeleteFramebuffersEXT(handle);\r\n\r\n }",
"private static void turnFlashlightOff() {\n Parameters p = cam.getParameters();\n p.setFlashMode(Parameters.FLASH_MODE_OFF);\n cam.setParameters(p);\n }",
"@Override\r\n public boolean onUnbind(Intent intent) {\r\n return mAllowRebind;\r\n }",
"public void resetBuffer() {\n\n\t}",
"void doAccelUnbindService() {\n\t\tif (accelIsBound) {\n\t\t\tunbindService(accelConnection);\n\t\t\taccelIsBound = false;\n\t\t}\n\t}",
"public void deactivateBreakpointView() {\n \t\tif (this.breakpointView.getActive()) {\n \t\t\tthis.breakpointView.getAddButton().removeSelectionListener(this);\n \t\t\tthis.breakpointView.setActive(false);\n \t\t}\n \t}",
"private void m22003b() {\n if (this.f23836h) {\n this.f23833e.unregisterReceiver(this.f23837i);\n this.f23836h = false;\n }\n }",
"public void unlock() {\n islandLocked = false;\n }",
"private void unlockFocus() {\n try {\n // Reset the auto-focus trigger\n mPreviewRequestBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER,\n CameraMetadata.CONTROL_AF_TRIGGER_CANCEL);\n setAutoFlash(mPreviewRequestBuilder);\n mCaptureSession.capture(mPreviewRequestBuilder.build(), mCaptureCallback,\n mBackgroundHandler);\n // After this, the camera will go back to the normal state of preview.\n mState = STATE_PREVIEW;\n mCaptureSession.setRepeatingRequest(mPreviewRequest, mCaptureCallback,\n mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }",
"private void disableForegroundDispatchSystem() {\n nfcAdapter_act.disableForegroundDispatch(this);\n }",
"@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}",
"@Override\n\tprotected void deActivateBoard() {\n\t\tsuper.deActivateBoard();\n\t}",
"private static void clearScreen() {\n\t\tSystem.out.println(\"\\033[H\\033[2J\"); \n\t\tSystem.out.flush();\n\t}",
"@SuppressWarnings( \"unused\" )\n private void clear() {\n frameOpenDetected = false;\n frameLength = 0;\n buffer.limit( 0 ); // this marks our buffer as empty...\n }",
"private void unlockFocus() {\n try {\n // Reset the auto-focus trigger\n mCaptureRequestBuilder.set(CaptureRequest.CONTROL_AF_TRIGGER,\n CameraMetadata.CONTROL_AF_TRIGGER_CANCEL);\n mPreviewCaptureSession.capture(mCaptureRequestBuilder.build(), mPreviewCaptureCallback,\n mBackgroundHandler);\n // After this, the camera will go back to the normal state of preview.\n mCaptureState = STATE_PREVIEW;\n mPreviewCaptureSession.setRepeatingRequest(mPreviewRequest, mPreviewCaptureCallback,\n mBackgroundHandler);\n } catch (CameraAccessException e) {\n e.printStackTrace();\n }\n }",
"public void dispose() {\n\t\tif (screen != null)\n\t\t\tscreen.dispose();\n\t}"
] | [
"0.70697606",
"0.6747742",
"0.6735298",
"0.6718293",
"0.64997923",
"0.6432385",
"0.6367658",
"0.62524426",
"0.6227672",
"0.6227672",
"0.62226176",
"0.621585",
"0.6162159",
"0.61184776",
"0.6098199",
"0.6094565",
"0.6080173",
"0.60358006",
"0.60259867",
"0.6012652",
"0.5954357",
"0.594282",
"0.5927595",
"0.5844358",
"0.58123547",
"0.57593286",
"0.5740156",
"0.57317865",
"0.5720811",
"0.57066125",
"0.5703794",
"0.56958866",
"0.56867874",
"0.56742185",
"0.56697387",
"0.56623685",
"0.565623",
"0.5645947",
"0.5641305",
"0.56385434",
"0.56217265",
"0.56152135",
"0.5605944",
"0.55496854",
"0.55492324",
"0.5512228",
"0.54918605",
"0.5461692",
"0.54596853",
"0.54541624",
"0.5437054",
"0.5433559",
"0.54294634",
"0.5426586",
"0.5421202",
"0.5406242",
"0.53937227",
"0.53919065",
"0.53729635",
"0.5358301",
"0.534606",
"0.5341558",
"0.53316736",
"0.53029156",
"0.53017503",
"0.530078",
"0.53001636",
"0.52971196",
"0.52964395",
"0.5288271",
"0.5285148",
"0.52776486",
"0.5272532",
"0.52680975",
"0.5266731",
"0.5265036",
"0.5251655",
"0.5236536",
"0.5229021",
"0.5228186",
"0.52233297",
"0.5219286",
"0.52026844",
"0.5196363",
"0.5193437",
"0.51861876",
"0.51631355",
"0.51565975",
"0.5141881",
"0.5141849",
"0.51406556",
"0.5135881",
"0.51324785",
"0.5106527",
"0.51053786",
"0.51053786",
"0.51040065",
"0.5102031",
"0.5100934",
"0.5099723"
] | 0.79553664 | 0 |
Created by ujjwal on 9/9/17. | public interface ShopChangeLocationCallback {
void onSuccess(ShopChangeLocationData shopChangeLocationData);
void onFailure(String error);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"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}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void anular() {\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}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void gravarBd() {\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}",
"@Override\n public void init() {\n\n }",
"private void poetries() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void jugar() {\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\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"private void init() {\n\n\t}",
"private void m50366E() {\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}",
"protected boolean func_70814_o() { return true; }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n void init() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public void mo4359a() {\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 protected void init() {\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public void init() {}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\r\n\tpublic void init() {}",
"@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 protected void initialize() \n {\n \n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private void strin() {\n\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n public int describeContents() { return 0; }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n\tpublic void afterInit() {\n\t\t\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"private void init() {\n\n\n\n }",
"@Override\n public int retroceder() {\n return 0;\n }"
] | [
"0.6148607",
"0.60353714",
"0.6009001",
"0.59182024",
"0.5890469",
"0.5890469",
"0.5860216",
"0.5842361",
"0.58336604",
"0.58303225",
"0.58233297",
"0.5813042",
"0.5803818",
"0.5789241",
"0.5772886",
"0.57660913",
"0.57569134",
"0.57527685",
"0.5751767",
"0.574917",
"0.574917",
"0.574917",
"0.574917",
"0.574917",
"0.57491463",
"0.57467574",
"0.57372135",
"0.57226014",
"0.56913364",
"0.56557405",
"0.56532884",
"0.5649069",
"0.56463426",
"0.5631794",
"0.56248057",
"0.56224996",
"0.561775",
"0.561741",
"0.561741",
"0.56130844",
"0.56130844",
"0.56130844",
"0.5610853",
"0.5608016",
"0.5608016",
"0.56052846",
"0.56037223",
"0.5587028",
"0.5587028",
"0.5587028",
"0.5583594",
"0.5582044",
"0.5582044",
"0.55791783",
"0.5571612",
"0.5562994",
"0.55627614",
"0.5561631",
"0.5561631",
"0.5561631",
"0.55528384",
"0.5542506",
"0.55367416",
"0.55332613",
"0.55277133",
"0.55208373",
"0.5518234",
"0.5512097",
"0.5512097",
"0.5512097",
"0.5512097",
"0.5512097",
"0.5512097",
"0.5511797",
"0.5510623",
"0.5510362",
"0.5504311",
"0.5502368",
"0.5472305",
"0.5459993",
"0.54379046",
"0.5428369",
"0.54241556",
"0.54241556",
"0.54241556",
"0.54241556",
"0.54241556",
"0.54241556",
"0.54241556",
"0.5423571",
"0.5421724",
"0.5419019",
"0.54135084",
"0.5412205",
"0.5412205",
"0.5411433",
"0.5408051",
"0.54065835",
"0.53996795",
"0.5398882",
"0.5397608"
] | 0.0 | -1 |
/ 16: / 17: | public Date getFromDate()
/* 18: */ {
/* 19:27 */ return this.fromDate;
/* 20: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int method_2436() {\r\n return 16;\r\n }",
"@Override\n\tpublic void challenge16() {\n\n\t}",
"@Override\n\tpublic void challenge17() {\n\n\t}",
"public void mo21783H() {\n }",
"void mo1506m();",
"void mo1507n();",
"abstract String mo1748c();",
"public int mo36g() {\n return 4;\n }",
"protected String mo1606d() {\n return null;\n }",
"String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }",
"public int mo36g() {\n return 8;\n }",
"public void mo21877s() {\n }",
"public void mo21879u() {\n }",
"protected String[] mo1613b() {\r\n return f4638d;\r\n }",
"public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }",
"C1458cs mo7613iS();",
"public void mo21794S() {\n }",
"String describe() {\n switch (this) {\n case NORTH_4M:\n return \"north\";\n case NORTH_16M:\n return \"north_16m\";\n case SOUTH_4M:\n return \"south\";\n case SOUTH_16M:\n return \"south_16m\";\n case WILTSHIRE_4M:\n return \"wiltshire\";\n case WILTSHIRE_16M:\n return \"wiltshire_16m\";\n }\n return \"?\";\n }",
"public String m3147h() {\n return this.f2416j;\n }",
"public void mo2470d() {\n }",
"private void m17129H() {\n int i;\n boolean z = this.f15653i0 > 0;\n int i2 = 2131231283;\n if (z && this.f15655k0 == C2470a.MAP) {\n i = 2131231288;\n if (!this.f15652h0) {\n i2 = 2131231285;\n }\n } else if (this.f15655k0 == C2470a.MAP) {\n i = 2131231291;\n i2 = this.f15652h0 ? 2131231284 : 2131231286;\n } else if (z) {\n i = 2131231295;\n } else {\n i = 2131231294;\n i2 = 2131231282;\n }\n this.f15639U.setBackgroundResource(i);\n this.f15640V.setImageResource(i2);\n if (this.f15655k0 != C2470a.MAP || !z || !this.f15652h0) {\n this.f15650f0.setVisibility(8);\n this.f15640V.setVisibility(0);\n return;\n }\n this.f15650f0.setVisibility(0);\n TextView textView = this.f15650f0;\n textView.setText(m17135b(textView.getContext()));\n this.f15640V.setVisibility(8);\n }",
"void mo1501h();",
"static void viteza(int d, int h, int m, int s) {\n double secunde = s+60*m+3600*h;\n double minute = secunde/60;\n double ore = minute/60;\n\n double vitezaMPS = d/secunde;\n double vitezaKPH = d/1000.0/ore;\n double vitezaMPH = d/1609.0/ore;\n\n System.out.println(\"metri/secunda: \" + vitezaMPS);\n System.out.println(\"kilometri/ora: \" + vitezaKPH);\n System.out.println(\"mile/ora: \" + vitezaMPH);\n }",
"public void mo12628c() {\n }",
"private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }",
"static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"private static String m128157b(int i) {\n StringBuilder sb = new StringBuilder(\"android:switcher:\");\n sb.append(R.id.edp);\n sb.append(\":\");\n sb.append(i);\n return sb.toString();\n }",
"public void mo21867i() {\n mo21877s();\n }",
"public void mo21880v() {\n }",
"public void mo21782G() {\n }",
"private static BidiFormatter m1650a(boolean z) {\n return z ? BidiFormatter.f2508h : BidiFormatter.f2507g;\n }",
"void mo17013d();",
"@Override\n public String toString() {\n return \"H\";\n }",
"public void mo21878t() {\n }",
"public void mo3749d() {\n }",
"public void mo6081a() {\n }",
"private void kk12() {\n\n\t}",
"public int mo36g() {\n return 2;\n }",
"public static void listing5_16() {\n }",
"public void mo21786K() {\n }",
"public void mo21779D() {\n }",
"public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }",
"String mo20732d();",
"void mo1637a();",
"public String mo7638a() {\n int i = this.f4379a;\n if (i == 1) {\n return \"add\";\n }\n if (i == 2) {\n return \"rm\";\n }\n if (i != 4) {\n return i != 8 ? \"??\" : \"mv\";\n }\n return \"up\";\n }",
"protected String mo3406c() {\n return \"Minute\";\n }",
"public static int offset_infos_log_src() {\n return (16 / 8);\n }",
"void mo17023d();",
"public void mo9233aH() {\n }",
"public void mo4359a() {\n }",
"String getQudrant(String v, String h) {\n\r\n\t\tif (v == null || h == null) {\r\n\t\t\treturn \"0_0\";\r\n\t\t} else if ((Vertikal.indexOf(v) == -1) || (Horizontal.indexOf(h) == -1)) {\r\n\t\t\treturn \"0_0\";\r\n\t\t}\r\n\r\n\t\tint dlinaStoronaQuadrant = 64;\r\n\r\n\t\tint numQuadrantV = Vertikal.indexOf(v) * dlinaStoronaQuadrant;\r\n\t\tint numQuadrantH = Horizontal.indexOf(h) * dlinaStoronaQuadrant;\r\n\r\n\t\treturn Integer.toString(numQuadrantV) + \"_\"\r\n\t\t\t\t+ Integer.toString(numQuadrantH);\r\n\r\n\t}",
"@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}",
"public void mo21788M() {\n }",
"public void method_4270() {}",
"private static String m11g() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n stringBuilder.append(\"_ve\");\n stringBuilder.append(\"rs\");\n stringBuilder.append(\"i\");\n stringBuilder.append(\"on\");\n return stringBuilder.toString();\n }",
"private static double fds_h(Vec v) { return 2*ASTMad.mad(new Frame(v), null, 1.4826)*Math.pow(v.length(),-1./3.); }",
"public final String mo1686e() {\n return this.f1356h;\n }",
"private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }",
"public void mo21800a() {\n }",
"private void m4822r() {\n m4813i();\n this.f6612t = m4815k();\n this.f6595c.setImageDrawable(this.f6611s);\n if (m4816l()) {\n this.f6595c.setX((float) ((int) m4812h(this.f6609q, this.f6596d)));\n m4820p(1.0f);\n }\n }",
"private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }",
"@Override\n\tpublic void challenge14() {\n\n\t}",
"public String mo8484a() {\n int i = this.f3539a;\n if (i == 1) {\n return \"add\";\n }\n if (i == 2) {\n return \"rm\";\n }\n if (i == 4) {\n return \"up\";\n }\n if (i != 8) {\n return \"??\";\n }\n return \"mv\";\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 abstract String mo9238av();",
"private static String m21386a(int i) {\n StringBuilder sb = new StringBuilder();\n sb.append(i & 255);\n String str = \".\";\n sb.append(str);\n sb.append((i >> 8) & 255);\n sb.append(str);\n sb.append((i >> 16) & 255);\n sb.append(str);\n sb.append((i >> 24) & 255);\n return sb.toString();\n }",
"public void mo55254a() {\n }",
"private static void ICCChamp2017() {\n\t\tSystem.out.println(\"Final Match In England\");\n\t\t\n\t}",
"public abstract String mo9239aw();",
"public void mo12930a() {\n }",
"public View mo15792hr() {\n return this.f3879JJ;\n }",
"public void mo56167c() {\n }",
"public void mo38117a() {\n }",
"public void mo1606a(Format format) {\n }",
"public static asw m47155c() {\n return zzfkz;\n }",
"public void skystonePos6() {\n }",
"private String generateWindowsFriendlyDate(String date) {\n\t\t\n\t\treturn date.replaceAll(\"(\\\\:)+\", \"-\");\n\t\t\n\t}",
"public void mo97908d() {\n }",
"private void m14898e() {\n int i;\n if (this.f8719h != 0) {\n i = this.f8719h;\n } else {\n i = this.f8713b.getResources().getColor(C3260b.fancy_showcase_view_default_background_color);\n }\n this.f8719h = i;\n this.f8721j = this.f8721j >= 0 ? this.f8721j : 17;\n this.f8722k = this.f8722k != 0 ? this.f8722k : C3263e.FancyShowCaseDefaultTitleStyle;\n DisplayMetrics displayMetrics = new DisplayMetrics();\n this.f8713b.getWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n int i2 = displayMetrics.widthPixels;\n int i3 = displayMetrics.heightPixels;\n this.f8700D = i2 / 2;\n this.f8701E = i3 / 2;\n this.f8703G = this.f8713b.getSharedPreferences(\"PrefShowCaseView\", 0);\n }",
"public void mo5248a() {\n }",
"public void mo2471e() {\n }",
"public void mo21795T() {\n }",
"private static String m61436a(C18846s sVar, StringBuilder sb) {\n if (sVar.f50796f != null) {\n sb.ensureCapacity(sVar.f50796f.length() + 50);\n sb.append(sVar.f50796f);\n } else if (sVar.f50794d != null) {\n String uri = sVar.f50794d.toString();\n sb.ensureCapacity(uri.length() + 50);\n sb.append(uri);\n } else {\n sb.ensureCapacity(50);\n sb.append(sVar.f50795e);\n }\n sb.append(10);\n if (sVar.f50803m != 0.0f) {\n sb.append(\"rotation:\");\n sb.append(sVar.f50803m);\n if (sVar.f50806p) {\n sb.append('@');\n sb.append(sVar.f50804n);\n sb.append('x');\n sb.append(sVar.f50805o);\n }\n sb.append(10);\n }\n if (sVar.mo50072d()) {\n sb.append(\"resize:\");\n sb.append(sVar.f50798h);\n sb.append('x');\n sb.append(sVar.f50799i);\n sb.append(10);\n }\n if (sVar.f50800j) {\n sb.append(\"centerCrop\\n\");\n } else if (sVar.f50801k) {\n sb.append(\"centerInside\\n\");\n }\n if (sVar.f50797g != null) {\n int size = sVar.f50797g.size();\n for (int i = 0; i < size; i++) {\n sb.append(((C18802aa) sVar.f50797g.get(i)).mo50000a());\n sb.append(10);\n }\n }\n return sb.toString();\n }",
"public final void mo1308a() {\n int i = this.f2309d;\n int i2 = i != Integer.MIN_VALUE ? i + this.f2308c : this.f2307b;\n this.f2309d = i2;\n String str = this.f2306a;\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 11);\n sb.append(str);\n sb.append(i2);\n this.f2310e = sb.toString();\n }",
"private final String m27086d(int i) {\n int i2 = this.f20516c;\n StringBuilder stringBuilder = new StringBuilder(35);\n stringBuilder.append(\"Index:\");\n stringBuilder.append(i);\n stringBuilder.append(\", Size:\");\n stringBuilder.append(i2);\n return stringBuilder.toString();\n }",
"static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }",
"@Test\n public void testShorten247() { // FlairImage: 247\n assertEquals(\"From: FlairImage line: 248\", \"\", shorten(\"asd.asd\",7)); \n assertEquals(\"From: FlairImage line: 249\", \"C:/Users/\", shorten(\"C:/Users/asd.asd\",7)); \n }",
"public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }",
"String m6857a() {\n return this.f5237h;\n }",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public void skystonePos4() {\n }",
"public String mo9504h() {\n return this.f1518g;\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println( getDurationString(61, 61));\r\n\t\t System.out.println(getDurationString(60, 59));\r\n\t\t System.out.println(getDurationString(-610, 9));\r\n\t\t System.out.println( getDurationString(1, 6));\r\n\t\t System.out.println( getDurationString(3722));\r\n\t\t\r\n\t\t\r\n\t}",
"public void mo21780E() {\n }",
"public void mo44053a() {\n }"
] | [
"0.6010123",
"0.54958713",
"0.54333407",
"0.5318605",
"0.52705675",
"0.52618265",
"0.5255383",
"0.52539575",
"0.5238814",
"0.51768786",
"0.5176542",
"0.5168479",
"0.51142555",
"0.5100694",
"0.5091688",
"0.5089837",
"0.50867546",
"0.5079878",
"0.50720996",
"0.5071261",
"0.5069627",
"0.5065387",
"0.5042229",
"0.50385165",
"0.50288653",
"0.50287473",
"0.50258005",
"0.5024282",
"0.50213355",
"0.5020314",
"0.5015644",
"0.5011941",
"0.50069124",
"0.50035626",
"0.49880877",
"0.49864134",
"0.4981419",
"0.4980265",
"0.49799225",
"0.49705207",
"0.49688148",
"0.49531007",
"0.49341553",
"0.49317417",
"0.4930337",
"0.49292216",
"0.49273297",
"0.49259138",
"0.4925515",
"0.49242368",
"0.49224484",
"0.4922074",
"0.4918927",
"0.49064666",
"0.48865536",
"0.48822492",
"0.48736402",
"0.4868978",
"0.48674983",
"0.48613068",
"0.48563752",
"0.48536828",
"0.48524344",
"0.4845178",
"0.4845178",
"0.4845178",
"0.4845178",
"0.4845178",
"0.4845178",
"0.4845178",
"0.48431727",
"0.48417637",
"0.48359197",
"0.48327932",
"0.4832501",
"0.48324648",
"0.4832157",
"0.48302248",
"0.48280022",
"0.4826467",
"0.48251832",
"0.4824358",
"0.48198816",
"0.48158997",
"0.48139063",
"0.48113486",
"0.48109812",
"0.48091665",
"0.4806594",
"0.4805753",
"0.48027247",
"0.4798387",
"0.47973242",
"0.47964093",
"0.4795041",
"0.47947067",
"0.47940317",
"0.47928706",
"0.47905755",
"0.47897863",
"0.47822148"
] | 0.0 | -1 |
/ 21: / 22: | public void setFromDate(Date fromDate)
/* 23: */ {
/* 24:31 */ this.fromDate = fromDate;
/* 25: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String[] args) {\n\n String time =\"16:49:40\".substring(0,2);\n System.out.println(time);\n\n }",
"@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}",
"public int method_2436() {\r\n return 16;\r\n }",
"String canonHr(String s) {\n List<String> l = StringUtil.breakAt(s, \":\");\n if (l.size() == 2) {\n return l.get(0) + \":\" + l.get(1).toUpperCase();\n }\n return s.toUpperCase();\n }",
"private static String dickAndJane(int s, int p, int y, int j) {\n\t\tint Y = (12 + j - y - p) / 3;\n\t\tint S = Y + y;\n\t\tint P = Y + p;\n\n\t\tif (S + P + Y - 12 - j == 0)\n\t\t\treturn S + \" \" + P + \" \" + Y;\n\n\t\tif (S + P + Y - 12 - j == -2)\n\t\t\treturn (S + 1) + \" \" + (P + 1) + \" \" + Y;\n\n\t\tif (y > s + p)\n\t\t\tP++;\n\t\telse\n\t\t\tS++;\n\n\t\treturn S + \" \" + P + \" \" + Y;\n\n\t}",
"private static int getNodeTime(String node) {\n int offSet = 4;\n return (int) node.toCharArray()[0] - offSet;\n }",
"void mo1506m();",
"public void mo21877s() {\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println( getDurationString(61, 61));\r\n\t\t System.out.println(getDurationString(60, 59));\r\n\t\t System.out.println(getDurationString(-610, 9));\r\n\t\t System.out.println( getDurationString(1, 6));\r\n\t\t System.out.println( getDurationString(3722));\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tString s = \"12:45:54PM\";\r\n\t\tString temp=\":\";\r\n\t\tString Result=\"\";\r\n\t\t\r\n\t\tif(s.charAt(8)=='P' || s.charAt(8)=='p')\r\n\t\t {\r\n\t\t\tString s1[] = s.split(\":\");\r\n\t int Hour = Integer.parseInt(s1[0]);\r\n\t String Actual_Hour = \"\";\r\n\t if(Hour == 12)\r\n\t {\r\n\t \tActual_Hour = \"12\";\r\n\t }\r\n\t else\r\n\t {\r\n\t \tint data = 12 + Hour;\r\n\t \tActual_Hour = String.valueOf(data);\r\n\t }\r\n\t \r\n\t \r\n\t Result = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2);\r\n\t\t }\r\n\t\t else\r\n\t\t {\r\n\t\t \tString s1[] = s.split(\":\");\r\n\t\t \tint Hour = Integer.parseInt(s1[0]);\r\n\t\t String Actual_Hour = \"\";\r\n\t\t if(Hour == 12)\r\n\t\t {\r\n\t\t \tActual_Hour = \"00\";\r\n\t\t \tResult = Actual_Hour +temp+s1[1]+temp+s1[2].substring(0, 2); \r\n\t\t }\r\n\t\t else {\r\n\t\t \tString s2[] = s.split(\"AM\");\r\n\t\t\t for(int i=0; i<s2.length; i++)\r\n\t\t\t {\r\n\t\t\t \tResult = s2[i];\r\n\t\t\t }\t\r\n\t\t }\r\n\t\t \t\r\n\t\t }\r\n\t\t\r\n\t\t\t\tSystem.out.println(Result);\r\n}",
"private void kk12() {\n\n\t}",
"int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}",
"private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}",
"public void mo21783H() {\n }",
"protected String mo3406c() {\n return \"Minute\";\n }",
"public void mo2470d() {\n }",
"void mo1507n();",
"private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }",
"public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }",
"public static int offset_infos_timestamp() {\n return (32 / 8);\n }",
"public static void main(String[] args) {\n System.out.println(getDurationString(65,45));\n\n System.out.println(getDurationString(3945));\n }",
"public void mo21878t() {\n }",
"String indexBlackLabBuildTime();",
"public int diff21(int n) {\n int dif = 21 - n;\n if (n > 21){\n dif = (n -21) * 2;\n }\n\n return dif;\n}",
"@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }",
"static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }",
"private static android.util.Pair<com.google.android.exoplayer2.Format, java.lang.Long> m26780a(com.google.android.exoplayer2.p366s0.p374y.C9043p.C9044a r20, java.lang.String r21) {\n /*\n r0 = r20\n byte[] r1 = r0.f19970d\n int r2 = r0.f19968b\n byte[] r1 = java.util.Arrays.copyOf(r1, r2)\n r2 = 4\n byte r3 = r1[r2]\n r3 = r3 & 255(0xff, float:3.57E-43)\n r4 = 5\n byte r5 = r1[r4]\n r5 = r5 & 255(0xff, float:3.57E-43)\n r6 = 6\n byte r6 = r1[r6]\n r6 = r6 & 255(0xff, float:3.57E-43)\n int r3 = r3 << r2\n int r7 = r5 >> 4\n r13 = r3 | r7\n r3 = r5 & 15\n int r3 = r3 << 8\n r14 = r3 | r6\n r3 = 7\n byte r5 = r1[r3]\n r5 = r5 & 240(0xf0, float:3.36E-43)\n int r5 = r5 >> r2\n r6 = 2\n if (r5 == r6) goto L_0x0043\n r6 = 3\n if (r5 == r6) goto L_0x003d\n if (r5 == r2) goto L_0x0037\n r2 = 1065353216(0x3f800000, float:1.0)\n r18 = 1065353216(0x3f800000, float:1.0)\n goto L_0x004c\n L_0x0037:\n int r2 = r14 * 121\n float r2 = (float) r2\n int r5 = r13 * 100\n goto L_0x0048\n L_0x003d:\n int r2 = r14 * 16\n float r2 = (float) r2\n int r5 = r13 * 9\n goto L_0x0048\n L_0x0043:\n int r2 = r14 * 4\n float r2 = (float) r2\n int r5 = r13 * 3\n L_0x0048:\n float r5 = (float) r5\n float r2 = r2 / r5\n r18 = r2\n L_0x004c:\n r10 = 0\n r11 = -1\n r12 = -1\n r15 = -1082130432(0xffffffffbf800000, float:-1.0)\n java.util.List r16 = java.util.Collections.singletonList(r1)\n r17 = -1\n r19 = 0\n java.lang.String r9 = \"video/mpeg2\"\n r8 = r21\n com.google.android.exoplayer2.Format r2 = com.google.android.exoplayer2.Format.m24871a(r8, r9, r10, r11, r12, r13, r14, r15, r16, r17, r18, r19)\n r5 = 0\n byte r3 = r1[r3]\n r3 = r3 & 15\n int r3 = r3 + -1\n if (r3 < 0) goto L_0x0092\n double[] r7 = f19949q\n int r8 = r7.length\n if (r3 >= r8) goto L_0x0092\n r5 = r7[r3]\n int r0 = r0.f19969c\n int r0 = r0 + 9\n byte r3 = r1[r0]\n r3 = r3 & 96\n int r3 = r3 >> r4\n byte r0 = r1[r0]\n r0 = r0 & 31\n if (r3 == r0) goto L_0x008b\n double r3 = (double) r3\n r7 = 4607182418800017408(0x3ff0000000000000, double:1.0)\n double r3 = r3 + r7\n int r0 = r0 + 1\n double r0 = (double) r0\n double r3 = r3 / r0\n double r5 = r5 * r3\n L_0x008b:\n r0 = 4696837146684686336(0x412e848000000000, double:1000000.0)\n double r0 = r0 / r5\n long r5 = (long) r0\n L_0x0092:\n java.lang.Long r0 = java.lang.Long.valueOf(r5)\n android.util.Pair r0 = android.util.Pair.create(r2, r0)\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer2.p366s0.p374y.C9043p.m26780a(com.google.android.exoplayer2.s0.y.p$a, java.lang.String):android.util.Pair\");\n }",
"void mo11024a(int i, int i2, String str);",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }",
"private static void showTime(String comment,long entryPoint, long endPoint) {\n long elapsedTime = endPoint - entryPoint;\n System.out.println(comment+elapsedTime+\" msec\");\n }",
"public void mo6081a() {\n }",
"public String getParamName()\r\n/* 23: */ {\r\n/* 24:59 */ return this.paramName;\r\n/* 25: */ }",
"public static void main(String[] args) {\n\n\tint time = 32150;\n\t\n\t\t\tSystem.out.print((time / 3600)+\" 시간 \");\n\t\t\tSystem.out.print((time % 3600 / 60)+\" 분 \");\n\t\t\tSystem.out.println((time % 3600 % 60)+\" 초\");\n\t\t\n\t\t\n\t}",
"void mo1942k();",
"public void mo21800a() {\n }",
"public abstract void mo2624j();",
"public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }",
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }",
"public static void main(String[] args) {\n System.out.println(solution(\"02:03:55\",\"00:14:15\",\n new String[] {\"01:20:15-01:45:14\", \n \"00:40:31-01:00:00\",\n \"00:25:50-00:48:29\",\n \"01:30:59-01:53:29\", \n \"01:37:44-02:02:30\"}));\n \n // \"01:00:00\"\n System.out.println(solution(\"99:59:59\", \"25:00:00\",\n new String[] {\"69:59:59-89:59:59\",\n \"01:00:00-21:00:00\",\n \"79:59:59-99:59:59\",\n \"11:00:00-31:00:00\"}));\n \n // \"00:00:00\"\n System.out.println(solution(\"50:00:00\", \"50:00:00\",\n new String[] {\"15:36:51-38:21:49\",\n \"10:14:18-15:36:51\",\n \"38:21:49-42:51:45\"}));\n \n }",
"public void mo21788M() {\n }",
"public String getName() {\n/* 50 */ return \"M\";\n/* */ }",
"public void mo21782G() {\n }",
"public final void mT__21() throws RecognitionException {\n try {\n int _type = T__21;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:19:7: ( ':' )\n // ../com.pellcorp.mydsl/src-gen/com/pellcorp/mydsl/parser/antlr/internal/InternalMyDsl.g:19:9: ':'\n {\n match(':'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void mo2471e() {\n }",
"public static int offsetBits_infos_timestamp() {\n return 32;\n }",
"public void mo21786K() {\n }",
"@Test(timeout = 4000)\n public void test21() throws Throwable {\n Range range0 = Range.of((-1259L), 255L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.of((-1259L));\n range1.getEnd();\n range1.getEnd();\n Range range2 = Range.of((-1259L), 255L);\n List<Range> list0 = range2.split(255L);\n range2.complementFrom(list0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range3 = Range.of(range_CoordinateSystem1, (-1259L), 0L);\n range3.endsBefore(range0);\n range2.getEnd(range_CoordinateSystem1);\n // Undeclared exception!\n try { \n Range.parseRange(\"[ -1259 .. 256 ]/SB\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // length can not be negative\n //\n verifyException(\"org.jcvi.jillion.core.Range$Builder\", e);\n }\n }",
"private static String m60359b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }",
"private static String m128157b(int i) {\n StringBuilder sb = new StringBuilder(\"android:switcher:\");\n sb.append(R.id.edp);\n sb.append(\":\");\n sb.append(i);\n return sb.toString();\n }",
"public void mo21779D() {\n }",
"public int getOperacion()\r\n/* 22: */ {\r\n/* 23:45 */ return this.operacion;\r\n/* 24: */ }",
"@Override\n public String toString()\n {\n return String.format(\"%-20s\\t\\t%-30s%-30s\",number, name, party);\n}",
"public void TicTac()\n {\n if(minutos<=59)\n {\n minutos=minutos+1;\n \n }\n else\n {\n minutos=00;\n horas+=1;\n \n }\n if(horas>23)\n {\n horas=00;\n \n }\n else\n {\n minutos+=1;\n }\n }",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString readLine = reader.readLine();\n\t\treader.close();\n\t\tString[] split = readLine.split(\" \");\n\t\tint num=Integer.valueOf(split[1])-Integer.valueOf(split[0]);\n\t\tint rs=(int)Math.rint((double)num/100.0);\n\t\tint s=rs%60;\n\t\tint m=(rs/60)%60;\n\t\tint h=rs/3600;\n\t\tSystem.out.println((h<10?(\"0\"+h):h)+\":\"+(m<10?(\"0\"+m):m)+\":\"+(s<10?(\"0\"+s):s));\n\t}",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"void mo17023d();",
"public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}",
"public void mo21794S() {\n }",
"static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"static String timeConversion(String s) {\n if(s.indexOf('P') >= 0 && s.substring(0, 2).equals(\"12\")){\n }\n else if(s.indexOf('P') >= 0){\n Integer n = Integer.parseInt(s.substring(0, 2));\n s = removeHour(s);\n n += 12;\n String hour = Integer.toString(n);\n s = hour + s;\n }\n else if (s.indexOf('A') >= 0 && s.substring(0, 2).equals(\"12\")){\n s = \"00\" + s.substring(2);\n }\n return removeHourFormat(s);\n }",
"static String m60358a(String str, String str2) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 3 + String.valueOf(str2).length());\n sb.append(str);\n sb.append(\"|S|\");\n sb.append(str2);\n return sb.toString();\n }",
"private static String checkFormat(String date){\r\n\t\tif(date.length()==0) return \"\";\r\n\t\tint dateChars=0,timeChars=0;\r\n\t\tchar currenChar;\r\n\t\t\r\n\t\t//check if the first and the last character of the string is a number, it must always be\r\n\t\tif(!Character.isDigit(date.charAt(0))) return \"\";\r\n\t\tif(!Character.isDigit(date.charAt((date.length()-1)))) return \"\";\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<date.length()-1;i++){\r\n\t\t\tcurrenChar=date.charAt(i);\r\n\t\t\t\r\n\t\t\t//check if every character is / or : or number\t\t\r\n\t\t\tif(!(Character.isDigit(currenChar) || currenChar==':' || currenChar=='/')) return \"\";\r\n\t\t\t//check if there is a number between // or ::, if not it returns false\r\n\t\t\tif((currenChar==':' || currenChar=='/') && (date.charAt(i+1)==':' || date.charAt(i+1)=='/')) return \"\";\r\n\t\t\t\r\n\t\t\t//count the / and :\r\n\t\t\tif(currenChar==':') timeChars++; \r\n\t\t\telse if(currenChar=='/') dateChars++;\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with one :\r\n\t\tif(timeChars==1 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[2];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with two :\r\n\t\telse if(timeChars==2 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[1];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is a date with two /\r\n\t\telse if(dateChars==2 && timeChars==0){\r\n\t\t\t//check if one of the numbers have the right amount of digits\r\n\t\t\tString[] numbers= splitWords(date.replaceAll(\"/\", \" \"));\r\n\t\t\tif(numbers[0].length()>2) return \"\";\r\n\t\t\tif(numbers[1].length()>2) return \"\";\r\n\t\t\tif(numbers[2].length()>4) return \"\";\r\n\t\t\t\r\n\t\t\treturn formats[0];\r\n\t\t}\r\n\t\t\r\n\t\telse return \"\";\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tString n = \"수 10:00~18:30/목,토 09:00~13:00\";\n\t\t\n\t\tSystem.out.println(isTimePatternIn(n));\n\t}",
"public void mo21795T() {\n }",
"public void mo9233aH() {\n }",
"public void mo21879u() {\n }",
"public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }",
"int getTonicNote(){\n String lastnote=\"\";\n int result;\n lastnote += Strinput.toCharArray()[Strinput.length()-4];\n lastnote += Strinput.toCharArray()[Strinput.length()-3];\n result = Integer.parseInt(lastnote);\n if(result<72){\n return result-60;\n }else{\n return result-12-60;\n }\n }",
"public static int offset_infos_log_src() {\n return (16 / 8);\n }",
"public static void main(String[] args) \r\n\t\t{\n\t\t\tint Result = diff21(31);\r\n\t\t\tSystem.out.println(\"The end result is: \"+Result);\r\n\t\t}",
"@Test\n\tpublic void getStartingSpaceCorrect(){\n\t\tassertEquals(11, adventurer1.getStartingSpace());\n\t}",
"public void mo21867i() {\n mo21877s();\n }",
"@Test\n public void fixedTests() {\n assertEquals(69978 , Day02.parseInt(\"sixty nine thousand nine hundred seventy eight\"));\n }",
"private static String padActorName(String name) {\n\t\tif(name.length() >= 29) {\n\t\t\tname = name.substring(0, 25);\n\t\t\tname += \"...\";\n\t\t}\n\t\twhile(name.length() != 28) {\n\t\t\tname += \" \";\n\t\t}\n\t\treturn name;\n\t}",
"void m21();",
"private static String m10f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n return stringBuilder.toString();\n }",
"public void mo21781F() {\n }",
"public void mo9241ay() {\n }",
"private void convertLabelsToInt(){\n String sec = tSec.getText();\n sec = sec.replaceAll(\"[^0-9\\\\s+]\", \"\");\n seconds = Integer.parseInt(sec.trim());\n \n String min = tMin.getText();\n min = min.replaceAll(\"[^0-9\\\\s+]\", \"\");\n minutes = Integer.parseInt(min.trim());\n \n String hour = tHours.getText();\n hour = hour.replaceAll(\"[^0-9\\\\s+]\", \"\");\n hours = Integer.parseInt(hour.trim());\n }",
"public String TI()\n\t{\n\t\tDateTimeFormatter f = DateTimeFormatter.ofPattern(\"hh:mm a\");\n\t\tString ti = f.format(st);\n\t\tString ti2 = f.format(et);\n\t\treturn ti + \" - \" + ti2;\n \t}",
"public void mo21825b() {\n }",
"private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }",
"public void mo21789N() {\n }",
"String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}",
"public void mo21880v() {\n }",
"public void mo3376r() {\n }",
"default public int getClockSynchPort()\t\t\t\t\t{ return 2224; }",
"Period mo20733e();",
"public int mo36g() {\n return 4;\n }",
"@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }",
"private int getActiveTime() {\n\t\treturn 15 + level;\n\t}",
"void mo1501h();",
"public abstract String mo9239aw();",
"private static int computeTime(String time) {\n\t\tint ret = 0;\n\t\tint multiply = 1;\n\t\tint decimals = 1;\n\t\tfor (int i = time.length() - 1; i >= 0; --i) {\n\t\t\tif (time.charAt(i) == ':') {\n\t\t\t\tmultiply *= 60;\n\t\t\t\tdecimals = 1;\n\t\t\t} else {\n\t\t\t\tret += (time.charAt(i) - '0') * multiply * decimals;\n\t\t\t\tdecimals *= 10;\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public int mo36g() {\n return 8;\n }",
"public void mo9253f(int i, int i2) {\n }",
"public String printActivityPatterns()\n\t{\n\t\tStringBuilder toReturn = new StringBuilder();\n\n\t\ttoReturn.append(\"ACTIVITY PATTERNS\\n\");\n\t\ttoReturn.append(\" Activity in one-hour segments - Species (Number of pictures in one hour segments/Total number of pics)\\n\");\n\n\t\tfor (Species species : analysis.getAllImageSpecies())\n\t\t{\n\t\t\tStringBuilder toAdd = new StringBuilder();\n\t\t\tList<ImageEntry> imagesWithSpecies = new ImageQuery().speciesOnly(species).query(analysis.getImagesSortedByDate());\n\t\t\tInteger totalImages = imagesWithSpecies.size();\n\t\t\t// Activity / All\n\t\t\ttoAdd.append(\" All months Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec\\n\");\n\t\t\ttoAdd.append(\" Hour Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency Number Frequency\\n\");\n\n\t\t\tint[] totals = new int[13];\n\t\t\tint[] totalActivities = new int[13];\n\n\t\t\t// 12 months + all months\n\t\t\tfor (int i = -1; i < 12; i++)\n\t\t\t{\n\t\t\t\tInteger activity;\n\t\t\t\t// -1 = all months\n\t\t\t\tif (i == -1)\n\t\t\t\t\tactivity = analysis.activityForImageList(imagesWithSpecies);\n\t\t\t\telse\n\t\t\t\t\tactivity = analysis.activityForImageList(new ImageQuery().monthOnly(i).query(imagesWithSpecies));\n\t\t\t\ttotalActivities[i + 1] = activity;\n\t\t\t}\n\n\t\t\t// 24 hrs\n\t\t\tfor (int i = 0; i < 24; i++)\n\t\t\t{\n\t\t\t\tList<ImageEntry> imagesWithSpeciesAtTime = new ImageQuery().timeFrame(i, i + 1).query(imagesWithSpecies);\n\t\t\t\ttoAdd.append(String.format(\"%02d:00-%02d:00 \", i, i + 1));\n\t\t\t\t// 12 months\n\t\t\t\tfor (int j = -1; j < 12; j++)\n\t\t\t\t{\n\t\t\t\t\tInteger activity;\n\t\t\t\t\t// -1 = all months\n\t\t\t\t\tif (j == -1)\n\t\t\t\t\t\tactivity = analysis.activityForImageList(imagesWithSpeciesAtTime);\n\t\t\t\t\telse\n\t\t\t\t\t\tactivity = analysis.activityForImageList(new ImageQuery().monthOnly(j).query(imagesWithSpeciesAtTime));\n\n\t\t\t\t\tif (activity != 0)\n\t\t\t\t\t\ttoAdd.append(String.format(\"%6d %10.3f\", activity, (double) activity / totalActivities[j + 1]));\n\t\t\t\t\telse\n\t\t\t\t\t\ttoAdd.append(\" \");\n\t\t\t\t\ttotals[j + 1] = totals[j + 1] + activity;\n\t\t\t\t}\n\t\t\t\ttoAdd.append(\"\\n\");\n\t\t\t}\n\n\t\t\ttoAdd.append(\"Total \");\n\n\t\t\tfor (int total : totals) toAdd.append(String.format(\"%6d 100.000\", total));\n\n\t\t\ttoAdd.append(\"\\n\");\n\n\t\t\t// Print the header first\n\t\t\ttoReturn.append(String.format(\"%-28s (%6d/ %6d)\\n\", species.getName(), totals[0], totalImages));\n\n\t\t\ttoReturn.append(toAdd);\n\n\t\t\ttoReturn.append(\"\\n\");\n\t\t}\n\n\t\treturn toReturn.toString();\n\t}",
"private void m50366E() {\n }",
"C20259y mo54455t(int i);",
"public static final String m17015P(String str, String str2) {\n AppMethodBeat.m2504i(114129);\n if (str.contains(VideoMaterialUtil.FRAMES_ID_SEPARATOR_3D) || str.length() <= 0) {\n String[] split = str.split(VideoMaterialUtil.FRAMES_ID_SEPARATOR_3D);\n if (split[0] == null || split[0].length() <= 0) {\n AppMethodBeat.m2505o(114129);\n return str2;\n }\n str = split[0];\n AppMethodBeat.m2505o(114129);\n return str;\n }\n AppMethodBeat.m2505o(114129);\n return str;\n }"
] | [
"0.534623",
"0.52499974",
"0.5203156",
"0.5195486",
"0.51819974",
"0.5118246",
"0.5110165",
"0.5085032",
"0.5028799",
"0.49937344",
"0.4984221",
"0.49815378",
"0.49563402",
"0.49429893",
"0.4916874",
"0.4913282",
"0.49071732",
"0.4888068",
"0.4874233",
"0.48535246",
"0.483411",
"0.48331895",
"0.4830682",
"0.4823952",
"0.48192856",
"0.48185882",
"0.48120898",
"0.48071066",
"0.4793399",
"0.47922915",
"0.47831944",
"0.47536093",
"0.4752772",
"0.4747949",
"0.4743927",
"0.47348988",
"0.47327772",
"0.47311953",
"0.47248542",
"0.47224948",
"0.47189438",
"0.4717926",
"0.47078103",
"0.47057235",
"0.47042876",
"0.47031426",
"0.47017175",
"0.46980762",
"0.46901062",
"0.46892712",
"0.4688457",
"0.4677691",
"0.467135",
"0.46642232",
"0.46616772",
"0.46603838",
"0.46559674",
"0.46536267",
"0.464568",
"0.4645448",
"0.46449998",
"0.46424943",
"0.46424204",
"0.4631904",
"0.46314234",
"0.46295857",
"0.4628603",
"0.4627352",
"0.46115193",
"0.46064928",
"0.46022424",
"0.45977962",
"0.45974863",
"0.45961887",
"0.45960113",
"0.45948416",
"0.45929697",
"0.458907",
"0.45837688",
"0.45804092",
"0.457797",
"0.4577329",
"0.45741734",
"0.45738",
"0.45717573",
"0.4568794",
"0.45644516",
"0.45621225",
"0.4560601",
"0.45581466",
"0.45577103",
"0.4555098",
"0.45547062",
"0.45519882",
"0.45511466",
"0.45466405",
"0.45463398",
"0.45459387",
"0.45431936",
"0.45404398",
"0.45404184"
] | 0.0 | -1 |
/ 26: / 27: | public Date getToDate()
/* 28: */ {
/* 29:35 */ return this.toDate;
/* 30: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public interface KeyCode {\n\n // Alphabet keys:\n int A_UPPER_CASE = 65;\n int B_UPPER_CASE = 66;\n int C_UPPER_CASE = 67;\n int D_UPPER_CASE = 68;\n int E_UPPER_CASE = 69;\n int F_UPPER_CASE = 70;\n int G_UPPER_CASE = 71;\n int H_UPPER_CASE = 72;\n int I_UPPER_CASE = 73;\n int J_UPPER_CASE = 74;\n int K_UPPER_CASE = 75;\n int L_UPPER_CASE = 76;\n int M_UPPER_CASE = 77;\n int N_UPPER_CASE = 78;\n int O_UPPER_CASE = 79;\n int P_UPPER_CASE = 80;\n int Q_UPPER_CASE = 81;\n int R_UPPER_CASE = 82;\n int S_UPPER_CASE = 83;\n int T_UPPER_CASE = 84;\n int U_UPPER_CASE = 85;\n int V_UPPER_CASE = 86;\n int W_UPPER_CASE = 87;\n int X_UPPER_CASE = 88;\n int Y_UPPER_CASE = 89;\n int Z_UPPER_CASE = 90;\n\n // int A_LOWER_CASE = 97;\n // int B_LOWER_CASE = 98;\n // int C_LOWER_CASE = 99;\n // int D_LOWER_CASE = 100;\n // int E_LOWER_CASE = 101;\n // int F_LOWER_CASE = 102;\n // int G_LOWER_CASE = 103;\n // int H_LOWER_CASE = 104;\n // int I_LOWER_CASE = 105;\n // int J_LOWER_CASE = 106;\n // int K_LOWER_CASE = 107;\n // int L_LOWER_CASE = 108;\n // int M_LOWER_CASE = 109;\n // int N_LOWER_CASE = 110;\n // int O_LOWER_CASE = 111;\n // int P_LOWER_CASE = 112;\n // int Q_LOWER_CASE = 113;\n // int R_LOWER_CASE = 114;\n // int S_LOWER_CASE = 115;\n // int T_LOWER_CASE = 116;\n // int U_LOWER_CASE = 117;\n // int V_LOWER_CASE = 118;\n // int W_LOWER_CASE = 119;\n // int X_LOWER_CASE = 120;\n // int Y_LOWER_CASE = 121;\n // int Z_LOWER_CASE = 122;\n\n // Numeric keys:\n int NUMPAD_0 = 96;\n int NUMPAD_1 = 97;\n int NUMPAD_2 = 98;\n int NUMPAD_3 = 99;\n int NUMPAD_4 = 100;\n int NUMPAD_5 = 101;\n int NUMPAD_6 = 102;\n int NUMPAD_7 = 103;\n int NUMPAD_8 = 104;\n int NUMPAD_9 = 105;\n\n int NUM_0 = 48;\n int NUM_1 = 49;\n int NUM_2 = 50;\n int NUM_3 = 51;\n int NUM_4 = 52;\n int NUM_5 = 53;\n int NUM_6 = 54;\n int NUM_7 = 55;\n int NUM_8 = 56;\n int NUM_9 = 57;\n\n int PERSIAN_0 = 1776;\n int PERSIAN_1 = 1777;\n int PERSIAN_2 = 1778;\n int PERSIAN_3 = 1779;\n int PERSIAN_4 = 1780;\n int PERSIAN_5 = 1781;\n int PERSIAN_6 = 1782;\n int PERSIAN_7 = 1783;\n int PERSIAN_8 = 1784;\n int PERSIAN_9 = 1785;\n\n // Function keys:\n int F1 = 112;\n int F2 = 113;\n int F3 = 114;\n int F4 = 115;\n int F5 = 116;\n int F6 = 117;\n int F7 = 118;\n int F8 = 119;\n int F9 = 120;\n int F10 = 121;\n int F11 = 122;\n int F12 = 123;\n\n // Control Keys:\n int BACKSPACE = 8;\n int TAB = 9;\n int ENTER = 13;\n int SHIFT = 16;\n int CTRL = 17;\n int ALT = 18;\n int PAUSE_BREAK = 19;\n int CAPS_LOCK = 20;\n int ESCAPE = 27;\n int PAGEUP = 33;\n int PAGEDOWN = 34;\n int END = 35;\n int HOME = 36;\n int LEFT = 37;\n int UP = 38;\n int RIGHT = 39;\n int DOWN = 40;\n int PRINT_SCREEN = 44;\n int INSERT = 45;\n int DELETE = 46;\n\n // Other Keys:\n int SPACE = 32;\n int EQUALITY = 61;\n int LEFT_WINDOW_KEY = 91;\n int RIGHT_WINDOW_KEY = 92;\n int SELECT_KEY = 93; // besides of right control key (context menu key, usually works like right click)\n int MULTIPLY = 106;\n int ADD = 107;\n int SUBTRACT = 109;\n int DECIMAL_POINT = 110;// . in numpad section\n int DIVIDE = 111;\n int NUM_LOCK = 144;\n int SCROLL_LOCK = 145;\n int SEMI_COLON = 186;// ;\n int EQUAL_SIGN = 187;// =\n int COMMA = 188;// ,\n int DASH = 189;// -\n int PERIOD = 190;// . in alphabet section\n int FORWARD_SLASH = 191;// /\n int GRAVE_ACCENT = 192; // `\n int OPEN_BRACKET = 219; // [\n int BACK_SLASH = 220; // \\\n int CLOSE_BRAKET = 221; // ]\n int SINGLE_QUOTE = 222; // '\n}",
"@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }",
"public static void main(String args[]) {\n Scanner sc=new Scanner(System.in);\n String s =sc.nextLine();\n int key =sc.nextInt();\n int len =s.length();\n for(int i=0;i<len;i++)\n {\n char ch =s.charAt(i);\n if(ch == ' ')\n System.out.print(\" \");\n else{\n\t\t if(ch >= 65 && ch<= 90){\n\t\t ch = (char)(ch -65);\n\t\t\t ch = (char)((26+ch-key)%26);\n\t\t\t ch =(char)(ch +65);\n\t\t\t System.out.print(ch);\n\t\t }\n\t\t else{\n\t\t ch = (char)(ch -97);\n\t\t\t ch = (char)((26+ch-key)%26);\n\t\t\t ch =(char)(ch +97);\n\t\t\t System.out.print(ch);\n\t\t }\n\t\t \n }\n \n }\n }",
"void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}",
"public void mo2476b() {\n Collections.reverse(mo2625k());\n }",
"public char getKey(){ return key;}",
"static char shift(char c, int key) {\n // Handle key values >=ALPHABET_LENGTH \n key %= ALPHABET_LENGTH;\n char start = Character.isUpperCase(c) ? 'A' : 'a';\n // Shift down to 0-25 for a-z\n char shifted = (char) (c - start);\n // Handle wrap-around for negative values:\n shifted = (char) ((shifted + key + ALPHABET_LENGTH) % ALPHABET_LENGTH);\n return (char) (shifted + start);\n }",
"public static void main(String[] args) {\n\n\n\n\n\n System.out.println((char) ('a' - 32));\n }",
"public void evaluate_roundkeys() {\n for (int r = 0; r < 16; r++) {\n // \"-2\" dient der Fehler-Erkennung\n for (int y = 0; y < 48; y++)\n DES_K[r][y] = -2;\n }\n\n for (int j = 0; j < 16; j++)\n DES_K[j] = select(CD[j + 1], PC2);\n\n for (int j = 0; j < 16; j++)\n DES_reversed_K[j] = DES_K[15 - j];\n }",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"public int mo36g() {\n return 8;\n }",
"public abstract void keyexplore(long ms);",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tSystem.out.println(e.getKeyChar()+\" ta precionando a tecla igual um idiota\");\n\t\t\t\tSystem.out.println(e.getKeyCode());\n\t\t\t}",
"private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }",
"public abstract void keytext(long ms);",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"@Override\n public void keyPressed(java.awt.event.KeyEvent e) {\n if (e.getKeyCode() >= 49 && e.getKeyCode() <= 57) {\n liveLoopAction(e.getKeyCode() - 49);\n }\n }",
"int getKeyCode();",
"char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}",
"public void keyPressed(java.awt.event.KeyEvent e) {\n if (e.getKeyCode() >= 49 && e.getKeyCode() <= 57) {\n liveLoopAction(e.getKeyCode() - 49);\n }\n }",
"int getCharacterOrdering(char key);",
"public void key(){\n }",
"public static void main(String args[]) {\n Scanner s=new Scanner(System.in);\n char c=s.next().charAt(0);\n int k=s.nextInt();\n if(c=='c')\n {\n //char m='z';\n System.out.print(\"z \");\n return;\n }\n else if (c>='a' && c<='z')\n {\n int o=c+'a';\n o=(o-k)%26;\n c=(char)(o+'a');\n }\n else if(c>='A' && c<='Z')\n {\n int o=c+'A';\n o=(o-k)%26;\n c=(char)(o+'A');\n }\n System.out.print(c);\n }",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\tif(keyDown!=e.getKeyCode()-65&&e.getKeyCode()-65>=0&&e.getKeyCode()-65<=25) {\n\t\t\tif(keyDown>-1) {\n\t\t\t\tk1.pressed(keyDown, false);\n\t\t\t\tk2.pressed(-1, false);\n\t\t\t}\n\t\t\tk1.pressed(e.getKeyCode()-65, true);\n\t\t\t\n\t\t\tint n = machine.run(e.getKeyCode()-65);\n\t\t\tk2.pressed(n, true);\n\t\t\tkeyDown = e.getKeyCode()-65;\n\t\t}\n\t\telse if(e.getKeyCode() == KeyEvent.VK_SPACE) {\n\t\t\tmachine.space();\n\t\t}\n\t\telse if(e.getKeyCode() == KeyEvent.VK_BACK_SPACE) {\n\t\t\tmachine.back();\n\t\t}\n\t\telse if(e.getKeyCode() == KeyEvent.VK_ENTER) {\n\t\t\tmachine.enter();\n\t\t}\n\t\t\n\t}",
"public void mo12628c() {\n }",
"@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void keyPressed(KeyEvent e) {\n\n\t\t\t\t\t\t\t\t\t\t\t}",
"public abstract void mo2624j();",
"public static void main(String[] args) {\r\n long randomNumber = System.currentTimeMillis();\r\n // Get number less than 26\r\n randomNumber = randomNumber % 26;\r\n \r\n // add 65 to the number\r\n randomNumber += 65;\r\n System.out.println((char) randomNumber);\r\n }",
"private static void cryptanalysis() {\n\t for (char cipherChar : cipherText.toCharArray()) {\n\t if (Character.isLetter(cipherChar)) { // only letters are encrypted, punctuation marks and whitespace are not\n\t // following line converts letters to numbers between 0 and 25\n\t int cipher = (int) cipherChar - alphaIndex;\n\t // following line increments the value at frequency[cipher] to count frequency of letters used\n\t frequency[cipher] = frequency[cipher] + 1;\n\t }\n\t } \n\t char currChar = 'A';\n \t for (int i = 0; i < 26; i++) {\n \t\t System.out.println(currChar++ + \" \" + frequency[i]);\n \t }\n }",
"public int letter2index(char c) { \t\n \treturn (int)(c - 'A')%26 ;\n }",
"public static void main(String[] args) {\n Scanner key=new Scanner(System.in);\r\n while(key.hasNext())\r\n {\r\n String s=key.next();\r\n String c=\"\";\r\n for (int i = 0; i <s.length(); i++) {\r\n if((Character)s.charAt(i)=='1'|| (Character)s.charAt(i)=='0'|| (Character)s.charAt(i)=='-')\r\n {\r\n // c=c+c.concat(String.valueOf((Character)s.charAt(i)));\r\n System.out.print((Character)s.charAt(i));\r\n }\r\n else if((Character)s.charAt(i)=='A' || (Character)s.charAt(i)=='B' || (Character)s.charAt(i)=='C')\r\n {\r\n System.out.print(2);\r\n }\r\n else if((Character)s.charAt(i)=='D' || (Character)s.charAt(i)=='E' || (Character)s.charAt(i)=='F')\r\n {\r\n System.out.print(3);\r\n }\r\n else if((Character)s.charAt(i)=='G' || (Character)s.charAt(i)=='H' || (Character)s.charAt(i)=='I')\r\n {\r\n System.out.print(4);\r\n }\r\n else if((Character)s.charAt(i)=='J' || (Character)s.charAt(i)=='K' || (Character)s.charAt(i)=='L')\r\n {\r\n System.out.print(5);\r\n }\r\n else if((Character)s.charAt(i)=='M' || (Character)s.charAt(i)=='N' || (Character)s.charAt(i)=='O')\r\n {\r\n System.out.print(6);\r\n }\r\n else if((Character)s.charAt(i)=='P' || (Character)s.charAt(i)=='Q' || (Character)s.charAt(i)=='R' || (Character)s.charAt(i)=='S')\r\n {\r\n System.out.print(7);\r\n }\r\n else if((Character)s.charAt(i)=='T' || (Character)s.charAt(i)=='U' || (Character)s.charAt(i)=='V')\r\n {\r\n System.out.print(8);\r\n }\r\n else if((Character)s.charAt(i)=='W' || (Character)s.charAt(i)=='X' || (Character)s.charAt(i)=='Y'|| (Character)s.charAt(i)=='Z')\r\n {\r\n System.out.print(9);\r\n }\r\n }\r\n System.out.println();\r\n }\r\n }",
"public void setKey(char key){ this.key = key;}",
"void keySequencePassed();",
"private void kk12() {\n\n\t}",
"@Override\n\tprotected String getAdjacentKeys(char key) {\n\t\tif((key >= 'a' && key <= 'z') || (key >= 'A' && key <= 'Z')) {\n\t\t\tif(Character.isLowerCase(key))\n\t\t\t\treturn adjacentKeys[key - 'a'];\n\t\t\telse\n\t\t\t\treturn adjacentKeys[Character.toLowerCase(key) - 'a'];\n\t\t}\n\t\t\n\t\treturn String.valueOf(key);\n\t}",
"public static void main(String[] args) {\n String key = \"4071321\";\n String strToDecode = \"Li, ailu jw au facntll\";\n StringBuilder ES = new StringBuilder();\n long spCount = 0;\n for(int i= 0;i<strToDecode.length();i++)\n {\n int ascii = strToDecode.charAt(i);\n\n if((ascii<65 || ascii>122) || (ascii > 90 && ascii < 97))\n {\n char a = strToDecode.charAt(i);\n System.out.println(a);\n ES.append(a);\n spCount++;\n }\n else\n {\n int keyPos = (int)(i - spCount)%7;\n int subKey = Character.getNumericValue(key.charAt(keyPos));\n long strAscii = ascii - subKey;\n\n if(strAscii<65)\n {\n strAscii = 91-(65- strAscii);\n }\n\n if(ascii >=97 && strAscii< 97) {\n strAscii = 123 - (97 - strAscii);\n }\n ES.append((char)strAscii);\n }\n\n }\n System.out.println(ES);\n\n }",
"public int mo36g() {\n return 4;\n }",
"@Override\n\tpublic void keyPressed() {\n\t\t\n\t}",
"public void mo3946e() {\n m25427g();\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n \n \n }",
"public void bewegeKamel(Charakter charakter);",
"public static void m4() {\r\n\t\r\n\t\tfor(int i=1;i<=5;i++) {\r\n\t\t\tchar ch ='E';\r\n\t\t\tfor(int j=5;j>=1;j--) {\r\n\t\t\t\tSystem.out.print(ch);\r\n\t\t\t\tch--;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"int getCap();",
"public void keyPressed(KeyEvent e) { }",
"public String originalText(String cipher_text, String key)\n{\n String orig_text=\"\";\n \n for (int i = 0 ; i < cipher_text.length() && \n i < key.length(); i++)\n {\n if(cipher_text.charAt(i) == ' ' || cipher_text.charAt(i) == '\\n')\n orig_text+=cipher_text.charAt(i);\n else{\n // converting in range 0-25\n int x = (cipher_text.charAt(i) - \n key.charAt(i) + 26) %26; \n // convert into alphabets(ASCII)\n x += 'A';\n orig_text+=(char)(x);\n }\n }\n return orig_text;\n}",
"public int mo36g() {\n return 2;\n }",
"private String shiftAlphabet(int key) {\n return ALPHABET.substring(key) + ALPHABET.substring(0, key);\n }",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\r\n\t\t\t}",
"public static void main(String[] args) {\n\t\tString s=\"A\";\n\t\tint l=s.length();\n\t\tint c=0;\n\t\tfor(int i=0;i<l;i++){\n\t\t\tc=(int) (c+(s.charAt(s.length()-i-1)-'A'+1)*Math.pow(26, i));\n\t\t\tSystem.out.println(c);\n\n\t\t}\n\t\t//System.out.println(c);\n\t}",
"C2841w mo7234g();",
"@Override\n\tpublic void keyReleased(KeyEvent e) {\n\t\tif(e.getKeyCode()-65>=0&&e.getKeyCode()-65<=25) {\n\t\t\tk1.pressed(e.getKeyCode()-65, false);\n\t\t\tk2.pressed(-1, false);\n\t\t\tif(keyDown==e.getKeyCode()-65) {\n\t\t\t\tkeyDown = -1;\n\t\t\t}\n\t\t}\n\t}",
"private void setKey() {\n\t\t \n\t}",
"void correctKeyPress();",
"public void mo21786K() {\n }",
"int getKey() {\n\n\n\t\tint key =0;\n\t\tdo{\n\t\t\tjokerA();\n\t\t\tjokerB();\n\t\t\ttripleCut();\n\t\t\tcountCut();\n\n\t\t\tint head = deckRear.next.cardValue;\n\n\t\t\t//if 28 change the value of it to 27\n\t\t\tif(head == 28){\n\t\t\t\thead = 27;\n\t\t\t}\n\n\t\t\tCardNode pointer= deckRear.next;\n\t\t\tint i = 1;\n\t\t\twhile(i< head){\n\t\t\t\tpointer = pointer.next;\n\t\t\t\ti++;\n\t\t\t}\n\n\n\t\t\tCardNode keyNode = pointer.next;\n\t\t\tkey = keyNode.cardValue;\n\n\n\t\t} while(key > 26);\n\n\t\t// COMPLETE THIS METHOD\n\t\t// THE FOLLOWING LINE HAS BEEN ADDED TO MAKE THE METHOD COMPILE\n\n\t\tSystem.out.println(\"key\" + key); \n\n\t\treturn key;\n\t}",
"@Override\r\n public void keyPressed(KeyEvent e) {\n\r\n }",
"public static void main(String[] args) {\n \t\n \tlong ashok;\n \tashok=(long)Math.pow(26,5);\n \t\n \tfor(long i=ashok;i>0;i--)\n \t{\n \t\tlong j=i;\n \t\tString s=\"\";\n \t\twhile(j>0)\n \t{\n \t\tlong sp=(j)%26;\n \t\tj=j/26;\n \t\ts+=(char)(sp+65);\n \t\t\n \t\t\n \t}\n \tSystem.out.println(s);\n \t}\n // TODO code application logic here\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n\n\n }",
"@Override\r\n public void keyReleased\r\n (KeyEvent ke\r\n \r\n \r\n \r\n \r\n\r\n) {\n }",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\r\n\t}",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\r\n\t}",
"public void testCaesar(){\n String msg = \"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\";\n \n /*String encrypted = encrypt(msg, key);\n System.out.println(\"encrypted \" +encrypted);\n \n String decrypted = encrypt(encrypted, 26-key);\n System.out.println(\"decrypted \" + decrypted);*/\n \n \n String encrypted = encrypt(msg, 15);\n System.out.println(\"encrypted \" +encrypted);\n \n }",
"void keySequenceHardFailure();",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\r\n\t\tkey = e.getKeyCode();\r\n\t\t\r\n\t\t//up arrow\r\n\t\tif (key == KeyEvent.VK_UP) {\r\n\t\t\tpacman.speed=1;\r\n\t\t\t\tnextTurn = (\"up\");\r\n\t\t}\r\n\t\t//down arrow\r\n\t\tif (key == KeyEvent.VK_DOWN) {\r\n\t\t\tpacman.speed=1;\r\n\t\t\t\tnextTurn =(\"down\");\r\n\t\t}\r\n\t\t//left arrow\r\n\t\tif (key == KeyEvent.VK_LEFT) {\r\n\t\t\tpacman.speed=1;\r\n\t\t\t\tnextTurn =(\"left\");\r\n\t\t}\r\n\t\t//right arrow\r\n\t\tif (key == KeyEvent.VK_RIGHT) {\r\n\t\t\tpacman.speed=1;\r\n\t\t\t\tnextTurn =(\"right\");\r\n\t\t\t\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void challenge9() {\n\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void keyPressed(KeyEvent e) {\n\n }",
"@Override\n public void keyPressed(KeyEvent e) {\n\n }",
"public void hileraReconocer (javafx.scene.input.KeyEvent keyEvent) {\r\n char car = keyEvent.getCharacter().charAt(0);\r\n \r\n if(j==1){\r\n if ((car < 'a' || car > 'z') && (car < 'A' || car > 'Z') ) {\r\n keyEvent.consume();\r\n } \r\n }else{\r\n if ((car < '0' || car > '9') ) {\r\n keyEvent.consume();\r\n } \r\n }\r\n \r\n }",
"private int convert(int keyCode) {\n\t\tif (keyCode >= 96 && keyCode <= 105) {\n\t\t\treturn keyCode - 48;\n\t\t} else if (keyCode == 81) { // qwertyuiop -> 0-9\n\t\t\tkeyCode = 49;\n\t\t} else if (keyCode == 87) {\n\t\t\tkeyCode = 50;\n\t\t} else if (keyCode == 69) {\n\t\t\tkeyCode = 51;\n\t\t} else if (keyCode == 82) {\n\t\t\tkeyCode = 52;\n\t\t} else if (keyCode == 84) {\n\t\t\tkeyCode = 53;\n\t\t} else if (keyCode == 89) {\n\t\t\tkeyCode = 54;\n\t\t} else if (keyCode == 85) {\n\t\t\tkeyCode = 55;\n\t\t} else if (keyCode == 37) {\n\t\t\tkeyCode = 56;\n\t\t} else if (keyCode == 79) {\n\t\t\tkeyCode = 57;\n\t\t} else if (keyCode == 80) {\n\t\t\tkeyCode = 48;\n\t\t}\n\t\treturn keyCode;\n\t}",
"public void keyPressed( KeyEvent e ) { }",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"char getEChar();",
"public String getLowestChromKey();",
"private int hash2(T key) { //first two char length\r\n\r\n if(key.toString().length() ==1){ //in the case that the key is only one char long\r\n return key.toString().charAt(0)%newTable.length;\r\n }\r\n return (26 * key.toString().charAt(0)+key.toString().charAt(1))% newTable.length;\r\n\r\n }",
"@Override\r\n public void keyPressed(KeyEvent ke) {\n }",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}",
"@Override\n\tpublic void keyPressed(KeyEvent e) {\n\n\t}",
"@Override\r\n\tpublic void keyPressed(KeyEvent e) {\n\t}",
"public static void m3() {\r\n\t\tchar ch ='E';\r\n\t\tfor(int i =1 ;i<=5;i++) {\r\n\t\t\tfor(int j=5;j>=1;j--) {\r\n\t\t\t\tSystem.out.print(ch);\r\n\t\t\t}\r\n\t\t\tch--;\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}"
] | [
"0.5919065",
"0.58293915",
"0.5783761",
"0.57222",
"0.5684215",
"0.5666696",
"0.5648324",
"0.55976385",
"0.5596936",
"0.5587685",
"0.5554415",
"0.55315316",
"0.5515268",
"0.5513173",
"0.55085003",
"0.5501894",
"0.5493817",
"0.549027",
"0.5487756",
"0.5482723",
"0.5475901",
"0.547508",
"0.5463414",
"0.5458451",
"0.5455654",
"0.54554623",
"0.5439158",
"0.5438073",
"0.543248",
"0.5424996",
"0.5414099",
"0.541257",
"0.5404079",
"0.5403687",
"0.54002446",
"0.5373889",
"0.53614587",
"0.53499407",
"0.5344791",
"0.53301275",
"0.5329893",
"0.5320147",
"0.5319356",
"0.53174454",
"0.5315329",
"0.53149855",
"0.53141534",
"0.5303168",
"0.5299505",
"0.5299505",
"0.5299505",
"0.5299505",
"0.5299505",
"0.5299505",
"0.5299505",
"0.5298547",
"0.52929634",
"0.52851576",
"0.52843904",
"0.52772933",
"0.5276757",
"0.52763337",
"0.5262843",
"0.5260165",
"0.52585304",
"0.52584267",
"0.5250041",
"0.52477205",
"0.52477205",
"0.524647",
"0.5241969",
"0.52395266",
"0.5239193",
"0.5238741",
"0.5238741",
"0.5238741",
"0.5238741",
"0.5238741",
"0.5238741",
"0.5238741",
"0.5238741",
"0.5238741",
"0.5237898",
"0.5237898",
"0.5237898",
"0.52353257",
"0.52353257",
"0.52297354",
"0.5224424",
"0.5218906",
"0.52135074",
"0.5206716",
"0.5205028",
"0.5204894",
"0.5204134",
"0.5197128",
"0.5197128",
"0.5197128",
"0.5197128",
"0.519272",
"0.51903903"
] | 0.0 | -1 |
/ 31: / 32: | public void setToDate(Date toDate)
/* 33: */ {
/* 34:39 */ this.toDate = toDate;
/* 35: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"long mo25071a(long j);",
"private static int m24353e(int i) {\n return i - (i >> 2);\n }",
"int pacemodulator() {\n int buckpacedirector = ((rand.nextInt() >> rightshift) & 7);\n int rbuckpacedirector = 0;\n\n rbuckpacedirector = switch (buckpacedirector)\n {\n case 0 -> 2;\n case 1 -> 3;\n case 2 -> 4;\n case 3 -> 5;\n case 4 -> 6;\n case 5 -> 7;\n case 6 -> 8;\n default -> 1;\n };\n return rbuckpacedirector;\n }",
"public abstract Integer mo36210m();",
"public int mo36g() {\n return 8;\n }",
"long mo20406a();",
"public int mo36g() {\n return 4;\n }",
"private int m10266c(int i) {\r\n return (i << 1) ^ (i >> 31);\r\n }",
"long mo1636a(long j, alb alb);",
"long mo117970a();",
"long mo107678c(Integer num);",
"long mo1154d();",
"public int b() {\n return 31;\n }",
"void mo30290d(long j);",
"short digits();",
"long mo133613a();",
"void mo30275a(long j);",
"long mo309d();",
"public int mo36g() {\n return 2;\n }",
"private static boolean isNorm32Regular(long paramLong)\n/* */ {\n/* 332 */ return paramLong < 4227858432L;\n/* */ }",
"public void operacionletradni(int dni, int result){\n this.result=dni%23;}",
"@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }",
"long mo49a();",
"public int a() {\n return 366;\n }",
"private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }",
"public int mo3361f() {\n return 1;\n }",
"public abstract Integer mo36212o();",
"String mo30285c(long j);",
"@Override\n public boolean validate(long number) {\n List<Integer> digits = split(number);\n int multiplier = 1;\n int sum = 0;\n for (int digit : Lists.reverse(digits)) {\n int product = multiplier * digit;\n sum += product / BASE + product % BASE;\n multiplier = 3 - multiplier;\n }\n return sum % BASE == 0;\n }",
"public abstract long mo24412e();",
"private static int m22592m(int i) {\n return (i >> 31) ^ (i << 1);\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"private static final byte exp31 (int b, int g) {\n if (b == 0) return 0;\n\n int r = b; // r = b ** 1\n b = mult(b, b, g); // b = b ** 2\n r = mult(r, b, g); // r = b ** 3\n b = mult(b, b, g); // b = b ** 4\n r = mult(r, b, g); // r = b ** 7\n b = mult(b, b, g); // b = b ** 8\n r = mult(r, b, g); // r = b ** 15\n b = mult(b, b, g); // b = b ** 16\n return (byte)mult(r, b, g); // r = b ** 31\n }",
"void mo33732Px();",
"Long mo20729a();",
"private static void helloHelloModulo() {\n int a = 1;\n int b = 10;\n int c = 1 / 10;\n\n int d = 1 % 10;\n\n\n System.out.println(\" Result deleniya \" + c);\n System.out.println(\" Result deleniya \" + d);\n\n\n int делимое = 75;\n int делитель = 13;\n int f = делимое % делитель;\n\n int остаток = делимое - (делимое / делитель) * делитель;\n int j = 7 % 2;\n\n System.out.println(f);\n System.out.println(остаток);\n\n\n }",
"long mo30295f();",
"static void pregenFact() \n\t{ \n\t\tfact[0] = fact[1] = 1; \n\t\tfor (int i = 1; i <= 1000000; ++i) \n\t\t{ \n\t\t\tfact[i] = (int) ((long) fact[i - 1] * i % mod); \n\t\t} \n\t}",
"Period mo20733e();",
"private long convert(long val, long w) {\n return val < 0 ? (val + 1) / w - 1 : val / w;\n }",
"int mo30291e();",
"private static long getPrevNorm32(PrevArgs paramPrevArgs, int paramInt1, int paramInt2)\n/* */ {\n/* 534 */ paramPrevArgs.c = paramPrevArgs.src[(--paramPrevArgs.current)];\n/* 535 */ paramPrevArgs.c2 = '\\000';\n/* */ \n/* */ \n/* */ \n/* */ \n/* 540 */ if (paramPrevArgs.c < paramInt1)\n/* 541 */ return 0L;\n/* 542 */ if (!UTF16.isSurrogate(paramPrevArgs.c))\n/* 543 */ return getNorm32(paramPrevArgs.c);\n/* 544 */ if (UTF16.isLeadSurrogate(paramPrevArgs.c))\n/* */ {\n/* 546 */ return 0L; }\n/* 547 */ if ((paramPrevArgs.current != paramPrevArgs.start) && \n/* 548 */ (UTF16.isLeadSurrogate(paramPrevArgs.c2 = paramPrevArgs.src[(paramPrevArgs.current - 1)]))) {\n/* 549 */ paramPrevArgs.current -= 1;\n/* 550 */ long l = getNorm32(paramPrevArgs.c2);\n/* */ \n/* 552 */ if ((l & paramInt2) == 0L)\n/* */ {\n/* */ \n/* */ \n/* 556 */ return 0L;\n/* */ }\n/* */ \n/* 559 */ return getNorm32FromSurrogatePair(l, paramPrevArgs.c);\n/* */ }\n/* */ \n/* */ \n/* 563 */ paramPrevArgs.c2 = '\\000';\n/* 564 */ return 0L;\n/* */ }",
"int mo1505l();",
"static int valDiv2 (){\n return val/2;\n }",
"private static long getNorm32(char[] paramArrayOfChar, int paramInt1, int paramInt2)\n/* */ {\n/* 379 */ long l = getNorm32(paramArrayOfChar[paramInt1]);\n/* 380 */ if (((l & paramInt2) > 0L) && (isNorm32LeadSurrogate(l)))\n/* */ {\n/* 382 */ l = getNorm32FromSurrogatePair(l, paramArrayOfChar[(paramInt1 + 1)]);\n/* */ }\n/* 384 */ return l;\n/* */ }",
"public final int mo34012n() {\n return this.f7223c;\n }",
"long mo54439f(int i);",
"public int mo3360e() {\n return 0;\n }",
"public abstract long mo9229aD();",
"private int m150332e(long j) {\n return m150326a(this.f111579b, j);\n }",
"int mo1756e(int i);",
"public static int m150331d(long j) {\n return (int) (j ^ (j >>> 32));\n }",
"private double normalizeImageValue(double value){\n return value/(31);\n }",
"public int mo34973b() {\n return 48;\n }",
"void mo24142a(long j);",
"C3197iu mo30281b(long j);",
"public final Integer mo35539f() {\n return Integer.valueOf(mo35530b());\n }",
"public short mo34e() {\n return 41;\n }",
"private int m681c(int i) {\n return (i >> 31) ^ (i << 1);\n }",
"int odd_palindrome(int head) {\n\t\tint tail=0;\n\t\tint exp=1; //10 exponent number\n\t\tfor(int r=head/10; r>0; r/=10) {\n\t\t\tint d = r%10;\n\t\t\ttail=tail*10+d;\n\t\t\texp *= 10;\n\t\t}\n\t\treturn head * exp + tail;\n\t}",
"void mo25957a(long j, long j2);",
"public final int zzj() {\n return this.zzab % 32;\n }",
"public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }",
"@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }",
"public final int mo34010l() {\n return this.f7227g;\n }",
"private long m10270d(long j) {\r\n return (j >>> 1) ^ (-(1 & j));\r\n }",
"public int mo29670a(String str) {\n int length = str.length();\n int i = this.f19526c;\n for (int i2 = 0; i2 < length; i2++) {\n i = (i * 33) + str.charAt(i2);\n }\n if (i == 0) {\n return 1;\n }\n return i;\n }",
"private final int m28110f(int i) {\n return i + i + 1;\n }",
"int mo23521Ly();",
"public void method_258(int var1, int var2, int var3, int var4, int var5, int var6, int var7, int var8, boolean var9) {\n try {\n if(var6 == 0) {\n var6 = 16777215;\n }\n\n if(var7 == 0) {\n var7 = 16777215;\n }\n\n int var10 = this.field_736[var5];\n int var11 = this.field_737[var5];\n int var12 = 0;\n int var13 = 0;\n int var14 = var8 << 16;\n int var15 = (var10 << 16) / var3;\n int var16 = (var11 << 16) / var4;\n int var17 = -(var8 << 16) / var4;\n int var18;\n int var19;\n if(this.field_742[var5]) {\n var18 = this.spriteWidthFull[var5];\n var19 = this.field_741[var5];\n var15 = (var18 << 16) / var3;\n var16 = (var19 << 16) / var4;\n int var20 = this.field_738[var5];\n int var21 = this.field_739[var5];\n if(var9) {\n var20 = var18 - this.field_736[var5] - var20;\n }\n\n var1 += (var20 * var3 + var18 - 1) / var18;\n int var22 = (var21 * var4 + var19 - 1) / var19;\n var2 += var22;\n var14 += var22 * var17;\n if(var20 * var3 % var18 != 0) {\n var12 = (var18 - var20 * var3 % var18 << 16) / var3;\n }\n\n if(var21 * var4 % var19 != 0) {\n var13 = (var19 - var21 * var4 % var19 << 16) / var4;\n }\n\n var3 = ((this.field_736[var5] << 16) - var12 + var15 - 1) / var15;\n var4 = ((this.field_737[var5] << 16) - var13 + var16 - 1) / var16;\n }\n\n var18 = var2 * this.field_723;\n var14 += var1 << 16;\n if(var2 < this.field_743) {\n var19 = this.field_743 - var2;\n var4 -= var19;\n var2 = this.field_743;\n var18 += var19 * this.field_723;\n var13 += var16 * var19;\n var14 += var17 * var19;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n var19 = var18 / this.field_723 & 1;\n if(!this.interlace) {\n var19 = 2;\n }\n\n if(var7 == 16777215) {\n if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_259(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_259(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var14, var17, var19);\n } else {\n this.method_261(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var14, var17, var19);\n }\n } else if(this.spritePixels[var5] != null) {\n if(!var9) {\n this.method_260(this.pixels, this.spritePixels[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_260(this.pixels, this.spritePixels[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } else if(!var9) {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, var12, var13, var18, var3, var4, var15, var16, var10, var6, var7, var14, var17, var19);\n } else {\n this.method_262(this.pixels, this.spriteColoursUsed[var5], this.spriteColourList[var5], 0, (this.field_736[var5] << 16) - var12 - 1, var13, var18, var3, var4, -var15, var16, var10, var6, var7, var14, var17, var19);\n }\n } catch (Exception var23) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"private void m3935R() {\n int i;\n int i2;\n if (mo4322L() == 1) {\n i2 = mo4758r() - mo4756p();\n i = mo4754o();\n } else {\n i2 = mo4741h() - mo4752n();\n i = mo4757q();\n }\n m3945n(i2 - i);\n }",
"public static void main(String args[])\n {\n int a=8%3; //Finding the reminder of 8 when divided by 3 using the modulus operator '%'\n\n System.out.println(\"a=\"+a);\n\n }",
"protected int t(int n) {\r\n\t\treturn Math.floorDiv(n * (n - 1), 2);\r\n\t}",
"private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }",
"public static void main(String args[] ) throws Exception {\n Scanner in = new Scanner(System.in);\n \n String original = in.next();\n int n = original.length();\n long moda = 1000000007;\n long ones = 1;\n long sum=0; \n for (int s=original.length()-1; s>=0; s--) {\n sum = (sum + (s+1) * (original.charAt(s) - '0') * ones) %moda; \n ones = (ones * 10 + 1) % moda;\n \n }\n \n System.out.println(sum);\n \n }",
"int getAlphaMod(){\n return getPercentageValue(\"alphaMod\");\n }",
"int mo27483b();",
"public static void main(String[] arrr){\n\t\tlong mod = 10000000011L;\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\tlong total=0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttotal = (total+((long)Math.pow((countBit(arr[i])),(i+1))%mod))%mod;\n\t\t}\n\t\tSystem.out.println(total);\n\t}",
"@Test\n public void testModulo() {\n System.out.println(\"modulo\");\n int x = 0;\n int y = 0;\n int expResult = 0;\n int result = utilsHill.modulo(x, y);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"private int m10275g(int i) {\r\n return (i >>> 1) ^ (-(i & 1));\r\n }",
"private int m15036d(C1085v vVar) {\n if (this.f13675n == 2) {\n return 0;\n }\n int d = this.f13674m.mo12697d(this.f13679r, vVar);\n int a = (this.f13674m.mo12721a(d, ViewCompat.m2862o(this.f13679r)) & 65280) >> 8;\n if (a == 0) {\n return 0;\n }\n int i = (d & 65280) >> 8;\n if (Math.abs(this.f13669h) > Math.abs(this.f13670i)) {\n int b = m15032b(vVar, a);\n if (b > 0) {\n return (i & b) == 0 ? C5319g.m15060b(b, ViewCompat.m2862o(this.f13679r)) : b;\n }\n int c = m15033c(vVar, a);\n if (c > 0) {\n return c;\n }\n } else {\n int c2 = m15033c(vVar, a);\n if (c2 > 0) {\n return c2;\n }\n int b2 = m15032b(vVar, a);\n if (b2 > 0) {\n if ((i & b2) == 0) {\n b2 = C5319g.m15060b(b2, ViewCompat.m2862o(this.f13679r));\n }\n return b2;\n }\n }\n return 0;\n }",
"public long mo9762y() {\n /*\n r11 = this;\n int r0 = r11.f9074i\n int r1 = r11.f9072g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9074i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9763z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9074i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9762y():long\");\n }",
"static int getAnchor(int a){\n return a-((a-1)%3);\n }",
"public static int m8655e() {\n return 8;\n }",
"public final Integer mo35538e() {\n return Integer.valueOf(mo35529a());\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public long mo9775y() {\n /*\n r11 = this;\n int r0 = r11.f9082i\n int r1 = r11.f9080g\n if (r1 != r0) goto L_0x0008\n goto L_0x00b6\n L_0x0008:\n byte[] r2 = r11.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0014\n r11.f9082i = r3\n long r0 = (long) r0\n return r0\n L_0x0014:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x001b\n goto L_0x00b6\n L_0x001b:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0029\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n L_0x0026:\n long r2 = (long) r0\n goto L_0x00bd\n L_0x0029:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003a\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n long r0 = (long) r0\n r9 = r0\n r1 = r3\n r2 = r9\n goto L_0x00bd\n L_0x003a:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0048\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0026\n L_0x0048:\n long r3 = (long) r0\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r5 = (long) r1\n r1 = 28\n long r5 = r5 << r1\n long r3 = r3 ^ r5\n r5 = 0\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x005f\n r1 = 266354560(0xfe03f80, double:1.315966377E-315)\n L_0x005b:\n long r2 = r3 ^ r1\n r1 = r0\n goto L_0x00bd\n L_0x005f:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 35\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x0074\n r5 = -34093383808(0xfffffff80fe03f80, double:NaN)\n L_0x0071:\n long r2 = r3 ^ r5\n goto L_0x00bd\n L_0x0074:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 42\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 < 0) goto L_0x0087\n r1 = 4363953127296(0x3f80fe03f80, double:2.1560793202584E-311)\n goto L_0x005b\n L_0x0087:\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n r0 = 49\n long r7 = r7 << r0\n long r3 = r3 ^ r7\n int r0 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x009a\n r5 = -558586000294016(0xfffe03f80fe03f80, double:NaN)\n goto L_0x0071\n L_0x009a:\n int r0 = r1 + 1\n byte r1 = r2[r1]\n long r7 = (long) r1\n r1 = 56\n long r7 = r7 << r1\n long r3 = r3 ^ r7\n r7 = 71499008037633920(0xfe03f80fe03f80, double:6.838959413692434E-304)\n long r3 = r3 ^ r7\n int r1 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r1 >= 0) goto L_0x00bb\n int r1 = r0 + 1\n byte r0 = r2[r0]\n long r7 = (long) r0\n int r0 = (r7 > r5 ? 1 : (r7 == r5 ? 0 : -1))\n if (r0 >= 0) goto L_0x00bc\n L_0x00b6:\n long r0 = r11.mo9776z()\n return r0\n L_0x00bb:\n r1 = r0\n L_0x00bc:\n r2 = r3\n L_0x00bd:\n r11.f9082i = r1\n return r2\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9775y():long\");\n }",
"public int mo3834s() {\n if (this.f1470as == 8) {\n return 0;\n }\n return this.f1431F;\n }",
"int mo38973d();",
"void mo107677b(Integer num);",
"public long mo41169e() {\n return (this.f25419a + this.f25420b) - 1;\n }",
"public abstract long mo9748m();",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"protected long m8217a(long j) {\n return (j * 1000000) / ((long) this.f7048i);\n }",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public abstract long mo9755t();",
"private int checkRange(int number,int range){\n return (number+range)%range;\n }",
"public int mo3832r() {\n return this.f1466ao;\n }",
"public abstract void mo20156a(long j);",
"public int mo12192d() {\n return this.f10959n;\n }"
] | [
"0.62963396",
"0.59440124",
"0.57739705",
"0.57141614",
"0.5701559",
"0.5699544",
"0.5646099",
"0.5642437",
"0.5629925",
"0.56253356",
"0.5610839",
"0.5563996",
"0.5522939",
"0.548909",
"0.54865575",
"0.5462985",
"0.5444711",
"0.5444689",
"0.54403347",
"0.5427563",
"0.54150134",
"0.5406341",
"0.53955173",
"0.53838456",
"0.5382724",
"0.53745455",
"0.53649575",
"0.53546566",
"0.53357595",
"0.53256625",
"0.5325572",
"0.5325551",
"0.53241396",
"0.53193873",
"0.53173035",
"0.5313858",
"0.5313609",
"0.53111356",
"0.53002584",
"0.5297476",
"0.5295199",
"0.52936584",
"0.5289495",
"0.5284613",
"0.52840143",
"0.52773327",
"0.52763885",
"0.52743894",
"0.5270532",
"0.5267173",
"0.5265171",
"0.5265147",
"0.5257265",
"0.52565783",
"0.5255228",
"0.52330095",
"0.5220423",
"0.5218742",
"0.5209639",
"0.52059186",
"0.52058965",
"0.5201054",
"0.5192927",
"0.5186408",
"0.5182803",
"0.5175898",
"0.51669234",
"0.5160163",
"0.515982",
"0.5158163",
"0.51565754",
"0.5152185",
"0.51517564",
"0.51382065",
"0.5136005",
"0.5132988",
"0.5131869",
"0.5129975",
"0.5122488",
"0.5122064",
"0.51198465",
"0.51188856",
"0.51142496",
"0.5113234",
"0.51102763",
"0.5108377",
"0.51022977",
"0.50987554",
"0.5098277",
"0.50912905",
"0.5077054",
"0.5075706",
"0.5072123",
"0.5071481",
"0.5070957",
"0.50700283",
"0.50696725",
"0.50666577",
"0.50660086",
"0.5058308",
"0.50576675"
] | 0.0 | -1 |
/ 36: / 37: | public String getEmployee()
/* 38: */ {
/* 39:43 */ return this.employee;
/* 40: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int mo36g() {\n return 8;\n }",
"public int mo36g() {\n return 4;\n }",
"public int mo36g() {\n return 2;\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"void mo33731Pw();",
"private int hash2(T key) { //first two char length\r\n\r\n if(key.toString().length() ==1){ //in the case that the key is only one char long\r\n return key.toString().charAt(0)%newTable.length;\r\n }\r\n return (26 * key.toString().charAt(0)+key.toString().charAt(1))% newTable.length;\r\n\r\n }",
"public static void main(String[] args) {\n\n\n\n\n\n System.out.println((char) ('a' - 32));\n }",
"public int hash2 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ )\n hashVal = (37 * hashVal) + key.charAt(i);\n //if(hashVal != 0)\n return hashVal % tableSize;\n //else\n // return 0;\n }\n else{\n //System.out.println(\"Key is null\");\n return 0;\n }\n }",
"@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }",
"private int funcaoHash(int x) {\n\t\treturn (x % 37);\n\t}",
"public static void main(String[] args) {\n String key = \"4071321\";\n String strToDecode = \"Li, ailu jw au facntll\";\n StringBuilder ES = new StringBuilder();\n long spCount = 0;\n for(int i= 0;i<strToDecode.length();i++)\n {\n int ascii = strToDecode.charAt(i);\n\n if((ascii<65 || ascii>122) || (ascii > 90 && ascii < 97))\n {\n char a = strToDecode.charAt(i);\n System.out.println(a);\n ES.append(a);\n spCount++;\n }\n else\n {\n int keyPos = (int)(i - spCount)%7;\n int subKey = Character.getNumericValue(key.charAt(keyPos));\n long strAscii = ascii - subKey;\n\n if(strAscii<65)\n {\n strAscii = 91-(65- strAscii);\n }\n\n if(ascii >=97 && strAscii< 97) {\n strAscii = 123 - (97 - strAscii);\n }\n ES.append((char)strAscii);\n }\n\n }\n System.out.println(ES);\n\n }",
"int toHashKey(String s)\n\t{\n\t\tint A = 1952786893;\n\t\tint B = 367257;\n\t\tint v = B;\n\t\tfor (int j = 0; j < s.length(); j++)\n\t\t{\n\t\t\tchar c = s.charAt(j);\n\t\t\tv = A * (v + (int) c + j) + B;\n\t\t}\n\n\t\tif (v < 0) v = -v;\n\t\treturn v;\n\t}",
"private static char[] m3268z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 18);\n }\n return toCharArray;\n }",
"public void uneHeureDePlus() {\n\t\tthis.h = h+1 > 23 ? 0 : h+1 ;\n\t}",
"public abstract int mo9736c(int i);",
"public java.lang.CharSequence getVar36() {\n return var36;\n }",
"public static void main(String[] args) {\r\n long randomNumber = System.currentTimeMillis();\r\n // Get number less than 26\r\n randomNumber = randomNumber % 26;\r\n \r\n // add 65 to the number\r\n randomNumber += 65;\r\n System.out.println((char) randomNumber);\r\n }",
"public int mo3836t() {\n return this.f1467ap;\n }",
"public static C0118e1 m386a() {\n return f359h;\n }",
"public int hash3 ( String key )\n {\n int hashVal = 0;\n if(key != null){\n for( int i = 0; i < key.length(); i++ ){\n hashVal = (37 * hashVal) + key.charAt(i);}\n hashVal %= tableSize;\n if(hashVal<0)\n hashVal += tableSize; \n if(hashVal != 0)\n return hashVal;\n else\n return 0;\n }\n else\n {\n //System.out.println(\"Key is null\");\n return 0;\n }\n }",
"public java.lang.CharSequence getVar36() {\n return var36;\n }",
"private int convert(int keyCode) {\n\t\tif (keyCode >= 96 && keyCode <= 105) {\n\t\t\treturn keyCode - 48;\n\t\t} else if (keyCode == 81) { // qwertyuiop -> 0-9\n\t\t\tkeyCode = 49;\n\t\t} else if (keyCode == 87) {\n\t\t\tkeyCode = 50;\n\t\t} else if (keyCode == 69) {\n\t\t\tkeyCode = 51;\n\t\t} else if (keyCode == 82) {\n\t\t\tkeyCode = 52;\n\t\t} else if (keyCode == 84) {\n\t\t\tkeyCode = 53;\n\t\t} else if (keyCode == 89) {\n\t\t\tkeyCode = 54;\n\t\t} else if (keyCode == 85) {\n\t\t\tkeyCode = 55;\n\t\t} else if (keyCode == 37) {\n\t\t\tkeyCode = 56;\n\t\t} else if (keyCode == 79) {\n\t\t\tkeyCode = 57;\n\t\t} else if (keyCode == 80) {\n\t\t\tkeyCode = 48;\n\t\t}\n\t\treturn keyCode;\n\t}",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"private int getHash(String word){\n\t\tif (word == null){\n\t\t\treturn INVALID;\n\t\t}\n\n\t\tint hash = 52;\n\t\tif ((word.charAt(0) >= 'a') && (word.charAt(0) <= 'z')){\n\t\t\thash = word.charAt(0) - 'a';\n\t\t}\n\t\telse if ((word.charAt(0) >= 'A') && (word.charAt(0) <= 'Z')){\n\t\t\thash = word.charAt(0) - 'A' + 26;\n\t\t}\n\t\treturn hash;\n\t}",
"private static String m10f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n return stringBuilder.toString();\n }",
"@Override\n\tpublic int hash(String str) {\n\t\tint result = 0;\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tint temp = (int) str.charAt(i);\n\t\t\tresult += (temp * (Math.pow(37, i)));\n\t\t}\n\t\treturn result;\n\t}",
"private int getValueFromBase64Alphabet(char character)\r\n {\r\n if (character >= 'A' && character <= 'Z')\r\n {\r\n return character - 'A';\r\n }\r\n if (character >= 'a' && character <= 'z')\r\n {\r\n return character - 'a' + 26;\r\n }\r\n if (character >= '0' && character <= '9')\r\n {\r\n return character - '0' + 52;\r\n }\r\n if (character == '+')\r\n {\r\n return 62;\r\n }\r\n if (character == '/')\r\n {\r\n return 63;\r\n }\r\n if (character == '=')\r\n {\r\n return 0;\r\n }\r\n return -1;\r\n }",
"private char hallarLetra() {\r\n\t\tchar[] letra= {'T','R','W','A','G','M','Y','F','P','D','X',\r\n\t\t\t\t\t'B','N','J','Z','S','Q','V','H','L','C','K','E'};\r\n\t\treturn letra[numeroDNI%23];\r\n\t}",
"private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }",
"private C1201f m6938h() {\n C1219t b = C1217q.m6361a().m6364b();\n return b != null ? b.f3525f : null;\n }",
"public int mo34973b() {\n return 48;\n }",
"char caseconverter(int k,int k1)\n{\nif(k>=65 && k<=90)\n{\nk1=k1+32;\n}\nelse\nif(k>=97 && k<=122)\n{\nk1=k1-32;\n}\nreturn((char)k1);\n}",
"public int aa() {\n return this.am * 121064660;\n }",
"void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}",
"public abstract C3635j mo9738d();",
"public abstract Integer mo36210m();",
"private static char[] m7947z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 16);\n }\n return toCharArray;\n }",
"public abstract int mo9732a();",
"private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }",
"public abstract long mo9748m();",
"private void m91737K() {\n String str = this.f73944a;\n boolean z = true;\n if (this.f73953m != 1) {\n z = false;\n }\n C28141am.m92411a(new C28311ag(str, z), new C28312ah(this.f73949f.hashCode()), this.f73944a);\n }",
"private int hash3(T key) { //last char + length of word\r\n char lastchar = key.toString().charAt( key.toString().length()-1 );\r\n return (lastchar + key.toString().length())%newTable.length;\r\n }",
"private int createPosition (String s) {\r\n\t\tint x = 37;\r\n\t\tdouble hashCode=0;\r\n\t\tfor (int i=0; i<s.length(); i++) {\r\n\t\t\thashCode = (double) (hashCode+ (int)(s.charAt(s.length()-(i+1)))*(Math.pow(x,i)));\r\n\t\t}\r\n\t\treturn (int)(hashCode % size);\r\n\t}",
"Aweme mo62993e();",
"public static int m8636a(String str) {\n int i;\n try {\n i = C3700r1.m8884a((CharSequence) str);\n } catch (C3703c unused) {\n i = str.getBytes(C3594b0.f8972a).length;\n }\n return m8656e(i);\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public static void main(String[] args) {\n\t\tint num=(int) (Math.random()*36 ) ;\r\n\t\tSystem.out.println( Math.random());WW\r\n\t\tSystem.out.println(num);\r\n\t}",
"public static String randAlnumSym(){\n int n;\n String result = null;\n switch (CAPS){\n case 0:\n n = rand.nextInt(94);\n if (n>83){\n result = String.valueOf(n-84);\n }else {\n result = String.valueOf(KEYBOARD.charAt(rand.nextInt(84))); //both\n }\n break;\n case 1:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randLower();\n }\n break;\n case 2:\n n = rand.nextInt(68);\n if (n>57){\n result = String.valueOf(n-58);\n }else if (n > 25){\n result = randSym();\n }else {\n result = randUpper();\n }\n break;\n }\n return result;\n }",
"public interface KeyCode {\n\n // Alphabet keys:\n int A_UPPER_CASE = 65;\n int B_UPPER_CASE = 66;\n int C_UPPER_CASE = 67;\n int D_UPPER_CASE = 68;\n int E_UPPER_CASE = 69;\n int F_UPPER_CASE = 70;\n int G_UPPER_CASE = 71;\n int H_UPPER_CASE = 72;\n int I_UPPER_CASE = 73;\n int J_UPPER_CASE = 74;\n int K_UPPER_CASE = 75;\n int L_UPPER_CASE = 76;\n int M_UPPER_CASE = 77;\n int N_UPPER_CASE = 78;\n int O_UPPER_CASE = 79;\n int P_UPPER_CASE = 80;\n int Q_UPPER_CASE = 81;\n int R_UPPER_CASE = 82;\n int S_UPPER_CASE = 83;\n int T_UPPER_CASE = 84;\n int U_UPPER_CASE = 85;\n int V_UPPER_CASE = 86;\n int W_UPPER_CASE = 87;\n int X_UPPER_CASE = 88;\n int Y_UPPER_CASE = 89;\n int Z_UPPER_CASE = 90;\n\n // int A_LOWER_CASE = 97;\n // int B_LOWER_CASE = 98;\n // int C_LOWER_CASE = 99;\n // int D_LOWER_CASE = 100;\n // int E_LOWER_CASE = 101;\n // int F_LOWER_CASE = 102;\n // int G_LOWER_CASE = 103;\n // int H_LOWER_CASE = 104;\n // int I_LOWER_CASE = 105;\n // int J_LOWER_CASE = 106;\n // int K_LOWER_CASE = 107;\n // int L_LOWER_CASE = 108;\n // int M_LOWER_CASE = 109;\n // int N_LOWER_CASE = 110;\n // int O_LOWER_CASE = 111;\n // int P_LOWER_CASE = 112;\n // int Q_LOWER_CASE = 113;\n // int R_LOWER_CASE = 114;\n // int S_LOWER_CASE = 115;\n // int T_LOWER_CASE = 116;\n // int U_LOWER_CASE = 117;\n // int V_LOWER_CASE = 118;\n // int W_LOWER_CASE = 119;\n // int X_LOWER_CASE = 120;\n // int Y_LOWER_CASE = 121;\n // int Z_LOWER_CASE = 122;\n\n // Numeric keys:\n int NUMPAD_0 = 96;\n int NUMPAD_1 = 97;\n int NUMPAD_2 = 98;\n int NUMPAD_3 = 99;\n int NUMPAD_4 = 100;\n int NUMPAD_5 = 101;\n int NUMPAD_6 = 102;\n int NUMPAD_7 = 103;\n int NUMPAD_8 = 104;\n int NUMPAD_9 = 105;\n\n int NUM_0 = 48;\n int NUM_1 = 49;\n int NUM_2 = 50;\n int NUM_3 = 51;\n int NUM_4 = 52;\n int NUM_5 = 53;\n int NUM_6 = 54;\n int NUM_7 = 55;\n int NUM_8 = 56;\n int NUM_9 = 57;\n\n int PERSIAN_0 = 1776;\n int PERSIAN_1 = 1777;\n int PERSIAN_2 = 1778;\n int PERSIAN_3 = 1779;\n int PERSIAN_4 = 1780;\n int PERSIAN_5 = 1781;\n int PERSIAN_6 = 1782;\n int PERSIAN_7 = 1783;\n int PERSIAN_8 = 1784;\n int PERSIAN_9 = 1785;\n\n // Function keys:\n int F1 = 112;\n int F2 = 113;\n int F3 = 114;\n int F4 = 115;\n int F5 = 116;\n int F6 = 117;\n int F7 = 118;\n int F8 = 119;\n int F9 = 120;\n int F10 = 121;\n int F11 = 122;\n int F12 = 123;\n\n // Control Keys:\n int BACKSPACE = 8;\n int TAB = 9;\n int ENTER = 13;\n int SHIFT = 16;\n int CTRL = 17;\n int ALT = 18;\n int PAUSE_BREAK = 19;\n int CAPS_LOCK = 20;\n int ESCAPE = 27;\n int PAGEUP = 33;\n int PAGEDOWN = 34;\n int END = 35;\n int HOME = 36;\n int LEFT = 37;\n int UP = 38;\n int RIGHT = 39;\n int DOWN = 40;\n int PRINT_SCREEN = 44;\n int INSERT = 45;\n int DELETE = 46;\n\n // Other Keys:\n int SPACE = 32;\n int EQUALITY = 61;\n int LEFT_WINDOW_KEY = 91;\n int RIGHT_WINDOW_KEY = 92;\n int SELECT_KEY = 93; // besides of right control key (context menu key, usually works like right click)\n int MULTIPLY = 106;\n int ADD = 107;\n int SUBTRACT = 109;\n int DECIMAL_POINT = 110;// . in numpad section\n int DIVIDE = 111;\n int NUM_LOCK = 144;\n int SCROLL_LOCK = 145;\n int SEMI_COLON = 186;// ;\n int EQUAL_SIGN = 187;// =\n int COMMA = 188;// ,\n int DASH = 189;// -\n int PERIOD = 190;// . in alphabet section\n int FORWARD_SLASH = 191;// /\n int GRAVE_ACCENT = 192; // `\n int OPEN_BRACKET = 219; // [\n int BACK_SLASH = 220; // \\\n int CLOSE_BRAKET = 221; // ]\n int SINGLE_QUOTE = 222; // '\n}",
"public String getLowestChromKey();",
"private static char[] m6491z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 108);\n }\n return toCharArray;\n }",
"private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }",
"public String mo7638a() {\n int i = this.f4379a;\n if (i == 1) {\n return \"add\";\n }\n if (i == 2) {\n return \"rm\";\n }\n if (i != 4) {\n return i != 8 ? \"??\" : \"mv\";\n }\n return \"up\";\n }",
"private int hash1(K key) {\n int h = 0;\n int seed = 31;//素数\n String s = key.toString();\n for (int i = 0; i != s.length(); ++i) {\n h = seed * h + s.charAt(i);\n }\n return h % length;\n }",
"long mo1636a(long j, alb alb);",
"dkj mo4367a(dkk dkk);",
"public int m9737f() {\r\n return this.f6260b;\r\n }",
"private static char[] m619z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 20);\n }\n return toCharArray;\n }",
"private static void cryptanalysis() {\n\t for (char cipherChar : cipherText.toCharArray()) {\n\t if (Character.isLetter(cipherChar)) { // only letters are encrypted, punctuation marks and whitespace are not\n\t // following line converts letters to numbers between 0 and 25\n\t int cipher = (int) cipherChar - alphaIndex;\n\t // following line increments the value at frequency[cipher] to count frequency of letters used\n\t frequency[cipher] = frequency[cipher] + 1;\n\t }\n\t } \n\t char currChar = 'A';\n \t for (int i = 0; i < 26; i++) {\n \t\t System.out.println(currChar++ + \" \" + frequency[i]);\n \t }\n }",
"public short mo34e() {\n return 41;\n }",
"private static int isIsolatedTashkeelChar(char ch){\n if (ch >= 0xfe70 && ch <= 0xfe7f && ch != NEW_TAIL_CHAR && ch != 0xFE75){\n return (1 - tashkeelMedial [ch - 0xFE70]);\n } else if(ch >= 0xfc5e && ch <= 0xfc63){\n return 1;\n } else{\n return 0;\n }\n }",
"public static void main(String args[]) {\n Scanner sc=new Scanner(System.in);\n String s =sc.nextLine();\n int key =sc.nextInt();\n int len =s.length();\n for(int i=0;i<len;i++)\n {\n char ch =s.charAt(i);\n if(ch == ' ')\n System.out.print(\" \");\n else{\n\t\t if(ch >= 65 && ch<= 90){\n\t\t ch = (char)(ch -65);\n\t\t\t ch = (char)((26+ch-key)%26);\n\t\t\t ch =(char)(ch +65);\n\t\t\t System.out.print(ch);\n\t\t }\n\t\t else{\n\t\t ch = (char)(ch -97);\n\t\t\t ch = (char)((26+ch-key)%26);\n\t\t\t ch =(char)(ch +97);\n\t\t\t System.out.print(ch);\n\t\t }\n\t\t \n }\n \n }\n }",
"static int makeAnagram(String a, String b) {\n int[] letters = new int[26];\n\n for (char c: a.toCharArray()){\n letters[c-'a']++;\n }\n\n for (char c: b.toCharArray()){\n letters[c-'a']--;\n }\n\n int sum = 0;\n\n for (int x:letters){\n sum+=Math.abs(x);\n }\n return sum;\n\n }",
"public int mo29670a(String str) {\n int length = str.length();\n int i = this.f19526c;\n for (int i2 = 0; i2 < length; i2++) {\n i = (i * 33) + str.charAt(i2);\n }\n if (i == 0) {\n return 1;\n }\n return i;\n }",
"public void mo3946e() {\n m25427g();\n }",
"long getLetterId();",
"long getLetterId();",
"private int hashFunc(String input) {\n\t\tBigInteger value = BigInteger.valueOf(0);\n\t\tBigInteger k2 = new BigInteger(\"27\");\n\t\tchar c = input.charAt(0);\n\t\tlong i1 = (int) c - 96;\n\t\tBigInteger k1 = new BigInteger(\"0\");\n\t\tk1 = k1.add(BigInteger.valueOf(i1));\n\t\tvalue = k1;\n\n\t\tfor (int i = 1; i < input.length(); i++) {\n\n\t\t\tchar c2 = input.charAt(i);\n\n\t\t\tvalue = value.multiply(k2);\n\n\t\t\tlong i2 = (int) c2 - 96;\n\t\t\tBigInteger k3 = new BigInteger(\"0\");\n\t\t\tk3 = k3.add(BigInteger.valueOf(i2));\n\n\t\t\tvalue = value.add(k3);\n\n\t\t}\n\t\tBigInteger size = new BigInteger(\"0\");\n\t\tsize = size.add(BigInteger.valueOf(this.size));\n\t\tvalue = value.mod(size);\n\n\t\treturn value.intValue();\n\t}",
"private static int letterToNumber(String str) {\n return (\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz\".indexOf(str))%26+1;\n }",
"int fixIndex(int i) {\n int ALPHABET_SCOPE = 26;\n char ch = (char) (isEncryption ? i - shift : i + shift);\n int index = i;\n\n if (ch >= 65 && ch <= 90) {\n while (index < 65)\n index += ALPHABET_SCOPE;\n while (index > 90)\n index -= ALPHABET_SCOPE;\n } else {\n while (index < 97)\n index += ALPHABET_SCOPE;\n while (index > 122)\n index -= ALPHABET_SCOPE;\n }\n return index;\n }",
"C5727e mo33224a();",
"static int getAnchor(int a){\n return a-((a-1)%3);\n }",
"private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }",
"public static zzcyw m29017a() {\n return f27663a;\n }",
"String mo38971b();",
"long mo20406a();",
"public void setVar36(java.lang.CharSequence value) {\n this.var36 = value;\n }",
"public final void mo7596sH(String str) {\n }",
"public String getHighestChromKey();",
"public int mo9736c(int i) {\n if (i >= 0) {\n int a = mo9732a() + i;\n int i2 = this.f9077l;\n if (a <= i2) {\n this.f9077l = a;\n mo9756A();\n return i2;\n }\n throw C3606c0.m8181h();\n }\n throw C3606c0.m8179f();\n }",
"@Override\n\tpublic void challenge17() {\n\n\t}",
"public abstract long mo9743h();",
"private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }",
"public static asw m47155c() {\n return zzfkz;\n }",
"public int mo3839u() {\n return this.f1462ak + this.f1438M;\n }",
"public abstract int mo123249h();",
"public String getAAE036() {\n return AAE036;\n }",
"private static char toHexDigit(int h) {\n char out;\n if (h <= 9) out = (char) (h + 0x30);\n else out = (char) (h + 0x37);\n //System.err.println(h + \": \" + out);\n return out;\n }",
"public static int hash(String key) {\n int result = 1;\n\n for (int i=0; i<key.length(); ++i) {\n char c = key.charAt(i);\n int c_int = (int) c; //Gjør om ved å bruke ascii-tabellen ('A' = 65, ...\n\n result = (result*31) + c_int;\n }\n\n if (result < 0) {\n result = result * -1;\n }\n\n return result;\n }",
"public long mo9743h() {\n return mo9760w();\n }",
"String mo21078i();",
"public int mo9736c(int i) {\n if (i >= 0) {\n int a = mo9732a() + i;\n int i2 = this.f9095m;\n if (a <= i2) {\n this.f9095m = a;\n mo9778A();\n return i2;\n }\n throw C3606c0.m8181h();\n }\n throw C3606c0.m8179f();\n }",
"int getAlphaMod(){\n return getPercentageValue(\"alphaMod\");\n }",
"public static void main(String[] args) {\n \t\n \tlong ashok;\n \tashok=(long)Math.pow(26,5);\n \t\n \tfor(long i=ashok;i>0;i--)\n \t{\n \t\tlong j=i;\n \t\tString s=\"\";\n \t\twhile(j>0)\n \t{\n \t\tlong sp=(j)%26;\n \t\tj=j/26;\n \t\ts+=(char)(sp+65);\n \t\t\n \t\t\n \t}\n \tSystem.out.println(s);\n \t}\n // TODO code application logic here\n }",
"public int mo9867a() {\n return this.f2526a;\n }",
"public static int convert26to10(String s) {\n if (null != s && !\"\".equals(s)) {\n int n = 0;\n char[] tmp = s.toCharArray();\n for (int i = tmp.length - 1, j = 1; i >= 0; i--, j *= 26) {\n char c = Character.toUpperCase(tmp[i]);\n if (c < 'A' || c > 'Z') return 0;\n n += ((int) c - 64) * j;\n }\n return n;\n }\n return 0;\n }",
"public static void main(String[] args) {\nString given=\"hello im jaiprashanth hw are you\";\nchar ch[]=given.toCharArray();\n\nfor(int i=0;i<ch.length;i++) {\n\tif(ch[i]==' ') {\n\tch[i+1]=(char)(ch[i+1]-32);\n\t}\nSystem.out.println(ch);\n}\n}",
"public String doHash(String str) {\n String key = \"\";\n int offset = str.charAt(0) - 'a';\n for (int i=0; i<str.length(); i++) {\n char res = str.charAt(i) - offset;\n if (res < 'a') res += 26;\n key += res;\n }\n return key;\n }",
"public abstract Integer mo36212o();",
"short digits();"
] | [
"0.65359914",
"0.64565927",
"0.62169176",
"0.57769096",
"0.56730235",
"0.55864763",
"0.5585528",
"0.5524674",
"0.5500363",
"0.5496521",
"0.5462278",
"0.5460473",
"0.5426655",
"0.5426231",
"0.54231566",
"0.5414338",
"0.5387402",
"0.5383913",
"0.53662795",
"0.5365847",
"0.53589946",
"0.5356332",
"0.53474295",
"0.5347097",
"0.5338944",
"0.53278977",
"0.53220576",
"0.5315585",
"0.5312961",
"0.5303354",
"0.5301268",
"0.52902764",
"0.52819514",
"0.5275784",
"0.52690005",
"0.5268796",
"0.5266333",
"0.52618104",
"0.5259014",
"0.52460355",
"0.52409995",
"0.5240911",
"0.5239904",
"0.5236092",
"0.52333844",
"0.5232709",
"0.523223",
"0.5231541",
"0.5226726",
"0.5217578",
"0.52163357",
"0.52049243",
"0.5191474",
"0.51842403",
"0.5181163",
"0.5175482",
"0.51605636",
"0.5157153",
"0.5152431",
"0.5150483",
"0.5132115",
"0.51297796",
"0.5127132",
"0.51141244",
"0.5108513",
"0.5108069",
"0.5106687",
"0.5106687",
"0.50989604",
"0.50968313",
"0.5092226",
"0.5083398",
"0.5083056",
"0.5078943",
"0.5077453",
"0.5075155",
"0.50718147",
"0.50717336",
"0.5071008",
"0.5069529",
"0.5068457",
"0.50671",
"0.5066507",
"0.50664246",
"0.5059722",
"0.5057651",
"0.5055556",
"0.50550896",
"0.5055077",
"0.50546116",
"0.5053722",
"0.50531393",
"0.5048271",
"0.50427604",
"0.50303924",
"0.5022213",
"0.50221926",
"0.5021665",
"0.5021231",
"0.50210935",
"0.5017812"
] | 0.0 | -1 |
/ 41: / 42: | public void setEmployee(String employee)
/* 43: */ {
/* 44:47 */ this.employee = employee;
/* 45: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }",
"@Test\r\n public void testRegexp() throws Exception {\n\r\n String a = \"a/b/100/test\";\r\n\r\n Pattern pattern = Pattern.compile(\".+/(\\\\d+)/test\");\r\n\r\n System.out.println(parseIdFromUriPath(a, pattern));\r\n\r\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }",
"@Test(timeout = 4000)\n public void test057() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"P/-a/\");\n Token token0 = xPathLexer0.slashes();\n assertEquals(\"P/\", token0.getTokenText());\n assertEquals(12, token0.getTokenType());\n }",
"void mo34677H(String str, int i, int i2);",
"public void method_4270() {}",
"dkj mo4367a(dkk dkk);",
"public void mo4683c() {\n mo4679a(3);\n }",
"public void mo9233aH() {\n }",
"@Test(timeout = 4000)\n public void test013() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":E<;\");\n xPathLexer0.nextToken();\n Token token0 = xPathLexer0.getPreviousToken();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(18, token0.getTokenType());\n }",
"void mo9075h(String str, int i, int i2);",
"@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }",
"public abstract String division();",
"@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"@Test(timeout = 4000)\n public void test41() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stem(\"4m9%dXDPbb\");\n assertEquals(\"4m9%dxdpb\", string0);\n }",
"public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }",
"public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }",
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }",
"public void mo3749d() {\n }",
"public void mo32111rr(int i) {\n }",
"private void kk12() {\n\n\t}",
"public void mo6944a() {\n }",
"public void mo23438b() {\n }",
"@Test(timeout = 4000)\n public void test165() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer();\n Token token0 = xPathLexer0.colon();\n assertEquals(18, token0.getTokenType());\n }",
"public abstract void mo4367a(int i, String str);",
"int mo5882g(String str);",
"public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }",
"public void uneHeureDePlus() {\n\t\tthis.h = h+1 > 23 ? 0 : h+1 ;\n\t}",
"public void mo21782G() {\n }",
"void mo11024a(int i, int i2, String str);",
"public void mo21789N() {\n }",
"public void mo21793R() {\n }",
"public void mo5332a(int i) {\n }",
"public void mo3350a(int i) {\n }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"@Test\n public void testSegmentationGreedyness() {\n assertMetrics(\"match:0.3717\",\"a b c\",\"a x b x x x x x x x x b c\");\n assertMetrics(\"match:0.4981\",\"a b c\",\"a x z x x x x x x x x b c\");\n }",
"public void mo21877s() {\n }",
"public static void main(String args[]) {\n\tSystem.out.println(\"1 2 + 4 * 4 2 - + = \" + execute(\"1 2 + 4 * 4 2 - +\"));\r\n\t\r\n\t// (1 + 4) * (3 + 7) / 5 == 10\r\n\t/*System.out.println(\"1 4 + 3 7 + * 5 / = \" \r\n\t\t\t + execute(\"1 4 + 3 7 + * 5 /\"));\r\n\t\r\n\t// 10 + 2 == 12\r\n\tSystem.out.println(\"10 2 + = \" \r\n\t\t\t + execute(\"10 2 +\"));\r\n\t\r\n\t// 10 / 2 == 5\r\n\tSystem.out.println(\"10 2 / = \"\r\n\t\t\t + execute(\"10 2 /\"));*/\r\n }",
"public void mo44231a(int i) {\n }",
"public void mo44053a() {\n }",
"public int mo36g() {\n return 4;\n }",
"@Test(timeout = 4000)\n public void test058() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"rV.:Q-\");\n Token token0 = xPathLexer0.slashes();\n assertEquals(11, token0.getTokenType());\n assertEquals(\"r\", token0.getTokenText());\n \n Token token1 = xPathLexer0.dots();\n assertEquals(\"V.\", token1.getTokenText());\n assertEquals(14, token1.getTokenType());\n }",
"public int mo36g() {\n return 2;\n }",
"public void prlns(int a) {\n\t\tSystem.out.println(a);\r\n\t}",
"public void mo2740a() {\n }",
"public abstract void mo70708a(String str, int i, int i2);",
"public void mo21794S() {\n }",
"private static int nextSemiColon(final String cmd)\n {\n int start = 0;\n int ret = -1;\n while (true)\n {\n ret = cmd.indexOf(';', start);\n if (ret == -1) break;\n int begin = cmd.lastIndexOf(\"BEGIN\", ret);\n int end = cmd.lastIndexOf(\"END;\", ret);\n if (begin == -1) break;\n if (end > begin) break;\n start = ret + 1;\n }\n return ret;\n }",
"public static void main(String[] args) {\npat(16);\r\nint a[]= {2,0,2};\r\nSystem.out.println(fillthewater(a));\r\npascalstri(6);\r\n\t}",
"public static void main002(String[] args) {\n\n\t\tint number\t= 20;\n\t\tSystem.out.println(\"Start = \" + number);\n\t\t\n\t\tnumber += 10;\t// number\t= number + 10;\n\t\tnumber -= 10;\t// number\t= number - 10\n\t\tnumber *= 10;\t// number\t= number * 10\n\t\tnumber /= 10;\t// number\t= number / 10\n\t\tnumber %= 10;\t// number\t= number % 10\n\t\tSystem.out.println(\"End = \" + number);\n\t}",
"void mo4872a(int i, String str);",
"@Test(timeout = 4000)\n public void test099() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"i_,r,6bt/,0{\");\n Token token0 = xPathLexer0.nextToken();\n assertEquals(15, token0.getTokenType());\n assertEquals(\"i_\", token0.getTokenText());\n }",
"public void mo21786K() {\n }",
"public static void main(String[] arg) {\n int /* The delimited comment can extend over a part of the line */ x = 42;\n System.out.printf(\"%d\",x);\n }",
"public void a(eq ☃) {}\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ public int k() {\r\n/* 55 */ return 9;\r\n/* */ }",
"void mo32046rn(int i);",
"void mo34684de(int i, int i2);",
"public void mo21779D() {\n }",
"@Override\n\tpublic void challenge10() {\n\n\t}",
"public void mo21788M() {\n }",
"private final void step4() { switch (b[k])\n\t {\n\t case 'e': if (ends(\"icate\")) { r(\"ic\"); break; }\n\t if (ends(\"ative\")) { r(\"\"); break; }\n\t if (ends(\"alize\")) { r(\"al\"); break; }\n\t break;\n\t case 'i': if (ends(\"iciti\")) { r(\"ic\"); break; }\n\t break;\n\t case 'l': if (ends(\"ical\")) { r(\"ic\"); break; }\n\t if (ends(\"ful\")) { r(\"\"); break; }\n\t break;\n\t case 's': if (ends(\"ness\")) { r(\"\"); break; }\n\t break;\n\t } }",
"void mo54446k(int i);",
"protected abstract int getFirstFrag();",
"@Test\n\tpublic void test4()\n\t{\n\t\tassertEquals(\n\t\t\t\"$webpage: {<spacex>}\",\n\t\t\texplodeRulesAndCreateString(\"webpage: spacex\")\n\t\t);\n\t}",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }",
"public static void main(String[] args)\r\n {\r\n System.out.print(\"39 + 3\");\r\n System.out.println(\"39 / 3\");\r\n System.out.println(\"This is not good.\" + \" I beg of you to stop.\");\r\n System.out.println(\"This is not good, again.\" + \"Why are we here?\")\r\n /* These are apparently comments that will not have the most incredible\r\n And these are some more of them so that we can practice\r\n */\r\n \r\n }",
"public void mo21791P() {\n }",
"public void mo23980a(int i, String str) {\n }",
"String divideAtWhite()[]{ return null; }",
"public abstract String mo24851a(String str);",
"public void mo21783H() {\n }",
"public void mo33394d() {\n mo33393c();\n mo33395e();\n }",
"public int a(String paramString)\r\n/* 454: */ {\r\n/* 455:451 */ if (paramString == null) {\r\n/* 456:452 */ return 0;\r\n/* 457: */ }\r\n/* 458:454 */ int i1 = 0;\r\n/* 459:455 */ int i2 = 0;\r\n/* 460:457 */ for (int i3 = 0; i3 < paramString.length(); i3++)\r\n/* 461: */ {\r\n/* 462:458 */ char c1 = paramString.charAt(i3);\r\n/* 463: */ \r\n/* 464:460 */ int i4 = a(c1);\r\n/* 465:461 */ if ((i4 < 0) && (i3 < paramString.length() - 1))\r\n/* 466: */ {\r\n/* 467:462 */ c1 = paramString.charAt(++i3);\r\n/* 468:464 */ if ((c1 == 'l') || (c1 == 'L')) {\r\n/* 469:465 */ i2 = 1;\r\n/* 470:466 */ } else if ((c1 == 'r') || (c1 == 'R')) {\r\n/* 471:467 */ i2 = 0;\r\n/* 472: */ }\r\n/* 473:469 */ i4 = 0;\r\n/* 474: */ }\r\n/* 475:471 */ i1 += i4;\r\n/* 476:472 */ if ((i2 != 0) && (i4 > 0)) {\r\n/* 477:473 */ i1++;\r\n/* 478: */ }\r\n/* 479: */ }\r\n/* 480:477 */ return i1;\r\n/* 481: */ }",
"void mo54436d(int i);",
"public static void main(String[] args) {\n\t\tint num = 10 + 20 -5;\n\t\t\n\t\tnum = 10 + 20/5; // 14\n\t\t\n\t\t// division goes first!\n\t\tnum = (10+20) /5 ; // 6\n\t\t\n\t\tint i = 6+3*10/6;\n\t\t// i = 6+5\n\n\t}",
"@Test(timeout = 4000)\n public void test056() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\"2zN4KMC-?7MaZH(AJF*\");\n Token token0 = xPathLexer0.identifier();\n assertEquals(15, token0.getTokenType());\n assertEquals(\"2zN4KMC-\", token0.getTokenText());\n }",
"public void mo3946e() {\n m25427g();\n }",
"private int h1(int p){\n\t\t return p % table.length;\n\t}",
"Rule IndentChar() {\n return FirstOf(Letter(), Digit(), \".\", \"_\");\n }",
"public abstract void partiallyParsedUtterance(long ms);",
"public int a_(int paramInt)\r\n/* 594: */ {\r\n/* 595:636 */ return 0;\r\n/* 596: */ }",
"@Test\n\t\tpublic void applyRecusivelyHyp() {\n\t\t\tassertSuccess(\" ;H; ;S; s⊆ℤ ;; r∈s ↔ s |- ⊥\",\n\t\t\t\t\trm(\"\", ri(\"\", ri(\"\", rm(\"2.1\", empty)))));\n\t\t}",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public void mo21787L() {\n }",
"static int getNumPatterns() { return 64; }",
"public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }",
"String d(String paramString, int paramInt)\r\n/* 613: */ {\r\n/* 614:609 */ int i1 = e(paramString, paramInt);\r\n/* 615:610 */ if (paramString.length() <= i1) {\r\n/* 616:611 */ return paramString;\r\n/* 617: */ }\r\n/* 618:614 */ String str1 = paramString.substring(0, i1);\r\n/* 619: */ \r\n/* 620:616 */ int i2 = paramString.charAt(i1);\r\n/* 621:617 */ int i3 = (i2 == 32) || (i2 == 10) ? 1 : 0;\r\n/* 622:618 */ String str2 = b(str1) + paramString.substring(i1 + (i3 != 0 ? 1 : 0));\r\n/* 623: */ \r\n/* 624:620 */ return str1 + \"\\n\" + d(str2, paramInt);\r\n/* 625: */ }",
"@Test(timeout = 4000)\n public void test072() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.literal();\n assertNotNull(token1);\n \n xPathLexer0.setPreviousToken(token1);\n assertEquals(\"]J\", token1.getTokenText());\n assertEquals(27, token1.getTokenType());\n \n Token token2 = xPathLexer0.slashes();\n assertEquals(11, token2.getTokenType());\n assertEquals(\"/\", token2.getTokenText());\n \n Token token3 = xPathLexer0.nextToken();\n assertEquals(\"L!uFQ7%)BrL\", token3.getTokenText());\n }",
"void mo56161e();",
"@Override\n\tpublic void challenge17() {\n\n\t}",
"public void testYourFourthPartition() {\n\tSystem.out.print(\"\\nTesting Fourth Partition...\\n\");\n executeTestPrintResult(\"http://abc.com?\", false); // empty \n executeTestPrintResult(\"http://abc.com?key=value\", true); \n executeTestPrintResult(\"http://abc.com?a=1&b=2&c=3\", true); // arbitrary length, letters/digits \n executeTestPrintResult(\"http://abc.com?a=1+b=2\", false); // +\n executeTestPrintResult(\"http://abc.com?a\", false); // no value\n executeTestPrintResult(\"http://abc.com?=a\", false); // no key\n executeTestPrintResult(\"?key=value\", false); // no domain \n }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"int mo54441g(int i);",
"public void mo21800a() {\n }",
"@Test\n\t/** Level 4 Thunderlord AD vs Thunderlord Arm Pen\n\t * Thunderlord + AD:\n\t * \t\t726.12 AD Dealt\n\t * \t\t47.59 AP Dealt\n\t * \t\tArmor Reduction: 88%\n\t * Thunderlord + Full Arm Pen Runes\n\t * \t\t632.02 AD Dealt\n\t * \t\t43 AP Dealt\n\t * \t\tArmor Reduction: 88%\n\t * \t\tFlat Armor Pen: 19.2\n\t */\n\tpublic void testThunderlordArmPen() {\n\t}"
] | [
"0.5341317",
"0.52096474",
"0.5205457",
"0.5161731",
"0.51383066",
"0.5012722",
"0.4937671",
"0.49333248",
"0.48979363",
"0.48871312",
"0.48799226",
"0.48746786",
"0.48724476",
"0.48663735",
"0.48439127",
"0.48427773",
"0.48387632",
"0.48075563",
"0.48029733",
"0.48008916",
"0.48006642",
"0.47985932",
"0.47980297",
"0.47874838",
"0.47861797",
"0.47784054",
"0.47714335",
"0.47508243",
"0.4746389",
"0.4745976",
"0.4742146",
"0.4734572",
"0.47334826",
"0.47294113",
"0.47278848",
"0.47268397",
"0.47209263",
"0.47161105",
"0.4712855",
"0.4707926",
"0.46913373",
"0.4685597",
"0.46738088",
"0.46703038",
"0.46620074",
"0.4660605",
"0.46542963",
"0.46471643",
"0.46457192",
"0.46335053",
"0.46292788",
"0.46291417",
"0.4628293",
"0.4627797",
"0.46275976",
"0.46272123",
"0.4622548",
"0.4614108",
"0.4612015",
"0.4610814",
"0.46089822",
"0.46014324",
"0.45966548",
"0.45944232",
"0.45942444",
"0.45909637",
"0.45837042",
"0.45790005",
"0.45727846",
"0.4569724",
"0.4567999",
"0.45649382",
"0.45649216",
"0.45633757",
"0.4558954",
"0.45581463",
"0.4557556",
"0.45569947",
"0.45536724",
"0.4552836",
"0.45474404",
"0.45455924",
"0.4544912",
"0.4541744",
"0.45406416",
"0.45399937",
"0.45363757",
"0.45360163",
"0.45353472",
"0.45350346",
"0.45344958",
"0.45339406",
"0.4533598",
"0.45334935",
"0.4530174",
"0.45264828",
"0.4526019",
"0.4525655",
"0.4521041",
"0.45194614",
"0.4515882"
] | 0.0 | -1 |
/ 46: / 47: | public Integer getPresentDays()
/* 48: */ {
/* 49:51 */ return this.presentDays;
/* 50: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"public void mo3749d() {\n }",
"private void m50366E() {\n }",
"private void m50367F() {\n }",
"public void mo6944a() {\n }",
"public void mo21792Q() {\n }",
"public void mo21779D() {\n }",
"public void mo56167c() {\n }",
"public void mo44053a() {\n }",
"public final void mo91715d() {\n }",
"public void mo4359a() {\n }",
"public void mo21782G() {\n }",
"public void m23075a() {\n }",
"public void mo2740a() {\n }",
"public void mo9233aH() {\n }",
"public void mo21781F() {\n }",
"public void mo23813b() {\n }",
"public void mo4683c() {\n mo4679a(3);\n }",
"public void mo97908d() {\n }",
"public void mo5248a() {\n }",
"public void mo21878t() {\n }",
"public void mo12930a() {\n }",
"void mo57277b();",
"public void mo115188a() {\n }",
"public void mo38117a() {\n }",
"public void mo21877s() {\n }",
"public void skystonePos6() {\n }",
"public void mo21785J() {\n }",
"void m1864a() {\r\n }",
"void mo56161e();",
"public void mo97906c() {\n }",
"static void method_461() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void mo2471e() {\n }",
"public void mo21783H() {\n }",
"public void skystonePos4() {\n }",
"public void mo21879u() {\n }",
"public void mo9848a() {\n }",
"public void mo21787L() {\n }",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"static void feladat9() {\n\t}",
"void mo41083a();",
"public void mo21794S() {\n }",
"public final void mo51373a() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"void mo54405a();",
"public void mo23438b() {\n }",
"public void mo2470d() {\n }",
"public void mo21791P() {\n }",
"public int method_113() {\r\n return 0;\r\n }",
"public int a() {\r\n/* 63 */ return 4;\r\n/* */ }",
"void mo54435d();",
"void m5770d() throws C0841b;",
"public void mo9137b() {\n }",
"public void mo21789N() {\n }",
"public void mo21795T() {\n }",
"public void mo21825b() {\n }",
"public void mo1405e() {\n }",
"public void mo42331g() {\n mo42335f();\n }",
"public void mo3376r() {\n }",
"void mo72113b();",
"void mo80452a();",
"public void mo21793R() {\n }",
"public void mo21800a() {\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public void mo21786K() {\n }",
"public void mo115190b() {\n }",
"void mo21073d();",
"public void mo8738a() {\n }",
"protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void mo5382o() {\n }",
"private void kk12() {\n\n\t}",
"static void feladat6() {\n\t}",
"public final void mo11687c() {\n }",
"void mo9693a();",
"public void mo21780E() {\n }",
"void mo72114c();",
"public void mo55254a() {\n }",
"void mo57278c();",
"public void mo12628c() {\n }",
"public abstract void mo56925d();",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void mo3946e() {\n m25427g();\n }",
"public void mo9241ay() {\n }",
"void mo119582b();",
"public void mo21788M() {\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 }",
"void mo80457c();",
"void m5771e() throws C0841b;",
"void mo56163g();",
"public void mo21784I() {\n }",
"void mo17023d();",
"void mo17013d();",
"public void mo1531a() {\n }",
"protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }",
"public void method_191() {}"
] | [
"0.62225187",
"0.6196798",
"0.6182217",
"0.60921586",
"0.60875773",
"0.5987154",
"0.59844154",
"0.595278",
"0.5903989",
"0.58754444",
"0.58401626",
"0.58318335",
"0.5829085",
"0.5819841",
"0.5814654",
"0.58055794",
"0.58030266",
"0.57910573",
"0.577479",
"0.5747162",
"0.57458234",
"0.57348615",
"0.573072",
"0.5726496",
"0.57207817",
"0.5703906",
"0.5702898",
"0.56863767",
"0.5682068",
"0.567332",
"0.56634825",
"0.56572926",
"0.56468964",
"0.5639479",
"0.5639405",
"0.56377625",
"0.56290895",
"0.56212795",
"0.5618874",
"0.561657",
"0.56139314",
"0.5604836",
"0.55843556",
"0.55794656",
"0.55758446",
"0.5572135",
"0.55589217",
"0.55588424",
"0.55577415",
"0.5555279",
"0.55537874",
"0.5546389",
"0.5544907",
"0.5544508",
"0.55375576",
"0.5536846",
"0.55336034",
"0.5530444",
"0.5526034",
"0.55188644",
"0.55176586",
"0.5513177",
"0.5511872",
"0.5503031",
"0.5497898",
"0.548618",
"0.5481228",
"0.5480311",
"0.5476452",
"0.5470992",
"0.54669875",
"0.5466796",
"0.54667926",
"0.5463101",
"0.54609364",
"0.545816",
"0.54453146",
"0.54398644",
"0.54383564",
"0.5436036",
"0.5425386",
"0.5424527",
"0.5417809",
"0.54173505",
"0.5417338",
"0.54118156",
"0.54118156",
"0.54118156",
"0.54118156",
"0.54118156",
"0.54118156",
"0.54118156",
"0.5411366",
"0.54060876",
"0.5405826",
"0.54051",
"0.5400857",
"0.5400241",
"0.5398415",
"0.5395107",
"0.53929746"
] | 0.0 | -1 |
/ 51: / 52: | public void setPresentDays(Integer presentDays)
/* 53: */ {
/* 54:55 */ this.presentDays = presentDays;
/* 55: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo21783H() {\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 }",
"private void m50366E() {\n }",
"private void m50367F() {\n }",
"public int mo36g() {\n return 8;\n }",
"public int mo36g() {\n return 4;\n }",
"public void mo6081a() {\n }",
"public void mo21782G() {\n }",
"public void mo21877s() {\n }",
"public void mo55254a() {\n }",
"public void mo3749d() {\n }",
"void mo1506m();",
"void mo1507n();",
"public void mo21794S() {\n }",
"C4945r5 mo19056B();",
"public void mo2470d() {\n }",
"public void mo12628c() {\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public void mo21788M() {\n }",
"public int mo36g() {\n return 2;\n }",
"public void mo12930a() {\n }",
"public void mo9233aH() {\n }",
"public void mo21786K() {\n }",
"public void mo3376r() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public final int mo50059a() {\n return 2;\n }",
"public void mo44053a() {\n }",
"C4945r5 mo19057F();",
"private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }",
"public abstract Integer mo36210m();",
"public void mo3370l() {\n }",
"C1458cs mo7613iS();",
"public abstract int mo9754s();",
"public void mo5382o() {\n }",
"public int arn() {\n return 383;\n }",
"public void mo38117a() {\n }",
"void mo1763h(int i);",
"void mo12650d();",
"public void mo21779D() {\n }",
"void mo304a(C0366h c0366h);",
"public void mo21791P() {\n }",
"public void mo21879u() {\n }",
"public void mo9848a() {\n }",
"void mo1943l();",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"void mo21076g();",
"public void mo21789N() {\n }",
"public void mo23813b() {\n }",
"public void mo21787L() {\n }",
"public void mo5097b() {\n }",
"bdm mo1784a(akh akh);",
"public abstract String mo9751p();",
"public void mo5248a() {\n }",
"public static int m8651d() {\n return 4;\n }",
"void mo1501h();",
"private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }",
"public void mo21867i() {\n mo21877s();\n }",
"public int mo4451d() {\n this.f2519d = 0;\n int i = 0;\n int i2 = 0;\n int i3 = 0;\n while (this.f2519d < this.f2518c && i == 0) {\n byte b = mo4450b();\n if (b != 0) {\n if (b == 1 || b == 2) {\n if (i3 == 0) {\n return 1;\n }\n } else if (b != 9) {\n switch (b) {\n case 14:\n case 15:\n i3++;\n i2 = -1;\n continue;\n case 16:\n case 17:\n i3++;\n i2 = 1;\n continue;\n case 18:\n i3--;\n i2 = 0;\n continue;\n }\n }\n } else if (i3 == 0) {\n return -1;\n }\n i = i3;\n }\n if (i == 0) {\n return 0;\n }\n if (i2 != 0) {\n return i2;\n }\n while (this.f2519d > 0) {\n switch (mo4449a()) {\n case 14:\n case 15:\n if (i == i3) {\n return -1;\n }\n break;\n case 16:\n case 17:\n if (i == i3) {\n return 1;\n }\n break;\n case 18:\n i3++;\n continue;\n }\n i3--;\n }\n return 0;\n }",
"public void mo21780E() {\n }",
"void mo60893b();",
"void mo1761g(int i);",
"public void mo21785J() {\n }",
"void mo80452a();",
"public void mo21781F() {\n }",
"void mo21072c();",
"public void method_4270() {}",
"C3676k mo12649b();",
"C20254v mo54454s(int i);",
"public void mo21878t() {\n }",
"public int mo34973b() {\n return 48;\n }",
"void mo54446k(int i);",
"public abstract int mo9749n();",
"public void mo21825b() {\n }",
"public void mo2471e() {\n }",
"void mo12637b();",
"public void mo56167c() {\n }",
"public void mo5099c() {\n }",
"void mo21070b();",
"public void m23075a() {\n }",
"public void mo4359a() {\n }",
"static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public void mo21800a() {\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"void mo41083a();",
"public int mo4452e() {\n /*\n r7 = this;\n int r0 = r7.f2518c\n r7.f2519d = r0\n r0 = 0\n r1 = 0\n r2 = 0\n L_0x0007:\n int r3 = r7.f2519d\n if (r3 <= 0) goto L_0x003b\n byte r3 = r7.mo4449a()\n r4 = -1\n if (r3 == 0) goto L_0x0034\n r5 = 1\n if (r3 == r5) goto L_0x002e\n r6 = 2\n if (r3 == r6) goto L_0x002e\n r6 = 9\n if (r3 == r6) goto L_0x0007\n switch(r3) {\n case 14: goto L_0x0028;\n case 15: goto L_0x0028;\n case 16: goto L_0x0025;\n case 17: goto L_0x0025;\n case 18: goto L_0x0022;\n default: goto L_0x001f;\n }\n L_0x001f:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0022:\n int r1 = r1 + 1\n goto L_0x0007\n L_0x0025:\n if (r2 != r1) goto L_0x002b\n return r5\n L_0x0028:\n if (r2 != r1) goto L_0x002b\n return r4\n L_0x002b:\n int r1 = r1 + -1\n goto L_0x0007\n L_0x002e:\n if (r1 != 0) goto L_0x0031\n return r5\n L_0x0031:\n if (r2 != 0) goto L_0x0007\n goto L_0x0039\n L_0x0034:\n if (r1 != 0) goto L_0x0037\n return r4\n L_0x0037:\n if (r2 != 0) goto L_0x0007\n L_0x0039:\n r2 = r1\n goto L_0x0007\n L_0x003b:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: androidx.core.text.BidiFormatter.C0510a.mo4452e():int\");\n }",
"private void kk12() {\n\n\t}",
"public void mo4683c() {\n mo4679a(3);\n }",
"protected void mo6255a() {\n }",
"public void mo1531a() {\n }",
"public void mo21793R() {\n }",
"public final void mo92082N() {\n }",
"public void mo21784I() {\n }",
"private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }",
"C7562b<C10403b, C10328a> mo25041a();",
"C7904c mo24084a();"
] | [
"0.6011063",
"0.592115",
"0.592115",
"0.592115",
"0.592115",
"0.592115",
"0.592115",
"0.592115",
"0.59008324",
"0.5899904",
"0.5895328",
"0.5884135",
"0.5877814",
"0.58709264",
"0.58522165",
"0.5848674",
"0.58455974",
"0.5836744",
"0.5829192",
"0.5826001",
"0.58181417",
"0.5817495",
"0.5809672",
"0.5763404",
"0.5757391",
"0.57533115",
"0.5751746",
"0.57401216",
"0.5738362",
"0.5709917",
"0.57070494",
"0.5706851",
"0.5706132",
"0.5699041",
"0.56958884",
"0.56869197",
"0.5683596",
"0.56798625",
"0.5656948",
"0.56515867",
"0.5646259",
"0.5641046",
"0.5634112",
"0.56335896",
"0.5620953",
"0.5619825",
"0.56124234",
"0.56114155",
"0.5609076",
"0.5598696",
"0.55969137",
"0.5596525",
"0.5596061",
"0.5595424",
"0.5589197",
"0.5588885",
"0.5586107",
"0.558424",
"0.55779094",
"0.55775934",
"0.5574246",
"0.5573646",
"0.5570235",
"0.55676883",
"0.55616283",
"0.5560762",
"0.55582327",
"0.55577105",
"0.5555947",
"0.555412",
"0.5550927",
"0.55475414",
"0.5544284",
"0.55423915",
"0.5541869",
"0.5539369",
"0.5533518",
"0.55314845",
"0.5530457",
"0.5530349",
"0.55299366",
"0.55252105",
"0.5522659",
"0.55206364",
"0.5516235",
"0.5511705",
"0.5506756",
"0.5505213",
"0.55045205",
"0.5504445",
"0.5504135",
"0.55016583",
"0.55000687",
"0.5499262",
"0.54975015",
"0.5495696",
"0.54895955",
"0.5485442",
"0.5480029",
"0.54788405",
"0.54773253"
] | 0.0 | -1 |
/ 56: / 57: | public Integer getAbsentDays()
/* 58: */ {
/* 59:59 */ return this.absentDays;
/* 60: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }",
"public int mo34973b() {\n return 48;\n }",
"public int mo36g() {\n return 8;\n }",
"public int mo36g() {\n return 4;\n }",
"private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }",
"@Test(timeout = 4000)\n public void test60() throws Throwable {\n PipedWriter pipedWriter0 = new PipedWriter();\n PipedReader pipedReader0 = new PipedReader(pipedWriter0);\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 752.0;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"752\", string0);\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"@Test(timeout = 4000)\n public void test38() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 744.4583836715912;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n streamTokenizer0.ordinaryChar((-45));\n String string1 = SQLUtil.normalize(\"744.4583836715912\", false);\n assertTrue(string1.equals((Object)string0));\n }",
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }",
"private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }",
"@Test\n public void fixedTests() {\n assertEquals(69978 , Day02.parseInt(\"sixty nine thousand nine hundred seventy eight\"));\n }",
"public int mo36g() {\n return 2;\n }",
"public int mo3356c() {\n return 0;\n }",
"void mo5875b(String str, long j);",
"private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }",
"@Test(timeout = 4000)\n public void test56() throws Throwable {\n String string0 = SQLUtil.normalize(\")]*/f/f2Nx{fI.* \", false);\n assertEquals(\") ] */ f / f2Nx { fI.*\", string0);\n }",
"short digits();",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public static int m8655e() {\n return 8;\n }",
"public int mo1534c() {\n return 2;\n }",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"@Test(timeout = 4000)\n public void test054() throws Throwable {\n StringReader stringReader0 = new StringReader(\"ri/eKZUUk8oH\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 66, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(\"ri\", token0.toString());\n }",
"private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }",
"C1458cs mo7613iS();",
"public final int mo65709f() {\n return 2;\n }",
"String mo21078i();",
"@Test(timeout = 4000)\n public void test078() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"- 0\", string0);\n }",
"public final int mo65710g() {\n return 1;\n }",
"C15430g mo56154a();",
"public final void mo7596sH(String str) {\n }",
"int mo5882g(String str);",
"public short mo34e() {\n return 41;\n }",
"int mo1756e(int i);",
"static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"@Test(timeout = 4000)\n public void test164() throws Throwable {\n StringReader stringReader0 = new StringReader(\"4+i\\\"{\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 47, 47, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(47, javaCharStream0.getColumn());\n }",
"@Test\n\tvoid testDecodeWays() {\n\t\tassertEquals(2, new DecodeWays().numDecodings(\"12\"));\n\t\tassertEquals(3, new DecodeWays().numDecodings(\"226\"));\n\t\tassertEquals(0, new DecodeWays().numDecodings(\"00\"));\n\t\tassertEquals(0, new DecodeWays().numDecodings(\"01\"));\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }",
"public void testDIGITS6() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 243, \"one\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"int mo23349e(String str, String str2);",
"@Test(timeout = 4000)\n public void test056() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.backup(416);\n javaCharStream0.BeginToken();\n javaCharStream0.adjustBeginLineColumn(416, 416);\n assertEquals(3680, javaCharStream0.bufpos);\n }",
"public String digit(String digit);",
"@Test(timeout = 4000)\n public void test096() throws Throwable {\n StringReader stringReader0 = new StringReader(\"q,rv8PAfKjbSw`H(r\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-3465), (-2086));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(\"q\", token0.toString());\n assertEquals(74, token0.kind);\n }",
"public void mo9824b(String str) {\n int i;\n int i2;\n try {\n int length = str.length() * 3;\n int i3 = C3670m.m8671i(length);\n int i4 = i3 + length;\n if (i4 > this.f9107e) {\n byte[] bArr = new byte[length];\n int a = C3700r1.m8885a(str, bArr, 0, length);\n mo9814c(a);\n mo9826b(bArr, 0, a);\n return;\n }\n if (i4 > this.f9107e - this.f9108f) {\n mo9827i();\n }\n int i5 = C3670m.m8671i(str.length());\n i = this.f9108f;\n if (i5 == i3) {\n int i6 = i + i5;\n this.f9108f = i6;\n int a2 = C3700r1.m8885a(str, this.f9106d, i6, this.f9107e - i6);\n this.f9108f = i;\n i2 = (a2 - i) - i5;\n mo9820l(i2);\n this.f9108f = a2;\n } else {\n i2 = C3700r1.m8884a((CharSequence) str);\n mo9820l(i2);\n this.f9108f = C3700r1.m8885a(str, this.f9106d, this.f9108f, i2);\n }\n this.f9109g += i2;\n } catch (C3703c e) {\n this.f9109g -= this.f9108f - i;\n this.f9108f = i;\n throw e;\n } catch (ArrayIndexOutOfBoundsException e2) {\n throw new C3674d(e2);\n } catch (C3703c e3) {\n mo9808a(str, e3);\n }\n }",
"@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }",
"@Test(timeout = 4000)\n public void test056() throws Throwable {\n StringReader stringReader0 = new StringReader(\"D!%cD=EVjn`\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.getEndColumn());\n assertEquals(\"%\", token0.toString());\n }",
"long mo1154d();",
"@Test(timeout = 4000)\n public void test158() throws Throwable {\n StringReader stringReader0 = new StringReader(\".0*yBK7wQ\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1997, 1997);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(1998, javaCharStream0.getEndColumn());\n }",
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n StringReader stringReader0 = new StringReader(\"*22Wt+'F\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1142), 109);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"*\", token0.toString());\n }",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"@Test(timeout = 4000)\n public void test058() throws Throwable {\n StringReader stringReader0 = new StringReader(\";{\\\"9n/s(2C'#tQX*\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n byte[] byteArray0 = new byte[8];\n byteArray0[0] = (byte)115;\n byteArray0[1] = (byte)93;\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n javaCharStream0.ReInit((InputStream) byteArrayInputStream0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"s\", token0.toString());\n }",
"int mo5867a(String str, long j);",
"float mo56157b();",
"@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickEFP((-2147), 10, 10, \".^|7={wR>bl,rlfYN\", 10, 484, \".^|7={wR>bl,rlfYN\", 484, 484);\n assertEquals(\"id=-2147 bidOptComp: basisPoints = 10.0/.^|7={wR>bl,rlfYN impliedFuture = 10.0 holdDays = 484 futureExpiry = .^|7={wR>bl,rlfYN dividendImpact = 484.0 dividends to expiry = 484.0\", string0);\n }",
"@Test\n public void testDigits() {\n final String result = calc.type(\"1 + 2 - 3\")\n .press_equalBtn()\n .result();\n\n Assert.assertEquals(result, \"0\");\n }",
"public int mo29670a(String str) {\n int length = str.length();\n int i = this.f19526c;\n for (int i2 = 0; i2 < length; i2++) {\n i = (i * 33) + str.charAt(i2);\n }\n if (i == 0) {\n return 1;\n }\n return i;\n }",
"public void testDIGITS2() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 239, \"12\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"@Test(timeout = 4000)\n public void test45() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateMktDepthL2(2146794261, 927, \"@\", 2146889800, (-180), 2146794261, (-1940));\n assertEquals(\"updateMktDepth: 2146794261 927 @ 2146889800 -180 2.146794261E9 -1940\", string0);\n }",
"int mo5878d();",
"long mo1685a(C2369e c2369e);",
"public final void mo56356d(String str) {\n C7573i.m23587b(str, \"msg\");\n this.f56252a.mo38743d(str);\n }",
"public int mo8854a() {\n return mo8857b();\n }",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"@Test(timeout = 4000)\n public void test084() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"- 0\", string0);\n }",
"public void testDIGITS5() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 242, \"\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }",
"public short mo34e() {\n return 140;\n }",
"@Test\n public void testRedundant2version() {\n String ver2 = Textile.straighten_weft2(\"aad.bbd+d*ac\");\n assertEquals(\"d.bbac\",ver2);\n }",
"public int mo9754s() {\n return mo9774x();\n }",
"@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }",
"@Test(timeout = 4000)\n public void test52() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSize(6372, 3, 2146363568);\n assertEquals(\"id=6372 askSize=2146363568\", string0);\n }",
"public String getDv43(String numero) {\r\n \r\n int total = 0;\r\n int fator = 2;\r\n \r\n int numeros, temp;\r\n \r\n for (int i = numero.length(); i > 0; i--) {\r\n \r\n numeros = Integer.parseInt( numero.substring(i-1,i) );\r\n \r\n temp = numeros * fator;\r\n if (temp > 9) temp=temp-9; // Regra do banco NossaCaixa\r\n \r\n total += temp;\r\n \r\n // valores assumidos: 212121...\r\n fator = (fator % 2) + 1;\r\n }\r\n \r\n int resto = total % 10;\r\n \r\n if (resto > 0)\r\n resto = 10 - resto;\r\n \r\n return String.valueOf( resto );\r\n \r\n }",
"long getUnknown72();",
"public final byte mo27873c() {\n return 6;\n }",
"int method20()\n {\n return 579190;\n }",
"private void m6556g() {\n m6561c();\n m6557h();\n m6558i();\n }",
"public short mo34e() {\n return 15;\n }",
"@Test(timeout = 4000)\n public void test018() throws Throwable {\n byte[] byteArray0 = new byte[6];\n byteArray0[0] = (byte)43;\n byteArray0[1] = (byte) (-110);\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"+\", token0.toString());\n }",
"@Test\n @Tag(\"slow\")\n public void test25FV47() {\n CuteNetlibCase.doTest(\"25FV47.SIF\", \"5501.845888286646\", null, NumberContext.of(7, 4));\n }",
"private byte m1653f() {\n char charAt;\n int i = this.f2519d;\n do {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n charAt = charSequence.charAt(i3);\n this.f2520e = charAt;\n if (charAt == '&') {\n return 12;\n }\n } while (charAt != ';');\n this.f2519d = i;\n this.f2520e = ';';\n return 13;\n }",
"public void mo4683c() {\n mo4679a(3);\n }",
"@Test\n\tpublic void test_doubleANumber() {\n\t\t\n\t}",
"public void testDIGITS4() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 241, \"0.1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"String mo30285c(long j);",
"@Test(timeout = 4000)\n public void test118() throws Throwable {\n int int0 = JavaCharStream.hexval('6');\n assertEquals(6, int0);\n }",
"@Test\n public void NineAndMissExpected_90(){\n String input = \"9-9-9-9-9-9-9-9-9-9-\";\n assertEquals(game.scoreOfGame(input),90);\n }",
"@Test(timeout = 4000)\n public void test69() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = (-2200.896);\n SQLUtil.renderNumber(streamTokenizer0);\n DBCatalog dBCatalog0 = new DBCatalog(\"TVsUO&^)F[AT_z+%R#\");\n assertNull(dBCatalog0.getDoc());\n }",
"long mo107678c(Integer num);",
"@Test\n\tpublic void repeatingIndexOfLastDigitTest() {\n\t\tAssert.assertTrue(ifn.repeatingIndexOfLastDigit() == 60);\n\t}",
"@Test(timeout = 4000)\n public void test097() throws Throwable {\n String string0 = JSONObject.doubleToString((-22654515));\n assertEquals(\"-2.2654515E7\", string0);\n }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n StringReader stringReader0 = new StringReader(\"^z{b>wblu8^IJ+?\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 47, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(47, javaCharStream0.getColumn());\n }",
"public final void mo34956xd(String str) {\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public static int numDecodings_orig(String s) {\n\n if (s == null || s.length() == 0) {\n return 0;\n }\n\n char[] nums = s.toCharArray();\n int[] memos = new int[nums.length];\n memos[nums.length-1] = nums[nums.length-1] != '0' ? 1 : 0;\n for (int i = nums.length-2; i >= 0; i--) {\n int numAtI = nums[i+0]-'0';\n int numAtI_1 = nums[i+1]-'0';\n\n if (numAtI > 2 || (numAtI == 2 && numAtI_1 > 6)) {\n memos[i] = memos[i+1];\n } else if (numAtI == 1 || (numAtI == 2 && numAtI_1 <= 6)) {\n if (i < nums.length-2) {\n memos[i] = memos[i+1] + memos[i+2];\n } else {\n memos[i] = memos[i+1] + 1;\n }\n }\n }\n\n return memos[0];\n }",
"@Test(timeout = 4000)\n public void test41() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickGeneric(13, 48, (-2212.2532659315993));\n assertEquals(\"id=13 RTVolume=-2212.2532659315993\", string0);\n }",
"static int getNumPatterns() { return 64; }",
"public int arn() {\n return 383;\n }",
"public int mo9754s() {\n return mo9761x();\n }",
"@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }",
"void mo64942a(String str, long j, long j2);",
"@Test(timeout = 4000)\n public void test112() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+Y6{Tr P>D9wb\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 44, 21, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(22, javaCharStream0.getBeginColumn());\n assertEquals(74, token0.kind);\n }",
"private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }"
] | [
"0.61619836",
"0.61381924",
"0.5925535",
"0.59093827",
"0.5889382",
"0.58681315",
"0.58660483",
"0.5840844",
"0.5797282",
"0.5782404",
"0.5723484",
"0.571404",
"0.57015324",
"0.56341034",
"0.56239974",
"0.56151545",
"0.5564989",
"0.55623686",
"0.55430996",
"0.55348754",
"0.5512783",
"0.5504417",
"0.54850173",
"0.54700834",
"0.546557",
"0.54647285",
"0.5438481",
"0.5433604",
"0.54321873",
"0.542931",
"0.54172856",
"0.5410041",
"0.5408121",
"0.53938913",
"0.5389083",
"0.53818893",
"0.5381312",
"0.53684855",
"0.5367435",
"0.5364649",
"0.53583086",
"0.5354194",
"0.53524095",
"0.5351777",
"0.5346723",
"0.53431696",
"0.53416926",
"0.53414285",
"0.53360933",
"0.53344357",
"0.53303844",
"0.53296965",
"0.5327836",
"0.5323151",
"0.53203446",
"0.5314989",
"0.5312754",
"0.53096616",
"0.5307439",
"0.53044194",
"0.5289678",
"0.5288889",
"0.5285739",
"0.52829516",
"0.5280475",
"0.52773666",
"0.52772856",
"0.5277253",
"0.52765256",
"0.5272428",
"0.52689624",
"0.5261446",
"0.52596575",
"0.52591115",
"0.5256414",
"0.5254589",
"0.5249742",
"0.52483904",
"0.5247493",
"0.5243787",
"0.5242256",
"0.5240447",
"0.5238866",
"0.5237149",
"0.5235921",
"0.5232549",
"0.5231173",
"0.5227682",
"0.5227146",
"0.52252907",
"0.5221961",
"0.5220646",
"0.5213377",
"0.52122074",
"0.5208859",
"0.5206115",
"0.5205041",
"0.52041537",
"0.5204066",
"0.5196348",
"0.5195031"
] | 0.0 | -1 |
/ 61: / 62: | public void setAbsentDays(Integer absentDays)
/* 63: */ {
/* 64:63 */ this.absentDays = absentDays;
/* 65: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo33731Pw();",
"private static char[] m619z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 20);\n }\n return toCharArray;\n }",
"public int mo36g() {\n return 8;\n }",
"void mo5875b(String str, long j);",
"public int mo3361f() {\n return 1;\n }",
"public int mo36g() {\n return 4;\n }",
"public static int m8655e() {\n return 8;\n }",
"public int mo36g() {\n return 2;\n }",
"private static char[] m6491z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 108);\n }\n return toCharArray;\n }",
"private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }",
"private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }",
"private long m10267c(long j) {\r\n return (j << 1) ^ (j >> 63);\r\n }",
"String mo30285c(long j);",
"int mo5867a(String str, long j);",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"private int m10266c(int i) {\r\n return (i << 1) ^ (i >> 31);\r\n }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n StringReader stringReader0 = new StringReader(\"^z{b>wblu8^IJ+?\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 47, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(47, javaCharStream0.getColumn());\n }",
"@Test(timeout = 4000)\n public void test054() throws Throwable {\n StringReader stringReader0 = new StringReader(\"ri/eKZUUk8oH\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 66, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(\"ri\", token0.toString());\n }",
"private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }",
"private static char[] m3268z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 18);\n }\n return toCharArray;\n }",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"public final int mo6465d() {\n return 19729000;\n }",
"private long m682c(long j) {\n return (j >> 63) ^ (j << 1);\n }",
"@Override\n\tpublic void challenge11() {\n\n\t}",
"public abstract long mo13681c();",
"@Test(timeout = 4000)\n public void test118() throws Throwable {\n int int0 = JavaCharStream.hexval('6');\n assertEquals(6, int0);\n }",
"public int mo29670a(String str) {\n int length = str.length();\n int i = this.f19526c;\n for (int i2 = 0; i2 < length; i2++) {\n i = (i * 33) + str.charAt(i2);\n }\n if (i == 0) {\n return 1;\n }\n return i;\n }",
"@Override\n\tpublic void challenge9() {\n\n\t}",
"public abstract long mo9229aD();",
"@Test(timeout = 4000)\n public void test119() throws Throwable {\n int int0 = JavaCharStream.hexval('5');\n assertEquals(5, int0);\n }",
"private int m681c(int i) {\n return (i >> 31) ^ (i << 1);\n }",
"private int m145807c(int i) {\n int i2 = this.f119502d;\n this.f119502d = i2 + 1;\n return i | (i2 << 8);\n }",
"public abstract int mo9736c(int i);",
"Aweme mo62993e();",
"public static long m8659e(long j) {\n return (j >> 63) ^ (j << 1);\n }",
"@Test(timeout = 4000)\n public void test079() throws Throwable {\n StringReader stringReader0 = new StringReader(\"f6&^~-)+L]\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.getBeginColumn());\n assertEquals(\"&\", token0.toString());\n }",
"public abstract long mo9755t();",
"@Test(timeout = 4000)\n public void test023() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Gnzd86`;Gs=\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 14, 4094, 4075);\n javaCharStream0.BeginToken();\n int int0 = javaCharStream0.getEndColumn();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(4094, int0);\n }",
"@Test(timeout = 4000)\n public void test122() throws Throwable {\n int int0 = JavaCharStream.hexval('2');\n assertEquals(2, int0);\n }",
"private static boolean m55561ua(int i) {\n return i == 6;\n }",
"private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }",
"private static long m22586i(long j) {\n return (j >> 63) ^ (j << 1);\n }",
"@Test(timeout = 4000)\n public void test096() throws Throwable {\n StringReader stringReader0 = new StringReader(\"q,rv8PAfKjbSw`H(r\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-3465), (-2086));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(\"q\", token0.toString());\n assertEquals(74, token0.kind);\n }",
"public int m9737f() {\r\n return this.f6260b;\r\n }",
"void mo64942a(String str, long j, long j2);",
"private static int initHash() {\n return 0x811c9DC5; // unsigned 2166136261\n }",
"public java.lang.Integer getVar61() {\n return var61;\n }",
"@Test(timeout = 4000)\n public void test128() throws Throwable {\n StringReader stringReader0 = new StringReader(\"D!tcbD=EVjn`\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-7), 6);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(\"D\", token0.toString());\n assertEquals(74, token0.kind);\n }",
"public java.lang.Integer getVar61() {\n return var61;\n }",
"protected int mo3987c() {\n return -1;\n }",
"public final byte mo27873c() {\n return 6;\n }",
"@Override\n\tpublic void challenge6() {\n\n\t}",
"@Test(timeout = 4000)\n public void test104() throws Throwable {\n int int0 = JavaCharStream.hexval('D');\n assertEquals(13, int0);\n }",
"private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }",
"public final void mo75262ac() {\n super.mo75262ac();\n m110455aC();\n m110453aA();\n m110465az();\n }",
"String mo20731c();",
"public abstract long mo9743h();",
"@Test(timeout = 4000)\n public void test117() throws Throwable {\n int int0 = JavaCharStream.hexval('7');\n assertEquals(7, int0);\n }",
"public int mo34973b() {\n return 48;\n }",
"@Test(timeout = 4000)\n public void test058() throws Throwable {\n StringReader stringReader0 = new StringReader(\";{\\\"9n/s(2C'#tQX*\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n byte[] byteArray0 = new byte[8];\n byteArray0[0] = (byte)115;\n byteArray0[1] = (byte)93;\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n javaCharStream0.ReInit((InputStream) byteArrayInputStream0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"s\", token0.toString());\n }",
"@Test(timeout = 4000)\n public void test159() throws Throwable {\n StringReader stringReader0 = new StringReader(\"x/C9mX)\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-2632), (-2632));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals((-2631), javaCharStream0.getEndColumn());\n }",
"public final int mo65710g() {\n return 1;\n }",
"C1458cs mo7613iS();",
"public abstract long mo9748m();",
"@Test(timeout = 4000)\n public void test103() throws Throwable {\n int int0 = JavaCharStream.hexval('E');\n assertEquals(14, int0);\n }",
"public int mo1534c() {\n return 2;\n }",
"@Override\n\tpublic void challenge10() {\n\n\t}",
"void mo25957a(long j, long j2);",
"public static String hashLogin () {\r\n String log = LoginWindow.login.getText();\r\n int hashLogin = 0;\r\n byte[] logByte = log.getBytes();\r\n for (int i=0; i<logByte.length; i++){\r\n hashLogin = logByte[i]*10;\r\n //System.out.print(logByte[i]);\r\n //System.out.print(hashLogin);\r\n }\r\n\r\n return String.valueOf(hashLogin);\r\n\r\n }",
"private int getValueFromBase64Alphabet(char character)\r\n {\r\n if (character >= 'A' && character <= 'Z')\r\n {\r\n return character - 'A';\r\n }\r\n if (character >= 'a' && character <= 'z')\r\n {\r\n return character - 'a' + 26;\r\n }\r\n if (character >= '0' && character <= '9')\r\n {\r\n return character - '0' + 52;\r\n }\r\n if (character == '+')\r\n {\r\n return 62;\r\n }\r\n if (character == '/')\r\n {\r\n return 63;\r\n }\r\n if (character == '=')\r\n {\r\n return 0;\r\n }\r\n return -1;\r\n }",
"@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}",
"@Test(timeout = 4000)\n public void test116() throws Throwable {\n StringReader stringReader0 = new StringReader(\"U3kE.1/hk@Tuvel]`L\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }",
"private static int getPrevCC(PrevArgs paramPrevArgs)\n/* */ {\n/* 574 */ return (int)(0xFF & getPrevNorm32(paramPrevArgs, 768, 65280) >> 8);\n/* */ }",
"public int mo33261a() {\n return this.f29561a;\n }",
"@Test(timeout = 4000)\n public void test119() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Q!@aV0Ak~pvq\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(74, token0.kind);\n assertEquals(\"Q\", token0.toString());\n }",
"@Test(timeout = 4000)\n public void test161() throws Throwable {\n StringReader stringReader0 = new StringReader(\"...\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 62, 62);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.bufpos);\n assertEquals(62, javaCharStream0.getLine());\n }",
"private static char[] m7947z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 16);\n }\n return toCharArray;\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public int mo3356c() {\n return 0;\n }",
"@Test(timeout = 4000)\n public void test116() throws Throwable {\n int int0 = JavaCharStream.hexval('8');\n assertEquals(8, int0);\n }",
"@Test(timeout = 4000)\n public void test131() throws Throwable {\n StringReader stringReader0 = new StringReader(\"WA.W2e9@MV5G\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(74, token0.kind);\n assertEquals(\"A\", token0.toString());\n }",
"public int m7468c() {\n if (!this.f5790b.f5950m) {\n return 0;\n }\n C2302k c2302k;\n int i;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k = this.f5790b.f5954q;\n i = e.f5936d;\n } else {\n byte[] bArr = e.f5937e;\n this.f5798j.m8383a(bArr, bArr.length);\n c2302k = this.f5798j;\n i = bArr.length;\n }\n boolean z = this.f5790b.f5951n[this.f5793e];\n this.f5797i.f6929a[0] = (byte) ((z ? ProfileEditingConfig.DEFAULT_MAX_LENGTH : 0) | i);\n this.f5797i.m8388c(0);\n this.f5789a.sampleData(this.f5797i, 1);\n this.f5789a.sampleData(c2302k, i);\n if (!z) {\n return i + 1;\n }\n C2302k c2302k2 = this.f5790b.f5954q;\n int h = c2302k2.m8396h();\n c2302k2.m8390d(-2);\n h = (h * 6) + 2;\n this.f5789a.sampleData(c2302k2, h);\n return (i + 1) + h;\n }",
"private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"int mo44965b();",
"public abstract Integer mo36210m();",
"private void m6556g() {\n m6561c();\n m6557h();\n m6558i();\n }",
"C4865b mo6249a();",
"public abstract long mo20901UQ();",
"public void mo6081a() {\n }",
"@Test(timeout = 4000)\n public void test056() throws Throwable {\n StringReader stringReader0 = new StringReader(\"D!%cD=EVjn`\");\n stringReader0.read();\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(2, javaCharStream0.getEndColumn());\n assertEquals(\"%\", token0.toString());\n }",
"long mo25071a(long j);",
"@Test(timeout = 4000)\n public void test106() throws Throwable {\n int int0 = JavaCharStream.hexval('B');\n assertEquals(11, int0);\n }",
"@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }",
"@Override\n\tpublic void challenge16() {\n\n\t}",
"private void m50366E() {\n }",
"long getUnknown72();",
"@Test(timeout = 4000)\n public void test151() throws Throwable {\n StringReader stringReader0 = new StringReader(\"/&[o8PbSh8%nM__1\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 39);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(\"&\", token0.toString());\n }",
"@Test(timeout = 4000)\n public void test157() throws Throwable {\n StringReader stringReader0 = new StringReader(\"gR39:};Az,EeQ2PLmLM\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 84, 84, 84);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(\"gR39\", token0.toString());\n }",
"public static void main(String[] args) {\n String key = \"4071321\";\n String strToDecode = \"Li, ailu jw au facntll\";\n StringBuilder ES = new StringBuilder();\n long spCount = 0;\n for(int i= 0;i<strToDecode.length();i++)\n {\n int ascii = strToDecode.charAt(i);\n\n if((ascii<65 || ascii>122) || (ascii > 90 && ascii < 97))\n {\n char a = strToDecode.charAt(i);\n System.out.println(a);\n ES.append(a);\n spCount++;\n }\n else\n {\n int keyPos = (int)(i - spCount)%7;\n int subKey = Character.getNumericValue(key.charAt(keyPos));\n long strAscii = ascii - subKey;\n\n if(strAscii<65)\n {\n strAscii = 91-(65- strAscii);\n }\n\n if(ascii >=97 && strAscii< 97) {\n strAscii = 123 - (97 - strAscii);\n }\n ES.append((char)strAscii);\n }\n\n }\n System.out.println(ES);\n\n }",
"@Test(timeout = 4000)\n public void test147() throws Throwable {\n StringReader stringReader0 = new StringReader(\"*22Wt+'F\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1142), 109);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"*\", token0.toString());\n }"
] | [
"0.5801043",
"0.5759407",
"0.56598",
"0.5584209",
"0.55577767",
"0.554453",
"0.5527439",
"0.5525754",
"0.54991597",
"0.54979694",
"0.5477865",
"0.5476648",
"0.5460501",
"0.54396975",
"0.5387762",
"0.5378683",
"0.537648",
"0.5365215",
"0.5361451",
"0.5359626",
"0.53591585",
"0.5356266",
"0.53538436",
"0.5351906",
"0.5337361",
"0.53320116",
"0.5331471",
"0.53298646",
"0.53247577",
"0.5309076",
"0.5300427",
"0.5296293",
"0.52923125",
"0.5289776",
"0.5288944",
"0.5287998",
"0.5286283",
"0.5264312",
"0.52637696",
"0.52618104",
"0.5259502",
"0.52471393",
"0.52470887",
"0.52436393",
"0.5243459",
"0.5242233",
"0.5239376",
"0.5237702",
"0.5235414",
"0.52281344",
"0.5225264",
"0.52244097",
"0.52233106",
"0.5218876",
"0.52181244",
"0.5210462",
"0.5199115",
"0.51973057",
"0.5194972",
"0.5189991",
"0.51899785",
"0.5185579",
"0.5184348",
"0.51797074",
"0.51794946",
"0.51793134",
"0.51724154",
"0.5169872",
"0.51687497",
"0.5168008",
"0.5167453",
"0.5164746",
"0.5160726",
"0.51554143",
"0.51538813",
"0.5151646",
"0.5146706",
"0.5139745",
"0.5130749",
"0.5128987",
"0.5126393",
"0.512214",
"0.51217246",
"0.5121213",
"0.5116092",
"0.51159835",
"0.5114521",
"0.51091903",
"0.51076794",
"0.5106019",
"0.51049083",
"0.51025695",
"0.5100167",
"0.5099645",
"0.5098659",
"0.5098483",
"0.5098363",
"0.50982106",
"0.5096069",
"0.50952584",
"0.50918734"
] | 0.0 | -1 |
/ 66: / 67: | public Integer getTotalDays()
/* 68: */ {
/* 69:67 */ return this.totalDays;
/* 70: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }",
"public static void incorrect6() {\r\n\r\n System.out.println(\" *---*\");\r\n System.out.println(\" | |\");\r\n System.out.println(\" 0 |\");\r\n System.out.println(\" /|\\\\ | Incorrect - 6\");\r\n System.out.println(\" / \\\\ |\");\r\n System.out.println(\" |\");\r\n System.out.println(\"==========\");\r\n }",
"@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"public void uneHeureDePlus() {\n\t\tthis.h = h+1 > 23 ? 0 : h+1 ;\n\t}",
"public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }",
"public int mo36g() {\n return 4;\n }",
"public int mo36g() {\n return 8;\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public int getSnakeStartLength();",
"public int mo36g() {\n return 2;\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"private static String dickAndJane(int s, int p, int y, int j) {\n\t\tint Y = (12 + j - y - p) / 3;\n\t\tint S = Y + y;\n\t\tint P = Y + p;\n\n\t\tif (S + P + Y - 12 - j == 0)\n\t\t\treturn S + \" \" + P + \" \" + Y;\n\n\t\tif (S + P + Y - 12 - j == -2)\n\t\t\treturn (S + 1) + \" \" + (P + 1) + \" \" + Y;\n\n\t\tif (y > s + p)\n\t\t\tP++;\n\t\telse\n\t\t\tS++;\n\n\t\treturn S + \" \" + P + \" \" + Y;\n\n\t}",
"int mo5882g(String str);",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"int mo23349e(String str, String str2);",
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }",
"void mo9075h(String str, int i, int i2);",
"public static void main (String [] args) {\n\t\n\t//num4/=10;\n\t//System.out.println(num4);\n//\t\n\t//num4%=2; num4=4%2;\n\t//System.out.println(num4);\n\t\n\t\n\tint num=100;\n\tnum-=67;\n\tint cakePiece1=11;\n\tcakePiece1/=4;\n\tint cakePiece=25;\n\tcakePiece%=7;\n\t\t\tSystem.out.println(num);\n\t\t\tSystem.out.println(cakePiece1);\n\t\t\tSystem.out.println(cakePiece);\n\t\n\t\n\t\n\t\n\t\n\t}",
"int getMid(int s, int e) {\n return s + (e - s) / 2;\n }",
"public static void main(String[] argv) {\n\n\t\tSystem.out.println(new Fraction(\"5/24\").add(new Fraction(\"3/8\")));\n\n\t\tSystem.out.println(hcf(24, 8));\n\n\t}",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"dkj mo4367a(dkk dkk);",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"static int getNumPatterns() { return 64; }",
"public abstract String division();",
"String divideAtWhite()[]{ return null; }",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"void mo33732Px();",
"public static void main(String[] args) {\n\t\tDivideRepeatNumbr.divide(229, 990);\n\t\tSystem.out.println(DivideRepeatNumbr.perfectSubstring(\"1\", 1));\n\t}",
"public void mo9233aH() {\n }",
"int mo23347d(String str, String str2);",
"public void operacionletradni(int dni, int result){\n this.result=dni%23;}",
"@Test\n public void testShorten247() { // FlairImage: 247\n assertEquals(\"From: FlairImage line: 248\", \"\", shorten(\"asd.asd\",7)); \n assertEquals(\"From: FlairImage line: 249\", \"C:/Users/\", shorten(\"C:/Users/asd.asd\",7)); \n }",
"@Override\n\tpublic void challenge6() {\n\n\t}",
"int mo23353w(String str, String str2);",
"public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"@Test\n public void FiveAndSpareWithFinalFiveExpected_150(){\n String input = \"5/5/5/5/5/5/5/5/5/5/5\";\n assertEquals(game.scoreOfGame(input),150);\n }",
"void mo34677H(String str, int i, int i2);",
"int mo5867a(String str, long j);",
"void mo7444g(int i, int i2);",
"private static int getDividingIndex(String fullPath) {\n int baseEnd = fullPath.lastIndexOf(\"/\");\n if (fullPath.substring(0, baseEnd).endsWith(COMMAND_PATH)) {\n baseEnd = fullPath.substring(0, baseEnd).lastIndexOf(\"/\");\n }\n return baseEnd;\n }",
"public String toString(){ return \"DIV\";}",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }",
"void mo64942a(String str, long j, long j2);",
"public void divide() {\n\t\t\n\t}",
"private static int colorspaceSh(int s) {\r\n return (s << 16);\r\n }",
"private void m50367F() {\n }",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}",
"void mo7445h(int i, int i2);",
"void doStuff() {\n System.out.println(7/0);\r\n }",
"public final void mo7596sH(String str) {\n }",
"C2841w mo7234g();",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public static void incorrect5() {\r\n\r\n System.out.println(\" *---*\");\r\n System.out.println(\" | |\");\r\n System.out.println(\" 0 |\");\r\n System.out.println(\" /|\\\\ | Incorrect - 5\");\r\n System.out.println(\" / |\");\r\n System.out.println(\" |\");\r\n System.out.println(\"==========\");\r\n }",
"String d(String paramString, int paramInt)\r\n/* 613: */ {\r\n/* 614:609 */ int i1 = e(paramString, paramInt);\r\n/* 615:610 */ if (paramString.length() <= i1) {\r\n/* 616:611 */ return paramString;\r\n/* 617: */ }\r\n/* 618:614 */ String str1 = paramString.substring(0, i1);\r\n/* 619: */ \r\n/* 620:616 */ int i2 = paramString.charAt(i1);\r\n/* 621:617 */ int i3 = (i2 == 32) || (i2 == 10) ? 1 : 0;\r\n/* 622:618 */ String str2 = b(str1) + paramString.substring(i1 + (i3 != 0 ? 1 : 0));\r\n/* 623: */ \r\n/* 624:620 */ return str1 + \"\\n\" + d(str2, paramInt);\r\n/* 625: */ }",
"public void mo4683c() {\n mo4679a(3);\n }",
"int nbColonnes();",
"void mo5875b(String str, long j);",
"void mo6888a(int i);",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"void mo34684de(int i, int i2);",
"int mo54403a(String str, String str2);",
"int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}",
"int mo5885j(String str);",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }",
"public static void main(String args[])\n {\n int a=8%3; //Finding the reminder of 8 when divided by 3 using the modulus operator '%'\n\n System.out.println(\"a=\"+a);\n\n }",
"public int mo3356c() {\n return 0;\n }",
"int mo23351i(String str, String str2);",
"int mo23352v(String str, String str2);",
"static int size_of_ani(String passed){\n\t\treturn 2;\n\t}",
"@Override\npublic void div(int a, int b) {\n\t\n}",
"public static void m4() {\r\n\t\r\n\t\tfor(int i=1;i<=5;i++) {\r\n\t\t\tchar ch ='E';\r\n\t\t\tfor(int j=5;j>=1;j--) {\r\n\t\t\t\tSystem.out.print(ch);\r\n\t\t\t\tch--;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public String tri4(int h){\n\t\tString S = \"\";\n\t\tint H = h;\n\t\tint HH = H;\n\t\tint Counter = 0;\n\t\tint UsingCounter = Counter;\n\n\t\twhile (H > 0){\n\t\t\tHH = H;\n\t\t\twhile (UsingCounter > 0){\n\t\t\t\tS = S + \" \";\n\t\t\t\tUsingCounter = UsingCounter - 1;}\n\t\t\twhile (HH > 0) {\n\t\t\t\tS = S + \"*\";\n\t\t\t\tHH = HH - 1;}\n\t\t\tCounter = Counter + 1;\n\t\t\tUsingCounter = Counter;\n\t\t\tS = S + \"\\n\";\n\t\t\tH = H - 1;}\n\n\t\treturn S; }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public static void main(String[] args) {\n\t\tint num = 10 + 20 -5;\n\t\t\n\t\tnum = 10 + 20/5; // 14\n\t\t\n\t\t// division goes first!\n\t\tnum = (10+20) /5 ; // 6\n\t\t\n\t\tint i = 6+3*10/6;\n\t\t// i = 6+5\n\n\t}",
"@Test(timeout = 4000)\n public void test086() throws Throwable {\n String string0 = SQLUtil.normalize(\"aT:7W`oI)N(jLl^oF<HQ\", false);\n assertEquals(\"aT : 7W ` oI) N (jLl ^ oF < HQ\", string0);\n }",
"public static int main_function(String input) {\n int leftRight = 1;\n int bottomTop = 1;\n for (char direction : input.toCharArray()) {\n if (direction == 'w' ) bottomTop++;\n if (direction == 's' ) bottomTop--;\n if (direction == 'd' ) leftRight++;\n if (direction == 'a' ) leftRight--;\n }\n return 7 - leftRight + 7 - bottomTop;\n }",
"void mo34676dd(int i, int i2);",
"@Test\n public void testUseMathMode() {\n assertEquals(\":(\", \":(\");\n }",
"public static void incorrect4() {\r\n\r\n System.out.println(\" *---*\");\r\n System.out.println(\" | |\");\r\n System.out.println(\" 0 |\");\r\n System.out.println(\" /|\\\\ | Incorrect - 4\");\r\n System.out.println(\" |\");\r\n System.out.println(\" |\");\r\n System.out.println(\"==========\");\r\n }",
"@Test(timeout = 4000)\n public void test56() throws Throwable {\n String string0 = SQLUtil.normalize(\")]*/f/f2Nx{fI.* \", false);\n assertEquals(\") ] */ f / f2Nx { fI.*\", string0);\n }",
"public static int m8655e() {\n return 8;\n }",
"public void testORDINARY_DIV6() throws Exception {\n\t\tObject retval = execLexer(\"ORDINARY_DIV\", 15, \"chevron\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"ORDINARY_DIV\", expecting, actual);\n\t}",
"public int mo3361f() {\n return 1;\n }",
"int main()\n{\n int num;\n int q,r,sum;\n cin>>num;\n q=num/10;\n r=num%10;\n sum=q+r;\n cout<<\"Alice must go in path-\";\n cout<<sum;\n}",
"public void mo21783H() {\n }",
"public static void main(String[] args){\t\n\t\tchar op = '/';\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"첫번째 정수입니다.\");\n\t\tint num1 = scan.nextInt();\n\t\t\n\t\tSystem.out.println(\"두번째 정수입니다.\");\n\t\tint num2 = scan.nextInt();\n\t\tint num3=0;\n\t\tif(op=='+'){\n\t\t\tnum3 = num1+num2;\n\t\t}\n\t\telse if(op=='-'){\n\t\t\tnum3 = num1-num2;\n\t\t}\n\t\telse if(op=='*'){\n\t\t\tnum3 = num1*num2;\n\t\t}\n\t\telse if(op=='/'){\n\t\t\tif(num2==0){\n\t\t\tSystem.out.println(\"오류입니다.\");\n\t\t}\n\t\t\t\n\t\t\tnum3 = num1/num2;\n\t\t}\n\t\tSystem.out.printf(\"%d%c%d=%d\" ,num1,op,num2,num3);\n\t\t\n\t\t\n\t}",
"private int getLCD(int a, int b){\n return ( (a * b) / getGCD(a, b) ); \n }",
"@Override\n\tpublic void challenge9() {\n\n\t}",
"@Override\r\n\tpublic void CalcPeri() {\n\t\tSystem.out.println(4*side);\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tint myNumber=356;\n\t\tint stepOne=myNumber*myNumber;\n\t\tint step2=stepOne+myNumber;\n\t\tint step3=step2/myNumber;\n\t\tint step4=step3+17;\n\t\tint step5=step4-myNumber;\n\t\tint step6=step5/6;\n\t\t\n\t\tSystem.out.println(\"The magic number is \"+step6);\n\n\t}",
"private boolean dividingByZero(String operator){\n if (numStack.peek() == 0 && operator.equals(\"/\")){\n return true;\n }\n return false;\n }",
"private final void step6()\n\t { j = k;\n\t if (b[k] == 'e')\n\t { int a = m();\n\t if (a > 1 || a == 1 && !cvc(k-1)) k--;\n\t }\n\t if (b[k] == 'l' && doublec(k) && m() > 1) k--;\n\t }",
"public void mo21877s() {\n }",
"public void method_266(String var1, int var2, int var3, int var4, int var5, int var6) {\n boolean var12 = field_759;\n\n try {\n int var7 = 0;\n byte[] var8 = field_748[var4];\n int var9 = 0;\n int var10 = 0;\n int var11 = 0;\n if(var12 || var11 < var1.length()) {\n do {\n label70: {\n if(var1.charAt(var11) == 64 && var11 + 4 < var1.length() && var1.charAt(var11 + 4) == 64) {\n var11 += 4;\n if(!var12) {\n break label70;\n }\n }\n\n if(var1.charAt(var11) == 126 && var11 + 4 < var1.length() && var1.charAt(var11 + 4) == 126) {\n var11 += 4;\n if(!var12) {\n break label70;\n }\n }\n\n var7 += var8[field_749[var1.charAt(var11)] + 7];\n }\n\n if(var1.charAt(var11) == 32) {\n var10 = var11;\n }\n\n if(var1.charAt(var11) == 37) {\n var10 = var11;\n var7 = 1000;\n }\n\n if(var7 > var6) {\n if(var10 <= var9) {\n var10 = var11;\n }\n\n this.drawstringCenter(var1.substring(var9, var10), var2, var3, var4, var5);\n var7 = 0;\n var9 = var11 = var10 + 1;\n var3 += this.method_270(var4);\n }\n\n ++var11;\n } while(var11 < var1.length());\n }\n\n if(var7 > 0) {\n this.drawstringCenter(var1.substring(var9), var2, var3, var4, var5);\n return;\n }\n } catch (Exception var13) {\n System.out.println(\"centrepara: \" + var13); // authentic System.out.println\n var13.printStackTrace();\n }\n\n }",
"private static int m3066a(int i, int i2, int i3, int i4, int i5) {\n if (i5 == 0) {\n return 0;\n }\n return (((i * NormalGiftView.ALPHA_255) * i2) + ((i3 * i4) * (255 - i2))) / (i5 * NormalGiftView.ALPHA_255);\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public void mo3376r() {\n }"
] | [
"0.54522383",
"0.54069614",
"0.52382696",
"0.52263093",
"0.51856625",
"0.51632285",
"0.512805",
"0.51137567",
"0.50969964",
"0.5095524",
"0.50912374",
"0.50845927",
"0.5072171",
"0.5068586",
"0.5064603",
"0.5050348",
"0.5044404",
"0.503492",
"0.5027616",
"0.50273556",
"0.50193965",
"0.49854106",
"0.498416",
"0.49804184",
"0.4979894",
"0.4974916",
"0.49738452",
"0.4973842",
"0.49715206",
"0.4963388",
"0.49294358",
"0.49288258",
"0.49241868",
"0.49230614",
"0.49230286",
"0.49221033",
"0.49061278",
"0.4903687",
"0.4894932",
"0.4893527",
"0.48814484",
"0.4880766",
"0.4880605",
"0.48771143",
"0.4875518",
"0.48711646",
"0.48688218",
"0.48625746",
"0.48490313",
"0.48439664",
"0.48432705",
"0.48407307",
"0.48381948",
"0.48319614",
"0.48304957",
"0.48261806",
"0.48239505",
"0.48185784",
"0.48140177",
"0.48134142",
"0.48119032",
"0.48052043",
"0.48008823",
"0.47977698",
"0.47920707",
"0.47881454",
"0.47873524",
"0.47809577",
"0.47806975",
"0.47786015",
"0.4778475",
"0.47754982",
"0.4768166",
"0.47661418",
"0.47659558",
"0.47647408",
"0.4760603",
"0.4760443",
"0.47594878",
"0.47584382",
"0.4752973",
"0.47485963",
"0.47448844",
"0.47429314",
"0.4741393",
"0.4739446",
"0.4737612",
"0.4733379",
"0.4727789",
"0.4716191",
"0.47152457",
"0.47117937",
"0.47086757",
"0.4703798",
"0.47029355",
"0.46991658",
"0.46855453",
"0.4683349",
"0.4682156",
"0.468168",
"0.46795756"
] | 0.0 | -1 |
/ 71: / 72: | public void setTotalDays(Integer totalDays)
/* 73: */ {
/* 74:71 */ this.totalDays = totalDays;
/* 75: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo21783H() {\n }",
"public int mo36g() {\n return 8;\n }",
"long getUnknown72();",
"private void m50366E() {\n }",
"void mo33732Px();",
"public void mo21782G() {\n }",
"public void mo9233aH() {\n }",
"public void mo21794S() {\n }",
"private void m50367F() {\n }",
"public int mo36g() {\n return 4;\n }",
"public void mo21786K() {\n }",
"public void mo21787L() {\n }",
"public void mo21779D() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public void mo2471e() {\n }",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"public void mo2470d() {\n }",
"public void mo21780E() {\n }",
"public int mo36g() {\n return 2;\n }",
"public void mo21785J() {\n }",
"public void mo12628c() {\n }",
"public void mo21877s() {\n }",
"public void mo21788M() {\n }",
"public void mo21781F() {\n }",
"public static int m8655e() {\n return 8;\n }",
"public void mo3749d() {\n }",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"C2841w mo7234g();",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void mo21789N() {\n }",
"public void mo3370l() {\n }",
"public void mo3376r() {\n }",
"public void mo21792Q() {\n }",
"public void mo21784I() {\n }",
"public void mo21879u() {\n }",
"public final void mo7596sH(String str) {\n }",
"public void method_4270() {}",
"public void mo6081a() {\n }",
"public void mo21867i() {\n mo21877s();\n }",
"public void mo21791P() {\n }",
"private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }",
"C1458cs mo7613iS();",
"private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }",
"public abstract int mo8526p();",
"public void mo21793R() {\n }",
"public void mo44053a() {\n }",
"Info mo7564ix();",
"public void mo56167c() {\n }",
"public void mo38117a() {\n }",
"public void mo12930a() {\n }",
"void mo72113b();",
"public static int m22583h(long j) {\n return 8;\n }",
"public void mo2740a() {\n }",
"void mo7445h(int i, int i2);",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public void mo23813b() {\n }",
"public abstract String mo9751p();",
"void mo72114c();",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"public void mo8738a() {\n }",
"void mo12637b();",
"public void m23075a() {\n }",
"void mo21076g();",
"public abstract long mo13681c();",
"public abstract int mo9754s();",
"public void mo21878t() {\n }",
"void mo21074e();",
"C5727e mo33224a();",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public void mo6944a() {\n }",
"void mo1763h(int i);",
"void mo72111a();",
"public void mo9137b() {\n }",
"public void mo97908d() {\n }",
"void mo64942a(String str, long j, long j2);",
"public int mo3361f() {\n return 1;\n }",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public short mo34e() {\n return 41;\n }",
"C7904c mo24084a();",
"void mo1761g(int i);",
"public void mo5248a() {\n }",
"public void mo3946e() {\n m25427g();\n }",
"void mo21073d();",
"void mo5875b(String str, long j);",
"private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }",
"public abstract long mo9229aD();",
"void mo9075h(String str, int i, int i2);",
"private void m7461d() {\n if (this.f5790b.f5950m) {\n C2302k c2302k = this.f5790b.f5954q;\n C2101h e = m7462e();\n if (e.f5936d != 0) {\n c2302k.m8390d(e.f5936d);\n }\n if (this.f5790b.f5951n[this.f5793e]) {\n c2302k.m8390d(c2302k.m8396h() * 6);\n }\n }\n }",
"private void kk12() {\n\n\t}",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"int getUnknown13();",
"public abstract String mo13682d();",
"String mo30285c(long j);",
"void mo27575a();",
"int mo23521Ly();",
"public abstract Integer mo36210m();",
"public abstract int mo9749n();",
"public void skystonePos6() {\n }",
"static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }",
"public void mo21795T() {\n }",
"int mo1756e(int i);"
] | [
"0.63248605",
"0.6248767",
"0.62081563",
"0.6162223",
"0.6159178",
"0.6152275",
"0.6141111",
"0.60671777",
"0.6054647",
"0.6054383",
"0.6043052",
"0.60428774",
"0.6042391",
"0.6028199",
"0.60235906",
"0.6016217",
"0.60128844",
"0.5993532",
"0.59837824",
"0.59702784",
"0.59628725",
"0.5955244",
"0.59482324",
"0.59349215",
"0.5929605",
"0.59253234",
"0.59199595",
"0.590243",
"0.58929145",
"0.588938",
"0.5877827",
"0.5852238",
"0.58495975",
"0.58451784",
"0.58448106",
"0.582953",
"0.58288026",
"0.5820783",
"0.5818126",
"0.58028615",
"0.5797785",
"0.577945",
"0.57676375",
"0.5763489",
"0.5755559",
"0.574525",
"0.57415295",
"0.57316333",
"0.5726229",
"0.5721001",
"0.57177585",
"0.57157797",
"0.57097256",
"0.570005",
"0.5690305",
"0.5686569",
"0.5685658",
"0.56832236",
"0.5676072",
"0.5675631",
"0.56707776",
"0.5669565",
"0.56690633",
"0.5668303",
"0.56650585",
"0.56543505",
"0.56535363",
"0.5650878",
"0.564975",
"0.56480294",
"0.5647319",
"0.5644467",
"0.5641952",
"0.5636706",
"0.56328714",
"0.5628644",
"0.56277287",
"0.5624547",
"0.56166303",
"0.56117696",
"0.5608442",
"0.5608013",
"0.5605911",
"0.56015724",
"0.560017",
"0.5599163",
"0.55991566",
"0.5596962",
"0.55965054",
"0.55938727",
"0.55916506",
"0.55907583",
"0.5586954",
"0.55843484",
"0.55842274",
"0.55832916",
"0.55826867",
"0.5575867",
"0.55743116",
"0.5574054",
"0.5569659"
] | 0.0 | -1 |
Method to print the filename to console | public static void printFileName(String filename) {
System.out.println("\n" + filename + ":");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract void print(String fileName);",
"public void printFile() {\n\t\t\n\t\tfor(String[] line_i: linesArray) {\n\t\t\tSystem.out.println( Arrays.toString(line_i) );\n\t\t}\n\t}",
"@Override\n\tpublic void printToFile() {\n\t\t\n\t}",
"public void printFilenames(){\n\t\tSystem.out.println(\"\\nAgent list of files: \" + this.filenames.size());\n\t\tfor(int i = 0;i<filenames.size();i++){\n\t\t\tSystem.out.println(i+1+ \") \" + filenames.get(i));\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"public abstract String toStringForFileName();",
"void printFile(String path) {\n try {\n String[] readFileOutPut = readFile(path);\n for (int i = 0; i < readFileOutPut.length;i++) System.out.println(readFileOutPut[i]);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void printFileOnconsole(File file, int tabs,int lenghtOfDirectory) throws DirectoryException{\r\n\t\tSystem.out.println(\"file ->\" + file);\r\n\t\tString fileName = file.getName();\r\n\t\tString[] split = fileName.split(HelperContstants.DELIMETER);\r\n\t\tfor (int i = 0; i < tabs; i++) {\r\n\t\t\tSystem.out.print(\" \");\r\n\t\t}\r\n\t\tSystem.out.println(\"- Document: \" + file.getName() + \" - Extension: .\" + split[split.length - 1] + \" - URL: \"\r\n\t\t\t\t+ file.getAbsolutePath().substring(lenghtOfDirectory));\r\n\t}",
"public String toString()\n\t{\n\t\treturn myFilename;\n\t}",
"public void printFileNames() {\n DirectoryResource dr = new DirectoryResource();\n for (File f : dr.selectedFiles()) {\n System.out.println(f);\n }\n }",
"public boolean showFilename() {\n\t\treturn showFilename;\n\t}",
"public void printFile(String fileName)\n {\n try\n {\n //takes the output string and writes it in a new file\n //called output.txt\n FileOutputStream out = new FileOutputStream(\n new File(fileName), true);\n out.write(logImage.getBytes());\n out.flush();\n out.close(); \n }\n //catches all exceptions from writing into the .txt\n catch(Exception e)\n {\n System.out.println(\"There was an error while writing into file\");\n }\n }",
"public static void printCreateNewFile() {\n System.out.println(Message.CREATE_NEW_FILE);\n }",
"private static void _printResource (final String filename)\n {\n try\n {\n // find the file resource\n final InputStream is = Main.class.getResourceAsStream (filename);\n if (is == null)\n throw new java.io.FileNotFoundException (filename);\n final BufferedReader br = new BufferedReader (new InputStreamReader (is));\n boolean doOutput = true;\n String line;\n while ((line = br.readLine ()) != null)\n {\n if (line.startsWith (\"@@@ \"))\n {\n // special control line\n if (line.equals (\"@@@ START DEBUG ONLY\"))\n doOutput = CSTX.DEBUG;\n else\n if (line.equals (\"@@@ END DEBUG ONLY\"))\n doOutput = true;\n // else: ignore\n continue;\n }\n if (doOutput)\n System.err.println (line);\n }\n System.err.println (\"\");\n }\n catch (final IOException ex)\n {\n log.error (\"Exception\", ex);\n }\n }",
"public String toString(){\n\t\tFileHandler fw = new FileHandler(); //Create new object for file write\n \tformatText(title);\n \tformatText(snippet);\n \tsnippet = removeLineBreak(snippet);\n \t\n \t//Print out contents to screen\n \tSystem.out.println(urlLabel + link);\n \tSystem.out.println(titleLabel + title);\n\t\tSystem.out.println(snippetLabel + snippet);\n\t\t\n\t\t//Write contents to file\n\t\tfw.writeToFile(urlLabel, link, fw.file, false);\n\t\tfw.writeToFile(titleLabel, title, fw.file, false);\n\t\tfw.writeToFile(snippetLabel, snippet, fw.file, false);\n\t\tfw.writeToFile(\"---------- END OF RESULT -----------\",\"\", fw.file, false);\n\t return \"\";\n\t}",
"public static void Print(String fileName)\r\n {\n File file = new File(System.getProperty(\"user.dir\")+\"\\\\\"+fileName+\".txt\"); \r\n \r\n try \r\n {\r\n Scanner sc = new Scanner(file);\r\n \r\n while (sc.hasNextLine()) \r\n {\r\n System.out.println(sc.nextLine());\r\n }\r\n }\r\n catch (FileNotFoundException ex) \r\n {\r\n Logger.getLogger(TxtReader.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n }",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"public String getDisplayFileName() {\r\n return fileName + \" (\" + FileItem.getDisplayFileSize(fileSize) + \")\";\r\n }",
"public void printString() {\n\t\tSystem.out.println(name);\n\t\t\n\t\t\n\t}",
"void print(String fileName)\n\t{\n\t\t//Print the elements and also write them into a file if the array is initialized\n\t\tif(inputArray != null)\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\t//Create a file output.txt\n\t\t\t\tPrintWriter writer = new PrintWriter(fileName);\n\t\t\t\tfor(int i=0; i < inputArray.length; i++)\n\t\t\t\t{\n\t\t\t\t\t//Print the elements and also write them into a file\n\t\t\t\t\tSystem.out.print(inputArray[i] + \" \");\n\t\t\t\t\twriter.print(inputArray[i] + \" \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Close the file\n\t\t\t\twriter.close();\n\t\t\t} \n\t\t\tcatch (FileNotFoundException e) \n\t\t\t{\n\t\t\t\t//Printing the Stack Trace if an exception has occurred\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"java.lang.String getFilename();",
"java.lang.String getFilename();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFilename();",
"private static void showFiles(File f) {\n\t\n}",
"public String getFileName();",
"public String getFileName();",
"public String getFilename();",
"public void print ()\n\t{\n\t\tSystem.out.println(\"Polyhedron File Name: \" + FileName);\n\t\tSystem.out.println(\"Object active: \" + Boolean.toString(isActive()));\n\t\tprintCoordinates();\n\t}",
"public void handlePrintFile (File printFile) {\n // not supported\n }",
"public static void printFileInfo(String filePath) {\n File f1 = new File(filePath);\n System.out.println(\"File name: \" + f1.getName());\n System.out.println(\"Path: \" + f1.getPath());\n System.out.println(\"Parent: \" + f1.getParent());\n System.out.println(f1.exists() ? \"file exist\" : \"file is not exist\");\n System.out.println(f1.canRead() ? \"file readable\" : \"file is not readable\");\n System.out.println(f1.canWrite() ? \"file writable\" : \"file is not writable\");\n System.out.println(f1.isDirectory() ? \"It is directory\" : \"It is not directory\");\n System.out.println(f1.isFile() ? \"It is a simple file\" : \"It can be named channel\");\n System.out.println(f1.isAbsolute() ? \"It is absolute\" : \"It is not absolute\");\n System.out.println(\"Last modified: \" + f1.lastModified());\n System.out.println(\"Size is \" + f1.length() + \" byte\");\n }",
"public static String fileName(File file)\n {\n if (file == Configuration.STD_OUT)\n {\n return \"standard output\";\n }\n else\n {\n try\n {\n return file.getCanonicalPath();\n }\n catch (IOException ex)\n {\n return file.getPath();\n }\n }\n }",
"private void printDetails(FileDTO file) {\n\t\tif (file == null) {\n\t\t\tsafePrintln(\"The file could not be retrieved or does not exist!\");\n\t\t} else {\n\t\t\tsafePrintln(file.getName() + \"|\" + file.getPermission() + \"|\" + file.getSize().toString() + \" - \"\n\t\t\t\t\t+ file.getOwnerName());\n\t\t}\n\t}",
"public static void main(String[] args) throws IOException {\n\t\tlianxi.print (\"D:\\\\test.txt\");\n\t}",
"void print(String fileName)\n\t{\n\t\t//Get the reference of the head of the Linked list\n\t\tNode ref = head;\n\t\t\n\t\t//Print the elements and also write them into a file if the head is initialized\n\t\tif(ref != null)\n\t\t{\n\t\t\ttry \n\t\t\t{\n\t\t\t\t//Create a file output.txt\n\t\t\t\tPrintWriter writer = new PrintWriter(fileName);\n\t\t\t\t\n\t\t\t\t//Traverse till the end of the Linked List \n\t\t\t\twhile(ref != null)\n\t\t\t\t{\n\t\t\t\t\tref = ref.next;\n\t\t\t\t\tif(ref != null)\n\t\t\t\t\t{\n\t\t\t\t\t\t//Print the elements and also write them into a file\n\t\t\t\t\t\tSystem.out.print(ref.value + \" \");\n\t\t\t\t\t\twriter.print(ref.value + \" \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//Close the file\n\t\t\t\twriter.close();\n\t\t\t} \n\t\t\tcatch (FileNotFoundException e) \n\t\t\t{\n\t\t\t\t//Printing the Stack Trace if an exception has occurred\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"public void printAction() {\n this.folderList.get(currentFolder).printIt();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.filePath.toString();\n\t}",
"public String getFileName ();",
"public String print(){\n\t\treturn this.sonsPaths_.toString();\n\t}",
"private static void printFileOperationMenu() {\n System.out.println(\"-------------------------------------\");\n System.out.println(\"File operation menu\");\n System.out.println(\"1. Retrieve file names from directory\");\n System.out.println(\"2. Add a file.\");\n System.out.println(\"3. Delete a file.\");\n System.out.println(\"4. Search a file.\");\n System.out.println(\"5. Change directory.\");\n System.out.println(\"6. Exit to main menu.\");\n\n }",
"public abstract String FileOutput();",
"private static void printFileInfo(File file) {\n window.putLog(String.format(\"[%6dkb] Modified %s @%s\", 1 + file.length() / 1024,\n new SimpleDateFormat(\"YYYY-MM-dd HH:mm\").format(new Date(file.lastModified())),\n file.getPath().substring(workingDirectory.getParent().length())));\n }",
"@Override\n\tprotected void print() {\n\t\tSystem.out.println(\"-----------\"+this.getName()+\"\");\n\t}",
"public String filename (){\r\n\t\t\treturn _filename;\r\n\t\t}",
"public static void printFancyTitle() {\n System.out.println();\n System.out.println( \"Hello, Program 04\");\n Scanner scanner;\n try {\n File f = new File( \"fancy_title.txt\");\n scanner = new Scanner( f);\n } catch( Exception exc) {\n return;\n }\n\n System.out.println( \"by\");\n String s;\n while( scanner.hasNextLine()) {\n s = scanner.nextLine();\n System.out.println( s);\n }\n scanner.close();\n System.out.println();\n }",
"public String getName()\n {\n return( file );\n }",
"public static void printLoadingFile() {\n System.out.println(Message.LOADING_FILE);\n }",
"public void printToViewConsole(String arg);",
"public void printArrayOfFile(File[] arrayToPrint) {\n\t\tthis.showNamedMessage(\"List of files:\");\n\t\tfor (int i = 0; i < arrayToPrint.length; i++) {\n\t\t\tthis.showNamedMessage(\"[\" + i + \"]: \" + arrayToPrint[i]);\n\t\t}\n\t}",
"public void displayTextToConsole();",
"public void outputToFile(String filemame)\n {\n }",
"public void print() {\n\t\tSystem.out.println(\"ONOMA IDIOKTITH: \" + fname);\n\t\tSystem.out.println(\"EPWNYMO IDIOKTITH: \" + lname);\n\t\tSystem.out.println(\"DIEUTHINSH FARMAKEIOU: \" + address);\n\t\tSystem.out.println(\"THLEFWNO FARMAKEIOU: \" + telephone);\n\t\tSystem.out.println();\n\t}",
"protected String getFileName()\n {\n return new StringBuilder()\n .append(getInfoAnno().filePrefix())\n .append(getName())\n .append(getInfoAnno().fileSuffix())\n .toString();\n }",
"void setOutput(String filename) throws FileNotFoundException{\n\t\tSystem.out.println(\"Created file: \" + filename);\t\n\t\ttry {\n\t\t\tout = new PrintStream(new FileOutputStream(filename));\n\t\t\tSystem.setOut(out);\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void printDataToFile(){\n\ttry {\n\t File file = new File(\"media/gameOutput.txt\");\n \n\t // if file doesnt exists, then create it\n\t if (!file.exists()) {\n\t\tfile.createNewFile();\n\t }\n \n\t FileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t BufferedWriter bw = new BufferedWriter(fw);\n\t bw.write(printString);\n\t bw.close();\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n }",
"String getFileOutput();",
"public static void main(String[] args) {\nFile files=new File(\"C:\\\\Users\\\\k74\");\nString filenames[]=files.list();\nfor(String filename :filenames)\n\tSystem.out.println(filename);\n\t}",
"public void printData() {\n\t\ttry {\n\t\t\tFiles.lines(new File(PAYROLL_FILE_NAME).toPath())\n\t\t\t.forEach(System.out::println); \n\t\t}catch(IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void println();",
"public static void main(String[] args) {\n\t\tFile f = new File(\"/home/juedaiyuer\"+File.separator+\" woman.jpg\");\n\t\tSystem.out.println(f);\n\t}",
"public String getPageFileName();",
"public String print();",
"private PrintStream getOutput(String name) {\n try {\n return new PrintStream(new File(name));\n } catch (IOException excp) {\n throw error(\"could not open %s\", name);\n }\n }",
"public static void fileWriterPrinter(String fileName, Object printLine) throws NumberFormatException, IOException {\n // Create File:\n\t\t\t\tFile f = new File(Common.testOutputFileDir + fileName);\t\t\t\t \n\t\t\t // Write or add a String line into File:\t\n\t\t\t FileWriter fw = new FileWriter(f,true);\n\t\t\t PrintWriter pw = new PrintWriter(fw);\n\t\t\t pw.println(printLine);\n\t\t\t pw.close();\n\t\t\t // System Out Print Line:\n\t\t\t fileWriterPrinter(printLine);\n\t\t\t}",
"public void displayText(String filename) {\r\n\t\tSystem.out.println(\"UNIMPLEMENTED: display text from file \" + filename);\r\n\t\t// TODO implement text display\r\n\t}",
"String displayableFileName(String path) {\n String result = \"\";\n StringTokenizer tok = new StringTokenizer(path, \"\\\\/\");\n while (tok.hasMoreTokens()) {\n result = tok.nextToken();\n }\n return result;\n }",
"public void print() {\n System.out.println(\"Person of name \" + name);\n }",
"public void print(){\n for(int i = 0; i < rootDir.length; i++){\n System.out.println(rootDir[i]);\n }\n }",
"@Override\n\tpublic String getFilename() {\n\t\treturn this.path.getFileName().toString();\n\t}",
"private String printName() {\n \t\treturn GPSFilterTextUtils.printName( this.getResources(), this.area.getName() );\n \t}",
"@Override\n\tpublic void display() {\n\t\tSystem.out.println(name);\n\t}",
"public String getFileName() {\n return ScreenRecordService.getFileName();\n }",
"public static void fileWriterPrinter() throws NumberFormatException, IOException {\n // Create File:\n\t\t\t\tFile f = new File(Common.testOutputFileDir + \"print.log\");\t\t\t\t \n\t\t\t // Write or add a String line into File:\t\n\t\t\t FileWriter fw = new FileWriter(f,true);\n\t\t\t PrintWriter pw = new PrintWriter(fw);\n\t\t\t pw.println();\n\t\t\t pw.close();\n\t\t\t // System Out Print Line:\n\t\t\t // if (printLine instanceof String) {}\n\t\t\t // if (printLine instanceof Integer) {}\n\t\t\t // if (printLine instanceof Long) {}\n\t\t\t // if (printLine instanceof Boolean) {}\n\t\t\t // if (printLine instanceof Double) {}\n\t\t\t System.out.print(\"\\n\");\t\t \n\t\t\t}",
"public String getFilename() {\n\treturn(filename);\n }",
"public String getFilename() {\n\treturn file.getFilename();\n }",
"public String getOutPutFilePath() {\n\t\t// Create the entire filename\n\t\tString fileName=FILE_OUT_PATH+ FILENAME + \"NO_LINE_NUMBERS\" + \".txt\";\t\n\t\treturn(fileName);\n\t}",
"@Override\n public String getFilename()\n {\n return \"\";\n }",
"public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}",
"public void print();",
"public void print();",
"public void print();",
"public void print();",
"public void printTitle()\n {\n System.out.println(title);\n }",
"public static void fileBanner(PrintWriter fout){\n \tfout.println(\"*******************************************\");\n \tfout.println(\"Name:\t\tsveinson\");\n \tfout.println(\"Class:\t\tCS20S\");\n \tfout.println(\"Assignment:\tAx Qy\");\n \tfout.println(\"*******************************************\"); \n }",
"public void print() \n\t{\n\t\tSystem.out.println(\"existing files:\\n\");\n\t\tIterator<Entry<String, byte[]>> existing = this.existingFile.entrySet().iterator();\n\t\twhile (existing.hasNext()) \n\t\t{\n\t\t\tEntry<String, byte[]> entry = existing.next();\n\t\t\tString key = entry.getKey();\n\t\t\tbyte[] macValue = entry.getValue();\n\t\t\tSystem.out.println(key + \" - \" + bytes2HexString(macValue));\n\t\t}\n\t\t\n\t\tSystem.out.println(\"\\n\\nprefix files:\\n\");\n\t\tIterator<Entry<String, byte[]>> prefix = this.prefix.entrySet().iterator();\n\t\twhile (prefix.hasNext()) \n\t\t{\n\t\t\tEntry<String, byte[]> entry = prefix.next();\n\t\t\tString key = entry.getKey();\n\t\t\tbyte[] macValue = entry.getValue();\n\t\t\tSystem.out.println(key + \" - \" + bytes2HexString(macValue));\n\t\t}\n\t}",
"public TextFilePrinter getPrinter();",
"@Override\n\tpublic String toString() {\n\t\treturn this.f.getPath();\n\t}",
"public void println(String line);",
"@Override\n\tpublic String getName()\n\t{\n\t\treturn fileName;\n\t}"
] | [
"0.7508328",
"0.7127899",
"0.71246696",
"0.70925426",
"0.6887989",
"0.68244445",
"0.66586393",
"0.64918125",
"0.63609815",
"0.6351887",
"0.6340459",
"0.6276725",
"0.6272489",
"0.6247176",
"0.6239817",
"0.6223117",
"0.6223117",
"0.6223117",
"0.6223117",
"0.6223117",
"0.6223117",
"0.6223117",
"0.6223117",
"0.6223117",
"0.6212258",
"0.61994475",
"0.61993265",
"0.61706406",
"0.61706406",
"0.61684287",
"0.61684287",
"0.61684287",
"0.61684287",
"0.61684287",
"0.61662924",
"0.61575526",
"0.61465716",
"0.61465716",
"0.6141165",
"0.6111986",
"0.6106016",
"0.61038375",
"0.6079447",
"0.60776883",
"0.6059682",
"0.6017126",
"0.6008494",
"0.59790665",
"0.59759986",
"0.5966363",
"0.59620124",
"0.5941939",
"0.59288085",
"0.592175",
"0.5917294",
"0.5913516",
"0.5902367",
"0.58928764",
"0.5889987",
"0.58757144",
"0.5863939",
"0.58622015",
"0.5842701",
"0.58419883",
"0.58418226",
"0.5835213",
"0.5823603",
"0.58049804",
"0.58014",
"0.5800606",
"0.5792313",
"0.5789801",
"0.57849807",
"0.57756436",
"0.5773104",
"0.5769342",
"0.5765787",
"0.57606316",
"0.57439417",
"0.5731024",
"0.57282126",
"0.572774",
"0.57183075",
"0.5715893",
"0.57142013",
"0.5705587",
"0.5701301",
"0.5699558",
"0.5698686",
"0.5694691",
"0.5694691",
"0.5694691",
"0.5694691",
"0.56852144",
"0.56783617",
"0.56781876",
"0.56773096",
"0.56745505",
"0.5665836",
"0.56645536"
] | 0.79248357 | 0 |
Method to print the statistics to console | public static void printStatistics(String compareFileName, int percentage) {
System.out.println(percentage + "% of lines are also in " + compareFileName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void printStats();",
"public void printStatistics() {\n\t// Skriv statistiken samlad så här långt\n stats.print();\n }",
"public void printStats() {\n\t\tSystem.out.println(\"========== LCMFreq v0.96r18 - STATS ============\");\n\t\tSystem.out.println(\" Freq. itemsets count: \" + frequentCount);\n\t\tSystem.out.println(\" Total time ~: \" + (endTimestamp - startTimestamp)\n\t\t\t\t+ \" ms\");\n\t\tSystem.out.println(\" Max memory:\" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"=====================================\");\n\t}",
"public void printStatistics() {\r\n\t\tLog.info(\"*** Statistics of Sequence Selector ***\");\r\n\r\n\t\t// chains\r\n\t\tLog.info(String.format(\"Chains: %d\", chains.size()));\r\n\t\tLog.info(String.format(\"Executable Chains: %d\", execChains.size()));\r\n\t\tLog.info(String.format(\"Causal Executable Chains: %d\",\r\n\t\t\t\tcausalExecChains.size()));\r\n\r\n\t\t// bushes\r\n\t\tLog.info(String.format(\"Bushes: %d\", bushes.size()));\r\n\t\tLog.info(String.format(\"Executable Bushes: %d\", execBushes.size()));\r\n\t\tLog.info(String.format(\"Required Bushes: %d\", requiredExecBushes.size()));\r\n\t\tLog.info(String.format(\"Redundant Bushes: %d\",\r\n\t\t\t\tredundantExecBushes.size()));\r\n\r\n\t\t// total\r\n\t\tLog.info(String.format(\"Bushes in Chains: %d\", bushesInChains.size()));\r\n\t\tLog.info(String.format(\"Total Sequences: %d\", totalSequences.size()));\r\n\r\n\t\t// time\r\n\t\tLog.info(String.format(\"Total Time: %d ms\", stopWatch.getTime()));\r\n\t\tLog.info(String.format(\"Time per Event: %d ms\", stopWatch.getTime()\r\n\t\t\t\t/ events.size()));\r\n\t}",
"private void printStats()\n\t{\n\t\t// X\n\t\tSystem.out.println(\"X:\");\n\t\tfor(int i = 0; i < xPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(xPosList.get(i));\n\t\t}\n\n\t\t// Y\n\t\tSystem.out.println(\"Y:\");\n\t\tfor(int i = 0; i < yPosList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(yPosList.get(i));\n\t\t}\n\n\t\t// Time\n\t\tSystem.out.println(\"Time:\");\n\t\tfor(int i = 0; i < timeList.size(); i++)\n\t\t{\n\t\t\tSystem.out.println(timeList.get(i));\n\t\t}\n\t}",
"private static void printStats(Stats stats) {\n long elapsedTime = (System.nanoTime() - startTime) / 1000000;\n System.out.println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n getConsole().println(\"Analysis completed - \" + keyCount + \" keys processed in \" + elapsedTime + \" ms\");\n stats.print();\n }",
"private static void printStats()\r\n\t{\r\n\t\tSystem.out.println(\"Keywords found: \" + keywordHits);\r\n\t\tSystem.out.println(\"Links found: \" + SharedLink.getLinksFound());\r\n\t\tSystem.out.println(\"Pages found: \" + SharedPage.getPagesDownloaded());\r\n\t\tSystem.out.println(\"Failed downloads: \" + SharedPage.getFailedDownloads());\r\n\t\tSystem.out.println(\"Producers: \" + fetchers);\r\n\t\tSystem.out.println(\"Consumers: \" + parsers);\r\n\t}",
"public void printStats() {\n\t\tSystem.out.println(\"QuickSort terminates!\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"Duration: \" + getDuration() + \" seconds\");\n\t\tSystem.out.println(\"Comparisons: \" + this.comparisonCounter);\n\t\tSystem.out.println(\"Boundary: \" + this.b);\n\t}",
"public void statistics(){\n System.out.println(this.scoreboard.toString());\n }",
"public static void showStatistics(){\n\n }",
"public void printStats() {\n\t\tSystem.out.println(\"============= RULEGROWTH - STATS ========\");\n\t\tSystem.out.println(\"Sequential rules count: \" + ruleCount);\n\t\tSystem.out.println(\"Total time: \" + (timeEnd - timeStart) + \" ms\");\n\t\tSystem.out.println(\"Max memory: \" + MemoryLogger.getInstance().getMaxMemory());\n\t\tSystem.out.println(\"==========================================\");\n\t}",
"public void outputStats (){\n System.out.println(\"Your sorcerer's stats:\");\n System.out.println(\"HP = \" + hp);\n System.out.println(\"Mana = \" + mana);\n System.out.println(\"Strength = \" + strength);\n System.out.println(\"Vitality = \" + vitality);\n System.out.println(\"Energy = \" + energy);\n }",
"public void printStats() {\n\n System.out.println(\"Number of Users Arrived: \" + numIn);\n System.out.println(\"Number of Users Exited: \" + numOut);\n System.out.println(\"Average Time Spent Waiting for Cab: \" + (totTimeWait / numIn));\n if (numOut != 0) {\n System.out.println(\"Average Time Spent Waiting and Travelling: \" + (totTime / numOut));\n }\n }",
"public void printMetrics() {\n System.out.println(\"\\nPROG_SIZE = \" + Metrics.getProgSize() + '\\n' + \"EXEC_TIME = \" + Metrics.getExecTime() + \" ms\" + '\\n' + \"EXEC_MOVE = \" + Metrics.getExecMove() + '\\n' + \"DATA_MOVE = \" + Metrics.getDataMove() + '\\n' + \"DATA_READ = \" + Metrics.getDataRead() + '\\n' + \"DATA_WRITE = \" + Metrics.getDataWrite() + '\\n');\n }",
"private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }",
"private void summarize() {\n System.out.println();\n System.out.println(totalErrors + \" errors found in \" +\n totalTests + \" tests.\");\n }",
"public static String printStats() {\n return \"Your Statistics:\" + \"\\n\" +\n \"Total Time in Game (Seconds): \" + timeElapsedSeconds + \"\\n\" +\n \"Total Points: \" + totalScore + \"\\n\" +\n \"Total Number of Taps on Screen: \" + counterClicks + \"\\n\" +\n \"Thanks for Playing!\";\n }",
"protected void dumpStats() {\n\t\t// Print the header.\n\t\tSystem.out.println(\"\\n\"+phCode+\" \"+minDelta+\" \"+maxDelta);\n\t\t\n\t\t// Print the data.\n\t\tSystem.out.println(\"Bias:\");\n\t\tfor(int j=0; j<bias.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,bias.get(j).minDelta,bias.get(j).maxDelta,\n\t\t\t\t\tbias.get(j).slope,bias.get(j).offset);\n\t\t}\n\t\tSystem.out.println(\"Spread:\");\n\t\tfor(int j=0; j<spread.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,spread.get(j).minDelta,spread.get(j).maxDelta,\n\t\t\t\t\tspread.get(j).slope,spread.get(j).offset);\n\t\t}\n\t\tSystem.out.println(\"Observability:\");\n\t\tfor(int j=0; j<observ.size(); j++) {\n\t\t\tSystem.out.format(\" %3d range = %6.2f, %6.2f fit = %11.4e, \"+\n\t\t\t\t\t\"%11.4e\\n\",j,observ.get(j).minDelta,observ.get(j).maxDelta,\n\t\t\t\t\tobserv.get(j).slope,observ.get(j).offset);\n\t\t}\n\t}",
"public void printStats() {\n\t\t\n\t\tif(grafo==null) {\n\t\t\t\n\t\t\tthis.createGraph();\n\t\t}\n\t\t\n\t\tConnectivityInspector <Airport, DefaultWeightedEdge> c = new ConnectivityInspector<>(grafo);\n\t\t\n\t\tSystem.out.println(c.connectedSets().size());\n\n\t}",
"public void stats() {\n\t\tSystem.out.println(\"The score is: \" + score \n\t\t\t\t+ \"\\nNumber of Astronauts rescused: \" + rescuedAstronauts \n\t\t\t\t+ \"\\nNumber of Astronauts roaming: \" + roamingAstronauts\n\t\t\t\t+ \"\\nNumber of Aliens rescued: \" + rescuedAliens\n\t\t\t\t+ \"\\nNumber of Aliens roaming: \" + roamingAliens);\n\t}",
"public void printSummary() {\n\t\tSystem.out.println(MessageFormat.format(\"\\nSummary:\\n Name: {0}\\n Range: 1 to {1}\\n\", this.name, this.numSides));\n\t}",
"public static void printStatistics(String statFile)\r\n\t{\r\n\t\t// TODO add code here to print statistics in the output file\r\n\t}",
"private void printStatistics() {\n\t\t\r\n\t\tSystem.out.println(\"End of simulation report\\n\");\r\n\t\tSystem.out.println(\"\\t# total arrival customers \t\t\t: \" + customerIDCounter);\r\n\t\tSystem.out.println(\"\\t# customers turned-away \t\t: \" + numTurnedAway);\r\n\t\tSystem.out.println(\"\\t# customers served \t\t\t: \" + numServed + \"\\n\");\r\n\t\tSystem.out.println(\"\\t*** Current Tellers Info ***\\n\\n\");\r\n\t\tservicearea.printStatistics();\r\n\t\tSystem.out.println(\"\\n\\n\\tTotal waiting time \t\t\t\t: \" + totalWaitingTime);\r\n\t\tSystem.out.println(\"\\tAverage waiting time \t\t\t: \"\r\n\t\t\t\t+ (double) totalWaitingTime / (customerIDCounter - numTurnedAway));\r\n\t\tSystem.out.println(\"\\n\\n\\tBusy Tellers (\" + servicearea.numBusyTellers() + \") Info\\n\\n\");\r\n\t\tfor (int i = 0; i < servicearea.numBusyTellers();) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// loops through busyTellerQ\r\n\t\t\tTeller nextBusyTeller = servicearea.removeBusyTellerQ();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// empties queue and prints\r\n\t\t\tnextBusyTeller.printStatistics();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// teller statistics\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n\\tFree Tellers (\" + servicearea.numFreeTellers() + \") Info\\n\\n\");\r\n\t\tfor (int i = 0; i < servicearea.numFreeTellers();) {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// loops through freeTellerQ\r\n\t\t\tTeller nextFreeTeller = servicearea.removeFreeTellerQ();\t\t\t\t\t\t\t\t\t\t\t\t\t\t// empties queue and prints\r\n\t\t\tnextFreeTeller.printStatistics();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// teller statistics\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\t\t}\r\n\t}",
"public void printResults() {\n\t System.out.println(\"BP\\tBR\\tBF\\tWP\\tWR\\tWF\");\n\t System.out.print(NF.format(boundaryPrecision) + \"\\t\" + NF.format(boundaryRecall) + \"\\t\" + NF.format(boundaryF1()) + \"\\t\");\n\t System.out.print(NF.format(chunkPrecision) + \"\\t\" + NF.format(chunkRecall) + \"\\t\" + NF.format(chunkF1()));\n\t System.out.println();\n }",
"public static void stdout(){\n\t\tSystem.out.println(\"Buildings Found: \" + buildingsFound);\n\t\tSystem.out.println(\"Pages searched: \"+ pagesSearched);\n\t\tSystem.out.println(\"Time Taken: \" + (endTime - startTime) +\"ms\");\t\n\t}",
"public void show()\n {\n System.out.println( getFullName() + \", \" +\n String.format(Locale.ENGLISH, \"%.1f\", getAcademicPerformance()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getSocialActivity()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getCommunicability()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getInitiative()) + \", \" +\n String.format(Locale.ENGLISH,\"%.1f\", getOrganizationalAbilities())\n );\n }",
"public void print() {\n\t\tSystem.out.println(\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName+\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)+\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress);\r\n\t}",
"public void statistics(){\n\t\tSystem.out.println(\"heads: \"+ heads+\"\\ttails: \"+tails);\n\t\t\n\t}",
"public void stats() {\n\t\tSystem.out.println(\"Hash Table Stats\");\n\t\tSystem.out.println(\"=================\");\n\t\tSystem.out.println(\"Number of Entries: \" + numEntries);\n\t\tSystem.out.println(\"Number of Buckets: \" + myBuckets.size());\n\t\tSystem.out.println(\"Histogram of Bucket Sizes: \" + histogram());\n\t\tSystem.out.printf(\"Fill Percentage: %.5f%%\\n\", fillPercent());\n\t\tSystem.out.printf(\"Average Non-Empty Bucket: %.7f\\n\\n\", avgNonEmpty());\t\t\n\t}",
"public static void tstatSheet(){\n\t\tSystem.out.println(\"\\tStats\");\n\t\tSystem.out.println(\"--------------------------\");\n\t\tSystem.out.println(\"Strength - \" + tstr + \"\\tMagic Power - \" + tmag);\n\t\tSystem.out.println(\"Luck - \" + tluc + \" \\tAccuaracy - \" + tacc);\n\t\tSystem.out.println(\"Defense - \" + tdef + \" \\tSpeed - \" + tspe);\n\t\tSystem.out.println(\"Health - \" + tHP + \" \\tMystic Energy - \" + tMP);\n\t}",
"public void reportStats() {\n System.out.println(\"Number of requests: \" + (requestCount - warmUpRequests));\n System.out.println(\"Number of hits: \" + hitCount);\n System.out.println(\"hit ratio: \" + (double) hitCount / (requestCount - warmUpRequests));\n System.out.println(\"Average hit cost: \" + (double) hitCost / hitCount);\n }",
"@Override\n public void print() {\n if (scoreData.getError() != null) {\n System.err.println(\"ERROR! \" + scoreData.getError());\n return;\n }\n\n // Frames\n printFrames();\n scoreData.getScores().forEach(score -> {\n // Player Names\n printNames(score);\n // Pinfalls\n printPinfalls(score);\n // Scores\n printScores(score);\n });\n }",
"public static void displaySta() {\n System.out.println(\"\\n\\n\");\n System.out.println(\"average service time: \" + doAvgProcessingTime() /100 + \" milliseconds\");\n System.out.println(\"max service time: \" + maxProcessingTime /100 + \" milliseconds\");\n System.out.println(\"average turn around time \" + doAvgTurnAroundTime()/100 + \" milliseconds\");\n System.out.println(\"max turn around time \" + maxTurnAroundTime/100 + \" milliseconds\");\n System.out.println(\"average wait time \" + doAvgWaitTime()/10000 + \" milliseconds\");\n System.out.println(\"max wait time \" + maxWaitTime/10000 + \" milliseconds\");\n System.out.println(\"end time \" + endProgramTime);\n System.out.println(\"start time \" + startProgramTime);\n System.out.println(\"processor utilization: \" + doCPU_usage() + \" %\");\n System.out.println(\"Throughput: \" + doThroughPut());\n System.out.println(\"---------------------------\");\n\n\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn \"Statistical output: \"\n\t\t\t\t+\"replication size = \"+this.replicationSize+\"; \"\n\t\t\t\t+\"sample size = \"+this.sampleSize+\"; \"\n\t\t\t\t+\"mean = \"+this.mean+\"; \"\n\t\t\t\t+\"std. dev. = \"+this.stDev+\"; \"\n\t\t\t\t+\"CI width (alpha = \"+this.alpha+\"; \"+this.nameOfStatisticalTest+\" ) = \"+this.CIWidth+\".\";\n\t}",
"void statistics();",
"public void show() {\n\t\t\n\t\tSystem.out.println(\"time (tree setup) = \" + treeSetup + \" ms\");\n\t\tSystem.out.println(\"time (average search) = \" + (totalSearch/(float)countSearch) + \" ms\");\n\t\tSystem.out.println(\"time (average at) = \" + (totalAt/(float)countAt) + \" ms\");\n \t}",
"public void print() {\n\t\tSystem.out.println(word0 + \" \" + word1 + \" \" + similarity);\n\t}",
"private static void consoleOutput() {\n\n Output airportFlightCounter = new AirportFlightCounter(airports);\n Output flightInventory = new FlightInventory(flights);\n Output flightPassengerCounter = new FlightPassengerCounter(flights);\n Output mileageCounter = new MileageCounter(flights, airports);\n\n airportFlightCounter.toConsole();\n flightInventory.toConsole();\n flightPassengerCounter.toConsole();\n mileageCounter.toConsole();\n }",
"public void printAll(){\n\t\tSystem.out.println(\"Single hits: \" + sin);\n\t\tSystem.out.println(\"Double hits: \" + doub);\n\t\tSystem.out.println(\"Triple hits: \" + trip);\n\t\tSystem.out.println(\"Homerun: \" + home);\n\t\tSystem.out.println(\"Times at bat: \" + atbat);\n\t\tSystem.out.println(\"Total hits: \" + hits);\n\t\tSystem.out.println(\"Baseball average: \" + average);\n\t}",
"public void printPlayerStats(PlayerStats statistics) {\r\n\t\tSystem.out.print(statistics.playerStatsToString());\r\n\t}",
"public void printInfo() {\n System.out.println(\"\\n\" + name + \"#\" + id);\n System.out.println(\"Wall clock time: \" + endWallClockTime + \" ms ~ \" + convertFromMillisToSec(endWallClockTime) + \" sec\");\n System.out.println(\"User time: \" + endUserTimeNano + \" ns ~ \" + convertFromNanoToSec(endUserTimeNano) + \" sec\");\n System.out.println(\"System time: \" + endSystemTimeNano + \" ns ~ \" + convertFromNanoToSec(endSystemTimeNano) + \" sec\");\n System.out.println(\"CPU time: \" + (endUserTimeNano + endSystemTimeNano) + \" ns ~ \" + convertFromNanoToSec(endUserTimeNano + endSystemTimeNano) + \" sec\\n\");\n }",
"void dumpStats() {\n long wallTimeNanos = totalStopwatch.elapsed(TimeUnit.NANOSECONDS);\n long dbtime = 0;\n for (String name : methodCalls.keySet()) {\n long calls = methodCalls.get(name);\n long time = methodTotalTime.get(name);\n dbtime += time;\n long average = time / calls;\n double proportion = (time + 0.0) / (wallTimeNanos + 0.0);\n log.info(name + \" c:\" + calls + \" r:\" + time + \" a:\" + average + \" p:\" + String.format(\"%.2f\", proportion));\n }\n double dbproportion = (dbtime + 0.0) / (wallTimeNanos + 0.0);\n double hitrate = (hit + 0.0) / (hit + miss + 0.0);\n log.info(\"Cache size:\" + utxoCache.size() + \" hit:\" + hit + \" miss:\" + miss + \" rate:\"\n + String.format(\"%.2f\", hitrate));\n bloom.printStat();\n log.info(\"hasTxOut call:\" + hasCall + \" True:\" + hasTrue + \" False:\" + hasFalse);\n log.info(\"Wall:\" + totalStopwatch + \" percent:\" + String.format(\"%.2f\", dbproportion));\n String stats = db.getProperty(\"leveldb.stats\");\n System.out.println(stats);\n\n }",
"public void printAnalysis(){\n System.out.println(\"Product: \" + this.getName());\n System.out.println(\"History: \" + this.history());\n System.out.println(\"Largest amount of product: \" + this.inventoryHistory.maxValue());\n System.out.println(\"Smallest amount of product: \" + this.inventoryHistory.minValue());\n System.out.println(\"Average: \" + this.inventoryHistory.average());\n }",
"public void printInfo()\n {\n System.out.println(\"position Value:\" + pos_.get(0).getPosition());\n System.out.println(\"velocitiy Value:\" + vel_.get(0).getVelocity());\n System.out.println(\"lastUpdateTime Value:\" + lastPosUpdateTime_);\n System.out.println(\"KalmanGain_ Value:\" + KalmanGain_);\n }",
"public void printStatus() {\n\t\tSystem.out.println(\"Current : \"+current+\"\\n\"\n\t\t\t\t+ \"Tour restant : \"+nb_rounds+\"\\n\"\n\t\t\t\t\t\t+ \"Troupe restant : \"+nb_to_train);\n\t}",
"public void Display() {\n\t\tSystem.out.println(Integer.toHexString(PID) + \"\\t\" + Integer.toString(CreationTime) + \"\\t\"+ Integer.toHexString(CommandCounter) + \"\\t\" + ProcessStatus.toString() \n\t\t+ \"\\t\" + Integer.toString(MemoryVolume) + \"\\t\" + Integer.toHexString(Priority) + \"\\t\" + ((MemorySegments != null)? MemorySegments.toString() : \"null\"));\n\t}",
"private void printStatistics(int i){\n\t\tdouble mean=0;\n\t\tdouble min=999999999;\n\t\tdouble max=-999999999;\n\t\tint cnt=0;\n\t\tfor (String[] rCode:GMSValues.keySet()){\n\t\t\tdouble x=GMSValues.get(rCode);\n\t\t\tif (x==0)System.out.println(\"NULL\");\n\t\t\tmean=mean+x;\n\t\t\tif (x<min)min=x;\n\t\t\tif (x>max)max=x;\n\t\t\tcnt++;\n\t\t}\n\t\tmean=mean/(double)cnt;\n\t\tSystem.out.println(\"Minimum: \"+min);\n\t\tSystem.out.println(\"Maximum: \"+max);\n\t\tSystem.out.println(\"Mean Value: \"+mean);\n\t\ttry {\n\t \t FileWriter fw = new FileWriter(new File(\"data/GreedyResults.log\"), true);\n\t \t if (i==0)fw.write(\"Date, Run, Minimum, Maximum, Mean \"+\"\\n\");\n\t \t fw.write(new SimpleDateFormat(\"dd.MM.yyyy HH:mm:ss\").format(new Date())+\", \"+i+\", \");\n\t \t fw.write(min+\", \"+max+\", \"+mean+\"\\n\");\n\t \t fw.close();\n\t } catch (IOException e) {\n\t\t\tSystem.out.println(\"Filewriter Error\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif(mean<min){\n\t\t\tSystem.out.println(\"FEHLER: Mean too small\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\t\n\t}",
"public void printCountersAndDiagnostics() {\n\t\tSystem.out.println(\"Node \" + myAssignedID + \"::\" + \"\\t\" + \"Sent\" + \"\\t\"\n\t\t\t\t+ \"Rec'd\" + \"\\t\" + \"Relayed\" + \"\\t\" + \"SumSent\" + \"\\t\"\n\t\t\t\t+ \"SumRecd\");\n\t\tSystem.out.println(\"\\t\\t\" + this.sendTracker + \"\\t\"\n\t\t\t\t+ this.receiveTracker + \"\\t\" + this.relayTracker + \"\\t\"\n\t\t\t\t+ this.sendSummation + \"\\t\" + this.receiveSummation);\n\t}",
"private void printReport() {\n\t\t\tSystem.out.println(\"Processed \" + this.countItems + \" items:\");\n\t\t\tSystem.out.println(\" * Labels: \" + this.countLabels);\n\t\t\tSystem.out.println(\" * Descriptions: \" + this.countDescriptions);\n\t\t\tSystem.out.println(\" * Aliases: \" + this.countAliases);\n\t\t\tSystem.out.println(\" * Statements: \" + this.countStatements);\n\t\t\tSystem.out.println(\" * Site links: \" + this.countSiteLinks);\n\t\t}",
"public void print(){\r\n\t\tSystem.out.println(\"Size of each block:\\t\\t\" + this.blockSize);\r\n\t\tSystem.out.println(\"Total Number of Inodes:\\t\\t\" + this.inodeCount);\r\n\t\tSystem.out.println(\"Total Number of Blocks:\\t\\t\" + this.blocksCount);\r\n\t\tSystem.out.println(\"Number of Free Blocks:\\t\\t\" + this.freeBlocksCount);\r\n\t\tSystem.out.println(\"Number of Free Inodes:\\t\\t\" + this.freeInodesCount);\r\n\t\tSystem.out.println(\"First Data Block:\\t\\t\" + this.firstDataBlock);\r\n\t\tSystem.out.println(\"Last Written Date and Time:\\t\" + GeneralUtils.getDateFromLong(this.wTime));\r\n\t\tSystem.out.println(\"First Inode:\\t\\t\\t\" + this.firstInode);\r\n\t\tSystem.out.println(\"Inode Size:\\t\\t\\t\" + this.inodeSize);\r\n\t}",
"public String getStatistics() throws IOException{\n initiateWordCount();\n getHamStatistics(); \n getSpamStatistics();\n return printStatistics(); \n }",
"public static void Print() {\n\t\tSystem.out.println(\"Ticks: total \" + totalTicks + \", idle \" + idleTicks + \", system \" + systemTicks + \", user \"\n\t\t\t\t+ userTicks);\n\n\t\tSystem.out.println(\"Disk I/O: reads \" + numDiskReads + \", writes \" + numDiskWrites);\n\t\tSystem.out.println(\"Console I/O: reads \" + numConsoleCharsRead + \", writes \" + numConsoleCharsWritten);\n\t\tSystem.out.println(\"Paging: faults \" + numPageFaults);\n\n\t\tSystem.out.println(\"Network I/O: packets received \" + numPacketsRecvd + \", sent \" + numPacketsSent);\n\t}",
"public void print_metrics(){\n\t\tHashMap<Integer, HashSet<Integer>> pairs=return_pairs();\n\t\tint total=gold.data.getTuples().size();\n\t\ttotal=total*(total-1)/2;\n\t\tSystem.out.println(\"Reduction Ratio is: \"+(1.0-(double) countHashMap(pairs)/total));\n\t\tint count=0;\n\t\tfor(int i:pairs.keySet())\n\t\t\tfor(int j:pairs.get(i))\n\t\t\tif(goldContains(i,j))\n\t\t\t\tcount++;\n\t\tSystem.out.println(\"Pairs Completeness is: \"+(double) count/gold.num_dups);\n\t}",
"public static void showStats() {\n\n List<String> stats = statsList.subList(Math.max(statsList.size() - 3, 0), statsList.size());\n\n System.out.println(\"Stats:\");\n for(String stat : stats){\n System.out.println(stat);\n }\n }",
"@Override\n public void printStatistics(\n PrintStream out, Result result, ReachedSet reached) {\n Preconditions.checkNotNull(out);\n Preconditions.checkNotNull(result);\n // reached set can be NULL\n\n if (analysisTime.isRunning()) {\n analysisTime.stop();\n }\n if (programTime.isRunning()) {\n programTime.stop();\n }\n if (memStats != null) {\n memStatsThread.interrupt(); // stop memory statistics collection\n }\n\n // print CFA statistics\n printCfaStatistics(out);\n\n // print global time statistics\n printTimeStatistics(out);\n\n // print global memory statistics\n printMemoryStatistics(out);\n\n }",
"@Override\n public void visualize() {\n if (this.count() > 0){\n for (int i = 0; i < this.count(); i++){\n System.out.println(i + \".- \" + this.bench.get(i).getName() + \" (ID: \" + this.bench.get(i).getId() + \")\");\n }\n } else {\n System.out.println(\"La banca está vacía.\");\n }\n\n }",
"public static void printStats(QuitObject q) {\r\n\t\t\tSystem.out.println(\"Numbers greater than 0.5 after \" + q.getFinalCount() + \"= \" + q.getGreaterThan());\r\n\t\t\tSystem.out.println(\"Numbers less that or equal to 0.5 after \" + q.getFinalCount() + \"= \" + q.getLessThan());\r\n\t\t}",
"public void printResults(){\n\t\tSystem.out.println(\"The area of the triangle is \" + findArea());\n\t\tSystem.out.println(\"The perimeter of the triangle is \"+ findPerimeter());}",
"private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}",
"public void showMetrics() {\n }",
"void printInfo() {\n\t\tdouble salary=120000;\n\t System.out.println(salary);\n\t\tSystem.out.println(name+\" \"+age);\n\t}",
"public void print_dev() {\n\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName\r\n\t\t\t\t\t\t\t\t+\t\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)\r\n\t\t\t\t\t\t\t\t+\t\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Function Limit Count\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Eat : \"+TMGCSYS.tmgcLimitEat+\", Sleep : \"+TMGCSYS.tmgcLimitSleep\r\n\t\t\t\t\t\t\t\t+\t\", Walk : \"+TMGCSYS.tmgcLimitWalk+\", Study : \"+TMGCSYS.tmgcLimitStudy+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Ability\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" STR : \"+TMGCSYS.tmgcSTR+\", INT : \"+TMGCSYS.tmgcINT\r\n\t\t\t\t\t\t\t\t+\t\", DEB : \"+TMGCSYS.tmgcDEB+\", HET : \"+TMGCSYS.tmgcHET+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Job : \"+TMGCSYS.tmgc2ndJob\r\n\t\t\t\t\t\t\t\t);\r\n\t}",
"private void printReport() {\n\t\tSystem.out.println(getReport());\n\t}",
"public void displayResults() {\r\n Preferences.debug(\" ******* FitMultiExponential ********* \\n\\n\", Preferences.DEBUG_ALGORITHM);\r\n dumpTestResults();\r\n }",
"public void info()\n {\n System.out.println(toString());\n }",
"public void print() {\n super.print();\r\n System.out.println(\"Hourly Wage: \" + hourlyWage);\r\n System.out.println(\"Hours Per Week: \" + hoursPerWeek);\r\n System.out.println(\"Weeks Per Year: \" + weeksPerYear);\r\n }",
"public void print()\n\t{\n\t\tminGenes = Integer.MAX_VALUE;\n\t\tmaxGenes = 0;\n\t\tcreatureGenesQty = 0;\n\t\tfor (Creature creature : creatures)\n\t\t{\n\t\t\tminGenes = (minGenes > creature.getGenotype().size()) ? creature\n\t\t\t\t\t.getGenotype().size() : minGenes;\n\t\t\tmaxGenes = (maxGenes < creature.getGenotype().size()) ? creature\n\t\t\t\t\t.getGenotype().size() : maxGenes;\n\t\t\tcreatureGenesQty += creature.getGenotype().size();\n\t\t\t//creature.print();\n\t\t\tSystem.out.println(\"--------------------------\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"--------------------------\");\n\t\t}\n\t\tavgGenes = creatureGenesQty / ((float) size());\n\n\t\t// add some statistics\n\t\tSystem.out.println(\"Population size: \" + size());\n\t\tSystem.out.println(\"Minimum number of genes: \" + minGenes);\n\t\tSystem.out.println(\"Average number of genes: \" + avgGenes);\n\t\tSystem.out.println(\"Maximum number of genes: \" + maxGenes);\n\t\tCreatureLog.info(String.valueOf(size()) + \"\\t\" + avgGenes + \"\\t\" + minGenes + \"\\t\" +maxGenes);\n\n\t}",
"public static void _generateStatistics() {\n\t\ttry {\n\t\t\t// Setup info\n\t\t\tPrintStream stats = new PrintStream(new File (_statLogFileName + \".txt\"));\n\n\t\t\tScanner scan = new Scanner(new File(_logFileName+\".txt\"));\n\t\t\twhile (scan.hasNext(SETUP.toString())) {\n\t\t\t\t// Append setup info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tstats.append(\"\\n\");\n\n\t\t\twhile (scan.hasNext(DETAILS.toString()) || scan.hasNext(RUN.toString())) {\n\t\t\t\t// Throw detailed info away\n\t\t\t\tscan.nextLine();\n\t\t\t}\n\n\t\t\twhile (scan.hasNext()) {\n\t\t\t\t// Append post-run info\n\t\t\t\tstats.append(scan.nextLine()+\"\\n\");\n\t\t\t}\n\t\t\tscan.close();\n\t\t\tstats.append(\"\\n\");\n\n\t\t\t// Perf4J info\n\t\t\tReader reader = new FileReader(_logFileName+\".txt\");\n\t\t\tLogParser parser = new LogParser(reader, stats, null, 10800000, true, new GroupedTimingStatisticsTextFormatter());\n\t\t\tparser.parseLog();\n\t\t\tstats.close();\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void showInformation() {\n\t\tSystem.out.println(\"Title: \" + getTitle());\n\t\tSystem.out.println(\"Time: \" + getTime());\n\t\tSystem.out.println(\"Number: \" + getNumber());\n\t}",
"public void printDetails() {\r\n\t\tSystem.out.println(\" \");\r\n\t\tSystem.out.println(showtimeId + \" \" + movie.getTitle() + \" starts at \" + startTime.toString());\r\n\t}",
"public static void printSummary(double[] m) {\n Arrays.sort(m);\n double min = m[0];\n int len = m.length;\n double max = m[len - 1];\n double avg = StatUtils.mean(m);\n double sd = FastMath.sqrt(StatUtils.variance(m));\n System.out.printf(\"Length %d, Min %.2f, Max %.2f, Avg %.2f, SD %.2f \\n\", len, min, max, avg, sd);\n }",
"public void print() {\n\t\tSystem.out.println(name + \" -- \" + rating + \" -- \" + phoneNumber);\n\t}",
"public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}",
"public void printStats(PrintStream out)\n {\n \n out.println(\"\\np(a_e|P_c,P_e,a_c):\");\n printProb(out, srcDstPredicateArgMap, 10, 0.05f);\n \n out.println(\"\\np(a_c|P_e,P_c,a_e):\");\n printProb(out, dstSrcPredicateArgMap, 10, 0.05f);\n \n //printMatrix(out, srcDstArgTypeMap, dstSrcArgTypeMap);\n \n //out.printf(\"one-to-one: %d, total: %d, %f\\n\", oneToOne, total, oneToOne*1.0/total);\n\n }",
"public void print() {\r\n System.out.print( getPlayer1Id() + \", \" );\r\n System.out.print( getPlayer2Id() + \", \");\r\n System.out.print(getDateYear() + \"-\" + getDateMonth() + \"-\" + getDateDay() + \", \");\r\n System.out.print( getTournament() + \", \");\r\n System.out.print(score + \", \");\r\n System.out.print(\"Winner: \" + winner);\r\n System.out.println();\r\n }",
"private void printResults() {\n\t\tfor (Test test : tests) {\n\t\t\ttest.printResults();\n\t\t}\n\t}",
"private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }",
"public void printInfo(){\n\t}",
"public void printInfo(){\n\t}",
"public void printResults() {\n getUtl().getOutput().add(\"~~ Results ~~\\n\");\n for (int i = 0; i < getHeroes().size(); i++) {\n if (getHeroes().get(i).isDead()) {\n getUtl().getOutput().add(getHeroes().get(i).getName().\n toCharArray()[0] + \" dead\\n\");\n } else {\n getUtl().getOutput().add(getHeroes().get(i).getName().\n toCharArray()[0] + \" \"\n + getHeroes().get(i).getLevel() + \" \"\n + getHeroes().get(i).getXp() + \" \"\n + getHeroes().get(i).getHp() + \" \"\n + getHeroes().get(i).getPosX() + \" \"\n + getHeroes().get(i).getPosY() + \"\\n\");\n }\n }\n // Write output to given outputPath.\n getGameFileWriter().write(getUtl().getOutput());\n for (int i = 0; i < getUtl().getOutput().size(); i++) {\n // Write output to console as well.\n System.out.print(getUtl().getOutput().get(i));\n }\n }",
"public void print_line(){\n\t\t\n\t\tSystem.out.println(this.getClass().getName() + \" \" + this.average());\n\t\t\n\t}",
"public void displayStats(int lowAttack, int medAttack, int highAttack)\n\t{\n\t\tSystem.out.println (\"Summary of Combat\");\n\t\tSystem.out.println (\"Total Hits Overall: \" + numHits + \" Total Blocks Overall: \" + numBlocks);\n\t\tSystem.out.println (\"Attacker Proportions: \" + \"Low \" + lowAttack + \"% \" + \"Medium \" +\n\t\t\t\t\t\t\tmedAttack + \"% \" + \"High \" + highAttack + \"% \");\n\t\tSystem.out.print (\"Defender Proportions: \" + \"Low \");\n\t\tSystem.out.printf(\"%.2f\", (lowBlocks * 100)/(count+1));\n\t\tSystem.out.print(\"% \" + \"Medium \"); \n\t\tSystem.out.printf(\"%.2f\", ((medBlocks*100)/(count+1)));\n\t\tSystem.out.print(\"% \" + \"High \");\n\t\tSystem.out.printf(\"%.2f\", ((highBlocks*100)/(count+1)));\n\t\tSystem.out.println(\"% \");\t\t\n\t\n\t}",
"private void print() {\n\t\tList<Entry<String, Double>> entries = sort();\n\t\tfor (Entry<String, Double> entry: entries) {\n\t\t\tSystem.out.println(entry);\n\t\t}\n\t}",
"public static String showAllStats() {\n return showStats(allStats, \"All stats\");\n }",
"private void printResults() {\n\t\tdouble percentCorrect = (double)(correctAnswers/numberAmt) * 100;\n\t\tSystem.out.println(\"Amount of number memorized: \" + numberAmt +\n\t\t\t\t \"\\n\" + \"Amount correctly answered: \" + correctAnswers +\n\t\t\t\t \"\\n\" + \"Percent correct: \" + (int)percentCorrect);\n\t}",
"public void printStatistics() throws SQLException {\n\t\t\temployeeDAO.printStatistics();\n\t\t\t\n\t\t}",
"public void printStatus(){\n System.out.println(\"Nodes: \" + \n getVertexCount() + \" Edges: \" + \n getEdgeCount()); \n //and \" + getEdgeCount() + \" edges active.\");\n }",
"private void calculateAndShowStatistics() {\n Map<Country, Float> countryWithMinInternetUsers = findCountryWithMinInternetUsers();\n Map<Country, Float> countryWithMinLiteracyRate = findCountryWithMinLiteracyRate();\n Map<Country, Float> countryWithMaxInternetUsers = findCountryWithMaxInternetUsers();\n Map<Country, Float> countryWithMaxLiteracyRate = findCountryWithMaxLiteracyRate();\n\n // Output header\n System.out.println(\"\\nStatistics based on the data provided in the database\\n\");\n\n // Output minimums\n screenPrinter.outputMinOrMax(\"minimum\", \"amount of Internet Users\", countryWithMinInternetUsers);\n screenPrinter.outputMinOrMax(\"minimum\", \"Adult Literacy Rate\",countryWithMinLiteracyRate);\n\n // Output maximums\n screenPrinter.outputMinOrMax(\"maximum\", \"amount of Internet Users\",countryWithMaxInternetUsers);\n screenPrinter.outputMinOrMax(\"maximum\", \"Adult Literacy Rate\",countryWithMaxLiteracyRate);\n System.out.println();\n\n // Find countries that have all the data\n List<Country> countriesWithoutMissingData = findAllCountiesWithoutMissingData();\n\n // Form two separate lists with just indicators\n List<Float> listOfInternetUsersRates = getListOfInternetUsersRates(countriesWithoutMissingData);\n List<Float> listOfLiteracyRates = getListOfLiteracyRates(countriesWithoutMissingData);\n\n // Calculate the correlation coefficient\n double correlationCoefficient = calculateCorCoeff(listOfInternetUsersRates, listOfLiteracyRates);\n// double pearsonCoefficient = calculateCoeffThirdParty(listOfInternetUsersRates, listOfLiteracyRates);\n\n // output correlation coefficient\n screenPrinter.outputCorrelation(correlationCoefficient);\n }",
"public void printUsage() {\n printUsage(System.out);\n }",
"public void dump(String prefix) {\n\t\tSystem.out.println(prefix+\"Stats \"+hp+\",\"+mp+\",\"+age+\",\"+exp);\n\t}",
"public static void printResults() {\n System.out.println(\" Results: \");\n Crawler.getKeyWordsHits().forEach((keyWord, hitsNumber) -> System.out.println(keyWord + \" : \" + hitsNumber + \";\"));\n System.out.println(\" Total hits: \" + Crawler.getTotalHits());\n\n }",
"void printInfo();",
"public void showInfo()\n\t{\n\t\tSystem.out.println(\"Account Number : \"+getAccountNumber());\n\t\tSystem.out.println(\"Balance : \"+getBalance());\n\t\tSystem.out.println(\"Tenure Year : \"+tenureYear);\n\t}",
"public String doPrint() {\n\t\t// Get the event title.\n\t\tString event = \"\";\n\t\tswitch (eventType) {\n\t\t\tcase \"IND\": event = \"Individual\";\n\t\t\t\t\t\tbreak;\n\t\t\tcase \"GRP\": event = \"Group\";\n\t\t\t\t\t\tbreak;\n\t\t\tcase \"PARIND\": event = \"Parallel Individual\";\n\t\t\t\t\t\t break;\n\t\t\tcase \"PARGRP\": event = \"Parallel Group\";\n\t\t\t\t\t\t break;\n\t\t default:\tevent = \"\";\n\t\t \t\t\tbreak;\n\t\t}\n\t\t\n\t\tString out = \"RUN BIB TIME\t \" + event +\"\\n\";\n\t\t\n\t\t// Print completed runs.\n\t\tfor ( Run run : completedRuns ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\t// Print inProgress runs.\n\t\tfor ( Run run : finishQueue ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\t// Print waiting runs.\n\t\tfor ( Run run : startQueue ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn out;\n\t}",
"public void display() {\n System.out.println(toString());\n }",
"protected abstract String getStatistics();",
"private void printStatistics() throws IOException {\n\n\t\tSystem.out.println(\"*********************** \" + analyzer\n\t\t\t\t+ \" *********************************\");\n\n\t\tidxReader = DirectoryReader\n\t\t\t\t.open(FSDirectory.open(Paths.get(indexPath)));\n\n\t\tSystem.out.println(\"Total no. of document in the corpus: \"\n\t\t\t\t+ idxReader.maxDoc());\n\n\t\tTerms vocabulary = MultiFields.getTerms(idxReader, \"TEXT\");\n\n\t\tSystem.out.println(\"Number of terms in dictionary for TEXT field:\"\n\t\t\t\t+ vocabulary.size());\n\n\t\tSystem.out.println(\"Number of tokens for TEXT field:\"\n\t\t\t\t+ vocabulary.getSumTotalTermFreq());\n\n\t\tidxReader.close();\n\t}",
"public void print() {\r\n\t\tint size = list.size();\r\n\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"┌───────────────────────────┐\");\r\n\t\tSystem.out.println(\"│ \t\t\t성적 출력 \t\t │\");\r\n\t\tSystem.out.println(\"└───────────────────────────┘\");\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\r\n\t\t\tExam exam = list.get(i);\r\n\t\t\tint kor = exam.getKor();\r\n\t\t\tint eng = exam.getEng();\r\n\t\t\tint math = exam.getMath();\r\n\r\n\t\t\tint total = exam.total();// kor + eng + math;\r\n\t\t\tfloat avg = exam.avg();// total / 3.0f;\r\n\t\t\tSystem.out.printf(\"성적%d > 국어:%d, 영어:%d, 수학:%d\", i + 1, kor, eng, math);\r\n\t\t\tonPrint(exam);\r\n\t\t\tSystem.out.printf(\"총점:%d, 평균:%.4f\\n\", total, avg);\r\n\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"─────────────────────────────\");\r\n\r\n\t}",
"public void printDebugHistograms() {\n if (graphHaplotypeHistogramPath != null) {\n\n try (final PrintStream histogramWriter = new PrintStream(graphHaplotypeHistogramPath)) {\n histogramWriter.println(\"Histogram over the number of haplotypes recovered per active region:\");\n histogramWriter.println(haplotypeHistogram.toString());\n\n histogramWriter.println(\"\\nHistogram over the average kmer size used for assembly:\");\n histogramWriter.println(kmersUsedHistogram.toString());\n\n } catch (IOException e) {\n throw new UserException.CouldNotCreateOutputFile(graphHaplotypeHistogramPath, e);\n }\n }\n }",
"@Override\r\n\tpublic void showSpeed() {\n\t\tSystem.out.println(\"i can run at 100km/h\");\r\n\t}",
"private void statsOutput(long startTime, long endTime ,Stat stat, int taskSize, List<Stat> listStat) {\n\n System.out.println();\n System.out.println(\" !!! END OF REQUEST !!!\");\n System.out.println();\n System.out.println(\"----------------------------------\");\n System.out.println(\" STATISTICS\");\n System.out.println(\"----------------------------------\");\n System.out.println(\"1. Number of threads: \" + taskSize);\n System.out.println(\"2. Total run time: \" + (endTime - startTime));\n System.out.println(\"3. Total request sent: \" + stat.getSentRequestsNum());\n System.out.println(\"4. Total successful request: \" + stat.getSuccessRequestsNum());\n System.out.println(\"5. Mean latency: \" + stat.getMeanLatency());\n System.out.println(\"6. Median latency: \" + stat.getMedianLatency());\n System.out.println(\"7. 95th percentile latency: \" + stat.get95thLatency());\n System.out.println(\"8. 99th percentile latency: \" + stat.get99thLatency());\n\n if(listStat!=null){\n OutputChart outputChart = new OutputChart(listStat);\n outputChart.generateChart(\"Part 1\");\n }\n\n }"
] | [
"0.84616554",
"0.84134465",
"0.7938017",
"0.7785385",
"0.77491707",
"0.76872844",
"0.76472926",
"0.7626531",
"0.75749964",
"0.74382865",
"0.7419288",
"0.73704976",
"0.7359236",
"0.7323438",
"0.729069",
"0.729069",
"0.7289072",
"0.72812736",
"0.72594756",
"0.7195017",
"0.71365327",
"0.7043455",
"0.70409894",
"0.7040569",
"0.7039299",
"0.7000809",
"0.6959372",
"0.69329643",
"0.6932865",
"0.6927521",
"0.689269",
"0.68658453",
"0.68411475",
"0.6833145",
"0.68308014",
"0.68198085",
"0.6804418",
"0.678971",
"0.67447656",
"0.6739893",
"0.6736208",
"0.6735709",
"0.67193973",
"0.6715587",
"0.66957784",
"0.6679623",
"0.667877",
"0.66720796",
"0.66689414",
"0.6662145",
"0.6648354",
"0.6642463",
"0.6641312",
"0.6638565",
"0.6623802",
"0.6615187",
"0.6614023",
"0.6582615",
"0.65731347",
"0.65725034",
"0.6559285",
"0.6555897",
"0.6549455",
"0.6540085",
"0.65209913",
"0.65206224",
"0.6517152",
"0.65073967",
"0.65056765",
"0.6503805",
"0.6496639",
"0.64912206",
"0.64903474",
"0.648534",
"0.64798325",
"0.6479786",
"0.6467632",
"0.6455984",
"0.6455984",
"0.64534026",
"0.64490455",
"0.6441475",
"0.64374715",
"0.6432491",
"0.64295465",
"0.6420653",
"0.6415622",
"0.64143085",
"0.64068466",
"0.63965654",
"0.63914144",
"0.63748",
"0.6366486",
"0.63617027",
"0.6358323",
"0.63571405",
"0.63545114",
"0.6352541",
"0.63441557",
"0.6340186",
"0.63291085"
] | 0.0 | -1 |
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / | public Object[][] getContents() {
/* 223 */ return m_errorMessages;
/* */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void func_104112_b() {\n \n }",
"void mo33732Px();",
"Info mo7564ix();",
"private void m50366E() {\n }",
"void mo21072c();",
"void mo57278c();",
"private void m50367F() {\n }",
"void mo72113b();",
"public abstract void mo56925d();",
"void mo60893b();",
"public byte[] initialValue() {\n return new byte[]{(byte) -1, (byte) -40, (byte) -1, (byte) -37, (byte) 0, (byte) 67, (byte) 0, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -64, (byte) 0, (byte) 17, (byte) 8, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 1, (byte) 34, (byte) 0, (byte) 2, (byte) 17, (byte) 0, (byte) 3, (byte) 17, (byte) 0, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 0, (byte) 0, (byte) 1, (byte) 5, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 16, (byte) 0, (byte) 2, (byte) 1, (byte) 3, (byte) 3, (byte) 2, (byte) 4, (byte) 3, (byte) 5, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 0, (byte) 1, (byte) 125, (byte) 1, (byte) 2, (byte) 3, (byte) 0, (byte) 4, (byte) 17, (byte) 5, (byte) 18, (byte) 33, (byte) 49, (byte) 65, (byte) 6, (byte) 19, (byte) 81, (byte) 97, (byte) 7, (byte) 34, (byte) 113, (byte) 20, (byte) 50, (byte) -127, (byte) -111, (byte) -95, (byte) 8, (byte) 35, (byte) 66, (byte) -79, (byte) -63, (byte) 21, (byte) 82, (byte) -47, (byte) -16, (byte) 36, (byte) 51, (byte) 98, (byte) 114, (byte) -126, (byte) 9, (byte) 10, (byte) 22, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 37, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 52, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -31, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -15, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 1, (byte) 0, (byte) 3, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 17, (byte) 0, (byte) 2, (byte) 1, (byte) 2, (byte) 4, (byte) 4, (byte) 3, (byte) 4, (byte) 7, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 1, (byte) 2, (byte) 119, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 17, (byte) 4, (byte) 5, (byte) 33, (byte) 49, (byte) 6, (byte) 18, (byte) 65, (byte) 81, (byte) 7, (byte) 97, (byte) 113, (byte) 19, (byte) 34, (byte) 50, (byte) -127, (byte) 8, (byte) 20, (byte) 66, (byte) -111, (byte) -95, (byte) -79, (byte) -63, (byte) 9, (byte) 35, (byte) 51, (byte) 82, (byte) -16, (byte) 21, (byte) 98, (byte) 114, (byte) -47, (byte) 10, (byte) 22, (byte) 36, (byte) 52, (byte) -31, (byte) 37, (byte) -15, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -126, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -38, (byte) 0, (byte) 12, (byte) 3, (byte) 1, (byte) 0, (byte) 2, (byte) 17, (byte) 3, (byte) 17, (byte) 0, (byte) 63, (byte) 0, (byte) -114, (byte) -118, (byte) 40, (byte) -96, (byte) 15, (byte) -1, (byte) -39};\n }",
"public void method_4270() {}",
"void mo57277b();",
"void mo72114c();",
"void mo27575a();",
"void mo88524c();",
"public abstract long mo9229aD();",
"void mo1943l();",
"protected void mo6255a() {\n }",
"void mo21076g();",
"void m8368b();",
"@Override\n public void perish() {\n \n }",
"private void kk12() {\n\n\t}",
"public abstract long mo13681c();",
"protected boolean func_70814_o() { return true; }",
"public abstract int mo9754s();",
"public void mo21877s() {\n }",
"public void mo3376r() {\n }",
"public abstract String mo118046b();",
"private void level7() {\n }",
"public abstract int mo9753r();",
"public abstract String mo9751p();",
"public void mo3370l() {\n }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public abstract long mo24409b();",
"void mo21073d();",
"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 abstract long mo9743h();",
"byte[] mo38566a();",
"public abstract long mo9746k();",
"public abstract int mo123248g();",
"public abstract void mo6549b();",
"public abstract String mo8770a();",
"public int method_2436() {\r\n return 16;\r\n }",
"public void mo55254a() {\n }",
"public abstract void mo70713b();",
"public abstract String mo41079d();",
"public void mo6081a() {\n }",
"public abstract int mo8526p();",
"void mo21070b();",
"@Override\n\tpublic void challenge8() {\n\n\t}",
"void mo67924c();",
"public abstract void mo27385c();",
"void mo41086b();",
"public abstract long mo24410c();",
"double passer();",
"void mo3194r();",
"public abstract int mo123249h();",
"public void mo21787L() {\n }",
"public abstract String mo13682d();",
"void mo56163g();",
"@Override\n\tpublic void challenge9() {\n\n\t}",
"C32446a mo21077h() throws Exception;",
"void mo80457c();",
"void mo41083a();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"default int getCompositeBitLength() {\n return getHighBitLength() + getLowBitLength();\n }",
"static int size_of_xri(String passed){\n\t\treturn 2;\n\t}",
"void mo119582b();",
"public abstract int mo9742g();",
"private static void cajas() {\n\t\t\n\t}",
"public void mo21783H() {\n }",
"void mo12637b();",
"public void skystonePos4() {\n }",
"static int size_of_xra(String passed){\n\t\treturn 1;\n\t}",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"public interface ITechLinker extends ITechByteObject {\r\n \r\n /**\r\n * \r\n */\r\n public static final int LINKER_BASIC_SIZE = A_OBJECT_BASIC_SIZE + 5;\r\n\r\n /**\r\n * \r\n */\r\n public static final int LINKER_OFFSET_01_TYPE1 = A_OBJECT_BASIC_SIZE;\r\n\r\n /**\r\n * \r\n */\r\n public static final int LINKER_OFFSET_02_DATA4 = A_OBJECT_BASIC_SIZE + 1;\r\n\r\n}",
"@Override\n\tpublic void challenge17() {\n\n\t}",
"void mo17012c();",
"@Override\n\tprotected void interr() {\n\t}",
"public void gored() {\n\t\t\n\t}",
"public abstract void mo27386d();",
"@Override\n\tpublic void challenge10() {\n\n\t}",
"public void mo21786K() {\n }",
"static int getNumPatterns() { return 64; }",
"public abstract int mo9747l();",
"public void testTwoWayDistribution() {\n for(int p = 0; p < 20; p++) {\n int[] landings = new int[2];\n for(long in = 0; in < 100000; in++) {\n long longHash = FPGenerator.std64.fp(p+\"a\"+in);\n// long longHash = rand.nextLong();\n// long longHash = ArchiveUtils.doubleMurmur((p+\":\"+in).getBytes());\n landings[conhash.bucketFor(longHash, 2)]++;\n }\n// System.out.println(landings[0]+\",\"+landings[1]);\n assertTrue(\"excessive changes\",Math.abs(landings[0]-landings[1]) < 2000); \n }\n }",
"@Override\n\tpublic void challenge11() {\n\n\t}",
"@Override\n\tpublic void challenge7() {\n\n\t}",
"void mo57275a();",
"int mo27480a();",
"public abstract Object mo26777y();",
"void mo17021c();",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"void mo1507n();"
] | [
"0.52888227",
"0.5211715",
"0.5188904",
"0.5169915",
"0.51650035",
"0.5109148",
"0.5073878",
"0.5070167",
"0.5063504",
"0.5051082",
"0.5047402",
"0.50442225",
"0.50349885",
"0.502783",
"0.50117177",
"0.5011424",
"0.50033474",
"0.5001107",
"0.49992502",
"0.49869153",
"0.49828655",
"0.4968228",
"0.49591425",
"0.4945525",
"0.4941885",
"0.49416295",
"0.4937459",
"0.49305955",
"0.49232507",
"0.49172178",
"0.49042434",
"0.49035758",
"0.48945588",
"0.48875096",
"0.48839635",
"0.4883903",
"0.48817334",
"0.48817334",
"0.48817334",
"0.48817334",
"0.48817334",
"0.48817334",
"0.48817334",
"0.48757064",
"0.48728025",
"0.4872665",
"0.48704296",
"0.48662534",
"0.48639044",
"0.48620296",
"0.48545745",
"0.48536813",
"0.48512825",
"0.48491293",
"0.48479718",
"0.4845159",
"0.48424",
"0.48416045",
"0.48408988",
"0.4838775",
"0.48373172",
"0.4836549",
"0.48337808",
"0.48267332",
"0.48244068",
"0.4824214",
"0.4823557",
"0.48193455",
"0.48131165",
"0.4811922",
"0.48099545",
"0.48041695",
"0.4800347",
"0.47939196",
"0.47936404",
"0.47890162",
"0.47832415",
"0.4781907",
"0.47818577",
"0.47810283",
"0.4778947",
"0.47783798",
"0.4777506",
"0.4772338",
"0.47701442",
"0.47676307",
"0.47670817",
"0.47647676",
"0.47646675",
"0.47637272",
"0.4762793",
"0.4759415",
"0.4759318",
"0.4755098",
"0.47545746",
"0.4753509",
"0.47479022",
"0.47473633",
"0.4745303",
"0.47438842",
"0.47433358"
] | 0.0 | -1 |
Controls the model for a game being authored. Allows the view to modify and retrieve information about the model. | public interface AuthoringModelController {
/**
* Save the current state of the current level a game being authored.
*
* @param saveName
* the name to assign to the save file
*/
void saveGameState(File saveName);
/**
* Load the detailed state of a game for a particular level, including
* high-level information and elements present.
*
* @param saveName
* the name used to save the game authoring data
* @param level
* the level of the game which should be loaded
* @throws IOException
* if the save name does not refer to existing files
*/
void loadOriginalGameState(String saveName, int level) throws IOException;
/**
* Export a fully authored game, including all levels, into an executable file.
*/
void exportGame();
/**
* Create a new level for the game being authored. Saves the state of the
* current level being authored when the transition occurs.
*
* @param level
* the number associated with the new level
*/
void createNewLevel(int level);
/**
* Delete the previously created level.
*
* @param level
* the level to delete
* @throws IllegalArgumentException
* if level does not exist
*/
void deleteLevel(int level) throws IllegalArgumentException;
/**
* Get the top-level configuration options for a game element definition.
*
* @return a map from the name of the configuration option to set to a list of
* choices for that option
*/
Map<String, List<String>> getElementBaseConfigurationOptions();
/**
* Get auxiliary configuration elements for a game element, based on top-level
* configuration choices.
*
* @return a map from the name of the configuration option to its class type
*/
Map<String, Class> getAuxiliaryElementConfigurationOptions(Map<String, String> baseConfigurationChoices);
/**
* Define a new type of element for the game being authored. Elements of this
* type will be created by the model based on its properties, assuming defaults
* where necessary. This method should not be used for updating properties of an
* existing template, the updateElementDefinition method should be used for that
* instead.
*
* @param elementName
* the template name assigned to this element, for future reuse of
* the properties
* @param properties
* a map containing the properties of the element to be created
* @throws IllegalArgumentException
* if the template already exists.
*/
void defineElement(String elementName, Map<String, String> properties) throws IllegalArgumentException;
/**
* Update an existing template by overwriting the specified properties to their
* new specified values. Should not be used to create a new template, the
* defineElement method should be used for that.
*
* @param elementName
* the name of the template to be updated
* @param propertiesToUpdate
* the properties to update
* @param retroactive
* whether previously created elements of this type must have their
* properties updated
*
* @throws IllegalArgumentException
* if the template does not already exist
*/
void updateElementDefinition(String elementName, Map<String, String> propertiesToUpdate, boolean retroactive)
throws IllegalArgumentException;
/**
* Delete a previously defined template
*
* @param elementName
* name of the template to delete
* @throws IllegalArgumentException
* if the template does not already exist
*/
void deleteElementDefinition(String elementName) throws IllegalArgumentException;
/**
* Place a game element of previously defined type within the game.
*
* @param elementName
* the template name for the element
* @param startCoordinates
* the coordinates at which the element should be placed
* @return a unique identifier for the sprite abstraction representing the game
* element
*/
int placeElement(String elementName, Point2D startCoordinates);
/**
* Add element of given name
*
* @param elementName
*/
void addElementToInventory(String elementName);
/*
* Place a game element of previously defined type within the game which follows
* a path defined in the authoring environment as it moves.
*
* @param elementName the template name for the element
*
* @param pathList a list of points the object should target as it moves
*
* @return a unique identifier for the sprite abstraction representing the game
* element
*/
int placePathFollowingElement(String elementName, PathList pathList);
/**
* Retrieve the inventory for the current level
*
* @return set of element names that can be placed in the current level
*/
Set<String> getInventory();
/**
* Get the ImageView corresponding to a particular spriteId
*
* @param spriteId
* id of the sprite whose image is to be retrieved, previously
* generated by controller
* @return ImageView representing the GameElement
*/
ImageView getRepresentationFromSpriteId(int spriteId);
/**
* Get the high-level status of a game in-progress, notably points, lives, etc
*
*
* @return a map of relevant details to display or modify about the game
*/
Map<String, Double> getStatus();
/**
* Retrieve information on the cost of each element in terms of the various
* resources
*
* @return map of element name to its cost in terms of each resource
*/
Map<String, Map<String, Double>> getElementCosts();
/**
* Move a previously created game element to a new location.
*
* @param elementId
* elementId the unique identifier for the element
* @param xCoordinate
* the new horizontal position of the element within the game
* @param yCoordinate
* the new vertical position of the element within the game
*/
void moveElement(int elementId, double xCoordinate, double yCoordinate);
/**
* Update the properties of a particular game element, without changing the
* definition of its type.
*
* @param elementId
* the unique identifier for the element
* @param propertiesToUpdate
* a map containing the new properties of the element
*/
void updateElementProperties(int elementId, Map<String, String> propertiesToUpdate);
/**
* Delete a previously created game element.
*
* @param elementId
* the unique identifier for the element
*/
void deleteElement(int elementId);
/**
* Fetch all available game names and their corresponding descriptions
*
* @return map where keys are game names and values are game descriptions
*/
Map<String, String> getAvailableGames();
/**
* Get a map of properties for a particular game element, so as to allow for
* their displaying in a modification area of the display.
*
* @param elementId
* the unique identifier for the game element
* @return a map of properties for the element with this identifier
* @throws IllegalArgumentException
* if the element ID does not refer to a created element
*/
Map<String, String> getElementProperties(int elementId) throws IllegalArgumentException;
/**
* Get a map of properties for an element template / model, so as to allow for
* their displaying in a modification area of the display
*
* @param elementName
* the template name for the element
* @return a map of properties for the template with this identifier
* @throws IllegalArgumentException
* if the element name does not refer to a defined template
*/
Map<String, String> getTemplateProperties(String elementName) throws IllegalArgumentException;
/**
* Get map of all defined template names to their properties
*
* @return map of template names to properties of each template
*/
Map<String, Map<String, String>> getAllDefinedTemplateProperties();
Map<String, Double> getResourceEndowments();
/**
* Set the name of the game being authored.
*
* @param gameName
* the name of the game
*/
void setGameName(String gameName);
/**
* Set the description of a game being authored.
*
* @param gameDescription
* the description authored for the game
*/
void setGameDescription(String gameDescription);
/**
* Set the victory condition for the current level of the game being authored
*
* @param conditionIdentifier
* the description of the victory condition, which can be mapped to a
* boolean state function
*/
void setVictoryCondition(String conditionIdentifier);
/**
* Set the defeat condition for the current level of the game being authored
*
* @param conditionIdentifier
* the description of the defeat condition, which can be mapped to a
* boolean state function
*/
void setDefeatCondition(String conditionIdentifier);
/**
* Set a top-level game status property (e.g. lives, starting resources, etc)
*
* @param property
* name of the property to set
* @param value
* string representation of the property's new value
*/
void setStatusProperty(String property, Double value);
/**
* Set the resource endowments for the current level
*
* @param resourceEndowments
* map of resource name to amount of that resource to begin that
* level with
*/
void setResourceEndowments(Map<String, Double> resourceEndowments);
/**
* Set the resource endowment of a specific resource name
* @param resourceName
* @param newResourceEndowment
*/
void setResourceEndowment(String resourceName, double newResourceEndowment);
/**
* Set the cost of an element in terms of various resources
*
* @param elementName
* the template name for the element
* @param unitCosts
* map of resource name to cost in terms of that resource for this
* element
*/
void setUnitCost(String elementName, Map<String, Double> unitCosts);
/**
* Set the behavior and parameters of the wave
*
* @param waveProperties
* a map containing the properties of the wave to be created
* @param elementNames
* name of elements to spawn
* @param spawningPoint
* the point at which to spawn the wave
*/
void setWaveProperties(Map<String, String> waveProperties, Collection<String> elementNamesToSpawn,
Point2D spawningPoint);
/**
* Retrieve a collection of descriptions of the possible victory conditions
*
* @return a collection of strings describing the possible victory conditions
* that can be assigned for a given level
*/
Collection<String> getPossibleVictoryConditions();
/**
* Retrieve a collection of descriptions of the possible defeat conditions
*
* @return a collection of strings describing the possible defeat conditions
* that can be assigned for a given level
*/
Collection<String> getPossibleDefeatConditions();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void handleModelViewEvent(ModelEvent modelEvent) {\n\t\tsuper.handleModelViewEvent(modelEvent);\n\t\tActionEvent e = modelEvent.getActionEvent();\n\t\tswitch(e.action){\n\t\tcase ActionEventConstant.ACTION_REQUEST_LOGIN:\n\t\t\tgoMainScreen();\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"private void setCancerModel(HttpServletRequest request) {\n String modelID = request.getParameter(\"aModelID\");\n System.out.println(\"<setCancerModel> modelID\" + modelID);\n AnimalModelManager animalModelManager = (AnimalModelManager) getBean(\"animalModelManager\");\n AnimalModel am = null;\n try {\n am = animalModelManager.get(modelID);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n request.getSession().setAttribute(Constants.ANIMALMODEL, am);\n }",
"public void setModel(Model model) {\n petal_model = model;\n }",
"public abstract void setTurn(ModelStatus model);",
"public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}",
"@Override\r\n\tpublic void setModel() {\n\t\tnew UpUI(context).execute();\r\n\t}",
"public void setGame(GameModel gameModel) {\n this.gameModel = gameModel;\n viewMatrix = null; // needs to be recalculated\n setPaused(gameModel == null);\n invalidate();\n }",
"void setModel(Model model);",
"@Override\n\t\tpublic void setModel(int model) {\n\t\t\t\n\t\t}",
"private void initializeGameModel() {\n mGameModel = new GameModel();\n mGameModel.setId(mGameWaitModel.getId());\n mGameModel.setGameMaster(getPlayerModel(true));\n mGameModel.setGameSlave(getPlayerModel(false));\n mGameModel.setGenerateNewQuestion(true);\n mGameModel.setDidGameEnd(false);\n LOGD(TAG, \"Game Model initialized\");\n }",
"void playGame(MarbleSolitaireModel model);",
"public void setValues(GameModel gameModel) {\r\n\t\tthis.acts = gameModel.acts;\r\n\t\tthis.character = gameModel.character;\r\n\r\n\t}",
"@Override\r\n\tpublic void setModel() {\n\t}",
"public String getModelName() {\n return \"game\";\n }",
"private void changeView(){\r\n\t\t\tm.changeView(Views.GAME, gameType, game);\r\n\t}",
"GameModel createGameModel(GameModel gameModel);",
"@Override\n public void toggle3DModelDisplay() {\n this.viewModel.toggle3DModelDisplay();\n\n // use camera controller if now on, otherwise switch to none controller\n if (this.viewModel.is3DModelDisplayed()) {\n this.selectedKeyboardController = new CameraController(this.scene);\n }\n else {\n this.selectedKeyboardController = new NoneKeyboardEventController();\n }\n\n // notify view model observers\n this.viewModel.notifyObservers();\n\n }",
"public ModelAndView populateAndGetFormView(Game entity, Model model) {\n // Populate the form with all the necessary elements\n populateForm(model);\n // Add concurrency attribute to the model to show the concurrency form\n // in the current edit view\n model.addAttribute(\"concurrency\", true);\n // Add the new version value to the model.\n model.addAttribute(\"newVersion\", getLastVersion(entity));\n // Add the current pet values to maintain the values introduced by the user\n model.addAttribute(getModelName(), entity);\n // Return the edit view path\n return new org.springframework.web.servlet.ModelAndView(getEditViewPath(), model.asMap());\n }",
"@Override\r\n\t\tpublic void userModelChanged() \r\n\t\t{\n\t\t\t\r\n\t\t}",
"@GetMapping(value = \"/edit-form\", name = \"editForm\")\n public ModelAndView editForm(@ModelAttribute Game game, Model model) {\n populateForm(model);\n model.addAttribute(\"game\", game);\n return new ModelAndView(\"games/edit\");\n }",
"public void setModel(String model)\n {\n this.model = model;\n }",
"void updateViewFromModel();",
"void updateModelFromView();",
"@Override\n\tpublic void setModel(TenantsEntity model) {\n\t\t\n\t}",
"void set(Model model);",
"public void setModel(String model) {\r\n this.model = model;\r\n }",
"void setModel(Model m);",
"public Game(GameModel gameModel) {\n\t\tsuper();\n\t\tthis.gameModel = gameModel;\n\t\tview = new GamePane(gameModel);\n\t\t\n\t\tadd(view);\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t}",
"private void edit() {\n mc.displayGuiScreen(new GuiEditAccount(selectedAccountIndex));\n }",
"public void setModel(String model) {\n this.model = model;\n }",
"@Override\n public void playMonument() throws ModelException {\n if (!GameModelFacade.instance().canPlayMonument()) {\n throw new ModelException(\"Preconditions for action not met.\");\n }\n\n try {\n String clientModel = m_theProxy.playMonument(GameModelFacade.instance().getLocalPlayer().getIndex());\n new ModelInitializer().initializeClientModel(clientModel, m_theProxy.getPlayerId());\n } catch (NetworkException e) {\n throw new ModelException(e);\n }\n }",
"public void setUserModel(UserModel param) {\n this.localUserModel = param;\n }",
"public void setModel(Model model) {\n this.model = model;\n }",
"public void setModel(Model model) {\n this.model = model;\n }",
"public void setModel(Model model) {\n this.model = model;\n }",
"@Override\n \t\t\t\tpublic void doModelPerspective() {\n \n \t\t\t\t}",
"@Override\r\n public void setModel(String model) {\n }",
"@Audit(transName=\"editSavePlane\", transType=\"editSavePlane\", beforeLog=TRUE, afterLog=TRUE)\r\n\tpublic void editSavePlane(UiAirplaneModel model){\r\n\t\tList<String> airplaneModels = wsrdAdminService.fetchTPIAirplanes(wsrdUtilController.getUserPrivileges().getBemsID());\r\n\t\tif(validateEditPlane(model)){\r\n\t\t\tif(wsrdUtilController.getUserPrivileges().isSuperAdmin() || !model.getStage().equalsIgnoreCase(\"\"))\r\n\t\t\t{\r\n\t\t\tif(wsrdUtilController.getUserPrivileges().isSuperAdmin() || airplaneModels.contains(model.getAirplaneModel())){\r\n\t\t\t\t\r\n\r\n\t\t\t\ttry{\r\n\t\t\t\t\tAirplaneModelType ap=wsrdAdminService.saveAirplane(model, true);\r\n\t\t\t\t\tUiAirplaneModel plane=populateModel(ap, wsrdAdminService.loadAirplaneModels());\r\n\t\t\t\t\tfetchAPNamesForModel(plane);\r\n\t\t\t\t\t\r\n\t\t\t\t\tint i=uiAirplaneModel.getAirplaneList().indexOf(model);\r\n\t\t\t\t\tuiAirplaneModel.getAirplaneList().set(i, plane);\r\n\t\t\t\t\tString gpSort= uiAirplaneModel.getAirplaneList().get(i).getGroupOwner();\r\n\t\t\t\t\tString[] gp = new String[WsrdConstants.HUNDRED];\r\n\t\t\t\t\tgp= gpSort.split(NEWLINE);\r\n\t\t\t\t\tArrays.sort(gp);\r\n\t\t\t\t\tStringBuilder b= new StringBuilder();\r\n\t\t\t\t\tfor(String grp:gp){\r\n\t\t\t\t\t\tb.append(grp.toString());\r\n\t\t\t\t\t\tb.append(NEWLINE);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuiAirplaneModel.getAirplaneList().get(i).setGroupOwner(b.toString());\r\n\t\t\t\t\tplane.setInputDisplayItem(false);\r\n\t\t\t\t\tplane.setOutputDisplayItem(true);\r\n\t\t\t\t\taddInfoMessage(WsrdConstants.APMESSAGE, WsrdConstants.SUCCESS, WsrdConstants.DATA);\r\n\t\t\t\t\twsrdModel.setEditplane(false);\r\n\t\t\t\t\tuiAirplaneModel.setGroupList(wsrdAdminService.getGroups());\r\n\t\t\t\t\t//uiAirplaneModel.setValidTPI(false);\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\taddErrorMessage(WsrdConstants.APERRORMESSAGE, WsrdConstants.ERROR_SAVE);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\taddErrorMessage(WsrdConstants.APMESSAGE, WsrdConstants.NOT_AUTHORIZED);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\taddErrorMessage(ADMINSTR+TRUE+\":save\", WsrdConstants.MANDATORY_SAVE, \"WSRD Stages\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void updateModel() {\n updateModel(false);\n }",
"public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}",
"@Override\r\n protected void initModel() {\n model = new Sphere(\"projectil Model\", 5, 5, 0.2f);\r\n model.setModelBound(new BoundingBox());\r\n model.updateModelBound();\r\n }",
"View(Stage stage, Model model,Player player) {\n this.model = model;\n this.stage = stage;\n battleRoot = new BattleRoot(SCREEN_SIZE_X, SCREEN_SIZE_Y,player);\n playingScene = new Scene(battleRoot);\n this.stage.setScene(this.playingScene);\n// battleRoot.getChildren().addAll(textFieldRoot, enemysPlayFieldRoot, playFieldRoot, handCommand);\n }",
"public interface MainMvpView extends MvpView {\n\n void showSchoolModel(SchoolModel schoolModel);\n void showInfo(BabyModel babyModel, TCUserModel userModel,String babyId,String userId);\n void uploadHeadImgResult(boolean isSuccess,String name);\n void showTeacherInfo(AttendenceTeacherModel teacherModel,String qrCode,String teacherId, String schoolId);\n void onError(String msg);\n void toUpdate(AppVersionModel model);\n void inputUUIDClick(String uuid);\n void updateStateSuccess();\n void updateError();\n}",
"public void initModel() {\n gunControl.initSmoke();\n }",
"public void setGame() {\n }",
"public void setModel(String modelName)\n\t{\n\t\tmyModel = modelName;\n\t}",
"public void setTheModel(InventoryProgramModel theModel) {\n\t\tthis.theModel = theModel;\n\t}",
"public void switchModel()\n {\n \tactiveModel++;\n \tif (activeModel > 1)\n \t{\n \t\tactiveModel = 0;\n \t}\n }",
"private void setCamera() {\n\t\tVector viewTranslation = controller.getCameraPosition();\n\n\t\tGL11.glClear(GL11.GL_COLOR_BUFFER_BIT | GL11.GL_DEPTH_BUFFER_BIT);\n\t\tGL11.glMatrixMode(GL11.GL_PROJECTION);\n\t\tGL11.glLoadIdentity();\n\n\t\tfloat whRatio = (float) windowWidth / (float) windowHeight;\n\t\tGLU.gluPerspective(controller.getFOV(), whRatio, 1, 100000);\n\t\tGLU.gluLookAt((float) viewTranslation.x, (float) viewTranslation.y,\n\t\t\t\t(float) controller.getCameraDistance(), (float) viewTranslation.x,\n\t\t\t\t(float) viewTranslation.y, 0, 0, 1, 0);\n\n\t\tGL11.glMatrixMode(GL11.GL_MODELVIEW);\n\t\tGL11.glLoadIdentity();\n\t}",
"public GameView(GameModel model, DiceModel diceModel) {\n this.model = model;\n this.controller = new GameController(model, diceModel);\n this.diceModel = diceModel;\n\n initComponents();\n\n model.addObserver(this);\n\n createComponents();\n updateScores();\n\n pack();\n }",
"public void openModel() {\r\n \t\tisReleased = true;\r\n \t\tif (checkForSave(\"<html>Save changes before opening a saved model?</html>\")) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tif(animationHolder != null ) {\r\n \t\t\tanimationHolder.stop();\r\n \t\t}\r\n \t\tJMODELModel tmpmodel = new JMODELModel();\r\n \t\tint state = modelLoader.loadModel(tmpmodel, mainWindow);\r\n \t\tif (state == ModelLoader.SUCCESS || state == ModelLoader.WARNING) {\r\n \t\t\tresetMouseState();\r\n \t\t\t// Avoid checkForSave again...\r\n \t\t\tif (model != null) {\r\n \t\t\t\tmodel.resetSaveState();\r\n \t\t\t}\r\n \t\t\tnewModel();\r\n \t\t\t// At this point loading was successful, so substitutes old model\r\n \t\t\t// with loaded one\r\n \t\t\tmodel = tmpmodel;\r\n \t\t\tthis.populateGraph();\r\n \t\t\tsetSelect.setEnabled(true);\r\n \t\t\tcomponentBar.clickButton(setSelect);\r\n \t\t\topenedArchive = modelLoader.getSelectedFile();\r\n \t\t\tmainWindow.updateTitle(openedArchive.getName());\r\n \t\t\t// Removes selection\r\n \t\t\tgraph.clearSelection();\r\n \t\t\t// If model contains results, enable Results Window\r\n \t\t\tif (model.containsSimulationResults()) {\r\n \t\t\t\tif (model.isParametricAnalysisEnabled()) {\r\n \t\t\t\t\tthis.setResultsWindow(new PAResultsWindow(model.getParametricAnalysisModel(), (PAResultsModel) model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t} else {\r\n \t\t\t\t\tthis.setResultsWindow(new ResultsWindow(model.getSimulationResults()));\r\n \t\t\t\t\tshowResults.setEnabled(true);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tmodel.resetSaveState();\r\n \t\t\tSystem.gc();\r\n \t\t} else if (state == ModelLoader.FAILURE) {\r\n \t\t\tshowErrorMessage(modelLoader.getFailureMotivation());\r\n \t\t}\r\n \t\t// Shows warnings if any\r\n \t\tif (state == ModelLoader.WARNING) {\r\n \t\t\tnew WarningWindow(modelLoader.getLastWarnings(), mainWindow, modelLoader.getInputFileFormat(), CommonConstants.JSIM).show();\r\n \t\t}\r\n \r\n \t}",
"private void updateModel() {\n // Reset the credentials background\n currentPassword.setBackground(Themes.currentTheme.dataEntryBackground());\n\n\n }",
"AchievementModel createAchievementModel(AchievementModel achievementModel);",
"public void setModel(OntModel model) {\n\t\tthis.model = model;\n\t}",
"protected abstract void setClueModels();",
"public void setModel(Model m){\r\n model = m;\r\n }",
"public interface IModelCombo extends IGameModel, IModelManager{\n\n\t/**\n\t * Sets the management interface of the view used by the model.\n\t * @param viewManager\n\t * @param turnManager\n\t */\n\tpublic abstract void setViewManager(IViewManager viewManager, ITurnManager turnManager);\n\t\n\n}",
"@Override\n\tpublic void setModel(Object o) {\n\t\t\n\t}",
"public interface Model {\n\n void doUserCommand(int command);\n void initGame(int numOfPlayers);\n int getUserCommand();\n void setObject(Object e);\n}",
"private void init()\n\t{\n\t\tsetModel(new Model(Id.model, this, null));\n\t\tsetEnviroment(new Enviroment(Id.enviroment, this, model()));\n\t\tsetVaccinationCenter(new VaccinationCenter(Id.vaccinationCenter, this, model()));\n\t\tsetCanteen(new Canteen(Id.canteen, this, vaccinationCenter()));\n\t\tsetRegistration(new Registration(Id.registration, this, vaccinationCenter()));\n\t\tsetExamination(new Examination(Id.examination, this, vaccinationCenter()));\n\t\tsetVaccination(new Vaccination(Id.vaccination, this, vaccinationCenter()));\n\t\tsetWaitingRoom(new WaitingRoom(Id.waitingRoom, this, vaccinationCenter()));\n\t\tsetSyringes(new Syringes(Id.syringes, this, vaccination()));\n\t}",
"public void setPlayer(Player p){\r\n playerModel=p; \r\n jEnemigoDatos.setText(p.getEnemy().getName());\r\n /*if(p.getBadConsequence()==null)\r\n jMalRolloDatos.setText(\"No\");\r\n else\r\n jMalRolloDatos.setText(\"Si\");*/\r\n if(p.isDead())\r\n jMuertoDatos.setText(\"Si\");\r\n else\r\n jMuertoDatos.setText(\"No\");\r\n \r\n jNivelDatos.setText(p.getLevels()+\"\");\r\n jCombatLevelDatos.setText(p.getCombatLevel()+\"\");\r\n jNombreDatos.setText(p.getName());\r\n if(p.canISteal())\r\n jRobarDatos.setText(\"Si\");\r\n else\r\n jRobarDatos.setText(\"No\");\r\n \r\n jNSectDatos.setText(Integer.toString(CultistPlayer.getTotalCultistPlayer()));\r\n \r\n if(playerModel.getClass() == CultistPlayer.class){\r\n jSectarioDatos.setText(\"Si\");\r\n //String text=(CultistPlayer)playerModel.getMyCultist().getGainedLevels()+\"\";\r\n //jSectarioDatos.setText(\"\"+(CultistPlayer)playerModel.getGainedLevels());\r\n \r\n }else\r\n jSectarioDatos.setText(\"No\");\r\n \r\n /*if(playerModel.getBadConsequence().isEmpty())\r\n pendingBadView1.setVisiblePending(false);\r\n else*/\r\n pendingBadView1.setVisiblePending(true);\r\n pendingBadView1.limpiar();\r\n \r\n // A continuación se actualizan sus tesoros \r\n fillTreasurePanel (jpVisibles, playerModel.getVisibleTreasures()); \r\n fillTreasurePanel (jpOcultos, playerModel.getHiddenTreasures()); \r\n btRobar.setEnabled(playerModel.canISteal());\r\n manejarBotones(true);\r\n repaint(); \r\n revalidate();\r\n }",
"public RiskController() {\r\n\t\trisk = new RiskGameModel();\r\n\t\tinitComponents();\r\n\t\tinitializePhaseView(risk);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\tsetResizable(false);\r\n\t\tjPanel1.repaint();\r\n\t\tjPanel1.addMouseListener(this);\r\n\t\tAttackButton.setVisible(false);\r\n\t}",
"@Override\n\tpublic void setModel(String model) {\n\t\tthis.model = model;\n\t}",
"public void setModelId(long modelId);",
"@Override\r\n\tpublic void setModelId(int modelId) {\n\r\n\t}",
"@Override\n\tpublic userinfo getModel() {\n\t\treturn user;\n\t}",
"void onModelChange();",
"public void _getControl() {\n model = oObj.getControl() ;\n\n tRes.tested(\"getControl()\", true) ;\n }",
"@Override\n public void updateView(UserInteraction userInteraction) {\n userInteraction.getGame().setPlayers(this.players);\n userInteraction.getGame().setDevelopmentCardTable(this.table);\n userInteraction.getGame().setMarket(this.market);\n userInteraction.getGame().setFaithTrack(this.faithTrack);\n if(this.players.get(1).getNickname().equals(\"Lorenzo il Magnifico\"))\n userInteraction.getGame().setGameType(GameType.SINGLEPLAYER);\n else\n userInteraction.getGame().setGameType(GameType.MULTIPLAYER);\n userInteraction.setMessage(this);\n\n this.displayAction(userInteraction);\n }",
"private void showAchievementsForm(Game game) {\n try {\n\n if (!game.isPopulated()) {\n List<Game> helperList = new ArrayList<>();\n helperList.add(game);\n AchievementsLoader task = new AchievementsLoader(txtKey.getText(), txtSteamId.getText(), txtLanguage.getText(), helperList);\n task.run();\n }\n\n if (game.getHasStats()) {\n\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/fxml/achievements.fxml\"));\n Scene scene = new Scene(fxmlLoader.load());\n scene.getStylesheets().add(\"dark.css\");\n\n AchievementsController achievementsController = fxmlLoader.<AchievementsController>getController();\n\n achievementsController.setAchievements(game);\n Stage stage = new Stage();\n stage.setTitle(game.getName());\n stage.setScene(scene);\n stage.show();\n } else {\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(SteamahApp.APP_TITLE);\n alert.setContentText(\"This game does not support achievements!\");\n alert.showAndWait();\n }\n\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n }",
"GameScoreModel createGameScoreModel(GameScoreModel gameScoreModel);",
"@Override\n protected void initModel() {\n bannerModel = new BannerModel();\n// homeSousuoModel = new Home\n\n// bannerModel = new BannerModel();\n// homeSousuoModel = new HomeSousuoModel();\n// izxListModelBack = new\n }",
"protected void prepareModel() {\n model();\n }",
"public void setOwner(UserModel param) {\n localOwnerTracker = true;\n\n this.localOwner = param;\n }",
"public void setModel(String model) { // we've just created a SETTER\r\n String validModel = model.toLowerCase();\r\n if (validModel.equals(\"carrera\") || validModel.equals(\"commodore\")) {\r\n this.model = model;\r\n } else {\r\n this.model = \"Unknown\";\r\n }\r\n }",
"@RequestMapping(value = \"/enrollment.html\", method = RequestMethod.GET)\n public String displayForm(Model model) {\n model.addAttribute(\"fixture\", new FixtureModel());\n return \"fixtures/enrollment\";\n }",
"public PricingModel(Game game) {\n this.game = game;\n this.currentPrice = SavingCard.INITIAL_COST;\n this.invokedCount = 0;\n \n\t}",
"private void initializeModel() {\n\t\t\n\t}",
"@SideOnly(Side.CLIENT)\n public static void initModels() {\n }",
"@RequestMapping(\"/edit/{key}\")\n public String edit(@PathVariable(\"key\") String key, Model model) {\n List<CompanyVo> autogenCompanyList = autogenMgr.getAllCompany();\n \n model.addAttribute(\"autogenCompanyList\", autogenCompanyList);\n \n String[] keys = StringUtils.split(key, \"|\");\n \n Autogen autogen = autogenMgr.getAutogen(keys[0], keys[1]);\n \n model.addAttribute(\"autogen\", autogen);\n \n return \"/management/autogen/edit\";\n }",
"public EAEditorView(ReadOnlyEAOperations model) {\n\n super();\n setTitle(\"The Easy Animator\");\n\n // check for null\n if (model == null) {\n throw new IllegalArgumentException(\"Model can't be null\");\n }\n this.model = model;\n\n // initialize the main panel\n constructMainPanel();\n constructAnimationPanel();\n generateLabelPanel();\n generateButtonPanel();\n constructPopup();\n createOKButtons();\n\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.pack();\n }",
"public UpdateDifficultyController(Model m) {\n\t\tthis.model = m;\n\t}",
"public void setModel(MyGLDrawModel newModel, int id) {\n model = newModel;\n mShouldLoadTexture = true;\n resourceTextureId = id;\n }",
"public void loadPermissionLevel(final Layer model) {\r\n \t\tif(model != null) {\t\t\t\r\n \t\t\tUserData currentUser = authenticationController.getLoggedInUser();\r\n \t\t\tif(currentUser != null) {\r\n \t\t\t\tAclUtils.getHighestPermissionLevel(NodeType.LAYER, model.getId(), nodeService, new AsyncCallback<PermissionLevel>() {\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tpublic void onSuccess(PermissionLevel result) {\r\n \t\t\t\t\t\tiisAdministrator = false;\r\n \t\t\t\t\t\tccanEdit = false;\r\n \t\t\t\t\t\tif(result == PermissionLevel.CAN_EDIT) {\r\n \t\t\t\t\t\t\tccanEdit = true;\r\n \t\t\t\t\t\t} else if(result == PermissionLevel.CAN_ADMINISTER) {\r\n \t\t\t\t\t\t\tccanEdit = true;\r\n \t\t\t\t\t\t\tiisAdministrator = true;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tsetLayerDetails(model, iisAdministrator, ccanEdit);\r\n \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 onFailure(Throwable caught) {\t\t\t\t\r\n \t\t\t\t\t\tview.showErrorMessage(DisplayConstants.ERROR_GETTING_PERMISSIONS_TEXT);\r\n \t\t\t\t\t\tiisAdministrator = false;\r\n \t\t\t\t\t\tccanEdit = false;\r\n \t\t\t\t\t\tsetLayerDetails(model, iisAdministrator, ccanEdit);\r\n \t\t\t\t\t}\t\t\t\r\n \t\t\t\t});\r\n \t\t\t} else {\r\n \t\t\t\t// because this is a public page, they can view\r\n \t\t\t\tiisAdministrator = false;\r\n \t\t\t\tccanEdit = false;\r\n \t\t\t\tsetLayerDetails(model, iisAdministrator, ccanEdit);\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t}",
"public UserModel(){\n ID = 0; // The user's ID, largely used in conjuction with a database\n firstName = \"fname\"; //User's first name\n lastName = \"lname\"; // User's last name\n password= \"pass\"; ///User password\n username = \"testuser\"; //Valid email for user\n role = 0; //Whether the user is a typical user or administrator\n status = 0; //Whether the user is active or disabled\n }",
"public VentanaPrincipal(Modelo s) {\n modelo = s;\n initComponents();\n capturarEventos();\n }",
"public ControlledView(Staff user){\n this.loggedUser = user;\n \n this.setLocationRelativeTo(null);\n this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n \n initComponents();\n initMenuItems();\n }",
"@GetMapping(name = \"show\")\n public ModelAndView show(@ModelAttribute Game game, Model model) {\n model.addAttribute(\"game\", game);\n return new ModelAndView(\"games/show\");\n }",
"private void setNextGame() {\n Persistence db = Persistence.getInstance();\n game = db.getNextGame();\n\n // set the initial grid in the model\n grid = game.getInitial();\n\n // get rid of everything on the view grid\n view.clearGrid(true);\n\n // put givens for new game into view\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (grid.isGiven(i, j)) {\n view.setGiven(i, j, grid.getNumber(i, j));\n } // if given\n } // for j\n } // for i\n\n }",
"public RunMVC() {\n\n\t\t//cria o Modelo e a Visao\n\t\tModel myModel \t= new Model();\n\t\tView myView \t= new View();\n\t\t//View outraView \t= new View();\n\t\tOutraView outraView \t= new OutraView();\n\n\t\t//avisa o modelo que a visao existe \n\t\tmyModel.addPropertyChangeListener(myView);\n\t\tmyModel.addPropertyChangeListener(outraView);\n\n\t\tController myController = new Controller();\n\t\tmyController.addModel(myModel);\n\t\t//myController.addView(myView);\n\t\t//myController.addView(outraView);\n\t\tmyController.initModel(start_value);\n\n\t\t//tell View about Controller \n\t\tmyView.addController(myController);\n\t\toutraView.addController(myController);\n\t\t\n\n\t}",
"private void editUserCard() {\n getUserCard();\n }",
"public void leseViewAusModel() {\r\n Model model = Model.getInstanz();\r\n\r\n ATab aktuellerTab = model.getRoot();\r\n\r\n while (aktuellerTab.getNext() != null) {\r\n ArrayList<ATab> next = aktuellerTab.getNext();\r\n\r\n for (int j = 0; j < next.size(); j++) {\r\n if (next.get(j) instanceof Inhalt) {\r\n\r\n Inhalt tmpNext = (Inhalt) next.get(j);\r\n\r\n setInhalt(tmpNext.getName(), tmpNext.getInhalt());\r\n }\r\n }\r\n\r\n for (int j = 0; j < next.size(); j++) {\r\n\r\n if (next.get(j) instanceof Tab || next.get(j) instanceof Inhalt) {\r\n aktuellerTab = next.get(j);\r\n }\r\n }\r\n }\r\n }",
"public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}",
"public void setModel(String model){\n String validModel = model.toLowerCase();\n if(validModel.equals(\"Model S\") || validModel.equals(\"Enzo\")){\n this.model = model;\n }else{\n this.model = \"Unknown\";\n }\n\n }",
"public WindowHandle( ModelControllable model, ViewControllable view ) {\r\n\r\n this.model = model;\r\n this.view = view;\r\n }",
"public interface EditorView {\r\n\r\n\t/**\r\n\t * sets the controller that will handle events\r\n\t */\r\n\tvoid setEditorController(EditorViewController gameEditorViewController);\r\n\r\n\t/**\r\n\t * Initialise view\r\n\t */\r\n\tvoid init();\r\n\r\n\t/**\r\n\t * Show view\r\n\t */\r\n\tvoid show();\r\n\r\n\t/**\r\n\t * Get selected player name\r\n\t * \r\n\t * @return\r\n\t */\r\n\tString getNewPlayerName();\r\n\r\n\t/**\r\n\t * Add player to the view\r\n\t */\r\n\tvoid addPlayer(Player newPlayer);\r\n\r\n\t/**\r\n\t * Check is user marked state as a city\r\n\t */\r\n\tboolean isCitySelected();\r\n\r\n\t/**\r\n\t * Check is user marked that the current territory has barracks.\r\n\t */\r\n\tboolean hasBracksSelected();\r\n\r\n\t/**\r\n\t * Check is user marked that the current territory has iron.\r\n\t */\r\n\tboolean hasIronSelected();\r\n\r\n\t/**\r\n\t * Check is user marked that the current territory has stables.\r\n\t */\r\n\tboolean hasStablesSelected();\r\n\r\n\t/**\r\n\t * Check is user marked that the current territory has artillery factory.\r\n\t */\r\n\tboolean hasArtilleryFactorySelected();\r\n\r\n\t/**\r\n\t * get currently selected player.\r\n\t */\r\n\r\n\tPlayer getSelectedPlayer();\r\n\r\n\t/**\r\n\t * Get currently selected state name.\r\n\t */\r\n\tString getSelectedStateName();\r\n\r\n\t/**\r\n\t * Return number of cavalry units in currently selected territory\r\n\t */\r\n\tint getNumberOfCavalry();\r\n\r\n\t/**\r\n\t * Return number of artillery units in currently selected territory\r\n\t */\r\n\tint getNumberOfArtillery();\r\n\r\n\t/**\r\n\t * Return number of infantry units in currently selected territory\r\n\t */\r\n\tint getNumberOfInfantry();\r\n\r\n\t/**\r\n\t * Set the name of the state.\r\n\t */\r\n\tvoid setStateName(String name);\r\n\r\n\t/**\r\n\t * Set number of infantry in currently selected territory\r\n\t */\r\n\tvoid setNumberOfInfantry(int infantry);\r\n\r\n\t/**\r\n\t * Set number of cavalry units in currently selected territory\r\n\t */\r\n\tvoid setNumberOfCavalry(int cavalery);\r\n\r\n\t/**\r\n\t * Return number of artillery units in currently selected territory\r\n\t */\r\n\tvoid setNumberOfArtillery(int artillery);\r\n\r\n\t/**\r\n\t * Update territory state\r\n\t * \r\n\t * @param city\r\n\t * if true make is a city else a territory\r\n\t */\r\n\tvoid isCity(boolean city);\r\n\r\n\t/**\r\n\t * Set number of barracks in currently selected territory\r\n\t */\r\n\tvoid hasBarracks(boolean hasBarracks);\r\n\r\n\t/*\r\n\t * Configure resources\r\n\t * \r\n\t * @param hasOilDerrick\r\n\t * true is territory has this resource\r\n\t */\r\n\t//void hasOil(boolean hasOilDerrick);\r\n\r\n\t/**\r\n\t * Configure resources\r\n\t * \r\n\t * @param hasIron\r\n\t * true is territory has this resource\r\n\t */\r\n\tvoid hasIron(boolean hasIronMine);\r\n\r\n\t/**\r\n\t * this represents the editor method to add\r\n\t * and remove a stable from a city state\r\n\t * and grant the capability to create cavalry\r\n\t * @param hasStables\r\n\t */\r\n\tvoid hasStables(boolean hasStables);\r\n\r\n\t/**\r\n\t * Configure resources\r\n\t * \r\n\t * @param ArtilleryFactory\r\n\t * true is territory has this resource\r\n\t */\r\n\tvoid hasArtilleryFactory(boolean hasArtilleryFactory);\r\n\r\n\t/**\r\n\t * Select current player\r\n\t */\r\n\tvoid selectPlayer(Player player);\r\n\r\n\t/**\r\n\t * Get a file that contains saved game.\r\n\t * \r\n\t * @return null if no file selected\r\n\t */\r\n\tFile openFile();\r\n\r\n\t/**\r\n\t * Ask user to select a file where to save the game.\r\n\t * \r\n\t * @return null if no file selected\r\n\t */\r\n\tFile getSaveFile();\r\n\r\n\t/**\r\n\t * Clear player list\r\n\t */\r\n\tvoid clearPlayerList();\r\n\r\n\t/**\r\n\t * Sends a summary description of the state to the view.\r\n\t */\r\n\tvoid setDescription(State state);\r\n\r\n\t/**\r\n\t * Add continent to the view\r\n\t */\r\n\tvoid addContinent(Continent continent);\r\n\r\n\t/**\r\n\t * Select current continent.\r\n\t */\r\n\tvoid selectContinent(Continent continent);\r\n\r\n\t/**\r\n\t * Return currently selected continent.\r\n\t */\r\n\tContinent getSelectedContinent();\r\n\r\n\t/**\r\n\t * Clear continents list\r\n\t */\r\n\tvoid clearContinents();\r\n\r\n\t/**\r\n\t * Ask user for continent name\r\n\t * @return continent name or null of user cancels request.\r\n\t */\r\n\tString getContinentName();\r\n\r\n\t/**\r\n\t * set the simulation controller\r\n\t */\r\n\tvoid setSimulationController(SimulationController simulationController);\r\n\r\n\tGameWorldView getGameWorldView();\r\n}",
"public GameController(GameModel gameModel) {\n\t\tthis.gameModel = gameModel;\n\t\tcurrState = State.WAIT;\n\t\tcurrDisk = null;\n\t\tcurrSquare = null;\n\t}",
"public void setupEditMode(MainGame game){\n GLFW.glfwSetKeyCallback(DisplayManager.getWindow(), (handle, key, scancode, action, mods) -> {\n if (key == GLFW_KEY_1) {\n objectType = 1;\n MouseHandler.disable();\n } else if (key == GLFW_KEY_2){\n objectType = 2;\n MouseHandler.disable();\n } else if (key == GLFW_KEY_ESCAPE){\n objectType = -1;\n MouseHandler.enable();\n } else if (key == GLFW_KEY_F5){\n entities.removeAll(trees);\n trees.clear();\n GameLoader.loadGameFile(\"./res/courses/terrainSaveFile.txt\", game);\n entities.addAll(trees);\n terrain.updateTerrain(loader);\n } else if (key == GLFW_KEY_F10){\n GameSaver.saveGameFile(\"saveGame\", game);\n }\n });\n }",
"public GUI() {\n initComponents();\n model = new Model();\n playerTurn = 1;\n JTurnMessage.setText(\"Player X Turn\");\n }",
"private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }"
] | [
"0.5940745",
"0.5879703",
"0.5876263",
"0.5746804",
"0.57173437",
"0.5668577",
"0.5603413",
"0.55620253",
"0.55385554",
"0.5513322",
"0.54988396",
"0.5493039",
"0.5485811",
"0.5480687",
"0.5464867",
"0.5431023",
"0.53808177",
"0.5369205",
"0.5338545",
"0.5328732",
"0.5312517",
"0.5291863",
"0.52901614",
"0.5275024",
"0.5272496",
"0.5270544",
"0.52523494",
"0.5249269",
"0.5231606",
"0.52272344",
"0.5226743",
"0.5195949",
"0.5189769",
"0.5189769",
"0.5189769",
"0.51684475",
"0.5162527",
"0.515761",
"0.51293766",
"0.512411",
"0.5122284",
"0.51176006",
"0.5107697",
"0.50882375",
"0.50855285",
"0.508534",
"0.5080549",
"0.50732255",
"0.50610954",
"0.50606626",
"0.50471383",
"0.5043958",
"0.50421953",
"0.5037601",
"0.5023329",
"0.5018787",
"0.5007645",
"0.5005808",
"0.49995732",
"0.4989785",
"0.4984059",
"0.4982413",
"0.4979777",
"0.4978864",
"0.4975912",
"0.49655515",
"0.49570188",
"0.49549615",
"0.49531516",
"0.49473512",
"0.4944424",
"0.4944067",
"0.49319726",
"0.49297985",
"0.49254677",
"0.49239367",
"0.492104",
"0.49205282",
"0.49186912",
"0.49148974",
"0.49058157",
"0.49055427",
"0.49006203",
"0.48981833",
"0.48981282",
"0.4896773",
"0.488753",
"0.48854178",
"0.48798048",
"0.48751807",
"0.48713413",
"0.4871284",
"0.48686522",
"0.48662728",
"0.48632723",
"0.48587132",
"0.48573923",
"0.48558065",
"0.48498553",
"0.48487526"
] | 0.644989 | 0 |
Save the current state of the current level a game being authored. | void saveGameState(File saveName); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void SaveCurrentGame(){\n if(gameStarted == false){ return; }\n recordGame.write(board, timeRuunableThread, level);\n timeRuunableThread.setDrawNumber(false);\n canLoadGame = true;\n // update infoCanvas\n CleanInfoCanvas();\n }",
"public void saveGame(){\n \tsaveOriginator.writeMap(this.map, this.getObjectives(), this.gameState);\n \tsaveGame.saveGame(saveOriginator);\n }",
"public void save() {\n\t\tthis.setState(Constants.CWorld.STATE_SAVING);\n\t\tthis.getWorld().saveAll();\n\t\tthis.setState(Constants.CWorld.STATE_ONLINE);\n\t}",
"private void currentStateSaveToSharedPref() {\n sharedPreferences = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n editor.putInt(\"key1OfActiveChallenge\", key1OfActiveChallenge);\n editor.putString(\"dateOfLastEdit\", dateOfLastEdit);\n editor.putFloat(\"goal\", goal);\n editor.putFloat(\"carry\", carry);\n editor.putInt(\"challengeDaysRunning\", challengeDaysRunning);\n editor.commit();\n }",
"public void saveGame() {\n\t\tmanager.saveGame();\n\t}",
"public void saveGameSession() {\n\t\tlastSaved = ProjectZero.calendar.getTime().toString();\n\t\tAssetHandler.saveGameSession();\n\t}",
"public void saveMap(){\n dataBase.updateMap(level);\n }",
"private void saveCurrentState(Bundle outState){\n outState.putInt(PLAYER_COUNT_STATE_KEY,playerScore);\n outState.putSerializable(VIEW_MAP_STATE_KEY,globalViewMap);\n outState.putSerializable(CHILD_TEXT_CONTAINER_STATE_KEY,globalChildTextContainer);\n outState.putSerializable(PRIME_RECORD_MAP_KEY,primeRecorderMap);\n outState.putSerializable(CURRENT_SCREEN_GAME_STATE_KEY,currentScreenGameState);\n outState.putLong(GAME_TIME_LEFT_STATE_KEY,gameTimeLeftYet);\n }",
"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}",
"public void saveState() {\n\t\tsuper.saveState();\n\t}",
"@Override\n public void onSaveInstanceState(Bundle savedInstanceState) {\n // Save the user's current game state\n savedInstanceState.putBoolean(\"Authenticated\", authenticated);\n\n // Always call the superclass so it can save the view hierarchy state\n super.onSaveInstanceState(savedInstanceState);\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tguiManager.getGameController().saveLevel();\n\t\t\t\t}",
"public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}",
"public String saveCurrentGameState() {\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic GameState save() {\n\t\treturn null;\r\n\t}",
"public void saveCurrentPlayer() {\n\t\tBashCmdUtil.bashCmdNoOutput(\"touch data/current_player\");\n\t\tBashCmdUtil.bashCmdNoOutput(String.format(\"echo \\\"%s\\\" >> data/current_player\",_currentPlayer));\n\t}",
"public void save() {\r\n try {\r\n FileOutputStream fos = new FileOutputStream(REPO_STATE_FILE_NAME);\r\n fos.write(CodecUtils.toJson(this).getBytes());\r\n fos.close();\r\n } catch (Exception e) {\r\n Logging.logError(e);\r\n }\r\n }",
"void loadOriginalGameState(String saveName, int level) throws IOException;",
"public void saveState() { }",
"private void saveGame(){\n\t\t\n\t}",
"@Override \n\t\tpublic void onSaveInstanceState(Bundle savedInstanceState) {\n\t\t savedInstanceState.putInt(STATE_SCORE, mCurrentScore);\n\t\t savedInstanceState.putInt(STATE_LEVEL, mCurrentLevel);\n\t\t \n\t\t // Always call the superclass so it can save the view hierarchy state \n\t\t super.onSaveInstanceState(savedInstanceState);\n\t\t}",
"public void saveGame(DataOutputStream s) throws IOException {\n s.writeUTF(level.toString());\n s.writeUTF(level.getName());\n s.writeInt(lives);\n s.writeInt(points);\n s.writeInt(wonLevels);\n pacman.writeEntity(s);\n s.writeInt(entities.size());\n for (GameEntity entity : entities)\n entity.writeEntity(s);\n }",
"public void save(){\r\n\t\ttry {\r\n\t\t\tgame.suspendLoop();\r\n\t\t\tGameStockage.getInstance().save(game);\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (GameNotSaveException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t\tgame.resumeLoop();\r\n\t\t}\r\n\t}",
"public void save() {\n savePrefs();\n }",
"void save() {\r\n if (actionCompleted) {\r\n forget();\r\n } else {\r\n AccountSettings.stateStored = new Bundle();\r\n save(AccountSettings.stateStored);\r\n }\r\n }",
"private void saveState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n // Store our count..\n editor.putInt(\"count\", this._tally);\n\n // Save changes\n editor.commit();\n }",
"void saveGame();",
"public void save() {\n settingService.saveMaxScore(score);\r\n// powerUpCount = 0;\r\n// powerDownCount = 0;\r\n// purplePowerCount = 0;\r\n// yellowMadnessCount = 0;\r\n// shapeCount = 0;\r\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n currentUser = (String) comboBox1.getSelectedItem();\n try {\n saveGame.setGameState(currentUser);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }",
"private void saveState() throws IOException {\n speakerManager.saveState();\n roomManager.saveState();\n organizerManager.saveState();\n eventManager.saveState();\n chatManager.saveState();\n attendeeManager.saveState();\n\n }",
"@Override\n protected void onSaveInstanceState(Bundle savedInstanceState) {\n savedInstanceState.putInt(\"scorePlayerA\", scorePlayerA);\n savedInstanceState.putInt(\"scorePlayerB\", scorePlayerB);\n savedInstanceState.putInt(\"triesPlayerA\", triesPlayerA);\n savedInstanceState.putInt(\"triesPlayerB\", triesPlayerB);\n super.onSaveInstanceState(savedInstanceState);\n }",
"public static void saveGameType() {\r\n\t\tclearGameType();\r\n\t\t\r\n\t\tif (GameSetup.threeHanded.getState()) {\r\n\t\t\tMain.isThreeHanded = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedSingle.getState()) {\r\n\t\t\tMain.isFourHandedSingle = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedTeams.getState()) {\r\n\t\t\tMain.isFourHandedTeams = true;\r\n\t\t}\r\n\t}",
"@Override\n public void save(Game game) {\n }",
"public void save(Storable storable) throws LogFile.LockException, IOException {\n // If the file has not been set, don't save.\n if (dataFile != null) {\n synchronized (dataFile) {\n // let the storable overwrite its values\n if (storable != null) {\n storable.store(properties);\n }\n if (autoStore) {\n storeProperties();\n }\n if (debug == 1) {\n System.err.println(\"save:JoinState.Join.Version=\"\n + properties.getProperty(\"JoinState.Join.Version\"));\n }\n }\n }\n }",
"public SaveGame() {\n\t\tlives = 0;\n\t\tscore = 0;\n\t\tbrainX = 0;\n\t\tbrainY = 0;\n\t\tzombieX = 0;\n\t}",
"public void saveGame();",
"@Override\r\n public void onSaveInstanceState(Bundle savedInstanceState) {\n super.onSaveInstanceState(savedInstanceState);\r\n // Save the user's current game state\r\n savedInstanceState.putInt(\"STEPS\", numSteps);\r\n\r\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public void save() {\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n fileChooser.setSelectedFile(new File(\"save.ser\"));\n int saveFile = fileChooser.showSaveDialog(GameFrame.this);\n\n if (saveFile == JFileChooser.APPROVE_OPTION) {\n File saveGame = fileChooser.getSelectedFile();\n FileOutputStream fileOut = new FileOutputStream(saveGame);\n ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n objOut.writeObject(world);\n objOut.close();\n fileOut.close();\n System.out.println(\"Game saved.\");\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n }",
"@Override\n protected void onSaveInstanceState(@NonNull Bundle outState) {\n super.onSaveInstanceState(outState);\n outState.putInt(TEAM_A_SCORE_KEY, teamAScoreInt);\n outState.putInt(TEAM_B_SCORE_KEY, teamBScoreInt);\n outState.putInt(TEAM_A_FOUL_KEY, teamAFoulScoreInt);\n outState.putInt(TEAM_B_FOUL_KEY, teamBFoulScoreInt);\n }",
"@Override\n protected void onSaveInstanceState(Bundle bundle) {\n super.onSaveInstanceState(bundle);\n gameView.saveInstanceState(bundle);\n }",
"private void save() {\n Saver.saveTeam(team);\n }",
"public void saveState() throws IOException {\n\t\tFile f = new File(workingDirectory() + File.separator + id() + FILE_EXTENSION);\n\t\t\n\t\t// create new file if it doesnt exist\n\t\tf.createNewFile();\n\t\t\n\t\t// dump client state into file\n\t\tObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(f));\n\t\tos.writeObject(this);\n\t\tos.close();\n\t}",
"private void save() {\n Tile[][] field = gameController.grid.field;\n Tile[][] undoField = gameController.grid.undoField;\n// SharedPreferenceUtil.put(this, SpConstant.WIDTH, field.length);\n// SharedPreferenceUtil.put(this, SpConstant.HEIGHT, field.length);\n for (int xx = 0; xx < field.length; xx++) {\n for (int yy = 0; yy < field[0].length; yy++) {\n if (field[xx][yy] != null) {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, field[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, xx + \"_\" + yy, 0);\n }\n\n if (undoField[xx][yy] != null) {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, undoField[xx][yy].getValue());\n } else {\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, 0);\n }\n }\n }\n SharedPreferenceUtil.put(this, SpConstant.SCORE, gameController.currentScore);\n SharedPreferenceUtil.put(this, SpConstant.HIGH_SCORE_TEMP, gameController.historyHighScore);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_SCORE, gameController.lastScore);\n SharedPreferenceUtil.put(this, SpConstant.CAN_UNDO, gameController.canUndo);\n SharedPreferenceUtil.put(this, SpConstant.GAME_STATE, gameController.gameState);\n SharedPreferenceUtil.put(this, SpConstant.UNDO_GAME_STATE, gameController.lastGameState);\n SharedPreferenceUtil.put(this, SpConstant.AUDIO_ENABLED, gameController.isAudioEnabled);\n }",
"@Override\n public void saveGame() {\n\n }",
"public static void setLevel(int current)\r\n\t{\r\n\t\tGame.level = current;\r\n\t}",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n\n outState.putInt(\"roundCount\", roundCount);\n outState.putInt(\"player1Points\", player1Points);\n outState.putInt(\"player2Points\", player2Points);\n outState.putBoolean(\"player1Turn\", player1Turn);\n }",
"public void saveScore() {\n if (this.currentScore > this.highScore) {\n this.highScore = this.currentScore;\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putInt(\"High Score\", this.highScore);\n editor.commit();\n }\n }",
"public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}",
"public void saveGame(){\n updateProperties();\n try {\n output = new FileOutputStream(fileName);\n properties.store(output, null); //saving properties to file\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO SAVE GAME ---\");\n e.printStackTrace();\n } finally {\n if (output != null) {\n try {\n output.close();\n System.out.println(\"--- GAME SAVED ---\");\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE OUTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"void gameSaved() {\n\t\tSystem.out.println(\"\\n\\nGame saved.\");\n\t}",
"public void save()\n\t{\n\t\tif(entity != null)\n\t\t\t((SaveHandler)DimensionManager.getWorld(0).getSaveHandler()).writePlayerData(entity);\n\t}",
"public void saveState() {\n savedPen.setValues(pm.pen);\n }",
"@Override\n public void onSaveInstanceState(Bundle savedInstanceState)\n {\n savedInstanceState.putIntArray(\"board\", tttGame.getBoard());\n savedInstanceState.putBoolean(\"turn\", tttGame.getTurn());\n savedInstanceState.putBoolean(\"mode\", tttGame.getAIMode());\n\n savedInstanceState.putInt(\"p1Count\", pOneCounter);\n savedInstanceState.putInt(\"p2Count\", pTwoCounter);\n savedInstanceState.putInt(\"pAICount\",pAICounter);\n savedInstanceState.putInt(\"tieCount\", tieCounter);\n\n boolean[] enabled = getState();\n savedInstanceState.putBooleanArray(\"state\", enabled);\n }",
"public void save() {\n\t\ttry {\n\t\t\t// use buffering\n\t\t\tOutputStream file = new FileOutputStream(\"games.txt\");\n\t\t\tOutputStream buffer = new BufferedOutputStream(file);\n\t\t\tObjectOutput output = new ObjectOutputStream(buffer);\n\t\t\ttry {\n\t\t\t\tif (gameOver) {\n\t\t\t\t\t//notify no need to save completed game\n\t\t\t\t} else {\n\t\t\t\t\tgames.add(this);\n\t\t\t\t\toutput.writeObject(games);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Save not successful\");\n\t\t}\n\t}",
"private void saveScore() {\n try {\n PrintWriter writer = new PrintWriter(new FileOutputStream(new File(Const.SCORE_FILE), true));\n writer.println(this.player.getName() + \":\" + this.player.getGold() + \":\" + this.player.getStrength());\n writer.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"public void setActiveLevel(PlayerLevel toSet){\r\n\t\tthis.activeLevel = toSet;\r\n\t}",
"public void saveState(ObjectOutput out) throws IOException {\n\t\t// save deikto values\n\t\tdk.saveState(out);\n\t\t// save interpreter values\n\t\tout.writeFloat(interpreter.globalActorBox);\n\t\tout.writeFloat(interpreter.globalPropBox);\n\t\tout.writeFloat(interpreter.globalStageBox);\n\t\tout.writeFloat(interpreter.globalEventBox);\n\t\tout.writeFloat(interpreter.globalVerbBox);\n\t\tout.writeFloat(interpreter.globalBNumberBox);\n\n\t\t// save ticks\n\t\tout.writeInt(cMoments);\n\t\t// save inactivity counter\n\t\tout.writeInt(cInactivity);\n\t\t// save player inactivity\n\t\tout.writeInt(playerInactivity);\n\t\t// save storyIsOver\n\t\tout.writeBoolean(storyIsOver);\n\t\tout.writeBoolean(isEpilogueNow);\n\t\tout.writeBoolean(isHappilyDone);\n\t\tout.writeBoolean(isPenultimateDone);\n\n\t\t// save historyBook\n\t\tout.writeInt(historyBook.size());\n\t\tfor(Sentence s:historyBook)\n\t\t\tout.writeObject(s);\n\t\t// save random seeds\n\t\tout.writeObject(random);\n\t\tout.writeLong(interpreter.scriptRandom.getSeed());\n\t\t// save alarms\n\t\tout.writeInt(alarms.size());\n\t\tfor(Alarm a:alarms)\n\t\t\tout.writeObject(a);\n\t\tout.writeInt(storybook.size());\n\t\tfor(String s:storybook)\n\t\t\tout.writeUTF(s);\n\t}",
"private void saveInitialGameLocation() {\n\n\t\tGAME_LIST = new ArrayList<gameLocation>();\n\n\t\tfor (int i = 0; i < NumGameLocation; i++) {\n\t\t\taddNewGame(getGameLocation(i));\n\t\t}\n\t}",
"public void saveState() throws RemoteException {\r\n server.unbind(this.agentID);\r\n try {\r\n ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(\"agent.dat\"));\r\n oos.writeObject(this);\r\n oos.close();\r\n } catch (Exception e) {\r\n System.out.println(\"Object not saved correctly.\");\r\n } finally {\r\n System.exit(0);\r\n }\r\n }",
"private void persistData() {\n mSharedPref.storeLastScreen(SCREEN_NAME);\n }",
"public void levelUp() {\n this._learnState += 1;\n this.save();\n }",
"private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }",
"public void save() {\n\t\tpreferences().flush();\n\t}",
"public Level getCurrentLevel(){\r\n return currentLevel;\r\n }",
"private void save() {\n prefs.saveCardBackground(selectedBackground);\n prefs.saveCardBackgroundColor(selectedBackgroundColor);\n\n updateSummary();\n }",
"private static void saveScore() {\n\t\tif (mContext != null) {\n\t\t\tEditor edit = mContext.getSharedPreferences(Defines.SHARED_PREF_NAME, Context.MODE_PRIVATE).edit();\n\t\t\tedit.putInt(Defines.SHARED_PREF_ACTIVITY_SCORE, DataStore.mActivityScore);\n\n\t\t\tfor (int x = 0; x < Defines.NUM_DAYS_SCORE_TO_SAVE; x++) {\n\t\t\t\tedit.putInt(Defines.SHARED_PREF_PREV_SCORE + x, DataStore.mPreviousActivityScores[x]);\n\t\t\t}\n\n\t\t\tif (mActivityScoreDate != null) {\n\t\t\t\tedit.putString(Defines.SHARED_PREF_SCORE_DATE, mActivityScoreDate.format2445());\n\t\t\t}\n\n\t\t\tedit.commit();\n\t\t}\n\t}",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState = drawer.saveInstanceState(outState);\n //add the values which need to be saved from the accountHeader to the bundle\n outState = header.saveInstanceState(outState);\n super.onSaveInstanceState(outState);\n }",
"public Save(Player player, String worldname) {\n\t\tthis(player.game, \"/saves/\" + worldname + \"/\");\r\n\t\t\r\n\t\twriteGame(\"Game\");\n\t\t//writePrefs(\"KeyPrefs\");\r\n\t\twriteWorld(\"Level\");\r\n\t\twritePlayer(\"Player\", player);\r\n\t\twriteInventory(\"Inventory\", player);\r\n\t\twriteEntities(\"Entities\");\r\n\t\t\r\n\t\tGame.notifications.add(\"World Saved!\");\r\n\t\tplayer.game.asTick = 0;\r\n\t\tplayer.game.saving = false;\r\n\t}",
"public void save() {\t\n\t\n\t\n\t}",
"public String getCurrentLevel() \n { \n return currentLevel; \n }",
"@Test\r\n\tpublic void saveTeamLevel() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamLevel \r\n\t\tInteger teamId_8 = 0;\r\n\t\tLevel related_level = new wsdm.domain.Level();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamLevel(teamId_8, related_level);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamLevel\r\n\t}",
"public String getLevel()\n {\n return gameLevel;\n }",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n outState.putBundle(ICICLE_KEY, mGameView.saveState());\n }",
"@Override\n protected void onSaveInstanceState(Bundle outState) {\n outState.putParcelable(GAME_TAG, game);\n outState.putBoolean(EXIT_ALERT_VISIBILITY, exitAlertVisible); // is EXIT AlertDialog shown?\n super.onSaveInstanceState(outState);\n }",
"private void updateProperties(){\n loadProperties();\n GameModel gameModel = GameModel.getInstance();\n int level = gameModel.getCurrentLevelIndex();\n //int health = gameModel.getPlayer().getLives();\n //int ammo = gameModel.getPlayer().getAmmunition();\n int highestReachedLevel = getHighestLevelFromProperties();\n\n //checks if player has reached a higher level than before\n if (level>=highestReachedLevel){\n properties.setProperty(\"highestReachedLevel\", Integer.toString(level));\n gameModel.setHighestCompletedLevel(level); //gives model the new highest completed level\n } else {\n properties.setProperty(\"highestReachedLevel\", Integer.toString(highestReachedLevel));\n gameModel.setHighestCompletedLevel(highestReachedLevel);\n }\n\n System.out.println(\"Saved Highest reached levl: \"+properties.getProperty(\"highestReachedLevel\"));\n\n properties.setProperty(\"level\", Integer.toString(level));\n //properties.setProperty(\"health\", Integer.toString(health));\n //properties.setProperty(\"ammo\", Integer.toString(ammo));\n }",
"public void saveCameraPosition() {\n \t\tCameraPosition camera = mMap.getCameraPosition();\n \t\tSharedPreferences settings = context.getSharedPreferences(\"MAP\", 0);\n \t\tSharedPreferences.Editor editor = settings.edit();\n \t\teditor.putFloat(\"lat\", (float) camera.target.latitude);\n \t\teditor.putFloat(\"lng\", (float) camera.target.longitude);\n \t\teditor.putFloat(\"bea\", camera.bearing);\n \t\teditor.putFloat(\"tilt\", camera.tilt);\n \t\teditor.putFloat(\"zoom\", camera.zoom);\n \t\teditor.commit();\n \t}",
"public void saveState() {\n\t\tFileOutputStream fos = null;\n\t\tObjectOutputStream out = null;\n\t\ttry {\n\t\t\tFile savefile = new File(getServletContext().getRealPath(\"/WEB-INF/\"), SAVED_RECEPTOR_FILE_NAME);\n\t\t\tfos = new FileOutputStream(savefile);\n\t\t\tout = new ObjectOutputStream(fos);\n\t\t\tout.writeObject(pgtMap);\n\t\t\tout.close();\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"IO Exception saving proxyTicket cache\");\n\t\t\tex.printStackTrace();\n\t\t} catch (Exception e) { //don't think this is possible, but I'm seeing some goofy behavior, so...\n\t\t\tSystem.err.println(\"Non-IO Exception saving proxyTicket cache\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void onSaveInstanceState(Bundle outState) {\n super.onSaveInstanceState(outState);\n currentStateSaveToSharedPref();\n }",
"private void saveMove(){\n\t\tpreviousTile=monster.currentTile;\r\n\t}",
"private void storeViewState()\n\t{\n\t\tCommand lastCmd = project.getLastCommand();\n\t\tif (lastCmd != null)\n\t\t{\n\t\t\tlastCmd.setOptionalState(view.toJSONString(lastCmd.getProjectState()));\n\t\t}\n\t}",
"public void save() {\n //write lift information to datastore\n LiftDataAccess lda = new LiftDataAccess();\n ArrayList<Long>newKeys = new ArrayList<Long>();\n for (Lift l : lift) {\n newKeys.add(lda.insert(l));\n }\n\n //write resort information to datastore\n liftKeys = newKeys;\n dao.update(this);\n }",
"public Save(Game game) {\n\t\tthis(game, \"/\");\n\t\t\n\t\twritePrefs(\"Preferences\");\n\t}",
"@Override\r\n\tpublic void save() {\n\t\tif (section != null && !section.isEmpty()) {\r\n\t\t\tif (gradeLevel == null || gradeLevel.isEmpty()) {\r\n\t\t\t\tSection sec = (Section) Section.extractObject(Section.class.getSimpleName(), section);\r\n\t\t\t\tgradeLevel = sec.gradeLevel;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (course == null && gradeLevel != null && !gradeLevel.isEmpty()) {\r\n\t\t\tGradeLevel lvl = (GradeLevel) GradeLevel.extractObject(GradeLevel.class.getSimpleName(), gradeLevel);\r\n\t\t\tcollege = lvl.college;\r\n\t\t\tcourse = lvl.course;\r\n\t\t}\r\n\t\tif (course!=null && course.startsWith(\"B\")) {\r\n\t\t\tcollege = true;\r\n\t\t}\r\n\t\tif (!isEmptyKey()) {\r\n//\t\t\twe can get the latest enrollment schoolyear\r\n\t\t\ttry {\r\n\t\t\t\tif (\"ENROLLED\".equals(status)) {\r\n\t\t\t\t\tString sc = DBClient.getSingleColumn(BeanUtil.concat(\"SELECT a.schoolYear FROM Enrollment a WHERE a.studentId=\",personId,\" ORDER BY a.schoolYear DESC\")).toString();\r\n\t\t\t\t\tlatestSchoolYear = sc;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (schoolYear==null || schoolYear.isEmpty()) {\r\n\t\t\tschoolYear = AppConfig.getSchoolYear();\r\n\t\t}\r\n\t\tpersonType = \"STUDENT\";\r\n\t\tif (isEmptyKey()) {\r\n\t\t\tsuper.save();\r\n new springbean.SchoolDefaultProcess().createAllSubjects(this);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tsuper.save();\r\n\t\t}\r\n\t}",
"private void saveStateSnapshot(State state){\n\t\ttry{\n\t\t\tif(saveStateSnapshot){\n\t\t\t\t//System.out.println(Utils.treeDesc(state, 2, Tags.Role, Tags.Desc, Tags.Shape, Tags.Blocked));\n\t\t\t\tTaggable taggable = new TaggableBase();\n\t\t\t\ttaggable.set(SystemState, state);\n\t\t\t\tLogSerialiser.log(\"Saving state snapshot...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tFile file = Util.generateUniqueFile(settings.get(ConfigTags.OutputDir), \"state_snapshot\");\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(file)));\n\t\t\t\toos.writeObject(taggable);\n\t\t\t\toos.close();\n\t\t\t\tsaveStateSnapshot = false;\n\t\t\t\tLogSerialiser.log(\"Saved state snapshot to \" + file.getAbsolutePath() + \"\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t}\n\t\t}catch(IOException ioe){\n\t\t\tthrow new RuntimeException(ioe);\n\t\t}\n\t}",
"public static void save() throws IOException {\n String output = Main.currentUser.toString();\n output += DatabaseTranslator.getUserLocations(currentUser.getName());\n DatabaseTranslator.storeUserData(currentUser.getName(), output);\n }",
"private void saveState() {\n // Increase capacity if necessary\n if (nSaved == savedC.length) {\n Object tmp;\n tmp = savedC;\n savedC = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedC,0,nSaved);\n tmp = savedCT;\n savedCT = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedCT,0,nSaved);\n tmp = savedA;\n savedA = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedA,0,nSaved);\n tmp = savedB;\n savedB = new int[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedB,0,nSaved);\n tmp = savedDelFF;\n savedDelFF = new boolean[nSaved+SAVED_INC];\n System.arraycopy(tmp,0,savedDelFF,0,nSaved);\n }\n // Save the current sate\n savedC[nSaved] = c;\n savedCT[nSaved] = cT;\n savedA[nSaved] = a;\n savedB[nSaved] = b;\n savedDelFF[nSaved] = delFF;\n nSaved++;\n }",
"@Override\n\tpublic void newGame(String level) {\n\t\tmanager.newGame(level);\n\t}",
"void save() {\n File file = new File(main.myPath + \"state.xml\");\n Framework.backup(main.myPath + \"state.xml\");\n Framework.transform(stateDoc, new StreamResult(file), null);\n setDirty(false);\n }",
"public static void saveStats() {\r\n\t\tif(Main.optionsCheckbox.getState()) FileUtils.exportGameOptions();\r\n\t\t\r\n\t\tif(Main.isFourHandedTeams) {\r\n\t\t\tif(Main.team1Checkbox.getState()) FileUtils.exportTeamFile(Main.teamOne);\r\n\t\t\tif(Main.team2Checkbox.getState()) FileUtils.exportTeamFile(Main.teamTwo);\r\n\t\t\tif(Main.teamPreviousCheckbox.getState()) FileUtils.exportTeamFile(Main.teamPrevious);\r\n\t\t}\r\n\t\t\r\n\t\tif(Main.isFourHandedSingle) {\r\n\t\t\tif(Main.player1Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerOne);\r\n\t\t\tif(Main.player2Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerTwo);\r\n\t\t\tif(Main.player3Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerThree);\r\n\t\t\tif(Main.player4Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerFour);\r\n\t\t\tif(Main.playerPreviousCheckbox.getState()) FileUtils.exportPlayerFile(Main.playerPrevious);\r\n\t\t}\r\n\t\t\r\n\t\tif(Main.isThreeHanded) {\r\n\t\t\tif(Main.player1Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerOne);\r\n\t\t\tif(Main.player2Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerTwo);\r\n\t\t\tif(Main.player3Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerThree);\r\n\t\t\tif(Main.playerPreviousCheckbox.getState()) FileUtils.exportPlayerFile(Main.playerPrevious);\r\n\t\t}\r\n\t}",
"public static void save()\n\t{\n writeMap();\n\t}",
"public void onSaveListen() {\n _gamesList.get(_gamePos).getPlayers().add(playerName);\n // Increment the number of players that have joined the game\n _gamesList.get(_gamePos).setNumPlayers(_gamesList.get(_gamePos).getNumPlayers() + 1);\n\n TextView playersBlock = (TextView) findViewById(R.id.playersBlock);\n playersBlock.setText(\"\");\n List<String> players = _gamesList.get(_gamePos).getPlayers();\n for(int i = 0; i < players.size(); i++) {\n Log.d(\"GamePlayerSize\", Integer.toString(_gamesList.get(_gamePos).getPlayers().size()));\n if (i < players.size() - 1) {\n playersBlock.append(players.get(i) + \", \");\n }\n else {\n // Don't put a comma after the last one\n playersBlock.append(players.get(i));\n }\n }\n\n // Update the shared preferences with the edited game\n SharedPreferences gamesPref = this.getSharedPreferences(GAMES_FILE, MODE_PRIVATE);\n Gson gson = new Gson();\n\n SharedPreferences.Editor prefsEditor = gamesPref.edit();\n\n // Convert the games list into a json string\n String json = gson.toJson(_gamesList);\n Log.d(\"MainActivity\", json);\n\n // Update the _gamesMasterList with the modified _game\n prefsEditor.putString(GAME_KEY, json);\n prefsEditor.commit();\n\n Context context = getApplicationContext();\n CharSequence text = \"You have joined the game!\";\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n }",
"static boolean savePlayerState(PlayerState playerState) {\n if (playerState.getId() == null) {\n return insertPlayerState(playerState);\n } else {\n return updatePlayerState(playerState);\n }\n }",
"public void levelOver(){\n\t\t// this is called by the model when the user wins the game!\n\t\tif (gameModel.levelOver){\n\t\t\tsynchronized(gameModel){\n\n\t\t\tgameModel.resetGame();\n\t\t\tgameModel.createLevel(2,width,height);\n\t\t\tfor(Square s:gameModel.targets){\n\t\t\t\tLog.d(TAG,\"target = \"+s);\n\t\t\t}\n\t\t\tgameModel.levelOver=false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\n public void saveCurrent()\n {\n MazeInfo mi = (MazeInfo) mOpenMazes.getList().getSelectedValue();\n if (mi != null)\n {\n mi = mi.saveMaze();\n mOpenMazes.getList().setSelectedValue(mi, true);\n }\n }",
"private void saveScore() {\n\t\tif (Serializer.deserialize(Main.SCORES_FILE)) {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tArrayList<Integer> scores = (ArrayList<Integer>) Serializer\n\t\t\t\t\t.getRecovered();\n\n\t\t\tif (this.score > 0) {\n\t\t\t\tscores.add(this.score);\n\n\t\t\t\tSerializer.serialize(Main.SCORES_FILE, scores);\n\t\t\t}\n\t\t}\n\t}",
"public static void saveOptions() {\r\n\t\tMain.bagValue = GameOptions.bagValue.getSelectedItem();\r\n\t\tMain.nilValue = GameOptions.nilValueTextField.getText();\r\n\t\tMain.doubleNilValue = GameOptions.doubleNilValueTextField.getText();\r\n\t\tMain.winScore = GameOptions.winScoreTextField.getText();\r\n\t\tMain.loseScore = GameOptions.loseScoreTextField.getText();\r\n\t}",
"protected void storeCurrentValues() {\n }",
"private void saveState(final Bundle state)\n {\n logEnter(LOG_TAG, \"saveState\", state);\n\n state.putSerializable(BUNDLE_FIELD_INSTANCE, instance);\n state.putSerializable(BUNDLE_FIELD_ENTRIES, entries);\n }",
"private synchronized static void setLevelSync(final Logger.LEVEL desiredLevel) {\n if (null == desiredLevel) {\n return;\n }\n level = desiredLevel;\n if (null != context) {\n SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n prefs.edit ().putString (SHARED_PREF_KEY_level, level.toString ()).commit();\n // we still processed the setCapture call, but when SHARED_PREF_KEY_level_from_server is present, it is used for the level field value (it's an override)\n level = Logger.LEVEL.fromString(prefs.getString(SHARED_PREF_KEY_level_from_server, level.toString()));\n }\n }"
] | [
"0.7126473",
"0.6942775",
"0.6825217",
"0.6623542",
"0.6559167",
"0.6482649",
"0.64589775",
"0.6450856",
"0.6415388",
"0.63632244",
"0.63479024",
"0.6333818",
"0.6309761",
"0.6286231",
"0.6281646",
"0.6274209",
"0.6232289",
"0.6197721",
"0.61798733",
"0.61319965",
"0.6120959",
"0.6084403",
"0.6084296",
"0.6027269",
"0.6012701",
"0.5941177",
"0.58692753",
"0.5857762",
"0.5844298",
"0.5842615",
"0.5833315",
"0.58288914",
"0.5814184",
"0.580546",
"0.57890344",
"0.5774891",
"0.57650274",
"0.5761054",
"0.57524884",
"0.5738769",
"0.57380074",
"0.5731326",
"0.5705088",
"0.56920373",
"0.56833833",
"0.56811345",
"0.56783575",
"0.5669152",
"0.56610507",
"0.565252",
"0.5603469",
"0.5597152",
"0.5594976",
"0.5582678",
"0.5581179",
"0.5578659",
"0.5574306",
"0.5572482",
"0.557011",
"0.55346733",
"0.55229336",
"0.55215174",
"0.54949224",
"0.54813594",
"0.5473201",
"0.5472226",
"0.5470615",
"0.5470007",
"0.5460036",
"0.5457224",
"0.5448698",
"0.5443488",
"0.54432595",
"0.5439201",
"0.542193",
"0.5413276",
"0.5412303",
"0.5401244",
"0.5399102",
"0.5392759",
"0.5392412",
"0.53918135",
"0.53803575",
"0.5379822",
"0.5373081",
"0.5371629",
"0.5365272",
"0.5358841",
"0.53576857",
"0.5356117",
"0.535572",
"0.5355266",
"0.5348547",
"0.5336955",
"0.5333875",
"0.53247714",
"0.53185683",
"0.53181905",
"0.53158486",
"0.53150344"
] | 0.5896386 | 26 |
Load the detailed state of a game for a particular level, including highlevel information and elements present. | void loadOriginalGameState(String saveName, int level) throws IOException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadLevel(Game game, int level) {\n //stop any ongoing sounds\n game.getGameLevel().getLevelSound().stop();\n //creates new arrList\n game.resetGameLevels();\n //Loads levels in the arrList\n game.buildGameLevelsArray();\n //set to desired level\n game.setLevel(level);\n //load all necessary components for the game\n // and updates the existing one.\n game.goNextLevel();\n // sets the player lifes and collected eggs\n game.getHero().setLifes(10);\n game.getHero().setEggs(0);\n }",
"@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 load(BSGameState state);",
"public void loadGame() {\n game.loadGame();\n }",
"private void loadLevel(int level) throws SQLException, IOException {\n\t\tString levelText = LorannDAO.chooseLevel(level);\n\t\tthis.onTheLevel = new IElement[this.getWidth()][this.getHeight()];\n\t\tString[] levelArray = levelText.split(\"\\n\");\n\t\t\n\t\tfor(int y = 0; y < height; y++) {\n\t\t\tfor(int x = 0; x < width; x++) {\n\t\t\t\tswitch(levelArray[y].toCharArray()[x]) {\n\t\t\t\t\tcase '3':\n\t\t\t\t\t\tthis.setCharacterPosition(new Point(x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '5':\n\t\t\t\t\t\tthis.purses.add(new Purse(x, y, this));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '8':\n\t\t\t\t\t\tthis.energyBall = new CrystalEnergy(x,y,this);\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '9':\n\t\t\t\t\t\tthis.monsters.add(new Monster_2(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '6':\n\t\t\t\t\t\tthis.door = new Gate(x, y, this);\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase '4':\n\t\t\t\t\t\tthis.monsters.add(new Monster_1(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tthis.monsters.add(new Monster_3(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tthis.monsters.add(new Monster_4(this, x, y));\n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.createFloor());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: \n\t\t\t\t\t\tthis.setOnTheLevelXY(x, y, MotionlessElementFactory.getFromFileSymbol(levelArray[y].toCharArray()[x]));\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void loadLevel(int level)\n {\n loadTilemap(new File(\"Levels/level\" + level + \".txt\"));\n loadFrames(level);\n Rover.getRover().reset();\n }",
"public void loadMap(){\n level= dataBase.getData(\"MAP\",\"PLAYER\");\n }",
"public void loadGame(){\n\n try {\n input = new FileInputStream(fileName);\n properties.load(input);\n System.out.println(\"--- LOADING GAMEFILE PROPERTIES ---\");\n\n int highestReachedLevel = getHighestLevelFromProperties();\n GameModel.getInstance().setHighestCompletedLevel(highestReachedLevel);\n\n GameModel.getInstance().setfirstTimePlay(false);\n\n //TODO: Save properties to gameModel\n\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO LOAD GAME ---\");\n GameModel.getInstance().setfirstTimePlay(true);\n e.printStackTrace();\n } finally {\n if (input != null) {\n try {\n input.close();\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE INTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n\n }",
"public GameLevel LoadGame() throws IOException {\n FileReader fr = null;\n BufferedReader reader = null;\n\n try {\n System.out.println(\"Reading \" + fileName + \" data/saves.txt\");\n\n fr = new FileReader(fileName);\n reader = new BufferedReader(fr);\n\n String line = reader.readLine();\n int levelNumber = Integer.parseInt(line);\n\n //--------------------------------------------------------------------------------------------\n\n if (levelNumber == 1){\n gameLevel = new Level1();\n } else if(levelNumber == 2){\n gameLevel = new Level2();\n JFrame debugView = new DebugViewer(gameLevel, 700, 700);\n } else {\n gameLevel = new Level3();\n }\n\n //------------------------------------------------------------------------------------------\n\n\n while ((line = reader.readLine()) != null){\n String[] tokens = line.split(\",\");\n String className = tokens[0];\n float x = Float.parseFloat(tokens[1]);\n float y = Float.parseFloat(tokens[2]);\n Vec2 pos = new Vec2(x, y);\n Body platform = null;\n\n if (className.equals(\"PlayableCharacter\")){\n PlayableCharacter playableCharacter = new PlayableCharacter(gameLevel, PlayableCharacter.getItemsCollected(),PlayableCharacter.isSpecialGravity(),game);\n playableCharacter.setPosition(pos);\n gameLevel.setPlayer(playableCharacter);\n\n }\n\n if (className.equals(\"LogPlatform\")){\n Body body = new LogPlatform(gameLevel, platform);\n body.setPosition(pos);\n }\n\n if (className.equals(\"Coin\")){\n Body body = new Coin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new Pickup(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"ReducedGravityCoin\")){\n Body body = new ReducedGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupRGC(gameLevel.getPlayer(), game)\n\n );\n }\n\n if (className.equals(\"AntiGravityCoin\")){\n Body body = new AntiGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupAGC(gameLevel.getPlayer(), game) );\n }\n\n if (className.equals(\"Rock\")){\n Body body = new Rock(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new FallCollisionListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Pellet\")){\n Body body = new Pellet(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new AddLifeCollisionListener(gameLevel.getPlayer(), game));\n }\n\n if (className.equals(\"Branch\")){\n Body body = new Branch(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new BranchListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Portal\")){\n Body portal = new Portal(gameLevel);\n portal.setPosition(pos);\n portal.addCollisionListener(new DoorListener(game));\n }\n\n if (className.equals(\"DeathPlatform\")){\n float w = Float.parseFloat(tokens[3]);\n float h = Float.parseFloat(tokens[4]);\n float deg = Float.parseFloat(tokens[5]);\n\n Body body = new DeathPlatform(gameLevel, w, h);\n body.setPosition(pos);\n body.addCollisionListener(new FallCollisionListener(gameLevel.getPlayer(), game));\n body.setFillColor(Color.black);\n body.setAngleDegrees(deg);\n\n }\n\n }\n\n return gameLevel;\n } finally {\n if (reader != null) {\n reader.close();\n }\n if (fr != null) {\n fr.close();\n }\n }\n }",
"public void loadLevel(BufferedImage image) {\n\n\t\tif (stage == 1) {\n\t\t\tlevelLoader.loadLevel(image, ssTiles, ssPlayer, ssMonster, ssKeys);\n\t\t}\n\n\t\t/*\n\t\t * System.out.println(\"Hello from loadLevel\");\n\t\t * \n\t\t * \n\t\t * int w = image.getWidth();\n\t\t * int h = image.getHeight();\n\t\t * \n\t\t * \n\t\t * for(int xx = 0; xx < w; xx++) {\n\t\t * for (int yy = 0; yy < h; yy++) {\n\t\t * int pixel = image.getRGB(xx,yy);\n\t\t * int red = (pixel >> 16 ) & 0xff;\n\t\t * int green = (pixel >> 8) & 0xff;\n\t\t * int blue = (pixel) & 0xff;\n\t\t * //System.out.println(\"at x\" + xx + \" and y \"+ yy);\n\t\t * \n\t\t * \n\t\t * //if a pixel in the picture is red we render it as a block.\n\t\t * if(red == 255) {\n\t\t * handler.addObject(new Block(xx*32, yy*32, ID.Block,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //if a pixel in the picture is blue, we render it as a player.\n\t\t * if(blue == 255 && green == 0) {\n\t\t * System.out.println(\"player object added\");\n\t\t * handler.addObject(new Wizard(xx*32,yy*32,ID.Player,handler,this,ssPlayer));\n\t\t * }\n\t\t * \n\t\t * if(green == 255 && blue == 0) {\n\t\t * \n\t\t * \n\t\t * handler.addObject(new Enemy(xx*32, yy*32, ID.Enemy, handler,ssMonster));\n\t\t * enemies++;\n\t\t * System.out.println(\"added enemy, total enemies: \" + enemies);\n\t\t * }\n\t\t * \n\t\t * \n\t\t * if(green == 255 && blue == 255) {\n\t\t * System.out.println(\"crate found\");\n\t\t * handler.addObject(new Crate(xx*32, yy*32, ID.Crate,ssTiles));\n\t\t * }\n\t\t * \n\t\t * //System.out.println(\"There is \" + handler.object.size() +\n\t\t * \" objects loaded! \");\n\t\t * \n\t\t * }\n\t\t * \n\t\t * }\n\t\t */\n\n\t}",
"public void loadGame() throws IOException\r\n\t{\r\n\t\tjava.io.BufferedReader reader;\r\n\t String line;\r\n\t String[] elements;\r\n\t int ammo = 0;\r\n\t String state = null;\r\n\t try\r\n\t {\r\n\t reader = new java.io.BufferedReader(new java.io.FileReader(\"Game.ser\"));\r\n\t line = reader.readLine();\r\n\t elements = line.split(\":\");\r\n\t state = elements[0];\r\n\t ammo = Integer.decode(elements[1]);\r\n\t \r\n\t reader.close();\r\n\t \r\n\t\t gamePanel.getView().getPlayer().setAmmo(ammo);\r\n\t\t gamePanel.getView().getPlayer().setState(state);\r\n\t }\r\n\t catch(Exception e)\r\n\t {\r\n\t System.out.println(\"Can't load this save\");\r\n\t }\r\n\t \r\n\t \r\n\r\n\t}",
"public void loadLevel(PackEntity pack) {\n\t\tint curLevel = pack.getCurrentLevel();\n\t\tint totalLevel = pack.getNumberOfLevel();\n\t\t\n\t\tLog.i(TAG, \"current level: \" + pack.getCurrentLevel());\n\t\t//if complete all \n\t\tif (curLevel >= totalLevel) {\n\t\t\tcurLevel--;\n\t\t}\n\t\t\n\t\tSceneManager.getInstance().handleEpisodeSelection(pack.getId(), curLevel);\n\t}",
"public void loadGame(){\n if(gamePaused == false){ return; }\n // animationThread.stop();\n // JOptionPane.showMessageDialog(null, \"Game Loaded\", \"Message\", 1);\n replay.load();\n board = replay.autoReplay();\n level = replay.getLevel();\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelMusic\");\n }\n musicName = \"LevelMusic\";\n setTitle(\"Chip's Challenge: Level \" + level);\n timeRuunableThread.setDrawNumber(true);\n timeRuunableThread.setSecond(replay.getTime());\n gameStarted = true;\n gamePaused = false;\n timeRuunableThread.setPause(gamePaused);\n timeRuunableThread.setGameStart(gameStarted);\n infoCanvas.drawLevelNumber(level);\n keysize = 0;\n infoCanvas.drawChipsLeftNumber(board.getTreasureRemainingAmount());\n infoCanvas.drawSquares((Graphics2D) infoCanvas.getGraphics(), 14 * infoCanvas.getHeight() / 20, infoCanvas.getWidth(), infoCanvas.getHeight());\n try {\n infoCanvas.drawKeysChipsPics();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n renderer = new MazeRenderer(boardCanvas.getGraphics());\n renderer.redraw(board, boardCanvas.getWidth(), boardCanvas.getHeight());\n checkMovedRedraw();\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}",
"private void loadGame() {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tArrayList<String> data = new ArrayList<String>();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showOpenDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\r\n\t\tif (file != null) {\r\n\t\t\tmyFileReader fileReader = new myFileReader(file);\r\n\t\t\ttry {\r\n\t\t\t\tdata = fileReader.getFileContents();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\t// TODO: allow writing of whose turn it is!\r\n\t\t\tParser parse = new Parser();\r\n\t\t\tint tempBoard[][] = parse.parseGameBoard(data);\r\n\t\t\tgameBoard = new GameBoardModel(tempBoard, parse.isBlackTurn(), parse.getBlackScore(), parse.getRedScore());\r\n\t\t}\r\n\t}",
"public void nextLevel() {\n // stops the game\n world.stop();\n level++;\n switch (level) {\n case 2:\n // get a new world\n world = new Level2();\n // populates new world with Level2()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n move2.setObstacle2(world.getObstacle2());\n drop.setBallDrop(world.getBallPlatform());\n view.setWorld(world);\n \n try {\n gameMusicL2 = new SoundClip(\"data/music2.wav\");\n gameMusicL2.loop();\n gameMusicL1.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500);\n break;\n case 3:\n // get a new world\n world = new Level3();\n // populates new world with Level3()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n drop.setBallDrop(world.getBallPlatform());\n world.addStepListener(new MovingBlock(world.getBlock()));\n view.setWorld(world);\n \n try {\n gameMusicL3 = new SoundClip(\"data/music3.wav\");\n gameMusicL3.loop();\n gameMusicL2.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500); \n break;\n default:\n System.out.println(\"Congratulations, you have completed the game!\");\n System.exit(0);\n }\n world.start();\n }",
"public void loadGame() {\n\t\tmanager.resumeGame();\n\t}",
"@Override\n public void show() {\n batch = new SpriteBatch();\n stage = createStage();\n\n // create overlays\n hud = new GigagalHUD();\n victoryOverlay = new VictoryOverlay();\n gameoverOverlay = new GameOverOverlay();\n\n // determine input processor\n useOnScreenControl = (Gdx.app.getType() == Application.ApplicationType.Android // on mobile\n || Configs.instance.isDebugOnScreenControlEnabled() // or debugging\n );\n\n if (useOnScreenControl) {\n onscreenControl = new OnscreenControl();\n gameInputProcessor = new TouchProcessor(onscreenControl);\n } else {\n gameInputProcessor = new KeyPressProcessor();\n }\n\n Gdx.input.setInputProcessor(gameInputProcessor);\n\n // load new level\n startNewLevel();\n }",
"public void loadLevel(int level) {\n if (level == 0) {\n return;\n }\n if (this.levels[level] == null) {\n this.elevatorLevelsUnlocked = Math.max(this.elevatorLevelsUnlocked,\n (int)((level-1)/5.0));\n \n this.levels[level] = new MineLevel.Builder(level).buildLevel(this);\n }\n Iterator<Gateway> gateways = this.levels[level-1].getGateways();\n Gateway nextGateway;\n while (gateways.hasNext()) {\n nextGateway = gateways.next();\n if (nextGateway.getDestinationGateway() == null) {\n nextGateway.setDestinationArea(this.levels[level]);\n nextGateway.setDestinationGateway(this.levels[level].getEntranceGateway());\n }\n }\n }",
"private void populateLevel() {\r\n\r\n\r\n\t\t// Setup Goal\r\n\t\tJsonValue goalVal = levelAssets.get(\"goal\");\r\n\t\tfloat gWidth = goalTile.getRegionWidth()/scale.x;\r\n\t\tfloat gHeight = goalTile.getRegionHeight()/scale.y;\r\n\t\tfloat gX = goalVal.get(\"pos\").getFloat(0) + gWidth / 2;\r\n\t\tfloat gY = goalVal.get(\"pos\").getFloat(1) + gHeight / 2;\r\n\t\tgoalDoor = new DoorModel(gX, gY, gWidth, gHeight);\r\n\t\tgoalDoor.setBodyType(BodyDef.BodyType.StaticBody);\r\n\t\tgoalDoor.setDensity(constants.get(\"goal\").getFloat(\"density\", 0));\r\n\t\tgoalDoor.setFriction(constants.get(\"goal\").getFloat(\"friction\", 0));\r\n\t\tgoalDoor.setRestitution(constants.get(\"goal\").getFloat(\"restitution\", 0));\r\n\t\tgoalDoor.setSensor(true);\r\n\t\tgoalDoor.setDrawScale(scale);\r\n\t\tgoalDoor.setTexture(goalTile);\r\n\t\tgoalDoor.setName(\"goal\");\r\n\t\taddObject(goalDoor);\r\n\t\taddObjectTo(goalDoor, LevelCreator.allTag);\r\n\r\n\t\t// Get default values\r\n\t\tJsonValue defaults = constants.get(\"defaults\");\r\n\t\tJsonValue objs = levelAssets.get(\"objects\");\r\n\r\n\t\t//group platform constants together for access in following for-loop\r\n\t\tTextureRegion[] xTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\tlightningLightTexture, lightningDarkTexture, lightningAllTexture,\r\n\t\t\trainLightTexture, rainDarkTexture, rainAllTexture,\r\n\t\t\t\tcrumbleLightTexture, crumbleDarkTexture, crumbleAllTexture};\r\n\r\n\t\tTextureRegion[] reducedXTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\t\tlightningLightTextureReduced, lightningDarkTextureReduced, lightningAllTextureReduced,\r\n\t\t\t\trainLightTextureReduced, rainDarkTextureReduced, rainAllTextureReduced,\r\n\t\t\t\tcrumbleLightTextureReduced, crumbleDarkTextureReduced, crumbleAllTextureReduced};\r\n\r\n\r\n\t\t// Setup platforms\r\n\t\tfor(int i=0; i < (objs != null ? objs.size : 0); i++)\r\n\t\t{\r\n\t\t\tJsonValue obj = objs.get(i);\r\n\r\n\t\t\t// Get platform attributes\r\n\t\t\tint platformType = obj.get(\"type\").asInt();\r\n\t\t\tint property = obj.get(\"property\") == null ? 0: obj.get(\"property\").asInt();\r\n\t\t\tJsonValue platformArgs = obj.get(\"positions\");\r\n\t\t\tJsonValue pathsArgs = obj.get(\"paths\");\r\n\r\n\t\t\tfor (int j = 0; j < platformArgs.size; j++) {\r\n\t\t\t\tfloat[] bounds = platformArgs.get(j).asFloatArray();\r\n\t\t\t\tfloat x = bounds[0], y = bounds[1], width = bounds[2], height = bounds[3];\r\n\t\t\t\tTextureRegion newXTexture;\r\n\t\t\t\tTextureRegion crumbleTexture = null;\r\n\t\t\t\tTexture originalTexture = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// temporary - need to refactor asset directory\r\n\t\t\t\t\tJsonValue assetName = obj.get(\"assetName\");\r\n\t\t\t\t\tint assetIndex = assetName.asInt();\r\n\t\t\t\t\tnewXTexture = new TextureRegion(tutorial_signs[assetIndex]);\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tint platIdx = platformType-1+(property - 1)*3;\r\n\t\t\t\t\tint crumbleIdx = platIdx + 3;\r\n\t\t\t\t\tnewXTexture = new TextureRegion(xTexture[platIdx]);\r\n\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t// For crumble animation\r\n\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\tcrumbleTexture = new TextureRegion(xTexture[crumbleIdx]);\r\n//\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the platform size is the same as the spritesheet size\r\n\t\t\t\t\tif (originalTexture.getWidth() > 32 && width%(originalTexture.getWidth()/32) == 0) {\r\n\t\t\t\t\t\tnewXTexture = new TextureRegion(reducedXTexture[platIdx]);\r\n\t\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\t\tcrumbleTexture = new TextureRegion(reducedXTexture[crumbleIdx]);\r\n//\t\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tnewXTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t}\r\n\t\t\t\tPlatformModel platformModel = new PlatformModel(bounds, platformType, property, newXTexture, scale,\r\n\t\t\t\t\t\tdefaults.getFloat( \"density\", 0.0f ), defaults.getFloat( \"friction\", 0.0f ) ,\r\n\t\t\t\t\t\tdefaults.getFloat( \"restitution\", 0.0f ), originalTexture, crumbleTexture);\r\n\t\t\t\tplatformModel.setTag(platformType);\r\n\t\t\t\tplatformModel.setProperty(property);\r\n\t\t\t\taddObject(platformModel);\r\n\t\t\t\taddObjectTo(platformModel, platformType);\r\n\t\t\t\t//TODO: Moving platforms\r\n\r\n\r\n\t\t\t\tif (pathsArgs != null) {\r\n\t\t\t\t\tfloat[] paths = pathsArgs.get(j).asFloatArray();\r\n\r\n\t\t\t\t\t//** Moving platform if > 1 path or different path from starting position\r\n\t\t\t\t\tif (hasValidPath(x, y, paths)) {\r\n\t\t\t\t\t\tplatformModel.setBodyType(BodyDef.BodyType.KinematicBody);\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\r\n\t\t\t\t\t\tPooledList<Vector2> pathList = new PooledList<>();\r\n\t\t\t\t\t\tfor (int k = 0; k < paths.length; k+=2) {\r\n\t\t\t\t\t\t\tpathList.add(new Vector2(paths[k], paths[k+1]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfloat velocity = 3;\r\n\r\n\t\t\t\t\t\tplatformModel.setGravityScale(0);\r\n\t\t\t\t\t\tplatformModel.setPaths(pathList);\r\n\t\t\t\t\t\tplatformModel.setVelocity(velocity);\r\n\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// This world is heavier\r\n\t\tworld.setGravity( new Vector2(0,defaults.getFloat(\"gravity\",0)) );\r\n\r\n\t\t// Set level background index\r\n\t\tint backgroundTextureIndex = levelAssets.get(\"background\").asInt();\r\n\t\tbackgroundLightTexture = backgrounds[backgroundTextureIndex - 1];\r\n\t\tbackgroundDarkTexture = backgrounds[backgroundTextureIndex];\r\n\t\tbackgroundTexture = backgroundLightTexture;\r\n\r\n\t\t// Initialize background animations\r\n\t\tactualBackgroundTexture = backgroundTexture.getTexture();\r\n\t\tbackgroundEntirePixelWidth = actualBackgroundTexture.getWidth();\r\n\t\tbackgroundNumAnimFrames = (int)(backgroundEntirePixelWidth/backgroundFramePixelWidth);\r\n\t\tbackgroundAnimator = new FilmStrip(backgroundTexture,1, backgroundNumAnimFrames, backgroundNumAnimFrames);\r\n\t\tbackgroundAnimator.setFrame(0);\r\n\t\tbackgroundAnimeframe = 0;\r\n\t\tbackgroundOrigin = new Vector2(backgroundAnimator.getRegionWidth()/2.0f, backgroundAnimator.getRegionHeight()/2.0f);\r\n\r\n\t\t// Set level bounds\r\n\t\twidthUpperBound = levelAssets.get(\"dimensions\").getInt(0);\r\n\t\theightUpperBound = levelAssets.get(\"dimensions\").getInt(1);\r\n\r\n\t\t// Setup Somni\r\n\r\n\t\tJsonValue somniVal = levelAssets.get(\"somni\");\r\n\t\tfloat sWidth = somniTexture.getRegionWidth()/scale.x;\r\n\t\tfloat sHeight = somniTexture.getRegionHeight()/scale.y;\r\n\t\tfloat sX = somniVal.get(\"pos\").getFloat(0) + sWidth / 2;\r\n\t\tfloat sY = somniVal.get(\"pos\").getFloat(1) + sHeight / 2;\r\n\t\tsomni = new CharacterModel(constants.get(\"somni\"), sX, sY, sWidth, sHeight, platformController.somnif, CharacterModel.LIGHT);\r\n\t\tsomni.setDrawScale(scale);\r\n\t\tsomni.setTexture(somniIdleTexture);\r\n\t\tsomni.setFilterData(platformController.somnif);\r\n\t\tsomni.setActive(true);\r\n\t\taddObject(somni);\r\n\t\taddObjectTo(somni, LevelCreator.allTag);\r\n\r\n\r\n\t\t// Setup Phobia\r\n\r\n\t\tJsonValue phobiaVal = levelAssets.get(\"phobia\");\r\n\t\tfloat pWidth = phobiaTexture.getRegionWidth()/scale.x;\r\n\t\tfloat pHeight = phobiaTexture.getRegionHeight()/scale.y;\r\n\t\tfloat pX = phobiaVal.get(\"pos\").getFloat(0) + pWidth / 2;\r\n\t\tfloat pY = phobiaVal.get(\"pos\").getFloat(1) + pHeight / 2;\r\n\t\tphobia = new CharacterModel(constants.get(\"phobia\"), pX, pY, pWidth, pHeight, platformController.phobiaf, CharacterModel.DARK);\r\n\t\tphobia.setDrawScale(scale);\r\n\t\tphobia.setTexture(phobiaIdleTexture);\r\n\t\tphobia.setFilterData(platformController.phobiaf);\r\n\t\taddObject(phobia);\r\n\t\taddObjectTo(phobia, LevelCreator.allTag);\r\n\t\tphobia.setActive(true);\r\n\r\n\t\t// Setup Combined\r\n\r\n\t\tfloat cWidth = combinedTexture.getRegionWidth()/scale.x;\r\n\t\tfloat cHeight = combinedTexture.getRegionHeight()/scale.y;\r\n\r\n\t\tcombined = new CharacterModel(constants.get(\"combined\"), 0, 0, cWidth, cHeight, platformController.combinedf, CharacterModel.DARK);\r\n\t\tcombined.setDrawScale(scale);\r\n\t\tcombined.setTexture(somniPhobiaTexture);\r\n\t\t//combined.setTag();\r\n\t\tcombined.setFilterData(platformController.combinedf);\r\n\t\taddObject(combined);\r\n\t\taddObjectTo(combined, LevelCreator.allTag);\r\n\t\tcombined.setActive(true);\r\n\r\n\t\t//Remove combined\r\n\t\tobjects.remove(combined);\r\n\t\tsharedObjects.remove(combined);\r\n\t\tcombined.setActive(false);\r\n\r\n\t\taction = 0;\r\n\r\n\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\tvolume = prefs.contains(\"volume\") ? prefs.getFloat(\"volume\") : defaults.getFloat(\"volume\",\r\n\t\t\t\t1.0f);\r\n//\t\tSystem.out.println(volume);\r\n\r\n\t\tplatformController.applyFilters(objects);\r\n\t}",
"@Override\n public void loadGame() {\n\n }",
"private boolean loadLevel(int n) {\n Scanner in = null;\n try {\n in = new Scanner(new FileInputStream(LEVELS_FILE)); // Scanner to read the file\n model = new Loader(in).load(n); // Load level from scanner\n model.setListener( listener ); // Set the listener of modifications\n view = new TilePanel(model.getHeight(),model.getWidth(),CellTile.SIDE);\n win.clear();\n view.center(WIN_HEIGHT,WIN_WIDTH);\n status.setLevel(n);\n status.setMoves(0);\n return true;\n } catch (FileNotFoundException | InputMismatchException e) {\n System.out.println(\"Error loading file \\\"\"+LEVELS_FILE+\"\\\":\\n\"+e.getMessage());\n return false;\n } catch (Loader.LevelFormatException e) {\n System.out.println(e.getMessage()+\" in file \\\"\"+LEVELS_FILE+\"\\\"\");\n System.out.println(\" \"+e.getLineNumber()+\": \"+e.getLine());\n return false;\n } finally {\n if (in!=null) in.close(); // Close the file\n }\n }",
"@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 Player loadLevel(String level) {\n\t\tstopLevel();\n\t\tLevel temp = levels.get(level);\n\t\tif (temp == null) {\n\t\t\treturn null;\n\t\t}\n\t\tPlayer player = temp.load();\n\t\tcurrentObjective = temp.getObjective();\n\t\tlevelRunning = level;\n\t\treturn player;\n\t}",
"public void load() {\n World loadGame;\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n int fileOpened = fileChooser.showOpenDialog(GameFrame.this);\n\n if (fileOpened == JFileChooser.APPROVE_OPTION) {\n FileInputStream fileInput =\n new FileInputStream(fileChooser.getSelectedFile());\n ObjectInputStream objInput = new ObjectInputStream(fileInput);\n loadGame = (World) objInput.readObject();\n objInput.close();\n fileInput.close();\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n return;\n } catch (ClassNotFoundException x) {\n x.printStackTrace();\n return;\n }\n\n world = loadGame;\n gridPanel.removeAll();\n fillGamePanel();\n world.reinit();\n setWorld(world);\n GameFrame.this.repaint();\n System.out.println(\"Game loaded.\");\n }",
"private void loadFrames(int level)\n {\n //Clear out any past frames, reset iFrame counter\n frames.clear();\n iFrame = 0;\n //Switch statement not possible due to redeclaration\n // Refactor needed if no. of levels exceeds 10\n if(level==0)\n {\n //Level zero does not allow user control, just a splashscreen\n }\n else if(level == 1)\n {\n LevelOne userCode = new LevelOne();\n userCode.main();\n }\n else if(level == 2)\n {\n LevelTwo userCode = new LevelTwo();\n userCode.main();\n }\n else if(level == 3)\n {\n LevelThree userCode = new LevelThree();\n userCode.main();\n }\n else if(level == 4)\n {\n LevelFour userCode = new LevelFour();\n userCode.main();\n }\n else if(level == 5)\n {\n LevelFive userCode = new LevelFive();\n userCode.main();\n }\n else\n {\n System.out.println(\"Invalid level\");\n }\n }",
"public void load(){\n gameRounds = 0;\n mRound = new Round(players);\n mRound.loadRound();\n }",
"public void displayCurrentState(State game);",
"private void constructLevel(int level){\n gamePanel.removeAll();\n GridLayout layout = new GridLayout(grid.length,grid[0].length);\n gamePanel.setLayout(layout);\n gamePanel.setBackground(Color.BLACK);\n gamePanel.setFocusable(true);\n gamePanel.requestFocusInWindow();\n gamePanel.updateUI();\n }",
"public void loadQuickly(){\r\n System.out.println(\"I am going to try to load your games.\");\r\n String quickLoadPath = this.savePath + File.separator + \"QuickSave.ser\";\r\n this.load(quickLoadPath);\r\n }",
"private void loadHUD() {\r\n\r\n\t\tstaticEntities.add(new ButtonEntity(game, \"Pause\", \"hud\",\r\n\t\t\t\"reset-button-idle.png;reset-button-clicked.png\", null, game\r\n\t\t\t\t.getParent().getWidth() - 100,\r\n\t\t\tgame.getParent().getHeight() - 70, 100, 50));\r\n\t\tstaticEntities.add(new ButtonEntity(game, \"Inventory\", \"hud\",\r\n\t\t\t\"inventory-button-idle.png;inventory-button-clicked.png\", null,\r\n\t\t\tgame.getParent().getWidth() - 200,\r\n\t\t\tgame.getParent().getHeight() - 70, 100, 50));\r\n\t}",
"public static void load(){\n\t\tinbattle=true;\n\t\ttry{\n\t\t\tFile f=new File(Constants.PATH+\"\\\\InitializeData\\\\battlesavefile.txt\");\n\t\t\tScanner s=new Scanner(f);\n\t\t\tturn=s.nextInt();\n\t\t\ts.nextLine();\n\t\t\tString curr=s.next();\n\t\t\tif(curr.equals(\"WildTrainer:\"))\n\t\t\t\topponent=WildTrainer.readInTrainer(s);\n\t\t\telse if(curr.equals(\"EliteTrainer:\"))\n\t\t\t\topponent=EliteTrainer.readInTrainer(s);\n\t\t\telse if(curr.equals(\"Trainer:\"))\n\t\t\t\topponent=Trainer.readInTrainer(s);\n\t\t\tSystem.out.println(\"Initializing previous battle against \"+opponent.getName());\n\t\t\tcurr=s.next();\n\t\t\tallunits=new ArrayList<Unit>();\n\t\t\tpunits=new ArrayList<Unit>();\n\t\t\tounits=new ArrayList<Unit>();\n\t\t\twhile(!curr.equals(\"End\")){\n\t\t\t\tpunits.add(Unit.readInUnit(null,s));\n\t\t\t\tcurr=s.next();\n\t\t\t}\n\t\t\ts.nextLine();// Player Units\n\t\t\tcurr=s.next();\n\t\t\twhile(!curr.equals(\"End\")){\n\t\t\t\tounits.add(Unit.readInUnit(opponent,s));\n\t\t\t\tcurr=s.next();\n\t\t\t}\n\t\t\ts.nextLine();// Opponent Units\n\t\t\tallunits.addAll(punits);\n\t\t\tallunits.addAll(ounits);\n\t\t\tpriorities=new ArrayList<Integer>();\n\t\t\tint[] temp=GameData.readIntArray(s.nextLine());\n\t\t\tfor(int i:temp){\n\t\t\t\tpriorities.add(i);\n\t\t\t}\n\t\t\txpgains=GameData.readIntArray(s.nextLine());\n\t\t\tspikesplaced=s.nextBoolean();\n\t\t\tnumpaydays=s.nextInt();\n\t\t\tactiveindex=s.nextInt();\n\t\t\tactiveunit=getUnitByID(s.nextInt());\n\t\t\tweather=Weather.valueOf(s.next());\n\t\t\tweatherturn=s.nextInt();\n\t\t\ts.nextLine();\n\t\t\tbfmaker=new LoadExistingBattlefieldMaker(s);\n\t\t\tinitBattlefield();\n\t\t\tplaceExistingUnits();\n\t\t\tMenuEngine.initialize(new UnitMenu(activeunit));\n\t\t}catch(Exception e){e.printStackTrace();System.out.println(e.getCause().toString());}\n\t}",
"public static ArrayList<Level> loadAll(){\n\t\tArrayList<Level> all = new ArrayList<Level>();\n\t\tboolean unlocked =false;\n\t\ttry{\n\t\t\tFile dir = new File(\"levels/\");\n\t\t\tFile[] directoryListing = dir.listFiles();\n\t\t\tif(directoryListing != null){ // Use default level directory to create buttons\n\t\t\t\tfor(File child : directoryListing){\n\t\t\t\t\tif (child.getName().equals(\".DS_Store\")) continue;\n\t\t\t\t\tLevelState tmp = new LevelState();\n\t\t\t\t\ttmp.loadState(child.getName());\n\t\t\t\t\tString levelType = tmp.getLevelType();\n\t\t\t\t\tif(levelType != null){\n\t\t\t\t\t\tLevel newLevel = null;\n\t\t\t\t\t\tif(levelType.equals(LevelEditorState.PUZZLE)){\n\t\t\t\t\t\t\tnewLevel = new PuzzleLevel(tmp);\n\t\t\t\t\t\t} else if(levelType.equals(LevelEditorState.LIGHTNING)) {\n\t\t\t\t\t\t\tnewLevel = new LightningLevel(tmp);\n\t\t\t\t\t\t} else if(levelType.equals(LevelEditorState.RELEASE)) {\n\t\t\t\t\t\t\tnewLevel = new ReleaseLevel(tmp);\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(newLevel.getAchievement().getAchievement()>0){\n\t\t\t\t\t\t\tunlocked = true;\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tunlocked = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(unlocked){\n\t\t\t\t\t\t\tnewLevel.setLocked(false);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tnewLevel.setLocked(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tall.add(newLevel);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn all;\n\n\t}",
"private boolean playLevel() {\n // Opens panel of tiles with dimensions appropriate to the current level.\n // Starts the viewer for each model cell.\n // Shows the initial state of all cells in the model.\n for (int l = 0; l < model.getHeight(); l++)\n for (int c = 0; c < model.getWidth(); c++)\n view.setTile(l,c, CellTile.newInstance( model.getCell(l,c) ));\n while ( play() ) // Process one input event (mouse or keyboard)\n status.setMoves( model.getMoves() );\n return winGame(); // Verify win conditions; false: finished without complete\n }",
"public void loadGame(String p_FileName) {\n GameEngine l_GE = d_GameSaveLoad.runLoadGame(p_FileName);\n if (Objects.nonNull(l_GE)) {\n this.d_LoadedMap = l_GE.getD_LoadedMap();\n this.d_CurrentPlayer = l_GE.getD_CurrentPlayer();\n this.d_PlayerList = l_GE.getD_PlayerList();\n this.d_Console = l_GE.getD_Console();\n this.d_MapEditor = l_GE.getD_MapEditor();\n this.d_AdminCommandsBuffer = l_GE.getD_AdminCommandsBuffer();\n this.d_OrderBuffer = l_GE.getD_OrderBuffer();\n this.d_OrderStrBuffer = l_GE.getD_OrderStrBuffer();\n this.d_LogEntryBuffer = l_GE.getD_LogEntryBuffer();\n this.d_CurrentPhase = l_GE.getD_CurrentPhase();\n this.d_PreMapLoadPhase = l_GE.getD_PreMapLoadPhase();\n this.d_PostMapEditLoadPhase = l_GE.getD_PostMapEditLoadPhase();\n this.d_StartupPhase = l_GE.getD_StartupPhase();\n this.d_IssueOrdersPhase = l_GE.getD_IssueOrdersPhase();\n this.d_ExecuteOrdersPhase = l_GE.getD_ExecuteOrdersPhase();\n this.d_GameOverPhase = l_GE.getD_GameOverPhase();\n this.d_GameSaveLoad = l_GE.getD_GameSaveLoad();\n }\n }",
"private void populateLevel() {\n\t\t// Make the ragdoll\n\t\tragdoll = new RagdollModel(DOLL_POS.x, DOLL_POS.y);\n\t\tragdoll.setDrawScale(scale.x,scale.y);\n\t\tragdoll.setPartTextures(bodyTextures);\n\t\tragdoll.getBubbleGenerator().setTexture(bubbleTexture);\n\t\taddObject(ragdoll);\n\n\t\t// Create ground pieces\n\t\tPolygonObstacle obj;\n\t\tobj = new PolygonObstacle(WALL1, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall1\");\n\t\taddObject(obj);\n\n\t\tobj = new PolygonObstacle(WALL2, 0, 0);\n\t\tobj.setBodyType(BodyDef.BodyType.StaticBody);\n\t\tobj.setDensity(BASIC_DENSITY);\n\t\tobj.setFriction(BASIC_FRICTION);\n\t\tobj.setRestitution(BASIC_RESTITUTION);\n\t\tobj.setDrawScale(scale);\n\t\tobj.setTexture(earthTile);\n\t\tobj.setName(\"wall2\");\n\t\taddObject(obj);\n\n\t\tselector = new ObstacleSelector(world);\n\t\tselector.setTexture(crosshairTexture);\n\t\tselector.setDrawScale(scale);\n\t\t\n\t\t/*\n\t\tBodyDef groundDef = new BodyDef();\n\t\tgroundDef.type = BodyDef.BodyType.StaticBody;\n\t\tEdgeShape groundShape = new EdgeShape();\n\t\tgroundShape.set(-500.0f, 0.0f, 500.0f, 0.0f);\n\t\tground = world.createBody(groundDef);\n\t\tground.createFixture(groundShape,0);\n\t\t*/\n\t}",
"public LevelLoader(GameStateManager gsm){\n\t\tsuper(gsm);\n\t}",
"public void goNextLevel() {\r\n world.stop();\r\n levelMusic.close();\r\n if(level == 1) {\r\n level++;\r\n world = new Level2();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel2Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else if(level == 2) {\r\n level++;\r\n world = new Level3();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel3Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else {\r\n System.out.println(\"PLAYER SURVIVED\");\r\n System.exit(0);\r\n }\r\n }",
"public Level(String levelFile,Scene gameS){\n levelCreator = new TileFactory();\n this.levelFile = levelFile;\n initLevel();\n gameScene = gameS;\n enableInput(gameScene);\n }",
"public void loadLevel(String tileMapPath)\r\n\t{\r\n\t\tTiledMap map= new TmxMapLoader().load(tileMapPath);\r\n\t\tcreateLights(map);\r\n\t}",
"static private void loadGame() {\n ArrayList loadData = data.loadGame();\n\n //inventory\n inventory = new Inventory();\n LinkedTreeMap saveMap = (LinkedTreeMap) loadData.get(0);\n if (!saveMap.isEmpty()) {\n LinkedTreeMap inventoryItemWeight = (LinkedTreeMap) saveMap.get(\"itemWeight\");\n LinkedTreeMap inventoryItemQuantity = (LinkedTreeMap) saveMap.get(\"inventory\");\n String inventoryItemQuantityString = inventoryItemQuantity.toString();\n inventoryItemQuantityString = removeCrapCharsFromString(inventoryItemQuantityString);\n String itemListString = inventoryItemWeight.toString();\n itemListString = removeCrapCharsFromString(itemListString);\n\n for (int i = 0; i < inventoryItemWeight.size(); i++) {\n String itemSet;\n double itemQuantity;\n if (itemListString.contains(\",\")) {\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.indexOf(\",\")));\n inventoryItemQuantityString = inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\",\") + 1, inventoryItemQuantityString.length());\n itemSet = itemListString.substring(0, itemListString.indexOf(\",\"));\n itemListString = itemListString.substring(itemListString.indexOf(\",\") + 1, itemListString.length());\n } else {\n itemSet = itemListString;\n itemQuantity = Double.parseDouble(inventoryItemQuantityString.substring(inventoryItemQuantityString.indexOf(\"=\") + 1, inventoryItemQuantityString.length()));\n }\n String itemName = itemSet.substring(0, itemSet.indexOf(\"=\"));\n int itemWeight = Double.valueOf(itemSet.substring(itemSet.indexOf(\"=\") + 1, itemSet.length())).intValue();\n while (itemQuantity > 0) {\n Item item = new Item(itemName, \"\", itemWeight, true);\n inventory.addItemInInventory(item);\n itemQuantity--;\n }\n }\n }\n\n //itemList\n itemLocation = new ItemLocation();\n saveMap = (LinkedTreeMap) loadData.get(1);\n if (!saveMap.isEmpty()) {\n System.out.println(saveMap.keySet());\n LinkedTreeMap itemLocationOnMap = (LinkedTreeMap) saveMap;\n String rooms = saveMap.keySet().toString();\n rooms = removeCrapCharsFromString(rooms);\n for (int j = 0; j <= itemLocationOnMap.size() - 1; j++) {\n String itemToAdd;\n\n if (rooms.contains(\",\")) {\n itemToAdd = rooms.substring(0, rooms.indexOf(\",\"));\n } else {\n itemToAdd = rooms;\n }\n\n rooms = rooms.substring(rooms.indexOf(\",\") + 1, rooms.length());\n ArrayList itemInRoom = (ArrayList) itemLocationOnMap.get(itemToAdd);\n for (int i = 0; i < itemInRoom.size(); i++) {\n Item itemLocationToAdd;\n LinkedTreeMap itemT = (LinkedTreeMap) itemInRoom.get(i);\n String itemName = itemT.get(\"name\").toString();\n String itemDesc = \"\";\n int itemWeight = (int) Double.parseDouble(itemT.get(\"weight\").toString());\n boolean itemUseable = Boolean.getBoolean(itemT.get(\"useable\").toString());\n\n itemLocationToAdd = new PickableItem(itemName, itemDesc, itemWeight, itemUseable);\n itemLocation.addItem(itemToAdd, itemLocationToAdd);\n\n }\n }\n //set room\n String spawnRoom = loadData.get(3).toString();\n currentRoom = getRoomFromName(spawnRoom);\n }\n }",
"public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }",
"public void setLoadGame() {\n this.loadeGame = true;\n }",
"private void load() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tloadPairs();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void enter() {\n // get data from current level\n GameState gs = (GameState) getStateMachine().getStates().get(\"game\");\n currentLevel = gs.getCurrentLevel();\n\n // TODO: for testing\n currentLevel.getCurrentquardant().setCleared(true);\n currentLevel.getCurrentquardant().setVisited(true);\n\n // set layout and add different panels\n getGamePanel().setLayout(layout);\n getGamePanel().add(shopPanel, BorderLayout.PAGE_START);\n //getGamePanel().add(mapPanel, BorderLayout.CENTER);\n\n // play backgroundmusic and toggle sound\n SoundBoard.BACKGROUND.play();\n SoundBoard.ERROR.play();\n\n }",
"public void getLevelDetails(int levelNum) {\n\n\t\tScanner scnr = TextFileReader.getScannedFile(\"LH_Level\" + levelNum, directory);\n\n\t\tif (scnr == null) {\n\t\t\tSystem.out.println(\"Failed to find level\" + levelNum);\n\t\t\treturn;\n\t\t}\n\n\t\twhile (scnr.hasNextLine()) {\n\n\t\t\tString line = scnr.nextLine();\n\t\t\tString[] details = line.split(\",\");\n\n\t\t\tString type = details[0];\n\n\t\t\tif (type.equals(\"levelDetails\")) {\n\t\t\t\tinitialiseLevel(details, 1);\n\t\t\t}\n\n\t\t}\n\n\t}",
"public synchronized void generateLevel(Game game, int levelPack, int levelNumber) {\n\t\tInputStream in = null;\n\t\tString levelCode = levelPack + \"-\" + levelNumber;\n\t\ttry {\n\t\t\tin = game.getFileIO().readAsset(\"level\" + levelCode + \".txt\");\n\t\t\tList<String> layers = readLines(in);\n\t\t\t//set world height\n\t\t\tWORLD_HEIGHT = layers.size();\n\t\t\t\n\t\t\tfor(float i = 0, y = 0.5f + layers.size() - 1; i < layers.size(); i++, y -= 1) {\n\t\t\t\tString layer = layers.get((int)i);\n\t\t\t\t\n\t\t\t\tfor(float j = 0, x = 0.5f; j < layer.length(); j++, x += 1) {\n\t\t\t\t\tif(x > tempWidth) {\n\t\t\t\t\t\ttempWidth = x + 0.5f;\n\t\t\t\t\t}\n\t\t\t\t\tchar tile = layer.charAt((int)j);\n\t\t\t\t\t\n\t\t\t\t\tif(tile == 'T') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t} else if(tile == 'L') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tleftXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'l') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\trightXLimit = x + 0.5f;\n\t\t\t\t\t} else if(tile == 'M') {\n\t\t\t\t\t\tRegTile regTile = new RegTile(x, y);\n\t\t\t\t\t\tregTiles.add(regTile);\n\t\t\t\t\t\tminXLimit = x - 0.5f;\n\t\t\t\t\t} else if(tile == 'U') {\n\t\t\t\t\t\tSpike upSpike = new Spike(x, y);\n\t\t\t\t\t\tupSpikes.add(upSpike);\n\t\t\t\t\t} else if(tile == 'V') {\n\t\t\t\t\t\tSpike downSpike = new Spike(x, y);\n\t\t\t\t\t\tdownSpikes.add(downSpike);\n\t\t\t\t\t} else if(tile == 'R') {\n\t\t\t\t\t\tSpike rightSpike = new Spike(x, y);\n\t\t\t\t\t\trightSpikes.add(rightSpike);\n\t\t\t\t\t} else if(tile == 'J') {\n\t\t\t\t\t\tSpike leftSpike = new Spike(x, y);\n\t\t\t\t\t\tleftSpikes.add(leftSpike);\n\t\t\t\t\t} else if(tile == 'D') {\n\t\t\t\t\t\tDiamond diamond = new Diamond(x, y);\n\t\t\t\t\t\tdiamondBlocks.add(diamond);\n\t\t\t\t\t} else if(tile == 'G') {\n\t\t\t\t\t\tGold gold = new Gold(x, y);\n\t\t\t\t\t\tgoldBlocks.add(gold);\n\t\t\t\t\t} else if(tile == 'S') {\n\t\t\t\t\t\tSilver silver = new Silver(x, y);\n\t\t\t\t\t\tsilverBlocks.add(silver);\n\t\t\t\t\t} else if(tile == 'P') {\n\t\t\t\t\t\tplayer = new Player(x, y);\n\t\t\t\t\t\tplayer.velocity.y = 1;\n\t\t\t\t\t\trespawnPoint = new Vector2(x, y);\n\t\t\t\t\t} else if(tile == 'C') {\n\t\t\t\t\t\tCheckpoint checkpoint = new Checkpoint(x, y);\n\t\t\t\t\t\tcheckpoints.add(checkpoint);\n\t\t\t\t\t} else if(tile == 'F') {\n\t\t\t\t\t\tEndingFlag eflag = new EndingFlag(x, y);\n\t\t\t\t\t\teflags.add(eflag);\n\t\t\t\t\t} else if(tile == '#') {\n\t\t\t\t\t\tworldNumberG = (int)Math.ceil(y);\n\t\t\t\t\t\tlevelNumberG = (int)Math.ceil(x);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\t//set max found width across map to permanent width for current world\n\t\t\tWORLD_WIDTH = tempWidth;\n\t\t} catch (Exception e) {\n\t\t\t\n\t\t}\n\t}",
"public void levelBuilder() {\r\n\t\t//round 1\r\n\t\tEnemy[] round1Enemy = new Enemy[1];\r\n\t\tround1Enemy[0] = new Enemy();\r\n\t\t\tround1Enemy[0].type = 0;\r\n\t\t\tround1Enemy[0].imag = (MyFrame.refFrame).client.getOtherPlayer(0).getCardLeader().getCardImage();\r\n\t\t\tround1Enemy[0].position = new vec2(157, 0); \r\n\t\t\tround1Enemy[0].size = new vec2(185, 201); //X: 0~500 Y:250 lower\r\n\t\t\tround1Enemy[0].blood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].currentBlood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].attackCD = 0;\r\n\t\t\tround1Enemy[0].attack = 0;\r\n\t\t\tround1Enemy[0].initialCD = 0;\r\n\t\t\tround1Enemy[0].defense = 0;\r\n\t\t\t\r\n\t\tround[0].addEnemy(round1Enemy);\r\n\t}",
"public GameLevel(LevelInformation info, KeyboardSensor kboard, AnimationRunner aRunner,\n ScoreIndicator scoreInd, LivesIndicator lifeInd, Counter scoreC, Counter livesC) {\n this.levelInfo = info;\n this.keyboard = kboard;\n this.runner = aRunner;\n this.scoreIndi = scoreInd;\n this.lifeIndi = lifeInd;\n this.scoreCounter = scoreC;\n this.lifeCounter = livesC;\n }",
"private void getGameState(String version){\n\n }",
"private void load() {\n //Stopping all animations\n gameController.animGrid.cancelAnimations();\n\n for (int xx = 0; xx < gameController.grid.field.length; xx++) {\n for (int yy = 0; yy < gameController.grid.field[0].length; yy++) {\n int value = (int) SharedPreferenceUtil.get(this, xx + \"_\" + yy, -1);\n if (value > 0) {\n gameController.grid.field[xx][yy] = new Tile(xx, yy, value);\n } else if (value == 0) {\n gameController.grid.field[xx][yy] = null;\n }\n\n int undoValue = (int) SharedPreferenceUtil.get(this, SpConstant.UNDO_GRID + xx + \"_\" + yy, -1);\n if (undoValue > 0) {\n gameController.grid.undoField[xx][yy] = new Tile(xx, yy, undoValue);\n } else if (value == 0) {\n gameController.grid.undoField[xx][yy] = null;\n }\n }\n }\n\n gameController.currentScore = (int) SharedPreferenceUtil.get(this, SpConstant.SCORE, gameController.currentScore);\n gameController.historyHighScore = (int) SharedPreferenceUtil.get(this, SpConstant.HIGH_SCORE_TEMP, gameController.historyHighScore);\n gameController.lastScore = (int) SharedPreferenceUtil.get(this, SpConstant.UNDO_SCORE, gameController.lastScore);\n gameController.canUndo = (boolean) SharedPreferenceUtil.get(this, SpConstant.CAN_UNDO, gameController.canUndo);\n gameController.gameState = (int) SharedPreferenceUtil.get(this, SpConstant.GAME_STATE, gameController.gameState);\n gameController.lastGameState = (int) SharedPreferenceUtil.get(this, SpConstant.UNDO_GAME_STATE, gameController.lastGameState);\n gameController.isAudioEnabled = (boolean) SharedPreferenceUtil.get(this, SpConstant.AUDIO_ENABLED, gameController.isAudioEnabled);\n\n }",
"@Test\r\n\tpublic void testLoadGame() throws InvalidLinkException, Exception\r\n\t {\r\n\t\tgame = new GameMainDriver();\r\n\t\tString xmlPath = System\r\n\t\t .getProperty(\"user.dir\") + \"\\\\Risk_MapData\\\\small_map.xml\";\r\n\t\tCreateMap cmap = new CreateMap(xmlPath);\r\n\t\tHashMap<String, Continent> continentsList = cmap.generateGraph();\r\n\t\tGraph gameMapGraph = new Graph(cmap.getAllCountryNodes());\r\n\t\tGameMap risk = new GameMap(xmlPath, continentsList, gameMapGraph);\r\n\t\tgame.setGameMap(risk);\r\n\t\tgame.setTurnInCardsCount(10);\r\n\t\tPlayerModel pm = new PlayerModel();\r\n\t\tpm.setPlayerList(new HumanPlayer(\"human\", 4));\r\n\t\tpm.setPlayerList(new AggressivePlayer(\"dragon\", 10));\r\n\t\tgame.setPlayers(pm);\r\n\t\tgame.setTurnID(2);\r\n\t\tDeckOfCards deck = new DeckOfCards(game.getGameMap().getGameMapGraph()\r\n\t\t .getGraphNodes());\r\n\t\tgame.setDeck(deck);\r\n\t\tgame.setPlayerWorldDominationView(new PlayersWorldDominationView());\r\n\t\tassertNotNull(game);\r\n\t }",
"private void setUpOverview() {\n mapInstance = GameData.getInstance();\n //get reference locally for the database\n db = mapInstance.getDatabase();\n\n //retrieve the current player and the current area\n currentPlayer = mapInstance.getPlayer();\n\n }",
"public void runLevels(List<LevelInformation> levels) {\n\n for (LevelInformation levelInfo : levels) {\n\n Counter blocks = new Counter();\n GameLevel level = new GameLevel(levelInfo, this.keyboardSensor, this.animationRunner, this.lives,\n this.score, blocks);\n level.initialize();\n\n // play the same level over and over again as long as the player still has lives left\n while (this.lives.getValue() > 0) {\n level.playOneTurn();\n\n // if no blocks are left - move to the next level\n if (blocks.getValue() == 0) {\n // if all blocks are dead by now, add 100 to the score\n this.score.increase(LEVEL_COMPLETE_SCORE);\n break;\n } else {\n // subtract 1 life\n this.lives.decrease(1);\n\n // if no more lives are left, the game's over\n if (this.lives.getValue() == 0) {\n break;\n }\n }\n }\n\n // if no more lives are left, the game's over\n if (this.lives.getValue() == 0) {\n break;\n }\n }\n\n // ask the user for his name if his score is going to be on the highscore table\n if (this.highscore.isHighScore(this.score.getValue())) {\n DialogManager dialog = this.animationRunner.gui().getDialogManager();\n String name = dialog.showQuestionDialog(\"Name\", \"What is your name?\", \"\").trim();\n\n // if no name was entered\n if (name.equals(\"uninitializedValue\") || name.isEmpty()) {\n name = \"Anonymous\";\n }\n\n // remove commas\n if (name.contains(\",\")) {\n name = name.replace(\",\", \"\");\n }\n\n // add the record to the list\n this.highscore.add(new ScoreInfo(name.trim(), this.score.getValue()));\n\n try {\n // save the data\n this.highscore.save();\n } catch (IOException ioe) {\n System.err.println(ioe.getMessage());\n System.exit(-1);\n }\n }\n\n // show end screen - win or lose\n this.animationRunner.run(new KeyPressStoppableAnimation(\n this.keyboardSensor, \"space\", new EndScreen(this.lives, this.score)));\n // show highscores table\n this.animationRunner.run(new KeyPressStoppableAnimation(\n this.keyboardSensor, \"space\", new HighScoresAnimation(this.highscore)));\n\n // when the game ends reset counters\n this.score = new Counter();\n this.lives = new Counter(Ass7Game.LIVES);\n }",
"public Level3(Game game)\n {\n super(game);\n \n // set game var\n g = game;\n \n // set world\n world = game.getWorld();\n //set player\n player = game.getPlayer();\n // set default enemy exists state\n enemyExist = true;\n // set frame\n frame = g.getFrame();\n\n }",
"public void levelOneScreen() {\n timer.stop();\n gameModel.setState(\"Level 1\");\n currentScene = levelSetup.getLevelOne().getScene(levelOneInitialEntrance);\n currentBoard = levelSetup.getLevelOne().getBoard();\n currentLevelScreen = levelSetup.getLevelOne();\n levelOneInitialEntrance = (levelOneInitialEntrance ? false : false);\n moveCharacter(mainWindow, currentScene, hero, currentBoard);\n\n }",
"public void loadGame(String id) {\n ElasticSearcher.receiveGame(id, this);\n }",
"public void newGame(){\n\t\tsoundMan.BackgroundMusic1();\n\n\t\tstatus.setGameStarting(true);\n\n\t\t// init game variables\n\t\tbullets = new ArrayList<Bullet>();\n\n\t\tstatus.setShipsLeft(8);\n\t\tstatus.setGameOver(false);\n\n\t\tif (!status.getNewLevel()) {\n\t\t\tstatus.setAsteroidsDestroyed(0);\n\t\t}\n\n\t\tstatus.setNewAsteroid(false);\n\n\t\t// init the ship and the asteroid\n\t\tnewShip(gameScreen);\n\t\tnewAsteroid(gameScreen);\n\n\t\t// prepare game screen\n\t\tgameScreen.doNewGame();\n\t\tsoundMan.StopMusic2();\n\t\tsoundMan.StopMusic3();\n\t\tsoundMan.StopMusic4();\n\t\tsoundMan.StopMusic5();\n\t\tsoundMan.StopMusic6();\n\t\t// delay to display \"Get Ready\" message for 1.5 seconds\n\t\tTimer timer = new Timer(1500, new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatus.setGameStarting(false);\n\t\t\t\tstatus.setGameStarted(true);\t\n\n\t\t\t\tstatus.setLevel(1);\n\t\t\t\tstatus.setNumLevel(1);\n\t\t\t\tstatus.setScore(0);\n\t\t\t\tstatus.setYouWin(false);\n\t\t\t\tstatus.setBossLife(0);\n\t\t\t}\n\t\t});\n\t\ttimer.setRepeats(false);\n\t\ttimer.start();\n\t}",
"public GameInfo(Game game) {\n gameState = game.getGameState();\n activeCategory = game.getActiveCategory();\n round = game.getRound();\n humanRoundsWon = game.getHumanWonRounds();\n numDraws = game.getNumDraws();\n\n if (game.getActivePlayer() != null) {\n activePlayerName = game.getActivePlayer().getName();\n activePlayerHuman = game.getActivePlayer().getIsHuman();\n } else {\n activePlayerName = null;\n activePlayerHuman = null;\n }\n\n if (game.getRoundWinner() != null) {\n roundWinnerName = game.getRoundWinner().getName();\n } else {\n roundWinnerName = null;\n }\n\n if (game.getGameWinner() != null) {\n gameWinnerName = game.getGameWinner().getName();\n } else {\n gameWinnerName = null;\n }\n\n if (game.getGameWinner() != null) {\n winnerHuman = game.getGameWinner().getIsHuman();\n } else {\n winnerHuman = null;\n }\n\n\n\n topCards = getTopCards(game);\n playerNames = getPlayerNames(game);\n topCardTitles = getTopCardTitles(game);\n deck = getDeck(game);\n Player humanPlayer = getHumanPlayer(game);\n numOfCardsLeft = getNumOfCards(game);\n\n\n // Determine number of cards in human's deck\n //, the size of the communal pile and the top \n // most card\n if (humanPlayer != null && humanPlayer.getHand() != null) {\n numHumanCards = humanPlayer.getHand().size();\n } else {\n numHumanCards = null;\n }\n \n if (deck.size() > 0) {\n numOfCommunalCards = deck.size();\n } else {\n numOfCommunalCards = 0;\n }\n\n if (humanPlayer != null && humanPlayer.getTopMostCard() != null) {\n humanTopCardTitle = humanPlayer.getTopMostCard().getName();\n cardCategories = humanPlayer.getTopMostCard().getCardProperties();\n } else {\n humanTopCardTitle = null;\n cardCategories = null;\n }\n }",
"public void openGame(View view) {\n setViewBackgroundWithoutResettingPadding(view, R.drawable.bkg_button_on);\n\n // Calculates the first level least completed on file\n String levelCodes = loadLevelStatus(this);\n int firstUnsolvedLevel = levelCodes.indexOf(\"0\");\n if (firstUnsolvedLevel == -1) {\n firstUnsolvedLevel = levelCodes.indexOf(\"1\");\n }\n if (firstUnsolvedLevel == -1) {\n firstUnsolvedLevel = levelCodes.indexOf(\"2\");\n }\n if (firstUnsolvedLevel == -1) {\n firstUnsolvedLevel = 0;\n }\n\n // Saves the default level scroll position and the first unsolved level\n SharedPreferences.Editor settingsEditor = sharedPreferences.edit();\n settingsEditor.putInt(GRID_POSITION, firstUnsolvedLevel);\n settingsEditor.putInt(CURRENT_LEVEL, firstUnsolvedLevel);\n settingsEditor.apply();\n\n // Starts the intent at the first level not completed\n Intent intent = new Intent(this, BoardActivity.class);\n startActivity(intent);\n }",
"public void runLevels() {\n int levelnum = 1;\n double speed = 1;\n while (true) {\n\n GameLevel level = new GameLevel(new Level(levelnum, speed),\n this.keyboardSensor, this.animationRunner, this.blocks,\n this.score, this.numLives);\n this.frameRate = level.getFrameRate();\n\n level.initialize();\n\n while (this.blocks.getValue() > 0 && this.numLives.getValue() > 0) {\n level.playOneTurn(frameRate);\n if (this.blocks.getValue() == 0) {\n\n break;\n }\n\n this.numLives.decrease(1);\n }\n levelnum++;\n speed += 0.5;\n\n if (this.numLives.getValue() <= 0) {\n break;\n }\n\n }\n\n this.animationRunner.run(new KeyPressStoppableAnimation(animationRunner.getGui().getKeyboardSensor(),\n KeyboardSensor.SPACE_KEY, new EndScreen(score.getValue(), false)), this.frameRate);\n\n showScore();\n\n score = new Counter(0);\n numLives = new Counter(numberLives);\n blocks = new Counter(0);\n\n }",
"public void loadState(StateInfo stateInfo) {\n\n if (DEBUG) debug.println(\"Loading state [\"+ offset + \",\" + tokenOffset + \"]: \" + stateInfo + \"@\" + stopOffset); // NOI18N\n \n super.loadState(stateInfo);\n \n JJStateInfo info = (JJStateInfo) stateInfo;\n lexan.setStateInfo(info.getSubStates()); \n }",
"@Override\n\tpublic void load() {\n\t\tModLoader.setInGameHook(this, true, false);\n\t\tModLoader.setInGUIHook(this, true, false);\n\t}",
"public void startGameFlow(String path) throws IOException {\n\n List<LevelInformation> levelList = new ArrayList<>();\n\n LevelSetReader levelSetReader = new LevelSetReader(Paths.get(path));\n levelSetReader.fromReader(new FileReader(path));\n\n SubMenuAnimation<Task<Void>> subMenu =\n new SubMenuAnimation<Task<Void>>(\"Arkanoid\", keyboardSensor, animationRunner);\n levelList = getLevelListToRun(path, subMenu);\n\n\n this.startMenu(levelList, subMenu);\n }",
"private void initLevel(){\r\n\t\tBetterSprite doodleSprite = (BetterSprite)(getGroup(\"doodleSprite\").getSprites()[0]);\r\n\t\tinitControls(doodleSprite);\r\n\t\tinitEvents();\r\n\t}",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public static GameLevel load(Game game, String fileName)\n throws IOException{\n FileReader fr = null;\n BufferedReader reader = null;\n try {\n System.out.println(\"Reading \" + fileName + \" ...\");\n fr = new FileReader(fileName);\n reader = new BufferedReader(fr);\n String line = reader.readLine();\n String[] tokens = line.split(\",\");\n String name = tokens[0];\n int ballCount = Integer.parseInt(tokens[1]);\n\n GameLevel level = null;\n if (name.equals(\"Level1\"))\n level = new Level1(game);\n else if (name.equals(\"Level2\"))\n level = new Level2(game);\n else if (name.equals(\"Level3\"))\n level = new Level3(game);\n else if (name.equals(\"Level4\"))\n level = new Level4(game);\n\n level.getNaruto().setBallCount(ballCount);\n\n return level;\n\n } finally {\n if (reader != null) {\n reader.close();\n }\n if (fr != null) {\n fr.close();\n }\n }\n }",
"public static void startGameBoard(int level){\n\t\t\n\t\tmap = new Map(level);\n\t\tboard = map.getBoard();\n\t\tmapHeight = map.getHeight();\n\t\tmapWidth = map.getWidth();\n\t\t\n\t\tstartHeroes();\n\t\tstartAI(map.getEnemies());\n\t\t\n\t\tunitPositions = new Coordinate[heroList.length + enemyList.length];\n\t\t\n\t\t//Initializing the unit positions\n\t\tfor (int i = 0; i < heroList.length; i++){\n\t\t\tunitPositions[i] = heroList[i].getCoordinate();\n\t\t}\n\t\n\t\tfor (int i = heroList.length; i < unitPositions.length; i++){\n\t\t\tunitPositions[i] = enemyList[i - heroList.length].getCoordinate();\n\t\t}\n\t\t//Initializing necessary fields in the Algorithm class\n\t\tAlgorithm.setMap(map);\n\t\tAlgorithm.setUnitPositions(unitPositions);\n\t}",
"public GameState() {\n positionToPieceMap = new HashMap<Position, Piece>();\n }",
"public void levelEightScreen() {\n timer.stop();\n gameModel.setState(\"Level 8\");\n currentScene = levelSetup.getLevelEight().getScene(levelEightInitialEntrance);\n currentBoard = levelSetup.getLevelEight().getBoard();\n currentLevelScreen = levelSetup.getLevelEight();\n levelEightInitialEntrance = (levelEightInitialEntrance ? false : false);\n moveCharacter(mainWindow, currentScene, hero, currentBoard);\n }",
"public LevelInformation seperateLeveData() {\n try {\n // put the value of \"level_name\" in levelName\n String levelName = map.get(\"level_name\");\n // create a list of velocities\n List<Velocity> velocities = getVelocitiesForLevel();\n // find the speed of the paddle\n int paddleSpeed = Integer.parseInt(map.get(\"paddle_speed\"));\n // find the width of the paddle\n int paddleWidth = Integer.parseInt(map.get(\"paddle_width\"));\n // find the number of blocks\n int numOfBlocks = Integer.parseInt(map.get(\"num_blocks\"));\n // creating a list of blocks\n List<Block> blockList = createBlocks();\n String backround = map.get(\"background\");\n // create a level based on the Level Data\n LevelData oneLevel = new LevelData(levelName, velocities, paddleSpeed, paddleWidth, numOfBlocks, blockList);\n if (backround.contains(\"image\")) {\n backround = backround.replaceAll(\"[()]\", \"\");\n backround = backround.substring(5);\n // create an InputStream object\n InputStream imageIS = ClassLoader.getSystemClassLoader().getResourceAsStream(backround);\n Image image = null;\n // try to load the image\n try {\n image = ImageIO.read(imageIS);\n } catch (IOException e) {\n e.printStackTrace();\n } // set the backround\n oneLevel.setBackroundImage(image);\n imageIS.close();\n return oneLevel;\n } else {\n oneLevel.setBackroundColor(new ColorsParser().colorFromString(backround));\n return oneLevel;\n }\n } catch (Exception e) {\n messageToUser();\n }\n return null;\n }",
"private void loadStateDatabase() {\n new Thread( new Runnable() {\n public void run() {\n try {\n loadStates();\n } catch ( final IOException e ) {\n throw new RuntimeException( e );\n }\n }\n }).start();\n }",
"public Level(){\n\t\tlevel_image_pattern = \"default\";\n\t\t\n\t\timages = new HashMap <String, Image>();\n\t\tpickables = new ArrayList<Pickable>();\n\t\tplayer_initial_position = new int[2];\n\t\tplayer_initial_position[0] = 0;\n\t\tplayer_initial_position[1] = 0;\n\t\t\n\t\tconfig = Config.getInstance();\n\t\t\n\t}",
"public static void loadState(String stateData) {\n \n // 1) Decode the data with Base64\n byte[] compressedData = Base64.decode(stateData);\n \n // 2) Unzip it\n Inflater inflater = new Inflater();\n inflater.setInput(compressedData);\n ByteArrayOutputStream zout = new ByteArrayOutputStream();\n try {\n int dataDecompressed;\n byte[] partialData = new byte[1024];\n while ((dataDecompressed = inflater.inflate(partialData)) != 0) {\n zout.write(partialData, 0, dataDecompressed);\n }\n } catch (DataFormatException ex) {\n throw new IllegalArgumentException(\"State data did not include a valid state \");\n }\n byte[] xmlData = zout.toByteArray();\n \n // 3) Decode and activate the state\n ByteArrayInputStream bin = new ByteArrayInputStream(xmlData);\n StaticsXMLDecoder decoder = new StaticsXMLDecoder(bin);\n ExerciseState state = (ExerciseState) decoder.readObject();\n \n // init the exercise so that everything is kosher.\n Exercise.getExercise().initExercise();\n \n // now update UI elements\n for (TitledDraggablePopupWindow popup : InterfaceRoot.getInstance().getAllPopupWindows()) {\n if (popup instanceof DescriptionWindow) {\n ((DescriptionWindow) popup).update();\n }\n if (popup instanceof KnownLoadsWindow) {\n ((KnownLoadsWindow) popup).update();\n }\n }\n \n }",
"@Override\n\tpublic void newGame(String level) {\n\t\tmanager.newGame(level);\n\t}",
"public GameState getGameState();",
"public void setupGame(ILoader loader)\n {\n // Setup Game elements\n Game.StringConverter sc = new StringConverter();\n sc.initializeMiniMap(loader.getRoomPositionInfo());\n sc.initializeRooms(loader.getRoomsInfo());\n sc.initializeItems(loader.getItemsInfo());\n sc.initializeSpecialItems(loader.getSpecialItemsInfo());\n for (String[] exitString : loader.getExitInfo())\n sc.initializeExit(exitString);\n sc.initializePlayer(loader.getPlayerInfo());\n sc.initializeSaboteur(loader.getSaboteurInfo());\n sc.initializeHelper(loader.getHelperInfo());\n sc.initializeTimeHolder(loader.getTimeHolderInfo());\n \n \n roomPositions = sc.roomPositionsSC;\n rooms = sc.roomsSC;\n items = sc.itemsSC;\n specialItems = sc.specialItemsSC;\n player = sc.playerSC;\n saboteur = sc.saboteurSC;\n helper = sc.helperSC;\n timeHolder = sc.timeHolderSC;\n \n Game.GameSetup gameSetup = new GameSetup();\n gameSetup.addItemsToDefaultRooms(items);\n gameSetup.addRepairItemsToRooms(items, specialItems, rooms);\n \n Room randomRoom = gameSetup.getRandomSaboteurStartRoom(rooms);\n if (player == null)\n player = new Player(rooms.get(\"controlRoom\"), 2);\n if (saboteur == null)\n saboteur = new Saboteur(randomRoom, 0.5, 0.1, 0.15);\n if (helper == null)\n helper = new Helper(randomRoom, \"Krunk\", 0.1, 0.1);\n \n // Setup GameInfo\n gameInfo = new GameInfo(helper, loader.getRoomsRepaired());\n gameInfo.updateRoomsDestroyed();\n \n for (String key : rooms.keySet())\n for (Exit exit : rooms.get(key).getCollectionOfExits())\n if(!exit.isOperating())\n gameInfo.setHackedExit(exit);\n \n // Setup Timer\n if (sc.timeHolderSC == null)\n timeHolder = new TimeHolder(300, 350);\n timeHolder.setupReferences();\n \n // move saboteur to a random room if it is a new game\n if (timeHolder.getTimeLeft() == timeHolder.getTimeMax())\n saboteur.setRoom(randomRoom);\n \n // Setup GameCommand\n gameCommand = new GameCommand();\n \n // Game is loaded\n gameLoaded = true;\n }",
"public LevelEditor(Level level) {\n\t\tsuper();\n\t\tmyLevel = level;\n\t\t// hide null pointer exceptions if needed\n\t\tdbgShowMessagesInPf(false);\n\t\tobjectID = 0;\n\t\tdbgIsEmbedded(true);\n\t\tinitEngine((int) SCREEN_WIDTH, SCREEN_HEIGHT);\n\t\t\n\t\tdefineMedia(\"projectresources/tempTable.tbl\");\n\t\tdefineImage(SRBALL_STRING, \"n\", 0, defaultImage, \"-\");\n\t\tmyMover = new LevelMover(this);\n\t\tmyResourcesForImageToObject = ResourceBundle\n\t\t\t\t.getBundle(GAME_AUTHORING_ENVIRONMENT_RESOURCE_PACKAGE\n\t\t\t\t\t\t+ IMAGE_TO_OBJECT_RESOURCES);\n\t\tmyImageToObjectStatsMap = new HashMap<String, ObjectStats>();\n\t\tfillImageToObjectStatsMap();\n\t\tsetBGImage(myLevel.getBackground());\n\t}",
"public LevelFromFile() {\n this.velocityList = new ArrayList<Velocity>();\n this.blockList = new ArrayList<Block>();\n this.levelName = null;\n numberOfBalls = null;\n paddleSpeed = null;\n paddleWidht = null;\n levelName = null;\n background = null;\n numberOfBlocksToRemove = null;\n blockDef = null;\n startOfBloks = null;\n startOfBloksY = null;\n rowHight = null;\n }",
"public String getLevel()\n {\n return gameLevel;\n }",
"public LevelStateMachine(GameState gameState) {\n this.gameState = gameState;\n }",
"public void loadStory() {\n storyLabel.setText(story.getShortName());\n }",
"public void load() {\n handleLoad(false, false);\n }",
"private void initLevel () \n {\n score = 0;\n scoreVisual = score;\n level = new Level(Constants.LEVEL_01);\n cameraHelper.setTarget(level.bird);\n initPhysics();\n }",
"public void loadLevel(String path, int levelIndex, String levelName) throws IOException, InvalidFileException {\n\t\tif (levelIndex < 0)\n\t\t\tgrid = GridReader.loadLevel(path, false);\n\t\telse\n\t\t\tgrid = GridReader.loadLevel(path, true);\n\t\tlevel = new LevelDisplay(grid, this, levelIndex, levelName);\n\t\twindow.setContentPane(level);\n\t\tlevel.displayGrid.requestFocusInWindow();\n\t}",
"@SuppressLint(\"NewApi\")\r\n\tpublic void showLevelAdvanceMenu() {\n\t\ttry {\r\n\t\t\tThread.sleep(500);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t}\r\n\t\tLevelManager levelManager = game.getModel().getLevelManager();\r\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n \tbuilder.setTitle(getString(R.string.level_passed) + \"\\n\" + getString(R.string.next_up));\r\n \tLevel[] nextLevels = levelManager.getNextLevels();\r\n \tLevel nextLevel = nextLevels[0];\r\n \tString levelCaption = nextLevel.getCaption();\r\n \t\r\n \tfinal List<Stage> unlockedStages = levelManager.getOtherUnlockedStages(nextLevel.getStageKey());\r\n \t\r\n \tboolean twoLevelsTemp = false;\r\n \tLevel nextUnlockedLevelTemp = null;\r\n \tint levelsCount = 1;\r\n \tif (nextLevels.length > 1) {\r\n \t\tnextUnlockedLevelTemp = nextLevels[1];\r\n \t\ttwoLevelsTemp = true;\r\n \t\tlevelsCount++;\r\n \t}\r\n \tfinal Level nextUnlockedLevel = nextUnlockedLevelTemp;\r\n \tfinal boolean twoLevels = twoLevelsTemp;\r\n \t\r\n \tString[] items = new String[unlockedStages.size() + levelsCount];\r\n \tint i = 0;\r\n \titems[i++] = levelCaption;\r\n \tif (twoLevels) {\r\n \t\titems[i++] = nextUnlockedLevel.getCaption();\r\n \t}\r\n \tfor (Stage stage: unlockedStages) {\r\n \t\titems[i++] = stage.getCaption();\r\n \t}\r\n \tbuilder.setItems(items, new DialogInterface.OnClickListener() {\r\n \t public void onClick(DialogInterface dialog, int item) {\r\n \t \tif (item > 0) {\r\n \t \t\tif (twoLevels) {\r\n \t \t\t\tif (item == 1) {\r\n \t \t\t\t\tgame.getController().selectLevel(nextUnlockedLevel);\r\n \t \t\t\t} else {\r\n \t \t\t\tshowChooseLevelMenu(unlockedStages.get(item - 2));\r\n \t \t\t\t}\r\n \t \t\t} else {\r\n \t \t\t\tshowChooseLevelMenu(unlockedStages.get(item - 1));\r\n \t \t\t}\r\n \t \t}\r\n \t \tpassLevelMenuDone();\r\n \t }\r\n \t});\r\n \tbuilder.setOnCancelListener(new DialogInterface.OnCancelListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\tpassLevelMenuDone();\r\n\t\t\t}\r\n\t\t});\r\n \ttry {\r\n\t \tbuilder.setOnDismissListener(new DialogInterface.OnDismissListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void onDismiss(DialogInterface dialog) {\r\n\t\t\t\t\tpassLevelMenuDone();\r\n\t\t\t\t}\r\n\t\t\t});\r\n \t} catch (Throwable t) {\r\n \t\t// this might throw if API is not compatible\r\n \t\tLog.i(\"JaroActivity\", \"showLevelAdvanceMenu.t\");\r\n \t}\r\n \tAlertDialog dialog = builder.create();\r\n \tdialog.show();\r\n\t}",
"void newGame() {\n\t\tstate = new model.State () ; \n\t\tif(host != null ) host.show(state) ; \n\t}",
"public Game() {\r\n\r\n\t\tmakeFrame();\r\n\t\tisClicked = false;\r\n\t\tisPlaying = false;\r\n\t\tlevelEasy = true;\r\n\t\tlevelIntermediate = false;\r\n\t\tlevelHard = false;\r\n\t\tplayerScore = 0;\r\n\r\n\t}",
"public Level(String levelToEdit)\r\n\t{\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(levelToEdit);//CHANGE GRID COORDINATES WHILE MAKING A NEW LEVEL\r\n\t\tmakeButton = new GameSprite(Player.filename);\r\n\t\tmakeButton.setPosition(0,0);\r\n\t\tplayer = new Player(100, 420);\r\n\t\tbackground = new Background(1, grid);\r\n\t}",
"public void init(final HashMap<String, String> info) {\n\t\tlogger.log(Level.FINE, \"Init \" + inStore + \" \" + inHouse + \" \" + Arrays.toString(fromHouse));\n\t\tloadVillage(info);\n\t\tsetDrawPos(0);\n\t\tsetDrawPos(1);\n\t\tcreateSpritesList();\n\t\texitName = infoMap.get(\"landname\");\n\t\tlogger.log(Level.FINE, \"Init \" + inStore + \" \" + inHouse + \" \" + Arrays.toString(fromHouse));\n\t\tint delay = 0;\n\t\tif (info.containsKey(\"delay\")) {\n\t\t\tdelay = Integer.parseInt(info.get(\"delay\"));\n\t\t}\n\t\tif (delay > 0) {\n\t\t\tfinal int delayLoading = delay;\n\t\t\tnew Thread() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tValues.sleep(delayLoading);\n\t\t\t\t\tlogicLoading = false;\n\t\t\t\t}\n\t\t\t}.start();\n\t\t} else {\n\t\t\tlogicLoading = false;\n\t\t}\n\t}",
"public void loadState(ObjectInput in) throws IOException {\n\t\t// loda deikto values\n\t\tdk.loadState(in);\n\t\t// load interpreter values\n\t\tinterpreter.globalActorBox=in.readFloat();\n\t\tinterpreter.globalPropBox=in.readFloat();\n\t\tinterpreter.globalStageBox=in.readFloat();\n\t\tinterpreter.globalEventBox=in.readFloat();\n\t\tinterpreter.globalVerbBox=in.readFloat();\n\t\tinterpreter.globalBNumberBox=in.readFloat();\n\n\t\t// load ticks\n\t\tcMoments = in.readInt();\n\t\t// load inactivity counter\n\t\tcInactivity = in.readInt();\n\t\t// load inactivity counter for the player\n\t\tplayerInactivity = in.readInt();\n\t\t// load storyIsOver\n\t\tstoryIsOver = in.readBoolean();\n\t\tisEpilogueNow = in.readBoolean();\n\t\tisHappilyDone = in.readBoolean();\n\t\tisPenultimateDone = in.readBoolean();\n\n\t\ttry {\n\t\t\t// load storybook\n\t\t\tint size = in.readInt();\n\t\t\tDeikto.checkByteArraySize(size*4);\n\t\t\thistoryBook.clear();\n\t\t\tfor(int i=0;i<size;i++)\n\t\t\t\thistoryBook.add((Sentence)in.readObject());\n\t\t\t//save random seeds\n\t\t\trandom = (Random)in.readObject();\n\t\t\tinterpreter.scriptRandom.setSeed(in.readLong());\n\t\t\t// load alarms\n\t\t\tsize = in.readInt();\n\t\t\tDeikto.checkByteArraySize(size*16);\n\t\t\talarms.clear();\n\t\t\tfor(int i=0;i<size;i++)\n\t\t\t\talarms.add((Alarm)in.readObject());\n\t\t\tsize = in.readInt();\n\t\t\tDeikto.checkByteArraySize(size*16);\n\t\t\tstorybookQueue.clear();\n\t\t\tstorybook.clear();\n\t\t\tfor(int i=0;i<size;i++)\n\t\t\t\tstorybook.add(in.readUTF());\n\t\t\tstorybookQueue.addAll(storybook);\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public static void load() {\n\n\t\ttry {\n\t\t\tnew Thread() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tObjectDef.loadConfig();\n\t\t\t\t\t\tObjectConstants.declare();\n\t\t\t\t\t\tMapLoading.load();\n\t\t\t\t\t\tRegion.sort();\n\t\t\t\t\t\tObjectManager.declare();\n\t\t\t\t\t\tGameDefinitionLoader.loadNpcSpawns();\n\t\t\t\t\t\tNpc.spawnBosses();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}.start();\n\n\t\t\tGlobalItemHandler.spawn();\n\t\t\tTriviaBot.start();\n\t\t\tAchievements.declare();\n\n\t\t\tGameDefinitionLoader.loadItemValues();\n\t\t\tGameDefinitionLoader.loadNpcDefinitions();\n\t\t\tGameDefinitionLoader.loadItemDefinitions();\n\t\t\tGameDefinitionLoader.loadEquipmentDefinitions();\n\t\t\tGameDefinitionLoader.loadShopDefinitions();\n\t\t\tGameDefinitionLoader.setRequirements();\n\t\t\tGameDefinitionLoader.loadWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedStrengthDefinitions();\n\t\t\tGameDefinitionLoader.loadSpecialAttackDefinitions();\n\t\t\tGameDefinitionLoader.loadCombatSpellDefinitions();\n\t\t\tGameDefinitionLoader.loadRangedWeaponDefinitions();\n\t\t\tGameDefinitionLoader.loadNpcCombatDefinitions();\n\t\t\tGameDefinitionLoader.loadItemBonusDefinitions();\n\n\t\t\tNPCDrops.parseDrops().load();\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public Level(int levelNumber)\r\n\t{\t\r\n\t\tlevelNum = levelNumber;\r\n\t\tlevelFileName = \"level\"+levelNum+\".txt\";\r\n\t\tlistFileName = \"level\"+levelNum+\"items.txt\";\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(levelFileName);\r\n\t\tGridSquare startSquare = grid.startLocation();\r\n\t\tplayer = new Player((int)startSquare.rect.x,(int)startSquare.platform.getBoundingRectangle().y+3);\r\n\t\tAndroidGame.camera.position.x = player.getX();\r\n\t\tAndroidGame.camera.position.y = player.getY();\r\n\t\tbackground = new Background(levelNumber, grid);\r\n\t\tdoorBubble = new OffScreenBubble(grid.getFinish());\r\n\t\tif(grid.getKey()!=null)\r\n\t\t{\r\n\t\t\thasKey = true;\r\n\t\t\tkeyBubble = new OffScreenBubble(grid.getKey());\r\n\t\t}\r\n\t\tplayer.reset(grid);\r\n\t}",
"public void loadSavedGame(SavedGame saved){\n ArrayList<Boat> boats = saved.getBoatArraySaved();\n int height = saved.getHeightSaved();\n int width = saved.getWidthSaved();\n\n Board board = new Board(height, width, 0);\n GameData gameData = new GameData(board, boats, saved.isPlayerIsAi());\n\n //POSITION BOATS INTO MATRIX\n loadPosBoats(gameData);\n\n if(saved.isPlayerIsAi()){\n gameData.setAi(saved.getAiPlayerSaved());\n }\n gameData.setFeedbackList(saved.getFeedbackListSaved());\n gameData.setGuessArray(saved.getGuessesSaved());\n Game.getInstance().setGameData(gameData);\n Game.getInstance().setEnded(false);\n\n }",
"public GameState(){\n this.gameResults = \"\";\n initVars();\n this.theme = DEFAULT_THEME;\n this.board = new Board(DEFAULT_BOARD);\n createSetOfPlayers(DEFAULT_PLAYERS, DEFAULT_AUTOPLAYER, DEFAULT_AUTOMODE);\n }",
"public void gatherLevelJson(String filename) {\r\n\t\tif(level == 0) { // Get level editor level\r\n\t\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\t\tif(prefs.contains(filename)) {\r\n\t\t\t\tlevelAssets = new JsonReader().parse(prefs.getString(filename));\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tFileHandle file = Gdx.files.internal(filename);\r\n\t\t\tString text = file.readString();\r\n\t\t\tlevelAssets = new JsonReader().parse(text);//directory.getEntry( String.format(\"level%d\", level), JsonValue.class);\r\n\t\t}\r\n\t}",
"public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }",
"public void loadPuzzle(String level) throws Exception\r\n\t{\r\n\t\tthis.level = level;\r\n\t\tString fileName = \"easyPuzzle.txt\";\r\n\t\tif(level.contentEquals(\"medium\"))\r\n\t\t\tfileName = \"mediumPuzzle.txt\";\r\n\t\telse if(level.contentEquals(\"hard\"))\r\n\t\t\tfileName = \"hardPuzzle.txt\";\r\n\t\t\r\n\t\tScanner input = new Scanner (new File(fileName));\r\n\t\t\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tint number = input.nextInt();\r\n\t\t\t\tif(number != 0)\r\n\t\t\t\t\tsolve(x, y, number);\r\n\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\tinput.close();\r\n\t\t\r\n\t}",
"public void loadStatus (){\n\t}",
"public void newGameStart(int level) {\n animationThread.stop();\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelMusic\");\n }\n musicName = \"LevelMusic\";\n setTitle(\"Chip's Challenge: Level \" + level);\n replay.clearMovement();\n exited = false;\n timeRuunableThread.setDrawNumber(true);\n timeRuunableThread.setSecond(101);\n gameStarted = true;\n gamePaused = false;\n timeRuunableThread.setPause(gamePaused);\n timeRuunableThread.setGameStart(gameStarted);\n infoCanvas.drawLevelNumber(level);\n board = new Board(level);\n keysize = 0;\n originalChipNumber = board.getTreasureRemainingAmount();\n infoCanvas.drawChipsLeftNumber(board.getTreasureRemainingAmount());\n infoCanvas.drawSquares((Graphics2D) infoCanvas.getGraphics(), 14 * infoCanvas.getHeight() / 20, infoCanvas.getWidth(), infoCanvas.getHeight());\n renderer = new MazeRenderer(boardCanvas.getGraphics());\n renderer.redraw(board, boardCanvas.getWidth(), boardCanvas.getHeight());\n }"
] | [
"0.70447785",
"0.67687833",
"0.65500057",
"0.6398866",
"0.6244537",
"0.62298054",
"0.62200105",
"0.61957115",
"0.6158446",
"0.61414057",
"0.6132567",
"0.60820967",
"0.6071789",
"0.59657085",
"0.59597903",
"0.59475833",
"0.5917672",
"0.5911314",
"0.5853731",
"0.5840967",
"0.5839374",
"0.5821783",
"0.57956",
"0.569905",
"0.569374",
"0.56903785",
"0.5486461",
"0.5483262",
"0.54798025",
"0.5472052",
"0.54675555",
"0.5433261",
"0.5416695",
"0.54150367",
"0.54135305",
"0.54122174",
"0.540649",
"0.54019916",
"0.5400851",
"0.53989154",
"0.5392467",
"0.53830534",
"0.5377077",
"0.53745985",
"0.5373313",
"0.5362578",
"0.53620285",
"0.5361196",
"0.53361166",
"0.5335842",
"0.533244",
"0.53268373",
"0.53249913",
"0.53243166",
"0.5324124",
"0.53200126",
"0.53129673",
"0.5311109",
"0.53072006",
"0.5306927",
"0.53035045",
"0.5301858",
"0.5298357",
"0.5296517",
"0.52914",
"0.5289696",
"0.5285712",
"0.5279032",
"0.52782345",
"0.52777106",
"0.52746123",
"0.5259338",
"0.5253918",
"0.5229576",
"0.5227622",
"0.52238774",
"0.52226955",
"0.5222235",
"0.5206704",
"0.5199732",
"0.5195254",
"0.5181466",
"0.5179752",
"0.51767546",
"0.5174076",
"0.5172929",
"0.51728964",
"0.51694965",
"0.51600045",
"0.5159173",
"0.51584095",
"0.51573294",
"0.5157295",
"0.51425576",
"0.51379466",
"0.5125496",
"0.5120463",
"0.5118703",
"0.5117242",
"0.51138395"
] | 0.65641105 | 2 |
Export a fully authored game, including all levels, into an executable file. | void exportGame(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void saveGame() {\r\n\t\t//separator used by system\r\n\t\tString separator = System.getProperty(\"file.separator\");\r\n\t\t//path to where files will be saved\r\n\t\tString path = System.getProperty(\"user.dir\") + separator + \"src\" + separator + \"GameFiles\" + separator;\r\n\r\n\t\ttry {\r\n\r\n\t\t\t//Save the world objects\r\n\t\t\tString world_objects_name = EnvironmentVariables.getTitle() + \"WorldObjects\";\r\n\t\t\t//create a new file with name given by user with added text for identification\r\n\t\t\tFile world_objects_file = new File(path + world_objects_name + \".txt\");\r\n\t\t\tFileOutputStream f_world_objects = new FileOutputStream(world_objects_file);\r\n\t\t\tObjectOutputStream o_world_objects = new ObjectOutputStream(f_world_objects);\r\n\r\n\t\t\t//loop through list and write each object to file\r\n\t\t\tfor(GameObject obj: EnvironmentVariables.getWorldObjects()) {\r\n\t\t\t\to_world_objects.writeObject(obj);\r\n\t\t\t}\r\n\r\n\t\t\to_world_objects.flush();\r\n\t\t\to_world_objects.close();\r\n\t\t\tf_world_objects.flush();\r\n\t\t\tf_world_objects.close();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//Save terrain is done the same ass world objects but we create a new file \r\n\t\t\t//with different added text\r\n\t\t\tString terrain_name = EnvironmentVariables.getTitle() + \"Terrain\";\r\n\t\t\tFile terrain_file = new File(path + terrain_name + \".txt\");\r\n\t\t\tFileOutputStream f_terrain = new FileOutputStream(terrain_file);\r\n\t\t\tObjectOutputStream o_terrain = new ObjectOutputStream(f_terrain);\r\n\r\n\t\t\tfor(GameObject obj: EnvironmentVariables.getTerrain()) {\r\n\t\t\t\to_terrain.writeObject(obj);\r\n\t\t\t}\r\n\r\n\t\t\to_terrain.flush();\r\n\t\t\to_terrain.close();\r\n\t\t\tf_terrain.flush();\r\n\t\t\tf_terrain.close();\r\n\t\t\t\r\n\t\t\t//Save main player, given own file but just a single object\r\n\t\t\tString main_player_name = EnvironmentVariables.getTitle() + \"MainPlayer\";\r\n\t\t\tFile main_player_file = new File(path + main_player_name + \".txt\");\r\n\t\t\tFileOutputStream f_main_player = new FileOutputStream(main_player_file);\r\n\t\t\tObjectOutputStream o_main_player = new ObjectOutputStream(f_main_player);\r\n\r\n\t\t\to_main_player.writeObject(EnvironmentVariables.getMainPlayer());\r\n\r\n\t\t\to_main_player.flush();\r\n\t\t\to_main_player.close();\r\n\t\t\tf_main_player.flush();\r\n\t\t\tf_main_player.close();\r\n\t\t\t\r\n\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.println(\"File not found\");\r\n\t\t}\r\n\t\tcatch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error initializing stream\");\r\n\t\t} \r\n\t\t\r\n\t\t//saving the environment variables\r\n\t\ttry {\r\n\t\t\tString env_name = EnvironmentVariables.getTitle() + \"EnvVariables\";\r\n\t\t\tFile env_file = new File(path + env_name + \".txt\");\r\n\t\t\t\r\n\t\t\tif(!env_file.exists()) {\r\n\t\t\t\tenv_file.createNewFile();\r\n\t\t }\r\n\t\t\t \r\n\t\t\t//FileWriter fw = new FileWriter(env_file);\r\n\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(env_file));\r\n\t\t\t//write each variable to a new line as a string\r\n\t\t\tbw.write(EnvironmentVariables.getTitle()); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getWidth())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getHeight())); bw.newLine();\r\n\t\t\tbw.write(EnvironmentVariables.getPlanet()); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getMass())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getRadius())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getAirDensity())); bw.newLine();\r\n\t\t\tbw.write(Float.toString(EnvironmentVariables.getMeter())); bw.newLine();\r\n\r\n\t\t\t\r\n\t\t\t//bw.flush();\r\n\t\t\tbw.close();\r\n\t\t\t\r\n\t\t}catch (IOException e) {\r\n\t\t\tSystem.out.println(\"Error initializing stream\");\r\n\t\t}\r\n\t\t\r\n\t\tEnvironmentVariables.getTerrain().clear();\r\n\t\tEnvironmentVariables.getWorldObjects().clear();\r\n\t}",
"public void saveGame(File fileLocation);",
"void saveGameState(File saveName);",
"public static void write(final Game game, final String filename) throws IOException {\n\t\tnew File(SAVES_FOLDER).mkdirs();\n\t\tfinal ObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(new File(SAVES_FOLDER + filename)));\n\t\toutput.writeObject(game);\n\t\toutput.close();\n\t}",
"public void save() {\n final JFileChooser fileChooser =\n new JFileChooser(System.getProperty(\"user.dir\"));\n try {\n fileChooser.setSelectedFile(new File(\"save.ser\"));\n int saveFile = fileChooser.showSaveDialog(GameFrame.this);\n\n if (saveFile == JFileChooser.APPROVE_OPTION) {\n File saveGame = fileChooser.getSelectedFile();\n FileOutputStream fileOut = new FileOutputStream(saveGame);\n ObjectOutputStream objOut = new ObjectOutputStream(fileOut);\n objOut.writeObject(world);\n objOut.close();\n fileOut.close();\n System.out.println(\"Game saved.\");\n } else {\n return;\n }\n } catch (IOException i) {\n i.printStackTrace();\n }\n\n }",
"void saveGame();",
"@Override\r\n\tpublic boolean execute(Game game) throws CommandExecuteException{\r\n\t\t\r\n\t\ttry(BufferedWriter out = new BufferedWriter(new FileWriter(filename))){\r\n\t\t\t// borrar todo lo que hubiera de antes\r\n\t\t\tout.flush();\r\n\t\t\tout.write(\"Plants Vs Zombies v3.0\" + '\\n');\r\n\t\t\tout.write('\\n');\r\n\t\t\tout.write(\"cycle: \" + game.getCiclos() + '\\n');\r\n\t\t\tout.write(\"sunCoins: \" + game.contadorTotalSuncoins() + '\\n');\r\n\t\t\tout.write(\"level: \" + game.getLevel() + '\\n');\r\n\t\t\tout.write(\"seed: \" + game.getSeed() + '\\n');\r\n\t\t\tout.write(\"remZombies: \" + game.zombiesPendientes() + '\\n');\r\n\t\t\tout.write(\"plantList: \");\t\t\t\r\n\t\t\tfor(int i = 0; i < game.getFilas(); ++i) {\r\n\t\t\t\tfor(int j = 0; j < game.getColumnas(); ++j) {\r\n\t\t\t\t\tPlant miplanta = game.getPlantThere(i, j);\r\n\t\t\t\t\tif(miplanta != null) {\r\n\t\t\t\t\t\tout.write(miplanta.getLetra() + \":\" + miplanta.getVida() \r\n\t\t\t\t\t\t+ \":\" + miplanta.getF() + \":\" + miplanta.getC() \r\n\t\t\t\t\t\t+ \":\" + tiempoSiguienteAccion(miplanta) + \" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout.write('\\n');\r\n\t\t\tout.write(\"zombieList: \");\r\n\t\t\tfor(int i = 0; i < game.getFilas(); ++i) {\r\n\t\t\t\tfor(int j = 0; j < game.getColumnas(); ++j) {\r\n\t\t\t\t\tZombie mizombie = game.getZombieThere(i, j);\r\n\t\t\t\t\tif(mizombie != null) {\r\n\t\t\t\t\t\tout.write(mizombie.getLetra() + \":\" + mizombie.getVida() \r\n\t\t\t\t\t\t+ \":\" + mizombie.getF() + \":\" + mizombie.getC() \r\n\t\t\t\t\t\t+ \":\" + tiempoSiguienteAccion(mizombie) + \" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout.write('\\n');\r\n\t\t\tout.write(\"sunList: \");\r\n\t\t\tfor(int i = 0; i < game.getFilas(); ++i) {\r\n\t\t\t\tfor(int j = 0; j < game.getColumnas(); ++j) {\r\n\t\t\t\t\tif(game.getSunPosition(i,j) != null) {\r\n\t\t\t\t\t\tout.write(i + \":\" + j + \" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tout.write('\\n');\r\n\t\t\tout.close();\r\n\t\t\tSystem.out.print(\"Game successfully saved in file <\" + this.filename + \">.dat. Use the load command to reload it\" + '\\n' + '\\n');\t\t\r\n\t\t}\r\n\t\tcatch(IOException ioe) {\r\n\t\t\tthrow new CommandExecuteException(\"Unable to save the game.\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void startSavedGame()\n {\n \n // get rid of nl character left in the stream\n // outFile.flush();\n \n // prompt user and get a file path\n System.out.println(\"\\nWhat is the file path?\");\n String filePath = keyboard.next();\n \n // call the getSavedGame( ) method in the GameControl class to load the game\n GameControl gc = new GameControl();\n gc.getSavedGame(filePath);\n\n // display the game menu for the loaded game\n MainMenuView mmv = new MainMenuView();\n mmv.displaySaveGameView();\n }",
"public void exportPuzzle () {\r\n fileManager.exportPuzzle (puzzle);\r\n }",
"public void saveGame(DataOutputStream s) throws IOException {\n s.writeUTF(level.toString());\n s.writeUTF(level.getName());\n s.writeInt(lives);\n s.writeInt(points);\n s.writeInt(wonLevels);\n pacman.writeEntity(s);\n s.writeInt(entities.size());\n for (GameEntity entity : entities)\n entity.writeEntity(s);\n }",
"public void makeProfile(String name){\r\n try{\r\n PrintWriter out = new PrintWriter(new FileWriter(\"../profiles/\" + name + \".profile\"));\r\n out.println(\"HORATIU INCORPORATED PROTECTED\"); //Header\r\n out.println(name); //Player name\r\n out.println(0); //Score\r\n \r\n //UNLOCK CODES\r\n //-1 if not unlocked\r\n //0 if unlocked but not completed\r\n //1 if completed\r\n out.println(0); //Initial level is unlocked by default\r\n for(int i = 0; i < 5; i++){\r\n out.println(-1); //\r\n }\r\n out.close();\r\n }\r\n catch(IOException e){\r\n }\r\n Player.playerName = name;\r\n Player.playerScore = 0; //Score\r\n Player.scores[0] = 0;\r\n for(int i = 1; i < 6; i++){ //1 to 6 so it does not overwrite the first 0\r\n Player.scores[i] = -1;\r\n }\r\n GameApp.makeToView(name);\r\n }",
"public static void save(Game game, String filename) {\n\t\ttry {\n\t\t\t/*\n\t\t\t * Setting up the xml writer\n\t\t\t */\n\t\t\t StringWriter stringWriter = new StringWriter();\n\n\t XMLOutputFactory xMLOutputFactory = XMLOutputFactory.newInstance();\n\t XMLStreamWriter xMLStreamWriter = xMLOutputFactory.createXMLStreamWriter(stringWriter);\n\n\t //Game node\n\t xMLStreamWriter.writeStartDocument();\n\t xMLStreamWriter.writeStartElement(\"Game\");\n\n\t\t\tWorld world = game.getWorld();\n\n\t\t\txMLStreamWriter.writeStartElement(\"TorchLight\");\n\t\t\txMLStreamWriter.writeCharacters(game.getTorchLight()+\"\");\n\t\t\txMLStreamWriter.writeEndElement();\n\n\t\t\t//World node\n\t\t\txMLStreamWriter.writeStartElement(\"World\");\n\n\t\t\t/*\n\t\t\t * Writing the dimensions of the game (i.e its width and height)\n\t\t\t */\n\t\t\twriteWorldDimension(xMLStreamWriter, world);\n\n\t\t\t/*\n\t\t\t * Writing the content of every room in the game\n\t\t\t */\n\t\t\tfor(int row = 0; row < world.getHeight(); row++) {\n\t\t\t\tfor(int col = 0; col < world.getWidth(); col++) {\n\t\t\t\t\twriteRoom(xMLStreamWriter, world, row, col);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/*\n\t\t\t * Closing the tags\n\t\t\t */\n\t xMLStreamWriter.writeEndElement();\n\t xMLStreamWriter.writeEndElement();\n\n\t xMLStreamWriter.writeEndDocument();\n\n\t xMLStreamWriter.flush();\n\t xMLStreamWriter.close();\n\n\t String xmlString = stringWriter.getBuffer().toString();\n\n\t stringWriter.close();\n\t /*\n\t * Writing the content of the game in xml format\n\t */\n\t try (PrintStream out = new PrintStream(new FileOutputStream(filename))) {\n\t \t out.print(xmlString);\n\t \t out.close();\n\t \t}\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void saveGame(){\n \tsaveOriginator.writeMap(this.map, this.getObjectives(), this.gameState);\n \tsaveGame.saveGame(saveOriginator);\n }",
"public void saveGame(){\n updateProperties();\n try {\n output = new FileOutputStream(fileName);\n properties.store(output, null); //saving properties to file\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO SAVE GAME ---\");\n e.printStackTrace();\n } finally {\n if (output != null) {\n try {\n output.close();\n System.out.println(\"--- GAME SAVED ---\");\n } catch (IOException e) {\n System.out.println(\"--- FAILED TO CLOSE OUTPUT ---\");\n e.printStackTrace();\n }\n }\n }\n }",
"public static void saveStats() {\r\n\t\tif(Main.optionsCheckbox.getState()) FileUtils.exportGameOptions();\r\n\t\t\r\n\t\tif(Main.isFourHandedTeams) {\r\n\t\t\tif(Main.team1Checkbox.getState()) FileUtils.exportTeamFile(Main.teamOne);\r\n\t\t\tif(Main.team2Checkbox.getState()) FileUtils.exportTeamFile(Main.teamTwo);\r\n\t\t\tif(Main.teamPreviousCheckbox.getState()) FileUtils.exportTeamFile(Main.teamPrevious);\r\n\t\t}\r\n\t\t\r\n\t\tif(Main.isFourHandedSingle) {\r\n\t\t\tif(Main.player1Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerOne);\r\n\t\t\tif(Main.player2Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerTwo);\r\n\t\t\tif(Main.player3Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerThree);\r\n\t\t\tif(Main.player4Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerFour);\r\n\t\t\tif(Main.playerPreviousCheckbox.getState()) FileUtils.exportPlayerFile(Main.playerPrevious);\r\n\t\t}\r\n\t\t\r\n\t\tif(Main.isThreeHanded) {\r\n\t\t\tif(Main.player1Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerOne);\r\n\t\t\tif(Main.player2Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerTwo);\r\n\t\t\tif(Main.player3Checkbox.getState()) FileUtils.exportPlayerFile(Main.playerThree);\r\n\t\t\tif(Main.playerPreviousCheckbox.getState()) FileUtils.exportPlayerFile(Main.playerPrevious);\r\n\t\t}\r\n\t}",
"public void saveGame(File f) {\n savegame = new SaveGame(f, chessboard, gamelog, colorsTurn);\n System.out.println(\"Gamed Saved.\");\n\n }",
"void loadOriginalGameState(String saveName, int level) throws IOException;",
"private void saveGame(){\n\t\t\n\t}",
"public void saveGame(String fileName){\n Gson gson = new Gson();\n String userJson = gson.toJson(player);\n\n try(Writer w = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(fileName), \"UTF-8\"))) {\n w.write(userJson);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"static void savePlayerData() throws IOException{\n\t\t/*\n\t\t\tFile playerData = new File(\"Players/\" + Player.getName() +\".txt\");\n\t\t\tif (!playerData.exists()) {\n\t\t\t\tplayerData.createNewFile(); \n\t\t\t}\n\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(\"Players/\" + Player.getName() +\".txt\"));\n\t\toos.writeObject(Player.class);\n\t\toos.close();\n\t\t*/\n\t\t\n\t\tString[] player = Player.getInfoAsStringArray();\n\t\tjava.io.File playerData = new java.io.File(\"Players/\" + player[0] +\".txt\");\n\t\tif (!playerData.exists()){\n\t\t\tplayerData.createNewFile();\n\t\t}\n\t\tjava.io.PrintWriter writer = new java.io.PrintWriter(playerData);\n\t\t//[0] Name, \n\t\twriter.println(\"# Name\");\n\t\twriter.println(player[0]);\n\t\t//[1] Level, \n\t\twriter.println(\"# Level\");\n\t\twriter.println(player[1]);\n\t\t//[2] getRoleAsInt(),\n\t\twriter.println(\"# Role/Class\");\n\t\twriter.println(player[2]);\n\t\t//[3] exp,\n\t\twriter.println(\"# Exp\");\n\t\twriter.println(player[3]);\n\t\t//[4] nextLevelAt,\n\t\twriter.println(\"# Exp Required for Next Level Up\");\n\t\twriter.println(player[4]);\n\t\t//[5] health,\n\t\twriter.println(\"# Current Health\");\n\t\twriter.println(player[5]);\n\t\t//[6] maxHealth,\n\t\twriter.println(\"# Max Health\");\n\t\twriter.println(player[6]);\n\t\t//[7] intelligence,\n\t\twriter.println(\"# Intelligence\");\n\t\twriter.println(player[7]);\n\t\t//[8] dexterity,\n\t\twriter.println(\"# Dexterity\");\n\t\twriter.println(player[8]);\n\t\t//[9] strength,\n\t\twriter.println(\"# Strength\");\n\t\twriter.println(player[9]);\n\t\t//[10] speed,\n\t\twriter.println(\"# Speed\");\n\t\twriter.println(player[10]);\n\t\t//[11] protection,\n\t\twriter.println(\"# Protection\");\n\t\twriter.println(player[11]);\n\t\t//[12] accuracy,\n\t\twriter.println(\"# Accuracy\");\n\t\twriter.println(player[12]);\n\t\t//[13] dodge,\n\t\twriter.println(\"# Dodge\");\n\t\twriter.println(player[13]);\n\t\t//[14] weaponCode,\n\t\twriter.println(\"# Weapon's Code\");\n\t\twriter.println(player[14]);\n\t\t//[15] armorCode,\n\t\twriter.println(\"# Armor's Code\");\n\t\twriter.println(player[15]);\n\t\t//[16] Gold,\n\t\twriter.println(\"# Gold\");\n\t\twriter.println(player[16]);\n\t\twriter.close();\n\t\t\n\t}",
"public void saveGame();",
"public void saveGame(GamePanel gamePanel) throws IOException\r\n\t{\r\n\t\tSystem.out.println(\"Saving your game.\");\r\n\t\ttry\r\n\t\t{\r\n\t\t\tObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(\"Game.ser\"));\r\n\t\t\tos.writeObject(gamePanel);\r\n\t\t\tos.close();\r\n\t\t}\r\n\t\tcatch (IOException ex) \r\n\t\t{\r\n ex.printStackTrace();\r\n }\r\n\t}",
"public static void main(String args[]){\n Game game = new GameImpl(new TestFactory());\n WorldStrategy worldStrategy = new ThirdPartyWorldAdapter();\n worldStrategy.createWorld(game);\n\n // Print World as it is \"seen\" by the Game\n for ( int r = 0; r < GameConstants.WORLDSIZE; r++ ) {\n String line = \"\";\n for ( int c = 0; c < GameConstants.WORLDSIZE; c++ ) {\n String type = game.getTiles().get(new Position(r,c)).getTypeString();\n\n if (type.equals(GameConstants.OCEANS)){ line += '.';}\n if (type.equals(GameConstants.PLAINS)){ line += 'o';}\n if (type.equals(GameConstants.MOUNTAINS)){ line += 'M';}\n if (type.equals(GameConstants.FOREST)){ line += 'f';}\n if (type.equals(GameConstants.HILLS)){ line += 'h';}\n }\n System.out.println(line);\n }\n\n }",
"public String saveGame(String fileName) {\n File file = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\n File saveFile = new File(file, fileName);\n\n try {\n PrintWriter writer = new PrintWriter(saveFile.getAbsolutePath(), \"UTF-8\");\n writer.println(\"Black: \" + playerBlack.getScore());\n writer.println(\"White: \" + playerWhite.getScore());\n writer.println(\"Board:\");\n\n for (int r = 0; r < Board.MAX_ROW; r++) {\n for (int c = 0; c < Board.MAX_COLUMN; c++) {\n if (boardObject.getSlot(r, c).getColor() == Slot.BLACK) {\n writer.print(\"B \");\n } else if (boardObject.getSlot(r, c).getColor() == Slot.WHITE) {\n writer.print(\"W \");\n } else {\n writer.print(\"O \");\n }\n }\n writer.println();\n }\n\n String nextPlayer = playerWhite.isTurn() ? \"White\" : \"Black\";\n writer.println(\"Next player: \" + nextPlayer);\n\n String humanPlayer = playerWhite.isComputer() ? \"Black\" : \"White\";\n writer.println(\"Human: \" + humanPlayer);\n\n writer.close();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return saveFile.getAbsolutePath();\n }",
"public void save() {\n\t\tlog.log(\"Attempting to save...\");\n\t\tPath spath = Paths.get(getFullSavePath());\n\t\tPath cpath = Paths.get(getFullSavePath() + \"units/\");\n\t\ttry {\n\t\t\tif(!Files.exists(spath))\n\t\t\t\tFiles.createDirectory(spath);\n\t\t\tif(!Files.exists(cpath))\n\t\t\t\tFiles.createDirectory(cpath);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\n\t\tFile[] files = new File(cpath.toString()).listFiles();\n\t\tfor(File f : files) {\n\t\t\tf.delete();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tBufferedWriter mfestWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"progress.txt\"));\n\t\t\tmfestWriter.write(name);\n\t\t\tmfestWriter.close();\n\t\t\tfor(MapCharacter mc : getFriendlies()) {\n\t\t\t\tBufferedWriter charWriter = new BufferedWriter(new FileWriter(getFullSavePath() + \"units/\"\n\t\t\t\t\t\t+ mc.getEnclosed().getDirName()));\n\t\t\t\tcharWriter.write(mc.getEnclosed().save());\n\t\t\t\tcharWriter.close();\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tlog.log(\"Save failed.\");\n\t\t\treturn;\n\t\t}\n\t\tlog.log(\"Game saved.\");\n\t}",
"public static void saveGame(Puzzle puzzle, String name) throws IOException {\n FileWriter wr;\n File file = new File(System.getenv(\"APPDATA\")+\"\\\\SudokuGR04\\\\\" + name + \".txt\");\n wr = new FileWriter(file);\n puzzle.setName(name);\n try {\n //generate File in dir SudokuGR04\n wr.write(puzzle.export());\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n wr.close();\n }\n }",
"public static void save(){\n\t\ttry{\n\t\t\tFile f=new File(Constants.PATH+\"\\\\InitializeData\\\\battlesavefile.txt\");\n\t\t\tPrintWriter pw=new PrintWriter(f);\n\t\t\tpw.println(turn);\n\t\t\tpw.println(opponent.toString());\n\t\t\tfor(Unit u:punits){\n\t\t\t\tpw.println(u.toString());\n\t\t\t}\n\t\t\tpw.println(\"End Player Units\");\n\t\t\tfor(Unit u:ounits){\n\t\t\t\tpw.println(u.toString());\n\t\t\t}\n\t\t\tpw.println(\"End Opponent Units\");\n\t\t\tpw.println(priorities);\n\t\t\tpw.println(Arrays.asList(xpgains));\n\t\t\tpw.println(spikesplaced+\" \"+numpaydays+\" \"+activeindex+\" \"+activeunit.getID()+\" \"+weather+\" \"+weatherturn);\n\t\t\tpw.println(bfmaker.toString());\n\t\t\tpw.close();\n\t\t}catch(Exception e){e.printStackTrace();}\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tif(args.length!=3) {\n\t\t\tSystem.out.println(\"!!Not valid arguments!!\\n\"+HELP_INFO);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tloadData = new File(args[0]);\n\t\t\tif(!loadData.exists()) {System.out.println(\"!!Can't find the load file, did you type the name correctly!!\\n\"+HELP_INFO);return;}\n\t\t\tif(!loadData.canRead()){System.out.println(\"!!Can't read from the load file, did you give the program proper permissions!!\\n\"+HELP_INFO);return;}\n\t\t\texportFile = new File(args[1]);\n\t\t\tif(!exportFile.exists()) {\n\t\t\t\tif(exportFile.createNewFile()) {\n\t\t\t\t\tif(!exportFile.canWrite()){//Somemone has messed up permissions\n\t\t\t\t\t\tSystem.out.println(\"!!Can't write to the newly created file, did you give the program proper permissions!!\\n\"+HELP_INFO);\n\t\t\t\t\t\texportFile.delete();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}else {\n\t\t\t\t\t\t//Success!\n\t\t\t\t\t}\n\t\t\t\t}else{System.out.println(\"!!Could not create an export file, did you give the program proper permisssions!!\\n\"+HELP_INFO);return;}\n\t\t\t}else{System.out.println(\"!!Export file exists, please remove!!+\\n\"+HELP_INFO);return;}\n\t\t\t\n\t\t\tif(Double.parseDouble(args[2])==0.0) {\n\t\t\t\tsaveTime = -1.0;\n\t\t\t}else if(Double.parseDouble(args[2])==-1.0) {\n\t\t\t\tsaveTime = -1.0;\n\t\t\t\tsaveAtConnection = true;\n\t\t\t}else {\n\t\t\t\tsaveTime = Double.parseDouble(args[2]);\n\t\t\t}\n\t\t}catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.println(HELP_INFO);\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tTEAM_DATA = new JSONObject(Files.toString(loadData, Charset.defaultCharset()));\n\t\t} catch (Exception err) {\n\t\t\terr.printStackTrace();\n\t\t\tSystem.out.println(HELP_INFO);\n\t\t\treturn;\n\t\t\t\n\t\t}\n\t\tif(!saveAtConnection && saveTime!=-1.0) {\n\t\t\tScheduledExecutorService exec = Executors.newSingleThreadScheduledExecutor();\n\t\t\texec.scheduleAtFixedRate(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tSystem.out.println(\"[AUTOSAVE]: Saving...:\");\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFileWriter fW = new FileWriter(exportFile);\n\t\t\t\t\t\tfW.write(TEAM_DATA.toString());\n\t\t\t\t\t\tfW.flush();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tSystem.out.println(\"[AUTOSAVE]: Couldn't save because:\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"[AUTOSAVE]: Done, next autosave in: \"+saveTime+\" minutes!\");\n\t\t\t\t}\n\t\t\t},0, (long) saveTime, TimeUnit.MINUTES);\n\t\t}\n\t\ttry {\n\t\t\tlocDev = LocalDevice.getLocalDevice();\n\t\t\tSystem.out.println(\"Local Device: '\" + locDev.getFriendlyName()+\"' @ \"+locDev.getBluetoothAddress());\n\t\t\tStreamConnectionNotifier streamConnNot = startServer();//Intializes server\n\t\t\tstartListening(streamConnNot);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public CmdApp() throws FileNotFoundException, LevelException, VacuumException, SpriteException {\r\n\t\tthis.game = new Game(\"levels/\",GameMode.TURNS);\r\n\t}",
"@Override\n public int saveGame(String foo) {\n RunGame.saveGameToDisk(foo);\n return 0;\n }",
"private static String createLevelFile(String difficultyName)\n\t{\n\t\tInteger tries=1;\n\n\t\tString levelPath = SokobanUtilities.getPathToCode()+\"/code/levels/generated/generator_\"+difficultyName.toLowerCase();\n\t\tString tempPath = levelPath+\".xsb\";\n\t\tFile level = new File(levelPath+\".xsb\");\n\n\t\twhile(level.exists())\n\t\t{\n\t\t\ttempPath = levelPath+\"_\"+tries.toString()+\".xsb\";\n\t\t\tlevel=new File(tempPath);\n\t\t\ttries++;\n\t\t}\n\n\t\ttry\n\t\t{\n\t\t\tlevel.createNewFile();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IllegalStateException(e);\n\t\t}\n\n\t\tPrintWriter out = null;\n\t\ttry\n\t\t{\n\t\t\tout = new PrintWriter(level);\n\t\t\tfor(int i=0; i<rows; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<columns; j++)\n\t\t\t\t{\n\t\t\t\t\tout.print(Cells.cellsToxsb(board[i][j]));\n\t\t\t\t}\n\t\t\t\tout.println();\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t} finally {\n\t\t\tout.close();\n\t\t}\n\n\t\tlevelPath=tempPath;\n\n\t\treturn levelPath;\n\t}",
"public void printDataToFile(){\n\ttry {\n\t File file = new File(\"media/gameOutput.txt\");\n \n\t // if file doesnt exists, then create it\n\t if (!file.exists()) {\n\t\tfile.createNewFile();\n\t }\n \n\t FileWriter fw = new FileWriter(file.getAbsoluteFile());\n\t BufferedWriter bw = new BufferedWriter(fw);\n\t bw.write(printString);\n\t bw.close();\n\t} catch (IOException e) {\n\t e.printStackTrace();\n\t}\n }",
"public void saveMap() {\n this.scanMap();\n String userHome = System.getProperty(\"user.home\");\n BinaryExporter export = BinaryExporter.getInstance();\n File file = new File(userHome + \"world.j3o\");\n try {\n export.save(this.testNode, file); \n } catch (IOException ex) {\n Logger.getLogger(mapDevAppState_2.class.getName()).log(Level.SEVERE, \"File write error\");\n }\n }",
"public static void SaveGame(ChessGame Game, String FileName) throws FileNotFoundException\n\t{\n\t\tif (!Game.GetRunning())\n\t\t{\n\t\t\tthrow new FileNotFoundException(\"Game is not running!\");\n\t\t}\n\t\tFile file = new File(\"./Saves/\" + FileName + \".myrsav\");\n\t\tPrintWriter Writer;\n\t\ttry\n\t\t{\n\t\t\tWriter = new PrintWriter(file);\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tthrow new FileNotFoundException(e.toString());\n\t\t}\n\n\t\tWriter.println(Game.GetPlayer(0).GetName());\n\t\tWriter.println(Game.GetPlayer(1).GetName());\n\t\tWriter.println(Game.GetPlayerTurn());\n\t\tWriter.println(Game.GetRound());\n\t\tfor(int i = 0;i < Game.GetBoardSize();i++)\n\t\t{\n\t\t\tChessSlot TempSlot = Game.GetBoardSlot(i);\n\t\t\tChessPiece TempPiece = TempSlot.GetChessPiece();\n\t\t\tif (TempPiece == null)\n\t\t\t{\n\t\t\t\tWriter.println(0);\n\t\t\t\tWriter.println(0);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tPlayer TempPlayer = TempPiece.GetPlayer();\n\t\t\tWriter.println(TempPiece.GetName());\n\t\t\tWriter.println(TempPlayer.GetName());\n\t\t}\n\t\tWriter.close();\n\t}",
"public static void main(String[] args) {\r\n //Instalizing the gui and the keyboard sensor\r\n GUI guiGame = new GUI(\"Arkanoid\", 800, 600);\r\n //Initializing and running the gameLevel.\r\n List<LevelInformation> levels = new ArrayList<LevelInformation>();\r\n //When run without parameters, your program should read a default level-sets file\r\n String path = \"level_sets.txt\";\r\n //Get level sets from args.\r\n if (args.length > 0) {\r\n path = args[0];\r\n }\r\n\r\n try {\r\n //Reading the level.\r\n LevelSpecificationReader li = new LevelSpecificationReader();\r\n GameFlow gameFlow = new GameFlow(new AnimationRunner(guiGame), guiGame.getKeyboardSensor()\r\n , guiGame.getDialogManager());\r\n //Input stream to get in the resources folder.\r\n InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(\"level_sets.txt\");\r\n InputStreamReader reader = new InputStreamReader(is);\r\n //Running the game.\r\n Map<String, String> map = LevelSetsReader.getLevelSetMap(reader);\r\n //Reset the reader to read again the file.\r\n is = ClassLoader.getSystemClassLoader().getResourceAsStream(\"level_sets.txt\");\r\n reader = new InputStreamReader(is);\r\n List<List<LevelInformation>> levelSets = LevelSetsReader.getLevels(reader);\r\n gameFlow.createMenu(levelSets, map);\r\n\r\n\r\n guiGame.close();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public void save(){\n Player temp = Arena.CUR_PLAYER;\n try{\n FileOutputStream outputFile = new FileOutputStream(\"./data.sec\");\n ObjectOutputStream objectOut = new ObjectOutputStream(outputFile);\n objectOut.writeObject(temp);\n objectOut.close();\n outputFile.close();\n }\n catch(FileNotFoundException e){\n System.out.print(\"Cannot create a file at that location\");\n }\n catch(SecurityException e){\n System.out.print(\"Permission Denied!\");\n }\n catch(IOException e){\n System.out.println(\"Error 203\");\n } \n }",
"private void saveGame(int gameId, String fileName){\n\n }",
"public static void Save(String filename) throws IOException {\n\t\tFileWriter fw=new FileWriter(filename);\r\n\t\tround=A1063307_GUI.round;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tfw.write(\"Round:\"+round+\",Turn:\"+who+\"\\n\");\r\n\t\tint t2=1;\r\n\t\twhile(t2<(linenumber)) {\r\n\t\t\tint zz=0;\r\n\t\t\twhile(zz<5) {\r\n\t\t\t\tif(zz==0) {\t\t\r\n\t\t\t\t\tch[t2].location=ch[t2].location%20;\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].location)+\",\");\r\n\t\t\t\t}\r\n\t\t\t\telse if(zz==1){\r\n\t\t\t\t fw.write(Integer.toString(ch[t2].CHARACTER_NUMBER)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\telse if(zz==2){\r\n\t\t\t\t\tfw.write(Integer.toString(ch[t2].money)+\",\");\r\n\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t else if(zz==3){\r\n\t\t\t \tfw.write(Integer.toString(ch[t2].status)+\",\");\r\n\t\t\t \r\n\t\t\t \t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tfw.write(ch[t2].IMAGE_FILENAME);\t\t\t\t\r\n\t\t\t\t\t }\r\n\t\t\t\tzz++;\r\n\t\t\t}\r\n\t\t\tfw.write(\"\\n\");\r\n\t\t\tt2++;\r\n\t\t}\r\n\t\tfw.close();\r\n\t\tFileWriter fw1=new FileWriter(\"Land.txt\");\r\n\t\tfw1.write(\"LOCATION_NUMBER, owner\\n\");\r\n\t\tfor(int i=1;i<17;i++) {\r\n\t\t\tfw1.write(Land[i].PLACE_NUMBER+\",\"+Land[i].owner+\"\\n\");\r\n\t\t}\r\n\t\tfw1.close();\r\n\t}",
"void gameSaved() {\n\t\tSystem.out.println(\"\\n\\nGame saved.\");\n\t}",
"public void loadSaveGameFromFile(File file) {\r\n\t\t//TODO\r\n\t}",
"private void saveGame() throws FileNotFoundException {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showSaveDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\t\tif (file != null) {\r\n\t\t\tFileWriter fileWriter = new FileWriter(convertToStringArrayList(), file);\r\n\t\t\tfileWriter.writeFile();\r\n\t\t}\r\n\r\n\t}",
"public void saveGame() {\n\t\tmanager.saveGame();\n\t}",
"public static void main(String[] args) throws IOException {\n final dev.punchcafe.vngine.game.GameBuilder<NarrativeImp> gameBuilder = new dev.punchcafe.vngine.game.GameBuilder();\n final NarrativeAdaptor<Object> narrativeReader = (file) -> List.of();\n final var pom = PomLoader.forGame(new File(\"command-line/src/main/resources/vng-game-1\"), narrativeReader).loadGameConfiguration();\n final var narratives = NarrativeParser.parseNarrative(new File(\"command-line/src/main/resources/vng-game-1/narratives/narratives.yml\"));\n final var narrativeService = new NarrativeServiceImp(narratives);\n gameBuilder.setNarrativeReader(new NarrativeReaderImp());\n gameBuilder.setNarrativeService(narrativeService);\n gameBuilder.setPlayerObserver(new SimplePlayerObserver());\n gameBuilder.setProjectObjectModel(pom);\n final var game = gameBuilder.build();\n //game.startNewGame();\n final var saveFile = GameSave.builder()\n .nodeIdentifier(NodeIdentifier.builder()\n .chapterId(\"ch_01\")\n .nodeId(\"1_2_2\")\n .build())\n .savedGameState(SavedGameState.builder()\n .chapterStateSnapshot(StateSnapshot.builder()\n .booleanPropertyMap(Map.of())\n .integerPropertyMap(Map.of())\n .stringPropertyMap(Map.of())\n .build())\n .gameStateSnapshot(StateSnapshot.builder()\n .booleanPropertyMap(Map.of())\n .integerPropertyMap(Map.of())\n .stringPropertyMap(Map.of())\n .build())\n .build())\n .build();\n final var saveGame = game.loadGame(saveFile)\n .tick()\n .tick()\n .saveGame();\n System.out.println(\"checkpoint\");\n }",
"public void saveGame(String fileName){\n try {\n File file1 = new File(fileName);\n FileOutputStream fileOutputStream = new FileOutputStream(file1);\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(fileOutputStream);\n objectOutputStream.writeObject(this);\n }catch (Exception e){\n System.err.println(\"Error when saving file\");\n }\n }",
"public void exportPuzzle (Puzzle puzzle) {\n if (puzzle != null && puzzle.getNumWords () > 0) {\n if (chooser.showSaveDialog (null) == JFileChooser.APPROVE_OPTION) {\n File newFile = chooser.getSelectedFile ();\n try {\n FileWriter writer = new FileWriter (newFile + \" puzzle.html\");\n writer.write (puzzle.export (true));\n writer.close ();\n writer = new FileWriter (newFile + \" solution.html\");\n writer.write (puzzle.export (false));\n writer.close ();\n } catch (IOException e) {\n JOptionPane.showMessageDialog (null, \"File IO Exception\\n\" + e.getLocalizedMessage (), \"Error!\", JOptionPane.ERROR_MESSAGE);\n }\n }\n } else {\n JOptionPane.showMessageDialog (null, \"Please Generate a Puzzle before Exporting\", \"Error!\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"private final void exportAll() {\n\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\tint returnVal = chooser.showSaveDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = chooser.getSelectedFile();\n\t\t\tserializeToFile(file);\n\t }\t\n\t}",
"public void save() {\n\t\ttry {\n\t\t\t// use buffering\n\t\t\tOutputStream file = new FileOutputStream(\"games.txt\");\n\t\t\tOutputStream buffer = new BufferedOutputStream(file);\n\t\t\tObjectOutput output = new ObjectOutputStream(buffer);\n\t\t\ttry {\n\t\t\t\tif (gameOver) {\n\t\t\t\t\t//notify no need to save completed game\n\t\t\t\t} else {\n\t\t\t\t\tgames.add(this);\n\t\t\t\t\toutput.writeObject(games);\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\toutput.close();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Save not successful\");\n\t\t}\n\t}",
"private void loadGame(String fileName){\n\n }",
"void saveGame() throws IOException, Throwable {\n Save save = new Save(\"01\");\n save.addToSaveGame(objectsToSave());\n save.saveGame();\n }",
"public void writeToGameFile(String fileName) {\n\n try {\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n Element game = doc.createElement(\"Game\");\n rootElement.appendChild(game);\n\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(\"001\"));\n game.appendChild(id);\n Element stories = doc.createElement(\"Stories\");\n game.appendChild(stories);\n\n for (int i = 1; i < 10; i++) {\n Element cap1 = doc.createElement(\"story\");\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(\"Mwheels\"));\n Element text = doc.createElement(\"Text\");\n text.appendChild(doc.createTextNode(\"STEP \" + i + \":\\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Donec eu.\"));\n cap1.appendChild(image);\n cap1.appendChild(text);\n stories.appendChild(cap1);\n }\n\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.GAME_FILE_DIR + fileName + \".xml\");\n StreamResult result = new StreamResult(file);\n transformer.transform(source, result);\n\n System.out.println(\"File saved!\");\n\n } catch (ParserConfigurationException | TransformerException pce) {\n pce.printStackTrace();\n }\n\n }",
"private void saveScore() {\n try {\n PrintWriter writer = new PrintWriter(new FileOutputStream(new File(Const.SCORE_FILE), true));\n writer.println(this.player.getName() + \":\" + this.player.getGold() + \":\" + this.player.getStrength());\n writer.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"public static void createSaveFile( )\n {\n try\n {\n new File( \"data\" ).mkdirs( );\n PrintWriter writer = new PrintWriter( \"data/\" + Game.instance.getCurrentSaveFile( ).SAVEFILENAME + \".txt\", \"UTF-8\" );\n writer.println( \"dkeys: \" + Game.START_DIAMOND_KEY_COUNT );\n writer.close( );\n }\n catch ( IOException e )\n {\n e.printStackTrace( );\n System.exit( 1 );\n }\n }",
"private void loadGameFiles(){\n\t}",
"public static void main(String[] args) { // generate new json files\n \t// All directories to pull from\n \t\n \tArrayList<List<List<Integer>>> levels = new ArrayList<List<List<Integer>>>();\n \tfor(int i = 1;i<=10;i++) {\n \t\tif (i != 9) {\n \t\t\tmaxX=0;\n \t\t\tmaxY=0;\n \t\t\tvisited.clear();\n \t\t\tenemyNumber=-1;\n \t\t\tenemyString = null;\n \t\t\tbossString = null;\n \t\t\tList<List<Integer>> level = convertMMLVtoInt(MegaManVGLCUtil.MEGAMAN_MMLV_PATH+\"MegaManLevel\"+i+\".mmlv\");\n \t\t\tlevels.add(level);\n \t\t\t//MegaManVGLCUtil.printLevel(level);\n \t\t}\n\t\t}\n \tSystem.out.println(\"Read \"+levels.size()+\" levels.\");\n\n \t\n \toutputOneGAN(levels, \"NoWater9\"); \n \toutputSevenGAN(levels, \"NoWater9\");\n \t//File testFile = new File(\"data\\\\VGLC\\\\MegaMan\\\\MegaManOneGANNoWater9.json\");\n \t//showJsonContents(testFile);\n }",
"public static void saveGameConfiguration() {\n exportJsonFile(new File(FileUtils.getRootFile(), Constant.CONFIG_FILE_NAME));\n }",
"public static void TournamentTest() {\r\n String path = \"C:\\\\Users\\\\Kitty\\\\git\\\\botbattle\\\\cmpsc488\\\\botbattleapp\\\\GameManager2\\\\bin\";\r\n CompetitorData c = new CompetitorData();\r\n c.addUser(\"rvh5220\", path);\r\n c.addUser(\"rvh5221\", path);\r\n c.addUser(\"rvh5222\", path);\r\n c.addUser(\"rvh5223\", path);\r\n\r\n Tournament t = new Tournament(null, null, c);\r\n try {\r\n t.runTournament();\r\n } catch (IOException e) { // TODO this should probablly be caught lower down\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\r\n\tpublic void SavePlayerData() {\r\n\r\n Player player = (Player)Player.getPlayerInstance();\r\n\t\t\r\n\t\tString file = \"PlayerInfo.txt\";\r\n\t\tString playerlifepoint = \"\"+player.getLifePoints();\r\n\t\tString playerArmore = player.getArmorDescription();\r\n\t\ttry{\r\n\t\t\tPrintWriter print = new PrintWriter(file);\r\n\t\t\tprint.println(playerlifepoint);\r\n\t\t\tprint.println(playerArmore);\r\n\t\t\t\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public static void SaveAchievements()\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(achievements_file_name, \"UTF-8\");\n int actualLine = 0, nb_achievements_done = 0;\n while(actualLine<Achievement.NB_ACHIEVEMENTS)\n {\n boolean currentValue = Achievement.achievements_done[actualLine];\n if(currentValue)\n nb_achievements_done++;\n writer.print(Utilities.BoolToInt(currentValue) + \"\\r\\n\");\n actualLine++;\n }\n writer.close();\n Achievement.nb_achievements_done = nb_achievements_done;\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + achievements_file_name + \".\"); }\n }",
"void onGameSaved(File file);",
"void saveToFile() {\n\t\ttry {\n\t\t\tFile directory = GameApplication.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS);\n\t\t\tFile target = new File(directory, FILE_NAME);\n\t\t\tif (!target.exists()) {\n\t\t\t\ttarget.createNewFile();\n\t\t\t}\n\t\t\tJsonWriter writer = new JsonWriter(new FileWriter(target));\n\t\t\twriter.setIndent(\" \");\n\t\t\twriter.beginArray();\n\t\t\tfor (Scoreboard scoreboard : scoreboards.values()) {\n\t\t\t\twriteScoreboard(writer, scoreboard);\n\t\t\t}\n\t\t\twriter.endArray();\n\t\t\twriter.flush();\n\t\t\twriter.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static void saveBoxScore(){\n Engine engine = Utility.getEngine();\n ArrayList<Player> homePlayers = engine.getHomePlayers();\n ArrayList<Player> awayPlayers = engine.getAwayPlayers();\n ArrayList<String> output = new ArrayList<String>();\n output.add(\"Home team\");\n for(Player player : homePlayers){\n Player upToDatePlayer = Utility.getPlayer(player);\n output.add(upToDatePlayer.toString());\n }\n\n output.add(\"Away team\");\n for(Player player : awayPlayers){\n Player upToDatePlayer = Utility.getPlayer(player);\n output.add(upToDatePlayer.toString());\n }\n\n try {\n Path path = Paths.get(Constants.OUTPUT_FILE_PATH);\n Files.write(path,output,StandardCharsets.UTF_8);\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.toString());\n }\n\n System.exit(0);\n }",
"private void export() {\n print(\"Outputting Instructions to file ... \");\n\n // Generate instructions right now\n List<Instruction> instructions = new ArrayList<Instruction>();\n convertToInstructions(instructions, shape);\n\n // Verify Instructions\n if (instructions == null || instructions.size() == 0) {\n println(\"failed\\nNo instructions!\");\n return;\n }\n\n // Prepare the output file\n output = createWriter(\"output/instructions.txt\");\n \n // TODO: Write configuration information to the file\n \n\n // Write all the Instructions to the file\n for (int i = 0; i < instructions.size(); i++) {\n Instruction instruction = instructions.get(i);\n output.println(instruction.toString());\n }\n\n // Finish the file\n output.flush();\n output.close();\n\n println(\"done\");\n }",
"static void saveMeta() {\n File dir = new File(\"./plugins/SkyblockShop/\");\n if (!dir.exists()) {if (!dir.mkdir()) { System.out.println(\"Failed to create SkyblockShop directory!\");}}\n\n //save 'money' to .meta file\n try {\n PrintWriter writer = new PrintWriter(\"./plugins/SkyblockShop/.meta\", \"UTF-8\");\n writer.println(Main.money);\n writer.close();\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"Something went wrong while creating the .meta file!\");\n }\n }",
"private void outputFile() {\n // Define output file name\n Scanner sc = new Scanner(System.in);\n System.out.println(\"What do you want to call this file?\");\n String name = sc.nextLine();\n\n // Output to file\n Path outputFile = Paths.get(\"submissions/\" + name + \".java\");\n try {\n Files.write(outputFile, imports);\n if (imports.size() > 0)\n Files.write(outputFile, Collections.singletonList(\"\"), StandardOpenOption.APPEND);\n Files.write(outputFile, lines, StandardOpenOption.APPEND);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void toFile(String filename) {\n\t\tString serialized = Serializer.serializeLevelPack(this);\n\t\tSerializer.writeToFile(filename, serialized.getBytes());\n\t}",
"public static void main(String[] args) throws Exception {\n\t\texport();\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 }",
"public static void main(String[] args) {\n\t\tIGamePlayer player = new GamePlayer(\"ÀîåÐÒ£\");\n\t\tGamePlayProxy proxy = new GamePlayProxy(player);\n\t\tproxy.killBoss();\n\t\tproxy.upGrade();\n\t}",
"public static void main(String args[]) {\n\n if (args.length < 1) {\n System.err.println(USAGE_MSG);\n System.exit(1);\n }\n\n String command;\n Scanner commandLine = new Scanner(System.in);\n\n try {\n state = GameState.instance();\n if (args[0].endsWith(\".zork\")||args[0].endsWith(\".bork\")) {\n state.initialize(new Dungeon(args[0]));\n System.out.println(\"\\n\\n\\n\\n\\nWelcome to \" + \n state.getDungeon().getName() + \"!\");\n } else if (args[0].endsWith(\".sav\")) {\n state.restore(args[0]);\n System.out.println(\"\\nWelcome back to \" + \n state.getDungeon().getName() + \"!\");\n } else {\n System.err.println(USAGE_MSG);\n System.exit(2);\n }\n\n System.out.print(\"\\n\" + \n state.getAdventurersCurrentRoom().describe() + \"\\n\");\n\n command = promptUser(commandLine);\n\n while (!command.equals(\"q\")) {\n\t\tif(command.equals(\"EVENT\")){\n\t\t System.out.println(\"Welcome, hacker. These hacks may be gameBreaking and or dangerous to your health if typed wrong, be warned. Enter the Event name CAPS matters.\");\n\t\t command = promptUser(commandLine);\n\t\t System.out.print(EventFactory.instance().parse(command).execute());\n\t\t \n\t\t} else {\n\t\t//System.out.print(\"\\n\\n\\n\"); \t\t//Spacer that makes it look cleaner\n\t\tSystem.out.print(\n CommandFactory.instance().parse(command).execute());\n\n command = promptUser(commandLine);\n\t\t}\n\t }\n\n System.out.println(\"Bye!\");\n\n } catch(Exception e) { \n e.printStackTrace(); \n }\n }",
"public void loadGame() {\n game.loadGame();\n }",
"public static void save() {\n Game.save(UI.askNgetString(\"Filename for this save file?\")+\".xml\");\n }",
"public void executeTurn(Game game){\n \tif (turn == 0) {\n \t\t\n \t\tSystem.out.println(game.getCurrentFloor().getFloorDesc());\n\t \tHELPER.insPressEnter();\n\t \tSystem.out.println(\"\\033[2J\");\n\t \tturn++;\n\t \n \t} \n\n // The room that the user is in.\n Room room = game.getCurrentRoom();\n Floor floor = game.getCurrentFloor();\n \n \n// Map.setVisibleRoom(game); //make the room that the is player in visible on the map\n \n if (!help && !map && !list) {\n \tSystem.out.println(Colors.GREEN + floor.getHint() + Colors.RESET);\n \tSystem.out.println(Colors.YELLOW + \"\\n ROOM #\" + room.getDescription()+\" FLOOR: #\" + floor.getFloorNum() + \"\\n\" + Colors.RESET);\n \tAsciiArt.makeArt(game);\n }\n else if (help) { //print what commands are available to the player\n \tSystem.out.println(\"\\n You are in room \" + room.getDescription());\n AsciiArt.getKeys();\n help = false; //set help back to false after executing once\n }\n else if (list) { //print what items the player has collected\n \tInventory.list();\n \tlist = false;\n }\n else if (map) { //print out the map of the rooms that the player has already been to\n \tMap.printMap();\n \tmap = false;\n }\n if (room.getItemInRoom() != null) { //if there is an item in the room\n \tif (room.getItemInRoom().getType().compareTo(\"Enemy\") != 0) { //if the item is NOT an enemy, say what it is\n \t\tSystem.out.println(Colors.CYAN + \"\\n << The \" + room.getItemInRoom().getType() + \" in this room is \" + room.getItemInRoom().getName() + \" >>\\n\" + Colors.RESET);\n \t}\n \telse { //if there IS an enemy in the room, attack the player\n \tif (((Enemy) room.getItemInRoom()).attack()) {\n \t\troom.setItemInRoom(null);\n \t}\n \telse {\n \t\tgame.setCurrentRoom(game.getCurrentFloor().getRooms()[4]);\n \t\troom = game.getCurrentRoom();\n \t\tSystem.out.println(Colors.RESET + \"Now you are back in room \" + room.getDescription() + \"\\n\" + Colors.CYAN);\n \t\tif (room.getItemInRoom() != null) {\n \t \t\tSystem.out.println(Colors.CYAN + \"\\n << The \" + room.getItemInRoom().getType() + \" in this room is \" + room.getItemInRoom().getName() + \" >>\\n\" + Colors.RESET);\n \t \t}\n \t}\n }\n }\n else System.out.println(Colors.YELLOW + \"\\n << There is nothing in this room >>\\n\" + Colors.RESET); //if there are no items in the room\n\n System.out.print(Colors.YELLOW + \" Enter command--> \" + Colors.RESET);\n\n String command = keyboard.nextLine().toLowerCase(); // user's command\n System.out.println(\"\\033[2J\");\n \n\n Room nextRoom = null; // the room we're moving to\n HashMap<String, Room> helper = room.getDirection();\n \n //Get access to list of all commands from CommandSetter class\n CommandSetter listOfCommands = new CommandSetter();\n HashMap<String,String> com = listOfCommands.getList();\n \n \n if (com.containsKey(command)){ \n \t\n \t\n\t \tswitch (com.get(command)) { //based on the command the player has typed, do that\n\t \t\t\n\t\t case \"north\": \n\t\t \t\tnextRoom = helper.get(\"north\");\n\t\t \t\tbreak;\n\t\t \n\t\t case \"south\": \n\t\t \t\tnextRoom = helper.get(\"south\");\n\t\t \t\tbreak;\n\t\t \n\t\t case \"west\": \n\t\t \tnextRoom = helper.get(\"west\");\n\t\t \t\tbreak;\n\t\t \n\t\t case \"east\": \n\t\t \t\tnextRoom = helper.get(\"east\");\n\t\t \t\tbreak;\n\t\t \n\t\t case \"quit\": \n\t\t \t\twinIndicator = false;\n\t\t \t\tnextRoom = room;\n\t\t \t\tgame.finishGame();\n\t\t \t\tbreak;\n\t\t \n\t\t case \"help\":\n\t\t \tnextRoom = new Room(\"Dont Move\");\n\t\t \thelp = true;\n\t\t break;\n\t\t \n\t\t case \"collect\":\n\t\t \tnextRoom = new Room(\"Dont Move\");\n\t\t \troom.pickUpItem();\n\t\t \tbreak;\n\t\t \t\n\t\t case \"list\":\n\t\t \tlist = true;\n\t\t \tnextRoom = new Room(\"Dont Move\");\n\t\t \tbreak;\n\t\t \t\n\t\t case \"map\":\n\t\t \tmap = true;\n\t\t \tnextRoom = new Room(\"Dont Move\");\n\t\t \tbreak;\n\t\t \t\n\t\t case \"open\":\n\t\t \troom.openChest();\n\t\t \n\t\t default:\n\t\t \tnextRoom = new Room(\"Dont Move\");\n\t \t}\n \n }else { //if the player types a command that is not available\n \tSystem.out.println(Colors.CYAN + \"\\n << I do not know how to do this command:\" + command + \" >>\\n\" + Colors.RESET);\n \tnextRoom = new Room(\"Dont Move\");\n }\n if (nextRoom == null) { //if there is no room in the direction they are trying to move\n System.out.println(Colors.CYAN + \"\\n << Oof! I ran into a wall. I cannot move in that direction. >>\\n\" + Colors.RESET);\n \t}\n else if (nextRoom.getDescription().compareTo(\"Dont Move\") != 0) {\n game.setCurrentRoom(nextRoom);\n }\n \n System.out.print(Colors.RESET);\n \n \n }",
"public void endGame(){\n\t\tString gameSummary = thisGame.getGameSummary(humanType);\n\t\tSystem.out.println(gameSummary);\n\t}",
"public void playGame() {\n\t\tint generations = 1;\n\t\treadFromFile();\n\t\twhile (generations <= numGens) {\n\t\t\tgetNeighbors();\n\t\t\tsetNextGeneration();\n\t\t\tgenerations += 1;\n\t\t}\n\t\toutputToFile();\n\t}",
"public void tempSaveToFile() {\n try {\n ObjectOutputStream outputStream = new ObjectOutputStream(\n this.openFileOutput(MenuActivity2048.TEMP_SAVE_FILENAME, MODE_PRIVATE));\n outputStream.writeObject(boardManager);\n outputStream.close();\n } catch (IOException e) {\n Log.e(\"Exception\", \"File write failed: \" + e.toString());\n }\n }",
"public GameLevel LoadGame() throws IOException {\n FileReader fr = null;\n BufferedReader reader = null;\n\n try {\n System.out.println(\"Reading \" + fileName + \" data/saves.txt\");\n\n fr = new FileReader(fileName);\n reader = new BufferedReader(fr);\n\n String line = reader.readLine();\n int levelNumber = Integer.parseInt(line);\n\n //--------------------------------------------------------------------------------------------\n\n if (levelNumber == 1){\n gameLevel = new Level1();\n } else if(levelNumber == 2){\n gameLevel = new Level2();\n JFrame debugView = new DebugViewer(gameLevel, 700, 700);\n } else {\n gameLevel = new Level3();\n }\n\n //------------------------------------------------------------------------------------------\n\n\n while ((line = reader.readLine()) != null){\n String[] tokens = line.split(\",\");\n String className = tokens[0];\n float x = Float.parseFloat(tokens[1]);\n float y = Float.parseFloat(tokens[2]);\n Vec2 pos = new Vec2(x, y);\n Body platform = null;\n\n if (className.equals(\"PlayableCharacter\")){\n PlayableCharacter playableCharacter = new PlayableCharacter(gameLevel, PlayableCharacter.getItemsCollected(),PlayableCharacter.isSpecialGravity(),game);\n playableCharacter.setPosition(pos);\n gameLevel.setPlayer(playableCharacter);\n\n }\n\n if (className.equals(\"LogPlatform\")){\n Body body = new LogPlatform(gameLevel, platform);\n body.setPosition(pos);\n }\n\n if (className.equals(\"Coin\")){\n Body body = new Coin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new Pickup(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"ReducedGravityCoin\")){\n Body body = new ReducedGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupRGC(gameLevel.getPlayer(), game)\n\n );\n }\n\n if (className.equals(\"AntiGravityCoin\")){\n Body body = new AntiGravityCoin(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new PickupAGC(gameLevel.getPlayer(), game) );\n }\n\n if (className.equals(\"Rock\")){\n Body body = new Rock(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new FallCollisionListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Pellet\")){\n Body body = new Pellet(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(\n new AddLifeCollisionListener(gameLevel.getPlayer(), game));\n }\n\n if (className.equals(\"Branch\")){\n Body body = new Branch(gameLevel);\n body.setPosition(pos);\n body.addCollisionListener(new BranchListener(gameLevel.getPlayableCharacter(), game));\n }\n\n if (className.equals(\"Portal\")){\n Body portal = new Portal(gameLevel);\n portal.setPosition(pos);\n portal.addCollisionListener(new DoorListener(game));\n }\n\n if (className.equals(\"DeathPlatform\")){\n float w = Float.parseFloat(tokens[3]);\n float h = Float.parseFloat(tokens[4]);\n float deg = Float.parseFloat(tokens[5]);\n\n Body body = new DeathPlatform(gameLevel, w, h);\n body.setPosition(pos);\n body.addCollisionListener(new FallCollisionListener(gameLevel.getPlayer(), game));\n body.setFillColor(Color.black);\n body.setAngleDegrees(deg);\n\n }\n\n }\n\n return gameLevel;\n } finally {\n if (reader != null) {\n reader.close();\n }\n if (fr != null) {\n fr.close();\n }\n }\n }",
"public static void saveGame(GameWorld world, String fileName) throws PersistenceException {\n\n try {\n\n // setup: create a save file and a JAXB Marshaller for the class\n File saveFile = new File(fileName);\n JAXBContext gameContext = JAXBContext.newInstance(GameWorld.class);\n Marshaller gameMarshaller = gameContext.createMarshaller();\n gameMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true);\n\n // convert the java object to XML\n gameMarshaller.marshal(world, saveFile);\n\n } catch (JAXBException e) {\n throw new PersistenceException(\"Failed to save the GameWorld file. \\n\", e);\n }\n }",
"public static void main(String[] args) throws IOException {\n GameConfig gameconfig=new GameConfig(\"resorces/GameConfig.properties\");\n System.out.println(gameconfig.getWidth());\n System.out.println(gameconfig.getHeight());\n System.out.println(gameconfig.getLevel_number());\n new Game();\n }",
"public void save(String filePath){\r\n Scanner in = new Scanner(System.in);\r\n File saveFile = new File(filePath);\r\n if (saveFile.exists()){\r\n System.out.println(\"Do you really, really want to overwrite your previous game?\");\r\n System.out.println(\"Yes: '1', No: '0'.\");\r\n int input = in.nextInt();\r\n if (input!=1){\r\n return;\r\n }\r\n }\r\n File saveDir = new File(this.savePath);\r\n if (!saveDir.exists()){\r\n saveDir.mkdir();\r\n }\r\n FileOutputStream fos = null;\r\n ObjectOutputStream out = null;\r\n try {\r\n fos = new FileOutputStream(saveFile);\r\n out = new ObjectOutputStream(fos);\r\n out.writeObject(this.serialVersionUID);\r\n out.writeObject(p);\r\n out.writeObject(map);\r\n out.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"Make sure you don't use spaces in your folder names.\");\r\n ex.printStackTrace();\r\n }\r\n }",
"public void exportDictionary() \r\n\t{\t\r\n\t\tInputStream is = this.getClass().getResourceAsStream(\"/dictionary.sqlite\");\t\t\r\n\t\tOutputStream os = null;\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tos = new FileOutputStream(fDictionaryFile());\r\n\t\t\tbyte[] buffer = new byte[1024];\r\n\t\t\tint length;\r\n\t\t\t\r\n\t\t\t//copy the file content in bytes \r\n\t\t\twhile ((length = is.read(buffer)) > 0) \r\n\t\t\t{\r\n\t\t\t\tos.write(buffer, 0, length);\r\n\t\t\t}\r\n\r\n\t\t\tis.close();\r\n\t\t\tos.close();\r\n\r\n\t\t\tSystem.out.println(\"/* Dictionary export successful! */\");\r\n\t\t} \r\n\t\tcatch(IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void exportFiles() \r\n\t{\r\n\t\tif(!fDictionaryFile().exists())\r\n\t\t{\r\n\t\t\texportDictionary();\r\n\t\t}\r\n\t}",
"private void reportToFile() {\n try {\n fileWriter = new FileWriter(\"GameStats.txt\");\n fileWriter.write(reportContent);\n fileWriter.close();\n }\n catch (IOException ioe) {\n System.err.println(\"IO Exception thrown while trying to write to file GameStats.txt\");\n }\n }",
"public Save(Player player, String worldname) {\n\t\tthis(player.game, \"/saves/\" + worldname + \"/\");\r\n\t\t\r\n\t\twriteGame(\"Game\");\n\t\t//writePrefs(\"KeyPrefs\");\r\n\t\twriteWorld(\"Level\");\r\n\t\twritePlayer(\"Player\", player);\r\n\t\twriteInventory(\"Inventory\", player);\r\n\t\twriteEntities(\"Entities\");\r\n\t\t\r\n\t\tGame.notifications.add(\"World Saved!\");\r\n\t\tplayer.game.asTick = 0;\r\n\t\tplayer.game.saving = false;\r\n\t}",
"public void SaveCurrentGame(){\n if(gameStarted == false){ return; }\n recordGame.write(board, timeRuunableThread, level);\n timeRuunableThread.setDrawNumber(false);\n canLoadGame = true;\n // update infoCanvas\n CleanInfoCanvas();\n }",
"public static void main(String[] args) throws IOException {\r\n //creating a new history list\r\n List<History> histories = History.load(\"previousGames\"); //changed History list to String\r\n //creating two new players\r\n Player human = new HumanPlayer();\r\n Player computer = new AIPlayer(histories);\r\n \r\n History history = new History();\r\n //creating a new game... can change if it is human or ai\r\n Game game = new Game(human, computer);\r\n //printing out the first board\r\n game.board.boardPrint();\r\n //setting the game to unfinished to start\r\n WinnerState gameFinished = WinnerState.UNFINISHED;\r\n \r\n while(gameFinished == WinnerState.UNFINISHED){\r\n gameFinished = game.step();\r\n history.addBoardToList(game.board);\r\n }\r\n \r\n if(gameFinished != WinnerState.UNFINISHED){\r\n history.addToFile(game);\r\n }\r\n }",
"public void loadGame(File fileLocation, boolean replay);",
"public void grabaArchivo() throws IOException {\n\n System.out.println(\"Grabando archivo\");\n PrintWriter fileOut = new PrintWriter(new FileWriter(\"src/images/save.txt\"));\n for (int i = 0; i < vec.size(); i++) {\n\n Object x = vec.get(i);\n\n if (x instanceof Player) {\n x = (Player) vec.get(i);\n fileOut.println(x.toString());\n } else if (x instanceof Shot) {\n x = (Shot) vec.get(i);\n fileOut.println(x.toString());\n } else if (x instanceof Alien){\n x = (Alien) vec.get(i);\n fileOut.println(x.toString());\n } else {\n fileOut.println((String) x);\n }\n }\n\n vec.clear();\n fileOut.close();\n }",
"static void saveAllPlayersToFiles(){\n \tfor( String playername : GoreaProtect.playersData.getKeys(false))\n \t{\n \t\tFile playerfile = new File(GoreaProtect.datafolder + File.separator + \"Protections\");\n \t\tFile fileplayer= new File(playerfile, playername + \".yml\");\n\n \t\tConfigurationSection playerdata = GoreaProtect.playersData.getConfigurationSection(playername);\n\n \t\tYamlConfiguration PlayersDatayml = new YamlConfiguration();\n\n \t\tfor (String aaa:playerdata.getKeys(false))\n \t\tPlayersDatayml.set(aaa, playerdata.get(aaa));\n \t\t\n \t\t\n \t\ttry {\n\t\t\t\tPlayersDatayml.save(fileplayer);\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} \n }",
"public void makeCustomChallengesFile() {\n customChallengeData = new File(wnwData, \"custom_challenges.dat\");\n try {\n customChallengeData.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n makeSessionFile();\n }",
"public void endGame(){\r\n\t\tupdateRecord();\r\n\t\tgameStats.writeToFile();\r\n\t\tstatisticsList = gameStats.makeArrayList();\r\n\t\tgameStats.writeListToFile(statisticsList);\r\n\t}",
"public void WiriteToBinary() throws IOException\n\t {\n\t\t\t\tDataOutputStream Output = new DataOutputStream (new FileOutputStream(\"GameProgress.dat\", true));\n\t\t\t\t\n\t\t\t\t//*************************************information to send using smtp\n\t\t\t\tOutput.write(pl.xCoord);\n\t\t\t\tOutput.write(pl.yCoord);\n\t\t\t\tOutput.write(pl.NumRockets);\t\n\t\t\t\tOutput.write(pl.NumBullets); \n\t\t\t\tOutput.write(pl.Health); \n\t\t\t\tOutput.write(DestroyedEnemies); \n\t\t\t\tOutput.write(RunAwayEnemies); \n\t\t\t\t\n\t\t\t\tfor (int i = 0 ; i < EnemyList.size(); i++ )\n\t\t\t\t{\n\t\t\t\t\tOutput.write(EnemyList.get(i).xCoord); \n\t\t\t\t\tOutput.write(EnemyList.get(i).xCoord); \n\t\t\t\t\tOutput.write(EnemyList.get(i).Health); \n\t\t\t\t}\n\t\t\t\t\n\t\t\tOutput.close(); \n\t }",
"private void loadGame() {\r\n\t\tJFileChooser fileChooser = new JFileChooser();\r\n\t\tArrayList<String> data = new ArrayList<String>();\r\n\t\tFile file = null;\r\n\t\tif (fileChooser.showOpenDialog(gameView) == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tfile = fileChooser.getSelectedFile();\r\n\t\t}\r\n\r\n\t\tif (file != null) {\r\n\t\t\tmyFileReader fileReader = new myFileReader(file);\r\n\t\t\ttry {\r\n\t\t\t\tdata = fileReader.getFileContents();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t\t// TODO: allow writing of whose turn it is!\r\n\t\t\tParser parse = new Parser();\r\n\t\t\tint tempBoard[][] = parse.parseGameBoard(data);\r\n\t\t\tgameBoard = new GameBoardModel(tempBoard, parse.isBlackTurn(), parse.getBlackScore(), parse.getRedScore());\r\n\t\t}\r\n\t}",
"private void exitGame() {\n System.exit(0);\n }",
"protected void exportScriptToFile() {\n\t\ttry {\n\t\t\tfinal MigrationConfiguration cfg = getMigrationWizard()\n\t\t\t\t\t.getMigrationConfig();\n\t\t\tprepare4SaveScript();\n\t\t\tExportScriptDialog.exportScript(cfg, isSaveSchema());\n\t\t} catch (Exception e) {\n\t\t\t// MessageDialog.openError(PlatformUI.getWorkbench().getDisplay().getActiveShell(),\n\t\t\t// Messages.msgWarning, Messages.setOptionPageErrMsg);\n\t\t}\n\t}",
"public static void main(String[] args) {\n Game game = new Game(\"Programming 2 Project\",600,600);\n game.start();\n \n }",
"public void exportMap(){\n\t\tString toSave = \"\";\r\n\t\tfor(int i=0;i<map.getH();i++){\r\n\t\t\tfor(int j=0;j<map.getL();i++){\r\n\t\t\t\tif(j == map.getL()-2)\r\n\t\t\t\t\ttoSave += map.getCase(i, j).toString();\r\n\t\t\t\telse\r\n\t\t\t\t\ttoSave += map.getCase(i, j).toString()+\"|\";\r\n\t\t\t}\r\n\t\t\ttoSave += \"\\n\";\r\n\t\t}\r\n\t\t//ecriture d'un fichier\r\n\t}",
"public static void printGame(){\n System.out.println(\"Spielrunde \" + GameController.AKTUELLE_RUNDE);\n System.out.println(GameController.AKTUELLER_SPIELER +\" ist an der Reihe.\");\n System.out.println(\"Er attackiert \" +\n GameController.AKTUELLER_VERTEIDIGER + \" und verursacht \"\n + GameController.SCHADEN +\" Schaden. \");\n System.out.println();\n }",
"private void renderScore() {\r\n FileDialog fd = new FileDialog(this, \"Save as an audio file...\", FileDialog.SAVE);\r\n fd.setFile(\"FileName.au\");\r\n fd.show();\r\n //write a MIDI file to disk\r\n if ( fd.getFile() != null) {\r\n this.audioFileName = fd.getDirectory() + fd.getFile();\r\n Write.au(score, audioFileName, insts);\r\n \r\n }\r\n audioViewBtn.setEnabled(true);\r\n audioPlayBtn.setEnabled(true);\r\n }",
"byte[] writeGameState(TurnBasedMatch match) {\n\n\t\tboolean isCreator = GPGHelper.isCreator(gameHelper.getApiClient(),\n\t\t\t\tmatch);\n\t\tint[] ids = GPGHelper.getIds(gameHelper.getApiClient(), match);\n\n\t\t// action type, played card, effects count, effects, action and played\n\t\t// card, creator hand, other\n\t\t// hand, creator stats, other stats\n\t\tint size = 2 + 1 + 1 + effects.size() + playedCard.length + 8 + 8 + 3\n\t\t\t\t+ 3;\n\n\t\t// The size is just an estimate, the buffer will expand if needed\n\t\tByteArrayOutputStream stream = new ByteArrayOutputStream(size);\n\n\t\tDataOutputStream w = new DataOutputStream(stream);\n\n\t\t// Write what action the player is doing on which card.\n\t\ttry {\n\n\t\t\t// 1. Write who's action, action type and card 2bytes\n\t\t\tw.writeInt(ids[0]);\n\n\t\t\tw.write(playedCard[0]);\n\t\t\tw.write(playedCard[1]);\n\n\t\t\t// 2. Write number of effects 1 int\n\t\t\tw.writeInt(effects.size());\n\t\t\tfor (int i = 0; i < effects.size(); i++) {\n\t\t\t\t// 3. Write effects 3 int\n\t\t\t\tw.writeInt(effects.get(i));\n\t\t\t}\n\n\t\t\tCard[] creator, other;\n\t\t\tPlayer pCreator, pOther;\n\n\t\t\t// We always write the creator stats/cards first so check\n\t\t\t// who is the creator\n\t\t\tif (isCreator) {\n\t\t\t\tcreator = GameActivity.gameMachine.opponent.getHand();\n\t\t\t\tother = GameActivity.gameMachine.player.getHand();\n\t\t\t\tpCreator = GameActivity.gameMachine.opponent;\n\t\t\t\tpOther = GameActivity.gameMachine.player;\n\t\t\t} else {\n\t\t\t\tcreator = GameActivity.gameMachine.player.getHand();\n\t\t\t\tother = GameActivity.gameMachine.opponent.getHand();\n\t\t\t\tpCreator = GameActivity.gameMachine.player;\n\t\t\t\tpOther = GameActivity.gameMachine.opponent;\n\t\t\t}\n\n\t\t\t// 4. write 8 cards, 8 ints\n\t\t\tfor (int i = 0; i < creator.length; i++) {\n\t\t\t\tw.writeInt(creator[i].id);\n\t\t\t}\n\n\t\t\t// 5. write 8 cards, 8 ints\n\t\t\tfor (int i = 0; i < other.length; i++) {\n\t\t\t\tw.writeInt(other[i].id);\n\t\t\t}\n\n\t\t\t// 6. write stats, 6 of em.\n\t\t\tw.writeInt(pCreator.health);\n\t\t\tw.writeInt(pCreator.armor);\n\t\t\tw.writeInt(pCreator.resources);\n\t\t\tw.writeInt(pOther.health);\n\t\t\tw.writeInt(pOther.armor);\n\t\t\tw.writeInt(pOther.resources);\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"test\", \"Error creating bytes for google\");\n\t\t}\n\n\t\teffects.clear();\n\n\t\treturn stream.toByteArray();\n\t}",
"@Override\n public void saveGame() {\n\n }"
] | [
"0.607093",
"0.5973365",
"0.5850033",
"0.5773603",
"0.5710563",
"0.56436133",
"0.5614346",
"0.56131583",
"0.5605861",
"0.5605294",
"0.55022305",
"0.548222",
"0.5478932",
"0.54580873",
"0.54340947",
"0.54333764",
"0.54311186",
"0.54307353",
"0.5366633",
"0.5345743",
"0.53408176",
"0.5324049",
"0.5312316",
"0.5308678",
"0.5300447",
"0.5289955",
"0.5269641",
"0.52574235",
"0.52374625",
"0.52272534",
"0.52191734",
"0.5203426",
"0.52020097",
"0.51996505",
"0.51972157",
"0.5197031",
"0.5196112",
"0.51767504",
"0.51440686",
"0.51410455",
"0.5128143",
"0.5109063",
"0.50821507",
"0.506801",
"0.5063951",
"0.50407743",
"0.5013873",
"0.50109434",
"0.5005599",
"0.49923536",
"0.49702284",
"0.49693188",
"0.49540317",
"0.4953808",
"0.4947631",
"0.49388623",
"0.49384096",
"0.4938384",
"0.49247783",
"0.49160972",
"0.4890562",
"0.4888097",
"0.48744243",
"0.4871128",
"0.486424",
"0.48521078",
"0.48422092",
"0.48384893",
"0.48308015",
"0.4830571",
"0.48272437",
"0.48174626",
"0.48152596",
"0.4802711",
"0.47982162",
"0.47927192",
"0.47911918",
"0.47823542",
"0.4780708",
"0.47738993",
"0.47726738",
"0.47703862",
"0.47665787",
"0.47629398",
"0.47548112",
"0.47524643",
"0.47367918",
"0.47365147",
"0.47258747",
"0.47150725",
"0.47128892",
"0.47054332",
"0.4700631",
"0.46976116",
"0.4697327",
"0.46971262",
"0.46853784",
"0.46829244",
"0.46785632",
"0.46702945"
] | 0.72712207 | 0 |
Create a new level for the game being authored. Saves the state of the current level being authored when the transition occurs. | void createNewLevel(int level); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }",
"@Override\n\tpublic void newGame(String level) {\n\t\tmanager.newGame(level);\n\t}",
"public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}",
"public Level(String levelToEdit)\r\n\t{\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(levelToEdit);//CHANGE GRID COORDINATES WHILE MAKING A NEW LEVEL\r\n\t\tmakeButton = new GameSprite(Player.filename);\r\n\t\tmakeButton.setPosition(0,0);\r\n\t\tplayer = new Player(100, 420);\r\n\t\tbackground = new Background(1, grid);\r\n\t}",
"public String newAddLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tGroupLevel existGroupLevel;\n\t\t\tif(!StringUtil.isNullOrEmpty(levelCode))\n\t\t\t\tlevelCode = levelCode.trim();\n\t\t\tif (levelMuaId == null || levelMuaId == 0 || levelKMId == null || levelKMId == 0) {\n\t\t\t\texistGroupLevel = promotionProgramMgr.getGroupLevelByLevelCode(groupMuaId, null, stt);\n\t\t\t\tif (existGroupLevel != null) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.exist\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t\tNewLevelMapping newMapping = promotionProgramMgr.newAddLevel(groupMuaId, groupKMId, levelCode, stt, quantityUnit, getLogInfoVO());\n\t\t\t\tresult.put(ERROR, false);\n\t\t\t\tresult.put(\"newMapping\", newMapping);\n\t\t\t} else {\n\t\t\t\texistGroupLevel = promotionProgramMgr.getGroupLevelByLevelCode(groupMuaId, null, stt);\n\t\t\t\tif (existGroupLevel != null && !existGroupLevel.getId().equals(levelMuaId)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.exist\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t\tNewLevelMapping newMapping = promotionProgramMgr.newUpdateLevel(groupMuaId, groupKMId, levelMuaId, levelKMId, levelCode, stt, quantityUnit, getLogInfoVO());\n\t\t\t\tif (existGroupLevel != null && existGroupLevel.getProductGroup() != null && existGroupLevel.getProductGroup().getPromotionProgram() != null) {\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(existGroupLevel.getProductGroup().getPromotionProgram(), getLogInfoVO());\n\t\t\t\t}\n\t\t\t\tresult.put(ERROR, false);\n\t\t\t\tresult.put(\"newMapping\", newMapping);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newAddLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"Level makeLevel(String levelName) {\r\n return new Level(levelName);\r\n }",
"public void createLevel(){\n for(LevelController rc: rooms ) {\n rc.loadContent();\n rc.setScreenListener(listener);\n rc.setCanvas(canvas);\n }\n }",
"private void populateLevel() {\r\n\r\n\r\n\t\t// Setup Goal\r\n\t\tJsonValue goalVal = levelAssets.get(\"goal\");\r\n\t\tfloat gWidth = goalTile.getRegionWidth()/scale.x;\r\n\t\tfloat gHeight = goalTile.getRegionHeight()/scale.y;\r\n\t\tfloat gX = goalVal.get(\"pos\").getFloat(0) + gWidth / 2;\r\n\t\tfloat gY = goalVal.get(\"pos\").getFloat(1) + gHeight / 2;\r\n\t\tgoalDoor = new DoorModel(gX, gY, gWidth, gHeight);\r\n\t\tgoalDoor.setBodyType(BodyDef.BodyType.StaticBody);\r\n\t\tgoalDoor.setDensity(constants.get(\"goal\").getFloat(\"density\", 0));\r\n\t\tgoalDoor.setFriction(constants.get(\"goal\").getFloat(\"friction\", 0));\r\n\t\tgoalDoor.setRestitution(constants.get(\"goal\").getFloat(\"restitution\", 0));\r\n\t\tgoalDoor.setSensor(true);\r\n\t\tgoalDoor.setDrawScale(scale);\r\n\t\tgoalDoor.setTexture(goalTile);\r\n\t\tgoalDoor.setName(\"goal\");\r\n\t\taddObject(goalDoor);\r\n\t\taddObjectTo(goalDoor, LevelCreator.allTag);\r\n\r\n\t\t// Get default values\r\n\t\tJsonValue defaults = constants.get(\"defaults\");\r\n\t\tJsonValue objs = levelAssets.get(\"objects\");\r\n\r\n\t\t//group platform constants together for access in following for-loop\r\n\t\tTextureRegion[] xTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\tlightningLightTexture, lightningDarkTexture, lightningAllTexture,\r\n\t\t\trainLightTexture, rainDarkTexture, rainAllTexture,\r\n\t\t\t\tcrumbleLightTexture, crumbleDarkTexture, crumbleAllTexture};\r\n\r\n\t\tTextureRegion[] reducedXTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\t\tlightningLightTextureReduced, lightningDarkTextureReduced, lightningAllTextureReduced,\r\n\t\t\t\trainLightTextureReduced, rainDarkTextureReduced, rainAllTextureReduced,\r\n\t\t\t\tcrumbleLightTextureReduced, crumbleDarkTextureReduced, crumbleAllTextureReduced};\r\n\r\n\r\n\t\t// Setup platforms\r\n\t\tfor(int i=0; i < (objs != null ? objs.size : 0); i++)\r\n\t\t{\r\n\t\t\tJsonValue obj = objs.get(i);\r\n\r\n\t\t\t// Get platform attributes\r\n\t\t\tint platformType = obj.get(\"type\").asInt();\r\n\t\t\tint property = obj.get(\"property\") == null ? 0: obj.get(\"property\").asInt();\r\n\t\t\tJsonValue platformArgs = obj.get(\"positions\");\r\n\t\t\tJsonValue pathsArgs = obj.get(\"paths\");\r\n\r\n\t\t\tfor (int j = 0; j < platformArgs.size; j++) {\r\n\t\t\t\tfloat[] bounds = platformArgs.get(j).asFloatArray();\r\n\t\t\t\tfloat x = bounds[0], y = bounds[1], width = bounds[2], height = bounds[3];\r\n\t\t\t\tTextureRegion newXTexture;\r\n\t\t\t\tTextureRegion crumbleTexture = null;\r\n\t\t\t\tTexture originalTexture = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// temporary - need to refactor asset directory\r\n\t\t\t\t\tJsonValue assetName = obj.get(\"assetName\");\r\n\t\t\t\t\tint assetIndex = assetName.asInt();\r\n\t\t\t\t\tnewXTexture = new TextureRegion(tutorial_signs[assetIndex]);\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tint platIdx = platformType-1+(property - 1)*3;\r\n\t\t\t\t\tint crumbleIdx = platIdx + 3;\r\n\t\t\t\t\tnewXTexture = new TextureRegion(xTexture[platIdx]);\r\n\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t// For crumble animation\r\n\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\tcrumbleTexture = new TextureRegion(xTexture[crumbleIdx]);\r\n//\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the platform size is the same as the spritesheet size\r\n\t\t\t\t\tif (originalTexture.getWidth() > 32 && width%(originalTexture.getWidth()/32) == 0) {\r\n\t\t\t\t\t\tnewXTexture = new TextureRegion(reducedXTexture[platIdx]);\r\n\t\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\t\tcrumbleTexture = new TextureRegion(reducedXTexture[crumbleIdx]);\r\n//\t\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tnewXTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t}\r\n\t\t\t\tPlatformModel platformModel = new PlatformModel(bounds, platformType, property, newXTexture, scale,\r\n\t\t\t\t\t\tdefaults.getFloat( \"density\", 0.0f ), defaults.getFloat( \"friction\", 0.0f ) ,\r\n\t\t\t\t\t\tdefaults.getFloat( \"restitution\", 0.0f ), originalTexture, crumbleTexture);\r\n\t\t\t\tplatformModel.setTag(platformType);\r\n\t\t\t\tplatformModel.setProperty(property);\r\n\t\t\t\taddObject(platformModel);\r\n\t\t\t\taddObjectTo(platformModel, platformType);\r\n\t\t\t\t//TODO: Moving platforms\r\n\r\n\r\n\t\t\t\tif (pathsArgs != null) {\r\n\t\t\t\t\tfloat[] paths = pathsArgs.get(j).asFloatArray();\r\n\r\n\t\t\t\t\t//** Moving platform if > 1 path or different path from starting position\r\n\t\t\t\t\tif (hasValidPath(x, y, paths)) {\r\n\t\t\t\t\t\tplatformModel.setBodyType(BodyDef.BodyType.KinematicBody);\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\r\n\t\t\t\t\t\tPooledList<Vector2> pathList = new PooledList<>();\r\n\t\t\t\t\t\tfor (int k = 0; k < paths.length; k+=2) {\r\n\t\t\t\t\t\t\tpathList.add(new Vector2(paths[k], paths[k+1]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfloat velocity = 3;\r\n\r\n\t\t\t\t\t\tplatformModel.setGravityScale(0);\r\n\t\t\t\t\t\tplatformModel.setPaths(pathList);\r\n\t\t\t\t\t\tplatformModel.setVelocity(velocity);\r\n\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// This world is heavier\r\n\t\tworld.setGravity( new Vector2(0,defaults.getFloat(\"gravity\",0)) );\r\n\r\n\t\t// Set level background index\r\n\t\tint backgroundTextureIndex = levelAssets.get(\"background\").asInt();\r\n\t\tbackgroundLightTexture = backgrounds[backgroundTextureIndex - 1];\r\n\t\tbackgroundDarkTexture = backgrounds[backgroundTextureIndex];\r\n\t\tbackgroundTexture = backgroundLightTexture;\r\n\r\n\t\t// Initialize background animations\r\n\t\tactualBackgroundTexture = backgroundTexture.getTexture();\r\n\t\tbackgroundEntirePixelWidth = actualBackgroundTexture.getWidth();\r\n\t\tbackgroundNumAnimFrames = (int)(backgroundEntirePixelWidth/backgroundFramePixelWidth);\r\n\t\tbackgroundAnimator = new FilmStrip(backgroundTexture,1, backgroundNumAnimFrames, backgroundNumAnimFrames);\r\n\t\tbackgroundAnimator.setFrame(0);\r\n\t\tbackgroundAnimeframe = 0;\r\n\t\tbackgroundOrigin = new Vector2(backgroundAnimator.getRegionWidth()/2.0f, backgroundAnimator.getRegionHeight()/2.0f);\r\n\r\n\t\t// Set level bounds\r\n\t\twidthUpperBound = levelAssets.get(\"dimensions\").getInt(0);\r\n\t\theightUpperBound = levelAssets.get(\"dimensions\").getInt(1);\r\n\r\n\t\t// Setup Somni\r\n\r\n\t\tJsonValue somniVal = levelAssets.get(\"somni\");\r\n\t\tfloat sWidth = somniTexture.getRegionWidth()/scale.x;\r\n\t\tfloat sHeight = somniTexture.getRegionHeight()/scale.y;\r\n\t\tfloat sX = somniVal.get(\"pos\").getFloat(0) + sWidth / 2;\r\n\t\tfloat sY = somniVal.get(\"pos\").getFloat(1) + sHeight / 2;\r\n\t\tsomni = new CharacterModel(constants.get(\"somni\"), sX, sY, sWidth, sHeight, platformController.somnif, CharacterModel.LIGHT);\r\n\t\tsomni.setDrawScale(scale);\r\n\t\tsomni.setTexture(somniIdleTexture);\r\n\t\tsomni.setFilterData(platformController.somnif);\r\n\t\tsomni.setActive(true);\r\n\t\taddObject(somni);\r\n\t\taddObjectTo(somni, LevelCreator.allTag);\r\n\r\n\r\n\t\t// Setup Phobia\r\n\r\n\t\tJsonValue phobiaVal = levelAssets.get(\"phobia\");\r\n\t\tfloat pWidth = phobiaTexture.getRegionWidth()/scale.x;\r\n\t\tfloat pHeight = phobiaTexture.getRegionHeight()/scale.y;\r\n\t\tfloat pX = phobiaVal.get(\"pos\").getFloat(0) + pWidth / 2;\r\n\t\tfloat pY = phobiaVal.get(\"pos\").getFloat(1) + pHeight / 2;\r\n\t\tphobia = new CharacterModel(constants.get(\"phobia\"), pX, pY, pWidth, pHeight, platformController.phobiaf, CharacterModel.DARK);\r\n\t\tphobia.setDrawScale(scale);\r\n\t\tphobia.setTexture(phobiaIdleTexture);\r\n\t\tphobia.setFilterData(platformController.phobiaf);\r\n\t\taddObject(phobia);\r\n\t\taddObjectTo(phobia, LevelCreator.allTag);\r\n\t\tphobia.setActive(true);\r\n\r\n\t\t// Setup Combined\r\n\r\n\t\tfloat cWidth = combinedTexture.getRegionWidth()/scale.x;\r\n\t\tfloat cHeight = combinedTexture.getRegionHeight()/scale.y;\r\n\r\n\t\tcombined = new CharacterModel(constants.get(\"combined\"), 0, 0, cWidth, cHeight, platformController.combinedf, CharacterModel.DARK);\r\n\t\tcombined.setDrawScale(scale);\r\n\t\tcombined.setTexture(somniPhobiaTexture);\r\n\t\t//combined.setTag();\r\n\t\tcombined.setFilterData(platformController.combinedf);\r\n\t\taddObject(combined);\r\n\t\taddObjectTo(combined, LevelCreator.allTag);\r\n\t\tcombined.setActive(true);\r\n\r\n\t\t//Remove combined\r\n\t\tobjects.remove(combined);\r\n\t\tsharedObjects.remove(combined);\r\n\t\tcombined.setActive(false);\r\n\r\n\t\taction = 0;\r\n\r\n\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\tvolume = prefs.contains(\"volume\") ? prefs.getFloat(\"volume\") : defaults.getFloat(\"volume\",\r\n\t\t\t\t1.0f);\r\n//\t\tSystem.out.println(volume);\r\n\r\n\t\tplatformController.applyFilters(objects);\r\n\t}",
"public Level create(Long id,String level){\n \n System.out.println(\"level\"+level);\n Level l=new Level(1,\"Beginner\");\n Level l2=new Level(2,\"Intermediate\");\n Level l3=new Level(3,\"professional\");\n levelRepository.save(l);\n levelRepository.save(l2);\n return levelRepository.save(l3);\n \n }",
"public static void createNewLevel(int sizeX, int sizeY, String displayname, List<Coordinate> blockedCoordinates, double speedModifier, int startLength) {\r\n\t\tLevelFileManager lfm = new LevelFileManager();\r\n\t\tlfm.writeLevelToStorage(sizeX, sizeY, displayname, blockedCoordinates, speedModifier, startLength);\r\n\t}",
"public void level1() {\n\t\tlevel = new Level(1); //Create Level object, passing 1 to constructor for level 1\n\t\tplayer = new Player(100, 100); //Set player y position); //Create player object, place in middle of screen, position will later be determined by level png\n\t}",
"WithCreate withLevel(LockLevel level);",
"public void setLevel(Level level) { this.currentLevel = level; }",
"@Test\r\n\tpublic final void testAddLevel() {\r\n\t\tlevels.add(lostLevel2);\r\n\t\tgameStatisticsLoss.addLevel(lostLevel2);\r\n\t\tassertTrue(gameStatisticsLoss.getLevels().equals(levels));\r\n\t}",
"public LevelInterface generateLevel (GamePlay playerMetrics);",
"public void setLevel(String newLevel) {\n level = newLevel;\n }",
"private void initNewLevel() {\n\t\tmaze = new Maze(\"maze.xml\");\n\t\tPoint position = Cell.positionOfCell(26, 13);\n\t\tposition.x += 7;\n\t\tif (highScore.getScore() == 0)\n\t\t\tpacman = new Pacman(maze, position, maze.cellAt(26, 13),\n\t\t\t\t\tDirection.RIGHT, 3);\n\t\telse\n\t\t\tpacman = new Pacman(maze, position, maze.cellAt(26, 13),\n\t\t\t\t\tDirection.RIGHT, pacman.getNumberOfLives());\n\t\tinitGhosts();\n\n\t\ttimer.stop();\n\t\tlevelStartTimer.restart();\n\t}",
"public void levelBuilder() {\r\n\t\t//round 1\r\n\t\tEnemy[] round1Enemy = new Enemy[1];\r\n\t\tround1Enemy[0] = new Enemy();\r\n\t\t\tround1Enemy[0].type = 0;\r\n\t\t\tround1Enemy[0].imag = (MyFrame.refFrame).client.getOtherPlayer(0).getCardLeader().getCardImage();\r\n\t\t\tround1Enemy[0].position = new vec2(157, 0); \r\n\t\t\tround1Enemy[0].size = new vec2(185, 201); //X: 0~500 Y:250 lower\r\n\t\t\tround1Enemy[0].blood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].currentBlood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].attackCD = 0;\r\n\t\t\tround1Enemy[0].attack = 0;\r\n\t\t\tround1Enemy[0].initialCD = 0;\r\n\t\t\tround1Enemy[0].defense = 0;\r\n\t\t\t\r\n\t\tround[0].addEnemy(round1Enemy);\r\n\t}",
"public void levelUp() {\n this._learnState += 1;\n this.save();\n }",
"public void createlevel() {\n if (level == 21)\n {\n Intent myIntent = new Intent(GameActivity.this, finalActivity.class);\n startActivity(myIntent);\n finish();\n }\n else {\n BufferedReader reader;\n String line = \"\";\n try{\n InputStream file = getAssets().open(\"inputtt.txt\");\n if (selectedlanguage.equals(\"germ\"))\n file = getAssets().open(\"inputGer.txt\");\n else if (selectedlanguage.equals(\"svk\"))\n file = getAssets().open(\"inputSvk.txt\");\n reader = new BufferedReader(new InputStreamReader(file));\n line = reader.readLine();\n int i = 1;\n while(line != null){\n line = reader.readLine();\n if (i == level) {\n break;\n }\n i++;\n }\n\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n\n String[] splitter = line.split(\"#\", 5);\n counter = Integer.parseInt(splitter[1]);\n text = splitter[2];\n\n char[] ch = new char[splitter[0].length()];\n for (int i = 0; i < splitter[0].length(); i++) {\n ch[i] = splitter[0].charAt(i);\n }\n int moves = 0;\n for (int i = 0; i < 4; i++)\n {\n for (int j = 0; j < 4; j++) {\n if(Character.getNumericValue(ch[moves]) == 1) {\n buttColor[i][j] = \"red\";\n } else {\n buttColor[i][j] = \"green\";\n }\n applyColor(buttons[i][j], buttColor[i][j]);\n moves++;\n }\n }\n }\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"private void constructLevel(int level){\n gamePanel.removeAll();\n GridLayout layout = new GridLayout(grid.length,grid[0].length);\n gamePanel.setLayout(layout);\n gamePanel.setBackground(Color.BLACK);\n gamePanel.setFocusable(true);\n gamePanel.requestFocusInWindow();\n gamePanel.updateUI();\n }",
"public void createChallenger() {\n\n Random random = new Random();\n if(currentTurn.getActivePlayers().size() != 1) {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(random.nextInt(currentTurn.getActivePlayers().size() - 1)));\n } else {\n currentTurn.setCurrentPlayer(currentTurn.getActivePlayers().get(0));\n }\n int i = onlinePlayers.indexOf(currentTurn.getCurrentPlayer());\n stateList.set(i, new Initialized(getCurrentTurn().getCurrentPlayer(), this));\n\n }",
"public LevelStateMachine(GameState gameState) {\n this.gameState = gameState;\n }",
"public void setLevelState(LevelState newLevelState) {\r\n\t\tlevelState = newLevelState;\r\n\t}",
"public void newGame(){\n\t\tsoundMan.BackgroundMusic1();\n\n\t\tstatus.setGameStarting(true);\n\n\t\t// init game variables\n\t\tbullets = new ArrayList<Bullet>();\n\n\t\tstatus.setShipsLeft(8);\n\t\tstatus.setGameOver(false);\n\n\t\tif (!status.getNewLevel()) {\n\t\t\tstatus.setAsteroidsDestroyed(0);\n\t\t}\n\n\t\tstatus.setNewAsteroid(false);\n\n\t\t// init the ship and the asteroid\n\t\tnewShip(gameScreen);\n\t\tnewAsteroid(gameScreen);\n\n\t\t// prepare game screen\n\t\tgameScreen.doNewGame();\n\t\tsoundMan.StopMusic2();\n\t\tsoundMan.StopMusic3();\n\t\tsoundMan.StopMusic4();\n\t\tsoundMan.StopMusic5();\n\t\tsoundMan.StopMusic6();\n\t\t// delay to display \"Get Ready\" message for 1.5 seconds\n\t\tTimer timer = new Timer(1500, new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatus.setGameStarting(false);\n\t\t\t\tstatus.setGameStarted(true);\t\n\n\t\t\t\tstatus.setLevel(1);\n\t\t\t\tstatus.setNumLevel(1);\n\t\t\t\tstatus.setScore(0);\n\t\t\t\tstatus.setYouWin(false);\n\t\t\t\tstatus.setBossLife(0);\n\t\t\t}\n\t\t});\n\t\ttimer.setRepeats(false);\n\t\ttimer.start();\n\t}",
"protected void levelUp() {\n\t\tlevel++;\n\t\t// set up floors for next level\n\t\tint[] nextFloors = floors[level];\n\t\tint[] nextFurnishing = furnishings[level];\n\t\tfor(int i = 0; i < nextFloors.length; i++) {\n\t\t\tFloor newFloor = game.getFloorByKey(nextFloors[i]);\n\t\t\ttiles[i].setFloor(newFloor);\n\t\t\tif(nextFurnishing[i] != 0) {\n\t\t\t\tFurnishingDirectory newFurn = game.getFurnishingByKey(nextFurnishing[i]);\n\t\t\t\tnew Furnishing(newFurn, tiles[i]);\n\t\t\t}\n\t\t}\n\t}",
"private void setEliteMobLevel(int newLevel) {\n if (newLevel < 1)\n newLevel = 1;\n this.eliteMobLevel = newLevel;\n }",
"public void nextLevel() {\n // stops the game\n world.stop();\n level++;\n switch (level) {\n case 2:\n // get a new world\n world = new Level2();\n // populates new world with Level2()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n move2.setObstacle2(world.getObstacle2());\n drop.setBallDrop(world.getBallPlatform());\n view.setWorld(world);\n \n try {\n gameMusicL2 = new SoundClip(\"data/music2.wav\");\n gameMusicL2.loop();\n gameMusicL1.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500);\n break;\n case 3:\n // get a new world\n world = new Level3();\n // populates new world with Level3()\n world.populate(this);\n \n move.setObstacle(world.getObstacle());\n drop.setBallDrop(world.getBallPlatform());\n world.addStepListener(new MovingBlock(world.getBlock()));\n view.setWorld(world);\n \n try {\n gameMusicL3 = new SoundClip(\"data/music3.wav\");\n gameMusicL3.loop();\n gameMusicL2.stop();\n } catch (UnsupportedAudioFileException|IOException|LineUnavailableException e) {\n System.out.println(e);\n }\n \n //JFrame debugView = new DebugViewer(world, 500, 500); \n break;\n default:\n System.out.println(\"Congratulations, you have completed the game!\");\n System.exit(0);\n }\n world.start();\n }",
"private void generateLevel() {\n\t\tgenerateBorder();\n\t\tfor (int y = 1; y < height - 1; y++) {\n\t\t\tfor (int x = 1; x < height - 1; x++) {\n\t\t\t\tif (random.nextInt(2) == 1) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t\trandForest(x, y);\n\t\t\t\t} else {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getDirt(), false, x, y);\n\t\t\t\t\trandOre(x, y);\n\t\t\t\t}\n\t\t\t\tif (x == 4 && y == 4) {\n\t\t\t\t\ttiles[x + y * width] = new Tile(Sprite.getGrass(), false, x, y);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"public Level(int width, int height)\r\n\t{\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(width,height);//CHANGE GRID COORDINATES WHILE MAKING A NEW LEVEL\r\n\t\tmakeButton = new GameSprite(Player.filename);\r\n\t\tmakeButton.setPosition(0,0);\r\n\t\tplayer = new Player(100, 420);\r\n\t\tbackground = new Background(1, grid);\r\n\t}",
"@Override\n public void onCreate(SQLiteDatabase db) { db.execSQL(\"create table vanyrLevel(lvl int(1));\"); }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tguiManager.getGameController().saveLevel();\n\t\t\t\t}",
"public void startNewLevel()\n\t{\n\t\tstopThreads();\n\t\tplanet = new Planet(750,600);\n\t\tship = new Ship(20.0,750,600,planet);\n\t\tplanet.increaseLevel();\n\t\tbuttonPanel.update(ship,planet);\n\t\tgamePanel.update(ship,planet);\n\t\trestartThreads();\n\t}",
"public void\t\t\t\t\t\t\tincreaseLevel()\t\t\t\t\t\t\t\t{ this.currentLevel += 1; }",
"public void levelOver(){\n\t\t// this is called by the model when the user wins the game!\n\t\tif (gameModel.levelOver){\n\t\t\tsynchronized(gameModel){\n\n\t\t\tgameModel.resetGame();\n\t\t\tgameModel.createLevel(2,width,height);\n\t\t\tfor(Square s:gameModel.targets){\n\t\t\t\tLog.d(TAG,\"target = \"+s);\n\t\t\t}\n\t\t\tgameModel.levelOver=false;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public static void setLevel(int current)\r\n\t{\r\n\t\tGame.level = current;\r\n\t}",
"@Test\r\n\tpublic void saveTeamLevel() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: saveTeamLevel \r\n\t\tInteger teamId_8 = 0;\r\n\t\tLevel related_level = new wsdm.domain.Level();\r\n\t\tTeam response = null;\r\n\t\tresponse = service.saveTeamLevel(teamId_8, related_level);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: saveTeamLevel\r\n\t}",
"public void newGameStart(int level) {\n animationThread.stop();\n if(muteMusic == false){\n music.stopPlayingAudio(\"All\");\n music.playAudio(\"LevelMusic\");\n }\n musicName = \"LevelMusic\";\n setTitle(\"Chip's Challenge: Level \" + level);\n replay.clearMovement();\n exited = false;\n timeRuunableThread.setDrawNumber(true);\n timeRuunableThread.setSecond(101);\n gameStarted = true;\n gamePaused = false;\n timeRuunableThread.setPause(gamePaused);\n timeRuunableThread.setGameStart(gameStarted);\n infoCanvas.drawLevelNumber(level);\n board = new Board(level);\n keysize = 0;\n originalChipNumber = board.getTreasureRemainingAmount();\n infoCanvas.drawChipsLeftNumber(board.getTreasureRemainingAmount());\n infoCanvas.drawSquares((Graphics2D) infoCanvas.getGraphics(), 14 * infoCanvas.getHeight() / 20, infoCanvas.getWidth(), infoCanvas.getHeight());\n renderer = new MazeRenderer(boardCanvas.getGraphics());\n renderer.redraw(board, boardCanvas.getWidth(), boardCanvas.getHeight());\n }",
"private void initLevel () \n {\n score = 0;\n scoreVisual = score;\n level = new Level(Constants.LEVEL_01);\n cameraHelper.setTarget(level.bird);\n initPhysics();\n }",
"public String newSaveLevel() {\n\t\tactionStartTime = new Date();\n\t\tresetToken(result);\n\t\ttry {\n\t\t\tif (mappingId == null || mappingId == 0) {\n\t\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\t\t\t/**\n\t\t\t * check Cac muc trong nhom phai co so luong/so tien khac nhau.\n\t\t\t * Khong the muc 1 la 1A, 2B muc 2 cung la 1A, 2B\n\t\t\t */\n\t\t\t//trung nguyen\n\t\t\tList<ExMapping> lstSubCheck = listSubLevelMua;\n\t\t\tInteger checkLevel = 0;\n\t\t\tProductGroup pg = promotionProgramMgr.getrecursive(groupMuaId);\n\t\t\tint recursive = pg.getRecursive();\n\t\t\tint sizeGroupLevel = promotionProgramMgr.getSize(groupMuaId).size();\n\t\t\tboolean isFlag = false;\n\t\t\tif (sizeGroupLevel > 0){\n\t\t\t\tfor (int i = 0; i< sizeGroupLevel; i++){\n\t\t\t\t\tInteger conditionGroupLevel = promotionProgramMgr.getSize(groupMuaId).get(i).getCondition();\n\t\t\t\t\tif (conditionGroupLevel != null){\n\t\t\t\t\t\tisFlag = true;\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(\"ZV21\".equals(typeCode) || \"ZV20\".equals(typeCode)){\n\t\t\t\tif(recursive==1){\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tif (isFlag == false && sizeGroupLevel > 2){\n\t\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlstSubCheck = listSubLevelGroupZV192021;\n\t\t\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif (sizeGroupLevel > 1 && isFlag){\n\t\t\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tif(listSubLevelGroupZV192021!=null){\n\t\t\t\t\t\tcheckLevel = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tcheckLevel = promotionProgramMgr.checkLevel(mappingId, lstSubCheck, listSubLevelKM);\n\t\t\t}\n\t\t\tif (checkLevel == 1) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.exist\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 2) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.net.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t} else if (checkLevel == 3) {\n\t\t\t\tresult.put(\"errMsg\", Configuration.getResourceString(ConstantManager.VI_LANGUAGE, \"promotion.program.group.level.code.maping.value.not.same\"));\n\t\t\t\tresult.put(ERROR, true);\n\t\t\t\treturn SUCCESS;\n\t\t\t}\n\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tMap<String, Object> returnMap = promotionProgramMgr.newSaveSublevel(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t//Map<String, Object> returnMapGroupZv192021 = promotionProg\tramMgr.newSaveGroupZV192021(mappingId, stt, listSubLevelMua, listSubLevelKM, getLogInfoVO(), listSubLevelGroupZV192021);\n\t\t\t\n\t\t\tresult.put(ERROR, false);\n\t\t\tif (returnMap.get(\"listSubLevelMua\") != null) {\n\t\t\t\tresult.put(\"listSubLevelMua\", returnMap.get(\"listSubLevelMua\"));\n\t\t\t}\n\t\t\tif (returnMap.get(\"listSubLevelKM\") != null) {\n\t\t\t\tresult.put(\"listSubLevelKM\", returnMap.get(\"listSubLevelKM\"));\n\t\t\t}\n\t\t\tif (mappingId != null) {\n\t\t\t\tGroupMapping mapping = promotionProgramMgr.getGroupMappingById(mappingId);\n\t\t\t\tif (mapping != null && mapping.getPromotionGroup() != null && mapping.getPromotionGroup().getPromotionProgram() != null) {\n\t\t\t\t\tPromotionProgram program = mapping.getPromotionGroup().getPromotionProgram();\n\t\t\t\t\tpromotionProgramMgr.updateMD5ValidCode(program, getLogInfoVO());\n\t\t\t\t\tif (mapping.getSaleGroup() != null) {\n\t\t\t\t\t\tpromotionProgramMgr.updateGroupLevelOrderNumber(program.getId(), mapping.getSaleGroup().getId(), getLogInfoVO());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IllegalArgumentException ie) {\n\t\t\tString msg = ie.getMessage();\n\t\t\tif (msg != null) {\n\t\t\t\tif (msg.contains(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS)) {\n\t\t\t\t\tint idx = msg.indexOf(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS);\n\t\t\t\t\tif (idx > -1) {\n\t\t\t\t\t\tString err = msg.substring(idx);\n\t\t\t\t\t\terr = err.replace(PromotionProgramMgr.DUPLICATE_PRODUCT_IN_PRODUCT_GROUPS, \"\");\n\t\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.product.in.product.groups\", err));\n\t\t\t\t\t\treturn SUCCESS;\n\t\t\t\t\t}\n\t\t\t\t} else if (msg.contains(PromotionProgramMgr.DUPLICATE_LEVELS)) {\n\t\t\t\t\tresult.put(ERROR, true);\n\t\t\t\t\tresult.put(\"errMsg\", R.getResource(\"promotion.catalog.import.duplicate.level\"));\n\t\t\t\t\treturn SUCCESS;\n\t\t\t\t}\n\t\t\t}\n\t\t\tLogUtility.logErrorStandard(ie, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t} catch (Exception e) {\n\t\t\tLogUtility.logErrorStandard(e, R.getResource(\"web.log.message.error\", \"vnm.web.action.program.PromotionCatalogAction.newSaveLevel\"), createLogErrorStandard(actionStartTime));\n\t\t\tresult.put(\"errMsg\", ValidateUtil.getErrorMsg(ConstantManager.ERR_SYSTEM));\n\t\t\tresult.put(ERROR, true);\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public void goNextLevel() {\r\n world.stop();\r\n levelMusic.close();\r\n if(level == 1) {\r\n level++;\r\n world = new Level2();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel2Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else if(level == 2) {\r\n level++;\r\n world = new Level3();\r\n world.populate(this);\r\n keyHandler.setBody(world.getPlayer());\r\n view.setWorld(world);\r\n controlPanel.setWorld(world);\r\n audioManager = new AudioManager();\r\n levelMusic = audioManager.getLevel3Sound();\r\n levelMusic.loop();\r\n world.start();\r\n }\r\n else {\r\n System.out.println(\"PLAYER SURVIVED\");\r\n System.exit(0);\r\n }\r\n }",
"private static int levelUp(int playerLevel){\r\n int level = playerLevel + 1;\r\n System.out.println(\"You have leveled up!\"); \r\n //Tells the user what level they are\r\n System.out.println(\"You are now level \" + level + \"!\");\r\n return level;\r\n }",
"@Action( ACTION_CREATE_REFCERTIFICATIONLEVEL )\n public String doCreateRefCertificationLevel( HttpServletRequest request ) throws AccessDeniedException\n {\n populate( _refcertificationlevel, request, getLocale( ) );\n\n if ( !SecurityTokenService.getInstance( ).validate( request, ACTION_CREATE_REFCERTIFICATIONLEVEL ) )\n {\n throw new AccessDeniedException( \"Invalid security token\" );\n }\n\n // Check constraints\n if ( !validateBean( _refcertificationlevel, VALIDATION_ATTRIBUTES_PREFIX ) )\n {\n return redirectView( request, VIEW_CREATE_REFCERTIFICATIONLEVEL );\n }\n\n RefCertificationLevelHome.create( _refcertificationlevel );\n addInfo( INFO_REFCERTIFICATIONLEVEL_CREATED, getLocale( ) );\n resetListId( );\n\n return redirectView( request, VIEW_MANAGE_REFCERTIFICATIONLEVELS );\n }",
"public void startNextLevel() {\n if (getLevel() < 3) {\n setLevel(getLevel() + 1);\n startGame();\n }\n }",
"public void loadLevel(int level) {\n if (level == 0) {\n return;\n }\n if (this.levels[level] == null) {\n this.elevatorLevelsUnlocked = Math.max(this.elevatorLevelsUnlocked,\n (int)((level-1)/5.0));\n \n this.levels[level] = new MineLevel.Builder(level).buildLevel(this);\n }\n Iterator<Gateway> gateways = this.levels[level-1].getGateways();\n Gateway nextGateway;\n while (gateways.hasNext()) {\n nextGateway = gateways.next();\n if (nextGateway.getDestinationGateway() == null) {\n nextGateway.setDestinationArea(this.levels[level]);\n nextGateway.setDestinationGateway(this.levels[level].getEntranceGateway());\n }\n }\n }",
"public void createTurn() {\n Turn turn = new Turn(this.getOnlinePlayers());\n this.setCurrentTurn(turn);\n }",
"public void levelUp(int newLvl) {\n\t\tsuper.levelUp(newLvl);\n\n\t\t// Add artifacts bonus stats\n\t\tif (armor != null) {\n\t\t\tdefense += armor.getDefense();\n\t\t}\n\t\tif (helm != null) {\n\t\t\tmaxHp += helm.getHp();\n\t\t\thp = maxHp;\n\t\t}\n\t\tif (weapon != null) {\n\t\t\tattack += weapon.getAttack();\n\t\t}\n\n\t\t// Update after levelUp\n\t\tneededXp = level * 1000 + (int)Math.pow(level - 1, 2) * 450;\n\t\txp = tmpXp;\n\t}",
"public void setActiveLevel(PlayerLevel toSet){\r\n\t\tthis.activeLevel = toSet;\r\n\t}",
"public void setLevel(Level mLevel) {\n this.level = mLevel;\n level.increaseChamberCount();\n }",
"void newGame() {\n logger.log(\"New game starting.\");\n logger.log(divider);\n\n\n // Create the deck.\n createDeck();\n logger.log(\"Deck loaded: \" + deck.toString());\n\t logger.log(divider);\n\n\n // Shuffle the deck.\n shuffleDeck();\n logger.log(\"Deck shuffled: \" + deck.toString());\n logger.log(divider);\n\n // Create the players.\n createPlayers();\n setGameState(GameState.PLAYERS_SPAWNED);\n\n // Deal cards to players' decks.\n deal();\n for (Player player : players) {\n logger.log(\"Hand: \" + player);\n }\n \n\n // Randomly select the active player for the first round.\n selectRandomPlayer();\n\n setGameState(GameState.NEW_GAME_INITIALISED);\n }",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }",
"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 GameLevel(LevelInformation info, KeyboardSensor kboard, AnimationRunner aRunner,\n ScoreIndicator scoreInd, LivesIndicator lifeInd, Counter scoreC, Counter livesC) {\n this.levelInfo = info;\n this.keyboard = kboard;\n this.runner = aRunner;\n this.scoreIndi = scoreInd;\n this.lifeIndi = lifeInd;\n this.scoreCounter = scoreC;\n this.lifeCounter = livesC;\n }",
"public void generateLevel() {\n\t\tfor (int y = 0; y < this.height; y++) {\n\t\t\tfor (int x = 0; x < this.width; x++) {\n\t\t\t\tif (x * y % 10 < 5)\n\t\t\t\t\ttiles[x + y * width] = Tile.GRASS.getId();\n\t\t\t\telse\n\t\t\t\t\ttiles[x + y * width] = Tile.STONE.getId();\n\t\t\t}\n\t\t}\n\t}",
"private void addLevels() {\r\n\t\tlevel1 = new Level();\r\n\t\tadd(level1, LEVEL_OFFSET, getHeight() - FIRST_LEVEL_VERTICAL_OFFSET);\r\n\t\t\r\n\t\tlevel2 = new Level();\r\n\t\tadd(level2, LEVEL_OFFSET, (level1.getY() * (2/3.0)) - level2.getHeight() / 2.0);\r\n\t\t\r\n\t\tlevel3 = new Level();\r\n\t\tadd(level3, LEVEL_OFFSET, (level1.getY() * (1/3.0)) - level3.getHeight() / 2.0);\r\n\t\t\r\n\t\tladder1 = new Ladder();\r\n\t\tadd(ladder1, getWidth() - ladder1.getWidth() * 1.5, level2.getY());\r\n\t\t\r\n\t\tladder2 = new Ladder();\r\n\t\tadd(ladder2, ladder2.getWidth() / 2.0, level3.getY());\r\n\t}",
"public LevelEditor(Level level) {\n\t\tsuper();\n\t\tmyLevel = level;\n\t\t// hide null pointer exceptions if needed\n\t\tdbgShowMessagesInPf(false);\n\t\tobjectID = 0;\n\t\tdbgIsEmbedded(true);\n\t\tinitEngine((int) SCREEN_WIDTH, SCREEN_HEIGHT);\n\t\t\n\t\tdefineMedia(\"projectresources/tempTable.tbl\");\n\t\tdefineImage(SRBALL_STRING, \"n\", 0, defaultImage, \"-\");\n\t\tmyMover = new LevelMover(this);\n\t\tmyResourcesForImageToObject = ResourceBundle\n\t\t\t\t.getBundle(GAME_AUTHORING_ENVIRONMENT_RESOURCE_PACKAGE\n\t\t\t\t\t\t+ IMAGE_TO_OBJECT_RESOURCES);\n\t\tmyImageToObjectStatsMap = new HashMap<String, ObjectStats>();\n\t\tfillImageToObjectStatsMap();\n\t\tsetBGImage(myLevel.getBackground());\n\t}",
"public void createGame()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startMultiPlayerGame(\"GameLobby\");\n }",
"private Level produce() {\n\t\tint[][]grid = new int[row][column];\n\t\tArrayList<Point> goals = new ArrayList<Point>();\n\t\tint newRand = 0;\n\t\tfor (int x = 0; x < row; x++)\t{\n\t\t\tfor (int y = 0; y < column; y++)\t{\n\t\t\t\tnewRand = rand.nextInt(TOTAL);\n\t\t\t\tif (newRand < CAT_1)\t{\n\t\t\t\t\tgrid[x][y] = 1;\n\t\t\t\t} else if (newRand < CAT_2)\t{\n\t\t\t\t\tgrid[x][y] = 2;\n\t\t\t\t} else if (newRand < CAT_3)\t{\n\t\t\t\t\tgrid[x][y] = 3;\n\t\t\t\t} else if (newRand < CAT_4)\t{\n\t\t\t\t\tgrid[x][y] = 4;\n\t\t\t\t} else if (newRand < CAT_5)\t{\n\t\t\t\t\tgoals.add(new Point(x,y));\n\t\t\t\t} else if (newRand < TOTAL)\t{\n\t\t\t\t\tgrid[x][y] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new Level(grid, row, column, goals);\n\t}",
"public Level(int levelNumber)\r\n\t{\t\r\n\t\tlevelNum = levelNumber;\r\n\t\tlevelFileName = \"level\"+levelNum+\".txt\";\r\n\t\tlistFileName = \"level\"+levelNum+\"items.txt\";\r\n\t\tmakeCommonObjects();\r\n\t\tgrid = new Grid(levelFileName);\r\n\t\tGridSquare startSquare = grid.startLocation();\r\n\t\tplayer = new Player((int)startSquare.rect.x,(int)startSquare.platform.getBoundingRectangle().y+3);\r\n\t\tAndroidGame.camera.position.x = player.getX();\r\n\t\tAndroidGame.camera.position.y = player.getY();\r\n\t\tbackground = new Background(levelNumber, grid);\r\n\t\tdoorBubble = new OffScreenBubble(grid.getFinish());\r\n\t\tif(grid.getKey()!=null)\r\n\t\t{\r\n\t\t\thasKey = true;\r\n\t\t\tkeyBubble = new OffScreenBubble(grid.getKey());\r\n\t\t}\r\n\t\tplayer.reset(grid);\r\n\t}",
"private void createLevelBoxes() {\n int totalRows = (LEVELS / LEVEL_COLUMNS_PER_SCREEN) + 1;\n \n // Calculate space between each level square\n int spaceBetweenRows = (CAMERA_HEIGHT / LEVEL_ROWS_PER_SCREEN) - LEVEL_PADDING;\n int spaceBetweenColumns = (CAMERA_WIDTH / LEVEL_COLUMNS_PER_SCREEN) - LEVEL_PADDING;\n \n //Current Level Counter\n int iLevel = 1;\n //Create the Level selectors, one row at a time.\n int boxX = LEVEL_PADDING, boxY = LEVEL_PADDING;\n for (int y = 0; y < totalRows; y++) {\n for (int x = 0; x < LEVEL_COLUMNS_PER_SCREEN; x++) {\n \n //On Touch, save the clicked level in case it's a click and not a scroll.\n final int levelToLoad = iLevel;\n \n if(iLevel >= mMaxLevelReached) {\n \t dotLevel = new Sprite(boxX, boxY, resourcesManager.level_dot_red_region, vbom) {\n @Override\n public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final float pTouchAreaLocalX, final float pTouchAreaLocalY) {\n if (levelToLoad >= mMaxLevelReached)\n iLevelClicked = -1;\n else\n iLevelClicked = levelToLoad;\n return false;\n }\n };\n }\n else {\n \tdotLevel = new Sprite(boxX, boxY, resourcesManager.level_dot_green_region, vbom) {\n @Override\n public boolean onAreaTouched(final TouchEvent pSceneTouchEvent, final float pTouchAreaLocalX, final float pTouchAreaLocalY) {\n if (levelToLoad >= mMaxLevelReached)\n iLevelClicked = -1;\n else\n iLevelClicked = levelToLoad;\n return false;\n }\n };\n }\n \n this.attachChild(dotLevel);\n \n this.attachChild(new Text(boxX, boxY - 5, resourcesManager.font, String.valueOf(iLevel), vbom));\n \n \n this.registerTouchArea(dotLevel);\n \n iLevel++;\n boxX += spaceBetweenColumns + LEVEL_PADDING;\n \n if (iLevel > LEVELS)\n break;\n }\n \n if (iLevel > LEVELS)\n break;\n \n boxY += spaceBetweenRows + LEVEL_PADDING;\n boxX = 50;\n }\n }",
"public void changeLevel(Level level) {\n gameState.setCurrentLevel(level);\n\n }",
"public void setLevelState(ExpertiseLevelState level) {\n this.levelState = level;\n }",
"public Level(String levelFile,Scene gameS){\n levelCreator = new TileFactory();\n this.levelFile = levelFile;\n initLevel();\n gameScene = gameS;\n enableInput(gameScene);\n }",
"public void addPassedLevel(int currentLevelId) {\r\n\t\tpassedLevelIds.add(currentLevelId);\r\n\t}",
"private Output newStage(Output finalOutput, int level) {\n Output out = new MappingChainOutput(chain[level], finalOutput);\n\n if (level == 0) {\n /* At the top level, we're done */\n return out;\n } else {\n /* Pass this Output for the previous stage to write to */\n return newStage(out, level - 1);\n }\n }",
"public void testLightningLevel() {\n\t\tBoard brd = new Board();\n\t\tLightningLevel lvl = new LightningLevel(brd);\n\n\t\tassertEquals(\"Lightning\", lvl.getLevelType());\n\n\t\tlvl.assignTime(42);\n\t\tassertEquals(42, lvl.getTime());\n\t}",
"public void changeLevel(Level level) {\n if (Consts.TEST) {\n this.level = level;\n return;\n }\n\n try {\n level.validate();\n } catch (Exception e) {\n e.printStackTrace();\n level = this.level;\n }\n this.level = level;\n entities.clear();\n pacman.respawn(level.getRandomPacmanSpawn());\n // items spawnen\n for (int y = 0; y < level.getHeight(); y++) {\n for (int x = 0; x < level.getWidth(); x++) {\n if (level.getField(x, y) == MapModule.DOT)\n entities.add(new Dot(x, y));\n else if (level.getField(x, y) == MapModule.POWERUP)\n entities.add(new PowerUp(x, y));\n else if (level.getField(x, y) == MapModule.SPEEDUP)\n entities.add(new SpeedUp(x, y));\n else if (level.getField(x, y) == MapModule.TELEPORT)\n entities.add(new Teleporter(x, y));\n }\n }\n\n // 4 Geister im normalen Spiel, 1 Geist fuer Tests\n for (int i = 0; i < (Consts.TEST ? 1 : Consts.NUM_GHOSTS); i++) {\n Ghost g = new Ghost(i);\n g.respawn(level.getNextGhostSpawn());\n entities.add(g);\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 }",
"interface WithLevel {\n /**\n * Specifies the level property: The level of the lock. Possible values are: NotSpecified, CanNotDelete,\n * ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete.\n * ReadOnly means authorized users can only read from a resource, but they can't modify or delete it..\n *\n * @param level The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly.\n * CanNotDelete means authorized users are able to read and modify the resources, but not delete.\n * ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.\n * @return the next definition stage.\n */\n WithCreate withLevel(LockLevel level);\n }",
"public void createNewPlayer()\n\t{\n\t\t// Set up all badges.\n\t\tm_badges = new byte[42];\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tm_badges[i] = 0;\n\t\tm_isMuted = false;\n\t}",
"public void generateLevel(int width, int height, int numberCrates, int difficulty) {\n\t\tgrid = GridGenerator.generateGrid(width, height, numberCrates, difficulty);\n\t\tlevel = new LevelDisplay(grid, this, -2, \"NOTHING\");\n\t\twindow.setContentPane(level);\n\t\tlevel.displayGrid.requestFocusInWindow();\n\t}",
"private void nextLevel() {\n Intent nextLevel = new Intent(GameLevelActivity.this, GameLevelActivity.class);\n nextLevel.putExtra(IGameLevelConstants.INTENT_TYPE, IGameLevelConstants.NEXT_LEVEl);\n startActivity(nextLevel);\n }",
"void loadOriginalGameState(String saveName, int level) throws IOException;",
"void addLevel(Level level) {\r\n\t\tif (level != null) {\r\n\t\t\tlevelList.addItem(level.toString());\r\n\t\t}\r\n\t}",
"public void completeLevel() {\n\n this.getCurrentRoom().setIsDoorLocked(false);\n levelsCompleted++;\n this.setCurrentRoom(currentRoom.getNextRoom());\n inventory.clearContainer();\n }",
"public void setNewScene() {\n switch (game.getCurrentRoomId()) {\n case 14:\n WizardOfTreldan.setFinishScene();\n break;\n\n }\n }",
"public LevelMenu(int levelmenu) {}",
"public void makeProfile(String name){\r\n try{\r\n PrintWriter out = new PrintWriter(new FileWriter(\"../profiles/\" + name + \".profile\"));\r\n out.println(\"HORATIU INCORPORATED PROTECTED\"); //Header\r\n out.println(name); //Player name\r\n out.println(0); //Score\r\n \r\n //UNLOCK CODES\r\n //-1 if not unlocked\r\n //0 if unlocked but not completed\r\n //1 if completed\r\n out.println(0); //Initial level is unlocked by default\r\n for(int i = 0; i < 5; i++){\r\n out.println(-1); //\r\n }\r\n out.close();\r\n }\r\n catch(IOException e){\r\n }\r\n Player.playerName = name;\r\n Player.playerScore = 0; //Score\r\n Player.scores[0] = 0;\r\n for(int i = 1; i < 6; i++){ //1 to 6 so it does not overwrite the first 0\r\n Player.scores[i] = -1;\r\n }\r\n GameApp.makeToView(name);\r\n }",
"public void levelOneScreen() {\n timer.stop();\n gameModel.setState(\"Level 1\");\n currentScene = levelSetup.getLevelOne().getScene(levelOneInitialEntrance);\n currentBoard = levelSetup.getLevelOne().getBoard();\n currentLevelScreen = levelSetup.getLevelOne();\n levelOneInitialEntrance = (levelOneInitialEntrance ? false : false);\n moveCharacter(mainWindow, currentScene, hero, currentBoard);\n\n }",
"public void nextLevel() {\n if (game.level <= 8) {\n game.level = game.level + 1;\n if (isOver()) {\n game.overallMoves = game.getOverallMoves() + game.getMoves();\n }\n f.score.setText(\"Overall Score: \" + game.getOverallMoves());\n restartLevel();\n }\n else if (game.level == 9) { //FINAL LEVEL\n f.levelNum.setText(\"GAME\");\n f.moves.setText(\"OVER\");\n f.score.setText(\"FINAL SCORE: \" + game.getOverallMoves());\n repaint();\n }\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //mAuth = FirebaseAuth.getInstance();\n householdReference = FirebaseDatabase.getInstance().getReference(\"households\");\n //drawerLayout = (DrawerLayout) findViewById(R.id.create_household_layout);\n //navigationView = (NavigationView) findViewById(R.id.navigation_bar);\n //navigationView.setNavigationItemSelectedListener(this);\n button = (Button) findViewById(R.id.create_household_button);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n String name = ((EditText) findViewById(R.id.household_name_input)).toString();\n Household household = new Household(name);\n String id = householdReference.push().getKey();\n householdReference.child(id).setValue(household);\n startActivity(new Intent(CreateHousehold.this,ListHousehold.class));\n\n }\n });\n setContentView(R.layout.activity_create_household);\n /*mAuthListener = new FirebaseAuth.AuthStateListener() {\n @Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n if (firebaseAuth.getCurrentUser() != null){\n startActivity(new Intent(CreateHousehold.this,ListHousehold.class));\n }\n }\n };*/\n }",
"void startGame() {\n if (getHealth() <= 0) {\n startAgain();\n }\n int level = getLevel();\n if (level == 1) {\n Intent intent = new Intent(this, Level1Activity.class);\n intent.putExtra(sendPlayer, currPlayer);\n startActivity(intent);\n } else if (level == 2) {\n Intent intent = new Intent(this, Level2Activity.class);\n intent.putExtra(sendPlayer, currPlayer);\n startActivity(intent);\n } else if (level == 3) {\n Intent intent = new Intent(this, Level3Activity.class);\n intent.putExtra(sendPlayer, currPlayer);\n startActivity(intent);\n }\n }",
"public static Level[] createPhaseTwoLevel(){\n\t\tLevel[] testLevels = new Level[1];\n\t\t\n\t\tSquare Level1Piece1[] = new Square[6]; \n\t\tLevel1Piece1[0] = new Square(0,0);\n\t\tLevel1Piece1[1] = new Square(1,0);\n\t\tLevel1Piece1[2] = new Square(2,0);\n\t\tLevel1Piece1[3] = new Square(3,0);\n\t\tLevel1Piece1[4] = new Square(4,0);\n\t\tLevel1Piece1[5] = new Square(5,0);\t\t\n\t\t\n\t\tSquare Level1Piece2[] = new Square[6]; \n\t\tLevel1Piece2[0] = new Square(0,1);\n\t\tLevel1Piece2[1] = new Square(0,0);\n\t\tLevel1Piece2[2] = new Square(1,0);\n\t\tLevel1Piece2[3] = new Square(2,0);\n\t\tLevel1Piece2[4] = new Square(3,0);\n\t\tLevel1Piece2[5] = new Square(4,0);\t\t\n\t\t\n\t\tSquare Level1Piece3[] = new Square[6]; \n\t\tLevel1Piece3[0] = new Square(0,0);\n\t\tLevel1Piece3[1] = new Square(0,1);\n\t\tLevel1Piece3[2] = new Square(0,2);\n\t\tLevel1Piece3[3] = new Square(1,0);\n\t\tLevel1Piece3[4] = new Square(1,1);\n\t\tLevel1Piece3[5] = new Square(1,2);\t\t\n\t\t\n\t\tSquare Level1Piece4[] = new Square[6]; \n\t\tLevel1Piece4[0] = new Square(0,0);\n\t\tLevel1Piece4[1] = new Square(1,0);\n\t\tLevel1Piece4[2] = new Square(1,1);\n\t\tLevel1Piece4[3] = new Square(1,2);\n\t\tLevel1Piece4[4] = new Square(1,3);\n\t\tLevel1Piece4[5] = new Square(2,3);\n\t\t\n\t\tSquare Level1Piece5[] = new Square[6]; \n\t\tLevel1Piece5[0] = new Square(2,0);\n\t\tLevel1Piece5[1] = new Square(2,1);\n\t\tLevel1Piece5[2] = new Square(1,1);\n\t\tLevel1Piece5[3] = new Square(0,1);\n\t\tLevel1Piece5[4] = new Square(0,2);\n\t\tLevel1Piece5[5] = new Square(1,2);\t\n\t\t\n\t\tSquare Level1Piece6[] = new Square[6]; \n\t\tLevel1Piece6[0] = new Square(2,0);\n\t\tLevel1Piece6[1] = new Square(2,1);\n\t\tLevel1Piece6[2] = new Square(1,1);\n\t\tLevel1Piece6[3] = new Square(0,1);\n\t\tLevel1Piece6[4] = new Square(1,2);\n\t\tLevel1Piece6[5] = new Square(2,2);\t\n\t\t\n\t\tArrayList<Piece> bullPenPieceArray=new ArrayList<Piece>();\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece1,Level1Piece1[0],2));\n\t\tbullPenPieceArray.get(0).setColor(Color.BLUE);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece2,Level1Piece2[0],2));\n\t\tbullPenPieceArray.get(1).setColor(Color.GREEN);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece3,Level1Piece3[0],2));\n\t\tbullPenPieceArray.get(2).setColor(Color.YELLOW);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece4,Level1Piece4[0],2));\n\t\tbullPenPieceArray.get(3).setColor(Color.ORANGE);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece5,Level1Piece5[0],2));\n\t\tbullPenPieceArray.get(4).setColor(Color.RED);\n\t\tbullPenPieceArray.add(new Piece(0,0,Level1Piece6,Level1Piece6[0],2));\n\t\tbullPenPieceArray.get(5).setColor(Color.PINK);\n\t\tBullpen bp = new Bullpen(bullPenPieceArray);\n\t\t\n\t\t\n\t\tSquare[] sq = new Square[36]; \n\t\tfor (int i1=0;i1<6;i1++){\n\t\t\tfor (int j=0;j<6;j++){\n\t\t\t\tsq[i1*6+j] = new Square(i1,j);\n\t\t\t}\n\t\t}\n\t\tSquare hitSquares[] = new Square[6]; \n\t\thitSquares[0] = new Square(0,0);\n\t\thitSquares[1] = new Square(1,0);\n\t\thitSquares[2] = new Square(2,0);\n\t\thitSquares[3] = new Square(3,0);\n\t\thitSquares[4] = new Square(4,0);\n\t\thitSquares[5] = new Square(5,0);\t\n\t\tHint hints = new Hint(hitSquares);\n\t\tBoard bd = new Board(sq);\n\t\tbd.sethint(hints);\n\t\t\n\t\ttestLevels[0] = new PuzzleLevel(0,GetLevelTpye(0%3),bd,bp,8);\n\t\ttestLevels[0].updateLevelStar(new Achievement(0));\n\t\t\n\t\treturn testLevels;\n\t}",
"public void createMenu() {\n deleteMenuGroupError = false;\n createMenuGroupError = true;\n if (menu.createMenu()) {\n updateMenuError = false;\n deleteMenuError = false;\n createMenuError = true;\n } else {\n createMenuError = false;\n }\n }",
"public static Level getLevel()\n {\n if(levelSingleton == null) {\n levelSingleton = new Level();\n }\n levelSingleton.setVisible(true);\n return levelSingleton;\n }",
"public void goNextLevel(){\r\n setCurrentLevel(currentLevel.getNextLevel());\r\n }",
"@Override\n public void levelUp(){\n //System.out.println(\"Level: \" + getLevel());\n if (getLevel() > 5) return;\n\n /* System.out.println(\"\\n-------\");\n System.out.println(\"Level: \" + getLevel());\n System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n*/\n double percentage = growth(getLevel()) + growthRate;\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (getLevel() % 2 != 0) range++;\n setLevel(getLevel() + 1);\n\n /* System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n System.out.println(\"-------\\n\");*/\n }",
"public void setLevel(String lev) {\n\t\tlevel = lev;\n\t}",
"private void loadLevel(Game game, int level) {\n //stop any ongoing sounds\n game.getGameLevel().getLevelSound().stop();\n //creates new arrList\n game.resetGameLevels();\n //Loads levels in the arrList\n game.buildGameLevelsArray();\n //set to desired level\n game.setLevel(level);\n //load all necessary components for the game\n // and updates the existing one.\n game.goNextLevel();\n // sets the player lifes and collected eggs\n game.getHero().setLifes(10);\n game.getHero().setEggs(0);\n }",
"private void levelUp() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (a.getVisibility()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tresetInvaders();\n\t\taddRow();\n\t\t\n\t\tenemyShotList.add(new Shot(0, 0, SHOT_WIDTH, SHOT_HEIGHT, 15));\n\t\tlevel++;\n\t\t\n\t\tint powerupx = (int) (Math.random()*(WIDTH-PLAYER_WIDTH));\n\t\tdouble poweruprandom = Math.random();\n\t\t\n\t\tif (poweruprandom < 0.25) {\n\t\t\tarmorPiercing.reset(powerupx);\n\t\t}\n\t\t\n\t\tif (poweruprandom >= 0.25 && poweruprandom < 0.5) {\n\t\t\texplosive.reset(powerupx);\n\t\t}\n\t}",
"private void prepareLevel(){\n levelAnimation = true;\n\n // Reset the menace level\n menaceInterval = 1200;\n\n // Here we will initialize all the game objects\n // Make a new player space ship\n defender = new Defender(context, PlayableX, PlayableY, ExcessX);\n\n // Prepare the players bullet\n bullet = new Bullet(context, PlayableX, PlayableY, (float) 1.2);\n\n // Initialize the invadersBullets array\n for(int i = 0; i < invadersBullets.length; i++){\n invadersBullets[i] = new Bullet(context, PlayableX, PlayableY, (float) 0.80);\n }\n\n // Build an army of invaders\n numInvaders = 0;\n for(int column = 0; column < invadersColumn; column ++ ){\n for(int row = 0; row < invadersRow; row ++ ){\n invaders[numInvaders] = new Invader(context, row, column, PlayableX, PlayableY, ExcessX);\n numInvaders ++;\n }\n }\n invadersLeft = numInvaders;\n\n try {\n // Create objects of the 2 required classes\n AssetManager assetManager = context.getAssets();\n explosionEffect = new Bitmap[12];\n for (int i=0; i < 12; i++) {\n explosionEffect[i] = Bitmap.createScaledBitmap(BitmapFactory.decodeStream(assetManager.open(\"explosion/\" + (i + 1) + \".png\")), (int) (invaders[0].getLength()*1.75), (int) (invaders[0].getLength()*1.75), true);\n }\n } catch (IOException e) {\n e.printStackTrace();\n // Print an error message to the console\n Log.e(\"error\", \"failed to load explosion effect image files\");\n }\n\n }",
"private void addNewLevelNotification() {\n\t\tDisplay.getDefault().syncExec(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tNewLevelNotification notification = new NewLevelNotification(Display.getDefault());\n\t\t\t\tNotificationManager.add(notification);\n\t\t\t}\n\t\t});\n\t}",
"public void addPlayableLevel(Level level){\r\n if(!currentLevel.isPlayableLevel()){\r\n setCurrentLevel(level);\r\n }else{\r\n currentLevel.addPlayingLevel(level);\r\n }\r\n }",
"public static void createNewLeague()\n\t{\n\t\t//put code to get input from end-user here.\n\t\t//generateFixtures(leagueName, teamAmount, homeAndAway, winPoints, drawPoints, lossPoints, teamNames);\n\t}",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void win() {\n\n\t\t// exist next level?\n\t\tif (Project.project.getMaps().get(maptyp).size() > id + 1) {\n\t\t\tProject.project.startLevel(maptyp, id + 1);\n\n\t\t\t// save it\n\t\t\tif (Project.project.getMapLevel(maptyp) < id + 1) {\n\t\t\t\tProject.project.setMapLevel(maptyp, id + 1);\n\t\t\t}\n\t\t} else {\n\t\t\tPWindow.window.setActScene(new MessageScene(\"Gewonnen\", \"\", new MenuMainScene()));\n\t\t}\n\t}",
"public Level(String name) {\n\t\t\n\t\tthis.name = name;\n\t\t\n\t\ttry {\n\t\t\tlevelType = new LevelType(DEFAULT_LEVEL_TYPE, true);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n//\t\tscreen = new Screen(300*3/SCREEN_SCALE, 168*3/SCREEN_SCALE, SCREEN_SCALE);\n\t\tscreen = new Screen(Game.width/SCREEN_SCALE, Game.height/SCREEN_SCALE, SCREEN_SCALE);\n\t\t\n\t\twidth = 800;\n//\t\theight = 500;\n\t\theight = 200;\n\t\t\n\t\tWall wall0 = new Wall(100,80,30,40);\n\t\tWall wall1 = new Wall(166,80,16,40);\n\t\t\n\t\t//Construct a default level\n\t\tFloor defaultFloor0 = new Floor(1,44,62, \"Floor 0\");\n\t\tFloor defaultFloor1 = new Floor(53,60,96, \"Floor 1\");\n\t\tFloor defaultFloor2 = new Floor(70,50,96, \"Floor 2\");\n\t\tFloor defaultFloor3 = new Floor(90,40,96, \"Floor 3\");\n\t\t\n\t\tPlatform pf0 = new Platform(186,40,100);\n\t\tPlatform pf1 = new Platform(130,80,36);\n\t\t\n\t\tBackground bg = new Background();\n\t\tadd(bg);\n\t\t\n\t\t//Background scrolling slower is probably going to have to wait a bit\n//\t\tBackgroundObject bgo = new BackgroundObject(100,25, 2);\n//\t\tadd(bgo);\n\t\t\n\t\tCoin c0 = new Coin(10, 44);\n\t\t\n\t\t\n\t\t//Note well- floors should be added in decreasing order of height, starting with the tallest.\n\t\t//\tWay to sort objects by a variable?\n\t\tadd(defaultFloor1);\n\t\tadd(defaultFloor2);\n\t\tadd(defaultFloor3);\n\t\tadd(defaultFloor0);\n\t\t\n\t\tadd(wall0);\n\t\tadd(wall1);\n\t\tadd(pf0);\n\t\tadd(pf1);\n\t\t\n\t\tadd(c0);\n\t\t\n\t}",
"public void createRoom(int len, int leftWid, int rightWid) {\n switch (facing) {\n case \"Up\":\n addUpBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n case \"Down\":\n addDownBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n case \"Left\":\n addLeftBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n case \"Right\":\n addRightBlock(position, Tileset.FLOOR, len, leftWid, rightWid);\n break;\n default:\n System.out.println(\"The wizard loses his direction!\");\n\n }\n }"
] | [
"0.74612206",
"0.6481612",
"0.6339254",
"0.618092",
"0.61445314",
"0.60951555",
"0.59422714",
"0.587623",
"0.5857021",
"0.5842025",
"0.5767244",
"0.57420087",
"0.5672994",
"0.5631675",
"0.56146324",
"0.5574514",
"0.55722684",
"0.5556798",
"0.55226815",
"0.5495149",
"0.54791445",
"0.5455808",
"0.54115415",
"0.54018474",
"0.5383605",
"0.5365108",
"0.5349751",
"0.5343432",
"0.5324289",
"0.5313587",
"0.529941",
"0.52914506",
"0.5287168",
"0.5284818",
"0.52828014",
"0.5282664",
"0.52819425",
"0.5271733",
"0.52443385",
"0.5217208",
"0.5212978",
"0.51988626",
"0.5192838",
"0.5190009",
"0.51735735",
"0.5158873",
"0.515185",
"0.5146456",
"0.5127201",
"0.51237786",
"0.5123508",
"0.510773",
"0.51001793",
"0.5094373",
"0.5092399",
"0.5090792",
"0.5083584",
"0.50798714",
"0.5061191",
"0.5056573",
"0.5056177",
"0.502705",
"0.5024358",
"0.5019485",
"0.50084853",
"0.5000761",
"0.49992225",
"0.49977988",
"0.49921662",
"0.497771",
"0.49723536",
"0.49690285",
"0.49610642",
"0.49487075",
"0.49321932",
"0.48984563",
"0.48910606",
"0.48909983",
"0.48906904",
"0.48898798",
"0.48854527",
"0.48695597",
"0.4866753",
"0.48639858",
"0.48615018",
"0.4856694",
"0.48563412",
"0.485578",
"0.485501",
"0.48545882",
"0.48405716",
"0.4836368",
"0.48309112",
"0.4828735",
"0.4826582",
"0.4824882",
"0.4823688",
"0.48227632",
"0.48184887",
"0.481783"
] | 0.6946495 | 1 |
Delete the previously created level. | void deleteLevel(int level) throws IllegalArgumentException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeLevel()\n {\n clearLevelAndDecreaseCount();\n }",
"void remove(int level) {\n if (containsKey(level)) {\n set(level, null);\n }\n }",
"public void clearLevel() {\n super.clearLevel();\n }",
"public Builder clearLevel() {\n \n level_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearLevel() {\n \n level_ = 0D;\n onChanged();\n return this;\n }",
"public Builder clearLevel() {\n \n level_ = 0D;\n onChanged();\n return this;\n }",
"public void removeLevel()\r\n {\r\n if( tables.size()>1 )\r\n {\r\n tables.removeFirst();\r\n }\r\n if( counts.size()>1 )\r\n {\r\n counts.removeFirst();\r\n }\r\n }",
"@Test\r\n\tpublic void deleteTeamLevel() {\r\n\t\t// TODO: JUnit - Populate test inputs for operation: deleteTeamLevel \r\n\t\tInteger team_teamId_7 = 0;\r\n\t\tInteger related_level_levelId = 0;\r\n\t\tTeam response = null;\r\n\t\tresponse = service.deleteTeamLevel(team_teamId_7, related_level_levelId);\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: deleteTeamLevel\r\n\t}",
"public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000008);\n level_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000001);\n level_ = 0;\n onChanged();\n return this;\n }",
"@Override\r\n\tpublic int deleteLevelId(String code) {\n\t\treturn ehyDatadicMapper.deleteLevelId(code);\r\n\t}",
"public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000001);\n level_ = 0;\n \n return this;\n }",
"public Builder clearLevel() {\n bitField0_ = (bitField0_ & ~0x00000002);\n level_ = 1;\n \n return this;\n }",
"public void removeLevel(String name) {\n levels.remove(name);\n }",
"public Builder clearLevelName() {\n \n levelName_ = getDefaultInstance().getLevelName();\n onChanged();\n return this;\n }",
"public Builder clearLevelName() {\n \n levelName_ = getDefaultInstance().getLevelName();\n onChanged();\n return this;\n }",
"public Builder clearLevelName() {\n \n levelName_ = getDefaultInstance().getLevelName();\n onChanged();\n return this;\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 createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }",
"public void levelDown() {\n this._learnState -= 1;\n this.save();\n }",
"void createNewLevel(int level);",
"@Action( ACTION_REMOVE_REFCERTIFICATIONLEVEL )\n public String doRemoveRefCertificationLevel( HttpServletRequest request )\n {\n int nId = Integer.parseInt( request.getParameter( PARAMETER_ID_REFCERTIFICATIONLEVEL ) );\n\n try\n {\n RefCertificationLevelHome.remove( nId );\n }\n catch( Exception e )\n {\n addInfo( \"Le level ne peut être supprimé car il est utilisé dans la définition d'un processus\" );\n return redirectView( request, VIEW_MANAGE_REFCERTIFICATIONLEVELS );\n }\n addInfo( INFO_REFCERTIFICATIONLEVEL_REMOVED, getLocale( ) );\n resetListId( );\n\n return redirectView( request, VIEW_MANAGE_REFCERTIFICATIONLEVELS );\n }",
"public void delete() {\n this.root = null;\n }",
"public void deleteMenu() {\n deleteMenuGroupError = true;\n String input = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get(\"menu_id\");\n menu_id = Integer.parseInt(input);\n setMenu_id(menu_id);\n if (menu.deleteMenu()) {\n createMenuError = false;\n updateMenuError = false;\n deleteMenuError = true;\n } else {\n deleteMenuError = false;\n }\n }",
"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}",
"void pop(int level) {\n if (containsKey(level)) {\n set(level, get(level).next);\n }\n }",
"public Builder clearLevelTableList() {\n levelTableList_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000040);\n\n return this;\n }",
"@Override\n public void destroy() {\n super.destroy();\n dungeon.removeEntity(this);\n }",
"private void decreaseLevel()\n\t\tthrows IOException\n\t{\n\t\tlevel--;\n\t\tnextKey = ! lists[level];\n\n\t\tif(beautify && hasData[level])\n\t\t{\n\t\t\twriter.write('\\n');\n\n\t\t\tfor(int i=0; i<level; i++)\n\t\t\t{\n\t\t\t\twriter.write(\"\\t\");\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\tpublic void delete() {\n\n\t\t}",
"public void exitScope() {\n\t\tif (map.size() > 0) {\n\t\t\tmap.remove(map.size() - 1);\n\t\t} else {\n\t\t\tthrow new IllegalArgumentException(\"There is no other level.\");\n\t\t}\n\t}",
"public void removeFromGame(GameLevel gameLevel) {\n gameLevel.removeSprite(this);\n }",
"public void removeFromGame(GameLevel gameLevel) {\n gameLevel.removeSprite(this);\n }",
"public void removeFromGame(GameLevel gameLevel) {\n gameLevel.removeSprite(this);\n }",
"@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}",
"public void completeLevel() {\n\n this.getCurrentRoom().setIsDoorLocked(false);\n levelsCompleted++;\n this.setCurrentRoom(currentRoom.getNextRoom());\n inventory.clearContainer();\n }",
"@Override\r\n\tpublic void deleteMenmberMode(MenmberMode menmberMode) {\n\t\tgetHibernateTemplate().delete(menmberMode);\r\n\t}",
"public void remove(Level level, T originalElement) {\n if (this.internalRegistry.containsKey(level)) {\n Vector<T> elements = this.internalRegistry.get(level);\n\n // Make sure to check for null in-case the key was removed between the contains check and the get.\n if (elements != null) {\n // Try to find this element in the collection.\n for (int i = 0; i < elements.size(); i++) {\n T element = elements.get(i);\n\n if (element.hashCode() == originalElement.hashCode()) {\n // remove the element from the collection to ensure that another player/thread doesn't try to remove the same item.\n elements.remove(element);\n\n // Let the implementor know that this element was removed to do any custom processing.\n this.onElementRemoved(level, element);\n break;\n }\n }\n\n if (elements.size() == 0) {\n // No more elements, remove the level from the array.\n this.internalRegistry.remove(level);\n }\n }\n }\n }",
"private void removeweak(final List<Level> levels) {\n \n final List<Integer> removeIdx = Lists.newArrayList();\n\n for (int i = 0; i < (levels.size()); i++) {\n final Level currentLevel = levels.get(i);\n final Float strength = currentLevel.getStrength();\n if (strength.intValue() < STRENGTH) {\n removeIdx.add(i);\n }\n }\n\n CollectionUtils.remove(levels, removeIdx);\n }",
"private void delete() {\n\n\t}",
"protected void tearDown()\n {\n super.tearDown();\n ClassLoader classLoader = getClass().getClassLoader();\n File folder = null;\n try\n {\n folder = new File(classLoader.getResource(\"levels\").toURI().getPath());\n } catch (URISyntaxException e)\n {\n e.printStackTrace();\n }\n File[] listOfFiles = folder.listFiles();\n\n for (File f : listOfFiles)\n {\n if (!f.getPath().contains(\"level1.txt\") && !f.getPath().contains(\"level2.txt\") &&\n !f.getPath().contains(\"level3.txt\"))\n {\n try\n {\n Files.delete(f.toPath());\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n }\n }",
"int deleteByExample(AgentLevelExample example);",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"@Override\n public void delete()\n {\n }",
"public void delete(Context ctx){\n\t\t\tChildInteraction cDb = new ChildInteraction(ctx);\t// for writing to the db\n\t\t\tfor(String key : numbers.keySet())\t\t\t\t\t// for all the numbers\n\t\t\t\tcDb.DeleteChild(key, text);\t\t\t\t\t\t// delete the entry in the db\n\t\t\tcMessages.remove(this);\t\t\t\t\t\t\t\t// remove this from cMessages\n\t\t\tcDb.Cleanup();\t\t\t\t\t\t\t\t\t\t// cleanup\n\t\t}",
"private void decrementLevels(int levels){\n this.level -= levels;\n if (this.level < 1){\n this.level = 1;\n }\n }",
"public void remove(){\n Api.worldRemover(getWorld().getWorldFolder());\n }",
"public void reset(int level)\n {\n loadLevel(level);\n Rover.getRover().reset();\n }",
"public void deleteInstance(){\n //cancels the runnable\n shouldCancelRunnable = true;\n //remove the chest from the map to avoid confusion\n this.location.getBlock().setType(Material.AIR);\n //unregister from all events, we're done!\n HandlerList.unregisterAll(this);\n }",
"public void delete() {\n\t\tdeleted = true;\n\t}",
"@Override\n\tpublic void delete(Room t) {\n\t\t\n\t}",
"public void unlock() {\n int id = ThreadID.get();\n \n this.levels[id].set(0);\n\n }",
"@Override\n\tpublic void destroy(LevelAccessor world, BlockPos blockPos, BlockState blockState)\n\t{\n\n\t\tsuper.destroy(world, blockPos, blockState);\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 clearRemovalTag() {\n\t levelOfRemoval = 0;\n\t}",
"public void deleteScore() {\n\t\tthis.score = 0;\n\t}",
"public Builder removeLevelTableList(int index) {\n ensureLevelTableListIsMutable();\n levelTableList_.remove(index);\n\n return this;\n }",
"public void untagAsRemoved() {\n\t levelOfRemoval --;\n\t}",
"public void delete() {\n Utils.inWriteLock(leaderIsrUpdateLock, () -> {\n assignedReplicaMap.clear();\n Set<Replica> inSyncReplicas = Sets.newHashSet();\n leaderReplicaIdOpt = Optional.empty();\n logManager.deleteLog(new TopicAndPartition(topic, partitionId));\n// error(String.format(\"Error deleting the log for partition <%s,%d>\", topic, partitionId), e);\n// Runtime.getRuntime().halt(1);\n return null;\n });\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\n }",
"@Override\n\tpublic void delete(String id) throws Exception {\n\t\tmenuMapper.deleteByKey(id);\n\t}",
"@Override\r\n\tpublic void delete(Plant plant) throws Exception {\n\r\n\t}",
"public void delete(int time) {\n\t\troot = delete(root, time);\n\t}",
"public void delete() {\n\n\t}",
"private Delete() {}",
"private Delete() {}",
"@Override\n\tpublic void deleteMenus(int parseInt) {\n\t\trd.deleteMenus(parseInt);\n\t}",
"public boolean delete(int menuId);",
"@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\n public void onClick(View v) {\n levelDialog.dismiss();\n }",
"@Override\n\tpublic void del() {\n\t\ttarget.del();\n\t}",
"public void deleteLUC() {\r\n/* 135 */ this._has_LUC = false;\r\n/* */ }",
"public void deleteCt() {\n\t\tlog.info(\"-----deleteCt()-----\");\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tlistCtKhoLeTraEx.remove(selected);\n\t\tthis.count = listCtKhoLeTraEx.size();\n\t\ttinhTien();\n\t}",
"public void delete() {\n\t\tcp.delete();\n\t}",
"void destroyLocalStore();",
"@Override\n public void deleteMenu(MenuDto menuDto)\n {\n Menu menu = new Menu();\n BeanUtils.copyProperties(menuDto, menu);\n menu.setStat(DataStatus.DISABLED);\n menuDao.updateMenu(menu);\n }",
"public void delete()\n\t{\n\t\tif(object.onDelete())\n\t\t{\n\t\t\tremoveFromRegion();\n\t\t}\n\t}",
"@Override\r\n\tpublic void delete(Player t) {\n\r\n\t}",
"private void ExitRoom() {\n stopFirestoreListenerService();\n\n SharedPreferences roomInfo = getSharedPreferences(\"PreviousRoom\", 0);\n SharedPreferences.Editor roomInfoEditor = roomInfo.edit();\n\n roomInfoEditor.putString(\"roomID\", \"\");\n\n roomInfoEditor.apply();\n\n SelectRoomActivity.recentRooms.remove(roomId);\n }",
"private void deleteRoomClicked() {\n postRequestDelete();\n sessionManager.removeRoom(sessionManager.getRoom(), sessionManager.getID());\n sessionManager.leaveRoom();\n }",
"private void noticedelete(String postid){\n reference2 = FirebaseDatabase.getInstance().getReference(\"Notice\").child(postid);\n reference2.removeValue();\n }",
"@Override\n\tpublic int delete() {\n\t\treturn 0;\n\t}",
"public void destory(){\n \n }",
"public void deleteMenuItem() {\n\t\tviewMenu();\n\n\t\t//Clean arraylist so that you can neatly add data from saved file\n\t\tmm.clear();\n\t\t\n\t\tString delID;\n\n\t\tScanner delSC = new Scanner(System.in);\n\n\t\tSystem.out.println(\"Menu ID to Delete : \");\n\t\tdelID = delSC.next();\n\t\t\n\t\ttry \n\t\t{\n\t\t\t// Get data contents from saved file\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n ObjectInputStream ois = new ObjectInputStream(fis);\n \n mm = (ArrayList<AlacarteMenu>) ois.readObject();\n mm.removeIf(menuItem -> menuItem.getMenuName().equals(delID.toUpperCase()));\n \n ois.close();\n fis.close();\n \n try {\n \tFileOutputStream fos = new FileOutputStream(\"menuData\");\n\t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t\t\toos.writeObject(mm);\n\t\t\t\toos.close();\n\t\t\t\tfos.close();\n }\n catch (IOException e) {\n \t\t\tSystem.out.println(\"Error deleting menu item!\");\n \t\t\treturn;\n \t\t}\n\t\t} \n\t\tcatch (IOException e) {\n\t\t\t//System.out.println(\"No menu items found!\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\treturn;\n\t\t}\n\t\tcatch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}",
"public void removeKey() {\n \tthis.key =null;\n \tdungeon.keyLeft().set(\"Key possession: No\\n\");\n }",
"public void removeAll()\r\n {\r\n if (level ==2)\r\n {\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(Ladder.class));\r\n removeObjects(getObjects(SmallPlatform.class));\r\n removeObjects(getObjects(Door.class)); \r\n removeObjects(getObjects(Tomato.class)); \r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(DeadTomato.class));\r\n player.setLocation();\r\n }\r\n if (level == 3)\r\n {\r\n removeObjects(getObjects(Tomato.class));\r\n removeObject(door2);\r\n removeObjects(getObjects(Canon.class));\r\n removeObjects(getObjects(CanonBullet.class));\r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(Pedestal.class));\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(DeadTomato.class));\r\n }\r\n if (level == 4)\r\n {\r\n removeObjects(getObjects(Platforms.class));\r\n removeObjects(getObjects(Text.class));\r\n removeObjects(getObjects(Bullet.class));\r\n removeObjects(getObjects(Ladder.class));\r\n removeObjects(getObjects(Door.class)); \r\n removeObjects(getObjects(Boss.class)); \r\n removeObjects(getObjects(Thorns.class));\r\n player.setLocation();\r\n }\r\n }",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"no goin\");\n\t\t\n\t}",
"int deleteByExample(MenuInfoExample example);",
"public void removeFromLevel(GameLevel g) {\r\n g.removeCollidable(this);\r\n g.removeSprite(this);\r\n }",
"public void deleteNode() {\n TreeNode pNode = this.getParentNode();\n int id = this.getSelfId();\n\n if (pNode != null) {\n pNode.deleteChildNode(id);\n }\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}",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"void destroy() {\n\t\tdespawnHitbox();\n\t\tinventory.clear();\n\t\texperience = 0;\n\t\tinvalid = true;\n\t}",
"@Override\n\tpublic void delete() {\n\n\t}",
"@Override\r\n\tpublic final void purge() {\r\n\t\tthis.members.clear();\r\n\t\tthis.age++;\r\n\t\tthis.gensNoImprovement++;\r\n\t\tthis.spawnsRequired = 0;\r\n\r\n\t}"
] | [
"0.7377329",
"0.67837626",
"0.6568177",
"0.65681624",
"0.6549172",
"0.6549172",
"0.64754283",
"0.6429012",
"0.6182619",
"0.6150713",
"0.61488664",
"0.6143662",
"0.6135399",
"0.60735357",
"0.584442",
"0.584442",
"0.584442",
"0.5684226",
"0.5659676",
"0.5598601",
"0.5598155",
"0.55907005",
"0.5553191",
"0.54403174",
"0.54359025",
"0.5425012",
"0.5418511",
"0.5391774",
"0.5390671",
"0.5388039",
"0.5377959",
"0.53620964",
"0.53620964",
"0.53620964",
"0.5361199",
"0.5313443",
"0.52899987",
"0.5274322",
"0.5270828",
"0.52562916",
"0.5250258",
"0.5247236",
"0.523238",
"0.5191571",
"0.5187345",
"0.5179992",
"0.51630265",
"0.51613456",
"0.5157923",
"0.51574653",
"0.5157234",
"0.51509047",
"0.51482457",
"0.51373845",
"0.5133945",
"0.51246274",
"0.51076376",
"0.510194",
"0.5101733",
"0.50956345",
"0.5090565",
"0.50861794",
"0.5082667",
"0.50810176",
"0.50771976",
"0.50771976",
"0.5070007",
"0.50600564",
"0.5059186",
"0.50543356",
"0.50536084",
"0.50535244",
"0.5044566",
"0.5042193",
"0.5041983",
"0.5036519",
"0.5018386",
"0.50118536",
"0.5001326",
"0.49978817",
"0.49937972",
"0.49920696",
"0.49839577",
"0.49825904",
"0.49819568",
"0.49697667",
"0.4967064",
"0.4965753",
"0.49626073",
"0.49624473",
"0.49619645",
"0.49569786",
"0.49569786",
"0.49569786",
"0.49569786",
"0.49569786",
"0.49569786",
"0.49551412",
"0.49510226",
"0.49477556"
] | 0.7605986 | 0 |
Get the toplevel configuration options for a game element definition. | Map<String, List<String>> getElementBaseConfigurationOptions(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static List<IConfigElement> getConfigElements()\n {\n\n List<IConfigElement> configElements = new ArrayList<IConfigElement>();\n\n if (ConfigReference.getInstance().isLoaded())\n {\n\n IConfigElement generalConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(Configuration.CATEGORY_GENERAL));\n IConfigElement blockConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(ConfigReference.CATEGORY_BLOCKIDS));\n\n while (generalConfigs.getChildElements().iterator().hasNext())\n {\n Object config = generalConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n\n while (blockConfigs.getChildElements().iterator().hasNext())\n {\n Object config = blockConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n }\n else\n {\n LogHelper.error(\"Attempted to retrieve config information from an unloaded config file.\");\n }\n \n return configElements;\n }",
"C getConfiguration();",
"Map<String, Class> getAuxiliaryElementConfigurationOptions(Map<String, String> baseConfigurationChoices);",
"private static Options getOptions() {\n Option inputOption = Option.builder(\"i\")\n .longOpt(\"input\")\n .hasArg()\n .argName(\"input file\")\n .required()\n .desc(\"The JSON input filename\")\n .build();\n Option outputOption = Option.builder(\"o\")\n .longOpt(\"output\")\n .hasArg()\n .argName(\"output file\")\n .required()\n .desc(\"The Drupal output filename\")\n .build();\n Option configOption = Option.builder(\"c\")\n .longOpt(\"config\")\n .hasArg()\n .argName(\"properties file\")\n .required()\n .desc(\"The properties file for containing Google credentials\")\n .build();\n Option helpOption = Option.builder(\"h\")\n .longOpt(\"help\")\n .desc(\"Print this message\")\n .build();\n\n Options options = new Options();\n options.addOption(inputOption);\n options.addOption(outputOption);\n options.addOption(configOption);\n options.addOption(helpOption);\n\n return options;\n }",
"public abstract Options getOptions();",
"Map getOptions();",
"ConfigBlock getConfig();",
"public ConfigurationSection getSettings() {\n\t\treturn plugin.getFileManager().getGroupSettings(name);\n\t}",
"public static List<String> getLevelUpOptions() {\n List<String> getOptions = new ArrayList<String>();\n\n for (LevelUpOption option : options){\n getOptions.add(option.getName());\n } //for\n\n return getOptions;\n\n }",
"public List<ATNConfig> elements() { return configs; }",
"private static List<GModuleConfiguration> getModuleConfigurationInstances(Object parent,\n\t\tGModuleDef moduleDef)\n\t{\n\t\tEList<? extends GPackageableElement> elements = null;\n\t\tif (parent instanceof GARPackage)\n\t\t{\n\t\t\telements = ((GARPackage) parent).gGetElements();\n\t\t}\n\t\tif ((elements == null) || (moduleDef == null))\n\t\t{\n\t\t\treturn Collections.emptyList();\n\t\t}\n\n\t\t// retrieve only module configuration instances having specified\n\t\t// definition\n\n\t\t// CHECKSTYLE:OFF\n\t\t// disabled checkstyles in order to be able to have an ArrayList\n\t\t// instance variable.\n\t\tArrayList<GModuleConfiguration> result = new ArrayList<GModuleConfiguration>();\n\t\t// CHECKSTYLE:ON\n\t\tfor (GPackageableElement element: elements)\n\t\t{\n\t\t\tif (GModuleConfiguration.class.isAssignableFrom(element.getClass()))\n\t\t\t{\n\t\t\t\tGModuleConfiguration moduleConfiguration = (GModuleConfiguration) element;\n\t\t\t\tif (moduleDef.equals(moduleConfiguration.gGetDefinition()))\n\t\t\t\t{\n\t\t\t\t\tresult.add(moduleConfiguration);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tresult.trimToSize();\n\t\treturn result;\n\t}",
"public IConfigurationElement getConfigurationElement() {\n\t\treturn fConfigurationElement;\n\t}",
"public p getConfig() {\n return c.K();\n }",
"go.micro.runtime.RuntimeOuterClass.ListOptions getOptions();",
"private static Configuration getConfig() {\n Configuration vgConfig = new Configuration();\n vgConfig.addBrowser(1200, 800, BrowserType.CHROME);\n vgConfig.addBrowser(1200, 800, BrowserType.FIREFOX);\n vgConfig.addBrowser(1200, 800, BrowserType.EDGE);\n vgConfig.addBrowser(1200, 800, BrowserType.SAFARI);\n vgConfig.addDeviceEmulation(DeviceName.iPhone_X, ScreenOrientation.PORTRAIT);\n return vgConfig;\n }",
"public abstract String getConfigElementName();",
"RootConfig getConfig();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"public Hashtable<String, Object> getOptions() {\n return options;\n }",
"protected IDialogSettings getDialogBoundsSettings() {\n\t\t\t\treturn JavaPlugin.getDefault().getDialogSettingsSection(\"JavadocWizardDialog\"); //$NON-NLS-1$\n\t\t\t}",
"public List getOptions() {\n\t\treturn currentOption;\n\t}",
"GameConfiguration getGameConfiguration();",
"@NonNull\n\t\tMap<String, String> getOptions();",
"@Configuration\n public Option[] configuration() {\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.core\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.api\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.jackrabbit.vault\",\"org.apache.jackrabbit.vault\");\n return new Option[]{\n baseConfiguration(),\n slingQuickstart(),\n logback(),\n // build artifact\n slingDistribution(),\n // testing\n defaultOsgiConfigs(),\n SlingOptions.webconsole(),\n CoreOptions.mavenBundle(\"org.apache.felix\", \"org.apache.felix.webconsole.plugins.ds\", \"2.0.8\"),\n junitBundles()\n };\n }",
"void loadConfig() {\r\n\t\tFile file = new File(\"open-ig-mapeditor-config.xml\");\r\n\t\tif (file.canRead()) {\r\n\t\t\ttry {\r\n\t\t\t\tElement root = XML.openXML(file);\r\n\t\t\t\t\r\n\t\t\t\t// reposition the window\r\n\t\t\t\tElement eWindow = XML.childElement(root, \"window\");\r\n\t\t\t\tif (eWindow != null) {\r\n\t\t\t\t\tsetBounds(\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"x\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"y\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"width\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"height\"))\r\n\t\t\t\t\t);\r\n\t\t\t\t\tsetExtendedState(Integer.parseInt(eWindow.getAttribute(\"state\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eLanguage = XML.childElement(root, \"language\");\r\n\t\t\t\tif (eLanguage != null) {\r\n\t\t\t\t\tString langId = eLanguage.getAttribute(\"id\");\r\n\t\t\t\t\tif (\"hu\".equals(langId)) {\r\n\t\t\t\t\t\tui.languageHu.setSelected(true);\r\n\t\t\t\t\t\tui.languageHu.doClick();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tui.languageEn.setSelected(true);\r\n\t\t\t\t\t\tui.languageEn.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSplitters = XML.childElement(root, \"splitters\");\r\n\t\t\t\tif (eSplitters != null) {\r\n\t\t\t\t\tsplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"main\")));\r\n\t\t\t\t\ttoolSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"preview\")));\r\n\t\t\t\t\tfeaturesSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"surfaces\")));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tElement eTabs = XML.childElement(root, \"tabs\");\r\n\t\t\t\tif (eTabs != null) {\r\n\t\t\t\t\tpropertyTab.setSelectedIndex(Integer.parseInt(eTabs.getAttribute(\"selected\")));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eLights = XML.childElement(root, \"lights\");\r\n\t\t\t\tif (eLights != null) {\r\n\t\t\t\t\talphaSlider.setValue(Integer.parseInt(eLights.getAttribute(\"preview\")));\r\n\t\t\t\t\talpha = Float.parseFloat(eLights.getAttribute(\"map\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eMode = XML.childElement(root, \"editmode\");\r\n\t\t\t\tif (eMode != null) {\r\n\t\t\t\t\tif (\"true\".equals(eMode.getAttribute(\"type\"))) {\r\n\t\t\t\t\t\tui.buildButton.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eView = XML.childElement(root, \"view\");\r\n\t\t\t\tif (eView != null) {\r\n\t\t\t\t\tui.viewShowBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"buildings\"))) {\r\n\t\t\t\t\t\tui.viewShowBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewSymbolicBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"minimap\"))) {\r\n\t\t\t\t\t\tui.viewSymbolicBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\trenderer.scale = Double.parseDouble(eView.getAttribute(\"zoom\"));\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewStandardFonts.setSelected(\"true\".equals(eView.getAttribute(\"standard-fonts\")));\r\n\t\t\t\t\tui.viewPlacementHints.setSelected(!\"true\".equals(eView.getAttribute(\"placement-hints\")));\r\n\t\t\t\t\tui.viewPlacementHints.doClick();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSurfaces = XML.childElement(root, \"custom-surface-names\");\r\n\t\t\t\tif (eSurfaces != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eSurfaces, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomSurfaceNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eBuildigns = XML.childElement(root, \"custom-building-names\");\r\n\t\t\t\tif (eBuildigns != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eBuildigns, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomBuildingNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tElement eFilter = XML.childElement(root, \"filter\");\r\n\t\t\t\tif (eFilter != null) {\r\n\t\t\t\t\tfilterSurface.setText(eFilter.getAttribute(\"surface\"));\r\n\t\t\t\t\tfilterBuilding.setText(eFilter.getAttribute(\"building\"));\r\n\t\t\t\t}\r\n\t\t\t\tElement eAlloc = XML.childElement(root, \"allocation\");\r\n\t\t\t\tif (eAlloc != null) {\r\n\t\t\t\t\tui.allocationPanel.availableWorkers.setText(eAlloc.getAttribute(\"worker\"));\r\n\t\t\t\t\tui.allocationPanel.strategies.setSelectedIndex(Integer.parseInt(eAlloc.getAttribute(\"strategy\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eRecent = XML.childElement(root, \"recent\");\r\n\t\t\t\tif (eRecent != null) {\r\n\t\t\t\t\tfor (Element r : XML.childrenWithName(eRecent, \"entry\")) {\r\n\t\t\t\t\t\taddRecentEntry(r.getAttribute(\"file\")); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Options getOptions(String optionsName);",
"protected OMElement getOAuthConfigElement() {\n return IdentityConfigParser.getInstance().getConfigElement(CONFIG_ELEM_OAUTH);\n }",
"public String getSearchForConfigElements()\n {\n return searchForConfigElements;\n }",
"public String[][] getOptions() {\r\n return options;\r\n }",
"public IConfigurationElement getCommandLineGeneratorElement();",
"public Configuration getActiveConfigurationFromGame(String game_title) {\n\n Configuration conf = new Configuration();\n\n for(Configuration c : configurations)\n if(c.getGame().getTitle().equals(game_title) && c.getSelected())\n conf = c;\n\n return conf;\n\n }",
"GeneralConfiguration getGeneralConfiguration();",
"static Menu settings ()\r\n \t{\r\n \t\tfinal byte width = 45;\r\n \t\tOption ram, rightHanded, dumpState, trackTime, assembly, compression;\r\n \t\tString label [] = {\"Which settings field would you\",\r\n \t\t\"like to modify?\"};\r\n \t\tMenu settings = new Menu (label, \"Change program settings.\", width);\r\n \t\t\r\n \t\t//Initialising options:\r\n \t\tassembly = new Editor (Settings.assembly, \"Assembly Definitions\");\r\n \t\trightHanded = new Toggle (Settings.rightHanded, \"RAM select\", \"Right\", \"Left\"); //True stands for right;\r\n \t\t//False for left.\r\n \t\tdumpState = new Toggle (Settings.dumpState, \"Data Recording\");\r\n \t\ttrackTime = new Toggle (Settings.trackTime, \"Time Tracking\");\r\n \t\tram = new PickNumber (Settings.rAMallowed, \"RAM Allowed\", \"bytes\");\r\n \t\tcompression = new Toggle (Settings.compressNBT, \"Schematic compression\");\r\n \t\t\r\n \t\t//Adding options to setting menu:\r\n \t\tsettings.addOption(assembly);\r\n \t\tsettings.addOption(rightHanded);\r\n \t\tsettings.addOption(dumpState);\r\n \t\tsettings.addOption(trackTime);\r\n \t\tsettings.addOption(ram);\r\n \t\t//Settings menu will display these options in the order they are added here.\r\n \t\t\r\n \t\t//TODO option for program name, target and programming language settings.\r\n \t\t\r\n \t\treturn settings;\r\n \t}",
"public Element getConfig() {\n Element out = new Element(getElementName(),MarsModel.NAMESPACE);\n out.setAttribute(\"enabled\",String.valueOf(enabled));\n out.setAttribute(\"xmlfile\",xmlfile.getPath());\n out.setAttribute(\"period\",String.valueOf(period));\n out.setAttribute(\"xslthref\",xslthref);\n return out;\n }",
"public Parameters getConfigParameters();",
"public GbossValueSet getOptions() {\n return BigrGbossData.getValueSetAlphabetized(ArtsConstants.VALUE_SET_PROCEDURE_HIERARCHY);\n }",
"public List<Opt> getOptions() {\n\t\treturn options;\n\t}",
"@Override\n\tpublic String[] getOptions() {\n\t\tVector<String> result = new Vector<String>();\n\n\t\tresult.add(\"-populationSize\");\n\t\tresult.add(\"\" + populationSize);\n\n\t\tresult.add(\"-initialMaxDepth\");\n\t\tresult.add(\"\" + maxDepth);\n\n\t\tCollections.addAll(result, super.getOptions());\n\n\t\treturn result.toArray(new String[result.size()]);\n\t}",
"public Collection getOptions() {\n return options;\n\n }",
"private static Options getOptions() {\n\t\tOptions options = new Options();\n\t\toptions.addOption(OptGenMode, \"generate\", false,\n\t\t\t\t\"generate private key sharing\");\n\t\toptions.addOption(\"h\", \"help\", false, \"Print help.\");\n\t\toptions.addOption(OptionBuilder.withType(Integer.class)\n\t\t\t\t.withLongOpt(\"shares\")\n\t\t\t\t.withDescription(\"number of shares to generate\").hasArg()\n\t\t\t\t.withArgName(\"int\").create(OptShares));\n\t\toptions.addOption(OptionBuilder.withType(Integer.class)\n\t\t\t\t.withLongOpt(\"threshold\")\n\t\t\t\t.withDescription(\"number of requires shares\").hasArg()\n\t\t\t\t.withArgName(\"int\").create(OptThreshold));\n\t\treturn options;\n\n\t}",
"public String getConfig();",
"public Config getConfig();",
"public Options getOptions() {\n return options;\n }",
"public List<Pair<SqlIdentifier, SqlNode>> options() {\n return options(optionList);\n }",
"protected Container completeConfigurationWindow() {\n\t\treturn null;\n\t}",
"public go.micro.runtime.RuntimeOuterClass.ListOptionsOrBuilder getOptionsOrBuilder() {\n return getOptions();\n }",
"protected Component getOptionsPanel() {\n return _options;\n }",
"public abstract String[] getOptions();",
"public final ANTLRv3Parser.elementOptions_return elementOptions() throws RecognitionException {\r\n ANTLRv3Parser.elementOptions_return retval = new ANTLRv3Parser.elementOptions_return();\r\n retval.start = input.LT(1);\r\n\r\n\r\n CommonTree root_0 = null;\r\n\r\n Token char_literal118=null;\r\n Token char_literal120=null;\r\n Token char_literal121=null;\r\n Token char_literal123=null;\r\n Token char_literal125=null;\r\n ANTLRv3Parser.qid_return qid119 =null;\r\n\r\n ANTLRv3Parser.option_return option122 =null;\r\n\r\n ANTLRv3Parser.option_return option124 =null;\r\n\r\n\r\n CommonTree char_literal118_tree=null;\r\n CommonTree char_literal120_tree=null;\r\n CommonTree char_literal121_tree=null;\r\n CommonTree char_literal123_tree=null;\r\n CommonTree char_literal125_tree=null;\r\n RewriteRuleTokenStream stream_79=new RewriteRuleTokenStream(adaptor,\"token 79\");\r\n RewriteRuleTokenStream stream_77=new RewriteRuleTokenStream(adaptor,\"token 77\");\r\n RewriteRuleTokenStream stream_76=new RewriteRuleTokenStream(adaptor,\"token 76\");\r\n RewriteRuleSubtreeStream stream_qid=new RewriteRuleSubtreeStream(adaptor,\"rule qid\");\r\n RewriteRuleSubtreeStream stream_option=new RewriteRuleSubtreeStream(adaptor,\"rule option\");\r\n try {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:284:2: ( '<' qid '>' -> ^( OPTIONS qid ) | '<' option ( ';' option )* '>' -> ^( OPTIONS ( option )+ ) )\r\n int alt59=2;\r\n int LA59_0 = input.LA(1);\r\n\r\n if ( (LA59_0==77) ) {\r\n int LA59_1 = input.LA(2);\r\n\r\n if ( (LA59_1==TOKEN_REF) ) {\r\n int LA59_2 = input.LA(3);\r\n\r\n if ( (LA59_2==73||LA59_2==79) ) {\r\n alt59=1;\r\n }\r\n else if ( (LA59_2==LABEL_ASSIGN) ) {\r\n alt59=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 59, 2, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else if ( (LA59_1==RULE_REF) ) {\r\n int LA59_3 = input.LA(3);\r\n\r\n if ( (LA59_3==73||LA59_3==79) ) {\r\n alt59=1;\r\n }\r\n else if ( (LA59_3==LABEL_ASSIGN) ) {\r\n alt59=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 59, 3, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 59, 1, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return retval;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 59, 0, input);\r\n\r\n throw nvae;\r\n\r\n }\r\n switch (alt59) {\r\n case 1 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:284:4: '<' qid '>'\r\n {\r\n char_literal118=(Token)match(input,77,FOLLOW_77_in_elementOptions2046); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_77.add(char_literal118);\r\n\r\n\r\n pushFollow(FOLLOW_qid_in_elementOptions2048);\r\n qid119=qid();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_qid.add(qid119.getTree());\r\n\r\n char_literal120=(Token)match(input,79,FOLLOW_79_in_elementOptions2050); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_79.add(char_literal120);\r\n\r\n\r\n // AST REWRITE\r\n // elements: qid\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 284:21: -> ^( OPTIONS qid )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:284:24: ^( OPTIONS qid )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(OPTIONS, \"OPTIONS\")\r\n , root_1);\r\n\r\n adaptor.addChild(root_1, stream_qid.nextTree());\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n case 2 :\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:285:4: '<' option ( ';' option )* '>'\r\n {\r\n char_literal121=(Token)match(input,77,FOLLOW_77_in_elementOptions2068); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_77.add(char_literal121);\r\n\r\n\r\n pushFollow(FOLLOW_option_in_elementOptions2070);\r\n option122=option();\r\n\r\n state._fsp--;\r\n if (state.failed) return retval;\r\n if ( state.backtracking==0 ) stream_option.add(option122.getTree());\r\n\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:285:15: ( ';' option )*\r\n loop58:\r\n do {\r\n int alt58=2;\r\n int LA58_0 = input.LA(1);\r\n\r\n if ( (LA58_0==76) ) {\r\n alt58=1;\r\n }\r\n\r\n\r\n switch (alt58) {\r\n \tcase 1 :\r\n \t // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:285:16: ';' option\r\n \t {\r\n \t char_literal123=(Token)match(input,76,FOLLOW_76_in_elementOptions2073); if (state.failed) return retval; \r\n \t if ( state.backtracking==0 ) stream_76.add(char_literal123);\r\n\r\n\r\n \t pushFollow(FOLLOW_option_in_elementOptions2075);\r\n \t option124=option();\r\n\r\n \t state._fsp--;\r\n \t if (state.failed) return retval;\r\n \t if ( state.backtracking==0 ) stream_option.add(option124.getTree());\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop58;\r\n }\r\n } while (true);\r\n\r\n\r\n char_literal125=(Token)match(input,79,FOLLOW_79_in_elementOptions2079); if (state.failed) return retval; \r\n if ( state.backtracking==0 ) stream_79.add(char_literal125);\r\n\r\n\r\n // AST REWRITE\r\n // elements: option\r\n // token labels: \r\n // rule labels: retval\r\n // token list labels: \r\n // rule list labels: \r\n // wildcard labels: \r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = root_0;\r\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\r\n\r\n root_0 = (CommonTree)adaptor.nil();\r\n // 285:33: -> ^( OPTIONS ( option )+ )\r\n {\r\n // C:/dev/antlr.github/antlr/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g:285:36: ^( OPTIONS ( option )+ )\r\n {\r\n CommonTree root_1 = (CommonTree)adaptor.nil();\r\n root_1 = (CommonTree)adaptor.becomeRoot(\r\n (CommonTree)adaptor.create(OPTIONS, \"OPTIONS\")\r\n , root_1);\r\n\r\n if ( !(stream_option.hasNext()) ) {\r\n throw new RewriteEarlyExitException();\r\n }\r\n while ( stream_option.hasNext() ) {\r\n adaptor.addChild(root_1, stream_option.nextTree());\r\n\r\n }\r\n stream_option.reset();\r\n\r\n adaptor.addChild(root_0, root_1);\r\n }\r\n\r\n }\r\n\r\n\r\n retval.tree = root_0;\r\n }\r\n\r\n }\r\n break;\r\n\r\n }\r\n retval.stop = input.LT(-1);\r\n\r\n\r\n if ( state.backtracking==0 ) {\r\n\r\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\r\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\r\n\r\n }\r\n\r\n finally {\r\n \t// do for sure before leaving\r\n }\r\n return retval;\r\n }",
"public List<HelpOption> getOptions() {\n\n return byShortName.values().stream().flatMap(list -> {\n\n Stream<HelpOption> options = list.stream();\n\n // suppress short options if 2 or more long options resolve into a single short opt.\n // although if one of those options is 1 char long, it can be exposed as a short option...\n if (list.size() > 1) {\n\n boolean[] shortCounter = new boolean[1];\n\n options = options.map(o -> {\n\n if (o.isLongNameAllowed()) {\n o.setShortNameAllowed(false);\n } else if (shortCounter[0]) {\n throw new IllegalStateException(\"Conflicting short option name: \" + o.getOption().getShortName());\n } else {\n shortCounter[0] = true;\n }\n\n return o;\n });\n }\n\n return options;\n }).sorted().collect(Collectors.toList());\n }",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"java.util.Map<String, String>\n getOptionsMap();",
"java.util.Map<String, String>\n getOptionsMap();",
"java.util.Map<String, String>\n getOptionsMap();",
"public abstract Composite getConfigurationGUI(Composite parent,\n\t\t\tZoomingInterfaceManager<Graph, GraphItem> gm, ExpandItem ei);",
"go.micro.runtime.RuntimeOuterClass.ListOptionsOrBuilder getOptionsOrBuilder();",
"@Override\n\tpublic Properties getOptions() {\n\t\treturn options;\n\t}",
"public LsOptions getOptions() {\n return options;\n }",
"public Iterator getOptions() {\n synchronized (options) {\n return Collections.unmodifiableList(new ArrayList(options)).iterator();\n }\n }",
"public static ApplicationOptions getOptions (){\n\t\treturn _applicationOptions;\n\t}",
"@Nested\n public GosuDocOptions getGosuDocOptions() {\n return _gosuDocOptions;\n }",
"PackageConfiguration getPackageConfiguration();",
"public List<ConfigurationInner> configurations() {\n return this.innerProperties() == null ? null : this.innerProperties().configurations();\n }",
"private static Options makeOptions() {\n\t\tOptions options = new Options();\n\n\t\tOption configOption = new Option(\"c\", \"config\", true, \"configuration file path\");\n\t\tconfigOption.setRequired(false);\n\t\tconfigOption.setArgName(\"file\");\n\t\toptions.addOption(configOption);\n\n\t\tOption debugOption = new Option(\"d\", \"debug\", false, \"debug mode\");\n\t\tdebugOption.setRequired(false);\n\t\toptions.addOption(debugOption);\n\n\t\tOption timingOption = new Option(\"t\", \"timing\", false, \"timing mode\");\n\t\ttimingOption.setRequired(false);\n\t\toptions.addOption(timingOption);\n\n\t\treturn options;\n\t}",
"@SuppressWarnings(\"rawtypes\")\n\tpublic abstract Enumeration listOptions();",
"private Map<String, Object> getDefaultConfiguration() {\n JavaFormattingOptions options = JavaFormattingOptions.createDefault();\n options.ClassBraceStyle = BraceStyle.EndOfLine;\n options.InterfaceBraceStyle = BraceStyle.EndOfLine;\n options.EnumBraceStyle = BraceStyle.EndOfLine;\n\n return ProcyonBuilderConfiguration\n .getBuilderConfiguration()\n .uploadClassReference(true)\n .excludeNestedTypes(false)\n .flattenSwitchBlocks(true)\n .forceExplicitImports(true)\n .forceExplicitTypeArguments(true)\n .setLanguage(new JavaLanguage())\n .setByteCodeOutputOptions(new BytecodeOutputOptions())\n .setJavaFormatterOptions(options)\n .showSyntheticMembers(false)\n .alwaysGenerateExceptionVariableForCatchBlocks(true)\n .includeErrorDiagnostics(false)\n .includeLineNumbersInByteCode(false)\n .retainRedundantCasts(false)\n .retainPointlessSwitches(true)\n .unicodeOutputEnabled(true)\n .showDebugLineNumbers(false)\n .mergeVariables(false)\n .simplifyMemberReferences(true)\n .disableForEachTransforms(false)\n .setForceFullyQualifiedReferences(false)\n .getConfiguration();\n }",
"List<String> getJavaOptions();",
"public Configuration parse() {\n final CommandLineParser parser = new BasicParser();\n final CommandLine cmd;\n\n try {\n cmd = parser.parse(options, args);\n\n if (cmd.hasOption(\"h\"))\n return help();\n\n if (cmd.hasOption(\"f\")) {\n return configurationFromFile(cmd.getOptionValue(\"f\"));\n } else if (cmd.hasOption(\"u\")) {\n return configurationFromUrl(cmd.getOptionValue(\"u\"));\n } else if (0 < args.length) {\n logback.warn(\"Unknown parameter: \" + args[0]);\n return help();\n } else {\n return configurationFromResource();\n }\n\n } catch (final ParseException e) {\n logback.error(\"Failed to parse command line properties\", e);\n return help();\n }\n }",
"@Override\n\tpublic YamlDocumentOptions options() {\n\t\treturn super.options();\n\t}",
"public Enumeration listOptions() {\n\n\t\tVector newVector = new Vector(6);\n\n\t\tnewVector\n\t\t\t\t.addElement(new Option(\n\t\t\t\t\t\t\"\\tSets search method for subset evaluators.\\n\"\n\t\t\t\t\t\t\t\t+ \"\\teg. -S \\\"weka.attributeSelection.BestFirst -S 8\\\"\",\n\t\t\t\t\t\t\"S\", 1,\n\t\t\t\t\t\t\"-S <\\\"Name of search class [search options]\\\">\"));\n\n\t\tnewVector\n\t\t\t\t.addElement(new Option(\n\t\t\t\t\t\t\"\\tSets attribute/subset evaluator.\\n\"\n\t\t\t\t\t\t\t\t+ \"\\teg. -E \\\"weka.attributeSelection.CfsSubsetEval -L\\\"\",\n\t\t\t\t\t\t\"E\", 1,\n\t\t\t\t\t\t\"-E <\\\"Name of attribute/subset evaluation class [evaluator options]\\\">\"));\n\n\t\tif ((m_ASEvaluator != null) && (m_ASEvaluator instanceof OptionHandler)) {\n\t\t\tEnumeration enu = ((OptionHandler) m_ASEvaluator).listOptions();\n\n\t\t\tnewVector.addElement(new Option(\"\", \"\", 0, \"\\nOptions specific to \"\n\t\t\t\t\t+ \"evaluator \" + m_ASEvaluator.getClass().getName() + \":\"));\n\t\t\twhile (enu.hasMoreElements()) {\n\t\t\t\tnewVector.addElement((Option) enu.nextElement());\n\t\t\t}\n\t\t}\n\n\t\tif ((m_ASSearch != null) && (m_ASSearch instanceof OptionHandler)) {\n\t\t\tEnumeration enu = ((OptionHandler) m_ASSearch).listOptions();\n\n\t\t\tnewVector.addElement(new Option(\"\", \"\", 0, \"\\nOptions specific to \"\n\t\t\t\t\t+ \"search \" + m_ASSearch.getClass().getName() + \":\"));\n\t\t\twhile (enu.hasMoreElements()) {\n\t\t\t\tnewVector.addElement((Option) enu.nextElement());\n\t\t\t}\n\t\t}\n\t\treturn newVector.elements();\n\t}",
"@Override\n\tpublic Map<String, String> getConfig() {\n\t\treturn null;\n\t}",
"public Configuration getCfg() {\n return cfg;\n }",
"public Map<String, Object> getSelectedConfiguration() {\n\t\treturn loader.<TemplateController>getController().getSelectedConfiguration();\n\t}",
"IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();",
"@Override\n public Enumeration<Option> listOptions() {\n\n Vector<Option> result = new Vector<Option>();\n\n result.addElement(new Option(\"\\tThe method used to determine best split:\\n\"\n + \"\\t1. Gini; 2. MaxBEPP; 3. SSBEPP\", \"M\", 1, \"-M [1|2|3]\"));\n\n result.addElement(new Option(\n \"\\tThe constant used in the tozero() hueristic\", \"K\", 1,\n \"-K [kBEPPConstant]\"));\n\n result.addElement(new Option(\n \"\\tScales the value of K to the size of the bags\", \"L\", 0, \"-L\"));\n\n result.addElement(new Option(\n \"\\tUse unbiased estimate rather than BEPP, i.e. UEPP.\", \"U\", 0, \"-U\"));\n\n result\n .addElement(new Option(\n \"\\tUses the instances present for the bag counts at each node when splitting,\\n\"\n + \"\\tweighted according to 1 - Ba ^ n, where n is the number of instances\\n\"\n + \"\\tpresent which belong to the bag, and Ba is another parameter (default 0.5)\",\n \"B\", 0, \"-B\"));\n\n result\n .addElement(new Option(\n \"\\tMultiplier for count influence of a bag based on the number of its instances\",\n \"Ba\", 1, \"-Ba [multiplier]\"));\n\n result\n .addElement(new Option(\n \"\\tThe number of randomly selected attributes to split\\n\\t-1: All attributes\\n\\t-2: square root of the total number of attributes\",\n \"A\", 1, \"-A [number of attributes]\"));\n\n result\n .addElement(new Option(\n \"\\tThe number of top scoring attribute splits to randomly pick from\\n\\t-1: All splits (completely random selection)\\n\\t-2: square root of the number of splits\",\n \"An\", 1, \"-An [number of splits]\"));\n\n result.addAll(Collections.list(super.listOptions()));\n\n return result.elements();\n }",
"public Map<String, Object> getComponentConfiguration() {\n\t\tSystem.out.println(\"WordReader.getComponentConfiguration\");\n\t\treturn null;\n\t}",
"public Object\tgetConfiguration();",
"public abstract IParser[] getParserOptionSet();",
"private HashMap initCommonOpts() {\n HashMap _opts = new HashMap();\n \n _opts.put(\"help\", \n new Option(\"h\", \"help\", false, \"Get help.\")\n );\n _opts.put(\"version\",\n new Option(\"v\", \"version\", false, \"Print version number and exit.\")\n );\n _opts.put(\"system\",\n OptionBuilder\n .withLongOpt( \"system\" )\n .withDescription(\"Use the given filename or system identifier to find the DTD. \" +\n \"This could be a relative \" +\n \"pathname, if the DTD exists in a file on your system, or an HTTP URL. \" +\n \"The '-s' switch is optional. \" +\n \"Note that if a catalog is in use, what looks like a filename might \" +\n \"resolve to something else entirely.\")\n .hasArg()\n .withArgName(\"system-id\")\n .create('s')\n );\n _opts.put(\"doc\",\n OptionBuilder\n .withLongOpt( \"doc\" )\n .withDescription(\"Specify an XML document used to find the DTD. This could be just a \\\"stub\\\" \" +\n \"file, that contains nothing other than the doctype declaration and a root element. \" +\n \"This file doesn't need to be valid according to the DTD.\")\n .hasArg()\n .withArgName(\"xml-file\")\n .create('d')\n );\n _opts.put(\"public\",\n OptionBuilder\n .withLongOpt( \"public\" )\n .withDescription(\"Use the given public identifier to find the DTD. This would be used in \" +\n \"conjunction with an OASIS catalog file.\")\n .hasArg()\n .withArgName(\"public-id\")\n .create('p')\n );\n _opts.put(\"catalog\",\n OptionBuilder\n .withLongOpt( \"catalog\" )\n .withDescription(\"Specify a file to use as the OASIS catalog, to resolve system and \" +\n \"public identifiers.\")\n .hasArg()\n .withArgName(\"catalog-file\")\n .create('c')\n );\n _opts.put(\"title\",\n OptionBuilder\n .withLongOpt( \"title\" )\n .withDescription(\"Specify the title of this DTD.\")\n .hasArg()\n .withArgName(\"dtd-title\")\n .create('t')\n );\n _opts.put(\"roots\",\n OptionBuilder\n .withLongOpt(\"roots\")\n .withDescription(\"Specify the set of possible root elements for documents conforming \" +\n \"to this DTD.\")\n .hasArg()\n .withArgName(\"roots\")\n .create('r')\n );\n _opts.put(\"docproc\",\n OptionBuilder\n .withLongOpt(\"docproc\")\n .withDescription(\"Command to use to process structured comments. This command should \" +\n \"take its input on stdin, and produce valid XHTML on stdout.\")\n .hasArg()\n .withArgName(\"cmd\")\n .create()\n );\n _opts.put(\"markdown\",\n OptionBuilder\n .withLongOpt(\"markdown\")\n .withDescription(\"Causes structured comments to be processed as Markdown. \" +\n \"Requires pandoc to be installed on the system, and accessible to this process. \" +\n \"Same as \\\"--docproc pandoc\\\". If you want to supply your own Markdown \" +\n \"processor, or any other processor, use the --docproc option.\")\n .create('m')\n );\n _opts.put(\"param\",\n OptionBuilder\n .withLongOpt(\"param\")\n .hasArgs(2)\n .withValueSeparator()\n .withDescription(\"Parameter name & value to pass to the XSLT. You can use multiple \" +\n \"instances of this option.\")\n .withArgName( \"param=value\" )\n .create('P')\n );\n\n /* \n The 'q' here is a hack to get around some weird behavior that I can't figure out.\n If the 'q' is omitted, this option just doesn't work.\n */\n _opts.put(\"debug\",\n OptionBuilder\n .withLongOpt(\"debug\")\n .withDescription(\"Turns on debugging.\")\n .create('q')\n );\n\n return _opts;\n }",
"public XmlElement getConfig()\n {\n return m_xml;\n }",
"@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }",
"@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }",
"@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }",
"private JPanel getConfigInfo() {\r\n\t\tif (configInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints14 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints14.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints14.gridy = 0;\r\n\t\t\tgridBagConstraints14.weightx = 1.0;\r\n\t\t\tgridBagConstraints14.weighty = 1.0;\r\n\t\t\tgridBagConstraints14.gridx = 0;\r\n\t\t}\r\n\t\treturn configInfo;\r\n\t}",
"protected CLOptionDescriptor[] createCLOptions()\n {\n //TODO: localise\n final CLOptionDescriptor options[] = new CLOptionDescriptor[ 13 ];\n\n options[0] =\n new CLOptionDescriptor( \"help\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n HELP_OPT,\n \"display this help message\",\n INFO_OPT_INCOMPAT );\n \n options[1] =\n new CLOptionDescriptor( \"file\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n FILE_OPT,\n \"the build file.\" );\n\n options[2] =\n new CLOptionDescriptor( \"log-level\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LOG_LEVEL_OPT,\n \"the verbosity level at which to log messages. \" +\n \"(DEBUG|INFO|WARN|ERROR|FATAL_ERROR)\",\n LOG_OPT_INCOMPAT );\n\n options[3] =\n new CLOptionDescriptor( \"quiet\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n QUIET_OPT,\n \"equivelent to --log-level=FATAL_ERROR\",\n LOG_OPT_INCOMPAT );\n\n options[4] =\n new CLOptionDescriptor( \"verbose\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n VERBOSE_OPT,\n \"equivelent to --log-level=INFO\",\n LOG_OPT_INCOMPAT );\n\n options[5] =\n new CLOptionDescriptor( \"listener\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LISTENER_OPT,\n \"the listener for log events.\" );\n\n options[6] =\n new CLOptionDescriptor( \"version\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n VERSION_OPT,\n \"display version\",\n INFO_OPT_INCOMPAT );\n\n options[7] =\n new CLOptionDescriptor( \"bin-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n BIN_DIR_OPT,\n \"the listener for log events.\" );\n\n options[8] =\n new CLOptionDescriptor( \"lib-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n LIB_DIR_OPT,\n \"the lib directory to scan for jars/zip files.\" );\n\n options[9] =\n new CLOptionDescriptor( \"task-lib-dir\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n TASKLIB_DIR_OPT,\n \"the task lib directory to scan for .tsk files.\" );\n options[10] =\n new CLOptionDescriptor( \"incremental\",\n CLOptionDescriptor.ARGUMENT_DISALLOWED,\n INCREMENTAL_OPT,\n \"Run in incremental mode\" );\n options[11] =\n new CLOptionDescriptor( \"ant-home\",\n CLOptionDescriptor.ARGUMENT_REQUIRED,\n HOME_DIR_OPT,\n \"Specify ant home directory\" );\n options[12] =\n new CLOptionDescriptor( \"define\",\n CLOptionDescriptor.ARGUMENTS_REQUIRED_2,\n DEFINE_OPT,\n \"Define a variable (ie -Dfoo=var)\" );\n return options;\n }",
"public String getOptions() {\n return this.options;\n }",
"Set<? extends Doclet.Option> getSupportedOptions();",
"public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}",
"@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }",
"@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }",
"@Override\n\n public java.util.Map<String, String> getOptionsMap() {\n return internalGetOptions().getMap();\n }"
] | [
"0.5665131",
"0.5465306",
"0.54507405",
"0.54486734",
"0.5438303",
"0.5421884",
"0.5416358",
"0.5410427",
"0.53788096",
"0.5369639",
"0.5361291",
"0.53342694",
"0.52638495",
"0.5252974",
"0.52387214",
"0.52245325",
"0.5207602",
"0.52030057",
"0.52030057",
"0.52030057",
"0.52030057",
"0.52030057",
"0.52030057",
"0.52030057",
"0.5186247",
"0.5138215",
"0.5129604",
"0.5126334",
"0.5122129",
"0.5108681",
"0.5106085",
"0.5104956",
"0.51002127",
"0.5092282",
"0.50882447",
"0.5080953",
"0.50772995",
"0.506946",
"0.5058219",
"0.50437796",
"0.5018075",
"0.50152117",
"0.5013224",
"0.49890205",
"0.49880382",
"0.49771285",
"0.49732918",
"0.49676108",
"0.49623764",
"0.4943398",
"0.49215707",
"0.49173552",
"0.4916117",
"0.49140707",
"0.49126768",
"0.4894644",
"0.48896536",
"0.48896536",
"0.48896536",
"0.48896536",
"0.4885095",
"0.4885095",
"0.4885095",
"0.4880185",
"0.48788556",
"0.48660418",
"0.48620674",
"0.48538777",
"0.4850568",
"0.48449132",
"0.4841071",
"0.48114255",
"0.48036435",
"0.48018336",
"0.47953585",
"0.4786644",
"0.478225",
"0.47817922",
"0.47688013",
"0.47589514",
"0.47554109",
"0.4754856",
"0.4750162",
"0.47462562",
"0.47356194",
"0.473357",
"0.47193947",
"0.47185504",
"0.47183424",
"0.4715594",
"0.4715594",
"0.4715594",
"0.47049865",
"0.4701802",
"0.47002202",
"0.46983126",
"0.4694296",
"0.46930718",
"0.46930718",
"0.46930718"
] | 0.6570639 | 0 |
Get auxiliary configuration elements for a game element, based on toplevel configuration choices. | Map<String, Class> getAuxiliaryElementConfigurationOptions(Map<String, String> baseConfigurationChoices); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static List<IConfigElement> getConfigElements()\n {\n\n List<IConfigElement> configElements = new ArrayList<IConfigElement>();\n\n if (ConfigReference.getInstance().isLoaded())\n {\n\n IConfigElement generalConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(Configuration.CATEGORY_GENERAL));\n IConfigElement blockConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(ConfigReference.CATEGORY_BLOCKIDS));\n\n while (generalConfigs.getChildElements().iterator().hasNext())\n {\n Object config = generalConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n\n while (blockConfigs.getChildElements().iterator().hasNext())\n {\n Object config = blockConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n }\n else\n {\n LogHelper.error(\"Attempted to retrieve config information from an unloaded config file.\");\n }\n \n return configElements;\n }",
"Map<String, List<String>> getElementBaseConfigurationOptions();",
"public List<ATNConfig> elements() { return configs; }",
"public abstract String getConfigElementName();",
"public String getSearchForConfigElements()\n {\n return searchForConfigElements;\n }",
"@SuppressWarnings(\"unchecked\")\n private static List<Appliance> parseApplianceConfiguration() {\n List<Appliance> appliances = new ArrayList<>();\n SAXReader reader = new SAXReader();\n try {\n Document document = reader.read(new File(ConfigUtil.getConfigFilesDir() +\n File.separator + CONFIG_FILE));\n // Get the root node (appliances)\n Element root = document.getRootElement();\n // Get each sub-node (appliance) for the root\n List<Element> nodes = root.elements();\n for (Element node : nodes) {\n appliances.add(parseAppliance(node));\n }\n } catch (DocumentException e) {\n logger.warn(\"Error at parsing {}.\", CONFIG_FILE);\n }\n\n return appliances;\n }",
"static Configuration getConfig(Element element, Alliance alliance, String gameSpecificMessage) {\n if (gameSpecificMessage.length() != 3) {\n return Configuration.UNKNOWN;\n }\n char value = gameSpecificMessage.charAt(element.ordinal());\n switch (value) {\n case 'L':\n // fallthrough\n case 'l':\n switch (alliance) {\n case RED:\n return Configuration.RED_LEFT;\n case BLUE:\n return Configuration.RED_RIGHT;\n default:\n return Configuration.UNKNOWN;\n }\n case 'R':\n // fallthrough\n case 'r':\n switch (alliance) {\n case RED:\n return Configuration.RED_RIGHT;\n case BLUE:\n return Configuration.RED_LEFT;\n default:\n return Configuration.UNKNOWN;\n }\n default:\n return Configuration.UNKNOWN;\n }\n }",
"public GUIQueueElement getGuiElements(){\n\t\t//retrieve the needed sets\n\t\tSet<Drone> drones = this.getDroneSet();\n//\t\tSet<Block> blocks = this.getBlockSet(); //no blocks in the world\n\t\tSet<WorldAirport> airports = this.getAirportSet();\n\t\tSet<WorldDelivery> deliveries = this.getPackageService().getSubmittedWorldDeliveries();\n\n\t\t//generate the necessary data\n\t\tMap<String, DroneGuiState> droneGuiQueueElem = getDroneGuiStates(drones);\n\t\tSet<CubeGuiState> cubeGuiQueueElem = new HashSet<>(); //there are no blocks anymore\n\t\tSet<AirportGuiState> airportGuiQueueElem = getAirportGuiStates(airports);\n\t\tSet<DeliveryGuiState> deliveryGuiQueueElem = getDeliveryGuiStates(deliveries);\n\n\t\t//create a new entry for the queue\n\t\treturn new GUIQueueElement() {\n\t\t\t@Override\n\t\t\tpublic Map<String, DroneGuiState> getDroneStates() {\n\t\t\t\treturn droneGuiQueueElem;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Set<CubeGuiState> getCubePositions() {\n\t\t\t\treturn cubeGuiQueueElem;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Set<AirportGuiState> getAirports() {\n\t\t\t\treturn airportGuiQueueElem;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Set<DeliveryGuiState> getDeliveries(){\n\t\t\t\treturn deliveryGuiQueueElem;\n\t\t\t}\n\t\t};\n\n\t}",
"public Element getData()\n {\n // Ask the generic configuration's holder to export the list of specific\n // configuration's data.\n ArrayList<Element> specific_data = this._toXml_();\n\n // Build the specific configuration.\n Element generic = new Element(\"data\");\n for (int index = 0; index < specific_data.size(); index++)\n {\n generic.addContent(specific_data.get(index));\n }\n\n return generic;\n }",
"private static List<GModuleConfiguration> getModuleConfigurationInstances(Object parent,\n\t\tGModuleDef moduleDef)\n\t{\n\t\tEList<? extends GPackageableElement> elements = null;\n\t\tif (parent instanceof GARPackage)\n\t\t{\n\t\t\telements = ((GARPackage) parent).gGetElements();\n\t\t}\n\t\tif ((elements == null) || (moduleDef == null))\n\t\t{\n\t\t\treturn Collections.emptyList();\n\t\t}\n\n\t\t// retrieve only module configuration instances having specified\n\t\t// definition\n\n\t\t// CHECKSTYLE:OFF\n\t\t// disabled checkstyles in order to be able to have an ArrayList\n\t\t// instance variable.\n\t\tArrayList<GModuleConfiguration> result = new ArrayList<GModuleConfiguration>();\n\t\t// CHECKSTYLE:ON\n\t\tfor (GPackageableElement element: elements)\n\t\t{\n\t\t\tif (GModuleConfiguration.class.isAssignableFrom(element.getClass()))\n\t\t\t{\n\t\t\t\tGModuleConfiguration moduleConfiguration = (GModuleConfiguration) element;\n\t\t\t\tif (moduleDef.equals(moduleConfiguration.gGetDefinition()))\n\t\t\t\t{\n\t\t\t\t\tresult.add(moduleConfiguration);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tresult.trimToSize();\n\t\treturn result;\n\t}",
"public IConfigurationElement getConfigurationElement() {\n\t\treturn fConfigurationElement;\n\t}",
"public static List<String> getLevelUpOptions() {\n List<String> getOptions = new ArrayList<String>();\n\n for (LevelUpOption option : options){\n getOptions.add(option.getName());\n } //for\n\n return getOptions;\n\n }",
"private List<MongoElement> elementsUnder (String documentName) {\n List<MongoElement> elements = new ArrayList<>();\n\n genElements.forEach(consumer -> {\n if (consumer.parent.equals(documentName))\n elements.add(consumer);\n });\n\n return elements;\n }",
"@Override\n\tpublic AllegationsElement Elements() {\n\t\treturn new AllegationsElement(driver);\n\t}",
"public Element toXml()\n {\n // Create the configuration.\n Element configuration = new Element(\"configuration\");\n configuration.setAttribute(\"name\", this.__profile_name);\n configuration.setAttribute(\"target\", this.getAddOnName());\n\n // Add the generic and the specialized configuration.\n configuration.addContent(this.getData());\n\n return configuration;\n }",
"public NestedSet<Artifact> auxiliary() {\n return auxiliary;\n }",
"private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }",
"Map<String, Element> getElements();",
"public static ArrayList extractSettings(int index) {\r\n\t\tArrayList al = new ArrayList ();\r\n\t\tString temp = \"\";\r\n\t\t\r\n\t\t//Extract the settings from the Main ini file.\r\n\t\tfor (int i = index + 1; i < Main.ini.size(); i++) {\r\n\t\t\ttemp = (String) Main.ini.get(i);\r\n\t\t\tif (!temp.equals(\"\")) {\r\n\t\t\t\tal.add(temp);\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn al;\r\n\t}",
"public static ArrayList<ConfigurationItem> getAllConfigurationItems() {\n\t\tString path = CONFIGURATION;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\tArrayList<ConfigurationItem> items = getConfigItems(response);\n\t\treturn items;\n\t}",
"private static void initConfig() {\n /*\n * Human IO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Joysticks\n */\n {\n addToConstants(\"joysticks.left\", 0);\n addToConstants(\"joysticks.right\", 1);\n addToConstants(\"joysticks.operator\", 2);\n }\n\n /*\n * Buttons and axis\n */\n {\n }\n }\n }\n\n /*\n * RobotIO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Kicker\n */\n addToConstantsA(\"kicker.encoder.distPerPulse\", 360.0 / 1024.0);\n }\n }\n\n /*\n * Chassis\n */\n {\n /*\n * Constants\n */\n {\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Kicker\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"kicker.kick.normal\", 1.75);\n addToConstants(\"kicker.kick.timeout\", 0.75);\n\n addToConstants(\"kicker.shaken.voltage\", -0.3316);\n addToConstants(\"kicker.shaken.tolerance\", 3.0);\n\n addToConstants(\"kicker.zero.voltage\", 0.8);\n addToConstants(\"kicker.zero.duration\", 0.75);\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Gripper\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"gripper.collection.voltage\", 0.82);\n addToConstants(\"gripper.ejection.voltage\", -0.45);\n }\n }\n }",
"private void loadWiperConfig(String mSubPath,boolean bQuiet)\n {\n FileReader mWiperConfigReader;\n\n // Environment.getRootDirectory() = /system\".\n final File mFileName = new File(Environment.getRootDirectory(), mSubPath);\n try\n {\n mWiperConfigReader = new FileReader(mFileName);\n }\n catch (FileNotFoundException e)\n {\n if (!bQuiet)\n {\n Log.e(TAG, \"wiperconfig file read/open error \" + mFileName);\n }\n bWiperConfigReadError = true;\n return;\n }\n\n try\n {\n XmlPullParser mParser = Xml.newPullParser();\n mParser.setInput(mWiperConfigReader);\n\n XmlUtils.beginDocument(mParser, \"wiperconfig\");\n\n while (true)\n {\n XmlUtils.nextElement(mParser);\n\n String szName = mParser.getName();\n if (!\"configparam\".equals(szName))\n {\n break;\n }\n\n szUsername = mParser.getAttributeValue(null, \"username\");\n szRealm = mParser.getAttributeValue(null, \"realm\");\n\n String szHighFreqPeriodMs = mParser.getAttributeValue(null, \"highFreqPeriodMs\");\n lHighFreqPeriodMs = Long.parseLong(szHighFreqPeriodMs);\n\n String szLowFreqPeriodMs = mParser.getAttributeValue(null, \"lowFreqPeriodMs\");\n lLowFreqPeriodMs = Long.parseLong(szLowFreqPeriodMs);\n\n szTilingPath = mParser.getAttributeValue(null, \"tilingPath\");\n\n String szMaxDataSizePerSession = mParser.getAttributeValue(null, \"maxDataSizePerSession\");\n lMaxDataSizePerSession = Long.parseLong(szMaxDataSizePerSession);\n\n String szMaxDataSizeTotal = mParser.getAttributeValue(null, \"maxDataSizeTotal\");\n lMaxDataSizeTotal = Long.parseLong(szMaxDataSizeTotal);\n\n String szNetworkPvdEnabled = mParser.getAttributeValue(null, \"networkPvdEnabled\");\n bNetworkPvdEnabled = Boolean.parseBoolean(szNetworkPvdEnabled);\n\n }\n }\n catch (XmlPullParserException e)\n {\n Log.e(TAG, \"WiperConfig parsing exception \", e);\n bWiperConfigReadError = true;\n }\n catch (IOException e)\n {\n Log.e(TAG, \"WiperConfig parsing exception\", e);\n bWiperConfigReadError = true;\n }\n\n if(Config.LOGV)\n {\n Log.v(TAG,\"WiperConfig uname:\"+szUsername+\", realm:\"+szRealm+\",hi:\"+lHighFreqPeriodMs+\",lo:\"+lLowFreqPeriodMs+\":tPath:\"+szTilingPath);\n }\n return;\n }",
"void loadConfig() {\r\n\t\tFile file = new File(\"open-ig-mapeditor-config.xml\");\r\n\t\tif (file.canRead()) {\r\n\t\t\ttry {\r\n\t\t\t\tElement root = XML.openXML(file);\r\n\t\t\t\t\r\n\t\t\t\t// reposition the window\r\n\t\t\t\tElement eWindow = XML.childElement(root, \"window\");\r\n\t\t\t\tif (eWindow != null) {\r\n\t\t\t\t\tsetBounds(\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"x\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"y\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"width\")),\r\n\t\t\t\t\t\tInteger.parseInt(eWindow.getAttribute(\"height\"))\r\n\t\t\t\t\t);\r\n\t\t\t\t\tsetExtendedState(Integer.parseInt(eWindow.getAttribute(\"state\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eLanguage = XML.childElement(root, \"language\");\r\n\t\t\t\tif (eLanguage != null) {\r\n\t\t\t\t\tString langId = eLanguage.getAttribute(\"id\");\r\n\t\t\t\t\tif (\"hu\".equals(langId)) {\r\n\t\t\t\t\t\tui.languageHu.setSelected(true);\r\n\t\t\t\t\t\tui.languageHu.doClick();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tui.languageEn.setSelected(true);\r\n\t\t\t\t\t\tui.languageEn.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSplitters = XML.childElement(root, \"splitters\");\r\n\t\t\t\tif (eSplitters != null) {\r\n\t\t\t\t\tsplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"main\")));\r\n\t\t\t\t\ttoolSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"preview\")));\r\n\t\t\t\t\tfeaturesSplit.setDividerLocation(Integer.parseInt(eSplitters.getAttribute(\"surfaces\")));\r\n\t\t\t\t}\r\n\r\n\t\t\t\tElement eTabs = XML.childElement(root, \"tabs\");\r\n\t\t\t\tif (eTabs != null) {\r\n\t\t\t\t\tpropertyTab.setSelectedIndex(Integer.parseInt(eTabs.getAttribute(\"selected\")));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eLights = XML.childElement(root, \"lights\");\r\n\t\t\t\tif (eLights != null) {\r\n\t\t\t\t\talphaSlider.setValue(Integer.parseInt(eLights.getAttribute(\"preview\")));\r\n\t\t\t\t\talpha = Float.parseFloat(eLights.getAttribute(\"map\"));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eMode = XML.childElement(root, \"editmode\");\r\n\t\t\t\tif (eMode != null) {\r\n\t\t\t\t\tif (\"true\".equals(eMode.getAttribute(\"type\"))) {\r\n\t\t\t\t\t\tui.buildButton.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eView = XML.childElement(root, \"view\");\r\n\t\t\t\tif (eView != null) {\r\n\t\t\t\t\tui.viewShowBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"buildings\"))) {\r\n\t\t\t\t\t\tui.viewShowBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewSymbolicBuildings.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"minimap\"))) {\r\n\t\t\t\t\t\tui.viewSymbolicBuildings.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tui.viewTextBackgrounds.setSelected(false);\r\n\t\t\t\t\tif (\"true\".equals(eView.getAttribute(\"textboxes\"))) {\r\n\t\t\t\t\t\tui.viewTextBackgrounds.doClick();\r\n\t\t\t\t\t}\r\n\t\t\t\t\trenderer.scale = Double.parseDouble(eView.getAttribute(\"zoom\"));\r\n\t\t\t\t\t\r\n\t\t\t\t\tui.viewStandardFonts.setSelected(\"true\".equals(eView.getAttribute(\"standard-fonts\")));\r\n\t\t\t\t\tui.viewPlacementHints.setSelected(!\"true\".equals(eView.getAttribute(\"placement-hints\")));\r\n\t\t\t\t\tui.viewPlacementHints.doClick();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eSurfaces = XML.childElement(root, \"custom-surface-names\");\r\n\t\t\t\tif (eSurfaces != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eSurfaces, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomSurfaceNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tElement eBuildigns = XML.childElement(root, \"custom-building-names\");\r\n\t\t\t\tif (eBuildigns != null) {\r\n\t\t\t\t\tfor (Element tile : XML.childrenWithName(eBuildigns, \"tile\")) {\r\n\t\t\t\t\t\tTileEntry te = new TileEntry();\r\n\t\t\t\t\t\tte.id = Integer.parseInt(tile.getAttribute(\"id\"));\r\n\t\t\t\t\t\tte.surface = tile.getAttribute(\"type\");\r\n\t\t\t\t\t\tte.name = tile.getAttribute(\"name\");\r\n\t\t\t\t\t\tcustomBuildingNames.add(te);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tElement eFilter = XML.childElement(root, \"filter\");\r\n\t\t\t\tif (eFilter != null) {\r\n\t\t\t\t\tfilterSurface.setText(eFilter.getAttribute(\"surface\"));\r\n\t\t\t\t\tfilterBuilding.setText(eFilter.getAttribute(\"building\"));\r\n\t\t\t\t}\r\n\t\t\t\tElement eAlloc = XML.childElement(root, \"allocation\");\r\n\t\t\t\tif (eAlloc != null) {\r\n\t\t\t\t\tui.allocationPanel.availableWorkers.setText(eAlloc.getAttribute(\"worker\"));\r\n\t\t\t\t\tui.allocationPanel.strategies.setSelectedIndex(Integer.parseInt(eAlloc.getAttribute(\"strategy\")));\r\n\t\t\t\t}\r\n\t\t\t\tElement eRecent = XML.childElement(root, \"recent\");\r\n\t\t\t\tif (eRecent != null) {\r\n\t\t\t\t\tfor (Element r : XML.childrenWithName(eRecent, \"entry\")) {\r\n\t\t\t\t\t\taddRecentEntry(r.getAttribute(\"file\")); \r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private ExtensibilityElement getExtElementFromDefinition(Definition definition){\n\t\ttry{\n\t\t\tMap<?, ?> serviceMap = definition.getAllServices();\n\t\t Iterator<?> serviceItr = serviceMap.entrySet().iterator();\n\t\t ExtensibilityElement extensibilityElement = null;\n\t\t \n\t\t while(serviceItr.hasNext()){\n\t\t \tMap.Entry<?, ?> svcEntry = (Map.Entry<?, ?>)serviceItr.next();\n\t\t \tService svc = (Service)svcEntry.getValue();\n\t\t \tMap<?, ?> portMap = svc.getPorts();\n\t\t \tIterator<?> portItr = portMap.entrySet().iterator();\n\t\t \t\n\t\t \twhile(portItr.hasNext()){\n\t\t \t\tMap.Entry<?, ?> portEntry = (Map.Entry<?, ?>)portItr.next();\n\t\t \t\tPort port = (Port)portEntry.getValue();\n\t\t \t\textensibilityElement = (ExtensibilityElement)port.getExtensibilityElements().get(0);\n\t\t \t}\n\t\t }\n\t\t return extensibilityElement;\n\t\t}catch(Exception e){\n\t\t\tlogger.error(e.getMessage(), e);\n\t\t\treturn null;\n\t\t}\n\t}",
"private List<KnowledgeElement> getWebhookRootElements(KnowledgeElement element) {\n\t\tList<KnowledgeElement> webhookRootElements = new ArrayList<KnowledgeElement>();\n\t\tKnowledgeGraph graph = KnowledgeGraph.getInstance(projectKey);\n\t\tList<KnowledgeElement> linkedElements = Graphs.neighborListOf(graph, element);\n\t\tlinkedElements.add(element);\n\t\tfor (KnowledgeElement linkedElement : linkedElements) {\n\t\t\tif (elementIds.contains(linkedElement.getId())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telementIds.add(linkedElement.getId());\n\t\t\tString type = linkedElement.getTypeAsString();\n\t\t\tfor (String rootType : rootTypes) {\n\t\t\t\tif (rootType.equalsIgnoreCase(type)) {\n\t\t\t\t\twebhookRootElements.add(linkedElement);\n\t\t\t\t}\n\t\t\t}\n\t\t\twebhookRootElements.addAll(getWebhookRootElements(linkedElement));\n\t\t}\n\t\treturn webhookRootElements;\n\t}",
"protected abstract boolean readElement(IConfigurationElement element);",
"public Element getConfig() {\n Element out = new Element(getElementName(),MarsModel.NAMESPACE);\n out.setAttribute(\"enabled\",String.valueOf(enabled));\n out.setAttribute(\"xmlfile\",xmlfile.getPath());\n out.setAttribute(\"period\",String.valueOf(period));\n out.setAttribute(\"xslthref\",xslthref);\n return out;\n }",
"public IConfigurationElement getCommandLineGeneratorElement();",
"public IConfigurationElement getDependencyGeneratorElement();",
"public Configuration getActiveConfigurationFromGame(String game_title) {\n\n Configuration conf = new Configuration();\n\n for(Configuration c : configurations)\n if(c.getGame().getTitle().equals(game_title) && c.getSelected())\n conf = c;\n\n return conf;\n\n }",
"IElementDef parse(ConfigSource configSource);",
"public Map<String, RelyingPartyConfiguration> getRelyingPartyConfigurations();",
"public static Element getGameSetting(String settingAttName) {\r\n\t\tElement settingElement = null;\r\n\t\tfor (Element sett : settings) {\r\n\t\t\tif (sett.getAttribute(settingAttName).equals(settingAttName)) {\r\n\t\t\t\tsettingElement = sett;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn settingElement;\r\n\t}",
"private JPanel getConfigurationInfo() {\r\n\t\tif (configurationInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints36 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints36.gridx = 1;\r\n\t\t\tgridBagConstraints36.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints36.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints36.weightx = 0.0;\r\n\t\t\tgridBagConstraints36.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints36.gridy = 5;\r\n\t\t\tnumberEngines = new JLabel();\r\n\t\t\tnumberEngines.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints35 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints35.gridx = 1;\r\n\t\t\tgridBagConstraints35.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints35.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints35.weightx = 0.0;\r\n\t\t\tgridBagConstraints35.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints35.gridy = 4;\r\n\t\t\tcenterOfGravity = new JLabel();\r\n\t\t\tcenterOfGravity.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints34 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints34.gridx = 1;\r\n\t\t\tgridBagConstraints34.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints34.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints34.weightx = 0.0;\r\n\t\t\tgridBagConstraints34.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints34.gridy = 3;\r\n\t\t\tgrossWeight = new JLabel();\r\n\t\t\tgrossWeight.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints33 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints33.gridx = 1;\r\n\t\t\tgridBagConstraints33.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints33.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints33.weightx = 0.0;\r\n\t\t\tgridBagConstraints33.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints33.gridy = 2;\r\n\t\t\tmaximumLoadFactor = new JLabel();\r\n\t\t\tmaximumLoadFactor.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints32 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints32.gridx = 3;\r\n\t\t\tgridBagConstraints32.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints32.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints32.weightx = 0.0;\r\n\t\t\tgridBagConstraints32.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints32.gridy = 5;\r\n\t\t\toptimumEndurance = new JLabel();\r\n\t\t\toptimumEndurance.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints30 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints30.gridx = 3;\r\n\t\t\tgridBagConstraints30.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints30.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints30.weightx = 0.0;\r\n\t\t\tgridBagConstraints30.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints30.gridy = 4;\r\n\t\t\toptimumCruiseIAS = new JLabel();\r\n\t\t\toptimumCruiseIAS.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints29 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints29.gridx = 3;\r\n\t\t\tgridBagConstraints29.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints29.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints29.weightx = 0.0;\r\n\t\t\tgridBagConstraints29.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints29.gridy = 3;\r\n\t\t\tmaximumIAS = new JLabel();\r\n\t\t\tmaximumIAS.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints28 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints28.gridx = 3;\r\n\t\t\tgridBagConstraints28.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints28.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints28.weightx = 0.0;\r\n\t\t\tgridBagConstraints28.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints28.gridy = 2;\r\n\t\t\tpropulsionBatery = new JLabel();\r\n\t\t\tpropulsionBatery.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints27 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints27.gridx = 3;\r\n\t\t\tgridBagConstraints27.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints27.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints27.weightx = 0.0;\r\n\t\t\tgridBagConstraints27.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints27.gridy = 0;\r\n\t\t\tpropulsionFuel = new JLabel();\r\n\t\t\tpropulsionFuel.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints26 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints26.gridx = 1;\r\n\t\t\tgridBagConstraints26.insets = new Insets(6, 5, 0, 5);\r\n\t\t\tgridBagConstraints26.weightx = 5.0;\r\n\t\t\tgridBagConstraints26.anchor = GridBagConstraints.WEST;\r\n\t\t\tgridBagConstraints26.fill = GridBagConstraints.HORIZONTAL;\r\n\t\t\tgridBagConstraints26.gridy = 0;\r\n\t\t\tconfigurationId = new JLabel();\r\n\t\t\tconfigurationId.setText(\"-\");\r\n\t\t\tGridBagConstraints gridBagConstraints25 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints25.gridx = 0;\r\n\t\t\tgridBagConstraints25.weightx = 0.0;\r\n\t\t\tgridBagConstraints25.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints25.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints25.gridy = 5;\r\n\t\t\tjLabel8111111111 = new JLabel();\r\n\t\t\tjLabel8111111111.setText(\"Number of engines:\");\r\n\t\t\tGridBagConstraints gridBagConstraints24 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints24.gridx = 0;\r\n\t\t\tgridBagConstraints24.weightx = 0.0;\r\n\t\t\tgridBagConstraints24.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints24.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints24.gridy = 4;\r\n\t\t\tjLabel811111111 = new JLabel();\r\n\t\t\tjLabel811111111.setText(\"Center of gravity from nose:\");\r\n\t\t\tGridBagConstraints gridBagConstraints23 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints23.gridx = 0;\r\n\t\t\tgridBagConstraints23.weightx = 0.0;\r\n\t\t\tgridBagConstraints23.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints23.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints23.gridy = 3;\r\n\t\t\tjLabel81111111 = new JLabel();\r\n\t\t\tjLabel81111111.setText(\"Gross weight:\");\r\n\t\t\tGridBagConstraints gridBagConstraints22 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints22.gridx = 0;\r\n\t\t\tgridBagConstraints22.weightx = 0.0;\r\n\t\t\tgridBagConstraints22.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints22.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints22.gridy = 2;\r\n\t\t\tjLabel8111111 = new JLabel();\r\n\t\t\tjLabel8111111.setText(\"Maximum load factor:\");\r\n\t\t\tGridBagConstraints gridBagConstraints20 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints20.gridx = 2;\r\n\t\t\tgridBagConstraints20.weightx = 0.0;\r\n\t\t\tgridBagConstraints20.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints20.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints20.gridy = 5;\r\n\t\t\tjLabel811111 = new JLabel();\r\n\t\t\tjLabel811111.setText(\"Optimum endurance IAS:\");\r\n\t\t\tGridBagConstraints gridBagConstraints19 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints19.gridx = 2;\r\n\t\t\tgridBagConstraints19.weightx = 0.0;\r\n\t\t\tgridBagConstraints19.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints19.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints19.gridy = 4;\r\n\t\t\tjLabel81111 = new JLabel();\r\n\t\t\tjLabel81111.setText(\"Optimum cruise IAS::\");\r\n\t\t\tGridBagConstraints gridBagConstraints18 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints18.gridx = 2;\r\n\t\t\tgridBagConstraints18.weightx = 0.0;\r\n\t\t\tgridBagConstraints18.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints18.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints18.gridy = 3;\r\n\t\t\tjLabel8111 = new JLabel();\r\n\t\t\tjLabel8111.setText(\"Maximum IAS:\");\r\n\t\t\tGridBagConstraints gridBagConstraints17 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints17.gridx = 2;\r\n\t\t\tgridBagConstraints17.weightx = 0.0;\r\n\t\t\tgridBagConstraints17.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints17.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints17.gridy = 2;\r\n\t\t\tjLabel811 = new JLabel();\r\n\t\t\tjLabel811.setText(\"Propulsion battery capacity:\");\r\n\t\t\tGridBagConstraints gridBagConstraints16 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints16.gridx = 2;\r\n\t\t\tgridBagConstraints16.weightx = 0.0;\r\n\t\t\tgridBagConstraints16.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints16.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints16.gridy = 0;\r\n\t\t\tjLabel81 = new JLabel();\r\n\t\t\tjLabel81.setText(\"Propulsion fuel capacity:\");\r\n\t\t\tGridBagConstraints gridBagConstraints15 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints15.gridx = 0;\r\n\t\t\tgridBagConstraints15.weightx = 1.0;\r\n\t\t\tgridBagConstraints15.anchor = GridBagConstraints.EAST;\r\n\t\t\tgridBagConstraints15.insets = new Insets(6, 5, 0, 0);\r\n\t\t\tgridBagConstraints15.fill = GridBagConstraints.NONE;\r\n\t\t\tgridBagConstraints15.gridy = 0;\r\n\t\t\tjLabel8 = new JLabel();\r\n\t\t\tjLabel8.setText(\"Configuration ID:\");\r\n\t\t\tconfigurationInfo = new JPanel();\r\n\t\t\tconfigurationInfo.setLayout(new GridBagLayout());\r\n\t\t\tconfigurationInfo.add(jLabel8, gridBagConstraints15);\r\n\t\t\tconfigurationInfo.add(jLabel81, gridBagConstraints16);\r\n\t\t\tconfigurationInfo.add(jLabel811, gridBagConstraints17);\r\n\t\t\tconfigurationInfo.add(jLabel8111, gridBagConstraints18);\r\n\t\t\tconfigurationInfo.add(jLabel81111, gridBagConstraints19);\r\n\t\t\tconfigurationInfo.add(jLabel811111, gridBagConstraints20);\r\n\t\t\tconfigurationInfo.add(jLabel8111111, gridBagConstraints22);\r\n\t\t\tconfigurationInfo.add(jLabel81111111, gridBagConstraints23);\r\n\t\t\tconfigurationInfo.add(jLabel811111111, gridBagConstraints24);\r\n\t\t\tconfigurationInfo.add(jLabel8111111111, gridBagConstraints25);\r\n\t\t\tconfigurationInfo.add(configurationId, gridBagConstraints26);\r\n\t\t\tconfigurationInfo.add(propulsionFuel, gridBagConstraints27);\r\n\t\t\tconfigurationInfo.add(propulsionBatery, gridBagConstraints28);\r\n\t\t\tconfigurationInfo.add(maximumIAS, gridBagConstraints29);\r\n\t\t\tconfigurationInfo.add(optimumCruiseIAS, gridBagConstraints30);\r\n\t\t\tconfigurationInfo.add(optimumEndurance, gridBagConstraints32);\r\n\t\t\tconfigurationInfo.add(maximumLoadFactor, gridBagConstraints33);\r\n\t\t\tconfigurationInfo.add(grossWeight, gridBagConstraints34);\r\n\t\t\tconfigurationInfo.add(centerOfGravity, gridBagConstraints35);\r\n\t\t\tconfigurationInfo.add(numberEngines, gridBagConstraints36);\r\n\t\t}\r\n\t\treturn configurationInfo;\r\n\t}",
"public static void readConfig() {\n\t\tint[] defaultBanned = Loader.isModLoaded(\"twilightforest\") ? new int[]{7} : new int[0];\n\t\t\n\t\tDIMENSION_LIST = ConfigHelpers.getIntArray(config, \"dimensionIdList\", \"general\", defaultBanned, \"The list of dimension IDs, used as a allow-list or deny-list, depending on your other config settings. Internal numeric IDs, please.\");\n\t\t\n\t\tMODE = ConfigHelpers.getEnum(config, \"mode\", \"general\", ListMode.DENY_LIST, \"What mode should Broken Wings operate under?\", (mode) -> {\n\t\t\tswitch (mode) {\n\t\t\t\tcase DENY_LIST: return \"Flying is disabled in only the dimensions listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALLOW_LIST: return \"Flying is disabled in all dimensions, except the ones listed in \\\"dimensionList\\\".\";\n\t\t\t\tcase ALWAYS_DENY: return \"Flying is always disabled, regardless of dimension ID.\";\n\t\t\t\tcase ALWAYS_ALLOW: return \"Flying is never disabled (it's like the mod isn't even installed)\";\n\t\t\t\tdefault: return \"h\";\n\t\t\t}\n\t\t}, ListMode.class);\n\t\t\n\t\tARMOR_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyArmor\", \"general\", new ItemList(), \"A player wearing one of these armor pieces will be immune to the no-flight rule.\");\n\t\t\n\t\tINVENTORY_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyInventory\", \"general\", new ItemList(), \"A player with one of these items in their inventory will be immune to the no-flight rule.\");\n\t\t\n\t\tif(Loader.isModLoaded(\"baubles\")) {\n\t\t\tBUBBLE_BYPASS_KEYS = ConfigHelpers.getItemList(config, \"bypassKeyBauble\", \"general\", new ItemList(), \"A player wearing one of these Baubles will be immune to the no-flight rule.\");\n\t\t} else {\n\t\t\tBUBBLE_BYPASS_KEYS = new ItemList();\n\t\t}\n\t\t\n\t\t//Countermeasures\n\t\tCountermeasures.readConfig(config);\n\t\t\n\t\t//Effects\n\t\tPRINT_TO_LOG = config.getBoolean(\"printToLog\", \"effects\", true, \"Should a message be printed to the server console when a player is dropped from the sky?\");\n\t\t\n\t\tSEND_STATUS_MESSAGE = config.getBoolean(\"sendStatusMessage\", \"effects\", true, \"Should players receive a status message when they are dropped from the sky?\");\n\t\t\n\t\tSHOW_PARTICLES = config.getBoolean(\"showParticles\", \"effects\", true, \"Should players create particle effects when they are dropped from the sky?\");\n\t\t\n\t\tEFFECT_INTERVAL = config.getInt(\"effectInterval\", \"effects\", 3, 0, Integer.MAX_VALUE, \"To prevent spamming players and the server console, how many seconds will need to pass before performing another effect? (Players will still drop out of the sky if they try to fly faster than this interval.)\");\n\t\t\n\t\tFIXED_MESSAGE = config.getString(\"fixedStatusMessage\", \"effects\", \"\", \"Whatever you enter here will be sent to players when they are dropped out of the sky if 'effects.sendStatusMessage' is enabled. If this is empty, I'll choose from my own internal list of (tacky) messages.\").trim();\n\t\t\n\t\t//Client\n\t\tSHOW_BYPASS_KEY_TOOLTIP = config.getBoolean(\"showBypassKeyTooltip\", \"client\", true, \"Show a tooltip on items that are bypass-keys informing the player that they can use this item to bypass the rule.\");\n\t\t\n\t\tif(config.hasChanged()) config.save();\n\t}",
"private Element createConfigElement(PentahoConfig config) {\n\t\tElement configElem = new Element(ROOT);\n\t\tthis.addConfigElement(configElem, String.valueOf(config.isDebug()), DEBUG);\n\t\tthis.addConfigElement(configElem, config.getServerUsername(), serverUsername_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerPassword(), serverPassword_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerLocalUrl(), serverLocalUrl_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerLocalPort(), serverLocalPort_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerLocalProtocol(), serverLocalProtocol_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerUrl(), serverUrl_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerPort(), serverPort_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerProtocol(), serverProtocol_ELEM);\n\t\tthis.addConfigElement(configElem, config.getServerContextPath(), serverContextPath_ELEM);\n\t\tthis.addConfigElement(configElem, config.getReportDefBasePath(), reportDefBasePath_ELEM);\n\t\tthis.addConfigElement(configElem, config.isServerVisibleFromClient(), serverVisibleFromClient_ELEM);\n\t\tthis.addConfigElement(configElem, config.getReportDetailPage(), reportDetailPage_ELEM);\n\t\tthis.addConfigElement(configElem, config.getDataIntegrationRepositoryName(), dataIntegrationRepositoryName_ELEM);\n\t\tthis.addConfigElement(configElem, config.getDataIntegrationUsername(), dataIntegrationUsername_ELEM);\n\t\tthis.addConfigElement(configElem, config.getDataIntegrationPassword(), dataIntegrationPassword_ELEM);\n\t\treturn configElem;\n\t}",
"protected OMElement getOAuthConfigElement() {\n return IdentityConfigParser.getInstance().getConfigElement(CONFIG_ELEM_OAUTH);\n }",
"private void findSubElements(ArrayList p_result, Element p_element)\n {\n for (int i = 0, max = p_element.nodeCount(); i < max; i++)\n {\n Node child = (Node)p_element.node(i);\n\n if (child instanceof Element)\n {\n findSubElements(p_result, (Element)child);\n }\n }\n\n if (p_element.getName().equals(\"sub\"))\n {\n p_result.add(p_element);\n }\n }",
"public void configure(Element parent) {\n }",
"Map<String, String> getElementProperties(int elementId) throws IllegalArgumentException;",
"public static Element getTowerInfo(String towerTagName) {\r\n\t\tElement settingElement = null;\r\n\t\tfor (Element tower : settings) {\r\n\t\t\tif (tower.getTagName().equals(towerTagName)) {\r\n\t\t\t\tsettingElement = tower;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn settingElement;\r\n\t}",
"private JPanel getConfigInfo() {\r\n\t\tif (configInfo == null) {\r\n\t\t\tGridBagConstraints gridBagConstraints14 = new GridBagConstraints();\r\n\t\t\tgridBagConstraints14.fill = GridBagConstraints.BOTH;\r\n\t\t\tgridBagConstraints14.gridy = 0;\r\n\t\t\tgridBagConstraints14.weightx = 1.0;\r\n\t\t\tgridBagConstraints14.weighty = 1.0;\r\n\t\t\tgridBagConstraints14.gridx = 0;\r\n\t\t}\r\n\t\treturn configInfo;\r\n\t}",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"protected Element[] findDataElements(Element element) {\n List elements = new ArrayList();\n Iterator dataElements = element.getChildren(\"dataElement\",\n DataThingXMLFactory.namespace).iterator();\n while (dataElements.hasNext()) {\n elements.add((Element) dataElements.next());\n }\n Iterator collectionElements = element.getChildren(\"partialOrder\",\n DataThingXMLFactory.namespace).iterator();\n while (collectionElements.hasNext()) {\n Element collectionElement = (Element) collectionElements.next();\n Element itemListElement = collectionElement.getChild(\"itemList\",\n DataThingXMLFactory.namespace);\n elements.addAll(Arrays.asList(findDataElements(itemListElement)));\n }\n return (Element[]) elements.toArray(new Element[elements.size()]);\n }",
"public List<MenuElement> getElements()\n {\n return elements;\n }",
"AppConfiguration getApplicationList()\n throws SAXException, IOException;",
"public abstract NestedSet<Artifact> auxiliary();",
"ArrayList<ArrayList<String>> get_config(){\n return config_file.r_wartosci();\n }",
"@Override\n\tpublic AddAdditionalNameElement Elements() {\n\t\treturn new AddAdditionalNameElement(driver);\n\t}",
"public static List<WebElement> getElements(WebDriver driver, String element) throws ConfigurationException,\r\n SecurityException, InstantiationException, IllegalAccessException, ClassNotFoundException, IOException, InterruptedException {\r\n String xPath = getXPath(element);\r\n waitUntilDocumentIsReady(driver);\r\n WebDriverWait wait = new WebDriverWait(driver, 30);\r\n wait.until(ExpectedConditions.visibilityOfAllElementsLocatedBy((By.xpath(xPath))));\r\n return driver.findElements(By.xpath(xPath));\r\n }",
"private ElementSelection getSelectedElements()\n {\n final int[] rowViewIndexes = this.getSelectedRows();\n final NetPlan np = callback.getDesign();\n\n final List<NetworkElement> elementList = new ArrayList<>();\n final List<Pair<Demand, Link>> frList = new ArrayList<>();\n\n if (rowViewIndexes.length != 0)\n {\n final int maxValidRowIndex = model.getRowCount() - 1 - (hasAggregationRow() ? 1 : 0);\n final List<Integer> validRows = new ArrayList<Integer>();\n for (int a : rowViewIndexes) if ((a >= 0) && (a <= maxValidRowIndex)) validRows.add(a);\n\n if (networkElementType == NetworkElementType.FORWARDING_RULE)\n {\n for (int rowViewIndex : validRows)\n {\n final int viewRowIndex = this.convertRowIndexToModel(rowViewIndex);\n final String demandInfo = (String) getModel().getValueAt(viewRowIndex, AdvancedJTable_forwardingRule.COLUMN_DEMAND);\n final String linkInfo = (String) getModel().getValueAt(viewRowIndex, AdvancedJTable_forwardingRule.COLUMN_OUTGOINGLINK);\n final int demandIndex = Integer.parseInt(demandInfo.substring(0, demandInfo.indexOf(\"(\")).trim());\n final int linkIndex = Integer.parseInt(linkInfo.substring(0, linkInfo.indexOf(\"(\")).trim());\n frList.add(Pair.of(np.getDemand(demandIndex), np.getLink(linkIndex)));\n }\n } else\n {\n for (int rowViewIndex : validRows)\n {\n final int viewRowIndex = this.convertRowIndexToModel(rowViewIndex);\n final long id = (long) getModel().getValueAt(viewRowIndex, 0);\n elementList.add(np.getNetworkElement(id));\n }\n }\n }\n\n // Parse into ElementSelection\n final Pair<List<NetworkElement>, List<Pair<Demand, Link>>> selection = Pair.of(elementList, frList);\n final boolean nothingSelected = selection.getFirst().isEmpty() && selection.getSecond().isEmpty();\n\n // Checking for selection type\n final ElementSelection elementHolder;\n\n if (!nothingSelected)\n {\n if (!selection.getFirst().isEmpty())\n elementHolder = new ElementSelection(NetworkElementType.getType(selection.getFirst()), selection.getFirst());\n else if (!selection.getSecond().isEmpty())\n elementHolder = new ElementSelection(selection.getSecond());\n else elementHolder = new ElementSelection();\n } else\n {\n elementHolder = new ElementSelection();\n }\n\n return elementHolder;\n }",
"public static void parseIni() {\r\n\t\t//Find the indexes of the division headers.\r\n\t\tint namesIndex = findIndex(\"[names]\");\r\n\t\tint defaultIndex = findIndex(\"[defaults]\");\r\n\t\tint soundIndex = findIndex(\"[sounds]\");\r\n\t\t\r\n\t\t//Extract the information from the ini Array List.\r\n\t\tnames = extractSettings(namesIndex);\r\n\t\tdefaults = extractSettings(defaultIndex);\r\n\t\tsounds = extractSettings(soundIndex);\r\n\r\n\t\t//Sort the names Array List and copy it to the main names Array List.\r\n\t\tCollections.sort(names);\r\n\t\tMain.names = names;\r\n\t\t\r\n\t\t//Set the sounds to their variables.\r\n\t\tsetSounds();\r\n\t\t\r\n\t\t//Set the default game configurations.\r\n\t\tsetDefaults();\r\n\r\n\t}",
"private void initUIElements() \n\t{\n\t\t// Init UI element collections.\n\t\tbarcharts\t\t= new HashMap<String, BarChart>();\n\t\t//spinners\t\t= new HashMap<String, Spinner<Float>>();\n\t\trangeSliders\t= new HashMap<String, RangeSlider>();\n\t\tvBoxes\t\t\t= new HashMap<String, VBox>();\n\t\t\n\t\t// Remove deprecated UI elements in parameter configuration grid pane.\n\t\tint vboxCount = 0;\n\t\tfor (Object child : parameterConfiguration_gridPane.getChildren().toArray()) {\n\t\t\tNode node = (Node)child;\n\t\t\t\n\t\t\t//System.out.println(node.getClass().getName());\n\t\t\tswitch (node.getClass().getName()) \n\t\t\t{\n\t \t\t// Replace TextFields with numeric steppers / spinners.\n\t \t\tcase \"javafx.scene.control.TextField\":\n\t \t\t\t// Set initial values.\n\t \t\t\tif (node.getId().contains(\"min\"))\n\t \t\t\t\t((TextField)node).setText(\"0\");\n\t \t\t\telse\n\t \t\t\t\t((TextField)node).setText(\"100\");\n\t \t\tbreak;\n\t \t\t\n\t \t\tcase \"javafx.scene.layout.VBox\":\n\t \t\t\tVBox currentVBox = ((VBox)node);\n\t \t\t\t// Look for Sliders in VBox nodes; replace with RangeSliders.\n\t \t\t\tfor (Object vboxChild : currentVBox.getChildren().toArray()) {\n\t \t\t\t\tNode vboxNode = (Node)vboxChild;\n\t \t\t\t\t\n\t \t\t\t\tif (vboxNode.getClass().getName() == \"javafx.scene.control.Slider\") {\n\t \t\t\t\t\tcurrentVBox.getChildren().remove(vboxNode);\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\t// Store references to VBoxes.\n\t \t\t\tswitch(vboxCount++)\n\t \t\t\t{\n\t \t\t\t\tcase 0:\n\t \t\t\t\t\tvBoxes.put(\"alpha\", currentVBox);\n\t \t\t\t\tbreak;\n\t \t\t\t\t\n\t \t\t\t\tcase 1:\n\t \t\t\t\t\tvBoxes.put(\"eta\", currentVBox);\n\t \t\t\t\tbreak;\n\t \t\t\t\t\n\t \t\t\t\tcase 2:\n\t \t\t\t\t\tvBoxes.put(\"kappa\", currentVBox);\n\t \t\t\t\tbreak;\n\t \t\t\t}\n\t \t\tbreak;\n\t \t}\n\t }\n\t\t\n\t\t// Init barcharts.\n\t\tinitBarcharts();\n\t\t\n\t\t// Init range sliders.\n\t\tinitRangeSliders();\n\t\t\n\t\t// Init textfields.\n\t\tinitTextFields();\n\t\t\n\t\t// Init combobox.\n\t\tinitComboBoxes();\n\t}",
"public SelenideElement getSettingsItem(String name) {\n ElementsCollection items = this.getSettingsItems().shouldBe(sizeGreaterThan(0));\n log.info(\"searching for {} in {} items\", name, items.size());\n for (SelenideElement item : items) {\n String title = item.$(Element.SETTINGS_TITLE).shouldBe(visible).getText();\n if (name.equals(title)) {\n return item;\n }\n }\n throw new IllegalArgumentException(String.format(\"item%s not found\", name));\n }",
"@Test\n public void extraElements() {\n assertEmpty(mReactor.getCompounds(getElements(\"Start\", \"A\", \"Fin\", \"Start\")));\n // Each reaction producing a compound should be detected separately.\n assertEmpty(mReactor.getCompounds(getElements(\"Start\", \"A\", \"Fin\", \"Start\", \"A\", \"Fin\")));\n }",
"GeneralConfiguration getGeneralConfiguration();",
"private void getExternalConfig()\n {\n String PREFIX = \"getExternalConfig override name [{}] value [{}]\";\n // Check to see if the ldap host has been overridden by a system property:\n String szValue = System.getProperty( EXT_LDAP_HOST );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_HOST, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_HOST, szValue );\n }\n // Check to see if the ldap port has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_PORT );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_PORT, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_PORT, szValue );\n }\n\n // Check to see if the admin pool uid has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_UID );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_UID, szValue );\n // never display ldap admin userid name to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_ADMIN_POOL_UID );\n }\n\n // Check to see if the admin pool pw has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_PW, szValue );\n // never display password of any type to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_ADMIN_POOL_PW );\n }\n\n // Check to see if the admin pool min connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_MIN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_MIN, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_ADMIN_POOL_MIN, szValue );\n }\n\n // Check to see if the admin pool max connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_ADMIN_POOL_MAX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_ADMIN_POOL_MAX, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_ADMIN_POOL_MAX, szValue );\n }\n\n // Check to see if the log pool uid has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_UID );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_UID, szValue );\n // never display ldap admin userid name to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_LOG_POOL_UID );\n }\n\n // Check to see if the log pool pw has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_PW, szValue );\n // never display password of any type to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.LDAP_LOG_POOL_PW );\n }\n\n // Check to see if the log pool min connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_MIN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_MIN, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_LOG_POOL_MIN, szValue );\n }\n\n // Check to see if the log pool max connections has been overridden by a system property:\n szValue = System.getProperty( EXT_LDAP_LOG_POOL_MAX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.LDAP_LOG_POOL_MAX, szValue );\n LOG.info( PREFIX, GlobalIds.LDAP_LOG_POOL_MAX, szValue );\n }\n\n // Check to see if ssl enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_SSL );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_SSL, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_SSL, szValue );\n }\n \n // Check to see if start tls enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_STARTTLS );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_STARTTLS, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_STARTTLS, szValue );\n }\n\n // Check to see if the ssl debug enabled parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_ENABLE_LDAP_SSL_DEBUG );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.ENABLE_LDAP_SSL_DEBUG, szValue );\n LOG.info( PREFIX, GlobalIds.ENABLE_LDAP_SSL_DEBUG, szValue );\n }\n\n // Check to see if the trust store location has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE, szValue );\n LOG.info( PREFIX, GlobalIds.TRUST_STORE, szValue );\n }\n\n // Check to see if the trust store password has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE_PW );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE_PW, szValue );\n // never display password value to log:\n LOG.info( \"getExternalConfig override name [{}]\", GlobalIds.TRUST_STORE_PW );\n }\n\n // Check to see if the trust store onclasspath parameter has been overridden by a system property:\n szValue = System.getProperty( EXT_TRUST_STORE_ONCLASSPATH );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.TRUST_STORE_ON_CLASSPATH, szValue );\n LOG.info( PREFIX, GlobalIds.TRUST_STORE_ON_CLASSPATH, szValue );\n }\n\n // Check to see if the suffix has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_SUFFIX );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.SUFFIX, szValue );\n LOG.info( PREFIX, GlobalIds.SUFFIX, szValue );\n\n }\n\n // Check to see if the config realm name has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_REALM );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.CONFIG_REALM, szValue );\n LOG.info( PREFIX, GlobalIds.CONFIG_REALM, szValue );\n }\n\n // Check to see if the config node dn has been overridden by a system property:\n szValue = System.getProperty( EXT_CONFIG_ROOT_DN );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.CONFIG_ROOT_PARAM, szValue );\n LOG.info( PREFIX, GlobalIds.CONFIG_ROOT_PARAM, szValue );\n }\n\n // Check to see if the ldap server type has been overridden by a system property:\n szValue = System.getProperty( EXT_SERVER_TYPE );\n if( StringUtils.isNotEmpty( szValue ))\n {\n config.setProperty( GlobalIds.SERVER_TYPE, szValue );\n LOG.info( PREFIX, GlobalIds.SERVER_TYPE, szValue );\n }\n\n // Check to see if ARBAC02 checking enforced in service layer:\n szValue = System.getProperty( EXT_IS_ARBAC02 );\n if( StringUtils.isNotEmpty( szValue ))\n {\n Boolean isArbac02 = Boolean. valueOf( szValue );\n config.setProperty( GlobalIds.IS_ARBAC02, isArbac02.booleanValue() );\n LOG.info( PREFIX, GlobalIds.IS_ARBAC02, isArbac02.booleanValue() );\n }\n }",
"public AppConfigurationEntry[] getAppConfigurationEntry(String name) {\n if (name.equals(CONFIGNAME)) {\n return driverConf;\n }\n else {\n if (null != current)\n return current.getAppConfigurationEntry(name);\n else\n return null;\n }\n }",
"private RequirementElement parseAttackElementInfo(List<String> factors) {\n\t\t/*\n\t\t * this part is exclusively for requirement elements 0)notation,element; 1)id,51670; 2)shape,Hexagon; 3)name,Calculate price; 4)Layer, Layer 1 by default; 5)thickness,;\n\t\t * 6)double stroke; 7)size: 117.945899963379 43.817626953125; 8)no fill; 9)0.0 corner radius 10) stroke pattern: 0 11) origin: 87.234039306641 1084.06665039062 12) owner:\n\t\t * xx 13) Canvas, Actor association; 14) user data\n\t\t */\n\n\t\tRequirementElement new_elem = new RequirementElement();\n\t\t// no additional constraints\n//\t\tif (!factors.get(13).equals(\"HSGM\")) {\n//\t\t\tCommandPanel.logger.fine(\"Canvas HSGM is supposed to be processed\");\n//\t\t}\n\n\t\t// anti goals\n\t\t// we only capture the overall information here\n\t\tif (factors.get(2).equals(\"Circle\") && !factors.get(3).equals(\"empty\")) {\n\t\t\tnew_elem = new NewAntiGoal();\n\t\t\tnew_elem.setId(factors.get(1));\n\t\t\tnew_elem.setType(InfoEnum.RequirementElementType.NEW_ANTI_GOAL.name());\n\t\t\t// obtain the content of the element\n\t\t\tString sg_name = factors.get(3);\n\t\t\tnew_elem.setName(sg_name.trim());\n\t\t\t((NewAntiGoal)new_elem).extractInfoFromName();\n\t\t} else if (checkCircle(factors.get(7))) {\n\t\t\t// process actors\n\t\t}\n\t\t// all others\n\t\telse {\n\t\t\tnew_elem = new RequirementElement();\n\t\t\tnew_elem.setId(factors.get(1));\n\t\t\tif (factors.get(2).equals(\"Hexagon\")) {\n\t\t\t\tnew_elem.setType(InfoEnum.RequirementElementType.TASK.name());\n\t\t\t} else if (factors.get(2).equals(\"Rectangle\")) {\n\t\t\t\tnew_elem.setType(InfoEnum.RequirementElementType.DOMAIN_ASSUMPTION.name());\n\t\t\t} else if (factors.get(3).equals(\"empty\") & factors.get(2).equals(\"Circle\") & factors.get(10).equals(\"0\")) {\n\t\t\t\tnew_elem.setType(InfoEnum.RequirementElementType.MIDDLE_POINT.name());\n\t\t\t} else {\n//\t\t\t\tnew_elem.setType(InfoEnum.req_elem_type_map.get(factors.get(2)));\n\t\t\t}\n\t\t\tnew_elem.setName(factors.get(3));\n\t\t}\n\t\t\n\t\t// layout info\n\t\tString[] temp2 = factors.get(11).split(\" \");\n\t\tnew_elem.origin_x = Double.parseDouble(temp2[0].replace(\",\",\".\"));\n\t\tnew_elem.origin_y = Double.parseDouble(temp2[1].replace(\",\",\".\"));\n\t\t\n\t\treturn new_elem;\n\t}",
"public void loadPreferecences()\n {\n // Load preferences for chapter\n chapterPref = Activator.getDefault().getPluginPreferences().getBoolean(PREFERENCE_FOR_CHAPTER);\n if (controller != null)\n { \n\t\t\tcontroller.setHierarchical(chapterPref);\n\t\t}\n // Load preferences for value to recognize req\n String pref = Activator.getDefault().getPluginPreferences().getString(PREFERENCE_FOR_VALUE_TO_RECOGNIZE_REQ);\n if (pref != null && pref.length() > 0)\n {\n Serializer<RecognizedElement> serializer = new Serializer<RecognizedElement>();\n RecognizedElement element = serializer.unSerialize(pref);\n if (element != null)\n {\n valueToRecognizeReq = element;\n }\n }\n\n // Load preferences for attributes list\n pref = Activator.getDefault().getPluginPreferences().getString(PREFERENCE_FOR_LIST_RECOGNIZED_ELEMENT);\n if (pref != null && pref.length() > 0)\n {\n Serializer<Collection<RecognizedElement>> serializer = new Serializer<Collection<RecognizedElement>>();\n Collection<RecognizedElement> paramDecoded = serializer.unSerialize(pref);\n if (paramDecoded != null && paramDecoded.size() > 0)\n {\n for (Iterator<RecognizedElement> iterator = paramDecoded.iterator(); iterator.hasNext();)\n {\n tree.add((RecognizedElement) iterator.next());\n }\n }\n }\n \n // Load preferences for the description\n descriptionChecked = Activator.getDefault().getPluginPreferences().getBoolean(PREFERENCE_FOR_DESCRIPTION);\n }",
"public abstract Enumeration elements();",
"public abstract Composite getConfigurationGUI(Composite parent,\n\t\t\tZoomingInterfaceManager<Graph, GraphItem> gm, ExpandItem ei);",
"Map<Double, Element> getElements();",
"public List<Configuration> getValidConfigurations() {\n\t\t// A state is valid for return if it is normal.\n\t\tfinal ArrayList<Configuration> list = new ArrayList<>();\n\t\tfinal Iterator<ConfigurationButton> it = configurationToButtonMap.values().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal ConfigurationButton button = it.next();\n\t\t\tif (button.state == ConfigurationButton.NORMAL || button.state == ConfigurationButton.FOCUSED) {\n\t\t\t\tlist.add(button.getConfiguration());\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n //getCountries\n CountriesList countriesList = (CountriesList) AppContext.getContext().getBean(AppSpringBeans.COUNTRIES_BEAN);\n configOutput.append(countriesList.getListInXML());\n //getWeaponConfiguration\n configOutput.append(WeaponConfiguration.getInstance().getXmlOutput());\n //getPerksConfiguration\n configOutput.append(\"\\n\");\n configOutput.append(PerksConfiguration.getInstance().getXmlOutput());\n //getRankingRules\n ScoringRules scoreRules = (ScoringRules) AppContext.getContext().getBean(AppSpringBeans.SCORING_RULES_BEAN);\n configOutput.append(scoreRules.rankingRulesXml());\n\n configOutput.append(AchievementsConfiguration.getInstance().getXmlOutput());\n\n configOutput.append(\"\\n\");\n configOutput.append(AvatarsConfiguration.getInstance().getXmlOutput());\n\n\n return configOutput.toString();\n }",
"Element getGenericElement();",
"public Collection<CustomHudElement> getCustomElements();",
"public Enumeration elements()\n {\n return element.elements();\n }",
"private Map<String, Element> populate(URL url) \n\t{\n\t\t// LinkedHashMap maintains insertion order when iterating over the keys or elements.\n\t\tMap<String, Element> fields = new LinkedHashMap<String, Element>();\n\n\t\tpiseMarshaller = initPiseMarshaller(url);\n\t\tfor (String param : piseMarshaller.getExtendedVisibleSet())\n\t\t{\n\t\t\tif (userSupplied.keySet().contains(param))\n\t\t\t{\n\t\t\t\t//log.debug(\"user supplied \" + param + \" so not adding to this.parameters\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString value = null;\n\t\t\tString type = piseMarshaller.getType(param);\n\n\t\t\t// Add the parameters of type InFile and Sequence with value = empty string to indicate that the user hasn't set a value (yet).\n\t\t\tif (type.equals(\"InFile\") || type.equals(\"Sequence\"))\n\t\t\t{\n\t\t\t\tfields.put(param, new Element(\"\", true, piseMarshaller.getType(param)));\n\t\t\t\t//log.debug(\"populate: \" + param + \"=''\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// If there is a default value for the param ...\n\t\t\tString vdef = piseMarshaller.getVdef(param);\n\t\t\tif (vdef != null)\n\t\t\t{\n\t\t\t\t// Get rid of leading and trailing quotes if any.\n\t\t\t\tvdef = vdef.trim();\n\t\t\t\tif (vdef.startsWith(\"\\\"\"))\n\t\t\t\t{\n\t\t\t\t\tvdef = vdef.replaceFirst(\"\\\"\", \"\");\n\t\t\t\t}\n\t\t\t\tif (vdef.endsWith(\"\\\"\"))\n\t\t\t\t{\n\t\t\t\t\tvdef = vdef.substring(0, vdef.length() - 1);\n\t\t\t\t}\n\t\t\t\tvalue = vdef;\n\t\t\t} else if (type != null && type.equals(\"Switch\"))\n\t\t\t{\n\t\t\t\tvalue = \"0\";\n\t\t\t} else\n\t\t\t{\n\t\t\t\tvalue = \"\";\n\t\t\t}\n\t\t\tfields.put(param, new Element(value, true, type));\n\t\t\t//log.debug(\"populate: \" + param + \"=\" + \"'\" + value + \"'\");\n\t\t}\n\t\treturn fields;\n\t}",
"public XmlElement getConfig()\n {\n return m_xml;\n }",
"@Override\n public List<ConfigurationNode> getChildren()\n {\n return children.getSubNodes();\n }",
"public void initializeSelectionArray(){\n\t\ttry{Element root = new XmlReader().parse(Gdx.files.internal(xmlFile));\n\t\tElement artist = root.getChildByName(formatName(game.getArtist()));\n\t\tElement quesNum = artist.getChildByName(Integer.toString(game.getQuestion()));\n\t\tArray<Element> answerE = quesNum.getChildrenByName(\"Option\");\n//\t\tint count = answerE.size;\n//\t\tanswers = new String[count];\n\t\tfor (int i = 0; i <answerE.size; i++){\n//\t\t\tModify to add to the two lists\n//\t\t\tDelete the reference to the answers array\n//\t\t\tanswers[i]=answerE.get(i).getText();\n\t\t\t\n\t\t\toptions.add(answerE.get(i).getText());\n\t\t\toptionsList.add(answerE.get(i).getText());\n\t\t}\n\t\t}\n\t\tcatch(IOException e){\n\t\t}\n\t}",
"abstract public Map<ScrapMode, List<String>> getScrapConfigurations();",
"RootConfig getConfig();",
"@Override\n\tCollection<T> internalElements() {\n\t\tCollection<T> values = new LinkedList<T>();\n\t\t\n\t\tfor(LinkedList<T> list : internalStorage.get(0).values()) {\n\t\t values.addAll(list);\t\n\t\t}\n\t\treturn values;\n\t}",
"protected Container completeConfigurationWindow() {\n\t\treturn null;\n\t}",
"protected abstract String getTopElementDesc();",
"C getConfiguration();",
"public RTContainer container_element(RTContainer a, int element){\n\t\tif(a.getDecompGoals().size()>0 && a.getDecompPlans().size()==0)\n\t\t\treturn a.getDecompGoals().get(element); \n\t\telse \n\t\t\treturn a.getDecompPlans().get(element);\n\t}",
"static TreeMap parseConfig(final Properties config, final String element, final String language)\n throws IllegalArgumentException, IllegalStateException {\n \n // Sanity checks.\n if (config == null)\n throw new IllegalArgumentException(\"Configuration cannot be null\");\n if (element == null || element.equals(\"\"))\n throw new IllegalArgumentException(\"Configuration element must be a non-empty string\");\n if (language == null || language.equals(\"\"))\n throw new IllegalArgumentException(\"Institution name language must be a non-empty string\");\n \n // Get the property value from configuration, with sanity check.\n final String value = config.getProperty(element + \"_\" + language);\n if (value == null)\n throw new IllegalStateException(\"No elements of type '\" + element + \"' in configuration.\");\n \n // Process each \",\"-separated language declaration.\n final StringTokenizer tokenizer = new StringTokenizer(value, \",\");\n final TreeMap names = new TreeMap();\n while (tokenizer.hasMoreTokens()) {\n final String token = tokenizer.nextToken();\n \n // Do we have the correct separator in the language declaration?\n final int index = token.indexOf(\":\");\n if (index == -1)\n throw new IllegalStateException(\"Missing ':' separator in language declaration: '\" + token + \"'\");\n \n // Separate language declaration into two-letter abbreviation and\n // display name.\n final String shortName = token.substring(0, index);\n final String longName = token.substring(index + 1, token.length());\n \n // Do we have more than one separator in this language declaration?\n if (shortName.indexOf(\":\") != -1 || longName.indexOf(\":\") != -1)\n throw new IllegalStateException(\"Config has wrong format.\");\n \n // Add this declaration to the list.\n names.put(longName, shortName);\n }\n \n // Return the list of names.\n return names;\n }",
"private void initConfiguration() {\n\n\t\t//Configuration du jeu\n\t\tconfigJeu = ask(config, \"Emplacement de départ ?\", \"Emplacement\");\n\t\tSystem.out.println(\"\"+modeJeu);\n\n\t\t//mode 2 = Machine contre Machine\n\t\t//mode 1 = Jouur contre Machine\n\n\t\t//On demande le mode de jeu\n\t\tmodeJeu = JOptionPane.showOptionDialog(this, \"Quel mode de jeu ?\", \"Mode de jeu\",\n\t\t\t\tJOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE,\n\t\t\t\ticon, modes, modes[1]); //default button title\n\n\t\tif(modeJeu == 1 || modeJeu == 2){\t//Dans le cas ou c'est joueur contre machine\n\t\t\t nivDifficulté = new String[]{\"Niveau 0 (Random)\",\n\t\t\t\t\t \"Niveau 1 (MinMax niveau 4 avec random)\",\n\t\t\t\t\t \"Niveau 2 (MinMax niveau 2)\",\n\t\t\t\t\t \"Niveau 2.5 (MinMax niveau 2 puis 4)\",\n\t\t\t\t\t \"Niveau 3 (AlphaBeta profondeur 2)\",\n\t\t\t\t\t \"Niveau 4 (NégaAlphaBeta profondeur 4)\",\n\t\t\t\t\t \"Niveau 5 (IA Tricheuse, avec NégaAlphaBeta profondeur 4)\",\n\t\t\t\t\t \"Niveau 6 (IA Tricheuse & voleuse, avec NégaAlphaBeta profondeur 4)\"};\n\n\t\t\tniveauDifficulté = ask(nivDifficulté, \"Votre niveau de difficulté?\",\"Niveau de difficulté\");\n\n\t\t\tniveauHeuristique = ask(configHeuristique, \"L'orientation des poids de l'IA ?\", \"Poids de l'IA\");\n\t\t\tif(niveauHeuristique == 0)\n\t\t\t\tpoids = poidsEquilibre;\n\t\t\telse if(niveauHeuristique == 1)\n\t\t\t\tpoids = poidsAttaque;\n\t\t\telse if (niveauHeuristique == 2)\n\t\t\t\tpoids = poidsDefense;\n\n\n\t\t}else if (modeJeu == 2){\n\t\t\tniveauDifficulté = 10;\t// Dans le cas ou c'est Humain contre humain\n\t\t}\n\t}",
"abstract public GameElement getGameElement();",
"public static void LoadSettingsIntoArray() {\r\n\t\t// Node gameSettings = document.getElementById(\"GameSettings\");\r\n\t\tNodeList settingsNodeList = document.getElementsByTagName(\"Setting\");\r\n\r\n\t\tfor (int i = 0; i < settingsNodeList.getLength(); i++) {\r\n\t\t\tNode node = settingsNodeList.item(i);\r\n\t\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\r\n\t\t\t\tElement eElement = (Element) node;\r\n\t\t\t\tsettings.add(eElement);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();",
"public Enumeration elements();",
"public abstract ArrayList<ImportExportPair> getConfiguracion();",
"private Element generateCriteriaElementForSetOpExcerpt(XmlProcessor hqmfXmlProcessor,\n\t\t\tNode clonedNodeToAppendExcerpt) {\n\t\tElement criteriaElement = null;\n\t\tfor (int i = 0; i < clonedNodeToAppendExcerpt.getChildNodes().getLength(); i++) {\n\t\t\tNode childNode = clonedNodeToAppendExcerpt.getChildNodes().item(i);\n\t\t\tif (ID.equalsIgnoreCase(childNode.getNodeName())) {\n\t\t\t\tNode criteriaNode = generateEmptyGrouper(hqmfXmlProcessor,\n\t\t\t\t\t\tchildNode.getAttributes().getNamedItem(ROOT).getNodeValue(),\n\t\t\t\t\t\tchildNode.getAttributes().getNamedItem(EXTENSION).getNodeValue());\n\t\t\t\tcriteriaElement = (Element) criteriaNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn criteriaElement;\n\t}",
"Map<String, String> getTemplateProperties(String elementName) throws IllegalArgumentException;",
"public void fromXml(Element in_xml,\n String in_addon_name,\n String in_profile_name) throws ConfigurationException, Exception\n {\n if ((null == in_profile_name) ^ (null == in_addon_name))\n {\n throw new Exception(\"Unexpected error: this error should not happen unless you modify the code of the software. The parameters \\\"in_addon_name\\\" and \\\"in_profile_name\\\" must be defined, or undefined, simultaneously.\");\n }\n\n // Get the configuration's name.\n if (null == in_profile_name)\n {\n this.__profile_name = in_xml.getAttributeValue(\"name\");\n if (null == this.__profile_name)\n {\n throw new ConfigurationException(\"XML representation of the configuration has no name!\");\n }\n }\n else\n {\n this.__profile_name = in_profile_name;\n }\n\n // Get the configuration's type.\n if (null == in_addon_name)\n {\n this.__addon = in_xml.getAttributeValue(\"target\");\n if (null == this.__addon)\n {\n throw new ConfigurationException(\"XML representation of the configuration has no type!\");\n }\n }\n else\n {\n this.__addon = in_addon_name;\n }\n\n // Extract data from the generic configuration's holder.\n Element specific = null;\n if (null == in_profile_name)\n {\n specific = in_xml.getChild(\"data\");\n }\n else\n {\n specific = in_xml;\n }\n if (null == specific)\n {\n throw new ConfigurationException(\"XML representation of the configuration has no \\\"specific\\\" data container!\");\n }\n\n try\n {\n this._fromXml_(specific);\n }\n catch (ConfigurationException e)\n {\n throw new ConfigurationException(\"The XML document provided from the CLI adaptor seems to be invalid. This error should not happen unless you modify the software. Did you call the method \\\"AbstractCli::getGetCont()\\\" with \\\"in_set_default=FALSE?\\\" \" + e.getMessage());\n }\n }",
"protected static GeneralConfig createGeneralConfig( Element elem )\n throws XMLParsingException {\n\n Map<String, User> users = createUsers( XMLTools.getRequiredElement( elem, StringTools.concat( 100, \"./\",\n dotPrefix,\n \"Users\" ), cnxt ) );\n int globalRefreshRate = XMLTools.getNodeAsInt( elem, StringTools.concat( 100, \"./\", dotPrefix,\n \"GlobalRefreshRate\" ), cnxt, 1 );\n String mailFrom = XMLTools.getRequiredNodeAsString( elem, StringTools.concat( 100, \"./\", dotPrefix, \"Mail/\",\n dotPrefix, \"mailFrom\" ), cnxt );\n String mailServer = XMLTools.getRequiredNodeAsString( elem, StringTools.concat( 100, \"./\", dotPrefix, \"Mail/\",\n dotPrefix, \"mailServer\" ), cnxt );\n Element locElement = XMLTools.getRequiredElement( elem, StringTools.concat( 100, \"./\", dotPrefix, \"Location\" ),\n cnxt );\n String serviceAddress = XMLTools.getRequiredNodeAsString( locElement, StringTools.concat( 100, \"./\", dotPrefix,\n \"ServiceAddress\" ),\n cnxt );\n String protFolderPath = XMLTools.getRequiredNodeAsString( locElement, StringTools.concat( 100, \"./\", dotPrefix,\n \"ProtocolLocation\" ),\n cnxt );\n String serviceInstancesPath = XMLTools.getRequiredNodeAsString(\n locElement,\n StringTools.concat( 100, \"./\", dotPrefix,\n \"ServiceInstanceLocation\" ),\n cnxt );\n return new GeneralConfig( globalRefreshRate, users, mailFrom, mailServer, protFolderPath, serviceInstancesPath,\n serviceAddress );\n }",
"public List<AccessibleElement> getAccessibleChildren();",
"private IConfigBuilder _getTopLevelBuilder(int index) {\n // Next handle the sequence component (if any). Gemini uses a\n // \"dummy\" node as the root of the sequence\n // If this doesn't yet exist, return false\n final ISPSeqComponent top = _obs.getSeqComponent();\n if (top == null) return null;\n\n // Get all the seq builders that are children of top. If there\n // are none, return false\n final List<ISPSeqComponent> seqCompList = top.getSeqComponents();\n if (seqCompList == null) return null;\n\n // If the requested builder is out of range, return false\n final int size = seqCompList.size();\n if (index >= size) return null;\n\n final ISPSeqComponent seqComp = seqCompList.get(index);\n\n // Now try to get a builder\n final IConfigBuilder cb = (IConfigBuilder) seqComp.getClientData(IConfigBuilder.USER_OBJ_KEY);\n\n // Ignore nodes like SeqDataProc that don't have a config builder\n return (cb == null) ? _getTopLevelBuilder(++_seqBuilderIndex) : cb;\n }",
"abstract protected List<String> getAdditionalOptionsImpl(@NotNull Project project, @NotNull Module module);",
"@Test\n public void internalConfiguration(\n @InjectConfiguration(extensions = {ExtendedConfigurationSchema.class}) BasicConfiguration cfg\n ) throws Exception {\n assertThat(cfg, is(instanceOf(ExtendedConfiguration.class)));\n\n assertEquals(1, cfg.visible().value());\n\n assertEquals(2, ((ExtendedConfiguration)cfg).invisible().value());\n\n cfg.change(change -> {\n assertThat(change, is(instanceOf(ExtendedChange.class)));\n\n change.changeVisible(3);\n\n ((ExtendedChange)change).changeInvisible(4);\n }).get(1, TimeUnit.SECONDS);\n\n assertEquals(3, cfg.visible().value());\n\n assertEquals(4, ((ExtendedConfiguration)cfg).invisible().value());\n }"
] | [
"0.6312782",
"0.57577944",
"0.5483927",
"0.5170814",
"0.50164944",
"0.48330036",
"0.47897157",
"0.47836745",
"0.4753569",
"0.46570918",
"0.46551716",
"0.46366572",
"0.46362683",
"0.45877337",
"0.45623216",
"0.45311633",
"0.45064625",
"0.44984615",
"0.44679424",
"0.44667998",
"0.44543183",
"0.44533864",
"0.44502282",
"0.44473463",
"0.4443823",
"0.44337875",
"0.4432489",
"0.44298056",
"0.4429647",
"0.44219992",
"0.44138587",
"0.4411668",
"0.4404047",
"0.43951246",
"0.43924698",
"0.43889758",
"0.4366905",
"0.43621826",
"0.43591034",
"0.43530813",
"0.43474954",
"0.43472508",
"0.43227056",
"0.43227056",
"0.43227056",
"0.43227056",
"0.43227056",
"0.43227056",
"0.43227056",
"0.43147823",
"0.43135998",
"0.43045613",
"0.43012413",
"0.42837209",
"0.4283547",
"0.42557126",
"0.42496327",
"0.42457077",
"0.4244549",
"0.42395926",
"0.42350742",
"0.4227798",
"0.4227421",
"0.42258686",
"0.4224736",
"0.42116457",
"0.42112896",
"0.42093998",
"0.42028463",
"0.41998532",
"0.4196649",
"0.419497",
"0.41873935",
"0.41838536",
"0.41828695",
"0.41791314",
"0.417814",
"0.4177666",
"0.41769508",
"0.41748133",
"0.41642046",
"0.4161643",
"0.4160504",
"0.41570535",
"0.41551077",
"0.4154195",
"0.4139984",
"0.413972",
"0.4138628",
"0.41303727",
"0.4128776",
"0.41279984",
"0.41256034",
"0.41243684",
"0.41089106",
"0.41087294",
"0.41069204",
"0.41058105",
"0.4104922",
"0.41031265"
] | 0.65315074 | 0 |
Define a new type of element for the game being authored. Elements of this type will be created by the model based on its properties, assuming defaults where necessary. This method should not be used for updating properties of an existing template, the updateElementDefinition method should be used for that instead. | void defineElement(String elementName, Map<String, String> properties) throws IllegalArgumentException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"ElementDefinition createElementDefinition();",
"protected abstract M createNewElement();",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"public org.ccsds.moims.mo.mal.structures.Element createElement()\n {\n return new BasicUpdate();\n }",
"public void newElement() {\r\n }",
"@Override\r\n\tpublic ElectricityElement createElement() {\r\n\t\treturn new DefaultElectricityElement(\r\n\t\t\t\tgetTemplateName(), \r\n\t\t\t\tgetName(), \r\n\t\t\t\tgetOrigin(),\r\n\t\t\t\tgetDestination(),\r\n\t\t\t\tgetLifecycleModel().createLifecycleModel(), \r\n\t\t\t\tgetMaxElectricityProduction(), \r\n\t\t\t\tgetInitialElectricityProduction(), \r\n\t\t\t\tgetPetroleumIntensityOfElectricityProduction(),\r\n\t\t\t\tgetWaterIntensityOfElectricityProduction(), \r\n\t\t\t\tgetVariableOperationsCostOfElectricityProduction(),\r\n\t\t\t\tgetDistributionEfficiency(), \r\n\t\t\t\tgetMaxElectricityInput(), \r\n\t\t\t\tgetInitialElectricityInput(),\r\n\t\t\t\tgetVariableOperationsCostOfElectricityDistribution()\r\n\t\t\t);\r\n\t}",
"public void setElementClass (String elementClass) throws ModelException;",
"ModularizationElement createModularizationElement();",
"public Element addElement(Element rootElement,String type,Document document){\n\t\t// define school elements \n\t\tElement node = document.createElement(type); \n\t\trootElement.appendChild(node);\n\t\treturn node;\n\t}",
"public void addElement(TLProperty element);",
"E createDefaultElement();",
"@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }",
"DomainElement createDomainElement();",
"public void setElement(String newElem) { element = newElem;}",
"public void setElement (T element) {\r\n\t\t\r\n\t\tthis.element = element;\r\n\t\r\n\t}",
"public void setElementType(String element_type) {\n\t\tthis.element_type = element_type;\n\t}",
"public void setElement(T newvalue);",
"@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}",
"public void setElement(T element) {\n\t\tthis.element = element;\n\t}",
"public void setElement(Element Element) {\n\t\telement = Element;\n\t}",
"public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name) { throw new RuntimeException(\"Stub!\"); }",
"com.exacttarget.wsdl.partnerapi.ObjectDefinition addNewObjectDefinition();",
"ObjectElement createObjectElement();",
"public void setElement(Element element) {\n this.element = element;\n }",
"public void setElement(T elem)\n {\n\n element = elem;\n }",
"void updateElementDefinition(String elementName, Map<String, String> propertiesToUpdate, boolean retroactive)\n\t\t\tthrows IllegalArgumentException;",
"public final void setElementType(solarpowerconversioncalculator.proxies.ElementType elementtype)\n\t{\n\t\tsetElementType(getContext(), elementtype);\n\t}",
"public InteractionTarget(Element _element, int _type) {\n element = _element;\n type = _type;\n }",
"private static void assignElement(BendingPlayer bPlayer, Element e) {\n\t\tbPlayer.setElement(e);\n\t\tGeneralMethods.saveElements(bPlayer);\n\t\tBukkit.getPlayer(bPlayer.getUUID()).sendMessage(ChatColor.YELLOW + \"You have been born as \" + (e.getType() == ElementType.BENDING ? \"an \" : \"a \") + e.getColor() + e.getName() + e.getType().getBender() + ChatColor.YELLOW + \"!\");\n\t}",
"Form addElement(Element element);",
"public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }",
"public void setElement(Object e) {\n element = e;\n }",
"private PropertyCard createPropertyElement(Element eElement) {\r\n\t\tif ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.UTILITY )\r\n\t\t{\r\n\t\t return new UtilityPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if (PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.RAILING )\r\n\t\t{\r\n\t\t return new RailingPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.SIMPLE )\r\n\t\t{\r\n\t\t\treturn new PlotPropertyCard(\r\n\t\t\t\tInteger.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t\t,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t\t,PlotPropertyCard.Colour_Type.valueOf(eElement.getElementsByTagName(\"colour\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue0\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValueHotel\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"houseCost\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"hotelCost\").item(0).getTextContent())\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public void setElement(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/element\",v);\n\t\t_Element=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"void addModelElement(EObject modelElement);",
"private BoardElement createBoardElement(Element eElement) {\r\n\t\treturn new BoardElement(\r\n\t\t\teElement.getAttribute(\"id\")\r\n\t\t\t,new Point(Integer.parseInt(eElement.getElementsByTagName(\"topLeftX\").item(0).getTextContent())\r\n\t\t\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"topLeftY\").item(0).getTextContent()))\r\n\t\t\t,new Point(Integer.parseInt(eElement.getElementsByTagName(\"bottomRightX\").item(0).getTextContent())\r\n\t\t\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"bottomRightY\").item(0).getTextContent()))\r\n\t\t);\r\n\t}",
"private Element addProperty(String name, Property swagger_property) throws ParserConfigurationException {\n\t\tElement element = document.createElement(ParserConstants.element_prefix.value());\n\t\telement.setAttribute(ParserConstants.name.toString(), name);\n\n\t\tElement simple = element;\n\n\t\tif (swagger_property.getRequired()) {\n\t\t\telement.setAttribute(ParserConstants.minOccurs.toString(), ParserConstants.minOccurs.value());\n\t\t}\n\n\t\tif (swagger_property instanceof IntegerProperty) {\n\t\t\tIntegerProperty integerProperty = (IntegerProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.integer_prefix.value());\n\t\t\tif (integerProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(integerProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof LongProperty) {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.long_prefix.value());\n\t\t} else if (swagger_property instanceof StringProperty) {\n\t\t\tStringProperty stringProperty = (StringProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.string_prefix.value());\n\t\t\tif (stringProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(stringProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof DateTimeProperty) {\n\t\t\tDateTimeProperty dateTimeProperty = (DateTimeProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.date_time_prefix.value());\n\t\t\tif (dateTimeProperty.getEnum() != null) {\n\t\t\t\tsimple = addEnum(dateTimeProperty.getEnum());\n\t\t\t\telement.appendChild(simple);\n\t\t\t}\n\t\t} else if (swagger_property instanceof BooleanProperty) {\n\t\t\tBooleanProperty booleanProperty = (BooleanProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), ParserConstants.boolean_prefix.value());\n\t\t} else if (swagger_property instanceof RefProperty) {\n\t\t\tRefProperty refProperty = (RefProperty) swagger_property;\n\t\t\telement.setAttribute(ParserConstants.type.toString(), refProperty.getSimpleRef());\n\t\t} else if (swagger_property instanceof ObjectProperty) {\n\t\t\tObjectProperty objectProperty = (ObjectProperty) swagger_property;\n\t\t\telement.appendChild(js2wadl(name, objectProperty.getProperties()));\n\t\t} else if (swagger_property instanceof ArrayProperty) {\n\t\t\tArrayProperty arrayProperty = (ArrayProperty) swagger_property;\n\t\t\telement.appendChild(addProperty(name, arrayProperty.getItems()));\n\t\t} else {\n\t\t\telement.setAttribute(ParserConstants.type.toString(), swagger_property.getFormat());\n\t\t}\n\n\t\tif (swagger_property.getDescription() != null) {\n\t\t\tElement ann = document.createElement(ParserConstants.annotation_prefix.value());\n\t\t\tElement desc = document.createElement(ParserConstants.documentation_prefix.value());\n\t\t\tdesc.setTextContent(swagger_property.getDescription());\n\t\t\tann.appendChild(desc);\n\t\t\tsimple.appendChild(ann);\n\t\t}\n\n\t\treturn element;\n\t}",
"OurIfcElement createOurIfcElement();",
"public void setElement(WebElement element) {\n\t\t\r\n\t}",
"Element createElement();",
"Element() {\n\t}",
"public void setElement(E element) {\n\t\t\tthis.element = element;\n\t\t}",
"public GenericElement() {\n\t}",
"public interface IElementService {\n\n /**\n * Create new element\n * @param name\n */\n public IElement createNewElement(String name);\n}",
"RESTElement createRESTElement();",
"final protected boolean addElement(Object pID, TypeElement<?> pTypeElement) {\n\t\t\tif(!this.verifySecretID(pID)) return false;\n\t\t\t\n\t\t\tif((pTypeElement == null) || this.TypeElements.containsKey(pTypeElement.getIdentity())) return false;\n\t\t\tthis.TypeElements.put(pTypeElement.getIdentity(), pTypeElement);\n\t\t\treturn true;\n\t\t}",
"ViewElement createViewElement();",
"public final void setElementType(com.mendix.systemwideinterfaces.core.IContext context, solarpowerconversioncalculator.proxies.ElementType elementtype)\n\t{\n\t\tif (elementtype != null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.ElementType.toString(), elementtype.toString());\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.ElementType.toString(), null);\n\t}",
"IFMLNamedElement createIFMLNamedElement();",
"protected abstract Type loadDefaultElement();",
"public void addElement(int index, TLProperty element);",
"public void createModel() {\r\n\t\t\r\n\t\tEObject input;\r\n\t\tURI resourceURI = EditUIUtil.getURI(getEditorInput());\r\n\t\tIEditorInput editorInput = getEditorInput();\r\n\r\n\t\tView v = getAllView(editorInput);\r\n\t\t\r\n\t\tif (editorInput instanceof ValueEditorInputAppFeature) {\r\n\t\t\tValueEditorInputAppFeature featureInput = (ValueEditorInputAppFeature) editorInput;\r\n\t\t\tinput = featureInput.getFeature();\r\n\t\t} else if (editorInput instanceof ValueEditorInputAppGroup){\r\n\t\t\tValueEditorInputAppGroup groupInput = (ValueEditorInputAppGroup) editorInput;\r\n\t\t\tinput = groupInput.getGroup();\r\n\t\t} else {\r\n\t\t\tEAppNamedItem namedInput = (EAppNamedItem) getInputObjectFromWorkspace(((URIEditorInput) editorInput)\r\n\t\t\t\t\t.getURI());\r\n\t\t\tsetPartName(namedInput.getName());\r\n\t\t\tinput = namedInput;\r\n\t\t}\r\n\r\n\t\tAppModel2EditorModelConverter instance = AppModel2EditorModelConverter.getInstance();\r\n\t\teditorModel = instance.createEditorModel(input, v);\r\n\t\t\r\n\t\tResource resource = new XMIResourceImpl(resourceURI);\r\n\t\tresource.getContents().add(editorModel);\r\n\t\teditingDomain.getResourceSet().getResources().add(resource);\r\n\t\t\r\n\t\tSettingEvaluator.initRelevantForWholeModel(v, true);\r\n\t\t\r\n\t\t//S60CTBuilder.setEditor(this);\r\n\t}",
"void addElement(FormElement elt);",
"public interface TElement extends HasID, THasPropertyChange, PropertyChangeListener, Serializable {\n\n /**\n * Used if a requested attribute is not a member of the TElement derived\n * Class.\n */\n public final Object NOT_DEFINED = \"ATT_NOT_DEFINED\";\n\n /**\n * return the attribute value or teal.sim.TElement.NOT_DEFINED\n **/\n public Object getProperty(String attName);\n\n /**\n * set the attribute value return value is success\n **/\n public boolean setProperty(String attName, Object value);\n\n public void addRoute(Route r);\n \n /** \n * Establish a route from this object's source attribute and the targeted \n * attribute of another TElement. \n **/\n public void addRoute(String attribute, TElement listener, String targetName);\n \n \n /** \n * Remove a route from this object's source attribute and the target's output attribute. \n **/\n public void removeRoute(String attribute, TElement listener, String targetName);\n}",
"@SuppressWarnings(\"unchecked\")\n private void initElements() {\n\n try {\n\n Elements marker = null;\n\n for (Annotation annotation : this.getClass().getDeclaredAnnotations()) {\n if(annotation instanceof Elements) {\n marker = (Elements) annotation;\n }\n }\n\n if(marker == null) {\n String msg = \"Expected @Elements annotation on Screen class\";\n log.error(msg);\n throw new FrameworkException(msg);\n }\n\n PlatformType platform = DriverWrapper.getActivePlatform();\n Validate.notNull(platform);\n\n Class<? extends BaseElements> elementsClass = null;\n\n if(marker.elements().equals(BaseElements.class)) {\n // do we have individual iOS or Android elements?\n if(PlatformType.ANDROID == platform) {\n elementsClass = marker.androidElements();\n\n } else if(PlatformType.IOS == platform) {\n elementsClass = marker.iosElements();\n } else {\n throw new IllegalArgumentException(\"Un-supported platform\");\n }\n\n } else {\n // just take combined merged elements\n elementsClass = marker.elements();\n }\n\n if(marker.elements().equals(BaseElements.class)) {\n throw new IllegalArgumentException(\"Expected that you provide an elements class\");\n }\n\n Constructor<? extends BaseElements> constructor = elementsClass.getConstructor();\n this.elements = constructor.newInstance();\n\n PageFactory.initElements(new AppiumFieldDecorator(driver), elements);\n\n this.elements.init(driver);\n\n } catch(Exception e) {\n\n log.error(\"Failed to initialize page elements\", e);\n throw new FrameworkException(e);\n }\n }",
"public void setElementNameForHibernate(SC elementName) {\n _elementName = elementName;\n }",
"@Test\n\tpublic void testInsertSingleElement() throws Exception {\n\t\tMap<String, Object> elementProperties = new HashMap<>();\n\t\telementProperties.put(\"val1\", \"20\");\n\t\telementProperties.put(\"val2\", 20);\n;\n\t\tElementBoundary newElement = new ElementBoundary();\n\t\tnewElement.setKey(new Key(\"3\", \"smartspace\"));\n\t\tnewElement.setElementType(\"type\");\n\t\tnewElement.setName(\"name\");\n\t\tnewElement.setExpired(false);\n\t\tnewElement.setCreator(new UserForBoundary(this.userEntity.getUserEmail(), \"bla\"));\n\t\tnewElement.setLatlng(new LocationForBoundary(22, 23.11));\n\t\tnewElement.setElementProperties(elementProperties);\n\t\tnewElement.setCreated(new Date());\n\n\t\tElementBoundary[] elements = { newElement };\n\t\tthis.restTemplate.postForObject(this.baseUrl, elements,\n\t\t\t\tElementBoundary[].class, this.userEntity.getUserSmartspace(),\n\t\t\t\tthis.userEntity.getUserEmail());\n\t\t// THEN the database contains the new element\n\t\tassertThat(this.elementDao.readAll()).hasSize(1);\n\t}",
"public interface HxElementFactory\n extends HxProvider {\n\n /**\n * Creates a new modifiable instance with given name\n *\n * @param className of new type instance\n * @return a new and empty instance of <code>HxType</code>\n */\n HxType createType(final String className);\n\n /**\n * Creates a new reference to an existing type with given name\n *\n * @param className of an existing type\n * @return a new and empty instance of <code>HxType</code>\n */\n HxType createReference(final String className);\n\n /**\n * Creates a new reference to an existing type\n *\n * @param resolvedType for referencing\n * @return a new and empty instance of <code>HxType</code>\n */\n HxType createReference(final HxType resolvedType);\n\n /**\n * Creates a new unbound field with given type and name\n *\n * @param type of new field\n * @param fieldName of new field\n * @return a new unbound field instance\n */\n default HxField createField(final Class<?> type,\n final String fieldName) {\n return createField(type.getName(), fieldName);\n }\n\n /**\n * Creates a new unbound field with given type and name\n *\n * @param fieldType of new field\n * @param fieldName of new field\n * @return a new unbound field instance\n */\n default HxField createField(final HxType fieldType,\n final String fieldName) {\n return createField(fieldType.getName(), fieldName);\n }\n\n /**\n * Creates a new unbound field with given type and name\n *\n * @param fieldType of new field\n * @param fieldName of new field\n * @return a new unbound field instance\n */\n HxField createField(final String fieldType,\n final String fieldName);\n\n /**\n * Creates a new unbound constructor with given parameters\n *\n * @param parameterTypes of new constructor\n * @return a new unbound constructor instance\n */\n HxMethod createConstructor(final String... parameterTypes);\n\n /**\n * Creates a new unbound constructor with given parameters\n *\n * @param parameterTypes of new constructor\n * @return a new unbound constructor instance\n */\n HxMethod createConstructor(final HxType... parameterTypes);\n\n /**\n * Creates a new unbound constructor with given parameters\n *\n * @param parameterTypes of new constructor\n * @return a new unbound constructor instance\n */\n default HxMethod createConstructor(final Class<?>... parameterTypes) {\n return createConstructor(getHaxxor().toNormalizedClassnames(parameterTypes));\n }\n\n /**\n * Creates a new unbound constructor-reference with given declaring-type and parameters\n *\n * @param declaringType of new constructor-reference\n * @param parameterTypes of new constructor-reference\n * @return a new constructor-reference instance\n */\n HxMethod createConstructorReference(final String declaringType,\n final String... parameterTypes);\n\n /**\n * Creates a new unbound method with given name, return-type and parameters\n *\n * @param returnType of new method\n * @param methodName of new method\n * @param parameterTypes of new method\n * @return a new unbound method instance\n */\n HxMethod createMethod(final String returnType,\n final String methodName,\n final String... parameterTypes);\n\n /**\n * Creates a new unbound method with given name, return-type and parameters\n *\n * @param returnType of new method\n * @param methodName of new method\n * @param parameterTypes of new method\n * @return a new unbound method instance\n */\n HxMethod createMethod(final HxType returnType,\n final String methodName,\n final HxType... parameterTypes);\n\n /**\n * Creates a new unbound method with given name, return-type and parameters\n *\n * @param returnType of new method\n * @param methodName of new method\n * @param parameterTypes of new method\n * @return a new unbound method instance\n */\n default HxMethod createMethod(final Class<?> returnType,\n final String methodName,\n final Class<?>... parameterTypes) {\n return createMethod(returnType.getName(),\n methodName,\n getHaxxor().toNormalizedClassnames(parameterTypes));\n }\n\n /**\n * Creates a new unbound method-reference with given name, return-type and parameters\n *\n * @param declaringType of new method-reference\n * @param returnType of new method-reference\n * @param methodName of new method-reference\n * @param parameterTypes of new method-reference\n * @return a new method-reference instance\n */\n default HxMethod createMethodReference(final Class<?> declaringType,\n final Class<?> returnType,\n final String methodName,\n final Class<?>... parameterTypes) {\n return createMethodReference(\n declaringType.getName(),\n returnType.getName(),\n methodName,\n getHaxxor().toNormalizedClassnames(parameterTypes)\n );\n }\n\n /**\n * Creates a new unbound method-reference with given name, return-type and parameters\n *\n * @param declaringType of new method-reference\n * @param returnType of new method-reference\n * @param methodName of new method-reference\n * @param parameterTypes of new method-reference\n * @return a new method-reference instance\n */\n HxMethod createMethodReference(final String declaringType,\n final String returnType,\n final String methodName,\n final String... parameterTypes);\n\n /**\n * Creates a new unbound parameter with given type\n *\n * @param className of new parameter\n * @return a new unbound parameter instance\n */\n HxParameter createParameter(final String className);\n\n /**\n * Creates a new unbound parameter with given type\n *\n * @param cls of new parameter\n * @return a new unbound parameter instance\n */\n default HxParameter createParameter(final Class<?> cls) {\n return createParameter(cls.getName());\n }\n\n /**\n * Creates a new unbound parameter with given type\n *\n * @param parameterType of new parameter\n * @return a new unbound parameter instance\n */\n default HxParameter createParameter(final HxType parameterType) {\n return createParameter(parameterType.getName());\n }\n\n /**\n * Creates a new unbound annotation with given type and visibility\n *\n * @param className of new annotation\n * @param visible is the visibility of new annotation\n * @return a new unbound annotation instance\n */\n HxAnnotation createAnnotation(final String className,\n final boolean visible);\n\n /**\n * Creates a new unbound annotation with given type and visibility\n *\n * @param cls of new annotation\n * @param visible is the visibility of new annotation\n * @return a new unbound annotation instance\n */\n default HxAnnotation createAnnotation(final Class<? extends Annotation> cls,\n final boolean visible) {\n return createAnnotation(cls.getName(), visible);\n }\n\n /**\n * Creates a new unbound annotation with given type and visibility\n *\n * @param annotationType of new annotation\n * @param visible is the visibility of new annotation\n * @return a new unbound annotation instance\n */\n default HxAnnotation createAnnotation(final HxType annotationType,\n final boolean visible) {\n return createAnnotation(annotationType.getName(), visible);\n }\n\n /**\n * Creates a new unbound annotated element\n * @return a new unbound parameter instance\n */\n HxAnnotated<?> createAnnotated();\n}",
"int placeElement(String elementName, Point2D startCoordinates);",
"@Override\n public Element createDomImpl(Renderable element) {\n InputElement radioInputElement =\n Document.get().createRadioInputElement(\"xx\");\n radioInputElement.setClassName(CheckConstants.css.radio());\n radioInputElement.setTabIndex(0);\n return radioInputElement;\n }",
"public abstract Object create(ElementMapping elementMapping, ReadContext context);",
"public void setElement(String element) {\n this.element = element;\n }",
"OurIfcElementType createOurIfcElementType();",
"public static AnnotationType createUpdatedEntity() {\n return new AnnotationType()\n .name(UPDATED_NAME)\n .label(UPDATED_LABEL)\n .description(UPDATED_DESCRIPTION)\n .emotional(UPDATED_EMOTIONAL)\n .weight(UPDATED_WEIGHT)\n .color(UPDATED_COLOR)\n .projectId(DEFAULT_PROJECT_ID);\n }",
"public Element(String name) {\n\t\tsetName(name);\n\t}",
"Definition createDefinition();",
"public void setElement(Location element){\n\t\t\tthis.element = element;\n\t\t}",
"public View create(Element elem) {\n return null;\n }",
"Element createXmlDeepSkyTargetElement(Element element, String xsiType) {\n\n if (element == null) {\n return null;\n }\n\n Document ownerDoc = element.getOwnerDocument();\n\n // Get or create the container element\n Element e_Targets = null;\n boolean created = false;\n NodeList nodeList = ownerDoc.getElementsByTagName(RootElement.XML_TARGET_CONTAINER);\n if (nodeList.getLength() == 0) { // we're the first element. Create container element\n e_Targets = ownerDoc.createElement(RootElement.XML_TARGET_CONTAINER);\n created = true;\n } else {\n e_Targets = (Element) nodeList.item(0); // there should be only one container element\n }\n\n // Check if this element doesn't exist so far\n nodeList = e_Targets.getElementsByTagName(ITarget.XML_ELEMENT_TARGET);\n if (nodeList.getLength() > 0) {\n Node currentNode = null;\n NamedNodeMap attributes = null;\n for (int i = 0; i < nodeList.getLength(); i++) { // iterate over all found nodes\n currentNode = nodeList.item(i);\n attributes = currentNode.getAttributes();\n Node idAttribute = attributes.getNamedItem(ISchemaElement.XML_ELEMENT_ATTRIBUTE_ID);\n if ((idAttribute != null) // if ID attribute is set and equals this objects ID, return existing element\n && (idAttribute.getNodeValue().trim().equals(this.getID().trim()))) {\n // Not sure if this is good!? Maybe we should return currentNode and make\n // doublicity check in caller\n // class!?\n return null;\n }\n }\n }\n\n // Create the new target element\n Element e_Target = this.createXmlTargetElement(e_Targets);\n e_Targets.appendChild(e_Target);\n\n // Set XSI:Type\n e_Target.setAttribute(ITarget.XML_XSI_TYPE, xsiType);\n\n if (smallDiameter != null) {\n Element e_SmallDiameter = ownerDoc.createElement(XML_ELEMENT_SMALLDIAMETER);\n e_SmallDiameter = smallDiameter.setToXmlElement(e_SmallDiameter);\n\n e_Target.appendChild(e_SmallDiameter);\n }\n\n if (largeDiameter != null) {\n Element e_LargeDiameter = ownerDoc.createElement(XML_ELEMENT_LARGEDIAMETER);\n e_LargeDiameter = largeDiameter.setToXmlElement(e_LargeDiameter);\n\n e_Target.appendChild(e_LargeDiameter);\n }\n\n if (!Float.isNaN(visibleMagnitude)) {\n Element e_VisMag = ownerDoc.createElement(XML_ELEMENT_VISIBLEMAGNITUDE);\n Node n_VisMagText = ownerDoc.createTextNode(Float.toString(this.getVisibleMagnitude()));\n e_VisMag.appendChild(n_VisMagText);\n\n e_Target.appendChild(e_VisMag);\n }\n\n if (surfaceBrightness != null) {\n Element e_SurfBr = ownerDoc.createElement(XML_ELEMENT_SURFACEBRIGHTNESS);\n e_SurfBr = surfaceBrightness.setToXmlElement(e_SurfBr);\n\n e_Target.appendChild(e_SurfBr);\n }\n\n // If container element was created, add container here so that XML sequence\n // fits forward references\n // Calling the appendChild in the if avbe would cause the session container to\n // be located before\n // observers and sites container\n if (created) {\n ownerDoc.getDocumentElement().appendChild(e_Targets);\n }\n\n return e_Target;\n\n }",
"public synchronized void addElement(Element element) throws DTDException {\r\n\r\n String name = element.getName();\r\n\r\n if (name == null) {\r\n String err = \"An element declaration must contain a name.\";\r\n throw new DTDException(err);\r\n }\r\n if (elements.containsKey(name)) {\r\n String err = \"An element declaration already exists with the given name: \";\r\n throw new DTDException(err + name);\r\n }\r\n\r\n elements.put(name,element);\r\n\r\n }",
"public void addElement(final FeatureElement newElement)\n\t{\n\t\tfeatureElements.add(newElement);\n\t}",
"@Override\r\n\tpublic void updateElement() {\n\r\n\t}",
"void addElement(String name, Element element) {\n if (elementMap.containsKey(name)) {\n elementMap.get(name).add(element);\n } else {\n List<Element> newList = new ArrayList<Element>();\n newList.add(element);\n elementMap.put(name, newList);\n }\n }",
"public static final Element createSingle(final String typeName, final String template, final String common, final String partType) {\r\n final Element type = new Element(\"reportType\").setAttribute(\"name\", typeName);\r\n type.setAttribute(\"template\", template);\r\n if (common != null)\r\n type.setAttribute(\"common\", common);\r\n\r\n final Element part = new Element(\"part\").setAttribute(\"name\", template);\r\n part.setAttribute(\"file\", template);\r\n part.setAttribute(\"type\", partType);\r\n type.addContent(part);\r\n\r\n return type;\r\n }",
"public void add(Declarator element) throws ChameleonProgrammerException;",
"void addElementToInventory(String elementName);",
"org.landxml.schema.landXML11.BridgeElementDocument.BridgeElement addNewBridgeElement();",
"private void addElement(PEElement element) {\n\t\tif (currentGroups.size() > 0) {\n\t\t\tcurrentGroups.peek().getElements().add(element);\n\t\t} else if (currentLabeledNodeType != null) {\n\t\t\tcurrentLabeledNodeType.getElements().add(element);\n\t\t} else {\n\t\t\tcurrentNodeType.getElements().add(element);\n\t\t}\n\t}",
"public void setElement(E element)\n\t{\n\t\tthis.data = element;\n\t}",
"protected void setTypeId(String typeId) {\n\t\tcontext.getElement().setAttribute(\"typeId\", \"org.csstudio.opibuilder.widgets.\" + typeId);\n\t}",
"public XmlElementDefinition(String elementName, XmlFieldSerializer serializer) {\r\n super();\r\n this.elementName = elementName;\r\n this.serializer = serializer;\r\n }",
"public void define(){\n\n noOfCredits = Game.level.getCredits();\n unitsToWin = Game.level.getUnitsToWin();\n\n for (int i = 0; i <buttons.length ; i++) {\n buttons[i] = new ShopButton((Game.width/2) -\n ((noOfButtons*buttonsize)/2) -((smallSpace*\n (buttons.length-1)) /2) + ((buttonsize + smallSpace)*i),\n ((GameContainer.rowCount * GameContainer.squareSize )\n + largeSpace), buttonsize , buttonsize, i);\n }\n\n for (int i = 0; i < statsElements.length ; i++) {\n //define where the statselement should be placed.\n statsElements[i] = new ShopButton(((Game.width/2)\n - (GameContainer.columnCount*\n GameContainer.squareSize )/2 + (((GameContainer.columnCount\n *GameContainer.squareSize)/7)*3)*i ),\n (GameContainer.rowCount * GameContainer.squareSize\n ), buttonsize , buttonsize, i);\n }\n }",
"@Override\n public void setElementId(String arg0)\n {\n \n }",
"public LighterTypes(Types base, Elements elements) {\n this.baseTypes = base;\n this.elements = elements;\n }",
"public <T> T createObject(String mPackage,Class<T> type, Field[] fields) throws CreationException {\n\t\ttrace.addTrace(TraceType.CREATION, \"Create Element of type \" + type.getSimpleName() + \" in target model.\");\n\t\t\n\t\tT instance = null;\n\t\tClass modelClass = model.getClass();\n\t\tRefPackage pkg = loadBasePackage(mPackage);\n\t\t\n\t\ttry {\n\t\t\tMethod getXClass = pkg.getClass().getMethod(\n\t\t\t\t\t\"get\" + type.getSimpleName(), new Class[] {});\n\t\t\tRefClass xClass = (RefClass) getXClass.invoke(pkg, new Object[] {});\n\n\t\t\tMethod createXInstance = xClass.getClass().getMethod(\n\t\t\t\t\t\"create\" + type.getSimpleName(), new Class[] {});\n\t\t\tinstance = (T) createXInstance.invoke(xClass, new Object[] {});\n\t\t\t\n\t\t} catch (SecurityException e) {\n\t\t\tthrow new CreationException(ERROR_CREATE_ELEMENT + type.getSimpleName());\n\t\t} catch (NoSuchMethodException e) {\n\t\t\tthrow new CreationException(ERROR_CREATE_ELEMENT + type.getSimpleName());\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tthrow new CreationException(ERROR_CREATE_ELEMENT + type.getSimpleName());\n\t\t} catch (IllegalAccessException e) {\n\t\t\tthrow new CreationException(ERROR_CREATE_ELEMENT + type.getSimpleName());\n\t\t} catch (InvocationTargetException e) {\n\t\t\tthrow new CreationException(ERROR_CREATE_ELEMENT + type.getSimpleName());\n\t\t}\t\n\t\t\n\t\tfor (Field field : fields) {\n\t\t\t// TODO Add more type savety!\n\t\t\tMethod[] methods = instance.getClass().getMethods();\n\t\t\tMethod setter = null;\n\t\t\tfor(Method m : methods) {\n\t\t\t\tif (m.getName().equals(\"set\" + field.getName())) {\n\t\t\t\t\tsetter = m;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(setter != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsetter.invoke(instance, new Object[]{field.getValue()});\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_SET_FIELD + \"[\" + type.getSimpleName()+\", \" + field.getName() + \"]\");\n\t\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_SET_FIELD + \"[\" + type.getSimpleName()+\", \" + field.getName() + \"]\");\n\t\t\t\t} catch (InvocationTargetException e) {\n\t\t\t\t\tthrow new CreationException(ERROR_SET_FIELD + \"[\" + type.getSimpleName()+\", \" + field.getName() + \"]\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new CreationException(ERROR_FIND_SETTER + \"[\" + type.getSimpleName()+\", \" + field.getName() + \"]\");\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}",
"public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}",
"@Override\r\n\tpublic void onMapElementCreated(MapElement mapElement) {\r\n\t\tfields.put(mapElement, new UIElement(mapElement.getCoord(), UIUtility.getImage(mapElement.getImagePath())));\r\n\r\n\t\tUILogger.log(mapElement + \" changed\");\r\n\r\n\t\t// Notify the GamePanel that its contents need to be repainted\r\n\t\tparent.repaint();\r\n\t\tUILogger.log(\"GamePanel.repaint()\");\r\n\t}",
"public GeneratedRepeatingPanelModel(RepeatingPanelElement element) {\n this.helper = new SynchronizerHelper(element);\n }",
"public void setElementName(SC elementName) {\n if(elementName instanceof org.hl7.hibernate.ClonableCollection)\n elementName = ((org.hl7.hibernate.ClonableCollection<SC>) elementName).cloneHibernateCollectionIfNecessary();\n _elementName = elementName;\n }",
"public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name, int arraySize) { throw new RuntimeException(\"Stub!\"); }",
"public Element() {\r\n\t\tx = 0;\r\n\t\ty = 0;\r\n\t\tcolor = Color.gray;\r\n\t\thilite = true;\r\n\t}",
"@XmlAttribute(name=\"elementClass\")\n public void setElementType(String elementType)\n {\n this.elementType = elementType;\n }",
"protected void definitionStarted(String definitionName) {\n\t\tTypeDefinition definition = graphLayout\n\t\t\t\t.getTypeDefinition(definitionName);\n\t\tcurrentDefinition = definition;\n\t\tif (definition == null && isElementDefinition(definitionName)) {\n\t\t\tcurrentDefinition = new ElementDefinition(definitionName);\n\t\t\tgraphLayout.add(definition);\n\t\t}\n\t}",
"public IInputType createInputType(IInputType superClass, String Id, String name, boolean isExtensionElement);",
"public interface HTMLModElement extends HTMLElement {\n @JSBody(script = \"return HTMLModElement.prototype\")\n static HTMLModElement prototype() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n @JSBody(script = \"return new HTMLModElement()\")\n static HTMLModElement create() {\n throw new UnsupportedOperationException(\"Available only in JavaScript\");\n }\n\n /**\n * Sets or retrieves reference information about the object.\n */\n @JSProperty\n String getCite();\n\n @JSProperty\n void setCite(String cite);\n\n /**\n * Sets or retrieves the date and time of a modification to the object.\n */\n @JSProperty\n String getDateTime();\n\n @JSProperty\n void setDateTime(String dateTime);\n\n}",
"public android.renderscript.Element create() { throw new RuntimeException(\"Stub!\"); }",
"ElementSetNameType createElementSetNameType();",
"protected GameElement() {\n\t\tsetX(0f);\n\t\tsetY(0f);\n\t\tsetBounds(getX(), getY(), Constants.GAMEELEMENT_WIDTH,\n\t\t\t\tConstants.GAMEELEMENT_WIDTH);\n\t}",
"public interface AuthoringModelController {\n\n\t/**\n\t * Save the current state of the current level a game being authored.\n\t *\n\t * @param saveName\n\t * the name to assign to the save file\n\t */\n\tvoid saveGameState(File saveName);\n\n\t/**\n\t * Load the detailed state of a game for a particular level, including\n\t * high-level information and elements present.\n\t *\n\t * @param saveName\n\t * the name used to save the game authoring data\n\t * @param level\n\t * the level of the game which should be loaded\n\t * @throws IOException\n\t * if the save name does not refer to existing files\n\t */\n\tvoid loadOriginalGameState(String saveName, int level) throws IOException;\n\n\t/**\n\t * Export a fully authored game, including all levels, into an executable file.\n\t */\n\tvoid exportGame();\n\n\t/**\n\t * Create a new level for the game being authored. Saves the state of the\n\t * current level being authored when the transition occurs.\n\t *\n\t * @param level\n\t * the number associated with the new level\n\t */\n\tvoid createNewLevel(int level);\n\n\t/**\n\t * Delete the previously created level.\n\t *\n\t * @param level\n\t * the level to delete\n\t * @throws IllegalArgumentException\n\t * if level does not exist\n\t */\n\tvoid deleteLevel(int level) throws IllegalArgumentException;\n\n\t/**\n\t * Get the top-level configuration options for a game element definition.\n\t *\n\t * @return a map from the name of the configuration option to set to a list of\n\t * choices for that option\n\t */\n\tMap<String, List<String>> getElementBaseConfigurationOptions();\n\n\t/**\n\t * Get auxiliary configuration elements for a game element, based on top-level\n\t * configuration choices.\n\t *\n\t * @return a map from the name of the configuration option to its class type\n\t */\n\tMap<String, Class> getAuxiliaryElementConfigurationOptions(Map<String, String> baseConfigurationChoices);\n\n\t/**\n\t * Define a new type of element for the game being authored. Elements of this\n\t * type will be created by the model based on its properties, assuming defaults\n\t * where necessary. This method should not be used for updating properties of an\n\t * existing template, the updateElementDefinition method should be used for that\n\t * instead.\n\t *\n\t * @param elementName\n\t * the template name assigned to this element, for future reuse of\n\t * the properties\n\t * @param properties\n\t * a map containing the properties of the element to be created\n\t * @throws IllegalArgumentException\n\t * if the template already exists.\n\t */\n\tvoid defineElement(String elementName, Map<String, String> properties) throws IllegalArgumentException;\n\n\t/**\n\t * Update an existing template by overwriting the specified properties to their\n\t * new specified values. Should not be used to create a new template, the\n\t * defineElement method should be used for that.\n\t * \n\t * @param elementName\n\t * the name of the template to be updated\n\t * @param propertiesToUpdate\n\t * the properties to update\n\t * @param retroactive\n\t * whether previously created elements of this type must have their\n\t * properties updated\n\t * \n\t * @throws IllegalArgumentException\n\t * if the template does not already exist\n\t */\n\tvoid updateElementDefinition(String elementName, Map<String, String> propertiesToUpdate, boolean retroactive)\n\t\t\tthrows IllegalArgumentException;\n\n\t/**\n\t * Delete a previously defined template\n\t * \n\t * @param elementName\n\t * name of the template to delete\n\t * @throws IllegalArgumentException\n\t * if the template does not already exist\n\t */\n\tvoid deleteElementDefinition(String elementName) throws IllegalArgumentException;\n\n\t/**\n\t * Place a game element of previously defined type within the game.\n\t *\n\t * @param elementName\n\t * the template name for the element\n\t * @param startCoordinates\n\t * the coordinates at which the element should be placed\n\t * @return a unique identifier for the sprite abstraction representing the game\n\t * element\n\t */\n\tint placeElement(String elementName, Point2D startCoordinates);\n\n\t/**\n\t * Add element of given name\n\t * \n\t * @param elementName\n\t */\n\tvoid addElementToInventory(String elementName);\n\n\t/*\n\t * Place a game element of previously defined type within the game which follows\n\t * a path defined in the authoring environment as it moves.\n\t *\n\t * @param elementName the template name for the element\n\t * \n\t * @param pathList a list of points the object should target as it moves\n\t * \n\t * @return a unique identifier for the sprite abstraction representing the game\n\t * element\n\t */\n\tint placePathFollowingElement(String elementName, PathList pathList);\n\n\t/**\n\t * Retrieve the inventory for the current level\n\t * \n\t * @return set of element names that can be placed in the current level\n\t */\n\tSet<String> getInventory();\n\n\t/**\n\t * Get the ImageView corresponding to a particular spriteId\n\t * \n\t * @param spriteId\n\t * id of the sprite whose image is to be retrieved, previously\n\t * generated by controller\n\t * @return ImageView representing the GameElement\n\t */\n\tImageView getRepresentationFromSpriteId(int spriteId);\n\n\t/**\n\t * Get the high-level status of a game in-progress, notably points, lives, etc\n\t * \n\t *\n\t * @return a map of relevant details to display or modify about the game\n\t */\n\tMap<String, Double> getStatus();\n\n\t/**\n\t * Retrieve information on the cost of each element in terms of the various\n\t * resources\n\t * \n\t * @return map of element name to its cost in terms of each resource\n\t */\n\tMap<String, Map<String, Double>> getElementCosts();\n\n\t/**\n\t * Move a previously created game element to a new location.\n\t *\n\t * @param elementId\n\t * elementId the unique identifier for the element\n\t * @param xCoordinate\n\t * the new horizontal position of the element within the game\n\t * @param yCoordinate\n\t * the new vertical position of the element within the game\n\t */\n\tvoid moveElement(int elementId, double xCoordinate, double yCoordinate);\n\n\t/**\n\t * Update the properties of a particular game element, without changing the\n\t * definition of its type.\n\t *\n\t * @param elementId\n\t * the unique identifier for the element\n\t * @param propertiesToUpdate\n\t * a map containing the new properties of the element\n\t */\n\tvoid updateElementProperties(int elementId, Map<String, String> propertiesToUpdate);\n\n\t/**\n\t * Delete a previously created game element.\n\t *\n\t * @param elementId\n\t * the unique identifier for the element\n\t */\n\tvoid deleteElement(int elementId);\n\n\t/**\n\t * Fetch all available game names and their corresponding descriptions\n\t * \n\t * @return map where keys are game names and values are game descriptions\n\t */\n\tMap<String, String> getAvailableGames();\n\n\t/**\n\t * Get a map of properties for a particular game element, so as to allow for\n\t * their displaying in a modification area of the display.\n\t *\n\t * @param elementId\n\t * the unique identifier for the game element\n\t * @return a map of properties for the element with this identifier\n\t * @throws IllegalArgumentException\n\t * if the element ID does not refer to a created element\n\t */\n\tMap<String, String> getElementProperties(int elementId) throws IllegalArgumentException;\n\n\t/**\n\t * Get a map of properties for an element template / model, so as to allow for\n\t * their displaying in a modification area of the display\n\t * \n\t * @param elementName\n\t * the template name for the element\n\t * @return a map of properties for the template with this identifier\n\t * @throws IllegalArgumentException\n\t * if the element name does not refer to a defined template\n\t */\n\tMap<String, String> getTemplateProperties(String elementName) throws IllegalArgumentException;\n\n\t/**\n\t * Get map of all defined template names to their properties\n\t * \n\t * @return map of template names to properties of each template\n\t */\n\tMap<String, Map<String, String>> getAllDefinedTemplateProperties();\n\n\tMap<String, Double> getResourceEndowments();\n\n\t/**\n\t * Set the name of the game being authored.\n\t *\n\t * @param gameName\n\t * the name of the game\n\t */\n\tvoid setGameName(String gameName);\n\n\t/**\n\t * Set the description of a game being authored.\n\t *\n\t * @param gameDescription\n\t * the description authored for the game\n\t */\n\tvoid setGameDescription(String gameDescription);\n\n\t/**\n\t * Set the victory condition for the current level of the game being authored\n\t * \n\t * @param conditionIdentifier\n\t * the description of the victory condition, which can be mapped to a\n\t * boolean state function\n\t */\n\tvoid setVictoryCondition(String conditionIdentifier);\n\n\t/**\n\t * Set the defeat condition for the current level of the game being authored\n\t * \n\t * @param conditionIdentifier\n\t * the description of the defeat condition, which can be mapped to a\n\t * boolean state function\n\t */\n\tvoid setDefeatCondition(String conditionIdentifier);\n\n\t/**\n\t * Set a top-level game status property (e.g. lives, starting resources, etc)\n\t *\n\t * @param property\n\t * name of the property to set\n\t * @param value\n\t * string representation of the property's new value\n\t */\n\tvoid setStatusProperty(String property, Double value);\n\n\t/**\n\t * Set the resource endowments for the current level\n\t * \n\t * @param resourceEndowments\n\t * map of resource name to amount of that resource to begin that\n\t * level with\n\t */\n\tvoid setResourceEndowments(Map<String, Double> resourceEndowments);\n\n\t/**\n\t * Set the resource endowment of a specific resource name\n\t * @param resourceName\n\t * @param newResourceEndowment\n\t */\n\tvoid setResourceEndowment(String resourceName, double newResourceEndowment);\n\t\n\t/**\n\t * Set the cost of an element in terms of various resources\n\t * \n\t * @param elementName\n\t * the template name for the element\n\t * @param unitCosts\n\t * map of resource name to cost in terms of that resource for this\n\t * element\n\t */\n\tvoid setUnitCost(String elementName, Map<String, Double> unitCosts);\n\n\t/**\n\t * Set the behavior and parameters of the wave\n\t * \n\t * @param waveProperties\n\t * a map containing the properties of the wave to be created\n\t * @param elementNames\n\t * name of elements to spawn\n\t * @param spawningPoint\n\t * the point at which to spawn the wave\n\t */\n\tvoid setWaveProperties(Map<String, String> waveProperties, Collection<String> elementNamesToSpawn,\n\t\t\tPoint2D spawningPoint);\n\n\t/**\n\t * Retrieve a collection of descriptions of the possible victory conditions\n\t * \n\t * @return a collection of strings describing the possible victory conditions\n\t * that can be assigned for a given level\n\t */\n\tCollection<String> getPossibleVictoryConditions();\n\n\t/**\n\t * Retrieve a collection of descriptions of the possible defeat conditions\n\t * \n\t * @return a collection of strings describing the possible defeat conditions\n\t * that can be assigned for a given level\n\t */\n\tCollection<String> getPossibleDefeatConditions();\n\n}",
"@Override\n public abstract void addToXmlElement(Element element);"
] | [
"0.60208094",
"0.5985025",
"0.5950426",
"0.59488297",
"0.57518685",
"0.565196",
"0.56205887",
"0.56136453",
"0.5500408",
"0.54917437",
"0.5491412",
"0.5409567",
"0.5405541",
"0.53958255",
"0.538763",
"0.53633565",
"0.5344207",
"0.5304955",
"0.53049195",
"0.53043675",
"0.5277222",
"0.5228328",
"0.52171296",
"0.5211151",
"0.5208847",
"0.5186444",
"0.5186082",
"0.51184237",
"0.50971574",
"0.50799036",
"0.5074602",
"0.5061071",
"0.5056709",
"0.49892884",
"0.4978759",
"0.4973964",
"0.49642262",
"0.49600515",
"0.49456123",
"0.49453092",
"0.4931202",
"0.4925408",
"0.49088868",
"0.49050304",
"0.48768583",
"0.48669234",
"0.48622173",
"0.4862191",
"0.48611906",
"0.48581102",
"0.48504713",
"0.48409924",
"0.48291424",
"0.48171476",
"0.48157862",
"0.48150423",
"0.4783779",
"0.47832212",
"0.47637683",
"0.47528574",
"0.47481588",
"0.4738861",
"0.47195628",
"0.46932593",
"0.46909118",
"0.4679697",
"0.46779943",
"0.46777573",
"0.46722576",
"0.46707237",
"0.46674818",
"0.4648273",
"0.46353105",
"0.4634609",
"0.46314824",
"0.46303758",
"0.46277928",
"0.46267983",
"0.46192566",
"0.46112952",
"0.46112272",
"0.4608345",
"0.46023744",
"0.45976305",
"0.45887333",
"0.4581247",
"0.45702934",
"0.45695716",
"0.45675397",
"0.45559287",
"0.454833",
"0.4545753",
"0.454485",
"0.453736",
"0.45343792",
"0.451659",
"0.45081913",
"0.44992116",
"0.4496542",
"0.44929788"
] | 0.581942 | 4 |
Update an existing template by overwriting the specified properties to their new specified values. Should not be used to create a new template, the defineElement method should be used for that. | void updateElementDefinition(String elementName, Map<String, String> propertiesToUpdate, boolean retroactive)
throws IllegalArgumentException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void updateFromTemplate() {\r\n try {\r\n if (templateList.getSelectedItem() != null) {\r\n getConfigurer().loadPropertiesFromFile((String) templateList.getSelectedItem());\r\n Iterator<PropertyInputPanel> it = propertyInputPanels.iterator();\r\n while (it.hasNext()) {\r\n PropertyInputPanel panel = it.next();\r\n \r\n Object currentValue = getConfigurer().getProperty(panel.getName());\r\n if (currentValue != null && panel.isEnabled()) {\r\n panel.setValue(currentValue);\r\n }\r\n \r\n }\r\n }\r\n } catch (ClassCastException e) {\r\n Util.debugMsg(\"Saved template has incompatible data, it will be ignored\");\r\n }\r\n }",
"@Test\n public void updateTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n UpdatePdfTemplate model = new UpdatePdfTemplate.Builder().build();\n PdfTemplate response = api.updateTemplate(id, model);\n assertNotNull(response);\n }",
"void setTemplate(ITemplateKey key, Template template);",
"static String applyTemplate(final String template, final Map<String, String> props) {\n String data = template;\n Set<Entry<String, String>> entries = props.entrySet();\n for (Entry<String, String> entry : entries) {\n data = replacePropertyWithValue(data, entry.getKey(), entry.getValue());\n }\n return data;\n }",
"void updateElementProperties(int elementId, Map<String, String> propertiesToUpdate);",
"private void updateDescTemplate(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\telse if(propertiesObj instanceof FormDef){\n\t\t\t((FormDef)propertiesObj).setDescriptionTemplate(txtDescTemplate.getText());\n\t\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t\t}\n\t}",
"public void setTemplate(Template template)\n/* */ {\n/* 62 */ this.template = template;\n/* */ }",
"public void transformTemplate(Template t)\n\t{\n\t\tList<String> mandatory_subjects = getMandatorySubjects();\n\t\t\n\t\t// display the constrained properties in the correct order\n\t\tfor (ConstrainedProperty property : getPositionedProperties())\n\t\t{\n\t\t\t// only show the CMF admin properties that can be edited\n\t\t\tif (!property.isEditable())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tt.setValue(\"property\", property.getPropertyName());\n\n\t\t\tboolean\t\thandled = false;\n\t\t\tMimeType\tmimetype = property.getMimeType();\n\t\t\tif (mimetype != null)\n\t\t\t{\n\t\t\t\tif (!property.isAutoRetrieved())\n\t\t\t\t{\n\t\t\t\t\tif (0 == mimetype.toString().indexOf(\"image/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"existing_field-legend\", \"existing_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-image\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.RAW == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"existing_field-legend\", \"existing_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-raw\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (mimetype == MimeType.APPLICATION_XHTML)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-xhtml\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (mimetype == MimeType.TEXT_PLAIN)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-text\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (!handled)\n\t\t\t{\n\t\t\t\tif (property.isUrl())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-url\");\n\t\t\t\t}\n\t\t\t\telse if (property.isEmail())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-email\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"existing_field\", \"existing_field-generic\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tappendFormField(t, property, null, mandatory_subjects);\n\n\t\t\tif (t.hasBlock(\"existing_field-legend\"))\n\t\t\t{\n\t\t\t\tt.removeValue(\"existing_field-legend\");\n\t\t\t}\n\t\t}\n\n\t\t// handle the regular properties\n\t\tfor (String property_name : getRegularProperties())\n\t\t{\n\t\t\tappendFormField(t, null, property_name, mandatory_subjects);\n\t\t}\n\t}",
"public static Node changeTemplateWithReadOnly(\r\n final Node template, final Map<String, String> elements, final String currentElement) throws Exception {\r\n Node result = template;\r\n if (elements.get(currentElement) == null) {\r\n deleteNodes(template, currentElement);\r\n //\r\n // if (currentElement.indexOf(\"@\") != -1) {\r\n // String xpath = currentElement.substring(0, currentElement\r\n // .indexOf(\"@\") - 1);\r\n // String attribute = currentElement.substring(currentElement\r\n // .indexOf(\"@\") + 1);\r\n // deleteAttribute(result, xpath, attribute);\r\n // }\r\n // else {\r\n // result = deleteElement(result, currentElement);\r\n // }\r\n }\r\n else if (!\"\".equals(elements.get(currentElement))) {\r\n String element = currentElement;\r\n if (element.contains(\"@\" + XLINK_HREF_TEMPLATES)) {\r\n element = element.replaceAll(\"@\" + XLINK_HREF_TEMPLATES, \"@href\");\r\n }\r\n result = substitute(result, element, elements.get(currentElement));\r\n }\r\n return result;\r\n }",
"Update withProperties(AccountProperties properties);",
"Properties modifyProperties(Properties properties);",
"public Boolean updateTemplate(Template template)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tdao.save(template);\t\t\n\t\treturn true;\n\t}",
"public String change_template(Map<String, String> variables) {\n current_template_index = PrayerTemplates.get_next_template(my_prayer_part_type, current_template_index);\r\n int template_size = PrayerTemplates.get_template_size(my_prayer_part_type);\r\n my_prayer_part_text = PrayerTemplates.get_template_text(my_prayer_part_type, current_template_index);\r\n\r\n // step #2 - plug variables into new template\r\n Iterator it = variables.entrySet().iterator();\r\n while (it.hasNext()) {\r\n Map.Entry pair = (Map.Entry) it.next();\r\n substitute(pair.getKey().toString(), pair.getValue().toString());\r\n }\r\n\r\n return String.valueOf(current_template_index + 1) + \"/\" + String.valueOf(template_size);\r\n }",
"public void updateOneWord(Pojo.OneWord e){ \n template.update(e); \n}",
"@Override\r\n\tpublic void update(SimpleJdbcTemplate template) throws Exception {\n\t}",
"public void updateSupplier(Supplier e){ \n\t template.update(e); \n\t}",
"public void update(Activity e){ \n\t template.update(e); \n\t}",
"@SuppressWarnings(\"unchecked\")\n \tpublic void updated(Dictionary properties) throws ConfigurationException {\n \t\t\n \t}",
"public FieldsTemplateLibrary templateFieldLibraryUpdate(FieldsTemplateLibrary entity) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.save(entity);\n\t}",
"private void update(VelocityContext context, String templateName)\n {\n long start = System.currentTimeMillis();\n long merged = 0;\n \n StringWriter sw = new StringWriter();\n try\n {\n final Template template = velocity.getTemplate(templateName, \"UTF-8\");\n template.merge(context, sw);\n merged = System.currentTimeMillis() - start;\n }\n catch (Exception e)\n {\n Utils.logError(\"Error while loading template\", e, true);\n return;\n }\n \n browser.setText(sw.toString());\n long displayed = System.currentTimeMillis() - start - merged;\n \n LoggerFactory.getLogger(DocumentList.class).debug(\n String.format(Locale.ENGLISH, \n \"Velocity [rendering: %.2f, display: %.2f]\",\n merged / 1000.0,\n displayed / 1000.0));\n }",
"public static void validateTemplatesAndProperties(Collection<Template> templates, Map<String, RuleTemplateProperty> properties) throws TemplateManagerException {\n Collection<String> templatedElements = new ArrayList();\n\n // Add all templated elements to Collection\n for (Template template : templates) {\n String templatedContent = template.getContent();\n\n // Find all templated elements from the siddhiApp\n Pattern templatedElementPattern = Pattern.compile(TemplateManagerConstants.TEMPLATED_ELEMENT_REGEX_PATTERN);\n Matcher templatedElementMatcher = templatedElementPattern.matcher(templatedContent);\n\n // When each templated element is found\n while (templatedElementMatcher.find()) {\n // Add templated element (inclusive of template pattern)\n String templatedElement = templatedElementMatcher.group(1);\n\n // Find Templated Element's Name\n Pattern templatedElementNamePattern = Pattern.compile(TemplateManagerConstants.TEMPLATED_ELEMENT_NAME_REGEX_PATTERN);\n Matcher templatedElementNameMatcher = templatedElementNamePattern.matcher(templatedElement);\n\n // When the Templated Element's Name is found\n if (templatedElementNameMatcher.find()) {\n // Templated Element's Name\n String templatedElementName = templatedElementNameMatcher.group(1);\n\n templatedElements.add(templatedElementName);\n }\n }\n\n }\n\n // All templated elements are not given in properties\n if (!properties.keySet().containsAll(templatedElements)) {\n // todo: throw exception\n }\n }",
"public void mergeTemplate(final Study existingTemplate, final Study newTemplate) {\n if (existingTemplate == null) {\n templatePostProcessing(newTemplate);\n }//FIXME:Saurabh: implement the logic of merging two templates\n \n }",
"public void transformTemplate(Template t)\n\t{\n\t\tfor (ConstrainedProperty property : getPositionedProperties())\n\t\t{\n\t\t\t// only show the CMF admin properties that can be edited\n\t\t\tif (!property.isEditable())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property.getPropertyName());\n\t\t\t\n\t\t\tboolean\t\thandled = false;\n\t\t\tMimeType\tmimetype = property.getMimeType();\n\t\t\tif (mimetype != null)\n\t\t\t{\n\t\t\t\tif (!property.isAutoRetrieved())\n\t\t\t\t{\n\t\t\t\t\tif (0 == mimetype.toString().indexOf(\"image/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-image\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.RAW == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-raw\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (MimeType.APPLICATION_XHTML == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-xhtml\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.TEXT_PLAIN == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-text\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!handled)\n\t\t\t{\n\t\t\t\tif (property.isUrl())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-url\");\n\t\t\t\t}\n\t\t\t\telse if (property.isEmail())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-email\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\n\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t{\n\t\t\t\tt.removeValue(\"form_field-legend\");\n\t\t\t}\n\t\t}\n\n\t\t// display the regular properties\n\t\tfor (String property_name : getRegularProperties())\n\t\t{\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property_name);\n\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\t\t}\n\t}",
"public void update(\n final Properties properties\n ) {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"@Test\n public void putTemplateProgrammerTemplateTest() throws ApiException {\n TemplateDTO request = null;\n TaskIdResult response = api.putTemplateProgrammerTemplate(request);\n\n // TODO: test validations\n }",
"public void setTemplate(ProducerTemplate template) {\n this.template = template;\n }",
"public void addToTemplates() {\n mTemplateId = mPreferenceManager.getTemplateId();\n if (isConverted) {\n if (mPreferenceManager.getTemplateId().equals(ConstantsManager.CONVERTER_TEMPLATE_ID_DEFAULT)) {\n mTemplateId = mDatabaseManager.getTemplateNewId();\n mPreferenceManager.setTemplateId(mTemplateId);\n saveTemplate(mToastCreated);\n } else {\n showDialog();\n }\n } else {\n mBaseActivity.showToast(mToastFailure);\n }\n }",
"public void setTemplate(MetaData mdTemplate) throws IOException;",
"void addOrReplaceProperty(Property prop, Collection<Property> properties);",
"@Override\n protected void updateProperties() {\n }",
"@Test\n public void fieldTemplate() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // We can set a template name using by the fields. This property is used when the \"doc.AttachedTemplate\" is empty.\n // If this property is empty the default template file name \"Normal.dotm\" is used.\n doc.getFieldOptions().setTemplateName(\"\");\n\n FieldTemplate field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \");\n\n builder.writeln();\n field = (FieldTemplate) builder.insertField(FieldType.FIELD_TEMPLATE, false);\n field.setIncludeFullPath(true);\n\n Assert.assertEquals(field.getFieldCode(), \" TEMPLATE \\\\p\");\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.TEMPLATE.docx\");\n\n field = (FieldTemplate) doc.getRange().getFields().get(0);\n Assert.assertEquals(\" TEMPLATE \", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n\n field = (FieldTemplate) doc.getRange().getFields().get(1);\n Assert.assertEquals(\" TEMPLATE \\\\p\", field.getFieldCode());\n Assert.assertEquals(\"Normal.dotm\", field.getResult());\n }",
"public boolean updateFieldsTemplate(ArrayList<FieldsTemplate> fields)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\t\n\t\tfor (FieldsTemplate field:fields)\n\t\t{\n\t\t\tdaoTemplate.save(field);\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"public void setTemplate(HibernateTemplate template) {\n\t\tthis.template = template;\n\t}",
"@Override\n public void updateProperties() {\n // unneeded\n }",
"public IdTemplate update(IdTemplate idTemplate, boolean merge)\n throws SystemException {\n boolean isNew = idTemplate.isNew();\n\n if (_listeners.length > 0) {\n for (ModelListener listener : _listeners) {\n if (isNew) {\n listener.onBeforeCreate(idTemplate);\n } else {\n listener.onBeforeUpdate(idTemplate);\n }\n }\n }\n\n idTemplate = updateImpl(idTemplate, merge);\n\n if (_listeners.length > 0) {\n for (ModelListener listener : _listeners) {\n if (isNew) {\n listener.onAfterCreate(idTemplate);\n } else {\n listener.onAfterUpdate(idTemplate);\n }\n }\n }\n\n return idTemplate;\n }",
"@Override\n\tpublic void updateEntry(T t) {\n\t\tthis.hibernateTemplate.update(t);\n\t}",
"void update(T objectToUpdate);",
"public void applyTemplate(JasperDesign design, Template template)\n\t{\n\t}",
"public ResolvedTemplate(Template template){\n\t\tthis.template = template;\n\t\tthis.postParseReplacement = \"\";\n\t\tcheckPreParseReplacement();\n\t}",
"public static void updateTemplate(final ITemplate updatedTemplate, final ITemplate toReplace) {\n\t\ttry {\n\t\t\t// ID of updatedTemplate must match that of Template it wants to replace\n\t\t\tif (updatedTemplate.getID().equals(toReplace.getID())) {\n\t\t\t\t// Send new Template to StorageService to replace old Template toReplace\n\t\t\t\tStorageService.updateTemplate(updatedTemplate);\n\t\t\t}\n\t\t\t// If param UIDs don't match, do not send to database, print alert message\n\t\t\telse {\n\t\t\t\tUtils.printError(\"Template update failed! Cannot replace Template [toReplace] with \"\n\t\t\t\t\t+ \"another Template [updatedTemplate] unless their IDs match. (TemplateDelegate.updateTemplate)\");\n\t\t\t}\n\t\t} catch (final StorageServiceException e) {\n\t\t\tUtils.printError(\"Template update failed! Make sure updatedTemplate, \" + updatedTemplate.fullString()\n\t\t\t\t+ \", has same ID as Template to database!\");\n\t\t}\n\t}",
"public void updatePropertyFields()\n {\n amountLabel .setText(retrieveText(\"AmountLabel\", amountLabel));\n reasonCodeLabel .setText(retrieveText(\"ReasonCodeLabel\", reasonCodeLabel));\n paidToLabel .setText(retrieveText(\"PaidToLabel\", paidToLabel));\n employeeIDLabel .setText(retrieveText(\"EmployeeIDLabel\", employeeIDLabel));\n addressLine1Label.setText(retrieveText(\"AddressLine1Label\", addressLine1Label));\n addressLine2Label.setText(retrieveText(\"AddressLine2Label\", addressLine2Label));\n addressLine3Label.setText(retrieveText(\"AddressLine3Label\", addressLine3Label));\n approvalCodeLabel.setText(retrieveText(\"ApprovalCodeLabel\", approvalCodeLabel));\n commentLabel .setText(retrieveText(\"CommentLabel\", commentLabel));\n\n amountField .setLabel(amountLabel);\n reasonCodeField .setLabel(reasonCodeLabel);\n paidToField .setLabel(paidToLabel);\n employeeIDField .setLabel(employeeIDLabel);\n addressLine1Field.setLabel(addressLine1Label);\n addressLine2Field.setLabel(addressLine2Label);\n addressLine3Field.setLabel(addressLine3Label);\n approvalCodeField.setLabel(approvalCodeLabel);\n commentField .setLabel(commentLabel);\n }",
"private void populateTemplate(String templateFile, BeanDefinition beanDefinition, File outputFile) {\r\n\t\t\r\n\t\tlogger.trace(\"enterCreateBean\");\r\n\t\t\r\n\t\t// set the serial version UID if one has not been specified.\r\n\t\tif (beanDefinition.getSerialVersionUID() == null || beanDefinition.getSerialVersionUID().isEmpty()) {\r\n\t\t\tbeanDefinition.setSerialVersionUID(new Date().getTime() + \"L\");\r\n\t\t}\r\n\t\t\r\n\t\tVelocityContext context = createContext(beanDefinition);\r\n\t\tString populatedTemplate =populateVelocityTemplate (templateFile, context); \r\n\t\t\r\n\t\ttry {\r\n\t\t\tFileWriter fw = new FileWriter(outputFile);\t\t\t\r\n\t\t\tfw.write(populatedTemplate);\r\n\t\t\tfw.flush();\r\n\t\t\tfw.close();\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\tlogger.error(e);\r\n\t\t}\r\n\t\t\r\n\t\tlogger.trace(\"exitCreateBean\");\r\n\r\n\t}",
"interface WithProperties {\n /**\n * Specifies the properties property: Properties of Cognitive Services account..\n *\n * @param properties Properties of Cognitive Services account.\n * @return the next definition stage.\n */\n Update withProperties(AccountProperties properties);\n }",
"@Override\n public void updateProperties(final String id, final Map<Name, Property> properties ) {\n final File sidecarFile = sidecarFile(id);\n try {\n final EditableDocument document;\n if (!sidecarFile.exists()) {\n if (properties.isEmpty()) {\n return;\n }\n sidecarFile.createNewFile();\n document = Schematic.newDocument();\n } else {\n try (final FileInputStream sidecarStream = new FileInputStream(sidecarFile)) {\n final Document existing = Json.read(sidecarStream, false);\n document = Schematic.newDocument(existing);\n }\n }\n properties.forEach((key, property) -> {\n if (property == null) {\n translator.removeProperty(document, key, null, null);\n } else {\n translator.setProperty(document, property, null, null);\n }\n });\n try (final FileOutputStream outputStream = new FileOutputStream(sidecarFile)) {\n Json.write(document, outputStream);\n }\n } catch (final IOException e) {\n throw new RepositoryRuntimeException(id, e);\n }\n }",
"protected void UpdateProperties(final Map<String, Object> props){\n //loop through the properties keys, check to see if it already exists,\n //if it does, update it, if it doesn't add it.\n props.keySet().forEach((k) -> {\n if(this.properties.get(k) == null){\n this.properties.put(k, props.get(k));\n }else{\n this.properties.replace(k, props.get(k));\n }\n }\n );\n }",
"private MessageProperty setTemplateVar(String key, String value){\n\t\tMessageProperty property = new MessageProperty();\n\t\tproperty.setPropertyName(key);\n\t\tproperty.setPropertyValue(appendCDATA(value));\n\t\treturn property;\n\t}",
"default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }",
"T update(T object);",
"public void putTemplate(String name, String templateSource, long lastModified) {\n\t\tif (templateSource == null) {\n\t\t\ttemplates.remove(name);\n\t\t}\n\t\telse {\n\t\t\ttemplates.put(name, new StringTemplateSource(name, templateSource, lastModified));\n\t\t}\n\t}",
"public PSTemplate save(PSTemplate template, String siteId, String pageId) throws PSDataServiceException;",
"@Override\r\n\tpublic void update(CustomizePage cp) {\n\t\tgetHibernateTemplate().update(cp);\r\n\t}",
"int updateByPrimaryKey(AccountAccountTemplateEntity record);",
"private void saveTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\r\n\t int lenI = values.length, lenJ, lenK;\r\n\t String[][][] newValues = new String[lenI][][];\r\n\t for (int i=0; i<lenI; i++)\r\n\t {\r\n\t\t lenJ = values[i].length;\r\n\t\t newValues[i] = new String[lenJ][];\r\n\t\t for (int j=0; j<lenJ; j++)\r\n\t\t {\r\n\t\t\t lenK = values[i][j].length;\r\n\t\t\t newValues[i][j] = new String[lenK];\r\n\t\t\t for (int k=0; k<lenK; k++)\r\n\t\t\t\t values[i][j][k] = values[i][j][k];\r\n\t\t }\r\n\t }\r\n\t \r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter a valid template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t // Update or store to the list of templates.\r\n for (int i=0; i<newValues.length; i++)\r\n \t for (int j=0; j<newValues[i].length; j++)\r\n\t\t\t newValues[i][j] = getComponentArray(components[i][j]);\r\n \r\n \t if (!definitionBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.D_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.D_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!categoryBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.C_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.C_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n \t if (!exampleBox.isSelected())\r\n \t {\r\n \t\t newValues[FormatData.t.E_HDR.ordinal()] \r\n \t\t\t\t = newValues[FormatData.t.E_FLD.ordinal()] \r\n \t\t\t\t\t\t = new String[0][0];\r\n \t }\r\n\r\n templates.setTemplate(template, newValues);\r\n\r\n if (!model.contains(template))\r\n\t {\r\n\t int size = templateKeys.length;\r\n\t String[] newTemplates = new String[templateKeys.length + 1];\r\n\t if (templateKeys.length != 0)\r\n\t \t System.arraycopy(templateKeys, 0, newTemplates, 0, size);\r\n\t \r\n\t newTemplates[size] = template;\r\n\t templateKeys = newTemplates;\r\n\t model.add(size, templateKeys[size]);\r\n\t list.setSelectedIndex(size);\r\n\t }\r\n label.setText(\"Display format \" + template + \" saved\");\r\n }",
"@Test\n public void createUpdateTest() throws Exception {\n var createTemplate = getInitialTemplate();\n\n //add the entire template to redis\n CaaSTemplate template = redisClient.createTemplate(createTemplate);\n Assert.assertNotNull(redis.get(template.getSettingsId()));\n\n //Update the name of the template\n var newName = \"Updated Name\";\n redisClient.updateTemplateName(template.getSettingsId(), newName);\n Assert.assertEquals(newName, redis.get(template.getSettingsId(), String.class, new Path(\".templateName\")));\n\n //Update the template setting with key of 'setting1'\n var settingKey = \"setting1\";\n var newSettingValue = \"newValue\";\n redisClient.updateTemplateData(template.getSettingsId(), settingKey, newSettingValue);\n Assert.assertEquals(\n newSettingValue,\n redis.get(template.getSettingsId(), String.class, new Path(\".templateSettings.\" + settingKey))\n );\n\n var addSettingKey = \"addSetting\";\n var addSettingValue = \"addValue\";\n redisClient.addTemplateData(template.getSettingsId(), addSettingKey, addSettingValue);\n Assert.assertEquals(\n addSettingValue,\n redis.get(template.getSettingsId(), String.class, new Path(\".templateSettings.\" + addSettingKey))\n );\n\n //Delete the template setting with key 'setting1'\n redisClient.deleteTemplateData(template.getSettingsId(), settingKey);\n Assert.assertThrows(\n Exception.class,\n () -> {\n redis.get(template.getSettingsId(), String.class, new Path(\".templateSettings.\" + settingKey));\n }\n );\n\n //Get a CaasTemplate from redis with key 'auto-generated-test'\n var retrievedTemplate = redisClient.getTemplate(template.getSettingsId());\n var expectedTemplate = getInitialTemplate();\n expectedTemplate.setSettingsId(template.getSettingsId());\n expectedTemplate.setTemplateName(newName);\n expectedTemplate.setTemplateSettings(Map.of(\"setting2\", \"value2\", addSettingKey, addSettingValue));\n Assert.assertNotNull(retrievedTemplate); //the retrieved template isn't null\n Assert.assertEquals(retrievedTemplate, expectedTemplate); //the retrieved template is what was expected\n\n //Get the setting value for the setting with key 'setting2'\n Assert.assertEquals(\"value2\", redisClient.getTemplateSettings(template.getSettingsId(), \"setting2\"));\n\n //Set the entire template in Redis back to the original template\n redisClient.updateTemplate(template);\n Assert.assertEquals(template, redisClient.getTemplate(template.getSettingsId()));\n //no..... I'm not using redisClient to verify against itself...noooo. Move on.. nothing to see here\n\n //Delete the template\n redisClient.deleteTemplate(template.getSettingsId());\n Assert.assertThrows(\n Exception.class,\n () -> {\n redis.get(template.getSettingsId());\n }\n );\n }",
"public PSTemplate save(PSTemplate template, String siteId) throws PSDataServiceException;",
"protected Template editTemplate(Template template, boolean edit, boolean isNameModifiable) {\n \t\tEditTemplateDialog dialog= new EditTemplateDialog(getShell(), template, edit, isNameModifiable, fContextTypeRegistry);\n \t\tif (dialog.open() == Window.OK) {\n \t\t\treturn dialog.getTemplate();\n \t\t}\n \t\treturn null;\n \t}",
"public void setTemplateSubNodes(NodeList subNodes) {\n \t\t_templateSubNodes = subNodes;\n \t}",
"public void setTemplateName(java.lang.Object templateName) {\n this.templateName = templateName;\n }",
"void updatedProperty(TestResult tr, String name, String value);",
"PropertiesTask setProperties( Properties properties );",
"public native Template set(String html) /*-{\r\n\t\tvar template = this.@com.ait.toolkit.core.client.JsObject::getJsObj()();\r\n\t\ttemplate.set(html);\r\n\t\treturn this;\r\n\t}-*/;",
"private void setTemplateFile() throws IOException, BusinessException, ObjectNotFoundException, JackrabbitException,\n CertitoolsAuthorizationException, BadElementException {\n super.setFolder(folder);\n if (fileTemplate1 != null) {\n String folderPath;\n if (insertFolderFlag) {\n folderPath = folderId + \"/folders/\" + folder.getName();\n } else {\n folderPath = PlanUtils.getParentPath(folderId) + \"/folders/\" + folder.getName();\n }\n\n Template1Diagram template1Diagram = new Template1Diagram(new Resource(\"/\" + fileTemplate1.getFileName(),\n fileTemplate1.getFileName(),\n fileTemplate1.getContentType(), fileTemplate1.getInputStream(),\n \"\" + fileTemplate1.getSize(), true),\n PlanUtils.convertResourceToHTML(folderPath, getContext().getRequest().getContextPath(),\n getModuleTypeFromEnum()));\n if (replaceImageMap == null) {\n replaceImageMap = Boolean.FALSE;\n }\n if (!insertFolderFlag && !replaceImageMap) {\n\n Folder previousVersion =\n planService.findFolder(folderId, true, getUserInSession(), getModuleTypeFromEnum());\n try {\n TemplateWithImage previousTemplate = (TemplateWithImage) previousVersion.getTemplate();\n String htmlContent = template.getImageMap();\n Image newImage = TemplateWithImageUtils.getImage(fileTemplate1.getInputStream());\n Image oldImage = TemplateWithImageUtils.getImage(previousTemplate.getResource().getData());\n\n String unescapedHtml = StringEscapeUtils.unescapeHtml(htmlContent);\n\n String htmlResultContent = TemplateWithImageUtils.resizeImageMap(unescapedHtml, oldImage, newImage);\n\n if(htmlResultContent != null){\n template1Diagram.setImageMap(htmlResultContent);\n }\n } catch (ClassCastException ex) {\n //Do nothing\n }\n }\n super.setTemplateToFolder(template1Diagram);\n\n } else {\n Folder dbFolder = planService.findFolder(folderId, false, getUserInSession(), getModuleTypeFromEnum());\n //User does not changed template\n if (dbFolder.getTemplate().getName().equals(Template.Type.TEMPLATE_DIAGRAM.getName())) {\n Template1Diagram dbTemplate1Diagram = (Template1Diagram) dbFolder.getTemplate();\n //set old resource and update image Map\n super.setTemplateToFolder(\n new Template1Diagram(dbTemplate1Diagram.getResource(), template.getImageMap()));\n } else {\n //User changed template to this one, and do not upload image, so create empty template\n super.setTemplateToFolder(new Template1Diagram());\n }\n }\n }",
"Map<String, String> getTemplateProperties(String elementName) throws IllegalArgumentException;",
"protected void updateProperties() {\n HomeEnvironment homeEnvironment = this.home.getEnvironment();\n setGroundColor(homeEnvironment.getGroundColor());\n HomeTexture groundTexture = homeEnvironment.getGroundTexture();\n getGroundTextureController().setTexture(groundTexture);\n if (groundTexture != null) {\n setGroundPaint(EnvironmentPaint.TEXTURED);\n } else {\n setGroundPaint(EnvironmentPaint.COLORED);\n }\n setSkyColor(homeEnvironment.getSkyColor());\n HomeTexture skyTexture = homeEnvironment.getSkyTexture();\n getSkyTextureController().setTexture(skyTexture);\n if (skyTexture != null) {\n setSkyPaint(EnvironmentPaint.TEXTURED);\n } else {\n setSkyPaint(EnvironmentPaint.COLORED);\n }\n setLightColor(homeEnvironment.getLightColor());\n setWallsAlpha(homeEnvironment.getWallsAlpha());\n }",
"private void updateText(){\n\t\tif(propertiesObj == null)\n\t\t\treturn;\n\n\t\tif(propertiesObj instanceof QuestionDef)\n\t\t\t((QuestionDef)propertiesObj).setText(txtText.getText());\n\t\telse if(propertiesObj instanceof OptionDef)\n\t\t\t((OptionDef)propertiesObj).setText(txtText.getText());\n\t\telse if(propertiesObj instanceof PageDef)\n\t\t\t((PageDef)propertiesObj).setName(txtText.getText());\n\t\telse if(propertiesObj instanceof FormDef)\n\t\t\t((FormDef)propertiesObj).setName(txtText.getText());\n\n\t\tformChangeListener.onFormItemChanged(propertiesObj);\n\t}",
"@Override\n\tpublic void updateEmpContactDetail(EmpContactDetail empContactDetail) {\n\t\ttemplate.update(empContactDetail);\n\n\t}",
"<T> Ack editProperty(ProjectEntity entity, Class<? extends PropertyType<T>> propertyType, T data);",
"public void setTemplateID(TemplateID templateID) {\n\t\tthis.templateID = templateID;\n\t}",
"protected void processTemplate(Map<String,?> attributes, Writer out, Template template, String encoding) throws IOException {\n long startTime = System.currentTimeMillis();\n\n Context context = buildContext(attributes);\n template.setEncoding(encoding);\n\n try {\n template.merge(context, out);\n log.debug(\"Velocity template transform processed in \" + \n (System.currentTimeMillis() - startTime) + \" ms\");\n } catch (ResourceNotFoundException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (ParseErrorException errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n } catch (Exception errAny) {\n throw new RuntimeException(\"Error merging the velocity template\", errAny);\n }\n }",
"public interface ElasticsearchTemplate {\n\n /**\n * Logback logger.\n */\n final static Logger logger = LoggerFactory.getLogger(ElasticsearchTemplate.class);\n\n /**\n * Constant prefix.\n */\n final String PREFIX = \"_\";\n\n /**\n * Constant default doc type for default _doc.\n */\n final String DEFAULT_DOC = \"_doc\";\n\n /**\n * Constant retry on conflict for default three times.\n */\n final Integer RETRY_ON_CONFLICT = 3;\n\n /**\n * Constant elasticsearch template doc as upsert for default true.\n */\n final Boolean DOC_AS_UPSERT = true;\n\n /**\n * Constant elasticsearch template doc basic system properties.\n */\n final String [] templateProperties = {\n \"index\", \"id\", \"type\"\n };\n\n /**\n * Judge current elasticsearch template whether exists.\n * @return no exists.\n */\n default Boolean isEmpty(){\n return builder().length() == 0;\n }\n\n ThreadLocal<StringBuilder> templateBuilder = new ThreadLocal<>();\n\n /**\n * Build or Reset current elasticsearch template.\n */\n default void refactoring() {\n templateBuilder.set(new StringBuilder());\n }\n\n /**\n * Get current elasticsearch template.\n * @return current elasticsearch template.\n */\n default StringBuilder builder() {\n return templateBuilder.get();\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param templateProperty Current elasticsearch template property.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, T templateProperty){\n builder().append(String.format(\"{\\\"%s\\\":\", indexType.getDisplayName()));\n java.lang.Class<?> templatePropertyClass = templateProperty.getClass();\n java.lang.invoke.MethodHandles.Lookup lookup = MethodHandles.lookup();\n try {\n for (String templateProp : templateProperties) {\n VarHandle varHandle = lookup.findVarHandle(templatePropertyClass, PREFIX + templateProp, String.class);\n Object value = varHandle.get(templateProperty);\n if(StringUtils.isEmpty(value)){\n if(templateProp.equals(\"type\")){\n value = PREFIX + DEFAULT_DOC;\n }else if(templateProp.equals(\"id\")){\n value = UUID.randomUUID().toString();\n }\n }\n if(!StringUtils.isEmpty(value)){\n builder().append(String.format(\"\\\"%s%s\\\":\\\"%s\\\"\", PREFIX, templateProp, value));\n }\n }\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n }\n builder().append(\"}\");\n }\n\n /**\n * Construct a elasticsearch template basic system properties.\n * @param indexType Current elasticsearch index type.\n * @param indexName Current elasticsearch template property.\n * @param docId Current elasticsearch template doc id.\n * @param <T> Serializable.\n */\n default <T> void constructTemplate(ElasticsearchIndexType indexType, String indexName, String docId){\n builder().append(String.format(\"{\\\"%s\\\":{\\\"_index\\\":\\\"%s\\\",\\\"_id\\\":\\\"%s\\\",\\\"_type\\\":\\\"_doc\\\",\\\"_retry_on_conflict\\\":%d}}\",\n indexType.getDisplayName(), indexName, docId, RETRY_ON_CONFLICT));\n }\n\n /**\n * Append property of Current Elasticsearch index to String builder.\n * @param propertyName property Name.\n * @param propertyValue property Value.\n */\n default void append(String propertyName, Object propertyValue){\n builder().append(String.format(\"\\\"%s\\\":\\\"%s\\\"\",propertyName, URLDecoder.decode(URLEncoder.encode(propertyValue.toString(), Charset.forName(\"UTF-8\")), Charset.forName(\"UTF-8\")).replace(\"%0A\", \"\")));\n }\n\n /**\n * Append current template properties of Current Elasticsearch index to String builder.\n * @param cursor a query cursor.\n * @param templateProperties current template properties.\n */\n default void append(QueryCursor cursor, String... templateProperties){\n int i = 0, len = templateProperties.length;\n for (; i < len; i++) {\n String propertyName = templateProperties[i];\n String value = null;\n try {\n value = cursor.getString(propertyName);\n }catch (Throwable t){\n logger.error(\"according column name to result set to get column value find a fail, {}\", t);\n }\n if(StringUtils.isEmpty(value)){\n value = \"\";\n }\n append(propertyName, value);\n builder().append(\",\");\n }\n }\n\n /**\n * According query cursor and index name and template properties to created a elasticsearch template.\n * @param cursor a query cursor.\n * @param indexName Current index name.\n * @param templateProperties Current template properties.\n * @throws SQLException Throw SQL exception.\n */\n void create(QueryCursor cursor, String indexName, String... templateProperties) throws SQLException;\n\n}",
"Ack editProperty(ProjectEntity entity, String propertyTypeName, JsonNode data);",
"interface WithProperties {\n /**\n * Specifies properties.\n * @param properties Properties of the secret\n * @return the next update stage\n */\n Update withProperties(SecretPatchProperties properties);\n }",
"public void testImportReplaceProperties() throws IOException, JsonException {\n final String testPath = TEST_BASE_PATH;\n Map<String, String> props = new HashMap<String, String>();\n String testNode = testClient.createNode(HTTP_BASE_URL + testPath, props);\n urlsToDelete.add(testNode);\n\n //1. First import some initial content\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String testNodeName = \"testNode_\" + String.valueOf(random.nextInt());\n props.put(SlingPostConstants.RP_NODE_NAME_HINT, testNodeName);\n String jsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport.json\"));\n props.put(SlingPostConstants.RP_CONTENT, jsonContent);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REDIRECT_TO, SERVLET_CONTEXT + testPath + \"/*\");\n String importedNodeUrl = testClient.createNode(HTTP_BASE_URL + testPath, props);\n\n // assert content at new location\n String content = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj = JsonUtil.parseObject(content);\n\t\tassertNotNull(jsonObj);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/importresults.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent), jsonObj);\n\n\n\t\t//2. Second, import on top of the node from #1 to replace some properties.\n\n props.clear();\n props.put(SlingPostConstants.RP_OPERATION,\n \t\tSlingPostConstants.OPERATION_IMPORT);\n\n String jsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\n props.put(SlingPostConstants.RP_CONTENT, jsonContent2);\n props.put(SlingPostConstants.RP_CONTENT_TYPE, \"json\");\n props.put(SlingPostConstants.RP_REPLACE, \"false\");\n props.put(SlingPostConstants.RP_REPLACE_PROPERTIES, \"true\");\n testClient.createNode(importedNodeUrl, props);\n\n // assert content at new location\n String content2 = getContent(importedNodeUrl + \".3.json\", CONTENT_TYPE_JSON);\n\n\t\tJsonObject jsonObj2 = JsonUtil.parseObject(content2);\n\t\tassertNotNull(jsonObj2);\n\n\t\t//assert the imported content is there.\n String expectedJsonContent2 = getStreamAsString(getClass().getResourceAsStream(\"/integration-test/servlets/post/testimport_replaceProps.json\"));\n\t\tassertExpectedJSON(JsonUtil.parseObject(expectedJsonContent2), jsonObj2);\n }",
"@Headers({\n \"Content-Type:application/json\"\n })\n @PATCH(\"users/templates/{id}\")\n Call<TemplateResource> updateUserTemplate(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Body PatchResource templatePatchResource, @retrofit2.http.Query(\"test_validation\") Boolean testValidation\n );",
"@Override\n\tpublic void updateTmly(Tmly tmly) {\n\t\tString sql = \"update tmly set title=?,content=? where id_=?\";\n\t\tthis.jdbcTemplate\n\t\t\t\t.update(sql, new Object[] { tmly.getTitle(), tmly.getContent(),\n\t\t\t\t\t\ttmly.getId() });\n\t}",
"public static ExtendedMockHttpServletRequestBuilder fileUploadPut(String urlTemplate, Object... urlVariables) {\n return new ExtendedMockHttpServletRequestBuilder(urlTemplate, HttpMethod.PUT, urlVariables);\n }",
"public void updateRecord(IdentifiedRecordTemplate template,\n DataRecord updatedRecord) throws FormException {\n Connection con = null;\n \n try {\n GenericDataRecord record = (GenericDataRecord) updatedRecord;\n \n con = getConnection();\n try {\n updateFieldRows(con, template, record);\n } catch (CryptoException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.ENCRYPTING_DATA_FAILED\", e);\n }\n } catch (ClassCastException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.EXP_UNKNOWN_TEMPLATE\", e);\n } catch (SQLException e) {\n throw new FormException(\"GenericRecordSetManager\", \"form.EXP_UPDATED_FAILED\", e);\n } finally {\n closeConnection(con);\n }\n }",
"public EditTemplateDialog(Shell parent, Template template, boolean edit, boolean isNameModifiable, ContextTypeRegistry registry) {\n \t\t\tsuper(parent);\n \n \t\t\tString title= edit\n \t\t\t\t? TemplatesMessages.EditTemplateDialog_title_edit\n \t\t\t\t: TemplatesMessages.EditTemplateDialog_title_new;\n \t\t\tsetTitle(title);\n \n \t\t\tfOriginalTemplate= template;\n \t\t\tfIsNameModifiable= isNameModifiable;\n \n \t\t\tList contexts= new ArrayList();\n \t\t\tfor (Iterator it= registry.contextTypes(); it.hasNext();) {\n \t\t\t\tTemplateContextType type= (TemplateContextType) it.next();\n \t\t\t\tcontexts.add(new String[] { type.getId(), type.getName() });\n \t\t\t}\n \t\t\tfContextTypes= (String[][]) contexts.toArray(new String[contexts.size()][]);\n \n \t\t\tfValidationStatus= new StatusInfo();\n \n \t\t\tfContextTypeRegistry= registry;\n \n \t\t\tTemplateContextType type= fContextTypeRegistry.getContextType(template.getContextTypeId());\n \t\t\tfTemplateProcessor.setContextType(type);\n \t\t}",
"public void updateSettings(FileObject file) {\n DataObject dobj = null;\n DataFolder folder = null;\n try {\n dobj = DataObject.find(file);\n folder = dobj.getFolder();\n } catch (DataObjectNotFoundException ex) {\n Exceptions.printStackTrace(ex);\n }\n if (dobj == null || folder == null) {\n return;\n }\n for (CreateFromTemplateAttributesProvider provider\n : Lookup.getDefault().lookupAll(CreateFromTemplateAttributesProvider.class)) {\n Map<String, ?> attrs = provider.attributesFor(dobj, folder, \"XXX\"); // NOI18N\n if (attrs == null) {\n continue;\n }\n Object aName = attrs.get(\"user\"); // NOI18N\n if (aName != null) {\n author = aName.toString();\n break;\n }\n }\n }",
"@Override\n\tpublic boolean update(NPC_tmpl obj) {\n\t\treturn false;\n\t}",
"Map<String, Map<String, String>> getAllDefinedTemplateProperties();",
"public SaxTemplatesImpl( Templates templates, SAXTransformerFactory factory )\n {\n this.templates = templates;\n this.factory = factory;\n }",
"void editProperty(String requestedProperty, Object newValue) {\n properties.editProperty(requestedProperty, newValue); // <-- The replace() method automatically checks for null\n }",
"@Test\n\tpublic void test_update_user_success(){\n\t\tUser user = new User(null, \"fengt\", \"fengt2@itiaoling.com\", \"12345678\");\n\t\ttemplate.put(REST_SERVICE_URI + \"/20\" + ACCESS_TOKEN + token, user);\n\t}",
"private void replaceProperty(Motif updated, String property, String newValue) throws ExecutionError {\n if (property.equals(\"Short name\")) {\n updated.setShortName(newValue);\n } else if (property.equals(\"Long name\")) {\n updated.setLongName(newValue);\n } else if (property.equals(\"Consensus\")) {\n updated.setConsensusMotifAndUpdatePWM(newValue);\n } else if (property.equals(\"Factors\")) {\n updated.setBindingFactors(newValue);\n } else if (property.equals(\"Classification\")) {\n if (newValue.matches(\"[^0-9\\\\.]\")) throw new ExecutionError(\"Incorrect class label: \"+newValue);\n int level=MotifClassification.getClassLevel(newValue);\n while (level>4) {\n newValue=MotifClassification.getParentLevel(newValue);\n level=MotifClassification.getClassLevel(newValue);\n }\n if (!MotifClassification.isKnownClassString(newValue)) throw new ExecutionError(\"Unknown motif class:\"+newValue);\n updated.setClassification(newValue);\n } else if (property.equals(\"Quality\")) {\n try {\n int value=Integer.parseInt(newValue);\n if (value<1 || value>6) throw new ExecutionError(\"Quality should be a number between 1 and 6\");\n updated.setQuality(value);\n } catch (NumberFormatException nfe) {\n throw new ExecutionError(\"Unable to parse expected numeric value for quality: \"+newValue);\n }\n } else if (property.equals(\"Alternatives\")) {\n String[] names=newValue.split(\"\\\\s*,\\\\s*\");\n updated.setKnownDuplicatesNames(names);\n } else if (property.equals(\"Interactions\")) {\n String[] names=newValue.split(\"\\\\s*,\\\\s*\");\n updated.setInteractionPartnerNames(names);\n } else if (property.equals(\"Organisms\")) {\n updated.setOrganisms(newValue);\n } else if (property.equals(\"Expression\")) {\n String[] tissues=newValue.split(\"\\\\s*,\\\\s*\");\n updated.setTissueExpression(tissues);\n } else if (property.equals(\"Part\")) {\n if (!Motif.isValidPart(newValue)) throw new ExecutionError(\"'\"+newValue+\"' is not a valid value for the 'part' property\");\n updated.setPart(newValue);\n } else {// userdefined property\n if (!Motif.isValidUserDefinedPropertyKey(property)) throw new ExecutionError(\"'\"+property+\"' is not a valid name for a user-defined property\");\n if (newValue.contains(\";\")) throw new ExecutionError(\"Value can not contain the ';' character\");\n Object value=Motif.getObjectForPropertyValueString(newValue);\n updated.setUserDefinedPropertyValue(property, value);\n }\n }",
"public abstract void setTemplId(Integer templId);",
"private void setTemplate(MazeTemplate mt)\n {\n if (mt == mCurrentTemplate)\n return;\n\n mCurrentTemplate = mt;\n if (mCurrentTemplate == null)\n {\n mMazeView.setEditable(true);\n }\n else\n {\n mMazeView.setEditable(false);\n mt.reset();\n }\n mMazeView.setTemplate(mt);\n }",
"public void setProperties(Properties properties);",
"@Override\n\tpublic int editNotifyTemplate(int notifytemplateid, String name,\n\t\t\tString description,String templateXML, int editBizUnitID, int editSystemID, int editRecepientID, int editChannelID, int editEventID, int editSignatureID,Boolean isdnd,Boolean isdesc,int userID) {\n\t\tint result = 0; \n\t\tresult = jdbcTemplate.queryForObject(FiinfraConstants.SP_EDIT_NOTIFYTEMPLATE, new Object[]{notifytemplateid,name,description,templateXML,editBizUnitID,editSystemID,editRecepientID,editChannelID,editEventID,editSignatureID, isdnd, isdesc, userID},Integer.class);\n\t\treturn result; \n\t}",
"public void setElement(T newvalue);",
"public void setTemplate(JdbcTemplate template) {\n\t\tthis.template = template;\n\t}",
"TemplatePreview generateTemplatePreview(String templateId, Map<String, String> personalisation) throws NotificationClientException;",
"public ArmorTemplate(ItemTemplate other) {\n\t\tthis.setId(other.getId());\n\t\tthis.setName(other.getName());\n\t\tthis.setWeight(other.getWeight());\n\t\tthis.setBaseCost(other.getBaseCost());\n\t\tthis.setStrength(other.getStrength());\n\t\tthis.setConstructionTime(other.getConstructionTime());\n\t\tthis.setManeuverDifficulty(other.getManeuverDifficulty());\n\t\tthis.setNotes(other.getNotes());\n\t\tthis.setPrimarySlot(other.getPrimarySlot());\n\t\tthis.setSecondarySlot(other.getSecondarySlot());\n\t}",
"public void associateProductTemplate() {\n productToolOperation.addChildProductTree(selectProductNode, selectTemplateNode, planConfigBehavior);\n }",
"Update createUpdate();",
"public abstract void setTemplDesc(String templDesc);",
"private static void updateCwpProfile(List<ConfigTemplate> allConfigTemplate,Map<String, Map<String, ConfigTemplateSsidUserProfile>> allTemplateSsidUserProfile){\n\t\tMap <String,Boolean> updateSsidProfileBefore = new HashMap<String,Boolean>();\r\n\t\tMap <Long,String> updateCwpBefore = new HashMap<Long,String>();\r\n\t\tMap <Long,List<Cwp>> createCwpBefore = new HashMap<Long,List<Cwp>>();\r\n\t\tint cwpNameCount = 1;\r\n\t\t/*\r\n\t\t * for re-generating web page\r\n\t\t */\r\n\t\tCwpAction cwpAction = new CwpAction();\r\n\t\tcwpAction.setDomainName(AhRestoreNewMapTools.getonlyDomain().getDomainName());\r\n\r\n\t\tfor(ConfigTemplate configTemplate :allConfigTemplate) {\r\n\t\t\tList<Long> removeKey = new ArrayList<Long>();\r\n\t\t\tList<ConfigTemplateSsid> addConfig = new ArrayList<ConfigTemplateSsid>();\r\n\t\t\tMap<String, ConfigTemplateSsidUserProfile> templateSsidUserProfile = allTemplateSsidUserProfile.get(configTemplate.getId().toString());\r\n\t\t\tfor(ConfigTemplateSsid configTemplateSsid:configTemplate.getSsidInterfaces().values()){\r\n\t\t\t\tif (configTemplateSsid.getSsidProfile()!= null && configTemplateSsid.getSsidProfile().getCwp()!=null) {\r\n\t\t\t\t\tboolean auth = false;\r\n\t\t\t\t\tboolean reg=false;\r\n\t\t\t\t\tboolean needUpdate=false;\r\n\t\t\t\t\tfor(ConfigTemplateSsidUserProfile ssidUser : templateSsidUserProfile.values()){\r\n\t\t\t\t\t\tif (configTemplateSsid.getSsidProfile().getId().equals(ssidUser.getSsidProfile().getId())){\r\n\t\t\t\t\t\t\tif(ssidUser.getUpType()==ConfigTemplateSsidUserProfile.USERPORFILE_TYPE_AUTHENTICATED){\r\n//\t\t\t\t\t\t\t\tcwpAuth.put(configTemplateSsid.getSsidProfile().getCwp().getId(), true);\r\n\t\t\t\t\t\t\t\tauth=true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tif(ssidUser.getUpType()==ConfigTemplateSsidUserProfile.USERPORFILE_TYPE_REGISTERED){\r\n//\t\t\t\t\t\t\t\tcwpReg.put(configTemplateSsid.getSsidProfile().getCwp().getId(), true);\r\n\t\t\t\t\t\t\t\treg=true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tCwp tmpCwp = QueryUtil.findBoById(Cwp.class, configTemplateSsid.getSsidProfile().getCwp().getId(), new ImplQueryCwp());\r\n\t\t\t\t\tif(reg && auth) {\r\n\t\t\t\t\t\tif (tmpCwp.getRegistrationType()!=Cwp.REGISTRATION_TYPE_BOTH){\r\n\t\t\t\t\t\t\ttmpCwp.setRegistrationType(Cwp.REGISTRATION_TYPE_BOTH);\r\n\t\t\t\t\t\t\tneedUpdate=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if(reg) {\r\n\t\t\t\t\t\tif (tmpCwp.getRegistrationType()!=Cwp.REGISTRATION_TYPE_REGISTERED){\r\n\t\t\t\t\t\t\ttmpCwp.setRegistrationType(Cwp.REGISTRATION_TYPE_REGISTERED);\r\n\t\t\t\t\t\t\tneedUpdate=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else if (auth) {\r\n\t\t\t\t\t\tif (tmpCwp.getRegistrationType()!=Cwp.REGISTRATION_TYPE_AUTHENTICATED){\r\n\t\t\t\t\t\t\ttmpCwp.setRegistrationType(Cwp.REGISTRATION_TYPE_AUTHENTICATED);\r\n\t\t\t\t\t\t\tneedUpdate=true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tif(reg && auth) {\r\n//\t\t\t\t\t\tif (tmpCwp.getRegistrationType()!=Cwp.REGISTRATION_TYPE_BOTH){\r\n//\t\t\t\t\t\t\ttmpCwp.setRegistrationType(Cwp.REGISTRATION_TYPE_BOTH);\r\n//\t\t\t\t\t\t\tneedUpdate=true;\r\n//\t\t\t\t\t\t}\r\n//\t\t\t\t\t} else if(reg) {\r\n//\t\t\t\t\t\tif (cwpAuth.get(tmpCwp.getId())!=null) {\r\n//\t\t\t\t\t\t\tif (tmpCwp.getRegistrationType()!=Cwp.REGISTRATION_TYPE_BOTH){\r\n//\t\t\t\t\t\t\t\ttmpCwp.setRegistrationType(Cwp.REGISTRATION_TYPE_BOTH);\r\n//\t\t\t\t\t\t\t\tneedUpdate=true;\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\tif (tmpCwp.getRegistrationType()!=Cwp.REGISTRATION_TYPE_REGISTERED){\r\n//\t\t\t\t\t\t\t\ttmpCwp.setRegistrationType(Cwp.REGISTRATION_TYPE_REGISTERED);\r\n//\t\t\t\t\t\t\t\tneedUpdate=true;\r\n//\t\t\t\t\t\t\t}\r\n//\t\t\t\t\t\t}\r\n//\t\t\t\t\t} else if (auth) {\r\n//\t\t\t\t\t\tif (cwpReg.get(tmpCwp.getId())!=null) {\r\n//\t\t\t\t\t\t\tif (tmpCwp.getRegistrationType()!=Cwp.REGISTRATION_TYPE_BOTH){\r\n//\t\t\t\t\t\t\t\ttmpCwp.setRegistrationType(Cwp.REGISTRATION_TYPE_BOTH);\r\n//\t\t\t\t\t\t\t\tneedUpdate=true;\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\tif (tmpCwp.getRegistrationType()!=Cwp.REGISTRATION_TYPE_AUTHENTICATED){\r\n//\t\t\t\t\t\t\t\ttmpCwp.setRegistrationType(Cwp.REGISTRATION_TYPE_AUTHENTICATED);\r\n//\t\t\t\t\t\t\t\tneedUpdate=true;\r\n//\t\t\t\t\t\t\t}\r\n//\t\t\t\t\t\t}\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tif (needUpdate) {\r\n\t\t\t\t\t\tif (updateCwpBefore.get(tmpCwp.getId()) == null) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tcwpAction.updatePageFields(tmpCwp);\r\n\t\t\t\t\t\t\t\tcwpAction.setCwpDataSource(tmpCwp);\r\n\t\t\t\t\t\t\t\tcwpAction.createCwpPage(tmpCwp, false);\r\n\t\t\t\t\t\t\t\tQueryUtil.updateBo(tmpCwp);\r\n\t\t\t\t\t\t\t\tupdateCwpBefore.put(tmpCwp.getId(), configTemplate.getId().toString());\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\tAhRestoreDBTools.logRestoreMsg(\"restore ConfigTemplate update cwp profile error! cwpname: \" + tmpCwp.getCwpName() );\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} else {\r\n\t\t\t\t\t\t\tboolean needcreate = true;\r\n\t\t\t\t\t\t\tif (createCwpBefore.get(tmpCwp.getId())!=null && createCwpBefore.get(tmpCwp.getId()).size()>0) {\r\n\t\t\t\t\t\t\t\tfor(Cwp newCwp :createCwpBefore.get(tmpCwp.getId())){\r\n\t\t\t\t\t\t\t\t\tif (newCwp.getRegistrationType() == tmpCwp.getRegistrationType()){\r\n\t\t\t\t\t\t\t\t\t\tneedcreate = false;\r\n\t\t\t\t\t\t\t\t\t\tSsidProfile tmpSsidProfile = QueryUtil.findBoById(SsidProfile.class, configTemplateSsid.getSsidProfile().getId());\r\n\t\t\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\t\t\ttmpSsidProfile.setCwp(newCwp);\r\n\t\t\t\t\t\t\t\t\t\t\tif (updateSsidProfileBefore.get(tmpSsidProfile.getSsidName())==null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\tQueryUtil.updateBo(tmpSsidProfile);\r\n\t\t\t\t\t\t\t\t\t\t\t\tupdateSsidProfileBefore.put(tmpSsidProfile.getSsidName(), true);\r\n\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\tString oldWlanPolicyId = updateCwpBefore.get(tmpCwp.getId());\r\n\t\t\t\t\t\t\t\t\t\t\t\tMap<String,String> issueMap = new HashMap<String,String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\tissueMap.put(\"ISSUEID\", \"16\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tissueMap.put(\"NEWCWPNAME\",newCwp.getCwpName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tissueMap.put(\"WLANPOLICYID\",oldWlanPolicyId);\r\n\t\t\t\t\t\t\t\t\t\t\t\tissueMap.put(\"WLANPOLICYID2\",configTemplate.getId().toString());\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\tSsidProfile newSsidProfile = updateSsidProfileAndWlanPolicy(newCwp, configTemplateSsid,templateSsidUserProfile);\r\n\t\t\t\t\t\t\t\t\t\t\t\tupdateSsidProfileBefore.put(newSsidProfile.getSsidName(), true);\r\n\t\t\t\t\t\t\t\t\t\t\t\tissueMap.put(\"SAMESSIDNAME\", newSsidProfile.getSsid());\r\n\t\t\t\t\t\t\t\t\t\t\t\tissueMap.put(\"NEWSSIDNAME\", newSsidProfile.getSsidName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tissueMapList.add(issueMap);\r\n\t\t\t\t\t\t\t\t\t\t\t\tremoveKey.add(configTemplateSsid.getSsidProfile().getId());\r\n\t\t\t\t\t\t\t\t\t\t\t\tConfigTemplateSsid tmpconfig = new ConfigTemplateSsid();\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setSsidProfile(newSsidProfile);\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setInterfaceName(newSsidProfile.getSsidName());\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setNetworkServicesEnabled(configTemplateSsid.getNetworkServicesEnabled());\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setMacOuisEnabled(configTemplateSsid.getMacOuisEnabled());\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setSsidEnabled(configTemplateSsid.getSsidEnabled());\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckE(configTemplateSsid.getCheckE());\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckP(configTemplateSsid.getCheckP());\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckD(configTemplateSsid.getCheckD());\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckET(configTemplateSsid.getCheckET());\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckPT(configTemplateSsid.getCheckPT());\r\n\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckDT(configTemplateSsid.getCheckDT());\r\n\r\n//\t\t\t\t\t\t\t\t\t\t\t\ttmpconfig.setClassfierAndMarker(configTemplateSsid.getClassfierAndMarker());\r\n\t\t\t\t\t\t\t\t\t\t\t\taddConfig.add(tmpconfig);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\t\t\tAhRestoreDBTools.logRestoreMsg(\"restore ConfigTemplate update Ssid profile error! ssidname: \" + tmpSsidProfile.getSsidName() );\r\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tbreak;\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\tif (needcreate){\r\n\t\t\t\t\t\t\t\tboolean nameExist = true;\r\n\t\t\t\t\t\t\t\tString oldWlanPolicyId = updateCwpBefore.get(tmpCwp.getId());\r\n\t\t\t\t\t\t\t\tdo {\r\n\t\t\t\t\t\t\t\t\tif (tmpCwp.getCwpName().length()>29) {\r\n\t\t\t\t\t\t\t\t\t\ttmpCwp.setCwpName(tmpCwp.getCwpName().substring(0, 29)+ \"_\" + cwpNameCount);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\ttmpCwp.setCwpName(tmpCwp.getCwpName()+ \"_\" + cwpNameCount);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tcwpNameCount++;\r\n\t\t\t\t\t\t\t\t\tif(!checkCwpNameExists(\"cwpName\",tmpCwp.getCwpName())){\r\n\t\t\t\t\t\t\t\t\t\tnameExist = false;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} while(nameExist);\r\n\t\t\t\t\t\t\t\tLong oldCwpId = tmpCwp.getId();\r\n\t\t\t\t\t\t\t\ttmpCwp.setId(null);\r\n\t\t\t\t\t\t\t\ttmpCwp.setOwner(AhRestoreNewMapTools.getonlyDomain());\r\n\t\t\t\t\t\t\t\ttmpCwp.setVersion(null);\r\n\r\n\t\t\t\t\t\t\t\tCwpPageCustomization pageCustomization = tmpCwp.getPageCustomization();\r\n\t\t\t\t\t\t\t\tMap<String, CwpPageField> fields = new LinkedHashMap<String, CwpPageField>();\r\n\t\t\t\t\t\t\t\tbyte order = 1;\r\n\r\n\t\t\t\t\t\t\t\tfor(String field : CwpPageField.FIELDS) {\r\n\t\t\t\t\t\t\t\t\tCwpPageField newField = pageCustomization.getPageField(field);\r\n\t\t\t\t\t\t\t\t\tif(newField == null) {\r\n\t\t\t\t\t\t\t\t\t\tnewField = new CwpPageField();\r\n\t\t\t\t\t\t\t\t\t\tnewField.setEnabled(true);\r\n\r\n\t\t\t\t\t\t\t\t\t\tif(field.equals(\"Phone\") || field.equals(\"Comment\") || field.equals(CwpPageField.REPRESENTING)) {\r\n\t\t\t\t\t\t\t\t\t\t\tnewField.setRequired(false);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\tif(tmpCwp.isIdmSelfReg() && (field.equals(CwpPageField.VISITING))){\r\n\t\t\t\t\t\t\t\t\t\t\t\tnewField.setRequired(false);\r\n\t\t\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t\t\t\tnewField.setRequired(true);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tnewField.setLabel(field);\r\n\t\t\t\t\t\t\t\t\t\tnewField.setPlace(order++);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tnewField.setField(field);\r\n\t\t\t\t\t\t\t\t\tfields.put(field, newField);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tpageCustomization.setFields(fields);\r\n\r\n\t\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\t\tcwpAction.updatePageFields(tmpCwp);\r\n\t\t\t\t\t\t\t\t\tcwpAction.setCwpDataSource(tmpCwp);\r\n\t\t\t\t\t\t\t\t\tcwpAction.createCwpPage(tmpCwp, false);\r\n\t\t\t\t\t\t\t\t\tQueryUtil.createBo(tmpCwp);\r\n\r\n\t\t\t\t\t\t\t\t\tif (createCwpBefore.get(oldCwpId) == null) {\r\n\t\t\t\t\t\t\t\t\t\tList<Cwp> lstCwp= new ArrayList<Cwp>();\r\n\t\t\t\t\t\t\t\t\t\tlstCwp.add(tmpCwp);\r\n\t\t\t\t\t\t\t\t\t\tcreateCwpBefore.put(oldCwpId, lstCwp);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tcreateCwpBefore.get(oldCwpId).add(tmpCwp);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\tSsidProfile tmpSsidProfile = QueryUtil.findBoById(SsidProfile.class, configTemplateSsid.getSsidProfile().getId());\r\n\t\t\t\t\t\t\t\t\tif (updateSsidProfileBefore.get(tmpSsidProfile.getSsidName())==null) {\r\n\t\t\t\t\t\t\t\t\t\ttmpSsidProfile.setCwp(tmpCwp);\r\n\t\t\t\t\t\t\t\t\t\tQueryUtil.updateBo(tmpSsidProfile);\r\n\t\t\t\t\t\t\t\t\t\tupdateSsidProfileBefore.put(tmpSsidProfile.getSsidName(), true);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tMap<String,String> issueMap = new HashMap<String,String>();\r\n\t\t\t\t\t\t\t\t\t\tissueMap.put(\"ISSUEID\", \"16\");\r\n\t\t\t\t\t\t\t\t\t\tissueMap.put(\"NEWCWPNAME\",tmpCwp.getCwpName());\r\n\t\t\t\t\t\t\t\t\t\tissueMap.put(\"WLANPOLICYID\",oldWlanPolicyId);\r\n\t\t\t\t\t\t\t\t\t\tissueMap.put(\"WLANPOLICYID2\",configTemplate.getId().toString());\r\n\r\n\t\t\t\t\t\t\t\t\t\tSsidProfile newSsidProfile = updateSsidProfileAndWlanPolicy(tmpCwp, configTemplateSsid,templateSsidUserProfile);\r\n\t\t\t\t\t\t\t\t\t\tupdateSsidProfileBefore.put(newSsidProfile.getSsidName(), true);\r\n\t\t\t\t\t\t\t\t\t\tissueMap.put(\"SAMESSIDNAME\", newSsidProfile.getSsid());\r\n\t\t\t\t\t\t\t\t\t\tissueMap.put(\"NEWSSIDNAME\", newSsidProfile.getSsidName());\r\n\t\t\t\t\t\t\t\t\t\tissueMapList.add(issueMap);\r\n\t\t\t\t\t\t\t\t\t\tremoveKey.add(configTemplateSsid.getSsidProfile().getId());\r\n\t\t\t\t\t\t\t\t\t\tConfigTemplateSsid tmpconfig = new ConfigTemplateSsid();\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setSsidProfile(newSsidProfile);\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setInterfaceName(newSsidProfile.getSsidName());\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setNetworkServicesEnabled(configTemplateSsid.getNetworkServicesEnabled());\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setMacOuisEnabled(configTemplateSsid.getMacOuisEnabled());\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setSsidEnabled(configTemplateSsid.getSsidEnabled());\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckE(configTemplateSsid.getCheckE());\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckP(configTemplateSsid.getCheckP());\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckD(configTemplateSsid.getCheckD());\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckET(configTemplateSsid.getCheckET());\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckPT(configTemplateSsid.getCheckPT());\r\n\t\t\t\t\t\t\t\t\t\ttmpconfig.setCheckDT(configTemplateSsid.getCheckDT());\r\n//\t\t\t\t\t\t\t\t\t\ttmpconfig.setClassfierAndMarker(configTemplateSsid.getClassfierAndMarker());\r\n\t\t\t\t\t\t\t\t\t\taddConfig.add(tmpconfig);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t\tAhRestoreDBTools.logRestoreMsg(\"restore ConfigTemplate create cwp profile error! cwpname: \" + tmpCwp.getCwpName() );\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\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\tif (removeKey.size()>0){\r\n\t\t\t\tfor (Long key : removeKey) {\r\n\t\t\t\t\tconfigTemplate.getSsidInterfaces().remove(key);\r\n\t\t\t\t}\r\n\t\t\t\tfor (ConfigTemplateSsid config : addConfig) {\r\n\t\t\t\t\tconfigTemplate.getSsidInterfaces().put(config.getSsidProfile().getId(), config);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void setDebuggerTemplate(final DebuggerTemplate template) throws CouldntSaveDataException {\n try {\n m_module.getConfiguration().setDebuggerTemplate(template == null ? null : template.getNative());\n } catch (final com.google.security.zynamics.binnavi.Database.Exceptions.CouldntSaveDataException e) {\n throw new CouldntSaveDataException(e);\n }\n }",
"public static void assignTemplateName(String templateName) {\n trialWizardPreferences.put(CURRENT_TEMPLATE, templateName);\n }",
"@ThriftMethod\n VoidDTO updateProfileTemplateDisplayName(\n long orgId, long profileTemplateId, String displayName, long actorUserId, long adminUserId);"
] | [
"0.66162777",
"0.5840744",
"0.5678183",
"0.5659963",
"0.5525229",
"0.53472924",
"0.5346034",
"0.5246391",
"0.5212573",
"0.52051973",
"0.51585984",
"0.5158297",
"0.51166123",
"0.51048374",
"0.5073321",
"0.5028476",
"0.49946845",
"0.49890056",
"0.49849826",
"0.4937589",
"0.49290693",
"0.49237937",
"0.48736146",
"0.486978",
"0.4844043",
"0.48381874",
"0.48053983",
"0.47678673",
"0.47632182",
"0.4754525",
"0.47542208",
"0.47383273",
"0.47021696",
"0.4653629",
"0.4651027",
"0.46351197",
"0.46193695",
"0.46158907",
"0.46080855",
"0.458995",
"0.45875904",
"0.4571802",
"0.45715746",
"0.45551485",
"0.45487675",
"0.45202592",
"0.45133054",
"0.4512668",
"0.45067465",
"0.44936228",
"0.4492858",
"0.44589674",
"0.4448773",
"0.44392264",
"0.44337916",
"0.44296804",
"0.44170204",
"0.44035473",
"0.43982506",
"0.438968",
"0.4386442",
"0.4386358",
"0.43831",
"0.43813682",
"0.43645912",
"0.4359423",
"0.43585348",
"0.43421862",
"0.43412247",
"0.43405107",
"0.43319467",
"0.4317666",
"0.4308798",
"0.43085128",
"0.43077108",
"0.43048063",
"0.43034506",
"0.43033922",
"0.42982554",
"0.42972654",
"0.42938554",
"0.42929775",
"0.42891788",
"0.42634803",
"0.4263135",
"0.42556125",
"0.42519978",
"0.42516634",
"0.42514235",
"0.42459807",
"0.42434102",
"0.42351732",
"0.42160523",
"0.42151767",
"0.4214528",
"0.42100736",
"0.42020756",
"0.42008704",
"0.4184763",
"0.41828305"
] | 0.55639696 | 4 |
Delete a previously defined template | void deleteElementDefinition(String elementName) throws IllegalArgumentException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void deleteTemplate(Template template)\n\t{\n\t\tTemplateDAO dao = new TemplateDAO();\n\t\tdao.delete(template);\t\t\n\t\t//return template.getId();\n\t}",
"private void removeTemplate()\r\n {\r\n\t String template = keyField.getText();\r\n\t if (template.length()==0)\r\n\t {\r\n\t\t label.setText(\"Please enter template name\");\r\n\t\t return;\r\n\t }\r\n\t \r\n\t int index = list.getSelectedIndex();\r\n if (index<0) return;\r\n\r\n\t if (!templates.removeTemplate(template))\r\n\t {\r\n\t\t label.setText(\"Couldn't remove default template\");\r\n\t\t return;\r\n\t }\r\n\r\n String[] newTemplates = new String[templateKeys.length - 1];\r\n for (int a=0; a<templateKeys.length; a++)\r\n {\r\n if (a<index) newTemplates[a] = templateKeys[a];\r\n else if (a > index) newTemplates[a-1] = templateKeys[a];\r\n }\r\n templateKeys = newTemplates;\r\n model.removeElementAt(index);\r\n \r\n clearComponents();\r\n list.setSelectedIndex(-1); \r\n label.setText(\"Display format \" + template + \" removed\");\r\n }",
"@Test\n public void deleteTemplateTest() throws IdfyException, Exception {\n UUID id = UUID.randomUUID();\n api.deleteTemplate(id);\n }",
"@Override\n\tpublic void delete(long id) throws Exception {\n\t\tfind(id);\n\n\t\t// check if the template component has been used\n\t\tList<GpProjectTemplate> list = getProjectTemplateService()\n\t\t\t\t.findByTemplate(id);\n\t\tif (list != null && !list.isEmpty()) {\n\t\t\tthrow new Exception(\n\t\t\t\t\t\"Template (ID=\"\n\t\t\t\t\t\t\t+ id\n\t\t\t\t\t\t\t+ \") can't be deleted. It has been used inside a Project Template.\");\n\t\t}\n\n\t\t// delete template components\n\t\tgetTemplateComponentService().deleteTemplateComponent(id);\n\n\t\t// delete template\n\t\tgetTemplateDao().delete(id);\n\t}",
"public void remove(Template template) {\n\tfTemplates.remove(template);\n\tsort();\n }",
"public void removeTemplatesPage()\r\n {\r\n getSemanticObject().removeProperty(swpres_templatesPage);\r\n }",
"public void removeTemplateId(int i)\n {\n synchronized (monitor())\n {\n check_orphaned();\n get_store().remove_element(TEMPLATEID$4, i);\n }\n }",
"int deleteByExample(CfgPrintTemplateAttrExample example);",
"@DELETE(\"users/templates/{id}\")\n Call<Void> deleteUserTemplate(\n @retrofit2.http.Path(\"id\") String id, @retrofit2.http.Query(\"cascade\") String cascade\n );",
"@Override\r\n\tpublic void delete(SimpleJdbcTemplate template) throws Exception {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}",
"public void deleteSupplier(Supplier e){ \n\t template.delete(e); \n\t}",
"public void deleteOneWord(Pojo.OneWord e){ \n template.delete(e); \n}",
"@RequestMapping(\"/deleteTemplate\")\n public String deleteCustomer(@RequestParam(\"id\") int templateId,\n @CookieValue(\"userTag\") String userID,\n Model model) {\n JeanTemplate temp = new JeanTemplate();\n temp.setTemplateId(templateId);\n accessTemplate.delete(temp);\n\n ArrayList<JeanTemplate> templateList = accessTemplate.selectAllUserTemplates(userID);\n\n model.addAttribute(\"templateList\", templateList);\n\n return \"templateView\";\n\n }",
"public void removeTemplate(ITuple template) {\n\t\tthis.takeHolder.removeLease(template);\n\t\tthis.readHolder.removeLease(template);\n\t}",
"public ITemplateStep removeStep(ITemplateStep stepToRemove);",
"public void delete(int id){ \n\t\tActivity e=(Activity)template.get(Activity.class,id); \n\t template.delete(e); \n\t}",
"void delete(ViewDefinition viewDefinition);",
"public void removeDynamicTemplate(AbstractSlaveTemplate template) {\n this.dynamicTemplates.remove(template); // Fails silently\n }",
"public boolean deleteFieldsTemplate(Template template)\n\t{\n\t\tFieldsTemplateDAO daoTemplate = new FieldsTemplateDAO();\n\t\treturn daoTemplate.deleteFieldsByIdTemplate(template);\n\t}",
"@Override\n public void deleteEmailTemplate(String templateTypeName, String localeCode, String tenantDomain) throws\n I18nEmailMgtException {\n if (StringUtils.isBlank(templateTypeName)) {\n throw new I18nEmailMgtClientException(\"Cannot Delete template. Email displayName cannot be null.\");\n }\n\n if (StringUtils.isBlank(localeCode)) {\n throw new I18nEmailMgtClientException(\"Cannot Delete template. Email locale cannot be null.\");\n }\n\n String templateType = I18nEmailUtil.getNormalizedName(templateTypeName);\n String path = EMAIL_TEMPLATE_PATH + PATH_SEPARATOR + templateType;\n\n try {\n resourceMgtService.deleteIdentityResource(path, tenantDomain, localeCode);\n } catch (IdentityRuntimeException ex) {\n String msg = String.format(\"Error deleting %s:%s template from %s tenant registry.\", templateTypeName,\n localeCode, tenantDomain);\n handleServerException(msg, ex);\n }\n }",
"public void disassociateProductTemplate() {\n productToolOperation.removeChildProductTree(selectProductNode, planConfigBehavior);\n }",
"@Override\n\tpublic boolean delete(NPC_tmpl obj) {\n\t\treturn false;\n\t}",
"void delete(String resourceGroupName, String virtualMachineTemplateName);",
"public void deleteRecord(IdentifiedRecordTemplate template,\n DataRecord deletedRecord) throws FormException {\n Connection con = null;\n \n try {\n GenericDataRecord record = (GenericDataRecord) deletedRecord;\n \n con = getConnection();\n deleteFieldRows(con, template, record);\n deleteRecordRows(con, template, record);\n \n } catch (ClassCastException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_UNKNOWN_TEMPLATE\", e);\n } catch (SQLException e) {\n throw new FormException(\"GenericRecordSetManager\",\n \"form.EXP_DELETE_FAILED\", e);\n } finally {\n closeConnection(con);\n }\n }",
"public static void removeTemplate(final ITemplate t) {\n\t\tif (t != null) {\n\t\t\tITemplate removed = StorageService.removeTemplate(t);\n\t\t\tif (removed == null) {\n\t\t\t\tUtils.printError(\"Template to be removed, \" + t + \n\t\t\t\t\t\t\" is not in database (TemplateDelegate.removeTemplate)\");\n\t\t\t}\n\t\t}\n\t\telse Utils.printError(\"Cannot remove a null Template! (TemplateDelegate.removeTemplate)\");\n\t}",
"private void delete() {\n\n\t}",
"@Override\n\t\tpublic void delete() {\n\n\t\t}",
"public void deleteCt() {\n\t\tlog.info(\"-----deleteCt()-----\");\n\t\t//int index = selected.getCtXuatKho().getCtxuatkhoThutu().intValue() - 1;\n\t\tlistCtKhoLeTraEx.remove(selected);\n\t\tthis.count = listCtKhoLeTraEx.size();\n\t\ttinhTien();\n\t}",
"@Override\n public void deleteItem(P_CK t) {\n \n }",
"@DeleteMapping(\"/analysis-templates\")\n\tpublic ResponseEntity<AjaxResponse> removeProjectAnalysisTemplates(@RequestParam long templateId,\n\t\t\t@PathVariable long projectId, Locale locale) {\n\t\treturn ResponseEntity.ok(\n\t\t\t\tnew AjaxSuccessResponse(pipelineService.removeProjectAutomatedPipeline(templateId, projectId, locale)));\n\t}",
"void delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force, Context context);",
"void delete(String resourceGroupName, String virtualMachineTemplateName, Boolean force);",
"@Override\n\tpublic void delete(Zone t) {\n\t\t\n\t}",
"@RequestMapping(value = \"/deleteFlowTemplate\", method = RequestMethod.GET)\n\t@ResponseBody\n\tpublic String deleteFlowTemplate(String id) {\n\t\treturn flowTemplateServiceImpl.deleteFlowTemplate(id);\n\t}",
"public int deleteView(View view) {\n LinearLayout parentPage = (LinearLayout) view.getParent().getParent().getParent();\n LinearLayout slot = (LinearLayout) view.getParent().getParent();\n int index = parentPage.indexOfChild(slot);\n parentPage.removeViewAt(index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"TEMPLATEEDITOR\", \"onDelete\");\n return index;\n }",
"@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"@Override\n public void destroyObject(MongoTemplate obj) throws Exception {\n }",
"public void delete() {\n\n\t}",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"@Override\n\tpublic void deleteTmly(Tmly tmly) {\n\t\tString sql = \"delete from tmly where id_=?\";\n\t\tthis.jdbcTemplate.update(sql, new Object[] { tmly.getId() });\n\t}",
"@Override\n public void delete()\n {\n }",
"@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}",
"private void deleteResource() {\n }",
"private void deleteRecordRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"int deleteByExample(PdfCodeTemporaryExample example);",
"@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}",
"private void deleteFile() {\r\n actionDelete(dataModelArrayList.get(position));\r\n }",
"public boolean templateFieldLibraryDelete(Long id) {\n\t\tFieldsTemplateLibraryDAO dao = new FieldsTemplateLibraryDAO();\n\t\treturn dao.deleteById(id);\n\t}",
"@Override\n\tpublic void delete()\n\t{\n\t\tcachedContent = null;\n\t\tFile outputFile = getStoreLocation();\n\t\tif ((outputFile != null) && outputFile.exists())\n\t\t{\n\t\t\tif (Files.remove(outputFile) == false)\n\t\t\t{\n\t\t\t\tlog.error(\"failed to delete file: \" + outputFile.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void delete() {\n\n\t}",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"private void deleteFieldRows(Connection con,\n IdentifiedRecordTemplate template) throws SQLException {\n PreparedStatement delete = null;\n \n try {\n int internalId = template.getInternalId();\n \n delete = con.prepareStatement(DELETE_TEMPLATE_RECORDS_FIELDS);\n delete.setInt(1, internalId);\n delete.execute();\n } finally {\n DBUtil.close(delete);\n }\n }",
"int deleteByExample(TempletLinkExample example);",
"@Override\n\tpublic void delete() {\n\t\t\n\t}",
"@Override\n\tpublic void delete() {\n\t\t\n\t}",
"private void deleteTempHTMLFile()\n {\n File file = new File(\"resources/tempHTML\" +Thread.currentThread().getName() +\".html\");\n file.delete();\n }",
"public static void removeAllRegisteredTemplateElements() {\n availableTemplateElements.clear();\n }",
"private void deletePreviousContent()\n {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(DATABASE_TABLE_SINGLE_PAGE, null, null);\n db.close();\n }",
"@Override\n public void deletePartida(String idPartida) {\n template.opsForHash().delete(idPartida, \"jugador1\");\n template.opsForHash().delete(idPartida, \"jugador2\");\n template.opsForSet().remove(\"partidas\",idPartida);\n }",
"public Builder clearTemplateId() {\n \n templateId_ = getDefaultInstance().getTemplateId();\n onChanged();\n return this;\n }",
"public boolean deleteAggregatedObject(String templateName) {\n String queryString = \"{\\\"_id\\\": /.*\" + templateName + \"/}\";\n MongoQuery query = new MongoStringQuery(queryString);\n LOGGER.debug(\"The JSON query for deleting aggregated object is: {}\", query);\n return mongoDBHandler.dropDocument(aggregationDataBaseName, aggregationCollectionName, query);\n }",
"@JsonIgnore\r\n\tpublic ArrayList<ShippingTemplate> deleteShippingTemplate(String shippingTemplateId) {\r\n\t\tString results = EtsyService.deleteService(\"/shipping/templates/\"+shippingTemplateId);\r\n\t\treturn readResults(results);\r\n\t}",
"void delete(int metaTagId);",
"@Override\r\n\tpublic void delete() {\n\r\n\t}",
"public void exitTemp() {\r\n tr.saveTempToFile(TemplateManager.IdToTemplate);\r\n }",
"@Test\n public void deleteTemplateProgrammerTemplateByTemplateIdTest() throws ApiException {\n String templateId = null;\n TaskIdResult response = api.deleteTemplateProgrammerTemplateByTemplateId(templateId);\n\n // TODO: test validations\n }",
"@Override\n\tpublic void delete(T t) {\n\t\thibernateTemplate.delete(t);\n\t}",
"public void delete() {\n\t\tcp.delete();\n\t}",
"@Override\n public void delete() {\n }",
"void delete(String typeName, String id);",
"public void closeTemplate(String fxmlFile) throws IOException {\n\t}",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/tools/clang/include/clang/AST/DeclTemplate.h\", line = 2755,\n FQN=\"clang::VarTemplateDecl::Common::~Common\", NM=\"_ZN5clang15VarTemplateDecl6CommonD0Ev\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.clang.ast/llvmToClangType ${LLVM_SRC}/llvm/tools/clang/lib/AST/DeclTemplate.cpp -nm=_ZN5clang15VarTemplateDecl6CommonD0Ev\")\n //</editor-fold>\n public /*inline*/ void $destroy() {\n //START JDestroy\n PartialSpecializations.$destroy();\n Specializations.$destroy();\n super.$destroy();\n //END JDestroy\n }",
"public void delete_File(){\n context.deleteFile(Constant.FILE_NAME);\n }",
"public void delete(){\r\n\r\n }",
"void deleteExpression(Expression expression);",
"@Override\n\tpublic boolean deleteTag(TagInfo tInfo) {\n\t\treturn false;\n\t}",
"public ISFQuery delete(URI url) throws InvalidOrMissingParameterException \t{\n\t\tif (url == null) {\n\t\t\tthrow new InvalidOrMissingParameterException(\"url\");\n\t\t}\n\n\t\tSFApiQuery sfApiQuery = new SFApiQuery(this.client);\n\t\tsfApiQuery.setFrom(\"FolderTemplates\");\n\t\tsfApiQuery.addIds(url);\n\t\tsfApiQuery.setHttpMethod(\"DELETE\");\n\t\treturn sfApiQuery;\n\t}",
"private Delete() {}",
"private Delete() {}",
"public void deleteTag(String t) {\n\t\tif (tagList.containsKey(t)) {\n\t\t\tif (tagList.get(t) == 0) {\n\t\t\t\ttagList.remove(t);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"There are images with this tag!\" + \"Please untag them before deleting tag.\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.print(\"Tag does not exist!\");\n\t\t}\n\t}",
"@Override\n \tpublic Representation deleteResource() {\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\t\n \t\t// On s'assure qu'il n'est plus prsent en base de donnes\n \t\n \t\tIntervention inter = Interventions.getInstance().getIntervention(interId);\n \t\tList<Source> sources = inter.getSources();\n \t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\tsources.remove(sources.get(i));\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn null;\n \t}",
"private static void deleteResource(ProjectElement element) {\r\n \t\tResource resource = element.eResource();\r\n \t\tif (resource != null) {\r\n resource.getContents().remove(element);\r\n resource.unload();\r\n } \r\n \t}",
"public void delete() {\n if (tempFile != null) {\n tempFile.delete();\n }\n }",
"public boolean delete();",
"@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}",
"@Override\r\n\tpublic void remove(long id) {\n\t\tObject obj = getHibernateTemplate().get(CustomizePage.class, id);\r\n\t\tgetHibernateTemplate().delete(obj);\r\n\t}",
"@DELETE\n public void delete() {\n }",
"@DELETE\n public void delete() {\n }",
"@Override\n\tpublic void delete() {\n\t\tSystem.out.println(\"no goin\");\n\t\t\n\t}",
"public void delete()\n {\n call(\"Delete\");\n }",
"public void deleteGeneratedFiles();",
"private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}",
"void delete(T t);",
"public void delete() {\r\n if (this.selectedTag != null) {\r\n for (int i = uploads.size() -1; i >= 0 ; i--) {\r\n if (this.selectedTag.equals(uploads.get(i).getTag())) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n uploads.remove(i);\r\n break;\r\n }\r\n }\r\n }\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdelete();\n\t\t\t}",
"private void deletePet() {\r\n // Only perform the delete if this is an existing pet.\r\n// if (mCurrentPetUri != null) {\r\n// // Call the ContentResolver to delete the pet at the given content URI.\r\n// // Pass in null for the selection and selection args because the mCurrentPetUri\r\n// // content URI already identifies the pet that we want.\r\n// int rowsDeleted = getContentResolver().delete(mCurrentPetUri, null, null);\r\n// // Show a toast message depending on whether or not the delete was successful.\r\n// if (rowsDeleted == 0) {\r\n// // If no rows were deleted, then there was an error with the delete.\r\n// Toast.makeText(this, getString(R.string.editor_delete_pet_failed),\r\n// Toast.LENGTH_SHORT).show();\r\n// } else {\r\n// // Otherwise, the delete was successful and we can display a toast.\r\n// Toast.makeText(this, getString(R.string.editor_delete_pet_successful),\r\n// Toast.LENGTH_SHORT).show();\r\n// }\r\n// }\r\n\r\n }"
] | [
"0.7263077",
"0.71443355",
"0.7045573",
"0.67889607",
"0.66909605",
"0.6685673",
"0.65575457",
"0.6504716",
"0.6452316",
"0.6434337",
"0.63680774",
"0.6340045",
"0.6332246",
"0.6294537",
"0.6239067",
"0.6226477",
"0.6154342",
"0.6076083",
"0.60094804",
"0.5956544",
"0.5934277",
"0.5903115",
"0.5888743",
"0.5868511",
"0.58536625",
"0.5851163",
"0.5848318",
"0.58424217",
"0.57744145",
"0.576947",
"0.5746589",
"0.5727713",
"0.57216924",
"0.57059705",
"0.5669851",
"0.5622427",
"0.56087464",
"0.5601709",
"0.5593057",
"0.5593057",
"0.5593057",
"0.5593057",
"0.5593057",
"0.5593057",
"0.5587197",
"0.55817926",
"0.55775356",
"0.5575557",
"0.5575505",
"0.55719334",
"0.5568502",
"0.5560563",
"0.55473155",
"0.5545675",
"0.5533151",
"0.5510701",
"0.5509247",
"0.550424",
"0.5501815",
"0.5501815",
"0.55009484",
"0.5491325",
"0.5478955",
"0.5478308",
"0.5474405",
"0.5471132",
"0.54491585",
"0.5440692",
"0.5437509",
"0.5435213",
"0.54293644",
"0.54223114",
"0.54177505",
"0.5387543",
"0.538588",
"0.5370595",
"0.53502744",
"0.5330585",
"0.5319963",
"0.5306919",
"0.53019214",
"0.52757394",
"0.5274119",
"0.5274119",
"0.52739507",
"0.5263838",
"0.5254693",
"0.52533746",
"0.5237128",
"0.5233908",
"0.522752",
"0.5223746",
"0.5223746",
"0.52229685",
"0.5221819",
"0.5214798",
"0.52110475",
"0.52069825",
"0.52045995",
"0.5202632",
"0.5199749"
] | 0.0 | -1 |
Place a game element of previously defined type within the game. | int placeElement(String elementName, Point2D startCoordinates); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void place(Position position) { this.position = position; }",
"void doPlaceObject() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (currentBaseTile != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.basemap, renderer.placementRectangle, false);\r\n\t\t\tSurfaceFeature sf = new SurfaceFeature();\r\n\t\t\tsf.id = currentBaseTile.id;\r\n\t\t\tsf.type = currentBaseTile.type;\r\n\t\t\tsf.tile = currentBaseTile.tile;\r\n\t\t\tsf.location = Location.of(renderer.placementRectangle.x, renderer.placementRectangle.y);\r\n\t\t\trenderer.surface.features.add(sf);\r\n\t\t\t\r\n\t\t\tplaceTile(currentBaseTile.tile, renderer.placementRectangle.x, renderer.placementRectangle.y, SurfaceEntityType.BASE, null);\r\n\t\t\t\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trenderer.repaint();\r\n\t\t} else\r\n\t\tif (currentBuildingType != null && renderer.canPlaceBuilding(renderer.placementRectangle) && renderer.placementRectangle.width > 0) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tBuilding bld = new Building(currentBuildingType, currentBuildingRace);\r\n\t\t\tbld.makeFullyBuilt();\r\n\t\t\tbld.location = Location.of(renderer.placementRectangle.x + 1, renderer.placementRectangle.y - 1); // leave room for the roads!\r\n\t\t\trenderer.surface.buildings.add(bld);\r\n\t\t\t\r\n\t\t\tplaceTile(bld.tileset.normal, bld.location.x, bld.location.y, SurfaceEntityType.BUILDING, bld);\r\n\t\t\tplaceRoads(currentBuildingRace);\r\n\t\t\t\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trenderer.repaint();\r\n\t\t}\r\n\t}",
"private void placePiece() {\r\n pieces[numPieces] = getRandomPoint();\r\n Game.movePiece(new PositionData(-1,-1,Constants.PLAYER_A_ID), pieces[numPieces]);\r\n numPieces++;\r\n }",
"public void push(TYPE element);",
"public void place(Object animal, Position position) {\n field[position.getRow()][position.getColumn()] = animal;\n }",
"void placePiece(Piece piece, Position position) {\n positionToPieceMap.put(position, piece);\n }",
"void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void place(GamePiece teil, QPosition pos) { // old German method name: platziere\n for (int x = teil.getMinX(); x <= teil.getMaxX(); x++) {\n for (int y = teil.getMinY(); y <= teil.getMaxY(); y++) {\n if (teil.filled(x, y)) {\n int ax = pos.getX() + x - teil.getMinX();\n int ay = pos.getY() + y - teil.getMinY();\n set(ax, ay, teil.getBlockType(x, y));\n }\n }\n }\n view.draw();\n }",
"public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}",
"private void placeShip() {\r\n\t\t// Expire the ship ship\r\n\t\tParticipant.expire(ship);\r\n\r\n\t\tclipShip.stop();\r\n\r\n\t\t// Create a new ship\r\n\t\tship = new Ship(SIZE / 2, SIZE / 2, -Math.PI / 2, this);\r\n\t\taddParticipant(ship);\r\n\t\tdisplay.setLegend(\"\");\r\n\t}",
"private static void assignElement(BendingPlayer bPlayer, Element e) {\n\t\tbPlayer.setElement(e);\n\t\tGeneralMethods.saveElements(bPlayer);\n\t\tBukkit.getPlayer(bPlayer.getUUID()).sendMessage(ChatColor.YELLOW + \"You have been born as \" + (e.getType() == ElementType.BENDING ? \"an \" : \"a \") + e.getColor() + e.getName() + e.getType().getBender() + ChatColor.YELLOW + \"!\");\n\t}",
"public static Action place(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation()) {\n if(!a.isFacing(Actor.class)) {\n if(a.isHolding(e)) {\n try {\n ((Placeable) e.newInstance()).place(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n a.removeItem(e);\n } catch(InstantiationException e) {\n e.printStackTrace();\n } catch(IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n\n }\n\n }\n }\n\n @Override\n public int getCost() {\n return 0;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Place(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }",
"public void placePiece(Piece newPiece){pieceAtVertex = newPiece;}",
"public void insert(ValueType element) {\r\n // TODO\r\n }",
"public void place(){\n\t\tplace((float) Math.floor(Main.mouseSelector.x)+0.5f,(float) Math.floor(Main.mouseSelector.y)+0.5f);\r\n\t}",
"public void placePiece(Piece piece, Position position) {\n\t\tif(thereIsAPiece(position)) {\n\t\t\tthrow new BoardException(\"There is already a piece on position \" + position);\n\t\t}\n\t\tpieces[position.getRow()][position.getColumn()] = piece;\n\t\tpiece.position = position;\n\t}",
"public void addElement(int x, int y, BoxContainer element){\n\t\t\tArrayList<Integer> coordinates = new ArrayList<Integer>();\n\t\t\tcoordinates.add(x);\n\t\t\tcoordinates.add(y);\n\t\t\tmap.put(coordinates, element);\n\t\t}",
"public void place() {\n\t\tprocessing.image(Image, x, y);\n\t}",
"public void placePlayer(Person user) {\r\n\t\trooms[user.getY()][user.getX()].addOccupant(user);\r\n\t\tuser.setRoom(getRoom(user.getX(), user.getY()));\r\n\t\tif (user instanceof Player) {\r\n\t\t\tthis.setPlayer((Player) user);\r\n\t\t} else if (user instanceof Enemy) {\r\n\t\t\tthis.enemies.add((Enemy) user);\r\n\t\t}\r\n\t\tuser.setFloor(this);\r\n\t}",
"private void placeBomb() {\n\t\tint x = ran.nextInt(worldWidth);\n\t\tint y = ran.nextInt(worldHeight);\n\n\t\tif (!tileArr[x][y].hasBomb()) {\n\t\t\ttileArr[x][y].setBomb(true);\n\n\t\t\tindex.add(\"Index\" + x + \",\" + y); // ADDED COMPONENT\n\t\t\trevealed.put(index, true);\n\t\t\tindex.removeFirst();\n\n\t\t} else {\n\t\t\tindex.add(\"Index\" + x + \",\" + y); // ADDED COMPONENT\n\t\t\trevealed.put(index, false);\n\t\t\tindex.removeFirst();\n\t\t\tplaceBomb();\n\t\t}\n\n\t}",
"public void place(Object animal, int row, int column) {\n place(animal, new Position(row, column));\n }",
"public void addType(Vector2 pos, Fact.Type foundType) {\n if(foundType != Fact.Type.UNKNOWN) removeFact(pos.x, pos.y, Fact.Type.UNKNOWN);\n boolean alreadyAdded = hasFact(pos.x, pos.y, foundType);\n \n if (!alreadyAdded) {\n grid[pos.x-1][pos.y-1].addFact(new Fact(foundType));\n } \n }",
"protected abstract Vector3f place (Vector3f position);",
"void addElementToInventory(String elementName);",
"@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }",
"void place(Animal animal);",
"public static void newGame(GameType t) {\n\t\ttype = t;\n\t}",
"private void addElement(PEElement element) {\n\t\tif (currentGroups.size() > 0) {\n\t\t\tcurrentGroups.peek().getElements().add(element);\n\t\t} else if (currentLabeledNodeType != null) {\n\t\t\tcurrentLabeledNodeType.getElements().add(element);\n\t\t} else {\n\t\t\tcurrentNodeType.getElements().add(element);\n\t\t}\n\t}",
"public void placeRandom() {\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.placeRandom();\r\n\t}",
"public void place (Particle particle)\n {\n _layer.pointToLayer(place(particle.getPosition()), true);\n }",
"@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}",
"public void put(E element);",
"protected void placeRandomly ( Thing thing ) {\n\t\tfor ( ; true ; ) {\n\t\t\tint row = (int) (Math.random() * numrows_);\n\t\t\tint col = (int) (Math.random() * numcols_);\n\t\t\tif ( field_[row][col] == null ) {\n\t\t\t\tfield_[row][col] = thing;\n\t\t\t\tif ( thing instanceof Animal ) {\n\t\t\t\t\t((Animal) thing).setPosition(row,col);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void addGameType(GameType gT)\r\n {\r\n\tgameTypes.add(gT);\r\n }",
"private void addAnotherElement() {\n\t\t SnakeSquare ss = sSquare.get(sSquare.size() - 1);\n\t\t double velX = ss.getDX();\n\t\t double velY = ss.getDY();\n\t\t \n\t\t double x = ss.getX();\n\t\t double y = ss.getY();\n\t\t double len = ss.getLength();\n\t\t Color c = ss.getColor();\n//\t\t double snakeSize = 10.0f;\n\t\t \n\t\t if(velX == 0 && velY == 0){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}\n\t\t if(velX == 0 && velY == 1){sSquare.add(new SnakeSquare(x, y - snakeSize, c, len));}//move down;\n\t\t if(velX == 0 && velY == -1){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}//move up;\n\t\t if(velX == 1 && velY == 0){sSquare.add(new SnakeSquare(x+ snakeSize, y, c, len));}//move right;\n\t\t if(velX == -1 && velY == 0){sSquare.add(new SnakeSquare(x - snakeSize, y, c, len));}// move left;\n\t\t\n\t}",
"public void place(Piece p, int x, int y) {\n\t\tif (x >= 8 || y >= 8 || p == null) {\n\t\t\treturn;\n\t\t} else {\n\t\t\tif (pieceAt(x, y) != null) {\n\t\t\t\tremove(x, y);\n\t\t\t}\n\t\t\tb[x][y] = p;\n\t\t\tif (p.isFire()) {\n\t\t\t\tnumFire += 1;\n\t\t\t} else {\n\t\t\t\tnumWater += 1;\n\t\t\t}\n\t\t}\n\t}",
"public void placeStone(Stone stone) {\r\n if(board[stone.getY()][stone.getX()].isPlayable()){\r\n Slot slot = (Slot) board[stone.getY()][stone.getX()];\r\n \r\n if (stone.getType()==PlayerType.COMPUTER)\r\n {\r\n if (lastStone !=null)\r\n {\r\n lastStone.setType(PlayerType.COMPUTER);\r\n }\r\n stone.setType(PlayerType.COMPUTER_LASTPLACE);\r\n lastStone=stone;\r\n }\r\n slot.placeStone(stone);\r\n board[stone.getY()][stone.getX()] = slot;\r\n \r\n // l.log(Level.INFO, \"Placed at \"+ stone.getY() + \" \" + stone.getX());\r\n //l.log(Level.INFO, \"tostring is:\" + board[stone.getY()][stone.getX()].toString());\r\n }\r\n }",
"public void addAfter(T existing, T element) throws ElementNotFoundException;",
"void spawnEntityAt(String typeName, int x, int y);",
"void placeTower();",
"public void placePiece(final double x, final double y) {\n\t\t// translate the x, y coordinates into cell indexes\n\t\tint indexx = (int) (x / cell_width);\n\t\tint indexy = (int) (y / cell_height);\n\t\t\n\t\t// if the position is empty then place a piece and swap the players\n\t\tif (board[indexx][indexy] == EMPTY && current_player == XPIECE) {\n\t\t\tboard[indexx][indexy] = XPIECE;\n\t\t\trenders[indexx][indexy] = new XOPiece(XPIECE);\n\t\t\trenders[indexx][indexy].resize(cell_width, cell_height);\n\t\t\trenders[indexx][indexy].relocate(indexx * cell_width, indexy * cell_height);\n\t\t\tgetChildren().add(renders[indexx][indexy]);\n\t\t\tcurrent_player = OPIECE;\n\t\t} else if (board[indexx][indexy] == EMPTY && current_player == OPIECE) {\n\t\t\tboard[indexx][indexy] = OPIECE;\n\t\t\trenders[indexx][indexy] = new XOPiece(OPIECE);\n\t\t\trenders[indexx][indexy].resize(cell_width, cell_height);\n\t\t\trenders[indexx][indexy].relocate(indexx * cell_width, indexy * cell_height);\n\t\t\tgetChildren().add(renders[indexx][indexy]);\n\t\t\tcurrent_player = XPIECE;\n\t\t}\n\t}",
"public void addPlace(Place place){\n if(!places.contains(place)){\n places.add(place);\n }\n if(!place.hasShip()){\n place.placeShip(this);\n }\n }",
"public static void placeObject(ObjectInstance content, ObjectInstance container) {\n\t\tcontent.addRelationalTarget(Names.ATTR_CONTAINER, container.getName());\n\t\tcontainer.addRelationalTarget(Names.ATTR_CONTENTS, content.getName());\n\t}",
"public void placePiece(String pos, Dominos piece){\n Dominos hold;\n if(pos.equals(\"left\")){\n hold = this.getFirst();\n\n if(piece.getLeftSide() == 0){\n piece.flip();\n this.addFirst(piece);\n return;\n }\n if(piece.getRightSide() == 0){\n this.addFirst(piece);\n return;\n }\n\n if(hold.getLeftSide() != piece.getRightSide()\n && hold.getLeftSide() != 0){\n piece.flip();\n }\n this.addFirst(piece);\n }else{\n hold = this.getLast();\n if(piece.getRightSide() == 0){\n piece.flip();\n this.addLast(piece);\n return;\n }\n if(piece.getLeftSide() == 0){\n this.addLast(piece);\n return;\n }\n if(hold.getRightSide() != piece.getLeftSide()\n && hold.getRightSide() !=0){\n piece.flip();\n }\n this.addLast(piece);\n }\n }",
"abstract public GameElement getGameElement();",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"public void push(Object anElement);",
"public void placeMandatoryObjects()\r\n {\r\n Random rng = new Random();\r\n //Adds an endgame chest somewhere (NOT in spawn)\r\n Room tempRoom = getRoom(rng.nextInt(dungeonWidth - 1) +1, rng.nextInt(dungeonHeight - 1) +1);\r\n tempRoom.addObject(new RoomObject(\"Endgame Chest\", \"overflowing with coolness!\"));\r\n if (tempRoom.getMonster() != null)\r\n {\r\n tempRoom.removeMonster();\r\n }\r\n tempRoom.addMonster(new Monster(\"Pelo Den Stygge\", \"FINAL BOSS\", 220, 220, 12));\r\n //Adds a merchant to the spawn room\r\n getRoom(0,0).addObject(new RoomObject(\"Merchant\", \"like a nice fella with a lot of goods (type \\\"wares\\\" to see his goods)\"));\r\n }",
"public void insert(T element);",
"void insertItem(Position position, IItem item);",
"public void setUnderlay(PlacementUnderlay underlay);",
"public Element addElement(Element rootElement,String type,Document document){\n\t\t// define school elements \n\t\tElement node = document.createElement(type); \n\t\trootElement.appendChild(node);\n\t\treturn node;\n\t}",
"public void place(float x,float y){\n\t\tz=0.2f+Main.world.land.getHigh(Main.world.timeline.getTerra(),(int)x, (int)y);\r\n\t\tMain.world.contacts(this);\r\n\t\tz+=getTopObjects();\r\n\t\tplace(x,y,z);\r\n\t}",
"public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name) { throw new RuntimeException(\"Stub!\"); }",
"public void put(Object element) {\r\n\t\tObject[] newElements = new Object[elements.length + 1];\r\n\t\tSystem.arraycopy(elements, 0, newElements, 0, elements.length);\r\n\t\tnewElements[elements.length] = element;\r\n\t\telements = newElements;\r\n\t}",
"void setPosition(Tile t);",
"public void placeAnimal(AnimalSol animal, String where) {\n for (int i = 0; i < myAnimals.length; i++) {\n if (null == myAnimals[i]) {\n myAnimals[i] = animal;\n animal.square = where;\n animal.position = this;\n nrAnimals++;\n return;\n } else if (animal == myAnimals[i]) {\n throw new RuntimeException(\"Animal \" + animal + \" already placed :(\");\n }\n }\n }",
"public void placeAlienBullet() {\r\n\t\tif (alien != null) {\r\n\t\t\t// If the alien is large fires a bullet in a random direction\r\n\t\t\tif (alien.getSize() == 1 && ship != null) {\r\n\r\n\t\t\t\t// Create the alien bullet\r\n\t\t\t\tab = new AlienBullet(alien.getX(), alien.getY());\r\n\r\n\t\t\t\t// give the alien bullet a random direction and the bullet speed velocity,\r\n\t\t\t\t// then add as participant\r\n\t\t\t\tdouble r = (2 * Math.PI) * RANDOM.nextDouble();\r\n\t\t\t\tab.setVelocity(BULLET_SPEED, r);\r\n\t\t\t\taddParticipant(ab);\r\n\r\n\t\t\t\t// Sets the alien bullet to expire when it reaches the bullet duration time\r\n\t\t\t\t// limit\r\n\t\t\t\tnew ParticipantCountdownTimer(ab, \"expire\", BULLET_DURATION);\r\n\t\t\t}\r\n\r\n\t\t\t// If the alien is small fires a bullet aimed directly at the ship\r\n\t\t\tif (alien.getSize() == 0 && ship != null) {\r\n\t\t\t\tab = new AlienBullet(alien.getX(), alien.getY());\r\n\t\t\t\tab.setSpeed(BULLET_SPEED);\r\n\r\n\t\t\t\t// Aims the alien bullet directly at the ship\r\n\t\t\t\tdouble A = ship.getY() - alien.getY();\r\n\t\t\t\tdouble B = ship.getX() - alien.getX();\r\n\t\t\t\tdouble angle = Math.atan2(A, B);\r\n\t\t\t\tab.setVelocity(BULLET_SPEED, angle);\r\n\r\n\t\t\t\t// Add the alien bullet as a participant and then set it to expire when it\r\n\t\t\t\t// reaches the bullet duration time limit\r\n\t\t\t\taddParticipant(ab);\r\n\t\t\t\tnew ParticipantCountdownTimer(ab, \"expire\", BULLET_DURATION);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void add(Object o) {\n gameCollection.addElement(o);\n }",
"public void add(int index, Object o) {\n try {\n Element element = (Element) o;\n if (element.type() == Element.CHUNK) {\n Chunk chunk = (Chunk) element;\n if (!font.isStandardFont()) {\n chunk.setFont(font.difference(chunk.font()));\n }\n super.add(index, chunk);\n }\n else if (element.type() == Element.PHRASE ||\n element.type() == Element.ANCHOR ||\n element.type() == Element.ANNOTATION ||\n element.type() == Element.TABLE || // line added by David Freels\n element.type() == Element.GRAPHIC) {\n super.add(index, element);\n }\n else {\n throw new ClassCastException(String.valueOf(element.type()));\n }\n }\n catch(ClassCastException cce) {\n throw new ClassCastException(\"Insertion of illegal Element: \" + cce.getMessage());\n }\n }",
"@Override\r\n\tpublic void putSurpriseBox(Board board, long x, long y, SurpriseBox surpriseBox)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tsurpriseBox.setPosition(new Position(x,y));\r\n\t\t\tsurpriseBox.setBoard(board);\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Either this surprise box or this board is terminated; the surprise box cannot be placed on the board.\");\r\n\t\t}\r\n\t\tcatch(IllegalPositionException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"This is not a valid position on the board to place an element.\");\r\n\t\t}\r\n\t}",
"public void addPlaced(Block placed) {\n\t\tlastPlaced.put(placed, System.currentTimeMillis());\n\t}",
"final protected boolean addElement(Object pID, TypeElement<?> pTypeElement) {\n\t\t\tif(!this.verifySecretID(pID)) return false;\n\t\t\t\n\t\t\tif((pTypeElement == null) || this.TypeElements.containsKey(pTypeElement.getIdentity())) return false;\n\t\t\tthis.TypeElements.put(pTypeElement.getIdentity(), pTypeElement);\n\t\t\treturn true;\n\t\t}",
"void moveElement(int elementId, double xCoordinate, double yCoordinate);",
"void place_character(Character character, Town town) throws IllegalStateException;",
"public void spawn(boolean type)\n\t{\n\t\tif (type)\n\t\t{\n\t\t\triver[findEmpty()] = new Bear();\n\t\t}\n\t\telse\n\t\t{\n\t\t\triver[findEmpty()] = new Fish();\n\t\t}\n\t}",
"public void add_one_place_to_tour(entities.PlaceOfInterestTour place) {\n\t\tPlaceofInterestItem sp = new PlaceofInterestItem(place);\n\t\t// delete buttons from list of item (place)\n\t\tsp.add_edit_layout();\n\n\t\tsp.setOnDragOver(event -> {\n\t\t\tfinal Dragboard dragboard = event.getDragboard();\n\t\t\tif (dragboard.hasString() && TAB_DRAG_KEY.equals(dragboard.getString()) && draggingTab.get() != null) {\n\t\t\t\tevent.acceptTransferModes(TransferMode.MOVE);\n\t\t\t\tevent.consume();\n\t\t\t}\n\t\t});\n\t\tsp.setOnDragDetected(event -> {\n\t\t\tDragboard dragboard = sp.startDragAndDrop(TransferMode.MOVE);\n\t\t\tClipboardContent clipboardContent = new ClipboardContent();\n\t\t\tclipboardContent.putString(TAB_DRAG_KEY);\n\t\t\tdragboard.setContent(clipboardContent);\n\t\t\tSnapshotParameters spp = new SnapshotParameters();\n\t\t\tspp.setFill(Color.WHITE);\n\t\t\tdragboard.setDragView(sp.snapshot(spp, null), event.getX(), event.getY());\n\t\t\tdraggingTab.set(sp);\n\t\t\tevent.consume();\n\t\t});\n\t\tsp.setOnDragDropped(event -> {\n\n\t\t\tDragboard db = event.getDragboard();\n\t\t\tboolean success = false;\n\t\t\tif (db.hasString()) {\n\t\t\t\tVBox parent = (VBox) sp.getParent();\n\t\t\t\tPlaceofInterestItem source = (PlaceofInterestItem) event.getGestureSource();\n\t\t\t\tint sourceIndex = parent.getChildren().indexOf(source);\n\t\t\t\tint targetIndex = parent.getChildren().indexOf(sp);\n\t\t\t\tList<Node> nodes = new ArrayList<Node>(parent.getChildren());\n\t\t\t\tif (sourceIndex < targetIndex) {\n\t\t\t\t\tCollections.rotate(nodes.subList(sourceIndex, targetIndex + 1), -1);\n\t\t\t\t} else {\n\t\t\t\t\tCollections.rotate(nodes.subList(targetIndex, sourceIndex + 1), 1);\n\t\t\t\t}\n\t\t\t\tparent.getChildren().clear();\n\t\t\t\tparent.getChildren().addAll(nodes);\n\t\t\t\tsuccess = true;\n\t\t\t}\n\t\t\tevent.setDropCompleted(success);\n\t\t\tevent.consume();\n\n\t\t});\n\n\t\tsp.setOnMouseEntered(event -> {\n\t\t\tsp.setStyle(\"-fx-background-color : #BDBBC3\");\n\t\t});\n\t\tsp.setOnMouseExited(event -> {\n\t\t\tsp.setStyle(\"-fx-background-color : #EBE8F9\");\n\t\t});\n\n\t\tPlatform.runLater(() -> {\n\t\t\tpnItems.getChildren().add(sp);\n\t\t\tnew SlideInUp(sp).play();\n\t\t});\n\n\t}",
"public GameChart placePawn(GamePlay p);",
"void add(Object element);",
"public void newElement() {\r\n }",
"public void push(T element) {\n\t\t//add the new element\n\t\telements.add(element);\n\n\t}",
"public void place(float x,float y,float z){\n\t\tthis.x=x;\r\n\t\tthis.y=y;\r\n\t\tthis.z=z;\r\n\t\tdx=x;\r\n\t\tdy=y;\r\n\t\tvz=0;\r\n\t\tvx=0;\r\n\t\tvy=0;\r\n\t}",
"private void insertPiece(Piece opponentPiece) {\r\n\t\tif (opponentPiece == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (opponentPiece.getPlayer().color == Color.WHITE) {\r\n\t\t\twhite.addElement(opponentPiece);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tblack.addElement(opponentPiece);\r\n\t\t}\r\n\t}",
"@Override\n public final Field.PlacingAfterCollision determinePlacing(\n final ElementCollisionData element1,\n final ElementCollisionData element2\n ) {\n assert element1.isColliding();\n\n final ElementCollision other = element2.getCollision();\n if ((other == Push.INSTANCE) || (other == Neutral.INSTANCE)) {\n return new Field.PlacingBoth(\n element1.getIndex(),\n element1.getElement(),\n element1.getDirection(),\n element2.getIndex(),\n element2.getElement(),\n element2.getDirection()\n );\n }\n else if (other == Eat.INSTANCE) {\n return new Field.PlacingOne(\n element2.isColliding()\n ? Field.calculateIndex(element2.getIndex(), element2.getDirection())\n : element2.getIndex(),\n element2.getElement(),\n element2.getDirection()\n );\n }\n else if (other == Eaten.INSTANCE) {\n return new Field.PlacingOne(\n Field.calculateIndex(element1.getIndex(), element1.getDirection()),\n element1.getElement(),\n element1.getDirection()\n );\n }\n else {\n throw new UnsupportedOperationException();\n }\n }",
"public void push(ShapeCommand element) {\r\n\t\tthis.items.add(element);\r\n\t}",
"public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }",
"public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }",
"private static void createPlace(Place place) {\r\n\t\tint tempInt = -1;\r\n\t\tContainerNII placeNii = new ContainerNII();\r\n\t\tGeoCoordinate position = new GeoCoordinate();\r\n\t\tMedia media = new Media();\r\n\t\t\r\n\t\tinsertNIIValues(placeNii, \"place\");\r\n\t\tplace.setNii(placeNii);\r\n\t\t\t\t\r\n\t\tif ((tempInt = insertInteger(\"place radius: \")) != -1)\r\n\t\t\t\tplace.setRadius(tempInt);\r\n\t\t\r\n\t\tinsertPosition(position);\r\n\t\tplace.setPosition(position);\r\n\t\t\r\n\t\tinsertMedia(media);\r\n\t\tplace.setMedia(media);\r\n\t}",
"void addPiece(Piece piece);",
"public void addAndReplaceElement(IsWidget widget, Element toReplace) {\n this.addAndReplaceElement(widget.asWidget(), toReplace);\n }",
"@Override\n\tpublic void placeOrder() {\n\t\t\n\t}",
"public void addCrafting(StackType option);",
"public interface Place {\n\n public boolean canMoveAbove();\n public boolean canMoveBelow();\n public boolean canMoveLeft();\n public boolean canMoveRight();\n public boolean canMoveDiagonal();\n\n public void setAbove(Place h);\n public void setBelow(Place h);\n public void setLeft(Place h);\n public void setRight(Place h);\n public void setDiagonal(Place h);\n\n public void setPixel(int x, int y);\n public int getX();\n public int getY();\n public void setLabel(String l);\n public String getLabel();\n public Place getAbove();\n public Place getBelow();\n public Place getLeft();\n public Place getRight();\n public Room getDiagonal();\n\n public void setPlayer(Player p);\n public boolean occupiedByPlayer();\n public void removePlayer();\n}",
"public void addToTile(GameEntity e) {\n\t\t\n\t\tGridTile tile = getTile(e.pos());\n\t\ttile.add(e);\n\t}",
"public interface GameEntity {\n int getSize();\n\n void update(Board board);\n\n boolean isRemoved();\n\n void setRemoved(boolean removed);\n\n Command remove();\n\n ThemeableType getType();\n\n Point getPosition();\n\n void setPosition(double x, double y);\n\n void setPosition(Point position);\n}",
"@Override\r\n\tpublic void putRobot(Board board, long x, long y, Robot robot)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\trobot.setPosition(new Position(x,y));\r\n\t\t\trobot.setBoard(board);\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Either this robot or this board is terminated; the robot cannot be placed on the board.\");\r\n\t\t}\r\n\t\tcatch(IllegalPositionException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"This is not a valid position on the board to place an element.\");\r\n\t\t}\r\n\t}",
"private void placeAsteroids() {\r\n\t\taddParticipant(new Asteroid(0, 2, EDGE_OFFSET, EDGE_OFFSET, speed, this));\r\n\t\taddParticipant(new Asteroid(1, 2, SIZE - EDGE_OFFSET, EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(2, 2, EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(3, 2, SIZE - EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t}",
"@Test\r\n void place() {\r\n Cell cell = new Cell(0,0, null);\r\n Dome dome1 = new Dome();\r\n boolean check;\r\n\r\n // place a dome on a free cell\r\n check = dome.place( cell );\r\n assertTrue( check );\r\n assertTrue( dome.position() == cell );\r\n\r\n // not place a dome on a cell with dome\r\n check = dome1.place( cell );\r\n assertTrue( !check );\r\n assertTrue( dome1.position() == null );\r\n\r\n }",
"private void placeFood(final Food food, final LevelObject object)\r\n {\r\n //place food right above container\r\n food.setY(object.getY() - food.getHeight());\r\n\r\n //no longer drop so stop velocity\r\n food.resetVelocity();\r\n\r\n //reset food parts\r\n food.resetDrop();\r\n }",
"public void define(){\n\n noOfCredits = Game.level.getCredits();\n unitsToWin = Game.level.getUnitsToWin();\n\n for (int i = 0; i <buttons.length ; i++) {\n buttons[i] = new ShopButton((Game.width/2) -\n ((noOfButtons*buttonsize)/2) -((smallSpace*\n (buttons.length-1)) /2) + ((buttonsize + smallSpace)*i),\n ((GameContainer.rowCount * GameContainer.squareSize )\n + largeSpace), buttonsize , buttonsize, i);\n }\n\n for (int i = 0; i < statsElements.length ; i++) {\n //define where the statselement should be placed.\n statsElements[i] = new ShopButton(((Game.width/2)\n - (GameContainer.columnCount*\n GameContainer.squareSize )/2 + (((GameContainer.columnCount\n *GameContainer.squareSize)/7)*3)*i ),\n (GameContainer.rowCount * GameContainer.squareSize\n ), buttonsize , buttonsize, i);\n }\n }",
"private void addToBag2(GridSquare.Type id, GridSquare.Type N, GridSquare.Type E, GridSquare.Type S, GridSquare.Type W) {\r\n\t\tbag2.add(new PieceTile(new GridSquare(id), new GridSquare[] {\r\n\t\t\t\tnew GridSquare(N),\r\n\t\t\t\tnew GridSquare(E),\r\n\t\t\t\tnew GridSquare(S),\r\n\t\t\t\tnew GridSquare(W)\r\n\t\t}));\r\n\t}",
"public void faceUp(){\r\n changePlace(hand);\r\n //do a magical work\r\n changePlace(graveYard);\r\n }",
"public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }",
"public void createAt(Element e, Coord c) {\n\t\tif(c.getX() >= 0 && c.getX() < width && c.getY() >= 0 && c.getY() < height ){\n\t\t\tmapContains.put(c, null);\n\t\t\tmapContains.put(c, e);\n\t\t\tif(e instanceof Living)\n\t\t\t\tlistLiving.add((Living) e);\n\t\t}\n\t}",
"private GameObject resolveXMLNode(Node node) {\n\t\tGameObject gO = null;\n\n\t\tif (node.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\tElement element = (Element) node;\n\n\t\t\tswitch (element.getAttribute(\"type\")) {\n\n\t\t\t\tcase \"MPOpponentObject4\":\n\t\t\t\t\tgO = new MPOpponentObject4();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MPOpponentObject3\":\n\t\t\t\t\tgO = new MPOpponentObject3();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MPPlayerObject\":\n\t\t\t\t\tgO = new MPPlayerObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MPOpponentObject\":\n\t\t\t\t\tgO = new MPOpponentObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"PlayerObject\":\n\t\t\t\t\tgO = new PlayerObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"GroundObject\":\n\t\t\t\t\tgO = new GroundObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"AIPlayerObject\":\n\t\t\t\t\tgO = new AIPlayerObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"EnemyObject\":\n\t\t\t\t\tgO = new EnemyObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"DamageBooster\":\n\t\t\t\t\tgO = new DamageBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"SpeedBooster\":\n\t\t\t\t\tgO = new SpeedBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"JumpBooster\":\n\t\t\t\t\tgO = new JumpBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"BaseBooster\":\n\t\t\t\t\tgO = new BaseBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MovingObstacle\":\n\t\t\t\t\tgO = new MovingObstacle();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"StunBooster\":\n\t\t\t\t\tgO = new StunBooster();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"MovingGroundObject\":\n\t\t\t\t\tgO = new MovingGroundObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"CoinObject\":\n\t\t\t\t\tgO = new CoinObject();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"Meteor\":\n\t\t\t\t\tgO = new Meteor();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"InvincibleWeapon\":\n\t\t\t\t\tgO = new InvincibleWeapon();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"ObstacleWeapon\":\n\t\t\t\t\tgO = new ObstacleWeapon();\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"KnockbackBooster\":\n\t\t\t\t\tgO = new KnockbackBooster();\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tif (gO != null) {\n\t\t\t\tNodeList components = element.getElementsByTagName(\"Component\");\n\t\t\t\tfor (int i = 0; i < components.getLength(); i++) {\n\t\t\t\t\tElement component = (Element) components.item(i);\n\t\t\t\t\tgO.GetComponent(component.getAttribute(\"type\")).ResolveXML(component);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn gO;\n\t}",
"protected abstract M createNewElement();",
"private void placePlayerShip(int x, int y) {\n\t\tif (shipsToPlace == 3) {\n\t\t\tlongShipCoords = new int[2];\n\t\t\tlongShipCoords[0] = x;\n\t\t\tlongShipCoords[1] = y;\n\n\t\t\t// creates long ship at x,y on egrid\n\t\t\tfor (int i = 0; i < 5; i++)\n\t\t\t\tegrid[x + i][y] = 1;\n\n\t\t\t// makes ship tiles blue on enemy's board\n\t\t\tfor (int counter = 0; counter < 5; counter++)\n\t\t\t\tenemyBoard[x + counter][y].setIcon(createImageIcon(\"tileship.jpg\"));\n\n\t\t}\n\n\t\telse if (shipsToPlace == 2) {\n\t\t\t// create medium ship at x,y on egrid\n\n\t\t\tegrid[x][y] = 1;\n\t\t\tegrid[x][y + 1] = 1;\n\t\t\tegrid[x][y + 2] = 1;\n\n\t\t\t// make ship tiles blue on enemy's board\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tileship.jpg\"));\n\t\t\tenemyBoard[x][y + 1].setIcon(createImageIcon(\"tileship.jpg\"));\n\t\t\tenemyBoard[x][y + 2].setIcon(createImageIcon(\"tileship.jpg\"));\n\t\t}\n\n\t\telse if (shipsToPlace == 1) {\n\t\t\t// create small ship at x,y on egrid\n\t\t\tegrid[x][y] = 1;\n\t\t\tegrid[x][y + 1] = 1;\n\n\t\t\t// make ship tiles blue on enemy's board\n\t\t\tenemyBoard[x][y].setIcon(createImageIcon(\"tileship.jpg\"));\n\t\t\tenemyBoard[x][y + 1].setIcon(createImageIcon(\"tileship.jpg\"));\n\n\t\t\tstatus.setText(\" Click to attack\");\n\t\t}\n\t\tshipsToPlace--;\n\t\tenableAllTiles();\n\t\tdisableRestrictedTiles(x, y);\n\t}",
"public void addElement(Object obj);",
"public void newElement() {\n Location = null;\n Name = null;\n MyFont = FontList.FONT_LABEL;\n }",
"@Override\n\tpublic void add(Game game) {\n\t\t\n\t}"
] | [
"0.63700414",
"0.6135403",
"0.5992532",
"0.59165514",
"0.5877243",
"0.58639795",
"0.58341867",
"0.5820387",
"0.5814763",
"0.57732064",
"0.576538",
"0.5763493",
"0.57489234",
"0.5742881",
"0.5696539",
"0.5679356",
"0.5637803",
"0.5539662",
"0.5526633",
"0.54990506",
"0.54872304",
"0.5479503",
"0.5465386",
"0.546391",
"0.5463243",
"0.5453182",
"0.54249424",
"0.54199564",
"0.5410493",
"0.5403423",
"0.53728944",
"0.5364409",
"0.5354017",
"0.5350433",
"0.5350004",
"0.533564",
"0.53343403",
"0.5330107",
"0.53212523",
"0.5318518",
"0.5316182",
"0.531574",
"0.53107077",
"0.53056127",
"0.5304752",
"0.52996063",
"0.52915233",
"0.5289257",
"0.52783245",
"0.52557904",
"0.5255238",
"0.52519476",
"0.5235119",
"0.5233947",
"0.52145666",
"0.5206667",
"0.52043444",
"0.5203983",
"0.52016324",
"0.518246",
"0.5171554",
"0.5165378",
"0.5164409",
"0.5164185",
"0.5159166",
"0.51467586",
"0.5144401",
"0.5141943",
"0.5141253",
"0.5140161",
"0.513696",
"0.51152444",
"0.5114085",
"0.51003647",
"0.5096447",
"0.5089586",
"0.5080435",
"0.50777245",
"0.5076699",
"0.5075886",
"0.50725627",
"0.5058546",
"0.50544804",
"0.50507486",
"0.5047482",
"0.5041893",
"0.5034622",
"0.50341797",
"0.502466",
"0.50205237",
"0.50190806",
"0.50117433",
"0.501057",
"0.5004036",
"0.5002222",
"0.49981534",
"0.49971175",
"0.49913216",
"0.49889174",
"0.4988675"
] | 0.6654218 | 0 |
Add element of given name | void addElementToInventory(String elementName); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addElement(String name, Element element) {\n if (elementMap.containsKey(name)) {\n elementMap.get(name).add(element);\n } else {\n List<Element> newList = new ArrayList<Element>();\n newList.add(element);\n elementMap.put(name, newList);\n }\n }",
"public Element addChild(String name) {\n return new Element((org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name)));\n }",
"public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name) { throw new RuntimeException(\"Stub!\"); }",
"void add(Object element);",
"void addElement(FormElement elt);",
"@Override\r\n\tpublic Element addEventElement(String name) {\r\n\t\treturn this.addEventElementImpl(name, \"\", true);\r\n\t}",
"public abstract void add(String element) throws RemoteException;",
"public synchronized void addElement(Element element) throws DTDException {\r\n\r\n String name = element.getName();\r\n\r\n if (name == null) {\r\n String err = \"An element declaration must contain a name.\";\r\n throw new DTDException(err);\r\n }\r\n if (elements.containsKey(name)) {\r\n String err = \"An element declaration already exists with the given name: \";\r\n throw new DTDException(err + name);\r\n }\r\n\r\n elements.put(name,element);\r\n\r\n }",
"Form addElement(Element element);",
"void addTag(String name, String value);",
"public void addElement(Object obj);",
"public PathElementIF createElement(String name);",
"public void addElement(String s) throws DuplicateElementException {\n\tif (elements.contains(s)) {\n\t throw new DuplicateElementException(\"The Element \"+s+\" is already in the Alias \"+this.toString());\n\t}\n\telements.add(s);\n }",
"void add(int index, Object element);",
"void add(String name, int value);",
"public void addElement(Expression element){\n\t\telements.add(element);\n\t}",
"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 void add( Name name, T n ) throws ParseException\n\t{\n\t\tcheck( name );\n\t\tmap.put( name.name, n );\n\t\tlist.add( n );\n\t}",
"public void add(String element) {\n\t\tslist.add(element);\n\t}",
"public android.renderscript.Element.Builder add(android.renderscript.Element element, java.lang.String name, int arraySize) { throw new RuntimeException(\"Stub!\"); }",
"@Override\n public abstract void addToXmlElement(Element element);",
"public Element addChild(String name, String value) {\n org.w3c.dom.Element child = (org.w3c.dom.Element)element.appendChild(element.getOwnerDocument().createElement(name));\n child.appendChild(element.getOwnerDocument().createTextNode(value));\n\n return new Element(child);\n }",
"public void addElement(int index, TLProperty element);",
"public void add(Declarator element) throws ChameleonProgrammerException;",
"public void add(E element) {\n\t\t// your code here\n\t}",
"public void addWidget(String name,Widget element){\n contentForm.addWidget(name, element);\r\n }",
"Builder addName(String value);",
"public void add(X elem);",
"private void addElement(PEElement element) {\n\t\tif (currentGroups.size() > 0) {\n\t\t\tcurrentGroups.peek().getElements().add(element);\n\t\t} else if (currentLabeledNodeType != null) {\n\t\t\tcurrentLabeledNodeType.getElements().add(element);\n\t\t} else {\n\t\t\tcurrentNodeType.getElements().add(element);\n\t\t}\n\t}",
"public void addNames() {}",
"public void addNames() {}",
"public static void insertSingleD(String name, ArrayList<String> element){\n\t\tfor(int i = 0; i<tables.size();i++){\r\n\t\t\tif(tables.get(i).title.equals(name)){\r\n\t\t\t\ttables.get(i).addElement(element);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"Error: table does not exist\");\r\n\t}",
"private final void createAndAddNode(String name) {\n\t}",
"@Test\n\tpublic void addElement() {\n\t\tXMLTagParser.addNewElement(\"Person\");\n\t\tassertEquals(XMLTagParser.containsElement(\"Person\"), true);\n\t}",
"public void addList(String name){\n }",
"public boolean add(Object element);",
"public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}",
"public void addElement(TLProperty element);",
"public com.walgreens.rxit.ch.cda.PN addNewName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.PN target = null;\n target = (com.walgreens.rxit.ch.cda.PN)get_store().add_element_user(NAME$8);\n return target;\n }\n }",
"public void add(T element);",
"public void add(T element);",
"public void add (T element);",
"public void add(String value);",
"ClassPath add(ClassPathElement element);",
"void addTag(String tag){tags.add(tag);}",
"public void insertIntoMap(String key, String name) {\n\t\tif (mapNames.containsKey(key)) {\n\t\t\t// Add new name onto the end of the existing ArrayList.\n\t\t\tmapNames.get(key).add(name);\n\t\t} else {\n\n\t\t\t// Create new ArrayList with the unparsed name as the value\n\t\t\tArrayList<String> arrName = new ArrayList<String>();\n\t\t\tarrName.add(name);\n\t\t\tmapNames.put(key, arrName);\n\t\t}\n\t}",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"public void add(int index, E element);",
"void add(ByteString element);",
"public void add(String name, T val) {\n\t\tnvPairs.add(name);\n\t\tnvPairs.add(val);\n\t}",
"public void add(String name)\n/* 15: */ {\n/* 16:14 */ this.members.add(name);\n/* 17: */ }",
"public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}",
"public abstract void add(T element);",
"public abstract void add(T element);",
"void add(T element);",
"void add(T element);",
"public void addQueryElement(QueryElement element);",
"public void addName(NameRecord record)\n\t{\n\t\t// add code to add record to the graphArray \n\t\t// and call repaint() to update the graph\n\t}",
"public void add(int element);",
"void add(int index, T element);",
"void add(int index, T element);",
"private static void addItem( String name, Integer number ) {\n\t\tItem item = container.addItem( itemId );\n\t\tsetValues( name, number, item );\n\t}",
"public void add(String nome, Object obj);",
"Builder addName(Text value);",
"@Override\n\tpublic AddAdditionalNameElement Elements() {\n\t\treturn new AddAdditionalNameElement(driver);\n\t}",
"public void addToRatebooks(entity.ImpactTestingRateBook element);",
"public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }",
"public AntObject add(String name)\n\t\t\tthrows TablesawException\n\t\t{\n\t\tAntObject ret = new AntObject(name);\n\t\tret.setAntProject(m_project);\n\t\t\n\t\ttry\n\t\t\t{\n\t\t\tIntrospectionHelper.Creator creator = m_intHelper.getElementCreator(\n\t\t\t\t\tm_project, \"\", m_antObject, name, null);\n\t\t\t\t\t\n\t\t\tret.setAntObject(creator.create());\n\t\t\tcreator.store();\n\t\t\tret.init();\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting element '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\t\n\t\treturn (ret);\n\t\t}",
"void addNode(String node);",
"public abstract void add(T element, int index);",
"void add(String value);",
"public void addAfter(T existing, T element) throws ElementNotFoundException;",
"org.hl7.fhir.CodeableConcept addNewName();",
"public void add(int index, Object element) {\r\n addBefore(element, (index == size ? header : entry(index)));\r\n }",
"public void addToName_L10N_ARRAY(entity.APDExposure_Name_L10N element);",
"public abstract boolean addDataTo(Element element);",
"@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }",
"public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }",
"public void addElement(final FeatureElement newElement)\n\t{\n\t\tfeatureElements.add(newElement);\n\t}",
"public AntObject add(String name, Object value)\n\t\t\tthrows TablesawException\n\t\t{\n\t\tAntObject ret = new AntObject(name);\n\t\tret.setAntProject(m_project);\n\t\tret.setAntObject(value);\n\t\tret.init();\n\t\ttry\n\t\t\t{\n\t\t\tMethod m = m_intHelper.getElementMethod(name);\n\t\t\t//System.out.println(m.toString());\n\t\t\tm.invoke(m_antObject, value);\n\t\t\t}\n\t\tcatch (IllegalArgumentException iae)\n\t\t\t{\n\t\t\tthrow new TablesawException(iae);\n\t\t\t}\n\t\tcatch (Exception e)\n\t\t\t{\n\t\t\tthrow new TablesawException(\"Error setting element '\"+name+\"' on '\"+m_elementName+\"'\", e);\n\t\t\t}\n\t\t\t\n\t\treturn (ret);\n\t\t}",
"public void addUsedPermission(final String name) {\n // If we don't find existing elements, just add at the start (Android\n // docs list uses-permission first). Also use a 4-space indent as a\n // default when we can't do better.\n int insertIndex = 0;\n String indentString = \"\\n \";\n\n final List<Element> existingElements = manifestElement.getChildren(ELEMENT_USES_PERMISSION);\n if (!existingElements.isEmpty()) {\n final Element lastExistingElement = existingElements.get(existingElements.size() - 1);\n insertIndex = manifestElement.nodeIndexOf(lastExistingElement) + 1;\n\n final Text prefix = findPrefix(lastExistingElement);\n if (prefix != null) {\n indentString = prefix.getText();\n // Note a newline must exist for us to have a prefix.\n final int lastNewlineIndex = indentString.lastIndexOf('\\n');\n indentString = indentString.substring(lastNewlineIndex);\n }\n }\n\n final Element elementToAdd = new Element(ELEMENT_USES_PERMISSION);\n elementToAdd.addAttribute(new Attribute(ATTRIBUTE_NAME, name));\n manifestElement.addNodes(insertIndex, new Text(indentString), elementToAdd);\n }",
"public void addElement(int x, int y, BoxContainer element){\n\t\t\tArrayList<Integer> coordinates = new ArrayList<Integer>();\n\t\t\tcoordinates.add(x);\n\t\t\tcoordinates.add(y);\n\t\t\tmap.put(coordinates, element);\n\t\t}",
"public void add(String nameItem)\n\t{\n\t\tmenu.add(nameItem);\n\t}",
"public void add(T element, int pos);",
"public org.hl7.fhir.String addNewName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().add_element_user(NAME$8);\n return target;\n }\n }",
"private void addSubnodes( Element root, String node_name ) {\r\n\t\t// element elements\r\n\t\tElement element = doc.createElement( node_name );\r\n\t\troot.appendChild( element );\r\n\r\n\t\t// set attributes to element\r\n\t\twhile ( Inputs.confirm( \"¿Añadir un atributo?\" )) {\r\n\r\n\t\t\taddAttr( element );\r\n\t\t}\r\n\r\n\r\n\t\tint num = Inputs.getInt( \"¿Cuántos sub-elementos tiene <\" + node_name + \">?\" );\r\n\r\n\t\tfor ( int i = 0; i < num; i++ ) {\r\n\r\n\t\t\taddSubnodes( element, ( i + 1 ));\r\n\t\t}\r\n\t}",
"void addElement(String newSubResourceName, ResourceBase newSubResource);",
"public void add(int index, String value){\n\tadd(value);\n }",
"public void setElementName(SC elementName) {\n if(elementName instanceof org.hl7.hibernate.ClonableCollection)\n elementName = ((org.hl7.hibernate.ClonableCollection<SC>) elementName).cloneHibernateCollectionIfNecessary();\n _elementName = elementName;\n }",
"public org.hl7.fhir.String addNewName()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.String target = null;\n target = (org.hl7.fhir.String)get_store().add_element_user(NAME$0);\n return target;\n }\n }",
"protected static void addElement( Document doc, Element element, StringNode node )\r\n\t{\r\n\t\tSet<String>keys = node.attributeKeys();\r\n\t\tfor( String key: keys )\r\n\t\t\telement.setAttribute( key, node.getAttributeValue( key ));\r\n\t\tIterator<StringNode> iterator = node.iterator();\r\n\t\tElement childElement;\r\n\t\tStringNode child;\r\n\t\twhile( iterator.hasNext() ){\r\n\t\t\tchild = iterator.next();\r\n\t\t\tchildElement = doc.createElement( child.getName() );\r\n\t\t\telement.appendChild( childElement );\r\n\t\t\taddElement( doc, childElement, child );\r\n\t\t}\r\n\t}",
"private void addProvider(\n String elementName,\n String namespace,\n Class<?> provider)\n {\n // Attempt to load the provider class and then create\n // a new instance if it's an IQProvider. Otherwise, if it's\n // an IQ class, add the class object itself, then we'll use\n // reflection later to create instances of the class.\n try\n {\n // Add the provider to the map.\n if (IQProvider.class.isAssignableFrom(provider))\n {\n addIQProvider(elementName, namespace, provider.newInstance());\n }\n else if (IQ.class.isAssignableFrom(provider))\n {\n addIQProvider(elementName, namespace, provider);\n }\n }\n catch (Throwable t)\n {\n logger.error(\"Error adding iq provider.\", t);\n }\n }",
"public void newElement() {\r\n }",
"void addModelElement(EObject modelElement);",
"void add(byte[] element);",
"public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }",
"public Element addElement(Element rootElement,String type,Document document){\n\t\t// define school elements \n\t\tElement node = document.createElement(type); \n\t\trootElement.appendChild(node);\n\t\treturn node;\n\t}",
"public void addExisting(SelectableGraphElement element)\n {\n elements.add(element);\n }",
"public void addElement(ErStackTraceElement element){\n\n if (className == null){\n\n declaringClass = element.getDeclaringClass();\n if (declaringClass.contains(\".\")){\n className = declaringClass.substring(declaringClass.lastIndexOf(\".\")+1);\n packageName = declaringClass.substring(0,declaringClass.lastIndexOf(\".\"));\n }\n else{\n className = declaringClass;\n packageName = \"\";\n }\n\n fileName = element.getFileName();\n\n if (checkBasePackages(declaringClass)){\n isBasePackage = true;\n }\n }\n\n stackTraceElements.add(element);\n }",
"private void add() {\n\n\t}"
] | [
"0.7846013",
"0.73158664",
"0.7069774",
"0.69692254",
"0.6934679",
"0.68558425",
"0.6747492",
"0.6740377",
"0.67105186",
"0.66862357",
"0.66695493",
"0.66605824",
"0.66445124",
"0.65345997",
"0.65163755",
"0.6505447",
"0.6504156",
"0.6460129",
"0.6422429",
"0.64013684",
"0.63608897",
"0.6357759",
"0.63502616",
"0.6347162",
"0.6307391",
"0.6305914",
"0.6288706",
"0.6284487",
"0.6284311",
"0.6270797",
"0.6270797",
"0.6264985",
"0.6253805",
"0.6251037",
"0.6239892",
"0.6229582",
"0.62284756",
"0.62098324",
"0.6185824",
"0.6171481",
"0.6171481",
"0.6167403",
"0.61666274",
"0.6151487",
"0.61409587",
"0.61384887",
"0.61347795",
"0.61191577",
"0.6113741",
"0.61088586",
"0.61048245",
"0.609953",
"0.6094198",
"0.6094198",
"0.60771316",
"0.60771316",
"0.6068057",
"0.6062816",
"0.60536987",
"0.60458094",
"0.60458094",
"0.6043453",
"0.6041587",
"0.60163516",
"0.6003203",
"0.5999365",
"0.5993922",
"0.5973914",
"0.5964296",
"0.59618646",
"0.595342",
"0.59309095",
"0.5923827",
"0.592282",
"0.59175444",
"0.5898254",
"0.58877313",
"0.5859415",
"0.5858771",
"0.5854718",
"0.5853268",
"0.5846278",
"0.5837053",
"0.5836906",
"0.58299637",
"0.58235466",
"0.5822712",
"0.58043355",
"0.57977706",
"0.5793286",
"0.5786559",
"0.5785271",
"0.57819843",
"0.57787937",
"0.5775725",
"0.5758953",
"0.57538575",
"0.57537186",
"0.57518846",
"0.5746378"
] | 0.73785096 | 1 |
/ Place a game element of previously defined type within the game which follows a path defined in the authoring environment as it moves. | int placePathFollowingElement(String elementName, PathList pathList); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int placeElement(String elementName, Point2D startCoordinates);",
"public void place(Position position) { this.position = position; }",
"public void placePiece(Piece newPiece){pieceAtVertex = newPiece;}",
"public void placePlayer(Person user) {\r\n\t\trooms[user.getY()][user.getX()].addOccupant(user);\r\n\t\tuser.setRoom(getRoom(user.getX(), user.getY()));\r\n\t\tif (user instanceof Player) {\r\n\t\t\tthis.setPlayer((Player) user);\r\n\t\t} else if (user instanceof Enemy) {\r\n\t\t\tthis.enemies.add((Enemy) user);\r\n\t\t}\r\n\t\tuser.setFloor(this);\r\n\t}",
"private void placePiece() {\r\n pieces[numPieces] = getRandomPoint();\r\n Game.movePiece(new PositionData(-1,-1,Constants.PLAYER_A_ID), pieces[numPieces]);\r\n numPieces++;\r\n }",
"void moveElement(int elementId, double xCoordinate, double yCoordinate);",
"void doPlaceObject() {\r\n\t\tif (renderer.surface == null) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tif (currentBaseTile != null) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tdeleteEntitiesOf(renderer.surface.basemap, renderer.placementRectangle, false);\r\n\t\t\tSurfaceFeature sf = new SurfaceFeature();\r\n\t\t\tsf.id = currentBaseTile.id;\r\n\t\t\tsf.type = currentBaseTile.type;\r\n\t\t\tsf.tile = currentBaseTile.tile;\r\n\t\t\tsf.location = Location.of(renderer.placementRectangle.x, renderer.placementRectangle.y);\r\n\t\t\trenderer.surface.features.add(sf);\r\n\t\t\t\r\n\t\t\tplaceTile(currentBaseTile.tile, renderer.placementRectangle.x, renderer.placementRectangle.y, SurfaceEntityType.BASE, null);\r\n\t\t\t\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trenderer.repaint();\r\n\t\t} else\r\n\t\tif (currentBuildingType != null && renderer.canPlaceBuilding(renderer.placementRectangle) && renderer.placementRectangle.width > 0) {\r\n\t\t\tUndoableMapEdit undo = new UndoableMapEdit(renderer.surface);\r\n\t\t\tBuilding bld = new Building(currentBuildingType, currentBuildingRace);\r\n\t\t\tbld.makeFullyBuilt();\r\n\t\t\tbld.location = Location.of(renderer.placementRectangle.x + 1, renderer.placementRectangle.y - 1); // leave room for the roads!\r\n\t\t\trenderer.surface.buildings.add(bld);\r\n\t\t\t\r\n\t\t\tplaceTile(bld.tileset.normal, bld.location.x, bld.location.y, SurfaceEntityType.BUILDING, bld);\r\n\t\t\tplaceRoads(currentBuildingRace);\r\n\t\t\t\r\n\t\t\tundo.setAfter();\r\n\t\t\taddUndo(undo);\r\n\t\t\trenderer.repaint();\r\n\t\t}\r\n\t}",
"void placePiece(Piece piece, Position position) {\n positionToPieceMap.put(position, piece);\n }",
"private void placeShip() {\r\n\t\t// Expire the ship ship\r\n\t\tParticipant.expire(ship);\r\n\r\n\t\tclipShip.stop();\r\n\r\n\t\t// Create a new ship\r\n\t\tship = new Ship(SIZE / 2, SIZE / 2, -Math.PI / 2, this);\r\n\t\taddParticipant(ship);\r\n\t\tdisplay.setLegend(\"\");\r\n\t}",
"public void moveUp(TLProperty element);",
"private void placeRobot(List<String> args) {\n int x;\n int y;\n Position.Direction direction;\n\n try {\n x = Integer.parseInt(args.get(0));\n y = Integer.parseInt(args.get(1));\n direction = Position.Direction.valueOf(args.get(2));\n } catch (NumberFormatException e) {\n System.out.println(\"x and y accept only numbers\");\n return;\n } catch (IllegalArgumentException e) {\n System.out.println(args.get(2) + \" looks an unsupported direction\");\n return;\n }\n\n if(x >= lowerBound.getX() && y >= lowerBound.getY() &&\n x <= upperBound.getX() && y <= upperBound.getY() ) {\n currentPosition.setX(x);\n currentPosition.setY(y);\n currentPosition.setDirection(direction);\n } else {\n System.out.println(\"Cannot position the robot outside the table\");\n }\n }",
"public static Action place(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation()) {\n if(!a.isFacing(Actor.class)) {\n if(a.isHolding(e)) {\n try {\n ((Placeable) e.newInstance()).place(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n a.removeItem(e);\n } catch(InstantiationException e) {\n e.printStackTrace();\n } catch(IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n\n }\n\n }\n }\n\n @Override\n public int getCost() {\n return 0;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Place(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }",
"protected abstract Vector3f place (Vector3f position);",
"private void placeAsteroids() {\r\n\t\taddParticipant(new Asteroid(0, 2, EDGE_OFFSET, EDGE_OFFSET, speed, this));\r\n\t\taddParticipant(new Asteroid(1, 2, SIZE - EDGE_OFFSET, EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(2, 2, EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(3, 2, SIZE - EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t}",
"void placeTower();",
"@Override\n\tpublic void placeOrder() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\tmove();\n\t\tplace();\n\t}",
"public void placePiece(String pos, Dominos piece){\n Dominos hold;\n if(pos.equals(\"left\")){\n hold = this.getFirst();\n\n if(piece.getLeftSide() == 0){\n piece.flip();\n this.addFirst(piece);\n return;\n }\n if(piece.getRightSide() == 0){\n this.addFirst(piece);\n return;\n }\n\n if(hold.getLeftSide() != piece.getRightSide()\n && hold.getLeftSide() != 0){\n piece.flip();\n }\n this.addFirst(piece);\n }else{\n hold = this.getLast();\n if(piece.getRightSide() == 0){\n piece.flip();\n this.addLast(piece);\n return;\n }\n if(piece.getLeftSide() == 0){\n this.addLast(piece);\n return;\n }\n if(hold.getRightSide() != piece.getLeftSide()\n && hold.getRightSide() !=0){\n piece.flip();\n }\n this.addLast(piece);\n }\n }",
"void place_character(Character character, Town town) throws IllegalStateException;",
"@Override\r\n\tpublic void placeRoad(EdgeLocation edgeLoc) {\n\t\t\r\n\t}",
"public void chasePlayer() {\n refreshObstructionMatrix();\n Coordinate currPosition = new Coordinate(getX(), getY());\n Player player = this.dungeon.getPlayer();\n Coordinate playerPosition = new Coordinate(player.getX(), player.getY());\n\n if (currPosition.equals(playerPosition)) {\n // Debug.printC(\"Enemy has reached the player!\", Debug.RED);\n player.useItem(this);\n } else {\n this.pathToDest = pathFinder.getPathToDest(currPosition, playerPosition);\n if (!this.pathToDest.empty()) {\n Coordinate nextPosition = this.pathToDest.pop();\n // this.setCoordinate(nextPosition);\n if (getX() + 1 == nextPosition.x) {\n moveRight();\n } else if (getX() - 1 == nextPosition.x) {\n moveLeft();\n } else if (getY() + 1 == nextPosition.y) {\n moveDown();\n } else if (getY() - 1 == nextPosition.y) {\n moveUp();\n }\n }\n }\n }",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}",
"public void place(){\n\t\tplace((float) Math.floor(Main.mouseSelector.x)+0.5f,(float) Math.floor(Main.mouseSelector.y)+0.5f);\r\n\t}",
"void spawnEntityAt(String typeName, int x, int y);",
"public void act() \n {\n move(-16);\n \n \n if (isAtEdge())\n {\n setLocation(700,getY());\n }\n \n if (isTouching(Shots.class))\n {\n getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400));\n }\n \n }",
"public void move()\n\t{\n\t\tVector v = ship.v;\n\t\tb = b.getLocation().add(v).getBlock();\n\t\tif(triangle != null) triangle.move();\n\t\tif(rear != null) rear.move();\n\t\tif(foreAndAft != null) foreAndAft.move();\n\t\tif(sails != null) for(int i = 0; i < sails.size(); i++)\n\t\t{\n\t\t\tSail sail = sails.get(i);\n\t\t\tsail.move();\n\t\t}\n\t}",
"public void push(ShapeCommand element) {\r\n\t\tthis.items.add(element);\r\n\t}",
"public void placePiece(Piece piece, Position position) {\n\t\tif(thereIsAPiece(position)) {\n\t\t\tthrow new BoardException(\"There is already a piece on position \" + position);\n\t\t}\n\t\tpieces[position.getRow()][position.getColumn()] = piece;\n\t\tpiece.position = position;\n\t}",
"public void place() {\n\t\tprocessing.image(Image, x, y);\n\t}",
"boolean insertRobot(Position pos, Robot rob);",
"public void move(){\n\t\t\n\t}",
"public void execute() {\r\n\t\tif(policy.moveByPolicy(level2d))\r\n\t\titem.move_up(level2d);\r\n\t\telse\r\n\t\t\tSystem.out.println(\"cant do the action\");\r\n\t\t\r\n\t}",
"public void faceUp(){\r\n changePlace(hand);\r\n //do a magical work\r\n changePlace(graveYard);\r\n }",
"public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }",
"@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}",
"public void moveRobber(HexLocation loc) {\n\n\t}",
"public void move() {\n\r\n\t}",
"public void move(String direction) {\n \n }",
"public void place(Object animal, int row, int column) {\n place(animal, new Position(row, column));\n }",
"@Override\n\tpublic Position insertAfter(Position p, Object element) throws InvalidPositionException {\n\t\treturn null;\n\t}",
"void movePiece() {\n\n }",
"public void moveToElement(By locator) {\n waitForVisibilityOf(locator);\n Actions action = new Actions(driver);\n action.moveToElement(find(locator)).build().perform();\n }",
"public interface Place {\n\n public boolean canMoveAbove();\n public boolean canMoveBelow();\n public boolean canMoveLeft();\n public boolean canMoveRight();\n public boolean canMoveDiagonal();\n\n public void setAbove(Place h);\n public void setBelow(Place h);\n public void setLeft(Place h);\n public void setRight(Place h);\n public void setDiagonal(Place h);\n\n public void setPixel(int x, int y);\n public int getX();\n public int getY();\n public void setLabel(String l);\n public String getLabel();\n public Place getAbove();\n public Place getBelow();\n public Place getLeft();\n public Place getRight();\n public Room getDiagonal();\n\n public void setPlayer(Player p);\n public boolean occupiedByPlayer();\n public void removePlayer();\n}",
"public Position insertDirectedEdge(Position vp, Position wp, Object o) throws InvalidPositionException;",
"public Position insertEdge(Position vp,Position wp, Object o) throws InvalidPositionException;",
"public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}",
"public void placeMandatoryObjects()\r\n {\r\n Random rng = new Random();\r\n //Adds an endgame chest somewhere (NOT in spawn)\r\n Room tempRoom = getRoom(rng.nextInt(dungeonWidth - 1) +1, rng.nextInt(dungeonHeight - 1) +1);\r\n tempRoom.addObject(new RoomObject(\"Endgame Chest\", \"overflowing with coolness!\"));\r\n if (tempRoom.getMonster() != null)\r\n {\r\n tempRoom.removeMonster();\r\n }\r\n tempRoom.addMonster(new Monster(\"Pelo Den Stygge\", \"FINAL BOSS\", 220, 220, 12));\r\n //Adds a merchant to the spawn room\r\n getRoom(0,0).addObject(new RoomObject(\"Merchant\", \"like a nice fella with a lot of goods (type \\\"wares\\\" to see his goods)\"));\r\n }",
"public void move(String direction);",
"public void moveActor();",
"public void move();",
"public void move();",
"public void placeOrder(TradeOrder order)\r\n {\r\n brokerage.placeOrder(order);\r\n }",
"public void place(int nextX, int nextY, String nextDirection) {\n // checks if the new position is valid.\n if (grid == null || grid.isOutside(nextX, nextY)) {\n return;\n }\n int nextDir = Arrays.asList(DIRECTIONS).indexOf(nextDirection.toUpperCase());\n if (nextDir < 0) {\n return;\n }\n currX = nextX;\n currY = nextY;\n currDirection = nextDir;\n canMove = true;\n }",
"public void placeTile(Tile t){\n\t\t//System.out.println(t.toString() + \" was placed\");\n\t\toccupied = true;\n\t\tcurrentTile = t;\n\t}",
"public void place(Object animal, Position position) {\n field[position.getRow()][position.getColumn()] = animal;\n }",
"private static void moveToAttack(MapLocation destination) throws GameActionException {\n BulletInfo[] bullets = rc.senseNearbyBullets();\n RobotInfo[] enemies = rc.senseNearbyRobots(-1, them);\n\n if (enemies.length != 0) {\n int index = priority(enemies);\n if (index != -1) {\n target = enemies[priority(enemies)];\n attack(target);\n }\n }\n else {\n move(bullets, enemies, destination);\n }\n }",
"private void makeMove() {\r\n //if not all pieces placed, place a new piece\r\n if(numPieces < 3) {\r\n if(pieces == null)\r\n pieces = new PositionData[Constants.NUM_PIECES];\r\n placePiece();\r\n return;\r\n }\r\n //move a random piece to a random location\r\n int pieceNumber = getRandomPiece();\r\n PositionData randomPoint = getRandomPoint();\r\n //move the piece\r\n Game.movePiece(pieces[pieceNumber], randomPoint);\r\n }",
"void makeMove(Location loc);",
"private void addAnotherElement() {\n\t\t SnakeSquare ss = sSquare.get(sSquare.size() - 1);\n\t\t double velX = ss.getDX();\n\t\t double velY = ss.getDY();\n\t\t \n\t\t double x = ss.getX();\n\t\t double y = ss.getY();\n\t\t double len = ss.getLength();\n\t\t Color c = ss.getColor();\n//\t\t double snakeSize = 10.0f;\n\t\t \n\t\t if(velX == 0 && velY == 0){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}\n\t\t if(velX == 0 && velY == 1){sSquare.add(new SnakeSquare(x, y - snakeSize, c, len));}//move down;\n\t\t if(velX == 0 && velY == -1){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}//move up;\n\t\t if(velX == 1 && velY == 0){sSquare.add(new SnakeSquare(x+ snakeSize, y, c, len));}//move right;\n\t\t if(velX == -1 && velY == 0){sSquare.add(new SnakeSquare(x - snakeSize, y, c, len));}// move left;\n\t\t\n\t}",
"public void displace(SpaceThing thing){\n\t\tdouble diffX = getX() - thing.getX();\n\t\tdouble diffY = getY() - thing.getY();\n\t\tdouble xDisplacement = (diffX > 0 ? 1 : -1);\n\t\tdouble yDisplacement = (diffY > 0 ? 1 : -1);\n\t\tVector displacement = new Vector(xDisplacement, yDisplacement);\n\t\tlocation.move(displacement);\n\t\tmoveHitBox(displacement);\n\t}",
"void placeTile(Tile tile, int x, int y, SurfaceEntityType type, Building building) {\r\n\t\tfor (int a = x; a < x + tile.width; a++) {\r\n\t\t\tfor (int b = y; b > y - tile.height; b--) {\r\n\t\t\t\tSurfaceEntity se = new SurfaceEntity();\r\n\t\t\t\tse.type = type;\r\n\t\t\t\tse.virtualRow = y - b;\r\n\t\t\t\tse.virtualColumn = a - x;\r\n\t\t\t\tse.tile = tile;\r\n\t\t\t\tse.tile.alpha = alpha;\r\n\t\t\t\tse.building = building;\r\n\t\t\t\tif (type != SurfaceEntityType.BASE) {\r\n\t\t\t\t\trenderer.surface.buildingmap.put(Location.of(a, b), se);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trenderer.surface.basemap.put(Location.of(a, b), se);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }",
"private static void assignElement(BendingPlayer bPlayer, Element e) {\n\t\tbPlayer.setElement(e);\n\t\tGeneralMethods.saveElements(bPlayer);\n\t\tBukkit.getPlayer(bPlayer.getUUID()).sendMessage(ChatColor.YELLOW + \"You have been born as \" + (e.getType() == ElementType.BENDING ? \"an \" : \"a \") + e.getColor() + e.getName() + e.getType().getBender() + ChatColor.YELLOW + \"!\");\n\t}",
"@Override\r\n\tpublic void putRobot(Board board, long x, long y, Robot robot)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\trobot.setPosition(new Position(x,y));\r\n\t\t\trobot.setBoard(board);\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Either this robot or this board is terminated; the robot cannot be placed on the board.\");\r\n\t\t}\r\n\t\tcatch(IllegalPositionException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"This is not a valid position on the board to place an element.\");\r\n\t\t}\r\n\t}",
"public void move() {\n\t\t// Override move so we don't move, then get location set by owner.\n\t}",
"public void doAddPlaceable(TreePath path) {\n \n \t\tNode node = (Node) path.getLastPathComponent();\n \t\t// load and add palceable to tree here\n \t\trepaint();\n \t}",
"@Override\n\tpublic void move(){\n\t\tSector tail = null;\n\t\tif(hit){\n\t\t\ttail = getNext();\n\t\t\tif(tail == null){\t\n\t\t\t\tselfDestruct();\n\t\t\t} else {\t\t\n\t\t\t\tsector.setInhabitant(null);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tsectors.add(sector);\n\t\tSector nextSector = quadrant.getNext(sector, velocity[0]);\t\n\t\tif(nextSector == null){\n\t\t\thit = true;\n\t\t} else {\n\t\t\tSpaceObject object = nextSector.getInhabitant();\n\t\t\tif(object != null) {\n\t\t\t\tobject.bump(this);\n\t\t\t} else {\n\t\t\t\tsetSector(nextSector); \n\t\t\t}\n\t\t} \n\t}",
"private void moveAround()\n {\n if(getY()>75)\n {\n setRotation(270);\n }\n else if(getX()<75)\n {\n setRotation(0);\n }\n else if (getX()>getWorld().getWidth()-50)\n {\n setRotation(180);\n }\n else if (isTouching(Player.class))\n {\n Actor actor = getOneIntersectingObject(Player.class);\n turnTowards(actor.getX(), actor.getY());\n turn(180);\n }\n else if(Greenfoot.getRandomNumber(100) < 3)\n {\n setRotation(Greenfoot.getRandomNumber(360));\n }\n move(1);\n }",
"public void placeWormOnAgar()\n {\n for (int x = 0; x < Agar.GRID_SIZE.width; x++)\n {\n for (int y = 0; y < Agar.GRID_SIZE.height; y++)\n {\n agar.wormCells[x][y] = SectorDisplay.EMPTY_CELL_VALUE;\n }\n }\n agar.wormCells[headSegment.x][headSegment.y] = Agar.WORM_SEGMENT_VALUE;\n for (int i = 0; i < NUM_BODY_SEGMENTS; i++)\n {\n BodySegment segment = bodySegments[i];\n agar.wormCells[segment.x][segment.y] = Agar.WORM_SEGMENT_VALUE;\n }\n }",
"void place(Animal animal);",
"public void updateGameelementPosition(int difX, int difY) {\n\t\tif (this.getNext() != null) {\n\t\t\tthis.getNext().updateOtherGameelementPosition(difX, difY);\n\t\t}\n\n\t\tif (this.getFamily() != null) {\n\t\t\tthis.getFamily().updateOtherGameelementPosition(difX, difY);\n\t\t}\n\n\t\t// Move\n\t\tVector2 actPosition = this.getGameElement().getPosition();\n\t\tactPosition.x += (Constants.GAMEELEMENT_WIDTH * difX);\n\t\tactPosition.y += (Constants.GAMEELEMENT_WIDTH * difY);\n\t\t// Start next evaluationStep\n\n\t\tEvaluationExecutioner.moveAnimation(actPosition, this.getGameElement(),\n\t\t\t\ttrue);\n\t}",
"private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }",
"public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }",
"void makePlacement(String placement) {\n\n // Task8 Do not clear the textField in order to place pieces step by step.\n // board.getChildren().clear();\n if (!StepsGame.isPlacementWellFormed(placement)) {\n throw new IllegalArgumentException(\"Hide board incorrect length: \" + placement);\n }\n Rectangle r = new Rectangle(BOARD_X, BOARD_Y, XSIDE*SQUARE_SIZE, YSIDE*SQUARE_SIZE);\n r.setFill(SUBBOARD_FILL);\n r.setStroke(SUBBOARD_STROKE);\n board.getChildren().add(r);\n String alphabet = \"ABCDEFGHIJKLMNOPQRSTUVWXYabcdefghijklmnopqrstuvwxy\";\n for (int i = 0; i<50; i++){\n double x = 1.0/3;\n Text t = new Text(BOARD_X + SQUARE_SIZE/3 + (i %XSIDE) * SQUARE_SIZE - 5, BOARD_Y + 2*SQUARE_SIZE/3 +(i / XSIDE) * SQUARE_SIZE + 10, alphabet.substring(i, i+1));\n t.setFont(new Font(20));\n t.setFill(Color.GREY);\n board.getChildren().add(t);\n }\n // Making board and adding the letters.\n\n\n String[] onepiece = placement.split(\"(?<=\\\\G...)\");\n String[] shape = new String[onepiece.length];\n String[] location = new String[onepiece.length];\n char[] loc = new char[onepiece.length];\n int[] lct = new int[onepiece.length];\n for (int i = 0; i<onepiece.length; i++){\n shape[i] = onepiece[i].substring(0, 2);\n location[i] = onepiece[i].substring(2, 3);\n loc[i] = location[i].charAt(0);\n if(loc[i] >= 'A' && loc[i] <= 'Y'){\n lct[i] = (int)loc[i] - 65;\n }else if(loc[i] >= 'a' && loc[i] <= 'y'){\n lct[i] = (int)loc[i] - 72;\n }\n //Split String into 3 letters and NUMBER the positions A-y into 0-49.\n\n\n String tile = shape[i];\n if (tile != \"\")\n board.getChildren().add(new Square(tile, lct[i]-11));\n }\n // Adding shapes\n board.toBack();\n\n // FIXME Task 4: implement the simple placement viewer\n }",
"public void move() {\n\n }",
"public Place goNorth();",
"public void act(){\n // Removing object, if out of the simulated zone\n if (atWorldEdge()){\n getWorld().removeObject(this);\n return;\n }\n\n //Move Thanos up\n setLocation (getX(), getY() - speed);\n }",
"public abstract void move(Position position);",
"public ArcherElement(Side side) {\n super(1.2, Speed.MEDIUM, Target.AIR_AND_GROUND, 5, false, 125, 33,side);\n this.movingArea = MovingArea.GROUND;\n Animations animations = Animations.getInstance();\n if (side == Side.PLAYER){\n move1 = animations.ArcherPlayerSideMove1;\n move2 = animations.ArcherPlayerSideMove2;\n attack1 = animations.ArcherPlayerSideAttack1;\n attack2 = animations.ArcherPlayerSideAttack2;\n } else if (side == Side.BOT){\n move1 = animations.ArcherBotSideMove1;\n move2 = animations.ArcherBotSideMove2;\n attack1 = animations.ArcherBotSideAttack1;\n attack2 = animations.ArcherBotSideAttack2;\n }\n }",
"public void placeShip(Ship thisShip, String coordinate, int direction){\r\n\t\tthisShip.placed = true;\r\n\t\tint letterCoord = letterToIndex(coordinate.charAt(0));\r\n\t\tint numberCoord = Integer.parseInt(coordinate.substring(1))-1;\r\n\t\t\r\n\t\t\r\n\t\t\tif (direction == 1) {\r\n\t\t\t\tfor (int i = 0; i < thisShip.getSize(); i++) {\r\n\t\t\t\t\t\tthisShip.set_position(numberCoord+i, letterCoord);\r\n\t\t\t\t\t}\r\n\t\t\t} else if (direction == 2) {\r\n\t\t\t\tfor (int i = 0; i < thisShip.getSize(); i++) {\r\n\t\t\t\t\tthisShip.set_position(numberCoord, letterCoord+i);\r\n\t\t\t\t\t}\r\n\t\t\t} else if (direction == 3) {\r\n\t\t\t\tfor (int i = 0; i < thisShip.getSize(); i++) {\r\n\t\t\t\t\tthisShip.set_position(numberCoord-i, letterCoord);\r\n\t\t\t\t}\r\n\t\t\t} else if (direction == 4) {\r\n\t\t\t\tfor (int i = 0; i < thisShip.getSize(); i++) {\r\n\t\t\t\t\tthisShip.set_position(numberCoord, letterCoord - i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\tif(thisShip.name == \"Carrier\"){\r\n\t\t\tmyBoard.carrier.placed=thisShip.placed;\r\n\t\t\tmyBoard.carrier.position=thisShip.position;\r\n\t\t\t}\r\n\t\t\t\r\n\t\telse if(thisShip.name == \"Battleship\"){\r\n\t\t\tmyBoard.battleship.placed=thisShip.placed;\r\n\t\t\tmyBoard.battleship.position=thisShip.position;\r\n\t\t}\r\n\t\telse if(thisShip.name == \"Cruiser\"){\r\n\t\t\tmyBoard.cruiser.placed=thisShip.placed;\r\n\t\t\tmyBoard.cruiser.position=thisShip.position;\r\n\t\t}\r\n\t\telse if(thisShip.name == \"Submarine\"){\r\n\t\t\tmyBoard.submarine.placed=thisShip.placed;\r\n\t\t\tmyBoard.submarine.position=thisShip.position;\r\n\t\t}\r\n\t\telse if(thisShip.name == \"Patrol Boat\"){\r\n\t\t\t\tmyBoard.patrolboat.placed=thisShip.placed;\r\n\t\t\t\tmyBoard.patrolboat.position=thisShip.position;\r\n\t\t}\r\n\t\t\t\r\n\t\t}",
"public void placeRoad(int playerID, EdgeLocation loc) {\n\t\tedges.get(loc.getNormalizedLocation()).setPiece(new Piece(PieceType.ROAD, null, null, playerID));\n\t}",
"Activity getMoveElementActivity();",
"@Override\n\tpublic void move() {\n\n\t}",
"public static void placeObject(ObjectInstance content, ObjectInstance container) {\n\t\tcontent.addRelationalTarget(Names.ATTR_CONTAINER, container.getName());\n\t\tcontainer.addRelationalTarget(Names.ATTR_CONTENTS, content.getName());\n\t}",
"public void place(float x,float y){\n\t\tz=0.2f+Main.world.land.getHigh(Main.world.timeline.getTerra(),(int)x, (int)y);\r\n\t\tMain.world.contacts(this);\r\n\t\tz+=getTopObjects();\r\n\t\tplace(x,y,z);\r\n\t}",
"void move(Tile t);",
"@Override\n\tpublic void move() {\n\t\t\n\t}",
"public void add_one_place_to_tour(entities.PlaceOfInterestTour place) {\n\t\tPlaceofInterestItem sp = new PlaceofInterestItem(place);\n\t\t// delete buttons from list of item (place)\n\t\tsp.add_edit_layout();\n\n\t\tsp.setOnDragOver(event -> {\n\t\t\tfinal Dragboard dragboard = event.getDragboard();\n\t\t\tif (dragboard.hasString() && TAB_DRAG_KEY.equals(dragboard.getString()) && draggingTab.get() != null) {\n\t\t\t\tevent.acceptTransferModes(TransferMode.MOVE);\n\t\t\t\tevent.consume();\n\t\t\t}\n\t\t});\n\t\tsp.setOnDragDetected(event -> {\n\t\t\tDragboard dragboard = sp.startDragAndDrop(TransferMode.MOVE);\n\t\t\tClipboardContent clipboardContent = new ClipboardContent();\n\t\t\tclipboardContent.putString(TAB_DRAG_KEY);\n\t\t\tdragboard.setContent(clipboardContent);\n\t\t\tSnapshotParameters spp = new SnapshotParameters();\n\t\t\tspp.setFill(Color.WHITE);\n\t\t\tdragboard.setDragView(sp.snapshot(spp, null), event.getX(), event.getY());\n\t\t\tdraggingTab.set(sp);\n\t\t\tevent.consume();\n\t\t});\n\t\tsp.setOnDragDropped(event -> {\n\n\t\t\tDragboard db = event.getDragboard();\n\t\t\tboolean success = false;\n\t\t\tif (db.hasString()) {\n\t\t\t\tVBox parent = (VBox) sp.getParent();\n\t\t\t\tPlaceofInterestItem source = (PlaceofInterestItem) event.getGestureSource();\n\t\t\t\tint sourceIndex = parent.getChildren().indexOf(source);\n\t\t\t\tint targetIndex = parent.getChildren().indexOf(sp);\n\t\t\t\tList<Node> nodes = new ArrayList<Node>(parent.getChildren());\n\t\t\t\tif (sourceIndex < targetIndex) {\n\t\t\t\t\tCollections.rotate(nodes.subList(sourceIndex, targetIndex + 1), -1);\n\t\t\t\t} else {\n\t\t\t\t\tCollections.rotate(nodes.subList(targetIndex, sourceIndex + 1), 1);\n\t\t\t\t}\n\t\t\t\tparent.getChildren().clear();\n\t\t\t\tparent.getChildren().addAll(nodes);\n\t\t\t\tsuccess = true;\n\t\t\t}\n\t\t\tevent.setDropCompleted(success);\n\t\t\tevent.consume();\n\n\t\t});\n\n\t\tsp.setOnMouseEntered(event -> {\n\t\t\tsp.setStyle(\"-fx-background-color : #BDBBC3\");\n\t\t});\n\t\tsp.setOnMouseExited(event -> {\n\t\t\tsp.setStyle(\"-fx-background-color : #EBE8F9\");\n\t\t});\n\n\t\tPlatform.runLater(() -> {\n\t\t\tpnItems.getChildren().add(sp);\n\t\t\tnew SlideInUp(sp).play();\n\t\t});\n\n\t}",
"public abstract Object makeMove(Clue clue, Bipartite bipartite);",
"private void move() {\n\t\t\tx += Math.PI/12;\n\t\t\thead.locY = intensity * Math.cos(x) + centerY;\n\t\t\thead.yaw = spinYaw(head.yaw, 3f);\n\t\t\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, head.getId(), \n\t\t\t\tnew Location(player.getWorld(), head.locX, head.locY, head.locZ, head.yaw, 0));\n\t\t}",
"public void placeRandom() {\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.placeRandom();\r\n\t}",
"public interface GameEntity {\n int getSize();\n\n void update(Board board);\n\n boolean isRemoved();\n\n void setRemoved(boolean removed);\n\n Command remove();\n\n ThemeableType getType();\n\n Point getPosition();\n\n void setPosition(double x, double y);\n\n void setPosition(Point position);\n}",
"public void moveUp(TLAttribute attribute);",
"public void place(GamePiece teil, QPosition pos) { // old German method name: platziere\n for (int x = teil.getMinX(); x <= teil.getMaxX(); x++) {\n for (int y = teil.getMinY(); y <= teil.getMaxY(); y++) {\n if (teil.filled(x, y)) {\n int ax = pos.getX() + x - teil.getMinX();\n int ay = pos.getY() + y - teil.getMinY();\n set(ax, ay, teil.getBlockType(x, y));\n }\n }\n }\n view.draw();\n }",
"public interface Position {\n public String getName();\n public void setName(String name);\n public PositionType getPositionType();\n public void setPositionType(PositionType positionType);\n public String getCode();\n public void setCode(String code);\n public void addChild(DefaultPosition child);\n}",
"public void relocateToPoint(boolean isUserClick){\n// System.out.println(\"Scene x: \"+point.getX()+\", y: \"+point.getY());\n// System.out.println(\"Local x: \"+getParent().sceneToLocal(point).getX()+\", y: \"+getParent().sceneToLocal(point).getY());\n// System.out.println(\"Relocate x: \"+(getParent().sceneToLocal(point).getX() - (getWidth() / 2))+\", y: \"+(getParent().sceneToLocal(point).getY() - (getHeight() / 2)));\n// System.out.println(getBoundsInLocal().getWidth());\n// System.out.println(widthProperty());\n\n if (isUserClick) {\n double new_x=getParent().sceneToLocal(x,y).getX();\n double new_y=getParent().sceneToLocal(x,y).getY();\n setX(new_x);\n setY(new_y);\n relocate(\n// (getParent().sceneToLocal(x,y).getX() - (widthCountry / 2)),\n// (getParent().sceneToLocal(x,y).getY() - (heightCountry / 2))\n new_x,new_y\n );\n } else {\n relocate(x,y);\n }\n\n\n }",
"@Test\n\tpublic final void testMoveTo() {\n\t\tRoom testRoom = new Room(\"247\", 2, \"Computer Lab\");\n\t\t\n\t\tanimal.moveTo(testForest);\n\t\tassertEquals(\"Move To Forest\", animal.location(), testForest);\n\t\t\n\t\tanimal.moveTo(testRoom);\n\t\tassertEquals(\"Move To Room\", animal.location(), testForest);\t\n\t\t\n\t}",
"@Override\r\n public void move(List<Building> landmark, List<Pair<Integer, Integer>> orderedPath) {\r\n int moveChoice = (new Random()).nextInt(2);\r\n // 50% chance to move or not move\r\n if (moveChoice == 0){\r\n // Does not move, i.e. does nothing\r\n }\r\n else if (moveChoice == 1){\r\n // Move\r\n int directionChoice = (new Random()).nextInt(2);\r\n if (directionChoice == 0) {\r\n moveUpPath();\r\n } else if (directionChoice == 1) {\r\n moveDownPath();\r\n }\r\n }\r\n }",
"public abstract void move();",
"public abstract void move();"
] | [
"0.6551388",
"0.61999893",
"0.5917502",
"0.5854441",
"0.5808802",
"0.5766124",
"0.5754892",
"0.56326765",
"0.557912",
"0.55279785",
"0.5521315",
"0.55090815",
"0.5491801",
"0.54829395",
"0.54420465",
"0.5428967",
"0.5408382",
"0.5398164",
"0.5378613",
"0.53708005",
"0.5361159",
"0.5358188",
"0.5350456",
"0.53382033",
"0.53280365",
"0.5325994",
"0.5324621",
"0.5321068",
"0.53186303",
"0.53096455",
"0.5304904",
"0.5299281",
"0.5270664",
"0.52656835",
"0.5261939",
"0.5258755",
"0.5258459",
"0.52548265",
"0.52516156",
"0.5245239",
"0.5242825",
"0.52345544",
"0.5232678",
"0.5229136",
"0.52221715",
"0.51864165",
"0.5184137",
"0.5183985",
"0.51795024",
"0.5172797",
"0.5172797",
"0.5164464",
"0.51523864",
"0.51457584",
"0.514278",
"0.5141994",
"0.51384515",
"0.51331013",
"0.5132845",
"0.5116247",
"0.51128507",
"0.51094455",
"0.5109242",
"0.5108185",
"0.5107163",
"0.50982577",
"0.50980604",
"0.50936854",
"0.50887984",
"0.50869584",
"0.5086212",
"0.5085609",
"0.50843114",
"0.50808907",
"0.5073284",
"0.50612396",
"0.5054574",
"0.5050929",
"0.5043972",
"0.5042118",
"0.5039411",
"0.5037387",
"0.50360787",
"0.5036006",
"0.5033565",
"0.502894",
"0.50271684",
"0.5026523",
"0.5021251",
"0.5012266",
"0.50097126",
"0.5002644",
"0.5001255",
"0.50012445",
"0.5000512",
"0.50004077",
"0.5000045",
"0.49977013",
"0.49938393",
"0.49938393"
] | 0.5603143 | 8 |
Retrieve the inventory for the current level | Set<String> getInventory(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Inventory getInventory(){ //needed for InventoryView - Sam\n return inventory;\n }",
"SimpleInventory getOpenedInventory(Player player);",
"List<InventoryItem> getInventory();",
"InventoryItem getInventoryItem();",
"Collection<Item> getInventory();",
"public Inventory getInventory() {\n return inventory;\n }",
"public PlayerInventory getInventory ( ) {\n\t\treturn extract ( handle -> handle.getInventory ( ) );\n\t}",
"public Inventory getInventory() {\r\n\t\treturn inventory;\r\n\t}",
"public List<Inventory> getInventory();",
"public Inventory getInventory(){\n return inventory;\n }",
"@GetMapping ( BASE_PATH + \"/inventory\" )\n public ResponseEntity getInventory () {\n final Inventory inventory = inventoryService.getInventory();\n return new ResponseEntity( inventory, HttpStatus.OK );\n }",
"List<SimpleInventory> getInventories();",
"public List<InventoryEntry> getInventoryEntries();",
"public Inventory getEnchantInventory(Player p){\n Inventory inv = Bukkit.createInventory(null, 27, \"Enchant Pickaxe\");\n for(CustomEnchantment ce : enchants.keySet()){\n ItemStack item = new ItemStack(ce.getIcon());\n ItemMeta meta = item.getItemMeta();\n meta.setDisplayName(ce.getColor() + ce.getDisplayName());\n List<String> lore = new ArrayList<>();\n lore.add(\"\");\n lore.add(Changeables.CHAT + \"Current Level: \" + Changeables.CHAT_INFO + getEnchantLevel(ce, p));\n lore.add(Changeables.CHAT + \"Max Level: \" + Changeables.CHAT_INFO + ce.getMaxLevel());\n lore.add(Changeables.CHAT + \"Current Price: \" + Changeables.CHAT_INFO + ce.getPrice(getEnchantLevel(ce, p)));\n lore.add(\"\");\n lore.add(Changeables.CHAT + \"Left Click to \" + Changeables.CHAT_INFO + \" Buy 1\");\n lore.add(Changeables.CHAT + \"Right Click to \" + Changeables.CHAT_INFO + \" Buy Max\");\n meta.setLore(lore);\n item.setItemMeta(meta);\n inv.setItem(enchants.get(ce), item);\n }\n\n\n\n\n\n return inv;\n }",
"public Item[] getInventoryItems(){\n\t\treturn inventoryItems;\n\t}",
"public ArrayList<Stock> getAvaiableStock (){\n\t\treturn inventory;\n\t}",
"public InventoryView getOpenInventory ( ) {\n\t\treturn extract ( handle -> handle.getOpenInventory ( ) );\n\t}",
"public String getPlayerInventory() {\r\n String res = \"You have the following items in your inventory:\" + System.getProperty(\"line.separator\");\r\n for (int i = 0; i < player.getInventory().size(); i++) {\r\n res += i + \": \" + player.getInventory().get(i).toString() + System.getProperty(\"line.separator\");\r\n }\r\n return res;\r\n }",
"@NotNull\n @Override\n public Inventory getInventory() {\n Inventory inventory = Bukkit.createInventory(this, missionType == Mission.MissionType.ONCE ? IridiumSkyblock.getInstance().getInventories().missionsGUISize : 27, StringUtils.color(\"&7Island Missions\"));\n\n InventoryUtils.fillInventory(inventory);\n\n if (missionType == Mission.MissionType.DAILY) {\n HashMap<String, Mission> missions = IridiumSkyblock.getInstance().getIslandManager().getDailyIslandMissions(island);\n int i = 0;\n\n for (String key : missions.keySet()) {\n Mission mission = IridiumSkyblock.getInstance().getMissionsList().get(key);\n List<Placeholder> placeholders = new ArrayList<>();\n\n for (int j = 1; j <= mission.getMissions().size(); j++) {\n IslandMission islandMission = IridiumSkyblock.getInstance().getIslandManager().getIslandMission(island, mission, key, j);\n placeholders.add(new Placeholder(\"progress_\" + j, String.valueOf(islandMission.getProgress())));\n }\n\n inventory.setItem(IridiumSkyblock.getInstance().getMissions().dailySlots.get(i), ItemStackUtils.makeItem(mission.getItem(), placeholders));\n i++;\n }\n } else {\n for (String key : IridiumSkyblock.getInstance().getMissionsList().keySet()) {\n Mission mission = IridiumSkyblock.getInstance().getMissionsList().get(key);\n if (mission.getMissionType() != Mission.MissionType.ONCE) continue;\n List<Placeholder> placeholders = new ArrayList<>();\n\n for (int j = 1; j <= mission.getMissions().size(); j++) {\n IslandMission islandMission = IridiumSkyblock.getInstance().getIslandManager().getIslandMission(island, mission, key, j);\n placeholders.add(new Placeholder(\"progress_\" + j, String.valueOf(islandMission.getProgress())));\n IridiumSkyblock.getInstance().getLogger().info(j + \" - \" + islandMission.getProgress());\n }\n\n inventory.setItem(mission.getItem().slot, ItemStackUtils.makeItem(mission.getItem(), placeholders));\n }\n }\n\n return inventory;\n }",
"List<InventoryItem> getInventory(String username);",
"public List<InventoryEntity> getAllInventory() {\n\t\treturn inventoryDao.getAllInventory();\n\t}",
"public abstract List<String> getInventory();",
"public Product getProductInventory() {\n return productInventory;\n }",
"public ArrayList<Item> getList() {\r\n\t\treturn inventory;\r\n\t}",
"public ArrayList<Item> getItemList(){\n\t\treturn inventoryList;\n\t}",
"public Items getItem(String name)\n {\n return Inventory.get(name);\n }",
"public Inventory getEquipment() {\n return equipment;\n }",
"@RequestMapping(method = RequestMethod.GET, produces = \"application/json\", headers = \"Accept=application/json\" )\n public ResponseEntity<List<InventoryResponse>> getInventory(){\n List<InventoryResponse> inventoryResponse = new ArrayList<>();\n inventoryService.getInventory().stream().forEach(inventoryItem -> inventoryResponse.add(\n new InventoryResponse(inventoryItem.getProduct().getId(), inventoryItem.getAmount())));\n\n return ResponseEntity.ok(inventoryResponse);\n }",
"@Override\n\tpublic Inventory getInventory() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Inventory getInventory()\n\t{\n\t\tInventory inventory = Bukkit.createInventory(this, tabSize*9, \n\t\t\t\tsettings.getAccountNameFormat().replace(\"{player}\", owner).replace(\"{npc}\", settings.getNpcName())\n\t\t\t\t);\n\t\treturn inventory;\n\t}",
"public String getInventoryString() {\n String msg = new String(\"Inventory: \\n\");\n for (Map.Entry<String, Item> me : inventory.entrySet()) {\n msg += \" item: \" + me.getKey() + \" description: \" + me.getValue().getDescription() + \"\\n\";\n }\n return msg;\n }",
"public Integer getStock(int ID) {\r\n\t\treturn inventory.get(ID);\r\n\t}",
"public int getUnitsInventory(){\n\t\treturn unitsInventory;\n\t}",
"void openInventory(Player player, SimpleInventory inventory);",
"public void inventory() {\n\t\tList<Item> items = super.getItems();\n\n\t\tString retStr = \"Items: \";\n\t\tItem item;\n\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\titem = items.get(i);\n\t\t\tretStr += item.toString();\n\t\t\tif (i != items.size()-1)\n \t{\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nCapacity: \" + this.currentCapacity() + \"/\" + this.maxCapacity;\n\t\tSystem.out.println(retStr);\n\t}",
"@java.lang.Override\n public POGOProtos.Rpc.HoloInventoryItemProto getInventoryItemData() {\n if (inventoryItemCase_ == 3) {\n return (POGOProtos.Rpc.HoloInventoryItemProto) inventoryItem_;\n }\n return POGOProtos.Rpc.HoloInventoryItemProto.getDefaultInstance();\n }",
"@Override\n\tpublic void openInventory() {\n\t\t\n\t}",
"public Product getProduct(int i){\n return inventory.get(i);\n }",
"public int getItemLevel() {\treturn level; }",
"public int getKeyInventory() {\r\n return Input.Keys.valueOf(keyInventoryName);\r\n }",
"public String getInventoryName()\n {\n return this.inventoryTitle;\n }",
"public int getInventoryFull ()\n {\n return (inventoryFull);\n }",
"@java.lang.Override\n public POGOProtos.Rpc.HoloInventoryItemProto getInventoryItemData() {\n if (inventoryItemDataBuilder_ == null) {\n if (inventoryItemCase_ == 3) {\n return (POGOProtos.Rpc.HoloInventoryItemProto) inventoryItem_;\n }\n return POGOProtos.Rpc.HoloInventoryItemProto.getDefaultInstance();\n } else {\n if (inventoryItemCase_ == 3) {\n return inventoryItemDataBuilder_.getMessage();\n }\n return POGOProtos.Rpc.HoloInventoryItemProto.getDefaultInstance();\n }\n }",
"ItemStack get(final Player player) {\r\n\t\tthis.update(player);\r\n\r\n\t\treturn this.playerHasTool ? this.getToolWhenHas() : this.getToolWhenHasnt();\r\n\t}",
"private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }",
"ItemStack getItem();",
"public PlayerInventory load(Player player) {\n return new PlayerInventory(\n player,\n repository.byPlayer(player)\n .stream()\n .map(\n entity -> new LoadedItem(\n entity,\n service.retrieve(entity.itemTemplateId(), entity.effects())\n )\n )\n .collect(Collectors.toList())\n );\n }",
"public POGOProtos.Rpc.HoloInventoryItemProto.Builder getInventoryItemDataBuilder() {\n return getInventoryItemDataFieldBuilder().getBuilder();\n }",
"public String getInventoryName()\n {\n return this.hasCustomName() ? this.getCustomName() : Names.Containers.WATERJET;\n }",
"public String getKeyInventoryName() {\r\n return keyInventoryName;\r\n }",
"public Item getItem(int itemIndex){\n\t\treturn inventoryItems[itemIndex];\n\t}",
"@Override\n\tpublic Integer getInventoryForAIngredient(Ingredient ingredient){\n\t\treturn beverageInventoryMap.get(ingredient);\n\t}",
"public String printPlayerInventory() {\r\n\t\t\tif(this.getPlayer().getInventory().getContent().isEmpty()) {\r\n\t\t\t\treturn \"You have no items in your inventory.\" + \"\\n\"\r\n\t\t\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \" + this.getPlayer().getGold() + \" gold.\";\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\treturn \"Your \" + this.getPlayer().getInventory().printContent()\r\n\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \" + this.getPlayer().getGold() + \" gold.\";\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}",
"public ImageIdentifier getInventoryPicture()\n\t {\n\t return inventoryPicture;\n\t }",
"@Override\n\t@Transactional(readOnly=true)\n\tpublic List<Inventory> getInventoryUpdates() {\n\t\treturn inventorydao.getInventoryUpdates();\n\t}",
"public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }",
"public void fillChest(Inventory inv);",
"public String toString() {\n System.out.println(\"Inventory: \");\n String str = \"\";\n for(int i = 0; i < numItems; i++) {\n if(inventory[i]!= null) {\n str += inventory[i].toString() + \"\\n\";\n }\n }\n return str;\n }",
"public String toString() {\n\tString result = \"\";\n for (int x = 0; x < list.size(); x++) {\n result += list.get(x).toString();\n }\n\treturn \"Inventory: \\n\" + result + \"\\n\";\n}",
"List<InventoryItem> getInventory(String username, int appId);",
"List<InventoryItem> getInventory(int appId);",
"public InventoryUtil getInventoryUtil() {\n return inventoryUtil;\n }",
"public static ArrayList<InventoryItem> getInventoryItems() {\n\n String itemUrl = REST_BASE_URL + ITEMS;\n String inventoryUrl = REST_BASE_URL + INVENTORIES;\n String availableUrl = REST_BASE_URL + INVENTORIES + AVAILABLE + CATEGORIZED;\n\n // List of items\n ArrayList<InventoryItem> items = new ArrayList<>();\n ArrayList<String> itemNames = new ArrayList<>();\n\n URL url = null;\n\n /* Fetch items from \"items\" table. */\n try {\n url = new URL(itemUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray itemJsonArray = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting items\");\n itemJsonArray = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n // Store each item into <items>. Store each item name into <itemNames>.\n for (int i = 0; i < itemJsonArray.length(); i++) {\n JSONObject jo = (JSONObject) itemJsonArray.get(i);\n InventoryItem newItem = new InventoryItem(\n jo.getString(ITEM_IMAGE_URL),\n jo.getString(ITEM_NAME),\n jo.getString(ITEM_DESCRIPTION),\n 0,\n 0);\n items.add(newItem);\n itemNames.add(jo.getString(ITEM_NAME));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* Fetch inventory items from \"inventories\" */\n try {\n url = new URL(inventoryUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n JSONArray jaResult = null;\n try {\n Log.d(TAG, \"getInventoryItems: getting ivnentories\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemQuantity(currItem.getItemQuantity()+1);\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the inventory but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n /* get inventory stocks from \"/available/categorized\" */\n try {\n url = new URL(availableUrl);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n\n try {\n Log.d(TAG, \"getInventoryItems: getting inventory stocks\");\n jaResult = getResponseFromHttpUrl(url);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n for (int i = 0; i < jaResult.length(); i++) {\n JSONObject jo = (JSONObject) jaResult.get(i);\n int index = itemNames.indexOf(jo.getString(ITEM_NAME));\n if (index > -1) {\n InventoryItem currItem = items.get(index);\n currItem.setItemStock(jo.getInt(ITEM_COUNT));\n items.set(index, currItem);\n } else {\n // TODO: throw an exception here?\n Log.e(TAG, \"getInventoryItems: There is an item in the stock but not in the item table!\");\n }\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return items;\n }",
"public abstract List<String> getUserInventory();",
"public List<Treasure> giveInventory() {\r\n return treasures;\r\n }",
"public void printInventory()\n { \n System.out.println();\n\n // Checks if the player has items.\n if(!(getPerson(PLAYER).getInventory().getItems().isEmpty())){\n System.out.println(\"In your backpack, you have:\");\n\n // Gets each item in the player's inventory.\n for(Item item: getPerson(PLAYER).getInventory().getItems()){\n System.out.print(item.getName() + \",\");\n }\n System.out.println();\n System.out.println(\"You are carrying \"+ getPerson(PLAYER).getWeight() + \"kg.\");\n }\n else{\n System.out.println(\"There are currently no items in your backpack.\");\n }\n System.out.println();\n }",
"abstract int getItemID(int level);",
"@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}",
"@Override\n public String toString () {\n String stock = \"\";\n\n for (int i = 0; i < inventory.size(); i++) {\n\n Product p = inventory.get(i);\n stock += p.toString() + '\\n';\n }\n return stock;\n }",
"private Inventory createInventory() {\n\n\t\tInventory inv;\n\n\t\tif (guiMetadata.getInvType() == InventoryType.CHEST) {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getSize(), guiMetadata.getGuiName());\n\t\t} else {\n\t\t\tinv = Bukkit.createInventory(null, guiMetadata.getInvType(), guiMetadata.getGuiName());\n\t\t}\n\n\t\treturn inv;\n\t}",
"public void onInventoryChanged();",
"public Map<String, Integer> getInventoryMap() {\n return drinkRepository.loadAll().collect(toMap(DrinkStock::getDrinkName, DrinkStock::getQuantity));\n }",
"public int getInventorySize(){\n return inventory.size();\n }",
"public void inventoryPrint() {\n System.out.println(\"Artifact Name: \" + name);\r\n System.out.println(\"Desc:\" + description);\r\n System.out.println(\"Value: \" + value);\r\n System.out.println(\"Mobility: \" + mobility); \r\n }",
"public void showInventory()\n\t{\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"\\t\\t\\t\\tInventory\");\n\t\t\n\t\tfor (String s: inventory)\n\t\t{\n\t\t\tSystem.out.print(\"\\n\" + s);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\\n[R] Return\\n\");\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"Action: \");\n\t\t\n\t}",
"public void printInventory(){\n\t\tint i;\n\t\tint listSize = inventory.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Inventory Stocks Per Roll: \";\n\t\t//outputText = inventory.get(0).getRoll().getType() + \" Roll Current stock: \" + inventory.get(0).getStock();\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\toutputText = outputText + \"\\n\";\n\t\t\t}\n\t\t\toutputText = outputText + inventory.get(i).getRoll().getType() + \" : \" + inventory.get(i).getStock() + \" \";\n\t\t}\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\n\t}",
"private void drawInventory() {\n Texture highlight = createInventoryHighlight();\n InventoryComponent inventory = gameWorld.getHero().getInventory();\n\n float originX = ((VIRTUAL_HEIGHT * Gdx.graphics.getWidth() / Gdx.graphics.getHeight()) / 2) - (inventory.getSize() * ITEM_BACKGROUND_SIZE) / 2;\n\n Item[] items = inventory.getItems();\n for (int i = 0; i < inventory.getSize(); i++) {\n hudBatch.draw(background, originX + i * ITEM_BACKGROUND_SIZE, 0, ITEM_BACKGROUND_SIZE, ITEM_BACKGROUND_SIZE);\n if (items[i] != null) {\n if (inventory.getSelectedItem() != null && items[i] == inventory.getSelectedItem()) {\n hudBatch.draw(highlight, originX + i * ITEM_BACKGROUND_SIZE, 0, ITEM_BACKGROUND_SIZE, ITEM_BACKGROUND_SIZE / 12);\n }\n float itemOffset = ITEM_BACKGROUND_SIZE / 2 - calculateItemWidth(items[i]) / 2;\n hudBatch.draw(items[i].getTexture(), (originX + i * INVENTORY_ITEM_SIZE) + itemOffset, 0, calculateItemWidth(items[i]), INVENTORY_ITEM_SIZE);\n }\n }\n }",
"public void setItemLevel(int level) { this.level = level; }",
"public int[] currentProductsInInventory(){\r\n\t\tString sql=\"SELECT Barcode FROM ProductTable WHERE Quantity_In_Store>=0 OR Quantity_In_storeroom>=0 \";\r\n\t\tint[] products=null;\r\n\t\tArrayList<Integer> tmpList = new ArrayList<Integer>();\r\n\t\tint counter = 0;\r\n\t\t try (Connection conn = this.connect();\r\n\t Statement stmt = conn.createStatement();\r\n\t ResultSet rs = stmt.executeQuery(sql)){\r\n\t\t\t while(rs.next()){\r\n\t\t\t\t tmpList.add(rs.getInt(\"Barcode\"));\r\n\t\t\t\t counter++;\r\n\t\t\t }\r\n\t\t\t products= new int[counter];\r\n\t\t\t for(int i=0;i<counter;i++){\r\n\t\t\t\t products[i]=tmpList.get(i);\r\n\t\t\t }\r\n\t\t }\r\n\t\t catch (SQLException e) {\r\n\t\t\t System.out.println(\"currentProductsInInventory: \"+e.getMessage());\r\n\t\t\t return new int[0]; \r\n\t\t }\r\n\t\treturn products;\r\n\t}",
"public String printPlayerEquipment() {\r\n\t\t\treturn this.getPlayer().presentEquippedItems();\r\n\t\t}",
"private ItemStack[] getItemStack() {\n\n ItemStack[] stack = new ItemStack[54];\n int i = 0;\n // get the player's messages\n TVMResultSetInbox rs = new TVMResultSetInbox(plugin, uuid, start, 44);\n if (rs.resultSet()) {\n List<TVMMessage> messages = rs.getMail();\n for (TVMMessage m : messages) {\n // message\n ItemStack mess;\n if (m.isRead()) {\n mess = new ItemStack(Material.BOOK, 1);\n } else {\n mess = new ItemStack(Material.WRITABLE_BOOK, 1);\n }\n ItemMeta age = mess.getItemMeta();\n age.setDisplayName(\"#\" + (i + start + 1));\n String from = plugin.getServer().getOfflinePlayer(m.getWho()).getName();\n age.setLore(Arrays.asList(\"From: \" + from, \"Date: \" + m.getDate(), \"\" + m.getId()));\n mess.setItemMeta(age);\n stack[i] = mess;\n i++;\n }\n }\n\n int n = start / 44 + 1;\n // page number\n ItemStack page = new ItemStack(Material.BOWL, 1);\n ItemMeta num = page.getItemMeta();\n num.setDisplayName(\"Page \" + n);\n num.setCustomModelData(119);\n page.setItemMeta(num);\n stack[45] = page;\n // close\n ItemStack close = new ItemStack(Material.BOWL, 1);\n ItemMeta win = close.getItemMeta();\n win.setDisplayName(\"Close\");\n win.setCustomModelData(1);\n close.setItemMeta(win);\n stack[46] = close;\n // previous screen (only if needed)\n if (start > 0) {\n ItemStack prev = new ItemStack(Material.BOWL, 1);\n ItemMeta een = prev.getItemMeta();\n een.setDisplayName(\"Previous Page\");\n een.setCustomModelData(120);\n prev.setItemMeta(een);\n stack[48] = prev;\n }\n // next screen (only if needed)\n if (finish > 44) {\n ItemStack next = new ItemStack(Material.BOWL, 1);\n ItemMeta scr = next.getItemMeta();\n scr.setDisplayName(\"Next Page\");\n scr.setCustomModelData(116);\n next.setItemMeta(scr);\n stack[49] = next;\n }\n // read\n ItemStack read = new ItemStack(Material.BOWL, 1);\n ItemMeta daer = read.getItemMeta();\n daer.setDisplayName(\"Read\");\n daer.setCustomModelData(121);\n read.setItemMeta(daer);\n stack[51] = read;\n // delete\n ItemStack del = new ItemStack(Material.BOWL, 1);\n ItemMeta ete = del.getItemMeta();\n ete.setDisplayName(\"Delete\");\n ete.setCustomModelData(107);\n del.setItemMeta(ete);\n stack[53] = del;\n\n return stack;\n }",
"public List<IWeapon> getWeaponsInventory(){\n return weaponsInventory;\n }",
"public Location getInventoryLocation() \n\t{\n\t\treturn factoryInventoryLocation;\n\t}",
"@java.lang.Override\n public POGOProtos.Rpc.HoloInventoryItemProtoOrBuilder getInventoryItemDataOrBuilder() {\n if (inventoryItemCase_ == 3) {\n return (POGOProtos.Rpc.HoloInventoryItemProto) inventoryItem_;\n }\n return POGOProtos.Rpc.HoloInventoryItemProto.getDefaultInstance();\n }",
"public Inventory () {\n weaponsInventory = new ArrayList<>();\n pointInventory = 0;\n lenInventory = 0;\n }",
"protected ItemBO getSelectedInventoryForAnItem(final ItemBO anItem) {\n\t\tif (!isPartFoundInMultipleLocations(anItem)) {\n\t\t\tanItem.setInventory(shortListRelevantInventory(anItem));\n\t\t\tanItem.setAdditionalInventory(new ArrayList<InventoryBO>());\n\t\t}\n\t\t\n\t\treturn anItem;\n\t}",
"@SuppressWarnings(\"deprecation\")\r\n\t@EventHandler\r\n\tpublic void inventoryClickEvent(InventoryClickEvent e) {\r\n\t\tEntity applier = e.getWhoClicked();\r\n\t\tif (!e.isCancelled()) {\r\n\t\t\tif (applier instanceof Player) {\r\n\t\t\t\tPlayer papplier = (Player) applier;\r\n\t\t\t\t// PlayerInventory pinventory = papplier.getInventory();\r\n\t\t\t\t// inven.put(papplier, pinventory);\r\n\t\t\t\tItemStack item = e.getCurrentItem();\r\n\t\t\t\tItemStack transmog = e.getCursor();\r\n\t\t\t\tString tname = \"\";\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tItemMeta itemMeta = item.getItemMeta();\r\n\t\t\t\t\tArrayList<String> lore1 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore2 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore3 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore4 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore5 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore6 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore7 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> totallore = new ArrayList<String>();\r\n\t\t\t\t\tif (item.getType() != Material.AIR) {\r\n\t\t\t\t\t\t// papplier.sendMessage(\"1\");\r\n\t\t\t\t\t\tif (transmog != null) {\r\n\t\t\t\t\t\t\t// papplier.sendMessage(\"2\");\r\n\t\t\t\t\t\t\tif (item.getType().name().endsWith(\"SWORD\") || item.getType().name().endsWith(\"AXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HELMET\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"SHOVEL\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"CHESTPLATE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"LEGGINGS\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"BOOTS\") || item.getType().name().endsWith(\"BOW\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"PICKAXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HOE\")) {\r\n\t\t\t\t\t\t\t\t// papplier.sendMessage(\"3\");\r\n\t\t\t\t\t\t\t\tif (item.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"4\");\r\n\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"5\");\r\n\t\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"6\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"7\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(Api.transint(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t// + \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tdname.put(item, item.getItemMeta().getDisplayName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tI.put(papplier, Methods.transint(item));\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, true);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"8\");\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"9\");\r\n\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"10\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"11\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"12\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"13\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"14\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"15\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"16\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"17\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanted.put(titem, false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\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\tMethods.removeColor(\r\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\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\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.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\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.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\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.getEnchantmentCategory(\r\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\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\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\"T1\")) {\r\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\tlore1.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T2\")) {\r\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\tlore2.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T3\")) {\r\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\tlore3.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T4\")) {\r\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\tlore4.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T5\")) {\r\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\tlore5.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T6\")) {\r\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\tlore6.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = \"&a\" + item.getType().name()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"21\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tString dname1 = dname.get(item).replace(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(\"&d&l[&b&l&n\" + I.get(papplier) + \"&d&l]\"), \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"22\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"23\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"24\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"25\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"26\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"27\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"28\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\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\tMethods.removeColor(\r\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\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\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.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\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.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\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.getEnchantmentCategory(\r\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\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\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\"T1\")) {\r\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\tlore1.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T2\")) {\r\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\tlore2.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T3\")) {\r\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\tlore3.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T4\")) {\r\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\tlore4.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T5\")) {\r\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\tlore5.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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} else if (tier\r\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.contains(\r\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\"T6\")) {\r\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\tlore6.add(0, Methods\r\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.color(ench));\r\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\tcontinue;\r\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}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = dname1 + \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\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\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 ItemStack getItemInHand ( ) {\n\t\tPlayer handle = handle ( );\n\t\t\n\t\tif ( handle != null ) {\n\t\t\ttry {\n\t\t\t\treturn ( ItemStack ) safeGetMethod (\n\t\t\t\t\t\tPlayerInventory.class , \"getItemInMainHand\" , new Class[ 0 ] ).invoke (\n\t\t\t\t\t\thandle.getInventory ( ) );\n\t\t\t} catch ( Exception e ) {\n\t\t\t\ttry {\n\t\t\t\t\treturn ( ItemStack ) safeGetMethod (\n\t\t\t\t\t\t\tPlayerInventory.class , \"getItemInHand\" , new Class[ 0 ] ).invoke (\n\t\t\t\t\t\t\thandle.getInventory ( ) );\n\t\t\t\t} catch ( IllegalAccessException | InvocationTargetException ex ) {\n\t\t\t\t\tex.printStackTrace ( );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public Level getCurrentLevel(){\r\n return currentLevel;\r\n }",
"@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}",
"@Override\n\tpublic void onInventoryChanged() {\n\t}",
"@Override\r\n public String toString() {\r\n String result = \"\";\r\n for (Map.Entry<Item, Integer> item : inventory.entrySet()) {\r\n if (item.getValue() == 0) {\r\n result += \"SOLD OUT\\n\";\r\n } else {\r\n result += item.getKey();\r\n }\r\n }\r\n return result;\r\n }",
"public Equipment openChest( int floorLvl, Hero h )\n {\n Equipment equip = super.openChest( floorLvl + 3, h );\n // make sure hero can get usable item (ex: mage can't get shield)\n boolean equipUsable = h.equipUsable( equip );\n while( equipUsable == false )\n {\n setIsOpen( false );\n equip = super.openChest( floorLvl + 3, h );\n equipUsable = h.equipUsable( equip );\n } // end while\n \n equip.setStats();\n equip.setName( \"Shiny \" + equip.getName() );\n return equip;\n }",
"public String printAllInventory(){\r\n\r\n String returnString = \"Items:\";\r\n for(Item item : playerItem){\r\n returnString += \" \" + item.getName(); \r\n }\r\n return returnString;\r\n }",
"public void updateInventory ( ) {\n\t\texecute ( handle -> handle.updateInventory ( ) );\n\t}",
"@Test\n\tpublic void getInventoryTest() {\n\t\tLongTermStorage ltsTest1 = new LongTermStorage();\n\t\tassertNotNull(ltsTest1.getInventory());\n\t}",
"public String listLowStock() {\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\tLinkedList<HashMap.Entry<Integer, Integer>> entries = new LinkedList<HashMap.Entry<Integer, Integer>>(inventory.entrySet());\r\n\t\tCollections.sort(entries, HashMap.Entry.comparingByValue());\r\n\t\tIterator<HashMap.Entry<Integer, Integer>> iter = entries.iterator();\r\n\t\twhile(iter.hasNext()) {\r\n\t\t\tHashMap.Entry<Integer, Integer> entry = iter.next();\r\n\t\t\tif(entry.getValue() >= 0 && entry.getValue() <= 5) {\r\n\t\t\t\tfor(Product p : Data.productArr) {\r\n\t\t\t\t\tif(p.getID() == entry.getKey()) {\r\n\t\t\t\t\t\ttoReturn += \"\\n\" + p.toString() + \"|\" + entry.getValue();\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}",
"private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }",
"public String inventoryItemId() {\n return this.innerProperties() == null ? null : this.innerProperties().inventoryItemId();\n }",
"public void startLevel(LevelLoader level) {\r\n\t\tslots = new HashMap<Integer, ItemSlot>();\r\n\t\tfor (int i = 0; i < player.getInventory().getItemSlots().size(); i++) {\r\n\t\t\tItemSlot slot = player.getInventory().getItemSlots().get(i);\r\n\t\t\tslots.put(i, new ItemSlot(slot.getX(), slot.getY(), slot.getMax()));\r\n\t\t\tif (slot.getItem() != null)\r\n\t\t\t\tslots.get(i).add(slot.getItem(), slot.getQuantity());\r\n\t\t}\r\n\t\tplayer.setCanMove(true);\r\n\t\tif (menu != null) {\r\n\t\t\tif (menu.sound != null) {\r\n\t\t\t\tmenu.sound.stopSound();\r\n\t\t\t}\r\n\t\t\tmenu = null;\r\n\t\t}\r\n\r\n\t\tif (level != null) {\r\n\t\t\tif (level.bg_sound != null) {\r\n\t\t\t\tlevel.bg_sound.stopSound();\r\n\t\t\t}\r\n\t\t\tthis.level = null;\r\n\t\t}\r\n\r\n\t\tthis.level = level;\r\n\t}"
] | [
"0.7365154",
"0.73141074",
"0.7225232",
"0.72197676",
"0.718174",
"0.71575344",
"0.70304036",
"0.7028407",
"0.7011508",
"0.679084",
"0.6742425",
"0.67184275",
"0.66689587",
"0.6624247",
"0.6567695",
"0.6481727",
"0.6458852",
"0.6454776",
"0.644951",
"0.6441315",
"0.64386886",
"0.64211607",
"0.64115125",
"0.64006674",
"0.63778234",
"0.6320037",
"0.62633175",
"0.6222561",
"0.6207712",
"0.6185078",
"0.61825836",
"0.6163164",
"0.6145145",
"0.6140935",
"0.61401606",
"0.612381",
"0.6095603",
"0.60829264",
"0.60545087",
"0.60502845",
"0.6030093",
"0.6008255",
"0.59919167",
"0.597283",
"0.59718424",
"0.595177",
"0.5933296",
"0.5907328",
"0.5904488",
"0.5890596",
"0.5867123",
"0.5863588",
"0.58532584",
"0.5843247",
"0.5809413",
"0.58054036",
"0.5790405",
"0.57889205",
"0.5780031",
"0.57750756",
"0.57709515",
"0.57706183",
"0.5762097",
"0.5761571",
"0.5755029",
"0.574073",
"0.5733567",
"0.5726326",
"0.57175356",
"0.5712671",
"0.5678497",
"0.56710416",
"0.565258",
"0.5649205",
"0.56366175",
"0.56289005",
"0.56128466",
"0.56013286",
"0.560043",
"0.5597861",
"0.5593324",
"0.55930597",
"0.5592297",
"0.55881643",
"0.55870813",
"0.5580525",
"0.55792695",
"0.5578204",
"0.55757385",
"0.55723673",
"0.5563999",
"0.55590606",
"0.5552133",
"0.5543499",
"0.5543419",
"0.55425876",
"0.5539189",
"0.55364484",
"0.5533218",
"0.5525322"
] | 0.6088371 | 37 |
Get the ImageView corresponding to a particular spriteId | ImageView getRepresentationFromSpriteId(int spriteId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Image getSpriteImage(Sprite sprite){\n if(sprite == null){\n return sprites.get(1);\n }\n return sprites.get(sprite.getSpriteIndex());\n }",
"public ImageView getImageView() {\n return (ImageView) getView().findViewById(imageViewId);\n }",
"public BufferedImage getSpriteImage(String ref) {\n\t\treturn sprites.get(ref);\n\t}",
"public int getImageResource() {\n switch (id) {\n case 0: return R.drawable.aatrox_square_0;\n case 1: return R.drawable.ahri_square_0;\n case 2: return R.drawable.akali_square_0;\n case 3: return R.drawable.alistar_square_0;\n case 4: return R.drawable.amumu_square_0;\n case 5: return R.drawable.anivia_square_0;\n case 6: return R.drawable.annie_square_0;\n case 7: return R.drawable.ashe_square_0;\n case 8: return R.drawable.azir_square_0;\n case 9: return R.drawable.bard_square_0;\n case 10: return R.drawable.blitzcrank_square_0;\n case 11: return R.drawable.brand_square_0;\n case 12: return R.drawable.braum_square_0;\n case 13: return R.drawable.caitlyn_square_0;\n case 14: return R.drawable.cassiopeia_square_0;\n case 15: return R.drawable.chogath_square_0;\n case 16: return R.drawable.corki_square_0;\n case 17: return R.drawable.darius_square_0;\n case 18: return R.drawable.diana_square_0;\n case 19: return R.drawable.draven_square_0;\n case 20: return R.drawable.drmundo_square_0;\n default:\n return R.drawable.fizz_square_0;\n }\n }",
"public ImageView getImageView() {\n View view = this.mCardImage;\n if (view instanceof ImageView) {\n return (ImageView) view;\n }\n return null;\n }",
"ImageView getAvatarImageView();",
"public int getSpriteID() {\n return spriteID;\n }",
"public Image getImage(String token) {\n\t\tImage image = spriteMap.get(token);\n\t\tif (image == null) {\n\t\t\tSystem.out.println(\"null image on input \" + token);\n\t\t}\n\t\treturn image;\n\t}",
"public static ImageIcon getSprite(String name)\n\t{\n\t\tImageIcon img = sprites.get(name);\n\t\tif (img == null)\n\t\t{\n\t\t\tDebug.println(\"Image \"+name+ \" loaded\");\n\t\t\ttry{\n\t\t\t\tURL url = new URL(\"https://deanattali.com/files/java/Scrabble/\" + name);\n\t\t\t img = new ImageIcon(url);\n\t\t\t}catch(Exception ex){}\n\t\t\tsprites.put(name,img);\n\t\t}\n\n\t\treturn img;\n\t}",
"public Sprite getSprite() {\n\t\treturn image;\n\t}",
"public Sprite getCurrentSprite() {\n\t\tif (this.getVx() <= 0) {\n\t\t\treturn getImages()[0];\n\t\t}\n\t\treturn getImages()[1];\n\t}",
"Drawable getPhotoDrawableBySub(long subId);",
"protected ImageView getImageView(){\n\t\treturn iv1;\n\t}",
"AsyncImageView getIconView();",
"private int getInstr(int index) {\n switch (index) {\n case 0:\n return R.drawable.chickpeacurry;\n case 1:\n return R.drawable.sweetpotatoblackbeanburger;\n case 2:\n return R.drawable.cabbagedietsoup;\n case 3:\n return R.drawable.instantpotvegetablesoup;\n case 4:\n return R.drawable.veganpumpkinsoup;\n\n default:\n return -1;\n }\n }",
"public Java2DSprite getSprite(Image ref) {\r\n\t\tif (window == null) {\r\n\t\t\tthrow new RuntimeException(\"Attempt to retrieve sprite before game window was created\");\r\n\t\t}\r\n\t\treturn new Java2DSprite((Java2DGameWindow) window,ref);\r\n\t}",
"@Override\n\tpublic final Image getImage() {\n\t\treturn this.getSprite().getImage();\n\t}",
"public Img getImage(long id){\n\n Img imageObj = null;\n\n List<Img> imgList = null;\n imgList = Img.getImageList(id);\n if(imgList!=null && imgList.size()>0) {\n\n imageObj = imgList.get(0);\n }\n return imageObj;\n }",
"public Image getPokeImg(int index) {\n\t\treturn pokemonImgs[index];\n\t}",
"SysPic selectByPrimaryKey(Integer id);",
"public MyAnimation getSprite();",
"ImageViewTouchBase getMainImage();",
"public synchronized Sprite getSprite(String ref) {\n\t\t// if we've already got the sprite in the cache\n\t\t// then just return the existing version\n\t\tif (sprites.get(ref) != null) {\n\t\t\treturn sprites.get(ref);\n\t\t}\n\t\t\n\t\t// otherwise, go away and grab the sprite from the resource\n\t\t// loader\n\t\t\n\t\t// The ClassLoader.getResource() ensures we get the sprite\n\t\t// from the appropriate place, this helps with deploying the game\n\t\t// with things like webstart. You could equally do a file look\n\t\t// up here.\n\t\ttry (InputStream imgStr = this.getClass().getClassLoader().getResourceAsStream(ref)) {\n\t\t\tif (imgStr == null) {\n\t\t\t\tfail(\"Can't find ref: \"+ref);\n\t\t\t}\n\t\t\t\n\t\t\t// use ImageIO to read the image in\n\t\t\t// create a sprite, add it the cache then return it\n\t\t\tSprite sprite = new Sprite(new Image(imgStr));\n\t\t\t\n\t\t\tsprites.put(ref,sprite);\n\t\t\tnewSprites.put(ref, sprite);\n\t\t\t\n\t\t\treturn sprite;\n\t\t} catch (IOException e) {\n\t\t\tthrow new UncheckedIOException(e);\n\t\t}\n\t\t\n\t}",
"public Sprite getSprite(String spriteName)\n {\n if (this.sprites.containsKey(spriteName))\n return this.sprites.get(spriteName);\n else\n {\n \tSystem.out.println(\"Sprite \" + spriteName + \"does not exist in the bank\");\n return null;\n }\n }",
"public static Drawable getIcon(int param0) {\n }",
"public Image getOne();",
"public Image getImage(int imageID) {\n\t if(imageID >= 0 && imageID < images.size()) {\n\t return images.get(imageID).getImage();\n\t }\n\t \n\t return null;\n\t}",
"public Image sprite(){\n\t\treturn (face);\n\t}",
"String getItemImage();",
"Texture getIcon();",
"public Sprite getSprite(String ref) {\n\t\tif (ref.equals(\"boss\")) {\n\t\t\treturn sprite.get(\"bossSprite\");\n\t\t} else if (ref.equals(\"boss_bullet\")) {\n\t\t\treturn sprite.get(\"bossBulletSprite\");\n\t\t} else if (ref.equals(\"boss_explosion\")) {\n\t\t\treturn sprite.get(\"bossExplosionSprite\");\n\t\t} else if (ref.equals(\"boss_hit\")) {\n\t\t\treturn sprite.get(\"bossHitSprite\");\n\t\t} else if (ref.equals(\"bullet\")) {\n\t\t\treturn sprite.get(\"bulletSprite\");\n\t\t} else if (ref.equals(\"enemy_bullet\")) {\n\t\t\treturn sprite.get(\"enemyBulletSprite\");\n\t\t} else if (ref.equals(\"enemy_explosion\")) {\n\t\t\treturn sprite.get(\"enemyExplosionSprite\");\n\t\t} else if (ref.equals(\"enemy_hit\")) {\n\t\t\treturn sprite.get(\"enemyHitSprite\");\n\t\t} else if (ref.equals(\"green_box\")) {\n\t\t\treturn sprite.get(\"greenBoxSprite\");\n\t\t} else if (ref.equals(\"laser\")) {\n\t\t\treturn sprite.get(\"laserSprite\");\n\t\t} else if (ref.equals(\"player\")) {\n\t\t\treturn sprite.get(\"playerSprite\");\n\t\t} else if (ref.equals(\"player_explosion\")) {\n\t\t\treturn sprite.get(\"playerExplosionSprite\");\n\t\t} else if (ref.equals(\"player_hit\")) {\n\t\t\treturn sprite.get(\"playerHitSprite\");\n\t\t} else if (ref.equals(\"powerup_explosion\")) {\n\t\t\treturn sprite.get(\"powerupExplosionSprite\");\n\t\t} else if (ref.equals(\"red_box\")) {\n\t\t\treturn sprite.get(\"redBoxSprite\");\n\t\t} else {\n\t\t\tSystem.out.println(\"fatal error\");\n\t\t\tSystem.out.println(ref);\n\t\t\treturn null;\n\t\t}\n\t}",
"public Optional<Sprite> select(String spriteKey) {\n\t\tselectedKey = spriteKey;\n\t\treturn current();\n\t}",
"private Sprite getIdeaSprite() {\n\t\tfinal String idea = entity.getIdea();\n\n\t\tif (idea == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn SpriteStore.get().getSprite(\n\t\t\t\t\"data/sprites/ideas/\" + idea + \".png\");\n\t}",
"int getSelectedSpriteValue();",
"private ImageView getListItemGameImage(final Project project) throws IOException {\n\t\tfinal ImageView iv = new ImageView(getResourceAsUrl(gameService.getGameItemPath(project.getGame())).toString());\n\t\tiv.setFitHeight(32);\n\t\tiv.setFitWidth(32);\n\t\treturn iv;\n\t}",
"@Override\n\tpublic final Sprite getSprite() {\n\t\treturn this.sprite;\n\t}",
"protected abstract void chooseSprite();",
"public Image getImage(String key)\n {\n return imageRegistry.get(key);\n }",
"public Bitmap drawableBitmap(int drawableId){\n return BitmapFactory.decodeResource(getResources(), drawableId);\n }",
"private String getRef(int id)\n {\n if (id == 0)\n {\n return \"Sprites/Tile0.gif\";\n }\n else if (id == 1)\n {\n return \"Sprites/PlayerBack.gif\";\n }\n else if (id == 2)\n {\n return \"Sprites/PlayerFront.gif\";\n }\n else if (id == 3)\n {\n return \"Sprites/PlayerLeft.gif\";\n }\n else if (id == 4)\n {\n return \"Sprites/PlayerRight.gif\";\n }\n else if (id == 5)\n {\n return \"Sprites/PlayerBackRun.gif\";\n }\n else if (id == 6)\n {\n return \"Sprites/PlayerFrontRun.gif\";\n }\n else if (id == 7)\n {\n return \"Sprites/PlayerLeftRun.gif\";\n }\n else if (id == 8)\n {\n return \"Sprites/PlayerRightRun.gif\";\n }\n else if (id == 9)\n {\n return \"Sprites/PlayerBackAttack.gif\";\n }\n else if (id == 10)\n {\n return \"Sprites/PlayerFrontKnife.gif\";\n }\n else if (id == 11)\n {\n return \"Sprites/PlayerLeftKnife.gif\";\n }\n else if (id == 12)\n {\n return \"Sprites/PlayerRightKnife.gif\";\n }\n else if (id == 13)\n {\n return \"Sprites/PlayerFrontPistol.gif\";\n }\n else if (id == 14)\n {\n return \"Sprites/PlayerLeftPistol.gif\";\n }\n else if (id == 15)\n {\n return \"Sprites/PlayerRightPistol.gif\";\n }\n else if (id == 16)\n {\n return \"Sprites/PlayerFrontAR.gif\";\n }\n else if (id == 17)\n {\n return \"Sprites/PlayerLeftAR.gif\";\n }\n else if (id == 18)\n {\n return \"Sprites/PlayerRightAR.gif\";\n }\n else if (id == 19)\n {\n return \"Sprites/LightGuardBack.gif\";\n }\n else if (id == 20)\n {\n return \"Sprites/LightGuardFront.gif\";\n }\n else if (id == 21)\n {\n return \"Sprites/LightGuardLeft.gif\";\n }\n else if (id == 22)\n {\n return \"Sprites/LightGuardRight.gif\";\n }\n else if (id == 23)\n {\n return \"Sprites/LightGuardBackRun.gif\";\n }\n else if (id == 24)\n {\n return \"Sprites/LightGuardFrontRun.gif\";\n }\n else if (id == 25)\n {\n return \"Sprites/LightGuardLeftRun.gif\";\n }\n else if (id == 26)\n {\n return \"Sprites/LightGuardRightRun.gif\";\n }\n else if (id == 27)\n {\n return \"Sprites/MediumGuardBack.gif\";\n }\n else if (id == 28)\n {\n return \"Sprites/MediumGuardFront.gif\";\n }\n else if (id == 29)\n {\n return \"Sprites/MediumGuardLeft.gif\";\n }\n else if (id == 30)\n {\n return \"Sprites/MediumGuardRight.gif\";\n }\n else if (id == 31)\n {\n return \"Sprites/MediumGuardBackRun.gif\";\n }\n else if (id == 32)\n {\n return \"Sprites/MediumGuardFrontRun.gif\";\n }\n else if (id == 33)\n {\n return \"Sprites/MediumGuardLeftRun.gif\";\n }\n else if (id == 34)\n {\n return \"Sprites/MediumGuardRightRun.gif\";\n }\n else if (id == 35)\n {\n return \"Sprites/HeavyGuardBack.gif\";\n }\n else if (id == 36)\n {\n return \"Sprites/HeavyGuardFront.gif\";\n }\n else if (id == 37)\n {\n return \"Sprites/HeavyGuardLeft.gif\";\n }\n else if (id == 38)\n {\n return \"Sprites/HeavyGuardRight.gif\";\n }\n else if (id == 39)\n {\n return \"Sprites/HeavyGuardBackRun.gif\";\n }\n else if (id == 40)\n {\n return \"Sprites/HeavyGuardFrontRun.gif\";\n }\n else if (id == 41)\n {\n return \"Sprites/HeavyGuardLeftRun.gif\";\n }\n else if (id == 42)\n {\n return \"Sprites/HeavyGuardRightRun.gif\";\n }\n else if (id == 43)\n {\n return \"Sprites/water1.jpg\"; //was Water.gif\n }\n else if (id == 44)\n {\n return \"Sprites/sand.jpg\"; //was Sand.gif\n }\n else if (id == 45)\n {\n return \"Sprites/tallgrass.png\"; //was TallGrass.gif\n }\n else if (id == 46)\n {\n return \"Sprites/gate.gif\";\n }\n else if (id == 47)\n {\n return \"Sprites/tree.gif\";\n }\n else if (id == 48)\n {\n return \"Sprites/bricks.gif\";\n }\n else if (id == 49)\n {\n return \"Sprites/HorizontalPipes.gif\";\n }\n else if (id == 50)\n {\n return \"Sprites/VerticalPipes.gif\";\n }\n else if (id == 51)\n {\n return \"Sprites/Concrete2.gif\";\n }\n else if (id == 52)\n {\n return \"Sprites/RockWall.gif\";\n }\n else if (id == 53)\n {\n return \"Sprites/SimpleConcrete.gif\";\n }\n else if (id == 54)\n {\n return \"Sprites/DryWall.gif\";\n }\n else if (id == 55)\n {\n return \"Sprites/IndoorFloorTile.gif\";\n }\n else if (id == 56)\n {\n return \"Sprites/woodfloor.png\";\n }\n else if (id == 57)\n {\n return \"Sprites/Door.gif\";\n }\n else if (id == 58)\n {\n return \"Sprites/SecurityDoor.gif\";\n }\n else if (id == 59)\n {\n return \"Sprites/SecurityDoorOpen.gif\";\n }\n else if (id == 60)\n {\n return \"Sprites/VerticalRoadCenter.gif\";\n }\n else if (id == 61)\n {\n return \"Sprites/HorizontalRoadCenter.gif\";\n }\n else if (id == 62)\n {\n return \"Sprites/HorizontalRoadSideLeft.gif\";\n }\n else if (id == 63)\n {\n return \"Sprites/HorizontalRoadSideRight.gif\";\n }\n else if (id == 64)\n {\n return \"Sprites/VerticalRoadSideLeft.gif\";\n }\n else if (id == 65)\n {\n return \"Sprites/VerticalRoadSideRight.gif\";\n }\n else if (id == 66)\n {\n return \"Sprites/RoadSideLowerLeftCorner.gif\";\n }\n else if (id == 67)\n {\n return \"Sprites/RoadSideLowerRightCorner.gif\";\n }\n else if (id == 68)\n {\n return \"Sprites/RoadSideUpperLeftCorner.gif\";\n }\n else if (id == 69)\n {\n return \"Sprites/RoadSideUpperRightCorner.gif\";\n }\n else if (id == 70)\n {\n return \"Sprites/HealthKit.gif\";\n }\n else if (id == 71)\n {\n return \"Sprites/Pistol.png\";\n }\n else if (id == 72)\n {\n return \"Sprites/Silencer.gif\";\n }\n else if (id == 73)\n {\n return \"Sprites/AR.png\";\n }\n else if (id == 74)\n {\n return \"Sprites/Ammo.gif\";\n }\n else if (id == 75)\n {\n return \"Sprites/Cardkey1.gif\";\n }\n else if (id == 76)\n {\n return \"Sprites/Cardkey2.gif\";\n }\n else if (id == 77)\n {\n return \"Sprites/Cardkey3.gif\";\n }\n else if (id == 78)\n {\n return \"Sprites/grass.jpg\"; //Was Grass.gif\n }\n else if (id == 79)\n {\n return \"Sprites/snow.jpg\"; //Was Snow.gif\n }\n else if (id == 80)\n {\n return \"Sprites/fancyfloor2.png\";\n }\n else if (id == 81)\n {\n return \"Sprites/IndoorFloorTile3.gif\";\n }\n else if (id == 82)\n {\n return \"Sprites/whitetiles.png\";\n }\n else if (id == 83)\n {\n return \"Sprites/water2.jpg\"; //Was NightWater.gif\n }\n else if (id == 84)\n {\n return \"Sprites/grass2.jpg\"; //Was NightSand.gif\n }\n else if (id == 85)\n {\n return \"Sprites/LadderUp.gif\";\n }\n else if (id == 86)\n {\n return \"Sprites/LadderDown.gif\";\n }\n else if (id == 87)\n {\n return \"Sprites/ShadowTrail.gif\"; //Was WaterTrail.gif\n }\n else if (id == 88)\n {\n return \"Sprites/PlayerBackCrawl.gif\";\n }\n else if (id == 89)\n {\n return \"Sprites/PlayerFrontCrawl.gif\";\n }\n else if (id == 90)\n {\n return \"Sprites/PlayerLeftCrawl.gif\";\n }\n else if (id == 91)\n {\n return \"Sprites/PlayerRightCrawl.gif\";\n }\n else if (id == 92)\n {\n return \"Sprites/PlayerBackCrawling.gif\";\n }\n else if (id == 93)\n {\n return \"Sprites/PlayerFrontCrawling.gif\";\n }\n else if (id == 94)\n {\n return \"Sprites/PlayerLeftCrawling.gif\";\n }\n else if (id == 95)\n {\n return \"Sprites/PlayerRightCrawling.gif\";\n }\n else if (id == 96)\n {\n return \"Sprites/BoosterPack.gif\";\n }\n else if (id == 97)\n {\n return \"Sprites/desert.jpg\"; //was DesertGround.gif\n }\n else if (id == 98)\n {\n return \"Sprites/duct.png\";\n }\n else if (id == 99)\n {\n return \"Sprites/pinetreetop.png\";\n }\n else if (id == 100)\n {\n return \"Sprites/pinetreebottom.png\";\n }\n else if (id == 101)\n {\n return \"Sprites/PalmTreeTop.png\";\n }\n else if (id == 102)\n {\n return \"Sprites/PalmTreeBottom.png\";\n }\n else if (id == 103)\n {\n return \"Sprites/streetlight_left_top.gif\";\n }\n else if (id == 104)\n {\n return \"Sprites/streetlight_left_bottom.gif\";\n }\n else if (id == 105)\n {\n return \"Sprites/streetlight_right_top.gif\";\n }\n else if (id == 106)\n {\n return \"Sprites/streetlight_right_bottom.gif\";\n }\n else if (id == 107)\n {\n return \"Sprites/Crate.gif\";\n }\n else if (id == 108)\n {\n return \"Sprites/Bloodstain.gif\";\n }\n else if (id == 109)\n {\n return \"Sprites/DarkSolid.gif\";\n }\n else if (id == 110)\n {\n return \"Sprites/SubTopLeft.gif\";\n }\n else if (id == 111)\n {\n return \"Sprites/SubTopRight.gif\";\n }\n else if (id == 112)\n {\n return \"Sprites/computer.png\";\n }\n else if (id == 113)\n {\n return \"Sprites/NoseCone.gif\";\n }\n else if (id == 114)\n {\n return \"Sprites/MissileSegment.gif\";\n }\n else if (id == 115)\n {\n return \"Sprites/LeftFin.gif\";\n }\n else if (id == 116)\n {\n return \"Sprites/MiddleFin.gif\";\n }\n else if (id == 117)\n {\n return \"Sprites/RightFin.gif\";\n }\n else if (id == 118)\n {\n return \"Sprites/fancyfloor.png\";\n }\n else if (id == 119)\n {\n return \"Sprites/Boss1Back.gif\";\n }\n else if (id == 120)\n {\n return \"Sprites/Boss1Front.gif\";\n }\n else if (id == 121)\n {\n return \"Sprites/Boss1Left.gif\";\n }\n else if (id == 122)\n {\n return \"Sprites/Boss1Right.gif\";\n }\n else if (id == 123)\n {\n return \"Sprites/Boss1BackRun.gif\";\n }\n else if (id == 124)\n {\n return \"Sprites/Boss1FrontRun.gif\";\n }\n else if (id == 125)\n {\n return \"Sprites/Boss1LeftRun.gif\";\n }\n else if (id == 126)\n {\n return \"Sprites/Boss1RightRun.gif\";\n }\n else if (id == 127)\n {\n return \"Sprites/Boss2Back.gif\";\n }\n else if (id == 128)\n {\n return \"Sprites/Boss2Front.gif\";\n }\n else if (id == 129)\n {\n return \"Sprites/Boss2Left.gif\";\n }\n else if (id == 130)\n {\n return \"Sprites/Boss2Right.gif\";\n }\n else if (id == 131)\n {\n return \"Sprites/Boss2BackRun.gif\";\n }\n else if (id == 132)\n {\n return \"Sprites/Boss2FrontRun.gif\";\n }\n else if (id == 133)\n {\n return \"Sprites/Boss2LeftRun.gif\";\n }\n else if (id == 134)\n {\n return \"Sprites/Boss2RightRun.gif\";\n }\n else if (id == 135)\n {\n return \"Sprites/Boss3Back.gif\";\n }\n else if (id == 136)\n {\n return \"Sprites/Boss3Front.gif\";\n }\n else if (id == 137)\n {\n return \"Sprites/Boss3Left.gif\";\n }\n else if (id == 138)\n {\n return \"Sprites/Boss3Right.gif\";\n }\n else if (id == 139)\n {\n return \"Sprites/Boss3BackRun.gif\";\n }\n else if (id == 140)\n {\n return \"Sprites/Boss3FrontRun.gif\";\n }\n else if (id == 141)\n {\n return \"Sprites/Boss3LeftRun.gif\";\n }\n else if (id == 142)\n {\n return \"Sprites/Boss3RightRun.gif\";\n }\n else if (id == 143)\n {\n return \"Sprites/IndoorFloorTile5.gif\";\n }\n else if (id == 144)\n {\n return \"Sprites/IndoorFloorTile6.gif\";\n }\n else if (id == 145)\n {\n return \"Sprites/bed1.png\";\n }\n else if (id == 146)\n {\n return \"Sprites/bed2.png\";\n }\n else if (id == 147)\n {\n return \"Sprites/chair.png\";\n }\n else if (id == 148)\n {\n return \"Sprites/desk.png\";\n }\n else if (id == 149)\n {\n return \"Sprites/desk2.png\";\n }\n else if (id == 150)\n {\n return \"Sprites/computer_slacker.png\";\n }\n else if (id == 151)\n {\n return \"Sprites/computer_slacker2.png\";\n }\n else if (id == 152)\n {\n return \"Sprites/conferencedeskbottom.png\";\n }\n else if (id == 153)\n {\n return \"Sprites/conferencedesktop.png\";\n }\n else if (id == 154)\n {\n return \"Sprites/fancycarpet.png\";\n }\n else if (id == 155)\n {\n return \"Sprites/hpainting.png\";\n }\n else if (id == 156)\n {\n return \"Sprites/painting.gif\";\n }\n else if (id == 157)\n {\n return \"Sprites/fancywall.gif\";\n }\n else if (id == 158)\n {\n return \"Sprites/locker.gif\";\n }\n else if (id == 159)\n {\n return \"Sprites/computer2.gif\";\n }\n else if (id == 160)\n {\n return \"Sprites/crate2.gif\";\n }\n else if (id == 161)\n {\n return \"Sprites/tombstone.gif\";\n }\n else if (id == 162)\n {\n return \"Sprites/Scientist1Back.gif\";\n }\n else if (id == 163)\n {\n return \"Sprites/Scientist1Front.gif\";\n }\n else if (id == 164)\n {\n return \"Sprites/Scientist1Left.gif\";\n }\n else if (id == 165)\n {\n return \"Sprites/Scientist1Right.gif\";\n }\n else if (id == 166)\n {\n return \"Sprites/Scientist1BackRun.gif\";\n }\n else if (id == 167)\n {\n return \"Sprites/Scientist1FrontRun.gif\";\n }\n else if (id == 168)\n {\n return \"Sprites/Scientist1LeftRun.gif\";\n }\n else if (id == 169)\n {\n return \"Sprites/Scientist1RightRun.gif\";\n }\n else if (id == 170)\n {\n return \"Sprites/Scientist2Back.gif\";\n }\n else if (id == 171)\n {\n return \"Sprites/Scientist2Front.gif\";\n }\n else if (id == 172)\n {\n return \"Sprites/Scientist2Left.gif\";\n }\n else if (id == 173)\n {\n return \"Sprites/Scientist2Right.gif\";\n }\n else if (id == 174)\n {\n return \"Sprites/Scientist2BackRun.gif\";\n }\n else if (id == 175)\n {\n return \"Sprites/Scientist2FrontRun.gif\";\n }\n else if (id == 176)\n {\n return \"Sprites/Scientist2LeftRun.gif\";\n }\n else if (id == 177)\n {\n return \"Sprites/Scientist2RightRun.gif\";\n }\n else if (id == 178)\n {\n return \"Sprites/StoveTop.gif\";\n }\n else if (id == 179)\n {\n return \"Sprites/chemlab.png\";\n }\n else if (id == 180)\n {\n return \"Sprites/GlassWall.gif\";\n }\n else if (id == 181)\n {\n return \"Sprites/Bullet.gif\";\n }\n else if (id == 182)\n {\n return \"Sprites/RadarFree.gif\";\n }\n else if (id == 183)\n {\n return \"Sprites/RadarObstacle.gif\";\n }\n else if (id == 184)\n {\n return \"Sprites/RadarPlayer.gif\";\n }\n else if (id == 185)\n {\n return \"Sprites/RadarNPC.gif\";\n }\n else if (id == 186)\n {\n return \"Sprites/cactus.png\";\n }\n else if (id == 187)\n {\n return \"Sprites/garagedoor.gif\";\n }\n else if (id == 188)\n {\n return \"Sprites/PlayerFrontSMG.gif\";\n }\n else if (id == 189)\n {\n return \"Sprites/PlayerLeftSMG.gif\";\n }\n else if (id == 190)\n {\n return \"Sprites/PlayerRightSMG.gif\";\n }\n else if (id == 191)\n {\n return \"Sprites/Grenade.gif\";\n }\n else if (id == 192)\n {\n return \"Sprites/RadarObjective.gif\";\n }\n else if (id == 193)\n {\n return \"Sprites/Explosion2.gif\";\n }\n else if (id == 194)\n {\n return \"Sprites/PlayerFrontShotgun.gif\";\n }\n else if (id == 195)\n {\n return \"Sprites/PlayerLeftShotgun.gif\";\n }\n else if (id == 196)\n {\n return \"Sprites/PlayerRightShotgun.gif\";\n }\n else if (id == 197)\n {\n return \"Sprites/CameraUp.gif\";\n }\n else if (id == 198)\n {\n return \"Sprites/CameraDown.gif\";\n }\n else if (id == 199)\n {\n return \"Sprites/CameraLeft.gif\";\n }\n else if (id == 200)\n {\n return \"Sprites/CameraRight.gif\";\n }\n else if (id == 201)\n {\n return \"Sprites/Cardkey4.gif\";\n }\n else if (id == 202)\n {\n return \"Sprites/Cardkey5.gif\";\n }\n else if (id == 203)\n {\n return \"Sprites/NVG.gif\";\n }\n else if (id == 204)\n {\n return \"Sprites/Gasmask.gif\";\n }\n else if (id == 205)\n {\n return \"Sprites/SMG.png\";\n }\n else if (id == 206)\n {\n return \"Sprites/Shotgun.gif\";\n }\n else if (id == 207)\n {\n return \"Sprites/BodyArmor.gif\";\n }\n else if (id == 208)\n {\n return \"Sprites/bookcase.png\";\n }\n else if (id == 209)\n {\n return \"Sprites/GrassWall.png\";\n }\n else if (id == 210)\n {\n return \"Sprites/tank00.png\";\n }\n else if (id == 211)\n {\n return \"Sprites/tank10.png\";\n }\n else if (id == 212)\n {\n return \"Sprites/tank20.png\";\n }\n else if (id == 213)\n {\n return \"Sprites/tank01.png\";\n }\n else if (id == 214)\n {\n return \"Sprites/tank11.png\";\n }\n else if (id == 215)\n {\n return \"Sprites/tank21.png\";\n }\n else if (id == 216)\n {\n return \"Sprites/tank02.png\";\n }\n else if (id == 217)\n {\n return \"Sprites/tank12.png\";\n }\n else if (id == 218)\n {\n return \"Sprites/tank22.png\";\n }\n else if (id == 219)\n {\n return \"Sprites/tankbarrel.png\";\n }\n else if (id == 220)\n {\n return \"Sprites/HorizontalStairs.gif\";\n }\n else if (id == 221)\n {\n return \"Sprites/VerticalStairs.gif\";\n }\n else if (id == 222)\n {\n return \"Sprites/Objective1.gif\";\n }\n else if (id == 223)\n {\n return \"Sprites/Objective2.gif\";\n }\n else if (id == 224)\n {\n return \"Sprites/Objective3.gif\";\n }\n else if (id == 225)\n {\n return \"Sprites/Objective4.gif\";\n }\n else if (id == 226)\n {\n return \"Sprites/Boss4Back.gif\";\n }\n else if (id == 227)\n {\n return \"Sprites/Boss4Front.gif\";\n }\n else if (id == 228)\n {\n return \"Sprites/Boss4Left.gif\";\n }\n else if (id == 229)\n {\n return \"Sprites/Boss4Right.gif\";\n }\n else if (id == 230)\n {\n return \"Sprites/Boss4BackRun.gif\";\n }\n else if (id == 231)\n {\n return \"Sprites/Boss4FrontRun.gif\";\n }\n else if (id == 232)\n {\n return \"Sprites/Boss4LeftRun.gif\";\n }\n else if (id == 233)\n {\n return \"Sprites/Boss4RightRun.gif\";\n }\n else if (id == 234)\n {\n return \"Sprites/nhBack.gif\";\n }\n else if (id == 235)\n {\n return \"Sprites/nhFront.gif\";\n }\n else if (id == 236)\n {\n return \"Sprites/nhLeft.gif\";\n }\n else if (id == 237)\n {\n return \"Sprites/nhRight.gif\";\n }\n else if (id == 238)\n {\n return \"Sprites/nhBackRun.gif\";\n }\n else if (id == 239)\n {\n return \"Sprites/nhFrontRun.gif\";\n }\n else if (id == 240)\n {\n return \"Sprites/nhLeftRun.gif\";\n }\n else if (id == 241)\n {\n return \"Sprites/nhRightRun.gif\";\n }\n else if (id == 242)\n {\n return \"Sprites/Boss0Back.gif\";\n }\n else if (id == 243)\n {\n return \"Sprites/Boss0Front.gif\";\n }\n else if (id == 244)\n {\n return \"Sprites/Boss0Left.gif\";\n }\n else if (id == 245)\n {\n return \"Sprites/Boss0Right.gif\";\n }\n else if (id == 246)\n {\n return \"Sprites/Boss0BackRun.gif\";\n }\n else if (id == 247)\n {\n return \"Sprites/Boss0FrontRun.gif\";\n }\n else if (id == 248)\n {\n return \"Sprites/Boss0LeftRun.gif\";\n }\n else if (id == 249)\n {\n return \"Sprites/Boss0RightRun.gif\";\n }\n else if (id == 250)\n {\n return \"Sprites/Wristwatch.gif\";\n }\n else if (id == 251)\n {\n return \"Sprites/LocationObjective.gif\";\n }\n else if (id == 252){return \"Sprites/stonewall.png\";}\n else if (id == 253){return \"Sprites/stonewall2.png\";}\n else if (id == 254){return \"Sprites/water3.jpg\";}\n else if (id == 255){return \"Sprites/crimescene.gif\";}\n else if (id == 256){return \"Sprites/woodfloor2.jpg\";}\n else if (id == 257){return \"Sprites/fancycarpet2.png\";}\n else if (id == 258){return \"Sprites/surrogate1.gif\";}\n else if (id == 259){return \"Sprites/surrogate2.gif\";}\n else if (id == 260){return \"Sprites/surrogate3.gif\";}\n else if (id == 261){return \"Sprites/female_ally_back.gif\";}\n else if (id == 262){return \"Sprites/female_ally_front.gif\";}\n else if (id == 263){return \"Sprites/female_ally_left.gif\";}\n else if (id == 264){return \"Sprites/female_ally_right.gif\";}\n else if (id == 265){return \"Sprites/female_ally_back_run.gif\";}\n else if (id == 266){return \"Sprites/female_ally_front_run.gif\";}\n else if (id == 267){return \"Sprites/female_ally_left_run.gif\";}\n else if (id == 268){return \"Sprites/female_ally_right_run.gif\";}\n else if (id == 269){return \"Sprites/female_ally_back_workout.gif\";}\n else if (id == 270){return \"Sprites/female_ally_front_workout.gif\";}\n else if (id == 271){return \"Sprites/female_ally_left_workout.gif\";}\n else if (id == 272){return \"Sprites/female_ally_right_workout.gif\";}\n else if (id == 273){return \"Sprites/female_ally_back_run_workout.gif\";}\n else if (id == 274){return \"Sprites/female_ally_front_run_workout.gif\";}\n else if (id == 275){return \"Sprites/female_ally_left_run_workout.gif\";}\n else if (id == 276){return \"Sprites/female_ally_right_run_workout.gif\";}\n else if (id == 277){return \"Sprites/Mutant1Back.gif\";}\n else if (id == 278){return \"Sprites/Mutant1Front.gif\";}\n else if (id == 279){return \"Sprites/Mutant1Left.gif\";}\n else if (id == 280){return \"Sprites/Mutant1Right.gif\";}\n else if (id == 281){return \"Sprites/Mutant1BackRun.gif\";}\n else if (id == 282){return \"Sprites/Mutant1FrontRun.gif\";}\n else if (id == 283){return \"Sprites/Mutant1LeftRun.gif\";}\n else if (id == 284){return \"Sprites/Mutant1RightRun.gif\";}\n else if (id == 285){return \"Sprites/Mutant2Back.gif\";}\n else if (id == 286){return \"Sprites/Mutant2Front.gif\";}\n else if (id == 287){return \"Sprites/Mutant2Left.gif\";}\n else if (id == 288){return \"Sprites/Mutant2Right.gif\";}\n else if (id == 289){return \"Sprites/Mutant2BackRun.gif\";}\n else if (id == 290){return \"Sprites/Mutant2FrontRun.gif\";}\n else if (id == 291){return \"Sprites/Mutant2LeftRun.gif\";}\n else if (id == 292){return \"Sprites/Mutant2RightRun.gif\";}\n else if (id == 293){return \"Sprites/mine.gif\";}\n else if (id == 294){return \"Sprites/laser_horizontal.gif\";}\n else if (id == 295){return \"Sprites/laser_vertical.gif\";}\n else if (id == 296){return \"Sprites/MineDetector.gif\";}\n else if (id == 297){return \"Sprites/white.gif\";}\n else if (id == 298){return \"Sprites/borderbox.gif\";}\n\n else if (id == 299){return \"Sprites/metalboxtop1.gif\";}\n else if (id == 300){return \"Sprites/metalboxbottom1.gif\";}\n else if (id == 301){return \"Sprites/hshadow1.gif\";}\n else if (id == 302){return \"Sprites/vshadow1.gif\";}\n else if (id == 303){return \"Sprites/cshadow1.gif\";}\n else if (id == 304){return \"Sprites/vconeup.gif\";}\n else if (id == 305){return \"Sprites/vconedown.gif\";}\n else if (id == 306){return \"Sprites/vconeleft.gif\";}\n else if (id == 307){return \"Sprites/vconeright.gif\";}\n else if (id == 308){return \"Sprites/RoadCornerLeft.gif\";}\n else if (id == 309){return \"Sprites/RoadCornerRight.gif\";}\n\n else if (id == 310){return \"Sprites/Woman1Back.gif\";}\n else if (id == 311){return \"Sprites/Woman1Front.gif\";}\n else if (id == 312){return \"Sprites/Woman1Left.gif\";}\n else if (id == 313){return \"Sprites/Woman1Right.gif\";}\n else if (id == 314){return \"Sprites/Woman1BackRun.gif\";}\n else if (id == 315){return \"Sprites/Woman1FrontRun.gif\";}\n else if (id == 316){return \"Sprites/Woman1LeftRun.gif\";}\n else if (id == 317){return \"Sprites/Woman1RightRun.gif\";}\n\n else if (id == 318){return \"Sprites/Woman2Back.gif\";}\n else if (id == 319){return \"Sprites/Woman2Front.gif\";}\n else if (id == 320){return \"Sprites/Woman2Left.gif\";}\n else if (id == 321){return \"Sprites/Woman2Right.gif\";}\n else if (id == 322){return \"Sprites/Woman2BackRun.gif\";}\n else if (id == 323){return \"Sprites/Woman2FrontRun.gif\";}\n else if (id == 324){return \"Sprites/Woman2LeftRun.gif\";}\n else if (id == 325){return \"Sprites/Woman2RightRun.gif\";}\n\n else if (id == 326){return \"Sprites/Woman3Back.gif\";}\n else if (id == 327){return \"Sprites/Woman3Front.gif\";}\n else if (id == 328){return \"Sprites/Woman3Left.gif\";}\n else if (id == 329){return \"Sprites/Woman3Right.gif\";}\n else if (id == 330){return \"Sprites/Woman3BackRun.gif\";}\n else if (id == 331){return \"Sprites/Woman3FrontRun.gif\";}\n else if (id == 332){return \"Sprites/Woman3LeftRun.gif\";}\n else if (id == 333){return \"Sprites/Woman3RightRun.gif\";}\n\n else if (id == 334){return \"Sprites/chief_back.gif\";}\n else if (id == 335){return \"Sprites/chief_front.gif\";}\n else if (id == 336){return \"Sprites/chief_left.gif\";}\n else if (id == 337){return \"Sprites/chief_right.gif\";}\n else if (id == 338){return \"Sprites/chief_back_run.gif\";}\n else if (id == 339){return \"Sprites/chief_front_run.gif\";}\n else if (id == 340){return \"Sprites/chief_left_run.gif\";}\n else if (id == 341){return \"Sprites/chief_right_run.gif\";}\n\n else if (id == 342){return \"Sprites/un_guy_back.gif\";}\n else if (id == 343){return \"Sprites/un_guy_front.gif\";}\n else if (id == 344){return \"Sprites/un_guy_left.gif\";}\n else if (id == 345){return \"Sprites/un_guy_right.gif\";}\n else if (id == 346){return \"Sprites/un_guy_back_run.gif\";}\n else if (id == 347){return \"Sprites/un_guy_front_run.gif\";}\n else if (id == 348){return \"Sprites/un_guy_left_run.gif\";}\n else if (id == 349){return \"Sprites/un_guy_right_run.gif\";}\n\n else if (id == 350){return \"Sprites/SpecialGuardBack.gif\";}\n else if (id == 351){return \"Sprites/SpecialGuardFront.gif\";}\n else if (id == 352){return \"Sprites/SpecialGuardLeft.gif\";}\n else if (id == 353){return \"Sprites/SpecialGuardRight.gif\";}\n else if (id == 354){return \"Sprites/SpecialGuardBackRun.gif\";}\n else if (id == 355){return \"Sprites/SpecialGuardFrontRun.gif\";}\n else if (id == 356){return \"Sprites/SpecialGuardLeftRun.gif\";}\n else if (id == 357){return \"Sprites/SpecialGuardRightRun.gif\";}\n\n else if (id == 358){return \"Sprites/truck00.png\";}\n else if (id == 359){return \"Sprites/truck10.png\";}\n else if (id == 360){return \"Sprites/truck20.png\";}\n else if (id == 361){return \"Sprites/truck01.png\";}\n else if (id == 362){return \"Sprites/truck11.png\";}\n else if (id == 363){return \"Sprites/truck21.png\";}\n else if (id == 364){return \"Sprites/truck02.png\";}\n else if (id == 365){return \"Sprites/truck12.png\";}\n else if (id == 366){return \"Sprites/truck22.png\";}\n\n else if (id == 367){return \"Sprites/FireExtinguisher.gif\";}\n else if (id == 368){return \"Sprites/c4.gif\";}\n\n else if (id == 369){return \"Sprites/RoadCornerLeft2.gif\";}\n else if (id == 370){return \"Sprites/RoadCornerRight2.gif\";}\n\n else if (id == 371){return \"Sprites/painting2.gif\";}\n else if (id == 372){return \"Sprites/painting3.gif\";}\n else if (id == 373){return \"Sprites/painting4.gif\";}\n else if (id == 374){return \"Sprites/painting5.gif\";}\n\n else if (id == 375){return \"Sprites/snowparticle.gif\";}\n else if (id == 376){return \"Sprites/rainparticle.gif\";}\n\n else if (id == 377){return \"Sprites/airventclosed.gif\";}\n else if (id == 378){return \"Sprites/airventopen.gif\";}\n\n else if (id == 379){return \"Sprites/wateredgetop.png\";}\n else if (id == 380){return \"Sprites/wateredgebottom.png\";}\n else if (id == 381){return \"Sprites/wateredgeleft.png\";}\n else if (id == 382){return \"Sprites/wateredgeright.png\";}\n else if (id == 383){return \"Sprites/wateredgetopleft.png\";}\n else if (id == 384){return \"Sprites/wateredgetopright.png\";}\n else if (id == 385){return \"Sprites/wateredgebottomleft.png\";}\n else if (id == 386){return \"Sprites/wateredgebottomright.png\";}\n else if (id == 387){return \"Sprites/wateredgetopleftjunction.png\";}\n else if (id == 388){return \"Sprites/wateredgetoprightjunction.png\";}\n else if (id == 389){return \"Sprites/wateredgebottomleftjunction.png\";}\n else if (id == 390){return \"Sprites/wateredgebottomrightjunction.png\";}\n\n else if (id == 391){return \"Sprites/bathroom.png\";}\n\n else if (id == 392){return \"Sprites/treetop.png\";}\n else if (id == 393){return \"Sprites/treebottom.png\";}\n else if (id == 394){return \"Sprites/darktreetop.png\";}\n else if (id == 395){return \"Sprites/darktreebottom.png\";}\n \n else if (id == 396){return \"Sprites/cliff_face.png\";}\n else if (id == 397){return \"Sprites/cliff_left.png\";}\n else if (id == 398){return \"Sprites/cliff_right.png\";}\n else if (id == 399){return \"Sprites/cliff_cornerleft.png\";}\n else if (id == 400){return \"Sprites/cliff_cornerright.png\";}\n else if (id == 401){return \"Sprites/cliff_cornerupperleft.png\";}\n else if (id == 402){return \"Sprites/cliff_cornerupperright.png\";}\n else if (id == 403){return \"Sprites/cliff_face.png\";}\n else if (id == 404){return \"Sprites/GrassWallBottom.png\";}\n\n else if (id == 405){return \"Sprites/oldman_back.gif\";}\n else if (id == 406){return \"Sprites/oldman_front.gif\";}\n else if (id == 407){return \"Sprites/oldman_left.gif\";}\n else if (id == 408){return \"Sprites/oldman_right.gif\";}\n else if (id == 409){return \"Sprites/oldman_back_run.gif\";}\n else if (id == 410){return \"Sprites/oldman_front_run.gif\";}\n else if (id == 411){return \"Sprites/oldman_left_run.gif\";}\n else if (id == 412){return \"Sprites/oldman_right_run.gif\";}\n\n else if (id == 413){return \"Sprites/crippleBack.gif\";}\n else if (id == 414){return \"Sprites/crippleFront.gif\";}\n else if (id == 415){return \"Sprites/crippleLeft.gif\";}\n else if (id == 416){return \"Sprites/crippleRight.gif\";}\n else if (id == 417){return \"Sprites/crippleBackRun.gif\";}\n else if (id == 418){return \"Sprites/crippleFrontRun.gif\";}\n else if (id == 419){return \"Sprites/crippleLeftRun.gif\";}\n else if (id == 420){return \"Sprites/crippleRightRun.gif\";}\n\n else if (id == 421){return \"Sprites/scientist_female_back.gif\";}\n else if (id == 422){return \"Sprites/scientist_female_front.gif\";}\n else if (id == 423){return \"Sprites/scientist_female_left.gif\";}\n else if (id == 424){return \"Sprites/scientist_female_right.gif\";}\n else if (id == 425){return \"Sprites/scientist_female_back_run.gif\";}\n else if (id == 426){return \"Sprites/scientist_female_front_run.gif\";}\n else if (id == 427){return \"Sprites/scientist_female_left_run.gif\";}\n else if (id == 428){return \"Sprites/scientist_female_right_run.gif\";}\n\n else if (id == 429){return \"Sprites/EvaBack.gif\";}\n else if (id == 430){return \"Sprites/EvaFront.gif\";}\n else if (id == 431){return \"Sprites/EvaLeft.gif\";}\n else if (id == 432){return \"Sprites/EvaRight.gif\";}\n else if (id == 433){return \"Sprites/EvaBackRun.gif\";}\n else if (id == 434){return \"Sprites/EvaFrontRun.gif\";}\n else if (id == 435){return \"Sprites/EvaLeftRun.gif\";}\n else if (id == 436){return \"Sprites/EvaRightRun.gif\";}\n\n else if (id == 437){return \"Sprites/man_back.gif\";}\n else if (id == 438){return \"Sprites/man_front.gif\";}\n else if (id == 439){return \"Sprites/man_left.gif\";}\n else if (id == 440){return \"Sprites/man_right.gif\";}\n else if (id == 441){return \"Sprites/man_back_run.gif\";}\n else if (id == 442){return \"Sprites/man_front_run.gif\";}\n else if (id == 443){return \"Sprites/man_left_run.gif\";}\n else if (id == 444){return \"Sprites/man_right_run.gif\";}\n\n else if (id == 445){return \"Sprites/stairs_left_down.png\";}\n else if (id == 446){return \"Sprites/stairs_right_up.png\";}\n else if (id == 447){return \"Sprites/stairs_right_down.png\";}\n else if (id == 448){return \"Sprites/stairs_left_up.png\";}\n else if (id == 449){return \"Sprites/m1911a1.png\";}\n else if (id == 450){return \"Sprites/usp.png\";}\n else if (id == 451){return \"Sprites/fmk3.png\";}\n else if (id == 452){return \"Sprites/p90.png\";}\n else if (id == 453){return \"Sprites/m16.png\";}\n else if (id == 454){return \"Sprites/fara83.png\";}\n else if (id == 455){return \"Sprites/m4.png\";}\n else if (id == 456){return \"Sprites/sa08.png\";}\n else if (id == 457){return \"Sprites/spas12.png\";}\n else if (id == 458){return \"Sprites/saiga12.png\";}\n\n else if (id == 459){return \"Sprites/JuggernautBack.gif\";}\n else if (id == 460){return \"Sprites/JuggernautFront.gif\";}\n else if (id == 461){return \"Sprites/JuggernautLeft.gif\";}\n else if (id == 462){return \"Sprites/JuggernautRight.gif\";}\n else if (id == 463){return \"Sprites/JuggernautBackRun.gif\";}\n else if (id == 464){return \"Sprites/JuggernautFrontRun.gif\";}\n else if (id == 465){return \"Sprites/JuggernautLeftRun.gif\";}\n else if (id == 466){return \"Sprites/JuggernautRightRun.gif\";}\n\n else if (id == 467){return \"Sprites/Juggernaut2Back.gif\";}\n else if (id == 468){return \"Sprites/Juggernaut2Front.gif\";}\n else if (id == 469){return \"Sprites/Juggernaut2Left.gif\";}\n else if (id == 470){return \"Sprites/Juggernaut2Right.gif\";}\n else if (id == 471){return \"Sprites/Juggernaut2BackRun.gif\";}\n else if (id == 472){return \"Sprites/Juggernaut2FrontRun.gif\";}\n else if (id == 473){return \"Sprites/Juggernaut2LeftRun.gif\";}\n else if (id == 474){return \"Sprites/Juggernaut2RightRun.gif\";}\n \n else if (id == 475){return \"Sprites/female_ally_back_swim.gif\";}\n else if (id == 476){return \"Sprites/female_ally_front_swim.gif\";}\n else if (id == 477){return \"Sprites/female_ally_left_swim.gif\";}\n else if (id == 478){return \"Sprites/female_ally_right_swim.gif\";}\n else if (id == 479){return \"Sprites/female_ally_back_run_swim.gif\";}\n else if (id == 480){return \"Sprites/female_ally_front_run_swim.gif\";}\n else if (id == 481){return \"Sprites/female_ally_left_run_swim.gif\";}\n else if (id == 482){return \"Sprites/female_ally_right_run_swim.gif\";}\n\n else if (id == 483){return \"Sprites/GunCameraUp.png\";}\n else if (id == 484){return \"Sprites/GunCameraDown.png\";}\n else if (id == 485){return \"Sprites/GunCameraLeft.png\";}\n else if (id == 486){return \"Sprites/GunCameraRight.png\";}\n\n else if (id == 487){return \"Sprites/drone_up.png\";}\n else if (id == 488){return \"Sprites/drone_down.png\";}\n else if (id == 489){return \"Sprites/drone_left.png\";}\n else if (id == 490){return \"Sprites/drone_right.png\";}\n\n else if (id == 491){return \"Sprites/gun_drone_up.png\";}\n else if (id == 492){return \"Sprites/gun_drone_down.png\";}\n else if (id == 493){return \"Sprites/gun_drone_left.png\";}\n else if (id == 494){return \"Sprites/gun_drone_right.png\";}\n\n else if (id == 495){return \"Sprites/boat00.png\";}\n else if (id == 496){return \"Sprites/boat10.png\";}\n else if (id == 497){return \"Sprites/boat20.png\";}\n\n else if (id == 498){return \"Sprites/boat01.png\";}\n else if (id == 499){return \"Sprites/boat11.png\";}\n else if (id == 500){return \"Sprites/boat21.png\";}\n\n else if (id == 501){return \"Sprites/boat02.png\";}\n else if (id == 502){return \"Sprites/boat12.png\";}\n else if (id == 503){return \"Sprites/boat22.png\";}\n\n else if (id == 504){return \"Sprites/boat03.png\";}\n else if (id == 505){return \"Sprites/boat13.png\";}\n else if (id == 506){return \"Sprites/boat23.png\";}\n\n else if (id == 507){return \"Sprites/boat04.png\";}\n else if (id == 508){return \"Sprites/boat14.png\";}\n else if (id == 509){return \"Sprites/boat24.png\";}\n\n else if (id == 510){return \"Sprites/explosives.png\";}\n\n else if (id == 511){return \"Sprites/roof.png\";}\n else if (id == 512){return \"Sprites/roof2.png\";}\n else if (id == 513){return \"Sprites/roof3.png\";}\n else if (id == 514){return \"Sprites/roof4.png\";}\n\n else if (id == 515){return \"Sprites/window.png\";}\n else if (id == 516){return \"Sprites/window_dark.png\";}\n else if (id == 517){return \"Sprites/window_light.png\";}\n\n else if (id == 518){return \"Sprites/explosives2.png\";}\n else if (id == 519){return \"Sprites/lava.png\";}\n \n else if (id == 520){return \"Sprites/ghost_back.png\";}\n else if (id == 521){return \"Sprites/ghost_front.png\";}\n else if (id == 522){return \"Sprites/ghost_left.png\";}\n else if (id == 523){return \"Sprites/ghost_right.png\";}\n else if (id == 524){return \"Sprites/ghost_back_run.png\";}\n else if (id == 525){return \"Sprites/ghost_front_run.png\";}\n else if (id == 526){return \"Sprites/ghost_left_run.png\";}\n else if (id == 527){return \"Sprites/ghost_right_run.png\";}\n\n else if (id == 528){return \"Sprites/c4Objective.png\";}\n else if (id == 529){return \"Sprites/c4group.png\";}\n\n else if (id == 530){return \"Sprites/hitler_back.gif\";}\n else if (id == 531){return \"Sprites/hitler_front.gif\";}\n else if (id == 532){return \"Sprites/hitler_left.gif\";}\n else if (id == 533){return \"Sprites/hitler_right.gif\";}\n else if (id == 534){return \"Sprites/hitler_back_run.gif\";}\n else if (id == 535){return \"Sprites/hitler_front_run.gif\";}\n else if (id == 536){return \"Sprites/hitler_left_run.gif\";}\n else if (id == 537){return \"Sprites/hitler_right_run.gif\";}\n\n else if (id == 538){return \"Sprites/MutantBossBack.gif\";}\n else if (id == 539){return \"Sprites/MutantBossFront.gif\";}\n else if (id == 540){return \"Sprites/MutantBossLeft.gif\";}\n else if (id == 541){return \"Sprites/MutantBossRight.gif\";}\n else if (id == 542){return \"Sprites/MutantBossBackRun.gif\";}\n else if (id == 543){return \"Sprites/MutantBossFrontRun.gif\";}\n else if (id == 544){return \"Sprites/MutantBossLeftRun.gif\";}\n else if (id == 545){return \"Sprites/MutantBossRightRun.gif\";}\n\n else if (id == 546){return \"Sprites/patient_female.png\";}\n else if (id == 547){return \"Sprites/patient_female2.png\";}\n else if (id == 548){return \"Sprites/patient_male.png\";}\n else if (id == 549){return \"Sprites/patient_male2.png\";}\n else if (id == 550){return \"Sprites/patient_male_hitler.png\";}\n\n else if (id == 551){return \"Sprites/dockedge.png\";}\n else if (id == 552){return \"Sprites/ak104u.png\";}\n else if (id == 553){return \"Sprites/g18.png\";}\n else if (id == 554){return \"Sprites/m3a1sd.png\";}\n else if (id == 555){return \"Sprites/mp7sd.png\";}\n else if (id == 556){return \"Sprites/m1911a1custom.png\";}\n\n else if (id == 557){return \"Sprites/dockedge_left.png\";}\n else if (id == 558){return \"Sprites/dockedge_right.png\";}\n else if (id == 559){return \"Sprites/dockstairs.png\";}\n\n return \"Sprites/Tile0.gif\";\n\n }",
"Bitmap load(String id);",
"@Nullable\n Identifier getTexture(Entity entity);",
"public Image getBulletImg(){ \n return SpriteSheet.playerProjectileSprites[this.frameNumber]; \n }",
"public ImageView getId_image_item_shown() {\n return mHolder.id_image_item_shown;\n }",
"public abstract Drawable getIcon();",
"private Bitmap loadImage(int id) {\n Bitmap bitmap = BitmapFactory.decodeResource(\n context.getResources(), id);\n Bitmap scaled = Bitmap.createScaledBitmap(bitmap, IMAGE_WIDTH,\n IMAGE_HEIGHT, true);\n bitmap.recycle();\n return scaled;\n }",
"private void setImageDynamic(){\n questionsClass.setQuestions(currentQuestionIndex);\n String movieName = questionsClass.getPhotoName();\n ImageView ReferenceToMovieImage = findViewById(R.id.Movie);\n int imageResource = getResources().getIdentifier(movieName, null, getPackageName());\n Drawable img = getResources().getDrawable(imageResource);\n ReferenceToMovieImage.setImageDrawable(img);\n }",
"public Sprite getSprite()\n\t{\n\t\treturn sprite;\n\t}",
"private TextureAtlasSprite getActiveTexture() {\n TextureAtlasSprite activeTexture = Minecraft.getMinecraft().getTextureMapBlocks().getMissingSprite();\n if (texture instanceof TextureBase.Sprite) {\n TextureBase.Sprite sprite = (TextureBase.Sprite) texture;\n activeTexture = sprite.icon;\n } else if (texture instanceof TextureBase.Proxy) {\n TextureBase.Proxy proxySprite = (TextureBase.Proxy) texture;\n if (proxySprite.base instanceof TextureBase.Sprite) {\n activeTexture = ((TextureBase.Sprite) proxySprite.base).icon;\n }\n }\n\n return activeTexture;\n }",
"private void drawAbstract(int resourceId){\n pokemonImage.setImageResource(resourceId);\n }",
"@Override\n\t\tpublic Object getItem(int position)\n\t\t{\n\t\t\treturn imageIds[position];\n\t\t}",
"public Texture getImage(){\n\t\treturn images[0];\t\t\n\t}",
"public Image getVisibleTile(int x, int y) throws SlickException {\r\n Image visibleTileImage = null;\r\n for (int l = this.getLayerCount() - 1; l > -1; l--) {\r\n if (visibleTileImage == null) {\r\n visibleTileImage = this.getTileImage(x, y, l);\r\n continue;\r\n }\r\n }\r\n if (visibleTileImage == null) {\r\n throw new SlickException(\"Tile doesn't have a tileset!\");\r\n }\r\n return visibleTileImage;\r\n }",
"public View getGraphic(T anItem)\n{\n Image img = getImage(anItem);\n return img!=null? new ImageView(img) : null;\n}",
"public ImageView getImage() {\n ImageView and = new ImageView(Image);\n and.setFitWidth(70);\n and.setFitHeight(50);\n return and;\n }",
"public Sprite getSprite() {\n\t\treturn sprite;\n\t}",
"public Sprite getSprite() {\n\t\treturn sprite;\n\t}",
"public void evaluateSprite(){\n if(this.orientation == Orientation.FACING_NORTH) {\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingNorth.png\"));\n }\n if(this.orientation == Orientation.FACING_WEST){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingWest.png\"));\n }\n if(this.orientation == Orientation.FACING_SOUTH){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingSouth.png\"));\n }\n if(this.orientation == Orientation.FACING_EAST){\n texture = new Texture(Gdx.files.internal(\"/assets/gameObjects/playerFacingEast.png\"));\n }\n\n this.sprite = new Sprite(texture);\n }",
"abstract public void loadSprite();",
"@Override\n public Sprite getHurtSprite() {\n return Assets.getInstance().getSprite(\"entity/zombie_blood0.png\");\n }",
"void mo36483b(int i, ImageView imageView, Uri uri);",
"public Image getImageById(final String imageId)\n {\n GetImageByIdQuery getImageByIdQuery = new GetImageByIdQuery(imageId);\n List<Image> ImageList = super.queryResult(getImageByIdQuery);\n if (CollectionUtils.isEmpty(ImageList) || ImageList.size() > 1)\n {\n LOG.error(\"The Image cannot be found by this id:\" + imageId);\n return null;\n }\n return ImageList.get(0);\n }",
"public Sprite getSprite() {\n\t\tlong currTime = System.currentTimeMillis();\n\t\tif(currTime - lastUpdate > timeEach) {\n\t\t\tlastUpdate = currTime;\n\t\t\tcurrSprite++;\n\t\t\tif(currSprite >= sprites.length)\n\t\t\t\tcurrSprite = 0;\n\t\t}\n\t\treturn sprites[currSprite];\n\t}",
"public Sprite loadBitmap(Context context, GL10 gl, int resourceId)\r\n\t{\r\n\t if(context != null && gl != null)\r\n\t {\r\n\t \t//Generate one texture pointer...\r\n\t gl.glGenTextures(1, mTexture, 0);\r\n\t \r\n\t //grab location index\r\n\t int textureID = mTexture[0];\r\n\t \r\n\t\t\t//...and bind it to our array\r\n\t gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID);\r\n\t \r\n\t\t\t//Create Nearest Filtered Texture //GL_NEAREST\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\r\n\t\r\n\t\t\t//Different possible texture parameters, e.g. GL10.GL_CLAMP_TO_EDGE\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT);\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT);\r\n\t\t\t\r\n\t // select modulate to mix texture with color for shading\r\n\t gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, /*GL10.GL_REPLACE*/ GL10.GL_MODULATE);\r\n\t\r\n\t InputStream is = context.getResources().openRawResource(resourceId);\r\n\t Bitmap bitmap;\r\n\t try\r\n\t {\r\n\t bitmap = BitmapFactory.decodeStream(is, null, sBitmapOptions);\r\n\t }\r\n\t finally\r\n\t {\r\n\t try\r\n\t {\r\n\t is.close();\r\n\t }\r\n\t catch(IOException e)\r\n\t {\r\n\t //Log.e(\"ImageLoaderIO\", \"DecodeStreamError: \" + e);\r\n\t }\r\n\t }\r\n\t\r\n\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n\t int width = bitmap.getWidth();\r\n\t int height = bitmap.getHeight();\r\n\t \r\n\t // clean up\r\n\t bitmap.recycle();\r\n\t\r\n\t return new Sprite(textureID,width,height);\r\n\t }\r\n\t return null;\r\n\t}",
"public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }",
"public int getmImageResourceId() {\n return mImageResourceId;\n }",
"public ImageFile getImage(int id) {\n if(id < 0)\n return null;\n\n int i = 0;\n int size = imageFiles.size();\n while(id != imageFiles.get(i).getItemID()) {\n i++;\n if(size <= i)\n return null;\n }\n return imageFiles.get(i);\n }",
"public int getImageResourceId() {\r\n return mImageResourceId;\r\n }",
"private int getDrawableByIcon(String iconID) {\n int icon = 0;\n\n //Get drawable according to iconID\n // xxd are for day and xxn are for night\n switch (iconID) {\n case \"01d\":\n icon = R.drawable.ic_01d;\n break;\n case \"02d\":\n icon = R.drawable.ic_02d;\n break;\n case \"03d\":\n icon = R.drawable.ic_03d;\n break;\n case \"04d\":\n icon = R.drawable.ic_04d;\n break;\n case \"09d\":\n icon = R.drawable.ic_09d;\n break;\n case \"10d\":\n icon = R.drawable.ic_10d;\n break;\n case \"11d\":\n icon = R.drawable.ic_11d;\n break;\n case \"13d\":\n icon = R.drawable.ic_13d;\n break;\n case \"50d\":\n icon = R.drawable.ic_50d;\n break;\n case \"01n\":\n icon = R.drawable.ic_01n;\n break;\n case \"02n\":\n icon = R.drawable.ic_02n;\n break;\n case \"03n\":\n icon = R.drawable.ic_03n;\n break;\n case \"04n\":\n icon = R.drawable.ic_04n;\n break;\n case \"09n\":\n icon = R.drawable.ic_09n;\n break;\n case \"10n\":\n icon = R.drawable.ic_10n;\n break;\n case \"11n\":\n icon = R.drawable.ic_11n;\n break;\n case \"13n\":\n icon = R.drawable.ic_13n;\n break;\n case \"50n\":\n icon = R.drawable.ic_50n;\n break;\n\n }\n return icon;\n }",
"public int getImageResourceId() {\n return mImageResourceId;\n }",
"public int getImageResourceId() {\n return mImageResourceId;\n }",
"public int getImageResourceId() {\n return mImageResourceId;\n }",
"public int getImageResourceId() {\n return mImageResourceId;\n }",
"public int getImageResourceId() {\n return mImageResourceId;\n }",
"public static int getImageResourceId() {\n return mImageResourceId;\n }",
"public ImageView getImage(String image) {\r\n\r\n Image shippPic = new Image(image);\r\n ImageView shipImage = new ImageView();\r\n shipImage.setImage(shippPic);\r\n shipImage.setFitWidth(blockSize);\r\n shipImage.setFitHeight(blockSize);\r\n return shipImage;\r\n }",
"public ImageIcon getImage(String key) throws IOException\n\t{\n\t\tif(map == null)\n\t\t{\n\t\t\tcreateHash();\n\t\t}\n\t\t\n\t\treturn(map.get(key));\n\t}",
"public Drawable getDrawable(@NonNull final String key) {\n return getDrawable(key, null);\n }",
"public static ImageUse getByNum(int i) {\n\t\tswitch (i) {\n\t\t\tcase Boardx.BOULDER:\n\t\t\t\treturn BOULDER;\n\t\t\tcase Boardx.CAVEMAN:\n\t\t\t\treturn PLAYER;\n\t\t\tcase Boardx.EMPTY:\n\t\t\t\treturn EMPTY;\n\t\t\tcase Boardx.EXIT:\n\t\t\t\treturn EXIT;\n\t\t\tcase Boardx.HOLE:\n\t\t\t\treturn HOLE;\n\t\t\tcase Boardx.WALL:\n\t\t\t\treturn WALL;\n\t\t\tdefault:\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t}",
"int getSrcId(int index);",
"void mo36481a(int i, ImageView imageView, Uri uri);",
"public static IconBitmap getItemImage(int itemId) {\n int fileId = itemId / ITEMS_IN_FILE;\n int itemInFile = itemId % ITEMS_IN_FILE;\n\n int row = itemInFile / ITEMS_ON_ROW;\n int col = itemInFile % ITEMS_ON_ROW;\n\n try {\n return new IconBitmap(getItemBitmapFromFileId(fileId), col * ITEM_SIZE, row * ITEM_SIZE);\n } catch (RuntimeException e) {\n // If no corresponding bitmap if found\n // return the missing item logo, found\n // on the last item map.\n // TODO make it select itself the smallest\n return new IconBitmap(getItemBitmapFromFileId(26), (ITEMS_IN_FILE - 1) / ITEMS_ON_ROW * ITEM_SIZE, (ITEMS_ON_ROW - 1) * ITEM_SIZE);\n }\n }",
"@Override\n\tpublic Image findById(Long id) {\n\t\treturn imageRepository.findById(id).get();\n\t}",
"public MyAnimation getFrontSprite();",
"public int getImageResourceIdForExercise(Context context){\n\n TypedArray imagesArray = context.getResources().obtainTypedArray(R.array.images_array);\n int id = 0;\n\n if(musclePart == 1) {\n return imagesArray.getResourceId((exeNumber -1),0);\n }else {\n for (int i = 1; i < imagesArray.length(); i++) {\n if(i == (((musclePart - 1) * 6) + exeNumber) - 1){\n id = imagesArray.getResourceId(i,0);\n break;\n }\n }\n }\n imagesArray.recycle();\n return id;\n }",
"public ImageIdentifier getImageIdentifier() {\n synchronized (this.imageLock) {\n return this.animation.getCurrentImage();\n }\n }",
"public MyAnimation getRearSprite();",
"public String getImgId() {\n return imgId;\n }",
"@Override\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\timgView.setImageResource(imageIds[position]);\n\t\t\t}",
"public View getGraphicAfter(T anItem)\n{\n Image img = getImageAfter(anItem);\n return img!=null? new ImageView(img) : null;\n}",
"EnterprisePicture selectByPrimaryKey(Integer id);",
"Receta getByIdWithImages(long id);",
"public Texture getTexture(int i)\n {\n return mTextures.elementAt(i);\n }",
"public ImageIcon displayItem(Player owner){\n\t\treturn image;\n\t}",
"@GetMapping(\"/partner-imgs/{id}\")\n @Timed\n public ResponseEntity<PartnerImg> getPartnerImg(@PathVariable Long id) {\n log.debug(\"REST request to get PartnerImg : {}\", id);\n Optional<PartnerImg> partnerImg = partnerImgService.findOne(id);\n return ResponseUtil.wrapOrNotFound(partnerImg);\n }",
"public void setImageResourceTo(@DrawableRes int resId, int viewId) {\n ImageView imageView = getViewById(viewId);\n if (imageView != null) {\n imageView.setImageResource(resId);\n }\n }",
"int getAvatar();",
"public int getIconImageNumber(){return iconImageNumber;}",
"public Bitmap getBitmapFromResource(int resourceId) {\n return BitmapFactory.decodeResource(getContext().getResources(), resourceId);\n }",
"public static int getResId(@NonNull String name) {\n Integer resId = map.get(name);\n if(resId != null) return resId;\n else return R.drawable.ic_help_circle;\n }"
] | [
"0.63825047",
"0.6300345",
"0.6088288",
"0.6053803",
"0.6026254",
"0.6018497",
"0.5973069",
"0.5957602",
"0.59541065",
"0.59535885",
"0.59335274",
"0.5815927",
"0.5780013",
"0.57446903",
"0.5716134",
"0.5709531",
"0.5702598",
"0.56996065",
"0.5672419",
"0.56497926",
"0.56353956",
"0.56334853",
"0.5618601",
"0.5617911",
"0.561755",
"0.5616065",
"0.5601726",
"0.5584601",
"0.5572331",
"0.5521061",
"0.5517127",
"0.5484166",
"0.54753053",
"0.5465692",
"0.5453591",
"0.5427941",
"0.5424714",
"0.5404943",
"0.53754467",
"0.5364408",
"0.53632027",
"0.5361102",
"0.5360374",
"0.5357853",
"0.5356497",
"0.53517616",
"0.5337747",
"0.5332438",
"0.53151715",
"0.5312898",
"0.5301695",
"0.52800727",
"0.52727246",
"0.5268177",
"0.5267389",
"0.52549267",
"0.52549267",
"0.52511173",
"0.52492815",
"0.5244811",
"0.5238633",
"0.5238381",
"0.52316886",
"0.52080905",
"0.5204233",
"0.51916295",
"0.51900125",
"0.5180796",
"0.5179193",
"0.51748633",
"0.51748633",
"0.51748633",
"0.51748633",
"0.51748633",
"0.51655644",
"0.51595724",
"0.51595134",
"0.515928",
"0.5155816",
"0.51513165",
"0.51481605",
"0.51445657",
"0.51386124",
"0.5132873",
"0.51119614",
"0.5111894",
"0.51034325",
"0.50942516",
"0.50859416",
"0.50807995",
"0.5077224",
"0.5072645",
"0.5070965",
"0.5067372",
"0.5065632",
"0.50592095",
"0.5059074",
"0.5056716",
"0.50503725",
"0.5046836"
] | 0.8716144 | 0 |
Get the highlevel status of a game inprogress, notably points, lives, etc | Map<String, Double> getStatus(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public GameState getGameProgress() {\r\n return gameProgress;\r\n }",
"com.lvl6.proto.EventQuestProto.QuestProgressResponseProto.QuestProgressStatus getStatus();",
"public int status() \n {\n \tif (stonesCount(7,12) != 0 && stonesCount(0,5) != 0)\n \t\treturn GAME_NOT_OVER;\n \telse if (stonesCount(7,13) < stonesCount(0,6))\n \t\treturn GAME_OVER_WIN;\n \telse if (stonesCount(7,13) == stonesCount(0,6))\n \t\treturn GAME_OVER_TIE;\n \telse\n \t\treturn GAME_OVER_LOSE;\n }",
"public GameStatus getStatus() {\n\t\treturn status;\n\t}",
"public static Gamestatus getGameStatus() {\r\n\t\treturn STATUS;\r\n\t}",
"public String getGameStatus() {\n return gameStatus;\n }",
"@Override\n public int status() {\n if (currentLoad <= maxLoad && currentLoad >= 0.6 * maxLoad) return GOOD;\n if (currentLoad < 0.6 * maxLoad && currentLoad >= 0.1 * maxLoad) return CHECK;\n else return BAD;\n }",
"public static void battleStatus(){\n Program.terminal.println(\"________________TURN \"+ turn +\"________________\");\n Program.terminal.println(\"\");\n Program.terminal.println(\" +-------------------- \");\n Program.terminal.println(\" |Name:\"+ currentMonster.name);\n Program.terminal.println(\" |HP: \" + currentMonster.currentHp+\"/\"+currentMonster.hp);\n Program.terminal.println(\" |\" + barGauge(1));\n Program.terminal.println(\" +-------------------- \");\n Program.terminal.println(\"\");\n Program.terminal.println(\"My HP:\" + MainCharacter.hpNow +\"/\"+ MainCharacter.hpMax + \" \" + barGauge(2));\n Program.terminal.println(\"My MP:\" + MainCharacter.mpNow +\"/\"+ MainCharacter.mpMax + \" \" + barGauge(3));\n Program.terminal.println(\"\");\n askAction();\n }",
"public GameStatus getGameStatus() {\n return gameStatus;\n }",
"public void progressTheGame() {\r\n gameProgress = GameState.values()[this.gameProgress.ordinal()+1];\r\n }",
"Integer getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"int getStatus();",
"public GameInfo getGameInfo() throws InterruptedException, IOException, URISyntaxException {\n String json = caller.GET(\"game/status\");\n\n GsonBuilder builder = new GsonBuilder();\n builder.registerTypeAdapter(GameInfo.class, new GameInfoDeserializer());\n\n Gson gson = builder.create();\n\n return gson.fromJson(json, GameInfo.class);\n }",
"public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }",
"public abstract String currentStatus();",
"public int getGameStatus() {\n int status = BattleshipGame.GAME_ILLEGAL_EXIT;\n try {\n status = dis.readInt();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n return status;\n }",
"public abstract OnlineStatus getStatus();",
"public com.lvl6.proto.EventQuestProto.QuestProgressResponseProto.QuestProgressStatus getStatus() {\n return status_;\n }",
"public int getStatus();",
"public int getStatus();",
"public int getStatus();",
"public CoreState getCurrentStatus() {\n return doStuffStrategy.determineCurrentStatus(this, 3000);\r\n }",
"public int getLoadingStatus()\n/* */ {\n/* 119 */ return this.loadingStatus;\n/* */ }",
"public com.lvl6.proto.EventQuestProto.QuestProgressResponseProto.QuestProgressStatus getStatus() {\n return status_;\n }",
"public GuessGameStat getGameStatus(String username) {\n GuessGameStat guessGameStat = (GuessGameStat) super.getGameStatus(username);\n if (guessGameStat == null) {\n guessGameStat = new GuessGameStat(username);\n }\n return guessGameStat;\n }",
"Float getStatus();",
"public void doUpdateStatus() throws GameException\r\n {\n \r\n }",
"String status();",
"String status();",
"private char getGameStatus() {\n int row;\n int col;\n\n Map<Character, Integer> lineCounts = new HashMap<>();\n\n for (row = 0; row < this.boardSize; row++) {\n countLine(getLineStatus(this.board[row]), lineCounts);\n }\n\n for (col = 0; col < this.boardSize; col++) {\n countLine(getLineStatus(getColumn(col)), lineCounts);\n }\n\n countLine(getLineStatus(getMajorDiag()), lineCounts);\n countLine(getLineStatus(getSubDiag()), lineCounts);\n\n boolean player1Won = lineCounts.getOrDefault(players[0].symbol, 0) > 0;\n boolean player2Won = lineCounts.getOrDefault(players[1].symbol, 0) > 0;\n boolean boardIsFull = lineCounts.getOrDefault(' ', 0) == 0;\n if (player1Won && player2Won) // both players completed lines, it is a tie\n return 'T';\n if (player1Won)\n return players[0].symbol;\n if (player2Won)\n return players[1].symbol;\n if (boardIsFull)\n return 'T';\n return '?';\n }",
"public int[] progressIllness();",
"public Status getStatus();",
"com.polytech.spik.protocol.SpikMessages.Status getStatus();",
"com.polytech.spik.protocol.SpikMessages.Status getStatus();",
"@GET\n\t@Path(\"/status\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic String getStatus() {\n\t\treturn new JSONObject().put(\"currFloor\", Constants.currFloor).put(\"movingState\", Constants.movingState).toString();\n\t}",
"public final long getCurrentProgress() {\n /*\n r9 = this;\n int r0 = r9.getState()\n r1 = 1\n r2 = 0\n if (r0 == r1) goto L_0x0012\n r1 = 2\n if (r0 == r1) goto L_0x0019\n r1 = 3\n if (r0 == r1) goto L_0x0014\n r1 = 4\n if (r0 == r1) goto L_0x0014\n L_0x0012:\n r0 = r2\n goto L_0x0032\n L_0x0014:\n long r0 = r9.getTargetProgress()\n goto L_0x0032\n L_0x0019:\n java.lang.String r0 = \"current_value\"\n long r0 = r9.getLong(r0)\n java.lang.String r4 = \"quest_state\"\n long r4 = r9.getLong(r4)\n r6 = 6\n int r8 = (r4 > r6 ? 1 : (r4 == r6 ? 0 : -1))\n if (r8 == 0) goto L_0x0032\n java.lang.String r4 = \"initial_value\"\n long r4 = r9.getLong(r4)\n long r0 = r0 - r4\n L_0x0032:\n java.lang.String r4 = \"MilestoneRef\"\n int r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r5 >= 0) goto L_0x003e\n java.lang.String r0 = \"Current progress should never be negative\"\n com.google.android.gms.games.internal.zzbd.m3401e(r4, r0)\n r0 = r2\n L_0x003e:\n long r2 = r9.getTargetProgress()\n int r5 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1))\n if (r5 <= 0) goto L_0x004f\n java.lang.String r0 = \"Current progress should never exceed target progress\"\n com.google.android.gms.games.internal.zzbd.m3401e(r4, r0)\n long r0 = r9.getTargetProgress()\n L_0x004f:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.games.quest.zzb.getCurrentProgress():long\");\n }",
"public void printStatus();",
"int getAttackStatStage();",
"public WorkerStatus getStatus(){\r\n\t\ttry {\r\n\t\t\t//System.out.println(\"Place 1\");\r\n\t\t\treturn this.workerStatusHandler.getWorkerStatus(this.getPassword());\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t//System.out.println(\"Place 2\");\r\n\t\t\te.printStackTrace();\r\n\t\t\tdead = true;\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"private void getPrefStatus() {\n Log.i(TAG, \"getPrefStatus()\");\n mPref = getSharedPreferences(PREF_NAME, Context.MODE_WORLD_READABLE\n | Context.MODE_WORLD_WRITEABLE);\n mHasGotPref = true;\n for (int i = SPEED_DIAL_MIN; i < SPEED_DIAL_MAX + 1; ++i) {\n mPrefNumState[i] = mPref.getString(String.valueOf(i), \"\");\n mPrefMarkState[i] = mPref.getInt(String.valueOf(offset(i)), -1);\n }\n }",
"public String showStatus();",
"public void updateGameProgression() {\n \tif (players.size() == 0) {\n \t\tSystem.out.println(\"Game over\");\n \t\tgameOver.set(true);\n \t}\n \tif (goal.checkGoalCompleted().get()) {\n \t\tdungeonCompleted.set(true);\n \t} else {\n \t\tdungeonCompleted.set(false);\n \t}\n }",
"boolean isGameComplete();",
"com.lvl6.proto.EventQuestProto.QuestRedeemResponseProto.QuestRedeemStatus getStatus();",
"public GameState getGameState();",
"public int getGamesCompleted()\r\n {\r\n return this.gamesCompleted;\r\n }",
"public int getPointsHealthy()\n {\n return pointsHealthy;\n }",
"boolean getHealthy();",
"public void printStatus() {\n\t\tSystem.out.println(\"Current : \"+current+\"\\n\"\n\t\t\t\t+ \"Tour restant : \"+nb_rounds+\"\\n\"\n\t\t\t\t\t\t+ \"Troupe restant : \"+nb_to_train);\n\t}",
"public void printStatus(){\n System.out.println();\n System.out.println(\"Status: \");\n System.out.println(currentRoom.getLongDescription());\n currentRoom.printItems();\n System.out.println(\"You have made \" + moves + \" moves so far.\");\n }",
"public boolean getGameStatus(int game_number)\n\t{\n\t\treturn gametype[game_number].Game_Status();\n\t}",
"public ResultStatus getExecutionProgressStatus();",
"String getStatus();",
"String getStatus();",
"String getStatus();",
"String getStatus();",
"String getStatus();",
"public static CurrentStatus getCurrentStatus() {\n\t\treturn GuiDemo2.currentStatus;\n\t}",
"public void displayCurrentState(State game);",
"public void eventProgress() {\n inProgressState.doAction(context);\n System.out.println(context.getState().toString());\n\n // assign judge for event\n judge.assignJudge();\n\n // declare winner of the event\n System.out.print(\"\\nDeclare Winner\\n\");\n winner.declareWinner();\n\n System.out.print(\"\\nThe winner is : \"+winner.getWinner());\n\n // send message to the students\n Student student = new Student();\n student.sendWinnerNotificationToStudents();\n\n // end state of the event\n stopState.doAction(context);\n System.out.println(context.getState().toString());\n\n }",
"public int getStatus ()\n {\n return status;\n }",
"public int getStatus ()\n {\n return status;\n }",
"private void getStatus() {\n\t\t\n\t}",
"private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}",
"int getDefenseStatStage();",
"static private void showMissions() {\n\n Iterator iteratorMissionStatus = allMissions.missionStatus.entrySet().iterator();\n\n while (iteratorMissionStatus.hasNext()) {\n HashMap.Entry entry = (HashMap.Entry) iteratorMissionStatus.next();\n System.out.println((String) entry.getKey() + \": \");\n\n if ((boolean) (entry.getValue()) == false) {\n System.out.print(\"mission in progress\");\n System.out.println(\"\");\n }\n if ((boolean) (entry.getValue()) == true) {\n System.out.print(\"mission is complete\");\n System.out.println(\"\");\n }\n System.out.println(\"\");\n\n }\n }",
"public String printQuestStatus() {\r\n\t\t\tif(this.getCurrentQuest().getName().equals(\"noquest\")) { // INITIAL QUEST CALLED \"noquest\"\r\n\t\t\t\treturn \"You have completed no quests, look for something to do!\";\r\n\t\t\t}\r\n\t\t\telse if(this.getCurrentQuest().sendMessageNext()) {\r\n\t\t\t\tthis.getCurrentQuest().setSendMessageNext(false);\r\n\t\t\t\tthis.getPlayer().gainXp(this.getCurrentQuest().getXpYield());\r\n\t\t\t\treturn this.getCurrentQuest().getCompletionMessage() + \"\\n\" +\r\n\t\t\t\t\t\t\"You gain \" + this.getCurrentQuest().getXpYield() + \" xp. \\n\";\r\n\t\t\t}\r\n\t\t\telse if(this.getCurrentQuest().isCompleted()) {\r\n\t\t\t\treturn \"You have completed your last quest, \" + this.getCurrentQuest().getName() + \". \\n\"\r\n\t\t\t\t\t\t+ \"You can now serach for a new quest. \\n\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn \"Current Quest: \\n\"\r\n\t\t\t\t\t\t+ this.getCurrentQuest().getName() + \"\\n\"\r\n\t\t\t\t\t\t+ this.getCurrentQuest().getDescription() + \"\\n\" + \r\n\t\t\t\t\t\tthis.getCurrentQuest().printProgress();\r\n\r\n\t\t\t}\r\n\t\t}",
"public int gameStatus() {\n \t\tfor(int x = 0;x<3;x++) {\n \t\t\tif((Grid[x][0] == Grid[x][1]) && (Grid[x][1] == Grid[x][2]))\n \t\t\t\tif(Grid[x][0] != 0 && Grid[x][1] != 0 && Grid[x][2] != 0)\n \t\t\t\t\treturn Grid[x][0];\n \t\t}\n \t\tfor(int y=0;y<3;y++) {\n \t\t\tif((Grid[0][y] == Grid[1][y]) && (Grid[1][y] == Grid[2][y])) \n \t\t\t\tif(Grid[0][y] != 0 && Grid[1][y] != 0 && Grid[2][y] != 0)\n \t\t\t\t\treturn Grid[0][y];\n \t\t}\n \t\tif(Grid[0][0] == Grid[1][1] && Grid[1][1] == Grid[2][2]) \n \t\t\tif(Grid[0][0] != 0 && Grid[1][1] != 0 && Grid[2][2] != 0)\n \t\t\t\treturn Grid[0][0];\n \t\tif(Grid[2][0] == Grid[1][1] && Grid[1][1] == Grid[0][2])\n \t\t\tif(Grid[2][0] != 0 && Grid[1][1] != 0 && Grid[0][2] != 0)\n \t\t\t\treturn Grid[0][0];\n \t\tfor(int x = 0;x<3;x++) {\n \t\t\tfor(int y = 0;y<3;y++) {\n \t\t\t\tif(Grid[x][y] == 0)\n \t\t\t\t\treturn 0;\n \t\t\t}\n \t\t}\n \t\treturn 3;\t\t\n \t}",
"public String getPlayersStatus(){\n\t\tString pStatus = \"\";\n\t\tPlayer player;\n\t\tfor(int i = 0; i < this.players.size(); i++){\n\t\t\tplayer = this.players.get(i);\n\t\t\tpStatus += \"[\" +player.getName() + \": \";\n\t\t\tpStatus += Integer.toString(player.numCards()) + \"] \";\n\t\t} \n\t\t\n\t\treturn pStatus;\n\t}",
"public Status getStatus() {\n return board.getStatus();\n }",
"public boolean[] getStatus()\n {\n\t return online;\n }",
"public EnumVar getStatus() {\n return status;\n }",
"boolean getStatus();",
"boolean getStatus();",
"boolean getStatus();",
"public interface IState {\n int getLevel();\n\n float getClock();\n\n int getLives();\n\n int getCurrentScore();\n\n int getRequiredScore();\n\n boolean isGameOver();\n\n @Override\n String toString();\n}",
"public synchronized Status getStatus(){\n return state;\n }",
"public int status() {\n return status;\n }",
"public void loadStatus (){\n\t}",
"public int fetchServerStatus (GUICalcProgressBar progress) {\n\n\t\t// Call the standard function in ServerCmd\n\n\t\tSystem.out.println ();\n\t\tint result = ServerCmd.gui_show_relay_status (progress);\n\n\t\treturn result;\n\t}",
"public int getStatus()\n {\n return status;\n }",
"@Override\n\tpublic int getStatus();",
"@Override\n\tpublic int getStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();",
"boolean hasStatus();"
] | [
"0.6924256",
"0.68483853",
"0.6570773",
"0.651613",
"0.64533794",
"0.6399223",
"0.6341362",
"0.63145727",
"0.6301131",
"0.6202334",
"0.6174774",
"0.6173075",
"0.6173075",
"0.6173075",
"0.6173075",
"0.6173075",
"0.6173075",
"0.6173075",
"0.6173075",
"0.6173075",
"0.6173075",
"0.6173075",
"0.61598724",
"0.6156721",
"0.61543167",
"0.61338145",
"0.6103538",
"0.6102491",
"0.60524297",
"0.60524297",
"0.60524297",
"0.6043921",
"0.6041876",
"0.6023142",
"0.60032666",
"0.5998565",
"0.5993038",
"0.598026",
"0.598026",
"0.5957462",
"0.5952606",
"0.5928051",
"0.59183145",
"0.59183145",
"0.58909523",
"0.58716214",
"0.5858737",
"0.58573663",
"0.5840609",
"0.5838725",
"0.58196056",
"0.5809857",
"0.580218",
"0.57930726",
"0.57850397",
"0.5780561",
"0.5776752",
"0.57720137",
"0.57571447",
"0.5739945",
"0.5738521",
"0.5720083",
"0.571962",
"0.571962",
"0.571962",
"0.571962",
"0.571962",
"0.57147175",
"0.5703496",
"0.56994295",
"0.56987345",
"0.56987345",
"0.56946635",
"0.5693508",
"0.56915843",
"0.568966",
"0.5688869",
"0.56840014",
"0.56823826",
"0.56822896",
"0.5677613",
"0.5672042",
"0.567184",
"0.567184",
"0.567184",
"0.56677735",
"0.56578624",
"0.5649086",
"0.5648185",
"0.5646247",
"0.56446224",
"0.56380373",
"0.56380373",
"0.5636553",
"0.5636553",
"0.5636553",
"0.5636553",
"0.5636553",
"0.5636553",
"0.5636553",
"0.5636553"
] | 0.0 | -1 |
Retrieve information on the cost of each element in terms of the various resources | Map<String, Map<String, Double>> getElementCosts(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public CostInfo getCostInfo();",
"int getResourceCost();",
"List<ResourceSkuCosts> costs();",
"double getCost();",
"double getCost();",
"int getCost();",
"int getCost();",
"int getCost();",
"public void getCosts() {\n\t}",
"public double getCosts();",
"public String getCost() {\n\t\tString t = doc.get(\"cost\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}",
"@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}",
"public abstract double getCost();",
"@Pure\n\tdouble getCost();",
"double getTotalCost();",
"public double getCost() {\t\t \n\t\treturn cost;\n\t}",
"public abstract int getCost();",
"public abstract int getCost();",
"public abstract int getCost();",
"public CostInformation costInformation() {\n return this.innerProperties() == null ? null : this.innerProperties().costInformation();\n }",
"public double getCost()\r\n\t{\treturn this.cost;\t}",
"public double getCost() {\r\n return cost;\r\n }",
"private void getCostAndEta() {\n\n GetVehiclesData vehiclesData = RetrofitClientInstance.getRetrofitInstance().create(GetVehiclesData.class);\n getVehicles.getVehiclesData(vehiclesData);\n setCostToLabel(getVehicles.getCost());\n setETAToLabel(getVehicles.getETA());\n\n }",
"@Override\n public double getCost() {\n return cost;\n }",
"public double getCost() {\n return cost;\n }",
"public double getCost() {\n return cost;\n }",
"@Override\r\n public int getCost() {\r\n return cost;\r\n }",
"public double getCost(){\n return cost;\n }",
"public double getCost() {\r\n\t\treturn cost;\r\n\t}",
"public int getHealthCost();",
"public String getCost() {\n return cost;\n }",
"public double getCost() {\n\t\treturn cost;\n\t}",
"public Integer getCost() {\r\n\t\treturn cost;\r\n\t}",
"public Integer getCost() {\n return cost;\n }",
"public ArrayList<Resource> getDynamicInfo() {\n\t\tArrayList<Resource> resources = new ArrayList<Resource>();\n\t\t// ~~~ CPU\n\t\tResource cpuResource = new Resource();\n\t\tcpuResource.setResourceType(ResourceType.CPU);\n\t\tcpuResource.setName(clientDynamicInfo.getCPUVendor() + \" CPU\");\n\n\t\tAttribute cpuUtilizationAttribute = new Attribute();\n\t\tcpuUtilizationAttribute.setAttributeType(AttributeType.CPUUtilization);\n\t\tcpuUtilizationAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getCPUUsage()));\n\t\tcpuUtilizationAttribute.setDate(new Date());\n\t\tcpuResource.addAttribute(cpuUtilizationAttribute);\n\n\t\tresources.add(cpuResource);\n\t\t// ~~~ RAM\n\t\tResource ramResource = new Resource();\n\t\tramResource.setResourceType(ResourceType.RAM);\n\t\tramResource.setName(\"RAM\");\n\n\t\tAttribute ramFreeAttribute = new Attribute();\n\t\tramFreeAttribute.setAttributeType(AttributeType.FreeMemory);\n\t\tramFreeAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getRAMFreeInfo()));\n\n\t\tramResource.addAttribute(ramFreeAttribute);\n\n\t\tramFreeAttribute.setDate(new Date());\n\n\t\tAttribute ramUtilizationAttribute = new Attribute();\n\t\tramUtilizationAttribute\n\t\t\t\t.setAttributeType(AttributeType.MemoryUtilization);\n\t\tramUtilizationAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getRAMUtilizationInfo()));\n\t\tramResource.addAttribute(ramUtilizationAttribute);\n\n\t\tresources.add(ramResource);\n\t\t// ~~~ SStorage\n\t\tResource sstorageResource = new Resource();\n\t\tsstorageResource.setResourceType(ResourceType.SStorage);\n\t\tsstorageResource.setName(\"SSTORAGE\");\n\n\t\tAttribute sstorageFreeAttribute = new Attribute();\n\t\tsstorageFreeAttribute.setAttributeType(AttributeType.FreeStorage);\n\t\tsstorageFreeAttribute.setValue(Double.parseDouble(clientDynamicInfo\n\t\t\t\t.getSStorageFreeInfo()));\n\t\tsstorageFreeAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageFreeAttribute);\n\n\t\tAttribute sstorageUtilizationAttribute = new Attribute();\n\t\tsstorageUtilizationAttribute\n\t\t\t\t.setAttributeType(AttributeType.StorageUtilization);\n\t\tsstorageUtilizationAttribute.setValue(Double\n\t\t\t\t.parseDouble(clientDynamicInfo.getSStorageUtilizationInfo()));\n\t\tsstorageUtilizationAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageUtilizationAttribute);\n\n\t\tresources.add(sstorageResource);\n\n\t\treturn resources;\n\t}",
"public int getCost(){\r\n\t\treturn this.cost;\r\n\t}",
"public int getCost()\n {\n return cost;\n }",
"@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}",
"public int getCost() {\n \t\treturn cost;\n \t}",
"public int[] getCost(){\n\t\treturn this.cost;\n\t}",
"public double getCost() {\r\n\t \treturn(cost);\r\n\t}",
"public int getCost() {\n return cost;\n }",
"public int getCost() {\n return cost;\n }",
"@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}",
"public double getCost() {\n\n\t\treturn cost;\n\t}",
"public double getCost() {\n\t\treturn this.cost;\n\t}",
"public double getCost() {\n\t\treturn this.cost;\n\t}",
"public int getCost() {\n return cost;\n }",
"com.cantor.drop.aggregator.model.CFTrade.Capacity getCapacity();",
"@Pure\n\tdouble getEstimatedCost();",
"@Override\n public double getCost() {\n\t return 13;\n }",
"public int get_cost() {\n return (int)getUIntElement(offsetBits_cost(), 16);\n }",
"public double getCost() {\n\t\treturn 1.25;\n\t}",
"@GetMapping(\"/{id}/cost\")\n\tpublic Double getItemCost(@PathVariable Long id) {\n\t\treturn itemService.getItemCost(id);\n\t}",
"public int getCost(){\n return this.cost;\n }",
"public int getCost()\r\n\t{\n\t\treturn 70000;\r\n\t}",
"public double getCost() {\n\t\t\n\t\tdouble cost = 0;\n\t\t\n\t\tif (Objects.equals(Size, \"small\"))\n\t\t\tcost = 7.00;\n\t\telse if (Objects.equals(Size, \"medium\"))\n\t\t\tcost = 9.00;\n\t\telse if (Objects.equals(Size, \"large\"))\n\t\t\tcost = 11.00;\n\t\t\n\t\tcost += (Cheese - 1)*1.50;\n\t\tcost += Ham*1.50;\n\t\tcost += Pepperoni*1.50;\n\t\t\n\t\treturn cost;\t\t\n\t}",
"@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}",
"@Override\r\n\tprotected void processCost() {\n\r\n\t}",
"public int getCost() {\n\t\treturn cost;\n\t}",
"@Override\r\n\tpublic double getCost() {\n\t\treturn this.cost_of_icecream;\r\n\t}",
"public BigDecimal getCost() {\r\n return cost;\r\n }",
"public double getCost()\n\t{\n\t\treturn 0.9;\n\t}",
"public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}",
"public BigDecimal getCost() {\n return this.cost;\n }",
"public float getCost() {\r\n\t\treturn this.cost.floatValue();\r\n\t}",
"public float getCapacity();",
"public double getTotalHdGB () { return n.getResources(RESOURCETYPE_HD).stream().mapToDouble(r->r.getCapacity()).sum (); }",
"public double getCost() {\n return quantity*ppu;\n\n }",
"java.util.Map<String, Long>\n getMetricCostsMap();",
"public double getTotalCost() {\r\n return totalCost;\r\n }",
"@Override\n\tpublic double cost() {\n\t\treturn 10000;\n\t}",
"@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}",
"public int getCost() {\n/* 69 */ return this.cost;\n/* */ }",
"public int getCost() { return hki.getBound(); }",
"public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}",
"public List<Fee> getCostsFor(Base base) throws IOException {\n\t\treturn Core.costsFor(base, getHttpMethodExecutor());\n\t}",
"public int getCosts() {\n return costs.get(level);\n }",
"public double getCost() {\r\n\t\t\r\n\t\tif (super.getSize() == \"Small\") { totalCost = 2.00; }\r\n\t\t\r\n\t\tif (super.getSize() == \"Medium\") { totalCost = 2.50; }\r\n\t\t\r\n\t\tif (super.getSize() == \"Large\") { totalCost = 3.00; }\r\n\t\t\r\n\t\treturn totalCost;\r\n\t}",
"int getMetricCostsCount();",
"public double cost()\n\t{\n\t\treturn _dblCost;\n\t}",
"public int getWorkCredCost();",
"public ArrayList<Resource> getStaticInfo() {\n\t\tArrayList<Resource> resources = new ArrayList<Resource>();\n\n\t\t// ~~~ CPU\n\t\tResource cpuResource = new Resource();\n\t\tcpuResource.setResourceType(ResourceType.CPU);\n\t\tcpuResource.setName(clientStaticInfo.getCPUVendor() + \" CPU\");\n\n\t\tAttribute cpuSpeedAttribute = new Attribute();\n\t\tcpuSpeedAttribute.setAttributeType(AttributeType.CPUSpeed);\n\t\tcpuSpeedAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getCPUSpeed()));\n\t\tcpuSpeedAttribute.setDate(new Date());\n\t\tcpuResource.addAttribute(cpuSpeedAttribute);\n\n\t\tresources.add(cpuResource);\n\t\t// ~~~ RAM\n\t\tResource ramResource = new Resource();\n\t\tramResource.setResourceType(ResourceType.RAM);\n\t\tramResource.setName(\"RAM\");\n\n\t\tAttribute ramTotalAttribute = new Attribute();\n\t\tramTotalAttribute.setAttributeType(AttributeType.TotalMemory);\n\t\tramTotalAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getRAMInfo()));\n\t\tramTotalAttribute.setDate(new Date());\n\t\tramResource.addAttribute(ramTotalAttribute);\n\n\t\tresources.add(ramResource);\n\t\t// ~~~ OS\n\t\tResource osResource = new Resource();\n\t\tosResource.setResourceType(ResourceType.OS);\n\t\tosResource.setName(clientStaticInfo.getOSInfo());\n\n\t\tresources.add(osResource);\n\t\t// ~~~ SStorage\n\t\tResource sstorageResource = new Resource();\n\t\tsstorageResource.setResourceType(ResourceType.SStorage);\n\t\tsstorageResource.setName(\"SSTORAGE\");\n\n\t\tAttribute sstorageTotalAttribute = new Attribute();\n\t\tsstorageTotalAttribute.setAttributeType(AttributeType.TotalStorage);\n\t\tsstorageTotalAttribute.setValue(Double.parseDouble(clientStaticInfo\n\t\t\t\t.getSStorageInfo()));\n\t\tsstorageTotalAttribute.setDate(new Date());\n\t\tsstorageResource.addAttribute(sstorageTotalAttribute);\n\n\t\tresources.add(sstorageResource);\n\n\t\treturn resources;\n\t}",
"public int getCost(Tile<T> n1, Tile<T> n2);",
"public BigDecimal getRestCost()\n\t{\n\t\treturn restCost;\n\t}",
"public double get_basic_cost() {\n\t\treturn basiccost;\n\t}",
"@Test\n\tpublic void getCostForItem() {\n\t\tfinal BasketItemImpl bi = new BasketItemImpl();\n\t\tbi.addBasketItem(\"banana\", 2);\n\t\tbi.addBasketItem(\"lemon\", 3);\n\n\t\tfinal int fc = bi.getAllBasketItems().get(\"banana\");\n\t\tassertTrue(Integer.compare(2, fc) == 0);\n\n\t}",
"double info() {\n System.out.println(\"Name: \" + name);\n System.out.println(\"Quantity: \" + Integer.toString(quantity));\n System.out.println(\"Price: \" + Double.toString(price));\n System.out.println(\"Total cost: \" + Double.toString(totalCost) + \"\\n\");\n return totalCost;\n }",
"public String getTotalCost() {\n return this.TotalCost;\n }",
"protected double getPlanCost(Queue<PLANNER_ACTION> actions){\n return actions.size();\n }",
"public double getTotalNumCpus () { return n.getResources(RESOURCETYPE_CPU).stream().mapToDouble(r->r.getCapacity()).sum (); }",
"@Override\n public long cost() {\n return 100;\n }",
"public interface Costs {\n\n /**\n * Return costs for this object\n * @return Costs\n */\n public double getCosts();\n}",
"public int getCapacity( Resource.Type type );",
"public float getTotalCost() {\n return this.totalCost;\n }",
"String getTotalCost() {\n return Double.toString(totalCost);\n }",
"public double getCost(ReadOnlyProperty<Double> linkCost){\r\n\t\tdouble travelCost = 0;\r\n\t\tfor(int l: getLinks()){\r\n\t\t\ttravelCost += getLinkProbability(l) * linkCost.get(l);\r\n\t\t}\r\n\t\treturn travelCost;\r\n\t}",
"@Override\n public int getCost() {\n\treturn 0;\n }",
"public Number getCost()\r\n {\r\n return (m_cost);\r\n }",
"@Override\n public String toString() {\n return (getName() + \" (\" + getCost() + \")\");\n }"
] | [
"0.72447675",
"0.71982634",
"0.6967354",
"0.69117117",
"0.69117117",
"0.66977763",
"0.66977763",
"0.66977763",
"0.6650951",
"0.65935475",
"0.64581776",
"0.6454881",
"0.64532864",
"0.6371298",
"0.6341702",
"0.6332524",
"0.63008434",
"0.63008434",
"0.63008434",
"0.6298227",
"0.62846506",
"0.62521785",
"0.62495965",
"0.623302",
"0.619291",
"0.619291",
"0.61842895",
"0.6173445",
"0.6155154",
"0.6139128",
"0.6118985",
"0.6104653",
"0.6091101",
"0.6081862",
"0.60743254",
"0.6072133",
"0.60599655",
"0.6053854",
"0.60477996",
"0.6034233",
"0.60258174",
"0.60200876",
"0.60200876",
"0.60146344",
"0.60107154",
"0.600734",
"0.600734",
"0.5987828",
"0.5985271",
"0.598513",
"0.5978405",
"0.5961937",
"0.59502035",
"0.59453535",
"0.59379834",
"0.5929901",
"0.59298307",
"0.5922408",
"0.59122956",
"0.5909702",
"0.5894593",
"0.5890906",
"0.5889355",
"0.5862915",
"0.58519745",
"0.58412087",
"0.5827461",
"0.5817734",
"0.5815638",
"0.5809016",
"0.5805572",
"0.57880557",
"0.5784442",
"0.5775318",
"0.57727647",
"0.5771781",
"0.57699883",
"0.57663786",
"0.5765805",
"0.5765689",
"0.5757109",
"0.57499295",
"0.5740027",
"0.5738941",
"0.5736555",
"0.57293695",
"0.57272774",
"0.5725371",
"0.57253313",
"0.5716957",
"0.5716606",
"0.57154006",
"0.57146573",
"0.57131034",
"0.56983453",
"0.56879306",
"0.5679886",
"0.5673344",
"0.56719923",
"0.5667893"
] | 0.6723396 | 5 |
Move a previously created game element to a new location. | void moveElement(int elementId, double xCoordinate, double yCoordinate); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}",
"public void move(){\n\t\t\n\t}",
"public void move() {\n\r\n\t}",
"public abstract void move(int newXPosition, int newYPosition, PiecePosition position) throws BoardException;",
"void movePiece() {\n\n }",
"public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}",
"public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }",
"public void move();",
"public void move();",
"public void movePiece(Coordinate from, Coordinate to);",
"private void placePiece() {\r\n pieces[numPieces] = getRandomPoint();\r\n Game.movePiece(new PositionData(-1,-1,Constants.PLAYER_A_ID), pieces[numPieces]);\r\n numPieces++;\r\n }",
"public void moveTo(Position newPosition)\n\t{\n\t\tcurrentPosition = newPosition;\n\t}",
"public void moveTo(double newX, double newY, double newZ){\n pos[0] = newX;\n pos[1] = newY;\n pos[2] = newZ;\n }",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}",
"@Override\r\n public void moveSoldier(int previousLocationX, int previousLocationY, int newLocationX, int newLocationY) {\r\n\r\n // delete soldier representation from previous location \r\n // then render soldier representation in new location \r\n }",
"public void placePiece(Piece newPiece){pieceAtVertex = newPiece;}",
"private void makeMove() {\r\n //if not all pieces placed, place a new piece\r\n if(numPieces < 3) {\r\n if(pieces == null)\r\n pieces = new PositionData[Constants.NUM_PIECES];\r\n placePiece();\r\n return;\r\n }\r\n //move a random piece to a random location\r\n int pieceNumber = getRandomPiece();\r\n PositionData randomPoint = getRandomPoint();\r\n //move the piece\r\n Game.movePiece(pieces[pieceNumber], randomPoint);\r\n }",
"public void move() {\n\t\t// Override move so we don't move, then get location set by owner.\n\t}",
"public void moveTo(Actor actor, Location newLocation)\n\t {\n\t\t \t//creating the variables to make the code easier to read\n\t\t \tGrid<Actor> grid = actor.getGrid();\n\t\t \tLocation location = actor.getLocation();\n\t\t \n\t if (grid == null)\n\t throw new IllegalStateException(\"This actor is not in a grid.\");\n\t if (grid.get(location) != actor)\n\t throw new IllegalStateException(\n\t \"The grid contains a different actor at location \"\n\t + location + \".\");\n\t if (!grid.isValid(newLocation))\n\t throw new IllegalArgumentException(\"Location \" + newLocation\n\t + \" is not valid.\");\n\n\t if (newLocation.equals(location))\n\t return;\n\t \n\t //this line below was added\n\t actor.removeSelfFromGrid();\n\t //changed the code slightly to make sure now that not being called from within the actor that we refer to the\n\t //actor itself when removing and placing actor on grid\n\t //grid.remove(location);\n\t Actor other = grid.get(newLocation);\n\t if (other != null)\n\t other.removeSelfFromGrid();\n\t location = newLocation;\n\t actor.putSelfInGrid(grid, location);\n\t //grid.put(location, actor);\n\t }",
"public void moveUp(TLProperty element);",
"public void moveToElement(By locator) {\n waitForVisibilityOf(locator);\n Actions action = new Actions(driver);\n action.moveToElement(find(locator)).build().perform();\n }",
"Activity getMoveElementActivity();",
"private void setOtherGameelementPosition(Vector2 newPos, Vector2 startPos,\n\t\t\tVector2 paddingScreen) {\n\n\t\tif (this.getNext() != null) {\n\t\t\tthis.getNext().setOtherGameelementPosition(\n\t\t\t\t\tnew Vector2(newPos.x + this.getWidth(), newPos.y),\n\t\t\t\t\tstartPos, paddingScreen);\n\t\t}\n\n\t\t// Clone Pre Set\n\t\tif (this.getGameElement().getPosition().equals(new Vector2(0, 0))) {\n\t\t\tthis.getGameElement().setPosition(startPos);\n\t\t}\n\n\t\t// Move\n\t\tint centerVertex = (Constants.GAMEELEMENT_WIDTH * (this.getWidth() - 1)) / 2;\n\t\tint x = Constants.GAMEELEMENT_WIDTH * (int) newPos.x;\n\t\tint y = Constants.GAMEELEMENT_WIDTH * (int) newPos.y;\n\n\t\t// Move\n\t\tEvaluationExecutioner.moveAnimation(new Vector2(x + centerVertex\n\t\t\t\t+ paddingScreen.x, y + paddingScreen.y), this.getGameElement(),\n\t\t\t\tfalse);\n\n\t\tif (this.getFamily() != null) {\n\t\t\tthis.getFamily().setOtherGameelementPosition(\n\t\t\t\t\tnew Vector2(newPos.x, newPos.y\n\t\t\t\t\t\t\t+ Constants.EVALUATION_DEFALT_LAYER_DIF), startPos,\n\t\t\t\t\tpaddingScreen);\n\t\t}\n\t}",
"private void moveBack(){\r\n\t\tturnAround();\r\n\t\tmove();\r\n\t}",
"@Override\n\tpublic void update() {\n\t\tmove();\n\t\tplace();\n\t}",
"@Override\n\tpublic void move() {\n\n\t}",
"public void move() {\n\n }",
"public static void moveElement(int[][] currentPuzzleState, int row1, int column1, int row2, int column2) {\n int tmp = currentPuzzleState[row1][column1];\n currentPuzzleState[row1][column1] = currentPuzzleState[row2][column2];\n currentPuzzleState[row2][column2] = tmp;\n\t}",
"public boolean moveCard(AbstractCard card, CardCollection moveLocation);",
"void move();",
"protected void move()\n {\n // Find a location to move to.\n Debug.print(\"Fish \" + toString() + \" attempting to move. \");\n Location nextLoc = nextLocation();\n\n // If the next location is different, move there.\n if ( ! nextLoc.equals(location()) )\n {\n // Move to new location.\n Location oldLoc = location();\n changeLocation(nextLoc);\n\n // Update direction in case fish had to turn to move.\n Direction newDir = environment().getDirection(oldLoc, nextLoc);\n changeDirection(newDir);\n Debug.println(\" Moves to \" + location() + direction());\n }\n else\n Debug.println(\" Does not move.\");\n }",
"@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}",
"@Override\n\tpublic void move() {\n\t\t\n\t}",
"@Override\n\tpublic void move() {\n\t}",
"public void move() {\n\t\tthis.hero.setPF(1);\n\t\tthis.hero.setState(this.hero.getMoved());\n\t}",
"int placeElement(String elementName, Point2D startCoordinates);",
"@Override\r\n\tpublic void move() {\n\r\n\t}",
"public void move() {\n super.move(DIRECTION.getRandom());\n }",
"public void moveInside(Field.RadioData rd, Location newLoc)\r\n {\r\n rd = move(rd, newLoc);\r\n if(Main.ASSERT) Util.assertion(rd==null);\r\n }",
"public void updateGameelementPosition(int difX, int difY) {\n\t\tif (this.getNext() != null) {\n\t\t\tthis.getNext().updateOtherGameelementPosition(difX, difY);\n\t\t}\n\n\t\tif (this.getFamily() != null) {\n\t\t\tthis.getFamily().updateOtherGameelementPosition(difX, difY);\n\t\t}\n\n\t\t// Move\n\t\tVector2 actPosition = this.getGameElement().getPosition();\n\t\tactPosition.x += (Constants.GAMEELEMENT_WIDTH * difX);\n\t\tactPosition.y += (Constants.GAMEELEMENT_WIDTH * difY);\n\t\t// Start next evaluationStep\n\n\t\tEvaluationExecutioner.moveAnimation(actPosition, this.getGameElement(),\n\t\t\t\ttrue);\n\t}",
"public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}",
"public void moveChild( ChildType child, int index );",
"public abstract Field.RadioData move(Field.RadioData radioData, Location newLoc);",
"public void moveTo(Vector position) {\n }",
"@Override\r\n public void moveCard() {\n \r\n }",
"private void moveTile()\n {\n int[] moveIndices = null;\n \n int sourceRow = moveIndices[0];\n int sourceCol = moveIndices[1];\n int destRow = moveIndices[2] - 1;\n int destCol = moveIndices[3];\n \n if (sourceRow == 0) \n {\n try\n {\n game.playTileFromHand(sourceCol, destRow, destCol);\n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n else\n {\n sourceRow--;\n try\n {\n game.moveTileInBoard(sourceRow, sourceCol, destRow, destCol); \n }\n catch(ArrayIndexOutOfBoundsException ex)\n {\n // TODO: ConsoleUtils.message(\"Unable to complete your play, wrong indices!\");\n }\n }\n }",
"public void Move()\n {\n \n }",
"private void move(double newXPos){\n this.setX(newXPos);\n }",
"public void move() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n if (gr.isValid(next)) {\n setDirection(getLocation().getDirectionToward(next));\n moveTo(next);\n } else {\n removeSelfFromGrid();\n }\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }",
"void makeMove(Location loc);",
"public abstract void move(Position position);",
"public static void moveToElement(WebDriver driver,WebElement element)\r\n\t{\r\n\t\tActions act=new Actions(driver);\r\n\t\tact.moveToElement(element).perform();\r\n\t}",
"public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }",
"public void makeMove() {\n\t\tif (CheckForVictory(this)) {\n\t\t\t// System.out.println(\"VICTORY\");\n\t\t\tInterface.goalReached = true;\n\t\t\tfor (int i = 0; i < tmpStrings.length; i++) {\n\t\t\t\tif (moveOrder[i] == 0)\n\t\t\t\t\ttmpStrings[i] = \"turn left\";\n\t\t\t\telse if (moveOrder[i] == 1)\n\t\t\t\t\ttmpStrings[i] = \"turn right\";\n\t\t\t\telse\n\t\t\t\t\ttmpStrings[i] = \"go forward\";\n\n\t\t\t\tInterface.info.setText(\"Generation: \" + Parallel.generationNo + 1 + \" and closest distance to goal: \" + 0);\n\t\t\t}\n\t\t} else {\n\t\t\tmoveOrder[this.movesMade] = moves.remove();\n\t\t\tswitch (moveOrder[this.movesMade]) {\n\t\t\tcase (0):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0)\n\t\t\t\t\tface = 3;\n\t\t\t\telse\n\t\t\t\t\tface--;\n\t\t\t\tbreak;\n\t\t\tcase (1):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 3)\n\t\t\t\t\tface = 0;\n\t\t\t\telse\n\t\t\t\t\tface++;\n\t\t\t\tbreak;\n\t\t\tcase (2):\n\t\t\t\tthis.movesMade++;\n\t\t\t\tif (face == 0 && Y - 1 >= 0)\n\t\t\t\t\tY--;\n\t\t\t\telse if (face == 1 && X + 1 <= map[0].length - 1)\n\t\t\t\t\tX++;\n\t\t\t\telse if (face == 2 && Y + 1 <= map.length - 1)\n\t\t\t\t\tY++;\n\t\t\t\telse if (face == 3 && X - 1 >= 0)\n\t\t\t\t\tX--;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Error making move :(\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void place(Position position) { this.position = position; }",
"private void move() {\n\n if(currentPosition.getX() == -1 && currentPosition.getY() == -1) {\n System.out.println(\"Robot is not placed, yet.\");\n return;\n }\n\n Position.Direction direction = currentPosition.getDirection();\n int newX = -1;\n int newY = -1;\n switch (direction) {\n case EAST:\n newX = currentPosition.getX() + 1;\n newY = currentPosition.getY();\n break;\n case WEST:\n newX = currentPosition.getX() - 1;\n newY = currentPosition.getY();\n break;\n case NORTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() + 1;\n break;\n case SOUTH:\n newX = currentPosition.getX();\n newY = currentPosition.getY() - 1;\n break;\n }\n\n if(newX < lowerBound.getX() || newY < lowerBound.getY()\n || newX > upperBound.getX() || newY > upperBound.getY()) {\n System.out.println(\"Cannot move to \" + direction);\n return;\n }\n\n currentPosition.setX(newX);\n currentPosition.setY(newY);\n }",
"@Override\n public void newActiveElement(String elementName, Point2D.Double location){\n Element newElement = getLevel().getLevelElements().get(elementName).createElementCopy(location);\n getActiveElements().put(newElement.getId(),newElement);\n addToFrontEndCommands(new CreateCommand(newElement.getId(),newElement.getImage(),newElement.getElementType(),newElement.getLocation(),newElement.getHeading(), 1, newElement.getRadius()));\n }",
"private void move() {\n resetUpdate();\n\n gameMessage.setSpace1(clientMessage.getSpace1());\n gameMessage.resetGameMessage();\n gameMessage.notify(gameMessage);\n\n\n if( liteGame.isWinner() ) endOfTheGame = true;\n }",
"public void moveFirst() {\n\t\tcurrentElement = 0;\n\t}",
"private void addAnotherElement() {\n\t\t SnakeSquare ss = sSquare.get(sSquare.size() - 1);\n\t\t double velX = ss.getDX();\n\t\t double velY = ss.getDY();\n\t\t \n\t\t double x = ss.getX();\n\t\t double y = ss.getY();\n\t\t double len = ss.getLength();\n\t\t Color c = ss.getColor();\n//\t\t double snakeSize = 10.0f;\n\t\t \n\t\t if(velX == 0 && velY == 0){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}\n\t\t if(velX == 0 && velY == 1){sSquare.add(new SnakeSquare(x, y - snakeSize, c, len));}//move down;\n\t\t if(velX == 0 && velY == -1){sSquare.add(new SnakeSquare(x, y + snakeSize, c, len));}//move up;\n\t\t if(velX == 1 && velY == 0){sSquare.add(new SnakeSquare(x+ snakeSize, y, c, len));}//move right;\n\t\t if(velX == -1 && velY == 0){sSquare.add(new SnakeSquare(x - snakeSize, y, c, len));}// move left;\n\t\t\n\t}",
"public void moveTo(int newX, int newY) {\n xPosition = newX-radius;\n yPosition = newY-radius;\n }",
"@Test\n void RookMoveUp() {\n Board board = new Board(8, 8);\n Piece rook = new Rook(board, 5, 4, 1);\n\n board.getBoard()[5][4] = rook;\n\n board.movePiece(rook, 5, 2);\n\n Assertions.assertEquals(rook, board.getBoard()[5][2]);\n Assertions.assertNull(board.getBoard()[5][4]);\n }",
"protected void mouseMoveTo(WebElement elemento) {\n\t\tnew Actions(getDriver()).moveToElement(aguardaElemento(elemento)).perform();\n\t}",
"public void redoMove(){\n circleObj.setX(newX);\n circleObj.setY(newY);\n }",
"public void move() {\n if(Objects.nonNull(this.position)) {\n Position position = this.getPosition();\n Function<Position, Position> move = moveRobotInDirectionMap.get(position.getDirection());\n this.position = move.apply(position);\n }\n }",
"public void move() {\r\n\t\tmoveCount++;\r\n\t}",
"private void newPiece() {\n curPiece.setRandomShape();\n//compute the initial curX and curY values \n curX = BOARD_WIDTH / 2 + 1;\n curY = BOARD_HEIGHT - 1 + curPiece.minY();\n//if a piece reaches the top and cannot drop any more piece\n if (!tryMove(curPiece, curX, curY)) {\n//cancel timer and display game over\n curPiece.setShape(Tetrominoe.NoShape);\n timer.cancel();\n isStarted = false;\n statusbar.setText(\"Game over\");\n }\n }",
"@Test\n\tpublic void moveToOccupiedSpace() throws Exception {\n\t\tKing obstruction1 = new King(PieceColor.WHITE, 1, 5);\n\t\tKing obstruction2 = new King(PieceColor.BLACK, 5, 1);\n\t\tRook obstruction3 = new Rook(PieceColor.WHITE, 1, 1);\n\t\tQueen obstruction4 = new Queen(PieceColor.BLACK, 6, 5);\n\t\tgame.board.addPiece(obstruction1);\n\t\tgame.board.addPiece(obstruction2);\n\t\tgame.board.addPiece(obstruction3);\n\t\tgame.board.addPiece(obstruction4);\n\t\t\n\t\tgame.board.movePiece(knightCorner1White, 1, 5);\n\t\tgame.board.movePiece(knightCorner2Black, 5, 1);\n\t\tgame.board.movePiece(knightSide1White, 1, 1);\n\t\tgame.board.movePiece(knightSide2Black, 6, 5);\n\t\tassertEquals(knightCorner1White, game.board.getPiece(0, 7));\n\t\tassertEquals(knightCorner2Black, game.board.getPiece(7, 0));\n\t\tassertEquals(knightSide1White, game.board.getPiece(3, 0));\n\t\tassertEquals(knightSide2Black, game.board.getPiece(7, 3));\n\t}",
"public boolean move();",
"public void move()\n {\n if(!pause)\n {\n if(up)\n { \n list.remove(0); \n head = new Location(head.getA(),head.getB()-15); \n list.add(head); \n }\n else if(down)\n {\n list.remove(0); \n head = new Location(head.getA(),head.getB()+15); \n list.add(head); \n }\n else if(left)\n {\n list.remove(0); \n head = new Location(head.getA()-15,head.getB()); \n list.add(head);\n }\n else if(right)\n {\n list.remove(0); \n head = new Location(head.getA()+15,head.getB()); \n list.add(head); \n }\n \n repaint();\n }\n }",
"public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }",
"@Override\n public void move () {\n }",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"public abstract void move();",
"void doneMoving();",
"public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}",
"public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }",
"public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}",
"private void movetoexpectedelement(WebDriver driver2, WebElement signoutimg2) {\n\t\r\n}",
"public abstract void move(int p_index) ;",
"public void moveViewTo(int newX, int newY) {\n int scaledWidth = (int) (TileDataRegister.TILE_WIDTH * scale);\n int scaledHeight = (int) (TileDataRegister.TILE_HEIGHT * scale);\n int baseX = (int) (map.getWidth() * TileDataRegister.TILE_WIDTH * scale) / 2;\n\n int x = baseX + (newY - newX) * scaledWidth / 2;\n x -= viewPortWidth * 0.5;\n\n int y = (newY + newX) * scaledHeight / 2;\n y -= viewPortHeight * 0.5;\n\n targetXOffset = -1 * x;\n targetYOffset = -1 * y;\n\n doPan = true;\n\n gameChanged = true;\n }",
"void makeMove(Move move) {\n assert isLegal(move);\n _moves.add(move);\n Piece replaced = move.replacedPiece();\n int c0 = move.getCol0(), c1 = move.getCol1();\n int r0 = move.getRow0(), r1 = move.getRow1();\n if (replaced != EMP) {\n set(c1, r1, EMP);\n }\n set(c1, r1, move.movedPiece());\n set(c0, r0, EMP);\n _turn = _turn.opposite();\n }",
"public void move(int distance);",
"public void move(){\n super.move();\n load.updateCoordinates(this.x,this.y);\n }",
"public void moveRight() {\n locX = locX + 1;\n }",
"void move(Tile t);",
"public void undoMove();",
"@Test\n void RookMoveToFriendlyOccupied() {\n Board board = new Board(8, 8);\n Piece rook1 = new Rook(board, 4, 3, 1);\n Piece rook2 = new Rook(board, 4, 6, 1);\n\n board.getBoard()[4][3] = rook1;\n board.getBoard()[4][6] = rook2;\n\n board.movePiece(rook1, 4, 6);\n\n Assertions.assertEquals(rook1, board.getBoard()[4][3]);\n Assertions.assertEquals(rook2, board.getBoard()[4][6]);\n }",
"private void overwritePosition(int oldRow, int oldCol, int newRow, int newCol){\n gameBoard[newRow][newCol] = gameBoard[oldRow][oldCol];\n gameBoard[oldRow][oldCol] = new EmptyPiece();\n }",
"Position getNewPosition();",
"public void moveTo(Holder newHolder) throws IllegalArgumentException, IllegaleToestandsUitzondering {\r\n\t\tHolder oldHolder = getHolder();\r\n\t\tif(newHolder == null)\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\tif(!newHolder.canHoldItem(this) || !isValidHolder(newHolder)) { \r\n\t\t\tthrow new IllegaleToestandsUitzondering(\"the given holder isn't valid for this item\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tsetHolder(newHolder);\r\n\t\t\toldHolder.removeItem(this);\r\n\t\t\tnewHolder.addItem(this); \r\n\t\t} catch (IllegaleToestandsUitzondering e) {\r\n\t\t\treset(oldHolder);\r\n\t\t\tthrow e;\r\n\t\t} catch (IllegalArgumentException e) {\r\n\t\t\treset(oldHolder);\r\n\t\t\tthrow e;\r\n\t\t} \r\n\t}",
"protected void move(int newX, int newY) {\n if (grid.inBounds(newX, newY)) {\n grid.exit(this, newX, newY);\n }\n if (grid.valid(newX, newY) && System.currentTimeMillis() - lastMovement > 100) {\n grid.addTokenAt(null, positionX, positionY);\n grid.addTokenAt(this, newX, newY);\n positionX = newX;\n positionY = newY;\n lastMovement = System.currentTimeMillis();\n grid.repaint();\n }\n }",
"@Override\n\tpublic void move() {\n\t\theading = Heading.randHeading();\n\t\tif (heading == Heading.NORTH) {\n\t\t\tthis.location.y -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.EAST) {\n\t\t\tthis.location.x += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.SOUTH) {\n\t\t\tthis.location.y += Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t} else if (heading == Heading.WEST) {\n\t\t\tthis.location.x -= Utilities.rng.nextInt(Simulation.WORLD_SIZE/10);\n\t\t}\n\t\tadjustPos();\n\t\tinfect();\n\t}",
"public void movePawn(Pawn p) {\n pawn = new Pawn(p);\n p.removePawn();\n }"
] | [
"0.664119",
"0.6451863",
"0.63995904",
"0.63076353",
"0.63065445",
"0.62965727",
"0.627384",
"0.62705356",
"0.62505925",
"0.62505925",
"0.62091404",
"0.6197625",
"0.6130696",
"0.61041224",
"0.60790825",
"0.6076921",
"0.6075229",
"0.60653067",
"0.6060216",
"0.60579014",
"0.605582",
"0.6045057",
"0.6032071",
"0.60302323",
"0.6026966",
"0.6014601",
"0.5991267",
"0.59815884",
"0.5974772",
"0.5972143",
"0.59718883",
"0.5968237",
"0.596455",
"0.5954449",
"0.5933028",
"0.59272546",
"0.5923893",
"0.5923799",
"0.5917999",
"0.5909759",
"0.59062403",
"0.5903851",
"0.58832014",
"0.5882423",
"0.5871021",
"0.5866426",
"0.58517176",
"0.58496046",
"0.5842357",
"0.58422434",
"0.5837762",
"0.5826622",
"0.58152",
"0.5812825",
"0.58123547",
"0.58067256",
"0.5801323",
"0.5801103",
"0.58002037",
"0.57983655",
"0.5792235",
"0.5786818",
"0.5782164",
"0.57778406",
"0.57742786",
"0.57709044",
"0.57684106",
"0.5768043",
"0.57679",
"0.57606417",
"0.57472515",
"0.5740271",
"0.5739792",
"0.57351726",
"0.57351726",
"0.57351726",
"0.57351726",
"0.57351726",
"0.57351726",
"0.57351726",
"0.5728507",
"0.5723968",
"0.5713147",
"0.5709677",
"0.5706106",
"0.5700726",
"0.5693609",
"0.56935626",
"0.5692501",
"0.5691511",
"0.5690211",
"0.5684601",
"0.5677671",
"0.56772363",
"0.567283",
"0.5672411",
"0.5666272",
"0.5665181",
"0.56642526",
"0.56639344"
] | 0.744488 | 0 |
Update the properties of a particular game element, without changing the definition of its type. | void updateElementProperties(int elementId, Map<String, String> propertiesToUpdate); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateElementDefinition(String elementName, Map<String, String> propertiesToUpdate, boolean retroactive)\n\t\t\tthrows IllegalArgumentException;",
"@Override\r\n\tpublic void updateElement() {\n\r\n\t}",
"@Override\r\n\tpublic void update(Notification notification, EObject element) {\n\t\tsuper.update(notification, element);\r\n\t}",
"@Override\n\tpublic void update(Epreuve element) throws DaoException {\n\t\t\n\t}",
"@Override\n public void updateProperties() {\n // unneeded\n }",
"public void setElement(String newElem) { element = newElem;}",
"public void setElement(T newvalue);",
"@Override\n protected void updateProperties() {\n }",
"@Override\n\tpublic void setElement(Element element) {\n\t\t\n\t}",
"void update(Type type);",
"@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}",
"public void moveUp(TLProperty element);",
"public void addElement(TLProperty element);",
"public void setElement(Element element) {\n this.element = element;\n }",
"Properties modifyProperties(Properties properties);",
"public void updateProperty(Inspectable object, InspectableProperty property) {\n\n InspectorInterface inspector = null;\n Enumeration e = inspectors.elements();\n while (e.hasMoreElements()) {\n inspector = (InspectorInterface)e.nextElement();\n if (inspector.getInspectedObject()==object)\n inspector.updateProperty(property);\n }\n\n}",
"protected void updateProperties() {\n HomeEnvironment homeEnvironment = this.home.getEnvironment();\n setGroundColor(homeEnvironment.getGroundColor());\n HomeTexture groundTexture = homeEnvironment.getGroundTexture();\n getGroundTextureController().setTexture(groundTexture);\n if (groundTexture != null) {\n setGroundPaint(EnvironmentPaint.TEXTURED);\n } else {\n setGroundPaint(EnvironmentPaint.COLORED);\n }\n setSkyColor(homeEnvironment.getSkyColor());\n HomeTexture skyTexture = homeEnvironment.getSkyTexture();\n getSkyTextureController().setTexture(skyTexture);\n if (skyTexture != null) {\n setSkyPaint(EnvironmentPaint.TEXTURED);\n } else {\n setSkyPaint(EnvironmentPaint.COLORED);\n }\n setLightColor(homeEnvironment.getLightColor());\n setWallsAlpha(homeEnvironment.getWallsAlpha());\n }",
"public void setElement(Object e) {\n element = e;\n }",
"public void setElement (T element) {\r\n\t\t\r\n\t\tthis.element = element;\r\n\t\r\n\t}",
"abstract void updateStructure();",
"public void removeProperty(TLProperty element);",
"@Override\n\tprotected void runUpdate(IJavaElement element, ASTNode node){\n\t\tif((deviceType == null)||(!deviceType.exists())){\n\t\t\trebuild();\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(element != null){\n\t\t\tif(element instanceof ICompilationUnit){\n\t\t\t\tICompilationUnit unit = (ICompilationUnit)element;\n\t\t\t\tif((deviceType != null)&&(deviceType.getCompilationUnit() != null)){\n\t\t\t\t\tif(ModelBuilderUtil.isSameCompilationUnit(unit, \n\t\t\t\t\t\t\tdeviceType.getCompilationUnit())){\n\t\t\t\t\t\tif(deviceField != null){\n\t\t\t\t\t\t\t//Use field, since children are still processed, \n\t\t\t\t\t\t\t//and keeps proper associations\n\t\t\t\t\t\t\tFRCRMechanism recMech = new FRCRMechanism(deviceField);\n\t\t\t\t\t\t\treconcile(recMech);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tsuper.runUpdate(element, node);\n\t\t}\n\t}",
"@Override\n\tpublic boolean update(Etape obj) {\n\t\treturn false;\n\t}",
"void update(T objectToUpdate);",
"public void setElement(T element) {\n\t\tthis.element = element;\n\t}",
"private void updateProperties(){\n loadProperties();\n GameModel gameModel = GameModel.getInstance();\n int level = gameModel.getCurrentLevelIndex();\n //int health = gameModel.getPlayer().getLives();\n //int ammo = gameModel.getPlayer().getAmmunition();\n int highestReachedLevel = getHighestLevelFromProperties();\n\n //checks if player has reached a higher level than before\n if (level>=highestReachedLevel){\n properties.setProperty(\"highestReachedLevel\", Integer.toString(level));\n gameModel.setHighestCompletedLevel(level); //gives model the new highest completed level\n } else {\n properties.setProperty(\"highestReachedLevel\", Integer.toString(highestReachedLevel));\n gameModel.setHighestCompletedLevel(highestReachedLevel);\n }\n\n System.out.println(\"Saved Highest reached levl: \"+properties.getProperty(\"highestReachedLevel\"));\n\n properties.setProperty(\"level\", Integer.toString(level));\n //properties.setProperty(\"health\", Integer.toString(health));\n //properties.setProperty(\"ammo\", Integer.toString(ammo));\n }",
"@Override\n\tpublic void updatePais(Pais elemento) {\n\t\tgetSession().update(elemento);\n\t\t\n\t}",
"public void update() {\r\n gameObjects.update(playState);\r\n }",
"public void setElement(T elem)\n {\n\n element = elem;\n }",
"void defineElement(String elementName, Map<String, String> properties) throws IllegalArgumentException;",
"void updateItem(E itemElementView);",
"@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }",
"@Override\r\n protected void updateObject(SimpleBody object, Entity e) {\n }",
"public void setElement(Element Element) {\n\t\telement = Element;\n\t}",
"public void update(int difTime){\n \tfor (Iterator<Sprite> iterator = graphicsElements.iterator(); iterator.hasNext();) {\n\t\t\tSprite s = (Sprite)iterator.next();\n\t\t\ts.update(difTime);\n \t}\n }",
"public void setAuctionProperty(BoardPiece prop) {\n auctionProperty = (Property) prop;\n }",
"public void update(){}",
"public void update(){}",
"void addOrReplaceProperty(Property prop, Collection<Property> properties);",
"public void updateGameWorld() {\r\n\t\t//divide the user entered height by the height of the canvas to get a ratio\r\n\t\tfloat canvas_height = Window.getCanvas().getHeight();\r\n\t\tfloat new_height = EnvironmentVariables.getHeight();\r\n\t\tfloat ratio = new_height / canvas_height;\r\n\t\t\r\n\t\t//use this ration th=o set the new meter value\r\n\t\tEnvironmentVariables.setMeter(EnvironmentVariables.getMeter() * ratio);\r\n\t\t\r\n\t\t//use the ratio to set all objects new location\r\n\t\tfor(GameObject obj: EnvironmentVariables.getWorldObjects()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tfor(GameObject obj: EnvironmentVariables.getTerrain()) {\r\n\t\t\tobj.setX(obj.getX() * ratio);\r\n\t\t\tobj.setY(obj.getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t\tif(EnvironmentVariables.getMainPlayer() != null) {\r\n\t\t\tEnvironmentVariables.getMainPlayer().setX(EnvironmentVariables.getMainPlayer().getX() * ratio);\r\n\t\t\tEnvironmentVariables.getMainPlayer().setY(EnvironmentVariables.getMainPlayer().getY() * ratio);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onMapElementCreated(MapElement mapElement) {\r\n\t\tfields.put(mapElement, new UIElement(mapElement.getCoord(), UIUtility.getImage(mapElement.getImagePath())));\r\n\r\n\t\tUILogger.log(mapElement + \" changed\");\r\n\r\n\t\t// Notify the GamePanel that its contents need to be repainted\r\n\t\tparent.repaint();\r\n\t\tUILogger.log(\"GamePanel.repaint()\");\r\n\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"public abstract void setProperties(Properties uprop);",
"public void setElement(E element) {\n\t\t\tthis.element = element;\n\t\t}",
"public void updateModel() {\n\t\t// Set the mode to validation\n\t\tmode = UPDATE;\n\t\t// Traverses the source and updates the model when UML elements are\n\t\t// missing\n\t\tinspect();\n\t}",
"private void update() {\n setPieceType();\n initBackground(pieceIndex);\n }",
"@Override\n public T update(T element) {\n return manager.merge(element);\n }",
"<T> Ack editProperty(ProjectEntity entity, Class<? extends PropertyType<T>> propertyType, T data);",
"public void setElement(E element)\n\t{\n\t\tthis.data = element;\n\t}",
"@Override\n\tpublic void update(Object entidade) {\n\t\t\n\t}",
"@Override\n\tpublic void updateFromPerception(IPerception perception)\n\t{\n\t}",
"@Override\n\tpublic void updateFromPerception(IPerception perception)\n\t{\n\t}",
"@Override\n\tpublic void update(Game game) {\n\t\t\n\t}",
"@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}",
"public void updateByObject()\r\n\t{\n\t}",
"private PropertyCard createPropertyElement(Element eElement) {\r\n\t\tif ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.UTILITY )\r\n\t\t{\r\n\t\t return new UtilityPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if (PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.RAILING )\r\n\t\t{\r\n\t\t return new RailingPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.SIMPLE )\r\n\t\t{\r\n\t\t\treturn new PlotPropertyCard(\r\n\t\t\t\tInteger.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t\t,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t\t,PlotPropertyCard.Colour_Type.valueOf(eElement.getElementsByTagName(\"colour\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue0\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValueHotel\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"houseCost\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"hotelCost\").item(0).getTextContent())\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic void update(PartyType entity) {\n\t\t\r\n\t}",
"UpdateType updateType();",
"private static void assignElement(BendingPlayer bPlayer, Element e) {\n\t\tbPlayer.setElement(e);\n\t\tGeneralMethods.saveElements(bPlayer);\n\t\tBukkit.getPlayer(bPlayer.getUUID()).sendMessage(ChatColor.YELLOW + \"You have been born as \" + (e.getType() == ElementType.BENDING ? \"an \" : \"a \") + e.getColor() + e.getName() + e.getType().getBender() + ChatColor.YELLOW + \"!\");\n\t}",
"@Override\n public void update() {\n updateHealth();\n updateActiveWeapon();\n updateAmmunition();\n updateWaveCounter();\n updateReloading();\n }",
"@Override\n public boolean update(Revue objet) {\n return false;\n }",
"public void setElement(WebElement element) {\n\t\t\r\n\t}",
"public void modifyTestElement(TestElement element)\n {\n configureTestElement(element);\n element.setProperty(TCPSampler.SERVER, server.getText());\n element.setProperty(TCPSampler.PORT, port.getText());\n\t\telement.setProperty(TCPSampler.FILENAME, filename.getText());\n\t\telement.setProperty(TCPSampler.NODELAY, nodelay.getText());\n\t\telement.setProperty(TCPSampler.TIMEOUT, timeout.getText());\n }",
"public boolean canModify(Object element, String property) {\r\n\t // Allow editing of all values\r\n\t return true;\r\n\t }",
"public void update(E entity);",
"@Override\n public void itemRPClassUpdate(RPObject entity) {\n }",
"public void update() {}",
"public void setGameProperties(GameProperty [] GameProperties) {\n this.GameProperties = GameProperties;\n }",
"@Test(enabled = false)\n public void addUpdateDeleteSimplePropertiesToDCAEAssetTest() throws Exception {\n createDCAEAsset();\n\n ResourceGeneralPage.getLeftMenu().moveToPropertiesScreen();\n List<PropertyTypeEnum> propertyList = Arrays.asList(PropertyTypeEnum.STRING, PropertyTypeEnum.INTEGER);\n int propertiesCount = PropertiesPage.getElemenetsFromTable().size();\n for (PropertyTypeEnum prop : propertyList) {\n PropertiesUIUtils.addNewProperty(prop);\n }\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size(), () -> PropertiesPage.getElemenetsFromTable()));\n VfVerificator.verifyPropertiesInUI(propertyList);\n PropertiesPage.verifyTotalProperitesField(propertiesCount + propertyList.size());\n\n PropertyTypeEnum prop = propertyList.get(0);\n prop.setDescription(\"updatedDescription\");\n prop.setValue(\"value\");\n PropertiesUIUtils.updateProperty(prop);\n\n PropertiesPage.clickDeletePropertyArtifact(prop.getName());\n assertTrue(GeneralUIUtils.checkElementsCountInTable(propertiesCount + propertyList.size() - 1, () -> PropertiesPage.getElemenetsFromTable()));\n }",
"public void update(int updateType);",
"protected void modifyProperties( NodeKey key,\n Name primaryType,\n Set<Name> mixinTypes,\n Map<Name, AbstractPropertyChange> propChanges ) {\n }",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Test\n public void testUpdateParticle() {\n\n pe.updateParticle(p, 0.0f, new Vector3f(), new Vector3f());\n // at the very start of the anim, the particle should be its start size\n assertThat(p.size, is(0.2f));\n // when some time has passed the particle should have a different size\n p.life -= 2.0f;\n pe.updateParticle(p, 2.0f, new Vector3f(), new Vector3f());\n assertThat(p.size, is(0.56f));\n // updating start-size should change the value\n pe.setStartSize(0.7f);\n // please note that there is no change in life here!\n pe.updateParticle(p, 0.0f, new Vector3f(), new Vector3f());\n assertThat(p.size, is(0.96000004f));\n // same goes for endSize\n pe.setEndSize(3.0f);\n pe.updateParticle(p, 0.0f, new Vector3f(), new Vector3f());\n assertThat(p.size, is(1.1600001f));\n }",
"@Override\n\tpublic boolean update(Eleve o) {\n\t\tmap.replace(o.getId(), o);\n\t\treturn true;\n\t}",
"public void update()\n\t{\n\t\tgameTime++;\n\t\tfor(int i = 0; i<gameObj.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < gameObj[i].size(); j++)\n\t\t\t{\n\t\t\t\t/*If the object implements movable\n\t\t\t\t * call the move method in each object\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof Imovable)\n\t\t\t\t\t((MovableObject)gameObj[i].get(j)).move();\n\t\t\t\t/*call CheckBlink() method in SpaceStation\n\t\t\t\t * if the time % blinkRate == 0\n\t\t\t\t * the visibility with be switched\n\t\t\t\t */\n\t\t\t\tif(gameObj[i].get(j) instanceof SpaceStation)\n\t\t\t\t\t((SpaceStation)gameObj[i].get(j)).checkBlink(gameTime);\n\t\t\t\t/*check if missiles are out of fuel\n\t\t\t\tand remove if fuel = 0\n\t\t\t\t*/\n\t\t\t\tif(gameObj[i].get(j) instanceof Missile)\n\t\t\t\t\tif(((Missile)gameObj[i].get(j)).getFuel() <= 0)\n\t\t\t\t\t\tgameObj[i].remove(j);\n\t\t\t}\n\t\t}\t\t\n\t\tSystem.out.println(\"World updated\");\n\t}",
"abstract public GameElement getGameElement();",
"private void replaceProperty(Motif updated, String property, String newValue) throws ExecutionError {\n if (property.equals(\"Short name\")) {\n updated.setShortName(newValue);\n } else if (property.equals(\"Long name\")) {\n updated.setLongName(newValue);\n } else if (property.equals(\"Consensus\")) {\n updated.setConsensusMotifAndUpdatePWM(newValue);\n } else if (property.equals(\"Factors\")) {\n updated.setBindingFactors(newValue);\n } else if (property.equals(\"Classification\")) {\n if (newValue.matches(\"[^0-9\\\\.]\")) throw new ExecutionError(\"Incorrect class label: \"+newValue);\n int level=MotifClassification.getClassLevel(newValue);\n while (level>4) {\n newValue=MotifClassification.getParentLevel(newValue);\n level=MotifClassification.getClassLevel(newValue);\n }\n if (!MotifClassification.isKnownClassString(newValue)) throw new ExecutionError(\"Unknown motif class:\"+newValue);\n updated.setClassification(newValue);\n } else if (property.equals(\"Quality\")) {\n try {\n int value=Integer.parseInt(newValue);\n if (value<1 || value>6) throw new ExecutionError(\"Quality should be a number between 1 and 6\");\n updated.setQuality(value);\n } catch (NumberFormatException nfe) {\n throw new ExecutionError(\"Unable to parse expected numeric value for quality: \"+newValue);\n }\n } else if (property.equals(\"Alternatives\")) {\n String[] names=newValue.split(\"\\\\s*,\\\\s*\");\n updated.setKnownDuplicatesNames(names);\n } else if (property.equals(\"Interactions\")) {\n String[] names=newValue.split(\"\\\\s*,\\\\s*\");\n updated.setInteractionPartnerNames(names);\n } else if (property.equals(\"Organisms\")) {\n updated.setOrganisms(newValue);\n } else if (property.equals(\"Expression\")) {\n String[] tissues=newValue.split(\"\\\\s*,\\\\s*\");\n updated.setTissueExpression(tissues);\n } else if (property.equals(\"Part\")) {\n if (!Motif.isValidPart(newValue)) throw new ExecutionError(\"'\"+newValue+\"' is not a valid value for the 'part' property\");\n updated.setPart(newValue);\n } else {// userdefined property\n if (!Motif.isValidUserDefinedPropertyKey(property)) throw new ExecutionError(\"'\"+property+\"' is not a valid name for a user-defined property\");\n if (newValue.contains(\";\")) throw new ExecutionError(\"Value can not contain the ';' character\");\n Object value=Motif.getObjectForPropertyValueString(newValue);\n updated.setUserDefinedPropertyValue(property, value);\n }\n }",
"ElementChange getElementChange();",
"public void update()\n\t{\n\t\tsuper.update();\n\t}",
"@Override\n protected void adjustTypeAttributes() {\n this.getSpecialData().addAttribute(SharedMonsterAttributes.maxHealth, 20.0);\n this.getSpecialData().multAttribute(SharedMonsterAttributes.movementSpeed, 1.2);\n }",
"void update(CE entity);",
"public void setElementClass (String elementClass) throws ModelException;",
"void updatedProperty(TestResult tr, String name, String value);",
"@Override\n\tpublic void update() { }",
"void setWaveProperties(Map<String, String> waveProperties, Collection<String> elementNamesToSpawn,\n\t\t\tPoint2D spawningPoint);",
"@Override\r\n\tpublic void updateUpdateableElements(double deltaTime) {\n\t\tfor (int i = 0; i < buttons.length; i++) {\r\n\t\t\tbuttons[i].updateUpdateableElements(deltaTime);\r\n\t\t}\r\n\t\t\r\n\t\t// Update screen\r\n\t\tfor (int i = 0; i < screens.length; i++) {\r\n\t\t\tscreens[i].updateUpdateableElements(deltaTime);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\r\n\t}",
"abstract void putXMLProperty(XMLName name, Object value);",
"void update(ObjectType object)\n throws GuacamoleException;",
"public void update() {\n \t\tthrow new UnsupportedOperationException(\"Not implemented at this level\");\n \t}",
"public void setValue(T element) {\n\t\t\n\t}",
"protected void updateFromTemplate() {\r\n try {\r\n if (templateList.getSelectedItem() != null) {\r\n getConfigurer().loadPropertiesFromFile((String) templateList.getSelectedItem());\r\n Iterator<PropertyInputPanel> it = propertyInputPanels.iterator();\r\n while (it.hasNext()) {\r\n PropertyInputPanel panel = it.next();\r\n \r\n Object currentValue = getConfigurer().getProperty(panel.getName());\r\n if (currentValue != null && panel.isEnabled()) {\r\n panel.setValue(currentValue);\r\n }\r\n \r\n }\r\n }\r\n } catch (ClassCastException e) {\r\n Util.debugMsg(\"Saved template has incompatible data, it will be ignored\");\r\n }\r\n }",
"void update(Member member);",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}"
] | [
"0.68322605",
"0.6466803",
"0.59122753",
"0.5751627",
"0.56630105",
"0.5600026",
"0.5598383",
"0.55877113",
"0.5555216",
"0.55402464",
"0.55052274",
"0.54442143",
"0.5432834",
"0.5388471",
"0.5376164",
"0.53638715",
"0.5350577",
"0.53438663",
"0.5307031",
"0.5284575",
"0.52638334",
"0.52617025",
"0.5247227",
"0.52432513",
"0.521666",
"0.5209989",
"0.52024895",
"0.519239",
"0.51914614",
"0.5183559",
"0.5161288",
"0.51381254",
"0.51381254",
"0.5133995",
"0.5132422",
"0.5131426",
"0.5126359",
"0.5126359",
"0.5122225",
"0.51158774",
"0.51062477",
"0.50880593",
"0.50880593",
"0.50880593",
"0.5083125",
"0.5079123",
"0.507055",
"0.50623983",
"0.5058614",
"0.50561106",
"0.5051677",
"0.5040497",
"0.5039153",
"0.5039153",
"0.5030948",
"0.5016481",
"0.5012028",
"0.5009395",
"0.50048983",
"0.5000053",
"0.49981198",
"0.499717",
"0.4990383",
"0.49875325",
"0.49788746",
"0.49757615",
"0.4971145",
"0.49514264",
"0.49463922",
"0.49447313",
"0.49445635",
"0.49444392",
"0.494334",
"0.49329668",
"0.49329668",
"0.49287754",
"0.49270844",
"0.4921787",
"0.4921447",
"0.49184456",
"0.49176982",
"0.49159724",
"0.49093285",
"0.49081364",
"0.49076396",
"0.49049577",
"0.4900406",
"0.4897704",
"0.48938698",
"0.48936805",
"0.48907447",
"0.48901463",
"0.4887648",
"0.48813906",
"0.48809084",
"0.48734692",
"0.48733467",
"0.4864789",
"0.4864789",
"0.4864789"
] | 0.67630625 | 1 |
Delete a previously created game element. | void deleteElement(int elementId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void deleteElement(ProjectElement element) {\r\n \t\tProject projectInternal = element.getProjectInternal();\r\n projectInternal.getElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \r\n projectInternal.eResource().setModified(true);\r\n \t}",
"private static void deleteElement(RubyProjectElement element) {\r\n \t\tRubyProject projectInternal = element.getRubyProjectInternal();\r\n \t\tprojectInternal.getRubyElementsInternal().remove(element);\r\n \r\n deleteResource(element); \r\n \t}",
"public void delete(T element);",
"void deleteModelElement(EObject modelElement);",
"private static void deleteResource(ProjectElement element) {\r\n \t\tResource resource = element.eResource();\r\n \t\tif (resource != null) {\r\n resource.getContents().remove(element);\r\n resource.unload();\r\n } \r\n \t}",
"@Override\r\n\tpublic void delete(T element) {\n\r\n\t}",
"@Override\n\tpublic void delete(Game game) {\n\t\t\n\t}",
"public <T extends IDBEntities> void delete(T element) {\n\t\tif (element == null)\n\t\t\treturn;\n\t\tEntityManager em = getEM();\n\t\ttry {\n\t\t\tem.getTransaction().begin();\n\t\t\t// Entity must be attached\n\t\t\tif (!em.contains(element))\n\t\t\t\telement = em.merge(element);\n\t\t\tem.remove(element);\n\t\t\tem.getTransaction().commit();\n\t\t} catch (Exception ex) {\n\t\t\tem.getTransaction().rollback();\n\t\t} finally {\n\t\t\tem.close();\n\t\t}\n\t}",
"Form removeElement(Element element);",
"void deleteElementDefinition(String elementName) throws IllegalArgumentException;",
"private void popupDelete() {\n\t\taufzugschacht.removeElement(this);\n\t}",
"private void onDeleteElement(View view) {\n\n\n Node exist = arSceneView.getScene().findByName(TEMP_LINE_STRING);\n if(exist !=null)\n\n {\n arSceneView.getScene().removeChild(exist);\n\n tempLine = null;\n\n }\n\n if(listElements.size()<1) {\n Toast.makeText(MainActivity.this, \"List empty\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n Description r = listElements.get(listElements.size() - 1);\n if (r != null) {\n arSceneView.getScene().removeChild(r.getNode());\n r.getNode().setParent(null);\n listElements.remove(listElements.size() - 1);\n\n }\n\n\n\n\n\n\n\n\n }",
"public static void remove() {\n if (create()) {\n DOM.removeChild((com.google.gwt.user.client.Element) \n tag.getParentElement(), \n (com.google.gwt.user.client.Element) tag);\n tag = null;\n removed = true;\n }\n }",
"public static void borrarElement(Element element) throws Exception {\n\t\tEntityManager em = JPA.em();\n\t\tElementPK pk = new ElementPK();\n\t\tpk.setCodi(element.codi);\n\t\tpk.setComunitat(element.comunitat.nif);\n\t\tElement actorToBeRemoved = em.find(Element.class, pk);\n\n\t\ttry {\n\t\t\tem.remove(actorToBeRemoved);\n\t\t\tem.flush();\n\t\t} catch (Exception e) {\n\t\t\tthrow e;\n\t\t}\n\t}",
"public void deleteItem() {\n\t\tMobileElement el = driver.findElement(By.xpath(\"//android.view.View[@resource-id='\" + deleteButton + \"']\"));\n\t\tel.findElementByClassName(\"android.widget.Button\").click();\n\t\ttry {\n\t\t\tThread.sleep(2000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"boolean remove(String elementId);",
"@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}",
"Form removeElement(String id);",
"public void delete() {\r\n\t\t\tif (!isDeleted && handles.remove(this)) {\r\n\t\t\t\telementsUsed -= count;\r\n\t\t\t\tisDeleted = true;\r\n\t\t\t\tif (elementsUsed < numElements / 4) {\r\n\t\t\t\t\tcompact();\r\n\t\t\t\t\tnumElements = Math.max(10, elementsUsed * 2);\r\n\t\t\t\t}\r\n\t\t\t\tshapePeer.vboHandle = null;\r\n\t\t\t}\r\n\t\t}",
"@Override\n public void eliminarElemento(Object elemento) {\n database.delete(elemento);\n }",
"public abstract void removeElement(int id) throws PositionEX;",
"public void deleteCurrentJoueur(){\n\t\tElement elementPreviousToCurrent = this.getCurrentElement().getPrevious();\n\t\tElement elementNextToCurrent = this.getCurrentElement().getNext();\n\t\t\n\t\telementPreviousToCurrent.setNext(elementNextToCurrent);\n\t\telementNextToCurrent.setPrevious(elementPreviousToCurrent);\n\t\t\n\t\t// l'element suivant devient l'element courant (on passe au suivant)\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}",
"public void cleanRemove(Element element){\n\t\tfor(Element el : element.getElements()){\n\t\t\tnifty.removeElement(nifty.getScreen(\"hud\"),el);\n\t\t}\n\t\tnifty.removeElement(nifty.getScreen(\"hud\"), element);\n\t\tnifty.executeEndOfFrameElementActions();\n\t}",
"public final void delete() {\n\t\tOllie.delete(this);\n\t\tOllie.removeEntity(this);\n\t\tnotifyChange();\n\t\tid = null;\n\t}",
"public T remove() {\r\n if (size() == 0) {\r\n return null;\r\n }\r\n int r = new Random().nextInt(size());\r\n \r\n T deleted = elements[r];\r\n elements[r] = elements[size() - 1];\r\n elements[size() - 1] = null;\r\n size--;\r\n \r\n if (size() > 0 && size() < elements.length / 4) {\r\n resize(elements.length / 2);\r\n }\r\n \r\n return deleted;\r\n }",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"protected void delete(final R element) throws MessageLabelException {\n getService().delete(element);\n }",
"private void deleteElement(int index) {\n Object[] first = new Object[index];\n System.arraycopy(this.container, 0, first, 0, index);\n\n Object[] second = new Object[this.container.length - index - 1];\n System.arraycopy(this.container, index + 1, second, 0, second.length);\n\n this.container = new Object[this.container.length];\n System.arraycopy(first, 0, this.container, 0, first.length);\n System.arraycopy(second, 0, this.container, index, second.length);\n\n this.position--;\n }",
"private void remove() {\n disableButtons();\n clientgui.getClient().sendDeleteEntity(cen);\n cen = Entity.NONE;\n }",
"public void removeElement(ThingNode element)\n\t{\n\t\tsuper.removeElement(element);\n\t\telements.remove(element);\n\t}",
"@Override\n\tpublic boolean delete(Eleve o) {\n\t\tmap.remove(o.getId(), o);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic MorseCodeTree<String> delete(String element) throws UnsupportedOperationException {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn null;\r\n\t}",
"public void remove() {\n btRemove().push();\n }",
"public void remove() {\n btRemove().push();\n }",
"private void delete() {\n\n\t}",
"public void delObject(int id) {\n\n\t\t// last element?\n\t\tif (elements.size() - 1 == id) {\n\t\t\t// remove it\n\t\t\telements.remove(id);\n\t\t} else {\n\t\t\t// reset only element\n\t\t\telements.get(id).setObject(createObject());\n\t\t\telements.get(id).setModified(true);\n\t\t}\n\n\t\t// inform tab\n\t\tbuildEmptyView();\n\t}",
"@Override\n\t\tpublic void delete() {\n\n\t\t}",
"public void remove () {}",
"public void destroy() {\n this.game.deleteObject(this);\n }",
"@Override\n\tpublic void deletePlayer(Joueur joueur) {\n\t\t\n\t}",
"public void removePiece() {\n\t\troot.getChildren().clear();\n\t\tthis.piece = null;\n\t\troot.getChildren().add(rectangle);\n\t}",
"public T remove (T element);",
"E remove(Id id);",
"private void deleteElement(final int idx) {\r\n\t\tserializer.setRandomAccess(idx, null);\r\n\t\tif (idx < firstFree) {\r\n\t\t\tsetNextPointer(idx, firstFree);\r\n\t\t\tsetPrevPointer(idx, 0);\r\n\t\t\tfirstFree = idx;\r\n\t\t} else {\r\n\t\t\tint free = firstFree;\r\n\t\t\tint lastFree = 0;\r\n\t\t\twhile (free < idx) {\r\n\t\t\t\tlastFree = free;\r\n\t\t\t\tfree = getNextPointer(free);\r\n\t\t\t}\r\n\t\t\tsetNextPointer(lastFree, idx);\r\n\t\t\tsetNextPointer(idx, free);\r\n\t\t}\r\n\t}",
"public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);",
"public void removeElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (children.contains(element)) {\n children.remove(element);\n updateChildrenAttribute();\n }\n }",
"public void remove() {\r\n //\r\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tdelete();\n\t\t\t}",
"public void remove(T element);",
"public void remove() {\n\n }",
"private void delete() {\n AltDatabase.getInstance().getAlts().remove(getCurrentAsEditable());\n if (selectedAccountIndex > 0)\n selectedAccountIndex--;\n updateQueried();\n updateButtons();\n }",
"@Override\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tdelete();\n\t\t}",
"public void delete() {\n\n\t}",
"E remove(E element) {\n\t\t\tshort index = (short)((element.hashCode() >> 24) & 0x000000FF);\n\t\t\tE obj = nodes[index].remove(this, element.hashCode(), (byte) 1);\n\t\t\tif (obj != null) {\n\t\t\t\tsize--;\n\t\t\t}\n\t\t\treturn obj;\n\t\t}",
"private void delete() {\n\t\tComponents.questionDialog().message(\"Are you sure?\").callback(answeredYes -> {\n\n\t\t\t// if confirmed, delete the current product PropertyBox\n\t\t\tdatastore.delete(TARGET, viewForm.getValue());\n\t\t\t// Notify the user\n\t\t\tNotification.show(\"Product deleted\", Type.TRAY_NOTIFICATION);\n\n\t\t\t// navigate back\n\t\t\tViewNavigator.require().navigateBack();\n\n\t\t}).open();\n\t}",
"private void removeElement(PathwayElement affectedData)\n \t{\n \n \t}",
"public void remove() {\r\n return;\r\n }",
"public void remove( IAnswer answerToRemove );",
"@Override\n\tpublic void remove(Element e) {\n\t\t\n\t}",
"@Override\n\t\tpublic void deleteItem(int index) {\n\t\t\tmGuanzhuList.remove(index);\n\t\t}",
"public void remove() {\n\t}",
"public void remove() {\n\t}",
"@Test\r\n public void testRemoveElement() {\r\n System.out.println(\"removeElement\");\r\n ModeloListaOrganizadores instance = new ModeloListaOrganizadores(e.getListaOrganizadores());\r\n Organizador o =new Organizador(new Utilizador(\"teste\", \"teste@isep.ipp.pt\", \"teste\", \"teste\", true, 5));\r\n instance.addElement(o);\r\n boolean expResult = false;\r\n boolean result = instance.removeElement(o);\r\n\r\n }",
"public boolean deletePalvelupisteet();",
"@Test\r\n\tpublic void deleteGame() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: deleteGame \r\n\t\tGame game_1 = new tsw.domain.Game();\r\n\t\tservice.deleteGame(game_1);\r\n\t}",
"public void remove(GuiElementBase element) {\n\t\tif (!children.remove(element))\n\t\t\tthrow new UnsupportedOperationException(\"The specified element is not a child of this container\");\n\t\tif (element.isPressed())\n\t\t\telement.getContext().setPressed(null);\n\t\telement.setContext(null);\n\t\telement.setParent(null);\n\t\tonChildRemoved(element);\n\t}",
"@Override\r\n\tpublic void delete(Player t) {\n\r\n\t}",
"@Override\n public void delete()\n {\n }",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public void delete();",
"public boolean delete(T element) {\n boolean isDelete = false;\n int index = this.getIndex(element);\n if (index != -1) {\n this.deleteElement(index);\n isDelete = true;\n }\n return isDelete;\n }",
"public void deleteElement(int element) {\n // duplicates array\n int[] getdouble = get;\n // clears this\n get = new int[0];\n // reinserts everything but given element\n for (int i : getdouble)\n if (i != element)\n insertElement(i);\n }",
"void remove();",
"void remove();",
"void remove();",
"void remove();",
"void remove();",
"public void remove(){\n }",
"public void remove(IVisualElement elem) {\n children.remove(elem);\n if (elem.getParent() == parentRef.get()) {\n elem.setParent(null);\n }\n }",
"private void delete(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.typeText(0, searchTerm);\n\n //Make sure the experiment shows up\n assertTrue(solo.waitForText(description));\n\n //Click on experiment\n solo.clickOnText(description);\n\n //Click on more tab\n solo.waitForView(R.id.subscribe_button_experiment);\n solo.clickOnText(\"More\");\n\n //Click on unpublish button\n solo.clickOnView(solo.getView(R.id.delete_experiment_button));\n }",
"@Override\n\t\tpublic void delete() {\n\t\t\tSystem.out.println(\"새로운 삭제\");\n\t\t}",
"@Override\n\tpublic void delete() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public void delete() {\n this.root = null;\n }",
"public void remove(Declarator element) throws ChameleonProgrammerException;",
"public void removeGameObj(GameObject obj){\n display.getChildren().remove(obj.getDisplay());\n }",
"public void delete(Long id) {\n gameRepository.delete(id);\n }",
"public void removeFromGame(){\n this.isInGame = false;\n }",
"public boolean delete() {\r\n \t\t// need to have a way to inform if delete did not happen\r\n \t\t// can't delete if there are dependencies...\r\n \t\tif ((this.argumentsAgainst.size() > 0)\r\n \t\t\t\t|| (this.argumentsFor.size() > 0)\r\n \t\t\t\t|| (this.relationships.size() > 0)\r\n \t\t\t\t|| (this.questions.size() > 0)\r\n \t\t\t\t|| (this.subDecisions.size() > 0)) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when there are sub-elements.\");\r\n \r\n \t\t\treturn true;\r\n \t\t}\r\n \r\n \t\tif (this.artifacts.size() > 0) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when code is associated!\");\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\tRationaleDB db = RationaleDB.getHandle();\r\n \r\n \t\t// are there any dependencies on this item?\r\n \t\tif (db.getDependentAlternatives(this).size() > 0) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when there are depencencies.\");\r\n \t\t\treturn true;\r\n \t\t}\r\n \r\n \t\tm_eventGenerator.Destroyed();\r\n \r\n \t\tdb.deleteRationaleElement(this);\r\n \t\treturn false;\r\n \r\n \t}",
"public void delete() {\n\t\tdeleted = true;\n\t}"
] | [
"0.7256203",
"0.72158986",
"0.6708678",
"0.65374666",
"0.65333676",
"0.6490799",
"0.6364067",
"0.63579184",
"0.6326866",
"0.63248396",
"0.6290804",
"0.62727845",
"0.6255449",
"0.6196223",
"0.6164559",
"0.61520255",
"0.6135988",
"0.6133474",
"0.6127881",
"0.61054075",
"0.6064568",
"0.60643095",
"0.6008359",
"0.60023725",
"0.60023075",
"0.5972389",
"0.5972389",
"0.5972389",
"0.5972389",
"0.5972389",
"0.5954014",
"0.59139717",
"0.590651",
"0.5905785",
"0.58983535",
"0.58934677",
"0.58608365",
"0.58608365",
"0.5852944",
"0.5842901",
"0.58402914",
"0.5839999",
"0.58388704",
"0.58308476",
"0.5805669",
"0.5756767",
"0.57477367",
"0.5730097",
"0.57294667",
"0.5729263",
"0.57287157",
"0.5721053",
"0.57201517",
"0.5712563",
"0.5708316",
"0.5706659",
"0.5706411",
"0.5699581",
"0.5687672",
"0.56750983",
"0.5660437",
"0.56595594",
"0.56566423",
"0.5649664",
"0.5647319",
"0.5647319",
"0.5645453",
"0.5632591",
"0.5630802",
"0.56301975",
"0.56276",
"0.5621952",
"0.56213534",
"0.56213534",
"0.56213534",
"0.56213534",
"0.56213534",
"0.56213534",
"0.56168246",
"0.5609512",
"0.5594517",
"0.5594517",
"0.5594517",
"0.5594517",
"0.5594517",
"0.5592869",
"0.55807555",
"0.55793804",
"0.5570888",
"0.5568198",
"0.5558971",
"0.5558971",
"0.5558971",
"0.5551155",
"0.55469066",
"0.5546845",
"0.5544323",
"0.5540567",
"0.55190873",
"0.55178964"
] | 0.7233078 | 1 |
Fetch all available game names and their corresponding descriptions | Map<String, String> getAvailableGames(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Game populateGames(String name);",
"private String[] getGamesList() {\n\n\t\tGames games = new Games();\n\n\t\tint maxRecords = games.count();\n\t\tArrayList<Game> records = games.findAll(maxRecords, 0);\n\t\tIterator<Game> it = records.iterator();\n\n\t\tString[] output = new String[maxRecords];\n\t\tint i = 0;\n\n\t\twhile (it.hasNext()) {\n\n\t\t\tGame game = it.next();\n\t\t\toutput[i] = \"[\" + game.getId() + \"] \" + game.getName();\n\t\t\ti++;\n\n\t\t}\n\n\t\treturn output;\n\n\t}",
"List<GameResult> getAllGameResults();",
"public String GetGamesList()\n\t{\n\t\tString gameslist = \"\";\n\t\tfor (int i = 0; i < gametype.length; i++)\n\t\t{\n\t\t\tgameslist += \"Game Number \" + i + \"\\t\" + gametype[i].GetName() + \"\\n\";\n\t\t\tif (gametype[i].Game_Status())\n\t\t\t{\n\t\t\t\tgameslist += \"There is currently a game in progress\\n\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgameslist += \"No game is being played at the moment\\n\";\n\t\t\t}\n\n\t\t\tif (gametype[i].SizeofQueue() >= 2)\n\t\t\t{\n\t\t\t\tgameslist += \"Number of players in queue:\\t\" + gametype[i].SizeofQueue() + \"\\n\\n\";\n\t\t\t}\n\t\t\telse if (gametype[i].SizeofQueue() == 1)\n\t\t\t{\n\t\t\t\tgameslist += \"There is currently one player waiting to play a game\\n\\n\";\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgameslist += \"There is currently nobody waiting to play a game\\n\\n\";\n\t\t\t}\n\t\t}\n\t\treturn gameslist;\n\t}",
"public void getGameList() {\n try {\n write(\"get gamelist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:getGameList\");\n }\n }",
"List<GameResult> getAllResults();",
"private List<BotDescription> getBotsDescription( )\r\n {\r\n List<BotDescription> list = new ArrayList<BotDescription>( );\r\n\r\n for ( ChatBot bot : getBots( ) )\r\n {\r\n List<String> listLanguages = bot.getAvailableLanguages( );\r\n\r\n if ( listLanguages != null )\r\n {\r\n for ( String strLanguage : listLanguages )\r\n {\r\n BotDescription botDescription = new BotDescription( );\r\n Locale locale = new Locale( strLanguage );\r\n botDescription.setName( bot.getName( locale ) );\r\n botDescription.setDescription( bot.getDescription( locale ) );\r\n botDescription.setLanguage( locale.getDisplayLanguage( ) );\r\n botDescription.setAvatarUrl( bot.getAvatarUrl( ) );\r\n\r\n UrlItem url = new UrlItem( URL_BOT );\r\n url.addParameter( PARAMETER_BOT, bot.getKey( ) );\r\n url.addParameter( PARAMETER_LANGUAGE, strLanguage );\r\n botDescription.setUrl( url.getUrl( ) );\r\n list.add( botDescription );\r\n }\r\n }\r\n else\r\n {\r\n BotDescription botDescription = new BotDescription( );\r\n Locale locale = LocaleService.getDefault( );\r\n botDescription.setName( bot.getName( locale ) );\r\n botDescription.setDescription( bot.getDescription( locale ) );\r\n botDescription.setLanguage( locale.getDisplayLanguage( ) );\r\n botDescription.setAvatarUrl( bot.getAvatarUrl( ) );\r\n\r\n UrlItem url = new UrlItem( URL_BOT );\r\n url.addParameter( PARAMETER_BOT, bot.getKey( ) );\r\n url.addParameter( PARAMETER_LANGUAGE, locale.getLanguage( ) );\r\n botDescription.setUrl( url.getUrl( ) );\r\n list.add( botDescription );\r\n }\r\n }\r\n\r\n return list;\r\n }",
"Collection<GameEnvironment> getPendingGames();",
"@Override public GameList getAllGamesFromServer() throws RemoteException, SQLException {\r\n return gameListClientModel.getGamesFromServer();\r\n }",
"private static String descriptionWeaponFoundOnView(String cardName){\n String descToReturn = null;\n //search between your loaded weapons\n for(WeaponLM weapon : InfoOnView.getMyLoadedWeapons().getLoadedWeapons()){\n if(cardName.equalsIgnoreCase(weapon.getName())){\n descToReturn = detailedDescriptionWeapon(weapon);\n }\n }\n //search between the unloaded weapons of all the players\n for(PlayerDataLM player : InfoOnView.getPlayers()){\n for(WeaponLM weapon : player.getUnloadedWeapons()) {\n if (cardName.equalsIgnoreCase(weapon.getName())){\n descToReturn = detailedDescriptionWeapon(weapon);\n }\n }\n }\n //search between the weapons on the spawn points\n for(SpawnPointLM spawnPoint : InfoOnView.spawnPoints()){\n for(WeaponLM weapon : spawnPoint.getWeapons()){\n if (cardName.equalsIgnoreCase(weapon.getName())){\n descToReturn = detailedDescriptionWeapon(weapon);\n }\n }\n }\n return descToReturn;\n }",
"@Test\r\n\tpublic void findAllGames() {\r\n\t\t// DO: JUnit - Populate test inputs for operation: findAllGames \r\n\t\tInteger startResult = 0;\r\n\t\tInteger maxRows = 0;\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tList<Game> response = null;\r\n\t\tTswacct tswacct = null;\r\n\t\tresponse = service.findAllGames4tsw(tswacct, startResult, maxRows);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: findAllGames\r\n\t}",
"public abstract String[] getDescriptions();",
"private void listGames(){\n\n }",
"@RequestMapping(\"/games/availableGamesByServiceProvider\")\n\tpublic @ResponseBody List<Game> games(\n\t\t\tHttpServletResponse response) {\n\t\t System.out.println(\"****** /games/availableGamesByServiceProvider ***********\");\n\t\treturn gameService.retrieveGames();\n\t}",
"java.lang.String getGameName();",
"java.lang.String getGameName();",
"public SmallGameBoard[] getAllGames(){return games;}",
"public ArrayList<GameData> getGames() {\n\t\tCursor dbGames = getReadableDatabase().rawQuery(\n\t\t\t\t\"SELECT game_id, name, hosting from game\", null);\n\t\tdbGames.moveToFirst();\n\t\tArrayList<GameData> games = new ArrayList<GameData>();\n\t\twhile (!dbGames.isAfterLast()) {\n\t\t\tgames.add(new GameData(dbGames.getInt(0), dbGames.getString(1),\n\t\t\t\t\tdbGames.getInt(2)));\n\t\t\tdbGames.moveToNext();\n\t\t}\n\t\tdbGames.close();\n\t\treturn games;\n\t}",
"public List<Game> getFullGameList() {\n List<Game> listOfGames = null;\n Session session = sessionFactory.openSession();\n // Try to return the user by the given nickname\n try {\n session.beginTransaction();\n // if mode equals ALL then get full list of games\n listOfGames = session.createCriteria(Game.class).list();\n \n session.getTransaction().commit();\n session.flush();\n } \n catch (HibernateException e) { return null; } \n finally { session.close(); }\n // Return userID if seted\n return listOfGames;\n }",
"@RequestMapping(value = \"/game/byTitle/{title}\", method = RequestMethod.GET)\n @ResponseStatus(value = HttpStatus.OK)\n public List<Game> getGameByTitle(@PathVariable String title) {\n return serviceLayer.getGameByTitle(title);\n }",
"public List_Result listGames() throws ClientException {\n\t\t// START -- DUMMY INFORMATION\n\t\tGameInfo[] games = getCurrentGames();\n\n\t\t// END -- DUMMY INFORMATION\n\t\tList_Result result = new List_Result(games);\n\t\treturn result;\n\t}",
"@Test\r\n\tpublic void loadGames() {\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tSet<Game> response = null;\r\n\t\tTswacct tswacct = null;\r\n\t\tresponse = service.loadGames4tsw(tswacct);\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: loadGames\r\n\t}",
"public String getStatsOfGames(){\n\n String res = \"\";\n\n if (games.size() <= 0){\n return \"No game registered in tournament\";\n }\n\n for(int num=0; num<games.size(); num++)\n {\n SoccerGames game = games.get(num);\n res += \"Game Id: \" + game.getGameId() + \" \"+ game.getHostTeam().getName() + \": \" + game.goalsScored +\n \" VS \" + game.getOpponentTeam().getName() + \": \" + game.concededGoal;\n\n }\n return res;\n }",
"public String getGamesList() throws Exception {\n\t\t\n\t\tString url = server_url + \"/games/list\";\n\t\t\n\t\tURL obj = new URL(url);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\n\t\t// optional, default is GET\n\t\tcon.setRequestMethod(\"GET\");\n\n\t\t//add request header\n\t\tcon.setRequestProperty(\"User-Agent\", \"Mozilla/5.0\");\n\n\t\tint responseCode = con.getResponseCode();\n//\t\t//System.out.println(\"\\nSending 'GET' request to URL : \" + url);\n//\t\t//System.out.println(\"Response Code : \" + responseCode);\n\t\t\n\t\tif (responseCode == 400) {\n\t\t\tthrow new Exception();\n\t\t}\n\n\t\tBufferedReader in = new BufferedReader(\n\t\t new InputStreamReader(con.getInputStream()));\n\t\tString inputLine;\n\t\tStringBuffer response = new StringBuffer();\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine);\n\t\t}\n\t\tin.close();\n\n\t\t//print result\n\t\t////System.out.println(response.toString());\n\t\treturn response.toString();\n\t}",
"public void getGames(ServiceHandler sh) {\n String jsonStr = sh.makeServiceCall(url, ServiceHandler.GET);\n\n Log.d(\"Response: \", \"> \" + jsonStr);\n\n if (jsonStr != null) {\n try {\n JSONObject jsonObj = new JSONObject(jsonStr);\n\n // Getting JSON Array node\n jsonArray = jsonObj.getJSONArray(\"Games\");\n resultList = new ArrayList<>();\n\n // looping through All results\n for (int i = 0; i < jsonArray.length(); i++) {\n JSONObject c = jsonArray.getJSONObject(i);\n\n resultList.add(c.getString(\"gameName\"));\n\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n } else {\n Log.e(\"ServiceHandler\", \"Couldn't get any data from the url\");\n }\n }",
"public Map<String,Object> getGameByGameName(String gameName) {\n\t\tif (StringUtils.isEmpty(gameName))\n return null;\n Map hm = new HashMap();\n String sql = \"select * from t_cgiser_game where STATE = 1 and GAMENAME=?\";\n String[] para = new String[1];\n para[0] = StringUtils.trim(gameName);\n hm = userJdbcTemplate.queryForMap(sql, para);\n return hm;\n\t}",
"public List<String> getGameInformation(int position){\n switch (position){\n case 0:\n return information.getClasses();\n case 1:\n return information.getRaces();\n case 2:\n return information.getFactions();\n case 3:\n return information.getTypes();\n case 4:\n return information.getQualities();\n case 5:\n return information.getSets();\n }\n return null;\n }",
"public void setGames() {\n\n games = new HashMap<String, Game>();\n\n for(Game g : jsonManager.getGamesFromJson())\n games.put(g.getTitle(), g);\n\n }",
"public List<Game> getAllGames() {\n List<Game> games = new ArrayList<>(data.values());\n games.sort((o1, o2) -> {\n if (o1.getId() < o2.getId()) {\n return 1;\n } else if (o1.getId() > o2.getId()) {\n return -1;\n } else {\n return 0;\n }\n });\n return games;\n }",
"public static Game[] getAllGames(){\n \tGame[] games = null;\n \ttry {\n\t\t\tgames = DBHandler.getAllGames(c);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n \treturn games;\n }",
"@RequestMapping(value = \"/game\", method = RequestMethod.GET)\n @ResponseStatus(value = HttpStatus.OK)\n public List<Game> getAllGame() {\n return serviceLayer.getAllGame();\n }",
"@Override\n\tpublic List<Games> allGamesView() {\n\t\treturn gameDAO.viewAllGame();\n\t}",
"public void showStats() {\r\n List<String> list = new ArrayList();\r\n for (int i = 1; i < 31; i++) {\r\n switch (i) {\r\n case 4:\r\n list.add(name);\r\n break;\r\n case 6:\r\n list.add(String.valueOf(stats.get(\"name\")));\r\n break;\r\n case 7:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[0]));\r\n break;\r\n case 8:\r\n list.add(\"Score\");\r\n break;\r\n case 9:\r\n list.add(String.valueOf(stats.get(\"score\").split(\":\")[1]));\r\n break;\r\n case 10:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[0]));\r\n break;\r\n case 11:\r\n list.add(\"Max Break\");\r\n break;\r\n case 12:\r\n list.add(String.valueOf(stats.get(\"break\").split(\":\")[1]));\r\n break;\r\n case 13:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[0]));\r\n break;\r\n case 14:\r\n list.add(\"Fouls\");\r\n break;\r\n case 15:\r\n list.add(String.valueOf(stats.get(\"fouls\").split(\":\")[1]));\r\n break;\r\n case 16:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[0]));\r\n break;\r\n case 17:\r\n list.add(\"Misses\");\r\n break;\r\n case 18:\r\n list.add(String.valueOf(stats.get(\"misses\").split(\":\")[1]));\r\n break;\r\n case 19:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[0]));\r\n break;\r\n case 20:\r\n list.add(\"Pots\");\r\n break;\r\n case 21:\r\n list.add(String.valueOf(stats.get(\"pots\").split(\":\")[1]));\r\n break;\r\n case 22:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[0]));\r\n break;\r\n case 23:\r\n list.add(\"Shots\");\r\n break;\r\n case 24:\r\n list.add(String.valueOf(stats.get(\"shots\").split(\":\")[1]));\r\n break;\r\n case 25:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 26:\r\n list.add(\"Pot Percentage\");\r\n break;\r\n case 27:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"potPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n case 28:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[0])) + \"%\");\r\n break;\r\n case 29:\r\n list.add(\"Safety Percentage\");\r\n break;\r\n case 30:\r\n list.add(String.format(\"%.1f\", Double.parseDouble(stats.get(\"safetyPercentage\").split(\":\")[1])) + \"%\");\r\n break;\r\n default:\r\n list.add(\"\");\r\n }\r\n }\r\n\r\n GridView grid = new GridView(context);\r\n grid.setAdapter(new ArrayAdapter(context, android.R.layout.simple_list_item_1, list));\r\n grid.setNumColumns(3);\r\n\r\n new AlertDialog.Builder(context)\r\n .setNegativeButton(\"Back\", null)\r\n .setTitle(\"Match Statistics\")\r\n .setView(grid)\r\n .show();\r\n }",
"private void list() throws JSONException, InterruptedException {\r\n\t /**Database Manager Object used to access mlab.com*/\r\n db.setDataBaseDestination(cDatabase, null, true);\r\n db.accessDatabase();\r\n MongoCollection<Document> col = db.getEntireDatabaseResults();\r\n \r\n // iterator to go through clubs in database\r\n Iterable<Document> iter;\r\n iter = col.find();\r\n \r\n // ArrayList of clubs names \r\n ArrayList<String> clubs = new ArrayList<>();\r\n \r\n // add names to list\r\n for (Document doc : iter) {\r\n JSONObject profile = new JSONObject(doc);\r\n clubs.add(profile.get(cName).toString());\r\n }\r\n \r\n Collections.sort(clubs);\r\n \r\n for (String name : clubs)\r\n \t logger.log(Level.INFO, name);\r\n \r\n displayOpen();\r\n }",
"WinningCombination getDescription();",
"private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }",
"private String[] createNamesArray(){\n\t\t//TODO just test data\n\t\t/*\n\t\tfor(int i=0; i<20; i++){\n\t\t\tReplayData rd = new ReplayData(\"Game \" + i);\n\t\t\ttotalData.replays.add(rd);\n\t\t}*/\n\t\tString[] gameNames = new String[totalData.replays.size()];\n\t\tfor(int i =0; i<totalData.replays.size(); i++){\n\t\t\tgameNames[i] = totalData.replays.get(i).getName() + \" @ \" + totalData.replays.get(i).getDate();\n\t\t}\n\t\treturn gameNames;\n\t}",
"public static ArrayList<String> getPlayerInformation() {\n clearScreen();\n ArrayList<String> Names = new ArrayList<String>();\n for (int i = 1; i < 3; i++) {\n System.out.println(\"Player \" + i + \"'s Name:\");\n Names.add(Input.nextLine());\n clearScreen();\n }\n return Names;\n }",
"Response getGameDetails(String gameIdAsString);",
"public static Set<String> getGamesList() {\n\t\treturn arcade.findPlayableIds();\n\t}",
"public List<PlayerItem> getAll();",
"public static String getGameDescription(int GAME_ID ) { \n\t\tSystem.out.println(\"--->[WebScraping][getGameDescription] Getting Description for game_id = \" + GAME_ID);\n\t\t\n\t\tString gameDescription = \"No description available\";\n\t\t//Create http object for request\n\t\tHttpClient objRequest = new HttpClient();\n\t\t\n\t\t try {\n\t System.out.println(\"--->[WebScraping][getGameDescription] Sending Http GET request for GameDescription\");\n\t try {\n\t\t\t\t\tgameDescription = objRequest.sendGetGameDescription(GAME_ID);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"--->[WebScraping][getGameDescription] Something went wrong in sending http request\" + e.getMessage());\n\t\t\t\t}\n\n\t } finally {\n\t try {\n\t\t\t\t\tobjRequest.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"--->[WebScraping][getGameDescription] Something went wrong in closing http request\" + e.getMessage());\n\t\t\t\t}\n\t }\n\t\t\n\t\t System.out.println(\"--->[WebScraping][getGameDescription] Returning Description\");\n\t\treturn gameDescription; \n\t}",
"public abstract ArrayList<String> getPlayer(int gameId) throws SQLException;",
"List<GameCode> getGameCodeList();",
"@RequestMapping(value = \"/associations/{id}/games\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\t@Timed\n\tpublic List<Game> getGames(@PathVariable Long id) {\n\t\tlog.debug(\"REST request to get Association Games: {}\", id);\n\t\tGame example = new Game();\n\t\tDivisionEvent exampleDivisionEvent = new DivisionEvent();\n\t\tAssociation exampleAssociation = new Association();\n\t\texampleAssociation.setId(id);\n\t\tDivision exampleDivision = new Division();\n\t\texampleDivision.setAssociation(exampleAssociation);\n\t\texampleDivisionEvent.setDivision(exampleDivision);\n\t\tTimeslot exampleTimeslot = new Timeslot();\n\t\texampleTimeslot.setDivisionEvent(exampleDivisionEvent);\n\t\texample.setTimeslot(exampleTimeslot);\n\t\treturn gameRepository.findAll(Example.of(example));\n\t}",
"public FindGoodsByName() {\n initComponents();\n addAvailableGoods();\n }",
"private void getCourseList(){\r\n\r\n CourseDAO courseDAO = new CourseDAO(Statistics.this);\r\n List<Course> courseList= courseDAO.readListofCourses();\r\n for(Course course: courseList) {\r\n courses.add(course.getName());\r\n }\r\n\r\n }",
"public List getDescriptions() {\n return descriptions;\n }",
"public HashMap<String, Game> getGames() {\n return games;\n }",
"public HashMap<String, Game> getGames() {\n return games;\n }",
"private void createAllGames() {\n\t\t// Create a melee game for each melee arena\n\t\tmeleeArenaManager.loadArenas();\n\t\tmeleeArenaManager.getArenas().forEach(meleeArena -> {\n\t\t\tMeleeGame game = new MeleeGame(meleeArena);\n\t\t\tmeleeGameManager.addGame(meleeArena.getName(), game, new PerMapLegacyLobby(game, PlayerProfile::restore, Melee.MELEE_CHAT_PREFIX));\n\t\t});\n\t\t\n\t\t// Create a rabbit game for each rabbit arena\n\t\trabbitArenaManager.loadArenas();\n\t\trabbitArenaManager.getArenas().forEach(rabbitArena -> {\n\t\t\tRabbitGame game = new RabbitGame(rabbitArena);\n\t\t\trabbitGameManager.addGame(rabbitArena.getName(), game, new PerMapLegacyLobby(game, PlayerProfile::restore, Melee.RABBIT_CHAT_PREFIX));\n\t\t});\n\t\t\n\t\t// Log out what games were created\n\t\tString meleeGamesList = meleeGameManager.getGamesList().stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .map(game -> game.getArena().getName())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.joining(\", \"));\n\t\tgetLogger().info(\"Created Melee Games for arenas : \" + meleeGamesList);\n\n\t\tString rabbitGamesList = rabbitGameManager.getGamesList().stream()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .map(game -> game.getArena().getName())\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t .collect(Collectors.joining(\", \"));\n\t\tgetLogger().info(\"Created Rabbit Games for arenas : \" + rabbitGamesList);\n\t}",
"private static String descriptionPowerUpFoundOnView(String cardName){\n String descToReturn = null;\n for(PowerUpLM card : InfoOnView.getMyPowerUps().getPowerUps()){\n if(cardName.equalsIgnoreCase(card.getName())){\n descToReturn = card.getDescription();\n }\n }\n return descToReturn;\n }",
"java.lang.String getDesc();",
"public static List<GameDto> getCollection(GameSel sel) \n throws PictionnaryDbException {\n List<GameDto> al = new ArrayList<>();\n try {\n String query = \"Select gid, gdrawer, gpartner, gstarttime, gendtime, \"\n + \"gstopplayer, gword, gtable FROM Game \";\n java.sql.Connection connexion = DBManager.getConnection();\n java.sql.PreparedStatement stmt;\n String where = \"\";\n if (sel.getId() != 0) {\n where = where + \" gid = ? \";\n }\n \n if (sel.getDrawer() != 0) {\n if (!where.equals(\"\")) {\n where = where + \" AND \";\n }\n where = where + \" gdrawer = ? \";\n }\n \n if (sel.getPartner() != 0) {\n if (!where.equals(\"\")) {\n where = where + \" AND \";\n }\n where = where + \" gpartner = ? \";\n }\n \n if (sel.getStartTime() != null) {\n if (!where.equals(\"\")) {\n where = where + \" AND \";\n } \n where = where + \" gstarttime = ? \";\n }\n \n if (sel.getEndTime() != null) {\n if (!where.equals(\"\")) {\n where = where + \" AND \";\n }\n where = where + \" gendtime = ? \";\n }\n \n if (sel.getStopPlayer() != 0) {\n if (!where.equals(\"\")) {\n where = where + \" AND \";\n }\n where = where + \" gstopplayer = ? \";\n }\n \n if (sel.getWord()!= 0) {\n if (!where.equals(\"\")) {\n where = where + \" AND \";\n }\n where = where + \" gword = ? \";\n } \n \n if (sel.getTable()!= null) {\n if (!where.equals(\"\")) {\n where = where + \" AND \";\n }\n where = where + \" gtable = ? \";\n }\n \n if (where.length() != 0) {\n where = \" where \" + where + \" order by gid\";\n query = query + where;\n stmt = connexion.prepareStatement(query);\n int i = 1;\n if (sel.getId() != 0) {\n stmt.setInt(i, sel.getId());\n i++;\n }\n if (sel.getDrawer() != 0) {\n stmt.setInt(i, sel.getDrawer());\n i++;\n }\n if (sel.getPartner() != 0) {\n stmt.setInt(i, sel.getPartner());\n i++;\n }\n \n if (sel.getWord() != 0) {\n stmt.setInt(i, sel.getWord());\n i++;\n }\n \n } else {\n query = query + \" Order by gdrawer\";\n stmt = connexion.prepareStatement(query);\n }\n \n java.sql.ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n al.add(new GameDto(rs.getInt(\"gid\"), \n rs.getInt(\"gdrawer\"), \n rs.getInt(\"gpartner\"),\n rs.getTimestamp(\"gstarttime\"),\n rs.getTimestamp(\"gendtime\"),\n rs.getInt(\"gstopplayer\"),\n rs.getInt(\"gword\"),\n rs.getString(\"gtable\")));\n }\n } catch (java.sql.SQLException pSQL) {\n throw new PictionnaryDbException(\"Instanciation de Game impossible:\\nSQLException: \" + pSQL.getMessage());\n }\n return al;\n }",
"public static void requestGames() {\n\t\tarcade.requestGames();\n\t}",
"private static List<String> getGenOneChaos(Connection conn) {\n\t\tList<String> genOneNames = new ArrayList<String>();\n\t\tString sqlQuery = \"SELECT name FROM Chao WHERE generation = 1;\";\n\t\tResultSet rs = SQLManager.queryFromDB(conn, sqlQuery); \n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tgenOneNames.add(rs.getString(1));\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn genOneNames;\n\t}",
"private static void loadDescs() {\r\n if (!descsLoaded) {\r\n registerAllVersions(CellStyle.DESC);\r\n registerAllVersions(RowStyle.DESC);\r\n registerAllVersions(ColumnStyle.DESC);\r\n registerAllVersions(TableStyle.DESC);\r\n registerAllVersions(ParagraphStyle.DESC);\r\n registerAllVersions(GraphicStyle.DESC);\r\n descsLoaded = true;\r\n }\r\n }",
"List<String> getRecipeTitles();",
"private ArrayList<String> getNames() {\n\t\tNameDialog n = new NameDialog();\n\t\tnameList = new ArrayList<String>();\n\t\ttry {\n\t\t\tnameList = n.getNames(inputs[1]);\n\t\t}catch(GameException ex) {\n\t\t\tview.close();\n\t\t\tmenuStage.show();\n\t\t}\n\t\treturn nameList;\n\t}",
"protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCHEME);\n\n List<String> prefectures = getCodes(client, PATH_PREF, \"pref\");\n List<String> categories = getCodes(client, PATH_CTG, \"category_s\");\n\n // This is a workaround for the gnavi API.\n // Gnavi API only allows max 1000 records for output.\n // Therefore, we divide records into smaller pieces\n // by prefectures and categories.\n for (String prefecture: prefectures) {\n for (String category: categories) {\n logger.debug(\"Prefecture: {}\", prefecture);\n logger.debug(\"Category: {}\", category);\n getVenues(client, prefecture, category, 1);\n }\n }\n }",
"public String getDetails() {\n\t\tString res = \"\";\n\t\t\n\t\t// -add heading to results String\n\t\tres += \"Scores for game: \" + gameName + \"\\n\";\n\t\t\n\t\t// -does a topScore exist?\n\t\tif ( topScore != -1) {\n\t\t\t\t// -add topScore to results String\n\t\t\tres += \"1st\\t\" + topScore + \"\\t\" + topScorerName + \"\\n\";\n\t\t\t\t// -does a secondScore exist?\n\t\t\tif ( secondScore != -1) {\n\t\t\t\t\t\t// - add secondScore to results String\n\t\t\t\tres += \"2nd\\t\" + secondScore + \"\\t\" + secondScorerName + \"\\n\";\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t// -otherwise \n\t\t\t\t// - add \"Game has not been played.\" to results String\n\t\t\tres += \"Game not played.\\n\";\n\t\t\n\t\t}\n\t\t// return results String\n\t\treturn res;\n\t}",
"public void getRecentNames() {\r\n try {\r\n URLConnection conn = new URL(\"http://example.com/recent?ssid=\" + session_slot_id).openConnection();\r\n conn.setConnectTimeout(5000);\r\n conn.setReadTimeout(5000);\r\n BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));\r\n String line;\r\n while ((line = in.readLine()) != null) {\r\n if (line.contains(\",\")) {\r\n names = line.split(\",\");\r\n }\r\n }\r\n in.close();\r\n } catch (MalformedURLException e) {\r\n System.out.println(\"MalformedURLException while fetching list\");\r\n } catch (SocketTimeoutException e) {\r\n System.out.println(\"SocketTimeoutException while fetching list\");\r\n } catch (IOException e) {\r\n System.out.println(\"IOException while fetching list\");\r\n e.printStackTrace();\r\n }\r\n }",
"java.util.List<com.lvl6.proto.QuestProto.FullQuestProto> \n getNewlyAvailableQuestsList();",
"public ArrayList<Configuration> getConfigurationsFromGame(String title) {\n\n ArrayList<Configuration> confs = new ArrayList<>();\n\n for(Configuration conf : configurations)\n if(conf.getGame().getTitle().equals(title))\n confs.add(conf);\n\n return confs;\n }",
"String getDesc();",
"public List<Game> listGames(String campusSession, int idOrderer, int idFilterer, List<String> fields, List<String> values);",
"public GameInfo getGameInfo() throws InterruptedException, IOException, URISyntaxException {\n String json = caller.GET(\"game/status\");\n\n GsonBuilder builder = new GsonBuilder();\n builder.registerTypeAdapter(GameInfo.class, new GameInfoDeserializer());\n\n Gson gson = builder.create();\n\n return gson.fromJson(json, GameInfo.class);\n }",
"@Override\n\tpublic List<String> getNameOfCourses() {\n\t\tconn = DBUtils.connectToDb();\n\t\tString query = \"select course_name from course;\";\n\t\tst = DBUtils.getStatement(conn);\n\t\tList<String> list = null;\n\t\ttry {\n\n\t\t\trs = st.executeQuery(query);\n\t\t\tif (rs != null) {\n\t\t\t\tlist = new ArrayList<String>();\n\t\t\t\twhile (rs.next())\n\t\t\t\t\tlist.add(rs.getString(1));\n\t\t\t}\n\t\t\tDBUtils.closeConnections();\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn list;\n\t}",
"public String getGameResults(){\n \treturn this.gameResults;\n }",
"public void getOrganizations() {\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor results = db.rawQuery(\"SELECT * FROM Organization\", null);\n if (results.moveToFirst()) {\n Log.e(\"ID\", results.getString(0));\n Log.e(\"Name\", results.getString(1));\n while (results.move(1)) {\n Log.e(\"ID\", results.getString(0));\n Log.e(\"Name\", results.getString(1));\n }\n results.close();\n }\n db.close();\n }",
"java.util.List<com.rpg.framework.database.Protocol.Quest> \n getQuestList();",
"HashMap<String, String> getAdditionalDescriptions();",
"java.util.List<proto.Achievement> \n getAchievementsList();",
"public String showPlayListNames(){\n String namePlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n namePlayList += \"[\"+(i+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n }\n }\n return namePlayList;\n }",
"public void loadMovieDescriptions()\r\n/* 162: */ {\r\n/* 163: */ try\r\n/* 164: */ {\r\n/* 165:160 */ if (this.gauntlet != null) {\r\n/* 166:161 */ this.gauntlet.closeInterface();\r\n/* 167: */ }\r\n/* 168:163 */ Thread thread = new GetTheMovies();\r\n/* 169:164 */ thread.start();\r\n/* 170: */ }\r\n/* 171: */ catch (Exception localException) {}\r\n/* 172: */ }",
"public void refreshGameList() {\n gamesListModel.clear();\n List<String> userGames = dbMgr.getGameTitles(username);\n\n // fill list with user games\n for (int i = 0; i < userGames.size(); i++) {\n gamesListModel.addElement(userGames.get(i)); \n }\n\n gamesList.setModel(gamesListModel);\n }",
"public List<cn.zyj.dbexporter.jooq.db_mall.tables.pojos.TOfferGoods> fetchByTitle(String... values) {\n return fetch(TOfferGoods.T_OFFER_GOODS.TITLE, values);\n }",
"public List<SpectatorGameInfo> getFeaturedGames(Platform server)\n {\n DataCallBuilder builder = new DataCallBuilder().withEndpoint(URLEndpoint.V3_SPECTATOR_FEATURED)\n .withPlatform(server);\n \n Optional chl = DataCall.getCacheProvider().get(URLEndpoint.V3_SPECTATOR_FEATURED, server);\n if (chl.isPresent())\n {\n return (List<SpectatorGameInfo>) chl.get();\n }\n \n try\n {\n FeaturedGames fg = (FeaturedGames) builder.build();\n DataCall.getCacheProvider().store(URLEndpoint.V3_SPECTATOR_FEATURED, fg.getGameList(), server);\n return fg.getGameList();\n } catch (ClassCastException e)\n {\n \n return null;\n }\n }",
"private void fetchTeams() {\n String url = Teams.TEAMS_URL;\n\n JsonObjectRequest request = new JsonObjectRequest(Request.Method.GET, url, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(final JSONObject response) {\n Gson gson = new Gson();\n //Deserialize\n mTeams = gson.fromJson(response.toString(), Teams.class);\n for (Team team : mTeams.getTeams()) {\n //Add each team to the nav drawer with the appropriate icon\n mNavigationView.getMenu().add(team.getName()).setIcon(Utils.getDrawableForTeam(team));\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(final VolleyError error) {\n error.printStackTrace();\n }\n });\n //Singleton instance of Volley as per the documentation\n RequestQueue.getInstance(this).addToRequestQueue(request);\n }",
"@Transactional(readOnly = true)\n public List<Game> findAll() {\n log.debug(\"Request to get all Games\");\n return gameRepository.findAll();\n }",
"public String getDescs() {\n return descs;\n }",
"private void populateUserPlaylitstsSection() {\n \tPlaylist dumyPlaylist = new Playlist();\n \tMap<Long, Playlist> playlistsMap = mDataManager.getStoredPlaylists();\n \tList<Playlist> playlists = new ArrayList<Playlist>();\n \t\n \t// Convert from Map<Long, Playlist> to List<Itemable> \n \tif (playlistsMap != null && playlistsMap.size() > 0) {\n \t\tfor(Map.Entry<Long, Playlist> p : playlistsMap.entrySet()){\n \t\t\tplaylists.add(p.getValue());\n \t\t}\n \t}\n\t\t\n \t// populates the favorite playlists.\n \tif (!Utils.isListEmpty(playlists)) {\n \t\tmContainerMyPlaylists.setVisibility(View.VISIBLE);\n \t\t// shows any internal component except the empty text.\n \t\tmTextMyPlaylist1Name.setVisibility(View.VISIBLE);\n \t\tmTextMyPlaylist2Name.setVisibility(View.VISIBLE);\n \t\tmTextMyPlaylist3Name.setVisibility(View.VISIBLE);\n \t\tmImageMoreIndicator.setVisibility(View.VISIBLE);\n \t\tmTextMyPlaylistEmpty.setVisibility(View.GONE);\n \t\t\n \t\tmTextMyPlaylistsValue.setText(Integer.toString(playlists.size()));\n \t\t\n \t\tStack<TextView> playlistsNames = new Stack<TextView>();\n \t\tplaylistsNames.add(mTextMyPlaylist3Name);\n \t\tplaylistsNames.add(mTextMyPlaylist2Name);\n \t\tplaylistsNames.add(mTextMyPlaylist1Name);\n\n \t\tTextView songName = null;\n \t\t\n \t\tfor (Playlist playlist : playlists) {\n \t\t\tif (playlistsNames.isEmpty())\n \t\t\t\tbreak;\n \t\t\t\n \t\t\tsongName = playlistsNames.pop();\n \t\t\tsongName.setText(playlist.getName());\n\t\t\t}\n \t\t\n \t} else {\n \t\tmContainerMyPlaylists.setVisibility(View.GONE);\n \t}\n\t}",
"public void displayCommonGames(Game[] games) {\n StringBuilder displayString = new StringBuilder(\"Common games are:\");\n\n for(int i = 0; i + 1 < games.length; i += 2) {\n String intermediate1 = games[i].name + \" - \" + games[i].appID;\n String intermediate2 = games[i + 1].name + \" - \" + games[i + 1].appID ;\n displayString.append(String.format(\"\\n%-66s %s\", intermediate1, intermediate2));\n }\n\n if(games.length % 2 == 1) {\n displayString.append(\"\\n\").append(games[games.length - 1].name).append(\" - \").append(games[games.length - 1].appID);\n }\n\n frame.setContentPane(new JScrollPane(new JTextArea(displayString.toString())));\n frame.pack();\n }",
"public static String[] getAllNames(){\n int size = getCountofPeople();\n String[] names = new String[size];\n\n try (Connection con = DriverManager.getConnection(url, user, password)){\n String query = \"SELECT name FROM \"+DATABASE_NAME+\".People;\";\n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n int i = 0;\n\n while (rs.next()) {\n names[i] = rs.getString(1);\n i++;\n }\n \n con.close();\n }catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return names;\n }",
"public void refreshGameSearchList() {\n gamesSearchListModel.clear();\n List<String> games = dbMgr.getAllGameTitles(username);\n List<String> gamesOwned = dbMgr.getGameTitles(username);\n\n // fill list with games user does not own\n for (int i = 0; i < games.size(); i++) {\n if(!gamesOwned.contains(games.get(i)))\n gamesSearchListModel.addElement(games.get(i)); \n }\n\n gamesSearchList.setModel(gamesSearchListModel);\n\n }",
"public GameInfo(Game game) {\n gameState = game.getGameState();\n activeCategory = game.getActiveCategory();\n round = game.getRound();\n humanRoundsWon = game.getHumanWonRounds();\n numDraws = game.getNumDraws();\n\n if (game.getActivePlayer() != null) {\n activePlayerName = game.getActivePlayer().getName();\n activePlayerHuman = game.getActivePlayer().getIsHuman();\n } else {\n activePlayerName = null;\n activePlayerHuman = null;\n }\n\n if (game.getRoundWinner() != null) {\n roundWinnerName = game.getRoundWinner().getName();\n } else {\n roundWinnerName = null;\n }\n\n if (game.getGameWinner() != null) {\n gameWinnerName = game.getGameWinner().getName();\n } else {\n gameWinnerName = null;\n }\n\n if (game.getGameWinner() != null) {\n winnerHuman = game.getGameWinner().getIsHuman();\n } else {\n winnerHuman = null;\n }\n\n\n\n topCards = getTopCards(game);\n playerNames = getPlayerNames(game);\n topCardTitles = getTopCardTitles(game);\n deck = getDeck(game);\n Player humanPlayer = getHumanPlayer(game);\n numOfCardsLeft = getNumOfCards(game);\n\n\n // Determine number of cards in human's deck\n //, the size of the communal pile and the top \n // most card\n if (humanPlayer != null && humanPlayer.getHand() != null) {\n numHumanCards = humanPlayer.getHand().size();\n } else {\n numHumanCards = null;\n }\n \n if (deck.size() > 0) {\n numOfCommunalCards = deck.size();\n } else {\n numOfCommunalCards = 0;\n }\n\n if (humanPlayer != null && humanPlayer.getTopMostCard() != null) {\n humanTopCardTitle = humanPlayer.getTopMostCard().getName();\n cardCategories = humanPlayer.getTopMostCard().getCardProperties();\n } else {\n humanTopCardTitle = null;\n cardCategories = null;\n }\n }",
"@GetMapping(\"/game\")\n public List<HangmanViewModel> getAllGames(){\n return service.getAllGames();\n }",
"public List<String> getRecipeName()\n {\n SQLiteDatabase db = getReadableDatabase();\n SQLiteQueryBuilder qb = new SQLiteQueryBuilder();\n\n //Attributes as they appear in the database\n String[] sqlSelect = {\"name\"};\n String RECIPE_TABLE = \"Recipe\"; //Table name as it is in database\n\n qb.setTables(RECIPE_TABLE);\n Cursor cursor = qb.query(db,sqlSelect, null,null, null, null, null);\n List<String> result = new ArrayList<>();\n if(cursor.moveToFirst())\n {\n do{\n result.add(cursor.getString(cursor.getColumnIndex(\"name\")));\n }while(cursor.moveToNext());\n }\n return result;\n }",
"List<StockList> fetch(String title);",
"public String getScoreboardName() {\n/* 1999 */ return getGameProfile().getName();\n/* */ }",
"private String[] displayOptions() throws IOException {\n StringBuilder deckCollection = new StringBuilder(TerminalLauncher.DELIMITER_MAIN + \"deck selection:\\n\");\n String[] decknames = AnkiConnector.getDeckNames();\n String deckname_format = \" * %d: %s\\n\";\n for (int i = 0; i < decknames.length; i++) {\n deckCollection.append(String.format(deckname_format, i + 1, decknames[i]));\n }\n deckCollection.append(String.format(deckname_format, decknames.length + 1, \"create new deck\"));\n deckCollection.append(TerminalLauncher.DELIMITER_SEC + \"input: \");\n System.out.print(deckCollection);\n\n return decknames;\n }",
"public ArrayList<GamesItemHome> getVirtualGamesData() {\n\n ArrayList<GamesItemHome> data = new ArrayList<>();\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(\"select * from \" + DATABASE_TABLE_VIRTUAL_GAMES + \" ;\", null);\n StringBuffer stringBuffer = new StringBuffer();\n GamesItemHome gamesItem = null;\n while (cursor.moveToNext()) {\n gamesItem = new GamesItemHome();\n String id = cursor.getString(cursor.getColumnIndexOrThrow(\"_id\"));\n String title = cursor.getString(cursor.getColumnIndexOrThrow(\"title\"));\n String category = cursor.getString(cursor.getColumnIndexOrThrow(\"category\"));\n String image = cursor.getString(cursor.getColumnIndexOrThrow(\"image\"));\n gamesItem.setTitle(title);\n gamesItem.setCategory(category);\n gamesItem.setImage(image);\n gamesItem.setID(id);\n\n stringBuffer.append(gamesItem);\n data.add(gamesItem);\n }\n\n\n return data;\n }",
"public DeckNamesWrapper getAllDecks() throws DeckServiceException;",
"private void fetchUnknownOSpeciesNames(Session session) {\n QAQCMain.log.info(\"Getting the other species with unknown name\");\n DefaultTableModel model = (DefaultTableModel) tabDisplaySites.getModel();\n String hql = \"select species.otherSpeciesName, species.site.siteCode from OtherSpecies as species \"\n + \"where not exists (from RefSpecies as ref where ref.refSpeciesName like species.otherSpeciesName) \"\n + \"and species.otherSpeciesGroup not like 'B'\"\n + \"order by species.otherSpeciesName ASC\";\n Query q = session.createQuery(hql);\n Iterator itr = q.iterate();\n int i = 0;\n while (itr.hasNext()) {\n Object[] tabRes = (Object[]) itr.next();\n Object[] tuple = {tabRes[1], tabRes[0]};\n model.insertRow(i, tuple);\n i++;\n }\n Object[] columnNames = {\"Site\", \"Other Species Name\"};\n model.setColumnIdentifiers(columnNames);\n updateNumResults(i);\n\n }",
"@RequestMapping(method = RequestMethod.GET)\n public ResponseEntity<?> getAllGameRooms() {\n try {\n return new ResponseEntity<>(ls.getAllGameRooms(), HttpStatus.ACCEPTED);\n } catch (LacmanNotFoundException e) {\n Logger.getLogger(LacmanController.class.getName()).log(Level.SEVERE, null, e);\n return new ResponseEntity<>(e.getMessage(), HttpStatus.NOT_FOUND);\n }\n }",
"public List<Game> getGameList() {\n return this.games;\n }",
"public synchronized List<Game> getGameList() {\n return games;\n }",
"@Override\n\tpublic List<Game> getGameList() {\n\t\treturn null;\n\t}",
"public GameStrings getGameStrings() {\n\t\tGameStrings view = new CMNGameStrings();\n\t\treturn view;\n\t}",
"private static void printDescriptionCard(String cardName){\n String descWeaponFound = descriptionWeaponFoundOnView(cardName);\n String descPowerUpFound = descriptionPowerUpFoundOnView(cardName);\n String descToPrint;\n if(descWeaponFound == null && descPowerUpFound == null){\n System.out.println(\"The card you are searching for is not visible to you now, or does not exist.\");\n }\n else{\n if(descWeaponFound != null){\n descToPrint = descWeaponFound;\n }\n else{\n descToPrint = descPowerUpFound;\n }\n System.out.println(\"\\\"\" + descToPrint + \"\\\"\");\n }\n }"
] | [
"0.6714682",
"0.64884263",
"0.6277138",
"0.60999256",
"0.6063215",
"0.59496903",
"0.5778381",
"0.57694525",
"0.5758527",
"0.56878716",
"0.5687847",
"0.56834066",
"0.5626424",
"0.5610416",
"0.55538046",
"0.55538046",
"0.5544181",
"0.5527553",
"0.55168796",
"0.5510952",
"0.54952335",
"0.5492257",
"0.5461494",
"0.5457523",
"0.54454195",
"0.5435334",
"0.54283273",
"0.54214287",
"0.5411039",
"0.5400764",
"0.5394715",
"0.5368574",
"0.5354001",
"0.5348924",
"0.5345115",
"0.531598",
"0.5299356",
"0.52908427",
"0.5274856",
"0.52740574",
"0.52437234",
"0.52238065",
"0.52086866",
"0.5207664",
"0.5206118",
"0.5190691",
"0.5187123",
"0.5176216",
"0.51752687",
"0.51752687",
"0.5168646",
"0.5160043",
"0.51526",
"0.5152531",
"0.51500595",
"0.5146343",
"0.5146171",
"0.5140036",
"0.51361775",
"0.51294154",
"0.51001996",
"0.50991917",
"0.5092393",
"0.50846934",
"0.5084045",
"0.5080633",
"0.5075539",
"0.5069807",
"0.506959",
"0.5069372",
"0.50671875",
"0.50670904",
"0.5065461",
"0.5052551",
"0.5052104",
"0.50506926",
"0.5030575",
"0.50299454",
"0.5025745",
"0.5020823",
"0.5020823",
"0.5013359",
"0.5007793",
"0.5006644",
"0.5006587",
"0.50060356",
"0.50024515",
"0.4992266",
"0.4992131",
"0.4990059",
"0.49842355",
"0.49744463",
"0.49728444",
"0.49718338",
"0.49706686",
"0.49655262",
"0.49639046",
"0.495727",
"0.49499774",
"0.4949031"
] | 0.6682618 | 1 |
Get a map of properties for a particular game element, so as to allow for their displaying in a modification area of the display. | Map<String, String> getElementProperties(int elementId) throws IllegalArgumentException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Map getProperties();",
"Map<String, String> getProperties();",
"Map<String, String> getProperties();",
"Map<String, String> properties();",
"Map<String, String> properties();",
"java.util.Map<java.lang.String, java.lang.String>\n getPropertiesMap();",
"public HashMap<Integer, Object> getEffectProperties( ) {\r\n\r\n return properties;\r\n }",
"Map<String, Object> properties();",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }",
"private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }",
"public List<CSSProperty> mapCSSProperty(String elementKey, Object object) {\n\t\t\tList<CSSProperty> properties = new ArrayList<CSSProperty>();\n\n\t\t\tswitch (elementKey) {\n\t\t\tcase \"alignment\":\n\t\t\t\tproperties.add(createProperty(\"text-align\", (String) object));\n\t\t\t\tbreak;\n\t\t\tcase \"margin\":\n\t\t\t\tproperties.addAll(mapMargin((JSONObject) object));\n\t\t\t\tbreak;\n\t\t\tcase \"size\":\n\t\t\t\tproperties.addAll(mapCSSSize((JSONObject) object));\n\t\t\t\tbreak;\n\t\t\tcase \"position\":\n\t\t\t\tproperties.add(createProperty(\"float\", \"left\"));\n\n\t\t\t\tbreak;\n\n\t\t\tcase \"padding\":\n\t\t\t\tproperties.addAll(mapCSSPadding((JSONObject) object));\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tproperties.add(createProperty(elementKey, (String) object));\n\t\t\t}\n\t\t\treturn properties;\n\t\t}",
"private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }",
"public GameProperty [] getGameProperties() {\n return this.GameProperties;\n }",
"Map<String, Object> getPropertiesAsMap();",
"public Map<String, WorldStateProperty> getProperties ()\n\t{\n\t\treturn properties;\n\t}",
"EProperties getProperties();",
"public Dictionary<String, Object> getProperties();",
"public List<PmPropertyBean> getProperties(Map paramter);",
"Map<String, String> getTemplateProperties(String elementName) throws IllegalArgumentException;",
"StringMap getProperties();",
"public Map getProperties() {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return new HashMap();\n }\n HashMap properties = new HashMap();\n Enumeration enuAttributes = session.getAttributeNames();\n while (enuAttributes.hasMoreElements()) {\n String nextAttribute = (String) enuAttributes.nextElement();\n Object value = session.getAttribute(nextAttribute);\n properties.put(nextAttribute, value);\n }\n return properties;\n }",
"public Map<String, Property> getProperties()\n {\n return properties;\n }",
"public Map<String, Object> getProperties()\n {\n return m_props;\n }",
"public Map<String,String> getMetadataElementMap() {\n\t\tMap<String,String> uiList = new LinkedHashMap<String,String>();\n\t\tfor (MetadataElement element: MetadataElement.values()){\n\t\t\tuiList.put(element.toString(), element.getDisplayName());\n\t\t}\n \n\t\treturn uiList;\n\t}",
"public PropertyMap getPropertyMap(String propertyName);",
"protected java.util.Map getProperties() {\n return properties;\n }",
"public Map<String, String> getAllProperties()\n {\n return _propertyEntries;\n }",
"TileRenderProperties getTileRenderProperties();",
"public Map<String, Object> getProperties() {\n return mProperties;\n }",
"protected Map createPropertiesMap() {\n return new HashMap();\n }",
"public Map<String, String> getProperties() {\n\t\treturn this.properties;\n\t}",
"default Map<String, Object> getProperties()\r\n {\r\n return emptyMap();\r\n }",
"public Properties getProperties()\n {\n Properties properties = null;\n List<Props.Entry> props = this.props.getEntry();\n if ( props.size() > 0 )\n {\n properties = new Properties();\n //int size = props.size();\n for ( Props.Entry entry : props )\n {\n String key = entry.getKey();\n String val = entry.getValue();\n properties.setProperty( key, val );\n }\n }\n return properties;\n }",
"public Map getProperties()\n {\n // Lazy compute properties\n if (properties == null)\n {\n ObjectNode parent = objectNode.getParent();\n if (parent == null)\n {\n this.properties = declaredPropertyMap;\n }\n else\n {\n Map properties = new HashMap();\n properties.putAll(parent.getObject().getProperties());\n properties.putAll(declaredPropertyMap);\n this.properties = properties;\n }\n\n //\n this.unmodifiableProperties = Collections.unmodifiableMap(properties);\n }\n\n //\n return unmodifiableProperties;\n }",
"public Collection<ModuleProperty> getProperties();",
"public Map<String, String> getProperties() {\n\t\tif (propertiesReader == null) {\n\t\t\tpropertiesReader = new PropertyFileReader();\n\t\t}\n\t\tpropertyMap = propertiesReader.getPropertyMap();\n\t\tlog.info(\"fetched all properties\");\n\t\treturn propertyMap;\n\t}",
"Property[] getProperties();",
"Properties getProperties();",
"public Map<String, String> getProperties() {\n return properties;\n }",
"public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }",
"public Map<RareItemProperty, Integer> getProperties(ItemStack is) {\n if(is.hasItemMeta()){\r\n ItemMeta meta = is.getItemMeta();\r\n \r\n if(meta.hasLore()){\r\n List<String> lore = meta.getLore();\r\n Map<RareItemProperty,Integer> propertyLevels = new HashMap<>();\r\n \r\n for(String sLore : lore){\r\n if(sLore.startsWith(PROPERTY_LINE_PREFIX)){\r\n String sPID = sLore.substring(sLore.lastIndexOf(ChatColor.COLOR_CHAR)+2);\r\n int itemPropertyLevel = 1;\r\n try{\r\n itemPropertyLevel = RomanNumeral.valueOf(sLore.substring(\r\n sLore.lastIndexOf(ChatColor.GREEN.toString())+2,\r\n sLore.lastIndexOf(ChatColor.COLOR_CHAR)-1\r\n ));\r\n }\r\n catch(IllegalArgumentException ex){\r\n continue;\r\n }\r\n \r\n int pid;\r\n \r\n try{\r\n pid = Integer.parseInt(sPID);\r\n }\r\n catch(NumberFormatException ex){\r\n continue;\r\n }\r\n \r\n RareItemProperty rip = this.plugin.getPropertymanager().getProperty(pid);\r\n \r\n if(rip != null){\r\n Integer currentLevel = propertyLevels.get(rip);\r\n \r\n if(currentLevel == null){\r\n currentLevel = 1;\r\n }\r\n \r\n int newLevel = currentLevel + itemPropertyLevel;\r\n \r\n propertyLevels.put(rip,newLevel);\r\n }\r\n }\r\n }\r\n \r\n return propertyLevels;\r\n }\r\n }\r\n \r\n return null;\r\n }",
"public HashMap<String, String> getProperties() {\n return (HashMap<String, String>) properties.clone();\n }",
"public java.util.Map<String,String> getProperties() {\n \n if (properties == null) {\n properties = new java.util.HashMap<String,String>();\n }\n return properties;\n }",
"public Map<String, String> getProperties() {\n return properties;\n }",
"public Map<String, String> getProperties() {\n return properties;\n }",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"@Override\n\t\tpublic Map<String, Object> getAllProperties() {\n\t\t\treturn null;\n\t\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic Hashtable getProperties() {\n\t\treturn _props;\n\t}",
"public Map<String, String> getPropValue() {\r\n\t\tMap<String, String> map = new HashMap<String, String>();\r\n\t\tif (prop == null) {\r\n\t\t\tprop = new Properties();\r\n\r\n\t\t\tInputStream in = this.getClass().getClassLoader().getResourceAsStream(\"project.properties\");\r\n\t\t\ttry {\r\n\t\t\t\tprop.load(in);\r\n\t\t\t\tEnumeration<?> e = prop.propertyNames();\r\n\t\t\t\twhile (e.hasMoreElements()) {\r\n\t\t\t\t\tString name = (String) e.nextElement();\r\n\t\t\t\t\tString value = prop.getProperty(name);\r\n\t\t\t\t\tmap.put(name, value);\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}\r\n\t\t} else {\r\n\t\t\tEnumeration<?> e = prop.propertyNames();\r\n\t\t\twhile (e.hasMoreElements()) {\r\n\t\t\t\tString name = (String) e.nextElement();\r\n\t\t\t\tString value = prop.getProperty(name);\r\n\t\t\t\tmap.put(name, value);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn map;\r\n\t}",
"public Map<String, Object> getAttrs();",
"public Map<String, String> getMDCPropertyMap() {\n return null;\n }",
"Map<String, String> getConfigProperties();",
"java.lang.String getProperties();",
"Map<String, Map<String, String>> getAllDefinedTemplateProperties();",
"public Properties getProperties();",
"public Map<String, String> properties() {\n return this.properties;\n }",
"CommonProperties getProperties();",
"public Properties getProperties() { return props; }",
"public static Map<String, String> getPropertiesMap(String filename) throws IOException{\n Map<String, String> map = new LinkedHashMap();\n Properties p = new Properties();\n loadProperties(p, filename);\n Set<String> keys = p.stringPropertyNames();\n for (String k : keys) {\n map.put(k, p.getProperty(k));\n }\n return map;\n }",
"public static List<Property> calculatePropertyAttributes(Player aPlayer) {\n\t\tTerrainType propertyType;\n\t\tList<Property> property = TileFromDomino.convertTilePropertyToProerty(aPlayer.getKingdom());\n\t\tfor(Property pt: property) {\n\t\t\tList<Domino> dominosInProperty = pt.getIncludedDominos();\n\t\t\tint size=0;\n\t\t\tint score=0;\n\t\t\tint crowns=0;\n\t\t\tpropertyType = pt.getPropertyType();\n\n\t\t\tfor (Domino domino: dominosInProperty) {\n\t\t\t\tif(domino.getRightTile().equals(propertyType)) {\n\t\t\t\t\tsize+=1;\n\t\t\t\t\tcrowns+=domino.getRightCrown();\n\t\t\t\t}\n\t\t\t\tif(domino.getLeftTile().equals(propertyType)) {\n\t\t\t\t\tsize+=1;\n\t\t\t\t}\n\t\t\t\t// crown only exist in the right tile.\n\t\t\t}\n\t\t\tscore = size*crowns;\n\t\t\tpt.setCrowns(crowns);\n\t\t\tpt.setSize(size);\n\t\t\tpt.setScore(score);\n\t\t}\n\t\t\n\t\treturn property;\n\t}",
"ArrayList<PropertyMetadata> getProperties();",
"void updateElementProperties(int elementId, Map<String, String> propertiesToUpdate);",
"public HasDisplayableProperties getProperties();",
"private static HashMap<String, DefinedProperty> initDefinedProperties() {\n\t\tHashMap<String, DefinedProperty> newList = new HashMap<String, DefinedProperty>();\n\t\t// common properties\n\t\taddProperty(newList, \"name\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"desc\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\t// implicit default properties\n\t\taddProperty(newList, \"donttest\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"dontcompare\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\t// interface properties\n\t\taddProperty(newList, \"use_interface\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"use_new_interface\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\t// reg + regset properties\n\t\taddProperty(newList, \"js_superset_check\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"external\", DefinedPropertyType.SPECIAL, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"repcount\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t// regset only properties\n\t\taddProperty(newList, \"js_macro_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_macro_mode\", DefinedPropertyType.STRING, \"STANDARD\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_namespace\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_typedef_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_repeat\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET, false, false);\n\t\t// reg only properties\n\t\taddProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"aliasedId\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, true, false); // hidden\n\t\taddProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_is_mem\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"cppmod_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\t// signal properties\n\t\taddProperty(newList, \"cpuif_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"field_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activehigh\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activelow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"signalwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.SIGNAL, false, false);\n\t\t// fieldset only properties\n\t\taddProperty(newList, \"fieldstructwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.FIELDSET, false, false);\n\t\t// field properties\n\t\taddProperty(newList, \"rset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"we\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"wel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwe\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swmod\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swacc\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sticky\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"stickybit\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"intr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"anded\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"ored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"xored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"counter\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"overflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"fieldwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"singlepulse\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"underflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"saturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"threshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"precedence\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"encode\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"resetsignal\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"mask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"enable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltmask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltenable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"halt\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"next\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextposedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextnegedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"maskintrbits\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false); \n\t\taddProperty(newList, \"satoutput\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sub_category\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rtl_coverage\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\t\n\t\t// override allowed property set if input type is jspec\n\t\tif (Ordt.hasInputType(Ordt.InputType.JSPEC)) {\n\t\t\tputProperty(newList, \"sub_category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG | DefinedProperty.FIELDSET | DefinedProperty.FIELD, false, false);\n\t\t\tputProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"address\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"arrayidx1\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t\tputProperty(newList, \"addrinc\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t}\t\t\n\n\t\treturn newList;\n\t}",
"private void getProperties() {\n\t\tProperties menu_properties = new Properties();\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tinput = new FileInputStream(PROPERTY_FILENAME);\n\t\t\tmenu_properties.load(input);\n\t\t\ttitle = menu_properties.getProperty(TITLE_PROPERTY);\n\t\t\tscreen_width = Integer.parseInt(menu_properties.getProperty(WIDTH_PROPERTY));\n\t\t\tscreen_height = Integer.parseInt(menu_properties.getProperty(HEIGHT_PROPERTY));\n\t\t} catch (IOException ex) {\n\t\t\tSystem.err.println(\"Display file input does not exist!\");\n\t\t} catch (Exception ey) {\n\t\t\tSystem.err.println(\"The properties for the display could not be retrieved completely.\");\n \t} finally {\n \t\tif (input != null) {\n \t\t\ttry {\n \t\t\t\tinput.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\tSystem.err.println(\"Display file input cannot close!\");\n \t\t\t}\n \t\t}\n \t}\n }",
"public abstract Properties getProperties();",
"@Override\n\tpublic Map<String, Object> getProperties() {\n\t\treturn null;\n\t}",
"java.util.Map<java.lang.String, java.lang.String> getAttributesMap();",
"public Map<String, String> getAttributes();",
"public org.LexGrid.commonTypes.Properties getProperties() {\n return properties;\n }",
"Map<String, String> getPropsViews();",
"public Map<String, String> getProperties(\n ExecutionContext context,\n ExecutionScript script) throws InterruptedException, IOException {\n return properties;\n }",
"public Map<String, Object> getAttributes();",
"public Map<String, Object> getAttributes();",
"public\tHashMap\tgetPropertiesMap(String prefix)\n\t{\n\t\tHashMap props = new\tHashMap();\n\t\taddProperties(props,prefix);\n\t\t\n\t\treturn\tprops;\n\t}",
"public static void printProperties(BioPAXElement bpe) {\n\t\t// In order to use properties we first need an EditorMap\n\t\t// EditorMap editorMap = SimpleEditorMap.L3;\n\t\tEditorMap editorMap = SimpleEditorMap.L3;\n\t\t// And then get all the editors for our biopax element\n\t\tSet<PropertyEditor> editors = editorMap.getEditorsOf(bpe);\n\t\t// Let's prepare a table to return values\n\t\t// String value[][] = new String[editors.size()][2];\n\t\t// int row = 0;\n\t\t// For each property\n\t\tfor (PropertyEditor editor : editors) {\n\t\t\t// First column is the name of the property, e.g. \"Name\"\n\t\t\t// value[row][0] = editor.getProperty();\n\t\t\tfor (Object val : editor.getValueFromBean(bpe)) {\n\t\t\t\tSystem.out.println(\" \" + editor.getProperty() + \" : (\"\n\t\t\t\t\t\t+ val.getClass().getName() + \") \" + val.toString());\n\t\t\t}\n\n\t\t\t// For each property that has a value or values, we want to see if\n\t\t\t// each value is a literal or a resource\n\t\t\t// If its a resource, we make an edge, otherwise we make a property\n\n\t\t\t// Second column is the value e.g. \"p53\"\n\t\t\t// value[row][1] = editor.getValueFromBean(bpe).toString();\n\t\t\t// System.out.println(editor.getValueFromBean(bpe).toString());\n\t\t\t// increase the row index\n\t\t\t// row++;\n\t\t}\n\t\t// return value;\n\t}",
"public List<TLProperty> getElements();",
"public Map<String, String> loggableMap() {\n final TreeMap<String, String> map = new TreeMap<>();\n for (final ConfigProperty cp : _properties.values()) {\n map.put(cp.getKey(), cp.loggableValue());\n }\n return map;\n }",
"@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }",
"public abstract AbstractProperties getProperties();",
"public String getMap() { \n\t\treturn getMapElement().getValue();\n\t}",
"public Map<String, Schema> getProperties() {\n\t\treturn properties;\n\t}",
"public Map<ComponentId, CHILD> getComponentMap() {\n return Collections.unmodifiableMap(producerById);\n }",
"public AreaProperties getProperties() {\n return this.properties;\n }",
"PropertyRegistry getPropertyRegistry();",
"Map<String, String> getAttributes();",
"public Map<Employee,String> getPerformancemap(){\r\n\t\treturn performance;\r\n\t}",
"public Map<String,Object> getAttributeMap() {\r\n return Maps.newHashMap(attributeMap);\r\n }",
"public Map getMessageProperties()\r\n\t{\r\n\t\treturn this.properties;\r\n\t}",
"private PropertyCard createPropertyElement(Element eElement) {\r\n\t\tif ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.UTILITY )\r\n\t\t{\r\n\t\t return new UtilityPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if (PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.RAILING )\r\n\t\t{\r\n\t\t return new RailingPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.SIMPLE )\r\n\t\t{\r\n\t\t\treturn new PlotPropertyCard(\r\n\t\t\t\tInteger.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t\t,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t\t,PlotPropertyCard.Colour_Type.valueOf(eElement.getElementsByTagName(\"colour\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue0\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValueHotel\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"houseCost\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"hotelCost\").item(0).getTextContent())\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Map<String, Component> getMapa_componentes() {\r\n\t\treturn tabboxContendor.getMapa_componentes();\r\n\t}",
"public abstract Properties getProfileProperties();",
"public Properties getProperties() {\n\t\treturn this.properties;\n\t}",
"public abstract Map<String, Protein> getProteins();",
"public ConfigMapDTO getMapProperty(final String name) {\n \t\treturn mapProperties.get(name);\n \t}",
"public Node.Property[] getProperties() {\n Node.Property[] ret = new Node.Property[5];\n Node.Property[] insets = getInsetsProperties();\n for (int i = 0; i <= 3; ret[i] = insets[i], i++)\n ;\n\n ret[4] = new BorderProp(PROP_ICON, Icon.class,\n BorderInfo.bundle.getString(\"PROP_Icon\"),\n BorderInfo.bundle.getString(\"HINT_Icon\")) {\n public Object getValue () {\n return icon;\n }\n public void setValue (Object val) throws IllegalArgumentException {\n if (val == null) {\n //XXX (-tdt) TopManager.getDefault().notify(new NotifyDescriptor.Message (BorderInfo.bundle.getString(\"MSG_CannotGenerate\"), NotifyDescriptor.ERROR_MESSAGE));\n val = new ImageIcon();\n icon = (Icon) val;\n updateBorder();\n firePropChange();\n\n } else\n if (val instanceof Icon) {\n icon = (Icon) val;\n updateBorder();\n firePropChange();\n }\n else throw new IllegalArgumentException();\n }\n public boolean isDefault() {\n return DEFAULT_ICON == null && icon == null\n || icon != null && icon.equals(DEFAULT_ICON);\n }\n };\n\n return ret;\n }",
"public static Map<String, Object> getNonNullProperties(Object bean)\n {\n generateMaps(bean);\n return att_map;\n }"
] | [
"0.7264347",
"0.6642836",
"0.6642836",
"0.6615882",
"0.6615882",
"0.6607427",
"0.6527915",
"0.6454771",
"0.6444409",
"0.6434357",
"0.64231265",
"0.6389119",
"0.63482964",
"0.6262944",
"0.6258379",
"0.6253446",
"0.6231321",
"0.62271845",
"0.61936843",
"0.61834157",
"0.616746",
"0.61602473",
"0.61135",
"0.6080441",
"0.60718185",
"0.6042583",
"0.6020714",
"0.59816134",
"0.59530497",
"0.59386384",
"0.5935036",
"0.59309614",
"0.593006",
"0.59178627",
"0.59072095",
"0.5904973",
"0.59043443",
"0.58918273",
"0.5889347",
"0.5874022",
"0.58505416",
"0.5845277",
"0.5842988",
"0.58237773",
"0.5805451",
"0.5805451",
"0.5797592",
"0.57278126",
"0.57278126",
"0.5679969",
"0.5676",
"0.5665504",
"0.5653527",
"0.5650101",
"0.56445163",
"0.5642703",
"0.5627715",
"0.5627047",
"0.5600889",
"0.55697316",
"0.5557143",
"0.5524351",
"0.55226946",
"0.5513284",
"0.55027455",
"0.55020607",
"0.5497621",
"0.54841346",
"0.54780877",
"0.5475833",
"0.5474014",
"0.5460855",
"0.5455488",
"0.5450952",
"0.5450153",
"0.54462516",
"0.54462516",
"0.54247266",
"0.5423698",
"0.5416798",
"0.5414847",
"0.54103935",
"0.5405369",
"0.54053646",
"0.5401151",
"0.54003745",
"0.5378189",
"0.5372901",
"0.5358688",
"0.53558314",
"0.53531027",
"0.53399897",
"0.5338049",
"0.53358793",
"0.532912",
"0.5324149",
"0.5319289",
"0.5314164",
"0.5310636",
"0.531016"
] | 0.6973934 | 1 |
Get a map of properties for an element template / model, so as to allow for their displaying in a modification area of the display | Map<String, String> getTemplateProperties(String elementName) throws IllegalArgumentException; | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, Map<String, String>> getAllDefinedTemplateProperties();",
"public Map getProperties();",
"Map<String, String> getPropsViews();",
"Map<String, String> getElementProperties(int elementId) throws IllegalArgumentException;",
"private Map<String, Object> getMvcMetadata(ComponentTemplate componentTemplate) {\n\n Map<String, Object> metadata = new HashMap<>();\n Map<String, Field> metadataFields = componentTemplate.getMetadata();\n\n for (Map.Entry<String, Field> entry : metadataFields.entrySet()) {\n String fieldName = entry.getKey();\n if (fieldName.equals(\"view\") ||\n fieldName.equals(\"regionView\") ||\n fieldName.equals(\"controller\") ||\n fieldName.equals(\"action\") ||\n fieldName.equals(\"routeValues\")) {\n continue;\n }\n Field field = entry.getValue();\n if (field.getValues().size() > 0) {\n metadata.put(fieldName, field.getValues().get(0).toString()); // Assume single-value text fields for template metadata\n }\n }\n return metadata;\n }",
"public HashMap<Integer, List<TemplateAttribute>> getAttrsByTemplate() {\n if (t_attrs == null) {\n t_attrs = new HashMap<Integer, List<TemplateAttribute>>();\n }\n return t_attrs;\n }",
"public List<PmPropertyBean> getPropertiesByModel(Map paramter);",
"private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }",
"Map<String, String> properties();",
"Map<String, String> properties();",
"public Map<String, Object> getAttrs();",
"public Map<String,String> getMetadataElementMap() {\n\t\tMap<String,String> uiList = new LinkedHashMap<String,String>();\n\t\tfor (MetadataElement element: MetadataElement.values()){\n\t\t\tuiList.put(element.toString(), element.getDisplayName());\n\t\t}\n \n\t\treturn uiList;\n\t}",
"Map<String, Object> properties();",
"private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }",
"EProperties getProperties();",
"StringMap getProperties();",
"TileRenderProperties getTileRenderProperties();",
"Map<String, String> getProperties();",
"Map<String, String> getProperties();",
"java.util.Map<java.lang.String, java.lang.String>\n getPropertiesMap();",
"private void loadModelProperties(ModelProperties modelProperties, Element parent) {\n final Element element = getElement(parent, \"model_properties\");\n assistLogic.loadLocation(modelProperties, element);\n assistLogic.loadColor(modelProperties, element);\n modelProperties.setDisplay(getBooleanValue(element, \"display\"));\n final NodeList nodeList = element.getElementsByTagName(\"model_property\");\n for (int i = 0; i < nodeList.getLength(); i++) {\n final Element propertyElement = (Element) nodeList.item(i);\n final String name = getStringValue(propertyElement, \"name\");\n final String migratedName = defaultModelPropertyMigrationMap.get(name);\n final String realName = migratedName != null ? migratedName : name;\n final String value = getStringValue(propertyElement, \"value\");\n final NameValue nameValue = new NameValue(realName, value);\n modelProperties.addProperty(nameValue);\n }\n }",
"public Map<String, Object> getDirectives();",
"public PropertyMap getPropertyMap(String propertyName);",
"public Dictionary<String, Object> getProperties();",
"java.util.Map<java.lang.String, java.lang.String> getAttributesMap();",
"public Properties getOutputProperties()\n {\n return templates.getOutputProperties();\n }",
"protected Map propertyDescriptors(ComponentBean cb, RendererBean rb) {\n try {\n Map map = new TreeMap();\n propertyDescriptors(cb, rb, map);\n PropertyBean idProp = (PropertyBean) map.get(\"id\");\n if (idProp == null || idProp.getPropertyName() == null) {\n throw new IllegalArgumentException(\"FAILED +\" + cb.getComponentClass() + \" is not valid defined, no id attribute\");\n }\n\n if (idProp.isHidden()) {\n idProp.setHidden(false);\n }\n return map;\n } catch (IOException ex) {\n Logger.getLogger(AbstractTempGen.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"protected Map createPropertiesMap() {\n return new HashMap();\n }",
"public Collection<ModuleProperty> getProperties();",
"public List<PmPropertyBean> getProperties(Map paramter);",
"public Map<String, Object> getAttributes();",
"public Map<String, Object> getAttributes();",
"public HashMap<Integer, Object> getEffectProperties( ) {\r\n\r\n return properties;\r\n }",
"Map<String, Object> getPropertiesAsMap();",
"Map<String, String> getDirectives();",
"Map<String, String> getDirectives();",
"Map<String, String> getDirectives();",
"public void genProperties(PropertiesModel propModel) {\n\t\tpropModel.addProp(\"X\", position.x());\n\t\tpropModel.addProp(\"Y\", position.y());\n\t\tpropModel.addProp(\"Collision Radius\", collisionRadius);\n\t}",
"public List<TLProperty> getElements();",
"Map<String, String> getAttributes();",
"Map<String, Object> getAttributes();",
"Map<String, Object> getAttributes();",
"Map<String, Object> getAttributes();",
"public Map<String, String> getAttributes();",
"public Map<String, Object> getTagMap();",
"protected java.util.Map getProperties() {\n return properties;\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }",
"public Map<String, NGPackageSpecification<WebObjectSpecification>> getWebComponentSpecifications()\n\t{\n\t\treturn reader.getWebComponentSpecifications();\n\t}",
"protected Map propertyDescriptors(ComponentBean cb) {\n try {\n Map map = new TreeMap();\n propertyDescriptors(cb, map);\n PropertyBean idProp = (PropertyBean) map.get(\"id\");\n if (idProp == null || idProp.getPropertyName() == null) {\n throw new IllegalArgumentException(\"FAILED +\" + cb.getComponentClass() + \" is not valid defined, no id attribute\");\n }\n\n if (idProp.isHidden()) {\n idProp.setHidden(false);\n }\n return map;\n } catch (IOException ex) {\n Logger.getLogger(AbstractTempGen.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"protected Map<String, String> getElementAttributes() {\n // Preserve order of attributes\n Map<String, String> attrs = new HashMap<>();\n\n if (this.getName() != null) {\n attrs.put(\"name\", this.getName());\n }\n if (this.getValue() != null) {\n attrs.put(\"value\", this.getValue());\n }\n\n return attrs;\n }",
"public abstract Map<String, Object> getAttributes();",
"public static Map<String, Property> getDefaultMapping() {\n\t\tMap<String, Property> props = new HashMap<String, Property>();\n\t\tprops.put(\"nstd\", Property.of(p -> p.nested(n -> n.enabled(true))));\n\t\tprops.put(\"properties\", Property.of(p -> {\n\t\t\t\tif (nestedMode()) {\n\t\t\t\t\tp.nested(n -> n.enabled(true));\n\t\t\t\t} else {\n\t\t\t\t\tp.object(n -> n.enabled(true));\n\t\t\t\t}\n\t\t\t\treturn p;\n\t\t\t}\n\t\t));\n\t\tprops.put(\"latlng\", Property.of(p -> p.geoPoint(n -> n.nullValue(v -> v.text(\"0,0\")))));\n\t\tprops.put(\"_docid\", Property.of(p -> p.long_(n -> n.index(false))));\n\t\tprops.put(\"updated\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\t\tprops.put(\"timestamp\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\n\t\tprops.put(\"tag\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"id\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"key\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"name\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"type\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"tags\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"token\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"email\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"appid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"groups\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"password\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"parentid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"creatorid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"identifier\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\treturn props;\n\t}",
"private static HashMap<String, DefinedProperty> initDefinedProperties() {\n\t\tHashMap<String, DefinedProperty> newList = new HashMap<String, DefinedProperty>();\n\t\t// common properties\n\t\taddProperty(newList, \"name\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"desc\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\t// implicit default properties\n\t\taddProperty(newList, \"donttest\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"dontcompare\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\t// interface properties\n\t\taddProperty(newList, \"use_interface\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"use_new_interface\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\t// reg + regset properties\n\t\taddProperty(newList, \"js_superset_check\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"external\", DefinedPropertyType.SPECIAL, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"repcount\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t// regset only properties\n\t\taddProperty(newList, \"js_macro_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_macro_mode\", DefinedPropertyType.STRING, \"STANDARD\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_namespace\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_typedef_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_repeat\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET, false, false);\n\t\t// reg only properties\n\t\taddProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"aliasedId\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, true, false); // hidden\n\t\taddProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_is_mem\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"cppmod_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\t// signal properties\n\t\taddProperty(newList, \"cpuif_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"field_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activehigh\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activelow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"signalwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.SIGNAL, false, false);\n\t\t// fieldset only properties\n\t\taddProperty(newList, \"fieldstructwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.FIELDSET, false, false);\n\t\t// field properties\n\t\taddProperty(newList, \"rset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"we\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"wel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwe\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swmod\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swacc\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sticky\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"stickybit\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"intr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"anded\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"ored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"xored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"counter\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"overflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"fieldwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"singlepulse\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"underflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"saturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"threshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"precedence\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"encode\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"resetsignal\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"mask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"enable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltmask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltenable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"halt\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"next\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextposedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextnegedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"maskintrbits\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false); \n\t\taddProperty(newList, \"satoutput\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sub_category\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rtl_coverage\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\t\n\t\t// override allowed property set if input type is jspec\n\t\tif (Ordt.hasInputType(Ordt.InputType.JSPEC)) {\n\t\t\tputProperty(newList, \"sub_category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG | DefinedProperty.FIELDSET | DefinedProperty.FIELD, false, false);\n\t\t\tputProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"address\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"arrayidx1\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t\tputProperty(newList, \"addrinc\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t}\t\t\n\n\t\treturn newList;\n\t}",
"public PropertySet getViewProperties() {\r\n return prefs;\r\n }",
"public interface PropsViewsContainer {\n\n /**\n * Adds a new properties view configuration. The id must be unique. The\n * configuration must be an string with the namespace of the entity to be\n * loaded at a minimum.\n */\n void addPropsView(String id, String className);\n\n /**\n * Sets the configuration for the properties view. Each value of the map\n * can be an string (full name of an entity) or a map with options to be\n * passed to the builder.<br/>\n * See <b>addPropsView</b> method for details.\n * @param configuration\n */\n void setPropsViews(Map<String, String> propertiesView);\n\n /**\n * Gets the configuration for the properties view\n * @return the map with the configuration\n */\n Map<String, String> getPropsViews();\n}",
"public void transformTemplate(Template t)\n\t{\n\t\tfor (ConstrainedProperty property : getPositionedProperties())\n\t\t{\n\t\t\t// only show the CMF admin properties that can be edited\n\t\t\tif (!property.isEditable())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property.getPropertyName());\n\t\t\t\n\t\t\tboolean\t\thandled = false;\n\t\t\tMimeType\tmimetype = property.getMimeType();\n\t\t\tif (mimetype != null)\n\t\t\t{\n\t\t\t\tif (!property.isAutoRetrieved())\n\t\t\t\t{\n\t\t\t\t\tif (0 == mimetype.toString().indexOf(\"image/\"))\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-image\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.RAW == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tt.setBlock(\"form_field-legend\", \"form_field-legend\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-raw\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif (MimeType.APPLICATION_XHTML == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-xhtml\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (MimeType.TEXT_PLAIN == mimetype)\n\t\t\t\t\t{\n\t\t\t\t\t\thandled = true;\n\t\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-text\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (!handled)\n\t\t\t{\n\t\t\t\tif (property.isUrl())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-url\");\n\t\t\t\t}\n\t\t\t\telse if (property.isEmail())\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-email\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\n\t\t\tif (t.hasBlock(\"form_field-legend\"))\n\t\t\t{\n\t\t\t\tt.removeValue(\"form_field-legend\");\n\t\t\t}\n\t\t}\n\n\t\t// display the regular properties\n\t\tfor (String property_name : getRegularProperties())\n\t\t{\n\t\t\t// setup the form field\n\t\t\tt.setValue(\"property\", property_name);\n\t\t\tt.setBlock(\"form_field\", \"form_field-generic\");\n\t\t\tt.appendBlock(\"fields\", \"field\");\n\t\t}\n\t}",
"public List<CSSProperty> mapCSSProperty(String elementKey, Object object) {\n\t\t\tList<CSSProperty> properties = new ArrayList<CSSProperty>();\n\n\t\t\tswitch (elementKey) {\n\t\t\tcase \"alignment\":\n\t\t\t\tproperties.add(createProperty(\"text-align\", (String) object));\n\t\t\t\tbreak;\n\t\t\tcase \"margin\":\n\t\t\t\tproperties.addAll(mapMargin((JSONObject) object));\n\t\t\t\tbreak;\n\t\t\tcase \"size\":\n\t\t\t\tproperties.addAll(mapCSSSize((JSONObject) object));\n\t\t\t\tbreak;\n\t\t\tcase \"position\":\n\t\t\t\tproperties.add(createProperty(\"float\", \"left\"));\n\n\t\t\t\tbreak;\n\n\t\t\tcase \"padding\":\n\t\t\t\tproperties.addAll(mapCSSPadding((JSONObject) object));\n\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tproperties.add(createProperty(elementKey, (String) object));\n\t\t\t}\n\t\t\treturn properties;\n\t\t}",
"default Map<String, Object> getProperties()\r\n {\r\n return emptyMap();\r\n }",
"List<springfox.documentation.schema.ModelProperty> properties(ModelContext context);",
"public Map getProperties() {\n HttpSession session = (HttpSession) _currentSession.get();\n if (session == null) {\n return new HashMap();\n }\n HashMap properties = new HashMap();\n Enumeration enuAttributes = session.getAttributeNames();\n while (enuAttributes.hasMoreElements()) {\n String nextAttribute = (String) enuAttributes.nextElement();\n Object value = session.getAttribute(nextAttribute);\n properties.put(nextAttribute, value);\n }\n return properties;\n }",
"Map getSPEXDataMap();",
"void setPropsViews(Map<String, String> propertiesView);",
"public HasDisplayableProperties getProperties();",
"public Map<String, WorldStateProperty> getProperties ()\n\t{\n\t\treturn properties;\n\t}",
"public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }",
"public List<IPropertyDescriptor<T>> getProperties();",
"List<PropertySpecification> propertySpecifications(ModelContext context);",
"public Map<String, Object> getProperties()\n {\n return m_props;\n }",
"@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }",
"public Map<String, Property> getProperties()\n {\n return properties;\n }",
"ProductProperties productProperties();",
"List<Property<?>> getProperties(ProjectEntity entity);",
"public abstract Map getAttributes();",
"public Map<String, String> getProperties() {\n\t\treturn this.properties;\n\t}",
"private Map<String, String> getComponentHtmlTagAttributes(String resourceType) {\n if (StringUtils.isNotEmpty(resourceType)) {\n Component component = componentManager().getComponent(resourceType);\n if (component != null && component.getHtmlTagAttributes() != null) {\n return component.getHtmlTagAttributes();\n }\n }\n return ImmutableMap.of();\n }",
"public Note[] getProperties(Object key);",
"ArrayList<PropertyMetadata> getProperties();",
"Map getGenAttributes();",
"@Override\n\tpublic Map<String, Object> getProperties() {\n\t\treturn null;\n\t}",
"Properties getProperties();",
"public abstract Map<String, Object> fetchModelMap() throws ModelException;",
"Map<String, List<String>> getElementBaseConfigurationOptions();",
"Map<Element, Map<Element, Element>> getOperationMap();",
"@Override\n\t\tpublic Map<String, Object> getAllProperties() {\n\t\t\treturn null;\n\t\t}",
"private Map<String, Object> initializeModelForEntryForm() {\r\n\t\tMap<String, Object> myModel = new HashMap<String, Object>();\r\n\t\tCollection<Tag> primaryTags = tagService.getPrimaryTags();\r\n\t\tmyModel.put(\"primaryTags\", primaryTags);\r\n\r\n\t\tMap<String, Object> featured = new HashMap<String, Object>();\r\n\t\tfeatured.put(\"true\", \"featured\");\r\n\t\tmyModel.put(\"featured\", featured);\r\n\r\n\t\tList<Tag> secondaryTags = new ArrayList<Tag>();\r\n\r\n\t\tfor (Tag aTag : primaryTags) {\r\n\t\t\tsecondaryTags.addAll(tagService.getBelongingTags(aTag.getId()));\r\n\t\t}\r\n\r\n\t\tCollections.sort(secondaryTags, new Comparator<Tag>() {\r\n\t\t public int compare(Tag tag1, Tag tag2) {\r\n\t\t return tag1.getName().compareTo(tag2.getName());\r\n\t\t }\r\n\t\t});\r\n\r\n\t\tmyModel.put(\"secondaryTags\", secondaryTags);\r\n\t\tCollection<WebItemType> webItemTypes = webItemTypeService.getAllWebItemTypes();\r\n\t\tmyModel.put(\"allWebItemTypes\", webItemTypes);\r\n\r\n\t\treturn myModel;\r\n\t}",
"private static void generateMaps(Object bean)\n {\n try\n {\n att_map = new HashMap<>();\n getter_map = new HashMap<>();\n setter_map = new HashMap<>();\n\n Arrays.stream(Introspector.getBeanInfo(bean.getClass(), Object.class)\n .getPropertyDescriptors())\n // filter out properties with setters only\n .filter(pd -> Objects.nonNull(pd.getReadMethod()))\n .forEach(pd ->\n { // invoke method to get value\n try\n {\n Object value = pd.getReadMethod().invoke(bean);\n if (value != null)\n {\n att_map.put(pd.getName(), value);\n getter_map.put(pd.getName(), pd.getReadMethod());\n setter_map.put(pd.getName(), pd.getWriteMethod());\n }\n } catch (Exception e)\n {\n // add proper error handling here\n }\n });\n att_map = sortAsDeclaredOrder(bean,att_map);\n getter_map = sortAsDeclaredOrder(getter_map, bean);\n setter_map = sortAsDeclaredOrder(setter_map, bean);\n currentObject = bean;\n } catch (IntrospectionException e)\n {\n // and here, too\n att_map = null;\n getter_map = null;\n setter_map = null;\n currentObject = null;\n }\n }",
"protected Map<String, Object> getVariables() throws NamingException {\r\n\t\tMap<String, Object> variables = new HashMap<String, Object>();\r\n\t\tvariables.put(\"account.id\", getAccountUser().getAccount().getId());\r\n\t\tvariables.put(\"user.id\", getAccountUser().getUser().getId());\r\n\t\tvariables.put(\"now\", new Date());\r\n\t\tvariables.put(\"placeholder.id:patient\", getPlaceholderId());\r\n\t\treturn variables;\r\n\t}",
"@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }",
"private PropertyCard createPropertyElement(Element eElement) {\r\n\t\tif ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.UTILITY )\r\n\t\t{\r\n\t\t return new UtilityPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if (PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.RAILING )\r\n\t\t{\r\n\t\t return new RailingPropertyCard(\r\n\t\t\t Integer.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t ,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t ,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t );\r\n\t\t}\r\n\t\telse if ( PropertyCard.PropertyType.valueOf(eElement.getElementsByTagName(\"type\").item(0).getTextContent()) == PropertyCard.PropertyType.SIMPLE )\r\n\t\t{\r\n\t\t\treturn new PlotPropertyCard(\r\n\t\t\t\tInteger.parseInt(eElement.getAttribute(\"id\"))\r\n\t\t\t\t,eElement.getElementsByTagName(\"name\").item(0).getTextContent()\r\n\t\t\t\t,PlotPropertyCard.Colour_Type.valueOf(eElement.getElementsByTagName(\"colour\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue0\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue1\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue2\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue3\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValue4\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"rentalValueHotel\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"mortgageValue\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"houseCost\").item(0).getTextContent())\r\n\t\t\t\t,Integer.parseInt(eElement.getElementsByTagName(\"hotelCost\").item(0).getTextContent())\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public Map<String, Object> getProperties() {\n return mProperties;\n }",
"public static String createVelocityContent(String templateName, Map<String, ? extends Object> model){\n VelocityContext context = new VelocityContext();\n\n for(String key : model.keySet()){\n context.put(key, model.get(key));\n }\n\n VelocityEngine ve = getVelocityEngine();\n Template template = ve.getTemplate(templateName);\n StringWriter writer = new StringWriter();\n template.merge(context, writer);\n return writer.toString();\n\n }",
"@Override\n\tpublic List<Stat> getModel() {\n\t\treturn myProperties;\n\t}",
"public Map<String, String> getProperties() {\n return properties;\n }",
"public Node.Property[] getProperties() {\n Node.Property[] ret = new Node.Property[5];\n Node.Property[] insets = getInsetsProperties();\n for (int i = 0; i <= 3; ret[i] = insets[i], i++)\n ;\n\n ret[4] = new BorderProp(PROP_ICON, Icon.class,\n BorderInfo.bundle.getString(\"PROP_Icon\"),\n BorderInfo.bundle.getString(\"HINT_Icon\")) {\n public Object getValue () {\n return icon;\n }\n public void setValue (Object val) throws IllegalArgumentException {\n if (val == null) {\n //XXX (-tdt) TopManager.getDefault().notify(new NotifyDescriptor.Message (BorderInfo.bundle.getString(\"MSG_CannotGenerate\"), NotifyDescriptor.ERROR_MESSAGE));\n val = new ImageIcon();\n icon = (Icon) val;\n updateBorder();\n firePropChange();\n\n } else\n if (val instanceof Icon) {\n icon = (Icon) val;\n updateBorder();\n firePropChange();\n }\n else throw new IllegalArgumentException();\n }\n public boolean isDefault() {\n return DEFAULT_ICON == null && icon == null\n || icon != null && icon.equals(DEFAULT_ICON);\n }\n };\n\n return ret;\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<PropertyItem> getModelData() {\n\t\treturn mProperties;\n\t}",
"@Override\n public Map<String, XPathValue> getArticleMetaMap() {\n return EbscoMap;\n }",
"Property[] getProperties();",
"java.lang.String getProperties();",
"public HashMap<String, LttngEventField> getMapContent() {\n return fFieldsMap;\n }"
] | [
"0.7048475",
"0.61952275",
"0.6161409",
"0.6126773",
"0.6111248",
"0.60978854",
"0.60633826",
"0.59037316",
"0.57900363",
"0.57900363",
"0.5744562",
"0.57435614",
"0.5698256",
"0.5675115",
"0.55611",
"0.55385554",
"0.55113757",
"0.5506875",
"0.5506875",
"0.54807234",
"0.54498994",
"0.54429066",
"0.54205126",
"0.5414748",
"0.5400443",
"0.5380072",
"0.53513813",
"0.53476816",
"0.5346864",
"0.53269994",
"0.53233445",
"0.53233445",
"0.53188",
"0.5313623",
"0.531245",
"0.531245",
"0.531245",
"0.52963376",
"0.52897376",
"0.5287782",
"0.52870864",
"0.52870864",
"0.52870864",
"0.52776253",
"0.5255699",
"0.5245951",
"0.52443373",
"0.5222572",
"0.520152",
"0.5192199",
"0.5167252",
"0.51631945",
"0.5160004",
"0.5148134",
"0.51478416",
"0.51453173",
"0.51421916",
"0.51364136",
"0.5134698",
"0.5134057",
"0.51116025",
"0.5110588",
"0.5108793",
"0.5077679",
"0.5073816",
"0.50737274",
"0.50675654",
"0.5067417",
"0.50639755",
"0.50517744",
"0.50441504",
"0.5014379",
"0.5005815",
"0.4999819",
"0.4990643",
"0.49894816",
"0.4986014",
"0.4970213",
"0.4961797",
"0.4957592",
"0.49518704",
"0.4944486",
"0.49412754",
"0.49395967",
"0.4938583",
"0.49379456",
"0.49353933",
"0.49322373",
"0.49268377",
"0.4923687",
"0.49203962",
"0.491977",
"0.49179852",
"0.4899572",
"0.48889825",
"0.4884631",
"0.48827004",
"0.48800856",
"0.48780122",
"0.4875375"
] | 0.71837246 | 0 |
Get map of all defined template names to their properties | Map<String, Map<String, String>> getAllDefinedTemplateProperties(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Map<String, String> getTemplateProperties(String elementName) throws IllegalArgumentException;",
"public Map<File, TemplatesStoreData> getTemplatesDescriptors() {\n\t\treturn TemplatesStore.getInstance().getData();\n\t}",
"Map<String, String> properties();",
"Map<String, String> properties();",
"public Map getProperties();",
"Map<String, Object> properties();",
"public HashMap<Integer, List<TemplateAttribute>> getAttrsByTemplate() {\n if (t_attrs == null) {\n t_attrs = new HashMap<Integer, List<TemplateAttribute>>();\n }\n return t_attrs;\n }",
"Map<String, String> getProperties();",
"Map<String, String> getProperties();",
"private Map<String, Object> getMvcMetadata(ComponentTemplate componentTemplate) {\n\n Map<String, Object> metadata = new HashMap<>();\n Map<String, Field> metadataFields = componentTemplate.getMetadata();\n\n for (Map.Entry<String, Field> entry : metadataFields.entrySet()) {\n String fieldName = entry.getKey();\n if (fieldName.equals(\"view\") ||\n fieldName.equals(\"regionView\") ||\n fieldName.equals(\"controller\") ||\n fieldName.equals(\"action\") ||\n fieldName.equals(\"routeValues\")) {\n continue;\n }\n Field field = entry.getValue();\n if (field.getValues().size() > 0) {\n metadata.put(fieldName, field.getValues().get(0).toString()); // Assume single-value text fields for template metadata\n }\n }\n return metadata;\n }",
"Map<String, String> getPropsViews();",
"public Map<String, Object> getVariables();",
"public static Map<String, Property> getDefaultMapping() {\n\t\tMap<String, Property> props = new HashMap<String, Property>();\n\t\tprops.put(\"nstd\", Property.of(p -> p.nested(n -> n.enabled(true))));\n\t\tprops.put(\"properties\", Property.of(p -> {\n\t\t\t\tif (nestedMode()) {\n\t\t\t\t\tp.nested(n -> n.enabled(true));\n\t\t\t\t} else {\n\t\t\t\t\tp.object(n -> n.enabled(true));\n\t\t\t\t}\n\t\t\t\treturn p;\n\t\t\t}\n\t\t));\n\t\tprops.put(\"latlng\", Property.of(p -> p.geoPoint(n -> n.nullValue(v -> v.text(\"0,0\")))));\n\t\tprops.put(\"_docid\", Property.of(p -> p.long_(n -> n.index(false))));\n\t\tprops.put(\"updated\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\t\tprops.put(\"timestamp\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\n\t\tprops.put(\"tag\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"id\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"key\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"name\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"type\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"tags\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"token\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"email\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"appid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"groups\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"password\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"parentid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"creatorid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"identifier\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\treturn props;\n\t}",
"Map<String, String> getDirectives();",
"Map<String, String> getDirectives();",
"Map<String, String> getDirectives();",
"StringMap getProperties();",
"public Map<String, Object> getDirectives();",
"default Map<String, Object> getProperties()\r\n {\r\n return emptyMap();\r\n }",
"public Dictionary<String, Object> getProperties();",
"public Properties getOutputProperties()\n {\n return templates.getOutputProperties();\n }",
"private static Map<String, String> createPropertiesAttrib() {\r\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"Property1\", \"Value1SA\");\r\n map.put(\"Property3\", \"Value3SA\");\r\n return map;\r\n }",
"Map<String, Object> getPropertiesAsMap();",
"private Map retrieveTemplateMap() {\n Map templateMap = new TreeMap();\n for (int j=0;j<mRemoteSourceDirs.length;j++) {\n String remoteSource = mRemoteSourceDirs[j];\n if (!remoteSource.endsWith(\"/\")) {\n remoteSource = remoteSource + \"/\";\n }\n \n try {\n HttpClient tsClient = getTemplateServerClient(remoteSource);\n\n HttpClient.Response response = tsClient.setURI(createTemplateServerRequest(remoteSource,null))\n .setPersistent(true).getResponse(); \n\n if (response != null && response.getStatusCode() == 200) {\n\n Reader rin = new InputStreamReader\n (new BufferedInputStream(response.getInputStream()));\n \n StreamTokenizer st = new StreamTokenizer(rin);\n st.resetSyntax();\n st.wordChars('!','{');\n st.wordChars('}','}');\n st.whitespaceChars(0,' ');\n st.parseNumbers();\n st.quoteChar('|');\n st.eolIsSignificant(true);\n String templateName = null; \n int tokenID = 0;\n // ditching the headers by looking for \"\\r\\n\\r\\n\"\n /* \n * no longer needed now that HttpClient is being used but leave\n * in for the moment.\n *\n * while (!((tokenID = st.nextToken()) == StreamTokenizer.TT_EOL \n * && st.nextToken() == StreamTokenizer.TT_EOL) \n * && tokenID != StreamTokenizer.TT_EOF) {\n * }\n */\n while ((tokenID = st.nextToken()) != StreamTokenizer.TT_EOF) {\n if (tokenID == '|' || tokenID == StreamTokenizer.TT_WORD) {\n \n templateName = st.sval;\n }\n else if (tokenID == StreamTokenizer.TT_NUMBER \n && templateName != null) {\n templateName = templateName.substring(1);\n //System.out.println(templateName);\n templateMap.put(templateName.replace('/','.'),\n new TemplateSourceInfo(\n templateName,\n remoteSource,\n (long)st.nval));\n templateName = null;\n }\n }\n }\n }\n catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }\n //System.out.println(\"retrieving templateMap\");\n return templateMap;\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getPropertiesMap();",
"public PropertyMap getPropertyMap(String propertyName);",
"public Map<String, I18nizableText> getVariablesDescriptions();",
"protected Map createPropertiesMap() {\n return new HashMap();\n }",
"private Map<String, String> getResponseTemplateMap(String responseTemplate) {\n\n\t\tMap<String, String> responseTemplateMap = new HashMap<>();\n\t\tString value = responseTemplate.replace(\"\\n\", \"\").replace(\"\\r\", \"\");\n\t\tString[] keyValuePairs = value.split(\",\"); // split the string to creat key-value pairs\n\t\tfor (String pair : keyValuePairs) // iterate over the pairs\n\t\t{\n\t\t\tString[] dataKeyMapper = pair.split(\"=\"); // split the pairs to get key and value\n\t\t\tresponseTemplateMap.put(dataKeyMapper[0].trim(), dataKeyMapper[1].trim());\n\t\t}\n\t\treturn responseTemplateMap;\n\t}",
"public Map<String, Object> getTagMap();",
"public List<String> getTemplates() {\r\n\t\treturn this.templates;\r\n\t}",
"Map<String, String> getCombinedMap() {\n Map<String, String> all = new HashMap<String, String>(plainProps);\n all.putAll(xProps);\n all.putAll(xxProps);\n all.putAll(sysProps);\n return all;\n }",
"protected Map<String, Object> getVariables() throws NamingException {\r\n\t\tMap<String, Object> variables = new HashMap<String, Object>();\r\n\t\tvariables.put(\"account.id\", getAccountUser().getAccount().getId());\r\n\t\tvariables.put(\"user.id\", getAccountUser().getUser().getId());\r\n\t\tvariables.put(\"now\", new Date());\r\n\t\tvariables.put(\"placeholder.id:patient\", getPlaceholderId());\r\n\t\treturn variables;\r\n\t}",
"public Map<String, String> getAllProperties()\n {\n return _propertyEntries;\n }",
"private static Map<String, PropertyInfo> createPropertyMap()\r\n {\r\n Map<String, PropertyInfo> map = New.map();\r\n PropertyInfo samplingTime = new PropertyInfo(\"http://www.opengis.net/def/property/OGC/0/SamplingTime\", Date.class,\r\n TimeKey.DEFAULT);\r\n PropertyInfo lat = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Latitude\", Float.class, LatitudeKey.DEFAULT);\r\n PropertyInfo lon = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Longitude\", Float.class, LongitudeKey.DEFAULT);\r\n PropertyInfo alt = new PropertyInfo(\"http://sensorml.com/ont/swe/property/Altitude\", Float.class, AltitudeKey.DEFAULT);\r\n map.put(samplingTime.getProperty(), samplingTime);\r\n map.put(lat.getProperty(), lat);\r\n map.put(lon.getProperty(), lon);\r\n map.put(alt.getProperty(), alt);\r\n map.put(\"lat\", lat);\r\n map.put(\"lon\", lon);\r\n map.put(\"alt\", alt);\r\n return Collections.unmodifiableMap(map);\r\n }",
"default Map<String, String> get() {\n Map<String, String> tags = new HashMap<>();\n tags.put(\"application\", serviceInfo().getServiceName());\n tags.put(\"host\", serviceInfo().getHost());\n tags.put(\"environment\", serviceInfo().getEnvironment());\n return tags;\n }",
"java.util.Map<java.lang.String, java.lang.String>\n getVarsMap();",
"String[] getPropertyKeys();",
"public <T> Map<String, T> getProperties(String prefix) {\n\t\tMap<String, T> properties = new HashMap<>();\n\n\t\tfor (String key : getPropertyKeys()) {\n\t\t\tif (key.startsWith(prefix)) {\n\t\t\t\tproperties.put(key, getProperty(key));\n\t\t\t}\n\t\t}\n\t\treturn properties;\n\t}",
"public Map<String, Object> allFields() {\n Map<String, Object> map = new HashMap<>();\n properties.forEach((key, value) -> map.put(key, value.value()));\n return map;\n }",
"public static Map<String, String> annotations(PodTemplateSpec podSpec) {\n return annotations(podSpec.getMetadata());\n }",
"String getTemplate();",
"public Map<String, String> getProperties() {\n return properties;\n }",
"public Map<String, List<String>> genericsTokens() {\n return genericsTokens;\n }",
"public Map<String, String> getProperties() {\n return properties;\n }",
"public Map<String, String> getProperties() {\n return properties;\n }",
"public Map<String, Property> getProperties()\n {\n return properties;\n }",
"static String applyTemplate(final String template, final Map<String, String> props) {\n String data = template;\n Set<Entry<String, String>> entries = props.entrySet();\n for (Entry<String, String> entry : entries) {\n data = replacePropertyWithValue(data, entry.getKey(), entry.getValue());\n }\n return data;\n }",
"public Iterable<String> getPropertyKeys();",
"public List<Template> getTemplates() {\n return templates;\n }",
"public java.lang.Object getTemplateName() {\n return templateName;\n }",
"public Iterator<String> getUserDefinedProperties();",
"private static HashMap<String, DefinedProperty> initDefinedProperties() {\n\t\tHashMap<String, DefinedProperty> newList = new HashMap<String, DefinedProperty>();\n\t\t// common properties\n\t\taddProperty(newList, \"name\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"desc\", DefinedPropertyType.STRING, \"\", DefinedProperty.ANY, false, false);\n\t\t// implicit default properties\n\t\taddProperty(newList, \"donttest\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\taddProperty(newList, \"dontcompare\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.ANY, false, false);\n\t\t// interface properties\n\t\taddProperty(newList, \"use_interface\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"use_new_interface\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG |DefinedProperty.FIELD, false, false);\n\t\t// reg + regset properties\n\t\taddProperty(newList, \"js_superset_check\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"external\", DefinedPropertyType.SPECIAL, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"repcount\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t// regset only properties\n\t\taddProperty(newList, \"js_macro_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_macro_mode\", DefinedPropertyType.STRING, \"STANDARD\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_namespace\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_typedef_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_name\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET, false, false);\n\t\taddProperty(newList, \"js_instance_repeat\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.REGSET, false, false);\n\t\t// reg only properties\n\t\taddProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"aliasedId\", DefinedPropertyType.STRING, \"false\", DefinedProperty.REG, true, false); // hidden\n\t\taddProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_is_mem\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"cppmod_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\taddProperty(newList, \"uvmreg_prune\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.REG, false, false);\n\t\t// signal properties\n\t\taddProperty(newList, \"cpuif_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"field_reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activehigh\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"activelow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.SIGNAL, false, false);\n\t\taddProperty(newList, \"signalwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.SIGNAL, false, false);\n\t\t// fieldset only properties\n\t\taddProperty(newList, \"fieldstructwidth\", DefinedPropertyType.NUMBER, \"1\", DefinedProperty.FIELDSET, false, false);\n\t\t// field properties\n\t\taddProperty(newList, \"rset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"woset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"we\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"wel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwe\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swwel\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hwclr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swmod\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"swacc\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sticky\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"stickybit\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"intr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"anded\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"ored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"xored\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"counter\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"overflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"reset\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"fieldwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"singlepulse\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"underflow\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decr\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrwidth\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrvalue\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"saturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrsaturate\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"threshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"incrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"decrthreshold\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"hw\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"precedence\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"encode\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"resetsignal\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"mask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"enable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltmask\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"haltenable\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"halt\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"next\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextposedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"nextnegedge\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"maskintrbits\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false); \n\t\taddProperty(newList, \"satoutput\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"sub_category\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\taddProperty(newList, \"rtl_coverage\", DefinedPropertyType.BOOLEAN, \"false\", DefinedProperty.FIELD, false, false);\n\t\t\n\t\t// override allowed property set if input type is jspec\n\t\tif (Ordt.hasInputType(Ordt.InputType.JSPEC)) {\n\t\t\tputProperty(newList, \"sub_category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG | DefinedProperty.FIELDSET | DefinedProperty.FIELD, false, false);\n\t\t\tputProperty(newList, \"category\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"js_attributes\", DefinedPropertyType.STRING, \"\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"regwidth\", DefinedPropertyType.NUMBER, \"32\", DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"address\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, false, false);\n\t\t\tputProperty(newList, \"arrayidx1\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t\tputProperty(newList, \"addrinc\", DefinedPropertyType.NUMBER, null, DefinedProperty.REGSET | DefinedProperty.REG, true, false); // hidden\n\t\t}\t\t\n\n\t\treturn newList;\n\t}",
"public\tHashMap\tgetPropertiesMap(String prefix)\n\t{\n\t\tHashMap props = new\tHashMap();\n\t\taddProperties(props,prefix);\n\t\t\n\t\treturn\tprops;\n\t}",
"public static Map<String, Object> getAllKnownProperties(Environment env) {\n\t Map<String, Object> rtn = new HashMap<>();\n\t if (env instanceof ConfigurableEnvironment) {\n\t for (PropertySource<?> propertySource : ((ConfigurableEnvironment) env).getPropertySources()) {\n\t if (propertySource instanceof EnumerablePropertySource) {\n\t for (String key : ((EnumerablePropertySource) propertySource).getPropertyNames()) {\n\t rtn.put(key, propertySource.getProperty(key));\n\t }\n\t }\n\t }\n\t }\n\t return rtn;\n\t}",
"public static List<String> getTemplates() {\n\t\tFile templatesDir = new File(PathUtils.getExtensionsTemplatePath());\n\t\tList<String> templates = Arrays.stream(templatesDir.listFiles(File::isDirectory)).map(File::getName)\n\t\t\t\t.collect(Collectors.toList());\n\t\tIProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();\n\t\tList<String> customTemplates = Arrays.stream(projects).filter(ExtensionUtils::isTemplate)\n\t\t\t\t.map(IProject::getName).collect(Collectors.toList());\n\t\ttemplates.addAll(customTemplates);\n\t\treturn templates;\n\t}",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"public java.util.Map<String,String> getProperties() {\n \n if (properties == null) {\n properties = new java.util.HashMap<String,String>();\n }\n return properties;\n }",
"protected abstract String getTemplateName();",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"@Override\n\t\tpublic Map<String, Object> getAllProperties() {\n\t\t\treturn null;\n\t\t}",
"public abstract String getTemplateName();",
"public Map<String, String> getProperties() {\n\t\tif (propertiesReader == null) {\n\t\t\tpropertiesReader = new PropertyFileReader();\n\t\t}\n\t\tpropertyMap = propertiesReader.getPropertyMap();\n\t\tlog.info(\"fetched all properties\");\n\t\treturn propertyMap;\n\t}",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }",
"private VariableMap getParamMappingAsVariableMap() {\n paramValueEncodings.put(fileNameToIndex.keySet().toString(), \" FileNames\");\n paramValueEncodings.put(functionNameToIndex.keySet().toString(), \" FunctionNames\");\n paramValueEncodings.put(typeToIndex.keySet().toString(), \" Types\");\n\n VariableMap preInversedMap = new VariableMap(paramValueEncodings);\n ImmutableMap<String, String> inversedMap = preInversedMap.getNewNameToOriginalNameMap();\n return new VariableMap(inversedMap);\n }",
"public HashMap<Integer, List<TemplateRelation>> getRelsByTemplate() {\n if (t_rels == null) {\n t_rels = new HashMap<Integer, List<TemplateRelation>>();\n }\n return t_rels;\n }",
"@java.lang.Override\n public java.util.Map<java.lang.String, java.lang.String> getPropertiesMap() {\n return internalGetProperties().getMap();\n }",
"public static Map<SOAXSDTemplateSubType, List<SOAConfigTemplate>> getTemplateCategoryFiles() {\r\n\t\ttry {\r\n\t\t\tfinal String organization = GlobalRepositorySystem.instanceOf()\r\n\t\t\t\t\t.getActiveRepositorySystem()\r\n\t\t\t\t\t.getActiveOrganizationProvider().getName();\r\n\t\t\treturn SOAConfigExtensionFactory.getXSDTemplates(organization);\r\n\t\t} catch (SOAConfigAreaCorruptedException e) {\r\n\t\t\tUIUtil.showErrorDialog(e);\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public PathTemplate getNameTemplate() {\n return nameTemplate;\n }",
"public Map<String,String> getMetadataElementMap() {\n\t\tMap<String,String> uiList = new LinkedHashMap<String,String>();\n\t\tfor (MetadataElement element: MetadataElement.values()){\n\t\t\tuiList.put(element.toString(), element.getDisplayName());\n\t\t}\n \n\t\treturn uiList;\n\t}",
"Map<String, String> getConfigProperties();",
"@Override\n public String doMapping(String template)\n {\n log.debug(\"doMapping({})\", template);\n // Copy our elements into an array\n List<String> components\n = new ArrayList<>(Arrays.asList(StringUtils.split(\n template,\n String.valueOf(TemplateService.TEMPLATE_PARTS_SEPARATOR))));\n int componentSize = components.size() - 1 ;\n\n // This method never gets an empty string passed.\n // So this is never < 0\n String templateName = components.get(componentSize);\n components.remove(componentSize--);\n\n log.debug(\"templateName is {}\", templateName);\n\n // Last element decides, which template Service to use...\n TemplateService templateService = (TemplateService)TurbineServices.getInstance().getService(TemplateService.SERVICE_NAME);\n TemplateEngineService tes = templateService.getTemplateEngineService(templateName);\n\n if (tes == null)\n {\n return null;\n }\n\n String defaultName = \"Default.vm\";\n\n // This is an optimization. If the name we're looking for is\n // already the default name for the template, don't do a \"first run\"\n // which looks for an exact match.\n boolean firstRun = !templateName.equals(defaultName);\n\n for(;;)\n {\n String templatePackage = StringUtils.join(components.iterator(), String.valueOf(separator));\n\n log.debug(\"templatePackage is now: {}\", templatePackage);\n\n StringBuilder testName = new StringBuilder();\n\n if (!components.isEmpty())\n {\n testName.append(templatePackage);\n testName.append(separator);\n }\n\n testName.append((firstRun)\n ? templateName\n : defaultName);\n\n // But the Templating service must look for the name with prefix\n StringBuilder templatePath = new StringBuilder();\n if (StringUtils.isNotEmpty(prefix))\n {\n templatePath.append(prefix);\n templatePath.append(separator);\n }\n templatePath.append(testName);\n\n log.debug(\"Looking for {}\", templatePath);\n\n if (tes.templateExists(templatePath.toString()))\n {\n log.debug(\"Found it, returning {}\", testName);\n return testName.toString();\n }\n\n if (firstRun)\n {\n firstRun = false;\n }\n else\n {\n // We run this loop only two times. The\n // first time with the 'real' name and the\n // second time with \"Default\". The second time\n // we will end up here and break the for(;;) loop.\n break;\n }\n }\n\n log.debug(\"Returning default\");\n return getDefaultName(template);\n }",
"protected java.util.Map getProperties() {\n return properties;\n }",
"Map<String, Defines> getDefinesMap();",
"public Map<String, Object> getAttrs();",
"protected Map<String,List<PageViewVO>> initializePageMap() {\n\t\tMap<String,List<PageViewVO>> pm = new HashMap<>();\n\t\tfor (Section sect : Section.values()) {\n\t\t\tpm.put(sect.name(), new ArrayList<>());\n\t\t}\n\t\treturn pm;\n\t}",
"public List<PmPropertyBean> getProperties(Map paramter);",
"java.lang.String getProperties();",
"public Map<String, Object> mapRequestParametersToTemplate(\n HttpServletRequest request, JasperTemplate template) {\n List<JasperTemplateParameter> templateParameters = template.getTemplateParameters();\n if (templateParameters == null) {\n return new HashMap<>();\n }\n\n Map<String, String[]> requestParameterMap = request.getParameterMap();\n Map<String, Object> map = new HashMap<>();\n\n for (JasperTemplateParameter templateParameter : templateParameters) {\n String templateParameterName = templateParameter.getName();\n\n for (String requestParamName : requestParameterMap.keySet()) {\n\n if (templateParameterName.equalsIgnoreCase(requestParamName)) {\n String requestParamValue = \"\";\n if (requestParameterMap.get(templateParameterName).length > 0) {\n requestParamValue = requestParameterMap.get(templateParameterName)[0];\n }\n\n if (!(isBlank(requestParamValue)\n || \"null\".equals(requestParamValue)\n || \"undefined\".equals(requestParamValue))) {\n map.put(templateParameterName, requestParamValue.trim());\n }\n }\n }\n }\n\n return map;\n }",
"public Map<String, String> loggableMap() {\n final TreeMap<String, String> map = new TreeMap<>();\n for (final ConfigProperty cp : _properties.values()) {\n map.put(cp.getKey(), cp.loggableValue());\n }\n return map;\n }",
"public Map<String, String> getProperties() {\n\t\treturn this.properties;\n\t}",
"public String[] getPropertyNames();",
"public static Map<String, Object> getProperties(ServiceReference<?> serviceReference) {\n String[] keys = serviceReference.getPropertyKeys();\n Map<String, Object> props = new HashMap<String, Object>(keys.length);\n for (String key : keys) {\n Object val = serviceReference.getProperty(key);\n props.put(key, val);\n }\n return props;\n }",
"public String getTemplateName()\n {\n return MY_TEMPLATE;\n }",
"public Map<String, ZAttrHandler> getVarMap() {\r\n if (attrMap==null) attrMap = new ZAttrHandlerMapper(this).map();\r\n return attrMap;\r\n }",
"private void initializeNamesMap (Workspace[] wss) {\n // fill name mapping with proper values\n namesMap = new HashMap(wss.length * 2);\n for (int i = 0; i < wss.length; i++) {\n // create new string for each display name to be able to search\n // using '==' operator in findProgrammaticName(String displayName) method\n namesMap.put(wss[i].getName(), new String(wss[i].getDisplayName()));;\n }\n }",
"public static Map<String, Byte> genNameToTypeMap(){\n byte[] types = genAllTypes();\n String[] names = genAllTypeNames();\n Map<String, Byte> ret = new HashMap<String, Byte>();\n for(int i=0;i<types.length;i++){\n ret.put(names[i], types[i]);\n }\n return ret;\n }",
"Map getSPEXDataMap();",
"public Map<String, Schema> getProperties() {\n\t\treturn properties;\n\t}",
"List<TemplateDTO> getAllTemplates() throws GAException;",
"public Map<Integer, Set<PartialPath>> getTemplateSetInfo(PartialPath pathPattern)\n throws MetadataException {\n Map<Integer, Set<PartialPath>> result = new HashMap<>();\n try (MNodeCollector<?> collector =\n new MNodeCollector<Void>(root, pathPattern, store, false) {\n @Override\n protected boolean acceptFullMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() != NON_TEMPLATE)\n || super.acceptFullMatchedNode(node);\n }\n\n @Override\n protected boolean acceptInternalMatchedNode(IMNode node) {\n return (node.getSchemaTemplateId() != NON_TEMPLATE)\n || super.acceptInternalMatchedNode(node);\n }\n\n @Override\n protected Void collectMNode(IMNode node) {\n result\n .computeIfAbsent(node.getSchemaTemplateId(), k -> new HashSet<>())\n .add(getPartialPathFromRootToNode(node));\n return null;\n }\n\n @Override\n protected boolean shouldVisitSubtreeOfFullMatchedNode(IMNode node) {\n // descendants of the node cannot set another template, exit from this branch\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }\n\n @Override\n protected boolean shouldVisitSubtreeOfInternalMatchedNode(IMNode node) {\n // descendants of the node cannot set another template, exit from this branch\n return (node.getSchemaTemplateId() == NON_TEMPLATE)\n && super.shouldVisitSubtreeOfFullMatchedNode(node);\n }\n }) {\n collector.traverse();\n }\n return result;\n }",
"public Map<String, Object> getProperties()\n {\n return m_props;\n }",
"@Override\n\t\tpublic Map<String, Object> getProperties(String... keys) {\n\t\t\treturn null;\n\t\t}",
"public Map<CharSequence, CharSequence> getReplacableNames();",
"protected Map<String, Object> getSharedVariables(VitroRequest vreq) {\n \n Map<String, Object> map = new HashMap<String, Object>();\n \n Portal portal = vreq.getPortal();\n // Ideally, templates wouldn't need portal id. Currently used as a hidden input value\n // in the site search box, so needed for now.\n map.put(\"portalId\", portal.getPortalId());\n \n String siteName = portal.getAppName();\n map.put(\"siteName\", siteName);\n map.put(\"title\", getTitle(siteName));\n \n String themeDir = getThemeDir(portal);\n UrlBuilder urlBuilder = new UrlBuilder(portal);\n \n map.put(\"urls\", getUrls(themeDir, urlBuilder)); \n \n // This value will be available to any template as a path for adding a new stylesheet.\n // It does not contain the context path, because the methods to generate the href\n // attribute from the string passed in by the template automatically add the context path.\n map.put(\"themeStylesheetDir\", themeDir + \"/css\");\n \n map.put(\"stylesheets\", getStylesheetList(themeDir));\n map.put(\"scripts\", getScriptList(themeDir));\n \n addDirectives(map);\n \n return map;\n }",
"public List<PropertyMap<?>> getProperties(String owner);",
"public String getTemplateName() {\n return templateName;\n }",
"public Properties getProperties();",
"public Map<String, Object> getTypeDefProperties()\n {\n if (typeDefProperties == null)\n {\n return null;\n }\n else if (typeDefProperties.isEmpty())\n {\n return null;\n }\n else\n {\n return new HashMap<>(typeDefProperties);\n }\n }"
] | [
"0.72963953",
"0.64464325",
"0.6244876",
"0.6244876",
"0.6224562",
"0.60946506",
"0.608766",
"0.60629624",
"0.60629624",
"0.60183215",
"0.6008203",
"0.5976208",
"0.59225476",
"0.5902554",
"0.5902554",
"0.5902554",
"0.5899642",
"0.5885184",
"0.5837328",
"0.581794",
"0.5764519",
"0.57478315",
"0.573833",
"0.57350326",
"0.57121944",
"0.56833524",
"0.566464",
"0.5619505",
"0.5562259",
"0.55432755",
"0.5537635",
"0.54916286",
"0.5487452",
"0.5473538",
"0.54536784",
"0.54345375",
"0.5390039",
"0.538618",
"0.5385993",
"0.53724104",
"0.5365945",
"0.5342412",
"0.53258425",
"0.5321947",
"0.52887386",
"0.52887386",
"0.52859414",
"0.5285753",
"0.5270982",
"0.5252402",
"0.5245136",
"0.52280104",
"0.5227884",
"0.52244836",
"0.5219244",
"0.5215114",
"0.5212819",
"0.5205398",
"0.5202376",
"0.5193984",
"0.5193984",
"0.5190584",
"0.5183258",
"0.5153141",
"0.51512784",
"0.51509696",
"0.51499176",
"0.51485616",
"0.5148155",
"0.5147667",
"0.51434654",
"0.5128461",
"0.5127584",
"0.51179624",
"0.51125246",
"0.5104491",
"0.510055",
"0.5100029",
"0.5095484",
"0.50903213",
"0.5081321",
"0.507546",
"0.5073122",
"0.50673866",
"0.5065355",
"0.50558615",
"0.5037974",
"0.50252247",
"0.5025035",
"0.5020945",
"0.50075364",
"0.49984768",
"0.4992279",
"0.49862167",
"0.49821624",
"0.49805254",
"0.49797565",
"0.49774384",
"0.4961724",
"0.4955703"
] | 0.849445 | 0 |
Set the name of the game being authored. | void setGameName(String gameName); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void setOpponentName(String name) {\n\t\tmain.setOpponentUsername(name);\r\n\t}",
"public void setCurrentPlayerName(String name)\n {\n currentPlayerName = name;\n startGame();\n }",
"public void setName(String name)\r\n\t{\r\n\t\tthis.playerName = name;\r\n\t}",
"private void setName(String nameIn){\r\n\t\tplayerName = nameIn;\r\n\t}",
"void setName(String name) {\n setStringStat(name, playerName);\n }",
"public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }",
"public void setName(String name) {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putString(USERNAME_KEY, name);\n\t\teditor.commit();\n\t}",
"public void setName(String name)\n {\n playersName = name;\n }",
"public Builder setGameName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n gameName_ = value;\n onChanged();\n return this;\n }",
"public Builder setGameName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n gameName_ = value;\n onChanged();\n return this;\n }",
"public void setPlayerName(String name){\n\t\tplayerName = name;\n\t\trepaint();\n\t}",
"public void setPlayerTurnName(){\n game.setPlayerTurn();\n String playerTurnName = game.getPlayerTurnName();\n playerturntextID.setText(playerTurnName + \" : Turn !!\");\n }",
"public void setGameName(String gameName) {\n\t\tthis.gameName = gameName;\n\t}",
"public void setNames() {\n\t\tPlayer1 = \"COMPUTER\";\n\t\tPlayer2 = JOptionPane.showInputDialog(null, \"Enter your Name:\");\n\t\tnames_set = true;\n\t}",
"public void setName(String name){\n\t\tthis.tournamentName = name;\n\t}",
"public void setPlayerName(String name) {\n \tplayername = name;\n }",
"public void setGameName(String gameName) {\n this.gameName = gameName == null ? null : gameName.trim();\n }",
"public void setName( final String name ) throws RemoteException {\r\n playerState.name = name;\r\n }",
"public final void setName(String name) {_name = name;}",
"@Override\n\tpublic void setupName(GameEnvironment incomingGame) {\n\t\tthis.game = incomingGame;\n\t\tboolean state = true;\n\t\twhile(state == true) {\n\t\t\tSystem.out.println(\"Hey mate! What is your name?\");\n\t\t\ttry {\n\t\t\t\tString name = scanner.nextLine();\n\t\t\t\tif (name.matches(NAME_REGEX)) {\n\t\t\t\t\tstate = false;\n\t\t\t\t\tgame.setName(name);\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(NAME_REQUIREMENTS);\n\t\t\t\t}\n\t\t\t} catch(Exception e){\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t}",
"public void setPlayerName()\r\n\t{\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.print(\"Enter your name: \");\r\n\t\tname = in.nextLine();\r\n\t}",
"public void setName(String name) {\n mBundle.putString(KEY_NAME, name);\n }",
"public void setName(String name) {\n this.name = name;\n incModCount();\n }",
"public void setName(final String name) {\n\t\tGuard.ArgumentNotNullOrEmpty(name, \"name\");\n\t\t\n\t\tthis.name = name;\n\t\t\n\t\tif (bukkitPlayer != null) {\n\t\t\tbukkitPlayer.setDisplayName(name);\n\t\t\tbukkitPlayer.setCustomName(name);\n\t\t\tbukkitPlayer.setPlayerListName(name);\n\t\t}\n\t\tdb.updateField(this, \"name\", name);\n\t}",
"public void setName(final String name);",
"public void setUsername(String name)\r\n {\r\n int index = -1;\r\n //Check if the new username is not already taken before setting the new username\r\n if(usernamesTaken.indexOf(name) == -1)\r\n {\r\n index = usernamesTaken.indexOf(this.username);\r\n usernamesTaken.set(index, name);\r\n this.username = name;\r\n }\r\n else\r\n {\r\n //Outouts a warning message\r\n System.out.println(\"WARNING: This username is already taken\");\r\n }//end if \r\n }",
"public void setName(String name) {\n _name = name;\n }",
"void setName(String name_);",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"static void setCurrentPlayer()\n {\n System.out.println(\"Name yourself, primary player of this humble game (or type \\\"I suck in life\\\") to quit: \");\n\n String text = input.nextLine();\n\n if (text.equalsIgnoreCase(\"I suck in life\"))\n quit();\n else\n Player.current.name = text;\n }",
"public void setName(String newname){\n name = newname; \n }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name) { this.name = name; }",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName( final String name )\r\n {\r\n this.name = name;\r\n }",
"public void setName(String inName)\n {\n name = inName;\n }",
"public void setName(String newname)\n {\n name = newname;\n \n }",
"public void setPlayerName(String name) {\n\t\tsuper.setPlayerName(name);\n\t}",
"public void setName(String aName) {\n name = aName;\n }",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"public void setName(String name) {\r\n\t\t_name = name;\r\n\t}",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName (String name){\n \n boyName = name;\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String nameIn) {\n name = nameIn;\n }",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(final String name) {\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public void setName(String name)\r\n {\r\n this.name = name;\r\n }",
"public final void setName(String name) {\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }",
"public void setName(String name)\n {\n this.name = name;\n }"
] | [
"0.8020342",
"0.7410898",
"0.726483",
"0.72556835",
"0.7189777",
"0.71757144",
"0.7153519",
"0.7142645",
"0.69720715",
"0.69720715",
"0.6947376",
"0.68825036",
"0.68587565",
"0.6843261",
"0.681903",
"0.6810246",
"0.67314935",
"0.67137176",
"0.6712088",
"0.6676216",
"0.6647369",
"0.6630102",
"0.66234815",
"0.661642",
"0.661462",
"0.65743774",
"0.6510096",
"0.65100497",
"0.6491177",
"0.6478627",
"0.6476455",
"0.647052",
"0.647052",
"0.647052",
"0.647052",
"0.6468314",
"0.6468314",
"0.6468314",
"0.6467258",
"0.64667046",
"0.646387",
"0.6463103",
"0.6453486",
"0.6452631",
"0.6452631",
"0.6452631",
"0.6452631",
"0.6452631",
"0.6452631",
"0.644824",
"0.64417887",
"0.64417887",
"0.6437688",
"0.6437688",
"0.6437688",
"0.6433437",
"0.6433437",
"0.6433437",
"0.6433437",
"0.6433437",
"0.6433437",
"0.6433437",
"0.6433437",
"0.6433437",
"0.6433437",
"0.6433437",
"0.6431889",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6426119",
"0.6425257",
"0.6417949",
"0.6417949",
"0.64174056",
"0.64174056",
"0.64174056",
"0.64174056",
"0.6415652",
"0.64150697",
"0.64150697",
"0.64150697",
"0.64123994",
"0.64123994",
"0.64123994"
] | 0.81581277 | 0 |
Set the description of a game being authored. | void setGameDescription(String gameDescription); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setDescription(String UserDescription){\n Description = UserDescription;\n }",
"@Override\n\tpublic void setDescription(java.lang.String description) {\n\t\t_esfTournament.setDescription(description);\n\t}",
"public void editDescription(String description) {\n this.description = description;\n }",
"void setDescription(String description);",
"void setDescription(final String description);",
"public void setDescription(String description) { this.description = description; }",
"public void setDescription(String description){this.description=description;}",
"public void setDescription (String description);",
"public void setDescription(String description){\n this.description = description;\n }",
"public void setDescription(String newDesc){\n\n //assigns the value of newDesc to the description field\n this.description = newDesc;\n }",
"public void setDescription(String description) {\n mDescription = description;\n }",
"public void setDescription(String description) {\n \tthis.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"void setDescription(java.lang.String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description);",
"public void setDescription(String description) {\n this.description = description;\r\n // changeSupport.firePropertyChange(\"description\", oldDescription, description);\r\n }",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription (String Description);",
"public void setDescription(String description) {\n\t\tLOGGER.debug(\"SecurityObject#setDescription [description=\" + description + \"]\");\n\n\t\tthis.description = description;\n\t}",
"public void setDescription(String desc);",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(final String description);",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String description) {\r\n this.description = description;\r\n }",
"public void setDescription(String desc) {\n description = desc;\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"protected void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription( String description )\n {\n this.description = description;\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescription(String description)\n {\n this.description = description;\n }",
"public void setDescription(String desc) {\n sdesc = desc;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription( String val ) {\n doCommand( new UpdateSegmentObject( getUser().getUsername(), getFlow(), \"description\", val ) );\n }",
"public void setDescription(String description) {\n _description = description;\n }",
"public void setDescription(String description )\n {\n this.description = description;\n }",
"public void setDescription(String description) {\r\n \t\tthis.description = description;\r\n \t}",
"public void setDescription(String newdescription) {\n description=newdescription;\n }",
"void setDesc(java.lang.String desc);",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String description) {\n this.description = description;\n }",
"public void setDescription(String value) {\r\n this.description = value;\r\n }",
"public void setDescription(String description) {\r\n\t\tthis.description = description;\r\n\t}"
] | [
"0.6953411",
"0.68571025",
"0.6670382",
"0.66101027",
"0.66099167",
"0.6598985",
"0.6578415",
"0.65775603",
"0.6570203",
"0.6558313",
"0.65260196",
"0.65256643",
"0.6522488",
"0.6522488",
"0.65186316",
"0.65165925",
"0.65165925",
"0.65165925",
"0.65165925",
"0.65165925",
"0.6505509",
"0.650307",
"0.650307",
"0.650307",
"0.650307",
"0.650307",
"0.650307",
"0.64989555",
"0.6494321",
"0.6483403",
"0.64648443",
"0.6464135",
"0.6464135",
"0.6464135",
"0.6464135",
"0.6464135",
"0.6456265",
"0.64530134",
"0.6452167",
"0.644546",
"0.6443553",
"0.643634",
"0.643634",
"0.643634",
"0.64346516",
"0.64346516",
"0.64346516",
"0.64298695",
"0.6419655",
"0.6419655",
"0.6419655",
"0.6419655",
"0.6419655",
"0.6416554",
"0.6414004",
"0.64021593",
"0.63944995",
"0.6387289",
"0.6385355",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63842374",
"0.63835853",
"0.63762933"
] | 0.788428 | 0 |
Set the victory condition for the current level of the game being authored | void setVictoryCondition(String conditionIdentifier); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void setLevel(int current)\r\n\t{\r\n\t\tGame.level = current;\r\n\t}",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public void setActiveLevel(PlayerLevel toSet){\r\n\t\tthis.activeLevel = toSet;\r\n\t}",
"public void victory() {\n fieldInerface.setPleasedSmile();\n fieldInerface.timestop();\n int result = fieldInerface.timeGet();\n /*try {\n if (result < Integer.parseInt(best.getProperty(type))) {\n best.setProperty(type, Integer.toString(result));\n fieldInerface.makeChampionWindow(type);\n }\n } catch (NullPointerException e) {\n } catch (NumberFormatException e) {\n best.setProperty(type, Integer.toString(result));\n fieldInerface.makeChampionWindow(type);\n }*/\n\n gamestart = true; // new game isn't started yet!\n for (int j = 0; j < heightOfField; j++)\n for (int i = 0; i < widthOfField; i++)\n if (fieldManager.isCellMined(i, j))\n if (!fieldManager.isCellMarked(i, j)) {\n fieldInerface.putMarkToButton(i, j);\n fieldInerface.decrement();\n }\n gameover = true; // game is over!!\n }",
"private synchronized void teamVictory() {\n \t\tif (state == MatchState.ONVICTORY || state == MatchState.ONCOMPLETE || state == MatchState.ONCANCEL) \n \t\t\treturn;\n \t\tstate = MatchState.ONVICTORY;\n \t\t/// Call the rest after a 2 tick wait to ensure the calling transitionMethods complete before the\n \t\t/// victory conditions start rolling in\n \t\tBukkit.getScheduler().scheduleSyncDelayedTask(plugin, new MatchVictory(this),2L);\n \t}",
"public void setLevel(int v)\n {\n m_level = v;\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"public void incLevel(int lvl){this.Level=this.XP/(100);}",
"boolean addHardVictory();",
"private void checkVictory()\n {\n if(throne.getEnemyHealth() <= 0)\n {\n System.out.println(\"Congrats! The land is now free from all chaos and destruction. You are now very rich and wealthy. Yay\");\n alive = false;\n }\n }",
"private void setLevel(int level) {\n setStat(level, currentLevel);\n }",
"private void setLevel(int level){\r\n\t\tswitch(level){\r\n\t\t\tcase Game.LEVEL_ONE:\r\n\t\t\tcase Game.LEVEL_TWO:\r\n\t\t\tcase Game.LEVEL_THREE:\r\n\t\t\t\tthis.level = level;\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.err.println(\"Improper level input, use 'Game.LEVEL_#' to accurately input a level into this method\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void ability(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage+12;\n lm.player.setDamage(newDamage);\n }",
"private void setEliteMobLevel(int newLevel) {\n if (newLevel < 1)\n newLevel = 1;\n this.eliteMobLevel = newLevel;\n }",
"public void setCurrentLevel(Level level){\r\n currentLevel = level;\r\n currentLevel.setObserver(this);\r\n }",
"boolean addEasyVictory();",
"public static void setLevel(int level) {\n Game.level = level;\n movingSpeed = level * 5;\n }",
"public void setLevel(int value) {\n this.level = value;\n }",
"public void checkLevel(){\n if(score<50){\n level = 1;\n asteroidsMaxNumber = 5;\n }\n if(score>50 && level == 1){\n level = 2;\n asteroidsMaxNumber = 7;\n }\n if(score>100 && level == 2){\n level = 3;\n asteroidsMaxNumber = 10;\n }\n if(score>200 && level == 3){\n level = 4;\n asteroidsMaxNumber = 13;\n }\n if(score>350 && level == 4){\n level = 5;\n asteroidsMaxNumber = 15;\n }\n }",
"public boolean getVictory()\n\t{\n\t\treturn blnPlayerVictory;\n\t\t\n\t}",
"private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}",
"public void incrementVictoryPoints() {\n\t\tthis.totalVictoryPoints++;\n\t}",
"public void changeLevel(Level level) {\n gameState.setCurrentLevel(level);\n\n }",
"public void setLevelState(ExpertiseLevelState level) {\n this.levelState = level;\n }",
"public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }",
"public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}",
"public void setUserLevel(Integer userLevel) {\n this.userLevel = userLevel;\n }",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"public void actionPerformed(ActionEvent e) {\n keyCheck();\n LevelIntermissionCount++;\n \n if (LevelIntermissionCount > 50 && LevelIntermission == true && checkGameOver() == false) {\n LevelIntermission = false;\n LevelIntermissionCount = 0;\n reset();\n }\n if (startMenu == false && LevelIntermission == false && checkGameOver() == false){\n respawnShip();\n SwitchCount++;\n /*\n * calling functions that update all the positions of objects\n */\n UpdateShip();\n UpdateRock();\n UpdateBigRock();\n UpdateTrackerRock();\n UpdateBossRock();\n UpdateBullets();\n UpdateEnergyBlaster();\n UpdateGrenades();\n UpdateDebris();\n UpdateGrenadeBullets();\n\n checkDestruction();\n checkGernadeExplosion();\n checkCollisions();\n bossMinions();\n checkBossHP();\n checkWin();\n }\n }",
"protected void setLevel(int level){\r\n this.level = level;\r\n }",
"public Player(Level currentLevel) {\n\t\tthis.setCurrentLevel(currentLevel);\n\t\tsuper.getCurrentLevel().getInLevelLocation()[0][0].setHasPlayer(true);\n\t\tthis.setCurrentX(0);\n\t\tthis.setCurrentY(0);\n\t\tthis.attack = 10;\n\t\tthis.setHeath(1000);\n\t}",
"public boolean gainLevel() {\r\n if (this.player.getXp() > 100) {\r\n this.player.setXp(0);\r\n this.player.setMaxHp(this.player.getMaxHp() * 3 / 2);\r\n this.player.setHitPoints(this.player.getMaxHp());\r\n this.player.setLevel(this.player.getLevel() + 1);\r\n return true;\r\n }\r\n return false;\r\n }",
"public void givePlayerLevelBonus() {\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tp.addScore(5 * (currentLevel-1));\n\t\t\t}\n\t\t}\n\t\tserver.updateHighscoreList();\n\t\tserver.addTextToLoggingWindow(\"Server gives all players level bonus\");\n\t}",
"public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}",
"private void updateGameCondition(String s, int v) {\n if (s.equals(\"Plant\")) this.plantQuantity = v;\n else this.trexQuantity = v;\n }",
"public void changeLevel(Level level) {\n if (Consts.TEST) {\n this.level = level;\n return;\n }\n\n try {\n level.validate();\n } catch (Exception e) {\n e.printStackTrace();\n level = this.level;\n }\n this.level = level;\n entities.clear();\n pacman.respawn(level.getRandomPacmanSpawn());\n // items spawnen\n for (int y = 0; y < level.getHeight(); y++) {\n for (int x = 0; x < level.getWidth(); x++) {\n if (level.getField(x, y) == MapModule.DOT)\n entities.add(new Dot(x, y));\n else if (level.getField(x, y) == MapModule.POWERUP)\n entities.add(new PowerUp(x, y));\n else if (level.getField(x, y) == MapModule.SPEEDUP)\n entities.add(new SpeedUp(x, y));\n else if (level.getField(x, y) == MapModule.TELEPORT)\n entities.add(new Teleporter(x, y));\n }\n }\n\n // 4 Geister im normalen Spiel, 1 Geist fuer Tests\n for (int i = 0; i < (Consts.TEST ? 1 : Consts.NUM_GHOSTS); i++) {\n Ghost g = new Ghost(i);\n g.respawn(level.getNextGhostSpawn());\n entities.add(g);\n }\n }",
"public abstract void setForceLevel(int level);",
"public void addHealthLevel(int points)\n {\n healthLevel = healthLevel + points;\n showHealthLevel();\n if (healthLevel < 0) \n {\n Greenfoot.playSound(\"game-over.wav\");\n Greenfoot.stop();\n }\n }",
"public void onClickKeyLevel(CKeyLevel keyLevel)\r\n\t{\r\n\t\tif (keyLevel.GetLevel() == null)\r\n\t\t\treturn;\r\n\t\t\r\n\t\t// liste des keylevel toujour maintenable\r\n\t\tif( keyLevel.isAlwaysHoldable() )\r\n\t\t{\r\n\t\t\t// si elle est déjà dans la liste\r\n\t\t\tif( alwaysHoldableList.contains( keyLevel ) )\r\n\t\t\t{\r\n\t\t\t\talwaysHoldableList.remove( keyLevel );\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\talwaysHoldableList.add( keyLevel );\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\r\n\t\t\r\n\t\t// Si le level est le même et si c'est pas une touche isAlwaysHoldable, \r\n\t\t// on repasse au level normal\r\n\t\tif( keyLevel.GetLevel() == currentLevel )\r\n\t\t{\r\n\t\t\t// mais il existe des always holdable keys, on met le niveau à celle-là\r\n\t\t\tif( alwaysHoldableList.size() > 0 )\r\n\t\t\t{\r\n\t\t\t\tcurrentLevel = alwaysHoldableList.get(0).GetLevel();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tcurrentLevel = TLevelEnum.NORMAL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// changement de level\r\n\t\t\tcurrentLevel = keyLevel.GetLevel();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tfireChangeLevel();\r\n\t\t\r\n\t}",
"public synchronized void setLevel(int actId) {\n/* 76 */ this.component.setLevels(actId);\n/* */ }",
"public boolean updateGame(Player currentPlayer, char command, int level) {\n\t\tint cpl = currentPlayer.getCurrentRoom().getLocation(); //get current player location\n\t\tboolean validKeyTyped = false;\t//initialize sentinel value to be returned.\n\n\n\t\t//NOTE: Also see DrawCanvas class that allows players to use arrow keys to move the robot.\n\t\t//\t\tFor example, the UP arrow key is mapped to 'F'.\n\t\tswitch(Character.toUpperCase(command)){\n\t\t/* 'F' moves a player forward. So this makes the player in the current room GUI invisible\n\t\t * before moving him to the next room. */\n\t\tcase 'F':\n\t\t\tif(currentPlayer == h1)\n\t\t\t\tsquares[cpl/ROWS][cpl%COLS].pics[2][0].setVisible(false);\n\t\t\telse\n\t\t\t\tsquares[cpl/ROWS][cpl%COLS].pics[2][2].setVisible(false);\n\t\t\tcurrentPlayer.forward(this.boardPerceivedByAI); \t//custom method\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\t\t/* 'L' turns a character to the left. */\n\t\tcase 'L':\n\t\t\tcurrentPlayer.turnLeft();\n\t\t\tif(currentPlayer == h1){\n\t\t\t\tif (currentImageH1 == 0) //rotate picture\n\t\t\t\t\tcurrentImageH1 = 3;\n\t\t\t\telse\n\t\t\t\t\tcurrentImageH1 --;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (currentImageH2 == 0) //rotate picture\n\t\t\t\t\tcurrentImageH2 = 3;\n\t\t\t\telse\n\t\t\t\t\tcurrentImageH2 --;\n\t\t\t}\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\tcase 'R':\n\t\t\tcurrentPlayer.turnRight();\n\t\t\tif(currentPlayer == h1){\n\t\t\t\tif (currentImageH1 == 3) //rotate picture\n\t\t\t\t\tcurrentImageH1 = 0;\n\t\t\t\telse\n\t\t\t\t\tcurrentImageH1 ++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif (currentImageH2 == 3) //rotate picture\n\t\t\t\t\tcurrentImageH2 = 0;\n\t\t\t\telse\n\t\t\t\t\tcurrentImageH2 ++;\n\t\t\t}\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\tcase 'G':\n\t\t\tif(currentPlayer.giveAid()){\n\t\t\t\tsquares[cpl/ROWS][cpl%COLS].pics[1][2].setVisible(true); //show victim aid icon\n\t\t\t}\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\tcase 'S':\n\t\t\tresultOfShooting = currentPlayer.shoot();\n\t\t\tif(currentPlayer.isWasteKiller()){\n\t\t\t\t(new DecontaminantHitPopupThread()).start();\n\t\t\t\tsquares[cpl/ROWS][cpl%COLS].pics[1][1].setVisible(true); //show disinfected icon\n\t\t\t\tcurrentPlayer.resetWasteKiller();\n\t\t\t} else if (resultOfShooting == -1) {\n\t\t\t\t(new DecontaminantMissedPopupThread()).start();\n\t\t\t} else if (resultOfShooting == 0) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Cannot use decontaminant (Shots remaining : \" + currentPlayer.getNumOfShotsLeft() + \")\", \"\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t}\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\tcase 'Q':\n\t\t\tcurrentPlayer.quit();\n\t\t\tvalidKeyTyped = true;\n\t\t\tbreak;\n\t\tcase ' ':\n\t\t\t//pressing spacebar activates AI as long as the current player has been initialized as an AI player.\n\t\t\tif(currentPlayer.isAI()) {\n//\t\t\t\tSystem.out.printf(\"========================================\\nSPACEBAR PRESSED. Activating AI for %s...\\n\"\n//\t\t\t\t\t\t+ \"========================================\\n\",\n//\t\t\t\t\t\tcurrentPlayer.getName());\n\t\t\t\tvalidKeyTyped = true;\n\t\t\t\t/* See the Player.java class for the custom method getAction(). It returns a command char.\n\t\t\t\t * This is the heart of AI's algorithm. */\n\t\t\t\tint percentRandom = 0;\t//initialize the % of time the AI robot will act randomly\n\t\t\t\t//If the options were set before the mission to allow random acts by robot a certain % of the time,\n\t\t\t\t//extract that percent value now and execute updateGame() method with it as parameter\n\t\t\t\tif (SAR.this.options.indexOf(\"%\") != -1) {\n\t\t\t\t\tpercentRandom = Integer.parseInt(this.options.substring(this.options.indexOf(\" \") + 1, this.options.indexOf(\"%\")));\n//\t\t\t\t\tSystem.out.printf(\"Random action chance: %s%%\\n\", percentRandom);\n\t\t\t\t}\n\t\t\t\tthis.updateGame(currentPlayer, currentPlayer.getAction(this.board, this.boardPerceivedByAI, percentRandom), 1);\n\t\t\t\tthis.numOfTimesAITriggered++;\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase 'O':\t//Options window\n\t\t\tthis.openOptionsWindow();\t//custom method\n\t\t\tbreak;\n\t\t}\n\t\t//end switch(Character.toUpperCase(command)){\n\n\t\t/* Now that the player has made a move, we'll go thru each RoomAsPerceivedByAI object on the Board and,\n\t\t * for each explored room aka cell, update the perceptions and probabilities by invoking setExplored() method\n\t\t * and the assignProbabilityToNeighbors from the CellAsPerceivedByAI class. This updates AI's overall\n\t\t * perceptions of which rooms have which types of risks. */\n\t\tfor(int i = 0; i < ROWS; i++) {\n\t\t\tfor(int j = 0; j < COLS; j++) {\n\t\t\t\tCellAsPerceivedByAI tempR = this.boardPerceivedByAI.getRoomAI(i, j);\n\t\t\t\t/* For every room that has been explored, refresh the perceptions via the setExplored() method\n\t\t\t\t * and refresh the AI's probability calculation of neighboring rooms' risks. */\n\t\t\t\tif(tempR.isExplored()) {\n\t\t\t\t\tthis.greyOutCell(i, j);\n//\t\t\t\t\tsquares[i][j].setBackground(Color.LIGHT_GRAY);\t//gray out explored room\n\t\t\t\t\ttempR.setExplored(true, this.board.getRoom(i, j));\n\t\t\t\t\ttempR.assignProbabilityToNeighbors(this.board, this.boardPerceivedByAI);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//end for i\n\n\t\t/* Now the AI will make some manual adjustments to the probability of UNEXPLORED rooms.\n\t\t * Go thru the whole board again, locate unexplored rooms, then invoke\n\t\t * custom method modifyProbabilityIfSurroundedByDanger(). See the comments accompanying\n\t\t * this custom method for more details. */\n\t\tfor(int i = 0; i < ROWS; i++) {\n\t\t\tfor(int j = 0; j < COLS; j++) {\n\t\t\t\tCellAsPerceivedByAI tempR = this.boardPerceivedByAI.getRoomAI(i, j);\n\t\t\t\tif(!tempR.isExplored()) {\n\t\t\t\t\ttempR.modifyProbabilityIfSurroundedByDanger(board, boardPerceivedByAI);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//end for i\n\n\t\tif (hasWon(currentPlayer)) { // check for mission success\n\t\t\tcurrentState = (currentPlayer == h1) ? GameState.H1_WON : GameState.H2_WON;\n\t\t\tif (level > 0) return validKeyTyped;\t//If the recursion level is not at the root level, we skip the below steps for now\n\n\t\t\t(new PopupThread()).start();\t//Popup message game over, needs to run in new thread for thread safety\n\t\t\tif (isTutorialMode()) tutorial.checkTutorialStatus(String.valueOf(command));\t//If this was a tutorial mode, update tutorial status\n\t\t\telse if (this.isPracticeMissionHumanMode()) practiceDrillHuman.checkStatus(String.valueOf(command));\n\t\t\telse if (this.isPracticeMissionAIMode()) practiceDrillAI.checkStatus(String.valueOf(command));\n\t\t\telse if (this.isFinalMissionMode()) finalMission.checkStatus(String.valueOf(command));\n\t\t} else if (isDraw()) { // if \"draw\", it means neither player 1 nor 2 (if in 2-player mode) has found the victim and are both dead. Mission fail\n\t\t\tcurrentState = GameState.DRAW;\n\t\t\tif (level > 0) return validKeyTyped;\t//If the recursion level is not at the root level, we skip the below steps for now\n\t\t\tif (this.isTutorialMode()) tutorial.checkTutorialStatus(String.valueOf(command));\t//If this was a tutorial mode, update tutorial status\n\t\t\telse (new PopupThread()).start();\t//Popup message game over, needs to run in new thread for thread safety\n\t\t\tif (this.isPracticeMissionHumanMode()) practiceDrillHuman.checkStatus(String.valueOf(command));\n\t\t\telse if (this.isPracticeMissionAIMode()) practiceDrillAI.checkStatus(String.valueOf(command));\n\t\t\telse if (this.isFinalMissionMode()) finalMission.checkStatus(String.valueOf(command));\n\t\t}\n\t\t// Otherwise, no change to current state (still GameState.PLAYING).\n\t\treturn validKeyTyped;\n\t}",
"@Override\r\n\tpublic boolean CheckPolicy(Level level , String key)\r\n\t{\r\n\t\t// Up\r\n\t\tif (key.equals(\"Up\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() - 1).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() - 1).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY() - 2).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY() - 2).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Down\r\n\t\telse if(key.equals(\"Down\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() + 1).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY() + 1).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY() + 2).get(level.get_characterX()).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY() + 2).get(level.get_characterX()).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Left\r\n\t\telse if (key.equals(\"Left\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 1).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 1).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 2).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() - 2).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Right\r\n\t\telse if(key.equals(\"Right\"))\r\n\t\t{\r\n\t\t\t// There is a Wall\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 1).GetType() == \"Wall\")\r\n\t\t\t\treturn false;\r\n\r\n\t\t\t// There is a Box and After that Wall\\Box\r\n\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 1).GetType() == \"Box\")\r\n\t\t\t{\r\n\t\t\t\tif(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 2).GetType() == \"Wall\")\r\n\t\t\t\t\treturn false;\r\n\r\n\t\t\t\telse if(level.get_gameBoard().get(level.get_characterY()).get(level.get_characterX() + 2).GetType() == \"Box\")\r\n\t\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn false;\r\n\r\n\t\treturn true;\r\n\t}",
"public static void setLevel(Level level) {\r\n\t\tGameplay.getInstance().setLevel(level);\r\n\t}",
"protected void setLevel(int level)\n {\n this.level = level;\n }",
"public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}",
"public void liftSet(Gamepad gamepad1) {\n\n levelPlus = gamepad1.dpad_up;\n levelMinus = gamepad1.dpad_down;\n\n if(!pressP){\n if (levelPlus) {\n if (level < 8){\n level++;\n liftPress=true;\n }\n pressP = true;\n }\n }\n else{\n if (!levelPlus){\n pressP = false;\n }\n }\n\n if(!pressM){\n if (levelMinus) {\n if(level > 0){\n level--;\n liftPress=true;\n }\n pressM = true;\n }\n }\n else{\n if (!levelMinus){\n pressM = false;\n }\n }\n\n if(liftPress) {\n switch (level) {\n case 0:\n if(distanceLift.getDistance(DistanceUnit.CM) > 1) { //3\n lift.setPower(-0.4);\n }\n else{\n lift.setPower(0);\n liftPress = false;\n }\n break;\n case 1:\n if (distanceLift.getDistance(DistanceUnit.CM) < 10) { //10.5\n lift.setPower(0.8);\n }\n else if(distanceLift.getDistance(DistanceUnit.CM) > 11) {\n lift.setPower(-0.4);\n }\n else{\n lift.setPower(0.1);\n liftPress = false;\n }\n break;\n case 2:\n if (distanceLift.getDistance(DistanceUnit.CM) < 20) { //20.5\n lift.setPower(0.8);\n }\n else if(distanceLift.getDistance(DistanceUnit.CM) > 21) {\n lift.setPower(-0.4);\n }\n else{\n lift.setPower(0.1);\n liftPress = false;\n }\n break;\n case 3:\n if (distanceLift.getDistance(DistanceUnit.CM) < 30) { //30.5\n lift.setPower(0.8);\n }\n else if(distanceLift.getDistance(DistanceUnit.CM) > 31) {\n lift.setPower(-0.4);\n }\n else{\n lift.setPower(0.1);\n liftPress = false;\n }\n break;\n case 4:\n if (distanceLift.getDistance(DistanceUnit.CM) < 40) { //40.5\n lift.setPower(0.8);\n }\n else if(distanceLift.getDistance(DistanceUnit.CM) > 41) {\n lift.setPower(-0.4);\n }\n else{\n lift.setPower(0.1);\n liftPress = false;\n }\n break;\n case 5:\n if (distanceLift.getDistance(DistanceUnit.CM) < 55) { //54\n lift.setPower(0.8);\n }\n else if(distanceLift.getDistance(DistanceUnit.CM) > 56) {\n lift.setPower(-0.4);\n }\n else{\n lift.setPower(0.1);\n liftPress = false;\n }\n break;\n case 6:\n if (distanceLift.getDistance(DistanceUnit.CM) < 63) { //62\n lift.setPower(0.8);\n }\n else if(distanceLift.getDistance(DistanceUnit.CM) > 64) {\n lift.setPower(-0.4);\n }\n else{\n lift.setPower(0.1);\n liftPress = false;\n }\n break;\n case 7:\n if (distanceLift.getDistance(DistanceUnit.CM) < 73) { //72\n lift.setPower(0.8);\n }\n else if(distanceLift.getDistance(DistanceUnit.CM) > 74) {\n lift.setPower(-0.4);\n }\n else{\n lift.setPower(0.1);\n liftPress = false;\n }\n break;\n case 8:\n if (distanceLift.getDistance(DistanceUnit.CM) < 82) { //81\n lift.setPower(0.8);\n }\n else if(distanceLift.getDistance(DistanceUnit.CM) > 83) {\n lift.setPower(-0.4);\n }\n else{\n lift.setPower(0.1);\n liftPress = false;\n }\n break;\n }\n }\n }",
"public void setLevel(int slot, int level, boolean update) {\r\n if (slot == HITPOINTS) {\r\n lifepoints = level;\r\n } else if (slot == PRAYER) {\r\n prayerPoints = level;\r\n }\r\n dynamicLevels[slot] = level;\r\n if (restoration[slot] != null) {\r\n int ticks = 100;\r\n if (entity instanceof Player) {\r\n if (((Player) entity).getPrayer().get(PrayerType.BERSERKER)) {\r\n ticks = 75;\r\n }\r\n }\r\n restoration[slot].restart(ticks);\r\n }\r\n if (entity instanceof Player && update) {\r\n PacketRepository.send(SkillLevel.class, new SkillContext((Player) entity, slot));\r\n }\r\n }",
"public void action(Player myPlayer)\n {\n if (getNbUtilisation() == 0) {\n System.out.println(\"Not possible\");\n } else {\n int nHealthy = getPointsHealthy();\n myPlayer.addLifePoints(nHealthy);\n\n }\n }",
"public void setLvl(int lvl) {\r\n\t\tfor(int i = this.nivelArma; i < lvl; i++) {\r\n\t\t\tstatsLvlUp();\r\n\t\t\tnivelArma += 1;\r\n\t\t}\r\n\t}",
"public void\t\t\t\t\t\t\tincreaseLevel()\t\t\t\t\t\t\t\t{ this.currentLevel += 1; }",
"public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }",
"public void notifyPlayerVictory(Player p);",
"public void setEnchantLevel(CustomEnchantment ce, Player p, long level){\n ItemStack is;\n ItemMeta im;\n List<String> lore;\n if(p == null || (is = p.getInventory().getItemInMainHand()) == null || (im = is.getItemMeta()) == null || (is.getType() != Material.DIAMOND_PICKAXE)) return;\n lore = im.getLore();\n if(lore == null)\n lore = new ArrayList<>();\n boolean containsEnchant = false;\n for(int i = 0; i < lore.size(); i++){\n if(lore.get(i).contains(ce.getDisplayName())){\n containsEnchant = true;\n lore.set(i, ce.getColor() + ce.getDisplayName() + \" \" + level);\n }\n }\n if(!containsEnchant) lore.add(ce.getColor() + ce.getDisplayName() + \" \" + level);\n im.setLore(lore);\n is.setItemMeta(im);\n\n\n\n\n\n }",
"public void setVolume(int level) {\n if(level >= 0 && level <= 100) {\n int checkSum = 0x07^0x01^0x00^0x44^level^level; \n String hexLevel = Integer.toHexString(level);\n if(hexLevel.length() == 1)\n hexLevel = \"0\" + hexLevel;\n String hexCheckSum = Integer.toHexString(checkSum);\n if(hexCheckSum.length() == 1)\n hexCheckSum = \"0\" + hexCheckSum;\n sendHexCommand(\"07 01 00 44 \" + hexLevel + \" \" + hexLevel + \" \"+\n hexCheckSum, 20);\n lastVolumeChange = System.currentTimeMillis();\n }\n }",
"public void winGame() {\r\n if (data.gameState == 3) \r\n data.winner = 1;\r\n else if (data.gameState == 4) \r\n data.winner = 2;\r\n data.victoryFlag = true;\r\n data.gameState = 5;\r\n }",
"public void switchPowerLevel()\n {\n // If power level is 1, set this.powerLevel to 3 - 1 = 2.\n // If power level is 2, set this.powerLevel to 3 - 2 = 1.\n this.powerLevel = (3 - this.powerLevel);\n }",
"public void setLevel(Level mLevel) {\n this.level = mLevel;\n level.increaseChamberCount();\n }",
"public void activate(Game g) {\n\t\tPlayer owner = g.getCurrentPlayer();\r\n\t\tPlayer opponent = g.getOpposingPlayer();\r\n\t\topponent.subtractVictoryPoints(1);\r\n\t\towner.collectVictoryPoints(1);\r\n\t}",
"public void setLevel(int level) {\n \t\tthis.level = level;\n \t}",
"public boolean carIconLevelCheck(String vehicle, int playerLevel) {\n boolean isUnlocked = false;\n switch(vehicle) {\n case \"car\":\n isUnlocked = true;\n break;\n case \"truck\":\n System.out.println(playerLevel);\n if (playerLevel >= 2) {\n isUnlocked = true;\n\n }\n break;\n case \"bike\":\n if (playerLevel >= 5) {\n isUnlocked = true;\n }\n break;\n case \"sportscar\":\n if (playerLevel >= 10) {\n isUnlocked = true;\n }\n break;\n }\n return isUnlocked;\n }",
"boolean isVictory();",
"void setCond(String name, long date, int lvl) {\n\tWeatherUnit weath1 = getWeather(date);\n\tint old = ((Integer)weath1.levels.get(name)).intValue();\n\tint nyu = old + lvl;\n\tif (nyu < 0) nyu = 0;\n\tif (old != nyu) {\n\t weath1.levels.put(name,new Integer(nyu));\n\t // Cascade down\n\t setCond(name, date);\n\t main.myFrw.announce(this);\n\t main.redo(false);\n\t}\n }",
"private void adjustPlayerLifeLevel(int curPlayerRow, int curPlayerCol){\n gameBoard[curPlayerRow][curPlayerCol].updateLifePoints(PLAYER_POINTS_DEC);\n }",
"public void setLevel(int level){\n\t\tthis.level = level;\n\t}",
"public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}",
"public void enableSurvivialMode()\n\t{\n\t\tthis.player.useFlyingMode = false;\n\t\tthis.player.setHealth(100f);\n\t}",
"public void setSafeLevel(int safeLevel) {\n this.safeLevel = safeLevel;\n }",
"public ProjectGame() {\n\n super(\"BulletHell\", 1200, 900);\n die = new Event();\n backgroundMusic = new SoundManagerClass();\n playButton.setPositionX(420);\n playButton.setPositionY(180);\n quitButton.setPositionX(623);\n quitButton.setPositionY(181);\n //x = 0;\n reduceLife = new Event();\n fadeOutEvent = new Event();\n PickedUpEvent = new Event();\n die.setEventType(\"playerDeath\");\n fadeOutEvent.setEventType(\"FadeOut\");\n reduceLife.setEventType(\"Collision\");\n collidedEvent = new Event();\n collidedEvent.setEventType(\"CollidedEvent\");\n throwKnife = new Event();\n throwKnife.setEventType(\"throwKnife\");\n\n\n keyIcon.setPositionX(200);\n keyIcon.setPositionY(40);\n\n knifeIcon.setPositionX(205);\n knifeIcon.setPositionY(95);\n\n currentLevel = 0;//0 = base , 3=brigham's level\n\n\n PickedUpEvent.setEventType(\"CoinPickedUp\");\n\n this.addEventListener(myQuestManager, collidedEvent.getEventType());\n\n\n background.setScaleX(5);\n background.setScaleY(5);\n\n background.setScaleX(5);\n background.setScaleY(5);\n\n\n player = new Player(\"player\", \"resources/player_sheet.png\", \"idle_right\");\n player.setSpriteSheetJson(\"resources/player_sheet.json\");\n player.setDelay(100);\n\n player.getLifeArray().get(0).setPositionX(390);\n player.getLifeArray().get(0).setPositionY(40);\n player.getLifeArray().get(1).setPositionX(420);\n player.getLifeArray().get(1).setPositionY(40);\n player.getLifeArray().get(2).setPositionX(450);\n player.getLifeArray().get(2).setPositionY(40);\n // player.setHasPhysics(true);\n keyCount = 0;\n knifeCount = 4;\n // player.setHasPhysics(true);\n\n // platform.setPositionX(50);\n // platform.setPositionY(550);\n\n\n // platform1.setPositionX(150);\n // platform1.setPositionY(150);\n\n\n player.setPositionX(550);\n player.setPositionY(700);\n\n pressE = new Sprite(\"pressE\", \"pressE.png\");\n player.addChild(pressE);\n pressE.setPositionY(-50);\n\n\n coin.setPositionY(250);\n coin.setPositionX(660);\n\n findKey.setPositionX(500);\n findKey.setPositionY(-20);\n\n getToRoom.setPositionX(500);\n getToRoom.setPositionY(-20);\n\n killTurtle.setPositionX(500);\n killTurtle.setPositionY(-20);\n\n\n //Rectangle2D rect = new Rectangle2D.Float(600,400,700,500);\n //coverList = new ArrayList<Rectangle2D>(); //list of cover sprites\n //coverList.add(rect);\n\n ///////////////////////////////////////LEVEL 0 ////////////////////////////////////////////////////////////////\n\n if (currentLevel == 0) {\n\n tutorial = new TutorialLevel1(\"Tutorial\");\n tutorial.run();\n addChild(tutorial);\n\n myLevel = new Level0(\"Room1\");\n myLevel.run();\n addChild(myLevel);\n\n\n myLevel1 = new Level1(\"Room2\");\n myLevel1.run();\n myLevel1.hide();\n addChild(myLevel1);\n\n myLevel2 = new ahmedslevel(\"Room3\", player);\n myLevel2.run();\n myLevel2.hide();\n addChild(myLevel2);\n\n myLevel3 = new BrighamLevel(\"Room4\");\n myLevel3.run();\n myLevel3.hide();\n addChild(myLevel3);\n\n level4 = new AlternatingSpikesLevel(\"Room6\");\n level4.run();\n level4.hide();\n addChild(level4);\n\n bossLevel = new BossLevel(\"Room5\", player);\n bossLevel.run();\n bossLevel.hide();\n addChild(bossLevel);\n\n\n\n tutorial.mapDoorToRoom(0,myLevel);\n myLevel.mapDoorToRoom(0, myLevel1);\n myLevel1.mapDoorToRoom(0, myLevel2);\n myLevel2.mapDoorToRoom(0, myLevel3);\n myLevel3.mapDoorToRoom(0, level4);\n level4.mapDoorToRoom(0, bossLevel);\n //myLevel3.mapDoorToRoom(0,bossLevel);\n\n\n currentRoom = tutorial;\n\n //myLevel1.mapDoorToRoom(0,myLevel2);\n\n //myLevel2.run();\n //myLevel2.hide();\n\n\n //myLevel2.mapDoorToRoom(0,myLevel3);\n //myLevel3.run();\n //myLevel3.hide();\n currentQuestObjective = 0;\n\n }\n\n if (currentLevel == 4) {\n\n\n bossLevel = new BossLevel(\"Room4\", player);\n bossLevel.run();\n currentRoom = bossLevel;\n\n\n }\n\n enemies = currentRoom.enemies;\n pickpocketEnemy = null;\n\n transitionY = 615;\n transitionYCurrent = 615;\n\n\n backgroundMusic.playSoundEffect(\"resources/oceanOperator.wav\", 100);\n\n }",
"private void updatePlayerClaim(){\n if(chestProgressLevel!=1){\n return; //the chest isnt unlocked!\n }\n\n //count the total players, and the players who unlocked it.\n int totalPlayers = 0;\n int unlockedPlayers = 0;\n for(JuggernautPlayer player: JuggernautGame.getInstance().getPlayers()){\n if(!player.isSurvivor() || !player.isAlive()){\n continue; //they be dead, they dont count! (Juggy also doesnt count, he doesnt get to unlock items)\n }\n totalPlayers++; //+1 total players\n if(player.isSurvivor() && player.getChestBonus(chestID)>=level){\n unlockedPlayers++; //they unlocked it, +1 unlocked players\n }\n }\n\n //all players unlocked it\n if(totalPlayers<=unlockedPlayers && chestProgressLevel==1){\n //lock the chest before respawning.\n lockChest();\n new BukkitRunnable() {\n\n int timeTillRespawn = 3; //3 seconds to respawn a chest\n @Override\n public void run() {\n //runs every second\n for(JuggernautPlayer jp : JuggernautGame.getInstance().getAllPeople()){\n //check if the player is in the radius of the chest (ignore Y)\n if(SkyMathHelper.isInRadius(location, jp.getPlayer().getLocation(), nametagRadius, false)) {\n //show them the hologram. Update if they already have the hologram active.\n //If this chest will not respawn, we tell them \"Good Luck!\" instead of the respawning message.\n if (jp.getLoadedEntities().containsKey(armorstandResetChestID)) {\n if(level==getMaxLevel()){\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Good Luck!\");\n }else {\n jp.updateHologram(armorstandResetChestID, \"\\u00A76Respawning in \" + timeTillRespawn);\n }\n } else {\n if(level==getMaxLevel()) {\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Good Luck!\", armorstandResetChestID);\n }else{\n jp.displayHologram(location.getX(), location.getY() + armorstandProgressbarHeight, location.getZ(), \"\\u00A76Respawning in \" + timeTillRespawn, armorstandResetChestID);\n }\n }\n }else{\n //they arent in range, so we remove this entity for them\n jp.removeEntities(armorstandResetChestID);\n }\n }\n\n //check if its time to respawn.\n if(timeTillRespawn--<=0){\n //its time! respawn the chest!\n respawnChest();\n for(JuggernautPlayer jp: JuggernautGame.getInstance().getPlayers()){\n //remove the countdown armorstand for all players\n jp.removeEntities(armorstandResetChestID);\n }\n this.cancel(); //cancel this runnable, we no longer need it.\n return;\n }\n }\n }.runTaskTimer(Juggernaut.pluginInstance, 0L, 20L); //every 20 ticks (1s)\n }else{\n //not all players unlocked the item yet. Lets indicate how many did.\n String emptyDisplayText = unlockedPlayers + \"/\" + totalPlayers + \" Claimed\";\n for(JuggernautPlayer JP: JuggernautGame.getInstance().getPlayers()){\n if(!SkyMathHelper.isInRadius(location, JP.getPlayer().getLocation(), nametagRadius, false)){\n //they arent in the radius, so we remove their armorstand again (if they had it).\n if(JP.getLoadedEntities().containsKey(this.armorstandClaimProgressID)) {\n JP.removeEntities(armorstandClaimProgressID);\n }\n continue;\n }\n\n //generate the color of the display text we need to show them. green if they claimed it, otherwise red.\n String displayText;\n if(JP.getChestBonus(chestID)>=level){\n displayText = \"\\u00A72\" + emptyDisplayText;\n }else{\n displayText = \"\\u00A7c\" + emptyDisplayText;\n }\n\n //update, or show the hologram to them.\n if(JP.getLoadedEntities().containsKey(this.armorstandClaimProgressID)){\n JP.updateHologram(armorstandClaimProgressID, displayText);\n }else{\n JP.displayHologram(this.location.getX(), this.location.getY()+this.armorstandClaimProgressHeight, this.location.getZ(), displayText, armorstandClaimProgressID);\n }\n }\n }\n }",
"public void onClick(ClickEvent event) {\n\t\t\t\t\tsetGameLevel(x);\r\n\t\t\t\t}",
"public void setLevel(double amt) {\n\t\tlevel += amt;\n\t}",
"public void setStaticLevel(int skill, int level, boolean update) {\r\n experience[skill] = getExperienceForLevel(staticLevels[skill] = dynamicLevels[skill] = level);\r\n if (entity instanceof Player && update) {\r\n PacketRepository.send(SkillLevel.class, new SkillContext((Player) entity, skill));\r\n }\r\n }",
"public void playerHasInvincibility() {\n\t\tthis.state = canBeKilled;\n\t}",
"public void setCurHealth(int modifier) {\n\t\tcurHealth = curHealth + modifier;\n\t}",
"public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}",
"public void setVolume(int level);",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(int level) {\n this.level = level;\n }",
"public void setLevel(String level);",
"public void setCurrentLevel(String initCurrentLevel)\n {\n currentLevel = initCurrentLevel;\n }",
"@Override\n protected void initializeLevelSpecificChances()\n {\n shopRoomChance = 0.05F;\n restRoomChance = 0.12F;\n treasureRoomChance = 0.0F;\n eventRoomChance = 0.22F;\n eliteRoomChance = 0.08F;\n\n smallChestChance = 50;\n mediumChestChance = 33;\n largeChestChance = 17;\n\n commonRelicChance = 50;\n uncommonRelicChance = 33;\n rareRelicChance = 17;\n\n colorlessRareChance = 0.3F;\n if (AbstractDungeon.ascensionLevel >= 12) {\n cardUpgradedChance = 0.125F;\n } else {\n cardUpgradedChance = 0.25F;\n }\n }",
"private void checkVictory() {\n\t\tboolean currentWin = true;\n\t\t\n\t\t//Vertical win\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tif (gameArray[i][yGuess] != currentPlayer){\n\t\t\t\tcurrentWin = false;\n\t\t\t}\n\t\t}\n\t\tif (currentWin){\n\t\t\tgameWon = true;\n\t\t}\n\t\t\n\t\t//Horizontal win\n\t\tcurrentWin = true;\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tif (gameArray[xGuess][i] != currentPlayer){\n\t\t\t\tcurrentWin = false;\n\t\t\t}\n\t\t}\n\t\tif (currentWin){\n\t\t\tgameWon = true;\n\t\t}\n\t\t\n\t\t//Top left bottom right diagonal win\n\t\tcurrentWin = true;\n\t\tif (xGuess == yGuess){\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tif (gameArray[i][i] != currentPlayer){\n\t\t\t\tcurrentWin = false;\n\t\t\t}\n\t\t}\n\t\tif (currentWin){\n\t\t\tgameWon = true;\n\t\t}\n\t\t}\n\t\t\n\t\t//Bottom left top right diagonal win\n\t\tcurrentWin = true;\n\t\tif (yGuess + xGuess == DIVISIONS - 1){\n\t\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\t\tif (gameArray[i][(DIVISIONS - 1) -i] != currentPlayer){\n\t\t\t\t\tcurrentWin = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (currentWin){\n\t\t\t\tgameWon = true;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void Setlevels(int lvl)\r\n {\r\n level = lvl;\r\n }",
"public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}",
"private void setGameLevel(GameLevel gameLevel) {\n this.gameLevel = gameLevel;\n\n int width, height;\n\n switch (this.gameLevel) {\n case INTERMEDIATE:\n width = 800;\n height = 680;\n break;\n case EXPERT:\n width = 920;\n height = 960;\n break;\n default:\n width = 500;\n height = 450;\n break;\n }\n\n // adjust the stage size to fit the game grid\n this.primaryStage.setWidth(width);\n this.primaryStage.setHeight(height);\n }",
"public void win(int player)\r\n\t{\r\n\t\taccountValue[player]+=pool;\r\n\t\tendRund();\r\n\t}",
"public void changeLevel(int id, int target) {\n\t\tcurrentLevelId = id;\n\t\tif (target==0) player.move(levels[currentLevelId].entrance, false);\n\t\tif (target==1) player.move(levels[currentLevelId].exit, false);\n\t}",
"public void setLevel(Integer level) {\n this.level = level;\n }",
"public void setLevel(Integer level) {\n this.level = level;\n }",
"public void setLevel(Integer level) {\n this.level = level;\n }",
"public void setLevel(Integer level) {\n this.level = level;\n }",
"public void setLevel(Integer level) {\n this.level = level;\n }",
"public void setLevel(String newLevel) {\n level = newLevel;\n }",
"public static void victoryIsMine() {\n\t\tSystem.out.println(\"|| Victory is mine! ||\");\r\n\t}",
"private void setHealth(Player p, int health)\n {\n int current = p.getHealth();\n \n // If the health is 20, just leave it at that no matter what.\n int regain = health == 20 ? 20 : health - current;\n \n // Set the health, and fire off the event.\n p.setHealth(health);\n EntityRegainHealthEvent event = new EntityRegainHealthEvent(p, regain, RegainReason.CUSTOM);\n Bukkit.getPluginManager().callEvent(event);\n }",
"private void constructLevel(int level){\n gamePanel.removeAll();\n GridLayout layout = new GridLayout(grid.length,grid[0].length);\n gamePanel.setLayout(layout);\n gamePanel.setBackground(Color.BLACK);\n gamePanel.setFocusable(true);\n gamePanel.requestFocusInWindow();\n gamePanel.updateUI();\n }",
"public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }",
"public void setUserLevel(int userLevel) {\n\t\t\tthis.userLevel = userLevel;\n\t\t}",
"public void setStartConditions() {\r\n\t\tplayer1.relocate(0, 0);\r\n\t\tgamemap.setPlayerLocation(1, 1);\r\n\t\tgamemap.setEnemyLocation(20, 10);\r\n\t\tenemy1.relocate(19*46, 9*85);\r\n\t\tportal1.relocate(9*46, 9*85);\r\n\t\tportal2.relocate(9*46, 0*85);\r\n\t\tspikes1.relocate(5*46,0*85);\r\n\t\tspikes2.relocate(5*46,1*85);\r\n\t\tspikes3.relocate(5*46,2*85);\r\n\t\tspikes4.relocate(5*46,7*85);\r\n\t\tspikes5.relocate(5*46,8*85);\r\n\t\tspikes6.relocate(5*46,9*85);\r\n\t\tspikes7.relocate(10*46,2*85);\r\n\t\tspikes8.relocate(10*46,3*85);\r\n\t\tspikes9.relocate(10*46,4*85);\r\n\t\tspikes10.relocate(10*46,5*85);\r\n\t\tspikes11.relocate(10*46,6*85);\r\n\t\tspikes12.relocate(10*46,7*85);\r\n\t\tspikes13.relocate(15*46,0*85);\r\n\t\tspikes14.relocate(15*46,1*85);\r\n\t\tspikes15.relocate(15*46,2*85);\r\n\t\tspikes16.relocate(15*46,7*85);\r\n\t\tspikes16.relocate(15*46,8*85);\r\n\t\tspikes17.relocate(15*46,9*85);\r\n\t\tRandom randomObj = new Random();\r\n\t\tint randomX = randomObj.nextInt(20);\r\n\t\tint randomY = randomObj.nextInt(10);\r\n\t\tcoins1.relocate(randomX*46, randomY*85);\r\n\t\tgamemap.setLootLocation(randomX + 1, randomY + 1);\r\n\t\t//coins1.relocate(10*46,5*85);\r\n\t\t//gamemap.setLootLocation(11, 6);\r\n\t}",
"public void setFoodLevel ( int value ) {\n\t\texecute ( handle -> handle.setFoodLevel ( value ) );\n\t}"
] | [
"0.6299736",
"0.62602705",
"0.6258404",
"0.61229",
"0.6070392",
"0.6002836",
"0.58377016",
"0.58244336",
"0.58191913",
"0.5766658",
"0.5726775",
"0.5702871",
"0.5650893",
"0.5624963",
"0.56034714",
"0.5589636",
"0.55835605",
"0.55727834",
"0.5563427",
"0.5561557",
"0.5544555",
"0.55415314",
"0.5532982",
"0.5523256",
"0.55160266",
"0.551406",
"0.55071694",
"0.5491012",
"0.54860616",
"0.5485889",
"0.54546326",
"0.5427094",
"0.5427048",
"0.54128486",
"0.54097486",
"0.5374928",
"0.536647",
"0.5362931",
"0.5358983",
"0.5349433",
"0.5346923",
"0.53404295",
"0.53392136",
"0.533756",
"0.5328294",
"0.5325708",
"0.53251576",
"0.53183955",
"0.5309978",
"0.5309333",
"0.53020823",
"0.5289861",
"0.5269395",
"0.5268629",
"0.52659637",
"0.52495325",
"0.5247996",
"0.52449375",
"0.5241591",
"0.523662",
"0.5233553",
"0.5231661",
"0.5226859",
"0.52254987",
"0.5223015",
"0.522154",
"0.5203693",
"0.52002096",
"0.5198975",
"0.51964027",
"0.5195832",
"0.5193019",
"0.51799554",
"0.51795274",
"0.51707345",
"0.5170445",
"0.5164747",
"0.5164747",
"0.51563334",
"0.5155098",
"0.5154009",
"0.51487863",
"0.51452374",
"0.5140811",
"0.5132375",
"0.51319",
"0.5131118",
"0.51258105",
"0.51258105",
"0.51258105",
"0.51258105",
"0.51258105",
"0.51252234",
"0.5124654",
"0.51228",
"0.511323",
"0.5109294",
"0.5109286",
"0.51023006",
"0.5101973"
] | 0.6712229 | 0 |
Set the defeat condition for the current level of the game being authored | void setDefeatCondition(String conditionIdentifier); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void defend(){\n\tdefense += (int)(Math.random() * defense * .45 + 5);\n\tstrength -= 3;\n\tif (defense > 70) {\n\t defense = 70;\n\t}\t \n\tcounterDef += 1;\n\tif (counterDef == 2){\n\t counterDef = 0;\n\t recover();\n\t}\n\tSystem.out.println(\"You brace yourself with your bow.\");\n }",
"public int defend(boolean touchAttack)\n {\n int defense = 0;\n if (rollDefense) {\n int baseRoll = dice.roll(1, 20, 0);\n defense = baseRoll;\n }\n defense += armorClass.get(AC_Type.AC_Reg).getCurrent();\n return defense;\n }",
"public void specialEffect() {\n if (getDefense() > 0) {\n setDefense(0);\n setCurrentHealth(currentHealth + 50);\n }\n\n }",
"public void setDefense(float defense)\n {\n this.defense = defense;\n }",
"private void reviveAttacker() {\n\t\tString type = (mRandom.nextFloat() > mKnightSpawnChance) ? \"normal\" : \"knight\";\n\t\treviveAttacker(type);\n\t}",
"public static void endDamageStep (boolean hasDefeatedOpponent) {\r\n // Exhausted Executioner effect (turn into defence mode)\r\n if (Game.ActiveAttackingMonster.isTurningIntoDef()) {\r\n Game.ActiveAttackingMonster.passiveEffectExhaustedExecutioner();\r\n }\r\n // delete free mode change per turn\r\n Game.ActiveAttackingMonster.isModeChangeableThisTurn=false;\r\n // gain attack due to fighting experience\r\n if (hasDefeatedOpponent && Game.ActiveAttackingMonster.isGainingExperience()) {\r\n // only count number of defeated monster while the Steep Learning Curve effect is active\r\n getNthSummonedMonster(Game.ActiveAttackingMonster.sumMonsterNumber, Game.ActiveAttackingMonster.isPlayersMonster).numberOfDefeatedMonsters++;\r\n Game.ActiveAttackingMonster.att = Game.ActiveAttackingMonster.att + Mon.SteepLearningCurve.SteepLearningCurveAttBoost();\r\n Game.ActiveAttackingMonster.updateAttDefDisplay();\r\n }\r\n endAttack(false); // swich off booleans remembering what monsters are currently in battle\r\n }",
"public Builder setDefense(int value) {\n bitField0_ |= 0x00000040;\n defense_ = value;\n onChanged();\n return this;\n }",
"@Override\n protected void defend(Territory attacker, double soldiersAttacking){\n // Example of a defending strategy: if the attacker is my subordinate, and attacks me with\n // more soldiers than my stock, then I will surender. Otherwise, attack will all soldiers\n if(myTerritory.getSubordinates().contains(attacker) && soldiersAttacking > myTerritory.getSoldiers()){\n defendingSoldiers = 0;\n }\n else defendingSoldiers = (myTerritory.getSoldiers())*3/4;\n }",
"public void attack() {\n energy = 2;\n redBull = 0;\n gun = 0;\n target = 1;\n // if Player is in range take off a life.\n if (CharacterTask.ghostLocation == GameWindow.playerLocation) {\n playerLives = playerLives - 1;\n System.out.println(\"Player Lives: \" + playerLives);\n }\n }",
"@Override\r\n public void applyAttributes() {\r\n super.applyAttributes();\r\n getEntity().setColor(color);\r\n getEntity().setOwner(MbPets.getInstance().getServer().getPlayer(getOwner()));\r\n getEntity().setAgeLock(true);\r\n\r\n if (isBaby) {\r\n getEntity().setBaby();\r\n } else {\r\n getEntity().setAdult();\r\n }\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_ATTACK_WOLF);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.LLAMA_FOLLOW_CARAVAN);\r\n Bukkit.getMobGoals().removeGoal(getEntity(), VanillaGoal.TRADER_LLAMA_DEFEND_WANDERING_TRADER);\r\n }",
"public Builder setDefense(int value) {\n bitField0_ |= 0x00000100;\n defense_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void hardMode() {\n super.setHP(1800);\n super.getFrontAttack().setBaseDamage(37.5);\n super.getRightAttack().setBaseDamage(37.5);\n super.getBackAttack().setBaseDamage(37.5);\n super.getLeftAttack().setBaseDamage(37.5);\n }",
"public Builder setDefense(int value) {\n bitField0_ |= 0x00000800;\n defense_ = value;\n onChanged();\n return this;\n }",
"public Builder setDefense(int value) {\n bitField0_ |= 0x00000800;\n defense_ = value;\n onChanged();\n return this;\n }",
"public Builder setDefense(int value) {\n bitField0_ |= 0x00000800;\n defense_ = value;\n onChanged();\n return this;\n }",
"public void setExhaustionLevel(float f) {\n this.c = Math.min(f, 40f);\n }",
"public void causeFoodExhaustion(float debug1) {\n/* 1797 */ if (this.abilities.invulnerable) {\n/* */ return;\n/* */ }\n/* */ \n/* 1801 */ if (!this.level.isClientSide) {\n/* 1802 */ this.foodData.addExhaustion(debug1);\n/* */ }\n/* */ }",
"@Override\n\tpublic void setDefense(double defense) {\n\n\t}",
"public Builder setDefense(int value) {\n bitField0_ |= 0x00000400;\n defense_ = value;\n onChanged();\n return this;\n }",
"public void defender(){setModopelea(1);}",
"private void defend() {\n\t\t\n\t\tnavigator.setPlaying(true);\n\t\ttravelTo(Location.DefenseBase);\n\t\tnavigator.turnTo(0);\n\t\t//unfold\n\t\tDefense def = Main.def;\n\t\tdef.mode(2);\n\t}",
"public void setToDefualts(){\n\t\tchangeInPlayerHealth = 0;\n\t\tchangeInPlayerScore = 0;\n\t\tchangInBatteryCharge = 0;\n\t\tpuaseForAnimation = false;\n\t}",
"@Override\n public void challengeMode() {\n super.setHP(2100);\n super.getFrontAttack().setBaseDamage(43.75);\n super.getRightAttack().setBaseDamage(43.75);\n super.getBackAttack().setBaseDamage(43.75);\n super.getBackAttack().setMainStatus(new Bleed(0.7));\n super.getBackAttack().setDescription(\"The Jyuratodus uses the razor fin on its tail to slice the area \" +\n \"behind it while flinging mud to the sides!\");\n super.getLeftAttack().setBaseDamage(43.75);\n }",
"private void loseCondition() {\n if (player.getHealth() <= 0) {\n lose();\n }\n }",
"void defendAttack(IUnit attacker, int incomingDamage);",
"public void setDamageTaken(double damage){\n\t\tlifeForce -= damage;\n\t\tif (! (lifeForce > 0) ) {\n\t\t\tJOptionPane.showMessageDialog(null, \"You Died - GAME OVER\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"private void reactToEnemyDefeat(BasicEnemy enemy) {\n // react to character defeating an enemy\n // item rewards\n triggerDropItem(0.5);\n triggerDropPotion(0.1);\n triggerDropTheOneRing(0.002);\n\n // gold & exp rewards\n triggerGainGold(10, 0.2);\n triggerGainExp(5, 1);\n\n // card rewards\n triggerDropCard(0.4); // 0.08 actual, 0.5 for test\n }",
"private void damage(){\n\n LevelMap.getLevel().damage(dmg);\n //System.out.println(\"died\");\n setDie();\n }",
"public void enableSurvivialMode()\n\t{\n\t\tthis.player.useFlyingMode = false;\n\t\tthis.player.setHealth(100f);\n\t}",
"public void gameAttack(){\n int counter = 0;\n while (currentPlayer.wantToAttack(this)){\n counter++;\n if (counter > 100) break;\n /*In rare cases, AI players will repeatedly select the same attackers and defenders\n while also not wanting to dice fight. That will infinitely loop here and this counter will prevent it\n Under normal circumstances, no reasonable player will ever try to do more than 100 separate attacks in the same turn\n */\n\n String[] attackerDefender = {\"\",\"\"};\n //AttackStarterSelection\n attackerDefender[0] = currentPlayer.chooseAttackStarter(this);\n\n //AttackDefenderSelection\n attackerDefender[1] = currentPlayer.chooseAttackDefender(this, attackerDefender[0]);\n\n //DiceFightOrQuit\n int attackerDice, defenderDice;\n while (currentPlayer.wantToDiceFight(this, attackerDefender[0]+ \",\" + attackerDefender[1])){\n //DiceFightAttackerChoice\n attackerDice = currentPlayer.getAttackerDice(this, getTerritory(attackerDefender[0]));\n\n //DiceFightDefenderChoice\n Player defender = this.getPlayerFromList(this.getTerritory(attackerDefender[1]).getOwner());\n defenderDice = defender.getDefenderDice(this, this.getTerritory(attackerDefender[1]));\n\n\n //DiceFight results\n displayMessage(this.diceFight(attackerDefender, attackerDice,defenderDice));\n\n //Possible elimination and announcement of winner\n //Current diceFight ends if attacker has 1 troop left, or territory is conquered\n if (endDiceFight(attackerDefender, attackerDice)) break;\n\n }//End diceFightOrQuit\n\n\n }//End wantToAttack\n //Proceed to fortify stage of turn\n }",
"private void exitCombatPlayerDefeat(){\n\t\tCheckpoint.load();\r\n\t\t//GlobalGameState.setActiveGameState(GameStates.DEFEAT);\r\n\t\tGSTransition.getInstace().prepareTransition( GameStates.DEFEAT );\r\n\t\tGlobalGameState.setActiveGameState(GameStates.TRANSITION);\r\n\t}",
"@Override\n public void easyMode() {\n super.setHP(900);\n super.getFrontAttack().setBaseDamage(18.75);\n super.getRightAttack().setBaseDamage(18.75);\n super.getBackAttack().setBaseDamage(18.75);\n super.getLeftAttack().setBaseDamage(18.75);\n }",
"public void hurt (int amount) {\r\n\t\thealth -= amount;\r\n\t\tif(health <= 0) {\r\n\t\t\thealth = 0; //I will be using this later when entity is knocked out\r\n\t\t\tactive = false;\r\n//\t\t\tdestroy();\r\n\t\t}\r\n\t}",
"public void setCombatTask() {\n\t\tif (this.level != null && !this.level.isClientSide) {\n\t\t\tthis.goalSelector.removeGoal(this.aiAttackOnCollide);\n\t\t\tthis.goalSelector.removeGoal(this.aiShotgunAttack);\n\t\t\tItemStack itemstack = this.getItemInHand(ProjectileHelper.getWeaponHoldingHand(this, DeferredRegistryHandler.BLUNDERBUSS.get()));\n\t\t\tif (itemstack.getItem() == DeferredRegistryHandler.BLUNDERBUSS.get()) {\n\t\t\t\tint i = 25;\n\t\t\t\tif (this.level.getDifficulty() != Difficulty.HARD) {\n\t\t\t\t\ti = 45;\n\t\t\t\t}\n\n\t\t\t\tthis.aiShotgunAttack.setAttackCooldown(i);\n\t\t\t\tthis.goalSelector.addGoal(16, this.aiShotgunAttack);\n\t\t\t} else {\n\t\t\t\tthis.goalSelector.addGoal(12, this.aiAttackOnCollide);\n\t\t\t}\n\n\t\t}\n\t}",
"public void setDefense(int defense) {\n\t\tthis.defense = defense;\n\t}",
"private void enemyAttack() {\n\t\t\n\t\tRandom rand = new Random();\t\n\t\t\n\t\tint roll = rand.nextInt(101);\n\t\t\n\t\tint sroll = rand.nextInt(101);\n\t\t\n\t\tevents.appendText(e.getName() + \" attacks!\\n\");\n\t\t\n\t\tif(roll <= p.getEV()) { // Player evades\n\t\t\t\n\t\t\tevents.appendText(\"You evaded \"+e.getName()+\"\\'s Attack!\\n\");\n\t\t\t\n\t\t}else if(roll > p.getEV()) { // Player is hit and dies if HP is 0 or less\n\t\t\t\n\t\t\tp.setHP(p.getHP() - e.getDMG());\n\t\t\t\n\t\t\tString newHp = p.getHP()+\"/\"+p.getMaxHP();\n\t\t\t\n\t\t\tString effect = e.getSpecial(); // Stats are afflicted\n\t\t\t\n\t\t\tif(sroll < 51){\n\t\t\t\t\n\t\t\tif(effect == \"Bleed\") { // Bleed Special\n\t\t\t\t\n\t\t\t\tp.setHP(p.getHP() - 100);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You bleed profusely. - 100 HP\\n\");\n\t\t\t\t\n\t\t\t\tnewHp = String.valueOf(p.getHP()+\"/\"+p.getMaxHP());\n\t\t\t}\n\t\t\tif(effect == \"Break\") { // Break Special \n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You feel a bone break restricting movement. - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Fear\") { // Fear Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-40>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 40);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"A crippling fear rattles your resolve. - 40 DMG\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Rend\") { // Rend Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-30>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 30);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"Morthar unleashes a pillar of flame! - 30 DMG and - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\tif(p.getHP() <= 0) {\n\t\t\t\t\n\t\t\t\tp.setDead(true);\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(0+\"/\"+e.getMaxHP());\n\t\t\t\tplayerHPBar.setProgress((double)0);\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(newHp);\n\t\t\t\tplayerHPBar.setProgress((double)p.getHP()/p.getMaxHP());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(p.isDead()) { // Game over if player dies\n\t\t\t\n\t\t\ttry {\n\t\t\t\tLoadGO();\n\t\t\t} catch (IOException e1) {\n\t\t\t\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcombat = false;\n\t\t}\n\t}",
"private void resetCooldown() {\n nextAttack = tower.getFireFrequency();\n }",
"private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}",
"public void deactivateAbility(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage-12;\n lm.player.setDamage(newDamage);\n }",
"public void attack(User p)\n\t{\n\t\tint damage = getAttack() - p.getDefense();\n\t\tint evade = 0;\n\t\tif(damage <= 0)\n\t\t{\n\t\t\tevade = p.getDefense() - getAttack();\n\t\t\tdamage = 1;\n\t\t}\n\t\t\n\t\tif(Math.random() * 100 < evade * 5)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"Miss\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tp.reduce(damage);\n JOptionPane.showMessageDialog(null,\"Enemy attacked you! User's health = \" + p.getHealth() + \"\\n\" + \"Damage dealt = \" + damage); \n\t}",
"void inflictDamage(double amount) {\r\n if (amount < 0) // shouldn't happen\r\n return;\r\n damage = Math.min(MAX_DAMAGE, damage + amount);\r\n if (damage == MAX_DAMAGE)\r\n setIsAlive(false);\r\n }",
"public abstract void setForceLevel(int level);",
"@Ability(name = \"No Fall Damage\", info = \"Take no fall damage.\", type = Ability.Type.PASSIVE, placeholder = true)\n public void noFallDamageAbility() {\n }",
"private void Dead() {\n\t\thunger -= 5;\n\t\tthirst -= 5;\n\t\tif ((thirst < 25) && (hunger < 25)){\t\t\t// Player is very weak\n\t\t\thealth -= 15;\n\t\t}else if ((thirst < 25) || (hunger < 25)){\t\t// Player is kinda weak\n\t\t\thealth -= 5;\n\t\t}\n\t\tif (health <= 0){\t\t\t\t\t\t\t\t// Player is dead\n\t\t\taddMessage(\"Overcome by your weakness you succumb.\", \"AI\");\n\t \t\taddMessage(\"You have died\", \"AI\");\n\t \t\tmenu = MENU.GAME_OVER;\n\t\t}\n\t}",
"public void enableFlyingMode()\n\t{\n\t\tthis.player.useFlyingMode = true;\n\t\tif(this.player.healthIn < 100)\n\t\t{\n\t\t\tthis.player.healthIn = 100;\n\t\t}\n\t}",
"public Lunge() {\n super(SkillFactory.LUNGE, \"Lunge\", SkillDescription.lunge, 15, Pokemon.Type.BUG,\n SkillCategory.PHYSICAL, 100, 80, 1, 1.0);\n secondaryEffects.add(new AttackEffect(SecondaryEffect.Target.ENEMY, 1,\n SecondaryEffect.StatDirection.DECREASE));\n makesPhysicalContact = true;\n }",
"@Override\n public void onTargetDamaged(LivingEntity user, Entity target, int level) {\n if(target instanceof LivingEntity) {\n\n //target.damage(DamageSource.LAVA, 3F);\n knockUp((PlayerEntity) user, (LivingEntity) target, 3F);\n }\n }",
"public void findDefeated(){\n for(Enemy enemy: enemies){\n if(enemy.getCurrHP() <= 0 || enemy.isFriendly()){\n if (!defeated.contains(enemy)) {\n defeated.add(enemy);\n }\n }\n }\n }",
"public void ability(LevelManager lm){\n\n int prevDamage = lm.player.getDamage();\n int newDamage = prevDamage+12;\n lm.player.setDamage(newDamage);\n }",
"public void setHungerDamage(float hunger);",
"public void meleemode(ScannedRobotEvent e) {\r\n //run predictive_shooter()\r\n firemode = getOthers();\r\n if(getOthers() == 1) {\r\n duelmode(e);\r\n } runaway(e);\r\n }",
"@Override\n public void setFightable(Boolean fightable)\n {\n super.setFightable(false);\n }",
"public InaccurateAttackEffect() {\n\t\tsuper(Effect.Target.OPPONENT, Effect.FLIP_COIN);\n\t\tthis.numberOfHits = 1;\n\t\tthis.hitsPerEnergy = Effect.BOOL_NOT_USED;\n\t\tthis.hitsIndefinitely = Effect.BOOL_NOT_USED;\n\t}",
"public Builder clearMinigameDefenseChancesLeft() {\n \n minigameDefenseChancesLeft_ = 0;\n onChanged();\n return this;\n }",
"private void raiseFoodLevel(int x) {\n if (this.foodLevel + x <= 100) {\n this.foodLevel += x;\n } else {\n this.foodLevel = 100;\n }\n }",
"@Override\n\tpublic void reduceCurrentHp(final double damage, final L2Character attacker, final boolean awake)\n\t{\n\t\t/*\n\t\t * if ((this instanceof L2SiegeGuardInstance) && (attacker instanceof L2SiegeGuardInstance)) //if((this.getEffect(L2Effect.EffectType.CONFUSION)!=null) && (attacker.getEffect(L2Effect.EffectType.CONFUSION)!=null)) return; if ((this instanceof L2MonsterInstance)&&(attacker instanceof\n\t\t * L2MonsterInstance)) if((this.getEffect(L2Effect.EffectType.CONFUSION)!=null) && (attacker.getEffect(L2Effect.EffectType.CONFUSION)!=null)) return;\n\t\t */\n\t\t\n\t\tif (isRaid() && attacker != null && attacker.getParty() != null && attacker.getParty().isInCommandChannel() && attacker.getParty().getCommandChannel().meetRaidWarCondition(this))\n\t\t{\n\t\t\tif (firstCommandChannelAttacked == null) // looting right isn't set\n\t\t\t{\n\t\t\t\tsynchronized (this)\n\t\t\t\t{\n\t\t\t\t\tif (firstCommandChannelAttacked == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tfirstCommandChannelAttacked = attacker.getParty().getCommandChannel();\n\t\t\t\t\t\tif (firstCommandChannelAttacked != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcommandChannelTimer = new CommandChannelTimer(this);\n\t\t\t\t\t\t\tcommandChannelLastAttack = System.currentTimeMillis();\n\t\t\t\t\t\t\tThreadPoolManager.getInstance().scheduleGeneral(commandChannelTimer, 10000); // check for last attack\n\t\t\t\t\t\t\tfirstCommandChannelAttacked.broadcastToChannelMembers(new CreatureSay(0, Say2.PARTYROOM_ALL, \"\", \"You have looting rights!\")); // TODO: retail msg\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\telse if (attacker.getParty().getCommandChannel().equals(firstCommandChannelAttacked)) // is in same channel\n\t\t\t{\n\t\t\t\tcommandChannelLastAttack = System.currentTimeMillis(); // update last attack time\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * // CommandChannel if(commandChannelTimer == null && isRaid() && attacker != null) { if(attacker.isInParty() && attacker.getParty().isInCommandChannel() && attacker.getParty().getCommandChannel().meetRaidWarCondition(this)) { firstCommandChannelAttacked = attacker.getParty().getCommandChannel();\n\t\t * commandChannelTimer = new CommandChannelTimer(this, attacker.getParty().getCommandChannel()); ThreadPoolManager.getInstance().scheduleGeneral(_commandChannelTimer, 300000); // 5 min firstCommandChannelAttacked.broadcastToChannelMembers(new CreatureSay(0, Say2.PARTYROOM_ALL, \"\",\n\t\t * \"You have looting rights!\")); } }\n\t\t */\n\t\tif (isEventMob)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Add damage and hate to the attacker AggroInfo of the L2Attackable aggroList\n\t\tif (attacker != null)\n\t\t{\n\t\t\taddDamage(attacker, (int) damage);\n\t\t}\n\t\t\n\t\t// If this L2Attackable is a L2MonsterInstance and it has spawned minions, call its minions to battle\n\t\tif (this instanceof L2MonsterInstance)\n\t\t{\n\t\t\tL2MonsterInstance master = (L2MonsterInstance) this;\n\t\t\t\n\t\t\tif (this instanceof L2MinionInstance)\n\t\t\t{\n\t\t\t\tmaster = ((L2MinionInstance) this).getLeader();\n\t\t\t\t\n\t\t\t\tif (!master.isInCombat() && !master.isDead())\n\t\t\t\t{\n\t\t\t\t\tmaster.addDamage(attacker, 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (master.hasMinions())\n\t\t\t{\n\t\t\t\tmaster.callMinionsToAssist(attacker);\n\t\t\t}\n\t\t\t\n\t\t\tmaster = null;\n\t\t}\n\t\t\n\t\t// Reduce the current HP of the L2Attackable and launch the doDie Task if necessary\n\t\tsuper.reduceCurrentHp(damage, attacker, awake);\n\t}",
"public void takeDamage()\n {\n if(getWorld()!= null)\n {\n if(this.isTouching(Enemies.class))\n {\n Life = Life - Enemies.damage;\n if(Life <=0)\n {\n getWorld().removeObject(this);\n Store.wealth += Game.credit;\n }\n }\n }\n }",
"public void raiseFoodFlag(){\n\t\tif(foodFlag != true && amountWorms > 0){\n\t\t\tfoodFlag = true;\n\t\t\tsw.getInstance(this);\n\t\t\tamountWorms--;\n\t\t\tAquaFrame.initWormStatus(amountWorms);\n\t\t}\n\t\telse{\n\t\t\tint num = 0;\n\t\t\tif(amountWorms == 0){\n\t\t\t\tupdate();\n\t\t\t}\n\t\t}\n\t}",
"public void secondaryEffect(SeenPokemon Attacker, SeenPokemon Defender, int Damage)\r\n\t{\n\t\tif(!Defender.hasCondition())\r\n\t\t{\r\n\t\t\tint chance = genrand(1, 100);\r\n\t\t\tif(chance <= 10)\r\n\t\t\t{\r\n\t\t\t\tDefender.setCondition(5);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Builder setMinigameDefenseChancesLeft(int value) {\n \n minigameDefenseChancesLeft_ = value;\n onChanged();\n return this;\n }",
"public void attack(Person target) {\r\n target.setHealthPoints(target.getHealthPoints() - 1);\r\n }",
"public void damaged() {\n this.damageState = DamageState.DAMAGED;\n }",
"public void inflictDamage(float damage) {\r\n \t\tif(!isInvincible) {\r\n \t\t\thealth -= damage;\r\n \t\t}\r\n \t\tif(health <= 0) {\r\n \t\t\tisDead = true;\r\n \t\t}\r\n \t}",
"@Override\n public void onTypeAttack(Entity target) {\n if (target instanceof EntityLivingBase) {\n int time;\n switch (target.worldObj.difficultySetting) {\n case PEACEFUL:\n return;\n case EASY:\n time = 15;\n break;\n case NORMAL:\n time = 35;\n break;\n default:\n time = 75;\n }\n time *= 20;\n ((EntityLivingBase)target).addPotionEffect(new PotionEffect(Potion.resistance.id, time, -3));\n }\n }",
"void hurt(int strength) {\n life -= strength;\n if (life < 0)\n life = 0;\n }",
"public void attack(Entity defender) {\n\t\tboolean canAttack = true;\n\n\t\tif ((abilities[3] == false && abilities[2] == false)\n\t\t\t\t&& (Math.abs(defender.getPosX() - xCoordinate) > 1 || Math.abs(defender.getPosY() - yCoordinate) > 1))\n\t\t\treturn; // if not in range, don't attack (also cant attack self)\n\n\t\tfor (int i = xCoordinate - 1; i <= xCoordinate + 1; i++) {\n\t\t\tfor (int j = yCoordinate - 1; j <= yCoordinate + 1; j++) {\n\t\t\t\tif (Game.game.getEntityAt(i, j) != null && Game.game.getEntityAt(i, j) != this\n\t\t\t\t\t\t&& Game.game.getEntityAt(i, j).hasAbility(0)) {\n\t\t\t\t\tcanAttack = false; // checks to see if there is any provoke\n\t\t\t\t\t\t\t\t\t\t// troops adjacent to attacker\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (canAttack == false) // if something had provoke...\n\t\t{\n\t\t\tif (Math.abs(defender.getPosX() - xCoordinate) <= 1 && Math.abs(defender.getPosY() - yCoordinate) <= 1\n\t\t\t\t\t&& defender.hasAbility(0)) { // if the defender is in range,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// and has provoke. attack\n\t\t\t\t\t\t\t\t\t\t\t\t\t// it\n\t\t\t\tif (abilities[2]) // but if it has blast, also attack everything\n\t\t\t\t\t\t\t\t\t// else in row/col up until void troop\n\t\t\t\t{\n\t\t\t\t\tblastAttack(defender);\n\t\t\t\t} else if (abilities[0] || abilities[1] || abilities[3] || abilities[4]) {\n\t\t\t\t\tdealDamage(defender);\n\t\t\t\t}\n\t\t\t}\n\t\t} else // if there is nothing with provoke, you can just attack\n\t\t{\n\t\t\tif (abilities[2]) // if it has blast attack everything else in\n\t\t\t\t\t\t\t\t// row/col up until void troop\n\t\t\t{\n\t\t\t\tblastAttack(defender);\n\t\t\t} else if (abilities[0] || abilities[1] || abilities[3] || abilities[4]) {\n\t\t\t\tdealDamage(defender);\n\t\t\t}\n\t\t}\n\t}",
"public void enemyDefeated(Scanner userInput) \r\n\t{\r\n\t\trunning = false;\r\n\t\tSystem.out.println(\"==============================Battle End================================\\n\");\r\n\t\tuser.updateVariables(enemy.getLevel() + 1);\r\n\t\tSystem.out.println(\"Hey you defeated \"+ enemy.getName()+\"! But it did not have your pants...\");\r\n\t\tSystem.out.println(\"1. I want to battle the next monster for the next level\");\r\n\t\tSystem.out.println(\"2. I want to fight a monster that will probably murder me horribly\");\r\n\t\tSystem.out.println(\"3. I want to quit because I'm bored and this game obviously sucks\");\r\n\t\tString cmd;\r\n\t\tEnemy nextEnemy;\r\n\t\tGame newGame;\r\n\t\tdo {\r\n\t\t\tcmd = userInput.nextLine();\r\n\t\t\tif (cmd.equals(\"1\")||cmd.equals(\"2\")) {\r\n\t\t\t\tint level = user.getLevel() + 1;\r\n\t\t\t\tif(cmd.equals(\"2\")) {\r\n\t\t\t\t\tlevel += 1 + r.nextInt(5);\r\n\t\t\t\t}\r\n\t\t\t\tnextEnemy = new Enemy(enemy.getEnemy(), level);\r\n\t\t\t\tnewGame = new Game(user,nextEnemy);\r\n\t\t\t\tnewGame.startEvent(userInput);\r\n\t\t\t}\r\n\t\t\telse if (cmd.equals(\"3\")) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\twhile(!(cmd.equals(\"1\")||cmd.equals(\"2\")||cmd.equals(\"3\")));\r\n\t}",
"private static int monsterDamageDealt(int monsterAttack, int playerDefense){\r\n int monsterDamageDealt;\r\n monsterDamageDealt = (monsterAttack - playerDefense);\r\n if(monsterDamageDealt < 0){\r\n monsterDamageDealt = 0;\r\n return monsterDamageDealt;\r\n }else{\r\n return monsterDamageDealt;\r\n }\r\n }",
"public void attack() {\n\t\t\n\t\tint row = getPosition().getRow();\n\t\tint column = getPosition().getColumn();\n\t\t\n\t\tgetPosition().setCoordinates(row + 1, column);\n\t\tsetPosition(getPosition()) ;\n\t\t// restore health\n\t\tsetHealth(100);\n\t\t// end hunter mode\n\t\tthis.hunter = false;\n\t\t\n\t}",
"private void setEliteMobLevel(int newLevel) {\n if (newLevel < 1)\n newLevel = 1;\n this.eliteMobLevel = newLevel;\n }",
"protected void set_food_level(int food_level)\n {\n this.food_level = food_level;\n }",
"public void weaken(float hit) {\n if (!isInvincible()) {\n hp -= hit;\n invincible = true;\n if (hp < 0) {\n hp = 0;\n }\n\n if(isWeak()){ //Play the death animation\n currentAnimation = deathAnimation;\n }\n }\n }",
"public void setExhaustion ( float value ) {\n\t\texecute ( handle -> handle.setExhaustion ( value ) );\n\t}",
"public void setDareChallenge() {\n while (!(getActiveChallenge()).contains(\"Dare\")) {\n categories.get(indexOfActiveCategory).increaseIndexOfActiveChallenge();\n }\n }",
"public void setDamage() {\n\t\tRandom rand = new Random();\n\t\tint damage = rand.nextInt(getMaxDamage()) + 1;\n\t\tthis.damage = damage;\n\t}",
"public static void combatPlayer(Player atk, EnemyObject def){\n\t\tif(atk.stat.getType() != def.stat.getType() ){\n\n\t\t\t\tint atkDamage = 0;\n\t\t\t\tatkDamage = atk.stat.toDamage();\n\t\t\t\tdef.stat.getDamage(atkDamage);\n\t\t\t\t//System.out.println(\"Attack!\");\n\t\t\t\t//System.out.println(\"Enemy get \"+ atkDamage + \" Damage\");\n\t\t\t\tif(def.stat.checkAlive()==false){\n\t\t\t\t\t//check the object die or not.\t\t\n\t\t\t\t\t\n\t\t\t\t\tif(def.stat.getType()==1){\n\t\t\t\t\t//System.out.println(\"Enemy Die\");\n\t\t\t\t\t\t//def.remove(0);\n\t\t\t\t\t\t//enemy die.\n\t\t\t\t\t\t//give exp to the user.\n\t\t\t\t\t\tint exp = def.stat.giveExp();\n\t\t\t\t\t\t\n\t\t\t\t\t\tatk.stat.getExp(exp);\n\t\t\t\t\t\t//System.out.println(\"Player get \"+exp+ \" exp\");\n\t\t\t\t\t\t//destroy the enemy object.-> ??\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\n\t\t\t\t//System.out.println(\"\\n\\nEvent number : \" + atk.stat.getEventNum()+\" \\n\");\n /*\n\t\t\t\tSystem.out.println(\"Enemy Health: \" + def.stat.getHP());\n\t\t\t\tSystem.out.println(\"\\n\\n Player Stat: \");\n\t\t\t\tSystem.out.println(\"\\nPlayer HP: \"+atk.stat.getHP());\n\t\t\t\tSystem.out.println(\"Level: \"+atk.stat.getLv());\n\t\t\t\tSystem.out.println(\"STR: \"+atk.stat.getStr());\n\t\t\t\tSystem.out.println(\"DEX: \"+atk.stat.getDex());\n\t\t\t\tSystem.out.println(\"Wis: \"+atk.stat.getWis());\n\t\t\t\tSystem.out.println(\"Con: \"+atk.stat.getCon()+\"\\n\");\t*/\t\t\t\n\t\t}\n\t}",
"private void setHealth() {\n eliteMob.setHealth(maxHealth = (maxHealth > 2000) ? 2000 : maxHealth);\n }",
"public int setDefense(int defense) {\n\t\tthis.defense = defense;\n\t\treturn 0;\n\t}",
"public void isEnemyDefeated(Scanner userInput) {\r\n\t\tif(enemy.getHealth() <= 0) {\r\n\t\t\tSystem.out.println(enemyName + \"'s current HP is 0/\" + enemyHP + \"\\n\");\r\n\t\t\tenemyDefeated(userInput);\r\n\t\t\t} else {\r\n\t\t\tSystem.out.println(enemyName + \"'s current HP is \" + enemy.getHealth() + \"/\" + enemyHP + \"\\n\");\r\n\t\t}\r\n\t}",
"public void suffer(int hits)\r\n {\r\n health = health - hits;\r\n if (health < 0)\r\n health = 0;\r\n if (hits == 0)\r\n say(\"Hahaha! I defened myself with \" + armor.getName() + \" and still have \" + health + \" left!\");\r\n else\r\n say(\"Ouch! \" + hits + \" hits is more than I want! I only have \" + health + \" left!\");\r\n if (health <= 0)\r\n die();\r\n }",
"public void attack() {\n if (activeWeapon == null) {\n return;\n }\n attacking = true;\n }",
"public void die(){\n \tif (resetdelay<=0){ //if he didn't just die\r\n \t\tresetdelay = 100; //gives the frog 100 frames of invincibility\r\n \t\tlives-=1;\r\n \t}\r\n }",
"public boolean defend(int input) {\n // Check whether the defence matches the solution\n var result = input == currentSolution;\n // If the defence was a success the given number of times..\n if (result && ++hits == rounds) {\n // the battle is won\n defeated = true;\n }\n \n // return defence success state\n return result;\n }",
"public void setFoodLevel ( int value ) {\n\t\texecute ( handle -> handle.setFoodLevel ( value ) );\n\t}",
"public void duelmode(ScannedRobotEvent e) {\r\n //run predictive_shooter()\r\n if(e.getEnergy() <= 20) {\r\n //shoot things\r\n engage(e);\r\n } runaway(e);\r\n }",
"public void lowerFoodFlag(){\n\t\tif(amountWorms == 0)\n\t\t\tJOptionPane.showMessageDialog(null , \"Run out all the worms!\",\"Warning Food\",JOptionPane.PLAIN_MESSAGE);\n\t\tfoodFlag = false;\n\t}",
"public void downGrade(){\n\t\tlevel -= level;\n\t\tConstants.FARMS -= 1;\n\t\tConstants.FOOD -= 20;\n\t}",
"public void actionCombat(Party p1) {\n System.out.println(\"______________________________________________________________________________\\n\");\n System.out.println(this.Name + \" is attacking ...\");\n int choice = (int)(Math.random() * p1.getTeam().size());\n Character target = p1.getTeam().get(choice);\n System.out.println(this.Name + \" attacks \" + target.getName() + \"!\");\n\n if (this.SPEED - target.getSPEED() < 5) {\n int damage = Math.max(this.ATK - target.getDEF(), 0);\n System.out.println(this.Name + \" has inflicted \" + damage + \" damages to \" + target.getName() + \"!\");\n target.setActualHP(Math.max(0, target.getActualHP() - damage));\n if (target.getActualHP() == 0) {\n System.out.println(\"\\n\" + target.getName() + \" is down!\\n\");\n target.setIsDead(true);\n }\n }\n else {\n int n = 0;\n while ((target.actualHP != 0) && (n < 2)) {\n if (n == 1) {\n choice = (int)(Math.random() * p1.getTeam().size() + 1);\n target = p1.getTeam().get(choice);\n System.out.println(this.Name + \" attacks \" + target.getName() + \"!\");\n }\n int damage = Math.max(this.ATK - target.getDEF(), 0);\n System.out.println(this.Name + \" has inflicted \" + damage + \" damages to \" + target.getName() + \"!\");\n target.setActualHP(Math.max(0, target.getActualHP() - damage));\n if (target.getActualHP() == 0) {\n System.out.println(\"\\n\" + target.getName() + \" is down!\\n\");\n target.setIsDead(true);\n }\n if (n == 0) System.out.println(this.Name + \" attacks again ...\");\n n++;\n }\n }\n }",
"@Override\r\n\tpublic void resetTurn() {\r\n\t\tmoveDistanceRemaining = 3;\r\n\t\thasAttackedOrDefended = false;\r\n\t\tif (isRested) {\r\n\t\t\thealth += Math.floor(Math.random()*(6)+5); // add between 5 and 10 health to character\r\n\t\t\thealth = Math.min(health, 100);\r\n\t\t}\r\n\t}",
"int getMinigameDefenseChancesLeft();",
"public void deadcheck()\n\t{\n\t\tif (this.shield <= 0)\n\t\t{\n\t\t\tthis.drawMissile = false;\n\t\t}\n\t\telse \n\t\t\tthis.drawMissile = true;\n\t}",
"public StarAbilityHeal() {\n\t\t\n\t\tthis.setMaxLevel(4);\n\t\tthis.setEffectable(Effectable.Heal);\n\t\t\n\t}",
"private void suspend()\n {\n Player target = p.getServer().getPlayer(targetID);\n if (target == null)\n {\n kill();\n return;\n }\n\n addAdditionalEffects();\n\n // suspend them in the air\n originalLocation = target.getLocation();\n Location newLoc = target.getEyeLocation();\n Location suspendLoc = new Location(newLoc.getWorld(), newLoc.getX(), newLoc.getY(), newLoc.getZ(), originalLocation.getYaw(), 45);\n target.teleport(suspendLoc);\n\n suspended = true;\n }",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public void setImmunity(boolean bool) {\r\n shieldImmune = bool;\r\n }",
"public void setEnchantmentLevel(int enchantmentLevel) {\n/* 57 */ Validate.isTrue((enchantmentLevel > 0), \"The enchantment level must be greater than 0!\");\n/* */ \n/* 59 */ this.enchantmentLevel = enchantmentLevel;\n/* */ }",
"public void notifyPlayerDefeat(Player p);",
"static void defending() throws GameActionException {\n\n\t\trc.setIndicatorLine(myLocation, myLocation.add(robotDirection), 0, 0, 0);\n\n\t\tif (rc.canBuildRobot(RobotType.SOLDIER, robotDirection)\n\t\t\t\t&& rc.readBroadcast(Channels.COUNT_SOLDIER) < Constants.MAX_COUNT_SOLDIER) {\n\t\t\trc.buildRobot(RobotType.SOLDIER, robotDirection);\n\t\t\tCommunication.countMe(RobotType.SOLDIER);\n\t\t}\n\n\t}",
"public void setFrogLevel(int level){\n\t\tthis.frogLevel = level;\n\t}",
"public void attack() {\n this.attacked = true;\n }"
] | [
"0.6490645",
"0.6123172",
"0.60716236",
"0.6013953",
"0.60017437",
"0.5976512",
"0.5975461",
"0.5963512",
"0.59554446",
"0.5933994",
"0.591738",
"0.5915948",
"0.589732",
"0.589732",
"0.5897065",
"0.5896431",
"0.58830136",
"0.5882672",
"0.583715",
"0.58349454",
"0.5832778",
"0.583268",
"0.58231205",
"0.5816415",
"0.57933396",
"0.57593",
"0.57346696",
"0.57171744",
"0.5715068",
"0.5696703",
"0.5696537",
"0.5695704",
"0.56907785",
"0.56591177",
"0.56468064",
"0.5642362",
"0.56419384",
"0.561714",
"0.5597568",
"0.55969536",
"0.5595326",
"0.55748135",
"0.5565218",
"0.5535686",
"0.55288386",
"0.5514161",
"0.5513253",
"0.5505107",
"0.5483953",
"0.5450627",
"0.5443293",
"0.5421515",
"0.5420874",
"0.54154575",
"0.5415079",
"0.5414674",
"0.5414057",
"0.53939784",
"0.538974",
"0.53888935",
"0.5379937",
"0.5378011",
"0.5377678",
"0.5377454",
"0.5377032",
"0.5374456",
"0.53697866",
"0.53665066",
"0.5365837",
"0.53657967",
"0.5349381",
"0.5339846",
"0.5338674",
"0.5338232",
"0.53365666",
"0.53298557",
"0.5327897",
"0.53228974",
"0.53218776",
"0.53114814",
"0.5305636",
"0.530518",
"0.530231",
"0.5299179",
"0.5299067",
"0.52990544",
"0.52974504",
"0.52939904",
"0.529141",
"0.5283157",
"0.52769125",
"0.52768713",
"0.527425",
"0.5271951",
"0.52717465",
"0.52711046",
"0.5268364",
"0.5258208",
"0.52558017",
"0.525527"
] | 0.6502406 | 0 |
Set a toplevel game status property (e.g. lives, starting resources, etc) | void setStatusProperty(String property, Double value); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void setMyGameStatus(boolean status)\n {\n \tgameStatus=status;\n }",
"private void setGameStatus() {\n this.gameStatus = false;\n }",
"public void startGame() {\n status = Status.COMPLETE;\n }",
"public void statusChanged(GameStatusEvent e) {\n gameRunning = false;\n if(e.isGameOver()) {\n gameWon = false;\n hauptfenster.getSounds().playGameOver(); // abspielen der Sounds\n } else if(e.isGameWon()) {\n gameWon = true;\n hauptfenster.getSounds().playGameWon(); // abspielen der Sounds\n }\n hauptfenster.getSpielfeld().drawNew(); // Spielfeld neu zeichnen\n hauptfenster.getToolbar().updateToolbar(hauptfenster.getDionaRapModel().getShootAmount(), hauptfenster.getDionaRapModel().getScore(), hauptfenster.getProgress());\n hauptfenster.getSpielfeld().gameStatusEnd(hauptfenster.getPlayer(), gameWon); // das Icon bei gewonnen oder verloren setzen\n hauptfenster.getToolbar().setEnabled(); // den \"Neues Spiel\"-Button auf aktiv setzen\n hauptfenster.getMenubar().setGameSettingsEnabled(); // den \"Spieleinstellungen\"-Button auf aktiv setzen\n\n int end_position = HighScoreFile.SCORE_TO_LOW_FOR_HIGHSCORE;\n try{\n end_position = HighScoreFile.getInstance().getScorePosition(hauptfenster.getDionaRapModel().getScore()); // auslesen der Position\n } catch (IOException ex) {\n System.err.println(\"File kann nicht gelesen werden: \" + ex);\n }\n if(end_position != HighScoreFile.SCORE_TO_LOW_FOR_HIGHSCORE && gameWon) {\n addBestlist(); // Bestenliste Dialog zeichnen\n }\n addDialog(gameWon); // den Dialog zeichnen\n }",
"public void setStatus(int status) {\n\t\tswitch (status) {\r\n\t\tcase 1:\r\n\t\t\tthis.status = FRESHMAN;\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.status = SOPHOMORE;\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.status = JUNIOR;\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.status = SENIOR;\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public void status(){\n lblStats.setText(\"\"+level+\"L\");\n }",
"public void status(leapstream.scoreboard.core.model.Status status) {\n Stati stati = status.is();\n foreground(stati);\n background(stati);\n label.text(\"\" + stati);\n }",
"public void setMainPlayerOpening(final boolean status) {\n this.mainPlayer = status;\n }",
"private void statusCheck() {\n\t\tif(status.equals(\"waiting\")) {if(waitingPlayers.size()>1) status = \"ready\";}\n\t\tif(status.equals(\"ready\")) {if(waitingPlayers.size()<2) status = \"waiting\";}\n\t\tif(status.equals(\"start\")) {\n\t\t\tif(players.size()==0) status = \"waiting\";\n\t\t}\n\t\tview.changeStatus(status);\n\t}",
"public void setStatus(EnumVar status) {\n this.status = status;\n }",
"public void setStatus(PlayerControllerStatus status) {\r\n\t\tthis.status = status;\r\n\t}",
"public void setStatus(Player owner, int numberHouses){\n this.owner = owner;\n this.numberHouses = numberHouses;\n }",
"private void modifyMapStatus(int status) {\n\t\tint bC = centerPoint.getX() / UNIT;\n\t\tint bR = centerPoint.getY() / UNIT;\n\n\t\tfor (int i = bR; i < bR + row; i++) {\n\t\t\tfor (int j = bC; j < bC + column; j++) {\n\t\t\t\tif(stage==1){\n\t\t\t\t\tGameView.map[i][j] = status;\n\t\t\t\t}else if(stage ==2){\n\t\t\t\t\tGameViewStage2.map[i][j] = status;\n\t\t\t\t}else {\n\t\t\t\t\tGameViewStage3.map[i][j] = status;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@External\n\tpublic void set_game_status(String _status,Address _scoreAddress) {\n\t\tAddress sender = Context.getCaller();\n\t\tif ( !this.get_admin().contains(sender)) {\n\t\t\tContext.revert(\"Sender not an admin\");\n\t\t}\n\t\tif (!STATUS_TYPE.contains(_status)) {\n\t\t\tContext.revert(\"Invalid status\");\n\t\t}\n\t\tString statusScoreAddress = this.status_data.get(_scoreAddress);\n\t\tif(_status.equals(\"gameRejected\") && !statusScoreAddress.equals(\"gameReady\") ) {\n\t\t\tContext.revert(\"This game cannot be rejected from state \" +statusScoreAddress );\n\t\t}\n\t\tif(_status.equals(\"gameApproved\") && !(\n\t\t\t\tstatusScoreAddress.equals(\"gameReady\") || statusScoreAddress.equals(\"gameSuspended\")\n\t\t\t\t)) {\n\t\t\tContext.revert(\"This game cannot be approved from state \" +statusScoreAddress );\n\t\t}\n\t\tif(_status.equals(\"gameSuspended\") && !statusScoreAddress.equals(\"gameApproved\")) {\n\t\t\tContext.revert(\"Only approved games may be suspended.\");\n\t\t}\n\t\tif(_status.equals(\"gameDeleted\") && !statusScoreAddress.equals(\"gameSuspended\")) {\n\t\t\tContext.revert(\"Only suspended games may be deleted.\");\n\t\t}\n\t\t\n\t\tthis.status_data.set(_scoreAddress, statusScoreAddress); \t\n\t\t\n\t}",
"public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}",
"public void setStatus(boolean newstatus){activestatus = newstatus;}",
"public String getGameStatus() {\n return gameStatus;\n }",
"public void newGame(){\n\t\tsoundMan.BackgroundMusic1();\n\n\t\tstatus.setGameStarting(true);\n\n\t\t// init game variables\n\t\tbullets = new ArrayList<Bullet>();\n\n\t\tstatus.setShipsLeft(8);\n\t\tstatus.setGameOver(false);\n\n\t\tif (!status.getNewLevel()) {\n\t\t\tstatus.setAsteroidsDestroyed(0);\n\t\t}\n\n\t\tstatus.setNewAsteroid(false);\n\n\t\t// init the ship and the asteroid\n\t\tnewShip(gameScreen);\n\t\tnewAsteroid(gameScreen);\n\n\t\t// prepare game screen\n\t\tgameScreen.doNewGame();\n\t\tsoundMan.StopMusic2();\n\t\tsoundMan.StopMusic3();\n\t\tsoundMan.StopMusic4();\n\t\tsoundMan.StopMusic5();\n\t\tsoundMan.StopMusic6();\n\t\t// delay to display \"Get Ready\" message for 1.5 seconds\n\t\tTimer timer = new Timer(1500, new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tstatus.setGameStarting(false);\n\t\t\t\tstatus.setGameStarted(true);\t\n\n\t\t\t\tstatus.setLevel(1);\n\t\t\t\tstatus.setNumLevel(1);\n\t\t\t\tstatus.setScore(0);\n\t\t\t\tstatus.setYouWin(false);\n\t\t\t\tstatus.setBossLife(0);\n\t\t\t}\n\t\t});\n\t\ttimer.setRepeats(false);\n\t\ttimer.start();\n\t}",
"public void setInGame() {\n this.inGame = true;\n }",
"void setStatus(STATUS status);",
"public GameStatus getGameStatus() {\n return gameStatus;\n }",
"public void setStatus(String stat)\n {\n status = stat;\n }",
"public void setStatus(long status) {\r\n this.status = status;\r\n }",
"public void setStatus(boolean newStatus);",
"void setStatus(int status);",
"public void setStatus(int status){\r\n\t\tthis.status=status;\r\n\t}",
"public void notifyGameOn() {\n this.myStatusString.setText(\"Game is On\");\n final LineBorder line = new LineBorder(Color.GREEN, 2, true);\n this.myStatusString.setBorder(line);\n this.myStatusString.setForeground(Color.GREEN);\n this.myStatusString.setFont(new Font(FONT_TIMES, Font.BOLD, NUM_FONT_SIZE)); \n }",
"public void setStatus(int status) {\n STATUS = status;\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Integer status) {\r\n this.status = status;\r\n }",
"public void setStatus(Status newStatus){\n status = newStatus;\n }",
"public void setGameStatus(String gameStatus) {\n this.gameStatus = gameStatus == null ? null : gameStatus.trim();\n }",
"public void setStatus( int pStatus )\r\n {\r\n mStatus = pStatus;\r\n }",
"public void setSidePlayerOpening(final boolean status) {\n this.sidePlayer = status;\n }",
"public GameStatus getStatus() {\n\t\treturn status;\n\t}",
"public void newGamePreference() {\r\n\t\tboard.dispose();\r\n\t\tgameAlive = false;\r\n\t\topponentScoreLable.setVisible(false);\r\n\t\tplayerScoreLable.setVisible(false);\r\n\t\tplayerScore.setVisible(false);\r\n\t\topponentScore.setVisible(false);\r\n\t}",
"public void checkGameStatus() {\n everyTenthGoalCongrats();\n randomPopUpBecauseICan();\n }",
"public void setStatus(Status status) {\r\n\t this.status = status;\r\n\t }",
"private void updateProperties(){\n loadProperties();\n GameModel gameModel = GameModel.getInstance();\n int level = gameModel.getCurrentLevelIndex();\n //int health = gameModel.getPlayer().getLives();\n //int ammo = gameModel.getPlayer().getAmmunition();\n int highestReachedLevel = getHighestLevelFromProperties();\n\n //checks if player has reached a higher level than before\n if (level>=highestReachedLevel){\n properties.setProperty(\"highestReachedLevel\", Integer.toString(level));\n gameModel.setHighestCompletedLevel(level); //gives model the new highest completed level\n } else {\n properties.setProperty(\"highestReachedLevel\", Integer.toString(highestReachedLevel));\n gameModel.setHighestCompletedLevel(highestReachedLevel);\n }\n\n System.out.println(\"Saved Highest reached levl: \"+properties.getProperty(\"highestReachedLevel\"));\n\n properties.setProperty(\"level\", Integer.toString(level));\n //properties.setProperty(\"health\", Integer.toString(health));\n //properties.setProperty(\"ammo\", Integer.toString(ammo));\n }",
"public void setStatus(int newStatus) {\n status = newStatus;\n }",
"public static Gamestatus getGameStatus() {\r\n\t\treturn STATUS;\r\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n\t\tthis.status = status;\n\t}",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void setStatus(Integer status) {\n this.status = status;\n }",
"public void checkVisible(Status status) {\n if (status == Status.GAMEOVER) {\n this.exit.setVisible(true);\n this.name.setVisible(true);\n this.score.setVisible(true);\n this.text.setVisible(true);\n this.textField.setVisible(true);\n } else{\n this.exit.setVisible(false);\n this.name.setVisible(false);\n this.score.setVisible(false);\n this.text.setVisible(false);\n this.textField.setVisible(false);\n }\n }",
"public void setStatus(int status);",
"public void setStatus(int status);",
"private void updateStatus() {\n \tif (!status.getText().equals(\"\")) {\n\t\t\tif (currentProfile != null) {\n\t\t\t\tcurrentProfile.setStatus(status.getText());\n\t\t\t\tcanvas.displayProfile(currentProfile);\n\t\t\t\tcanvas.showMessage(\"Status updated to \" + status.getText());\n\t\t\t} else {\n\t\t\t\tcanvas.showMessage(\"Please select a profile to change status\");\n\t\t\t}\n\t\t}\n\t}",
"private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heating\n\t\t\trest.setState(RestState.HEATING);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.HEATING) && temperatureSensor.getTemperature() >= (rest.getTemperature() - tolerance)) {\n\t\t\t// set status to active\n\t\t\trest.setState(RestState.ACTIVE);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.ACTIVE)\n\t\t\t\t&& (new GregorianCalendar().getTimeInMillis() - rest.getActive().getTimeInMillis()) / 1000 / 60 > rest.getDuration()) {\n\t\t\t// time is up :)\n\t\t\tif (rest.isContinueAutomatically()) {\n\t\t\t\trest.setState(RestState.COMPLETED);\n\t\t\t} else {\n\t\t\t\trest.setState(RestState.WAITING_COMPLETE);\n\t\t\t}\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t}\n\t}",
"public void setStatus(int status)\r\n\t{\r\n\t\tthis.m_status = status;\r\n\t}",
"public synchronized void setState(Status status){\n state=status;\n if(status.equals(Status.RED)){\n updateScreen(\"red\");\n }\n else if(status.equals(Status.YELLOW)){\n updateScreen(\"yellow\");\n }\n }",
"StartGameStatus start(Level level);",
"public void changeStatus()\n {\n if(this.isActivate == false)\n {\n this.isActivate = true;\n switchSound.play();\n //this.dungeon.updateSwitches(true); \n }\n else{\n this.isActivate = false;\n switchSound.play(1.75, 0, 1.5, 0, 1);\n //this.dungeon.updateSwitches(false); \n }\n notifyObservers();\n\n }",
"void setGameOver() {\n myGameOver = true;\n myJump.userPauseThreads();\n }",
"public void setStatus(Boolean s){ status = s;}",
"public int status() \n {\n \tif (stonesCount(7,12) != 0 && stonesCount(0,5) != 0)\n \t\treturn GAME_NOT_OVER;\n \telse if (stonesCount(7,13) < stonesCount(0,6))\n \t\treturn GAME_OVER_WIN;\n \telse if (stonesCount(7,13) == stonesCount(0,6))\n \t\treturn GAME_OVER_TIE;\n \telse\n \t\treturn GAME_OVER_LOSE;\n }",
"public void setStatus(int status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(STATUS$12);\n }\n target.setIntValue(status);\n }\n }",
"private void setGameLevel(GameLevel gameLevel) {\n this.gameLevel = gameLevel;\n\n int width, height;\n\n switch (this.gameLevel) {\n case INTERMEDIATE:\n width = 800;\n height = 680;\n break;\n case EXPERT:\n width = 920;\n height = 960;\n break;\n default:\n width = 500;\n height = 450;\n break;\n }\n\n // adjust the stage size to fit the game grid\n this.primaryStage.setWidth(width);\n this.primaryStage.setHeight(height);\n }",
"public void setGlobalStatus(boolean newStatus) {\n enabled = newStatus;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"public void setStatus(int status) {\n this.status = status;\n }",
"private void setComponentStatus() {}",
"private void initializeStatus()\n\t{\n\t\tif (playerList == null || playerList.isEmpty())\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Cast die to determine starting player until one player has a better result (no tie)\n\t\tList<Player> startingPlayers = playerList;\n\t\twhile (startingPlayers.size() > 1)\n\t\t{\n\t\t\tList<Player> maxResultPlayers = new ArrayList<Player>();\n\t\t\tint maxResult = 0;\n\t\t\t\n\t\t\t// All players with best result must roll die\n\t\t\t// In the first round that consists of all players\n\t\t\tfor(Player player : startingPlayers)\n\t\t\t{\n\t\t\t\tint result = board.rollDice();\n\t\t\t\t\n\t\t\t\t// The player having the better result is remembered\n\t\t\t\tif (result > maxResult)\n\t\t\t\t{\n\t\t\t\t\tmaxResultPlayers.clear();\n\t\t\t\t\tmaxResultPlayers.add(player);\n\t\t\t\t\tmaxResult = result;\n\t\t\t\t}\n\t\t\t\t// If tied, the player is added for another round of die rolling\n\t\t\t\telse if (result == maxResult)\n\t\t\t\t{\n\t\t\t\t\tmaxResultPlayers.add(player);\n\t\t\t\t}\n\t\t\t}\n\t\t\tstartingPlayers = maxResultPlayers;\n\t\t}\n\t\t\n\t\t// Set current game status\n\t\tPlayer starting = startingPlayers.get(0);\n\t\tincreaseTurnCount();\n\t\tthis.currentPlayerID = starting.getId();\n\t}",
"private void gameOver(final int status) {\n // Play R.raw.robot_bleep\n soundPool.play(this.soundIds[2], 1, 1, 3, 0, (float) 1.0);\n this.gameOverDisplayed = true;\n ((PongGame) context).gameState = PongGame.GAME_OVER;\n this.touchEnabled = false;\n\n ((PongGame) context).runOnUiThread(new Runnable() {\n @Override\n public void run() {\n DialogInterface.OnDismissListener listener = new DialogInterface.OnDismissListener() {\n @Override\n public void onDismiss(@NonNull DialogInterface dialog) {\n dialog.dismiss();\n }\n };\n GeneralFunctions.displayDialog(context, status, listener);\n }\n });\n }",
"public void setStatus(String status)\n\t{\n\t\tPresence statusPacket = new Presence(Presence.Type.available, status, 0, Presence.Mode.available);\n\t\tcurrentStatus = status;\n\t\tserverConnection.sendPacket(statusPacket);\n\t\tfireStatusChangeEvent(Login.username,statusPacket);\n\t}",
"public void setStatus(Status status) {\r\n this.status = status;\r\n }",
"private void updateGUIStatus() {\r\n\r\n }",
"public static void setLevel(int current)\r\n\t{\r\n\t\tGame.level = current;\r\n\t}",
"public void updateState() {\n\t\tfloat uptime = .05f;\t\t\t// Amount of Time the up animation is performed\n\t\tfloat downtime = .35f;\t\t\t// Amount of Time the down animation is performed\n\t\tColor colorUp = Color.YELLOW;\t// Color for when a value is increased\n\t\tColor colorDown = Color.RED;\t// Color for when a value is decreased\n\t\tColor color2 = Color.WHITE;\t\t// Color to return to (Default Color. Its White btw)\n\t\t\n\t\t// Check to see if the Time has changed and we are not initializing the label\n\t\tif(!time.getText().toString().equals(Integer.toString(screen.getState().getHour()) + \":00\") && !level.getText().toString().equals(\"\")) {\n\t\t\t// Set the time label and add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t\ttime.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(time.getText().toString().equals(\"\")) {\n\t\t\t// First time setting the label, dont add the animation\n\t\t\ttime.setText(Integer.toString(screen.getState().getHour()) + \":00\");\n\t\t}\n\t\t\n\t\t// Check to see if the Level has changed and we are not initializing the label\n\t\tif(!level.getText().toString().equals(screen.getState().getTitle()) && !level.getText().toString().equals(\"\")) {\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t\tlevel.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(level.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the level label\n\t\t\tlevel.setText(\"Level: \" + screen.getState().getTitle());\n\t\t}\n\t\t\n\t\t// Check to see if the XP has changed and we are not initializing the label\n\t\tif(!xp.getText().toString().equals(\"XP: \" + Integer.toString(screen.getState().getXp())) && !xp.getText().toString().equals(\"\")) {\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t\txp.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(xp.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the XP label\n\t\t\txp.setText(\"XP: \" + Integer.toString(screen.getState().getXp()));\n\t\t}\n\t\t\n\t\t// Check to see if the Money has changed and we are not initializing the label\n\t\tif(!money.getText().toString().equals(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\") && !money.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Check to see if the player's money went up. This is a mess but it works\n\t\t\t// Makes the change animation Yellow or Green depending on the change in money\n\t\t\tif(Double.parseDouble(money.getText().substring(1).toString()) <= screen.getState().getMoney())\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tmoney.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the label to the new money\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t\t\n\t\t} else if(money.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the Money Label\n\t\t\tmoney.setText(\"$\" + Double.toString(screen.getState().getMoney()) + \"0\");\n\t\t}\n\t\t\n\t\t// Check to see if the Energy has changed and we are not initializing the label\n\t\tif(!energy.getText().toString().equals(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\") && !energy.getText().toString().equals(\"\")) {\n\t\t\t\n\t\t\t// Changes the animation to Yellow or Red depending on the change in the energy value\n\t\t\tif(Integer.parseInt(energy.getText().substring(3).split(\"/\")[0].toString()) < screen.getState().getEnergy())\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\telse\n\t\t\t\tenergy.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorDown)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t\t\n\t\t\t// Set the energy label\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t} else if(energy.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the energy label if it isnt set\n\t\t\tenergy.setText(\"E: \" + Integer.toString(screen.getState().getEnergy()) + \"/100\");\n\t\t}\n\t\t\n\t\t// Get the current date.\n\t\tint[] curDate = screen.getState().getDate();\n\t\t\t\n\t\t// Check to see if the Date has changed and we are not initializing the label\n\t\tif(!date.getText().toString().equals(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]) && !date.getText().toString().equals(\"\")) {\n\t\t\t// Set the date label and add the change animation\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t\tdate.addAction(sequence(parallel(moveBy(0, 4f, uptime), color(colorUp)), parallel(moveBy(0, -4f, .5f), color(color2, downtime))));\n\t\t} else if(date.getText().toString().equals(\"\")) {\n\t\t\t// Initialize the date label\n\t\t\tdate.setText(\"\" + curDate[2] + \"/\" + curDate[1] + \"/\" + curDate[0]);\n\t\t}\n\t\t\n\t\t// Set the log text\n\t\tlogLabel.setText(screen.getState().getLog());\n\t\t\n\t\t// Update the stats\n\t\tState state = screen.getState();\n\t\tstatsLabel.setText(\"XP: \" + state.getXp() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Level: \" + state.getLevel() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Title: \" + state.getTitle() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Popularity: \" + state.getPopularity() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Year \" + state.getDate()[0] + \" Month \" + state.getDate()[1] + \" Day \" + state.getDate()[2] + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Hour: \" + state.getHour() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Energy: \" + state.getEnergy() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Current Funds: \" + state.getMoney() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Earned: \" + state.getEarned_money() + \"\\n\" + \"\\n\" +\n\t\t \t\t\"Money Spent: \" + state.getSpent_money());\n\t}",
"public synchronized void setStatus(Status stat) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n if (stat == null) {\n throw new IllegalArgumentException(\n \"TestResult status cannot be set to null!\");\n }\n\n // close out message section\n sections[0].setStatus(null);\n\n execStatus = stat;\n\n if (execStatus == inProgress) {\n execStatus = interrupted;\n }\n\n // verify integrity of status in all sections\n for (Section section : sections) {\n if (section.isMutable()) {\n section.setStatus(incomplete);\n }\n }\n\n props = PropertyArray.put(props, SECTIONS,\n StringArray.join(getSectionTitles()));\n props = PropertyArray.put(props, EXEC_STATUS,\n execStatus.toString());\n\n // end time now required\n // mainly for writing in the TRC for the Last Run Filter\n if (PropertyArray.get(props, END) == null) {\n props = PropertyArray.put(props, END, formatDate(new Date()));\n }\n\n // this object is now immutable\n notifyCompleted();\n }",
"public void updateGame(GameStatusMessage gameStatus) {\n logger.info(\"Game update: \" + gameStatus.toString());\n this.gameStatus = gameStatus;\n gameUpdated = true;\n selectedTile = null;\n moved = false;\n }",
"public void setStatus(boolean status) {\n\tthis.status = status;\n }",
"public void progressTheGame() {\r\n gameProgress = GameState.values()[this.gameProgress.ordinal()+1];\r\n }",
"public void xsetStatus(org.apache.xmlbeans.XmlInt status)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlInt target = null;\n target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(STATUS$12, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(STATUS$12);\n }\n target.set(status);\n }\n }",
"public void setGameStarted(boolean gameStarted) {\n this.gameStarted = gameStarted; \n }",
"public void setStatus(Status status)\n {\n this.status = status;\n }",
"public void setStatus(CanaryStatus status) {\n this.status = status;\n }",
"public void setStatus(STATUS status) {\n this.status = status;\n }",
"public void showStatus(){\n\t\tjlMoves.setText(\"\"+moves);\n\t\tjlCorrectMoves.setText(\"\"+correctMoves);\n\t\tjlWrongMoves.setText(\"\"+wrongMoves);\n\t\tjlOpenMoves.setText(\"\"+openMoves);\n\t\tjlNumberGames.setText(\"\"+numberGames);\n\t}",
"public void setLevel(Level level) { this.currentLevel = level; }",
"public void updateGameProgression() {\n \tif (players.size() == 0) {\n \t\tSystem.out.println(\"Game over\");\n \t\tgameOver.set(true);\n \t}\n \tif (goal.checkGoalCompleted().get()) {\n \t\tdungeonCompleted.set(true);\n \t} else {\n \t\tdungeonCompleted.set(false);\n \t}\n }",
"public void setStatus( short newStatus )\r\n {\r\n setStatus( newStatus, -1, null );\r\n }",
"public MonsterStatus()\n {\n mMonster = null;\n mStatus = \"\";\n mInitial = -1;\n mIncrease = -1;\n mMax = -1;\n mDamage = -1;\n mDuration = -1;\n }"
] | [
"0.7324744",
"0.73145896",
"0.66495115",
"0.64880496",
"0.63455665",
"0.6289365",
"0.6239829",
"0.6181859",
"0.6138867",
"0.613361",
"0.6074028",
"0.6042933",
"0.603795",
"0.60208595",
"0.60090554",
"0.5954825",
"0.59434646",
"0.5940571",
"0.5933449",
"0.59257746",
"0.5919709",
"0.5918533",
"0.5913774",
"0.59011984",
"0.5888224",
"0.58877295",
"0.58784306",
"0.58753645",
"0.5872657",
"0.5872657",
"0.58618927",
"0.5847922",
"0.5836692",
"0.5829776",
"0.58266956",
"0.58257335",
"0.5816988",
"0.58092606",
"0.5804352",
"0.5797424",
"0.57899433",
"0.57853353",
"0.57853353",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.57847726",
"0.578224",
"0.57770777",
"0.57770777",
"0.57709956",
"0.5759018",
"0.5755113",
"0.57527",
"0.5745262",
"0.5737678",
"0.5719649",
"0.5715049",
"0.57147443",
"0.5714135",
"0.5709969",
"0.5704684",
"0.56954694",
"0.56954694",
"0.56952167",
"0.569168",
"0.5687172",
"0.5685995",
"0.5685899",
"0.56852776",
"0.56848663",
"0.5683615",
"0.56820446",
"0.5671587",
"0.5667211",
"0.5662344",
"0.56589586",
"0.56583756",
"0.56553435",
"0.56519854",
"0.56413245",
"0.5638657",
"0.563318",
"0.5627413",
"0.5626379",
"0.5623473"
] | 0.0 | -1 |
Set the resource endowments for the current level | void setResourceEndowments(Map<String, Double> resourceEndowments); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setResourceEndowment(String resourceName, double newResourceEndowment);",
"public void setEndLevel(int arg[]) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.ENDLEVEL.toString(), arg);\n\t}",
"public void setEndLevel(int arg) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.ENDLEVEL.toString(), arg);\n\t}",
"protected abstract void applyLevel(Resources res);",
"public void setEndLevel(int arg, String compcode) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.ENDLEVEL.toString(), arg, compcode);\n\t}",
"protected void setLocalizationEnd(Collection<eu.hyvar.mspl.manifest.resource.hymanifest.IHymanifestCommand<eu.hyvar.mspl.manifest.resource.hymanifest.IHymanifestTextResource>> postParseCommands , final EObject object, final int endChar, final int endLine) {\r\n \t\tif (disableLocationMap) {\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tfinal eu.hyvar.mspl.manifest.resource.hymanifest.IHymanifestLocationMap locationMap = this.locationMap;\r\n \t\tif (locationMap == null) {\r\n \t\t\t// the locationMap can be null if the parser is used for code completion\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tpostParseCommands.add(new eu.hyvar.mspl.manifest.resource.hymanifest.IHymanifestCommand<eu.hyvar.mspl.manifest.resource.hymanifest.IHymanifestTextResource>() {\r\n \t\t\tpublic boolean execute(eu.hyvar.mspl.manifest.resource.hymanifest.IHymanifestTextResource resource) {\r\n \t\t\t\tlocationMap.setCharEnd(object, endChar);\r\n \t\t\t\tlocationMap.setLine(object, endLine);\r\n \t\t\t\treturn true;\r\n \t\t\t}\r\n \t\t});\r\n \t}",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.RESOURCES,\n adderName = \"resources\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true)\n public void setResources(final Set<BwString> val) {\n resources = val;\n }",
"public void setEndLevel(int arg, String compcode, String left_paren, String right_paren, String and_or) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.ENDLEVEL.toString(), arg, compcode, left_paren, right_paren, and_or);\n\t}",
"public void setEndLevelCollect()\n\t{\n\t\tsetCollect(_Prefix + HardZone.ENDLEVEL.toString(), \"\");\n\t}",
"public void giveResourcesToPlayer(Resource resource){\n resources.addResource(resource);\n }",
"public void setEndLevelGroup(int num)\n\t{\n\t\tsetGroup(_Prefix + HardZone.ENDLEVEL.toString(), num);\n\t}",
"@Modified(author=\"Phil Brown\", summary=\"Added Method\")\n public void setupEndValues() {\n }",
"protected void resourceSet(String resource)\r\n {\r\n // nothing to do\r\n }",
"public void setAsEndingPoint(int endNode) {\n\t\tnodeStatus = Status.end;\n\t\tthis.endNode=endNode;\n\t\tender=true;\n\t}",
"private void setTheResourceRecursive(Node startNode, String resource,\r\n String value)\r\n throws IllegalArgumentException\r\n {\r\n int idx;\r\n\r\n Node newNode;\r\n String name;\r\n HashMap hashmap;\r\n\r\n int tightIndex = resource.indexOf(TIGHT_BINDING);\r\n\r\n // 1st character may be '*' so skip over it\r\n int looseIndex = resource.indexOf(LOOSE_BINDING, LOOSE_BINDING_LEN);\r\n\r\n // if no delimiter was found, set a sentinel value that is tested for\r\n // later\r\n if (tightIndex == -1)\r\n tightIndex = Integer.MAX_VALUE;\r\n if (looseIndex == -1)\r\n looseIndex = Integer.MAX_VALUE;\r\n\r\n\r\n // find the index of the first delimiter ('.' or '*')\r\n int pos = (tightIndex < looseIndex)?tightIndex:looseIndex;\r\n\r\n // is this the last name in the resource string?\r\n boolean atLastName = (pos == Integer.MAX_VALUE);\r\n\r\n // if the first character is '*' then we have a loose binding\r\n boolean looseBinding = resource.startsWith(LOOSE_BINDING);\r\n\r\n // determine the name of this node, ensure we don't include the delimiter\r\n // in the name.\r\n // create the node for this name\r\n if (looseBinding)\r\n {\r\n name = (atLastName) ? resource.substring(LOOSE_BINDING_LEN) :\r\n resource.substring(LOOSE_BINDING_LEN, pos);\r\n }\r\n else\r\n {\r\n name = (atLastName) ? resource : resource.substring(0, pos);\r\n }\r\n\r\n String binding = looseBinding ? LOOSE_BINDING : TIGHT_BINDING;\r\n newNode = startNode.createChild(name, binding);\r\n\r\n // if this is the last component of the resource then store the value\r\n if (atLastName)\r\n {\r\n newNode.setData(value);\r\n }\r\n else\r\n {\r\n // if loosely bound, ensure that '*' is the first character of the tail\r\n String tail;\r\n if (resource.regionMatches(pos, LOOSE_BINDING, 0, LOOSE_BINDING_LEN))\r\n tail = resource.substring(pos);\r\n else\r\n tail = resource.substring(pos+LOOSE_BINDING_LEN);\r\n\r\n // recurse to next level\r\n setTheResourceRecursive(newNode, tail, value);\r\n }\r\n }",
"@Override\r\n\tpublic void setGiveResource(ResourceType resource) {\n\t\t\r\n\t}",
"public DataResourceBuilder _resourcePart_(List<Resource> _resourcePart_) {\n this.dataResourceImpl.setResourcePart(_resourcePart_);\n return this;\n }",
"public synchronized void setResource(String key, List values)\r\n throws IllegalArgumentException\r\n {\r\n // set the resource under the root node\r\n setTheResource(root, key, values);\r\n\r\n // inform listeners\r\n resourceSet(key);\r\n }",
"public void upateResources() {\r\n\t\tResourceBase resourcesBase = parent.getResources();\r\n\t\tresourcesBase.getAll().forEach((key, value) -> {\r\n\t\t\tif(resources.containsKey(key))\t//ak už je vypísaná\r\n\t\t\t\tresources.get(key).updateValue();\t//aktualizuje ju to\r\n\t\t\telse{\t//ináč\r\n\t\t\t\tint need = resourcesBase.getRequired(key);\r\n\t\t\t\tint have = resourcesBase.getOwned(key);\r\n\t\t\t\tOtherResourceViewer newViewer = new OtherResourceViewer(key,need, have, parent);\t//vytvorí nový viewer \r\n\t\t\t\tresources.put(key, newViewer);\t//pridá ho do zoznamu viewerov\r\n\t\t\t\tadd(newViewer);\t//aj do panelu\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void setEndLine(int endLine) {\r\n this.endLine = endLine;\r\n }",
"void setEndRange( String endRange );",
"void enlistResource(ExoResource xares) throws RollbackException, SystemException;",
"private void setResName(int type, String resourceId, BufferedWriter bufferedwriter, StringBuilder parentName)\n/* */ {\n/* */ try\n/* */ {\n/* 1092 */ String resourceDispName = getResourceName(resourceId);\n/* 1093 */ if (type == 0)\n/* */ {\n/* */ \n/* 1096 */ this.flag = false;\n/* 1097 */ bufferedwriter.append(resourceDispName).append(\",\");\n/* 1098 */ bufferedwriter.append(\",\");\n/* 1099 */ bufferedwriter.append(\",\");\n/* */ \n/* 1101 */ if (!parentName.toString().equals(resourceDispName)) {\n/* 1102 */ parentName.append(resourceDispName);\n/* */ }\n/* */ }\n/* 1105 */ else if (type == 1)\n/* */ {\n/* 1107 */ this.flag = true;\n/* 1108 */ this.subgroup = resourceDispName;\n/* 1109 */ bufferedwriter.append(parentName.toString()).append(\",\");\n/* */ \n/* */ \n/* 1112 */ bufferedwriter.append(resourceDispName);\n/* 1113 */ bufferedwriter.append(\",\");\n/* 1114 */ bufferedwriter.append(\",\");\n/* */ }\n/* */ else\n/* */ {\n/* 1118 */ bufferedwriter.append(parentName.toString()).append(\",\");\n/* 1119 */ if (this.flag) {\n/* 1120 */ bufferedwriter.append(this.subgroup).append(\",\");\n/* */ }\n/* 1122 */ if (!this.flag) {\n/* 1123 */ bufferedwriter.append(\",\");\n/* */ }\n/* 1125 */ bufferedwriter.append(resourceDispName).append(\",\");\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 1130 */ e.printStackTrace();\n/* */ }\n/* */ }",
"@Override\r\n\tpublic void updateResourceInformation() {\n\t}",
"@Override\n\tpublic void updateResourceInformation() {\n\t}",
"@Override\n public void setEnd(double x1, double y1) {\n super.setEnd(x1,y1);\n path.add(new Point2D(x1,y1));\n }",
"public void expendLimitedResource(String resourceName){\n }",
"@Override\r\n\tpublic void writeRents() {\n\t\t\r\n\t}",
"void setEndSegment(int endSegment);",
"public DataResourceBuilder _resourcePart_(Resource _resourcePart_) {\n this.dataResourceImpl.getResourcePart().add(_resourcePart_);\n return this;\n }",
"abstract public void setRingResourcesDir(String path);",
"public void setEndLine(final int endLine) {\n this.endLine = endLine;\n }",
"public void setResources(final Collection<? extends DataIdentification> newValues) {\n resources = writeCollection(newValues, resources, DataIdentification.class);\n }",
"public void addResourceSpace(Resource r,int srt){\n t.put(r.getName(),new SupplyNode(r,srt));\n t.get(r.getName()).setCurrent(srt);\n }",
"protected void end() {\n \tintake.setLeftPower(0.0);\n\t\tintake.setRightPower(0.0);\n }",
"public void setResources(List<ResourceContainer> marketOut){\n received.removeAll();\n received.add(Box.createVerticalGlue());\n for (ResourceContainer rc:marketOut){\n ButtonImage bi=new ButtonImage(\"/images/resourceImages/\"+rc.getResourceType().deColored().toLowerCase()+\".png\");\n bi.setBorderPainted(false);\n bi.addActionListener(e ->{\n selectedResource=rc.getResourceType();\n resourceActionWindow(bi);\n });\n\n received.add(bi);\n received.add(Box.createVerticalGlue());\n }\n received.revalidate();\n received.repaint();\n\n }",
"private void setTheResource(Node startNode, String resource, Object value)\r\n throws IllegalArgumentException\r\n {\r\n if (!isValidResource(resource))\r\n {\r\n throw new IllegalArgumentException(\"ResourceManager.setResource(): \" +\r\n \"resource '\" + resource + \r\n \"' is not well formed\");\r\n }\r\n\r\n // ensure that the resource value is a string\r\n String stringValue;\r\n if (value instanceof List)\r\n stringValue = ManagerUtils.listToDelimitedString((List) value);\r\n else\r\n stringValue = (String) value;\r\n\r\n setTheResourceRecursive(startNode,\r\n ensureWellFormed(resource),\r\n stringValue);\r\n }",
"public void setResourcePath(String resourcePath) {\n //To change body of implemented methods use File | Settings | File Templates.\n }",
"public static void setEnd(Node n) {\n if (n == null) {\n } else {\n endLabel.setBackground(Color.white);\n n.setBackground(Color.red);\n endLabel = n;\n //endSet = true;\n }\n }",
"public void setResource(String res) {\n if (definerSet) {\n tooManyDefinitions();\n }\n definerSet = true;\n this.resource = res;\n }",
"public void setEndRoom(Room endRoom) {\n this.endRoom = endRoom;\n }",
"public void addResource(Resource r,int max){\n t.put(r.getName(),new SupplyNode(r,max));\n }",
"private void addToDirtyResources(EObject modelElement) {\n\t\tResource resource = modelElement.eResource();\n\n\t\tif (resource != null) {\n\t\t\tdirtyResourceSet.addDirtyResource(resource);\n\t\t}\n\t}",
"public void merge( Resource r )\n\t{\n\t\tr.transter(this, r.amount);\n\t\tr.recycle();\n\t}",
"protected void end() {\n \tRobot.m_elevator.disable();\n \tRobot.m_elevator.free();\n }",
"void setResourceItem(BaseContentItem resourceItem);",
"private void setEnemy(){\n depths.setEnemy(scorpion);\n throne.setEnemy(rusch);\n ossuary.setEnemy(skeleton);\n graveyard.setEnemy(zombie);\n ramparts.setEnemy(ghoul);\n bridge.setEnemy(concierge);\n deathRoom1.setEnemy(ghost);\n deathRoom2.setEnemy(cthulu);\n deathRoom3.setEnemy(wookie); \n }",
"@Override\n public PutResourceLogLevelResult putResourceLogLevel(PutResourceLogLevelRequest request) {\n request = beforeClientExecution(request);\n return executePutResourceLogLevel(request);\n }",
"public void setEndLevelCollect(String compcode)\n\t{\n\t\tsetCollect(_Prefix + HardZone.ENDLEVEL.toString(), compcode);\n\t}",
"public void updateResources(List<Resource> resources) {\n\t\t\n\t}",
"public void setResource(ResourceVO newResource) {\n\tresource = newResource;\n}",
"public void setEnd(int end) {\n\t\tthis.end = end;\n\t}",
"public void setRightRange(int min, int max) {\n rightBeginning = min;\n rightEnd = max;\n }",
"public void setEnd(int end) {\r\n this.end = end;\r\n }",
"public void setEnd(){\n\t\tthis.isEnd=true;\n\t}",
"@Override\n\tpublic void dispose() {\n\t\tlevel.dispose();\n\t\tlr.dispose();\n\t}",
"public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified = true;\n }",
"private void updateResourceText() {\n String resourceTextString=\"Available resources: \\n\";\n boolean none=true;\n for (Resource resource :resources.values()) {\n if (resource.getStock()>0) {\n resourceTextString+=resource.getName()+\": \"+resource.getStock()+\"\\n\";\n none=false;\n }\n }\n if (none) {resourceTextString=\"\";}\n resourceText.setText(resourceTextString);\n }",
"@Override\r\n\tpublic void update(Resources resources) {\n\t\t\r\n\t}",
"public void setEndNode(String endNode)\r\n\t{\r\n\t\tthis.endNode = endNode;\r\n\t\tthrow new UnsupportedOperationException(\"Še ne dela, poišči lokacijo od vozlišča z imaneom\" + endNode);\r\n\t}",
"@Override\n public void addResourceHandlers(ResourceHandlerRegistry registry) {\n super.addResourceHandlers(registry);\n }",
"private void endProperty()\n {\n\n }",
"public void IntersectEnd() {\n\t\tif (getIntersectingObjects(End.class).get(0).isEnd()) {\n\t\t\tthis.end--;\n\t\t\taddPoints(-100);\n\t\t}\n\t\tpoints+=100;\n\t\tgetIntersectingObjects(End.class).get(0).setEnd();\n\t\tfrogReposition();\n\t\tthis.end++;\n\t}",
"@Override\n protected void customizeResourceList(ResourceList resourceList) {\n resourceList.add(ResourcePair\n .constructSystemResourcePair(colorBarRscData));\n // Get the d2d legend resource\n resourceList.add(ResourcePair\n .constructSystemResourcePair(legendRscData));\n // Add the d2d select pane resource\n resourceList.add(ResourcePair\n .constructSystemResourcePair(selectedRscData));\n // Add the d2d sample resource\n resourceList.add(ResourcePair\n .constructSystemResourcePair(samplingRscData));\n }",
"public void addResources(Collection resources) {\n/* 81 */ if (resources != null) {\n/* 82 */ prepareResourceSet();\n/* 83 */ this.resources.addAll(resources);\n/* */ } \n/* */ }",
"public void addResource(PSResource res) {\n/* 72 */ prepareResourceSet();\n/* 73 */ this.resources.add(res);\n/* */ }",
"@Override\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\n\t\t\n\t}",
"public void setEndLevelOrder(int num, boolean bool)\n\t{\n\t\tsetOrder(_Prefix + HardZone.ENDLEVEL.toString(), num, bool);\n\t}",
"@Override\n public void endOperations() {\n product.add(String.format(\"Motorcycle model is :%s\",this.brandName));\n }",
"public void setLevel(int newlevel)\n {\n level = newlevel; \n }",
"@Override\n\tprotected void end() {\n\n\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"@Override\n\tprotected void end() {\n\n\t}",
"public void setOutline(RMXString.Outline anOutline) { }",
"void addElement(String newSubResourceName, ResourceBase newSubResource);",
"@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}",
"void setResourceID(String resourceID);",
"public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }",
"@Override\r\n\tpublic void addResourceHandlers(ResourceHandlerRegistry registry) {\n\t\tsuper.addResourceHandlers(registry);\r\n\t}",
"@Override\r\n\tpublic void add(Resources resources) {\n\t\t\r\n\t}",
"public void setResource(int newResource) throws java.rmi.RemoteException;",
"void setCloseBodyRangeEnd(int end) {\n this.fCloseBodyRange[1] = end;\n }",
"public void setRWResource(RWResource theResource) {\n resource = theResource;\n }",
"public void addResource(Resource res) {\n \tresourceDisplay.getChildren().add(new ResourceContainer(res));\r\n }",
"public void setEndLocation(Location endLoc) {\n gameLocations.put(GameLocation.END, endLoc);\n }",
"public void setLevel(int aLevel, Context context){\n this.level = aLevel;\n writeFile(context);\n }",
"public void setEndBank(int arg[]) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.ENDBANK.toString(), arg);\n\t}",
"@Override\n protected void applyEntityAttributes() {\n super.applyEntityAttributes();\n this.getEntityAttribute(SharedMonsterAttributes.maxHealth).setBaseValue(100.0);\n }",
"public void setResources(List<String> resources) {\n this.resources = resources;\n }",
"public void levelUp2()\r\n {\r\n this.health = 1200;\r\n Story.levelUp2Text();\r\n }",
"public void setOnLines(final Collection<? extends OnlineResource> newValues) {\n onLines = writeCollection(newValues, onLines, OnlineResource.class);\n }",
"public void setEndDate(Date end)\r\n {\r\n this.endDate = end;\r\n }",
"@Override\n\tprotected void end() {\n\t\tmyLowerArm.set(0.0);\n\t}",
"@Override\n public void addResourceHandlers(ResourceHandlerRegistry registry) {\n super.addResourceHandlers(registry);\n }",
"private void postProcessResourceConfiguration(DMRResource resource) {\n if (resource.getParent() == null) {\n final String IP_ADDRESSES_PROPERTY_NAME = \"Bound Address\";\n DMRResourceConfigurationPropertyInstance adrProp = null;\n for (DMRResourceConfigurationPropertyInstance p : resource.getResourceConfigurationProperties()) {\n if (IP_ADDRESSES_PROPERTY_NAME.equals(p.getName().getNameString())) {\n adrProp = p;\n break;\n }\n }\n if (adrProp != null) {\n String displayAddresses = null;\n try {\n // Replaces 0.0.0.0 server address with the list of addresses received from\n // InetAddress.getByName(String) where the argument of getByName(String) is the host the agent\n // uses to query the AS'es DMR.\n InetAddress dmrAddr = InetAddress.getByName(adrProp.getValue());\n if (dmrAddr.isAnyLocalAddress()) {\n String host = null;\n ManagedServer server = inventoryManager.getManagedServer();\n if (server instanceof RemoteDMRManagedServer) {\n RemoteDMRManagedServer remoteServer = (RemoteDMRManagedServer) server;\n host = remoteServer.getHost();\n } else if (server instanceof LocalDMRManagedServer) {\n host = InetAddress.getLocalHost().getCanonicalHostName();\n } else {\n throw new IllegalStateException(\"Unexpected type of managed server [\" + server.getClass()\n + \"]. Please report this bug.\");\n }\n InetAddress[] resolvedAddresses = InetAddress.getAllByName(host);\n displayAddresses = Stream.of(resolvedAddresses).map(a -> a.getHostAddress())\n .collect(Collectors.joining(\", \"));\n adrProp.setValue(displayAddresses);\n }\n } catch (UnknownHostException e) {\n log.warnf(e, \"Could not parse IP address [%s]\", adrProp.getValue());\n }\n }\n }\n\n return;\n }",
"public abstract void setNextBlockResource(int resourceNum);",
"private void consumeResources(){\n\n Main.gang.setFood(Main.gang.getFood() - (Main.gang.getGangMembers().size() * Main.gang.getFoodIntake()));\n Main.gang.setWater(Main.gang.getWater() - (Main.gang.getGangMembers().size() * Main.gang.getFoodIntake()));\n }",
"public void setNext(Level next) {\n\t\tthis.next = next;\n\t}",
"public void setResources(List<ITranslationResource> resources){\n\t\tthis.resources = resources;\n\t}",
"@Test\n public void setterTest() {\n stack.setResource(10, ResourceType.SHIELDS);\n stack.setResource(20, ResourceType.SERVANTS);\n stack.setResource(30, ResourceType.COINS);\n stack.setResource(40, ResourceType.STONES);\n\n assertEquals(10, stack.getResource(ResourceType.SHIELDS));\n assertEquals(20, stack.getResource(ResourceType.SERVANTS));\n assertEquals(30, stack.getResource(ResourceType.COINS));\n assertEquals(40, stack.getResource(ResourceType.STONES));\n }"
] | [
"0.6762921",
"0.57961524",
"0.56952435",
"0.5396676",
"0.53487796",
"0.5306046",
"0.5259364",
"0.5242882",
"0.5158345",
"0.49875838",
"0.49470645",
"0.49411282",
"0.49400195",
"0.4915439",
"0.48278132",
"0.48211327",
"0.48124576",
"0.47855935",
"0.47524884",
"0.47475776",
"0.47373754",
"0.47256118",
"0.47144523",
"0.47141817",
"0.4703516",
"0.46926093",
"0.46863306",
"0.46807936",
"0.46613234",
"0.46431825",
"0.4627033",
"0.4620804",
"0.45989957",
"0.45856047",
"0.45767835",
"0.4575963",
"0.45749107",
"0.4562",
"0.45619094",
"0.4537784",
"0.4526111",
"0.4521964",
"0.45209572",
"0.45031637",
"0.44826585",
"0.44817677",
"0.4469922",
"0.4462556",
"0.44605932",
"0.44601992",
"0.44571015",
"0.4456987",
"0.44497588",
"0.44483256",
"0.44446406",
"0.44402063",
"0.44394562",
"0.44166616",
"0.44157755",
"0.44104403",
"0.44055212",
"0.43894178",
"0.43736815",
"0.4369171",
"0.43649286",
"0.43608406",
"0.4358268",
"0.43574792",
"0.43503088",
"0.43389457",
"0.43366855",
"0.43366855",
"0.43366855",
"0.43309596",
"0.4329804",
"0.43276963",
"0.4326351",
"0.43246195",
"0.43228117",
"0.4321652",
"0.43200573",
"0.43175578",
"0.43051627",
"0.43046957",
"0.43029574",
"0.42988333",
"0.4298363",
"0.42979506",
"0.4295279",
"0.4291102",
"0.42898098",
"0.42854404",
"0.42821836",
"0.4278647",
"0.42762724",
"0.42702404",
"0.42693225",
"0.42669803",
"0.42595792",
"0.4259482"
] | 0.654056 | 1 |
Set the resource endowment of a specific resource name | void setResourceEndowment(String resourceName, double newResourceEndowment); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void resourceSet(String resource)\r\n {\r\n // nothing to do\r\n }",
"void setResourceID(String resourceID);",
"public void setResource(String res) {\n if (definerSet) {\n tooManyDefinitions();\n }\n definerSet = true;\n this.resource = res;\n }",
"private void setTheResource(Node startNode, String resource, Object value)\r\n throws IllegalArgumentException\r\n {\r\n if (!isValidResource(resource))\r\n {\r\n throw new IllegalArgumentException(\"ResourceManager.setResource(): \" +\r\n \"resource '\" + resource + \r\n \"' is not well formed\");\r\n }\r\n\r\n // ensure that the resource value is a string\r\n String stringValue;\r\n if (value instanceof List)\r\n stringValue = ManagerUtils.listToDelimitedString((List) value);\r\n else\r\n stringValue = (String) value;\r\n\r\n setTheResourceRecursive(startNode,\r\n ensureWellFormed(resource),\r\n stringValue);\r\n }",
"private void setTheResourceRecursive(Node startNode, String resource,\r\n String value)\r\n throws IllegalArgumentException\r\n {\r\n int idx;\r\n\r\n Node newNode;\r\n String name;\r\n HashMap hashmap;\r\n\r\n int tightIndex = resource.indexOf(TIGHT_BINDING);\r\n\r\n // 1st character may be '*' so skip over it\r\n int looseIndex = resource.indexOf(LOOSE_BINDING, LOOSE_BINDING_LEN);\r\n\r\n // if no delimiter was found, set a sentinel value that is tested for\r\n // later\r\n if (tightIndex == -1)\r\n tightIndex = Integer.MAX_VALUE;\r\n if (looseIndex == -1)\r\n looseIndex = Integer.MAX_VALUE;\r\n\r\n\r\n // find the index of the first delimiter ('.' or '*')\r\n int pos = (tightIndex < looseIndex)?tightIndex:looseIndex;\r\n\r\n // is this the last name in the resource string?\r\n boolean atLastName = (pos == Integer.MAX_VALUE);\r\n\r\n // if the first character is '*' then we have a loose binding\r\n boolean looseBinding = resource.startsWith(LOOSE_BINDING);\r\n\r\n // determine the name of this node, ensure we don't include the delimiter\r\n // in the name.\r\n // create the node for this name\r\n if (looseBinding)\r\n {\r\n name = (atLastName) ? resource.substring(LOOSE_BINDING_LEN) :\r\n resource.substring(LOOSE_BINDING_LEN, pos);\r\n }\r\n else\r\n {\r\n name = (atLastName) ? resource : resource.substring(0, pos);\r\n }\r\n\r\n String binding = looseBinding ? LOOSE_BINDING : TIGHT_BINDING;\r\n newNode = startNode.createChild(name, binding);\r\n\r\n // if this is the last component of the resource then store the value\r\n if (atLastName)\r\n {\r\n newNode.setData(value);\r\n }\r\n else\r\n {\r\n // if loosely bound, ensure that '*' is the first character of the tail\r\n String tail;\r\n if (resource.regionMatches(pos, LOOSE_BINDING, 0, LOOSE_BINDING_LEN))\r\n tail = resource.substring(pos);\r\n else\r\n tail = resource.substring(pos+LOOSE_BINDING_LEN);\r\n\r\n // recurse to next level\r\n setTheResourceRecursive(newNode, tail, value);\r\n }\r\n }",
"protected void setResourceName(String resrcName) {\n\tthis.resrcName = resrcName;\n }",
"void addElement(String newSubResourceName, ResourceBase newSubResource);",
"void setResourceName(String name)\n {\n this.name = name;\n }",
"public synchronized void setResource(String key, String value)\r\n throws IllegalArgumentException\r\n {\r\n // set the resource under the root node\r\n setTheResource(root, key, value);\r\n\r\n // inform listeners\r\n resourceSet(key);\r\n }",
"private void setResName(int type, String resourceId, BufferedWriter bufferedwriter, StringBuilder parentName)\n/* */ {\n/* */ try\n/* */ {\n/* 1092 */ String resourceDispName = getResourceName(resourceId);\n/* 1093 */ if (type == 0)\n/* */ {\n/* */ \n/* 1096 */ this.flag = false;\n/* 1097 */ bufferedwriter.append(resourceDispName).append(\",\");\n/* 1098 */ bufferedwriter.append(\",\");\n/* 1099 */ bufferedwriter.append(\",\");\n/* */ \n/* 1101 */ if (!parentName.toString().equals(resourceDispName)) {\n/* 1102 */ parentName.append(resourceDispName);\n/* */ }\n/* */ }\n/* 1105 */ else if (type == 1)\n/* */ {\n/* 1107 */ this.flag = true;\n/* 1108 */ this.subgroup = resourceDispName;\n/* 1109 */ bufferedwriter.append(parentName.toString()).append(\",\");\n/* */ \n/* */ \n/* 1112 */ bufferedwriter.append(resourceDispName);\n/* 1113 */ bufferedwriter.append(\",\");\n/* 1114 */ bufferedwriter.append(\",\");\n/* */ }\n/* */ else\n/* */ {\n/* 1118 */ bufferedwriter.append(parentName.toString()).append(\",\");\n/* 1119 */ if (this.flag) {\n/* 1120 */ bufferedwriter.append(this.subgroup).append(\",\");\n/* */ }\n/* 1122 */ if (!this.flag) {\n/* 1123 */ bufferedwriter.append(\",\");\n/* */ }\n/* 1125 */ bufferedwriter.append(resourceDispName).append(\",\");\n/* */ }\n/* */ }\n/* */ catch (Exception e)\n/* */ {\n/* 1130 */ e.printStackTrace();\n/* */ }\n/* */ }",
"public void setResourceName(final String name) {\n this.resourceName = name;\n }",
"public void setResource(int newResource) throws java.rmi.RemoteException;",
"@Override\r\n\tpublic void setGiveResource(ResourceType resource) {\n\t\t\r\n\t}",
"void setResourceEndowments(Map<String, Double> resourceEndowments);",
"public void expendLimitedResource(String resourceName){\n }",
"void setResourceId(int value);",
"public void setResource(ResourceInfo resource) {\n\t\tif (this.resource != null) {\n\t\t\tthrow new IllegalStateException(\"The resource pointer can only be set once for Resource [\" + name + \"]\");\n\t\t}\n\t\tthis.resource = resource;\n\t}",
"public void setResource(URI resource) {\n this.resource = resource;\n }",
"void setResourceItem(BaseContentItem resourceItem);",
"public void giveResourcesToPlayer(Resource resource){\n resources.addResource(resource);\n }",
"public void setResource(ResourceVO newResource) {\n\tresource = newResource;\n}",
"ResourceLocation withExtension(String newExtension);",
"public void setResourcename(java.lang.String newResourcename) {\n\tresourcename = newResourcename;\n}",
"public void setResourcePath(String resourcePath) {\n //To change body of implemented methods use File | Settings | File Templates.\n }",
"public native void addResourcePath(final String name, final String resourcePath, final int type);",
"public void setRWResource(RWResource theResource) {\n resource = theResource;\n }",
"public void setResourceTo(ServiceCenterITComputingResource newResourceTo) {\n addPropertyValue(getResourcesProperty(), newResourceTo);\r\n }",
"private void setResourcePrivate(Object object, String key, Object value)\r\n throws IllegalArgumentException,\r\n NullPointerException\r\n {\r\n if (object == null)\r\n {\r\n throw new NullPointerException(\"ResourceManager.setResource(): \"+\r\n \"object is null\");\r\n }\r\n\r\n // determine the name of the object\r\n String name = retrieveAbsoluteName(object);\r\n\r\n if (name == null)\r\n {\r\n throw new IllegalArgumentException(\"ResourceManager.setResource(): \"+\r\n \"object '\"+object+\"' not registered\"+\r\n \"with manager\");\r\n }\r\n\r\n String res = name+TIGHT_BINDING+key;\r\n\r\n // set resource under the node\r\n Node node = getNode(name);\r\n if (node == null)\r\n {\r\n // the node was not found, so create it as we go\r\n setTheResource(root, res, value);\r\n\r\n // inform listeners\r\n resourceSet(res);\r\n }\r\n else\r\n {\r\n // set resource from the node\r\n setTheResource(node, key, value);\r\n\r\n // inform listeners\r\n resourceSet(res);\r\n }\r\n }",
"protected void setResource(final Resource resource) {\n this.resource = resource;\n }",
"public void addResource(Resource res) {\n \tresourceDisplay.getChildren().add(new ResourceContainer(res));\r\n }",
"public abstract void setNextBlockResource(int resourceNum);",
"public void setResourceName(String resourceName) {\n this.resourceName = resourceName;\n }",
"public void setResourceClassName(String value)\r\n {\r\n getSemanticObject().setProperty(swb_resourceClassName, value);\r\n }",
"public void addResourceSpace(Resource r,int srt){\n t.put(r.getName(),new SupplyNode(r,srt));\n t.get(r.getName()).setCurrent(srt);\n }",
"interface WithName {\n /**\n * Specifies name.\n * @param name The name of the resource that is unique within a resource group. This name can be used to access the resource\n * @return the next update stage\n */\n Update withName(String name);\n }",
"public void setResourceType( String strResourceType )\r\n {\r\n _strResourceType = strResourceType;\r\n }",
"void setImageResource(String imageResource) throws IOException;",
"public void write(String pResourceName, byte[] pResourceData) {\n\t\t\n\t}",
"protected void setResourceType(ResourceType resrcType) {\n\tthis.resourceType = resrcType;\n }",
"@Override\r\n\tpublic void setResourceToSend(ResourceType resource) {\n\t\t\r\n\t}",
"@JsonProperty(\"resource\")\n public void setResource(String resource) {\n this.resource = resource;\n }",
"@Override\r\n\tpublic void setGetResource(ResourceType resource) {\n\t\t\r\n\t}",
"public synchronized void setResource(String key, List values)\r\n throws IllegalArgumentException\r\n {\r\n // set the resource under the root node\r\n setTheResource(root, key, values);\r\n\r\n // inform listeners\r\n resourceSet(key);\r\n }",
"public Resource storeResource( Resource r );",
"public void setImageResource(String resPath) {\n \t\timageResource = resPath;\n \t\tif (resPath.contains(\"_holo\") || resPath.contains(\"_alt\")) {\n \t\t\tsetAlternateArt(true);\n \t\t}\n \t\t// setName(id);\n \t}",
"public synchronized void setResource(Object object, String key, String value)\r\n throws IllegalArgumentException,\r\n NullPointerException\r\n {\r\n setResourcePrivate(object, key, value);\r\n }",
"@Override\r\n\tpublic String resourceAddress(int augID) {\n\t\treturn Main.MODID + \":skills/novice/Rejuvenate.png\";\r\n\t}",
"@Override\r\n\tpublic void updateResourceInformation() {\n\t}",
"public DataResourceBuilder _resourcePart_(Resource _resourcePart_) {\n this.dataResourceImpl.getResourcePart().add(_resourcePart_);\n return this;\n }",
"@Override\n\tpublic void updateResourceInformation() {\n\t}",
"public void setResourceDn(java.lang.String resourceDn) {\r\n this.resourceDn = resourceDn;\r\n }",
"public void addResource(PSResource res) {\n/* 72 */ prepareResourceSet();\n/* 73 */ this.resources.add(res);\n/* */ }",
"abstract public void setRingResourcesDir(String path);",
"public void putString(ResourceLocation name, String value) {\n data.putString(name.toString(), value);\n }",
"private URI getRefinedResourceURI(Resource resource, String newName) {\n\t\tURI newUri = resource.getURI();\n\t\tString fileExtension = newUri.fileExtension();\n\t\tnewUri = newUri.trimSegments(1).appendSegment(newName).appendFileExtension(fileExtension);\n\t\treturn newUri; \n\t}",
"void setEndRange( String endRange );",
"@Override\n\tpublic void setBeanDefinitionContext(String beanDefinitionContextName,\n\t\t\tString resource) {\n\n\t}",
"void enlistResource(ExoResource xares) throws RollbackException, SystemException;",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.RESOURCES,\n adderName = \"resources\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true)\n public void setResources(final Set<BwString> val) {\n resources = val;\n }",
"public void setEntryName(String ename);",
"public void setResourceId(String resourceId) {\n this.resourceId = resourceId;\n }",
"public void setResourceId(String resourceId) {\n this.resourceId = resourceId;\n }",
"@Override\n public void addCSResource(final BwCalSuite suite,\n final BwResource res,\n final String rc)\n throws CalFacadeException {\n res.setColPath(getCSResourcesDir(suite, rc));\n svci.getResourcesHandler().save(res,\n false);\n updated();\n }",
"String getResourceName();",
"public void editEmployeeInformationName(String text) {\n\t\tthis.name=text;\n\t\tResourceCatalogue resCat = new ResourceCatalogue();\t\t\n\t\tresCat.getResource(rid).editResource(name, this.sectionId);\n\t\tHashMap<String, String> setVars = new HashMap<String, String>();\n\t\tsetVars.put(\"empname\", \"\\'\"+name+\"\\'\");\n\t\tsubmitToDB(setVars);\n\n\t}",
"protected void setResrcDefntn(String resrcDefntn) {\n\tthis.resrcDefntn = resrcDefntn;\n }",
"public void setResourceKey(@Nullable final String resourceKey) {\n mResourceKey = resourceKey;\n }",
"public void addResource(Resource resource) {\n\t\tif (resource != null) {\n\t\t\tthis.getResources().add(resource);\n\t\t\tresource.setSystem(this);\n\t\t}\n\t}",
"public void setResourceFrom(ServiceCenterITComputingResource newResourceFrom) {\n addPropertyValue(getResourcesProperty(), newResourceFrom);\r\n// setPropertyValue(getResourcesProperty(), resourceTo);\r\n }",
"Restaurant setRestaurantName(RestaurantLocale locale, String newName);",
"interface WithKind {\n /**\n * Specifies the kind property: The Kind of the resource..\n *\n * @param kind The Kind of the resource.\n * @return the next definition stage.\n */\n Update withKind(String kind);\n }",
"void setEndSegment(int endSegment);",
"public void addResource(Resource r,int max){\n t.put(r.getName(),new SupplyNode(r,max));\n }",
"public void setResourceType(String ResourceType) {\n this.ResourceType = ResourceType;\n }",
"interface WithParentResource {\n /**\n * Specifies resourceGroupName, partnerNamespaceName.\n *\n * @param resourceGroupName The name of the resource group within the user's subscription.\n * @param partnerNamespaceName Name of the partner namespace.\n * @return the next definition stage.\n */\n WithCreate withExistingPartnerNamespace(String resourceGroupName, String partnerNamespaceName);\n }",
"public void addResource(Resource res, int roll) {\n\t\t_resources.add(res);\n\t\t_rolls.add(roll);\n\t}",
"public Builder addResourceNames(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResourceNamesIsMutable();\n resourceNames_.add(value);\n onChanged();\n return this;\n }",
"public void setResourceClass(final String resourceClass) {\n this.resourceClass = resourceClass;\n }",
"public void setResourceId(String resourceId) {\r\n\t\tthis.resourceId = resourceId;\r\n\t}",
"public void setEndNode(String endNode)\r\n\t{\r\n\t\tthis.endNode = endNode;\r\n\t\tthrow new UnsupportedOperationException(\"Še ne dela, poišči lokacijo od vozlišča z imaneom\" + endNode);\r\n\t}",
"public Builder setResourceNames(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResourceNamesIsMutable();\n resourceNames_.set(index, value);\n onChanged();\n return this;\n }",
"@Override\n\tpublic void resourceChanged(IResourceChangeEvent arg0) {\n\t\t\n\t}",
"public void setResourceID(String resourceID) {\n\t\tthis.resourceID = resourceID;\n\t}",
"public void setResourceConfig(String clusterName, String resourceName,\n ResourceConfig resourceConfig) {\n updateResourceConfig(clusterName, resourceName, resourceConfig, true);\n }",
"public void setName(String rname) {\n name = rname;\n }",
"public String resource_name () throws BaseException {\n throw new BaseException(\"Not implemented\");\n }",
"public void setResourceFile(File fileName) {\n resourceFile = fileName;\n }",
"public void endEntity(String name) throws SAXException {\n this.saxHandler.endEntity(name);\n }",
"@Override\r\n\tpublic void increaseAmount(ResourceType resource) {\n\t\t\r\n\t}",
"public interface Resource {\r\n\r\n String getName();\r\n\r\n void setName(String newName);\r\n\r\n boolean isFixedResource();\r\n}",
"public void setRelPath (\r\n String strRelPath) throws java.io.IOException, com.linar.jintegra.AutomationException;",
"public void setResourceType (String resourceType) {\n this.resourceType = resourceType;\n }",
"interface WithParentResource {\n /**\n * Specifies resourceGroupName, accountName.\n *\n * @param resourceGroupName The name of the Azure resource group.\n * @param accountName The name of the Data Lake Store account.\n * @return the next definition stage.\n */\n WithIdProvider withExistingAccount(String resourceGroupName, String accountName);\n }",
"public Builder setResources(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResourcesIsMutable();\n resources_.set(index, value);\n onChanged();\n return this;\n }",
"public void setResourceType (String resourceType) {\n this.resourceType = resourceType;\n }",
"public void setResourceId(String resourceId) {\n\t\tthis.resourceId = resourceId;\n\t}",
"public void setResourceId(String resourceId) {\n\t\tthis.resourceId = resourceId;\n\t}",
"public void setName(String arg, String compcode, String left_paren, String right_paren, String and_or) throws ReadWriteException\n\t{\n\t\tsetValue(_Prefix + HardZone.NAME.toString(), arg, compcode, left_paren, right_paren, and_or);\n\t}",
"void setup(String value, String loadResource, String saveResource);",
"public static void add(String name, Object value) {\r\n\t\tgetInstance().addResource(name, value);\r\n\t}"
] | [
"0.6176249",
"0.60332066",
"0.5931337",
"0.57885724",
"0.5659261",
"0.562687",
"0.55914503",
"0.55734503",
"0.55526066",
"0.5487481",
"0.54801387",
"0.54198265",
"0.5391343",
"0.5323093",
"0.5321172",
"0.52808475",
"0.52624285",
"0.5209747",
"0.51864505",
"0.5178114",
"0.51714057",
"0.515221",
"0.5150492",
"0.51456976",
"0.5141799",
"0.51333684",
"0.5117319",
"0.5098429",
"0.5088558",
"0.50783956",
"0.5077197",
"0.5070679",
"0.50590825",
"0.5048314",
"0.5043882",
"0.502911",
"0.50242954",
"0.49902683",
"0.49891403",
"0.49811304",
"0.49636486",
"0.49560618",
"0.49468046",
"0.49422795",
"0.49194926",
"0.49081513",
"0.49047628",
"0.49000272",
"0.48957893",
"0.48914656",
"0.48654962",
"0.48618916",
"0.4854712",
"0.48347113",
"0.48241642",
"0.48124874",
"0.48026696",
"0.4789427",
"0.47866932",
"0.47810724",
"0.47606757",
"0.47606757",
"0.4737733",
"0.4734364",
"0.47315186",
"0.47269672",
"0.4722002",
"0.47143772",
"0.47083893",
"0.47011295",
"0.46925572",
"0.46909142",
"0.46907085",
"0.46886754",
"0.4684308",
"0.46764296",
"0.46743932",
"0.4673957",
"0.46671474",
"0.46643484",
"0.4660638",
"0.4651775",
"0.46513477",
"0.4651018",
"0.46490937",
"0.4642721",
"0.46427178",
"0.46321306",
"0.46266493",
"0.46235105",
"0.46225747",
"0.46225318",
"0.4622441",
"0.4618397",
"0.4611653",
"0.46083367",
"0.46083367",
"0.46056306",
"0.45989442",
"0.45975444"
] | 0.76378715 | 0 |
Set the cost of an element in terms of various resources | void setUnitCost(String elementName, Map<String, Double> unitCosts); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setCost(double cost);",
"double setCost(double cost);",
"double setEstimatedCost(double cost);",
"protected void setCost(double cost) \r\n\t{\tthis.cost = cost;\t}",
"public void setCost(double cost){\n this.cost = cost;\n }",
"public void setCost(int c) {\r\n this.cost = c;\r\n }",
"@Override\r\n\tpublic void setCost(double newCost) {\n\r\n\t}",
"public void setCost(double cost) {\r\n this.cost = cost;\r\n }",
"@Override\n\tprotected void setCost(double cst) {\n\t\t\n\t}",
"public void setCost(double cost) {\n this.cost = cost;\n }",
"public void setCost(double value) {\n this.cost = value;\n }",
"@Override\r\n\tpublic void addToCost() {\n\t\t\r\n\t}",
"public void setCost(int cost) {\n \t\tthis.cost = cost;\n \t}",
"@Autowired\n\tpublic void setCost(@Value(\"${repair.cost}\") int cost) {\n\t\tthis.cost = oneOrMore(cost);\n\t}",
"public void setCost(double cost) {\n\t\tthis.cost = cost;\n\t}",
"public void setCost(Integer cost) {\n this.cost = cost;\n }",
"public void set_cost(int value) {\n setUIntElement(offsetBits_cost(), 16, value);\n }",
"public void setCost(Number cost)\r\n {\r\n m_cost = cost;\r\n }",
"public void setCost(double cost) {\n\n\t\tthis.cost = cost;\n\t}",
"@Override\n public void setCost( double cost ) {\n throw new UnsupportedOperationException( \"Not supported yet.\" );\n }",
"private void setupSettlementCost(){\n\t\tsettlementCost.put(ResourceKind.WOOL, 1);\n\t\tsettlementCost.put(ResourceKind.WOOD, 1);\n\t\tsettlementCost.put(ResourceKind.BRICK, 1);\n\t\tsettlementCost.put(ResourceKind.GRAIN, 1);\n\t}",
"public void setCost(int cost) {\n\t\tthis.cost = cost;\n\t}",
"public void setCost(Integer cost) {\r\n\t\tthis.cost = cost;\r\n\t}",
"@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}",
"public void setCost(double cost) {\n /**\n * @return sets the cost of the Ice Cream with the double argument\n */\n this.cost = cost;\n }",
"public void bsetCostElements() {\n\t\t\t\n\t\t\t\n\t\tfor (int obj = 0; obj < finalLocation.length; obj++) {\n\t\t for (int time = 0; time < finalLocation[obj].length; time++) {\n\t\t\t\n\t\t bfCost[obj][time].bstorageCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bstorageCost;\n\t\t\t bfCost[obj][time].breadCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].breadCost;\n\t\t\t bfCost[obj][time].bwriteCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bwriteCost;\n\t\t\t bfCost[obj][time].btranCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].btranCost;\n\t\t\t \n\t\t\t //1. we calculate latency cost for two cases separately: when the object is in the hot tier or cool tier.\n\t\t\t if (finalLocation[obj][time]==0){//Object is in the cool tier\n\t\t\t\t bfCost[obj][time].bdelayCost=totalCostCalculation.btotalResidentCost[time][obj][0].bdelayCost;\n\t\t\t\t \n\t\t\t }else{// object is in both tiers and, in consequence, the latency cost of writes is the maximum latency of writing in both tiers, and the read latency is the one in hot tier.\n\t\t\t\t bfCost[obj][time].bedelCost=fc.bdelayMaxWriteReadCost(workloadGenerator.objectListRegion[obj], 1, obj, time);\n\t\t\t }\n\t\t\t \n\t\t /* 2. Here we calculate storage cost and transaction cost to make consistent data. This requires just write transaction. Since in our cost \n calculation make a computation for both read and writes.\n\t\t */\n\t\t \n\t\t if(finalLocation[obj][time]==1){//NOTE: in above cost storage, we calculate the cost of object in either in hot or cold tier. \n\t\t \t //So here we calculate the storage cost in cold tier when the object is in hot tier.\n\t\t \t bfCost[obj][time].bstorageCost=bfCost[obj][time].bstorageCost.add(totalCostCalculation.btotalResidentCost[time][obj][0].bstorageCost);\n\t\t bfCost[obj][time].bconsisCost=totalCostCalculation.btotalResidentCost[time][obj][0].bconsisCost;\n\t\t }\n\t\t\t bfCost[obj][time].bnonMigrationCost=bfCost[obj][time].bstorageCost.add(bfCost[obj][time].breadCost).add( bfCost[obj][time].bwriteCost).\n\t\t\t\t\t add(bfCost[obj][time].btranCost).add( bfCost[obj][time].bconsisCost).\n\t\t\t\t\t add(bfCost[obj][time].bdelayCost);\n\t\t\t\t\t //totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bnonMigrationCost.add(bfCost[obj][time].bconsisCost);\n\t\t\t \n\t\t\t //3. We need to calculate just transfer cost between cold to hot tier. From hot to cold tier does not make sense because we have a copy of data in cold tier.\n\t\t if(breakPoint==1){//If breakPoint is ONE then for serving every user, the object for each time slot is transfered from Cold to Hot tier.\n\t\t \t \n\t\t }\n\t\t else if(time>0 && finalLocation[obj][time-1]==0 && finalLocation[obj][time]==1){\n\t\t\t bfCost[obj][time].bmigrationCost=totalCostCalculation.btotalMigrationCost[time][obj][finalLocation[obj][time-1]][finalLocation[obj][time]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}",
"public void setCost(BigDecimal cost) {\r\n this.cost = cost;\r\n }",
"public void setCost(int[] cost){\n\t\tthis.cost = cost;\n\t}",
"public void setCost(Money obj){\r\n \t//check if the object is null or not an instance of Money\r\n if(obj == null || !(obj instanceof Money)){\r\n \t//throw an exception\r\n throw new PizzaException(\"Exception in the setCost method: the object is null or not an instance of money\");\r\n }\r\n //casting\r\n Money m = (Money) obj;\r\n //set the cost to the clone of m\r\n this.cost = m.clone();\r\n }",
"private void setCost(int u, double d) {\n\t\tgetVertex(u).setCost(d);\n\t}",
"public final void setCost(java.math.BigDecimal cost)\n\t{\n\t\tsetCost(getContext(), cost);\n\t}",
"int getResourceCost();",
"public void addCost(int amount) {\n\t\tcost = amount;\n\t}",
"public void setCost (BigDecimal Cost)\n{\nif (Cost == null) throw new IllegalArgumentException (\"Cost is mandatory\");\nset_Value (\"Cost\", Cost);\n}",
"double getCost();",
"double getCost();",
"public Cost(float c) {\r\n defaultCost = c;\r\n }",
"protected abstract double getDefaultCost();",
"@Override\n\tpublic double cost() {\n\t\treturn 10000;\n\t}",
"@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}",
"@Override\r\n\tprotected void processCost() {\n\r\n\t}",
"@Override\n public double getCost() {\n\t return 13;\n }",
"@IcalProperties({\n @IcalProperty(pindex = PropertyInfoIndex.COST,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true),\n @IcalProperty(pindex = PropertyInfoIndex.XBEDEWORK_COST,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true)}\n )\n public void setCost(final String val) {\n cost = val;\n }",
"public abstract double getCost();",
"int getCost();",
"int getCost();",
"int getCost();",
"public void setPrice(int newPrice){\n productRelation.setCost(newPrice);\n }",
"public void setCosts(int cost) {\n\t\tthis.damageCharge = cost;\n\t}",
"public void setPostCost(int newPostCost){\n post.setCost(newPostCost);\n }",
"@Override\n public long cost() {\n return 100;\n }",
"public void setCost(final float newCost) {\r\n\t\tthis.cost = new Float(newCost);\r\n\t}",
"public void compute(){\r\n\r\n\t\ttotalCost=(capAmount*CAPCOST)+(hoodyAmount*HOODYCOST)+(shirtAmount*SHIRTCOST);\r\n\t}",
"public void add_cost(float cost){\n costs[next_index] = cost;\n next_index++;\n }",
"@Override\n\tpublic int cost() {\n\t\treturn 5000;\n\t}",
"@Override\n public double cost()\n {\n return this.price * this.number;\n }",
"protected void addCost(Cost cost)\n throws DissectionException {\n addOverhead(cost);\n elementIterator = document.childrenIterator(element, elementIterator);\n for (; elementIterator.hasNext();) {\n DissectableNode child = elementIterator.next();\n DissectableNodeAnnotation annotation\n = (DissectableNodeAnnotation) document.getAnnotation(child);\n annotation.addCost(cost);\n }\n }",
"public final void setCost(com.mendix.systemwideinterfaces.core.IContext context, java.math.BigDecimal cost)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Cost.toString(), cost);\n\t}",
"@Override\n public void calculateCost(final ResourceAllocation allocation) {\n final IReservable reservable = this.resourceDataSource.get(allocation.getResourceId());\n\n final double units = getCostUnits(allocation, reservable);\n\n // check on external ??\n final double costPerUnit = reservable.getCostPerUnit();\n final int quantity = allocation.getQuantity();\n // calculate cost and round to 2 decimals\n final double cost = DataSourceUtils.round2(costPerUnit * units * quantity);\n\n allocation.setCost(cost);\n }",
"public abstract int getCost();",
"public abstract int getCost();",
"public abstract int getCost();",
"@Override\r\n public int getCost() {\r\n return cost;\r\n }",
"@Override\n\tpublic double cost() {\n\t\treturn water.cost()+10;\n\t}",
"public void setMaxTotalCost(int amount);",
"void changeCost(ArrayList<CostsChanges> changes);",
"public double getCost(){\n return cost;\n }",
"@Override\n public double getCost() {\n return cost;\n }",
"@Pure\n\tdouble getCost();",
"public void setCosts( List<Double> costs)\r\n\t{\r\n\t\tif( costs.size() != _items.size() ) throw new RuntimeException(\"The size of the list of costs should match to the size of the list of sellers (items)\");\r\n\t\t_costs = costs;\r\n\t}",
"public void setCapacity( Resource.Type type, int capacity );",
"@Override\n public double cost(){\n return 1 + super.sandwich.cost();\n }",
"public static void setCostPerOp(){\n\t\tcostPerOp.put(\"~\",1.0);\n\t\tcostPerOp.put(\"&\",1.0);\n\t\tcostPerOp.put(\"@\",1.0);\n\t\tcostPerOp.put(\"+\",1.0);\n\t\tcostPerOp.put(\"^\",1.0);\n\t\tcostPerOp.put(\".\",1.0);\n\t\tcostPerOp.put(\"=\",1.0);\n\t}",
"@Override\n public int getCost() {\n\treturn 0;\n }",
"U2(){\r\n setCurrentWeight(0);\r\n setMaxWeight(29*1000);\r\n setCost(120*1000000);\r\n }",
"public double getCost() \n { \n return super.getCost() +22;\n }",
"@Override\n\tpublic void setVehicleCost(double van, double railway, double airplane) {\n\t\tconstantPO.setVanCost(van);\n\t\tconstantPO.setRailwayCost(railway);\n\t\tconstantPO.setAirplaneCost(airplane);\n\t}",
"public void setCost(int maxTemp) {\n\t\tthis.cost = 900 + (200 * (Math.pow( 0.7, ((double)maxTemp/5.0) )));\n\t}",
"public Cost(boolean time) {\r\n defaultCost = 5;\r\n haveSchedule = time;\r\n }",
"public void setEdgeCost(int from, int to, double newCost) {\n //make sure the nodes given are valid\n assert (from < nodeVector.size()) && (to < nodeVector.size()) :\n \"<SparseGraph::SetEdgeCost>: invalid index\";\n\n //visit each neighbour and erase any edges leading to this node\n ListIterator<edge_type> it = edgeListVector.get(from).listIterator();\n while (it.hasNext()) {\n edge_type curEdge = it.next();\n if (curEdge.getTo() == to) {\n curEdge.setCost(newCost);\n break;\n }\n }\n }",
"public double getCost()\r\n\t{\treturn this.cost;\t}",
"float getCostScale();",
"void setOrderCapacity(OrderCapacity inOrderCapacity);",
"public void setComponenteCosto(ComponenteCosto componenteCosto)\r\n/* 73: */ {\r\n/* 74: 95 */ this.componenteCosto = componenteCosto;\r\n/* 75: */ }",
"@Override\n\tpublic void addCost(long userId, int cost) {\n\t\t\n\t}",
"private CostHelper() {}",
"public void addCost(Date hour, float nCost) {\r\n schedule.add(hour);\r\n cost.add(nCost);\r\n }",
"public double getCost() {\n\t\treturn 1.25;\n\t}",
"public void setCost(int cost) {\n/* 79 */ Validate.isTrue((cost > 0), \"The cost must be greater than 0!\");\n/* */ \n/* 81 */ this.cost = cost;\n/* */ }",
"public double getCost() {\r\n return cost;\r\n }",
"public void setInfrastructureCost(int infrastructureCost) {\r\n this.infrastructureCost = infrastructureCost;\r\n }",
"public void changeCost(Node n1, Node n2, int cost) {\r\n\t\tn1.getDistanceVector().put(n2, cost);\r\n\t\tn2.getDistanceVector().put(n1, cost);\r\n\t}",
"public double getCost() {\t\t \n\t\treturn cost;\n\t}",
"public void setTotalNumCpus (double totalNumCpus) \n\t{ \n\t\tfinal Set<Resource> res = n.getResources(RESOURCETYPE_CPU);\n\t\tif (res.size() > 1) throw new Net2PlanException (\"Format error\");\n\t\tif (res.isEmpty()) \n\t\t\tn.getNetPlan().addResource(RESOURCETYPE_CPU, RESOURCETYPE_CPU, Optional.of(n), totalNumCpus, RESOURCETYPE_CPU, new HashMap<> (), 0.0, null);\n\t\telse \n\t\t\tres.iterator().next().setCapacity(totalNumCpus, new HashMap<> ());\n\t}",
"@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}",
"public double getCost() {\n return quantity*ppu;\n\n }",
"public final void changeCost(final ArrayList<CostsChanges> changes) {\n for (CostsChanges change : changes) {\n if (change.getId() == this.getId()) {\n setInitialInfrastructureCost(change.getInfrastructureCost());\n }\n }\n }",
"@Override\r\n\tpublic double getCost() {\n\t\treturn 0;\r\n\t}",
"public UpdatePerUnitCost() {\n initComponents();\n }",
"public void setshippingcost() {\r\n\t\tshippingcost = getweight() * 3;\r\n\t}"
] | [
"0.780633",
"0.7741618",
"0.7402863",
"0.739765",
"0.72940546",
"0.71051246",
"0.70739484",
"0.7012226",
"0.6987208",
"0.6970889",
"0.6964331",
"0.69134784",
"0.67680776",
"0.676552",
"0.6722084",
"0.6690047",
"0.66624355",
"0.66128045",
"0.6612168",
"0.6594971",
"0.65919447",
"0.6567852",
"0.656709",
"0.65606993",
"0.64559096",
"0.6443698",
"0.63608754",
"0.6327965",
"0.62882954",
"0.6284606",
"0.6267191",
"0.6247765",
"0.61831564",
"0.6181372",
"0.61795056",
"0.61795056",
"0.6175137",
"0.617322",
"0.6138746",
"0.6131997",
"0.61110556",
"0.6099487",
"0.60727715",
"0.60527515",
"0.60149515",
"0.60149515",
"0.60149515",
"0.5993064",
"0.5992492",
"0.5981417",
"0.597488",
"0.59715885",
"0.59682524",
"0.594986",
"0.5945985",
"0.5941915",
"0.5931896",
"0.5929002",
"0.5914315",
"0.590999",
"0.590999",
"0.590999",
"0.58854806",
"0.58626413",
"0.5860736",
"0.5832877",
"0.58315617",
"0.5818479",
"0.5808049",
"0.5800087",
"0.57926166",
"0.5791182",
"0.57800376",
"0.5762947",
"0.5756694",
"0.5753261",
"0.5736386",
"0.5733843",
"0.5718107",
"0.57162744",
"0.57118547",
"0.57089573",
"0.5693231",
"0.56924534",
"0.56882656",
"0.56663567",
"0.56649196",
"0.5663744",
"0.56591403",
"0.56513274",
"0.5634962",
"0.5634327",
"0.5629132",
"0.56242275",
"0.5614869",
"0.5611284",
"0.56097317",
"0.5605845",
"0.55973125",
"0.55931836"
] | 0.7005342 | 8 |
Set the behavior and parameters of the wave | void setWaveProperties(Map<String, String> waveProperties, Collection<String> elementNamesToSpawn,
Point2D spawningPoint); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void set(float signal);",
"public void setWavelength(float wavelength) {\n/* 61 */ this.wavelength = wavelength;\n/* */ }",
"public void setAmplitude(float amplitude) {\n/* 79 */ this.amplitude = amplitude;\n/* */ }",
"public wave() {\n initComponents();\n //velikost mreze\n n = 30;\n\n //pozicije\n u = new double[n][n];\n\n //hitrosti\n v = new double[n][n];\n\n //utezi\n w = new double[n][n];\n\n //zacetni pogoji za u in v\n //definiraj custom\n v[n / 2][n / 2] = - 0.1;\n u[n/2][n/2] = 1;\n //v[2*n/3][2*n/3] = 0.5;\n \n\n //hitrost valovanja\n c = 0.1;\n\n //faktor dusenja\n k = 0.001;\n\n //razlike med tockami\n h = 0.2;\n\n //pogoj za rob\n edgeCondition = 0.0;\n \n //ali animacija tece\n animating = false;\n \n currentTime = System.currentTimeMillis();\n }",
"public void setSignal(double signal) {_signal = signal;}",
"public void setUpSound() {\n try {\n generateTone();\n setFrequencyLabel();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }",
"void setSignalPeriod(double signalPeriod);",
"public void setSpeed(int wpm);",
"@Test\r\n\tpublic void setFrequency() {\r\n\t\tWeldJoint<Body> wj = new WeldJoint<Body>(b1, b2, new Vector2());\r\n\t\t\r\n\t\twj.setFrequency(0.0);\r\n\t\tTestCase.assertEquals(0.0, wj.getFrequency());\r\n\t\t\r\n\t\twj.setFrequency(1.0);\r\n\t\tTestCase.assertEquals(1.0, wj.getFrequency());\r\n\t\t\r\n\t\twj.setFrequency(29.0);\r\n\t\tTestCase.assertEquals(29.0, wj.getFrequency());\r\n\t}",
"public void activate(float a, int which, float freq, int wf) {\n if (wf == MultiWave.VARIABLE)\n if (freq > highCutoff) {\n mixingCoefficients[which][MultiWave.SINE] = 1.0;\n mixingCoefficients[which][MultiWave.SAW] = mixingCoefficients[which][MultiWave.SQUARE] = mixingCoefficients[which][MultiWave.TRIANGLE] = 0.0;\n } else if (freq < lowCutoff) {\n mixingCoefficients[which][MultiWave.SAW] = 0.5;\n mixingCoefficients[which][MultiWave.TRIANGLE] = 1.0;\n mixingCoefficients[which][MultiWave.SINE] = mixingCoefficients[which][MultiWave.SQUARE] = 0.0;\n } else {\n mixingCoefficients[which][MultiWave.SINE] = (freq - lowCutoff)/(highCutoff - lowCutoff);\n mixingCoefficients[which][MultiWave.TRIANGLE] = 1.0 - mixingCoefficients[which][MultiWave.SINE];\n if (freq < midCutoff) {\n mixingCoefficients[which][MultiWave.SAW] = 0.5*(midCutoff - freq)/(midCutoff - lowCutoff);\n } else\n mixingCoefficients[which][MultiWave.SAW] = 0.0;\n }\n\n if (!isActive[which]) {\n numActive++;\n isActive[which] = true;\n } // end if\n\n frequencies[which] = freq;\n amplitudes[which] = a;\n whichWaveForm[which] = wf;\n deltaPhases[which] = TWO_PI * freq / frameRate;\n }",
"public void setFrequency(float speed) { \n \tmouseJointDef.frequencyHz = speed; \n }",
"Wave(float a, int xspace, int w_, float p_) {\n amplitude = a;\n xspacing = xspace;\n w = w_;\n period = p_;\n dx = (1.0f / period) * xspacing;\n yvalues = new float[w/xspacing]; //note declaring the array here forces us to have fixed size wave\n //we would need to redeclare it if we ever change those values\n }",
"private void setSynthesizerParam(SettingParams params) {\n if (mSynthesizer == null)\n return;\n //清除所有参数\n mSynthesizer.setParameter(SpeechConstant.PARAMS, null);\n //设置合成引擎\n mSynthesizer.setParameter(SpeechConstant.ENGINE_TYPE, SpeechConstant.TYPE_CLOUD);\n //设置音调\n mSynthesizer.setParameter(SpeechConstant.PITCH, \"50\");\n //设置播放器音频流类型\n mSynthesizer.setParameter(SpeechConstant.STREAM_TYPE, \"3\");\n //设置播放合成音频打断音乐播放,默认为true\n mSynthesizer.setParameter(SpeechConstant.KEY_REQUEST_FOCUS, \"true\");\n //设置合成发言人\n mSynthesizer.setParameter(SpeechConstant.VOICE_NAME, params.getVoiceName());\n //设置语速\n mSynthesizer.setParameter(SpeechConstant.SPEED, params.getVoiceSpeed() + \"\");\n //设置音量\n mSynthesizer.setParameter(SpeechConstant.VOLUME, params.getVoiceVolume() + \"\");\n }",
"public void setSpeed(float val) {speed = val;}",
"public abstract void setSpeed(int sp);",
"public void setW(double w) {\n this.w = w;\n }",
"public void setActiveWave(String waveID) {\n\t\t\r\n\t}",
"void setSpeed(RobotSpeedValue newSpeed);",
"public void setMotorBehaviors(){\n motors = new ArrayList<>();\n motors.add(rf);\n motors.add(rb);\n motors.add(lf);\n motors.add(lb);\n\n //reset motor encoders\n rf.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n rb.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lf.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lb.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n relic_extension.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n\n //Set motor behaviors\n rf.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rf.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rb.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n rb.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lf.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lf.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lb.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lb.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n rf.setDirection(DcMotorSimple.Direction.REVERSE);\n rb.setDirection(DcMotorSimple.Direction.REVERSE);\n relic_extension.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n relic_extension.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n relic_extension.setMode(DcMotor.RunMode.RUN_WITHOUT_ENCODER);\n lift.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n lift.setMode(DcMotor.RunMode.STOP_AND_RESET_ENCODER);\n lift.setMode(DcMotor.RunMode.RUN_TO_POSITION);\n lift.setDirection(DcMotorSimple.Direction.REVERSE);\n\n //Set servo behaviors\n leftWheel2.setDirection(DcMotorSimple.Direction.REVERSE);\n rightWheel1.setDirection(DcMotorSimple.Direction.REVERSE);\n\n }",
"public void setWeight(double w){\n weight = w;\n }",
"public void setValues(List values) {\n/* 115 */ super.setValues(values);\n/* 116 */ for (Iterator<ConfigurableEffect.Value> iter = values.iterator(); iter.hasNext(); ) {\n/* 117 */ ConfigurableEffect.Value value = iter.next();\n/* 118 */ if (value.getName().equals(\"Wavelength\")) {\n/* 119 */ this.wavelength = ((Float)value.getObject()).floatValue(); continue;\n/* 120 */ } if (value.getName().equals(\"Amplitude\")) {\n/* 121 */ this.amplitude = ((Float)value.getObject()).floatValue();\n/* */ }\n/* */ } \n/* */ }",
"void setPWMRate(double rate);",
"public void setSpeed(double multiplier);",
"void setForce() {\n\tdouble oldfreq = forceBarValue * omega[1] / 20.0;\n\tforceBarValue = forceBar.getValue();\n\tdouble newfreq = forceBarValue * omega[1] / 20.0;\n\tdouble adj = newfreq-oldfreq;\n\tforceTimeZero = t-oldfreq*(t-forceTimeZero)/newfreq;\n }",
"public void setSpeed() {\n //assigns the speed based on the shuffleboard with a default value of zero\n double tempSpeed = setpoint.getDouble(0.0);\n\n //runs the proportional control system based on the aquired speed\n controlRotator.proportionalSpeedSetter(tempSpeed);\n }",
"public void setWaveSpeed(int waveSpeed) {\n if (mWaveSpeed <= 0) {\n return;\n }\n this.mWaveSpeed = waveSpeed;\n }",
"public void setWeights(float[] w) {\n _w1D = w;\n _weights = true;\n }",
"public void setPitch(int pitch);",
"public void setVibrationOn() {\n\n }",
"void hit(int frequency, double duration, double amplitude){\r\n \tSystem.out.println(\"Frequency: \"+frequency+\", Duration: \"+duration+\", Amplitude: \"+amplitude);\r\n \t\r\n\r\n\t\tadder.inputA.set(frequency); //fc !!!\r\n\t\tvibrato.frequency.set( frequency+80 ); // fm!!!\r\n\t\tvibrato.amplitude.set( (frequency+80)*2 ); // fm*2!!!\r\n \t\r\n\t\tint i=0;\r\n\t\tdata[i++] = 0.01;\t\t\t// Duration of first segment. \r\n\t\tdata[i++] = amplitude; \t\t// value \r\n\t\tdata[i++] = duration*0.13; \t// duration\r\n\t\t\tamplitude/=2;\r\n\t\tdata[i++] = amplitude; \t\t// value \r\n\t\tdata[i++] = duration*0.23; \t// duration \r\n\t\t\tamplitude/=2;\r\n\t\tdata[i++] = amplitude; \t\t// value \r\n\t\tdata[i++] = duration*0.23; \t// duration \r\n\t\t\tamplitude/=2;\r\n\t\tdata[i++] = amplitude; \t\t// value \r\n\t\tdata[i++] = duration*0.4; \t// duration \r\n\t\tdata[i++] = 0.0; \t\t\t// value \r\n\r\n\t\ti = 0;\r\n\t\tamplitude = 280*2;\r\n\t\tdata2[i++] = 0.01;\t\t\t// Duration of first segment. \r\n\t\tdata2[i++] = amplitude; \t\t// value \r\n\t\tdata2[i++] = duration*0.13; \t// duration\r\n\t\t\tamplitude/=2;\r\n\t\tdata2[i++] = amplitude; \t\t// value \r\n\t\tdata2[i++] = duration*0.23; \t// duration \r\n\t\t\tamplitude/=2;\r\n\t\tdata2[i++] = amplitude; \t\t// value \r\n\t\tdata2[i++] = duration*0.23; \t// duration \r\n\t\t\tamplitude/=2;\r\n\t\tdata2[i++] = amplitude; \t\t// value \r\n\t\tdata2[i++] = duration*0.4; \t// duration \r\n\t\tdata2[i++] = 0.0; \t\t\t// value \r\n\r\n\t\tenvData.write( 0, data, 0, i/2 );\r\n\t\tenvData2.write( 0, data2, 0, i/2 );\r\n \tenvPlayer.envelopePort.clear();\r\n \tenvPlayer2.envelopePort.clear();\r\n \tenvPlayer.envelopePort.queue( envData, 0, i/2 );\r\n \tenvPlayer2.envelopePort.queue( envData2, 0, i/2 );\r\n }",
"public void setWeight(float w) {\n weight = w;\n }",
"public Microwave()\n {\n this.powerLevel = 1;\n this.timeToCook = 0;\n this.startTime = 0;\n }",
"public void setCurrentSpeed (double speed);",
"@Override\n\tpublic void setTow(float tow) {\n\t\t\n\t}",
"@Test\r\n\tpublic final void testSetSpeed() {\n\t\t a=new airConditioner(\"ON\",33);\r\n\t\tassertEquals(33,a.getSpeed());\r\n\t}",
"@Override\n public void setWeight(double w) {\n this.weight = w;\n\n }",
"void setValueMixerSound(int value);",
"public abstract void set( int i, int j, double value ) throws JWaveException;",
"@Override\r\n public void setup() {\r\n crash = new SoundFile(this, \"sounds\\\\crash.wav\");\r\n eat = new SoundFile(this, \"sounds\\\\eat.wav\");\r\n Cell.HEIGHT=CELL_HEIGHT;\r\n Cell.WIDTH=CELL_WIDTH;\r\n System.out.println(interval);\r\n\r\n initGame();\r\n }",
"public void setW1 (float value) {\r\n w1 = value;\r\n }",
"public void setW(boolean w) {\n\tthis.w = w;\n }",
"public void settings() {\n int widthOfWindow = 900;\n int heightOfWindow = 900;\n\n //Size of the program window\n size(widthOfWindow, heightOfWindow);\n //making the movement smooth, i think, comes from processing\n smooth();\n }",
"public void setSamples(int samples){ \n this.samples = samples; \n }",
"public void setWeights(double[] w) {\n\t\t\tweights = w;\n\t\t}",
"public void updateParameters(){\n\t\tp = RunEnvironment.getInstance().getParameters();\n\t\tmaxFlowerNectar = (double)p.getValue(\"maxFlowerNectar\");\n\t\tlowMetabolicRate = (double)p.getValue(\"lowMetabolicRate\");\n\t\thighMetabolicRate = (double)p.getValue(\"highMetabolicRate\");\n\t\tcolonySize = (int)p.getValue(\"colonySize\");\n\t}",
"private void setSteine() {\n\t\tfor(int i = 0; i<mulden.length; i++) {\n\t\t\tmulden[i] = 5;\n\t\t}\n\t}",
"public abstract void setEffects(Tank t);",
"public void setDecayRate(double newDecayRate ){\n\n decayRate= newDecayRate;\n}",
"public void setSettings(IsingSettingsWithAverages settings){\n\t\t\n\t\tthis.ising = new IsingModelWithAverages(settings);\n\t\t\n\t\t//start with highest temperature and work down\n\t\tif(settings.T1 > settings.T2){\n\t\t\tstartT = settings.T1;\n\t\t\tendT = settings.T2;\n\t\t}\n\t\telse{\n\t\t\tstartT = settings.T2;\n\t\t\tendT = settings.T1;\n\t\t}\n\t\t\n\t\tthis.burnIn = settings.burnIn;\n\t\tthis.plotPoints = settings.plotPoints;\n\t\tthis.sweeps = settings.sweeps;\n\t\tthis.updatesPerSweep = settings.updatesPerSweep;\n\t\t\n\t\tthis.temp = new double[settings.plotPoints+1];\n\t\t\n\t\t\n\t\t//if both check boxes happen to be unticked, plot all four functions\n\t\tif(!settings.plotEandC && !settings.plotMandX){\n\t\t\tthis.plotE = true;\n\t\t\tthis.plotM = true;\n\t\t}\n\t\telse{\n\t\t\tthis.plotE = settings.plotEandC;\n\t\t\tthis.plotM = settings.plotMandX;\n\t\t}\n\t\t\n\t\tif(this.plotE){\t\n\t\t\tthis.E = new double[settings.plotPoints+1];\n\t\t\tthis.heatCapacity = new double[settings.plotPoints+1][2];\n\t\t}\n\t\t\n\t\tif(this.plotM){\n\t\t\tthis.absM = new double[settings.plotPoints+1];\n\t\t\tthis.susceptibility = new double[settings.plotPoints+1][2];\n\t\t}\n\t\t\n\t\t\n\t\tview.startAnimation();\n\t\tsimulationThread = new Thread(this);\n\t\tsimulationThread.start();\n\t}",
"private void _setWavelength(String name) {\n Wavelength oldValue = getWavelength();\n setWavelength(Wavelength.getWavelength(name, oldValue));\n }",
"public BehaviorPlugin(ParameterWrapper param) \n\t{\t\n\t\tthis.param = param;\n\t\trand = new Random();\n\t\tparam.color = new Color(rand.nextInt(255), rand.nextInt(255), rand.nextInt(255));\n\t\tif(param.speed <= 0.0)\n\t\t\tparam.speed = param.minSpeed;\n\t\n\t}",
"public void setSynth(Synthesizer synth) {\n\t\tthis.synth = synth;\n\t}",
"private void sendWave(){\n\t\tif(mainApp.getCommunication() == null){\n\t\t\tmainApp.showSetting();\n\t\t}\n\t\tif((mainApp.getCommunication() !=null)&&mainApp.getCommunication().isReady){\n\t\t\t//2 - Formulating data structure from the data filled\n\t\t\ttry{\n\t\t\t\tWaveConf waveCH0 = new WaveConf();\n\t\t\t\twaveCH0.setWaveType(getWaveformIndex(groupWaveTypeCH0));\n\t\t\t\twaveCH0.setFreq(getFreq(groupFreqCH0,\n\t\t\t\t\t\tFloat.parseFloat(freqFieldCH0.getText())));\n\t\t\t\tSystem.out.println(getAltitude(groupAltitudeCH0,\n\t\t\t\t\t\tFloat.parseFloat(altitudeFieldCH0.getText())));\n\t\t\t\twaveCH0.setAltitude(getAltitude(groupAltitudeCH0,\n\t\t\t\t\t\tFloat.parseFloat(altitudeFieldCH0.getText())));\n\t\t\t\twaveCH0.setOffset(Float.parseFloat(offsetFieldCH0.getText()));\n\t\t\t\tif(waveCH0.getWaveform() == WaveformConstants.WAVETYPE_SIN){\n\t\t\t\t\twaveCH0.setPhase(Float.parseFloat(dutyFieldCH0.getText()));\n\t\t\t\t}\n\t\t\t\telse if(waveCH0.getWaveform() == WaveformConstants.WAVETYPE_SQUARE){\n\t\t\t\t\twaveCH0.setDuty(Integer.parseInt(dutyFieldCH0.getText()));\n\t\t\t\t}\n\n\t\t\t\twaveCH0.setChannel(0);\n\t\t\t\t\n\t\t\t\t//3 - generate the command and data for MCU\n\t\t\t\tCommandGenerator cg = new CommandGenerator(waveCH0);\n\t\t\t\tbyte[] buffer = cg.generatePackage();\n\t\t\t\tCommunication comm = mainApp.getCommunication();\n\t\t\t\t\n\t\t\t\t//Send the command at most four times\n\t\t\t\tbyte ack = 0, times = 4;\n\t\t\t\twhile(ack != CommandGenerator.CMD_QUERY_CONFIGURED){\n\t\t\t\t\tcomm.send(buffer);\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\tcomm.delay();\n\t\t\t\t\t//Query if the device received successfully\n\t\t\t\t\tcomm.send(CommandGenerator.CMD_QUERY);\n\t\t\t\t\tack = comm.getResponse();\n\t\t\t\t\tSystem.out.println(\"ack = \"+ack);\n\t\t\t\t\tif(times-- == 0) throw new IOException();\n\t\t\t\t\tif(ack == CommandGenerator.CMD_QUERY_DISCONNECTED)\n\t\t\t\t\t\tthrow new IOException();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Parameters correctely sent!\");\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\tcomm.delay();\n\t\t\t\t\n\t\t\t\tbuffer = cg.genWaveform();\n\t\t\t\tbyte[] test = cg.generatePackage(buffer);\n\t\t\t\tfor(int i = 0; i < test.length; i++) System.out.printf(\"%x,\",test[i]);\n\t\t\t\tack = comm.send(test);\n\t\t\t\t//check if need to send data too.\n\t\t\t\t//cg.calcParameters();\n\t\t\t\t//4 - Sending the command or the data to MCU, if any error happens\n\t\t\t\t// generate communication error.\n\t\t\t\t//5 - wait for response and inform the user the results.\n\t\t\t\t\n\t\t\t\t//6 - All success, then we inform user and disable the buttons\n\t\t\t\tdisableChannel();\n\t\t\t\tAlert alert = new Alert(Alert.AlertType.INFORMATION);\n\t\t\t\talert.setTitle(\"A Canal 0 est¨¢ ligado.\");\n\t\t\t\talert.setHeaderText(\"Aviso: A Canal 0 est¨¢ ligado!\");\n\t\t\t\talert.setContentText(null);\n\t\t\t\talert.showAndWait();\t\n\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch (DataInvalidException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tswitchCH0.setSelected(false);\n\t\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Invalid Field\");\n\t\t\t\talert.setHeaderText(\"Please correct invalid fields\");\n\t\t\t\talert.setContentText(\"O Amplitude tem que ser dentro de [0.1,10] \"\n\t\t\t\t\t\t+ \"volts!\\n A frequ¨ºncia tem que ser dentro de [1,100kHz]\");\n\t\t\t\talert.showAndWait();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tswitchCH0.setSelected(false);\n\t\t\t\tmainApp.getCommunication().close();\n\t\t\t\tmainApp.setCommunication(null);\n\t\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Device connection error\");\n\t\t\t\talert.setHeaderText(\"Please check the state of the device\");\n\t\t\t\talert.setContentText(\"Connect to device fails!\");\n\t\t\t\talert.showAndWait();\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (purejavacomm.PureJavaIllegalStateException e){\n\t\t\t\tswitchCH0.setSelected(false);\n\t\t\t\tmainApp.getCommunication().close();\n\t\t\t\tmainApp.setCommunication(null);\n\t\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\t\talert.setTitle(\"Device connection error\");\n\t\t\t\talert.setHeaderText(\"Please check the state of the device\");\n\t\t\t\talert.setContentText(\"Connect to device fails!\");\n\t\t\t\talert.showAndWait();\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tswitchCH0.setSelected(false);\n\t\t\tAlert alert = new Alert(Alert.AlertType.ERROR);\n\t\t\talert.setTitle(\"Device connection error\");\n\t\t\talert.setHeaderText(\"Please check the state of the device\");\n\t\t\talert.setContentText(\"Connect to device fails!\");\n\t\t\talert.showAndWait();\n\t\t}\n\t}",
"public abstract void setDecimation(float decimation);",
"public void setParameters( float maxAmp, float attTime, float decTime, float susLvl, float relTime, float befAmp, float aftAmp)\n\t{\n\t\tmaxAmplitude = maxAmp;\n\t\tattackTime = attTime;\n\t\tdecayTime = decTime;\n\t\tsustainLevel = susLvl;\n\t\treleaseTime = relTime;\n\t\tbeforeAmplitude = befAmp;\n\t\tafterAmplitude = aftAmp;\n\t}",
"public void setSoundBehaviour(SoundBehaviour soundBehaviour) {\n\t\tthis.soundBehaviour = soundBehaviour;\n\t}",
"public void setRate();",
"@Override\n\tpublic void setSpeed(double speed) {\n\n\t}",
"@Override\r\n\tpublic void setWeight(double weight) {\n\t\t\r\n\t}",
"private void setWeight(float weight){\n this.weight = weight;\n }",
"public void setWavelength(double newValue) {\n double oldValue = getWavelength();\n if (oldValue != newValue) {\n _centralWavelength = newValue;\n firePropertyChange(WAVELENGTH_PROP.getName(), oldValue, newValue);\n }\n }",
"private void setInitializationParams() {\n\t\tint spreadRate = 130-((JSlider)components.get(\"spreadSlider\")).getValue();\n\t\tint intensity = ((JSlider)components.get(\"intensitySlider\")).getValue();\n\t\tint[] boatParams = new int[8];\n\t\tboatParams[0] = (int) ((JSpinner)components.get(\"cleanerSpinner\")).getValue();\n\t\tboatParams[1] = (int) ((JSpinner)components.get(\"cleanerFuelSpinner\")).getValue();\n\t\tboatParams[2] = (int) ((JSpinner)components.get(\"cleanerLoadSpinner\")).getValue();\n\t\tboatParams[3] = (int) ((JSpinner)components.get(\"collectorSpinner\")).getValue();\n\t\tboatParams[4] = (int) ((JSpinner)components.get(\"collectorFuelSpinner\")).getValue();\n\t\tboatParams[5] = (int) ((JSpinner)components.get(\"collectorLoadSpinner\")).getValue();\n\t\tboatParams[6] = (int) ((JSpinner)components.get(\"refuelSpinner\")).getValue();\n\t\tboatParams[7] = (int) ((JSpinner)components.get(\"refuelFuelSpinner\")).getValue();\n\t\tlog.info(\"Simulation initializing with spread rate \"+ spreadRate + \" and intensity \" + intensity);\n\t\tsimulateInitialConditions(spreadRate,boatParams,3,intensity);\n\t}",
"public void setWeight(int w){\n\t\tweight = w;\n\t}",
"public void changeWaveform(Toggle waveform) {\n\t\tsynth.disconnectInstrument();\n\t\t// Retrieve the waveform ID and set the waveform of the instrument\n\t\tint selectedWaveformID = Integer.parseInt(waveform.getUserData().toString());\n\t\tsynth.getSelectedInstrument().setWaveform(selectedWaveformID);\n\n\t\tsynth.connectInstrument();\n\t}",
"public void setSpeed(double speed)\r\n {\r\n this.speed = speed;\r\n }",
"void changeUpdateSpeed();",
"public void setWalkSpeed(int n)\n{\n walkSpeed = n;\n}",
"public void setWaveVehicles(int waveVehicles) {\n this.waveVehicles = waveVehicles;\n }",
"@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tdoSendOn(440, 1002);\n\t\t\t\tthirdSynthButtonOn.setEnabled(false);\n\t\t\t\tthirdSynthButtonOff.setEnabled(true);\n\t\t\t\tslider3.setEnabled(true);\n\t\t\t\tslider3.setValue(2050);\n\t\t\t\ttextBox3.setEnabled(true);\n\t\t\t\ttextBox3.setText(\"440.0\");\n\t\t\t}",
"public void setSpeed(double speed) {\n \tthis.speed = speed;\n }",
"public void activate(int which, float freq, int wf) {\n activate(1f, which, freq, wf);\n }",
"public void setParameters(MaterialParams mp);",
"void setCalibrationPeriod(double calibrationPeriod);",
"public void set(final float x, final float y, final float z, final float w)\n {\n this.x = x;\n this.y = y;\n this.z = z;\n this.w = w;\n }",
"public Oscilloscope(Main tempMain) {\r\n\r\n lowerFixes.add(\"m\");\r\n lowerFixes.add(\"mn\");\r\n lowerFixes.add(\"n\");\r\n lowerFixes.add(\"p\");\r\n\r\n higherFixes.add(\"K\");\r\n higherFixes.add(\"M\");\r\n higherFixes.add(\"G\");\r\n higherFixes.add(\"T\");\r\n\r\n\r\n\r\n //store the reference to main\r\n main=tempMain;\r\n\r\n //then we can add the canvas and graphics for displaying the wave\r\n canvas = new Canvas(canvasSizeXY, canvasSizeXY);\r\n gc = canvas.getGraphicsContext2D();\r\n this.setCenter(canvas);//and display that at the center of the pane\r\n\r\n //make the buttons\r\n\r\n\r\n\r\n\r\n\r\n TitledPane controlsPane = new TitledPane(\"Controls\" , makeControlsPane());\r\n TitledPane divisionsPane = new TitledPane(\"Divisions\" , makeDivisionsPane());\r\n TitledPane triggerPane = new TitledPane(\"Trigger\",makeTriggerPane());\r\n // TitledPane mathematicalWavePane = new TitledPane(\"Mathematical Wave\" , makeMathematicalWavePane());\r\n TitledPane displayPane = new TitledPane(\"Display\" , makeDisplayPane());\r\n TitledPane cursorPane = new TitledPane(\"Cursors\" , makeCursorPane());\r\n\r\n controlsPane.maxWidth(2000);\r\n\r\n\r\n ScrollPane sp=new ScrollPane();\r\n\r\n sp.maxWidth(2000);\r\n\r\n //We add these buttons to a horizontal layout box\r\n VBox Panes = new VBox();\r\n Panes.getChildren().addAll(controlsPane,divisionsPane,triggerPane,displayPane,cursorPane);\r\n Panes.setMaxWidth(2000);\r\n sp.setContent(Panes);\r\n //and add then add this boc to the boarder pane\r\n this.setRight(sp);\r\n\r\n\r\n\r\n //new we will add info for each wave\r\n VBox tempStrings = new VBox(MeasurementFrequency,MeasurementMin,MeasurementMax,MeasurementPeakToPeak,MeasurementRMS);\r\n this.setBottom(tempStrings);\r\n wave1=new ArrayList<>();\r\n wave1.add(0f);\r\n displayAllWaves();\r\n }",
"public SimulationSettings() {\r\n\t\tmaxParticles = 50000;\r\n\t\ttimeStep = 0.0166667;\r\n\t\tradius = 5;\r\n\t\tcollisionRadius = 3;\r\n\t\tp0 = 10;\r\n\t\ts = 0.3;\r\n\t\tb = 0.5;\r\n\t\tk = 2;\r\n\t\tkNear = 0.4;\r\n\t\tfriction = 0.6;\r\n\t\tgravity = new Gravity(0, 9.81);\r\n\t}",
"public abstract void setRate();",
"public void setBehavior(eBehavior behavior) {\n this.behavior = behavior;\n }",
"public void graphicalSettings(int ps, int tw, int th) {\n\n setZoom(ps);\n T_WIDTH = tw;\n T_HEIGHT = th;\n\n SCREEN_WIDTH = T_WIDTH * P_SCALE + EMBOSS;\n SCREEN_HEIGHT = T_HEIGHT * P_SCALE + EMBOSS;\n }",
"@Override\n\tpublic void setSpeed(float speed) {\n\t\t\n\t}",
"public void setWeights(float[][] w) {\n _w2D = w;\n _weights = true;\n }",
"public void setWind(float wind) {\n this.tx += wind;\n }",
"public void setDamping(float ratio) { \n \tmouseJointDef.dampingRatio = ratio; \n }",
"void setMotion(Vec3 motion);",
"public void wave() {\n leanRight = !leanRight;\n }",
"@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tdoSendOn(440, 1000);\n\t\t\t\tfirstSynthButtonOn.setEnabled(false);\n\t\t\t\tfirstSynthButtonOff.setEnabled(true);\n\t\t\t\ttextBox.setText(\"440.0\");\n\t\t\t\ttextBox.setEnabled(true);\n\t\t\t\tslider.setValue(2050);\n\t\t\t\tslider.setEnabled(true);\n\t\t\t}",
"@Override\n public void setPower(double power) {\n\n }",
"public void setPower(double pow){\n if(pow > 0) {\n crServo.setPower(ZERO_POWER_POSITION + (1 - ZERO_POWER_POSITION) * pow);\n } else if (pow < 0) {\n crServo.setPower(ZERO_POWER_POSITION * (1 + pow));\n } else {\n crServo.setPower(ZERO_POWER_POSITION);\n }\n }",
"public void setNewValues(){\n questionT = qMean.getText();\n phoneT = pMean.getText();\n doorT = dMean.getText();\n time = simTime.getText();\n simulation.setTime(time);\n simulation.setD(doorT);\n simulation.setP(phoneT);\n simulation.setQ(questionT);\n }",
"@Override\n\tpublic void set(double speed) {\n\t\tsuper.changeControlMode(TalonControlMode.PercentVbus);\n\t\tsuper.set(speed);\n\t\tsuper.enableControl();\n\t}",
"public Skeleton( int wave ){\n\tName = \"Skeleton\";\n\tHP = maxHP = 20 + ( wave * 20);\n\tAttack = (wave * 7);\n\tDefense = (wave * 4);\n\tSPDefense = (wave *2);\n\tAccuracy = (wave * 4);\n\tSpeed = .65;\n }",
"private void setRecognizerParam(SettingParams params) {\n if (mRecognizer == null)\n return;\n //清空所以参数\n mRecognizer.setParameter(SpeechConstant.PARAMS, null);\n //设置听写引擎\n mRecognizer.setParameter(SpeechConstant.ENGINE_TYPE, SpeechConstant.TYPE_CLOUD);\n //设置返回结果格式\n mRecognizer.setParameter(SpeechConstant.RESULT_TYPE, \"json\");\n //设置标点符号 0:无标点 1:有标点\n mRecognizer.setParameter(SpeechConstant.ASR_PTT, \"0\");\n //设置语言\n mRecognizer.setParameter(SpeechConstant.LANGUAGE, params.getRecognizerLanguage());\n //设置发音\n mRecognizer.setParameter(SpeechConstant.ACCENT, params.getRecognizerAccent());\n //设置语音前端点:静音超时时间,即用户多长时间不说话则当做超时处理\n mRecognizer.setParameter(SpeechConstant.VAD_BOS, params.getRecognizerBOS() + \"\");\n //设置语音后端点:后端点静音检测时间,即用户停止说话多长时间内即认为不再输入, 自动停止录音\n mRecognizer.setParameter(SpeechConstant.VAD_EOS, params.getRecognizerEOS() + \"\");\n\n //open translate in english mode\n if (isEnglishEnvironment) {\n mRecognizer.setParameter(SpeechConstant.ASR_SCH, \"0\");\n mRecognizer.setParameter(SpeechConstant.ADD_CAP, \"translate\");\n mRecognizer.setParameter(SpeechConstant.TRS_SRC, \"its\");\n mRecognizer.setParameter(SpeechConstant.ORI_LANG, \"en\");\n mRecognizer.setParameter(SpeechConstant.TRANS_LANG, \"cn\");\n }\n }",
"public void setWeights(double ACC, double ARM, double EVA, double HP, double INT,\n\t\t\tdouble LCK, double MAG, double MRE, double STR, double SP)\n\t{\n\t\tthis.statWeights = new double[10];\n\t\tstatWeights[0] = ACC;\n\t\tstatWeights[1] = ARM;\n\t\tstatWeights[2] = EVA;\n\t\tstatWeights[3] = HP;\n\t\tstatWeights[4] = INT;\n\t\tstatWeights[5] = LCK;\n\t\tstatWeights[6] = MAG;\n\t\tstatWeights[7] = MRE;\n\t\tstatWeights[8] = STR;\n\t\tstatWeights[9] = SP;\n\t}",
"public void setValue(double val) {\r\n\t\tthis.worth = val;\r\n\t}",
"public void setSampleMode( SampleMode sampleMode );",
"@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tdoSendOn(440, 1001);\n\t\t\t\tsecondSynthButtonOn.setEnabled(false);\n\t\t\t\tsecondSynthButtonOff.setEnabled(true);\n\t\t\t\tslider2.setEnabled(true);\n\t\t\t\tslider2.setValue(2050);\n\t\t\t\ttextBox2.setEnabled(true);\n\t\t\t\ttextBox2.setText(\"440.0\");\n\t\t\t}",
"void setVariation(double variation);",
"public WaveView() {\n initComponents();\n }",
"private void setZeroPowerBrakes() {\n //Initialize Mecanum Wheel DC Motor Behavior\n robot2.DriveRightFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n robot2.DriveRightRear.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n robot2.DriveLeftFront.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n robot2.DriveLeftRear.setZeroPowerBehavior(DcMotor.ZeroPowerBehavior.BRAKE);\n }",
"public void setWeight(final double pWeight){this.aWeight = pWeight;}"
] | [
"0.6507781",
"0.64673305",
"0.63442636",
"0.60766345",
"0.6059603",
"0.6046771",
"0.6017419",
"0.59314835",
"0.58821315",
"0.5857602",
"0.5846217",
"0.5835977",
"0.5793674",
"0.57784945",
"0.5776237",
"0.5749931",
"0.5745392",
"0.57111067",
"0.5694595",
"0.5671924",
"0.5663682",
"0.5639715",
"0.55596626",
"0.55472",
"0.5547165",
"0.5534989",
"0.5520018",
"0.55020595",
"0.5500674",
"0.55003554",
"0.54959375",
"0.5481897",
"0.54767436",
"0.545518",
"0.5449828",
"0.54475516",
"0.54391396",
"0.543224",
"0.54047066",
"0.54031074",
"0.53849614",
"0.5382505",
"0.53640634",
"0.5357916",
"0.53512627",
"0.5345583",
"0.53434205",
"0.5341726",
"0.53405535",
"0.5332062",
"0.5315147",
"0.5307756",
"0.53053826",
"0.5288658",
"0.5284104",
"0.5276862",
"0.52750194",
"0.52688605",
"0.5259549",
"0.5259361",
"0.5254384",
"0.52515763",
"0.5248586",
"0.5243733",
"0.5241141",
"0.5239617",
"0.52302384",
"0.52291536",
"0.52112806",
"0.5210611",
"0.52093405",
"0.5208532",
"0.5208075",
"0.5207754",
"0.52073747",
"0.5207015",
"0.52056485",
"0.52046067",
"0.5201509",
"0.5193328",
"0.5186002",
"0.51811856",
"0.5180439",
"0.5176321",
"0.51738536",
"0.516901",
"0.5168187",
"0.51652455",
"0.51576996",
"0.51571685",
"0.5155053",
"0.51535654",
"0.51535165",
"0.5151798",
"0.514785",
"0.5141246",
"0.514119",
"0.5139071",
"0.5138319",
"0.51378703"
] | 0.6374431 | 2 |
Retrieve a collection of descriptions of the possible victory conditions | Collection<String> getPossibleVictoryConditions(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Collection<String> getPossibleDefeatConditions();",
"@Override\n public VictoryConditionDetails getDetails() {\n Map<String, String> info = new LinkedHashMap<>();\n\n VictoryConditionDetails details = new VictoryConditionDetails();\n\n details.setKey(title);\n details.setInfo(info);\n\n info.put(\"Description:\", description);\n info.putAll(getShipEventInfo());\n info.put(\"Required Points:\", requiredPoints + \"\");\n\n return details;\n }",
"WinningCombination getDescription();",
"public String toString(){\r\n\t\tString cons = \"Conditions\\n\";\r\n\t\t//enhanced for loop could also be used\r\n\t\tfor(int i = 0; i<conditions.size(); i++){\r\n\t\t\tcons += conditions.get(i).getName()+\"\\n\";\r\n\t\t}\r\n\t\treturn \"Name : \" + fname + \" \" + lname+\"\\nDate Of Birth: \" + age+ \"\\n\" + cons; \r\n\t}",
"public static String [] getCond(){\n\t\treturn conditions;\n\t}",
"Conditions getConditions();",
"public int[] getConditions() { return conditional; }",
"io.dstore.values.StringValue getConditionList();",
"public String getIndicadorHabilitacionRuv(Map criteria);",
"private String E19Conditions() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 60;\n int leftMargin = 17;\n String tmp1 = \" \";\n String tmp2 = \" \";\n String tmp3 = \" \";\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_CONDITIONS + \"\\n\\n\");\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 0);\n\n if (data.getRiverstat().getMile() != HydroConstants.MISSING_VALUE) {\n tmp1 = String.format(\"%-6.1f\", data.getRiverstat().getMile());\n }\n if (data.getRiverstat().getDa() != HydroConstants.MISSING_VALUE) {\n tmp2 = String.format(\"%-6.1f\", data.getRiverstat().getDa());\n }\n if (data.getRiverstat().getPool() != HydroConstants.MISSING_VALUE) {\n tmp3 = String.format(\"%-6.1f\", data.getRiverstat().getPool());\n }\n\n buffer.append(String.format(\n \" MILES ABOVE MOUTH: %s%sDRAINAGE AREA: %s%sPOOL STAGE: %s\",\n tmp1, \" \", tmp2, \" \", tmp3));\n buffer.append(\"\\n\\n\\n\");\n\n buffer.append(\" STREAM BED: \");\n\n if (data.getDescrip().getBed() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getBed(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REACH: \");\n if (data.getDescrip().getReach() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getReach(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REGULATION: \");\n if (data.getDescrip().getRes() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getRes(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" DIVERSION: \");\n if (data.getDescrip().getDivert() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getDivert(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" WINTER: \");\n if (data.getDescrip().getIce() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getIce(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" TOPOGRAPHY: \");\n if (data.getDescrip().getTopo() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getTopo(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REMARKS: \");\n if (data.getDescrip().getRemark() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getRemark(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(0, buffer.toString()));\n\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String footer = createFooter(data, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_CONDITIONS, \"CONDITIONS\", null,\n E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n return buffer.toString();\n }",
"public String getConditiondescription() {\r\n return conditiondescription;\r\n }",
"public List<IndicatorCriteria> getIndicatorCriterias();",
"public List<ConditionalRequirement> getConditions() {\r\n return conditions;\r\n }",
"@Override\n\tpublic String toString () {\n\t\treturn \"[\" + phonstringCondition + \" (\" + minProb + \", \" + maxProb + \")\" + \"]\";\n\t}",
"public SearchCondition[] getConditions();",
"public String toString()\r\n {\r\n return String.format(getTexto()+\"|\"+getCondition());\r\n }",
"public abstract String[] getDescriptions();",
"private void displayConditions(){\n\n\t\tString[] possibleConditions = new String[countPossibleRoutes()];\n\t\tQuestionlistModel = new DefaultListModel();\n\t\t\n\t\tString currentRule = \"\";\n\t\tint currentRuleIndex;\n\t\tint possCondInd = 0;\n\t\t\n\t\tfor(int i=0;i<ConditionTree.length;i++){\n\t\t\tcurrentRule = ConditionTree[i][0];\n\t\t\tcurrentRuleIndex = i;\n\t\t\t \n\t\t\t// if current Rule is final rule\n\t\t\tif(ConditionTree[i][5].equals(\"Y\")){\n\t\t\t\t\n\t\t\t\tpossibleConditions[possCondInd] = String.valueOf(currentRuleIndex) + \",\";\n\t\t\t\t//loop until not founds the top rule\n\t\t\t\t//System.out.println(\"value of i: \" + possCondInd + \" \" + currentRule + \" index is:\" + currentRuleIndex);\n\t\t\t\twhile(!ConditionTree[currentRuleIndex][1].equals(\"-\")){\n\t\t\t\t\t//setting current rule to current parent rule\n\t\t\t\t\tcurrentRuleIndex = getRuleIndex(ConditionTree[currentRuleIndex][1]);\n\t\t\t\t\tcurrentRule = ConditionTree[currentRuleIndex][0];\n\t\t\t\t\tpossibleConditions[possCondInd] += String.valueOf(currentRuleIndex) + \",\";\n\t\t\t\t\t//System.out.println(\"value of i: \" + possCondInd + \" \" + currentRule + \" index is:\" + currentRuleIndex);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tpossibleConditions[possCondInd] = possibleConditions[possCondInd].substring(0, possibleConditions[possCondInd].length()-1);\n\t\t\t\t//System.out.println(possibleConditions[possCondInd]);\n\t\t\t\tpossCondInd++;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//Displaying in human language\n\t\tfor(int k=0;k<possibleConditions.length;k++){\n\t\t\tString currRoute[] = possibleConditions[k].split(\",\");\n\n\t\t\tint curRutInd;\n\t\t\tint nxtRutInd;\n\t\t\tString str = \"if \";\n\t\t\tfor(int i=currRoute.length-1;i>0;i--){\n\t\t\t\tcurRutInd = Integer.parseInt(currRoute[i-1]);\n\t\t\t\tnxtRutInd = Integer.parseInt(currRoute[i]);\n\t\t\t\t\n\t\t\t\tfor(int a=0;a<ConditionTree.length;a++){\n\n\t\t\t\t\tif(ConditionTree[a][0].equals(ConditionTree[curRutInd][1]) && \n\t\t\t\t\t\t\tConditionTree[a][1].equals(ConditionTree[nxtRutInd][1])){\n\t\t\t\t\t\t//System.out.println(ConditionTree[curRutInd][1] + \" is \" + ConditionTree[curRutInd][2] + \" \" + ConditionTree[curRutInd][3]);\n\t\t\t\t\t\tQuestionlistModel.addElement(ConditionTree[curRutInd][1] + \" is \" + ConditionTree[curRutInd][2] + \" \" + ConditionTree[curRutInd][3]);\n\t\t\t\t\t\tif(ConditionTree[curRutInd][5].equals(\"Y\")){\n\t\t\t\t\t\t\t//System.out.println(ConditionTree[curRutInd][0]);\n\t\t\t\t\t\t\tQuestionlistModel.addElement(ConditionTree[curRutInd][0]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tQuestionlistModel.addElement(\"\\n\");\n\t\t}\n\t\tQuestionList.setModel(QuestionlistModel);\n\t}",
"public String getDesc() {\r\n return \"能量变化范围详情\";\r\n }",
"public String getCollectCondition()\n\t{\n\t\tStringBuffer stbf = new StringBuffer(256) ;\n\t\tboolean existFlg = false ;\n\n\t\tfor (int i = 0; i < _searchKeyList.size(); i++)\n\t\t{\n\t\t\tKey ky = (Key)_searchKeyList.get(i) ;\n\t\t\tif (ky.getTableCollect() != null)\n\t\t\t{\n\n\t\t\t\t//#CM708969\n\t\t\t\t// Edit acquisition Condition + acquisition column when acquisition Condition is described clearly. \n\t\t\t\tif (!ky.getTableCollect().trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tstbf.append(ky.getTableCollect()) ;\n\t\t\t\t\tstbf.append(\"(\") ;\n\t\t\t\t\tstbf.append(ky.getTableColumn()) ;\n\t\t\t\t\tstbf.append(\") \") ;\n\t\t\t\t\tint wPnt = ky.getTableColumn().indexOf(\".\") ;\n\n\t\t\t\t\tif (wPnt >= 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tstbf.append(ky.getTableColumn().substring((wPnt + 1))) ;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tstbf.append(ky.getTableColumn()) ;\n\t\t\t\t\t}\n\t\t\t\t\tstbf.append(\", \") ;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tstbf.append(ky.getTableColumn()) ;\n\t\t\t\t\tstbf.append(\", \") ;\n\t\t\t\t}\n\n\t\t\t\tif (existFlg == false)\n\t\t\t\t\texistFlg = true ;\n\t\t\t}\n\t\t}\n\t\t//#CM708970\n\t\t// Return '*' as all item acquisition when data is not set in the key value. \n\t\tif (existFlg == false)\n\t\t\treturn null ;\n\n\t\t//#CM708971\n\t\t// The last \"\"is removed because it is extra. \n\t\tint ep = stbf.toString().lastIndexOf(\",\") ;\n\t\treturn stbf.toString().substring(0, ep) ;\n\t}",
"HashMap<String, String> getAdditionalDescriptions();",
"private void fillTrialConditionsData() {\n List<Condition> trialConditions = new ArrayList<Condition>();\n\n int instanceCounter = 1;\n for (Condition condition : this.workbookStudy.getConditions()) {\n if (condition.getDataType().equals(DATA_TYPE_CHAR)) {\n// LevelC levelCFilter = new LevelC(true);\n// LevelCPK levelCPK = new LevelCPK();\n// levelCPK.setLabelid(condition.getLabelId());\n// levelCFilter.setFactorid(condition.getFactorId());\n// levelCFilter.setLevelCPK(levelCPK);\n// List<LevelC> levelCList = this.servicioApp.getListLevelC(levelCFilter, 0, 0, false);\n List<LevelC> levelCList = condition.getFactor().getLevelsC();\n instanceCounter = 1;\n for (LevelC levelC : levelCList) {\n try {\n Condition conditionToAdd = new Condition();\n BeanUtilsBean.getInstance().copyProperties(conditionToAdd, condition);\n conditionToAdd.setValue(levelC.getLvalue());\n conditionToAdd.setInstance(instanceCounter);\n conditionToAdd.setLevelNo(levelC.getLevelCPK().getLevelno());\n trialConditions.add(conditionToAdd);\n instanceCounter++;\n } catch (IllegalAccessException ex) {\n Exceptions.printStackTrace(ex);\n } catch (InvocationTargetException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n } else if (condition.getDataType().equals(DATA_TYPE_NUMERIC)) {\n// LevelN levelNFilter = new LevelN(true);\n// LevelNPK levelnPK = new LevelNPK();\n// levelnPK.setLabelid(condition.getLabelId());\n// levelNFilter.setFactorid(condition.getFactorId());\n// levelNFilter.setLevelNPK(levelnPK);\n// List<LevelN> levelNList = this.servicioApp.getListLevelN(levelNFilter, 0, 0, false);\n List<LevelN> levelNList = condition.getFactor().getLevelsN();\n instanceCounter = 1;\n for (LevelN levelN : levelNList) {\n try {\n Condition conditionToAdd = new Condition();\n BeanUtilsBean.getInstance().copyProperties(conditionToAdd, condition);\n conditionToAdd.setValue(DecimalUtils.getValueAsString(levelN.getLvalue()));\n conditionToAdd.setInstance(instanceCounter);\n conditionToAdd.setLevelNo(levelN.getLevelNPK().getLevelno());\n trialConditions.add(conditionToAdd);\n instanceCounter++;\n } catch (IllegalAccessException ex) {\n Exceptions.printStackTrace(ex);\n } catch (InvocationTargetException ex) {\n Exceptions.printStackTrace(ex);\n }\n }\n }\n }\n\n Comparator<Condition> conditionComparator = new Comparator<Condition>() {\n\n @Override\n public int compare(Condition o1, Condition o2) {\n return o1.getInstance().compareTo(o2.getInstance());\n }\n };\n\n Collections.sort(trialConditions, conditionComparator);\n\n this.workbookStudy.setConditionsData(trialConditions);\n }",
"private String getEvidence(String criteriaMet, Map<String, List<Info>> criteria) {\n\t\tString ret = criteriaMet+\" \";\n\t\tString[] crit = criteriaMet.split(\":\");\n\t\t\n\t\tfor(int i=0; i<crit.length; i++) {\n\t\t\tList<Info> info = criteria.get(crit[i]);\n\t\t\tif(info==null) {\n\t\t\t\tSystem.out.println(crit[i] + \" has NO Info\");\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tret += \"<\"+crit[i]+\">\";\n\t\t\t\n\t\t\tint cnt=0;\n\t\t\tfor(Info in : info) {\n\t\t\t\tif(cnt>0) ret += \"~~\";\n\t\t\t\tret += in.docName+\"::\"+in.section+\"::\"+in.concept+\"::\"+in.sentence;\n\t\t\t\tcnt++;\n\t\t\t}\t\n\t\t}\n\t\t\n\t\treturn ret;\n\t}",
"private void addAllowedCheats() {\r\n\t\tresourcesForCheat = new Vector<String>();\r\n\t\tresourcesForCheat.add(\"wool\"); //$NON-NLS-1$\r\n\t\tresourcesForCheat.add(\"brick\"); //$NON-NLS-1$\r\n\t\tresourcesForCheat.add(\"grain\"); //$NON-NLS-1$\r\n\t\tresourcesForCheat.add(\"ore\"); //$NON-NLS-1$\r\n\t\tresourcesForCheat.add(\"lumber\"); //$NON-NLS-1$\r\n\t\tresourcesForCheat.add(\"all\");\t //$NON-NLS-1$\r\n\t}",
"public List<ICondition> getConditions()\r\n\t{\r\n\t\treturn conditions;\r\n\t}",
"public Condition [] getConditions() {\n return this.Conditions;\n }",
"public void testAllMedicalConditionParametersPopulated() {\n Map<String, MedicalCondition> conditions = cache.getConditions(Service.NOTIFY);\n MedicalCondition condition = conditions.get(DIABETES_CONDITION);\n\n assertNotNull(condition);\n\n assertEquals(\"DIAB\", condition.getID());\n assertEquals(\"Diabetes\", condition.getTitle());\n assertEquals(\"diabetes\", condition.getName());\n assertEquals(EMPTY, condition.getType());\n assertEquals(\"DIAB1\", condition.getForm());\n assertEquals(DIABETES_CONDITION, condition.getDomain());\n assertEquals(\"diabetes-with-insulin\", condition.getStart());\n assertEquals(\"diabetes\", condition.getDomain());\n assertEquals(\"diabetes-driving\", condition.getInformation());\n assertTrue(condition.getSynonyms().isEmpty());\n assertEquals(1, condition.getCasp().size());\n assertTrue(condition.getCasp().contains(\"D01\"));\n assertEquals(condition.getCeg(), \"101\");\n assertEquals(Severity.NOTIFIABLE, condition.getSeverity());\n assertEquals(Boolean.TRUE, condition.getEnabled());\n\n assertNotNull(condition.toString());\n }",
"public String toString() {\n StringBuilder out = new StringBuilder(\"Requirements:\\n\");\n for (Fact fact: requiredFacts) {\n out.append(fact.toString());\n if (requiredFacts.indexOf(fact) < requiredFacts.size() - 1) out.append(reqIsAnd ? \"AND\\n\" : \"OR\\n\");\n }\n return out.toString();\n }",
"java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();",
"<T> List<Suggest<T>> getPossibleValues(ActionDescriptor<? extends ActionInputParameter> actionDescriptor);",
"public List<Flow.Significance> getSignificanceToTargetChoices() {\n List<Flow.Significance> significances = new ArrayList<Flow.Significance>();\n significances.add( Flow.Significance.Useful );\n significances.add( Flow.Significance.Critical );\n significances.add( Flow.Significance.Terminates );\n if ( !getFlow().isAskedFor() ) significances.add( Flow.Significance.Triggers );\n return significances;\n }",
"Set<Condition> getDeclaredInstanceInvariantConditions();",
"String getCondition();",
"public abstract List<String> getValidDescriptors();",
"public String toString()\r\n\t{\r\n\t\tStringBuffer strBuffer = new StringBuffer();\r\n\t\tstrBuffer.append(\"{\");\r\n\t\tstrBuffer.append(\"criteriaType:\");\r\n\t\tstrBuffer.append(getCriteriaType());\r\n\t\tstrBuffer.append(\",criteriaValues:\");\r\n\t\tstrBuffer.append(getCriteriaValues());\r\n\t\tstrBuffer.append(\"}\");\r\n\t\treturn strBuffer.toString();\r\n\t}",
"public void testAllSupportedMedicalConditionsForNotify() {\n Map<String, MedicalCondition> conditions = cache.getConditions(Service.NOTIFY);\n assertEquals(165, conditions.size());\n }",
"public List<CatalogDescription> getCatalogDescriptions(Map<String, String> eqCriteria, Map<String, String> searchCriteria);",
"public List<SortedBag<Card>> possibleClaimCards() {\n List<SortedBag<Card>> cardCombinations = new ArrayList<>();\n List<Color> colors;\n boolean isUnderground = level == Level.UNDERGROUND;\n if (color == null) {\n colors = Color.ALL;\n } else {\n colors = List.of(color);\n }\n if (isUnderground) {\n for (int i = 0; i < length; i++) {\n for (Color c : colors) {\n cardCombinations.add(SortedBag.of(length - i, Card.of(c), i, Card.LOCOMOTIVE));\n }\n }\n //add all locomotive combination at end\n cardCombinations.add(SortedBag.of(length, Card.LOCOMOTIVE));\n }\n if (!isUnderground) {\n for (Color c : colors) {\n cardCombinations.add(SortedBag.of(length, Card.of(c)));\n }\n }\n\n return cardCombinations;\n }",
"public String description(DurableObject obj) {\n\t\treturn mapper.apply(obj.condition());\n\t}",
"public void displayPolicy() {\n int noOfRows = environment.getRows();\n int noOfColumns = environment.getColumns();\n\n for (int i = 0; i < noOfRows; i++) {\n for (int j = 0; j < noOfColumns; j++) {\n if (!environment.getTile(i, j).getTileType().equals(\"WALL\")) {\n String action = environmentUtilities[i][j].getAction();\n switch(action){\n case \"Up\":\n action = \"^\";\n break;\n case \"Right\":\n action = \">\";\n break;\n case \"Left\":\n action = \"<\";\n break;\n case \"Down\":\n action = \"v\";\n break;\n }\n System.out.print(\"[\" + action + \"]\");\n }\n else {\n System.out.print(\"[X]\");\n }\n }\n System.out.print(\"\\n\");\n }\n }",
"public int getVictoryCards() {\n \t\treturn victory;\n \t}",
"public String getChoices() {\r\n\t\tString choice = \"\";\r\n\t\tfor(int i = 0; i < 4; i++) {\r\n\t\t\tchoice += i + 1 + \") \" + choices[i].getChoice() + \"\\n\";\r\n\t\t}\r\n\t\treturn choice;\r\n\t}",
"com.google.protobuf.ByteString getConditionBytes();",
"protected void initSpecSpecificConditions() {\r\n // THESE ARE ALL FOR MAF SPEC 1.0 ONLY\r\n\r\n //If variant_Type is \"ins\" Reference_Allele should always be \"-\",\r\n conditions.add(new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_REFERENCE_ALLELE, Pattern.compile(\"[^\\\\-]\"), \"contain anything but '-' characters\", true));\r\n // and either of Tumor_Seq_Allele1 and Tumor_Seq_Allele2 should have \"-\".\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_TUMOR_SEQ_ALLELE1, Pattern.compile(\"-\"), \"contain at least one '-'\", false),\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_TUMOR_SEQ_ALLELE2, Pattern.compile(\"-\"), \"contain at least one '-'\", false)));\r\n //If variant_Type is \"del\", then Reference_Allele can't contain \"-\",\r\n conditions.add(new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_REFERENCE_ALLELE, Pattern.compile(\"-\"), \"contain any '-' characters\", true));\r\n // and either Tumor_Seq_Allele1 or Tumor_Seq_Allele2 should contain \"-\".\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_TUMOR_SEQ_ALLELE1, Pattern.compile(\"-\"), \"contain at least one '-'\", false),\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_TUMOR_SEQ_ALLELE2, Pattern.compile(\"-\"), \"contain at least one '-'\", false)));\r\n\r\n //If validation_status is \"wildtype\", then Tumor_Seq_Allele1=Tumor_Seq_Allele2\r\n //and Tumor_Seq_Allele1=Reference_Allele)\r\n conditions.add(new ConditionalRequirement(FIELD_VALIDATION_STATUS, VALIDATION_STATUS_WILDTYPE, FIELD_TUMOR_SEQ_ALLELE1, FIELD_TUMOR_SEQ_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(FIELD_VALIDATION_STATUS, VALIDATION_STATUS_WILDTYPE, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, false));\r\n\r\n // if mutation_status is germline, tumor_seql_allele1 must be equal to match_norm_seq_allele1\r\n conditions.add(new ConditionalRequirement(FIELD_MUTATION_STATUS, MUTATION_STATUS_GERMLINE, FIELD_TUMOR_SEQ_ALLELE1,\r\n FIELD_MATCH_NORM_SEQ_ALLELE1, false));\r\n conditions.add(new ConditionalRequirement(FIELD_MUTATION_STATUS, MUTATION_STATUS_GERMLINE, FIELD_TUMOR_SEQ_ALLELE2,\r\n FIELD_MATCH_NORM_SEQ_ALLELE2, false));\r\n // if mutation_status is somatic and validation status is valid, then Match_Norm_Validation_Allele1 should equal Reference_Allele\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE1,\r\n FIELD_REFERENCE_ALLELE, false));\r\n // if mutation_status is somatic and validation status is valid, then Match_Norm_Validation_Allele2 should equal Reference_Allele\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE2,\r\n FIELD_REFERENCE_ALLELE, false));\r\n // if mutation_status is somatic and validation status is valid, then either Tumor_Seq_Allele1 or Tumor_Seq_Allele2 should NOT match Reference_Allele\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, true), // not\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_TUMOR_SEQ_ALLELE2, FIELD_REFERENCE_ALLELE, true))); // not\r\n\r\n //If Mutation_Status == LOH AND Validation_Status==Unknown, then\r\n //Tumor_Seq_Allele1 == Tumor_Seq_Allele2 and\r\n //Match_Norm_Seq_Allele1 != Match_Norm_Seq_Allele2 and\r\n //Tumor_Seq_Allele1 = (Match_Norm_Seq_Allele1 or Match_Norm_Seq_Allele2)\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_TUMOR_SEQ_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_MATCH_NORM_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE2, true)); // not\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE1, false),\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE2, false)));\r\n //If Mutation_Status == LOH AND Validation_Status==Valid, then\r\n //Tumor_Validation_Allele1 == Tumor_Validation_Allele2 and\r\n //Match_Norm_Validation_Allele1 != Match_Norm_Validation_Allele2 and\r\n //Tumor_Validation_Allele1 == (Match_Norm_Validation_Allele1 or Match_Norm_Validation_Allele2).\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_TUMOR_VALIDATION_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE2, true)); // not\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE1, false),\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE2, false)));\r\n // Tumor_Seq_Allele1 != Reference_Allele OR Tumor_Seq_Allele2 != Reference_Allele\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{}, new String[]{}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, true),\r\n new ConditionalRequirement(new String[]{}, new String[]{}, FIELD_TUMOR_SEQ_ALLELE2, FIELD_REFERENCE_ALLELE, true)));\r\n\r\n }",
"public static List<Question> getQuestions() {\n if (QUESTION == null) {\n QUESTION = new ArrayList<>();\n List<Option> options = new ArrayList<Option>();\n options.add(new Option(1, \"Radio Waves\"));\n options.add(new Option(2, \"Sound Waves\"));\n options.add(new Option(3, \"Gravity Waves\"));\n options.add(new Option(4, \"Light Waves\"));\n QUESTION.add(new Question(1, \"Which kind of waves are used to make and receive cellphone calls?\", getCategory(4), options, options.get(0)));\n\n List<Option> options2 = new ArrayList<Option>();\n options2.add(new Option(1, \"8\"));\n options2.add(new Option(2, \"6\"));\n options2.add(new Option(3, \"3\"));\n options2.add(new Option(4, \"1\"));\n QUESTION.add(new Question(2, \"How many hearts does an octopus have?\", getCategory(4), options2, options2.get(2)));\n\n List<Option> options3 = new ArrayList<Option>();\n options3.add(new Option(1, \"Newton's Law\"));\n options3.add(new Option(2, \"Hooke's law\"));\n options3.add(new Option(3, \"Darwin's Law\"));\n options3.add(new Option(4, \"Archimedes' principle\"));\n QUESTION.add(new Question(3, \"Whose law states that the force needed to extend a spring by some distance is proportional to that distance?\", getCategory(4), options3, options3.get(1)));\n\n List<Option> options4 = new ArrayList<Option>();\n options4.add(new Option(1, \"M\"));\n options4.add(new Option(2, \"$\"));\n options4.add(new Option(3, \"W\"));\n options4.add(new Option(4, \"#\"));\n QUESTION.add(new Question(4, \"What is the chemical symbol for tungsten?\", getCategory(4), options4, options4.get(2)));\n\n List<Option> options5 = new ArrayList<Option>();\n options5.add(new Option(1, \"Pulsar\"));\n options5.add(new Option(2, \"Draconis\"));\n options5.add(new Option(3, \"Aludra\"));\n options5.add(new Option(4, \"Alwaid\"));\n QUESTION.add(new Question(5, \"What is a highly magnetized, rotating neutron star that emits a beam of electromagnetic radiation?\", getCategory(4), options5, options5.get(0)));\n\n List<Option> options6 = new ArrayList<Option>();\n options6.add(new Option(1, \"2\"));\n options6.add(new Option(2, \"4\"));\n options6.add(new Option(3, \"7\"));\n options6.add(new Option(4, \"10\"));\n QUESTION.add(new Question(6, \"At what temperature is Centigrade equal to Fahrenheit?\", getCategory(4), options6, options6.get(2)));\n\n List<Option> options7 = new ArrayList<Option>();\n options7.add(new Option(1, \"Temperature\"));\n options7.add(new Option(2, \"Distance\"));\n options7.add(new Option(3, \"Light Intensity\"));\n options7.add(new Option(4, \"Noise\"));\n QUESTION.add(new Question(7, \"Kelvin is a unit to measure what?\", getCategory(4), options7, options7.get(2)));\n\n List<Option> options8 = new ArrayList<Option>();\n options8.add(new Option(1, \"Mars\"));\n options8.add(new Option(2, \"Jupiter\"));\n options8.add(new Option(3, \"Saturn\"));\n options8.add(new Option(4, \"Neptune\"));\n QUESTION.add(new Question(8, \"Triton is the largest moon of what planet?\", getCategory(4), options8, options8.get(3)));\n\n List<Option> options9 = new ArrayList<Option>();\n options9.add(new Option(1, \"Brain\"));\n options9.add(new Option(2, \"Heart\"));\n options9.add(new Option(3, \"Lungs\"));\n options9.add(new Option(4, \"Skin\"));\n QUESTION.add(new Question(9, \"What is the human body’s biggest organ?\", getCategory(4), options9, options9.get(3)));\n\n List<Option> options10 = new ArrayList<Option>();\n options10.add(new Option(1, \"Skull\"));\n options10.add(new Option(2, \"Knee Cap\"));\n options10.add(new Option(3, \"Shoulder Joint\"));\n options10.add(new Option(4, \"Backbone\"));\n QUESTION.add(new Question(10, \"What is the more common name for the patella?\", getCategory(4), options10, options10.get(1)));\n\n List<Option> options11 = new ArrayList<Option>();\n options11.add(new Option(1, \"Mother India\"));\n options11.add(new Option(2, \"The Guide\"));\n options11.add(new Option(3, \"Madhumati\"));\n options11.add(new Option(4, \"Amrapali\"));\n QUESTION.add(new Question(11, \"Which was the 1st Indian movie submitted for Oscar?\", getCategory(1), options11, options11.get(0)));\n\n List<Option> options12 = new ArrayList<Option>();\n options12.add(new Option(1, \"Gunda\"));\n options12.add(new Option(2, \"Sholey\"));\n options12.add(new Option(3, \"Satte pe Satta\"));\n options12.add(new Option(4, \"Angoor\"));\n QUESTION.add(new Question(12, \"Which film is similar to Seven Brides For Seven Brothers?\", getCategory(1), options12, options12.get(2)));\n\n List<Option> options13 = new ArrayList<Option>();\n options13.add(new Option(1, \"Rocky\"));\n options13.add(new Option(2, \"Pancham\"));\n options13.add(new Option(3, \"Chichi\"));\n options13.add(new Option(4, \"Chintu\"));\n QUESTION.add(new Question(13, \"Music Director R.D. Burman is also known as?\", getCategory(1), options13, options13.get(1)));\n\n List<Option> options14 = new ArrayList<Option>();\n options14.add(new Option(1, \"Nagarjuna\"));\n options14.add(new Option(2, \"Chiranjeevi\"));\n options14.add(new Option(3, \"Rajinikanth\"));\n options14.add(new Option(4, \"NTR\"));\n QUESTION.add(new Question(14, \"Shivaji Rao Gaikwad is the real name of which actor?\", getCategory(1), options14, options14.get(2)));\n\n List<Option> options15 = new ArrayList<Option>();\n options15.add(new Option(1, \"Geraftaar\"));\n options15.add(new Option(2, \"Hum\"));\n options15.add(new Option(3, \"Andha kanoon\"));\n options15.add(new Option(4, \"Agneepath\"));\n QUESTION.add(new Question(15, \"Name the film in which Amitabh Bachchan, Rajinikanth and Kamal Hasan worked together.\", getCategory(1), options15, options15.get(0)));\n\n List<Option> options16 = new ArrayList<Option>();\n options16.add(new Option(1, \"AR Rahman\"));\n options16.add(new Option(2, \"Bhanu Athaiya\"));\n options16.add(new Option(3, \"Gulzar\"));\n options16.add(new Option(4, \"Rasul Pookutty\"));\n QUESTION.add(new Question(16, \"First Indian to win Oscar award?\", getCategory(1), options16, options16.get(1)));\n\n List<Option> options17 = new ArrayList<Option>();\n options17.add(new Option(1, \"Jab tak hai jaan\"));\n options17.add(new Option(2, \"Rab ne bana di jodi\"));\n options17.add(new Option(3, \"Veer zara\"));\n options17.add(new Option(4, \"Ek tha tiger\"));\n QUESTION.add(new Question(17, \"Which was the last movie directed by Yash Chopra?\", getCategory(1), options17, options17.get(0)));\n\n\n List<Option> options18 = new ArrayList<Option>();\n options18.add(new Option(1, \"‘Thala’ Ajith\"));\n options18.add(new Option(2, \"Arjun Sarja\"));\n options18.add(new Option(3, \"Ashutosh Gawariker\"));\n options18.add(new Option(4, \"AK Hangal\"));\n QUESTION.add(new Question(18, \"\\\"Itna sannata kyun hai bhai?\\\" Who said this, now legendary words, in 'Sholay'?\", getCategory(1), options18, options18.get(3)));\n\n List<Option> options19 = new ArrayList<Option>();\n options19.add(new Option(1, \"Tommy\"));\n options19.add(new Option(2, \"Tuffy\"));\n options19.add(new Option(3, \"Toffy\"));\n options19.add(new Option(4, \"Timmy\"));\n QUESTION.add(new Question(19, \"What was the name of Madhuri Dixit’s dog in Hum Aapke Hain Koun?\", getCategory(1), options19, options19.get(1)));\n\n List<Option> options20 = new ArrayList<Option>();\n options20.add(new Option(1, \"Premnath\"));\n options20.add(new Option(2, \"Dilip Kumar\"));\n options20.add(new Option(3, \"Raj Kapoor\"));\n options20.add(new Option(4, \"Kishore Kumar\"));\n QUESTION.add(new Question(20, \"Beautiful actress Madhubala was married to?\", getCategory(1), options20, options20.get(3)));\n\n\n List<Option> options21 = new ArrayList<Option>();\n options21.add(new Option(1, \"Sher Khan\"));\n options21.add(new Option(2, \"Mufasa\"));\n options21.add(new Option(3, \"Simba\"));\n options21.add(new Option(4, \"Sarabi\"));\n QUESTION.add(new Question(21, \"What is the name of the young lion whose story is told in the musical 'The Lion King'?\", getCategory(2), options21, options21.get(2)));\n\n List<Option> options22 = new ArrayList<Option>();\n options22.add(new Option(1, \"Scotland\"));\n options22.add(new Option(2, \"England\"));\n options22.add(new Option(3, \"Germany\"));\n options22.add(new Option(4, \"Netherland\"));\n QUESTION.add(new Question(22, \"Which country's freedom struggle is portrayed in the Mel Gibson movie 'Braveheart'?\", getCategory(2), options22, options22.get(0)));\n\n List<Option> options23 = new ArrayList<Option>();\n options23.add(new Option(1, \"Letters to Juliet\"));\n options23.add(new Option(2, \"Saving Private Ryan\"));\n options23.add(new Option(3, \"Forest Gump\"));\n options23.add(new Option(4, \"Gone With The Wind\"));\n QUESTION.add(new Question(23, \"Which movie had this dialogue \\\"My mama always said, life was like a box of chocolates. You never know what you're gonna get.\", getCategory(2), options23, options23.get(2)));\n\n List<Option> options24 = new ArrayList<Option>();\n options24.add(new Option(1, \"Die\"));\n options24.add(new Option(2, \"Golden\"));\n options24.add(new Option(3, \"Casino\"));\n options24.add(new Option(4, \"Never\"));\n QUESTION.add(new Question(24, \"Excluding \\\"the\\\", which word appears most often in Bond movie titles?\", getCategory(2), options24, options24.get(3)));\n\n List<Option> options25 = new ArrayList<Option>();\n options25.add(new Option(1, \"Bishop\"));\n options25.add(new Option(2, \"Ash\"));\n options25.add(new Option(3, \"Call\"));\n options25.add(new Option(4, \"Carlos\"));\n QUESTION.add(new Question(25, \"Name the android in movie Alien \", getCategory(2), options25, options25.get(1)));\n\n List<Option> options26 = new ArrayList<Option>();\n options26.add(new Option(1, \"Gone with the wind\"));\n options26.add(new Option(2, \"Home footage\"));\n options26.add(new Option(3, \"With Our King and Queen Through India\"));\n options26.add(new Option(4, \"Treasure Island\"));\n QUESTION.add(new Question(26, \"Which was the first colour film to win a Best Picture Oscar?\", getCategory(2), options26, options26.get(0)));\n\n List<Option> options27 = new ArrayList<Option>();\n options27.add(new Option(1, \"Robert Redford\"));\n options27.add(new Option(2, \"Michael Douglas\"));\n options27.add(new Option(3, \"Harrison Ford\"));\n options27.add(new Option(4, \"Patrick Swayze\"));\n QUESTION.add(new Question(27, \"Who played the male lead opposite Sharon Stone in the hugely successful movie 'The Basic Instinct'?\", getCategory(2), options27, options27.get(1)));\n\n List<Option> options28 = new ArrayList<Option>();\n options28.add(new Option(1, \"10,000 BC\"));\n options28.add(new Option(2, \"Day after tomorrow\"));\n options28.add(new Option(3, \"2012\"));\n options28.add(new Option(4, \"The Noah's Ark Principle\"));\n QUESTION.add(new Question(28, \"Which Roland Emmerich movie portrays fictional cataclysmic events that were to take place in early 21st century?\", getCategory(2), options28, options28.get(2)));\n\n List<Option> options29 = new ArrayList<Option>();\n options29.add(new Option(1, \"Finding Nemo\"));\n options29.add(new Option(2, \"The Incredibles\"));\n options29.add(new Option(3, \"Monsters, Inc.\"));\n options29.add(new Option(4, \"Toy Story\"));\n QUESTION.add(new Question(29, \"What was the first movie by Pixar to receive a rating higher than G in the United States?\", getCategory(2), options29, options29.get(1)));\n\n List<Option> options30 = new ArrayList<Option>();\n options30.add(new Option(1, \"Draco\"));\n options30.add(new Option(2, \"Harry\"));\n options30.add(new Option(3, \"Hermione\"));\n options30.add(new Option(4, \"Ron\"));\n QUESTION.add(new Question(30, \"In the 'Prisoner of Azkaban', who throws rocks at Hagrid's hut so that Harry, Ron and Hermione can leave?\", getCategory(2), options30, options30.get(2)));\n\n List<Option> options31 = new ArrayList<Option>();\n options31.add(new Option(1, \"Brett Lee\"));\n options31.add(new Option(2, \"Adam Gilchrist\"));\n options31.add(new Option(3, \"Jason Gillespie\"));\n options31.add(new Option(4, \"Glenn McGrath\"));\n QUESTION.add(new Question(31, \"'Dizzy' is the nickname of what Australian player?\", getCategory(3), options31, options31.get(2)));\n\n List<Option> options32 = new ArrayList<Option>();\n options32.add(new Option(1, \"1883 between Australia and Wales\"));\n options32.add(new Option(2, \"1844 between Canada and the USA\"));\n options32.add(new Option(3, \"1869 between England and Australia\"));\n options32.add(new Option(4, \"1892 between England and India\"));\n QUESTION.add(new Question(32, \"In what year was the first international cricket match held?\", getCategory(3), options32, options32.get(1)));\n\n List<Option> options33 = new ArrayList<Option>();\n options33.add(new Option(1, \"Salim Durrani\"));\n options33.add(new Option(2, \"Farooq Engineer\"));\n options33.add(new Option(3, \"Vijay Hazare\"));\n options33.add(new Option(4, \"Mansur Ali Khan Pataudi\"));\n QUESTION.add(new Question(33, \"Which former Indian cricketer was nicknamed 'Tiger'?\", getCategory(3), options33, options33.get(3)));\n\n List<Option> options34 = new ArrayList<Option>();\n options34.add(new Option(1, \"Piyush Chawla\"));\n options34.add(new Option(2, \"Gautam Gambhir\"));\n options34.add(new Option(3, \"Irfan Pathan\"));\n options34.add(new Option(4, \"Suresh Raina\"));\n QUESTION.add(new Question(34, \"Who was named as the ICC Emerging Player of the Year 2004?\", getCategory(3), options34, options34.get(2)));\n\n List<Option> options35 = new ArrayList<Option>();\n options35.add(new Option(1, \"Subhash Gupte\"));\n options35.add(new Option(2, \"M.L.Jaisimha\"));\n options35.add(new Option(3, \"Raman Lamba\"));\n options35.add(new Option(4, \"Lala Amarnath\"));\n QUESTION.add(new Question(35, \"Which cricketer died on the field in Bangladesh while playing for Abahani Club?\", getCategory(3), options35, options35.get(2)));\n\n List<Option> options36 = new ArrayList<Option>();\n options36.add(new Option(1, \"V. Raju\"));\n options36.add(new Option(2, \"Rajesh Chauhan\"));\n options36.add(new Option(3, \"Arshad Ayub\"));\n options36.add(new Option(4, \"Narendra Hirwani\"));\n QUESTION.add(new Question(36, \"In 1987-88, which Indian spinner took 16 wickets on his Test debut?\", getCategory(3), options36, options36.get(3)));\n\n List<Option> options37 = new ArrayList<Option>();\n options37.add(new Option(1, \"Ravi Shastri\"));\n options37.add(new Option(2, \"Dilip Vengsarkar\"));\n options37.add(new Option(3, \"Sachin Tendulkar\"));\n options37.add(new Option(4, \"Sanjay Manjrekar\"));\n QUESTION.add(new Question(37, \"Which former Indian Test cricketer equalled Gary Sobers world record of six sixes in an over in a Ranji Trophy match?\", getCategory(3), options37, options37.get(0)));\n\n List<Option> options38 = new ArrayList<Option>();\n options38.add(new Option(1, \"Mohsin khan\"));\n options38.add(new Option(2, \"Wasim Akram\"));\n options38.add(new Option(3, \"Naveen Nischol\"));\n options38.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(38, \"Reena Roy the Indian film actress married a cricketer?\", getCategory(3), options38, options38.get(0)));\n\n List<Option> options39 = new ArrayList<Option>();\n options39.add(new Option(1, \"London, England\"));\n options39.add(new Option(2, \"Mumbai, India\"));\n options39.add(new Option(3, \"Lahore, Pakistan\"));\n options39.add(new Option(4, \"Nairobi, Kenya\"));\n QUESTION.add(new Question(39, \"Where did Yuvraj Singh make his ODI debut?\", getCategory(3), options39, options39.get(3)));\n\n List<Option> options40 = new ArrayList<Option>();\n options40.add(new Option(1, \"Arvind De Silva\"));\n options40.add(new Option(2, \"Roshan Mahanama\"));\n options40.add(new Option(3, \"Harshan Tilakaratne\"));\n options40.add(new Option(4, \"None Of The Above\"));\n QUESTION.add(new Question(40, \"Kapil Dev's 432 (world) record breaking victim was?\", getCategory(3), options40, options40.get(2)));\n\n List<Option> options41 = new ArrayList<Option>();\n options41.add(new Option(1, \"Vatican\"));\n options41.add(new Option(2, \"Iceland\"));\n options41.add(new Option(3, \"Netherlands\"));\n options41.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(41, \"Which country has the lowest population density of any country in Europe?\", getCategory(5), options41, options41.get(1)));\n\n List<Option> options42 = new ArrayList<Option>();\n options42.add(new Option(1, \"Cambodia\"));\n options42.add(new Option(2, \"Thailand\"));\n options42.add(new Option(3, \"Mynamar\"));\n options42.add(new Option(4, \"Bhutan\"));\n QUESTION.add(new Question(42, \"Angkor Wat, the largest religious monument in the world, is in which country?\", getCategory(5), options42, options42.get(0)));\n\n List<Option> options43 = new ArrayList<Option>();\n options43.add(new Option(1, \"Southern\"));\n options43.add(new Option(2, \"Northern and Southern\"));\n options43.add(new Option(3, \"Northern\"));\n options43.add(new Option(4, \"None of the above\"));\n QUESTION.add(new Question(43, \"Is the Tropic of Cancer in the northern or southern hemisphere?\", getCategory(5), options43, options43.get(2)));\n\n List<Option> options44 = new ArrayList<Option>();\n options44.add(new Option(1, \"Bangladesh\"));\n options44.add(new Option(2, \"Nepal\"));\n options44.add(new Option(3, \"Pakistan\"));\n options44.add(new Option(4, \"China\"));\n QUESTION.add(new Question(44, \"The Ganges flows through India and which other country?\", getCategory(5), options44, options44.get(0)));\n\n List<Option> options45 = new ArrayList<Option>();\n options45.add(new Option(1, \"Indian\"));\n options45.add(new Option(2, \"Pacific\"));\n options45.add(new Option(3, \"Arctic\"));\n options45.add(new Option(4, \"Atlantic\"));\n QUESTION.add(new Question(45, \"Which ocean lies on the east coast of the United States?\", getCategory(5), options45, options45.get(3)));\n\n List<Option> options46 = new ArrayList<Option>();\n options46.add(new Option(1, \"Prime Axis\"));\n options46.add(new Option(2, \"Lambert Line\"));\n options46.add(new Option(3, \"Prime Meridian\"));\n options46.add(new Option(4, \"Greenwich\"));\n QUESTION.add(new Question(46, \"What is the imaginary line called that connects the north and south pole?\", getCategory(5), options46, options46.get(2)));\n\n List<Option> options47 = new ArrayList<Option>();\n options47.add(new Option(1, \"Tropic of Cancer\"));\n options47.add(new Option(2, \"Tropic of Capricorn\"));\n QUESTION.add(new Question(47, \"The most northerly circle of latitude on the Earth at which the Sun may appear directly overhead at its culmination is called?\", getCategory(5), options47, options47.get(0)));\n\n List<Option> options48 = new ArrayList<Option>();\n options48.add(new Option(1, \"Nevada\"));\n options48.add(new Option(2, \"Arizona\"));\n options48.add(new Option(3, \"New Mexico\"));\n options48.add(new Option(4, \"San Fransisco\"));\n QUESTION.add(new Question(48, \"Which U.S. state is the Grand Canyon located in?\", getCategory(5), options48, options48.get(1)));\n\n List<Option> options49 = new ArrayList<Option>();\n options49.add(new Option(1, \"Indian Ocean\"));\n options49.add(new Option(2, \"Atlantic Ocean\"));\n options49.add(new Option(3, \"Pacific Ocean\"));\n options49.add(new Option(4, \"Arctic Ocean\"));\n QUESTION.add(new Question(49, \"Which is the largest body of water?\", getCategory(5), options49, options49.get(2)));\n\n List<Option> options50 = new ArrayList<Option>();\n options50.add(new Option(1, \"Maldives\"));\n options50.add(new Option(2, \"Monaco\"));\n options50.add(new Option(3, \"Tuvalu\"));\n options50.add(new Option(4, \"Vatican City\"));\n QUESTION.add(new Question(50, \"Which is the smallest country, measured by total land area?\", getCategory(5), options50, options50.get(3)));\n\n List<Option> options51 = new ArrayList<Option>();\n options51.add(new Option(1, \"1923\"));\n options51.add(new Option(2, \"1938\"));\n options51.add(new Option(3, \"1917\"));\n options51.add(new Option(4, \"1914\"));\n QUESTION.add(new Question(51, \"World War I began in which year?\", getCategory(6), options51, options51.get(3)));\n\n List<Option> options52 = new ArrayList<Option>();\n options52.add(new Option(1, \"France\"));\n options52.add(new Option(2, \"Germany\"));\n options52.add(new Option(3, \"Austria\"));\n options52.add(new Option(4, \"Hungary\"));\n QUESTION.add(new Question(52, \"Adolf Hitler was born in which country?\", getCategory(6), options52, options52.get(2)));\n\n List<Option> options53 = new ArrayList<Option>();\n options53.add(new Option(1, \"1973\"));\n options53.add(new Option(2, \"Austin\"));\n options53.add(new Option(3, \"Dallas\"));\n options53.add(new Option(4, \"1958\"));\n QUESTION.add(new Question(53, \"John F. Kennedy was assassinated in?\", getCategory(6), options53, options53.get(2)));\n\n List<Option> options54 = new ArrayList<Option>();\n options54.add(new Option(1, \"Johannes Gutenburg\"));\n options54.add(new Option(2, \"Benjamin Franklin\"));\n options54.add(new Option(3, \"Sir Isaac Newton\"));\n options54.add(new Option(4, \"Martin Luther\"));\n QUESTION.add(new Question(54, \"The first successful printing press was developed by this man.\", getCategory(6), options54, options54.get(0)));\n\n List<Option> options55 = new ArrayList<Option>();\n options55.add(new Option(1, \"The White Death\"));\n options55.add(new Option(2, \"The Black Plague\"));\n options55.add(new Option(3, \"Smallpox\"));\n options55.add(new Option(4, \"The Bubonic Plague\"));\n QUESTION.add(new Question(55, \"The disease that ravaged and killed a third of Europe's population in the 14th century is known as\", getCategory(6), options55, options55.get(3)));\n\n List<Option> options56 = new ArrayList<Option>();\n options56.add(new Option(1, \"Panipat\"));\n options56.add(new Option(2, \"Troy\"));\n options56.add(new Option(3, \"Waterloo\"));\n options56.add(new Option(4, \"Monaco\"));\n QUESTION.add(new Question(56, \"Napoleon was finally defeated at the battle known as?\", getCategory(6), options56, options56.get(2)));\n\n List<Option> options57 = new ArrayList<Option>();\n options57.add(new Option(1, \"Magellan\"));\n options57.add(new Option(2, \"Cook\"));\n options57.add(new Option(3, \"Marco\"));\n options57.add(new Option(4, \"Sir Francis Drake\"));\n QUESTION.add(new Question(57, \"Who was the first Western explorer to reach China?\", getCategory(6), options57, options57.get(2)));\n\n List<Option> options58 = new ArrayList<Option>();\n options58.add(new Option(1, \"Shah Jahan\"));\n options58.add(new Option(2, \"Chandragupta Maurya\"));\n options58.add(new Option(3, \"Humayun\"));\n options58.add(new Option(4, \"Sher Shah Suri\"));\n QUESTION.add(new Question(58, \"Who built the Grand Trunk Road?\", getCategory(6), options58, options58.get(3)));\n\n List<Option> options59 = new ArrayList<Option>();\n options59.add(new Option(1, \"Jawaharlal Nehru\"));\n options59.add(new Option(2, \"M. K. Gandhi\"));\n options59.add(new Option(3, \"Dr. Rajendra Prasad\"));\n options59.add(new Option(4, \"Dr. S. Radhakrishnan\"));\n QUESTION.add(new Question(59, \"Who was the first President of India?\", getCategory(6), options59, options59.get(2)));\n\n List<Option> options60 = new ArrayList<Option>();\n options60.add(new Option(1, \"8\"));\n options60.add(new Option(2, \"10\"));\n options60.add(new Option(3, \"5\"));\n options60.add(new Option(4, \"18\"));\n QUESTION.add(new Question(60, \"How many days did the battle of Mahabharata last?\", getCategory(6), options60, options60.get(3)));\n }\n return QUESTION;\n }",
"public String\ntoString()\n{\n StringBuffer str = new StringBuffer(\"{\");\n\n boolean found = false;\n\n if (c_resultSets != null) {\n if (found)\n str.append(\"<ERROR: multiple CHOICE: resultSets> \");\n found = true;\n str.append(\"resultSets \");\n str.append(c_resultSets);\n }\n\n if (c_badSet != null) {\n if (found)\n str.append(\"<ERROR: multiple CHOICE: badSet> \");\n found = true;\n str.append(\"badSet \");\n str.append(c_badSet);\n }\n\n if (c_relation != null) {\n if (found)\n str.append(\"<ERROR: multiple CHOICE: relation> \");\n found = true;\n str.append(\"relation \");\n str.append(c_relation);\n }\n\n if (c_unit != null) {\n if (found)\n str.append(\"<ERROR: multiple CHOICE: unit> \");\n found = true;\n str.append(\"unit \");\n str.append(c_unit);\n }\n\n if (c_distance != null) {\n if (found)\n str.append(\"<ERROR: multiple CHOICE: distance> \");\n found = true;\n str.append(\"distance \");\n str.append(c_distance);\n }\n\n if (c_attributes != null) {\n if (found)\n str.append(\"<ERROR: multiple CHOICE: attributes> \");\n found = true;\n str.append(\"attributes \");\n str.append(c_attributes);\n }\n\n if (c_ordered != null) {\n if (found)\n str.append(\"<ERROR: multiple CHOICE: ordered> \");\n found = true;\n str.append(\"ordered \");\n str.append(c_ordered);\n }\n\n if (c_exclusion != null) {\n if (found)\n str.append(\"<ERROR: multiple CHOICE: exclusion> \");\n found = true;\n str.append(\"exclusion \");\n str.append(c_exclusion);\n }\n\n str.append(\"}\");\n\n return str.toString();\n}",
"public PatientDiagnosticHabits2Example() {\n\t\toredCriteria = new ArrayList<Criteria>();\n\t}",
"private List<Condition> generate(Expression exp)\n {\n return generate(exp, fun, callers);\n }",
"java.lang.String getCondition();",
"private ArrayList<String> getPossibleActions() {\n\t\t\n\t\tRandom r = new Random();\n\t\tArrayList<String> possibleActions = new ArrayList<String>();\n\t\tfor (String actionTitle : getAllActions()) {\n\t\t\tif (r.nextDouble() < 0.3) {\n\t\t\t\tpossibleActions.add(actionTitle);\n\t\t\t}\n\t\t}\n\t\treturn possibleActions;\n\t}",
"Set<Condition> getInstanceInvariantConditions();",
"public CardInformationExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public Set<String> honorifics();",
"java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();",
"@Override\n\tpublic String toString(){ //returns only the non 0 fields.\n\t\tStringBuilder temp = new StringBuilder(\"\");\n\t\tif(victoryPoints!=0)\n\t\t\t\t temp.append(victoryPoints + \" victory points \");\n\t\tif(militaryPoints!=0)\n\t\t\ttemp= temp.append(militaryPoints + \" military points \");\n\t\tif(faithPoints!=0)\n\t\t\ttemp= temp.append(faithPoints + \" faith points \");\n\t\tif(councilPrivileges!=0)\n\t\t\ttemp= temp.append(councilPrivileges + \" council privileges \");\n\t\treturn temp.toString(); \n\t}",
"@Override\n protected ArrayList<String> generateExclusions()\n {\n ArrayList<String> retVal = new ArrayList<>();\n switch (monsterList.get(monsterList.size() - 1))\n {\n case \"Spheric Guardian\":\n retVal.add(\"Sentry and Sphere\");\n break;\n case \"3 Byrds\":\n retVal.add(\"Chosen and Byrds\");\n break;\n case \"Chosen\":\n retVal.add(\"Chosen and Byrds\");\n retVal.add(\"Cultist and Chosen\");\n break;\n }\n return retVal;\n }",
"Collection<String> getVoicedCommandList();",
"@CheckPermission(category = Category.TASK, needs = {Operation.GET})\n public Result getConditions(long institutionId, long stepId) {\n Step step = stepRepository.get(stepId);\n Component component = step.getComponent();\n List<ComponentProperty> componentProperties = component.getComponentProperties()\n .stream()\n .filter(cp -> cp.getType().equals(\"condition\"))\n .collect(Collectors.toList());\n\n JSONArray jsonArray = new JSONArray();\n for (ComponentProperty componentProperty : componentProperties) {\n JSONObject record = new JSONObject();\n record.put(\"id\", componentProperty.getId());\n jsonArray.add(record);\n }\n\n return ok(Json.toJson(jsonArray));\n }",
"private static List<AbilityEffect> getEffectsFor(String abilityName) {\n switch (abilityName) {\n case \"Magic Missile\":\n return Collections.singletonList(AbilityEffect.damage(30, 45));\n case \"Heal\":\n return Collections.singletonList(AbilityEffect.healPercentageOfMaxHp(.5));\n case \"Clairvoyance\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.farsight(3)));\n case \"Sacrifice\":\n return Collections.singletonList(AbilityEffect.destroyUnit());\n case \"Research\":\n return Collections.singletonList(AbilityEffect.research(75));\n case \"Cone of Flame\":\n return Collections.singletonList(AbilityEffect.damage(45, 60));\n case \"Strengthen\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.strengthened(10)));\n case \"Repair\":\n return Collections.singletonList(AbilityEffect.healPercentageOfMaxHp(1.0));\n case \"Toughen\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.toughness(10)));\n case \"Quicken\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.quickness(3)));\n case \"Cone of Ice\":\n return Arrays.asList(\n AbilityEffect.damage(45, 60), AbilityEffect.modifierBundle(Modifiers.sluggish(1)));\n case \"Cone of Electricity\":\n return Arrays.asList(\n AbilityEffect.damage(45, 60), AbilityEffect.modifierBundle(Modifiers.weakened(5)));\n case \"Mass Heal\":\n return Collections.singletonList(AbilityEffect.healPercentageOfMaxHp(.5));\n case \"Resolution\":\n return Arrays.asList(\n AbilityEffect.healConstantHp(25), AbilityEffect.modifierBundle(Modifiers.tenacity(25)));\n case \"Refresh\":\n return Collections.singletonList(AbilityEffect.refreshUnit());\n case \"Spacial Shift\":\n return Collections.emptyList();\n case \"Cone of Light\":\n return Arrays.asList(\n AbilityEffect.damage(60, 90), AbilityEffect.modifierBundle(Modifiers.blinded(2)));\n case \"Mana Shield\":\n return Arrays.asList(\n AbilityEffect.modifierBundle(Modifiers.shielded(0.25)),\n AbilityEffect.healPercentageOfMaxHp(0.5));\n case \"Levitation\":\n return Collections.singletonList(\n AbilityEffect.modifierBundle(\n new ModifierBundle(\n Modifiers.flight(), Modifiers.farsight(3), Modifiers.quickness(1))));\n case \"Channel\":\n return Collections.singletonList(AbilityEffect.mana(25));\n default:\n throw new RuntimeException(\"Unknown ability name \" + abilityName);\n }\n }",
"public String categoryDesc() { //to show the description of the category\n String desc = \"\";\n if (category.equals(\"H\")) {\n desc = \"Trump category: Hardness\";\n } else if (category.equals(\"S\")) {\n desc = \"Trump category: Specific Gravity\";\n } else if (category.equals(\"C\")) {\n desc = \"Trump category: Cleavage\";\n } else if (category.equals(\"CA\")) {\n desc = \"Trump category: Crustal Abundance\";\n } else if (category.equals(\"EV\")) {\n desc = \"Trump category: Economic Value\";\n }\n return desc;\n }",
"public TreeMap getCondictionCodesOptions()\n\t{\n\t\t\n\t\treturn ACMICache.getConditionCodes();\n\t\t\n\t}",
"private boolean checkVisualCondition(final String[] condArray) throws Exception {\r\n\t\t//boolean isDisplay = true ; // remarked by Leo YEUNG for testing\r\n\t\tboolean isDisplay = false ;\r\n\t\tint CondPassCount = 0; //Use to count the number of Boolean expressions passed\t\t\t\t\t\t \r\n\t\tint CondAmount = condArray.length;//Total number of Boolean expressions in this Node\r\n\t\t//Loop for all Boolean expressions in one conditon\t\t\t \r\n\t\tfor (int k=0; k<CondAmount; k++) {\t\t \t\t\t\t\t\r\n\t\t\tif (CondPassCount<k) break;\t //Exit the following condition check while one of the Boolean expresssion is failure which save the loop time\r\n\t\t\t//Loop for sort out different Attribute\r\n\t\t\tfor (int m=0; m<conAttName.length; m++) {\r\n\t\t\t\tint previousCondPassCount = CondPassCount;//a value use to check the Boolean expresssion is failure\r\n\t\t\t\tif (condArray[k].toUpperCase().startsWith(conAttName[m].toUpperCase())){ \r\n\t\t\t\t\tfinal String tempConAttType = conAttType[m]; // ldap attribute type\r\n\t\t\t\t\tfinal String tempValue = condArray[k].substring(conAttName[m].length());\r\n\t\t\t\t\tfinal int tempColonIndex = condArray[k].indexOf(\"\\\"\");\r\n\t\t\t\t\tfinal String attName = condArray[k].substring(0,conAttName[m].length()); \t \t\t\t \t\t \t\t\t\t //Attribute Name\r\n\t\t\t\t\tfinal String attCond = condArray[k].substring(conAttName[m].length(),tempColonIndex); //Attribute condition syntax\r\n\t\t\t\t\tfinal String attVal = condArray[k].substring(tempColonIndex+1,condArray[k].lastIndexOf(\"\\\"\"));//Attribute Value\r\n\t\t\t\t\tint k2 = k+1;\r\n\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" checking for \" + condArray[k]+\" Start\");\r\n\t\t\t\t\t//Condition Greater Than\r\n\t\t\t\t\tif (attCond.equalsIgnoreCase(Constant.gt)){ \r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null){\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\tif (strCrtUserInfo.compareTo(strAttVal) > 0 ){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\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\r\n\t\t\t\t\t\t\t} else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t}catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition:\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <Greater Than> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo > intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t\t} \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Less Than\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.lt)){\r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t \t \t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\tif (strCrtUserInfo.compareTo(strAttVal) < 0 ){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t \t \t\t\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t}catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition:\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <Less than> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo < intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t\t} \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Greater and Equal\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.ge)){ \r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t \t \t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\tif (strCrtUserInfo.compareTo(strAttVal) >= 0 ){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\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\r\n\t\t\t\t\t\t\t}else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t} catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition:\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <Greater and Equal to> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo >= intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\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//Condition Less and Equal\t\t\t\t\t\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.le)){ \r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t \t \t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\tif (strCrtUserInfo.compareTo(strAttVal) <= 0 ){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\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\r\n\t\t\t\t\t\t\t}else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t}catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition::\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <Less and Equal to> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo <= intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Equal\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.equal)){ //Equal\r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t \t \t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\t\tif (strCrtUserInfo.equalsIgnoreCase(strAttVal)){\r\n\t\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\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\r\n\t\t\t\t\t\t\t} else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t}catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition:\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <equal to> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo == intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Not Equal to\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.not_equal)){\r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tint intCrtUserInfo;\r\n\t\t\t\t\t\t\tint intAttVal;\r\n\t\t\t\t\t\t\tString strCrtUserInfo;\r\n\t\t\t\t\t\t\tString strAttVal;\t\t\t\t\t\t\t\t\t\t\t \t \t\r\n\t\t\t\t\t\t\tif (tempConAttType.equalsIgnoreCase(\"cis\")){\r\n\t\t\t\t\t\t\t\tstrCrtUserInfo = (String)ht.get(attName.toUpperCase());\r\n\t\t\t\t\t\t\t\tstrAttVal = attVal;\r\n\t\t\t\t\t\t\t\tif (!strCrtUserInfo.equalsIgnoreCase(strAttVal)){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\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\r\n\t\t\t\t\t\t\t} else if(tempConAttType.equalsIgnoreCase(\"int\")){\r\n\t\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\t\tintCrtUserInfo = Integer.parseInt((String)ht.get(attName.toUpperCase()));\r\n\t\t\t\t\t\t\t\t\tintAttVal = Integer.parseInt(attVal);\r\n\t\t\t\t\t\t\t\t}catch (NumberFormatException e){\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"checkVisualCondition:\" + e.getMessage(), e);\r\n\t\t\t\t\t\t\t\t\tlogger.error(\"Invalid attribute value: The attribute value is not numeric, the <Not equal to> condition cannot apply.\");\r\n\t\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t\t\tthrow new Exception(e.getMessage());\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tif (intCrtUserInfo != intAttVal){\r\n\t\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t\t} \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Contain\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.contain)){ \r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tif (((String)ht.get(attName.toUpperCase())).indexOf(attVal)!=-1){\r\n\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Start with\t \t \r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.start_with)){\r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tif (((String)ht.get(attName.toUpperCase())).startsWith(attVal)){\r\n\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition\tNot contain\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.not_contain)){ \r\n\t\t\t\t\t\tif (ht.get(attName.toUpperCase()) != null) {\r\n\t\t\t\t\t\t\tif (((String)ht.get(attName.toUpperCase())).indexOf(attVal)==-1){\r\n\t\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t\t} \r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Condition Not start with\t\r\n\t\t\t\t\t} else if (attCond.equalsIgnoreCase(Constant.not_start_with)){\r\n\t\t\t\t\t\tif (!((String)ht.get(attName.toUpperCase())).startsWith(attVal)){\r\n\t\t\t\t\t\t\tCondPassCount += 1;\r\n\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" OK: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tlogger.debug(\"Boolean expression \" + k2 + \" failed: \" + attName + \"- \" + (String)ht.get(attName) + attCond + attVal + \" failed!!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t//Finally, Syntax Error\t \r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tlogger.error(\"checkVisualCondition:Invalid condition syntax found: \" + attCond);\r\n\t\t\t\t\t} \r\n\t\t\t\t}\t\r\n\t\t\t\tif (previousCondPassCount<CondPassCount) break; // condition passed. Exit the for loop\r\n\t\t\t}\r\n\t\t\tif (CondPassCount == CondAmount) isDisplay = true;\r\n\t\t}\r\n\t\t//logger.debug(\"checkVistualCondition: isDisplay = \" + isDisplay);\r\n\t\t//logger.debug(\"checkVistualCondition: CondPassCount = \" + CondPassCount);\r\n\t\t//logger.debug(\"checkVistualCondition: CondAmount = \" + CondAmount);\r\n\t\treturn isDisplay;\r\n\t}",
"boolean getProbables();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"public List<String> description() {\n return Arrays.asList(new String[]{\"Default Description : Its a Performance Function\"});\n }",
"public String toString() {\n\n try {\n\tStringBuffer text = new StringBuffer();\n\tif (m_test != null) {\n\t text.append(\"If \");\n\t for (Test t = m_test; t != null; t = t.m_next) {\n\t if (t.m_attr == -1) {\n\t text.append(\"?\");\n\t } else {\n\t text.append(m_instances.attribute(t.m_attr).name() + \" = \" +\n\t\t\t m_instances.attribute(t.m_attr).value(t.m_val));\n\t }\n\t if (t.m_next != null) {\n\t text.append(\"\\n and \");\n\t }\n\t }\n\t text.append(\" then \");\n\t}\n\ttext.append(m_instances.classAttribute().value(m_classification) + \"\\n\");\n\tif (m_next != null) {\n\t text.append(m_next.toString());\n\t}\n\treturn text.toString();\n } catch (Exception e) {\n\treturn \"Can't print Prism classifier!\";\n }\n }",
"@Override\r\n protected void generateDescription ()\r\n {\r\n String[] descriptions = {\r\n \"Advice about the law!\", \"A financial master!\", \"Technologically amazing!\",\r\n \"People's savior!\", \"To serve for the people!\", \"A beast of a rider!\",\r\n \"All-sport mighty!\"\r\n };\r\n\r\n for (int j = 0; j < CAREERS.length; j++)\r\n if (CAREERS[j].equalsIgnoreCase (name))\r\n description = descriptions[j];\r\n }",
"public String toString(){\r\n\t\t// Print P(English), P(Spanish) and P(Japanese), as well as the \r\n\t\t// conditional probabilitiesP(c| English), P(c | Spanish), \r\n\t\t// and P(c | Japanese) for all 27 characters c\r\n\t\t/* PRIOR */\r\n\t\tString returnString = String.format(\r\n\t\t\t\t\"P(English) = %s\\n\" +\r\n\t\t\t\t\"P(Spanish) = %s\\n\" +\r\n\t\t\t\t\"P(Japanese) = %s\\n\" +\r\n\t\t\t\t\"\\n\",\r\n\t\t\t\tFloat.toString(p_english), \r\n\t\t\t\tFloat.toString(p_spanish), \r\n\t\t\t\tFloat.toString(p_japanese) \r\n\t\t\t\t);\r\n\t\t\r\n\t\t/* ENGLISH CONDITIONAL */\r\n\t\treturnString += \r\n\t\t\t\tfillToStringConditional(englishConditional, \"English\");\r\n\t\t/* SPANISH CONDITIONAL */\r\n\t\treturnString += \r\n\t\t\t\tfillToStringConditional(spanishConditional, \"Spanish\");\r\n\t\t/* JAPANESE CONDITIONAL */\r\n\t\treturnString += \r\n\t\t\t\tfillToStringConditional(japaneseConditional, \"Japanese\");\r\n\t\t\r\n\t\treturn returnString;\r\n\t}",
"public List<Ingrediente> verCondimentos(){\n // Implementar\n \tList<Ingrediente> condimentos = new LinkedList<Ingrediente>();\n for (Ingrediente ingrediente : ingredientes) {\n \tif(ingrediente.getTipo().toString().toLowerCase() == \"condimento\")\n\t\t\t\tcondimentos.add(ingrediente);\n\t\t}\n \treturn condimentos;\n }",
"public String toString()\r\n {\r\n StringBuffer sb = new StringBuffer(super.toString());\r\n\r\n if (requires_CHV)\r\n sb.append(\" CHV\" + number_of_CHV);\r\n if (requires_AUT)\r\n sb.append(\" AUT\" + number_of_key);\r\n if (requires_PRO)\r\n sb.append(\" PRO\" + number_of_key);\r\n if (requires_ENC)\r\n sb.append(\" ENC\" + number_of_key);\r\n\r\n if (never_accessible)\r\n sb.append(\" Never\");\r\n\r\n return sb.toString();\r\n }",
"public static String description(int bits) {\n StringBuilder s = new StringBuilder();\n String sep = \"\";\n if ((bits & SADDLE) != 0) {\n s.append(\"saddle\");\n sep = \", \";\n }\n if ((bits & IRON_HORSE_ARMOUR) != 0) {\n s.append(sep).append(\"iron armour\");\n sep = \", \";\n }\n if ((bits & GOLDEN_HORSE_ARMOUR) != 0) {\n s.append(sep).append(\"gold armour\");\n sep = \", \";\n }\n if ((bits & DIAMOND_HORSE_ARMOUR) != 0) {\n s.append(sep).append(\"diamond armour\");\n sep = \", \";\n }\n if ((bits & CHEST) != 0) {\n s.append(sep).append(\"chest\");\n sep = \", \";\n }\n if ((bits & PACK) != 0) {\n int colourBits = (bits & PACK_COLOUR) >> PACK_SHIFT;\n DyeColor colour = DyeColor.values()[colourBits];\n s.append(sep).append(colour.name().replace('_', ' ').toLowerCase()).append(\" pack\");\n sep = \", \";\n }\n return s.toString();\n }",
"public List<OperationEqField> getConditions()\n {\n if (conditions == null)\n {\n conditions = new ArrayList<>();\n }\n return conditions;\n }",
"private String getOptionStrings(int choice) {\n //these are the common ones, maybe the only ones\n switch (choice) {\n case 0: return \"\";\n case 1: return \"Shoot Laser gun.\";\n case 2: return \"Shoot Missile gun.\";\n case 3: return \"Wait a turn\";\n\n case 4: return \"Shoot at Pilot, Gun L, or Gun M?\";\n case 5: return \"Shoot at Shield, or Engine?\";\n case 6: return \"Shoot at random?\";\n\n case 7: return \"Shoot at Pilot?\";\n case 8: return \"Shoot at Gun L?\";\n case 9: return \"Shoot at Gun M?\";\n\n case 10: return \"Shoot at Shield?\";\n case 11: return \"Shoot at Engine?\";\n case 12: return \"Shoot at Random?\";\n\n case 100: return \"Enter any number to continue\";\n }\n //if value given is not found above\n return \"Error\";\n }",
"public String diagnostic() {\n\t\tString output = \"\";\n\t\tString stateString = \"\";\n\t\tif (this.getState() == Player.HUMAN)\n\t\t\tstateString = \"is selected by the player\";\n\t\telse if (this.getState() == Player.COMPUTER)\n\t\t\tstateString = \"is selected by the computer\";\n\t\telse\n\t\t\tstateString = \"is not selected\";\n\t\t\t\n\t\toutput += \"The point \" + this.toString() + \" \" + stateString +\n\t\t\t\t\t\" and is associated with the rows:\\n\";\n\t\tfor (Row r : containingRows) {\n\t\t\toutput += r + \"\\n\";\n\t\t}\n\t\treturn output;\n\t}",
"public List getValidarCuvExistencia(Map criteria);",
"public Iterator<String> listRestrictions()\r\n\t{\r\n\t\treturn new ToStringIterator<String>(ONT_MODEL.listRestrictions().filterDrop( new Filter() {\r\n public boolean accept( Object o ) {\r\n return ((Resource) o).isAnon();\r\n }} )\r\n );\r\n\t}",
"public String possibleValues(){\n int nbElement = 9-this.possibilities.size();\n String result = \"\";\n result = result+\"\"+this.value+\" (\";\n for(int i : this.possibilities){\n result = result+i;\n }\n for(int i = 0; i< nbElement ;i++){\n result = result+\".\";\n }\n result = result+\")\";\n return result;\n\n }",
"java.lang.String getDesc();",
"List<TypePatientPropertyCondition> findAll();",
"private void generateTestCapabilityFiles() {\n\n String[] ids = {\"cap_1_001\", \"cap_1_002\", \"cap_1_003\", \"cap_1_004\", \"cap_1_005\", \"cap_3_001\", \"cap_3_002\", \"cap_2_001\", \"cap_2_002\"};\n String[] actionNames_en = {\"Go Forward\", \"Reverse\", \"Turn Left\", \"Turn Right\", \"Stop\", \"Light ON\", \"Light OFF\", \"No Object\", \"See Object\"};\n String[] actionNames_si = {\"ඉදිරියට යන්න\", \"පසුපසට යන්න\", \"වමට හැරෙන්න\", \"දකුණට හැරෙන්න\", \"නවතින්න\", \"Light ON\", \"Light OFF\", \"No Object\", \"See Object\"};\n String[] actionCmd = {\"1\", \"2\", \"3\", \"4\", \"5\", \"1\", \"2\", \"3\", \"4\"};\n String[] comparaters = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \">\", \"<\"};\n String[] response = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"1\", \"1\"};\n String[] reference = {\"\", \"\", \"\", \"\", \"\", \"\", \"\", \"100\", \"100\"};\n String[] buttonList = {\"true\", \"true\", \"true\", \"true\", \"false\", \"true\", \"false\", \"false\", \"false\"};\n //String[] imageList = {\"forward\", \"reverse\", \"left\", \"right\", \"stop\", \"true\", \"false\"};\n\n for (int i = 0; i < 9; i++) {\n\n String types;\n\n if (i >= 7) {\n types = Capability.CAP_SENSE;\n } else if (i < 2 || i > 5) {\n types = Capability.CAP_ACTION_C;\n } else {\n types = Capability.CAP_ACTION;\n }\n\n Map<String, String> nameList = new HashMap<>();\n nameList.put(\"en_US\", actionNames_en[i]);\n nameList.put(\"si_LK\", actionNames_si[i]);\n\n try {\n\n DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder docBuilder = docFactory.newDocumentBuilder();\n\n // root elements\n Document doc = docBuilder.newDocument();\n Element rootElement = doc.createElement(\"Sifeb\");\n doc.appendChild(rootElement);\n\n Element capability = doc.createElement(\"Capability\");\n rootElement.appendChild(capability);\n\n Element id = doc.createElement(\"Id\");\n id.appendChild(doc.createTextNode(ids[i]));\n capability.appendChild(id);\n\n Element names = doc.createElement(\"Names\");\n capability.appendChild(names);\n\n for (Map.Entry<String, String> entry : nameList.entrySet()) {\n Element name = doc.createElement(\"Name\");\n Element locale = doc.createElement(\"Locale\");\n Element nameStr = doc.createElement(\"Value\");\n\n locale.appendChild(doc.createTextNode(entry.getKey()));\n nameStr.appendChild(doc.createTextNode(entry.getValue()));\n\n name.appendChild(locale);\n name.appendChild(nameStr);\n names.appendChild(name);\n }\n\n Element type = doc.createElement(\"Type\");\n type.appendChild(doc.createTextNode(types));\n capability.appendChild(type);\n\n Element testCmd = doc.createElement(\"TestCommand\");\n testCmd.appendChild(doc.createTextNode(\"t\" + actionCmd[i]));\n capability.appendChild(testCmd);\n\n Element button = doc.createElement(\"HasTestButton\");\n button.appendChild(doc.createTextNode(buttonList[i]));\n capability.appendChild(button);\n\n Element exeCmd = doc.createElement(\"ExeCommand\");\n exeCmd.appendChild(doc.createTextNode(\"a\" + actionCmd[i]));\n capability.appendChild(exeCmd);\n\n Element stopCmd = doc.createElement(\"StopCommand\");\n stopCmd.appendChild(doc.createTextNode(\"a5\"));\n capability.appendChild(stopCmd);\n\n Element compType = doc.createElement(\"Comparator\");\n compType.appendChild(doc.createTextNode(comparaters[i]));\n capability.appendChild(compType);\n\n Element respSize = doc.createElement(\"Response\");\n respSize.appendChild(doc.createTextNode(response[i]));\n capability.appendChild(respSize);\n\n Element refVal = doc.createElement(\"Reference\");\n refVal.appendChild(doc.createTextNode(reference[i]));\n capability.appendChild(refVal);\n\n Element image = doc.createElement(\"Image\");\n image.appendChild(doc.createTextNode(ids[i]));\n capability.appendChild(image);\n\n // write the content into xml file\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n DOMSource source = new DOMSource(doc);\n File file = new File(SifebUtil.CAP_FILE_DIR + ids[i] + \".xml\");\n StreamResult result = new StreamResult(file); //new File(\"C:\\\\file.xml\"));\n\n transformer.transform(source, result);\n\n System.out.println(\"File saved!\");\n\n } catch (ParserConfigurationException | TransformerException pce) {\n pce.printStackTrace();\n }\n\n }\n }",
"public List<Choice> getChoiceList() {\n CriteriaBuilder cb = em.getCriteriaBuilder();\n CriteriaQuery<Choice> cq = cb.createQuery(Choice.class);\n cq.select(cq.from(Choice.class));\n return em.createQuery(cq).getResultList(); \n }",
"@Test\n public void testFlavourToString() {\n for (PdfaFlavour flavour : PdfaFlavour.values()) {\n System.out.println(flavour.toString());\n }\n }",
"private String getAttributeOptionComboClause(User user) {\n return \"and dv.attributeoptioncomboid not in (\"\n + \"select distinct(cocco.categoryoptioncomboid) \"\n + \"from categoryoptioncombos_categoryoptions as cocco \"\n +\n // Get inaccessible category options\n \"where cocco.categoryoptionid not in ( \"\n + \"select co.categoryoptionid \"\n + \"from dataelementcategoryoption co \"\n + \" where \"\n + JpaQueryUtils.generateSQlQueryForSharingCheck(\n \"co.sharing\", user, AclService.LIKE_READ_DATA)\n + \") )\";\n }",
"public interface Condition {\n /** Return the condition state. */\n boolean test();\n /** Return a description of what the condition is testing. */\n String toString();\n}",
"public static void getValidActionsTest() {\n\t\tVTicTacToe tempEnvironment = new VTicTacToe();\n\t\tint[] tempTestStates = { 0, 13, 39, 26, 6643 };\n\n\t\tint[] tempResultArray;\n\t\tfor (int i = 0; i < tempTestStates.length; i++) {\n\t\t\ttempResultArray = tempEnvironment.getValidActions(tempTestStates[i]);\n\t\t\tSystem.out.println(\"The valid actions of \" + tempTestStates[i] + \" is: \"\n\t\t\t\t\t+ Arrays.toString(tempResultArray));\n\t\t} // Of for i\n\t}",
"@JsonProperty(\"conditions\")\n @ApiModelProperty(value = \"The condition that will trigger the dialog node.\")\n public String getConditions() {\n return conditions;\n }",
"public String toString(){\n StringBuffer sb = new StringBuffer();\n sb.append(\"\\n###################################################\\n\");\n sb.append(\" DESCRIPTION VARIANTE MONCLAR\\n\");\n sb.append(\"- 7 : Fait passer le tour du joueur suivant\\n\");\n sb.append(\"- 8 : Changer la couleur du Talon\\n\");\n sb.append(\" Permet de stopper les attaques\\n\");\n sb.append(\"- 9 : Faire piocher 1 carte au joueur suivant\t\\n\");\n sb.append(\" Sans Recours !\\n\");\n sb.append(\"- 10 : Permet de rejouer\\n\");\n sb.append(\"- Valet : Permet de changer le sens de la partie\\n\");\n sb.append(\"- As : Faire piocher 3 cartes au joueur suivant\t\\n\");\n sb.append(\" Contrable par un 8 ou un autre As !\\n\");\n sb.append(\"###################################################\\n\");\n return sb.toString();\n }",
"public List<Condition> getConditions() {\n\t\treturn conditions;\n\t}",
"cn.infinivision.dataforce.busybee.pb.meta.Expr getCondition();",
"String description();",
"String description();",
"String description();"
] | [
"0.6471496",
"0.62063795",
"0.59583414",
"0.56826633",
"0.56120926",
"0.5594748",
"0.55121475",
"0.5458843",
"0.5408525",
"0.5397795",
"0.53864026",
"0.53431576",
"0.52631825",
"0.5254114",
"0.52088875",
"0.5185371",
"0.5172993",
"0.51626986",
"0.5155666",
"0.5126179",
"0.5086851",
"0.5083345",
"0.5082782",
"0.5054945",
"0.50382376",
"0.5028446",
"0.5024843",
"0.5017921",
"0.49955517",
"0.49888688",
"0.49843237",
"0.49752983",
"0.49576834",
"0.4928381",
"0.49141136",
"0.49141052",
"0.49131304",
"0.4907497",
"0.4907125",
"0.49062023",
"0.49045315",
"0.4893418",
"0.48934135",
"0.48866352",
"0.4885711",
"0.48744497",
"0.48714685",
"0.48643574",
"0.4857542",
"0.48539764",
"0.48501813",
"0.48417854",
"0.48289806",
"0.48214874",
"0.48211673",
"0.48144212",
"0.48116392",
"0.48099795",
"0.4806461",
"0.48056903",
"0.4804122",
"0.47985995",
"0.4793882",
"0.4772587",
"0.4772587",
"0.4772587",
"0.4772587",
"0.4772587",
"0.4772587",
"0.4772587",
"0.4772587",
"0.4772587",
"0.47656256",
"0.47638643",
"0.47606552",
"0.47604275",
"0.4748717",
"0.47446394",
"0.47424296",
"0.47420987",
"0.4738702",
"0.47355178",
"0.47319388",
"0.47254685",
"0.47215",
"0.47212633",
"0.4717671",
"0.4715819",
"0.47139513",
"0.4711504",
"0.4710628",
"0.4706422",
"0.47052753",
"0.46977276",
"0.46941444",
"0.46932837",
"0.46923345",
"0.46908146",
"0.46908146",
"0.46908146"
] | 0.7884963 | 0 |
Retrieve a collection of descriptions of the possible defeat conditions | Collection<String> getPossibleDefeatConditions(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List getDonts() {\n\t\tif (donts == null) {\n\t\t\tdonts = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/donts\");\n\t\t}\n\t\treturn donts;\n\t}",
"String getDescriptionIfNotMet();",
"public List<String> extractIllnesses(String description) {\n\t\tList<String> newSentences = this.getSentences(description);\n\t\t\n\t\t// For each sentence, generate valid word sequences\n\t\tList<String> allValidWordSequences = new ArrayList<String>();\n\t\tnewSentences.forEach(s -> allValidWordSequences.addAll(this.getWordCombinations(s)));\n\n\t\tSicknessMap medicalRecords = SicknessMap.getInstance();\n\t\tList<String> results = allValidWordSequences.stream()\n\t\t\t\t.filter(potentialIllness -> medicalRecords.contains(potentialIllness))\n\t\t\t\t.map(actualIllness -> medicalRecords.getByKey(actualIllness))\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn results;\n\t}",
"Collection<String> getPossibleVictoryConditions();",
"WinningCombination getDescription();",
"public List<Flow.Significance> getSignificanceToTargetChoices() {\n List<Flow.Significance> significances = new ArrayList<Flow.Significance>();\n significances.add( Flow.Significance.Useful );\n significances.add( Flow.Significance.Critical );\n significances.add( Flow.Significance.Terminates );\n if ( !getFlow().isAskedFor() ) significances.add( Flow.Significance.Triggers );\n return significances;\n }",
"@Override\r\n protected void generateDescription ()\r\n {\r\n String[] descriptions = {\r\n \"Advice about the law!\", \"A financial master!\", \"Technologically amazing!\",\r\n \"People's savior!\", \"To serve for the people!\", \"A beast of a rider!\",\r\n \"All-sport mighty!\"\r\n };\r\n\r\n for (int j = 0; j < CAREERS.length; j++)\r\n if (CAREERS[j].equalsIgnoreCase (name))\r\n description = descriptions[j];\r\n }",
"public String getDescription() {\n\t\tif (getType() == SpawnType.APPEARS) {\n\t\t\treturn String.format(\"May be found %s\", (mob.hasActFlag(ActFlag.SENTINEL) ? \"in \" : \"around \"));\n\t\t} else if (getType() == SpawnType.PRODUCED_MOB\n\t\t\t\t|| getType() == SpawnType.PRODUCED_ITEM\n\t\t\t\t|| getType() == SpawnType.PRODUCED_ROOM) {\n\t\t\treturn String.format(\"May be summoned %s by\", getProg().getType().getLabel());\n\t\t} else {\n\t\t\treturn \"Unrelated to\";\n\t\t}\n\t}",
"@Override\n protected ArrayList<String> generateExclusions()\n {\n ArrayList<String> retVal = new ArrayList<>();\n switch (monsterList.get(monsterList.size() - 1))\n {\n case \"Spheric Guardian\":\n retVal.add(\"Sentry and Sphere\");\n break;\n case \"3 Byrds\":\n retVal.add(\"Chosen and Byrds\");\n break;\n case \"Chosen\":\n retVal.add(\"Chosen and Byrds\");\n retVal.add(\"Cultist and Chosen\");\n break;\n }\n return retVal;\n }",
"public String getFullDescription(boolean v) {\n if (Main.isLight()) {\n // show name\n String tr = getName();\n if (!v) {\n // first visit, or manual look; show description\n tr += \"\\n\" + getDescription();\n }\n // list items\n Iterator<Item> it = items.iterator();\n while (it.hasNext()) {\n Item i = it.next();\n tr += \"\\nThere is \" + i.getName() + \" here.\";\n }\n // list characters\n Iterator<Character> ci = chars.iterator();\n while (ci.hasNext()) {\n Character c = ci.next();\n tr = (tr + \"\\n\" + c.getEntry()).trim();\n }\n return tr;\n } else {\n // darkness\n if(!Main.cheatMode) {\n return \"It is pitch dark. You are likely to be eaten by a grue.\";\n }\n else {\n return \"It is pitch dark, but with cheatiness, the grues can't harm you!\";\n }\n }\n }",
"List<DenialReasonDto> showAll();",
"private String getSuggestions() {\r\n\t\tDbHandler dbHandler = new DbHandler(new AndroidFileIO(this));\r\n\t\tTable data;\r\n\t\ttry {\r\n\t\t\tdata = dbHandler.generateDataTable(\"mentalrate\");\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn \"\";\r\n\t\t}\r\n\r\n\t\tRulesFinder finder = new RulesFinder(data);\r\n\t\tIterator<Rule> rulesIter = finder.findRules().iterator();\r\n\r\n\t\tString msg = \"\";\r\n\t\twhile (rulesIter.hasNext()) {\r\n\t\t msg += RuleTranslator.humanReadable(rulesIter.next())+\"\\n\";\r\n\t\t}\r\n\t System.out.println(msg);\r\n\t\treturn msg;\r\n\t}",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"java.lang.String getDescription();",
"public abstract List<String> getValidDescriptors();",
"protected String describeGeneral() {\n\t\tString description;\n\t\tString initiator = Util.getCleanName(mInitator);\n\t\tif (initiator.equalsIgnoreCase(\"AIR\"))\n\t\t\tinitiator = \"None\";\n\t\tString output = Util.getCleanName(mOutput);\n\t\tif (output.equalsIgnoreCase(\"AIR\"))\n\t\t\toutput = \"None\";\n\t\tdouble effectAmountLow = getEffectAmount(0);\n\t\tdouble effectAmountHigh = getEffectAmount(30);\n\t\tdouble elfAmount = getEffectAmount(mNormalLevel);\n\t\tString toolType = toolType();\n\t\tdescription = String.format(\"Effect Block Trigger: %s Block Output: %s . \"\n\t\t\t\t\t\t+ \"Effect value ranges from %.2f - %.2f for levels 0 to 30. \"\n\t\t\t\t\t\t+ \"Elves have the effect %.2f , as if they were level %d . \"\n\t\t\t\t\t\t+ \"Tools affected: %s. \"\n\t\t\t\t\t\t+ (mRequireTool ? \"Tool needed.\" : \"Tool not needed.\"),\n\t\t\t\t\t\tinitiator, output, effectAmountLow, effectAmountHigh,\n\t\t\t\t\t\telfAmount, mNormalLevel, toolType);\n\n\t\treturn description;\n\t}",
"boolean hasDefense();",
"boolean hasDefense();",
"boolean hasDefense();",
"boolean hasDefense();",
"boolean hasDefense();",
"boolean hasDefense();",
"public String getDescription()\r\n {\r\n return descriptionFilter;\r\n }",
"public abstract String[] getDescriptions();",
"public String getDescription() {\n return \"repair terms from an ontology\";\n }",
"public List getExamples() {\n\t\tif (examples == null) {\n\t\t\texamples = getFormattedPractices(\"/metadataFieldInfo/field/bestPractices/examples\");\n\t\t}\n\t\treturn examples;\n\t}",
"public String getRestrictionDescription() {\n return restrictionDescription;\n }",
"public List<String> description() {\n return Arrays.asList(new String[]{\"Default Description : Its a Performance Function\"});\n }",
"public String getChanceDescription() {\n StringBuilder s = new StringBuilder();\n if (_dropChance <= 0.01) {\n int tries = (int) Math.round(1.0 / _dropChance);\n s.append(\"1 in \").append(tries).append(' ');\n } else {\n s.append(_dropChance * 100).append(\"% \");\n }\n return s.toString();\n }",
"public String getDescription()\r\n\t{\r\n\t\treturn motel.getDescription() + \"Food Bar Refill\";\r\n\t}",
"public static String getDesc() {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"A dice roller for White Wolf (roll/successes style), which rolls a number of d10s and looks for numbers over a certain value, \");\n\t\tbuilder.append(\"attempting to accumulate a certain number of successes. A number of fixed successes can be added or removed. Specifying e (for \");\n\t\tbuilder.append(\"emphasis) makes 10s explode twice. An example: 6t2+1e dc7 - this specifies rolling 6 dice, looking for 2 dice with a value of \");\n\t\tbuilder.append(\"7 or higher. Tens will explode twice, and there will be one guaranteed success. If not specified, the DC is 6+.\");\n\t\treturn builder.toString();\n\t}",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"String getDescription();",
"boolean getDesc();",
"public void findDefeated(){\n for(Enemy enemy: enemies){\n if(enemy.getCurrHP() <= 0 || enemy.isFriendly()){\n if (!defeated.contains(enemy)) {\n defeated.add(enemy);\n }\n }\n }\n }",
"java.lang.String getDesc();",
"public String getExplanation() {\n return \"Weka is unexplainable!\";\n }",
"public java.lang.String getDisabilities () {\n\t\treturn disabilities;\n\t}",
"@Override\n\tpublic String getDescription() {\n\t\treturn \"?\";\n\t}",
"public Set<String> honorifics();",
"public List<String> Description() {\n XPathFactory xpath = XPathFactory.instance();\n XPathExpression<Element> expr = xpath.compile(\"//item/description\", Filters.element());\n List<Element> news = expr.evaluate(this.data);\n List<String> description = new ArrayList<String>();\n news.forEach(post -> description.add(post.getValue().trim()));\n return description;\n }",
"public String description(DurableObject obj) {\n\t\treturn mapper.apply(obj.condition());\n\t}",
"private String E19Conditions() {\n StringBuilder buffer = new StringBuilder();\n int numCols = 60;\n int leftMargin = 17;\n String tmp1 = \" \";\n String tmp2 = \" \";\n String tmp3 = \" \";\n String indent = \"\";\n for (int i = 0; i < leftMargin; i++) {\n indent = indent.concat(\" \");\n }\n buffer.append(\"\\f\");\n buffer.append(TextReportConstants.E19_HDR_CONDITIONS + \"\\n\\n\");\n\n TextReportData data = TextReportDataManager.getInstance()\n .getDataForReports(lid, 0);\n\n if (data.getRiverstat().getMile() != HydroConstants.MISSING_VALUE) {\n tmp1 = String.format(\"%-6.1f\", data.getRiverstat().getMile());\n }\n if (data.getRiverstat().getDa() != HydroConstants.MISSING_VALUE) {\n tmp2 = String.format(\"%-6.1f\", data.getRiverstat().getDa());\n }\n if (data.getRiverstat().getPool() != HydroConstants.MISSING_VALUE) {\n tmp3 = String.format(\"%-6.1f\", data.getRiverstat().getPool());\n }\n\n buffer.append(String.format(\n \" MILES ABOVE MOUTH: %s%sDRAINAGE AREA: %s%sPOOL STAGE: %s\",\n tmp1, \" \", tmp2, \" \", tmp3));\n buffer.append(\"\\n\\n\\n\");\n\n buffer.append(\" STREAM BED: \");\n\n if (data.getDescrip().getBed() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getBed(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REACH: \");\n if (data.getDescrip().getReach() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getReach(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REGULATION: \");\n if (data.getDescrip().getRes() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getRes(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" DIVERSION: \");\n if (data.getDescrip().getDivert() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getDivert(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" WINTER: \");\n if (data.getDescrip().getIce() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getIce(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" TOPOGRAPHY: \");\n if (data.getDescrip().getTopo() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getTopo(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n buffer.append(\" REMARKS: \");\n if (data.getDescrip().getRemark() != null) {\n String[] lines = TextUtil.wordWrap(data.getDescrip().getRemark(),\n numCols, 0);\n buffer.append(lines[0] + \"\\n\");\n for (int i = 1; i < lines.length; i++) {\n if ((i != (lines.length - 1))\n && (!lines[i].trim().equalsIgnoreCase(\"\"))) {\n buffer.append(\" \" + lines[i] + \"\\n\");\n }\n }\n } else {\n buffer.append(\"\\n\");\n }\n buffer.append(\"\\n\");\n\n // try to place FOOTER at the bottom\n buffer.append(advanceToFooter(0, buffer.toString()));\n\n Date d = Calendar.getInstance(TimeZone.getTimeZone(\"GMT\")).getTime();\n String footer = createFooter(data, E19_RREVISE_TYPE, sdf.format(d),\n \"NWS FORM E-19\", E19_CONDITIONS, \"CONDITIONS\", null,\n E19_STANDARD_LEFT_MARGIN);\n buffer.append(footer);\n\n return buffer.toString();\n }",
"private static List<AbilityEffect> getEffectsFor(String abilityName) {\n switch (abilityName) {\n case \"Magic Missile\":\n return Collections.singletonList(AbilityEffect.damage(30, 45));\n case \"Heal\":\n return Collections.singletonList(AbilityEffect.healPercentageOfMaxHp(.5));\n case \"Clairvoyance\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.farsight(3)));\n case \"Sacrifice\":\n return Collections.singletonList(AbilityEffect.destroyUnit());\n case \"Research\":\n return Collections.singletonList(AbilityEffect.research(75));\n case \"Cone of Flame\":\n return Collections.singletonList(AbilityEffect.damage(45, 60));\n case \"Strengthen\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.strengthened(10)));\n case \"Repair\":\n return Collections.singletonList(AbilityEffect.healPercentageOfMaxHp(1.0));\n case \"Toughen\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.toughness(10)));\n case \"Quicken\":\n return Collections.singletonList(AbilityEffect.modifierBundle(Modifiers.quickness(3)));\n case \"Cone of Ice\":\n return Arrays.asList(\n AbilityEffect.damage(45, 60), AbilityEffect.modifierBundle(Modifiers.sluggish(1)));\n case \"Cone of Electricity\":\n return Arrays.asList(\n AbilityEffect.damage(45, 60), AbilityEffect.modifierBundle(Modifiers.weakened(5)));\n case \"Mass Heal\":\n return Collections.singletonList(AbilityEffect.healPercentageOfMaxHp(.5));\n case \"Resolution\":\n return Arrays.asList(\n AbilityEffect.healConstantHp(25), AbilityEffect.modifierBundle(Modifiers.tenacity(25)));\n case \"Refresh\":\n return Collections.singletonList(AbilityEffect.refreshUnit());\n case \"Spacial Shift\":\n return Collections.emptyList();\n case \"Cone of Light\":\n return Arrays.asList(\n AbilityEffect.damage(60, 90), AbilityEffect.modifierBundle(Modifiers.blinded(2)));\n case \"Mana Shield\":\n return Arrays.asList(\n AbilityEffect.modifierBundle(Modifiers.shielded(0.25)),\n AbilityEffect.healPercentageOfMaxHp(0.5));\n case \"Levitation\":\n return Collections.singletonList(\n AbilityEffect.modifierBundle(\n new ModifierBundle(\n Modifiers.flight(), Modifiers.farsight(3), Modifiers.quickness(1))));\n case \"Channel\":\n return Collections.singletonList(AbilityEffect.mana(25));\n default:\n throw new RuntimeException(\"Unknown ability name \" + abilityName);\n }\n }",
"public String getContainedDescription() {\n\t\tif (getType() == SpawnType.APPEARS) {\n\t\t\treturn mob.hasActFlag(ActFlag.SENTINEL) ? \"Contains\" : \"May contain\";\n\t\t} else if (getType() == SpawnType.PRODUCED_MOB\n\t\t\t\t|| getType() == SpawnType.PRODUCED_ITEM\n\t\t\t\t|| getType() == SpawnType.PRODUCED_ROOM) {\n\t\t\treturn \"May summon\";\n\t\t} else {\n\t\t\treturn \"Unrelated to\";\n\t\t}\n\t}",
"HashMap<String, String> getAdditionalDescriptions();",
"public List<String> getDepartmentNameWithAtLeastOneCaWithNoDescription();",
"public static String getDescriptionFilter() {\r\n return descriptionFilter;\r\n }",
"public java.util.List<com.google.cloud.aiplatform.v1.EvaluatedAnnotationExplanation>\n getExplanationsList() {\n if (explanationsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(explanations_);\n } else {\n return explanationsBuilder_.getMessageList();\n }\n }",
"public List<InvalidRatSightingReason> getReasons() {\n return reasons;\n }",
"public String getDesc() {\r\n return \"能量变化范围详情\";\r\n }",
"public Stream<AllowReason> getAllowReasons(ExpressionTree tree, VisitorState state) {\n return validAllowReasons.stream()\n .filter(reason -> ALLOW_MATCHERS.get(reason).matches(tree, state));\n }",
"String getDesc();",
"public String getLongDescription() {\n StringBuilder s = new StringBuilder();\n s.append(ChatColor.WHITE).append(getChanceDescription());\n s.append(ChatColor.YELLOW).append(getCountDescription());\n s.append(ChatColor.GOLD).append(_dropType).append(' ');\n\n if (_dropType == DropType.ITEM) {\n Item item = BeastMaster.ITEMS.getItem(_id);\n s.append((item == null) ? ChatColor.RED : (item.isImplicit() ? ChatColor.YELLOW : ChatColor.GREEN));\n s.append(_id);\n\n // Only items can have an associated objective.\n if (_objectiveType != null) {\n s.append(ChatColor.GREEN).append(\"(objective: \").append(_objectiveType).append(\") \");\n }\n } else if (_dropType == DropType.MOB) {\n MobType mobType = BeastMaster.MOBS.getMobType(_id);\n s.append((mobType == null) ? ChatColor.RED : ChatColor.GREEN);\n s.append(_id);\n }\n\n if (_restricted) {\n s.append(ChatColor.LIGHT_PURPLE).append(\" restricted\");\n }\n\n if (_alwaysFits) {\n s.append(ChatColor.YELLOW).append(\" always-fits\");\n }\n\n if (_logged) {\n s.append(ChatColor.GOLD).append(\" logged\");\n }\n\n if (getExperience() > 0 || getSound() != null || isInvulnerable() || isGlowing() || isDirect()) {\n s.append(\"\\n \");\n\n if (getExperience() > 0) {\n s.append(' ');\n s.append(ChatColor.GOLD).append(\"xp \");\n s.append(ChatColor.YELLOW).append(getExperience());\n }\n\n if (getSound() != null) {\n s.append(' ').append(getSoundDescription());\n }\n\n if (isGlowing()) {\n s.append(ChatColor.GOLD).append(\" glowing\");\n }\n\n if (isInvulnerable()) {\n s.append(ChatColor.GOLD).append(\" invulnerable\");\n }\n\n if (isDirect()) {\n s.append(ChatColor.GOLD).append(\" direct-to-inv\");\n }\n\n }\n return s.toString();\n }",
"public List<String> techniques() {\n return this.innerProperties() == null ? null : this.innerProperties().techniques();\n }",
"public default Collection<String> getDescription()\r\n\t{\r\n\t\treturn new ArrayList<String>();\r\n\t}",
"public String agileOrWaterfallDecider() {\n String decision = \"Agile.\";\n int x = 0;\n if (numberOfProgrammersOnCheckBox.isSelected())\n x += 1;\n if (needForAFixedCheckBox.isSelected())\n x += 1;\n if (doTeammateHaveExperienceCheckBox.isSelected())\n x += 1;\n if (stringentQualityControlRequirementsCheckBox.isSelected())\n x += 1;\n if (earlyIntegrationNOTDesirableCheckBox.isSelected())\n x += 1;\n if (earlyWorkingModelsNOTCheckBox.isSelected())\n x += 1;\n if (x > 3)\n decision = \"Waterfall.\";\n else if (x == 3) {\n decision = \"either one.\";\n }\n return decision;\n }"
] | [
"0.62870246",
"0.5979938",
"0.5963804",
"0.5846862",
"0.57998174",
"0.5730159",
"0.57219905",
"0.5691241",
"0.56286955",
"0.5618691",
"0.5586462",
"0.555819",
"0.5550671",
"0.5550671",
"0.5550671",
"0.5550671",
"0.5550671",
"0.5550671",
"0.5550671",
"0.5550671",
"0.5550671",
"0.5544",
"0.5495203",
"0.5494029",
"0.5494029",
"0.5494029",
"0.5494029",
"0.5494029",
"0.5494029",
"0.5488763",
"0.5473498",
"0.5451826",
"0.5448759",
"0.54457885",
"0.5409049",
"0.5389503",
"0.53762496",
"0.53701586",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53512335",
"0.53469944",
"0.53432214",
"0.53427076",
"0.53296745",
"0.5295091",
"0.5292153",
"0.52920043",
"0.5278594",
"0.5267991",
"0.52592313",
"0.52543664",
"0.5233174",
"0.52197874",
"0.52174306",
"0.52040786",
"0.5198478",
"0.5174112",
"0.51729816",
"0.51703066",
"0.51666826",
"0.5162548",
"0.51598114",
"0.5159725",
"0.5131729"
] | 0.8063685 | 0 |
Sets the value of machineId | public void setMachineId(String machineId)
{
this.machineId = machineId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setMachineID(int value) {\n this.machineID = value;\n }",
"public Builder setMachineId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n machineId_ = value;\n onChanged();\n return this;\n }",
"public Builder setMachineIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n machineId_ = value;\n onChanged();\n return this;\n }",
"public String getMachineId()\n\t{\n\t\treturn machineId;\n\t}",
"public Builder clearMachineId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n machineId_ = getDefaultInstance().getMachineId();\n onChanged();\n return this;\n }",
"java.lang.String getMachineId();",
"public com.google.protobuf.ByteString\n getMachineIdBytes() {\n java.lang.Object ref = machineId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n machineId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n machineId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setMachineName(java.lang.String machineName) {\r\n this.machineName = machineName;\r\n }",
"public int getMachineID() {\n return machineID;\n }",
"public com.google.protobuf.ByteString\n getMachineIdBytes() {\n java.lang.Object ref = machineId_;\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 machineId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n machineId_ = s;\n }\n return s;\n }\n }",
"public void setClientMachine(String sClientMachine) throws IOException;",
"public void setMachineIdModified(boolean machineIdModified)\n\t{\n\t\tthis.machineIdModified = machineIdModified;\n\t}",
"public void setSystemId(int val) {\n systemId = val;\n }",
"public void assignIDtoVM(){\n\t\tint count = 0;\n\t\tfor(VirtualMachine aux : vms)\n\t\t\taux.setId(id + Integer.toString(count++));\n\t}",
"com.google.protobuf.ByteString\n getMachineIdBytes();",
"public MachineTypeId getMachineTypeId() {\n return machineTypeId;\n }",
"public String vmwareMachineId() {\n return this.vmwareMachineId;\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(String systemId);",
"public void setId(byte value) {\r\n this.id = value;\r\n }",
"public void setReleaseDateMachine(Integer releaseDateMachine) {\r\n this.releaseDateMachine = releaseDateMachine;\r\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public void setId(long value) {\r\n this.id = value;\r\n }",
"public String getMachineUID()\n {\n return machineUID;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"public void setId(long value) {\n this.id = value;\n }",
"private void setRoomId(long value) {\n \n roomId_ = value;\n }",
"public void setSystemId(String systemId) {\n agentConfig.setSystemId(systemId);\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"void setID(int val)\n throws RemoteException;",
"public abstract String getMachineID();",
"public void setId(Long value) {\r\n this.id = value;\r\n }",
"public boolean isSetMachineId() {\n return EncodingUtils.testBit(__isset_bitfield, __MACHINEID_ISSET_ID);\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(java.lang.String value) {\n this.id = value;\n }",
"public void setId(Long value) {\n this.id = value;\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setServiceId(long value) {\n validate(fields()[2], value);\n this.serviceId = value;\n fieldSetFlags()[2] = true;\n return this; \n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"public void setInternalId()\n {\n // generate a unique id that will be used for the internal id:\n UUID uuid = UUID.randomUUID();\n this.internalId = uuid.toString();\n }",
"private void setId(String id) {\r\n\t\tAssert.hasText(id, \"This state must have a valid identifier\");\r\n\t\tthis.id = id;\r\n\t}",
"public void setId(String value) {\n \tif (value==null)\n \t\tthis.id = \"\";\n \telse\n \t\tthis.id = value;\n }",
"public void setId(long param) {\n localIdTracker = param != java.lang.Long.MIN_VALUE;\r\n\r\n this.localId = param;\r\n }",
"private void setHostName(String hostId)\n\t{\n\t\ttry\n\t\t{\n\t\t\tInetAddress localMachine = InetAddress.getLocalHost();\n\t\t\tString hostName = localMachine.getHostName();\n\t\t\tString address = localMachine.getHostAddress();\n\t\t\thost = ((!Strings.isEmpty(hostName)) ? hostName + \"/\" + address : address) + \"/\" +\n\t\t\t\t\thostId;\n\t\t}\n\t\tcatch (UnknownHostException e)\n\t\t{\n\t\t}\n\n\t\tif (Strings.isEmpty(host))\n\t\t{\n\t\t\thost = \"<unknown>\";\n\t\t}\n\t}",
"public void setServiceId(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localServiceIdTracker = true;\r\n } else {\r\n localServiceIdTracker = false;\r\n \r\n }\r\n \r\n this.localServiceId=param;\r\n \r\n\r\n }",
"public ComputerBuilder id(long id) {\n this.computer.setId(id);\n return this;\n }",
"public void setId(java.lang.Long value) {\n this.id = value;\n }",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }",
"public void setId(String value) {\n setAttributeInternal(ID, value);\n }",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"public void setId(java.lang.Long value) {\r\n\t\tthis.id = value;\r\n\t}",
"public void set_moteId(int value) {\n setUIntBEElement(offsetBits_moteId(), 16, value);\n }",
"@Override\n public void setElementId(String arg0)\n {\n \n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"@Test\n public void testSetNeighborSystemId() throws Exception {\n isisNeighbor.setNeighborSystemId(systemId);\n result1 = isisNeighbor.neighborSystemId();\n assertThat(result1, is(systemId));\n }",
"public boolean hasMachineId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public void setMemArtId(Number value) {\n setAttributeInternal(MEMARTID, value);\n }",
"void xsetServiceId(com.microsoft.schemas._2003._10.serialization.Guid serviceId);",
"void setInstanceId(int instanceId);",
"void setInstanceId(int instanceId);",
"void setInstanceId(int instanceId);",
"public void setServiceId(java.lang.Long value) {\n this.serviceId = value;\n }",
"@Test\r\n public void testSetId() {\r\n System.out.println(\"setId\");\r\n int lId = 0;\r\n \r\n instance.setId(lId);\r\n assertEquals(lId, instance.getId());\r\n \r\n }",
"public void setID(String id) {\r\n element.setAttributeNS(WSU_NS, WSU_PREFIX + \":Id\", id);\r\n }",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"public void setId(int value) {\r\n this.id = value;\r\n }",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"public Builder setEnterId(int value) {\n \n enterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setEnterId(int value) {\n \n enterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setEnterId(int value) {\n \n enterId_ = value;\n onChanged();\n return this;\n }",
"public Builder setEnterId(int value) {\n \n enterId_ = value;\n onChanged();\n return this;\n }",
"boolean hasMachineId();",
"public void setSystemId (java.lang.Long systemId) {\r\n\t\tthis.systemId = systemId;\r\n\t}",
"public boolean hasMachineId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public void setUpdateDateMachine(Integer updateDateMachine) {\r\n this.updateDateMachine = updateDateMachine;\r\n }",
"@Override\n\tpublic void setId(long value) {\n super.setId(value);\n }",
"public void setIdVozilo(long value) {\n this.idVozilo = value;\n }",
"public void setSystemId( String systemId ) { this.systemId = systemId; }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }",
"public void setId(int value) {\n this.id = value;\n }"
] | [
"0.8190285",
"0.8076635",
"0.75210387",
"0.699879",
"0.6691065",
"0.66248745",
"0.65779746",
"0.6455351",
"0.64543426",
"0.6423769",
"0.6421312",
"0.62767017",
"0.62471956",
"0.61094195",
"0.59738195",
"0.5940609",
"0.5931577",
"0.5759509",
"0.5752379",
"0.57241136",
"0.57241136",
"0.5652503",
"0.5622095",
"0.5562606",
"0.55288696",
"0.55288696",
"0.55283564",
"0.55186105",
"0.55186105",
"0.55186105",
"0.55186105",
"0.55186105",
"0.55186105",
"0.55186105",
"0.54642385",
"0.54461306",
"0.54121286",
"0.5400459",
"0.5392999",
"0.5379149",
"0.537322",
"0.5370901",
"0.5370901",
"0.5370901",
"0.53643924",
"0.53623116",
"0.5359203",
"0.5359203",
"0.5359203",
"0.5358291",
"0.5354767",
"0.53494227",
"0.53206253",
"0.53064495",
"0.5305359",
"0.52759564",
"0.52655584",
"0.52565604",
"0.5252112",
"0.5252112",
"0.52498394",
"0.5247034",
"0.5247018",
"0.52370125",
"0.5233336",
"0.5233336",
"0.5233336",
"0.5233336",
"0.5233336",
"0.5233336",
"0.5233336",
"0.5216016",
"0.52132934",
"0.520378",
"0.51984",
"0.5192821",
"0.5192821",
"0.5192821",
"0.518944",
"0.5186375",
"0.5178158",
"0.51748425",
"0.51748425",
"0.51748425",
"0.5169469",
"0.51642996",
"0.51615137",
"0.51615137",
"0.51615137",
"0.51615137",
"0.5158225",
"0.5157509",
"0.5143018",
"0.5135794",
"0.51338917",
"0.5133257",
"0.5128147",
"0.5123184",
"0.5123184",
"0.5123184"
] | 0.78019637 | 2 |
Gets the value of machineId | public String getMachineId()
{
return machineId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getMachineId();",
"public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n machineId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getMachineId() {\n java.lang.Object ref = machineId_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n machineId_ = s;\n }\n return s;\n }\n }",
"public com.google.protobuf.ByteString\n getMachineIdBytes() {\n java.lang.Object ref = machineId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n machineId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getMachineIdBytes() {\n java.lang.Object ref = machineId_;\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 machineId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public int getMachineID() {\n return machineID;\n }",
"com.google.protobuf.ByteString\n getMachineIdBytes();",
"public String getMachineUID()\n {\n return machineUID;\n }",
"public abstract String getMachineID();",
"public String vmwareMachineId() {\n return this.vmwareMachineId;\n }",
"public MachineTypeId getMachineTypeId() {\n return machineTypeId;\n }",
"public void setMachineID(int value) {\n this.machineID = value;\n }",
"@JsonIgnore\n public String getVMId() {\n if (wvm == null || wvm == WVM.Workspace) {\n return null;\n }\n switch (wvm) {\n case Version:\n return versionId;\n default:\n return microversionId;\n }\n }",
"public Builder setMachineId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n machineId_ = value;\n onChanged();\n return this;\n }",
"public java.lang.String getMachineName() {\r\n return machineName;\r\n }",
"public void setMachineId(String machineId)\n\t{\n\t\tthis.machineId = machineId;\n\t}",
"@JsonIgnore\n public String getWVMId() {\n if (wvm == null) {\n return null;\n }\n switch (wvm) {\n case Workspace:\n return workspaceId;\n case Version:\n return versionId;\n default:\n return microversionId;\n }\n }",
"public Builder setMachineIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n machineId_ = value;\n onChanged();\n return this;\n }",
"boolean hasMachineId();",
"public String vmmServerId() {\n return this.innerProperties() == null ? null : this.innerProperties().vmmServerId();\n }",
"Integer getDeviceId();",
"public String getSystemId();",
"public Number getSystemId() {\n return (Number)getAttributeInternal(SYSTEMID);\n }",
"public boolean hasMachineId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public String getClientMachine();",
"String getValueId();",
"public byte[] getInstanceId() {\n if (byteInstanceID == null) {\n final Device device = Device.getInstance();\n final byte[] deviceid = device.getWDeviceId();\n byteInstanceID = Encryption.SHA1(deviceid);\n }\n return byteInstanceID;\n }",
"public MachineType getMachineType() {\n return machineType;\n }",
"public Number getSystemId() {\n return (Number) getAttributeInternal(SYSTEMID);\n }",
"public boolean hasMachineId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public String getSystemId() { return this.systemId; }",
"public String getMaternalID();",
"private String getDeviceId() {\n String deviceId = telephonyManager.getDeviceId(); \n \n \n // \"generic\" means the emulator.\n if (deviceId == null || Build.DEVICE.equals(\"generic\")) {\n \t\n // This ID changes on OS reinstall/factory reset.\n deviceId = Secure.getString(context.getContentResolver(), Secure.ANDROID_ID);\n }\n \n return deviceId;\n }",
"@JsonIgnore\n public String getWMId() {\n if (wvm == null || wvm == WVM.Version) {\n return null;\n }\n switch (wvm) {\n case Workspace:\n return workspaceId;\n default:\n return microversionId;\n }\n }",
"public String getDeviceId() {\n\t\tString id;\n\t\tid = options.getProperty(\"id\");\n\t\tif(id == null) {\n\t\t\tid = options.getProperty(\"Device-ID\");\n\t\t}\n\t\treturn trimedValue(id);\n\t}",
"public Long getVmInstanceId() {\n return vmInstanceId;\n }",
"private String getCurrentInstanceId() throws IOException {\n String macAddress = CommonUtils.toHexString(RuntimeUtils.getLocalMacAddress());\n // 16 chars - workspace ID\n String workspaceId = DBWorkbench.getPlatform().getWorkspace().getWorkspaceId();\n if (workspaceId.length() > 16) {\n workspaceId = workspaceId.substring(0, 16);\n }\n\n StringBuilder id = new StringBuilder(36);\n id.append(macAddress);\n id.append(\":\").append(workspaceId).append(\":\");\n while (id.length() < 36) {\n id.append(\"X\");\n }\n return id.toString();\n }",
"UUID getMonarchId();",
"java.lang.String getInstanceId();",
"java.lang.String getInstanceId();",
"java.lang.String getInstanceId();",
"java.lang.String getInstanceId();",
"public Machine machine() {\n return machine;\n }",
"private Machine getMachineOrFail(String machineId) {\n for (Machine machine : listMachines()) {\n if (machine.getId().equals(machineId)) {\n return machine;\n }\n }\n throw new NotFoundException(String.format(\"no machine with id '%s' found in cloud pool\", machineId));\n }",
"io.dstore.values.IntegerValue getNodeCharacteristicId();",
"io.dstore.values.IntegerValue getNodeCharacteristicId();",
"private static final long getHostId(){\n long macAddressAsLong = 0;\n try {\n Random random = new Random();\n InetAddress address = InetAddress.getLocalHost();\n NetworkInterface ni = NetworkInterface.getByInetAddress(address);\n if (ni != null) {\n byte[] mac = ni.getHardwareAddress();\n random.nextBytes(mac); // we don't really want to reveal the actual MAC address\n\n //Converts array of unsigned bytes to an long\n if (mac != null) {\n for (int i = 0; i < mac.length; i++) {\n macAddressAsLong <<= 8;\n macAddressAsLong ^= (long)mac[i] & 0xFF;\n }\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return macAddressAsLong;\n }",
"public String getSystemId() {\n\t\treturn mSystemId;\n\t}",
"String getMspId();",
"String experimentId();",
"public com.flexnet.opsembedded.webservices.DeviceMachineTypeQueryType getMachineType() {\n return machineType;\n }",
"public java.lang.Long getSystemId () {\r\n\t\treturn systemId;\r\n\t}",
"com.google.protobuf.ByteString getMachineTypeBytes();",
"private String getMyNodeId() {\n TelephonyManager tel = (TelephonyManager) getContext().getSystemService(Context.TELEPHONY_SERVICE);\n String nodeId = tel.getLine1Number().substring(tel.getLine1Number().length() - 4);\n return nodeId;\n }",
"io.dstore.values.IntegerValue getValueCharacteristicId();",
"UUID getDeviceId();",
"java.lang.String getDeviceId();",
"public io.dstore.values.IntegerValue getNodeCharacteristicId() {\n if (nodeCharacteristicIdBuilder_ == null) {\n return nodeCharacteristicId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : nodeCharacteristicId_;\n } else {\n return nodeCharacteristicIdBuilder_.getMessage();\n }\n }",
"public io.dstore.values.IntegerValue getNodeCharacteristicId() {\n if (nodeCharacteristicIdBuilder_ == null) {\n return nodeCharacteristicId_ == null ? io.dstore.values.IntegerValue.getDefaultInstance() : nodeCharacteristicId_;\n } else {\n return nodeCharacteristicIdBuilder_.getMessage();\n }\n }",
"public Integer getDeviceId() {\n return deviceId;\n }",
"public Integer getDeviceId() {\n return deviceId;\n }",
"public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}",
"public static String getInstanceIdByComputeNode(final String computeNodePath) {\n Pattern pattern = Pattern.compile(getComputeNodePath() + \"(/status|/worker_id|/labels)\" + \"/([\\\\S]+)$\", Pattern.CASE_INSENSITIVE);\n Matcher matcher = pattern.matcher(computeNodePath);\n return matcher.find() ? matcher.group(2) : \"\";\n }",
"public int getEmulationId() {\n\t\treturn (id);\n\t}",
"public Integer getReleaseDateMachine() {\r\n return releaseDateMachine;\r\n }",
"public YangString getHostIdentityValue() throws JNCException {\n return (YangString)getValue(\"host-identity\");\n }",
"public String deviceId() {\n return this.deviceId;\n }",
"public static String deviceId() {\n\t\t// return device id\n\t\treturn getTelephonyManager().getDeviceId();\n\t}",
"public java.lang.String getMnpId() {\n java.lang.Object ref = mnpId_;\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 mnpId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"@Nullable\n abstract String getInstanceId();",
"public String getInstanceId() {\n return this.InstanceId;\n }",
"public String getInstanceId() {\n return this.InstanceId;\n }",
"public String getInstanceId() {\n return this.InstanceId;\n }",
"public java.lang.String getDeviceId() {\n java.lang.Object ref = deviceId_;\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 deviceId_ = s;\n }\n return s;\n }\n }",
"String getIdentityId();",
"public int getInstanceId(){\n\t\treturn this._instanceId;\n\t}",
"java.lang.String getMachineType();",
"public int getguestID(){\n return givedata.returnGuestID();\n }",
"public java.lang.String getMnpId() {\n java.lang.Object ref = mnpId_;\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 mnpId_ = s;\n return s;\n }\n }",
"public String myNodeId() {\n\t\tif (nodeId == null) {\n\t\t\tnodeId = UUID.randomUUID();\n\t\t\tLOG.debug(\"My node id=\" + nodeId.toString());\n\t\t}\n\n\t\treturn nodeId.toString();\n\t}",
"public String getUniqueIdValue() {\n return uniqueIdValue;\n }",
"public int getMessageId() {\n return concatenateBytes(binary[MSID_OFFSET],\n binary[MSID_OFFSET+1],\n binary[MSID_OFFSET+2],\n binary[MSID_OFFSET+3]);\n }",
"public Builder clearMachineId() {\n bitField0_ = (bitField0_ & ~0x00000001);\n machineId_ = getDefaultInstance().getMachineId();\n onChanged();\n return this;\n }",
"Object getMessageId();",
"public String getDeviceId() {\n //TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);\n String number = Build.SERIAL;\n return number;\n }",
"public java.lang.String getDeviceId() {\n java.lang.Object ref = deviceId_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n deviceId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getInstanceId() {\n return this.instanceId;\n }",
"public String getInstanceId() {\n return this.instanceId;\n }",
"DeviceId deviceId();",
"DeviceId deviceId();",
"public String getSystemId()\n {\n if (entityStack.empty())\n {\n return null;\n }\n else\n {\n return (String) entityStack.peek();\n }\n }",
"io.dstore.values.IntegerValue getUnitId();",
"public java.lang.String getUserExternalSystemId() {\r\n return userExternalSystemId;\r\n }",
"@SuppressWarnings(\"HardwareIds\")\n public String getUniqueDeviceId() {\n return Settings.Secure.getString(mContext.getContentResolver(), Settings.Secure.ANDROID_ID);\n }",
"public String getId() {\n\t\treturn this.token.get(\"id\").toString();\n\t}",
"PhysicalMachine getPhysicalMachine() {\n return pm;\n }",
"public String getInstanceId();",
"public String getSystemId() {\n return agentConfig.getSystemId();\n }",
"public String getInternalId()\n {\n return internalId;\n }",
"com.google.protobuf.ByteString getInstanceIdBytes();"
] | [
"0.8579903",
"0.8427723",
"0.84135604",
"0.8230804",
"0.81560117",
"0.81003165",
"0.8058991",
"0.7507749",
"0.7389363",
"0.73605174",
"0.6978438",
"0.6883941",
"0.6597202",
"0.6513882",
"0.64723253",
"0.6438992",
"0.6223046",
"0.6193674",
"0.61848915",
"0.59627587",
"0.59441036",
"0.59354043",
"0.5923374",
"0.5916528",
"0.5915978",
"0.5899109",
"0.5860718",
"0.58442205",
"0.583929",
"0.5837102",
"0.5827903",
"0.5819467",
"0.5812983",
"0.58059883",
"0.5800356",
"0.5791073",
"0.5790412",
"0.57654774",
"0.57149595",
"0.57149595",
"0.57149595",
"0.57149595",
"0.5691318",
"0.5690214",
"0.56675357",
"0.56675357",
"0.56674284",
"0.5667314",
"0.5666259",
"0.56606066",
"0.56600994",
"0.56559294",
"0.5655863",
"0.56545836",
"0.5652775",
"0.562903",
"0.5592579",
"0.55925226",
"0.55925226",
"0.5587203",
"0.5587203",
"0.5568359",
"0.5568289",
"0.55676895",
"0.5561078",
"0.55607325",
"0.55365336",
"0.5534582",
"0.5533009",
"0.55326235",
"0.5528698",
"0.5528698",
"0.5528698",
"0.5525971",
"0.5522859",
"0.5521898",
"0.55215234",
"0.5499493",
"0.54941356",
"0.5493219",
"0.5490445",
"0.54874074",
"0.548207",
"0.5479987",
"0.54790854",
"0.547149",
"0.54691744",
"0.54691744",
"0.5463298",
"0.5463298",
"0.54610956",
"0.5459862",
"0.5451794",
"0.5441219",
"0.5421813",
"0.54018337",
"0.5399474",
"0.5396401",
"0.53960896",
"0.53942794"
] | 0.845599 | 1 |
Sets the value of customerId | public void setCustomerId(String customerId)
{
this.customerId = customerId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }",
"public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"public void setCustomerId(long value) {\n this.customerId = value;\n }",
"public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }",
"public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}",
"public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }",
"public void setCustomerId(String customerId) {\n\t\tthis.customerId = customerId == null ? null : customerId.trim();\n\t}",
"public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }",
"public void setBudgetCustomerId(Number value) {\n setAttributeInternal(BUDGETCUSTOMERID, value);\n }",
"public void setCustId(Long custId) {\n this.custId = custId;\n }",
"public void setCustomer(Integer customer) {\n this.customer = customer;\n }",
"public void setCustomer(au.gov.asic.types.AccountIdentifierType customer)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.AccountIdentifierType)get_store().add_element_user(CUSTOMER$0);\n }\n target.set(customer);\n }\n }",
"public void setCustId(Long custId) {\n\t\tsetField(\"custId\", custId);\n\t}",
"public void setCustId(Long custId) {\n\t\tthis.custId = custId;\n\t}",
"public void setCustomerid(String customerid) {\n this.customerid = customerid == null ? null : customerid.trim();\n }",
"public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}",
"public String getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public int getCustomerId() {\n\t\treturn customerId;\n\t}",
"public long getCustomerId() {\n\t\treturn customerId;\n\t}",
"public Long getCustomerId() {\n return customerId;\n }",
"public Integer getCustomerId()\n {\n return customerId;\n }",
"protected void setCustomer(Customer customer) {\n this.customer = customer;\n }",
"public void setCustomerID(String customerID) {\n try {\n if(!(customerID.equals(null)))\n this.customerID = customerID;\n else {\n this.customerID = \"\";\n throw new SupplyOrderException(\"Invalid Customer ID\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }",
"public final String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public void setCustID(String custID) {\r\n this.custID = custID;\r\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public void setAmazonCustomerId(final SessionContext ctx, final Customer item, final String value)\n\t{\n\t\titem.setProperty(ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID,value);\n\t}",
"public void setCustomerIdentifier(au.gov.asic.types.MessageIdentifierType.CustomerIdentifier customerIdentifier)\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().add_element_user(CUSTOMERIDENTIFIER$2);\n }\n target.set(customerIdentifier);\n }\n }",
"public void setAmazonCustomerId(final Customer item, final String value)\n\t{\n\t\tsetAmazonCustomerId( getSession().getSessionContext(), item, value );\n\t}",
"public int getCustomerId() {\n return customerId;\n }",
"public int getCustomerId() {\n return customerId;\n }",
"public void setCustomer(\n @Nullable\n final String customer) {\n rememberChangedField(\"Customer\", this.customer);\n this.customer = customer;\n }",
"public void updateCustomer(String id) {\n\t\t\n\t}",
"public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}",
"public void setCurrentCustomer(Customer customer) {\n this.currentCustomer = customer;\n }",
"public void setCustomer(String customer) {\n this.customer = customer;\n }",
"public void setCustomer(org.tempuri.Customers customer) {\r\n this.customer = customer;\r\n }",
"public String getCustomerid() {\n return customerid;\n }",
"public void setCustomer(Customer customer) {\r\n \r\n this.customer = customer;\r\n \r\n if (customer != null) {\r\n // Fill the labels with info from the Customer object\r\n custIdTextField.setText(Integer.toString(customer.getCustomerId()));\r\n custFirstNameTextField.setText(customer.getCustFirstName());\r\n custLastNameTextField.setText(customer.getCustLastName());\r\n custAddressTextField.setText(customer.getCustAddress());\r\n custCityTextField.setText(customer.getCustCity());\r\n custProvinceTextField.setText(customer.getCustProv());\r\n custPostalCodeTextField.setText(customer.getCustPostal());\r\n custCountryTextField.setText(customer.getCustCountry());\r\n custHomePhoneTextField.setText(customer.getCustHomePhone());\r\n custBusinessPhoneTextField.setText(customer.getCustBusPhone());\r\n custEmailTextField.setText(customer.getCustEmail());\r\n if (cboAgentId.getItems().contains(customer.getAgentId())){\r\n cboAgentId.setValue(customer.getAgentId());\r\n }\r\n else{\r\n cboAgentId.getSelectionModel().selectFirst();\r\n }\r\n } else {\r\n custIdTextField.setText(\"\");\r\n custFirstNameTextField.setText(\"\");\r\n custLastNameTextField.setText(\"\");\r\n custAddressTextField.setText(\"\");\r\n custCityTextField.setText(\"\");\r\n custProvinceTextField.setText(\"\");\r\n custPostalCodeTextField.setText(\"\");\r\n custCountryTextField.setText(\"\");\r\n custHomePhoneTextField.setText(\"\");\r\n custBusinessPhoneTextField.setText(\"\");\r\n custEmailTextField.setText(\"\");\r\n cboAgentId.getSelectionModel().selectFirst();\r\n } \r\n }",
"@Override\n public void updateCustomer(UUID id, CustomerDto customer) {\n log.debug(\"Customer is updated: customerId: \"+id);\n }",
"public void setCustomer(final Customer customer) {\n\t\tthis.customer = customer;\n\t}",
"public int getCustomerID() {\n\t\treturn customerID;\n\t}",
"public void reserve(int customerId){\n\t\treserved = true;\n\t\tthis.customerId = customerId;\n\t}",
"public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}",
"java.lang.String getCustomerId();",
"java.lang.String getCustomerId();",
"public void setCustomerName(String customerName) \n {\n this.customerName = customerName;\n }",
"@Override\n public void updateCustomer(UUID customerId, @RequestBody Customer customer) {\n log.debug(\"Updating a customer to service...\");\n }",
"public io.confluent.developer.InterceptTest.Builder setReqCustid(int value) {\n validate(fields()[0], value);\n this.req_custid = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public Customer(int id) {\n\t\tthis.id = id;\n\t}",
"public Integer getCustomerID() {\n return customerID;\n }",
"public void setCustomerCatId(int v) throws TorqueException\n {\n \n if (this.customerCatId != v)\n {\n this.customerCatId = v;\n setModified(true);\n }\n \n \n if (aCustomerCategory != null && !(aCustomerCategory.getCustomerCatId() == v))\n {\n aCustomerCategory = null;\n }\n \n }",
"@Override\n public void setClientId(int clientId) {\n _entityCustomer.setClientId(clientId);\n }",
"public void setCustomer (de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t}",
"void updateCustomerById(Customer customer);",
"public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }",
"public void setCustomer(String Cus){\n\n this.customer = Cus;\n }",
"public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}",
"public int getCustomerID() {\n return customerID;\n }",
"public void setCustomerName(\n @Nullable\n final String customerName) {\n rememberChangedField(\"CustomerName\", this.customerName);\n this.customerName = customerName;\n }",
"public CustomerBuilder id (String idVal) {\n if (idVal == null) {\n throw new IllegalArgumentException(\"id can not be null\");\n }\n id = idVal;\n return this;\n }",
"public ResponseEntity<?> updateCustomerById(Long id, customer.controller.Customer customer);",
"public void setCustomer(Customer c){\n\t\tthis.c = Optional.of(c);\n\t}",
"public int getCustomerID() {\n\t\treturn 0;\n\t}",
"public void setCustomerName(String customerName) {\n this.customerName = customerName;\n }",
"public void setCustomer_Name(String customer_Name) {\n this.customer_Name = customer_Name;\n }",
"public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }",
"public void setExternalCustomerId(Long externalCustomerId) {\r\n this.externalCustomerId = externalCustomerId;\r\n }",
"@Override\n\tpublic Customer update(long customerId, Customer customer) {\n\t\treturn null;\n\t}",
"public int getCustomerId() \n {\n return customerId;\n }",
"public void setCurrentCustomer(Customer currentCustomer) {\n\t\tthis.currentCustomer = currentCustomer;\n\t}",
"public void setCustomerType(int v) \n {\n \n if (this.customerType != v)\n {\n this.customerType = v;\n setModified(true);\n }\n \n \n }",
"public void setCustPid(Long custPid) {\n\t\tthis.custPid = custPid;\n\t}",
"public void setCustCountryId(int v) throws TorqueException\n {\n \n if (this.custCountryId != v)\n {\n this.custCountryId = v;\n setModified(true);\n }\n \n \n if (aCountry != null && !(aCountry.getCountryId() == v))\n {\n aCountry = null;\n }\n \n }",
"@RequestMapping(method = RequestMethod.PUT, value = \"/{id}\")\n\t public ResponseEntity<?> updateUser(@PathVariable(\"id\") Long id, @RequestBody Customer customer) {\n\t \treturn service.updateCustomer(id, customer);\n\t }",
"public void setCustomer(com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer customer) {\r\n this.customer = customer;\r\n }",
"public void setCustomerAddr(String customerAddr) {\n this.customerAddr = customerAddr;\n }",
"public final void setOrder_Customer(com.mendix.systemwideinterfaces.core.IContext context, simpleordermodule.proxies.Customer order_customer)\r\n\t{\r\n\t\tif (order_customer == null)\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), null);\r\n\t\telse\r\n\t\t\tgetMendixObject().setValue(context, MemberNames.Order_Customer.toString(), order_customer.getMendixObject().getId());\r\n\t}",
"@Override\n public void setPrimaryKey(int primaryKey) {\n _entityCustomer.setPrimaryKey(primaryKey);\n }",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"@PutMapping(\"/customers\")\n\tpublic Customer updatecustomer(@RequestBody Customer thecustomer) {\n\t\t\n\t\tthecustomerService.saveCustomer(thecustomer); //as received JSON object already has id,the saveorupdate() DAO method will update details of existing customer who has this id\n\t\treturn thecustomer;\n\t}",
"public boolean setCustomer(Customer aCustomer)\n {\n boolean wasSet = false;\n if (aCustomer == null)\n {\n return wasSet;\n }\n\n Customer existingCustomer = customer;\n customer = aCustomer;\n if (existingCustomer != null && !existingCustomer.equals(aCustomer))\n {\n existingCustomer.removeBooking(this);\n }\n customer.addBooking(this);\n wasSet = true;\n return wasSet;\n }",
"public Long getCustId() {\n return custId;\n }",
"public String getCustId() {\n return custId;\n }",
"public void setCurrentById(BigDecimal id){\n Customer customer = ejbFacade.find(id);\n current = customer;\n }",
"public SolidAutoTellerMachine(int customerId) {\n deAuthenticate();\n User selectCustomer = DatabaseSelectHelper.getUserDetails(customerId);\n if (selectCustomer instanceof Customer) {\n currentCustomer = (Customer) selectCustomer;\n }\n }",
"public void setCustomer(Customer customer) {\r\n\r\n this.customer = customer;\r\n ObservableList<Order> orders = getAllCustomerOrders(customer.getCustomerId());\r\n ordersTable.setItems(orders);\r\n }",
"public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }",
"public Customer (\n\t\t Integer in_customerId\n\t\t) {\n\t\tsuper (\n\t\t in_customerId\n\t\t);\n\t}",
"@Override\n public void setDealerId(java.lang.String dealerId) {\n _entityCustomer.setDealerId(dealerId);\n }",
"public void setCustomer(Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t\tpassengers.add(customer);\r\n\t}",
"@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}"
] | [
"0.850142",
"0.8431124",
"0.8398406",
"0.834065",
"0.824759",
"0.8198464",
"0.8180485",
"0.8180485",
"0.8068582",
"0.792426",
"0.78224385",
"0.77771497",
"0.7624997",
"0.7562989",
"0.7450499",
"0.73978174",
"0.73485076",
"0.73464197",
"0.7336837",
"0.7305992",
"0.7267135",
"0.7267135",
"0.72670686",
"0.72303456",
"0.71886027",
"0.71761405",
"0.7141761",
"0.71365356",
"0.7129262",
"0.710614",
"0.7099519",
"0.70984685",
"0.70984685",
"0.7093448",
"0.70780313",
"0.7017281",
"0.7007213",
"0.7007213",
"0.699588",
"0.69939405",
"0.69838274",
"0.6929535",
"0.69068617",
"0.6881193",
"0.6866558",
"0.68636715",
"0.68085784",
"0.67817116",
"0.6781216",
"0.676483",
"0.6753098",
"0.6748072",
"0.6748072",
"0.6743678",
"0.66926676",
"0.6685599",
"0.6680976",
"0.6658654",
"0.6655439",
"0.6654114",
"0.66437703",
"0.66255766",
"0.6610042",
"0.65881085",
"0.6583539",
"0.6530209",
"0.6498092",
"0.64563286",
"0.64545786",
"0.6443007",
"0.6434277",
"0.6426845",
"0.6406817",
"0.6405949",
"0.640058",
"0.6362091",
"0.6358449",
"0.63288057",
"0.6327005",
"0.63235253",
"0.63016677",
"0.6278325",
"0.6262461",
"0.62592536",
"0.6256739",
"0.62356055",
"0.6226131",
"0.6226131",
"0.6221991",
"0.6220404",
"0.6218914",
"0.6184263",
"0.61755466",
"0.6161558",
"0.6148098",
"0.61436874",
"0.6123487",
"0.61215556",
"0.6119323",
"0.6107658"
] | 0.7993464 | 9 |
Gets the value of customerId | public String getCustomerId()
{
return customerId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getCustomerId();",
"java.lang.String getCustomerId();",
"public String getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\n return customerId;\n }",
"public Integer getCustomerId()\n {\n return customerId;\n }",
"public final String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }",
"public String getCustomerId() {\n\t\treturn customerId;\n\t}",
"public long getCustomerId() {\n return customerId;\n }",
"public long getCustomerId() {\n return customerId;\n }",
"public Long getCustomerId() {\n return customerId;\n }",
"public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}",
"public long getCustomerId() {\n\t\treturn customerId;\n\t}",
"public String getCustomerid() {\n return customerid;\n }",
"public int getCustomerId() {\n return customerId;\n }",
"public int getCustomerId() {\n return customerId;\n }",
"public int getCustomerId() {\n\t\treturn customerId;\n\t}",
"public Integer getCustomerID() {\n return customerID;\n }",
"String getCustomerID();",
"public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}",
"public int getCustomer_id() {\r\n\t\treturn customer_id;\r\n\t}",
"public int getCustomerID() {\n\t\treturn customerID;\n\t}",
"public int getCustomerID() {\n return customerID;\n }",
"public String getCustId() {\n return custId;\n }",
"com.google.protobuf.ByteString\n getCustomerIdBytes();",
"com.google.protobuf.ByteString\n getCustomerIdBytes();",
"public Long getCustId() {\n return custId;\n }",
"protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}",
"public int getCustomerId() \n {\n return customerId;\n }",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"public Long getCustId() {\n\t\treturn custId;\n\t}",
"public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}",
"public Integer getCustomer() {\n return customer;\n }",
"public String getCust_id() {\r\n\t\treturn cust_id;\r\n\t}",
"public int toInt(){\n\t\treturn CustomerId;\n\t}",
"public int getCustomerID() {\n\t\treturn 0;\n\t}",
"public int getCustomerID(int customer_id) {\n int id = 0;\n try {\n checkCustomerID.setInt(1, customer_id);\n ResultSet resultset = checkCustomerID.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID: \" + id);\n }\n try {\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Cannot close resultset!\");\n }\n }\n catch (SQLException exception) {\n System.out.println(\"Invalid Input!\");\n }\n return id;\n }",
"public String getCustID()\n\t{\n\t\treturn custID;\n\t}",
"public Long getExternalCustomerId() {\r\n return externalCustomerId;\r\n }",
"public int getCustId(){\n return this.custId;\r\n }",
"public void setCustomerId(long value) {\n this.customerId = value;\n }",
"public int currentCustomerId() {\n if (this.currentCustomerAuthenticated()) {\n return this.currentCustomer.getId();\n }\n return 0;\n }",
"public Number getBudgetCustomerId() {\n return (Number) getAttributeInternal(BUDGETCUSTOMERID);\n }",
"public int getCustomerNo() {\n\t\treturn this.customerNo;\r\n\t}",
"public String getCustomerId(int k) {\n\t\treturn prescriptionList.get(k).getCustomerId();\n\t}",
"public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier getCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public int getCustNumber()\n\t{\n\t\treturn customerNumber;\n\t}",
"public String getCustomer() {\n return customer;\n }",
"private String getCustomerId(String xmlResponse) {\r\n\t\t\r\n\t\tString customerId = \"\";\r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement element = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\t\r\n\t\t\telement = DOMUtils.getElement(element, \"customer\", true);\r\n\t\t\t\r\n\t\t\telement = DOMUtils.getElement(element, \"id\", true);\r\n\t\t\t\r\n\t\t\tcustomerId = DOMUtils.getText(element).toString();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\r\n\t\t\r\n\t\treturn customerId;\r\n\t\t\r\n\t}",
"public String getCustomer(String custId);",
"public void setCustomerId(Long customerId) {\n this.customerId = customerId;\n }",
"public String getCustomerCode() {\n\t\treturn customerCode;\n\t}",
"public void setCustomerId(int customerId) \n {\n this.customerId = customerId;\n }",
"public void setCustomer_id(int customer_id){\n this.customer_id = customer_id;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId;\n }",
"@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}",
"private String getCustomerId(String xmlResponse) {\r\n\t\t\r\n\t\tString customerId = \"\"; \r\n\t\tElement root;\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\troot = DOMUtils.openDocument(new ByteArrayInputStream(xmlResponse.getBytes()));\r\n\t\t\tElement data = DOMUtils.getElement(root, \"data\", true);\r\n\t\t\t\r\n\t\t\t//sets the subscriber name\r\n\t\t\tElement customerInfo = DOMUtils.getElement(data, \"customer\", true);\r\n\t\t\tcustomerInfo = DOMUtils.getElement(customerInfo, \"id\", true);\r\n\t\t\r\n\t\t\tcustomerId = DOMUtils.getText(customerInfo).toString();\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tlog.error(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t\tthrow new ErrorMessageException(\"Erro encontrado no XML de resposta do Infobus.\", e);\r\n\t\t}\t\r\n\t\t\r\n\t\treturn customerId;\r\n\t\t\r\n\t}",
"String getCustomerNameById(int customerId);",
"public void setCustomerId(final Integer customerId)\n {\n this.customerId = customerId;\n }",
"@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}",
"public java.lang.Integer getReqCustid() {\n return req_custid;\n }",
"@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}",
"public String getCustomerReference() {\n return customerReference;\n }",
"@Override\n public int getClientId() {\n return _entityCustomer.getClientId();\n }",
"public int getCustomerref() {\n\t\treturn custref;\n\t}",
"public au.gov.asic.types.AccountIdentifierType getCustomer()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"public static int getCustomerId(String customer) throws SQLException {\n query = \"SELECT * FROM customer WHERE customerName = ?\";\n model.DBQueryPrepared.setPreparedStatement(CONN, query);\n ps = DBQueryPrepared.getPreparedStatement();\n \n ps.setString(1, customer);\n ps.execute();\n rs = ps.getResultSet();\n \n // rs.first() will return true if it found the value, false if it didn't\n if(rs.first())\n return rs.getInt(\"customerId\");\n else {\n return 0;\n }\n }",
"public void setCustomerID(Integer customerID) {\n this.customerID = customerID;\n }",
"public static String generateCustomerID() {\n\tcustomerID++;\n\treturn String.valueOf(customerID);\n }",
"public java.lang.Integer getReqCustid() {\n return req_custid;\n }",
"public String getCustomerCode()\n\t{\n\t\treturn getColumn(OFF_CUSTOMER_CODE, LEN_CUSTOMER_CODE) ;\n\t}",
"public void setCustomerId(Number value) {\n setAttributeInternal(CUSTOMERID, value);\n }",
"Customer getCustomerById(final Long id);",
"public void setCustomerId(String customerId)\n\t{\n\t\tthis.customerId = customerId;\n\t}",
"public java.lang.String getCustNo() {\n return custNo;\n }",
"@Override\n public int getPrimaryKey() {\n return _entityCustomer.getPrimaryKey();\n }",
"public Long getRelCustId() {\n return relCustId;\n }",
"public void setCustomerId(int customerId) {\n\t\tthis.customerId = customerId;\n\t}",
"@Override\n public CustomerEntity getCustomerData(Long id) {\n return customerPersistencePort.getUser(id);\n }",
"public String getGlobalCustomerNumberID()\n\t{\n\t\treturn globalCustomerNumberID;\n\t}",
"public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }",
"Customer getCustomerById(int customerId);",
"@Override\n public String getCustomer() {\n return this.customerName;\n }",
"public void setCustId(Long custId) {\n this.custId = custId;\n }",
"public void setCustomerId(String customerId) {\n this.customerId = customerId == null ? null : customerId.trim();\n }",
"public Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}",
"public static int getCustomerId(String customerName)\n {\n int customerID = 0;\n try {\n Statement statement = DBConnection.getConnection().createStatement();\n String customerIdQuery = \"SELECT Customer_ID FROM customers WHERE Customer_Name='\" + customerName + \"'\";\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(customerIdQuery);\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n customerID = rs.getInt(\"Customer_ID\");\n return customerID;\n }\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n }\n return customerID;\n }",
"public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}",
"public Long getCustPid() {\n\t\treturn custPid;\n\t}",
"@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}",
"public String getCustomerName() {\n return customerName;\n }",
"public String getCustomerName() {\n return customerName;\n }",
"@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}",
"public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }",
"public String getAmazonCustomerId(final SessionContext ctx, final Customer item)\n\t{\n\t\treturn (String)item.getProperty( ctx, AmazoncoreConstants.Attributes.Customer.AMAZONCUSTOMERID);\n\t}",
"public String getCustCode() {\n return custCode;\n }",
"public String getCustCode() {\n return custCode;\n }",
"public int getNextCustomerId() {\n return database.getNextCustomerId();\n }",
"public int getAgentCustomers(int agent_id) {\n int id = 0;\n try {\n checkAgentCustomers.setInt(1, agent_id);\n ResultSet resultset = checkAgentCustomers.executeQuery();\n while (resultset.next()) {\n id = resultset.getInt(\"customer_id\");\n System.out.println(\"Customer ID is: \" + id + \"\\n\");\n }\n resultset.close();\n }\n catch (SQLException exception) {\n System.out.println(\"Agent Doesn't Manage Any Customers Yet!\");\n }\n return id;\n }"
] | [
"0.8743601",
"0.8743601",
"0.8368577",
"0.8368577",
"0.8349535",
"0.8334606",
"0.83222646",
"0.82716846",
"0.8256677",
"0.8256677",
"0.82515544",
"0.81850404",
"0.81670153",
"0.8105223",
"0.81037766",
"0.81037766",
"0.8062491",
"0.8061023",
"0.7990134",
"0.7980426",
"0.795743",
"0.78047705",
"0.7798086",
"0.7715079",
"0.76740354",
"0.76740354",
"0.76317364",
"0.756383",
"0.7521168",
"0.74702173",
"0.74702173",
"0.7435159",
"0.7401277",
"0.7393524",
"0.7358452",
"0.7353097",
"0.73203087",
"0.73076344",
"0.72889036",
"0.72732365",
"0.72437924",
"0.7216976",
"0.7162478",
"0.7113282",
"0.70308644",
"0.7030282",
"0.6952508",
"0.69332606",
"0.6923488",
"0.69056696",
"0.6878018",
"0.68425655",
"0.68189436",
"0.68119293",
"0.6802734",
"0.6802734",
"0.6778058",
"0.6760347",
"0.67601484",
"0.67292595",
"0.66649103",
"0.6664232",
"0.6657672",
"0.6642449",
"0.6624439",
"0.6606747",
"0.6605505",
"0.6593819",
"0.65927345",
"0.65771925",
"0.6548978",
"0.65411615",
"0.6538152",
"0.6521754",
"0.65177494",
"0.65021884",
"0.6485631",
"0.6477592",
"0.6451609",
"0.64413136",
"0.6419127",
"0.64167225",
"0.64061725",
"0.6404153",
"0.6396364",
"0.6390982",
"0.63780874",
"0.636228",
"0.6351614",
"0.63492626",
"0.6343595",
"0.63356423",
"0.63356423",
"0.6330546",
"0.632524",
"0.63248795",
"0.63239586",
"0.63239586",
"0.63176066",
"0.63016325"
] | 0.83837587 | 2 |
Sets the value of viveId | public void setViveId(String viveId)
{
this.viveId = viveId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getViveId()\n\t{\n\t\treturn viveId;\n\t}",
"public void setvID(int vID) {\n this.vID = vID;\n }",
"public void setIdVenta(String idVenta) {\n this.idVenta = idVenta;\n }",
"public void setIdVozilo(long value) {\n this.idVozilo = value;\n }",
"public void setProvProcessId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/prov_process_id\",v);\n\t\t_ProvProcessId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"public int getvID() {\n return vID;\n }",
"public void setPipePipelinedetailsElementId(Integer v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/pipe_pipelineDetails_element_id\",v);\n\t\t_PipePipelinedetailsElementId=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"void setVida(int vida)\n\t{\n\t\t// variable declarada anteriormente igual a la declarada en el set\n\t\tthis.vida = vida;\n\t}",
"public void setVid(int value) {\r\n this.vid = value;\r\n }",
"public void setVid(Integer vid) {\n this.vid = vid;\n }",
"public void assignIDtoVM(){\n\t\tint count = 0;\n\t\tfor(VirtualMachine aux : vms)\n\t\t\taux.setId(id + Integer.toString(count++));\n\t}",
"public void setVocubalaryId(long vocubalaryId);",
"public void setV(long value) {\n this.v = value;\n }",
"public void setIdDetalle_Ventaf(int idDetalle_Ventaf) {\n this.idDetalle_Ventaf = idDetalle_Ventaf;\n }",
"public String getVatId()\n {\n return vatId;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setValueId(Integer valueId) {\n this.valueId = valueId;\n }",
"public void setIva(int iva) {\n\t\tproducto.setIva(iva);\n\t}",
"public void setProductId(int v) throws TorqueException\n {\n \n if (this.productId != v)\n {\n this.productId = v;\n setModified(true);\n }\n \n \n if (aProductRelatedByProductId != null && !(aProductRelatedByProductId.getProductId() == v))\n {\n aProductRelatedByProductId = null;\n }\n \n }",
"protected void setViewId(View v, int id) {\n\t\tint current_id = v.getId();\n\t\tv.setId(id);\n\t\tfor(int i = 0; i < getChildCount(); i++) {\n\t\t\tRelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams)getChildAt(i).getLayoutParams();\n\t\t\tint rules[] = params.getRules();\n\t\t\tfor(int j = 0; j < rules.length; j++) {\n\t\t\t\tif(rules[j] == current_id) {\n\t\t\t\t\tparams.addRule(j, id);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Builder setCaptureFestivalId(long value) {\n \n captureFestivalId_ = value;\n onChanged();\n return this;\n }",
"private void setAId(int value) {\n \n aId_ = value;\n }",
"protected void setId(long id) {\n\t\tgraphicFrame.getNvGraphicFramePr().getCNvPr().setId(id);\n\t}",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setID(gw.pl.persistence.core.Key value) {\n __getInternalInterface().setFieldValue(ID_PROP.get(), value);\n }",
"private void setPropertyID(String v)\n {\n this.setFieldValue(FLD_propertyID, StringTools.trim(v));\n }",
"public void setVoucherId(Long voucherId) {\n\t\tthis.voucherId = voucherId;\n\t}",
"public void setIdVoteType( int idVoteType )\n {\n _nIdVoteType = idVoteType;\n }",
"public void setLovId(String lovId) {\r\n\t\tthis.lovId = lovId;\r\n\t}",
"public void assignId(int id);",
"private void setId(int value) {\n \n id_ = value;\n }",
"void setID(int val)\n throws RemoteException;",
"public void setID(int id){\n this.id=id;\n }",
"public Builder setVariantId(int value) {\n\n variantId_ = value;\n onChanged();\n return this;\n }",
"@Override\n public final void setItsId(final Long pId) {\n //stub\n }",
"@DISPID(6)\n\t// = 0x6. The runtime will prefer the VTID if present\n\t@VTID(14)\n\tvoid id(int pVal);",
"public void setPetId(java.lang.String param) {\n localPetIdTracker = true;\n\n this.localPetId = param;\n }",
"public long getVocubalaryId();",
"private void setVoterID(String[] voterID2)\n\t{\n\t\tthis.voterID = voterID2;\n\t}",
"private void setOtherId(int value) {\n \n otherId_ = value;\n }",
"public void setId(ID id){\r\n\t\tthis.id = id;\r\n\t}",
"public final void setKeyId(int keyId)\r\n\t{\r\n\t\tthis.keyId = keyId;\r\n\t}",
"public void setId (long id)\r\n {\r\n _id = id;\r\n }",
"public void setId(ID id)\n {\n this.id = id;\n }",
"public void setVid(java.lang.String param) {\r\n localVidTracker = param != null;\r\n\r\n this.localVid = param;\r\n }",
"public void setID(String idIn) {this.id = idIn;}",
"public void setCurrentPersonId(int personId) {\n currentPersonId = personId;\n }",
"public void setVivant(boolean vivant)\r\n\t{\r\n\t\tthis.vivant = vivant;\r\n\t}",
"public void setReceiverId(int v) \n {\n \n if (this.receiverId != v)\n {\n this.receiverId = v;\n setModified(true);\n }\n \n \n }",
"public void setValue_id(java.lang.String value_id) {\n this.value_id = value_id;\n }",
"public void setSentenceID(String v) {\n if (GeneTAG_Type.featOkTst && ((GeneTAG_Type)jcasType).casFeat_SentenceID == null)\n jcasType.jcas.throwFeatMissing(\"SentenceID\", \"GeneTAG\");\n jcasType.ll_cas.ll_setStringValue(addr, ((GeneTAG_Type)jcasType).casFeatCode_SentenceID, v);}",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"private void setObjId(int value) {\n \n objId_ = value;\n }",
"public void setVenueID(Integer venueID) {\n this.venueID = venueID;\n }",
"public void setVenuesId(Integer venuesId) {\n this.venuesId = venuesId;\n }",
"public void setId(int id){\r\n this.id = id;\r\n }",
"public void setID(int id);",
"public void setId(String anId) {\n _theId = anId;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setId(Object id) {\n this.id = id;\n }",
"public void setIdTravel(Integer idTravel) {\r\n this.idTravel = idTravel;\r\n }",
"void setPlayerId(int playerId);",
"public void setID(String newID)\r\n {\r\n id=newID;\r\n }",
"public int getVaoID() {\n\t\treturn vaoID;\n\t}",
"public void setId(int id){ this.id = id; }",
"public void setId (String id)\n {\n _id = id;\n }",
"public void setVedio (Vediotape vedio) {\n\t\tthis.vedio = vedio;\n\t}",
"public void setAdviserId(Long adviserId) {\n this.adviserId = adviserId;\n }",
"public void setID(String value) {\r\n \t\t_id = value;\r\n \r\n \t}",
"public void setId(VfeWorkflowsAdpId id) { this.id = id; }",
"public void setHotelId(int value) {\n this.hotelId = value;\n }",
"public void setVideoDevice(String id);",
"public void setidnumber(int id) {\r\n idnumber = id;\r\n }",
"public void setID(long id);",
"public void setID(int value) {\n this.id = value;\n }",
"public abstract void setEspe_id(java.lang.Integer newEspe_id);",
"void setId(int id) {\n this.id = id;\n }",
"public void setHotelID(int value) {\n this.hotelID = value;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(long id){\n this.id = id;\n }",
"public void setId(String id)\r\n/* 19: */ {\r\n/* 20:17 */ this.id = id;\r\n/* 21: */ }",
"public void setID(int id)\r\n {\r\n\tthis.id = id;\r\n }",
"public void setId(int id)\n {\n this.id=id;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setId(int value) {\n \n id_ = value;\n }",
"private void setIva(IVA iva) throws IvaInvalidoException {\n if (iva == null) {\n throw new IvaInvalidoException(\"El IVA debe ser válido.\");\n }\n this.iva = iva;\n }",
"public void setId(int value) {\r\n this.id = value;\r\n }",
"public void setId(int id) { this.id = id; }",
"public void setId(int id) { this.id = id; }"
] | [
"0.74468005",
"0.7319619",
"0.6703446",
"0.63751185",
"0.62967396",
"0.62806445",
"0.6277875",
"0.6209495",
"0.6197956",
"0.6155994",
"0.6149248",
"0.59905314",
"0.5979167",
"0.5961435",
"0.5898825",
"0.5875818",
"0.5875818",
"0.5835617",
"0.5801079",
"0.57880205",
"0.57574415",
"0.5754854",
"0.5744661",
"0.57154536",
"0.5668066",
"0.5668066",
"0.5668066",
"0.56642604",
"0.56641454",
"0.5651631",
"0.56474835",
"0.5628556",
"0.56230766",
"0.56215334",
"0.561829",
"0.56049",
"0.5604365",
"0.5592275",
"0.5591454",
"0.55912787",
"0.5590863",
"0.5586618",
"0.5559323",
"0.5549751",
"0.5545782",
"0.5535703",
"0.55282825",
"0.5525449",
"0.55219454",
"0.55201465",
"0.55192155",
"0.55184746",
"0.5516362",
"0.5511056",
"0.5511056",
"0.5511056",
"0.5511056",
"0.5511056",
"0.5511056",
"0.5506867",
"0.5505867",
"0.5499104",
"0.54980564",
"0.54847205",
"0.548253",
"0.548253",
"0.5479459",
"0.5476986",
"0.54658353",
"0.5460267",
"0.5457996",
"0.54571986",
"0.54563546",
"0.5448893",
"0.5448189",
"0.5447857",
"0.5447267",
"0.54451096",
"0.5443006",
"0.5441638",
"0.54361534",
"0.54352367",
"0.54265404",
"0.54260045",
"0.54249847",
"0.54249847",
"0.54205555",
"0.5418831",
"0.5415188",
"0.5407541",
"0.5407541",
"0.5407541",
"0.5407541",
"0.5407541",
"0.5407541",
"0.5407541",
"0.54033023",
"0.53995633",
"0.5398921",
"0.5398921"
] | 0.78250986 | 0 |
Gets the value of viveId | public String getViveId()
{
return viveId;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getvID() {\n return vID;\n }",
"public long getVocubalaryId();",
"public String getVatId()\n {\n return vatId;\n }",
"int getVida()\n\t{\n\t\treturn vida;\n\t}",
"public int getVaoID() {\n\t\treturn vaoID;\n\t}",
"public void setViveId(String viveId)\n\t{\n\t\tthis.viveId = viveId;\n\t}",
"public Long getVoucherId() {\n\t\treturn voucherId;\n\t}",
"public String getVehID() {\r\n\t\treturn vehID;\r\n\t}",
"public String getIdVenta() {\n return idVenta;\n }",
"int getPokedexIdValue();",
"int getPokedexIdValue();",
"String getValueId();",
"public int getguestID(){\n return givedata.returnGuestID();\n }",
"public Integer getVid() {\n return vid;\n }",
"public java.lang.Integer getVaccinId () {\n\t\treturn vaccinId;\n\t}",
"public Integer getVenuesId() {\n return venuesId;\n }",
"public void setvID(int vID) {\n this.vID = vID;\n }",
"public int getVid() {\r\n return vid;\r\n }",
"public String getVehicleId() {\n return vehicleId;\n }",
"public String getVehicleId() {\n return vehicleId;\n }",
"public Integer getVehicleId() {\n return vehicleId;\n }",
"public long getIdVozilo() {\n return idVozilo;\n }",
"String getVideoId() {\n return videoId;\n }",
"public int getVehicleId() {\n return vehicleId;\n }",
"public Integer getVenueID() {\n return venueID;\n }",
"String getVideoId() {\r\n return videoId;\r\n }",
"public long getV() {\n return v;\n }",
"public String getVersionId() {\n return versionId;\n }",
"@java.lang.Override public int getPokedexIdValue() {\n return pokedexId_;\n }",
"@java.lang.Override public int getPokedexIdValue() {\n return pokedexId_;\n }",
"long getCaptureFestivalId();",
"public Long getVersionId() {\n return versionId;\n }",
"public String getVsheetId() {\n return vsheetId;\n }",
"@JsonProperty(\"id\")\n@ApiModelProperty(example = \"123e4567-e89b-12d3-a456-556642440000\", value = \"Unique identifier for virtual instance.\")\n public String getId() {\n return id;\n }",
"public String getLovId() {\r\n\t\treturn lovId;\r\n\t}",
"@DISPID(38)\r\n\t// = 0x26. The runtime will prefer the VTID if present\r\n\t@VTID(43)\r\n\tint id();",
"public Long getIdVieSociale() {\r\n\t\treturn idVieSociale.get();\r\n\t}",
"java.lang.String getHotelId();",
"public static Optional<Integer> getNidForVUID(long vuID) {\n\t\tIndexServiceBI si = LookupService.get().getService(IndexServiceBI.class, \"sememe indexer\");\n\t\tif (si != null) {\n\t\t\t//force the prefix algorithm, and add a trailing space - quickest way to do an exact-match type of search\n\t\t\tList<SearchResult> result = si.query(vuID + \" \", true,\n\t\t\t\t\tnew Integer[] {MetaData.VUID.getConceptSequence()}, 5, Long.MAX_VALUE, null);\n\t\t\tif (result.size() > 0) {\n\t\t\t\treturn Optional.of(Get.sememeService().getSememe(result.get(0).getNid()).getReferencedComponentNid());\n\t\t\t}\n\t\t} else {\n\t\t\tfinal String msg = \"Sememe Index not available - can't lookup VUID \" + vuID;\n\t\t\tlog.error(msg);\n\t\t\tthrow new RuntimeException(msg);\n\t\t}\n\t\treturn Optional.empty();\n\t}",
"long getPokemonId();",
"public java.lang.String getValue_id() {\n return value_id;\n }",
"@JsonIgnore\n public String getVMId() {\n if (wvm == null || wvm == WVM.Workspace) {\n return null;\n }\n switch (wvm) {\n case Version:\n return versionId;\n default:\n return microversionId;\n }\n }",
"public Integer getValueId() {\n return this.valueId;\n }",
"public String toString( ) {\n return \"v\" + id;\n }",
"public String getCurSpiceInstID() {\n return mVMStrID;\n }",
"public int getComponentId(int v) {\n return ids[v];\n }",
"@DISPID(6)\n\t// = 0x6. The runtime will prefer the VTID if present\n\t@VTID(13)\n\tint id();",
"@DISPID(80)\r\n\t// = 0x50. The runtime will prefer the VTID if present\r\n\t@VTID(78)\r\n\tint id();",
"public Integer getValueId() {\n return valueId;\n }",
"public String getIdVille() {\r\n\t\treturn idVille;\r\n\t}",
"public Integer getAdvId() {\n return advId;\n }",
"java.lang.String getPlayerId();",
"public int getVariantId() {\n return variantId_;\n }",
"public int getIdDetalle_Ventaf() {\n return idDetalle_Ventaf;\n }",
"public String vmmServerId() {\n return this.innerProperties() == null ? null : this.innerProperties().vmmServerId();\n }",
"@JsonIgnore\n public String getWVId() {\n if (wvm == null || wvm == WVM.Microversion) {\n return null;\n }\n switch (wvm) {\n case Workspace:\n return workspaceId;\n default:\n return versionId;\n }\n }",
"String getGameId();",
"public int getVersionId() {\r\n\t\tif (versionId != null) {\r\n\t\t\treturn versionId;\r\n\t\t}\r\n\t\t\r\n\t\tcreateVersion();\r\n\t\treturn versionId;\r\n\t}",
"public String getEventidforAssigning(String eventId){\n System.out.println(\"hello\" + eventId);\n ViewObjectImpl usersVO = this.getEventCandidateDatawithName1();\n usersVO.setApplyViewCriteriaName(\"EventCandidateDatawithNameCriteria\");\n usersVO.setNamedWhereClauseParam(\"pid\",eventId);\n usersVO.executeQuery();\n // System.out.println(usersVO);\n Row usersVORow = usersVO.first();\n // System.out.println(usersVORow);\n // System.out.println(usersVORow.getAttribute(\"EVENT_ID\").toString());\n return (usersVORow != null) ? usersVORow.getAttribute(\"EVENT_ID\").toString(): null;\n }",
"public String getId() {\n\t\treturn this.token.get(\"id\").toString();\n\t}",
"public int getVariantId() {\n return variantId_;\n }",
"@Override\n\tpublic Serializable getPrimaryKeyObj() {\n\t\treturn getElectiveId();\n\t}",
"public String generateVSVID();",
"public VlanId vlanId() {\n return vlanId;\n }",
"SdkMobileVcode selectByPrimaryKey(Integer vid);",
"public CustomerAddressQuery vatId() {\n startField(\"vat_id\");\n\n return this;\n }",
"@Override\n\tpublic Integer getV() {\n\t\treturn this.v;\n\t}",
"String getUview_id();",
"java.lang.String getID();",
"public abstract java.lang.String getIdpcTV();",
"public String getVisit_id() {\n return visit_id;\n }",
"public String getVisit_id() {\n return visit_id;\n }",
"public String getCvvNumber();",
"@Schema(required = true, description = \"An identifier that is unique for the respective type within a VNF instance, but may not be globally unique. \")\n public String getId() {\n return id;\n }",
"String getIdNumber();",
"java.lang.String getFortId();",
"@Schema(required = true, description = \"An identifier with the intention of being globally unique. \")\n public String getVnfInstanceId() {\n return vnfInstanceId;\n }",
"public String getId() {\n\t\treturn this.playerid;\n\t}",
"public java.lang.String getVid() {\r\n return localVid;\r\n }",
"public String getModuleVLHId() throws BaseTechnicalError, RemoteException {\n \treturn JazzQAConstants.MODULE_PEDVALIDACAO_VLH;\n\t}",
"int getVpotNum();",
"@Schema(required = true, description = \"An identifier that is unique within a NS descriptor. Representation: string of variable length. \")\n public String getVnffgdId() {\n return vnffgdId;\n }",
"String getProcessInstanceID();",
"@NotNull\n @JsonProperty(\"variantId\")\n public Integer getVariantId();",
"String getID();",
"String getID();",
"String getID();",
"String getID();",
"long getPlayerId();",
"public Object get_KeyValue(){return\t\t\t Id;}",
"public Integer getDevid() {\n return devid;\n }",
"int getVbNum();",
"public String getVpdiCode() {\n return vpdiCode;\n }",
"public String getVin() {\r\n return vin;\r\n }",
"public String getVin() {\r\n return vin;\r\n }",
"java.lang.String getAoisId();",
"public long getNodeID()\n {\n return vnodeid; \n }",
"public Number getID();",
"public java.lang.String getVideoUserGuid() {\n return videoUserGuid;\n }",
"public Integer getCarparksurveyinfoid() {\n return carparksurveyinfoid;\n }"
] | [
"0.76750153",
"0.72408336",
"0.7227487",
"0.6880349",
"0.6790781",
"0.6764973",
"0.6514823",
"0.650115",
"0.6460625",
"0.64408994",
"0.64408994",
"0.6409164",
"0.6386856",
"0.63783014",
"0.6373185",
"0.6351542",
"0.6347854",
"0.63140726",
"0.63101375",
"0.63101375",
"0.61974746",
"0.61643976",
"0.6154484",
"0.6128719",
"0.61252296",
"0.61096007",
"0.6101664",
"0.6096791",
"0.6075421",
"0.6074764",
"0.60647327",
"0.6060202",
"0.6054853",
"0.59984994",
"0.5997087",
"0.59653586",
"0.596161",
"0.5938867",
"0.5929482",
"0.5920648",
"0.5915773",
"0.5914282",
"0.59084994",
"0.5906946",
"0.59055054",
"0.5904695",
"0.5904413",
"0.58991355",
"0.5892038",
"0.5888791",
"0.58782464",
"0.584918",
"0.58464694",
"0.58270717",
"0.5823394",
"0.5811081",
"0.5801256",
"0.5798646",
"0.5790592",
"0.57772607",
"0.57721627",
"0.5752665",
"0.5749881",
"0.5748344",
"0.57383025",
"0.57354975",
"0.572796",
"0.5723838",
"0.57230794",
"0.5713087",
"0.5707809",
"0.5707809",
"0.57010955",
"0.56983733",
"0.5693216",
"0.56887925",
"0.56878364",
"0.56870383",
"0.5685251",
"0.56826794",
"0.5681467",
"0.5678418",
"0.56749016",
"0.5672828",
"0.5670392",
"0.5670392",
"0.5670392",
"0.5670392",
"0.56556004",
"0.5653587",
"0.5651661",
"0.56515944",
"0.5650388",
"0.5647284",
"0.5647284",
"0.5646219",
"0.56427085",
"0.5641636",
"0.5638551",
"0.5636409"
] | 0.86271805 | 0 |
Sets the value of cpuSerialNo | public void setCpuSerialNo(String cpuSerialNo)
{
this.cpuSerialNo = cpuSerialNo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCpuSerialNo()\n\t{\n\t\treturn cpuSerialNo;\n\t}",
"public void setSerialNo(String serialNo) {\n inputParameters.Serial_No = serialNo;\n\n }",
"public void setSerialNumber(String value)\n {\n _serialNumber = value;\n }",
"@Override\n public void setSerialNumber(String value) {\n this.serialNumber = value;\n }",
"public void setSerialNum(String serialNum)\r\n\t{\r\n\t\tthis.serialNum = serialNum;\r\n\t}",
"public void setSerialNo(String serialNo) {\n\t\tthis.serialNo = serialNo;\n\t}",
"public final void setSerial(String serial){\n this.peripheralSerial = serial;\n }",
"public void setSerialNumber(java.math.BigInteger serialNumber) {\r\n this.serialNumber = serialNumber;\r\n }",
"@Override\n\tpublic void setCpu() {\n\t\tcom.setCpu(\"i7\");\n\t}",
"public void setSerial(String serial) {\n this.serial = serial;\n }",
"public export.serializers.avro.DeviceInfo.Builder setSerialPort(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.serialPort = value;\n fieldSetFlags()[5] = true;\n return this;\n }",
"@Override\n public void cUSerialNumber(long value) {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public void setSerialNumber(String serialNumber) {\n\t\tthis.serialNumber = serialNumber;\n\t}",
"public void setCpu(Long Cpu) {\n this.Cpu = Cpu;\n }",
"public void setSerialPort(java.lang.CharSequence value) {\n this.serialPort = value;\n }",
"public void setUserSerial(String userSerial) {\n this.userSerial = userSerial;\n }",
"public void setCPUCore(CPUCore cpuCore) {\n this.cpuCore = cpuCore;\n }",
"public void setTransmittedSerialNumber(String transmittedSerialNumber) ;",
"public void setCocSerialNo(Integer cocSerialNo) {\n\t\tthis.cocSerialNo = cocSerialNo;\n\t}",
"public Builder setSerialNumber(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n serialNumber_ = value;\n onChanged();\n return this;\n }",
"public Builder setSerialNumber(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n serialNumber_ = value;\n onChanged();\n return this;\n }",
"public Builder setSerial(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n serial_ = value;\n onChanged();\n return this;\n }",
"public void setReceivedSerialNumber(String receivedSerialNumber) ;",
"public void setComNumber(long value) {\r\n this.comNumber = value;\r\n }",
"public void setMobileNo(String value) {\n setAttributeInternal(MOBILENO, value);\n }",
"public String getSerialNo() {\n\t\treturn serialNo;\n\t}",
"public int getSerialNum()\r\n\t{\r\n\t\treturn(serialNum);\r\n\t}",
"public void setSERIAL_NO(BigDecimal SERIAL_NO) {\r\n this.SERIAL_NO = SERIAL_NO;\r\n }",
"public void setSERIAL_NO(BigDecimal SERIAL_NO) {\r\n this.SERIAL_NO = SERIAL_NO;\r\n }",
"public void setDevMajor(int devNo) {\n if (devNo < 0) {\n throw new IllegalArgumentException(\"Major device number is out of \"\n + \"range: \" + devNo);\n }\n this.devMajor = devNo;\n }",
"public void setCPUmark(String CPUmark)\n {\n\t CPUmark = \"o\";\n }",
"public void setElementSerial(String elementSerial) {\r\n\t\tthis.elementSerial = elementSerial;\r\n\t}",
"public CreateCertFromCSR setSerial(int serial) {\n certSerial = serial;\n return this;\n }",
"public int getSerialNumber() {\n\t\treturn serialNumber;\n\t}",
"public void setCLNO(int value) {\n this.clno = value;\n }",
"protected void setPC(final int value) {\r\n this.pc = value;\r\n }",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNumber;\n }",
"public AtomicInteger getSerialNo() {\n return serialNo;\n }",
"public void setMajorPid(Integer majorPid) {\n this.majorPid = majorPid;\n }",
"public String getDevSerialNumber() {\n return devSerialNumber;\n }",
"public void setCpus(Integer cpusIn) {\n cpus = cpusIn;\n }",
"public void setPhoneNuber(int value) {\r\n this.phoneNuber = value;\r\n }",
"public Builder setSerialNumberBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n serialNumber_ = value;\n onChanged();\n return this;\n }",
"public Builder setSerialNumberBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n serialNumber_ = value;\n onChanged();\n return this;\n }",
"public void setDevMinor(int devNo) {\n if (devNo < 0) {\n throw new IllegalArgumentException(\"Minor device number is out of \" + \"range: \" + devNo);\n }\n this.devMinor = devNo;\n }",
"private void setRegNum(int regNum) {\n this.regNum = regNum;\n }",
"public void setSeqNo (int SeqNo);",
"public void setSeqNo (int SeqNo);",
"public String getSerialNumber() {\n\t\treturn serialNumber;\n\t}",
"public void setCardSerNo(java.lang.String param) {\r\n localCardSerNoTracker = param != null;\r\n\r\n this.localCardSerNo = param;\r\n }",
"public void setPhoneNo(String value) {\n setAttributeInternal(PHONENO, value);\n }",
"public void setSequenceNo(Number value) {\n setAttributeInternal(SEQUENCENO, value);\n }",
"public void setNUMSEC(int value) {\n this.numsec = value;\n }",
"public void setNUMSEC(int value) {\n this.numsec = value;\n }",
"public void setNUMSEC(int value) {\n this.numsec = value;\n }",
"public void setPartNo(String partNo){\n\t\t // store into the instance variable partNo (i.e. this.partNo) the value of the parameter partNo\n\t\tthis.partNo = partNo;\n\t}",
"@Override\n public String getSerialNumber() {\n return serialNumber;\n }",
"public void setPortNumber(int paramPortNo) {\n\tiPortNo = paramPortNo;\n }",
"public void setSerialNumber(java.math.BigInteger r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSerialNumber(java.math.BigInteger):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.org.bouncycastle.x509.X509V1CertificateGenerator.setSerialNumber(java.math.BigInteger):void\");\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public void setSystemId(Number value) {\n setAttributeInternal(SYSTEMID, value);\n }",
"public long getSerial() {\n\t\treturn this.serialNumber;\n\t}",
"public void setElementSerialSeq(String elementSerialSeq) {\r\n\t\tthis.elementSerialSeq = elementSerialSeq;\r\n\t}",
"public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"java.lang.String getSerialNumber();",
"java.lang.String getSerialNumber();",
"private void setMobileNum(String mobileNum) {\n this.mobileNum = StringExtension.nullFilter(mobileNum);\n }",
"public Integer getCocSerialNo() {\n\t\treturn cocSerialNo;\n\t}",
"void set_num(ThreadContext tc, RakudoObject classHandle, double Value);",
"public void setRegisNo(String regisNo)\n {\n // put your code here\n this.regisNo = regisNo;\n }",
"public String getSerialNumber()\n {\n return serialNumber;\n }",
"public void set_seqnum(byte value) {\n setSIntElement(offsetBits_seqnum(), 8, value);\n }",
"public String getSerial() {\n return serial;\n }",
"public void setNtnNo(String value) {\n setAttributeInternal(NTNNO, value);\n }",
"java.lang.String getSerial();",
"public void setreceiptnum(String value) {\n setAttributeInternal(RECEIPTNUM, value);\n }",
"public BigInteger getSerialNumber() {\n return serialNumber;\n }",
"public String getSerialNumber()\n {\n return _serialNumber;\n }",
"public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public void setmobileNum(String mobileNum) {\n\t\t_mobileNum = mobileNum;\n\t}",
"public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.math.BigInteger getSerialNumber() {\r\n return serialNumber;\r\n }",
"void setRandomNo() {\n\t\tno = 10000000 + (int) (Math.random() * 90000000);\n\t}",
"public void setMobileNum(String mobileNum) {\r\n\t\tthis.mobileNum = mobileNum;\r\n\t}",
"public void setMajor(Integer major) {\n this.major = major;\n }",
"public void setMobile(int number) {\n\t\t\tthis.Mobile = number;\r\n\t\t}",
"@Override\n\tpublic void setRam() {\n\t\tcom.setRam(\"16g\");\n\t}",
"public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n }\n }",
"public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n }\n }",
"public void set_infos_seq_num(int value) {\n setUIntBEElement(offsetBits_infos_seq_num(), 16, value);\n }",
"private void setS1Port(int value) {\n \n s1Port_ = value;\n }",
"public void setTelNo(String telNo)\r\n\t{\r\n\t\tthis.telNo = telNo;\r\n\t}",
"public void setMobile_phone(Long mobile_phone);",
"@DesignerProperty(editorType = PropertyTypeConstants.PROPERTY_TYPE_LEGO_NXT_SENSOR_PORT,\n defaultValue = DEFAULT_SENSOR_PORT)\n @SimpleProperty(userVisible = false)\n public void SensorPort(String sensorPortLetter) {\n setSensorPort(sensorPortLetter);\n }",
"private void setInPort(int value) {\n \n inPort_ = value;\n }",
"private void setInPort(int value) {\n \n inPort_ = value;\n }",
"@Override\n public void updateModemColumn(String modemTypeName, String DeviceSerial) {\n \n }"
] | [
"0.7478448",
"0.70625734",
"0.70282817",
"0.70037067",
"0.69746274",
"0.6831669",
"0.68169624",
"0.67912316",
"0.6589954",
"0.6532364",
"0.6419771",
"0.6379282",
"0.6266731",
"0.62660015",
"0.62444633",
"0.617545",
"0.6136695",
"0.612987",
"0.60830796",
"0.6037113",
"0.6037113",
"0.60057837",
"0.59754556",
"0.59660506",
"0.580335",
"0.57957554",
"0.5755117",
"0.5691744",
"0.5691744",
"0.56621224",
"0.5648108",
"0.56078804",
"0.55978316",
"0.5568959",
"0.5548614",
"0.55189574",
"0.5511347",
"0.5493308",
"0.54799193",
"0.54742086",
"0.5470167",
"0.5466348",
"0.54564047",
"0.54564047",
"0.5438138",
"0.5431647",
"0.5431533",
"0.5431533",
"0.5425453",
"0.5422125",
"0.54094064",
"0.53803235",
"0.53775114",
"0.53775114",
"0.53775114",
"0.53757507",
"0.53684855",
"0.533583",
"0.533502",
"0.53304315",
"0.53304315",
"0.5322752",
"0.5317294",
"0.53139627",
"0.53139627",
"0.5310774",
"0.5310774",
"0.5299764",
"0.52926415",
"0.5282939",
"0.5275524",
"0.5273366",
"0.5268881",
"0.5263002",
"0.5247397",
"0.52411973",
"0.52377397",
"0.52268696",
"0.5217877",
"0.52145666",
"0.52145666",
"0.5189977",
"0.51845163",
"0.51845163",
"0.51813847",
"0.5180877",
"0.5178755",
"0.51785016",
"0.5177609",
"0.5173881",
"0.5169571",
"0.5169571",
"0.51628405",
"0.5154674",
"0.515161",
"0.51454216",
"0.5144679",
"0.51320815",
"0.51320815",
"0.51278436"
] | 0.8499678 | 0 |
Gets the value of cpuSerialNo | public String getCpuSerialNo()
{
return cpuSerialNo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getSerialNum()\r\n\t{\r\n\t\treturn(serialNum);\r\n\t}",
"public void setCpuSerialNo(String cpuSerialNo)\n\t{\n\t\tthis.cpuSerialNo = cpuSerialNo;\n\t}",
"public long getSerial() {\n\t\treturn this.serialNumber;\n\t}",
"public String getSerialNo() {\n\t\treturn serialNo;\n\t}",
"java.lang.String getSerial();",
"java.lang.String getSerialNumber();",
"java.lang.String getSerialNumber();",
"public AtomicInteger getSerialNo() {\n return serialNo;\n }",
"public Integer getCocSerialNo() {\n\t\treturn cocSerialNo;\n\t}",
"String getSerial();",
"public int getSerialNumber() {\n\t\treturn serialNumber;\n\t}",
"public java.math.BigInteger getSerialNumber() {\r\n return serialNumber;\r\n }",
"public String getDevSerialNumber() {\n return devSerialNumber;\n }",
"public final String getSerial(){\n return this.peripheralSerial;\n }",
"public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getSerialNumber()\n {\n return serialNumber;\n }",
"public Long getCpu() {\n return this.Cpu;\n }",
"public String getSerialNumber()\n {\n return _serialNumber;\n }",
"public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n }\n }",
"public java.lang.String getSerialNumber() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = s;\n return s;\n }\n }",
"public String getSerial() {\n return serial;\n }",
"public String getSerialNumber() {\n\t\treturn serialNumber;\n\t}",
"public BigInteger getSerialNumber() {\n return serialNumber;\n }",
"public CPU getCPU() {\r\n\t\treturn cpu;\r\n\t}",
"public static String simSerialNumber() {\n\t\t// return sim serial number\n\t\treturn getTelephonyManager().getSimSerialNumber();\n\t}",
"public BigDecimal getSERIAL_NO() {\r\n return SERIAL_NO;\r\n }",
"public BigDecimal getSERIAL_NO() {\r\n return SERIAL_NO;\r\n }",
"public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n public String getSerialNumber() {\n return serialNumber;\n }",
"public String getSerial() {\n Object ref = serial_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n serial_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getSerialNumberBytes() {\n java.lang.Object ref = serialNumber_;\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 serialNumber_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getUserSerial() {\n return userSerial;\n }",
"public String getSerial() {\n Object ref = serial_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n serial_ = s;\n return s;\n }\n }",
"@Nullable\n public Integer getSerialNumber() {\n return serialNumber;\n }",
"public int nextSerialNumber(){\n serialNumber++;\n return serialNumber;\n }",
"private String getVehicleRegNumber() {\n LOGGER.info(\"Please type the vehicle registration number \"\n + \"and press enter key\");\n return inputReaderUtil.readVehicleRegistrationNumber();\n }",
"public String getReceivedSerialNumber() ;",
"@Override\n\tpublic String getCPU() {\n\t\treturn null;\n\t}",
"public String getSerialNumber() {\n\t\treturn null;\n\t}",
"public String serialNumber() {\n return this.innerProperties() == null ? null : this.innerProperties().serialNumber();\n }",
"public String processamento(){\n \n List<com.profesorfalken.jsensors.model.components.Cpu> cpus = JSensors.get.components().cpus;\n if(cpus.isEmpty()) return \"40.0\";\n \n for (final com.profesorfalken.jsensors.model.components.Cpu cpu : cpus) {\n List<Load> loads = cpu.sensors.loads;\n for (final Load load : loads) {\n if(load.name.equals(\"Load CPU Total\"))\n return String.valueOf(load.value);\n }\n }\n return \"40.0\";\n }",
"public byte getISerialNumber() {\r\n\t\treturn iSerialNumber;\r\n\t}",
"public String getDeviceId() {\n //TelephonyManager tm = (TelephonyManager)getSystemService(TELEPHONY_SERVICE);\n String number = Build.SERIAL;\n return number;\n }",
"public String getMobileNo() {\n return (String)getAttributeInternal(MOBILENO);\n }",
"public CPUCore getCpuCore() {\n return cpuCore;\n }",
"final int getDeviceNum() {\n return device.getDeviceNum();\n }",
"public static String getCpuInfo() {\n String result = \"\";\n ProcessBuilder cmd;\n try {\n String[] args = {COMMAND_LINE, PATH_CPU};\n cmd = new ProcessBuilder(args);\n Process process = cmd.start();\n InputStream in = process.getInputStream();\n byte[] re = new byte[24];\n while (in.read(re) != -1) {\n result = result + new String(re);\n }\n in.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n result = \"N/A\";\n }\n return result.trim();\n }",
"java.lang.String getMinCpuPlatform();",
"public com.google.protobuf.ByteString\n getSerialBytes() {\n Object ref = serial_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n serial_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public long getComNumber() {\r\n return comNumber;\r\n }",
"com.google.protobuf.ByteString\n getSerialNumberBytes();",
"com.google.protobuf.ByteString\n getSerialNumberBytes();",
"public com.google.protobuf.ByteString\n getSerialBytes() {\n Object ref = serial_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n serial_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public static String m583i(Context context) {\r\n try {\r\n return ((TelephonyManager) context.getSystemService(\"phone\")).getSimSerialNumber();\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }",
"public String readDeviceSN(){\r\n return mFactoryBurnUtil.readDeviceSN();\r\n }",
"public Object systemNumber() {\n return this.systemNumber;\n }",
"@Override\n\tpublic String getMobileNum() {\n\t\treturn get.getMobileNum();\n\t}",
"public String getTransmittedSerialNumber() ;",
"String getCpusetcpus();",
"public String getElementSerial() {\r\n\t\treturn elementSerial;\r\n\t}",
"final int getDriverNum() {\n return device.getDriverNum(this);\n }",
"public static String getCurCpuFreq() {\n String result = \"N/A\";\n try {\n FileReader fr = new FileReader(PATH_CUR);\n BufferedReader br = new BufferedReader(fr);\n String text = br.readLine();\n result = text.trim();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return result;\n }",
"public String getTelNo()\r\n\t{\r\n\t\treturn this.telNo;\r\n\t}",
"public java.lang.Integer getSrNo () {\n\t\treturn srNo;\n\t}",
"Integer getCCPID();",
"public String getManagementServerSerialNumber() throws VPlexApiException {\n s_logger.info(\"Request for management server serial number for VPlex at {}\", _baseURI);\n return _discoveryMgr.getManagementServerSerialNumber();\n }",
"public ByteArrayAttribute getSerialNumber() {\n return serialNumber;\n }",
"public String getCnicNo() {\n return (String)getAttributeInternal(CNICNO);\n }",
"public long getcNum() {\n return cNum;\n }",
"public java.lang.String getCardSerNo() {\r\n return localCardSerNo;\r\n }",
"public String getSysNo() {\n return sysNo;\n }",
"public String getDeviceCode() {\n return deviceCode;\n }",
"public final String m591c() {\r\n try {\r\n return String.valueOf(new File(\"/sys/devices/system/cpu/\").listFiles(new C0164b(this)).length);\r\n } catch (Exception e) {\r\n return C0108a.f262e;\r\n }\r\n }",
"public String getMacNo() {\r\n return macNo;\r\n }",
"@ApiModelProperty(required = true, value = \"The number (across all cores) of micro-seconds per second.\")\n public BigDecimal getCpu() {\n return cpu;\n }",
"public String getNum() {\r\n return num;\r\n }",
"public java.lang.CharSequence getSerialPort() {\n return serialPort;\n }",
"public Integer getCpus() {\n return cpus;\n }",
"public Integer getCpus() {\n return cpus;\n }",
"public java.lang.String getCustNo() {\n return custNo;\n }",
"public static float getCpuTemperature() throws IOException, InterruptedException, NumberFormatException {\n \treturn pi4jSystemInfoConnector.getCpuTemperature();\r\n }",
"public java.lang.CharSequence getSerialPort() {\n return serialPort;\n }",
"public String getMachineUID()\n {\n return machineUID;\n }",
"public short getNumCode() {\n return numCode;\n }",
"@Override\n public List<Object> getDeviceSerialByMcu(String sys_id) {\n return null;\n }",
"public String getPhoneNo() {\n return (String)getAttributeInternal(PHONENO);\n }",
"@JsProperty(name = \"hardwareConcurrency\")\n Number getHardwareConcurrency();",
"public String getNum() {\n return num;\n }",
"public String getNum() {\n return num;\n }",
"public String getDeviceId() {\n String deviceId = ((TelephonyManager) LoginActivity.this.getSystemService(Context.TELEPHONY_SERVICE)).getDeviceId();\n if (deviceId != null && !deviceId.equalsIgnoreCase(\"null\")) {\n // System.out.println(\"imei number :: \" + deviceId);\n return deviceId;\n }\n\n deviceId = android.os.Build.SERIAL;\n // System.out.println(\"serial id :: \" + deviceId);\n return deviceId;\n\n }",
"public int getRegNum() {\n return regNum;\n }",
"public String readChipID() {\r\n return mFactoryBurnUtil.readChipID();\r\n }",
"public String getSMemMobile() {\n return sMemMobile;\n }",
"public long cpuMicros() {\n return this.cpuNanos / 1000;\n }",
"@Override\n public void cUSerialNumber(long value) {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public java.math.BigInteger getSerialNumber() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: sun.security.x509.X509CRLEntryImpl.getSerialNumber():java.math.BigInteger, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.getSerialNumber():java.math.BigInteger\");\n }",
"public java.lang.String getCardNo() {\r\n return localCardNo;\r\n }"
] | [
"0.72455484",
"0.7147344",
"0.70424855",
"0.69937587",
"0.69687426",
"0.69272745",
"0.69272745",
"0.6876558",
"0.6840836",
"0.67867684",
"0.6744517",
"0.67228377",
"0.6710402",
"0.6679351",
"0.66545933",
"0.66545933",
"0.6639413",
"0.6628436",
"0.66202885",
"0.661507",
"0.661507",
"0.6583474",
"0.6565283",
"0.6518319",
"0.64791495",
"0.63953805",
"0.63911355",
"0.63911355",
"0.63741255",
"0.63741255",
"0.63708085",
"0.6354268",
"0.63529396",
"0.63529396",
"0.63457197",
"0.6299655",
"0.6289296",
"0.625652",
"0.6243609",
"0.6232914",
"0.62262255",
"0.62094986",
"0.617309",
"0.6147302",
"0.61368334",
"0.6115188",
"0.6046017",
"0.6016193",
"0.59681",
"0.5964836",
"0.5955793",
"0.59542984",
"0.5944076",
"0.59277636",
"0.59277636",
"0.5891735",
"0.5876151",
"0.58248657",
"0.58168197",
"0.58134145",
"0.5805014",
"0.57923484",
"0.57876694",
"0.5778624",
"0.5757841",
"0.57565725",
"0.5743333",
"0.5727277",
"0.5723228",
"0.5719938",
"0.571698",
"0.56950814",
"0.5684093",
"0.56825894",
"0.5677077",
"0.56617266",
"0.56553257",
"0.56480503",
"0.56473696",
"0.5641885",
"0.56397194",
"0.56306094",
"0.56305426",
"0.5628079",
"0.5626894",
"0.56260544",
"0.56156844",
"0.5613085",
"0.5606853",
"0.56009895",
"0.55933774",
"0.55933774",
"0.5593054",
"0.5586045",
"0.5578646",
"0.55773276",
"0.5571931",
"0.55705494",
"0.55691236",
"0.5561268"
] | 0.8893718 | 0 |
Sets the value of keyData | public void setKeyData(String keyData)
{
this.keyData = keyData;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Generated\n @Selector(\"setKeyData:\")\n public native void setKeyData(@NotNull NSData value);",
"public void setData(@NotNull String key, @NotNull Object value) {\n data.put(key, value);\n }",
"public void setData(String key, String value) {\r\n\t\tdata.put(key, value);\r\n\t}",
"public abstract void set(String key, T data);",
"public void setDataValue(String key, Object value) {\n\t\t if (value == null) {\n\t\t\t data.remove(key);\n\t\t }else {\n\t\t\t data.put(key, value);\n\t\t }\n\t }",
"public void setUserData(String key, Object data) {\n button.setUserData(key, data);\n }",
"public void \n\tsetData(\n\t\t\tString key, \n\t\t\tObject value) \n\t{\n\t\ttry{\n\t\t\tthis_mon.enter();\n\n\t\t\tif (user_data == null) {\n\t\t\t\tuser_data = new HashMap();\n\t\t\t}\n\t\t\tif (value == null) {\n\t\t\t\tif (user_data.containsKey(key))\n\t\t\t\t\tuser_data.remove(key);\n\t\t\t} else {\n\t\t\t\tuser_data.put(key, value);\n\t\t\t}\n\t\t}finally{\n\t\t\tthis_mon.exit();\n\t\t}\n\t}",
"public QuarkusCodestartTestBuilder putData(DataKey key, Object value) {\n this.data.put(key.key(), value);\n return this;\n }",
"public void setKey(Key key) {\n this.key = key;\n }",
"public void setKey(byte[] argKey) {\n this.key = argKey;\n }",
"abstract protected DataValue updateValue(String key);",
"private void setKey(String key){\n\t\tthis.key=key;\n\t}",
"public void setKey(String key) {\r\n this.key = key;\r\n }",
"public void setKey(final String key);",
"public void setKey(final String key);",
"void setKey(String key);",
"void setKey(K key);",
"public void setKey(String key) {\n this.key = key;\n }",
"private void setKey(String key) {\n this.key = key;\n }",
"protected void setKey(String key) {\r\n this.key = key;\r\n }",
"void setKey(final String key);",
"public void setKey(String key) {\n\t\tthis.key = key;\n\t}",
"void setKey(java.lang.String key);",
"public void setKey(String key)\r\n {\r\n m_key = key;\r\n }",
"public void setKey(String aKey) {\n\t\tthis.key = aKey;\n\t}",
"public void setKey(String key) {\r\n\t\tthis.key = key;\r\n\t}",
"public void _setKey(String e)\n {\n _key = e;\n }",
"public void setKey(String key) {\n this.key = key;\n }",
"public void setKey(String key) {\n this.key = key;\n }",
"public void setKey(String key) {\n this.key = key;\n }",
"public void setKey(String key) {\n\n this.key = key;\n }",
"public void setKey (K k) {\n key = k;\n }",
"public void set(String newKey)\n\t{\n\t\tthis.Key = newKey;\n\t}",
"public void setKey(String key) {\n\t\tthis.key = key;\n\t}",
"public void setKey(String key) {\n\t\tthis.key = key;\n\t}",
"public QuarkusCodestartTestBuilder putData(String key, Object value) {\n this.data.put(key, value);\n return this;\n }",
"@Override\n public void setKey(byte[] key) {\n }",
"void putValue(String key, Object data);",
"public void setKey(int key){\r\n this.key = key; \r\n }",
"public final void setKey(String key) {\n this.key = key;\n }",
"public void set(String key, Object value) {\r\n\t\tthis.context.setValue(key, value);\r\n\t}",
"public void setKey(K newKey) {\r\n\t\tkey = newKey;\r\n\t}",
"public void setKey(int key);",
"public void setKey(int key);",
"public void setKey(final String key) {\n this.key = key;\n }",
"public void setKey(K newKey) {\n this.key = newKey;\n }",
"public void set(String key, Object value) {\n set(key, value, 0);\n }",
"public void setKey( Long key ) {\n this.key = key ;\n }",
"public void set(String key, Object value)\n {\n if (value == null) remove(key);\n else if (value instanceof Map)\n {\n DataSection section = createSection(key);\n Map map = (Map) value;\n for (Object k : map.keySet())\n {\n section.set(k.toString(), map.get(k));\n }\n }\n else\n {\n data.put(key, value);\n if (!keys.contains(key)) keys.add(key);\n }\n }",
"public void setKey(com.coda.www.efinance.schemas.elementmaster.ElmFullKey key) {\r\n this.key = key;\r\n }",
"public void setKey(java.lang.String key) {\n\t\tthis.key = key;\n\t}",
"public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }",
"@Override\n\tpublic void setKeyValueInfo(KeyValueInfo kv) throws HFModuleException {\n\t\tLog.d(\"HFModuleManager\", \"setKeyValueInfo\");\n\t\tif (!this.isCloudChannelLive()) {\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_USER_OFFLINE,\n\t\t\t\t\t\"User is not online\");\n\t\t}\n\t\tJSONObject joReq = new JSONObject();\n\t\tJSONObject pl = new JSONObject();\n\t\ttry {\n\t\t\tjoReq.put(\"PL\", pl);\n\t\t\tjoReq.put(\"CID\", 30511);\n\t\t\tjoReq.put(\"SID\", getsid());\n\t\t\tpl.put(\"key\", kv.key);\n\t\t\tpl.put(\"value\", kv.value);\n\n\t\t\tString req = joReq.toString();\n\n\t\t\tString rsp = HttpProxy.reqByHttpPost(req);\n\t\t\tJSONObject jo = new JSONObject(rsp);\n\n\t\t\tif (jo.isNull(\"RC\")) {\n\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_KEYVALUE,\n\t\t\t\t\t\t\"can not set keyvalue\");\n\t\t\t}\n\t\t\tif (jo.getInt(\"RC\") != 1) {\n\t\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_KEYVALUE,\n\t\t\t\t\t\t\"can not set keyValue\");\n\t\t\t}\n\t\t} catch (JSONException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrow new HFModuleException(HFModuleException.ERR_SET_KEYVALUE,\n\t\t\t\t\t\"can not set keyValue\");\n\t\t}\n\t}",
"public void setValue(K key, V value);",
"void set(K key, V value);",
"public void setEncryptionKey(LVValue encryptKey) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tmyData.encryptKey=encryptKey;\n\t}",
"public void setKey(String key) {\n if (element != null) {\n element.setKey(key);\n }\n }",
"public IDataKey(String key) {\n this(key, false);\n }",
"public <T> void set(String key, T value, Class<T> type) {\n this.data.put(key, value);\n }",
"public void setKey(Boolean key) {\n this.key = key;\n }",
"public void set(String keyInput, String valueInput) {\n\t\tfileData.put(keyInput, valueInput);\n\t\ttry {\n\t\t\twriteToFile();\n\t\t}\n\t\tcatch (IOException anything) {\n\t\t\tSystem.out.println(\"Couldn't write to file \" + path + \". Error: \" + anything.getMessage());\n\t\t}\n\t}",
"void set(String key, Object value);",
"public void setKeyBytes(byte[] key){\n\t\t\n\t\tsetKey(new String(key));\n\t}",
"public void setKey(MessageKey key) {\n\tthis.key = key;\n }",
"private void put(String aKey, Object aValue) {\n\t\tmData.put(aKey, getValue(aValue));\n\t}",
"private DataKeys(String pKey) {\n key = pKey;\n }",
"void setKey(int key);",
"public void setKey(char key){ this.key = key;}",
"void setAuthInfoKey(Object key);",
"public void setKeyField(KeyField k) {\n\tkeyField = k;\n }",
"public K setKey(K key);",
"public void setValue(CharSequence... key) {\n\t\tthis.isExist();\n\t\tthis.element.clear();\n\t\tthis.element.sendKeys(key);\t\t\n\t}",
"public void setKey(TableKey key) {\n\tthis.key = key;\n }",
"void setKeyNumber(int number)\r\n {\r\n number_of_key = number;\r\n }",
"@Override\r\n\t\tpublic Object setUserData(String key, Object data, UserDataHandler handler)\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}",
"public void setProperty(String key, Object value) {\n commandData.put(key, value);\n }",
"public void setKey (String key, int value) {\n this.diccionario = new Diccionario(key,value);\n }",
"public void setIdkey(String pIdkey){\n this.idkey = pIdkey;\n }",
"private void storeValue(final Variable key) {\n // nothing to do?\n if (data.get(key) == null) {\n return;\n }\n Conf.setProperty(Const.CONF_PREPARE_PARTY + key, data.get(key).toString());\n }",
"public void put(String key, E value) {\n getOrCreateNode(key).data = value;\n }",
"private void setKey() {\n\t\t \n\t}",
"public void setKey(String key) {\n this.key = key == null ? null : key.trim();\n }",
"public void setKey(String key) {\n this.key = key == null ? null : key.trim();\n }",
"String setKey(String newKey);",
"public static void setUserKey(Key newKey) {\n\t\tlocalKey.set(newKey);\n\t}",
"public void setKey(int position,int key) {\r\n\t\tthis.treeKey[position]=key;\r\n\t}",
"public void setAssetKey(AssetKey key) {\n file.setAssetKeyData(key);\n }",
"void setObjectKey(String objectKey);",
"public synchronized void writeData(int id, String key, RMItem value) {\n if (id >= 0) {\n txLocal.get(id).put(key, value);\n } else {\n getMaster().put(key, value);\n }\n }",
"public void setData(LinkedHashMap<Integer, Data> data){\r\n\t\tthis.data = data;\r\n\t}",
"public void setData(Map<E, String> data) {\n\t\tthis.data = data;\n\t}",
"public void putStringData(String key, String value) {\n editor.putString(key, value);\n editor.apply();\n }",
"boolean setValue(String type, String key, String value);",
"public void setKey(KeyField key)\n\tthrows SdpException {\n\tif (key == null)\n\t throw new SdpException(\"The key is null\");\n\tsetKeyField(key);\n }",
"<T> void put(String key, T data);",
"public void setItskey(String newItskey) {\n keyTextField.setText(newItskey);\n itskey = newItskey;\n }",
"public final void setKeyId(int keyId)\r\n\t{\r\n\t\tthis.keyId = keyId;\r\n\t}",
"public void addData(KeyValuePair<Key, Value> newData) {\r\n\t\t\taddData(newData.getKey(), newData.getValue());\r\n\t\t}",
"final <T> void set(String key, T value) {\n set(key, value, false);\n }",
"public com.opentext.bn.converters.avro.entity.ContentKey.Builder setKeyValue(java.lang.String value) {\n validate(fields()[1], value);\n this.keyValue = value;\n fieldSetFlags()[1] = true;\n return this;\n }"
] | [
"0.76517314",
"0.735272",
"0.7336733",
"0.7207391",
"0.6997723",
"0.6885116",
"0.6840391",
"0.67881984",
"0.67771137",
"0.6770856",
"0.6742934",
"0.6723623",
"0.6722419",
"0.6694746",
"0.6694746",
"0.66854256",
"0.66776925",
"0.6671751",
"0.6669933",
"0.66692454",
"0.6660342",
"0.6651232",
"0.6644466",
"0.6633983",
"0.66332996",
"0.66296756",
"0.6627651",
"0.6623706",
"0.6623706",
"0.6623706",
"0.6620519",
"0.6596415",
"0.65757626",
"0.65521747",
"0.65521747",
"0.6521081",
"0.6510405",
"0.6499693",
"0.6483742",
"0.6483072",
"0.6423693",
"0.63962734",
"0.6383841",
"0.6383841",
"0.63768727",
"0.63712007",
"0.6361682",
"0.6350713",
"0.6347733",
"0.6342008",
"0.632043",
"0.6292678",
"0.6284666",
"0.62496245",
"0.6212237",
"0.6210368",
"0.62088287",
"0.61780083",
"0.6171748",
"0.6170778",
"0.6168129",
"0.6154882",
"0.6144407",
"0.61378455",
"0.613735",
"0.6120397",
"0.611549",
"0.6111223",
"0.6069598",
"0.6058491",
"0.60466015",
"0.6042065",
"0.604173",
"0.60397446",
"0.60386884",
"0.60355467",
"0.60131264",
"0.6009455",
"0.59924984",
"0.5989969",
"0.5969172",
"0.5967539",
"0.5967539",
"0.59673995",
"0.59655404",
"0.59308803",
"0.59247386",
"0.5916728",
"0.58779335",
"0.5875291",
"0.58666956",
"0.5865042",
"0.5864549",
"0.5853522",
"0.5852711",
"0.58459795",
"0.5839956",
"0.5839401",
"0.5836193",
"0.5832944"
] | 0.8173715 | 0 |
Gets the value of keyData | public String getKeyData()
{
return keyData;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getData(String key) {\r\n\t\treturn (String) data.get(key);\r\n\t}",
"<T> T getValue(DataKey<T> key);",
"public String get(String key) {\n return getData().get(key);\n }",
"public Object getDataValue(String key) {\n\t\t if (data.containsKey(key)) {\n\t\t\t return data.get(key);\n\t\t }\n\t\t return null;\n\t }",
"@NotNull\n @Generated\n @Selector(\"keyData\")\n public native NSData keyData();",
"@Nullable\n public Object getData(final @NotNull String key) {\n return data.get(key);\n }",
"public java.lang.String getKeyValue() {\n return keyValue;\n }",
"public String get(int key) {\n String sql = \"SELECT data_val FROM data_map WHERE data_key = ?\";\n\n String value = null;\n try (Connection con = this.connect();\n PreparedStatement pstmt = con.prepareStatement(sql)) {\n pstmt.setInt(1, key);\n ResultSet rs = pstmt.executeQuery();\n\n if (!rs.isClosed()) {\n value = rs.getString(\"data_val\");\n rs.close();\n }\n }\n catch (SQLException e) {\n value = null;\n }\n\n return value;\n }",
"public Object \n\tgetData(\n\t\t\tString key) \n\t{\n\t\ttry{\n\t\t\tthis_mon.enter();\n\n\t\t\tif (user_data == null) return null;\n\n\t\t\treturn user_data.get(key);\n\n\t\t}finally{\n\n\t\t\tthis_mon.exit();\n\t\t}\n\t}",
"public String getKey()\r\n {\r\n return getValue().toString();\r\n }",
"public java.lang.String getKeyValue() {\n return keyValue;\n }",
"public String getKey() {\n return this.key;\n }",
"public byte[] getKey() {\n return this.key;\n }",
"public String getKV(String key) throws Exception;",
"public Object getKey() {\r\n return key;\r\n }",
"public String getKey() { \n\t\treturn getKeyElement().getValue();\n\t}",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public String getKey() {\n return this.key;\n }",
"public Value get(Key key);",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey();",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public String getKey() {\n\t\treturn this.key;\n\t}",
"public Object getKey()\n {\n return key;\n }",
"public String getKey()\n\t{\n\t\treturn this.key;\n\t}",
"public Object getKey() {\n return key;\n }",
"String getValue(Key key) {\n return this.parameters.get(key);\n }",
"public String getKey() {\n\n return this.key;\n }",
"public double getKey() {\n\t\treturn key;\n\t}",
"public V get(K key)\r\n\t{\r\n\t\tEntry retrieve = data.get(new Entry(key, null));\r\n\t\t\r\n\t\tif(retrieve != null)\r\n\t\t{\r\n\t\t\treturn retrieve.value;\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey() {\r\n return key;\r\n }",
"public String getKey(){\n\t\treturn key;\n\t}",
"public String getKey() {\n\treturn key;\n }",
"public static String getKey(){\n\t\treturn key;\n\t}",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public Key getKey()\r\n { \r\n return key; \r\n }",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"java.lang.String getKey();",
"Object getKey();",
"com.google.protobuf.ByteString getKeyBytes();",
"com.google.protobuf.ByteString getKeyBytes();",
"protected K getKey() {\n return this.key;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic <T> T getData(String key) {\n\t\treturn (T) data.get(key);\n\t}",
"public Value get(Key key) ;",
"String getValue(String type, String key);",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"String getKey();",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public String getKey() {\r\n\t\treturn key;\r\n\t}",
"public Object get(String key){ \r\n\t\treturn this.context.getValue(key);\r\n\t}",
"public String getKey() {\n return key;\n }",
"public java.lang.String getKey() {\n\t\treturn this.key;\n\t}",
"public byte[] get(byte[] key);",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public String getKey() {\n return key;\n }",
"public KeyValuePair<Key, Value> getData(int dataNum) {\r\n\t\t\tif (dataNum > data.size()) return null;\r\n\t\t\treturn data.get(dataNum);\r\n\t\t}",
"public String getKey()\n\t{\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public String getKey() {\n\t\treturn key;\n\t}",
"public Object getUserData(String key) {\n return button.getUserData(key);\n }",
"public static String getData(String key){\n\t\treturn new String(KeyStorage.memStore.getOrDefault(key.getBytes(), nonexists.getBytes()));\n\t}",
"public String getKey()\n\t\t{\n\t\t\treturn key;\n\t\t}",
"private DataValue getValueForKey(String key) {\n DataValue value = valueMap.get(key);\n if (value == null) {\n return DataValue.NO_VALUE;\n } else {\n return value;\n }\n }",
"@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}"
] | [
"0.7512311",
"0.74345386",
"0.73910147",
"0.7190827",
"0.71626663",
"0.7134295",
"0.68473727",
"0.679567",
"0.67864126",
"0.67824733",
"0.67402667",
"0.67331344",
"0.6729635",
"0.67114383",
"0.67035",
"0.6696639",
"0.66889757",
"0.66889757",
"0.66889757",
"0.66889757",
"0.66889757",
"0.66889757",
"0.6673774",
"0.6656922",
"0.6656922",
"0.6656922",
"0.6656922",
"0.6655854",
"0.6655854",
"0.6655854",
"0.663381",
"0.663325",
"0.66258746",
"0.6622707",
"0.66069555",
"0.66025716",
"0.65924066",
"0.6584843",
"0.6584843",
"0.6584843",
"0.65823716",
"0.6573786",
"0.6566167",
"0.6563594",
"0.65631795",
"0.65631795",
"0.6556092",
"0.65530425",
"0.65530425",
"0.65530425",
"0.65530425",
"0.65530425",
"0.65530425",
"0.6552573",
"0.6539604",
"0.6539604",
"0.65348786",
"0.6528034",
"0.6526083",
"0.65232",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6514841",
"0.6511382",
"0.6511382",
"0.6511382",
"0.65088254",
"0.65086377",
"0.65055263",
"0.6504071",
"0.65020454",
"0.65020454",
"0.65020454",
"0.65020454",
"0.65020454",
"0.65020454",
"0.65020454",
"0.65020454",
"0.65020454",
"0.65020454",
"0.6493988",
"0.6472781",
"0.64727527",
"0.64727527",
"0.64727527",
"0.64685297",
"0.6459525",
"0.6453757",
"0.64452475",
"0.64437014"
] | 0.7755498 | 0 |
Sets the value of keyTimestamp | public void setKeyTimestamp(String keyTimestamp)
{
this.keyTimestamp = keyTimestamp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setKeyingTime(long keyTime) {\n\t\tthis.keyTime = keyTime;\n\t}",
"void setTimestamp(int index, Timestamp value)\n throws SQLException;",
"public void setTimestamp(Date timestamp) {\r\n this.timestamp = timestamp;\r\n }",
"public void setTimestamp(long value) {\r\n this.timestamp = value;\r\n }",
"public br.unb.cic.bionimbus.avro.gen.JobInfo.Builder setTimestamp(long value) {\n validate(fields()[6], value);\n this.timestamp = value;\n fieldSetFlags()[6] = true;\n return this; \n }",
"public void setTimestamp() {\n timestamp = System.nanoTime();\n }",
"public void setTimestamp(final Date timestamp) {\r\n mTimestamp = timestamp;\r\n }",
"public void set(final Timestamp timestamp) {\n stamp = timestamp.get();\n }",
"public void setTimestamp(Date timestamp) {\n this.timestamp = timestamp;\n }",
"public void setTimestamp(@NonNull Date timestamp) {\n this.timestamp = timestamp;\n }",
"private void setTimestamp(String timestamp){\n put(SlackParamsConstants.TIMESTAMP, timestamp);\n }",
"public com.babbler.ws.io.avro.model.BabbleValue.Builder setTimestamp(java.lang.String value) {\n validate(fields()[2], value);\n this.timestamp = value;\n fieldSetFlags()[2] = true;\n return this;\n }",
"public final void setTimestamp(java.util.Date timestamp)\n\t{\n\t\tsetTimestamp(getContext(), timestamp);\n\t}",
"public void setTimestamp(Timestamp timestamp) {\n\t\tthis.timestamp = timestamp;\n\t}",
"public void setTimestamp(Integer timestamp) {\n this.timestamp = timestamp;\n }",
"@JsProperty(name = \"timestamp\")\n public native void setTimestamp(@DoNotAutobox Number value);",
"public void setDictContentEntryTs(Timestamp value) {\r\n setAttributeInternal(DICTCONTENTENTRYTS, value);\r\n }",
"public void set(final long timeValue) {\n stamp = timeValue;\n }",
"public final void setTimestamp(com.mendix.systemwideinterfaces.core.IContext context, java.util.Date timestamp)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Timestamp.toString(), timestamp);\n\t}",
"public com.alibaba.dts.formats.avro.Timestamp.Builder setTimestamp(long value) {\n validate(fields()[0], value);\n this.timestamp = value;\n fieldSetFlags()[0] = true;\n return this;\n }",
"public void setTimeStamp(@NonNull DateTime timeStamp){\n\t\tsetValue(KEY_TIMESTAMP, timeStamp);\n\t}",
"protected void setTimestamp(long time) \n {\n\t\tlTimestamp = time;\n\t}",
"public Builder setTimestamp(int value) {\n bitField0_ |= 0x00000008;\n timestamp_ = value;\n onChanged();\n return this;\n }",
"public abstract void setDate(Timestamp uneDate);",
"public void setTimestamp(java.lang.Long value) {\n this.timestamp = value;\n }",
"public void setTimestamp(java.lang.Long value) {\n this.timestamp = value;\n }",
"public void setTimestamp(Long timestamp) {\n this.timestamp = timestamp;\n }",
"private void updateTimeStamp() {\n\t\tthis.timeStamp = new Timestamp(System.currentTimeMillis());\n\t}",
"public void setBhTimestamp(byte[] value) {\n this.bhTimestamp = ((byte[]) value);\n }",
"public void setTimestamp(IWTimestamp stamp) {\n \t\tthis.stamp = stamp;\n \t}",
"void setTimestamp(int index, Timestamp value, Calendar cal)\n throws SQLException;",
"protected synchronized void updateTimestamp() {\n\t\ttimestamp = System.currentTimeMillis();\n\t}",
"public final void setTimeStamp(long value) {\n synchronized (TIMESTAMP_LOCK) {\n this.timeStamp = value;\n }\n }",
"public Builder setTimestamp(long value) {\n \n timestamp_ = value;\n onChanged();\n return this;\n }",
"public Builder setTimestamp(long value) {\r\n bitField0_ |= 0x00000001;\r\n timestamp_ = value;\r\n onChanged();\r\n return this;\r\n }",
"public Builder setTimestamp(long value) {\r\n bitField0_ |= 0x00000001;\r\n timestamp_ = value;\r\n onChanged();\r\n return this;\r\n }",
"public void setDateTrx (Timestamp DateTrx)\n{\nif (DateTrx == null) throw new IllegalArgumentException (\"DateTrx is mandatory\");\nset_Value (\"DateTrx\", DateTrx);\n}",
"public void setFreezeTimestamp(java.util.Date value);",
"public void setTimeStamp(long t)\n\t{attributes.add(TIMESTAMP,String.valueOf(t));}",
"public TransactionBuilder setTimestamp(long timestamp);",
"public Builder setTimestamp(long value) {\n bitField0_ |= 0x00000002;\n timestamp_ = value;\n onChanged();\n return this;\n }",
"@JsonSetter(\"product_timestamps\")\n public void setProductTimestamps (ProductTimestamps value) { \n this.productTimestamps = value;\n }",
"public Builder setTimestamp(long value) {\n bitField0_ |= 0x00000001;\n timestamp_ = value;\n onChanged();\n return this;\n }",
"public void setDateAcct (Timestamp DateAcct);",
"public void setDateAcct (Timestamp DateAcct);",
"public Builder setTimestamp(long value) {\n \n timestamp_ = value;\n onChanged();\n return this;\n }",
"public Builder setTimestamp(long value) {\n \n timestamp_ = value;\n onChanged();\n return this;\n }",
"public Builder setTimestamp(long value) {\n \n timestamp_ = value;\n onChanged();\n return this;\n }",
"public Builder setTimestamp(long value) {\n \n timestamp_ = value;\n onChanged();\n return this;\n }",
"public void setTransactionTime(Timestamp value) {\r\n setAttributeInternal(TRANSACTIONTIME, value);\r\n }",
"public void setSOHTimestamp(Date SOHTimestamp) {\r\n/* 482 */ this._SOHTimestamp = SOHTimestamp;\r\n/* */ }",
"public Builder setTimestamp(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n timestamp_ = value;\n onChanged();\n return this;\n }",
"public TimeSeriesPoint setTimestamp(OffsetDateTime timestamp) {\n this.timestamp = timestamp;\n return this;\n }",
"public void setTimeStamp(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localTimeStampTracker = true;\r\n } else {\r\n localTimeStampTracker = false;\r\n \r\n }\r\n \r\n this.localTimeStamp=param;\r\n \r\n\r\n }",
"public void setsaledate(Timestamp value) {\n setAttributeInternal(SALEDATE, value);\n }",
"public Builder setTimestamp(long value) {\n bitField0_ |= 0x00000040;\n timestamp_ = value;\n onChanged();\n return this;\n }",
"public void setDateTrx (Timestamp DateTrx);",
"public void setDateTrx (Timestamp DateTrx);",
"public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException {\n currentPreparedStatement.setTimestamp(parameterIndex, x);\n }",
"public Builder setTimestamp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n timestamp_ = value;\n onChanged();\n return this;\n }",
"public Builder setTimestamp(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n timestamp_ = value;\n onChanged();\n return this;\n }",
"public void setLicenseDate(java.sql.Timestamp value) {\n\t\tsetValue(org.jooq.example.jaxrs.db.routines.GenerateKey.LICENSE_DATE, value);\n\t}",
"public String getKeyTimestamp()\n\t{\n\t\treturn keyTimestamp;\n\t}",
"public void setDateStart (Timestamp DateStart);",
"public void setKey( Long key ) {\n this.key = key ;\n }",
"public final void mK_TIMESTAMP() throws RecognitionException {\n try {\n int _type = K_TIMESTAMP;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:520:12: ( T I M E S T A M P )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:520:16: T I M E S T A M P\n {\n mT(); \n mI(); \n mM(); \n mE(); \n mS(); \n mT(); \n mA(); \n mM(); \n mP(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void setDateDoc (Timestamp DateDoc);",
"public void setDateDoc (Timestamp DateDoc);",
"public void setDateDoc (Timestamp DateDoc);",
"public boolean set(long timestamp, T e) {\n return set(timestamp, e, false);\n }",
"public void setStartTimestamp(long value) {\n this.startTimestamp = value;\n }",
"public void setTs(LocalDateTime value) {\n setValue(TS, value);\n }",
"public void setTimeStamp(String ts) {\r\n dateFormatter = new SimpleDateFormat(ts);\r\n }",
"public void setDateOrdered (Timestamp DateOrdered);",
"public void setTimeStamp(String timeStamp) {\n this.timeStamp = timeStamp;\n }",
"public com.opentext.bn.converters.avro.entity.DocumentEvent.Builder setEventTimestamp(java.lang.Long value) {\n validate(fields()[14], value);\n this.eventTimestamp = value;\n fieldSetFlags()[14] = true;\n return this;\n }",
"public void setOriginalServiceData (Timestamp OriginalServiceData);",
"protected void setStartTimestamp(long timestamp) {\n\t\tthis.startTimestamp = timestamp;\n\t\tsetDirty(true);\n\t}",
"public void setStatementDate (Timestamp StatementDate);",
"public void setMeasurementTimestamp(Date value) {\r\n this.measurementTimestamp = value;\r\n }",
"public void setTimeStamp(Long TimeStamp) {\n this.TimeStamp = TimeStamp;\n }",
"protected abstract void _set(String key, Object obj, Date expires);",
"void set(K key, V value, LocalDateTime expiresAt) throws CapacityExceededException;",
"public Builder setTimestampBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n timestamp_ = value;\n onChanged();\n return this;\n }",
"public Builder setTimestampBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n timestamp_ = value;\n onChanged();\n return this;\n }",
"public void updateTimestamp(Timestamp timestamp){\n\t\tLSimLogger.log(Level.TRACE, \"Updating the TimestampVectorInserting with the timestamp: \"+timestamp);\n\t\tString hostId = timestamp.getHostid();\n\t\ttimestampVector.replace(hostId, timestampVector.get(hostId), timestamp);\n\t}",
"public Builder setSignedTimeStamp(com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n signedTimeStamp_ = value;\n onChanged();\n return this;\n }",
"@Override\n public void setUserTimestamp(Date date) {\n }",
"public Builder setTimestampBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n\n timestamp_ = value;\n onChanged();\n return this;\n }",
"protected void setTimeStamp(Date date) {\n\t\tsetPurchaseDate(date);\n\t}",
"public void setMovementDate (Timestamp MovementDate);",
"public void setKey(TableKey key) {\n\tthis.key = key;\n }",
"public void setTimestampMinute(Date timestampMinute) {\n\tthis.timestampMinute = timestampMinute;\n }",
"public Timestamp(final long timeValue) {\n stamp = timeValue;\n }",
"void put(@NonNull String key, @NonNull T value, @NonNull LocalDateTime expiresAt);",
"public Builder setTimestamp(com.google.protobuf.Timestamp value) {\n if (timestampBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n timestamp_ = value;\n onChanged();\n } else {\n timestampBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public void newTimeKey() {\r\n\t\ttimeKeyA = System.nanoTime();\r\n\t}",
"public final void testSetTimeStamp() {\n Notification n = new Notification(\"type\", \"src\", 1);\n n.setTimeStamp(123);\n assertEquals(123, n.getTimeStamp());\n }",
"public void set(int curtTime, int key, int value, int ttl) {\n int expire = ttl == 0 ? -1 : curtTime + ttl - 1;\n Element elem = new Element(value, expire);\n cache.put(key, elem);\n }",
"void put(K key, V value, long expireMs);"
] | [
"0.68729156",
"0.6658167",
"0.652179",
"0.65106803",
"0.65099853",
"0.65097404",
"0.65081036",
"0.6489232",
"0.6464748",
"0.6432168",
"0.64165527",
"0.63986933",
"0.632154",
"0.63129073",
"0.6295576",
"0.6228112",
"0.6213066",
"0.6180643",
"0.61744714",
"0.61597544",
"0.6150677",
"0.61435276",
"0.6142678",
"0.6139045",
"0.6125602",
"0.6125602",
"0.61171526",
"0.6085236",
"0.6084877",
"0.60709906",
"0.60680354",
"0.6028715",
"0.6005233",
"0.59825253",
"0.5981434",
"0.5981434",
"0.59789413",
"0.595503",
"0.5954218",
"0.5938699",
"0.59380007",
"0.59209764",
"0.59121364",
"0.5903191",
"0.5903191",
"0.59025776",
"0.59025776",
"0.59025776",
"0.59025776",
"0.58906543",
"0.587964",
"0.5867331",
"0.5863239",
"0.5854675",
"0.5846642",
"0.5846293",
"0.58421546",
"0.58421546",
"0.58362085",
"0.5823719",
"0.5823719",
"0.5787995",
"0.5765195",
"0.57614017",
"0.57588524",
"0.5748189",
"0.57305646",
"0.57305646",
"0.57305646",
"0.57250154",
"0.5719909",
"0.5718647",
"0.57174927",
"0.5690332",
"0.5686594",
"0.5673277",
"0.56575775",
"0.5634059",
"0.5632576",
"0.56311",
"0.5630812",
"0.5623937",
"0.5605977",
"0.5581615",
"0.5581615",
"0.5581367",
"0.5580808",
"0.55715346",
"0.55670667",
"0.5546317",
"0.5539826",
"0.5519393",
"0.55148256",
"0.5497777",
"0.5497461",
"0.5485146",
"0.5483443",
"0.5479724",
"0.54697627",
"0.5461248"
] | 0.8019905 | 0 |
Gets the value of keyTimestamp | public String getKeyTimestamp()
{
return keyTimestamp;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getTimestamp();",
"java.lang.String getTimestamp();",
"String getTimestamp();",
"String getTimestamp();",
"public Integer getTimestamp() {\n return timestamp;\n }",
"int getTimestamp();",
"public long getTimestamp();",
"public long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"long getTimestamp();",
"com.google.protobuf.Timestamp getTimestamp();",
"public long getTimestamp() {\r\n return timestamp_;\r\n }",
"public long getTimestamp() {\r\n return timestamp_;\r\n }",
"public long getTimestamp() {\r\n return timestamp_;\r\n }",
"public long getTimestamp() {\r\n return timestamp_;\r\n }",
"public long getTimeStamp() {return attributes.getLongValue(TIMESTAMP,-1);}",
"public int getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return this.timestamp;\n }",
"public long getTimestamp() {\n return this.timestamp;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public int getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\r\n return timestamp;\r\n }",
"long getTimestamp();",
"public long getTimestamp() {\r\n return timestamp;\r\n }",
"public Double getTimestamp() {\r\n\t\treturn timestamp;\r\n\t}",
"public Long getTimestamp() {\n return timestamp;\n }",
"public int getTimestamp(){\r\n\t\treturn timestamp;\r\n\t}",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp() {\n return timestamp_;\n }",
"public long getTimestamp()\r\n {\r\n return safeConvertLong(getAttribute(\"timestamp\"));\r\n }",
"public Date getTimestamp() {\r\n return this.timestamp;\r\n }",
"public long getTimestamp() {\n return timestamp;\n }",
"public long getTimestamp() {\n return timestamp;\n }",
"public String getTimestamp()\n {\n return timestamp;\n }",
"public OffsetDateTime getTimestamp() {\n return this.timestamp;\n }",
"public long getTimestamp_() {\n return timestamp_;\n }",
"public long getKeyingTime() {\n\t\treturn (keyTime);\n\t}",
"public long getTimestamp() {\n\t\treturn timestamp;\n\t}",
"public long getTimestamp() {\n\t\treturn timestamp;\n\t}",
"public long getTimestamp() {\n\t\treturn timestamp;\n\t}",
"public Date getTimestamp() {\r\n return mTimestamp;\r\n }",
"public java.lang.String getTimestamp() {\n return timestamp;\n }",
"Date getTimestamp();",
"public Date getTimestamp() {\n return timestamp;\n }",
"public Date getTimestamp() {\n return timestamp;\n }",
"public Date getTimestamp() {\n return timestamp;\n }",
"public long getTimestamp() {\n\t\treturn lTimestamp;\n\t}",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"com.google.protobuf.ByteString\n getTimestampBytes();",
"public java.lang.Long getTimestamp() {\n return timestamp;\n }",
"public java.lang.Long getTimestamp() {\n return timestamp;\n }",
"public long getTimestamp() {\n return ((long)(buffer.get(4) & 0xff) << 24) |\n ((long)(buffer.get(5) & 0xff) << 16) |\n ((long)(buffer.get(6) & 0xff) << 8) |\n ((long)(buffer.get(7) & 0xff));\n }",
"public java.lang.String getTimestamp() {\n return timestamp;\n }",
"public Timestamp getTimestamp() {\n\t\treturn timestamp;\n\t}",
"public Timestamp getTimestamp() {\n\t\treturn timestamp;\n\t}",
"public long getTimeStamp() {\n return timestamp;\n }",
"public java.lang.Long getTimestamp() {\n return timestamp;\n }",
"public java.lang.Long getTimestamp() {\n return timestamp;\n }",
"@NonNull\n public Date getTimestamp() {\n return timestamp;\n }",
"public int getTimeStamp() {\n return timeStamp;\n }",
"@Override\n public long getTimestamp() {\n return timestamp;\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private long getBucketTimestamp(long predictionTimestampSeconds) {\r\n long key = predictionTimestampSeconds / _bucketSizeSeconds;\r\n key *= _bucketSizeSeconds;\r\n key += _bucketSizeSeconds;\r\n key -= 1;\r\n return key;\r\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n }\n }",
"public DateTime getTimeStamp(){\n\t\treturn (DateTime) getObject(DateTime.class, KEY_TIMESTAMP);\n\t}",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getTimestamp() {\n java.lang.Object ref = timestamp_;\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 timestamp_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTimestampBytes() {\n Object ref = timestamp_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n timestamp_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }"
] | [
"0.6887865",
"0.6887865",
"0.68832135",
"0.68832135",
"0.6809777",
"0.6756086",
"0.67538345",
"0.67538345",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.67324966",
"0.66729707",
"0.6671988",
"0.6671988",
"0.66599387",
"0.66599387",
"0.66447556",
"0.6635593",
"0.662318",
"0.662318",
"0.66118056",
"0.6604716",
"0.6600752",
"0.6600752",
"0.6600752",
"0.6600752",
"0.6600752",
"0.6600752",
"0.6600752",
"0.6600752",
"0.65865195",
"0.6577203",
"0.65732545",
"0.6572661",
"0.65702146",
"0.65701985",
"0.6567897",
"0.6567897",
"0.6567897",
"0.6567897",
"0.6567897",
"0.6567897",
"0.6567897",
"0.65551984",
"0.6553722",
"0.65532213",
"0.65532213",
"0.65473247",
"0.65436274",
"0.65249544",
"0.64968616",
"0.6484596",
"0.6484596",
"0.6484596",
"0.64741707",
"0.6458134",
"0.6449489",
"0.6438316",
"0.6438316",
"0.6438316",
"0.64270425",
"0.64257467",
"0.64257467",
"0.64257467",
"0.6418575",
"0.6418575",
"0.64034",
"0.63940215",
"0.6379445",
"0.6379445",
"0.63669187",
"0.635654",
"0.635654",
"0.6352842",
"0.63345575",
"0.6331456",
"0.62873673",
"0.62873673",
"0.6275454",
"0.6268954",
"0.6268954",
"0.62667614",
"0.62558323",
"0.62558323",
"0.62551564",
"0.62551564",
"0.6254122"
] | 0.7803386 | 0 |
Sets the value of stolenFlag | public void setStolenFlag(String stolenFlag)
{
this.stolenFlag = stolenFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setStolenFlag(Character aStolenFlag) {\n stolenFlag = aStolenFlag;\n }",
"public String getStolenFlag()\n\t{\n\t\treturn stolenFlag;\n\t}",
"protected void setFlag() {\n flag = flagVal;\n }",
"protected void setFlag() {\n flag = flagVal;\n }",
"void setProtection(boolean value);",
"public void setProtection(boolean value);",
"public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}",
"public Character getStolenFlag() {\n return stolenFlag;\n }",
"public void setFlag(int which) {\n setFlag(which, true);\n }",
"public void setSecuPwdFlag(String value) {\n this.secuPwdFlag = value;\n }",
"protected void setValidatedFlag(boolean value) {\n createFlags();\n flags[VALIDATED] = value;\n }",
"public void setByhand(java.lang.Boolean newByhand)\n\t\tthrows java.rmi.RemoteException;",
"public void setFlag( KerberosFlag flag )\n {\n value |= 1 << flag.getOrdinal();\n setBit( flag.getOrdinal() );\n }",
"void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}",
"public void setPrivate()\n {\n ensureLoaded();\n m_flags.setPrivate();\n setModified(true);\n }",
"protected final synchronized void setFlag(int flag, boolean sts) {\n\t\tboolean state = (m_flags & flag) != 0 ? true : false;\n\t\tif ( state && sts == false)\n\t\t\tm_flags -= flag;\n\t\telse if ( state == false && sts == true)\n\t\t\tm_flags += flag;\n\t}",
"protected void setObjectHeld(boolean oHeld) { objHeld = oHeld; }",
"public void setFlag( KerberosFlag flag )\n {\n int pos = MAX_SIZE - 1 - flag.getOrdinal();\n value |= 1 << pos;\n }",
"private void setDirty(boolean flag) {\n\tdirty = flag;\n\tmain.bSave.setEnabled(dirty);\n }",
"public void setMine()\n {\n mine = true;\n }",
"public void setOnHoldFlag(String value)\n {\n // Valid values are null, Y and N\n\n if ((value != null) && (!(\"\".equals(value.trim()))))\n { \n if (!((\"Y\".equals(value)) || (\"N\".equals(value))))\n {\n throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,\n getEntityDef().getFullName(), // EO name\n getPrimaryKey(), // EO PK\n \"OnHoldFlag\", // Attribute Name\n value, // Attribute value\n \"AK\", // Message product short name\n \"FWK_TBX_T_SUP_ONHOLD_INVALID\"); // Message name\n\n }\n }\n\n setAttributeInternal(ONHOLDFLAG, value);\n \n }",
"public void setFlag(int which, boolean value) {\n if (value) {\n flags |= (1 << which); // set flag\n } else {\n flags &= ~(1 << which); // clear flag\n }\n }",
"public void mine() {\n mined = true;\n }",
"public void setExternallyManaged(java.lang.Boolean value);",
"public void setWhitelisted ( boolean value ) {\n\t\texecute ( handle -> handle.setWhitelisted ( value ) );\n\t}",
"public void setGenPassword(boolean value) {\n this.genPassword = value;\n }",
"public void setDistPermitProofFlag(Character aDistPermitProofFlag) {\n distPermitProofFlag = aDistPermitProofFlag;\n }",
"void setValueLocked(boolean valueLocked);",
"private void setBlocked(boolean value) {\n\n blocked_ = value;\n }",
"public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }",
"void setShowUnlockOption(boolean b);",
"void setUserLocked(boolean b);",
"public void setEnabled(final boolean theFlag) {\n myEnabled = theFlag;\n }",
"public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}",
"public void \nsetFlag( int pFlagNumber, boolean pYesNo ) {\n if (pYesNo)\n fFlagBox = fFlagBox | (1 << pFlagNumber); \n else\n fFlagBox = fFlagBox & (~(1 << pFlagNumber));\n}",
"public synchronized static void setInsideSecureLocation(boolean flag){\n editor.putBoolean(IN_REGION, flag);\n editor.commit();\n }",
"public void setUsed()\n\t{\n\t\tm_justReset = false;\n\t}",
"void setManualCheck (boolean value);",
"private void setDirty(boolean flag) {\n\tmain.getState().dirty = flag;\n\tif (main.bSave != null)\n\t main.bSave.setEnabled(flag);\n }",
"public void setFlag(Boolean flag) {\n this.flag = flag;\n }",
"@SuppressWarnings({\"SameParameterValue\", \"unused\"})\n public static void allowAccessToLocation(final Boolean value) {\n sAccessToLocation = value;\n }",
"@Override\n public void unlock(int myId) {\n Y = -1; \n flag[myId] = false;\n \n }",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}",
"@Override\n\tpublic void setIsUsed(boolean arg0) {\n\n\t}",
"public void setSoft(boolean soft);",
"public void setPassword(boolean password) {\n/* 983 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setUseFlag(String useFlag) {\n this.useFlag = useFlag;\n }",
"public void changeCanThrowFlag()\r\n\t{\r\n\t\tcanThrowFlag = !canThrowFlag;\r\n\t}",
"public void setSignMastered(String sign, boolean value){\n mUsersRef.child(getUsername()).child(\"myDeck\").child(sign).child(\"mastered\").setValue(value);\n }",
"private void setRefuse(boolean value) {\n \n refuse_ = value;\n }",
"public void setFlags(long uid, Flags f, boolean value) throws IOException {\n BufferedWriter out = null;\n try {\n out = openCacheFile();\n out.write(Long.toString(uid));\n out.newLine();\n Flags.Flag[] systemFlags = f.getSystemFlags();\n for (int i = 0; i < systemFlags.length; i++) {\n if (systemFlags[i] == Flags.Flag.ANSWERED) {\n out.write(\"Answered\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DELETED) {\n out.write(\"Deleted\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DRAFT) {\n out.write(\"Draft\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.FLAGGED) {\n out.write(\"Flagged\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.RECENT) {\n out.write(\"Recent\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.SEEN) {\n out.write(\"Seen\");\n out.newLine();\n }\n }\n String[] userFlags = f.getUserFlags();\n for (int i = 0; i < userFlags.length; i++) {\n out.write(userFlags[i]);\n out.newLine();\n }\n out.write(DONE_MSG);\n out.newLine();\n if (value) out.write(\"true\"); else out.write(\"false\");\n out.newLine();\n out.write(DONE_MSG);\n out.newLine();\n } finally {\n if (out != null) closeCacheFile(out); else lock = false;\n }\n }",
"public static void setFlags(int flag){\r\n flags |= flag;\r\n }",
"public void setCheckable(boolean checkable) {\n/* 753 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public void setProtection(int p) {\r\n\t\tprotection = p;\r\n\t}",
"private void setSeen(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setSeen(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}",
"private boolean setPasswordPrivileged(@NonNull String password, int flags,\n CallerIdentity caller) {\n if (isLockScreenSecureUnchecked(caller.getUserId())) {\n throw new SecurityException(\"Cannot change current password\");\n }\n return resetPasswordInternal(password, 0, null, flags, caller);\n }",
"public Builder setSecuPwdFlag(String value) {\n validate(fields()[11], value);\n this.secuPwdFlag = value;\n fieldSetFlags()[11] = true;\n return this; \n }",
"public void setClaim(boolean a){\n isClaimed= a;\n \n}",
"void setIsManaged(boolean isManaged);",
"public void setShifterLocked(boolean isLocked) {\n isShifterLocked = isLocked;\n }",
"public void setProtected()\n {\n ensureLoaded();\n m_flags.setProtected();\n setModified(true);\n }",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"public void setSoundShot(final boolean sShot) { soundShot = sShot; }",
"public void setDistrictPermitFlag(Character aDistrictPermitFlag) {\n districtPermitFlag = aDistrictPermitFlag;\n }",
"public void setFlags(String uid, Flags f, boolean value) throws IOException {\n BufferedWriter out = null;\n try {\n out = openCacheFile();\n out.write(uid);\n out.newLine();\n Flags.Flag[] systemFlags = f.getSystemFlags();\n for (int i = 0; i < systemFlags.length; i++) {\n if (systemFlags[i] == Flags.Flag.ANSWERED) {\n out.write(\"Answered\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DELETED) {\n out.write(\"Deleted\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DRAFT) {\n out.write(\"Draft\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.FLAGGED) {\n out.write(\"Flagged\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.RECENT) {\n out.write(\"Recent\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.SEEN) {\n out.write(\"Seen\");\n out.newLine();\n }\n }\n String[] userFlags = f.getUserFlags();\n for (int i = 0; i < userFlags.length; i++) {\n out.write(userFlags[i]);\n out.newLine();\n }\n out.write(DONE_MSG);\n out.newLine();\n if (value) out.write(\"true\"); else out.write(\"false\");\n out.newLine();\n out.write(DONE_MSG);\n out.newLine();\n } finally {\n if (out != null) closeCacheFile(out); else lock = false;\n }\n }",
"public void setRentalFlag(Character aRentalFlag) {\n rentalFlag = aRentalFlag;\n }",
"public void setLocked(boolean value) {\n\t\tisLocked = value;\n\t}",
"public void setSettleFlag(String settleFlag) {\n this.settleFlag = settleFlag == null ? null : settleFlag.trim();\n }",
"public static void registerFlag() {\n if (!enabled())\n return;\n\n WorldGuardFlagHook.registerFlag();\n }",
"public Builder setSteamID(long value) {\n bitField0_ |= 0x00000001;\n steamID_ = value;\n onChanged();\n return this;\n }",
"private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}",
"public void setFlag(Integer flag) { this.flag = flag; }",
"void setGodPower(boolean b);",
"public void setIsFaked(Boolean isFaked) {\r\n this.isFaked = isFaked;\r\n }",
"public void setHarvested(boolean harvested);",
"void set(boolean value);",
"public void setModDev(boolean pModDev) {\r\n\t\tthis.modDev = pModDev;\r\n\t\twriteSavedFile();\r\n\t}",
"public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 20, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 12, flag);\n\t\t}\n\t}",
"public void setRevealed(int revealed) { revealedShips = revealed;}",
"public void setBakery (boolean b)\n {\n bakery = b;\n }",
"public void setMgrOwnFlag(String mgrOwnFlag) {\r\n this.mgrOwnFlag = mgrOwnFlag == null ? null : mgrOwnFlag.trim();\r\n }",
"public void setTrusted(boolean b, String by)\n {\n this.isTrusted = b;\n this.by = by;\n }",
"public void setLocalFlag(String value) {\n setAttributeInternal(LOCALFLAG, value);\n }",
"public void setLocalFlag(String value) {\n setAttributeInternal(LOCALFLAG, value);\n }",
"public void setSpecial(boolean s)\r\n\t{\r\n\t\tspecial = s;\r\n\t}",
"protected void setStateFlag(int flag, boolean sts) {\n\t\tif ( sts == true && (m_flags & flag) == 0)\n\t\t\tm_flags += flag;\n\t\telse if ( sts == false && (m_flags & flag) != 0)\n\t\t\tm_flags -= flag;\n\t}",
"public void setImmunity(boolean bool) {\r\n shieldImmune = bool;\r\n }",
"public void setStaged(final Boolean staged);",
"public void setStaged(final Boolean staged);",
"public void setFlag(boolean bol){\n\t\tflag = bol;\n\t}",
"public void setStorageDeviceProtected() { throw new RuntimeException(\"Stub!\"); }",
"public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t}\n\t}",
"void touchSecret(Long secretId);",
"public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }",
"public void setreadFlag(Boolean value) {\r\n setAttributeInternal(READFLAG, value);\r\n }",
"public void setSpPassword(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localSpPasswordTracker = true;\r\n } else {\r\n localSpPasswordTracker = false;\r\n \r\n }\r\n \r\n this.localSpPassword=param;\r\n \r\n\r\n }",
"public void sandbox(boolean sandbox) {\n this.sandbox = sandbox;\n }"
] | [
"0.8040051",
"0.6284645",
"0.62460023",
"0.62460023",
"0.6220608",
"0.60652155",
"0.5982736",
"0.5854979",
"0.5830964",
"0.58000594",
"0.57505685",
"0.5745746",
"0.5744186",
"0.5739638",
"0.5715371",
"0.5713626",
"0.5708759",
"0.56935126",
"0.5682854",
"0.5679632",
"0.5661183",
"0.5656826",
"0.5642531",
"0.5633477",
"0.5619146",
"0.5568685",
"0.55606645",
"0.5551436",
"0.55392814",
"0.55297095",
"0.5513706",
"0.55049",
"0.5491379",
"0.5476602",
"0.5456377",
"0.5434102",
"0.5402192",
"0.5400309",
"0.5393067",
"0.5361209",
"0.5361072",
"0.5355737",
"0.5355245",
"0.5355245",
"0.5355245",
"0.5352452",
"0.5351295",
"0.53368783",
"0.53329325",
"0.53307015",
"0.5323898",
"0.53182787",
"0.53163767",
"0.5302184",
"0.5297191",
"0.5297008",
"0.52950245",
"0.5288462",
"0.52771336",
"0.5273067",
"0.5272986",
"0.52660805",
"0.52463",
"0.52449936",
"0.5243246",
"0.5242847",
"0.52423096",
"0.5237598",
"0.523355",
"0.5223764",
"0.5223623",
"0.52231765",
"0.52216685",
"0.5212717",
"0.5208207",
"0.5206455",
"0.5201514",
"0.51987857",
"0.5193195",
"0.51859766",
"0.5185791",
"0.51825136",
"0.5173228",
"0.5169944",
"0.5167775",
"0.51651794",
"0.51651794",
"0.5163683",
"0.5161336",
"0.51592803",
"0.5157808",
"0.5157808",
"0.51558053",
"0.5155335",
"0.5143337",
"0.513286",
"0.5127513",
"0.5124537",
"0.5120967",
"0.5120374"
] | 0.8206227 | 0 |
Gets the value of stolenFlag | public String getStolenFlag()
{
return stolenFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Character getStolenFlag() {\n return stolenFlag;\n }",
"public void setStolenFlag(String stolenFlag)\n\t{\n\t\tthis.stolenFlag = stolenFlag;\n\t}",
"int getFlag();",
"String getSpareFlag();",
"public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }",
"public String getUseFlag() {\n return useFlag;\n }",
"public void setStolenFlag(Character aStolenFlag) {\n stolenFlag = aStolenFlag;\n }",
"public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}",
"public int getFlag()\n {\n return flag;\n }",
"public String getOnHoldFlag()\n {\n return (String)getAttributeInternal(ONHOLDFLAG);\n }",
"public String getLocalFlag() {\n return (String)getAttributeInternal(LOCALFLAG);\n }",
"public String getMgrOwnFlag() {\r\n return mgrOwnFlag;\r\n }",
"public String getRegisteredFlag()\n\t{\n\t\treturn registeredFlag;\n\t}",
"int getLoginFlag();",
"public int getToolFlag() {\r\n return toolFlag;\r\n }",
"public Integer getUserFlags() {\r\n return userFlags;\r\n }",
"protected boolean getValidatedFlag() {\n createFlags();\n return flags[VALIDATED];\n }",
"public int getRawFlag() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0811c831-ddd9-4df1-b31c-c5d631e39389\");\n return rawFlag;\n }",
"@Override\n public int getFlag() {\n return flag_;\n }",
"public String getCheckFlag() {\r\n return checkFlag;\r\n }",
"public Boolean getFlag() {\n return flag;\n }",
"public Integer getFLAG() {\n return FLAG;\n }",
"public String getCheckFlag() {\n return checkFlag;\n }",
"public long getFlags() {\n }",
"@Override\n public int getFlag() {\n return flag_;\n }",
"String getFlag() {\n return String.format(\"-T%d\", this.value);\n }",
"public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public Byte getModFlag() {\n return modFlag;\n }",
"long getFlags();",
"public boolean getFlag(){\n\t\treturn flag;\n\t}",
"public String getLocalFlag() {\n return (String) getAttributeInternal(LOCALFLAG);\n }",
"public boolean getSpecialUnlocked() {\n\t\treturn this.specialUnlocked;\n\t}",
"public boolean getProtection();",
"public Byte getAuditFlag() {\n return auditFlag;\n }",
"public Character getDistPermitProofFlag() {\n return distPermitProofFlag;\n }",
"public boolean getFlag() {\n\t\treturn flag;\n\t}",
"public String getIsFlag() {\r\n return isFlag;\r\n }",
"public String getSettleFlag() {\n return settleFlag;\n }",
"public String getFlaginfo() {\n return flaginfo;\n }",
"public String getSecuPwdFlag() {\n return secuPwdFlag;\n }",
"@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}",
"public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}",
"public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}",
"public int getAccess()\n {\n ensureLoaded();\n return m_flags.getAccess();\n }",
"public boolean getFlag(int which) {\n return (flags & (1 << which)) != 0;\n }",
"public String getSecuPwdFlag() {\n return secuPwdFlag;\n }",
"public String getWlSnFlag() {\n\t\treturn wlSnFlag;\n\t}",
"public String getValidflag() {\n return validflag;\n }",
"public String getValidflag() {\n return validflag;\n }",
"public int getBit() {\r\n return _bit;\r\n }",
"public String getValidflag() {\n\t\treturn validflag;\n\t}",
"public Byte getDisableFlag() {\n return disableFlag;\n }",
"protected abstract T getNormalFlagValue();",
"boolean hasFlag();",
"public String getReadonlyFlag() {\n return readonlyFlag;\n }",
"public String getAvailableForRentFlag() {\n return (String) getAttributeInternal(AVAILABLEFORRENTFLAG);\n }",
"public boolean getFlag() {\r\n\t\treturn (value.getInt() != 0);\r\n\t}",
"public static String get() {\n\t\treturn \"allowusersetup get\" + delimiter + \"allowusersetup get \";\n\t}",
"@Override\n\tpublic int getVarThisFlag() {\n\t\treturn heldObj.getVarThisFlag();\n\t}",
"public String getSignFlag() {\n return signFlag;\n }",
"public int getFlags() {\n Object value = library.getObject(entries, FLAGS);\n if (value instanceof Number) {\n return ((Number) value).intValue();\n }\n return 0;\n }",
"public java.lang.Boolean getByhand() throws java.rmi.RemoteException;",
"public Integer getdocverificationflag() {\n return (Integer) getAttributeInternal(DOCVERIFICATIONFLAG);\n }",
"int getFlagImage() {\n return this.flagImage;\n }",
"public String getOutputFlag();",
"boolean get();",
"boolean hasSteamID();",
"public Character getDistAppProofFlag() {\n return distAppProofFlag;\n }",
"public long getStreetCredGain();",
"public boolean hasSRCKEYVAL() {\n return fieldSetFlags()[12];\n }",
"public GeneralPurposeBit getGeneralPurposeBit() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"892f16be-9f3a-431a-a6d9-28dcc530435b\");\n return gpb;\n }",
"public java.lang.String getReservedFlags() {\n return reservedFlags;\n }",
"public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }",
"public long getHurtVal() {\n/* 133 */ return this.hurtVal;\n/* */ }",
"public int getProtection() {\r\n\t\treturn protection;\r\n\t}",
"public String getShowFlag() {\r\n return (String) getAttributeInternal(SHOWFLAG);\r\n }",
"public int getTrueValue()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start getTrueValue Method ***************/\n\n // Return true value\n return trueValue;\n\n }",
"public int getFlags();",
"public int getFlags();",
"public long getPassLevelNo() {\r\n return passLevelNo;\r\n }",
"public String getLightAttackKey() {\n return this.lightAttackKey;\n }",
"public int getWMCProtected(){\r\n\t\t \r\n\t\treturn mccabe.getWMCProtected();\t\t\r\n\t}",
"public int getFlagsNumber ()\r\n {\r\n return flagsNumber;\r\n }",
"public RecordFlagEnum getFlag();",
"@Override\n\tpublic int getAccessible() {\n\t\treturn _userSync.getAccessible();\n\t}",
"public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}",
"public boolean hasSRCKEYVAL() {\n return fieldSetFlags()[10];\n }",
"public boolean hasSLLNGRTTNID() {\n return fieldSetFlags()[8];\n }",
"public int getAccessFlags() {\n return access_flags;\n }",
"public boolean get_return(){\n return local_return;\n }",
"public Byte getShowFlag() {\n return showFlag;\n }",
"String getPass();",
"public boolean getExempt();",
"public Integer getCorrectflag() {\n return correctflag;\n }",
"public Integer getIsUseful() {\n return isUseful;\n }",
"long getSteamID();",
"@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/lib/IR/Module.cpp\", line = 323,\n FQN=\"llvm::Module::getModuleFlag\", NM=\"_ZNK4llvm6Module13getModuleFlagENS_9StringRefE\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/Module.cpp -nm=_ZNK4llvm6Module13getModuleFlagENS_9StringRefE\")\n //</editor-fold>\n public Metadata /*P*/ getModuleFlag(StringRef Key) /*const*/ {\n SmallVector<Module.ModuleFlagEntry> ModuleFlags/*J*/= new SmallVector<Module.ModuleFlagEntry>(8, new Module.ModuleFlagEntry());\n getModuleFlagsMetadata(ModuleFlags);\n for (final /*const*/ ModuleFlagEntry /*&*/ MFE : ModuleFlags) {\n if ($eq_StringRef(/*NO_COPY*/Key, MFE.Key.getString())) {\n return MFE.Val;\n }\n }\n return null;\n }"
] | [
"0.75552607",
"0.6783786",
"0.636464",
"0.6258364",
"0.62413573",
"0.6222127",
"0.6144513",
"0.60895336",
"0.60693413",
"0.5903484",
"0.5850142",
"0.5842492",
"0.5804669",
"0.5795501",
"0.57921916",
"0.5789289",
"0.5781492",
"0.5779821",
"0.574285",
"0.5742307",
"0.57370615",
"0.5732075",
"0.5718774",
"0.5706497",
"0.5698155",
"0.56892437",
"0.56890327",
"0.5680272",
"0.5680272",
"0.5680272",
"0.5669337",
"0.56578475",
"0.565363",
"0.5646373",
"0.5638068",
"0.56150967",
"0.56080383",
"0.5577471",
"0.5562562",
"0.55505514",
"0.5540223",
"0.55269134",
"0.55257773",
"0.5517407",
"0.5515297",
"0.5497332",
"0.5481044",
"0.54665923",
"0.54654706",
"0.5450541",
"0.5449434",
"0.5449434",
"0.54000044",
"0.5395481",
"0.5395114",
"0.53947103",
"0.53917706",
"0.5381463",
"0.5373256",
"0.5367434",
"0.53552765",
"0.5335996",
"0.53324425",
"0.5321789",
"0.5318017",
"0.530091",
"0.52820396",
"0.526204",
"0.5258104",
"0.52543694",
"0.5248574",
"0.52477086",
"0.5240253",
"0.52278715",
"0.522424",
"0.5217462",
"0.5216467",
"0.5210408",
"0.52070147",
"0.51942927",
"0.51923406",
"0.51923406",
"0.5190788",
"0.5186815",
"0.51774126",
"0.5174515",
"0.516459",
"0.5160428",
"0.5158124",
"0.515229",
"0.51511246",
"0.51488376",
"0.5144704",
"0.51411957",
"0.5137937",
"0.51328135",
"0.51274836",
"0.51222754",
"0.5117117",
"0.51170874"
] | 0.8324042 | 0 |
Sets the value of terminateFlag | public void setTerminateFlag(String terminateFlag)
{
this.terminateFlag = terminateFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setTerminated(boolean flag) {\n\t \t pimpl.terminated = flag;\n\t \t }",
"protected void setTerminate(boolean terminate){\r\n\t\tif(isTerminated() == false)\r\n\t\t\tisTerminated = terminate;\r\n\t}",
"public String getTerminateFlag()\n\t{\n\t\treturn terminateFlag;\n\t}",
"public void terminate() {\n terminated = true;\n }",
"public void terminate() {\n\t\trunning = false;\n\t}",
"public void terminate() {\r\n running = false;\r\n }",
"public void terminate() {\n }",
"public synchronized void terminate () {\n shutdown = true;\n }",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"public void terminate(){\n running = false;\n }",
"@Override\n public final void terminate() {\n }",
"public void terminate()\n\t{\n\t\tsynchronized (this) { this.running = false; }\n\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"public void terminate();",
"@Override\r\n\tpublic void terminate() {\n\t\r\n\t}",
"public void terminate(final boolean error);",
"protected void terminate()\n\t\tthrows Exception\n {\n }",
"public void terminate() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Stopping Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // set flag\n stopped.set(true);\n // shutdown\n Shutdown.main(commandLineArgs);\n System.out.println(\"Red5 stopped\");\n }\n }",
"public static void setExitFlag(int exitFlag) {\n\t\tblockContext.exitFlag = exitFlag;\n\t}",
"@Override\n public void terminate() throws InterruptedException {\n terminated.countDown();\n }",
"public abstract void terminate();",
"@Override\r\n\tpublic boolean terminate() {\n\t\tString METHOD_NAME = \"::terminate::\";\r\n\t\tlogger.debug(CLASS_NAME + METHOD_NAME + \"Inside...\");\r\n\t\treturn false;\r\n\t}",
"void terminate();",
"void terminate();",
"void terminate();",
"void terminate();",
"void terminate();",
"public void terminate() {\n if (isTerminated()) {\n throw new BirdCountTerminatedException(this);\n }\n this.endTime = new Date();\n }",
"public void setBreak(boolean flag) {\n\tisBreaking = flag;\n}",
"public void terminate() {\n logger.info(\"terminate not implemented\");\n }",
"public void stopThread() \n {\n \tthis.exit = true;\n \t//ctr.getMemory().programmcounter = 65536;\n }",
"public void terminate() throws DebugException {\n\t\tfTerminated = true;\n\t\tfireTerminateEvent();\n\t}",
"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 recTerminate(ATerm t0);",
"public void setExit(Boolean exit) {\r\n this.exit = exit;\r\n }",
"public static void setExitOnException(boolean flag) {\n exitOnException = flag; \n }",
"@Override\n public void terminate() throws HekateException {\n }",
"synchronized void terminate() {\n if (stdin != null) {\n try {\n stdin.write(\"{\\\"exit\\\":0}\\n\");\n stdin.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed, if the child exited already.\n } finally {\n stdin = null;\n }\n }\n\n // Cleaning up stdout (ensuring buffers are flushed, etc...)\n if (stdout != null) {\n try {\n stdout.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed.\n } finally {\n stdout = null;\n }\n }\n\n // Cleaning up error stream sink (ensuring all messages are flushed, etc...)\n if (this.errorStreamSink != null) {\n try {\n this.errorStreamSink.close();\n } catch (final InterruptedException ie) {\n // Ignore - we can no longer do anything about this...\n } finally {\n this.errorStreamSink = null;\n }\n }\n\n if (childProcess != null) {\n // Wait for the child process to complete\n try {\n // Giving the process up to 5 seconds to clean up and exit\n if (!childProcess.waitFor(5, TimeUnit.SECONDS)) {\n // If it's still not done, forcibly terminate it at this point.\n childProcess.destroyForcibly();\n }\n } catch (final InterruptedException ie) {\n throw new RuntimeException(ie);\n } finally {\n childProcess = null;\n }\n }\n\n // We shut down already, no need for the shutdown hook anymore\n if (this.shutdownHook != null) {\n try {\n Runtime.getRuntime().removeShutdownHook(this.shutdownHook);\n } catch (final IllegalStateException ise) {\n // VM Shutdown is in progress, removal is now impossible (and unnecessary)\n } finally {\n this.shutdownHook = null;\n }\n }\n }",
"synchronized void terminate() {\n if (stdin != null) {\n try {\n stdin.write(\"{\\\"exit\\\":0}\\n\");\n stdin.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed, if the child exited already.\n } finally {\n stdin = null;\n }\n }\n\n // Cleaning up stdout (ensuring buffers are flushed, etc...)\n if (stdout != null) {\n try {\n stdout.close();\n } catch (final IOException ioe) {\n // Ignore - the stream might have already been closed.\n } finally {\n stdout = null;\n }\n }\n\n // Cleaning up error stream sink (ensuring all messages are flushed, etc...)\n if (this.errorStreamSink != null) {\n try {\n this.errorStreamSink.close();\n } catch (final InterruptedException ie) {\n // Ignore - we can no longer do anything about this...\n } finally {\n this.errorStreamSink = null;\n }\n }\n\n if (childProcess != null) {\n // Wait for the child process to complete\n try {\n // Giving the process up to 5 seconds to clean up and exit\n if (!childProcess.waitFor(5, TimeUnit.SECONDS)) {\n // If it's still not done, forcibly terminate it at this point.\n childProcess.destroyForcibly();\n }\n } catch (final InterruptedException ie) {\n throw new RuntimeException(ie);\n } finally {\n childProcess = null;\n }\n }\n\n // We shut down already, no need for the shutdown hook anymore\n if (this.shutdownHook != null) {\n try {\n Runtime.getRuntime().removeShutdownHook(this.shutdownHook);\n } catch (final IllegalStateException ise) {\n // VM Shutdown is in progress, removal is now impossible (and unnecessary)\n } finally {\n this.shutdownHook = null;\n }\n }\n }",
"@JRubyMethod\n public IRubyObject terminate() {\n if (running()) {\n samplingThread.interrupt();\n return waitSamplingStop();\n } else {\n return this.getRuntime().getFalse();\n }\n }",
"public void setExit(boolean exit) {\r\n this.exit = exit;\r\n }",
"public void shutdown() {\n this.shallRun = false;\n this.interrupt();\n Log.getLog().info(\"catched caretaker termination signal\");\n }",
"public void terminate() {\n\t\t// Do something more clever here...\n\t\toutput.console(\"AlarmClock exit.\");\n\t}",
"public void setThreadStopped(boolean flag) {\r\n threadStopped = flag;\r\n }",
"protected void terminate(){\r\n\t\tsetTerminate(true);\r\n\t\tHolder holder = this.getDirectHolder();\r\n\t\tsetHolder(null);\r\n\t\tholder.removeItem(this);\r\n\t}",
"public static void terminate() {\n\tStudentDA.terminate();\n }",
"public void setDeleteOnExit(boolean flag);",
"public void terminate() {\n TerminalAtomics.cancel(this, REQUESTED);\n UNSAFE.putOrderedObject(this, REMOVE, null);\n }",
"static void stop() {\n flag = 0;\n }",
"@Override\r\n public int stop(int exitCode) {\r\n IS.stopAll();\r\n return exitCode;\r\n }",
"public void set(int flag)\n {\n setWaitFlags( waitFlags | flag );\n }",
"@Override\n public void terminate(String state, double reward, boolean writeLearningData) {\n }",
"static public void terminate(boolean normal) {\n pref.store(); //save application settings\n flog.forceWriteln(\"Shutting down server, normal: \" + normal);\n if (normal) {\n System.exit(0);\n } else {\n System.exit(1);\n }\n }",
"private static void exit() {\n dvm.exit();\n stop = true;\n }",
"public void setExit(boolean exit) {\n this.exit = exit;\n }",
"@Override\n public void abort() { \n abortFlag = true ;\n }",
"private void initiateTerminate() {\n\t\tMap.Entry<Integer, String> pidMessagePair = \n\t\t\t\tnew AbstractMap.SimpleEntry<Integer, String>(0, TERMINATE_MESSAGE);\n\t\tsynchronized (receiveQueue) {\n\t\t\treceiveQueue.add(pidMessagePair);\n\t\t\treceiveQueue.notifyAll();\n\t\t}\n\t}",
"@Override\n\tpublic void onTerminate(Args args) {\n\t\t\n\t}",
"@Override\n public void terminate()\n {\n SwapPageManager.closeTestFile();\n //\tprintDebug(memoryController.pageReplacementAlgorithm.getAlgorithmName()+\n //\t\t\t\"Total Page Fault: \"+memoryController.pageReplacementAlgorithm.getNumberPageFault());\n\n super.terminate();\n }",
"public void setExited() {\n this.exited = true;\n }",
"synchronized void setInterrupted() {\n stopped = true;\n inputGiven = true;\n notifyAll();\n }",
"public void terminate() {\n this.isDying = true;\n //this.isStaticCollidable = false;\n //this.isDynamicCollidable = false;\n\n this.setProp(ObjectProps.PROP_STATICCOLLIDABLE, false);\n this.setProp(ObjectProps.PROP_DYNAMICCOLLIDABLE, false);\n\n this.action = DYING;\n this.velX = 0;\n this.velY = 5;\n }",
"public void setResetTimeOnStop(boolean aFlag) { _resetTimeOnStop = aFlag; }",
"@Override\r\n\tpublic void onTerminate() {\n\t\tsuper.onTerminate();\r\n\t}",
"protected void setFlag() {\n flag = flagVal;\n }",
"protected void setFlag() {\n flag = flagVal;\n }",
"public void setFlag( KerberosFlag flag )\n {\n int pos = MAX_SIZE - 1 - flag.getOrdinal();\n value |= 1 << pos;\n }",
"public boolean isTerminated() {\r\n\t\treturn fTerminated;\r\n\t}",
"@Basic\r\n\t@Raw\r\n\tpublic boolean isTerminated(){\r\n\t\treturn isTerminated;\r\n\t}",
"public void stop() {\n\t\tthis.flag = false;\n\t\t\n\t\t\n\t}",
"@Override\n public void terminateProgram() {\n \n }",
"public void markInterrupted() {\n\t\tenvironmentStatus = State.INTERRUPTED.name();\n\t\terrorMessage = \"setup was interrupted\";\n\t\tthis.statusCode = StatusCode.Interrupted.code;\n\t}",
"public void terminate() {\n\t\tpostEvent(new IpcEvent(SimulationEvents.EVENT_TYPE_TERMINATE, this, null));\n\t}",
"@Override\n public void onTerminate() {\n \tsuper.onTerminate();\n \t\n \tLog.e(\"LIFECYCLE = \", this.getClass().toString() + \".onTerminate\");\n \treturn;\n }",
"public void terminate() {\n\t\t//terminate probes\n\t\tfor (Entry<String,IProbe> entry :this.probes.entrySet())\n\t\t\tentry.getValue().terminate();\n\t\t//terminate collector\n\t\tthis.collector.terminate();\n\t\tthis.distributorWorker.terminate();\n\t}",
"@Override\n\tpublic void terminateInstances(ITerminateInstancesRequest req) {\n\t\t\n\t}",
"public final void requestExit() {\n exitRequested = true;\n }",
"public final int term()\n\t{\n\t\tSTAFResult result = super.terminate();\n\t\treturn result.rc;\n\t}",
"protected void handleExit() {\r\n\t\texitRecieved = true;\r\n\t\tterminate();\r\n\t}",
"@Basic @Raw\n public boolean isTerminated(){\n \treturn this.isTerminated;\n }",
"@Override\n public void end(boolean interrupted) {\n drivetrain.set(0, 0);\n }",
"@Override\n\tprotected void onTermination() throws SimControlException {\n\t\t\n\t}",
"public void Term() {\n\t\tterminate = 1; \n\t\tDBReqBase req = new DBReqBase();\n\t\treq.appid = 0;\n\t\tthis.PutDBReq(req); // an empty req to wake the thread\n\t\ttry {\n\t\t\tthis.join(1000000L); // milliseconds\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tif (!this.isInterrupted()) {\n\t\t\tthis.interrupt();\n\t\t}\n this.TermDB();\n\t}",
"public synchronized void shutServer() {\n \tmainDepartureTerminalEntrance.terminated = mainDepartureTerminalEntrance.terminated + 1;\n }",
"public void setFlag( KerberosFlag flag )\n {\n value |= 1 << flag.getOrdinal();\n setBit( flag.getOrdinal() );\n }",
"private void exit() {\n this.isRunning = false;\n }",
"public void terminate() {\n Swap.getSwap().close();\n super.terminate();\n }",
"private static void abnormalTermination(String message) {\n System.out.println(message);\n System.exit(-1);\n }",
"@Override\n\tpublic void onTerminate() {\n\t\tsuper.onTerminate();\n\t\tJmtSensor.getInstance(mInstance).SetWaitTouch();\n\t}",
"public int forcedTerminationCount(){\r\n return forcedTc;\r\n }",
"public void setKillCount(){\n killCount = killCount + 1;\n System.out.println(\"Kill count: \"+ killCount);\n }",
"@Override\n public synchronized void term() {\n if (terminated) {\n return;\n }\n\n messageState.closeAll();\n context.term();\n\n terminated = true;\n }",
"public void halt ( )\n\t{\n\t\tthis.running = false;\n\t}",
"@Override\n\tpublic void terminateDatacenters() {\n\t}",
"boolean isTerminated();"
] | [
"0.75917715",
"0.7464952",
"0.70645356",
"0.68670887",
"0.63625926",
"0.6245191",
"0.62066555",
"0.6200284",
"0.61828643",
"0.61828643",
"0.61828643",
"0.6086818",
"0.60760397",
"0.60718775",
"0.6068505",
"0.6068505",
"0.6068505",
"0.6068505",
"0.606651",
"0.60258555",
"0.60233736",
"0.59761435",
"0.59226173",
"0.5833469",
"0.5732974",
"0.56857187",
"0.56514734",
"0.5650204",
"0.5650204",
"0.5650204",
"0.5650204",
"0.5650204",
"0.5627668",
"0.55532956",
"0.5533406",
"0.5514511",
"0.5507042",
"0.5485518",
"0.545342",
"0.5318435",
"0.5313327",
"0.528522",
"0.5275522",
"0.5275522",
"0.52629274",
"0.52574307",
"0.5219535",
"0.5203865",
"0.5198087",
"0.51956254",
"0.5192897",
"0.5190816",
"0.51858914",
"0.5172286",
"0.51673454",
"0.5159355",
"0.51380455",
"0.5129772",
"0.509354",
"0.50847954",
"0.5058233",
"0.5057827",
"0.5032048",
"0.5019399",
"0.5010192",
"0.4987428",
"0.49867305",
"0.4981527",
"0.49793956",
"0.49737936",
"0.49737936",
"0.49607682",
"0.495669",
"0.49534777",
"0.4949515",
"0.4947187",
"0.4935944",
"0.49282855",
"0.49268797",
"0.49099678",
"0.49050233",
"0.49017677",
"0.4897993",
"0.48957068",
"0.4869973",
"0.48647612",
"0.48488432",
"0.48367542",
"0.4799228",
"0.47985634",
"0.479574",
"0.47911063",
"0.47866404",
"0.47761992",
"0.47736633",
"0.47643283",
"0.4751217",
"0.4746663",
"0.4732025",
"0.47262427"
] | 0.8200686 | 0 |
Gets the value of terminateFlag | public String getTerminateFlag()
{
return terminateFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setTerminateFlag(String terminateFlag)\n\t{\n\t\tthis.terminateFlag = terminateFlag;\n\t}",
"@Basic @Raw\n public boolean isTerminated(){\n \treturn this.isTerminated;\n }",
"@Basic\r\n\t@Raw\r\n\tpublic boolean isTerminated(){\r\n\t\treturn isTerminated;\r\n\t}",
"protected void setTerminated(boolean flag) {\n\t \t pimpl.terminated = flag;\n\t \t }",
"public boolean isTerminated() {\r\n\t\treturn fTerminated;\r\n\t}",
"public int exitValue() {\n if (_aborted) { return -1; }\n if ((_index<_processes.length-1) || (_processes[_processes.length-1]==null)) {\n throw new IllegalThreadStateException(\"Process sequence has not terminated yet, exit value not available.\");\n }\n // just returning the exit value of the last process is sufficient:\n // the last process gets started when the previous one has already terminated\n return _processes[_processes.length-1].exitValue();\n }",
"boolean isTerminated();",
"public final int term()\n\t{\n\t\tSTAFResult result = super.terminate();\n\t\treturn result.rc;\n\t}",
"@JRubyMethod\n public IRubyObject terminate() {\n if (running()) {\n samplingThread.interrupt();\n return waitSamplingStop();\n } else {\n return this.getRuntime().getFalse();\n }\n }",
"public int forcedTerminationCount(){\r\n return forcedTc;\r\n }",
"public int voluntaryTerminationCount(){\r\n return voluntaryTc;\r\n }",
"int exitValue();",
"Integer getExitCode() {\n\n try {\n final int exitValue = process.exitValue();\n streamHandler.stop();\n LOGGER.trace(\"Process has been terminated with exit value {}\", exitValue);\n return exitValue;\n\n } catch (IllegalThreadStateException ex) {\n LOGGER.trace(\"Could not get exit value; the process is running\");\n return null;\n }\n }",
"public boolean getExit() {\r\n return exit;\r\n }",
"public boolean isTerminated() {\n \n \t\tfinal Thread executingThread = this.environment.getExecutingThread();\n \t\tif (executingThread.getState() == Thread.State.TERMINATED) {\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}",
"public int getExitStateReturned() {\n return exitStateReturned;\n }",
"public int getExitValue() throws IllegalThreadStateException\n\t{\n\t\tint exitValue;\n\n\t\tif(process == null)\n\t\t{\n\t\t\texitValue = 1;\n\t\t\tthrow new IllegalThreadStateException(this.getClass().getName()+\n\t\t\t\t\":getExitValue:process is null.\");\n\t\t}\n\t\telse\n\t\t\texitValue = process.exitValue();\n\t\treturn exitValue;\n\t}",
"int getExitStatus();",
"public long getStopped() { return stopped; }",
"public int getExitStatus() {\n return exitStatus_;\n }",
"public void terminate() {\n terminated = true;\n }",
"int getExitNum() {\n return exitNum;\n }",
"public int getExitStatus() {\n return exitStatus_;\n }",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"void terminate() {\r\n\t\t\t\tif (done.compareAndSet(false, true)) {\r\n\t\t\t\t\tlatch.countDown();\r\n\t\t\t\t}\r\n\t\t\t}",
"protected int getExitStatus() {\n return this.exitStatus;\n }",
"public void terminate();",
"protected void setTerminate(boolean terminate){\r\n\t\tif(isTerminated() == false)\r\n\t\t\tisTerminated = terminate;\r\n\t}",
"public boolean terminate() {\n return (msgType == MessageType.QUIT);\n }",
"public int getFlag()\n {\n return flag;\n }",
"public Integer getFLAG() {\n return FLAG;\n }",
"@Override\r\n\tpublic boolean terminate() {\n\t\tString METHOD_NAME = \"::terminate::\";\r\n\t\tlogger.debug(CLASS_NAME + METHOD_NAME + \"Inside...\");\r\n\t\treturn false;\r\n\t}",
"public int terminate(){\n switch (ttype) {\n case TERM_FULL:\n //sets the remaining bits of the last byte of the coded bits.\n int tempc=c+a;\n c=c|0xFFFF;\n if(c>=tempc)\n c=c-0x8000;\n\n int remainingBits = 27-cT;\n\n // Flushes remainingBits\n do{\n c <<= cT;\n if(b != 0xFF)\n remainingBits -= 8;\n else\n remainingBits -= 7;\n byteOut();\n }\n while(remainingBits > 0);\n\n b |= (1<<(-remainingBits))-1;\n if (b==0xFF) { // Delay 0xFF bytes\n delFF = true;\n }\n else {\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n }\n break;\n case TERM_PRED_ER:\n case TERM_EASY:\n // The predictable error resilient and easy termination are the\n // same, except for the fact that the easy one can modify the\n // spare bits in the last byte to maximize the likelihood of\n // having a 0xFF, while the error resilient one can not touch\n // these bits.\n\n // In the predictable error resilient case the spare bits will be\n // recalculated by the decoder and it will check if they are the\n // same as as in the codestream and then deduce an error\n // probability from there.\n\n int k; // number of bits to push out\n\n k = (11-cT)+1;\n\n c <<= cT;\n for (; k > 0; k-=cT, c<<=cT){\n byteOut();\n }\n\n // Make any spare bits 1s if in easy termination\n if (k < 0 && ttype == TERM_EASY) {\n // At this stage there is never a carry bit in C, so we can\n // freely modify the (-k) least significant bits.\n b |= (1<<(-k))-1;\n }\n\n byteOut(); // Push contents of byte buffer\n break;\n case TERM_NEAR_OPT:\n\n // This algorithm terminates in the shortest possible way, besides\n // the fact any previous 0xFF 0x7F sequences are not\n // eliminated. The probabalility of having those sequences is\n // extremely low.\n\n // The calculation of the length is based on the fact that the\n // decoder will pad the codestream with an endless string of\n // (binary) 1s. If the codestream, padded with 1s, is within the\n // bounds of the current interval then correct decoding is\n // guaranteed. The lower inclusive bound of the current interval\n // is the value of C (i.e. if only lower intervals would be coded\n // in the future). The upper exclusive bound of the current\n // interval is C+A (i.e. if only upper intervals would be coded in\n // the future). We therefore calculate the minimum length that\n // would be needed so that padding with 1s gives a codestream\n // within the interval.\n\n // In general, such a calculation needs the value of the next byte\n // that appears in the codestream. Here, since we are terminating,\n // the next value can be anything we want that lies within the\n // interval, we use the lower bound since this minimizes the\n // length. To calculate the necessary length at any other place\n // than the termination it is necessary to know the next bytes\n // that will appear in the codestream, which involves storing the\n // codestream and the sate of the MQCoder at various points (a\n // worst case approach can be used, but it is much more\n // complicated and the calculated length would be only marginally\n // better than much simple calculations, if not the same).\n\n int cLow;\n int cUp;\n int bLow;\n int bUp;\n\n // Initialize the upper (exclusive) and lower bound (inclusive) of\n // the valid interval (the actual interval is the concatenation of\n // bUp and cUp, and bLow and cLow).\n cLow = c;\n cUp = c+a;\n bLow = bUp = b;\n\n // We start by normalizing the C register to the sate cT = 0\n // (i.e., just before byteOut() is called)\n cLow <<= cT;\n cUp <<= cT;\n // Progate eventual carry bits and reset them in Clow, Cup NOTE:\n // carry bit can never be set if the byte buffer was empty so no\n // problem with propagating a carry into an empty byte buffer.\n if ((cLow & (1<<27)) != 0) { // Carry bit in cLow\n if (bLow == 0xFF) {\n // We can not propagate carry bit, do bit stuffing\n delFF = true; // delay 0xFF\n // Get next byte buffer\n bLow = cLow>>>20;\n bUp = cUp>>>20;\n cLow &= 0xFFFFF;\n cUp &= 0xFFFFF;\n // Normalize to cT = 0\n cLow <<= 7;\n cUp <<= 7;\n }\n else { // we can propagate carry bit\n bLow++; // propagate\n cLow &= ~(1<<27); // reset carry in cLow\n }\n }\n if ((cUp & (1<<27)) != 0) {\n bUp++; // propagate\n cUp &= ~(1<<27); // reset carry\n }\n\n // From now on there can never be a carry bit on cLow, since we\n // always output bLow.\n\n // Loop testing for the condition and doing byte output if they\n // are not met.\n while(true){\n // If decoder's codestream is within interval stop\n // If preceding byte is 0xFF only values [0,127] are valid\n if(delFF){ // If delayed 0xFF\n if (bLow <= 127 && bUp > 127) break;\n // We will write more bytes so output delayed 0xFF now\n out.write(0xFF);\n nrOfWrittenBytes++;\n delFF = false;\n }\n else{ // No delayed 0xFF\n if (bLow <= 255 && bUp > 255) break;\n }\n\n // Output next byte\n // We could output anything within the interval, but using\n // bLow simplifies things a lot.\n\n // We should not have any carry bit here\n\n // Output bLow\n if (bLow < 255) {\n // Transfer byte bits from C to B\n // (if the byte buffer was empty output nothing)\n if (nrOfWrittenBytes >= 0) out.write(bLow);\n nrOfWrittenBytes++;\n bUp -= bLow;\n bUp <<= 8;\n // Here bLow would be 0\n bUp |= (cUp >>> 19) & 0xFF;\n bLow = (cLow>>> 19) & 0xFF;\n // Clear upper bits (just pushed out) from cUp Clow.\n cLow &= 0x7FFFF;\n cUp &= 0x7FFFF;\n // Goto next state where CT is 0\n cLow <<= 8;\n cUp <<= 8;\n // Here there can be no carry on Cup, Clow\n }\n else { // bLow = 0xFF\n // Transfer byte bits from C to B\n // Since the byte to output is 0xFF we can delay it\n delFF = true;\n bUp -= bLow;\n bUp <<= 7;\n // Here bLow would be 0\n bUp |= (cUp>>20) & 0x7F;\n bLow = (cLow>>20) & 0x7F;\n // Clear upper bits (just pushed out) from cUp Clow.\n cLow &= 0xFFFFF;\n cUp &= 0xFFFFF;\n // Goto next state where CT is 0\n cLow <<= 7;\n cUp <<= 7;\n // Here there can be no carry on Cup, Clow\n }\n }\n break;\n default:\n throw new Error(\"Illegal termination type code\");\n }\n\n // Reinitialize the state (without modifying the contexts)\n int len;\n\n len = nrOfWrittenBytes;\n a = 0x8000;\n c = 0;\n b = 0;\n cT = 12;\n delFF = false;\n nrOfWrittenBytes = -1;\n\n // Return the terminated length\n return len;\n }",
"public Boolean getDeleteOnTermination() {\n return this.deleteOnTermination;\n }",
"public boolean getStop() {\n\t\treturn end == 5;\n\t}",
"public void terminate() {\n }",
"public int getStopSequence() {\n return stopSequence;\n }",
"public void recTerminate(ATerm t0);",
"@Override\n public int getFlag() {\n return flag_;\n }",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"public void terminate() {\n\t}",
"@DISPID(4)\r\n\t// = 0x4. The runtime will prefer the VTID if present\r\n\t@VTID(10)\r\n\tint lastInstanceReturnCode();",
"int getFlag();",
"@Override\n public int getFlag() {\n return flag_;\n }",
"void terminate();",
"void terminate();",
"void terminate();",
"void terminate();",
"void terminate();",
"public Exit getExit() {\n\t\treturn exit;\n\t}",
"int getExitReason( ) {\n\t\treturn exitReason;\n\t}",
"public Character getOperationalFlag() {\n return operationalFlag;\n }",
"@Override\n public final void terminate() {\n }",
"public String getStopped() {\n return stopped;\n }",
"public void terminate(final boolean error);",
"public int exitValue(short sid) \n throws IllegalThreadStateException, UnknownServerException {\n return scadmin.exitValue(sid);\n }",
"public Integer getIsfinish() {\n return isfinish;\n }",
"boolean isMonitoringTerminated();",
"String getSpareFlag();",
"public static int getThreadsRunning(){\r\n return threadsRunning;\r\n }",
"public boolean getFlag() {\n\t\treturn flag;\n\t}",
"public void terminate() {\n\t\trunning = false;\n\t}",
"public abstract void terminate();",
"public Byte getDeleteFlag() {\n return deleteFlag;\n }",
"public Integer getDefaultFlag() {\n return defaultFlag;\n }",
"public int getExitCode() {\n\t\treturn exitCode;\n\t}",
"public Boolean getFlag() {\n return flag;\n }",
"public String getDelFlag() {\n return delFlag;\n }",
"public String getDelFlag() {\n return delFlag;\n }",
"public String getDelFlag() {\n return delFlag;\n }",
"public boolean getFlag(){\n\t\treturn flag;\n\t}",
"protected void terminate()\n\t\tthrows Exception\n {\n }",
"@Override\r\n\tpublic void terminate() {\n\t\r\n\t}",
"public void terminate() {\n if (isTerminated()) {\n throw new BirdCountTerminatedException(this);\n }\n this.endTime = new Date();\n }",
"@DISPID(37)\r\n\t// = 0x25. The runtime will prefer the VTID if present\r\n\t@VTID(36)\r\n\tint lastInstanceReturnCode();",
"boolean getDaemon( boolean flag );",
"Property<Boolean> getIgnoreExitValue();",
"public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}",
"public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}",
"public final int awaitExit() throws InterruptedException {\n int result = doAwaitExit();\n stopped();\n return result;\n }",
"public String getRecvTaskExecFlag() {\n return recvTaskExecFlag;\n }",
"public Short getDelFlag() {\n\t\treturn delFlag;\n\t}",
"public boolean getFlag() {\r\n\t\treturn (value.getInt() != 0);\r\n\t}",
"@Schema(description = \"The time interval (in seconds) to wait for the VNF to be taken out of service during graceful stop, before stopping the VNF. \")\n public Integer getGracefulStopTimeout() {\n return gracefulStopTimeout;\n }",
"public Integer getDeleteflag() {\n return deleteflag;\n }",
"public Character getCurrentFlag() {\n return currentFlag;\n }",
"public Boolean getDelflag() {\r\n return delflag;\r\n }",
"public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}",
"@DISPID(72)\r\n\t// = 0x48. The runtime will prefer the VTID if present\r\n\t@VTID(70)\r\n\tint mainJobReturnCode();",
"public void terminate() {\n if (!stopped.get()) {\n \tSystem.out.printf(\"Stopping Red5 with args: %s\\n\", Arrays.toString(commandLineArgs));\n // set flag\n stopped.set(true);\n // shutdown\n Shutdown.main(commandLineArgs);\n System.out.println(\"Red5 stopped\");\n }\n }",
"public void terminate() {\r\n running = false;\r\n }",
"public int getKillCount(){\n return killCount;\n }",
"@Override\n public void terminate() throws InterruptedException {\n terminated.countDown();\n }",
"public void terminate(){\n running = false;\n }",
"public void terminate()\n\t{\n\t\tsynchronized (this) { this.running = false; }\n\t}",
"@Override\r\n public int stop(int exitCode) {\r\n IS.stopAll();\r\n return exitCode;\r\n }",
"public static void setExitFlag(int exitFlag) {\n\t\tblockContext.exitFlag = exitFlag;\n\t}"
] | [
"0.6996253",
"0.63455623",
"0.6257888",
"0.6221587",
"0.62103903",
"0.6018425",
"0.5955139",
"0.58803385",
"0.578801",
"0.56915724",
"0.5682476",
"0.5677868",
"0.56562304",
"0.5608721",
"0.5522962",
"0.55056953",
"0.5440915",
"0.5398349",
"0.538664",
"0.53792137",
"0.5352331",
"0.5316144",
"0.5290184",
"0.5281931",
"0.5281931",
"0.5281931",
"0.5281931",
"0.52375543",
"0.52285373",
"0.522162",
"0.5219886",
"0.518427",
"0.51503277",
"0.5140454",
"0.5123106",
"0.51115733",
"0.5107435",
"0.50790787",
"0.505358",
"0.49849615",
"0.49835616",
"0.4963027",
"0.4963027",
"0.4963027",
"0.49566567",
"0.49538457",
"0.49530622",
"0.4923762",
"0.4923762",
"0.4923762",
"0.4923762",
"0.4923762",
"0.4917392",
"0.4913399",
"0.48668662",
"0.48656234",
"0.48597398",
"0.48594725",
"0.48579141",
"0.4853335",
"0.4839015",
"0.4833494",
"0.48242623",
"0.48229247",
"0.48159283",
"0.48028398",
"0.4802645",
"0.48019013",
"0.47743765",
"0.47606575",
"0.4757445",
"0.4757445",
"0.4757445",
"0.4752439",
"0.47475716",
"0.4745037",
"0.47255573",
"0.4721054",
"0.47132835",
"0.47123748",
"0.47121534",
"0.47014117",
"0.47010726",
"0.46992487",
"0.46962115",
"0.46940777",
"0.46930796",
"0.46929568",
"0.46928826",
"0.4689987",
"0.46836832",
"0.46748763",
"0.46746624",
"0.46738762",
"0.4660839",
"0.46533212",
"0.46521848",
"0.46512178",
"0.46508062",
"0.46506184"
] | 0.84387237 | 0 |
Sets the value of registeredFlag | public void setRegisteredFlag(String registeredFlag)
{
this.registeredFlag = registeredFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void setFlag() {\n flag = flagVal;\n }",
"protected void setFlag() {\n flag = flagVal;\n }",
"public void setFlag( int flag )\n {\n value |= 1 << flag;\n setBit( flag );\n }",
"public static void registerFlag() {\n if (!enabled())\n return;\n\n WorldGuardFlagHook.registerFlag();\n }",
"public void giveFlag(Flag f)\r\n\t{\r\n\t\thasFlag = true;\r\n\t\tflag = f;\r\n\t}",
"public void setFlag(Integer flag) { this.flag = flag; }",
"public void setFlag(RecordFlagEnum flag);",
"void setFlag(long flag, boolean val) {\n\t\tif (val)\r\n\t\t\tflags = flags | flag;\r\n\t\telse\r\n\t\t\tflags = flags & ~flag;\r\n\t}",
"public void set(int flag)\n {\n setWaitFlags( waitFlags | flag );\n }",
"private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}",
"public static void setFlags(int flag){\r\n flags |= flag;\r\n }",
"protected final synchronized void setFlag(int flag, boolean sts) {\n\t\tboolean state = (m_flags & flag) != 0 ? true : false;\n\t\tif ( state && sts == false)\n\t\t\tm_flags -= flag;\n\t\telse if ( state == false && sts == true)\n\t\t\tm_flags += flag;\n\t}",
"public void setFlag( KerberosFlag flag )\n {\n int pos = MAX_SIZE - 1 - flag.getOrdinal();\n value |= 1 << pos;\n }",
"public void setFlag(int which) {\n setFlag(which, true);\n }",
"public void setFlag( int flag )\n {\n value |= 1 << ( MAX_SIZE - 1 - flag );\n }",
"public void setRegistered(Boolean registered) {\n this.registered = registered;\n }",
"public void setFlag( KerberosFlag flag )\n {\n value |= 1 << flag.getOrdinal();\n setBit( flag.getOrdinal() );\n }",
"public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 20, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 12, flag);\n\t\t}\n\t}",
"public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}",
"public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t}\n\t}",
"public void setFlag(Boolean flag) {\n this.flag = flag;\n }",
"public void setFlag(int which, boolean value) {\n if (value) {\n flags |= (1 << which); // set flag\n } else {\n flags &= ~(1 << which); // clear flag\n }\n }",
"public void \nsetFlag( int pFlagNumber, boolean pYesNo ) {\n if (pYesNo)\n fFlagBox = fFlagBox | (1 << pFlagNumber); \n else\n fFlagBox = fFlagBox & (~(1 << pFlagNumber));\n}",
"public void setFlags(short flag) {\n\tflags = flag;\n }",
"void setBit(int index, boolean value);",
"void setBit(int index, int value);",
"protected void setStateFlag(int flag, boolean sts) {\n\t\tif ( sts == true && (m_flags & flag) == 0)\n\t\t\tm_flags += flag;\n\t\telse if ( sts == false && (m_flags & flag) != 0)\n\t\t\tm_flags -= flag;\n\t}",
"protected void setValidatedFlag(boolean value) {\n createFlags();\n flags[VALIDATED] = value;\n }",
"public BB set(String flag)\n {\n Validate.notNull(flag,What.VARIABLE_NAME);\n return add(BAL().newSet(flag,VARIABLE,Boolean.TRUE));\n }",
"public void setFlag(short flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t}\n\t}",
"public void setRegister(int regInd, int val) {\n regs[regInd] = val;\n }",
"public void setCurrentFlag(Character aCurrentFlag) {\n currentFlag = aCurrentFlag;\n }",
"protected void setFlag(int x, int y) {\r\n \r\n if (!flag[x][y]) {\r\n \t//System.out.println(\"Auto flag set at (\" + x + \",\" + y + \")\");\r\n \tflag[x][y] = true;\r\n flagsPlaced++;\r\n }\r\n\r\n }",
"public String getRegisteredFlag()\n\t{\n\t\treturn registeredFlag;\n\t}",
"public final native void setFlags(int value) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.flags = value;\n }-*/;",
"public void setBit(int pos, int bit) {\r\n\t\tflagBits[pos] = bit;\r\n\t}",
"private void setDirty(boolean flag) {\n\tdirty = flag;\n\tmain.bSave.setEnabled(dirty);\n }",
"public synchronized static void setServiceFlag(boolean flag){\n editor.putBoolean(IS_SERVICE_RUNNING, flag);\n editor.commit();\n }",
"public void setFlag(boolean bol){\n\t\tflag = bol;\n\t}",
"public void updateFlags()\n {\n initialize();\n }",
"public void setRegister(int index, long val){\n \t\tif(index >=1 && index < 32){\n \t\t\tregFile[index].setValue(val);\n \t\t}\n \t\telse throw new Error(\"Cannot access $r\" + index);\n \t}",
"public void setFLAG(Integer FLAG) {\n this.FLAG = FLAG;\n }",
"public void setFlags(final Flags flags);",
"@Override\n\t\t\t\t\tprotected void onChangeFlag(Service object, Boolean flag) {\n\t\t\t\t\t\t\n\t\t\t\t\t}",
"public void setGenerateFlag(boolean aFlag)\r\n {\r\n if (theGenerateCheckbox != null)\r\n {\r\n if (theGenerateFlag != aFlag)\r\n {\r\n theGenerateCheckbox.doClick();\r\n theGenerateCheckbox.updateUI();\r\n }\r\n }\r\n }",
"private void setDirty(boolean flag) {\n\tmain.getState().dirty = flag;\n\tif (main.bSave != null)\n\t main.bSave.setEnabled(flag);\n }",
"default void setNeedToBeUpdated(boolean flag)\n {\n getUpdateState().update(flag);\n }",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"public void setLockFlag(Integer aLockFlag) {\n lockFlag = aLockFlag;\n }",
"public void update(Address addr, boolean validBit){\n\t\tthis.address = addr;\n\t\tthis.validBit = validBit;\n\t}",
"public void FlagupdatePatientVisit(String strVisitId, String flag) {\n\n SQLiteDatabase db = null;\n try {\n db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n\n values.put(SYCHRONIZED, flag); // Name\n\n // Inserting Row\n db.update(TABLE_PATIENT_HISTORY, values, KEY_VISIT_ID + \"=\" + strVisitId, null);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close(); // Closing database connection\n }\n }\n }",
"public void setWriteReg(){\r\n\t\twriteRegVal = read_writeReg;\r\n\t}",
"@Override\n public void setRegisterValue(Registers r, int value) {\n debugView.updateRegisterValue(r, value);\n }",
"private void setFlag(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.setFlag(short):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.setFlag(short):void\");\n }",
"public synchronized void setFlags(Flags newFlags, boolean set) throws MessagingException {\n/* 91 */ Flags oldFlags = (Flags)this.flags.clone();\n/* 92 */ super.setFlags(newFlags, set);\n/* 93 */ if (!this.flags.equals(oldFlags)) {\n/* 94 */ this.folder.notifyMessageChangedListeners(1, (Message)this);\n/* */ }\n/* */ }",
"public void changeIsFlagged() {\r\n\t\tif (this.isFlagged) {\r\n\t\t\tthis.isFlagged = false;\r\n\t\t} else {\r\n\t\t\tthis.isFlagged = true;\r\n\t\t}\r\n\t}",
"public void setState(int stateFlag) {\n\t\t_reqState = stateFlag; // Ha ha! State flag.\n\t\tif (_reqState != _state) _reload = true;\n\t}",
"public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }",
"public void initFlag(int val, int i) {\n flagVal = i;\n flag = val;\n }",
"private void setRegNum(int regNum) {\n this.regNum = regNum;\n }",
"public void setEnabled(final boolean theFlag) {\n myEnabled = theFlag;\n }",
"protected long setBit(long word, boolean flag, long position) {\n\t\tif (!flag) {\n\t\t\treturn word & (~(1L << position));\n\t\t}\n\t\treturn word | (1L << position);\n\t}",
"public void setFlags(int param1) {\n }",
"public void setFlagPosition(Integer[] flagPosition)\n {\n if (!flagLocations.contains(flagPosition) && flagPosition.length == 2)\n flagLocations.add(flagPosition);\n }",
"public void setRegisterWriteControl() {\r\n // registers.setRegWrite();\r\n //this.registerWrite.setData(1);\r\n //registers.setRegWriteControl(this.registerWrite);\r\n }",
"void setFlag(ForumFlag flag);",
"static void OPL_STATUS_SET(FM_OPL OPL, int flag) {\n /* set status flag */\n /*RECHECK*/\n OPL.status |= flag;\n if ((OPL.status & 0x80) == 0) {\n if ((OPL.status & OPL.statusmask) != 0) {\n /* IRQ on */\n\n OPL.status |= 0x80;\n /* callback user interrupt handler (IRQ is OFF to ON) */\n if (OPL.IRQHandler != null) {\n OPL.IRQHandler.handler(OPL.IRQParam, 1);\n }\n }\n }\n }",
"public void setProcessed (boolean Processed)\n{\nset_Value (\"Processed\", new Boolean(Processed));\n}",
"public void setActiveFlag(Character aActiveFlag) {\n activeFlag = aActiveFlag;\n }",
"public Builder setFlag(int value) {\n bitField0_ |= 0x00000400;\n flag_ = value;\n onChanged();\n return this;\n }",
"protected synchronized void setBooleanValue(String tag, boolean flag) {\n if (actualProperties != null) {\n if (flag) {\n actualProperties.put(tag, QVCSConstants.QVCS_YES);\n } else {\n actualProperties.put(tag, QVCSConstants.QVCS_NO);\n }\n }\n }",
"public void setEnabled(boolean aFlag) { _enabled = aFlag; }",
"protected abstract void regEvent(boolean regEvent);",
"public void setInterFlag(int index, boolean value){\r\n\t\tif (index < 0 || index >= this.interVec.length)\r\n\t\t\t;\r\n\t\telse\r\n\t\t\tthis.interVec[index] = value;\r\n\t}",
"@DISPID(12)\n\t// = 0xc. The runtime will prefer the VTID if present\n\t@VTID(22)\n\tvoid updated(boolean pVal);",
"int setCanStatus(int canRegno, int action);",
"protected void _setBooleanElement(int index, boolean value) {\n\t\tint bitOffset = Math.multiplyExact(index, this.step);\n\t\t// the number of the Bit in the byte it is in\n\t\tbyte bitnum = (byte) (bitOffset % Constants.BITS_PER_BYTE);\n\t\t// position of the byte in the data section\n\t\tint position = (this.ptr + bitOffset / Constants.BITS_PER_BYTE);\n\t\tbyte oldValue = this.segment.buffer.get(position);\n\t\t// the left side of the '|' zeros the selected bit; the right side sets the new value\n\t\tthis.segment.buffer.put(position, (byte) ((oldValue & (~(1 << bitnum))) | ((value ? 1 : 0) << bitnum)));\n\t}",
"static void OPL_STATUSMASK_SET(FM_OPL OPL, int flag) {\n OPL.statusmask = flag;\n /* IRQ handling check */\n OPL_STATUS_SET(OPL, 0);\n OPL_STATUS_RESET(OPL, 0);\n }",
"private void setFlag(Post p, String s, Boolean b) {\n p.setFlag(s, b);\n }",
"public void setUserFlags(Integer userFlags) {\r\n this.userFlags = userFlags;\r\n }",
"public void setValue(boolean value) {\n this.value = value;\n }",
"public void setRegVigente(boolean regVigente) {\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setRegVigente(boolean) - start\");\n\t\t}\n\n\t\tthis.regVigente = regVigente;\n\n\t\tif (logger.isDebugEnabled()) {\n\t\t\tlogger.debug(\"setRegVigente(boolean) - end\");\n\t\t}\n\t}",
"public void FlagUpdateObservation(String strPatientId, String flag) {\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n\n\n ContentValues values = new ContentValues();\n\n values.put(SYCHRONIZED, flag); // Name\n\n // Inserting Row\n db.update(TABLE_OBSERVATIONS, values, KEY_PATIENT_ID + \"=\" + strPatientId, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }",
"void set(boolean value);",
"void setValueLocked(boolean valueLocked);",
"public boolean setFlagAtIfIsPending(int index, byte flag) {\n final int offsetFlag = this.flagOffset + flag;\n return this.setOffsetFlagAtIfIsPending(index, offsetFlag);\n }",
"public void setCurrentInst(boolean tv){\n\t\tif (tv)\n\t\t\tcurrentInst = 1;\n\t\telse\n\t\t\tcurrentInst = 0;\n\t}",
"public void setExternallyManaged(java.lang.Boolean value);",
"private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}",
"public void mark()\n {\n mark = true;\n }",
"public void setFlags(long uid, Flags f, boolean value) throws IOException {\n BufferedWriter out = null;\n try {\n out = openCacheFile();\n out.write(Long.toString(uid));\n out.newLine();\n Flags.Flag[] systemFlags = f.getSystemFlags();\n for (int i = 0; i < systemFlags.length; i++) {\n if (systemFlags[i] == Flags.Flag.ANSWERED) {\n out.write(\"Answered\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DELETED) {\n out.write(\"Deleted\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.DRAFT) {\n out.write(\"Draft\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.FLAGGED) {\n out.write(\"Flagged\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.RECENT) {\n out.write(\"Recent\");\n out.newLine();\n } else if (systemFlags[i] == Flags.Flag.SEEN) {\n out.write(\"Seen\");\n out.newLine();\n }\n }\n String[] userFlags = f.getUserFlags();\n for (int i = 0; i < userFlags.length; i++) {\n out.write(userFlags[i]);\n out.newLine();\n }\n out.write(DONE_MSG);\n out.newLine();\n if (value) out.write(\"true\"); else out.write(\"false\");\n out.newLine();\n out.write(DONE_MSG);\n out.newLine();\n } finally {\n if (out != null) closeCacheFile(out); else lock = false;\n }\n }",
"public void registryChange() {\n registryEvent(1);\n }",
"private void setSeen(boolean value)\n\t{\n\t\tfor (int x = 0; x < width; x++)\n\t\t{\n\t\t\tfor (int y = 0; y < height; y++)\n\t\t\t{\n\t\t\t\ttiles[x][y].setSeen(value);\n\t\t\t}\n\t\t}\t\t\t\t\n\t}",
"public void setValue(boolean value) {\n this.value = value;\n }",
"public void FlagupdatePatientPersonal(String strPatientId, String flag) {\n\n SQLiteDatabase db = null;\n\n try {\n db = this.getWritableDatabase();\n\n\n ContentValues values = new ContentValues();\n\n values.put(SYCHRONIZED, flag); // Name\n\n // Inserting Row\n db.update(TABLE_PATIENT, values, KEY_PATIENT_ID + \"=\" + strPatientId, null);\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n if (db != null) {\n db.close();\n }\n }\n }",
"public void set()\r\n {\r\n isSet = true;\r\n }",
"public void set(int loc, boolean val)\n\t{\n\t\tif (loc < this.size)\n\t\t{\n\t\t\tif (val)\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] |= (1L << (loc % BITS_IN_LONG));\n\t\t\t} else\n\t\t\t{\n\t\t\t\tbits[loc / BITS_IN_LONG] &= ~(1L << (loc % BITS_IN_LONG)); // DO NOT FORGET THAT SECOND L\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t // TOOK ME FOREVER TO FIX WHEN I FORGOT\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tthrow new ArrayIndexOutOfBoundsException(\"Exception: tried to set value of BitArray that was out of bounds: \" + loc + \". Size was \" + this.size);\n\t\t}\n\t}",
"void setManualCheck (boolean value);",
"public void setUseFlag(String useFlag) {\n this.useFlag = useFlag;\n }"
] | [
"0.75361264",
"0.75361264",
"0.70416903",
"0.69425523",
"0.6752616",
"0.66948855",
"0.6616727",
"0.6615975",
"0.6578696",
"0.65738183",
"0.65057164",
"0.6471999",
"0.6439076",
"0.6399139",
"0.63978404",
"0.63715655",
"0.6369693",
"0.6327092",
"0.62882036",
"0.6282589",
"0.6281177",
"0.6221196",
"0.6104392",
"0.61035633",
"0.6095281",
"0.6066054",
"0.6065328",
"0.6035718",
"0.6023465",
"0.6016136",
"0.60065997",
"0.598546",
"0.5968533",
"0.59506345",
"0.59475356",
"0.5894339",
"0.58879447",
"0.5881656",
"0.5870942",
"0.58425194",
"0.5836285",
"0.5829878",
"0.58207303",
"0.57781595",
"0.5768048",
"0.57639164",
"0.57527184",
"0.5729502",
"0.5729502",
"0.5729502",
"0.5703838",
"0.5699687",
"0.5681316",
"0.5669002",
"0.56628144",
"0.56570274",
"0.56568235",
"0.5646973",
"0.5631915",
"0.5631915",
"0.5627613",
"0.56273866",
"0.5616448",
"0.56084794",
"0.5589844",
"0.55833435",
"0.5573929",
"0.55731016",
"0.55715716",
"0.55698764",
"0.5559393",
"0.55566424",
"0.55429316",
"0.55351675",
"0.5532968",
"0.55153877",
"0.5505574",
"0.55026424",
"0.55001146",
"0.5496438",
"0.54690343",
"0.54668254",
"0.54623",
"0.54597783",
"0.54553115",
"0.5450411",
"0.5439007",
"0.5438872",
"0.54141283",
"0.5412124",
"0.5405938",
"0.539213",
"0.53879464",
"0.53845495",
"0.5382171",
"0.5375266",
"0.536939",
"0.5360764",
"0.5354311",
"0.53535384"
] | 0.7754926 | 0 |
Gets the value of registeredFlag | public String getRegisteredFlag()
{
return registeredFlag;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getFlag();",
"public boolean get(Flag flag) {\n return bits.get(flag.getId());\n }",
"public int getFlag()\n {\n return flag;\n }",
"public Integer getFLAG() {\n return FLAG;\n }",
"@Override\n public int getFlag() {\n return flag_;\n }",
"public Boolean getFlag() {\n return flag;\n }",
"@Override\n public int getFlag() {\n return flag_;\n }",
"public boolean getFlag(){\n\t\treturn flag;\n\t}",
"public boolean getFlag() {\n\t\treturn flag;\n\t}",
"public RecordFlagEnum getFlag();",
"public boolean \ngetFlag( int pFlagNumber ) {\n return ( (fFlagBox & (1 << pFlagNumber)) != 0 );\n}",
"public void setRegisteredFlag(String registeredFlag)\n\t{\n\t\tthis.registeredFlag = registeredFlag;\n\t}",
"public boolean getFlag() {\r\n\t\treturn (value.getInt() != 0);\r\n\t}",
"public String getFlaginfo() {\n return flaginfo;\n }",
"public String getIsFlag() {\r\n return isFlag;\r\n }",
"public long getFlags() {\n }",
"public short getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t} else {\n\t\t\treturn __io__block.readShort(__io__address + 6);\n\t\t}\n\t}",
"public int getBit() {\r\n return _bit;\r\n }",
"String getFlag() {\n return String.format(\"-T%d\", this.value);\n }",
"public int getFlags() {\n Object value = library.getObject(entries, FLAGS);\n if (value instanceof Number) {\n return ((Number) value).intValue();\n }\n return 0;\n }",
"public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 20);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 12);\n\t\t}\n\t}",
"public int getValue()\n\t{\n\t\treturn bitHolder.getValue();\n\t}",
"public int getFlag() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t} else {\n\t\t\treturn __io__block.readInt(__io__address + 4);\n\t\t}\n\t}",
"public int getFlagsNumber ()\r\n {\r\n return flagsNumber;\r\n }",
"public String getCheckFlag() {\r\n return checkFlag;\r\n }",
"public String getUseFlag() {\n return useFlag;\n }",
"public String getCheckFlag() {\n return checkFlag;\n }",
"int getFlagImage() {\n return this.flagImage;\n }",
"long getFlags();",
"public Integer getUserFlags() {\r\n return userFlags;\r\n }",
"boolean hasFlag();",
"public PanelMemory getFlagManager() {\n return this.registerManager;\n }",
"public String getValidflag() {\n return validflag;\n }",
"public String getValidflag() {\n return validflag;\n }",
"public String getValidflag() {\n\t\treturn validflag;\n\t}",
"public int getBit(int pos) {\r\n\t\treturn flagBits[pos];\r\n\t\t\r\n\t}",
"protected abstract T getNormalFlagValue();",
"public int getFlags();",
"public int getFlags();",
"public String getOutputFlag();",
"public Character getCurrentFlag() {\n return currentFlag;\n }",
"@Override\n\tpublic short getFlag() {\n\t\treturn FLAG_MESSAGE_PHONE_CURRENT_PLAYER_COUNT;\n\t}",
"public int getFlags() {\n return flags;\n }",
"public String getStolenFlag()\n\t{\n\t\treturn stolenFlag;\n\t}",
"public int getReg() {\n\t\treturn -1;\n\t}",
"String getSpareFlag();",
"int getIntFromBitFlag(int flag) {\r\n\t\tswitch (flag) {\r\n\t\tcase 1:\r\n\t\t\treturn 1;\r\n\t\tcase 2:\r\n\t\t\treturn 2;\r\n\t\tcase 3:\r\n\t\t\treturn 4;\r\n\t\tcase 4:\r\n\t\t\treturn 8;\r\n\t\tcase 5:\r\n\t\t\treturn 16;\r\n\t\tcase 6:\r\n\t\t\treturn 32;\r\n\t\tcase 7:\r\n\t\t\treturn 64;\r\n\t\tcase 8:\r\n\t\t\treturn 128;\r\n\t\t\tdefault:\r\n\t\t\t\tSystem.out.println(\"No flag specified in BaseRobot.getIntFromBitFlag\");\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"public short getFlags() {\n\treturn flags;\n }",
"public Boolean getRegistered() {\n return registered;\n }",
"@Override\n\tpublic int getFlags() {\n\t\treturn heldObj.getFlags();\n\t}",
"public int getRegNum() {\n return regNum;\n }",
"public String getFlags() {\r\n \t\treturn flags;\r\n \t}",
"public String getLocalFlag() {\n return (String)getAttributeInternal(LOCALFLAG);\n }",
"boolean getValue();",
"public @Flags int getFlags() {\n return mFlags;\n }",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public Integer getLockFlag() {\n return lockFlag;\n }",
"public static void registerFlag() {\n if (!enabled())\n return;\n\n WorldGuardFlagHook.registerFlag();\n }",
"public Boolean getActiveFlag() {\n\t\treturn activeFlag;\n\t}",
"public boolean getValue() {\r\n\t\treturn this.value;\r\n\t}",
"public String getActiveflag() {\n return (String)getAttributeInternal(ACTIVEFLAG);\n }",
"public String getActiveFlag() {\n return (String) getAttributeInternal(ACTIVEFLAG);\n }",
"ForumFlag getFlag();",
"@Override\n\tpublic boolean hasFlag(BitFlag flag) {\n\t\treturn heldObj.hasFlag(flag);\n\t}",
"public Boolean getActiveflag() {\n return activeflag;\n }",
"public boolean getValue();",
"public Byte getModFlag() {\n return modFlag;\n }",
"public Byte getShowFlag() {\n return showFlag;\n }",
"public Boolean getValue() {\n\t\treturn b;\n\t}",
"public boolean getFlag(int which) {\n return (flags & (1 << which)) != 0;\n }",
"public abstract int flags();",
"public int getRawFlag() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"0811c831-ddd9-4df1-b31c-c5d631e39389\");\n return rawFlag;\n }",
"public static int getBit(boolean value) {\n return value ? Constants.BIT_TRUE : Constants.BIT_FALSE;\n }",
"boolean get();",
"public int getTrueValue()\n {\n\t// Local constants\n\n\t// Local variables\n\n\t/************ Start getTrueValue Method ***************/\n\n // Return true value\n return trueValue;\n\n }",
"public Integer getCorrectflag() {\n return correctflag;\n }",
"public org.apache.axis.types.UnsignedInt getFlags() {\n return flags;\n }",
"char parseFlag(String rawFlag) {\n return parseFlags(rawFlag)[0];\n }",
"private static int getFlagValue (Shape shape)\r\n {\r\n switch (shape) {\r\n case FLAG_1:\r\n case FLAG_1_UP:\r\n return 1;\r\n\r\n case FLAG_2:\r\n case FLAG_2_UP:\r\n return 2;\r\n\r\n case FLAG_3:\r\n case FLAG_3_UP:\r\n return 3;\r\n\r\n case FLAG_4:\r\n case FLAG_4_UP:\r\n return 4;\r\n\r\n case FLAG_5:\r\n case FLAG_5_UP:\r\n return 5;\r\n }\r\n\r\n logger.error(\"Illegal flag shape: {}\", shape);\r\n\r\n return 0;\r\n }",
"public String getLocalFlag() {\n return (String) getAttributeInternal(LOCALFLAG);\n }",
"public Integer getdocverificationflag() {\n return (Integer) getAttributeInternal(DOCVERIFICATIONFLAG);\n }",
"protected boolean getValidatedFlag() {\n createFlags();\n return flags[VALIDATED];\n }",
"public int getRequiredRegister()\n\t{\n\t\treturn requiredRegister;\n\t}",
"public int getFlags() {\n return ByteUtils.toUnsignedShort(flags);\n }",
"IntsRef getFlags();",
"public Boolean getValue() {\n return this.value;\n }",
"public Boolean getValue() {\n return this.value;\n }",
"public Boolean getValue() {\n return this.value;\n }",
"public int getRegister(int regInd) {\n return regs[regInd];\n }",
"public Integer getDefaultFlag() {\n return defaultFlag;\n }",
"int getFeatureValue();",
"public String getFeatureFlagString() {\n return featureFlagString;\n }",
"boolean isSet(int flag)\n {\n return (waitFlags & flag) != 0;\n }",
"public String getSignFlag() {\n return signFlag;\n }",
"public boolean accessRegister(){\n\t\treturn accessRegister;\n\t}",
"public String getEnableFlag() {\n\t\treturn enableFlag;\n\t}",
"public byte[] getFlags() {\n return flags;\n }",
"public boolean isFlagged();",
"public void setFlag(Integer flag) { this.flag = flag; }"
] | [
"0.73389494",
"0.72672904",
"0.72323716",
"0.68831503",
"0.6775475",
"0.67560005",
"0.67131084",
"0.66995895",
"0.66951287",
"0.66352826",
"0.6483883",
"0.6443272",
"0.640063",
"0.6382491",
"0.6324652",
"0.6317541",
"0.6262753",
"0.62386984",
"0.6219379",
"0.62093216",
"0.6191813",
"0.6191168",
"0.61777407",
"0.61511946",
"0.6138274",
"0.6138123",
"0.6092584",
"0.6076062",
"0.6075852",
"0.60731894",
"0.60690075",
"0.6046767",
"0.6039051",
"0.6039051",
"0.60318655",
"0.59927726",
"0.59750116",
"0.597274",
"0.597274",
"0.5965175",
"0.5958786",
"0.5949963",
"0.594004",
"0.5939972",
"0.59211266",
"0.5887851",
"0.5884462",
"0.5879712",
"0.5868178",
"0.58325446",
"0.5822133",
"0.58139694",
"0.5807921",
"0.57992756",
"0.5786183",
"0.57859766",
"0.57859766",
"0.57859766",
"0.57839215",
"0.57828134",
"0.57689875",
"0.57679206",
"0.57570344",
"0.5756362",
"0.5753198",
"0.57238823",
"0.57184917",
"0.5706814",
"0.5704317",
"0.5683912",
"0.5638175",
"0.5636473",
"0.562937",
"0.5627604",
"0.5620376",
"0.5610793",
"0.5608975",
"0.5607562",
"0.5593274",
"0.5589552",
"0.55781895",
"0.5576117",
"0.55622166",
"0.55475056",
"0.554324",
"0.55413693",
"0.5533707",
"0.5533707",
"0.5533707",
"0.55320495",
"0.5524075",
"0.5520756",
"0.5514368",
"0.55092496",
"0.54983497",
"0.5479982",
"0.5447947",
"0.54469925",
"0.5441491",
"0.5433255"
] | 0.8078875 | 0 |
Sets the value of crudMethod | public void setCrudMethod(String crudMethod)
{
this.crudMethod = crudMethod;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getCrudMethod()\n\t{\n\t\treturn crudMethod;\n\t}",
"public void setMethod(HTTPMethod method);",
"void setMethod(org.hl7.fhir.CodeableConcept method);",
"@Test\n\tpublic void testMethodCRUDConfig() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\tfinal IntrospectionFullType queryType = getFullType(introspection, schemaConfig.getQueryTypeName());\n\t\tfinal IntrospectionFullType mutationType = getFullType(introspection, schemaConfig.getMutationTypeName());\n\t\tfinal String saveMethodName = schemaConfig.getMutationSavePrefix() + Entity7.class.getSimpleName();\n\t\tfinal String deleteMethodName = schemaConfig.getMutationDeletePrefix() + Entity8.class.getSimpleName();\n\t\tfinal String getByIdMethodName = schemaConfig.getQueryGetByIdPrefix() + Entity9.class.getSimpleName();\n\t\tfinal String getAllMethodName = schemaConfig.getQueryGetListPrefix() + Entity9.class.getSimpleName();\n\t\tfinal Optional<IntrospectionTypeField> optionalSaveMethod = getOptionalField(mutationType, saveMethodName);\n\t\tfinal Optional<IntrospectionTypeField> optionalDeleteMethod = getOptionalField(mutationType, deleteMethodName);\n\t\tfinal Optional<IntrospectionTypeField> optionalGetByIdMethod = getOptionalField(queryType, getByIdMethodName);\n\t\tfinal Optional<IntrospectionTypeField> optionalGetAllMethod = getOptionalField(queryType, getAllMethodName);\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", saveMethodName),\n\t\t\t\toptionalSaveMethod.isPresent());\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", deleteMethodName),\n\t\t\t\toptionalDeleteMethod.isPresent());\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", getByIdMethodName),\n\t\t\t\toptionalGetByIdMethod.isPresent());\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", getAllMethodName),\n\t\t\t\toptionalGetAllMethod.isPresent());\n\t}",
"@IcalProperty(pindex = PropertyInfoIndex.SCHEDULE_METHOD,\n jname = \"scheduleMethod\",\n eventProperty = true,\n todoProperty = true)\n public void setScheduleMethod(final int val) {\n scheduleMethod = val;\n }",
"public void setMethod(String method)\r\n {\r\n routing_method=method;\r\n }",
"public void setMethod(String method) {\r\n this.method = method;\r\n }",
"private void setControlsForMethodType ( String methodType ) {\n \t\tif (getCurrentTestType().equalsIgnoreCase(JAX_RS) &&\n \t\t\t\t(methodType.equalsIgnoreCase(GET) ||\n \t\t\t\t methodType.equalsIgnoreCase(OPTIONS))) {\n \t\t\tbodyText.setEnabled(false);\n \t\t\ttreeRequestBody.getTree().setEnabled(false);\n \t\t} else {\n \t\t\tbodyText.setEnabled(true);\n \t\t\ttreeRequestBody.getTree().setEnabled(true);\n \t\t}\n \t}",
"ResourceMethod getMethodType();",
"public void setReqMethod(java.lang.String value) {\n this.req_method = value;\n }",
"public void setMethod(String newValue);",
"public void setMethod(Method method) {\n this.method = method;\n }",
"org.hl7.fhir.CodeableConcept addNewMethod();",
"public void setId_serviceMethod(int id_serviceMethod) {\r\n\t\tthis.id_serviceMethod = id_serviceMethod;\r\n\t}",
"public synchronized void setMethod(int whatMethod) {\n method = whatMethod;\n }",
"private void populateMethod(UIBean uiBean) {\r\n String methodName;\r\n if (method != null) {\r\n methodName = eval.evaluateExpression(method);\r\n } else {\r\n methodName = DEFAULT_METHOD;\r\n }\r\n uiBean.addParameter(\"method\", methodName);\r\n }",
"public io.confluent.developer.InterceptTest.Builder setReqMethod(java.lang.String value) {\n validate(fields()[6], value);\n this.req_method = value;\n fieldSetFlags()[6] = true;\n return this;\n }",
"@Override\n\t public void setCrudFlag(CrudFlag flag) {\n\t super.setCrudFlag(flag);\n\t }",
"@SuppressWarnings(\"hiding\")\n @Override\n public void setMethod(String method) {\n this.method = method;\n }",
"public RestUtils setMethodDelete()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.DELETE);\n\t\treturn this;\n\t}",
"public void setSolvingMethodType(String solvingMethodType)\n/* */ {\n/* 195 */ this.solvingMethodType = solvingMethodType;\n/* */ }",
"public void setMethod(String method) {\n this.method = method == null ? null : method.trim();\n }",
"public void setMethod(String method) {\n this.method = method == null ? null : method.trim();\n }",
"public void manageCuratorBadge(AppUser user, CrudMethod crudMethod) {\n switch (crudMethod) {\n case CREATE:\n// user.setCuratorBadge();\n break;\n case DELETE:\n// user.removeCuratorBadge();\n break;\n }\n }",
"protected void setWriteMethod(Enum callingMethod)\n\t{\n//\t\tCrashlytics.setString(\"WriteMethod\", callingMethod.toString());\n\t\tmCallingMethod = callingMethod;\n\t}",
"private void mappingMethodSet() throws SecurityException, NoSuchMethodException{\n\t\tString aux = upFirstLetter();\n\t\tString methodSet = \"set\" + aux;\n\t\tthis.methodSet = this.classFather.getMethod(methodSet, this.classType);\n\t}",
"private String getSetMethodName() {\n assert name != null;\n return \"set\" + upperFirstChar(name);\n }",
"public void setMethod(java.lang.reflect.Method method)\n {\n __m_Method = method;\n }",
"public void setRequestMethod(String requestMethod){\n this.requestMethod = requestMethod;\n }",
"public QueryMethodType<T> setMethodName(String methodName)\n {\n childNode.getOrCreate(\"method-name\").text(methodName);\n return this;\n }",
"public RestUtils setMethodPut()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.PUT);\n\t\treturn this;\n\t}",
"protected abstract BeanCRUDService<BeanType> getBeanCRUDService();",
"public void setRequestMethod(int requestMethod) {\n this.requestMethod = requestMethod;\n }",
"public int getId_serviceMethod() {\r\n\t\treturn id_serviceMethod;\r\n\t}",
"public void setPayMethod(String value) {\n this.payMethod = value;\n }",
"public Builder setMethodName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n methodName_ = value;\n onChanged();\n return this;\n }",
"public Builder setMethodName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n methodName_ = value;\n onChanged();\n return this;\n }",
"public RestUtils setMethodGet()\n\t{\n\t\trestMethodDef.setHttpMethodPost(false);\n\t\treturn this;\n\t}",
"public Builder setMethodValue(int value) {\n method_ = value;\n onChanged();\n return this;\n }",
"public void setExecMethod(final String execMethod)\n {\n this.execMethod = execMethod.toUpperCase();\n }",
"public void setEvaluationMethodType(final EvaluationMethodType newValue) {\n checkWritePermission(evaluationMethodType);\n evaluationMethodType = newValue;\n }",
"public void setRmTable(Rooms value);",
"public String getCreateMethod() {\n\t\treturn createMethod;\n\t}",
"public void setOpcmethod(java.lang.Long value) {\n\t\tsetValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCMETHOD, value);\n\t}",
"public RestUtils setMethodPost()\n\t{\n\t\trestMethodDef.setHttpMethodPost(true);\n\t\treturn this;\n\t}",
"public void setInitMethod(Method initMethod) {\n this.initMethod = initMethod;\n }",
"public void setStatic(boolean staticMethod) {\n this.staticMethod = staticMethod;\n }",
"public int getMethod(){\n return method;\n }",
"public void setMethode(int m) {\r\n\t\tthis.methode = m;\r\n\t}",
"@Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{id}\")\n /* CRUD COMMENT: END */\n /* CRUD: BEGIN\n @Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{${table.primaryKeyPath}}\")\n CRUD: END */\n public String editpage() {\n if (crudTableForm.crudMode != CommonConstants.EDIT_MODE) {\n throw new ActionMessagesException(\"errors.crud_invalid_mode\",\n new Object[] { CommonConstants.EDIT_MODE,\n crudTableForm.crudMode });\n }\n \n loadCrudTable();\n \n return \"edit.jsp\";\n }",
"@Test\n public void testSetTipoLicencia() {\n System.out.println(\"setTipoLicencia\");\n String tipoLicencia = \"\";\n Conductor instance = null;\n instance.setTipoLicencia(tipoLicencia);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }",
"MethodType getMethodType();",
"public PortComponentType<T> setAuthMethod(String authMethod)\n {\n childNode.getOrCreate(\"auth-method\").text(authMethod);\n return this;\n }",
"public TestModelFacade3(Method method) {\n super(method.toString());\n methodToTest = method;\n }",
"public abstract void setCrcdReimbTypeCd(String crcdReimbTypeCd);",
"public String getSetter() {\n return \"set\" + getCapName();\n }",
"void setPaymentMethod(PaymentMethod paymentMethod);",
"@Override\n\tpublic void methodInit(String id, IMethodEnvironmentData envData,IMethodConfig config) {\n\t\t\n\t}",
"DevelopmentMethod getRelatedMethod();",
"public void selectMethod(VersatileMLDataSet dataset, String methodType) {\n\t\tif (!this.methodConfigurations.containsKey(methodType)) {\n\t\t\tthrow new EncogError(\"Don't know how to autoconfig method: \"\n\t\t\t\t\t+ methodType);\n\t\t}\n\n\t\tthis.config = this.methodConfigurations.get(methodType);\n\t\tthis.methodType = methodType;\n\t\tthis.methodArgs = this.config.suggestModelArchitecture(dataset);\n\t\tdataset.getNormHelper().setStrategy(\n\t\t\t\tthis.config.suggestNormalizationStrategy(dataset, methodArgs));\n\n\t}",
"public Builder setMethodName(java.lang.String value) {\r\n\t\t\t\tif (value == null) {\r\n\t\t\t\t\tthrow new NullPointerException();\r\n\t\t\t\t}\r\n\t\t\t\tbitField0_ |= 0x00000001;\r\n\t\t\t\tmethodName_ = value;\r\n\t\t\t\tonChanged();\r\n\t\t\t\treturn this;\r\n\t\t\t}",
"public void setSelectSetMethod(String name) {\n m_selectSetMethod = name;\n }",
"public MethodBuilder type(String type) {\n\t\tthis.type = type;\n\t\treturn this;\n\t}",
"public void setSetMethodName(String name) {\n m_setMethodName = name;\n }",
"public abstract BaseQuantityDt setCode(String theCode);",
"private void setRequestMethod() {\n switch (type) {\n case GET:\n try {\n connection.setRequestMethod(GET);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as GET successfully\");\n LOG.severe(e.toString());\n }\n break;\n case POST:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(POST);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as POST successfully\");\n LOG.severe(e.toString());\n }\n break;\n case PUT:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(PUT);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as PUT successfully\");\n LOG.severe(e.toString());\n }\n break;\n case DELETE:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(DELETE);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as DELETE successfully\");\n LOG.severe(e.toString());\n }\n break;\n case PATCH:\n try {\n connection.setDoOutput(true);\n connection.setRequestMethod(PATCH);\n } catch (ProtocolException e) {\n LOG.severe(\"Could not set request as PATCH successfully\");\n LOG.severe(e.toString());\n }\n break;\n }\n }",
"@Test\n public void testSetEditable() {\n writeBanner(getMethodName());\n }",
"@Override\n public boolean modelSetterMethodGenerated(Method method,\n TopLevelClass topLevelClass,\n IntrospectedColumn introspectedColumn,\n IntrospectedTable introspectedTable,\n ModelClassType modelClassType) {\n return false;\n }",
"public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }",
"public void setRadiologyOrderID(java.lang.String param){\n \n this.localRadiologyOrderID=param;\n \n\n }",
"@Override\n\t\tpublic String getMethod() {\n\t\t\treturn null;\n\t\t}",
"public void setMethodName(@NotNull String newMethodName) {\n myMethodName = newMethodName;\n }",
"public crud_empleados() {\n initComponents();\n txt_usuario1.setEditable(false);\n Mostrar();\n \n\n\n }",
"protected Method getMethod() {\n return method;\n }",
"public void setOperation (String Operation);",
"@Override\n\t public CrudFlag getCrudFlag() {\n // Check if CRUDFlag is null, if so return NONE enumeration\n if (super.getCrudFlag() == null) {\n return CrudFlag.NONE;\n }\n return super.getCrudFlag();\n\t }",
"public void setRelocationMethod(Relocation r){\n relocationType = r;\n }",
"public void setUniqueFactoryMethodName(String name)\n/* */ {\n/* 276 */ Assert.hasText(name, \"Factory method name must not be empty\");\n/* 277 */ setFactoryMethodName(name);\n/* 278 */ this.isFactoryMethodUnique = true;\n/* */ }",
"public void editOperation() {\n\t\t\r\n\t}",
"protected ForStaticMethod(Method method) {\n this.method = method;\n }",
"public CrudBook() {\n initComponents();\n loadTable();\n btnAdd.setEnabled(true);\n btnDelete.setEnabled(false);\n btnModify.setEnabled(false);\n }",
"public void setRadiologyOrderIDForPayment(java.lang.String param){\n \n this.localRadiologyOrderIDForPayment=param;\n \n\n }",
"public void setR_RequestType_ID (int R_RequestType_ID);",
"public StacLink method(String method) {\n this.method = method;\n return this;\n }",
"@Override\n public String getMethod() {\n return METHOD_NAME;\n }",
"void setRecensione(String recensione);",
"public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }",
"public static void setSortCriteria(String method)\n \t{\n \t\tsortCriteria = method;\n \t}",
"@FXML\n void setBtnEditOnClick() {\n isEdit = true;\n isAdd = false;\n isDelete = false;\n }",
"public String addMember()//value=\"addmember\", method=RequestMethod.)\n\t{\n\t\treturn \"addmember\";\n\t}",
"public void setTipo(String tipo);",
"public void setHttpMethod(int httpMethod) {\n method = httpMethod;\n }",
"boolean isSetMethod();",
"protected void setAttrInvokeAccessor(int index, Object value, \n AttributeDefImpl attrDef) throws Exception {\n switch (index) {\n case INVOICESTATUS:\n setInvoiceStatus((String)value);\n return;\n case CHECKBOX:\n setCheckBox((Boolean)value);\n return;\n default:\n super.setAttrInvokeAccessor(index, value, attrDef);\n return;\n }\n }",
"void updateMethod(Method method);",
"public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}",
"public void changeMethodType(String className, String methodName, String newMethodType)\n\t{\n\t\tstoreViewState();\n\t\tproject.changeMethodType(className, methodName, newMethodType);\n\t\tcheckStatus();\n\t}",
"public void changeMode() {\n methodMode = !methodMode;\n }",
"public String getMethod ()\n {\n return method;\n }",
"@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }"
] | [
"0.72625154",
"0.5781236",
"0.57681143",
"0.57511747",
"0.574267",
"0.5726415",
"0.5687029",
"0.5641827",
"0.5606127",
"0.5596152",
"0.5588459",
"0.5556142",
"0.54617065",
"0.5455317",
"0.5420227",
"0.5320752",
"0.5266627",
"0.52598643",
"0.524675",
"0.52301955",
"0.5173106",
"0.5167034",
"0.5167034",
"0.51534027",
"0.5152097",
"0.51460546",
"0.5117521",
"0.50964934",
"0.50726277",
"0.5072304",
"0.5068812",
"0.50511926",
"0.50059754",
"0.49763554",
"0.49585912",
"0.49442357",
"0.49442357",
"0.49393135",
"0.49379238",
"0.4930973",
"0.49276954",
"0.488914",
"0.48789182",
"0.48525372",
"0.48431373",
"0.48324913",
"0.483121",
"0.48232567",
"0.48200765",
"0.48180345",
"0.48069918",
"0.47933057",
"0.4788462",
"0.47832945",
"0.47828636",
"0.4776125",
"0.47720358",
"0.47608346",
"0.47594717",
"0.4756791",
"0.47548887",
"0.47432297",
"0.4734755",
"0.4726398",
"0.4723014",
"0.47203127",
"0.47184265",
"0.47184157",
"0.4708017",
"0.4708017",
"0.46877462",
"0.4682262",
"0.4677244",
"0.46762687",
"0.46761656",
"0.4667213",
"0.46649742",
"0.46596432",
"0.46548292",
"0.465475",
"0.46515742",
"0.46451852",
"0.464268",
"0.4641339",
"0.4639541",
"0.4633955",
"0.46157286",
"0.46133173",
"0.46029162",
"0.46018124",
"0.45959",
"0.45941162",
"0.45929116",
"0.4588519",
"0.45874333",
"0.45873386",
"0.45845684",
"0.45816144",
"0.4567691",
"0.4562921"
] | 0.8309375 | 0 |
Gets the value of crudMethod | public String getCrudMethod()
{
return crudMethod;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setCrudMethod(String crudMethod)\n\t{\n\t\tthis.crudMethod = crudMethod;\n\t}",
"ResourceMethod getMethodType();",
"private String getGetMethodName() {\n assert name != null;\n if (field != null && (field.getType() == Boolean.class\n || \"boolean\".equals(field.getType().getName()))) {\n return \"is\" + upperFirstChar(name);\n }\n return \"get\" + upperFirstChar(name);\n }",
"public int getMethod(){\n return method;\n }",
"@Override\n\tpublic String[] getCrudName() {\n\t\treturn um.getCrudName();\n\t}",
"public String getMethod ()\n {\n return method;\n }",
"DevelopmentMethod getRelatedMethod();",
"public StrColumn getMethod() {\n return delegate.getColumn(\"method\", DelegatingStrColumn::new);\n }",
"public String getCreateMethod() {\n\t\treturn createMethod;\n\t}",
"public int getId_serviceMethod() {\r\n\t\treturn id_serviceMethod;\r\n\t}",
"protected Method getMethod() {\n return method;\n }",
"@Test\n\tpublic void testMethodCRUDConfig() {\n\t\tfinal IntrospectionResult introspection = getIntrospection();\n\t\tfinal IntrospectionFullType queryType = getFullType(introspection, schemaConfig.getQueryTypeName());\n\t\tfinal IntrospectionFullType mutationType = getFullType(introspection, schemaConfig.getMutationTypeName());\n\t\tfinal String saveMethodName = schemaConfig.getMutationSavePrefix() + Entity7.class.getSimpleName();\n\t\tfinal String deleteMethodName = schemaConfig.getMutationDeletePrefix() + Entity8.class.getSimpleName();\n\t\tfinal String getByIdMethodName = schemaConfig.getQueryGetByIdPrefix() + Entity9.class.getSimpleName();\n\t\tfinal String getAllMethodName = schemaConfig.getQueryGetListPrefix() + Entity9.class.getSimpleName();\n\t\tfinal Optional<IntrospectionTypeField> optionalSaveMethod = getOptionalField(mutationType, saveMethodName);\n\t\tfinal Optional<IntrospectionTypeField> optionalDeleteMethod = getOptionalField(mutationType, deleteMethodName);\n\t\tfinal Optional<IntrospectionTypeField> optionalGetByIdMethod = getOptionalField(queryType, getByIdMethodName);\n\t\tfinal Optional<IntrospectionTypeField> optionalGetAllMethod = getOptionalField(queryType, getAllMethodName);\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", saveMethodName),\n\t\t\t\toptionalSaveMethod.isPresent());\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", deleteMethodName),\n\t\t\t\toptionalDeleteMethod.isPresent());\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", getByIdMethodName),\n\t\t\t\toptionalGetByIdMethod.isPresent());\n\t\tAssert.assertFalse(Message.format(\"There shouldn't be a [{}] method.\", getAllMethodName),\n\t\t\t\toptionalGetAllMethod.isPresent());\n\t}",
"public String getMethod() {\n\n return this.method;\n }",
"public Method getMethod () {\n\t\treturn method;\n\t}",
"public String getMethod() {\n\t\treturn getParameter(\"method\");\n\t}",
"public String getMethod() {\n return method;\n }",
"public String getMethod() {\n return method;\n }",
"public String getMethod() {\n return method;\n }",
"public Method getMethod() {\n return method;\n }",
"public Method getMethod() {\n return method;\n }",
"protected abstract BeanCRUDService<BeanType> getBeanCRUDService();",
"@Override\n public String getMethod() {\n return METHOD_NAME;\n }",
"public Method getMethod() {\n\t\treturn method;\n\t}",
"public String getMethod() {\n\t\treturn method;\n\t}",
"private String getName() {\n return method.getName();\n }",
"String getMethod();",
"String getMethod();",
"MethodType getMethodType();",
"@Override\n\t public CrudFlag getCrudFlag() {\n // Check if CRUDFlag is null, if so return NONE enumeration\n if (super.getCrudFlag() == null) {\n return CrudFlag.NONE;\n }\n return super.getCrudFlag();\n\t }",
"public Method getActionMethod() {\n return this.method;\n }",
"public java.lang.String getReqMethod() {\n return req_method;\n }",
"io.opencannabis.schema.commerce.Payments.PaymentMethod getMethod();",
"public Method getReadMethod() { // basically unused in DBFlute, use gateway instead\n return _readMethod;\n }",
"public String getApiMethod() {\n return apiMethod;\n }",
"public String getMethod() {\n\t\t\treturn method;\n\t\t}",
"public int getMethodValue() {\n return method_;\n }",
"public int getScheduleMethod() {\n return scheduleMethod;\n }",
"public String getMethodName() {\r\n return _methodName;\r\n }",
"public Method getMethod() {\n return mMethod;\n }",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"public Method method() {\n return method;\n }",
"public java.lang.String getReqMethod() {\n return req_method;\n }",
"public int getMethodValue() {\n return method_;\n }",
"public InputMethod getMethod() {\n return method;\n }",
"public String getGetter() {\n return \"get\" + getCapName();\n }",
"public String getMethodName() {\n return methodName;\n }",
"public String getMethodName() {\n return methodName;\n }",
"public abstract jq_Method getDefiningMethod();",
"public String field() {\n\t\treturn \"_\"+methodBase();\n\t}",
"String getMethodName();",
"String getMethodName();",
"public String getMethod()\n {\n if (averageRating == null) {\n return \"\";\n } else {\n return averageRating.getMethod();\n }\n }",
"@JsonIgnore\n public java.lang.reflect.Method getMethod() {\n return this.method;\n }",
"@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }",
"@Nullable @NotEmpty public String getMethod() {\n return StringSupport.trimOrNull(method);\n }",
"protected ResourceMethod getMethod( int theMethodIndex ) {\r\n\t\tConditions.checkParameter( theMethodIndex >= 0 && theMethodIndex < methods.length, \"theMethodIndex\", \"The specific method index is not within range.\" );\r\n\t\t\r\n\t\treturn methods[ theMethodIndex ];\r\n\t}",
"ValuationMethod getValuationMethod();",
"@Override\n public String getMethodName() {\n return null;\n }",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"java.lang.String getMethodName();",
"public Method getGetter() {\n return this.getter;\n }",
"public Method getMethod();",
"@Override\n\t\tpublic String getMethod() {\n\t\t\treturn null;\n\t\t}",
"public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}",
"public abstract RlcpMethod getMethod();",
"public String getRequestMethod(){\n return this.requestMethod;\n }",
"public Method getMethod() {\n\t\treturn this.currentAction.getMethod();\n\t}",
"public String getMethodName() {\n\t\treturn this.methodName;\n\t}",
"public String getMethodName() {\n\t\treturn this.methodName;\n\t}",
"org.hl7.fhir.CodeableConcept getMethod();",
"@Override\n\tpublic String getType() {\n\t\treturn Global.GET;\n\t}",
"@Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{id}\")\n /* CRUD COMMENT: END */\n /* CRUD: BEGIN\n @Execute(validator = true, input = \"error.jsp\", urlPattern = \"editpage/{crudMode}/{${table.primaryKeyPath}}\")\n CRUD: END */\n public String editpage() {\n if (crudTableForm.crudMode != CommonConstants.EDIT_MODE) {\n throw new ActionMessagesException(\"errors.crud_invalid_mode\",\n new Object[] { CommonConstants.EDIT_MODE,\n crudTableForm.crudMode });\n }\n \n loadCrudTable();\n \n return \"edit.jsp\";\n }",
"public abstract String getCrcdReimbTypeCd();",
"int getMethodValue();",
"public java.lang.Long getOpcmethod() {\n\t\treturn getValue(test.generated.pg_catalog.tables.PgOpclass.PG_OPCLASS.OPCMETHOD);\n\t}",
"protected abstract MethodDescription accessorMethod();",
"public String getName() {\n return nameRule.getMethodName();\n }",
"public String getGetMethodName() {\n return m_getMethodName;\n }",
"public Method getWriteMethod() { // basically unused in DBFlute, use gateway instead\n return _writeMethod;\n }",
"public String getMethodName() {\n\t\treturn methodName;\n\t}",
"public int getR_RequestType_ID();",
"public final Method getFactoryMethod() {\n\treturn factoryMethod;\n }",
"public String getTipo();",
"public String getTipo();",
"public synchronized Method getReadMethod(Class<?> currEntity) {\n\t\tMethod readMethod;\n\t\tString readMethodName = null;\n\t\tif (propType == boolean.class || propType == null) {\n\t\t\treadMethodName = \"is\" + baseName;\n\t\t} else {\n\t\t\treadMethodName = \"get\" + baseName;\n\t\t}\n\t\tClass<?> classStart = currEntity;\n\t\tif (classStart == null) {\n\t\t\tclassStart = entityType;\n\t\t}\n\t\treadMethod = findMemberMethod(classStart, readMethodName, 0, null);\n\t\tif (readMethod == null && readMethodName.startsWith(\"is\")) {\n\t\t\treadMethodName = \"get\" + baseName;\n\t\t\treadMethod = findMemberMethod(classStart, readMethodName, 0, null);\n\t\t}\n\t\tif (readMethod != null) {\n\t\t\tint mf = readMethod.getModifiers();\n\t\t\tif (!Modifier.isPublic(mf)) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tClass<?> retType = readMethod.getReturnType();\n\t\t\tif (!propType.isAssignableFrom(retType)) {\n\t\t\t\tlogger.warn(\"return type unmatch for get Method and property! : \"\n\t\t\t\t\t\t+ classStart.getName() + \".\" + name);\n\t\t\t}\n\t\t}\n\t\treturn readMethod;\n\t}",
"public String getRequestMethod()\n {\n return requestMethod;\n }",
"PaymentMethod getPaymentMethod();",
"Method getMethod();",
"Method getMethod();",
"public CalculationEnum getCalcMethod() {\n\t\treturn _calcMethodEnum;\n\t}",
"public String toString() {\n\t\treturn methodName;\n\t}",
"public String getAuthMethod() {\n return AUTH_NAME;\n }",
"public String getMethodName() {\n\t\t\treturn methodName;\n\t\t}",
"public String getPayMethod() {\n return payMethod;\n }",
"@Override\n\tpublic boolean getUpdateMethod(OrganizationUnitForm orggunit) throws Exception {\n\t\n\t\t\n\treturn organizationDAO.getUpdateMethod(orggunit);\n\t\t\n\t\t\n\t}",
"public String getAuthMethod() {\n\t\tString method = options.getProperty(\"auth-method\");\n\t\tif(method == null) {\n\t\t\tmethod = options.getProperty(\"Authentication-Method\");\n\t\t}\n\t\treturn trimedValue(method);\n\t}",
"public java.lang.reflect.Method getMethod()\n {\n return __m_Method;\n }",
"public abstract String getCommandName();"
] | [
"0.71742326",
"0.62488663",
"0.61609685",
"0.6051126",
"0.5940956",
"0.5896908",
"0.5888669",
"0.58177567",
"0.5778132",
"0.57740957",
"0.5710533",
"0.56881756",
"0.5679504",
"0.56535333",
"0.5630067",
"0.5625566",
"0.5625566",
"0.5625566",
"0.55994445",
"0.55994445",
"0.5575511",
"0.5555369",
"0.5540532",
"0.5526579",
"0.5511512",
"0.5482325",
"0.5482325",
"0.54559606",
"0.545328",
"0.54512703",
"0.544324",
"0.543767",
"0.5434362",
"0.54150814",
"0.5410248",
"0.54024476",
"0.5399219",
"0.53970253",
"0.5393019",
"0.5380563",
"0.5374891",
"0.5374248",
"0.5342695",
"0.5330521",
"0.5329437",
"0.5298415",
"0.5298415",
"0.5286569",
"0.5284765",
"0.52680594",
"0.52680594",
"0.5266385",
"0.52596915",
"0.522072",
"0.5211677",
"0.5193455",
"0.5184875",
"0.5183112",
"0.5178715",
"0.5178715",
"0.5178715",
"0.5178715",
"0.51768357",
"0.5161421",
"0.5153316",
"0.51293665",
"0.5126817",
"0.512349",
"0.5109178",
"0.51053566",
"0.51053566",
"0.50988513",
"0.5091103",
"0.50713193",
"0.5068185",
"0.5058456",
"0.50473803",
"0.50439054",
"0.5037838",
"0.50217235",
"0.50195897",
"0.5015351",
"0.50132775",
"0.5010249",
"0.50022674",
"0.50022674",
"0.49877462",
"0.49868658",
"0.49832985",
"0.49814698",
"0.49814698",
"0.49668345",
"0.49593738",
"0.49564543",
"0.49434188",
"0.49378982",
"0.49353647",
"0.49314892",
"0.492979",
"0.4924551"
] | 0.8314544 | 0 |
Created by sverma on 01/03/2017. | public interface TPUserRepository extends JpaRepository<TPUser, Long> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"private void poetries() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n public void init() {\n\n }",
"@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 anular() {\n\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n protected void getExras() {\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 public void init() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"public void mo4359a() {\n }",
"@Override\n void init() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n protected void initialize() {\n\n \n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@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() {}",
"private void init() {\n\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n protected void init() {\n }",
"private void m50366E() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"public void gored() {\n\t\t\n\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\n protected void initialize() \n {\n \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\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\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\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}",
"Petunia() {\r\n\t\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\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 TMCourse() {\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"protected boolean func_70814_o() { return true; }",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\n public void initialize() { \n }",
"public void mo12930a() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}"
] | [
"0.5990196",
"0.585553",
"0.5765432",
"0.5760741",
"0.57273203",
"0.5676031",
"0.5676031",
"0.5642814",
"0.5628792",
"0.5612105",
"0.559077",
"0.55859596",
"0.5583755",
"0.5527733",
"0.55205554",
"0.5518523",
"0.5517548",
"0.55097127",
"0.5504741",
"0.5489787",
"0.54855555",
"0.54808474",
"0.54711735",
"0.54711735",
"0.54544866",
"0.5452924",
"0.5445817",
"0.54372126",
"0.54372126",
"0.54372126",
"0.54372126",
"0.54372126",
"0.54323405",
"0.54309183",
"0.5429202",
"0.5429202",
"0.5429202",
"0.5429202",
"0.5429202",
"0.5429202",
"0.5427826",
"0.5412843",
"0.54058546",
"0.53915197",
"0.539072",
"0.53893024",
"0.53844535",
"0.5376855",
"0.53758764",
"0.5369566",
"0.53667814",
"0.53667814",
"0.53667194",
"0.5358012",
"0.5357869",
"0.5346027",
"0.5344906",
"0.5341588",
"0.53412807",
"0.53385967",
"0.5336239",
"0.5330675",
"0.5330675",
"0.5330675",
"0.53112715",
"0.53112715",
"0.53112715",
"0.530793",
"0.5305791",
"0.53053874",
"0.53025997",
"0.53025997",
"0.529547",
"0.52889514",
"0.5285751",
"0.5285751",
"0.5285751",
"0.5281039",
"0.52763647",
"0.5269903",
"0.5259258",
"0.5259258",
"0.5259258",
"0.5259258",
"0.5259258",
"0.5259258",
"0.5259258",
"0.5255404",
"0.5253718",
"0.5252151",
"0.5247254",
"0.52317035",
"0.5227699",
"0.5221672",
"0.5220052",
"0.5217994",
"0.5209525",
"0.52074677",
"0.520467",
"0.5203896",
"0.5203896"
] | 0.0 | -1 |
Filter to calls on X chromosomes | @Override
public ImmutableList<GenotypeCalls> filterCompatibleRecords(Collection<GenotypeCalls> calls) {
Stream<GenotypeCalls> xCalls = calls.stream()
.filter(call -> call.getChromType() == ChromosomeType.X_CHROMOSOMAL);
// Filter to calls compatible with AD inheritance
Stream<GenotypeCalls> compatibleCalls;
if (this.pedigree.getNMembers() == 1)
compatibleCalls = xCalls.filter(this::isCompatibleSingleton);
else
compatibleCalls = xCalls.filter(this::isCompatibleFamily);
return ImmutableList.copyOf(compatibleCalls.collect(Collectors.toList()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Chromosome fittestChromosome();",
"public PopulationFilter(int nr)\n { \n super();\n inhabitants = nr;\n }",
"public void findIsolatedGenes(){\n\t\tHashMap isolated = new HashMap();\n\t\t//for each chromosome\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenesAll = (UCSCGeneLine[])genesAll.get(chrom);\n\t\t\tUCSCGeneLine[] chrGenesSelect = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenesSelect.length);\n\t\t\tArrayList isolatedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenesSelect.length; i++){\n\t\t\t\t//expand size of gene\n\t\t\t\tint start = chrGenesSelect[i].getTxStart() - extension;\n\t\t\t\tint end = chrGenesSelect[i].getTxEnd() + extension;\n\t\t\t\t//scan all, allow one hit\n\t\t\t\tint hits = 0;\n\t\t\t\tfor (int j =0; j< chrGenesAll.length; j++){\n\t\t\t\t\tif (intersects (chrGenesAll[j], start, end)) {\n\t\t\t\t\t\thits++; \n\t\t\t\t\t\tif (hits >1) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//save?\n\t\t\t\tif (hits < 2){\n\t\t\t\t\tisolatedGenes.add(chrGenesSelect[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenesSelect = new UCSCGeneLine[isolatedGenes.size()];\n\t\t\tisolatedGenes.toArray(chrGenesSelect);\n\t\t\tSystem.out.println(\"\\tIsolated \"+chrom+\"\\t\"+ chrGenesSelect.length);\n\t\t\tisolated.put(chrom, chrGenesSelect);\n\t\t}\n\t\tgenesSelect = isolated;\n\t\t//clean up\n\t\tgenesAll = null;\n\t\tSystem.gc();\n\t}",
"public void findExpressedGenes(){\n\t\tHashMap exp = new HashMap();\n\t\t//instantiate Bar parser\n\t\tScoreParsedBars barParser = new ScoreParsedBars (barDirectory, bpPositionOffSetBar, bpPositionOffSetRegion);\n\t\t//for each chromosome in select\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\t//get genes\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenes = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\t//calculate medians\n\t\t\tbarParser.calculateMedians(chrGenes);\n\t\t\tArrayList expressedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenes.length; i++){\n\t\t\t\tif (chrGenes[i].getScores()[0] >= threshold ) {\n\t\t\t\t\texpressedGenes.add(chrGenes[i]);\n\t\t\t\t\t//System.out.println(chrGenes[i].simpleToString()+ chrGenes[i].getScore());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenes = new UCSCGeneLine[expressedGenes.size()];\n\t\t\texpressedGenes.toArray(chrGenes);\n\t\t\tSystem.out.println(\"\\tExpressed \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\texp.put(chrom, chrGenes);\n\t\t}\n\t\tgenesSelect = exp;\n\t}",
"public int getNumChromosomes();",
"private <T> List<Chromosome<T>> breedNewGeneration(List<Chromosome<T>> chromosomes){\n\t\tList<Chromosome<T>> selected = selection.apply(chromosomes);\n\t\tCollections.shuffle(selected);\n\n\t\tList<Chromosome<T>> crossedOver = Lists.newArrayList();\n\t\tfor(int i = 0; i < selected.size(); i+=2){\n\t\t\tChromosome<T>[] bred = crossover.apply(selected.get(i), selected.get(i+1));\n\t\t\tcrossedOver.add(bred[0]);\n\t\t\tcrossedOver.add(bred[1]);\n\t\t}\n\n\t\treturn crossedOver.stream().map(mutation::apply).collect(Collectors.toList());\n\t}",
"@Override\n public void filter(BoundingBox3d bounds) {\n filter = new boolean[points.size()];\n for (int i = 0; i < filter.length; i++)\n filter[i] = bounds.contains(points.get(i).xyz);\n }",
"public abstract void filter();",
"boolean filter(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);",
"public void testSelect_4()\n throws Exception {\n BestChromosomesSelector selector = new BestChromosomesSelector(conf);\n selector.setDoubletteChromosomesAllowed(true);\n // the following original rate controls that only 30% of the chromosomes\n // will be considered for selection as given with BestChromosomesSelector.\n // The last 70% will be added as doublettes in this case.\n selector.setOriginalRate(0.3d);\n // add first chromosome\n // --------------------\n Gene gene = new BooleanGene(conf);\n gene.setAllele(Boolean.valueOf(true));\n Chromosome thirdBestChrom = new Chromosome(conf, gene, 7);\n thirdBestChrom.setFitnessValue(10);\n selector.add(thirdBestChrom);\n // add second chromosome\n // ---------------------\n gene = new BooleanGene(conf);\n gene.setAllele(Boolean.valueOf(false));\n Chromosome bestChrom = new Chromosome(conf, gene, 3);\n bestChrom.setFitnessValue(12);\n selector.add(bestChrom);\n // add third chromosome\n // ---------------------\n gene = new IntegerGene(conf);\n gene.setAllele(new Integer(444));\n Chromosome secondBestChrom = new Chromosome(conf, gene, 3);\n secondBestChrom.setFitnessValue(11);\n selector.add(secondBestChrom);\n // receive top 1 (= best) chromosome\n // ---------------------------------\n Population pop = new Population(conf);\n selector.select(1, null, pop);\n IChromosome[] bestChroms = pop.toChromosomes();\n assertEquals(1, bestChroms.length);\n assertEquals(bestChrom, bestChroms[0]);\n // receive top 4 chromosomes with original rate = 0.3\n // --------------------------------------------------\n pop.getChromosomes().clear();\n selector.select(4, null, pop);\n bestChroms = pop.toChromosomes();\n assertEquals(4, bestChroms.length);\n assertEquals(bestChrom, bestChroms[0]);\n assertEquals(bestChrom, bestChroms[1]); //because of originalRate = 0.3\n assertEquals(secondBestChrom, bestChroms[2]);\n assertEquals(thirdBestChrom, bestChroms[3]);\n // Non-unique chromosomes should have been returned, although not the same\n // but a cloned instance!\n assertEquals(bestChroms[0], bestChroms[1]);\n // receive top 4 chromosomes with original rate = 1\n // ------------------------------------------------\n pop.getChromosomes().clear();\n selector.setOriginalRate(1.0d);\n selector.select(4, null, pop);\n bestChroms = pop.toChromosomes();\n assertEquals(4, bestChroms.length);\n assertEquals(bestChrom, bestChroms[0]);\n assertEquals(secondBestChrom, bestChroms[1]);\n assertEquals(thirdBestChrom, bestChroms[2]);\n assertEquals(bestChrom, bestChroms[3]);\n }",
"@Test\n public void testChromosome() {\n\n Assert.assertTrue(this.chromB1.getGenes().length == 4);\n Assert.assertTrue(this.chromB1.getSize() == 4);\n Assert.assertTrue(this.chromB1.getGenes()[0] == 1);\n Assert.assertTrue(this.chromB1.getGenes()[1] == 2);\n Assert.assertTrue(this.chromB1.getGenes()[2] == 3);\n Assert.assertTrue(this.chromB1.getGenes()[3] == 4);\n }",
"public Chromosome(){\n super();\n }",
"Chromosome from(List<Chromosome> population);",
"StandardFilterBuilder standardFilter(int count);",
"public void execFunzzySearchMapGeneByRangeFunc(){\n Map map = new HashMap();\n\n if(this.searchParam != null && this.searchParam.length()> 0 ){\n if(this.searchParam.contains(\":\")==true || this.searchParam.startsWith(\"chr\") == true){\n String chrom = \"\";\n int pstart = -1;\n int pend = -1;\n if(this.searchParam.indexOf(\":\") > -1 ){\n int idex = this.searchParam.indexOf(\":\");\n chrom = this.searchParam.substring(0,idex );\n System.out.println(\"chrom=\"+chrom);\n map.put(\"chrom\",chrom);\n if(this.searchParam.indexOf(\"-\") > -1 ){\n int idex1 = this.searchParam.indexOf(\"-\");\n pstart = Integer.parseInt(this.searchParam.substring(idex+1, idex1));\n pend = Integer.parseInt(this.searchParam.substring(idex1+1, this.searchParam.length()));\n map.put(\"startpos\",pstart);\n map.put(\"endpos\",pend);\n }else {\n pstart = Integer.parseInt(this.searchParam.substring(idex+1, this.searchParam.length()));\n map.put(\"startpos\",pstart);\n }\n\n }else if(this.searchParam.startsWith(\"chr\") == true){\n map.put(\"chrom\",this.searchParam);\n\n\n }\n }\n }\n\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"null\") ==false && this.searchSpecies.equals(\"all\") == false){\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"species\",this.searchSpecies);\n }\n\n if(this.searchTrait != null && this.searchTrait.equals(\"null\") ==false && this.searchTrait.length()>0){\n\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"searchTrait\", this.searchTrait) ;\n }\n\n if(this.pvalue != null && this.pvalue.equals(\"null\") ==false && this.pvalue.length()>0){\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"psitu\", this.psitu);\n map.put(\"pval\", this.pvalue) ;\n }\n\n\n List<MapGeneBean> tmplist = (List<MapGeneBean>) baseService.findResultList(\"cn.big.gvk.dm.MapGene.selectMapGeneCountByPosition\",map);\n if(tmplist != null && tmplist.size()>0){\n mapGeneBeanList = new ArrayList<MapGeneBean>();\n\n for(MapGeneBean tbean: tmplist){\n Map cmp = new HashMap();\n cmp.put(\"gid\",tbean.getGid());\n MapGeneBean genebean = (MapGeneBean) baseService.findObjectByObject(\"cn.big.gvk.dm.MapGene.selectMapGeneCount\",cmp);\n if(genebean != null ){\n\n Map t = new HashMap();\n t.put(\"gId\",genebean.getGid()) ;\n t.put(\"count\",\"count\");\n\n //trait count\n GwasAssociationView gwas = (GwasAssociationView) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectGwasViewByGeneInfo\",t);\n if(gwas != null){\n genebean.setTraitCount(gwas.getTraitCount());\n }\n\n //study count\n StudyBean study = (StudyBean) baseService.findObjectByObject(\"cn.big.gvk.dm.study.selectStudyByMapGeneId\",t);\n if(study != null ){\n genebean.setStudyCount(study.getStudyCount());\n }\n\n //publication count\n PublicationBean publication = (PublicationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.publication.selectPubByGeneId\",t);\n if (publication != null ){\n genebean.setPublicationCount(publication.getPublicationCount());\n }\n mapGeneBeanList.add(genebean) ;\n }\n\n }\n }\n\n StringBuffer sb = new StringBuffer() ;\n\n if(mapGeneBeanList != null && mapGeneBeanList.size()>0){\n for(MapGeneBean mapgene: mapGeneBeanList){\n sb.append(mapgene.getMapGeneId()).append(\"\\t\").append(mapgene.getMapGeneChrom()).append(\":\")\n .append(mapgene.getMapGeneStart()).append(\"-\").append(mapgene.getMapGeneEnd()).append(\"\\t\").append(mapgene.getTraitCount()).append(\"\\t\")\n .append(mapgene.getStudyCount()).append(\"\\n\");\n }\n }\n\n if(format == 1 ){ //export txt\n this.response.reset();\n this.response.setHeader(\"Content-Disposition\",\n \"attachment;filename=export.txt\");\n this.response.setContentType(\"application/ms-txt\");\n try {\n PrintWriter pr = this.response.getWriter();\n pr.print(sb.toString());\n pr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }",
"@Test\n public void testGetChromosome() throws Exception {\n Stats stat = sf.ofChromosome(chromosome);\n\n // Check that the chromosome was added to the stats object\n assertEquals(chromosome, stat.getChromosome());\n }",
"Chromosome getRandomAmongFittest(int limit);",
"FeatureHolder filter(FeatureFilter filter);",
"public static void main(String[] args) {\n\t\tSystem.out.println(findSubset(30, new int[]{2,3,7,8,10}));\n\n\t}",
"public int filterData(int paramInt) {\n/* 14 */ return 7;\n/* */ }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic void mutation() {\r\n\t\tfinal double MUTATION_PROB = 0.1;\r\n\t\tfor (int i=0; i<this.nChromosomes; i++) {\r\n\t\t\tArrayList<Integer> chr = (ArrayList<Integer>) this.chromosomes.get(i);\r\n\t\t\tfor (int j=0; j<this.nViaPoints; j++) {\r\n\t\t\t\tdouble rand = Math.random();\r\n\t\t\t\tif (rand < MUTATION_PROB) {\r\n\t\t\t\t\t// change the sign\r\n\t\t\t\t\tInteger vPoint = chr.get(j);\r\n\t\t\t\t\tchr.remove(j);\r\n\t\t\t\t\tchr.add(j, new Integer(- (vPoint.intValue()%100)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.printChromosomes(\"After Mutation\");\r\n\t}",
"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 Pair doXover(Object chromosome1, Object chromosome2, HashMap params) throws OptimizerException;",
"public static void filter() {\n\t\t\n\t\tResult.filter(toggleGroup.getSelectedToggle().getUserData(), ((ComboBox)hbox3.getChildren().get(0)).getValue());\n\t\t\n\t}",
"public String askArrFilter();",
"public ArrayList<String> findPossibleCorridors(String corridorX);",
"public int getNumDataPointsInChrom(int chromosome);",
"private UniqueChromosomeReconstructor() { }",
"public void filter(double[] X) {\r\n\t\tfilter(X, 0, X.length);\r\n\t}",
"@Override\n public int filterOrder() {\n return 1;\n }",
"@Override\n public int filterOrder() {\n return 1;\n }",
"public void myFilter(int start, int end)\n {\n Pixel[] originPixel = this.getPixels();\n //loop through all pixels in the calling object and parameter \n for(int index=start;index<=end;index++){\n originPixel[index].setGreen(originPixel[index].getBlue());\n originPixel[index].setBlue(originPixel[index].getRed());\n originPixel[index].setRed(originPixel[index].getGreen()); \n }\n }",
"protected Vector filterInputInternal(Vector before)\n\t{\n\t\treturn filterInternal(before, featureMins, featureMaxes);\n\t}",
"public Address[] findContactsByChar(String filter, boolean sipOnly);",
"boolean removeChromosome(@NotNull final Chromosome chromosome);",
"EventChannelFilter filter();",
"public static void mutate(Chromosome chrome) {\n \n // Loop through tour cities\n for(int rosterNursePos1=0; rosterNursePos1 < chrome.ChromosomeRowSize(); rosterNursePos1++){\n for (int rosterDayPos1=0; rosterDayPos1<chrome.chromosomeColumnCount();rosterDayPos1++){\n if(RosterManager.isPreviousShift(chrome.getShift(rosterNursePos1, rosterDayPos1))==false || RosterManager.isNextShift(chrome.getShift(rosterNursePos1, rosterDayPos1))==false || chrome.getShift(rosterNursePos1, rosterDayPos1).getHours()!=0 ){\n if(Math.random() < mutationRate){\n // Get a second random position in the tour\n int rosterNursePos2= rosterNursePos1;\n int rosterDayPos2 = returnValidPos(rosterNursePos2, randomizeShiftGeneration(chrome), chrome );\n\n // Get the cities at target position in tour\n Gene gene1 = chrome.retrieveGene(rosterNursePos1, rosterDayPos1);\n Gene gene2 = chrome.retrieveGene(rosterNursePos2, rosterDayPos2);\n\n // Swap them around\n chrome.saveGene(rosterNursePos1, rosterDayPos1, gene2);\n chrome.saveGene(rosterNursePos2, rosterDayPos2, gene1);\n \n }\n \n \n } \n // Apply mutation rate\n \n }\n \n }\n \n \n }",
"private String getChromosome(String column) {\n if (column.substring(0,3).equals(\"Chr\")) {\n return column.substring(3);\n } else {\n return column;\n }\n }",
"public Chromosome doDisplacementMutation(){\n for(int i = 0; i < PopulationConfiguration.MUTATION_ATTEMPTS; i++){\n ArrayList<Boolean> newSelection = copyBoolArrayList(this.knapsackSelection);\n\n int allele1 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n int allele2 = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size());\n\n int leftAllele = Math.min(allele1, allele2);\n int rightAllele = Math.max(allele1, allele2);\n\n var selectionSublist = new ArrayList<Boolean>(newSelection.subList(leftAllele, rightAllele));\n for(int j = leftAllele; j < rightAllele + 1; j++){\n newSelection.remove(leftAllele);\n }\n\n int index = Configuration.RANDOM_GENERATOR.nextInt(newSelection.size()+1);\n newSelection.addAll(index, selectionSublist);\n\n Chromosome mutatedKnapsack = new Chromosome(newSelection).withFitnessCalculated();\n if(mutatedKnapsack.isValid())\n return mutatedKnapsack;\n }\n return this;\n }",
"public List<PedidoIndividual> filtrar(PedidoIndividual filtro);",
"public int getFeaturesSize(int chromosome);",
"@Override\n public boolean shouldFilter() {\n return true;\n }",
"PolynomialNode filter(Predicate test);",
"public void cullPopulation(){\n\t\t// sort the population by the fitness function from low to high\n\t\tCollections.sort(population);\n\t\t\n\t\t// remove 10% of the weakest part of the population\n\t\tfor(int i = 0; i < (int)(POPULATION_SIZE*POPULATION_ACTION_PERCENT); i++){\n\t\t\tpopulation.remove(0);\n\t\t}\n\n\t}",
"@Override\n\tpublic void filterChange() {\n\t\t\n\t}",
"public static void main(String[] args) {\n ArrayList<Integer> list=new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n list.add(5);\n Util res=new Util(list).filter(new Gt(),2).filter(new Gt(),3).filter(new Gt(),4);\n res.dis();\n }",
"@Override\n\tpublic int filterOrder() {\n\t\treturn 1;\n\t}",
"public interface CustomerSubsetFilterStrategy {\r\n Set<Customer> applyFilter(List<Customer> customers);\r\n}",
"boolean doFilter() { return false; }",
"public void testSelect_3()\n throws Exception {\n BestChromosomesSelector selector = new BestChromosomesSelector(conf);\n selector.setDoubletteChromosomesAllowed(false);\n // add first chromosome\n // --------------------\n Gene gene = new BooleanGene(conf);\n gene.setAllele(Boolean.valueOf(true));\n Chromosome thirdBestChrom = new Chromosome(conf, gene, 7);\n thirdBestChrom.setFitnessValue(10);\n selector.add(thirdBestChrom);\n // add second chromosome\n // ---------------------\n gene = new BooleanGene(conf);\n gene.setAllele(Boolean.valueOf(false));\n Chromosome bestChrom = new Chromosome(conf, gene, 3);\n bestChrom.setFitnessValue(12);\n selector.add(bestChrom);\n selector.setOriginalRate(1.0d);\n // receive top 30 chromosomes (select-method should take into account only\n // 2 chroms!)\n // -----------------------------------------------------------------------\n Population pop = new Population(conf);\n selector.select(30, null, pop);\n Population bestChroms = pop;\n Population chromosomes = (Population) privateAccessor.getField(selector,\n \"m_chromosomes\");\n assertTrue(bestChroms.equals(chromosomes));\n }",
"Chromosome getRandom();",
"public Map<ValueEdge, Pair<HitVertex>> filtByCoverageLength(double coverageLength,\n\t\t\tint index) {\n\t\tCollection<ValueEdge> toRemove;\n\t\tMap<ValueEdge, Pair<HitVertex>> removed = new HashMap<ValueEdge, Pair<HitVertex>> ();\n\n\t\tif (index >= 0) {\n\t\t\tif(index >= subSetList.size()) return null;\n\t\t\tBlastGraph indexGraph = FilterUtils.createInducedSubgraph(\n\t\t\t\t\tsubSetList.get(index), this);\n\t\t\ttoRemove = indexGraph.getEdges();\n\t\t\t// System.out.println(toRemove.size());\n\t\t} else {\n\t\t\ttoRemove = new HashSet<ValueEdge>();\n\t\t\tfor (ValueEdge ve : this.getEdges()) {\n\t\t\t\ttoRemove.add(ve);\n\t\t\t}\n\t\t}\n\n\t\tfor (ValueEdge ve : toRemove) {\n\t\t\tPair<HitVertex> pair = this.getEndpoints(ve);\n//\t\t\tHitVertex hv1 = pair.getFirst();\n//\t\t\tHitVertex hv2 = pair.getSecond();\n\n\t\t\tdouble c = (ve.getQueryCoverage() + ve.getSubjectCoverage()) / 2.0;\n\t\t\tif (c <= coverageLength) {\n//\t\t\t\thv1.putAttribute(\"related(C2\" + coverage + \")\",\n//\t\t\t\t\t\thv2.getId() + \"(\" + c + \")\");\n//\t\t\t\thv2.putAttribute(\"related(C2\" + coverage + \")\",\n//\t\t\t\t\t\thv1.getId() + \"(\" + c + \")\");\n\t\t\t\tremoved.put(ve, pair);;\n\t\t\t\tthis.removeEdge(ve);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn removed;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<Gene> getAllByCytoband(String chromosome, String cytoband) {\n\t\tQuery query = this.openSession().createQuery(\"select g from Gene g, Cytoband k where k.chromosome= :chromosome and k.cytoband = :cytoband and k.chromosome=g.chromosome and g.end>=k.start and g.start<=k.end\").setParameter(\"chromosome\", chromosome).setParameter(\"cytoband\", cytoband);\n\t\treturn (List<Gene>)executeAndClose(query);\n\t}",
"public void updateFlags(int fromx, int tox, int fromy, int toy, int fromz, int toz)\n {\n VoxelOctree voxels = obj.getVoxels();\n if (width != voxels.getWidth()-1)\n {\n initialize();\n return;\n }\n findBounds();\n byte cornerValues[] = new byte[8];\n if (fromx < 0)\n fromx = 0;\n if (fromy < 0)\n fromy = 0;\n if (fromz < 0)\n fromz = 0;\n if (tox >= width)\n tox = width-1;\n if (toy >= width)\n toy = width-1;\n if (toz >= width)\n toz = width-1;\n int ysize = toy-fromy+3;\n int zsize = toz-fromz+3;\n\n // Look up the values for the x==fromx plane.\n\n byte values[][] = new byte[2][ysize*zsize];\n for (int j = 0; j < ysize; j++)\n for (int k = 0; k < zsize; k++)\n values[0][j*zsize+k] = voxels.getValue(fromx, j+fromy, k+fromz);\n for (int i = fromx; i <= tox; i++)\n {\n // Look up the values for the next plane.\n\n for (int j = 0; j < ysize; j++)\n for (int k = 0; k < zsize; k++)\n values[1][j*zsize+k] = voxels.getValue(i+1, j+fromy, k+fromz);\n for (int j = fromy; j <= toy; j++)\n {\n for (int k = fromz; k <= toz; k++)\n {\n int numBelow = 0;\n int numZero = 0;\n for (int corner = 0; corner < 8; corner++)\n {\n // Record the values at the four corners of this cell, and see how many are outside.\n\n cornerValues[corner] = values[vertexOffset[corner][0]][(j-fromy+vertexOffset[corner][1])*zsize+k-fromz+vertexOffset[corner][2]];\n if (cornerValues[corner] < 0)\n numBelow++;\n else if (cornerValues[corner] == 0)\n numZero++;\n }\n int index = i*width*width+j*width+k;\n if ((numBelow != 0 && numBelow != 8) || numZero > 0)\n flags[index/32] |= 1<<(index%32);\n else\n flags[index/32] &= 0xFFFFFFFF-(1<<(index%32));\n }\n }\n\n // Swap the value arrays so the values for x==i+1 will be in values[0].\n\n byte temp[] = values[0];\n values[0] = values[1];\n values[1] = temp;\n }\n }",
"@Override\n\tpublic boolean shouldFilter() {\n\t\treturn true;\n\t}",
"@Override\n public List<AudioTrackContext> getTracksInRange(int indexA, int indexB) {\n\n //make sure startIndex <= endIndex\n int startIndex = indexA < indexB ? indexA : indexB;\n int endIndex = indexA < indexB ? indexB : indexA;\n\n //Collect tracks between the two indices\n int i = 0;\n List<AudioTrackContext> result = new ArrayList<>();\n for (AudioTrackContext atc : getAsListOrdered()) {\n if (i >= startIndex && i < endIndex)\n result.add(atc);\n i++;\n if (i >= endIndex) break;//abort early if we're done\n }\n\n //trigger shuffle queue update if we found tracks to remove\n if (result.isEmpty()) shouldUpdateShuffledQueue = true;\n return result;\n }",
"public static HashSet<ChunkPos> getChunksWithinRange(World world, int x, int z, int mode)\n\t{\n\t\tHashSet<ChunkPos> chunks = new HashSet<ChunkPos>();\n\t\t\n\t\t//get chunks by mode\n\t\tswitch (mode)\n\t\t{\n\t\tcase 1: //1 chunk\n\t\t\tchunks.add(new ChunkPos(x, z));\n\t\t\tbreak;\n\t\tcase 2: //3x3 chunks\n\t\t\tfor (int i = -1; i <= 1; i++)\n\t\t\t{\n\t\t\t\tfor (int j = -1; j <= 1; j++)\n\t\t\t\t{\n\t\t\t\t\tchunks.add(new ChunkPos(x+i, z+j));\n\t\t\t\t}\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn chunks;\n\t}",
"public static void main(String [] args) {\n Stream.of(1,17,2,6).filter(n -> n > 6).forEach(s -> System.out.println(s));\n }",
"public static void main(String args[] ) throws Exception {\n ChildOne co= new ChildOne();\n co.filter(140,166);\n\n }",
"private void trimX() {\n\t\tint indexIntoBranches = 0;\n\t\tfor (int i = 0; i < this.branches.size(); i++) {\n\t\t\tif (this.branches.get(i).size() == this.numXVertices) {\n\t\t\t\tindexIntoBranches = i;\n\t\t\t}\n\t\t}\n\n\t\tthis.allX = (ArrayList) this.branches.get(indexIntoBranches).clone(); // We need this for a set difference above\n\n\t\tfor (int k = 0; k < this.branches.get(indexIntoBranches).size(); k++) {\n\t\t\tfor (int j = 0; j < this.branches.get(indexIntoBranches).size(); j++) {\n\t\t\t\t// Ignore if the index is the same - otherwise remove the edges\n\t\t\t\tif (!(k == j)) {\n\t\t\t\t\tthis.branches.get(indexIntoBranches).get(k)\n\t\t\t\t\t\t\t.removeNeighbor(this.branches.get(indexIntoBranches).get(j));\n\t\t\t\t\tthis.branches.get(indexIntoBranches).get(j)\n\t\t\t\t\t\t\t.removeNeighbor(this.branches.get(indexIntoBranches).get(k));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void mutate(Chromosome c) {\n if (c.getFitness() == 0) return;\n\n boolean[] genes = c.getGenes();\n int weight = c.getWeight();\n\n for (int i = 0; i < genes.length; i++) {\n if (weight == Config.CAPACITY) break;\n\n if (!genes[i]) {\n if (weight + Config.ITEMS[i].getWeight() <= Config.CAPACITY) {\n c.flipGene(i);\n }\n }\n }\n \n }",
"public int produce(int min, int max, int start, int subpopulation, Individual[] inds, ec.EvolutionState state, int thread)\n/* */ {\n/* 27 */ int n = this.sources[0].produce(min, max, start, subpopulation, inds, state, thread);\n/* */ \n/* */ \n/* */ \n/* 31 */ if (!state.random[thread].nextBoolean(this.likelihood)) {\n/* 32 */ return reproduce(n, start, subpopulation, inds, state, thread, false);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 38 */ if (!(this.sources[0] instanceof ec.BreedingPipeline)) {\n/* 39 */ for (int q = start; q < n + start; q++) {\n/* 40 */ inds[q] = ((Individual)inds[q].clone());\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 48 */ if (!(inds[start] instanceof TestCaseCandidate))\n/* 49 */ state.output.fatal(\"OurMutatorPipeline didn't get an Chromosome.The offending individual is in subpopulation \" + \n/* 50 */ subpopulation + \" and it's:\" + inds[start]);\n/* 51 */ ChromosomeSpecies species = (ChromosomeSpecies)inds[start].species;\n/* */ \n/* */ \n/* */ \n/* 55 */ for (int q = start; q < n + start; q++)\n/* */ {\n/* 57 */ TestCaseCandidate i = (TestCaseCandidate)inds[q];\n/* 58 */ double mutp = 1.0D / i.getGenes().size();\n/* */ \n/* 60 */ double[] propa = new double[i.getGenes().size()];\n/* 61 */ for (int x = 0; x < i.getGenes().size(); x++)\n/* 62 */ propa[x] = mutp;\n/* 63 */ for (int x = 0; x < i.getGenes().size(); x++) {\n/* 64 */ if (state.random[thread].nextBoolean(propa[x]))\n/* */ {\n/* */ \n/* 67 */ ((csbst.generators.AbsractGenerator)i.getGenes().get(x)).mutate();\n/* */ }\n/* */ }\n/* */ \n/* 71 */ i.evaluated = false;\n/* */ }\n/* */ \n/* 74 */ return n;\n/* */ }",
"private Integer getFitness(int[] chromosome) {\n\t\tint[] bins = new int[binCount]; //list of found bins\n\t\tfor (int binIndex = 0; binIndex < bins.length; binIndex++) { //initialize list of bins to unfound\n\t\t\tbins[binIndex] = -1;\n\t\t}\n\t\tint[] newChrom = bestFitModified(chromosome.clone()); //fix if infeasible\n\t\tif (newChrom == null) { //this is an unfixable chromosome, inform caller\n\t\t\treturn binCount * 2 + totalInfeasibility(chromosome);\n\t\t}\n\n\t\tfor (int i = 0; i < newChrom.length; i++) {\n\t\t\tchromosome[i] = newChrom[i]; //copy over to take advantage of side-effects\n\t\t}\n\t\tint uniqueBins = 0;\n\n\t\tfor (int i = 0; i < chromosome.length; i++) {\n\t\t\tif (bins[chromosome[i]] == -1) { //if we haven't seen this bin before track it and increment bin counter\n\t\t\t\tbins[chromosome[i]] = chromosome[i];\n\t\t\t\tuniqueBins++;\n\t\t\t} else\n\t\t\t\tcontinue;\n\t\t}\n\n\t\treturn uniqueBins;\n\t}",
"public static void main(String[] args) {\n\t\tString[] inp=sc.nextLine().split(\" \");\n\t\tn=Integer.parseInt(inp[0]);k=Integer.parseInt(inp[1]);\n\t\tinput=new int[n];\n\t\tinp=sc.nextLine().split(\" \");\n\t\tfor(int i=0;i<n;i++)\n\t\t\tinput[i]=Integer.parseInt(inp[i]);\n\t\tSystem.out.println(setOfXors(input));\n\n\t}",
"public GeoMaskFilter(List<BoundingBox> suppressedBoundingBoxes) {\n this.suppressedBoundingBoxes = suppressedBoundingBoxes;\n\n Predicate<AisPacket> oredPredicates = null;\n\n for (BoundingBox bbox : suppressedBoundingBoxes) {\n if (oredPredicates == null) {\n oredPredicates = AisPacketFilters.filterOnMessagePositionWithin(bbox);\n } else {\n oredPredicates = oredPredicates.or(AisPacketFilters.filterOnMessagePositionWithin(bbox));\n }\n }\n\n this.blocked = oredPredicates;\n }",
"@Override\n public boolean filterConsecutivePeptides() {\n return filterConsectutivePeptides;\n }",
"public Map<ValueEdge, Pair<HitVertex>> filtByCoverage2(double coverage, int index) {\n\t\tCollection<ValueEdge> toRemove;\n\t\tMap<ValueEdge, Pair<HitVertex>> removed = new HashMap<ValueEdge, Pair<HitVertex>> ();\n\n\t\tif (index >= 0) {\n\t\t\tif(index >= subSetList.size()) return null;\n\t\t\tBlastGraph indexGraph = FilterUtils.createInducedSubgraph(\n\t\t\t\t\tsubSetList.get(index), this);\n\t\t\ttoRemove = indexGraph.getEdges();\n\t\t\t// System.out.println(toRemove.size());\n\t\t} else {\n\t\t\ttoRemove = new HashSet<ValueEdge>();\n\t\t\tfor (ValueEdge ve : this.getEdges()) {\n\t\t\t\ttoRemove.add(ve);\n\t\t\t}\n\t\t}\n\n\t\tfor (ValueEdge ve : toRemove) {\n\t\t\tPair<HitVertex> pair = this.getEndpoints(ve);\n\t\t\tHitVertex hv1 = pair.getFirst();\n\t\t\tHitVertex hv2 = pair.getSecond();\n\n\t\t\tdouble c = this.getCoverage2(ve);\n\t\t\tif (c <= coverage) {\n//\t\t\t\thv1.putAttribute(\"related(C2\" + coverage + \")\",\n//\t\t\t\t\t\thv2.getId() + \"(\" + c + \")\");\n//\t\t\t\thv2.putAttribute(\"related(C2\" + coverage + \")\",\n//\t\t\t\t\t\thv1.getId() + \"(\" + c + \")\");\n\t\t\t\tremoved.put(ve, pair);;\n\t\t\t\tthis.removeEdge(ve);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn removed;\n\t}",
"@Test void filterAndSortMatches_noFilter() {\n\t\tvar matches = new DogArray<>(BowMatch::new, BowMatch::reset);\n\n\t\tmatches.resize(10);\n\t\tmatches.forIdx(( idx, m ) -> m.identification = idx);\n\t\tmatches.forIdx(( idx, m ) -> m.error = 10 - idx);\n\n\t\t// Limit is greater than the number of matches\n\t\t// All matches should be left, but the order changed\n\t\tBowUtils.filterAndSortMatches(matches, null, 20);\n\t\tassertEquals(10, matches.size);\n\t\tmatches.forIdx(( idx, m ) -> assertEquals(9 - idx, m.identification));\n\n\t\t// Limit is less than the number of matches\n\t\tmatches.forIdx(( idx, m ) -> m.identification = idx);\n\t\tmatches.forIdx(( idx, m ) -> m.error = 10 - idx);\n\t\tBowUtils.filterAndSortMatches(matches, null, 4);\n\t\tassertEquals(4, matches.size);\n\t\tmatches.forIdx(( idx, m ) -> assertEquals(9 - idx, m.identification));\n\t}",
"int countPowertypeRanges();",
"public TSPChromosome(int size) {\t\n\t\tfor(int g=0; g<size; g++){\n\t\t\tgenes.add(new Integer(-1));\n\t\t}\n\t\tinit();\n\t}",
"private List<Point> neighboursFiltering(List<Point> points) {\n Point nearest = points.get(0);\n HeartDistance calculator = new HeartDistance();\n return points.stream().filter(p -> calculator.calculate(p,nearest) < NEIGHBOURS_THRESHOLD).collect(Collectors.toList());\n }",
"FeatureHolder filter(FeatureFilter fc, boolean recurse);",
"public static void GA(ArrayList<City> cities){\n int pathLength = cities.size();\n // the number of chromosomes which will be generated\n int populationSize = 100;\n // the number of chromosomes that will be generated from crossover as a percentage of the population\n double crossoverRate = 0.8;\n // the number of chromosomes that will be generated from crossover\n int crossoverSize = (int) (populationSize * crossoverRate);\n // the probability that a chromosome can have a random mutation\n double mutationRate = 0.05;\n // the number of generations\n int generations = 5000;\n\n // Initialising the distance matrix using the initialiseDistanceMatrix method\n initialiseDistanceMatrix(cities);\n\n // Generating the Initial Population\n ArrayList<Chromosome> population = generatePopulation(cities, pathLength, populationSize);\n\n // The following is done for each generation of the population\n for (int i = 0; i < generations; i++) {\n // calculating the fitness of every chromosome in the current generation\n calculateFitnessOfPopulation(population);\n // sort the population so that the chromosomes with the highest fitness are at the start of the list\n Collections.sort(population);\n // call the method which performs crossover on the population\n Set<Chromosome> children = crossoverPopulation(population, populationSize, crossoverSize);\n // carry out mutation on the children of the current population\n children.addAll( mutatePopulation(children, mutationRate) );\n\n // evolve the population\n population.addAll(children);\n ArrayList<Chromosome> currentGeneration = new ArrayList<>(population);\n ArrayList<Chromosome> nextGeneration = evolvePopulation(currentGeneration, populationSize, cities, pathLength);\n population = new ArrayList<>(nextGeneration);\n }\n\n // find the fittest chromosome\n Chromosome fittestChromosome = population.get(0);\n double maxFitness = population.get(0).fitness;\n for (Chromosome c : population) {\n if (c.fitness > maxFitness) {\n maxFitness = c.fitness;\n fittestChromosome = c;\n }\n }\n // display the path and distance of the fittest chromosome\n System.out.println(fittestChromosome.getPath());\n System.out.println(\"Total Route Distance: \" + routeDistance(fittestChromosome));\n\n //printPopulation(population);\n }",
"private static Set<Chromosome> rankBasedRouletteWheelSelection(ArrayList<Chromosome> population, int populationSize) {\n Set<Chromosome> selectedChromosomes = new HashSet<>();\n\n // calculate the sum of all ranks, which will be used as a denominator for all probabilities\n int sumOfRanks = (populationSize + 1) * populationSize / 2;\n\n // declare an array of cumulative probabilities for all the chromosomes in the population\n double[] cumulativeProbability = new double[populationSize];\n // calculate the cumulative probability of the first chromosome as its probability\n cumulativeProbability[0] = (double) populationSize / sumOfRanks;\n // calculate the cumulative probabilities of all successive chromosomes:\n for (int i = 1; i < populationSize; i++) {\n // as the probability of this chromosomes based on its rank\n double probability = (double) (populationSize-i) / sumOfRanks;\n // plus the cumulative proability of the preceeding chromosome\n cumulativeProbability[i] = cumulativeProbability[i-1] + probability;\n }\n\n while (selectedChromosomes.size() < 2) {\n // choose a chromosome randomly based on its cumulative probability (the lower the better)\n double random = ThreadLocalRandom.current().nextDouble();\n int choice = 0;\n while (random > cumulativeProbability[choice]) {\n choice++;\n }\n\n // add the chosen chromosome to the set of selectedChromosomes\n selectedChromosomes.add(population.get(choice));\n }\n\n return selectedChromosomes;\n }",
"private static Set<Chromosome> mutatePopulation(Set<Chromosome> population, double mutationRate) {\n Set<Chromosome> mutatedChromosomes = new HashSet<>(population);\n\n for (Chromosome path : mutatedChromosomes) {\n double mutationProbability = ThreadLocalRandom.current().nextDouble();\n if (mutationProbability > (1-mutationRate)) {\n // mutate the path using the RSM mutation operator\n mutateRoute(path);\n // indicate that the fitness of this path needs to be recalculated\n path.fitness = -1;\n }\n }\n\n // The set will most probably include certain chromosomes which are already present in the set of children\n // however, given that both are sets, any duplicates will be discarded\n return mutatedChromosomes;\n }",
"public void execFuzzySearchRangeFunc(){\n\n Map map = new HashMap();\n\n if(this.searchParam != null && this.searchParam.length()> 0 ){\n if(this.searchParam.contains(\":\")==true || this.searchParam.startsWith(\"chr\") == true){\n String chrom = \"\";\n int pstart = -1;\n int pend = -1;\n if(this.searchParam.indexOf(\":\") > -1 ){\n int idex = this.searchParam.indexOf(\":\");\n chrom = this.searchParam.substring(0,idex );\n System.out.println(\"chrom=\"+chrom);\n map.put(\"chrom\",chrom);\n if(this.searchParam.indexOf(\"-\") > -1 ){\n int idex1 = this.searchParam.indexOf(\"-\");\n pstart = Integer.parseInt(this.searchParam.substring(idex+1, idex1));\n pend = Integer.parseInt(this.searchParam.substring(idex1+1, this.searchParam.length()));\n map.put(\"startpos\",pstart);\n map.put(\"endpos\",pend);\n }else {\n pstart = Integer.parseInt(this.searchParam.substring(idex+1, this.searchParam.length()));\n map.put(\"startpos\",pstart);\n }\n\n }else if(this.searchParam.startsWith(\"chr\") == true){\n map.put(\"chrom\",this.searchParam);\n\n\n }\n }\n }\n\n int idenfilter = 0;\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n idenfilter =1;\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"species\",this.searchSpecies);\n }\n\n if(this.searchTrait != null&& this.searchTrait.equals(\"null\")==false && this.searchTrait.length()>0){\n idenfilter =1;\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"searchTrait\", this.searchTrait) ;\n }\n\n if(this.pvalue != null&& this.pvalue.equals(\"null\")==false && this.pvalue.length()>0){\n idenfilter =1;\n map.put(\"gwas\",\"gwas\") ;\n map.put(\"gwasend\",\"gwasend\") ;\n map.put(\"psitu\", this.psitu);\n map.put(\"pval\", this.pvalue) ;\n }\n\n List<SearchItemBean> searchlist = (List<SearchItemBean>) baseService.findResultList(\"cn.big.gvk.dm.Search.selectRangeBySearch\",map);\n if( searchlist != null ){\n genotypeBeanList = new ArrayList<GenotypeBean>();\n mapGeneBeanList = new ArrayList<MapGeneBean>();\n for(SearchItemBean tmpbean : searchlist){\n if(tmpbean.getItemType() == 1){ //variant\n Map cmp = new HashMap();\n cmp.put(\"genotypeid\",tmpbean.getItemId());\n GenotypeBean tbean = (GenotypeBean) baseService.findObjectByObject(\"cn.big.gvk.dm.Genotype.selectGenotypeByPos\",cmp);\n if(tbean != null ){\n List genotypelist = new ArrayList();\n genotypelist.add(tbean.getGenotypeId()) ;\n\n Map t = new HashMap();\n t.put(\"genotypelist\",genotypelist);\n List<GenotypeAnnotateGeneView> annotateview = baseService.findResultList(\"cn.big.gvk.dm.Genotype.selectGenotypeByList\",t);\n if(annotateview != null && annotateview.size()>0 ){\n //here we need to filter the result\n Map filtermap = new HashMap();\n for(GenotypeAnnotateGeneView tview : annotateview){\n String fkey = tview.getMapGeneId()+\"_\"+tview.getConseqtype();\n if(filtermap.containsKey(fkey) == false){\n filtermap.put(fkey,tview);\n }\n }\n\n if(filtermap.size()>0){\n List<GenotypeAnnotateGeneView> alist = new ArrayList<GenotypeAnnotateGeneView>();\n Iterator it = filtermap.entrySet().iterator();\n while(it.hasNext()){\n Map.Entry entry = (Map.Entry) it.next();\n GenotypeAnnotateGeneView val = (GenotypeAnnotateGeneView) entry.getValue();\n alist.add(val);\n }\n\n tbean.setGenotypeAnnotateGeneView(alist);\n }\n\n\n }\n\n //find association count\n GwasAssociationBean gwas = (GwasAssociationBean) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectAssociationCountByGenotypeid\",tbean.getGenotypeId());\n if(gwas != null){\n tbean.setTraitCount(gwas.getGwasCount());\n }\n\n //find studycount\n Map cmap = new HashMap();\n cmap.put(\"genotypeId\",tbean.getGenotypeId());\n if(this.searchSpecies!= null && this.searchSpecies.equals(\"all\") == false){\n cmap.put(\"species\",this.searchSpecies);\n }\n\n\n GwasAssociationBean tg_bean1 = (GwasAssociationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectStudyCountByGenotypeid\",cmap);\n if(tg_bean1 != null ){\n tbean.setStudyCount(tg_bean1.getGwasCount());\n }\n\n genotypeBeanList.add(tbean) ;\n }\n\n\n\n\n }else if(tmpbean.getItemType() == 2){//gene\n\n Map cmp = new HashMap();\n cmp.put(\"gid\",tmpbean.getItemId()) ;\n MapGeneBean mgb = (MapGeneBean) baseService.findObjectByObject(\"cn.big.gvk.dm.MapGene.selectMapGeneCount\",cmp);\n if(mgb != null ){\n Map t = new HashMap();\n t.put(\"gId\",mgb.getGid()) ;\n t.put(\"count\",\"count\");\n\n //trait count\n GwasAssociationView gwas = (GwasAssociationView) baseService.findObjectByObject(\"cn.big.gvk.dm.GwasAssociation.selectGwasViewByGeneInfo\",t);\n if(gwas != null){\n mgb.setTraitCount(gwas.getTraitCount());\n }\n\n //study count\n StudyBean study = (StudyBean) baseService.findObjectByObject(\"cn.big.gvk.dm.study.selectStudyByMapGeneId\",t);\n if(study != null ){\n mgb.setStudyCount(study.getStudyCount());\n }\n\n //publication count\n PublicationBean publication = (PublicationBean)baseService.findObjectByObject(\"cn.big.gvk.dm.publication.selectPubByGeneId\",t);\n if (publication != null ){\n mgb.setPublicationCount(publication.getPublicationCount());\n }\n mapGeneBeanList.add(mgb) ;\n\n }\n\n\n }\n }\n }\n StringBuffer sb = new StringBuffer();\n //generate hidden html table and then use tableExport.js export\n if(genotypeBeanList != null && genotypeBeanList.size()>0){\n for(GenotypeBean genotype: genotypeBeanList){\n sb.append(genotype.getVarId()).append(\"\\t\").append(genotype.getChrom()).append(\":\")\n .append(genotype.getStartPos()).append(\"\\t\").append(genotype.getTraitCount())\n .append(\"\\t\").append(genotype.getStudyCount()).append(\"\\n\");\n }\n }\n\n if(mapGeneBeanList != null && mapGeneBeanList.size()>0){\n for(MapGeneBean mapgene: mapGeneBeanList){\n sb.append(mapgene.getMapGeneId()).append(\"\\t\").append(mapgene.getMapGeneChrom()).append(\":\")\n .append(mapgene.getMapGeneStart()).append(\"-\").append(mapgene.getMapGeneEnd()).append(\"\\t\").append(mapgene.getTraitCount()).append(\"\\t\")\n .append(mapgene.getStudyCount()).append(\"\\n\");\n }\n }\n\n\n if(format == 1 ){ //export txt\n this.response.reset();\n this.response.setHeader(\"Content-Disposition\",\n \"attachment;filename=export.txt\");\n this.response.setContentType(\"application/ms-txt\");\n try {\n PrintWriter pr = this.response.getWriter();\n pr.print(sb.toString());\n pr.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }",
"private void collectUsingStream() {\n List<Person> persons =\n Arrays.asList(\n new Person(\"Max\", 18),\n new Person(\"Vicky\", 23),\n new Person(\"Ron\", 23),\n new Person(\"Harry\", 12));\n\n List<Person> filtered = persons\n .stream()\n .filter(p -> p.name.startsWith(\"H\"))\n .collect(Collectors.toList());\n\n System.out.println(\"collectUsingStream Filtered: \" + filtered);\n }",
"private static ArrayList<Chromosome> generateNearestNeighbourPopulation(int pathLength, int nnPopulationSize){\n // declaring the arraylist of chromosomes which will store the\n ArrayList<Chromosome> nnPopualtion = new ArrayList<>();\n\n // declaring a set which will contain all the starting cities that will be used for the population\n Set<Integer> startingCities = new HashSet<>();\n // initialising the set of startingCities with random cities. It being a set no duplicates are allowed\n while (startingCities.size() < nnPopulationSize) {\n startingCities.add(ThreadLocalRandom.current().nextInt(0, pathLength));\n }\n\n // An ArrayList with all the cityIDs which can be copied to keep track of visited/unvisited cities\n ArrayList<Integer> cities = new ArrayList<>();\n for (int i = 0; i < pathLength; i++) {\n cities.add(i);\n }\n\n // for every starting city\n for (Integer startingCity : startingCities) {\n // set the currentCity as the Starting City\n int currentCity = startingCity;\n // Declare a new chromosome to store this new path\n Chromosome chromosome = new Chromosome(pathLength);\n // Set the first city in the path as the startingCity\n chromosome.path[0] = startingCity;\n\n // Declare a new Set of unvisitedCities, and initialise it as a copy of the ArrayList of cityIDs\n Set<Integer> unvisitedCities = new HashSet<>(cities);\n // remove the startingCity from the set of unvisitedCities\n unvisitedCities.remove(startingCity);\n\n // for the length of the path\n for (int i = 1; i < pathLength; i++) {\n // initially set the closestCity to a random city from the set of unvisitedCities\n int closestCity = unvisitedCities.iterator().next();\n // loop through every unvisitedCity to find the closestCity\n for (Integer city : unvisitedCities) {\n // if the distance between the currentCity and the unvisitedCity is < the distance between\n // the currentCity and the closestCity\n if (distanceMatrix[currentCity][city] < distanceMatrix[currentCity][closestCity]) {\n // set thet unvisitedCity as the closestCity\n closestCity = city;\n }\n }\n // add the closestCity as the next city in the path\n chromosome.path[i] = closestCity;\n // make the currentCity for the next iteration the current closestCity\n currentCity = closestCity;\n // remove the closestCity from the set of unvisitedCities\n unvisitedCities.remove(closestCity);\n }\n\n // add the generated chromosome to the ArrayList of the initial nnPopulation\n nnPopualtion.add(chromosome);\n }\n\n return nnPopualtion;\n }",
"@Override\n\tpublic void filterClick() {\n\t\t\n\t}",
"public Chromosome(ArrayList<Teacher_lesson> list){\n\t\tthis.genes=new int[array_size];\n\t\tRandom r= new Random();\n\t\tfor(int i=0;i<genes.length;i++){\n\t\t\t\n\t\t\tthis.genes[i]=r.nextInt(number_of_professors);\n\t\t}\n\t\tthis.DataList=list;\n\t\tthis.calculateFitness();\n\t}",
"public List<Peak> filterNoise(List<Peak> peaks, double threshold, double experimentalPrecursorMzRatio);",
"public static void main(String[] args) {\n\n\t\tint [] numbers = {1,2,3,4,5,6,7,8,9,10};\n\n\t\tint Startrange = 3;\n\t\tint Endrange = 7;\n\n\t\tfor(int i = 0; i < numbers.length; ++i) {\n\n\t\t\tif (!(numbers[i] > Startrange && numbers[i] < Endrange )){\n\t\t\t\tSystem.out.print(numbers[i] + \" \");\n\t\t\t}\t\n\n\t\t}\n\n\t}",
"public HashSet<Position> getInRangeL1(int p_r)\n {\n\n return this.getInRange(p_r, Distance.MANHATTAN);\n }",
"@Test void filterAndSortMatches_Filtered() {\n\t\tvar matches = new DogArray<>(BowMatch::new, BowMatch::reset);\n\n\t\t// Limit is greater than the number of matches, before filtering\n\t\t// The filter will remove all odd ID and return half\n\t\tmatches.resize(50);\n\t\tmatches.forIdx(( idx, m ) -> m.identification = idx);\n\t\tmatches.forIdx(( idx, m ) -> m.error = 50 - idx);\n\t\tBowUtils.filterAndSortMatches(matches, ( id ) -> id%2==0, 100);\n\t\tassertEquals(25, matches.size);\n\t\tmatches.forIdx(( idx, m ) -> assertEquals(48 - idx*2, m.identification));\n\n\t\t// Limit is greater than the number of matches, after filtering\n\t\tmatches.resize(50);\n\t\tmatches.forIdx(( idx, m ) -> m.identification = idx);\n\t\tmatches.forIdx(( idx, m ) -> m.error = 50 - idx);\n\t\tBowUtils.filterAndSortMatches(matches, ( id ) -> id%2==0, 27);\n\t\tassertEquals(25, matches.size);\n\t\tmatches.forIdx(( idx, m ) -> assertEquals(48 - idx*2, m.identification));\n\n\t\t// Limit is less than the number of matches, after filtering\n\t\tfor (int limit = 5; limit < 20; limit++) {\n\t\t\tmatches.resize(50);\n\t\t\tmatches.forIdx(( idx, m ) -> m.identification = idx);\n\t\t\tmatches.forIdx(( idx, m ) -> m.error = 50 - idx);\n\t\t\tBowUtils.filterAndSortMatches(matches, ( id ) -> id%2==0, limit);\n\t\t\tassertEquals(limit, matches.size);\n\t\t\tmatches.forIdx(( idx, m ) -> assertEquals(48 - idx*2, m.identification));\n\t\t}\n\t}",
"public void filter(UserCommand cmd)\n\t{\n\t\t\n\t}",
"@Override\r\n\tpublic Population<BinaryStringChromosome> operate(\r\n\t\t\tPopulation<BinaryStringChromosome> population) {\n\t\tIterator<BinaryStringChromosome> iterator = population\r\n\t\t\t\t.getAllChromosomes().iterator();\r\n\t\tPopulation<BinaryStringChromosome> output = new Population<BinaryStringChromosome>();\r\n\t\tBinaryStringChromosome chromosome;\r\n\t\tRandom random = new Random(System.nanoTime());\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tchromosome = iterator.next();\r\n\t\t\tif (random.nextDouble() < probability) {\r\n\t\t\t\tCommonGA.logger.info(\"Mutating chromosome \" + chromosome.toString());\r\n\t\t\t\tchromosome.mutateGene(random.nextInt(chromosome.getSize() - 1));\r\n\t\t\t\tCommonGA.logger.info(\"Mutated chromosome to \" + chromosome.toString());\r\n\t\t\t}\r\n\t\t\toutput.addChromosome(chromosome);\r\n\t\t}\r\n\t\treturn output;\r\n\t}",
"private Set<IntVector2D> canAttackFromDestination() {\n\t\tif(activePath == null || !pf.isValidPath(activePath))\n\t\t\treturn new HashSet<>();\n\t\tGameCharacter gc = getUnitAt(activePath.get(0)).getEnclosed();\n\t\tboolean ranged = gc.isRanged();\n\t\tboolean melee = gc.isMelee();\n\t\tAlignment atkSide = gc.getSide();\n\t\tSet<IntVector2D> attackable = new HashSet<>();\n\t\tint x = activePath.get(activePath.size() - 1).getX();\n\t\tint y = activePath.get(activePath.size() - 1).getY();\n\t\tif(ranged) {\n\t\t\tList<IntVector2D> arr = new LinkedList<>();\n\t\t\tarr.add(new IntVector2D(x + 2, y));\n\t\t\tarr.add(new IntVector2D(x - 2, y));\n\t\t\tarr.add(new IntVector2D(x, y + 2));\n\t\t\tarr.add(new IntVector2D(x, y - 2));\n\t\t\tarr.add(new IntVector2D(x + 1, y + 1));\n\t\t\tarr.add(new IntVector2D(x - 1, y + 1));\n\t\t\tarr.add(new IntVector2D(x + 1, y - 1));\n\t\t\tarr.add(new IntVector2D(x - 1, y - 1));\n\t\t\tattackable.addAll(arr.stream()\n\t\t\t\t\t.filter((vec) -> (\n\t\t\t\t\t\t\tisTileOnMap(vec) // not sure why this is necessary\n\t\t\t\t\t\t\t&& getTileAt(vec).isOccupied()\n\t\t\t\t\t\t\t&& Alignment.areOpposed(atkSide, getUnitAt(vec).getSide())))\n\t\t\t\t\t.collect(Collectors.toList()));\n\t\t}\n\t\tif(melee) {\n\t\t\tList<IntVector2D> arr = new LinkedList<>();\n\t\t\tarr.add(new IntVector2D(x + 1, y));\n\t\t\tarr.add(new IntVector2D(x - 1, y));\n\t\t\tarr.add(new IntVector2D(x, y + 1));\n\t\t\tarr.add(new IntVector2D(x, y - 1));\n\t\t\tattackable.addAll(arr.stream()\n\t\t\t\t\t.filter((vec) -> (\n\t\t\t\t\t\t\tisTileOnMap(vec) // not sure why this is necessary\n\t\t\t\t\t\t\t&& getTileAt(vec).isOccupied()\n\t\t\t\t\t\t\t&& Alignment.areOpposed(atkSide, getUnitAt(vec).getSide())))\n\t\t\t\t\t.collect(Collectors.toList()));\n\t\t}\n\t\treturn attackable;\n\t}",
"public void testSelect_0()\n throws Exception {\n BestChromosomesSelector selector = new BestChromosomesSelector(conf);\n Gene gene = new IntegerGene(conf);\n gene.setAllele(new Integer(444));\n Chromosome secondBestChrom = new Chromosome(conf, gene, 3);\n secondBestChrom.setFitnessValue(11);\n selector.add(secondBestChrom);\n gene = new BooleanGene(conf);\n gene.setAllele(Boolean.valueOf(false));\n Chromosome bestChrom = new Chromosome(conf, gene, 3);\n bestChrom.setFitnessValue(12);\n selector.add(bestChrom);\n selector.select(1, null, new Population(conf));\n }",
"public synchronized void filtered() {\n filteredCountStat.received();\n filteredCount++;\n }",
"protected void displayChromosome(Individual individual, int output_code) {\n if(individual == null) {\n //System.exit(0);\n }\n int[] chromosome = individual.getChromosome();\n //double fitness = \n //individual.setChromosome(new int[] { 0, 1 } );\n Individual infr = individual;\n double fitness = individual.getFitness();\n int size = chromosome.length;\n \n for(int i = 0; i < size; i++) {\n print(Integer.toString(chromosome[i]) + \" \", output_code);\n }\n println(\"\\tfitness: \" + Double.toString(individual.getFitness()) + \"\\t\" + individual.getAllOrdersDelivered(), output_code);\n }",
"private Set<Integer> filterSelectionUnit() {\n singlefilter = false;\n Map<Integer, Integer> dsCounter = new HashMap<>();\n int counter = 0;\n for (DatasetPieChartFilter filter : filtersSet.values()) {\n if (filter.isActiveFilter()) {\n counter++;\n }\n\n filter.getSelectedDsIds().stream().map((id) -> {\n if (!dsCounter.containsKey(id)) {\n dsCounter.put(id, 0);\n }\n return id;\n }).forEach((id) -> {\n dsCounter.put(id, dsCounter.get(id) + 1);\n });\n\n }\n Set<Integer> finalSelectionIds = new HashSet<>();\n dsCounter.keySet().stream().filter((dsId) -> (dsCounter.get(dsId) == 6)).forEach((dsId) -> {\n finalSelectionIds.add(dsId);\n });\n if (counter == 1) {\n singlefilter = true;\n }\n\n return finalSelectionIds;\n\n }",
"private void rouletteSelection() {\n parentChromosomes = new Chromosome[2];\n parentIndices = new int[2];\n Arrays.fill(parentChromosomes, null);\n parentIndices[0] = getFittestChromosomeIndex();\n parentChromosomes[0] = chromosomes[parentIndices[0]];\n parentIndices[1] = getFittestChromosomeIndex();\n parentChromosomes[1] = chromosomes[parentIndices[1]];\n System.out.println(\"Individuals selected from Roulette Wheel for crossover: \\n\" +\n Arrays.toString(parentChromosomes[0].getGenes()) + \"\\n\" +\n Arrays.toString(parentChromosomes[1].getGenes()));\n }",
"public static Predicate<BiomeSelectionContext> all() {\n\t\treturn context -> true;\n\t}",
"public void selectCutVertices() {\n BiConnectedComponents bcc_2p = graph2p_bcc;\n if (bcc_2p != null) {\n Set<String> new_sel = new HashSet<String>();\n\tnew_sel.addAll(bcc_2p.getCutVertices());\n setOperation(new_sel);\n }\n }",
"private void filterClients()\n {\n System.out.println(\"filtered Clients (membership of type 'Gold''):\");\n Set<Client> clients = ctrl.filterClientsByMembershipType(\"Gold\");\n clients.stream().forEach(System.out::println);\n }",
"@SuppressWarnings(\"unchecked\") // Okay in the context of this class.\n private void visitOperands(final LogicalOperator<GeometryValuePair> filter, final CompiledFilter p) {\n for (final Filter<? super GeometryValuePair> operand : filter.getOperands()) {\n visit((Filter<GeometryValuePair>) operand, p);\n }\n }",
"public boolean filter(LocusContext context, SAMRecord read) {\n return (read.getCigar().numCigarElements() == 1);\n }",
"public int[] filterBySharpness(double lower_threshold, double upper_threshold) {\n ArrayList<Integer> newPeaks = new ArrayList<Integer>();\n int[] keep = new int[this.midpoints.length];\n Arrays.fill(keep, 1);\n\n for (int i=0; i<this.sharpness[0].length; i++) {\n double minVal = Math.min(this.sharpness[0][i], this.sharpness[1][i]);\n if (minVal < lower_threshold) {\n keep[i] = 0;\n }\n }\n for (int i=0; i<this.sharpness[0].length; i++) {\n double maxVal = Math.max(this.sharpness[0][i], this.sharpness[1][i]);\n if (maxVal > upper_threshold) {\n keep[i] = 0;\n }\n }\n for (int i=0; i<keep.length; i++) {\n if(keep[i] == 1) {\n newPeaks.add(this.midpoints[i]);\n }\n }\n return UtilMethods.convertToPrimitiveInt(newPeaks);\n }",
"public static void main(String[] args) {\n\t\tint[] array = {43,34,67,87,56,98,65,23,21,77};\n\t\tfor (int i = 0 ; i < array.length ; i ++)\n\t\t{\n\t\t\tif (array[i] == 65 || array[i] == 77)\n\t\t\t{\n\t\t\tSystem.out.println(\"having 65 n 77\");\n\t\t\t}\n\t\t}\n \n\t}",
"public Location attack() {\n resetBoard();\n\n if (getHits().isEmpty()) {\n// System.out.println(\"Hunting\");\n\n for (final int[] r : board) {\n for (int c = 0; c < r.length; c++) {\n if (getIntegers().contains(5) && (c < (r.length - 4)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2]) && (-1 != r[c + 3]) && (-1 != r[c + 4])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n ++r[c + 3];\n ++r[c + 4];\n }\n\n if (getIntegers().contains(4) && (c < (r.length - 3)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2]) && (-1 != r[c + 3])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n ++r[c + 3];\n }\n if (getIntegers().contains(3) && (c < (r.length - 2)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n\n }\n if (getIntegers().contains(3) && (2 == Collections.frequency(getIntegers(), 3)) && (c < (r.length - 2)))\n if ((-1 != r[c]) && (-1 != r[c + 1]) && (-1 != r[c + 2])) {\n ++r[c];\n ++r[c + 1];\n ++r[c + 2];\n\n }\n if (getIntegers().contains(2) && (c < (r.length - 1)))\n if ((-1 != r[c]) && (-1 != r[c + 1])) {\n ++r[c];\n ++r[c + 1];\n }\n }\n }\n\n for (int c = 0; c < board[0].length; c++) {\n for (int r = 0; r < board.length; r++) {\n if (getIntegers().contains(5) && (r < (board.length - 4)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c]) && (-1 != board[r + 4][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n ++board[r + 4][c];\n }\n\n if (getIntegers().contains(4) && (r < (board.length - 3)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n }\n if (getIntegers().contains(3) && (r < (board.length - 2)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n\n\n }\n if (getIntegers().contains(3) && (2 == Collections.frequency(getIntegers(), 3)) && (r < (board.length - 2)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n\n\n }\n if (getIntegers().contains(2) && (r < (board.length - 1)))\n if ((-1 != board[r][c]) && (-1 != board[r + 1][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n }\n }\n }\n } else {\n// System.out.println(\"Hitting\");\n\n for (final Location hit : getHits()) {\n final int r = hit.getRow();\n final int c = hit.getCol();\n\n if (getIntegers().contains(2)) {\n if ((0 <= (c - 1)) && (-1 != board[r][c]) && (-1 != board[r][c - 1])) {\n ++board[r][c];\n ++board[r][c - 1];\n }\n\n\n if (((c + 1) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1])) {\n ++board[r][c];\n ++board[r][c + 1];\n }\n\n if ((0 <= (r - 1)) && (-1 != board[r][c]) && (-1 != board[r - 1][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n }\n\n if (((r + 1) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n }\n\n\n }\n if (getIntegers().contains(3)) {\n final int inc = Collections.frequency(getIntegers(), 3);\n\n if ((0 <= (c - 2)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2])) {\n board[r][c] += inc;\n board[r][c - 1] += inc;\n board[r][c - 2] += inc;\n }\n if (((c + 2) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2])) {\n board[r][c] += inc;\n board[r][c + 1] += inc;\n board[r][c + 2] += inc;\n }\n if ((0 <= (r - 2)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c])) {\n board[r][c] += inc;\n board[r - 1][c] += inc;\n board[r - 2][c] += inc;\n }\n if (((r + 2) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c])) {\n board[r][c] += inc;\n board[r + 1][c] += inc;\n board[r + 2][c] += inc;\n }\n\n\n }\n if (getIntegers().contains(4)) {\n if ((0 <= (c - 3)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2]) && (-1 != board[r][c - 3])) {\n ++board[r][c];\n ++board[r][c - 1];\n ++board[r][c - 2];\n ++board[r][c - 3];\n }\n if (((c + 3) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2]) && (-1 != board[r][c + 3])) {\n ++board[r][c];\n ++board[r][c + 1];\n ++board[r][c + 2];\n ++board[r][c + 3];\n }\n if ((0 <= (r - 3)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c]) && (-1 != board[r - 3][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n ++board[r - 2][c];\n ++board[r - 3][c];\n }\n if (((r + 3) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n }\n\n\n }\n if (getIntegers().contains(5)) {\n if ((0 <= (c - 4)) && (-1 != board[r][c]) && (-1 != board[r][c - 1]) && (-1 != board[r][c - 2]) && (-1 != board[r][c - 3]) && (-1 != board[r][c - 4])) {\n ++board[r][c];\n ++board[r][c - 1];\n ++board[r][c - 2];\n ++board[r][c - 3];\n ++board[r][c - 4];\n }\n if (((c + 4) < board[0].length) && (-1 != board[r][c]) && (-1 != board[r][c + 1]) && (-1 != board[r][c + 2]) && (-1 != board[r][c + 3]) && (-1 != board[r][c + 4])) {\n ++board[r][c];\n ++board[r][c + 1];\n ++board[r][c + 2];\n ++board[r][c + 3];\n ++board[r][c + 4];\n }\n if ((0 <= (r - 4)) && (-1 != board[r][c]) && (-1 != board[r - 1][c]) && (-1 != board[r - 2][c]) && (-1 != board[r - 3][c]) && (-1 != board[r - 4][c])) {\n ++board[r][c];\n ++board[r - 1][c];\n ++board[r - 2][c];\n ++board[r - 3][c];\n ++board[r - 4][c];\n }\n if (((r + 4) < board.length) && (-1 != board[r][c]) && (-1 != board[r + 1][c]) && (-1 != board[r + 2][c]) && (-1 != board[r + 3][c]) && (-1 != board[r + 4][c])) {\n ++board[r][c];\n ++board[r + 1][c];\n ++board[r + 2][c];\n ++board[r + 3][c];\n ++board[r + 4][c];\n }\n }\n }\n\n for (final Location hit : getHits()) {\n board[hit.getRow()][hit.getCol()] = 0;\n }\n }\n\n// for (int[] i : board)\n// System.out.println(Arrays.toString(i));\n return findLargest();\n }"
] | [
"0.56021214",
"0.5265275",
"0.5264745",
"0.52517843",
"0.52322507",
"0.51307416",
"0.512483",
"0.51116055",
"0.49929103",
"0.49425867",
"0.4899979",
"0.48956406",
"0.48832223",
"0.4868192",
"0.48654965",
"0.48366874",
"0.4812393",
"0.47957265",
"0.47957203",
"0.47835642",
"0.47659567",
"0.47612357",
"0.47543335",
"0.47410914",
"0.47391158",
"0.47277385",
"0.47034588",
"0.46976435",
"0.46634197",
"0.46399513",
"0.46399513",
"0.45912448",
"0.45895547",
"0.45711395",
"0.45680222",
"0.45673746",
"0.45667818",
"0.45501062",
"0.45416957",
"0.4540385",
"0.45370948",
"0.45369363",
"0.45338696",
"0.45305374",
"0.45269722",
"0.45210567",
"0.45162705",
"0.45131496",
"0.45083028",
"0.45064485",
"0.45028654",
"0.44734955",
"0.44574124",
"0.445562",
"0.44507736",
"0.44492313",
"0.44482225",
"0.4445377",
"0.44437948",
"0.4440572",
"0.44262576",
"0.44210932",
"0.44203052",
"0.4417845",
"0.4416056",
"0.44140843",
"0.44075397",
"0.4407433",
"0.44050044",
"0.440202",
"0.44006112",
"0.4399092",
"0.43985263",
"0.43910265",
"0.43889785",
"0.4381895",
"0.43735558",
"0.43675113",
"0.43568417",
"0.43554544",
"0.43504873",
"0.4344983",
"0.4341234",
"0.43368834",
"0.43360427",
"0.43328482",
"0.43304923",
"0.43299556",
"0.43280682",
"0.4324806",
"0.43226677",
"0.43204588",
"0.43202242",
"0.42959735",
"0.42927983",
"0.42926505",
"0.42851564",
"0.428205",
"0.42804605",
"0.427822"
] | 0.4941399 | 10 |
Token literal values and constants. Generated by org.javacc.parser.OtherFilesGenstart() | public interface SimpleGrParserConstants {
/** End of File. */
int EOF = 0;
/** RegularExpression Id. */
int NumberLit = 6;
/** RegularExpression Id. */
int BooleanLit = 7;
/** RegularExpression Id. */
int StringLit = 8;
/** RegularExpression Id. */
int Null = 9;
/** RegularExpression Id. */
int And = 10;
/** RegularExpression Id. */
int Or = 11;
/** RegularExpression Id. */
int Not = 12;
/** RegularExpression Id. */
int Identifier = 13;
/** RegularExpression Id. */
int Equal = 14;
/** RegularExpression Id. */
int NotEqual = 15;
/** RegularExpression Id. */
int LessThan = 16;
/** RegularExpression Id. */
int LessEqualThan = 17;
/** RegularExpression Id. */
int GreaterThan = 18;
/** RegularExpression Id. */
int GreaterEqualThan = 19;
/** RegularExpression Id. */
int Plus = 20;
/** RegularExpression Id. */
int Minus = 21;
/** RegularExpression Id. */
int Div = 22;
/** RegularExpression Id. */
int Mult = 23;
/** RegularExpression Id. */
int Open = 24;
/** RegularExpression Id. */
int Close = 25;
/** RegularExpression Id. */
int Comma = 26;
/** RegularExpression Id. */
int Letter = 27;
/** RegularExpression Id. */
int Digit = 28;
/** Lexical state. */
int DEFAULT = 0;
/** Literal token values. */
String[] tokenImage = {
"<EOF>",
"\" \"",
"\"\\t\"",
"\"\\n\"",
"\"\\r\"",
"\"\\f\"",
"<NumberLit>",
"<BooleanLit>",
"<StringLit>",
"\"NULL\"",
"\"AND\"",
"\"OR\"",
"\"NOT\"",
"<Identifier>",
"\"==\"",
"\"!=\"",
"\"<\"",
"\"<=\"",
"\">\"",
"\">=\"",
"\"+\"",
"\"-\"",
"\"/\"",
"\"*\"",
"\"(\"",
"\")\"",
"\",\"",
"<Letter>",
"<Digit>",
};
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private LiteralToken nextRegularExpressionLiteralToken() {\n LiteralToken token = scanner.nextRegularExpressionLiteralToken();\n lastSourcePosition = token.location.end;\n return token;\n }",
"public interface ParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int IMPLIES = 1;\n /** RegularExpression Id. */\n int EQUIVALENT = 2;\n /** RegularExpression Id. */\n int AND = 3;\n /** RegularExpression Id. */\n int OR = 4;\n /** RegularExpression Id. */\n int LBRACKET = 5;\n /** RegularExpression Id. */\n int RBRACKET = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int EQUALS = 8;\n /** RegularExpression Id. */\n int FORALL = 9;\n /** RegularExpression Id. */\n int THEREEXISTS = 10;\n /** RegularExpression Id. */\n int VARIABLE = 11;\n /** RegularExpression Id. */\n int PREDICATE = 12;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<AND>\",\n \"<OR>\",\n \"<LBRACKET>\",\n \"<RBRACKET>\",\n \"<NOT>\",\n \"<EQUALS>\",\n \"<FORALL>\",\n \"<THEREEXISTS>\",\n \"<VARIABLE>\",\n \"<PREDICATE>\",\n };\n\n}",
"public interface ParserMASConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int SINGLE_LINE_COMMENT = 9;\r\n /** RegularExpression Id. */\r\n int FORMAL_COMMENT = 10;\r\n /** RegularExpression Id. */\r\n int MULTI_LINE_COMMENT = 11;\r\n /** RegularExpression Id. */\r\n int COLON = 13;\r\n /** RegularExpression Id. */\r\n int AT = 14;\r\n /** RegularExpression Id. */\r\n int COMMA = 15;\r\n /** RegularExpression Id. */\r\n int NRAGENTS = 16;\r\n /** RegularExpression Id. */\r\n int IDENTIFIER = 17;\r\n /** RegularExpression Id. */\r\n int FILENAME = 18;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n /** Lexical state. */\r\n int IN_SINGLE_LINE_COMMENT = 1;\r\n /** Lexical state. */\r\n int IN_FORMAL_COMMENT = 2;\r\n /** Lexical state. */\r\n int IN_MULTI_LINE_COMMENT = 3;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"%\\\"\",\r\n \"\\\"//\\\"\",\r\n \"<token of kind 7>\",\r\n \"\\\"/*\\\"\",\r\n \"<SINGLE_LINE_COMMENT>\",\r\n \"\\\"*/\\\"\",\r\n \"\\\"*/\\\"\",\r\n \"<token of kind 12>\",\r\n \"\\\":\\\"\",\r\n \"\\\"@\\\"\",\r\n \"\\\",\\\"\",\r\n \"<NRAGENTS>\",\r\n \"<IDENTIFIER>\",\r\n \"<FILENAME>\",\r\n };\r\n\r\n}",
"public interface JavaGrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PLUS = 5;\n /** RegularExpression Id. */\n int MINUS = 6;\n /** RegularExpression Id. */\n int MULTIPLY = 7;\n /** RegularExpression Id. */\n int DIVIDE = 8;\n /** RegularExpression Id. */\n int OPEN_PARENTHESIS = 9;\n /** RegularExpression Id. */\n int CLOSED_PARENTHESIS = 10;\n /** RegularExpression Id. */\n int OPEN_BRACKET = 11;\n /** RegularExpression Id. */\n int CLOSED_BRACKET = 12;\n /** RegularExpression Id. */\n int OPEN_BRACE = 13;\n /** RegularExpression Id. */\n int CLOSED_BRACE = 14;\n /** RegularExpression Id. */\n int SEMICOLON = 15;\n /** RegularExpression Id. */\n int EQUALS = 16;\n /** RegularExpression Id. */\n int COMPARISON = 17;\n /** RegularExpression Id. */\n int LESS = 18;\n /** RegularExpression Id. */\n int GREATER = 19;\n /** RegularExpression Id. */\n int NUMBER = 20;\n /** RegularExpression Id. */\n int DIGIT = 21;\n /** RegularExpression Id. */\n int LETTER = 22;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"<COMPARISON>\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"<NUMBER>\",\n \"<DIGIT>\",\n \"<LETTER>\",\n \"\\\"new\\\"\",\n \"\\\",\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"for\\\"\",\n \"\\\"int\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n };\n\n}",
"public interface LTLParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int KAS = 9;\n /** RegularExpression Id. */\n int KATE = 10;\n /** RegularExpression Id. */\n int KDATE = 11;\n /** RegularExpression Id. */\n int KEXISTS = 12;\n /** RegularExpression Id. */\n int KFORALL = 13;\n /** RegularExpression Id. */\n int KFORMULA = 14;\n /** RegularExpression Id. */\n int KIN = 15;\n /** RegularExpression Id. */\n int KNUMBER = 16;\n /** RegularExpression Id. */\n int KPI = 17;\n /** RegularExpression Id. */\n int KRENAME = 18;\n /** RegularExpression Id. */\n int KSET = 19;\n /** RegularExpression Id. */\n int KSTRING = 20;\n /** RegularExpression Id. */\n int KSUBFORMULA = 21;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 22;\n /** RegularExpression Id. */\n int REAL_LITERAL = 23;\n /** RegularExpression Id. */\n int EXPONENT = 24;\n /** RegularExpression Id. */\n int STRING_LITERAL = 25;\n /** RegularExpression Id. */\n int DESC_LITERAL = 26;\n /** RegularExpression Id. */\n int PIID = 27;\n /** RegularExpression Id. */\n int ATEID = 28;\n /** RegularExpression Id. */\n int ID = 29;\n /** RegularExpression Id. */\n int IDENTIFIER = 30;\n /** RegularExpression Id. */\n int STARTLETTER = 31;\n /** RegularExpression Id. */\n int LETTER = 32;\n /** RegularExpression Id. */\n int DIGIT = 33;\n /** RegularExpression Id. */\n int LPAREN = 34;\n /** RegularExpression Id. */\n int RPAREN = 35;\n /** RegularExpression Id. */\n int LBRACE = 36;\n /** RegularExpression Id. */\n int RBRACE = 37;\n /** RegularExpression Id. */\n int LBRACKET = 38;\n /** RegularExpression Id. */\n int RBRACKET = 39;\n /** RegularExpression Id. */\n int BAR = 40;\n /** RegularExpression Id. */\n int SEMICOLON = 41;\n /** RegularExpression Id. */\n int COMMA = 42;\n /** RegularExpression Id. */\n int DOT = 43;\n /** RegularExpression Id. */\n int COLON = 44;\n /** RegularExpression Id. */\n int ASSIGN = 45;\n /** RegularExpression Id. */\n int GT = 46;\n /** RegularExpression Id. */\n int LT = 47;\n /** RegularExpression Id. */\n int PNOT = 48;\n /** RegularExpression Id. */\n int SLASH = 49;\n /** RegularExpression Id. */\n int PLUS = 50;\n /** RegularExpression Id. */\n int MINUS = 51;\n /** RegularExpression Id. */\n int STAR = 52;\n /** RegularExpression Id. */\n int EQ = 53;\n /** RegularExpression Id. */\n int LE = 54;\n /** RegularExpression Id. */\n int GE = 55;\n /** RegularExpression Id. */\n int NE = 56;\n /** RegularExpression Id. */\n int REQ = 57;\n /** RegularExpression Id. */\n int POR = 58;\n /** RegularExpression Id. */\n int PAND = 59;\n /** RegularExpression Id. */\n int PIMPLIES = 60;\n /** RegularExpression Id. */\n int PBIIMPLIES = 61;\n /** RegularExpression Id. */\n int LALWAYS = 62;\n /** RegularExpression Id. */\n int LEVENTUALLY = 63;\n /** RegularExpression Id. */\n int LNEXTTIME = 64;\n /** RegularExpression Id. */\n int LUNTIL = 65;\n /** RegularExpression Id. */\n int URI = 66;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_SINGLE_LINE_COMMENT = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"#\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"<token of kind 8>\",\n \"\\\"as\\\"\",\n \"\\\"ate\\\"\",\n \"\\\"date\\\"\",\n \"\\\"exists\\\"\",\n \"\\\"forall\\\"\",\n \"\\\"formula\\\"\",\n \"\\\"in\\\"\",\n \"\\\"number\\\"\",\n \"\\\"pi\\\"\",\n \"\\\"rename\\\"\",\n \"\\\"set\\\"\",\n \"\\\"string\\\"\",\n \"\\\"subformula\\\"\",\n \"<INTEGER_LITERAL>\",\n \"<REAL_LITERAL>\",\n \"<EXPONENT>\",\n \"<STRING_LITERAL>\",\n \"<DESC_LITERAL>\",\n \"<PIID>\",\n \"<ATEID>\",\n \"<ID>\",\n \"<IDENTIFIER>\",\n \"<STARTLETTER>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"|\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\":\\\"\",\n \"\\\":=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\"!\\\"\",\n \"\\\"/\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"~=\\\"\",\n \"\\\"\\\\\\\\/\\\"\",\n \"\\\"/\\\\\\\\\\\"\",\n \"\\\"->\\\"\",\n \"\\\"<->\\\"\",\n \"\\\"[]\\\"\",\n \"\\\"<>\\\"\",\n \"\\\"_O\\\"\",\n \"\\\"_U\\\"\",\n \"<URI>\",\n };\n\n}",
"public interface DefccConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int MODULE_TKN = 11;\n /** RegularExpression Id. */\n int CLASS_TKN = 12;\n /** RegularExpression Id. */\n int INCLUDE_TKN = 13;\n /** RegularExpression Id. */\n int BYTE_TKN = 14;\n /** RegularExpression Id. */\n int BOOLEAN_TKN = 15;\n /** RegularExpression Id. */\n int INT_TKN = 16;\n /** RegularExpression Id. */\n int LONG_TKN = 17;\n /** RegularExpression Id. */\n int FLOAT_TKN = 18;\n /** RegularExpression Id. */\n int DOUBLE_TKN = 19;\n /** RegularExpression Id. */\n int STRING_TKN = 20;\n /** RegularExpression Id. */\n int BUFFER_TKN = 21;\n /** RegularExpression Id. */\n int VECTOR_TKN = 22;\n /** RegularExpression Id. */\n int MAP_TKN = 23;\n /** RegularExpression Id. */\n int LBRACE_TKN = 24;\n /** RegularExpression Id. */\n int RBRACE_TKN = 25;\n /** RegularExpression Id. */\n int LT_TKN = 26;\n /** RegularExpression Id. */\n int GT_TKN = 27;\n /** RegularExpression Id. */\n int SEMICOLON_TKN = 28;\n /** RegularExpression Id. */\n int COMMA_TKN = 29;\n /** RegularExpression Id. */\n int DOT_TKN = 30;\n /** RegularExpression Id. */\n int CSTRING_TKN = 31;\n /** RegularExpression Id. */\n int IDENT_TKN = 32;\n /** RegularExpression Id. */\n int IDENT_TKN_W_DOT = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int WithinOneLineComment = 1;\n /** Lexical state. */\n int WithinMultiLineComment = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"//\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"/*\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"module\\\"\",\n \"\\\"class\\\"\",\n \"\\\"include\\\"\",\n \"\\\"byte\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"int\\\"\",\n \"\\\"long\\\"\",\n \"\\\"float\\\"\",\n \"\\\"double\\\"\",\n \"\\\"string\\\"\",\n \"\\\"buffer\\\"\",\n \"\\\"vector\\\"\",\n \"\\\"map\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"<CSTRING_TKN>\",\n \"<IDENT_TKN>\",\n \"<IDENT_TKN_W_DOT>\",\n };\n\n}",
"public interface TypeScriptParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int DIGIT = 6;\n /** RegularExpression Id. */\n int ONE_TO_NINE = 7;\n /** RegularExpression Id. */\n int LETTER = 8;\n /** RegularExpression Id. */\n int SPACE = 9;\n /** RegularExpression Id. */\n int VAR = 10;\n /** RegularExpression Id. */\n int IF = 11;\n /** RegularExpression Id. */\n int ELSE_IF = 12;\n /** RegularExpression Id. */\n int ELSE = 13;\n /** RegularExpression Id. */\n int FUNCTION = 14;\n /** RegularExpression Id. */\n int BOOLEAN = 15;\n /** RegularExpression Id. */\n int NUMBER = 16;\n /** RegularExpression Id. */\n int STRING = 17;\n /** RegularExpression Id. */\n int ENUM = 18;\n /** RegularExpression Id. */\n int INTERFACE = 19;\n /** RegularExpression Id. */\n int RETURN = 20;\n /** RegularExpression Id. */\n int VOID = 21;\n /** RegularExpression Id. */\n int WHILE = 22;\n /** RegularExpression Id. */\n int PRINTLN = 23;\n /** RegularExpression Id. */\n int TRUE = 24;\n /** RegularExpression Id. */\n int FALSE = 25;\n /** RegularExpression Id. */\n int NOT = 26;\n /** RegularExpression Id. */\n int AMPRSAND = 27;\n /** RegularExpression Id. */\n int MUL = 28;\n /** RegularExpression Id. */\n int MINUS = 29;\n /** RegularExpression Id. */\n int PLUS = 30;\n /** RegularExpression Id. */\n int EQ = 31;\n /** RegularExpression Id. */\n int BAR = 32;\n /** RegularExpression Id. */\n int DIV = 33;\n /** RegularExpression Id. */\n int COLON = 34;\n /** RegularExpression Id. */\n int SEMICOLON = 35;\n /** RegularExpression Id. */\n int QM = 36;\n /** RegularExpression Id. */\n int COMMA = 37;\n /** RegularExpression Id. */\n int DOT = 38;\n /** RegularExpression Id. */\n int SINGLE_QUOTE = 39;\n /** RegularExpression Id. */\n int QUOTE = 40;\n /** RegularExpression Id. */\n int LEFT_PARAN = 41;\n /** RegularExpression Id. */\n int RIGHT_PARAN = 42;\n /** RegularExpression Id. */\n int LEFT_BRAKET = 43;\n /** RegularExpression Id. */\n int RIGHT_BRAKET = 44;\n /** RegularExpression Id. */\n int LEFT_BRACE = 45;\n /** RegularExpression Id. */\n int RIGHT_BRACE = 46;\n /** RegularExpression Id. */\n int UNDER_SCORE = 47;\n /** RegularExpression Id. */\n int LT = 48;\n /** RegularExpression Id. */\n int GT = 49;\n /** RegularExpression Id. */\n int LE = 50;\n /** RegularExpression Id. */\n int GE = 51;\n /** RegularExpression Id. */\n int DOUBLE_EQ = 52;\n /** RegularExpression Id. */\n int OR = 53;\n /** RegularExpression Id. */\n int AND = 54;\n /** RegularExpression Id. */\n int NOT_EQ = 55;\n /** RegularExpression Id. */\n int MATH_OP = 56;\n /** RegularExpression Id. */\n int STRING_LITERAL = 57;\n /** RegularExpression Id. */\n int IDENTIFIER = 58;\n /** RegularExpression Id. */\n int NUM = 59;\n /** RegularExpression Id. */\n int INTEGER = 60;\n /** RegularExpression Id. */\n int REAL = 61;\n /** RegularExpression Id. */\n int SIGN = 62;\n /** RegularExpression Id. */\n int ERROR = 63;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"<DIGIT>\",\n \"<ONE_TO_NINE>\",\n \"<LETTER>\",\n \"<SPACE>\",\n \"\\\"var\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"function\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"number\\\"\",\n \"\\\"char\\\"\",\n \"\\\"enum\\\"\",\n \"\\\"interface\\\"\",\n \"\\\"return\\\"\",\n \"\\\"void\\\"\",\n \"\\\"while\\\"\",\n \"\\\"println\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"!\\\"\",\n \"\\\"&\\\"\",\n \"\\\"*\\\"\",\n \"\\\"-\\\"\",\n \"\\\"+\\\"\",\n \"\\\"=\\\"\",\n \"\\\"|\\\"\",\n \"\\\"/\\\"\",\n \"\\\":\\\"\",\n \"\\\";\\\"\",\n \"\\\"?\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"_\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"||\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"!=\\\"\",\n \"<MATH_OP>\",\n \"<STRING_LITERAL>\",\n \"<IDENTIFIER>\",\n \"<NUM>\",\n \"<INTEGER>\",\n \"<REAL>\",\n \"\\\"\\\"\",\n \"<ERROR>\",\n };\n\n}",
"public interface UATokenizerConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int WHITESPACE = 1;\n /** RegularExpression Id. */\n int CHAR = 5;\n /** RegularExpression Id. */\n int PICTURES = 6;\n /** RegularExpression Id. */\n int FILLERWORDS = 7;\n /** RegularExpression Id. */\n int THREELETTERWORDS = 8;\n /** RegularExpression Id. */\n int EMAIL = 9;\n /** RegularExpression Id. */\n int PRICES = 10;\n /** RegularExpression Id. */\n int DOMAIN = 11;\n /** RegularExpression Id. */\n int PHONE = 12;\n /** RegularExpression Id. */\n int PHONE2 = 13;\n /** RegularExpression Id. */\n int PHONE3 = 14;\n /** RegularExpression Id. */\n int WORD = 15;\n /** RegularExpression Id. */\n int HTML = 16;\n /** RegularExpression Id. */\n int HTML2 = 17;\n /** RegularExpression Id. */\n int HTMLCOMMENTS = 18;\n /** RegularExpression Id. */\n int NUMBER = 19;\n /** RegularExpression Id. */\n int TOPLEVELDOMAINS = 20;\n /** RegularExpression Id. */\n int SYMBOLS = 21;\n /** RegularExpression Id. */\n int OTHER = 22;\n /** RegularExpression Id. */\n int CHARACTERS = 23;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<CHAR>\",\n \"<PICTURES>\",\n \"<FILLERWORDS>\",\n \"<THREELETTERWORDS>\",\n \"<EMAIL>\",\n \"<PRICES>\",\n \"<DOMAIN>\",\n \"<PHONE>\",\n \"<PHONE2>\",\n \"<PHONE3>\",\n \"<WORD>\",\n \"<HTML>\",\n \"<HTML2>\",\n \"<HTMLCOMMENTS>\",\n \"<NUMBER>\",\n \"<TOPLEVELDOMAINS>\",\n \"<SYMBOLS>\",\n \"<OTHER>\",\n \"<CHARACTERS>\",\n };\n\n}",
"public interface ParserASTConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int KW_CLASS = 8;\n /** RegularExpression Id. */\n int KW_PUBLIC = 9;\n /** RegularExpression Id. */\n int KW_STATIC = 10;\n /** RegularExpression Id. */\n int KW_VOID = 11;\n /** RegularExpression Id. */\n int KW_MAIN = 12;\n /** RegularExpression Id. */\n int KW_STRING = 13;\n /** RegularExpression Id. */\n int KW_EXTENDS = 14;\n /** RegularExpression Id. */\n int KW_RETURN = 15;\n /** RegularExpression Id. */\n int KW_INT = 16;\n /** RegularExpression Id. */\n int KW_BOOLEAN = 17;\n /** RegularExpression Id. */\n int KW_IF = 18;\n /** RegularExpression Id. */\n int KW_ELSE = 19;\n /** RegularExpression Id. */\n int KW_WHILE = 20;\n /** RegularExpression Id. */\n int KW_TRUE = 21;\n /** RegularExpression Id. */\n int KW_FALSE = 22;\n /** RegularExpression Id. */\n int KW_THIS = 23;\n /** RegularExpression Id. */\n int KW_NEW = 24;\n /** RegularExpression Id. */\n int KW_PRINT = 25;\n /** RegularExpression Id. */\n int SYM_LBRACE = 26;\n /** RegularExpression Id. */\n int SYM_RBRACE = 27;\n /** RegularExpression Id. */\n int SYM_LPAREN = 28;\n /** RegularExpression Id. */\n int SYM_RPAREN = 29;\n /** RegularExpression Id. */\n int SYM_LSQPAREN = 30;\n /** RegularExpression Id. */\n int SYM_RSQPAREN = 31;\n /** RegularExpression Id. */\n int SYM_SEMICOLON = 32;\n /** RegularExpression Id. */\n int SYM_EQUAL = 33;\n /** RegularExpression Id. */\n int SYM_AMPAMP = 34;\n /** RegularExpression Id. */\n int SYM_BARBAR = 35;\n /** RegularExpression Id. */\n int SYM_LESS = 36;\n /** RegularExpression Id. */\n int SYM_LESSEQUAL = 37;\n /** RegularExpression Id. */\n int SYM_EQUALEQUAL = 38;\n /** RegularExpression Id. */\n int SYM_EXCLEQUAL = 39;\n /** RegularExpression Id. */\n int SYM_MORE = 40;\n /** RegularExpression Id. */\n int SYM_MOREEQUAL = 41;\n /** RegularExpression Id. */\n int SYM_PLUS = 42;\n /** RegularExpression Id. */\n int SYM_MINUS = 43;\n /** RegularExpression Id. */\n int SYM_STAR = 44;\n /** RegularExpression Id. */\n int SYM_SLASH = 45;\n /** RegularExpression Id. */\n int SYM_PERCENT = 46;\n /** RegularExpression Id. */\n int SYM_EXCL = 47;\n /** RegularExpression Id. */\n int SYM_DOT = 48;\n /** RegularExpression Id. */\n int SYM_COMMA = 49;\n /** RegularExpression Id. */\n int IDENTIFIER = 50;\n /** RegularExpression Id. */\n int INT_LITERAL = 51;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"\\\\r\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"\\\"class\\\"\",\n \"\\\"public\\\"\",\n \"\\\"static\\\"\",\n \"\\\"void\\\"\",\n \"\\\"main\\\"\",\n \"\\\"String\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"return\\\"\",\n \"\\\"int\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"while\\\"\",\n \"\\\"true\\\"\",\n \"\\\"false\\\"\",\n \"\\\"this\\\"\",\n \"\\\"new\\\"\",\n \"\\\"System.out.println\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\"=\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"||\\\"\",\n \"\\\"<\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\">\\\"\",\n \"\\\">=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\".\\\"\",\n \"\\\",\\\"\",\n \"<IDENTIFIER>\",\n \"<INT_LITERAL>\",\n };\n\n}",
"java_cup.runtime.Symbol TOKEN(int code) { return TOKEN(code, yytext()); }",
"private static void initialize() {\n\n addToken(\"COMMENT1\", \"\\\\/\\\\/.*\");\n addToken(\"COMMENT2\", \"\\\\/\\\\*((?!\\\\*\\\\/)[\\\\w\\\\W])*\\\\*\\\\/\");\n\n // In case of unmatched comment key characters.\n addToken(\"COMMENT_L\", \"\\\\/\\\\*\");\n addToken(\"COMMENT_R\", \"\\\\*\\\\/\");\n\n // addToken(\"EOL\", \"\\\\n\");\n\n // Arithmetic operators.\n addToken(\"PLUS\", \"\\\\+\");\n addToken(\"MINUS\", \"-\");\n addToken(\"MULTIPLY\", \"\\\\*\");\n addToken(\"DIVIDE\", \"\\\\/\");\n\n addToken(\"EQUAL\", \"=\");\n\n addToken(\"LESS_THAN\", \"<\");\n addToken(\"GREATER_THAN\", \"<\");\n\n addToken(\"IF\", \"\\\\bif\\\\b\");\n addToken(\"ELSE\", \"\\\\belse\\\\b\");\n addToken(\"WHILE\", \"\\\\bwhile\\\\b\");\n\n addToken(\"RETURN\", \"\\\\breturn\\\\b\");\n\n addToken(\"THIS\", \"\\\\bthis\\\\b\");\n\n addToken(\"CLASS\", \"\\\\bclass\\\\b\");\n\n addToken(\"PUBLIC\", \"\\\\bpublic\\\\b\");\n addToken(\"PRIVATE\", \"\\\\bprivate\\\\b\");\n\n addToken(\"LENGTH\", \"\\\\blength\\\\b\");\n\n addToken(\"EXTENDS\", \"\\\\bextends\\\\b\");\n\n addToken(\"SYSTEM.OUT.PRINTLN\", \"\\\\bSystem\\\\.out\\\\.println\\\\b\");\n\n addToken(\"STATIC\", \"\\\\bstatic\\\\b\");\n\n addToken(\"NEW\", \"\\\\bnew\\\\b\");\n\n addToken(\"FLOAT\", \"\\\\bfloat\\\\b\");\n addToken(\"INT\", \"\\\\bint\\\\b\");\n addToken(\"CHARACTER\", \"\\\\bchar\\\\b\");\n addToken(\"BOOLEAN\", \"\\\\bboolean\\\\b\");\n addToken(\"String\", \"\\\\bString\\\\b\");\n addToken(\"VOID\", \"\\\\bvoid\\\\b\");\n\n addToken(\"TRUE\", \"\\\\btrue\\\\b\");\n addToken(\"FALSE\", \"\\\\bfalse\\\\b\");\n\n // Brackets.\n addToken(\"LEFT_CURLY_BRACKET\", \"\\\\{\");\n addToken(\"RIGHT_CURLY_BRACKET\", \"\\\\}\");\n addToken(\"LEFT_SQUARE_BRACKET\", \"\\\\[\");\n addToken(\"RIGHT_SQUARE_BRACKET\", \"\\\\]\");\n addToken(\"LEFT_ROUND_BRACKET\", \"\\\\(\");\n addToken(\"RIGHT_ROUND_BRACKET\", \"\\\\)\");\n\n addToken(\"COMMA\", \",\");\n addToken(\"SEMICOLON\", \";\");\n addToken(\"DOT\", \"\\\\.\");\n addToken(\"NOT\", \"\\\\!\");\n\n addToken(\"AND\", \"&&\");\n\n // Literals.\n addToken(\"FLOAT_LITERAL\", \"\\\\b[0-9]*\\\\.[0-9]*\\\\b\");\n addToken(\"INTEGRAL_LITERAL\", \"\\\\b[0-9]+\\\\b\");\n addToken(\"CHARACTER_LITERAL\", \"'.'\");\n addToken(\"STRING_LITERAL\", \"\\\".*\\\"\");\n\n addToken(\"Identifier\", \"\\\\b[a-zA-Z]+\\\\w*\\\\b\");\n\n addToken(\"SINGLE_QUOTE\", \"'\");\n addToken(\"DOUBLE_QUOTE\", \"\\\"\");\n }",
"public interface LuaTokenTypes extends LuaDocElementTypes {\n //IFileElementType FILE = new IFileElementType(Language.findInstance(LuaLanguage.class));\n /**\n * Wrong token. Use for debugger needs\n */\n IElementType WRONG = TokenType.BAD_CHARACTER;\n\n\n /* **************************************************************************************************\n * Whitespaces & NewLines\n * ****************************************************************************************************/\n\n IElementType NL_BEFORE_LONGSTRING = new LuaElementType(\"newline after longstring stert bracket\");\n IElementType WS = TokenType.WHITE_SPACE;\n IElementType NEWLINE = new LuaElementType(\"new line\");\n\n TokenSet WHITE_SPACES_SET = TokenSet.create(WS, NEWLINE, TokenType.WHITE_SPACE, LDOC_WHITESPACE, NL_BEFORE_LONGSTRING);\n\n /* **************************************************************************************************\n * Comments\n * ****************************************************************************************************/\n\n IElementType SHEBANG = new LuaElementType(\"shebang - should ignore\");\n\n IElementType LONGCOMMENT = new LuaElementType(\"long comment\");\n IElementType SHORTCOMMENT = new LuaElementType(\"short comment\");\n\n IElementType LONGCOMMENT_BEGIN = new LuaElementType(\"long comment start bracket\");\n IElementType LONGCOMMENT_END = new LuaElementType(\"long comment end bracket\");\n\n TokenSet COMMENT_SET = TokenSet.create(SHORTCOMMENT, LONGCOMMENT, SHEBANG, LUADOC_COMMENT, LONGCOMMENT_BEGIN,\n LONGCOMMENT_END);\n\n TokenSet COMMENT_AND_WHITESPACE_SET = TokenSet.orSet(COMMENT_SET, WHITE_SPACES_SET);\n /* **************************************************************************************************\n * Identifiers\n * ****************************************************************************************************/\n\n IElementType NAME = new LuaElementType(\"identifier\");\n\n /* **************************************************************************************************\n * Integers & floats\n * ****************************************************************************************************/\n\n IElementType NUMBER = new LuaElementType(\"number\");\n\n /* **************************************************************************************************\n * Strings & regular expressions\n * ****************************************************************************************************/\n\n IElementType STRING = new LuaElementType(\"string\");\n IElementType LONGSTRING = new LuaElementType(\"long string\");\n\n IElementType LONGSTRING_BEGIN = new LuaElementType(\"long string start bracket\");\n IElementType LONGSTRING_END = new LuaElementType(\"long string end bracket\");\n\n\n\n TokenSet STRING_LITERAL_SET = TokenSet.create(STRING, LONGSTRING, LONGSTRING_BEGIN, LONGSTRING_END);\n\n\n IElementType UNTERMINATED_STRING = new LuaElementType(\"unterminated string\");\n\n\n /* **************************************************************************************************\n * Common tokens: operators, braces etc.\n * ****************************************************************************************************/\n\n\n IElementType DIV = new LuaElementType(\"/\");\n IElementType MULT = new LuaElementType(\"*\");\n IElementType LPAREN = new LuaElementType(\"(\");\n IElementType RPAREN = new LuaElementType(\")\");\n IElementType LBRACK = new LuaElementType(\"[\");\n IElementType RBRACK = new LuaElementType(\"]\");\n IElementType LCURLY = new LuaElementType(\"{\");\n IElementType RCURLY = new LuaElementType(\"}\");\n IElementType COLON = new LuaElementType(\":\");\n IElementType COMMA = new LuaElementType(\",\");\n IElementType DOT = new LuaElementType(\".\");\n IElementType ASSIGN = new LuaElementType(\"=\");\n IElementType SEMI = new LuaElementType(\";\");\n IElementType EQ = new LuaElementType(\"==\");\n IElementType NE = new LuaElementType(\"~=\");\n IElementType PLUS = new LuaElementType(\"+\");\n IElementType MINUS = new LuaElementType(\"-\");\n IElementType GE = new LuaElementType(\">=\");\n IElementType GT = new LuaElementType(\">\");\n IElementType EXP = new LuaElementType(\"^\");\n IElementType LE = new LuaElementType(\"<=\");\n IElementType LT = new LuaElementType(\"<\");\n IElementType ELLIPSIS = new LuaElementType(\"...\");\n IElementType CONCAT = new LuaElementType(\"..\");\n IElementType GETN = new LuaElementType(\"#\");\n IElementType MOD = new LuaElementType(\"%\");\n\n /* **************************************************************************************************\n * Keywords\n * ****************************************************************************************************/\n\n\n IElementType IF = new LuaElementType(\"if\");\n IElementType ELSE = new LuaElementType(\"else\");\n IElementType ELSEIF = new LuaElementType(\"elseif\");\n IElementType WHILE = new LuaElementType(\"while\");\n IElementType WITH = new LuaElementType(\"with\");\n\n IElementType THEN = new LuaElementType(\"then\");\n IElementType FOR = new LuaElementType(\"for\");\n IElementType IN = new LuaElementType(\"in\");\n IElementType RETURN = new LuaElementType(\"return\");\n IElementType BREAK = new LuaElementType(\"break\");\n\n IElementType CONTINUE = new LuaElementType(\"continue\");\n IElementType TRUE = new LuaElementType(\"true\");\n IElementType FALSE = new LuaElementType(\"false\");\n IElementType NIL = new LuaElementType(\"nil\");\n IElementType FUNCTION = new LuaElementType(\"function\");\n\n IElementType DO = new LuaElementType(\"do\");\n IElementType NOT = new LuaElementType(\"not\");\n IElementType AND = new LuaElementType(\"and\");\n IElementType OR = new LuaElementType(\"or\");\n IElementType LOCAL = new LuaElementType(\"local\");\n\n IElementType REPEAT = new LuaElementType(\"repeat\");\n IElementType UNTIL = new LuaElementType(\"until\");\n IElementType END = new LuaElementType(\"end\");\n\n /*\n IElementType MODULE = new LuaElementType(\"module\");\n IElementType REQUIRE = new LuaElementType(\"require\");\n */\n\n\n\n TokenSet KEYWORDS = TokenSet.create(DO, FUNCTION, NOT, AND, OR,\n WITH, IF, THEN, ELSEIF, THEN, ELSE,\n WHILE, FOR, IN, RETURN, BREAK,\n CONTINUE, LOCAL,\n REPEAT, UNTIL, END/*, MODULE, REQUIRE */);\n\n TokenSet BRACES = TokenSet.create(LCURLY, RCURLY);\n TokenSet PARENS = TokenSet.create(LPAREN, RPAREN);\n TokenSet BRACKS = TokenSet.create(LBRACK, RBRACK);\n\n TokenSet BAD_INPUT = TokenSet.create(WRONG, UNTERMINATED_STRING);\n \n TokenSet DEFINED_CONSTANTS = TokenSet.create(NIL, TRUE, FALSE);\n\n TokenSet UNARY_OP_SET = TokenSet.create(MINUS, GETN);\n\n TokenSet BINARY_OP_SET = TokenSet.create(\n MINUS, PLUS, DIV, MULT, EXP, MOD,\n CONCAT);\n\n TokenSet BLOCK_OPEN_SET = TokenSet.create(THEN, RPAREN, DO, ELSE, ELSEIF);\n TokenSet BLOCK_CLOSE_SET = TokenSet.create(END, ELSE, ELSEIF, UNTIL);\n\n TokenSet COMPARE_OPS = TokenSet.create(EQ, GE, GT, LT, LE, NE);\n TokenSet LOGICAL_OPS = TokenSet.create(AND, OR, NOT);\n TokenSet ARITHMETIC_OPS = TokenSet.create(MINUS, PLUS, DIV, EXP, MOD);\n\n TokenSet TABLE_ACCESS = TokenSet.create(DOT, COLON, LBRACK);\n\n TokenSet LITERALS_SET = TokenSet.create(NUMBER, NIL, TRUE, FALSE, STRING, LONGSTRING, LONGSTRING_BEGIN, LONGSTRING_END);\n\n TokenSet IDENTIFIERS_SET = TokenSet.create(NAME);\n\n TokenSet WHITE_SPACES_OR_COMMENTS = TokenSet.orSet(WHITE_SPACES_SET, COMMENT_SET);\n\n TokenSet OPERATORS_SET = TokenSet.orSet(BINARY_OP_SET, UNARY_OP_SET, COMPARE_OPS, TokenSet.create(ASSIGN));\n}",
"public String toString()\n {\n return \"LiteralOPToken(\" + getValue() + \")\";\n }",
"public interface ForteLangConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMPARATOR_OP = 1;\n /** RegularExpression Id. */\n int BOOLEAN_OP = 2;\n /** RegularExpression Id. */\n int SET_OP = 3;\n /** RegularExpression Id. */\n int OP = 4;\n /** RegularExpression Id. */\n int CONCAT = 5;\n /** RegularExpression Id. */\n int SELECT = 6;\n /** RegularExpression Id. */\n int CONTAINS = 7;\n /** RegularExpression Id. */\n int NUMBER = 8;\n /** RegularExpression Id. */\n int FLOATING_POINT_NUMBER = 9;\n /** RegularExpression Id. */\n int BOOLEAN = 10;\n /** RegularExpression Id. */\n int STRING = 11;\n /** RegularExpression Id. */\n int REGEX_STRING = 12;\n /** RegularExpression Id. */\n int INCLUDE = 13;\n /** RegularExpression Id. */\n int IN = 14;\n /** RegularExpression Id. */\n int MATCH = 15;\n /** RegularExpression Id. */\n int OPENBRACKET = 16;\n /** RegularExpression Id. */\n int CLOSEBRACKET = 17;\n /** RegularExpression Id. */\n int OPENSBRACKET = 18;\n /** RegularExpression Id. */\n int CLOSESBRACKET = 19;\n /** RegularExpression Id. */\n int COMMA = 20;\n /** RegularExpression Id. */\n int EQUALS = 21;\n /** RegularExpression Id. */\n int SEMICOLON = 22;\n /** RegularExpression Id. */\n int OPENCBRACKET = 23;\n /** RegularExpression Id. */\n int CLOSECBRACKET = 24;\n /** RegularExpression Id. */\n int NUM = 25;\n /** RegularExpression Id. */\n int LST = 26;\n /** RegularExpression Id. */\n int SET = 27;\n /** RegularExpression Id. */\n int FUN = 28;\n /** RegularExpression Id. */\n int BOO = 29;\n /** RegularExpression Id. */\n int STR = 30;\n /** RegularExpression Id. */\n int COLON = 31;\n /** RegularExpression Id. */\n int VAR_NAME = 32;\n /** RegularExpression Id. */\n int FUNCTION_ARROW = 33;\n /** RegularExpression Id. */\n int GUARD_START = 34;\n /** RegularExpression Id. */\n int GUARD = 35;\n /** RegularExpression Id. */\n int GUARD_ARROW = 36;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int BlockComment = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<COMPARATOR_OP>\",\n \"<BOOLEAN_OP>\",\n \"<SET_OP>\",\n \"<OP>\",\n \"\\\"++\\\"\",\n \"\\\".\\\"\",\n \"\\\"?\\\"\",\n \"<NUMBER>\",\n \"<FLOATING_POINT_NUMBER>\",\n \"<BOOLEAN>\",\n \"<STRING>\",\n \"<REGEX_STRING>\",\n \"\\\"include\\\"\",\n \"\\\"in\\\"\",\n \"\\\"match\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\",\\\"\",\n \"\\\"=\\\"\",\n \"\\\";\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"num\\\"\",\n \"\\\"list\\\"\",\n \"\\\"set\\\"\",\n \"\\\"func\\\"\",\n \"\\\"bool\\\"\",\n \"\\\"str\\\"\",\n \"\\\":\\\"\",\n \"<VAR_NAME>\",\n \"\\\"->\\\"\",\n \"\\\"|>\\\"\",\n \"\\\"|\\\"\",\n \"\\\"->>\\\"\",\n \"<token of kind 37>\",\n \"<token of kind 38>\",\n \"\\\"#[\\\"\",\n \"\\\"#[\\\"\",\n \"<token of kind 41>\",\n \"\\\"]#\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n };\n\n}",
"public interface langBConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int BREAK = 12;\n /** RegularExpression Id. */\n int CLASS = 13;\n /** RegularExpression Id. */\n int CONSTRUCTOR = 14;\n /** RegularExpression Id. */\n int ELSE = 15;\n /** RegularExpression Id. */\n int EXTENDS = 16;\n /** RegularExpression Id. */\n int FOR = 17;\n /** RegularExpression Id. */\n int IF = 18;\n /** RegularExpression Id. */\n int THEN = 19;\n /** RegularExpression Id. */\n int INT = 20;\n /** RegularExpression Id. */\n int NEW = 21;\n /** RegularExpression Id. */\n int PRINT = 22;\n /** RegularExpression Id. */\n int READ = 23;\n /** RegularExpression Id. */\n int RETURN = 24;\n /** RegularExpression Id. */\n int STRING = 25;\n /** RegularExpression Id. */\n int SUPER = 26;\n /** RegularExpression Id. */\n int BOOLEAN = 27;\n /** RegularExpression Id. */\n int TRUE = 28;\n /** RegularExpression Id. */\n int FALSE = 29;\n /** RegularExpression Id. */\n int WHILE = 30;\n /** RegularExpression Id. */\n int SWITCH = 31;\n /** RegularExpression Id. */\n int CASE = 32;\n /** RegularExpression Id. */\n int int_constant = 33;\n /** RegularExpression Id. */\n int string_constant = 34;\n /** RegularExpression Id. */\n int null_constant = 35;\n /** RegularExpression Id. */\n int IDENT = 36;\n /** RegularExpression Id. */\n int LETTER = 37;\n /** RegularExpression Id. */\n int DIGIT = 38;\n /** RegularExpression Id. */\n int UNDERSCORE = 39;\n /** RegularExpression Id. */\n int LPAREN = 40;\n /** RegularExpression Id. */\n int RPAREN = 41;\n /** RegularExpression Id. */\n int LBRACE = 42;\n /** RegularExpression Id. */\n int RBRACE = 43;\n /** RegularExpression Id. */\n int LBRACKET = 44;\n /** RegularExpression Id. */\n int RBRACKET = 45;\n /** RegularExpression Id. */\n int SEMICOLON = 46;\n /** RegularExpression Id. */\n int COMMA = 47;\n /** RegularExpression Id. */\n int DOT = 48;\n /** RegularExpression Id. */\n int DDOT = 49;\n /** RegularExpression Id. */\n int QUESTIONMARK = 50;\n /** RegularExpression Id. */\n int ASSIGN = 51;\n /** RegularExpression Id. */\n int GT = 52;\n /** RegularExpression Id. */\n int LT = 53;\n /** RegularExpression Id. */\n int EQ = 54;\n /** RegularExpression Id. */\n int LE = 55;\n /** RegularExpression Id. */\n int GE = 56;\n /** RegularExpression Id. */\n int NEQ = 57;\n /** RegularExpression Id. */\n int PLUS = 58;\n /** RegularExpression Id. */\n int MINUS = 59;\n /** RegularExpression Id. */\n int STAR = 60;\n /** RegularExpression Id. */\n int SLASH = 61;\n /** RegularExpression Id. */\n int REM = 62;\n /** RegularExpression Id. */\n int OR = 63;\n /** RegularExpression Id. */\n int AND = 64;\n /** RegularExpression Id. */\n int INVALID_LEXICAL = 65;\n /** RegularExpression Id. */\n int INVALID_CONST = 66;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int multilinecomment = 1;\n /** Lexical state. */\n int singlelinecomment = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"/*\\\"\",\n \"\\\"//\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 9>\",\n \"<token of kind 10>\",\n \"<token of kind 11>\",\n \"\\\"parar\\\"\",\n \"\\\"classe\\\"\",\n \"\\\"construtor\\\"\",\n \"\\\"senao\\\"\",\n \"\\\"herda\\\"\",\n \"\\\"para\\\"\",\n \"\\\"se\\\"\",\n \"\\\"entao\\\"\",\n \"\\\"inteiro\\\"\",\n \"\\\"novo\\\"\",\n \"\\\"imprimir\\\"\",\n \"\\\"ler\\\"\",\n \"\\\"retornar\\\"\",\n \"\\\"texto\\\"\",\n \"\\\"super\\\"\",\n \"\\\"cara_coroa\\\"\",\n \"\\\"cara\\\"\",\n \"\\\"coroa\\\"\",\n \"\\\"enquanto\\\"\",\n \"\\\"trocar\\\"\",\n \"\\\"caso\\\"\",\n \"<int_constant>\",\n \"<string_constant>\",\n \"\\\"nulo\\\"\",\n \"<IDENT>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"<UNDERSCORE>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\":\\\"\",\n \"\\\"?\\\"\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"<INVALID_LEXICAL>\",\n \"<INVALID_CONST>\",\n };\n\n}",
"private TemplateLiteralToken nextTemplateLiteralToken() {\n TemplateLiteralToken token = scanner.nextTemplateLiteralToken();\n lastSourcePosition = token.location.end;\n return token;\n }",
"private void parseConstDecl() {\n check(Token.FINAL);\n\n Struct type = parseType();\n\n check(Token.IDENT);\n\n String constName = token.string;\n\n check(Token.ASSIGN);\n\n if (nextToken.kind != Token.NUMBER\n && nextToken.kind != Token.CHAR_CONST) {\n error(\"Expected number or char constant\");\n }\n\n if ((nextToken.kind == Token.NUMBER\n && type != SymbolTable.STRUCT_INT)\n || (nextToken.kind == Token.CHAR_CONST\n && type != SymbolTable.STRUCT_CHAR)) {\n error(\"Incompatible types in constant declaration\");\n }\n\n scan();\n\n int value = token.value;\n\n insert(new SymObject(type, constName, value));\n\n check(Token.SEMICOLON);\n }",
"public interface GrammarConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 7;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 8;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int PLUS = 11;\n /** RegularExpression Id. */\n int MINUS = 12;\n /** RegularExpression Id. */\n int MULTIPLY = 13;\n /** RegularExpression Id. */\n int DIVIDE = 14;\n /** RegularExpression Id. */\n int MOD = 15;\n /** RegularExpression Id. */\n int UBANG = 16;\n /** RegularExpression Id. */\n int LESS_OP = 17;\n /** RegularExpression Id. */\n int MORE_OP = 18;\n /** RegularExpression Id. */\n int WHILE = 19;\n /** RegularExpression Id. */\n int IF = 20;\n /** RegularExpression Id. */\n int ELSE = 21;\n /** RegularExpression Id. */\n int BREAK = 22;\n /** RegularExpression Id. */\n int RETURN = 23;\n /** RegularExpression Id. */\n int CONTINUE = 24;\n /** RegularExpression Id. */\n int ID = 25;\n /** RegularExpression Id. */\n int LETTER = 26;\n /** RegularExpression Id. */\n int INT = 27;\n /** RegularExpression Id. */\n int SEMICOLON = 28;\n /** RegularExpression Id. */\n int LPAREN = 29;\n /** RegularExpression Id. */\n int RPAREN = 30;\n /** RegularExpression Id. */\n int LBRACKET = 31;\n /** RegularExpression Id. */\n int RBRACKET = 32;\n /** RegularExpression Id. */\n int EQUAL = 33;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 1;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 2;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 5>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 10>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"!\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"while\\\"\",\n \"\\\"if\\\"\",\n \"\\\"else\\\"\",\n \"\\\"break\\\"\",\n \"\\\"return\\\"\",\n \"\\\"continue\\\"\",\n \"<ID>\",\n \"<LETTER>\",\n \"<INT>\",\n \"\\\";\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"=\\\"\",\n \"\\\"?\\\"\",\n \"\\\":\\\"\",\n \"\\\"|\\\"\",\n \"\\\"&\\\"\",\n \"\\\"==\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n };\n\n}",
"public interface AssignmentConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int AND = 1;\n /** RegularExpression Id. */\n int OR = 2;\n /** RegularExpression Id. */\n int IMPLIES = 3;\n /** RegularExpression Id. */\n int EQUIVALENT = 4;\n /** RegularExpression Id. */\n int PREDICATE = 5;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<AND>\",\n \"<OR>\",\n \"<IMPLIES>\",\n \"<EQUIVALENT>\",\n \"<PREDICATE>\",\n };\n\n}",
"public interface ParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int LINE_COMMENT = 6;\r\n /** RegularExpression Id. */\r\n int FORMAL_COMMENT = 7;\r\n /** RegularExpression Id. */\r\n int MULTILINE_COMMENT = 8;\r\n /** RegularExpression Id. */\r\n int INT = 9;\r\n /** RegularExpression Id. */\r\n int VOID = 10;\r\n /** RegularExpression Id. */\r\n int STRING = 11;\r\n /** RegularExpression Id. */\r\n int BOOLEAN = 12;\r\n /** RegularExpression Id. */\r\n int NULL = 13;\r\n /** RegularExpression Id. */\r\n int THIS = 14;\r\n /** RegularExpression Id. */\r\n int TRUE = 15;\r\n /** RegularExpression Id. */\r\n int FALSE = 16;\r\n /** RegularExpression Id. */\r\n int MAIN = 17;\r\n /** RegularExpression Id. */\r\n int LENGTH = 18;\r\n /** RegularExpression Id. */\r\n int PRINT = 19;\r\n /** RegularExpression Id. */\r\n int IF = 20;\r\n /** RegularExpression Id. */\r\n int NEW = 21;\r\n /** RegularExpression Id. */\r\n int ELSE = 22;\r\n /** RegularExpression Id. */\r\n int CLASS = 23;\r\n /** RegularExpression Id. */\r\n int WHILE = 24;\r\n /** RegularExpression Id. */\r\n int PUBLIC = 25;\r\n /** RegularExpression Id. */\r\n int RETURN = 26;\r\n /** RegularExpression Id. */\r\n int STATIC = 27;\r\n /** RegularExpression Id. */\r\n int EXTENDS = 28;\r\n /** RegularExpression Id. */\r\n int INTERFACE = 29;\r\n /** RegularExpression Id. */\r\n int ADD = 30;\r\n /** RegularExpression Id. */\r\n int SUB = 31;\r\n /** RegularExpression Id. */\r\n int MULT = 32;\r\n /** RegularExpression Id. */\r\n int AND = 33;\r\n /** RegularExpression Id. */\r\n int NOT = 34;\r\n /** RegularExpression Id. */\r\n int LESS = 35;\r\n /** RegularExpression Id. */\r\n int ASSIGN = 36;\r\n /** RegularExpression Id. */\r\n int LPARENS = 37;\r\n /** RegularExpression Id. */\r\n int RPARENS = 38;\r\n /** RegularExpression Id. */\r\n int LBRACKET = 39;\r\n /** RegularExpression Id. */\r\n int RBRACKET = 40;\r\n /** RegularExpression Id. */\r\n int LBRACE = 41;\r\n /** RegularExpression Id. */\r\n int RBRACE = 42;\r\n /** RegularExpression Id. */\r\n int COMMA = 43;\r\n /** RegularExpression Id. */\r\n int DOT = 44;\r\n /** RegularExpression Id. */\r\n int SEMI = 45;\r\n /** RegularExpression Id. */\r\n int NUM = 46;\r\n /** RegularExpression Id. */\r\n int ID = 47;\r\n /** RegularExpression Id. */\r\n int LETTER = 48;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"\\\\f\\\"\",\r\n \"<LINE_COMMENT>\",\r\n \"<FORMAL_COMMENT>\",\r\n \"<MULTILINE_COMMENT>\",\r\n \"\\\"int\\\"\",\r\n \"\\\"void\\\"\",\r\n \"\\\"String\\\"\",\r\n \"\\\"boolean\\\"\",\r\n \"\\\"null\\\"\",\r\n \"\\\"this\\\"\",\r\n \"\\\"true\\\"\",\r\n \"\\\"false\\\"\",\r\n \"\\\"main\\\"\",\r\n \"\\\"length\\\"\",\r\n \"\\\"System.out.println\\\"\",\r\n \"\\\"if\\\"\",\r\n \"\\\"new\\\"\",\r\n \"\\\"else\\\"\",\r\n \"\\\"class\\\"\",\r\n \"\\\"while\\\"\",\r\n \"\\\"public\\\"\",\r\n \"\\\"return\\\"\",\r\n \"\\\"static\\\"\",\r\n \"\\\"extends\\\"\",\r\n \"\\\"interface\\\"\",\r\n \"\\\"+\\\"\",\r\n \"\\\"-\\\"\",\r\n \"\\\"*\\\"\",\r\n \"\\\"&&\\\"\",\r\n \"\\\"!\\\"\",\r\n \"\\\"<\\\"\",\r\n \"\\\"=\\\"\",\r\n \"\\\"(\\\"\",\r\n \"\\\")\\\"\",\r\n \"\\\"[\\\"\",\r\n \"\\\"]\\\"\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"\\\",\\\"\",\r\n \"\\\".\\\"\",\r\n \"\\\";\\\"\",\r\n \"<NUM>\",\r\n \"<ID>\",\r\n \"<LETTER>\",\r\n };\r\n\r\n}",
"public interface InputParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int TRUE = 5;\n /** RegularExpression Id. */\n int FALSE = 6;\n /** RegularExpression Id. */\n int NOT = 7;\n /** RegularExpression Id. */\n int INTEGER = 8;\n /** RegularExpression Id. */\n int STRING = 9;\n /** RegularExpression Id. */\n int CHARACTER = 10;\n /** RegularExpression Id. */\n int BOOLEAN = 11;\n /** RegularExpression Id. */\n int ASTERIX = 12;\n /** RegularExpression Id. */\n int COLON = 13;\n /** RegularExpression Id. */\n int ADT = 14;\n /** RegularExpression Id. */\n int SIGNATURES = 15;\n /** RegularExpression Id. */\n int EQUATIONS = 16;\n /** RegularExpression Id. */\n int PLUS = 17;\n /** RegularExpression Id. */\n int MINUS = 18;\n /** RegularExpression Id. */\n int ARROW = 19;\n /** RegularExpression Id. */\n int LESS_THAN = 20;\n /** RegularExpression Id. */\n int EQUALS = 21;\n /** RegularExpression Id. */\n int GREATER_THAN = 22;\n /** RegularExpression Id. */\n int HEX_ESCAPE = 23;\n /** RegularExpression Id. */\n int LEFT_PAREN = 24;\n /** RegularExpression Id. */\n int RIGHT_PAREN = 25;\n /** RegularExpression Id. */\n int UINT10 = 26;\n /** RegularExpression Id. */\n int ND = 27;\n /** RegularExpression Id. */\n int MC = 28;\n /** RegularExpression Id. */\n int ME = 29;\n /** RegularExpression Id. */\n int LU = 30;\n /** RegularExpression Id. */\n int LL = 31;\n /** RegularExpression Id. */\n int LT = 32;\n /** RegularExpression Id. */\n int LM = 33;\n /** RegularExpression Id. */\n int LO = 34;\n /** RegularExpression Id. */\n int MN = 35;\n /** RegularExpression Id. */\n int NL = 36;\n /** RegularExpression Id. */\n int NO = 37;\n /** RegularExpression Id. */\n int PD = 38;\n /** RegularExpression Id. */\n int PC = 39;\n /** RegularExpression Id. */\n int PO = 40;\n /** RegularExpression Id. */\n int SC = 41;\n /** RegularExpression Id. */\n int SM = 42;\n /** RegularExpression Id. */\n int SK = 43;\n /** RegularExpression Id. */\n int SO = 44;\n /** RegularExpression Id. */\n int CO = 45;\n /** RegularExpression Id. */\n int ID = 46;\n /** RegularExpression Id. */\n int PECULIAR_ID = 47;\n /** RegularExpression Id. */\n int INITIAL = 48;\n /** RegularExpression Id. */\n int SPECIAL_INITIAL = 49;\n /** RegularExpression Id. */\n int CONSTITUENT = 50;\n /** RegularExpression Id. */\n int SUBSEQUENT = 51;\n /** RegularExpression Id. */\n int SPECIAL_SUBSEQUENT = 52;\n /** RegularExpression Id. */\n int INLINE_HEX_ESCAPE = 53;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"#t\\\"\",\n \"\\\"#f\\\"\",\n \"\\\"not\\\"\",\n \"\\\"int\\\"\",\n \"\\\"string\\\"\",\n \"\\\"character\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"*\\\"\",\n \"\\\":\\\"\",\n \"\\\"ADT:\\\"\",\n \"\\\"Signatures:\\\"\",\n \"\\\"Equations:\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"->\\\"\",\n \"\\\"<\\\"\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"\\\\\\\\x\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"<UINT10>\",\n \"<ND>\",\n \"<MC>\",\n \"<ME>\",\n \"<LU>\",\n \"<LL>\",\n \"<LT>\",\n \"<LM>\",\n \"<LO>\",\n \"<MN>\",\n \"<NL>\",\n \"<NO>\",\n \"<PD>\",\n \"<PC>\",\n \"<PO>\",\n \"<SC>\",\n \"<SM>\",\n \"<SK>\",\n \"<SO>\",\n \"<CO>\",\n \"<ID>\",\n \"<PECULIAR_ID>\",\n \"<INITIAL>\",\n \"<SPECIAL_INITIAL>\",\n \"<CONSTITUENT>\",\n \"<SUBSEQUENT>\",\n \"<SPECIAL_SUBSEQUENT>\",\n \"<INLINE_HEX_ESCAPE>\",\n };\n\n}",
"public interface Token extends Serializable {\r\n\r\n\t/**\r\n\t * The \"const\" keyword\r\n\t */\r\n\tToken CONST = new Token(){\r\n\t\tprivate static final long serialVersionUID = -3891676043565611933L;\r\n\t};\r\n\t//TODO\r\n}",
"public token next_token() throws IOException, DasmError {\n token_line_num = line_num;\n\n for (;;)\n switch (nextChar) {\n case ';': // a comment\n case '\\n':\n // return single SEP token (skip multiple newlines\n // interspersed with whitespace or comments)\n skipEmptyLines();\n token_line_num = line_num;\n return new token(sym.SEP);\n\n case ' ':\n case '\\t':\n case '\\r':\n case ',': // whitespace\n readNextChar();\n break;\n\n case -1: // EOF token\n char_num = -1;\n return new token(sym.EOF);\n\n case '=': // EQUALS token\n readNextChar();\n return new token(sym.EQ);\n\n case ':': // COLON token\n readNextChar();\n return new token(sym.COLON);\n\n case '-':\n case '+':\n case '0':\n case '1':\n case '2':\n case '3':\n case '4':\n case '5':\n case '6':\n case '7':\n case '8':\n case '9':\n case '.': // a number\n {\n return readNumber();\n }\n\n case '\"': // quoted string\n {\n return readQuotedString();\n }\n\n case '{': // list of registers\n {\n return readRegList();\n }\n\n case '\\'': // quotation for overloading reserved words\n return readQuotedReservedWord();\n\n default: {\n // read up until a separatorcharacter\n boolean only_name = false;\n\n charBuf.reset();\n do {\n char chval = (char) nextChar;\n if (nextChar == '\\\\') {\n chval = nameEscape();\n only_name = true;\n }\n charBuf.add(chval);\n readNextChar();\n } while (!isSeparator(nextChar));\n\n String str = charBuf.toString();\n\n if (!only_name) {\n token tok;\n\n // keyword or directive?\n if ((tok = ReservedWords.get(str)) != null) return tok;\n\n // VM instruction?\n if (DopInfo.contains(str))\n return new str_token(sym.Insn, str);\n\n if (str.charAt(0) == '$') {\n String s = str.substring(1);\n Object v;\n int n = 10;\n boolean neg = false;\n switch (s.charAt(0)) {\n default:\n break;\n\n case '-':\n neg = true;\n case '+':\n s = s.substring(1);\n if (s.startsWith(\"0x\")) {\n n = 16;\n s = s.substring(2);\n }\n try {\n n = Integer.parseInt(s, n);\n } catch (NumberFormatException e) {\n throw new DasmError(\n \"Bad relative offset number\");\n }\n if (neg) n = -n;\n return new relative_number_token(sym.Relative, n);\n }\n // Do variable substitution\n if ((v = dict.get(s)) != null) return (token) v;\n } // not begin from '$'\n } // !only_name\n // Unrecognized string token (e.g. a classname)\n return new str_token(sym.Word, str);\n }\n }\n }",
"public GenToken scan(ParseString ps, GenToken token) throws ParserException {\n if (token != null) {\n //a token is already found, so handle it here\n GenToken result = token;\n if (token.getType().equals(\"id\")) {\n //token is an identifier\n String name = (String)token.get(\"name\");\n if ((name.equals(\"true\")) || (name.equals(\"false\"))) {\n //token is a boolean constant\n result = new GenToken(\"const\");\n result.add(\"value\", new Boolean(name));\n }\n if (name.equals(\"hash\")) {\n //token is a hash operator\n result = opToken(\"~\");\n }\n }\n return result;\n }\n //no token is found yet\n char ch = ps.nextChar();\n GenToken result = null;\n if (ch == ';') {\n result = new GenToken(\"semicol\");\n } else if (ch == ',') {\n result = new GenToken(\"comma\");\n } else if (ch == '(') {\n result = new GenToken(\"lbrack\");\n } else if (ch == ')') {\n result = new GenToken(\"rbrack\");\n } else if (ch == '{') {\n result = new GenToken(\"lacc\");\n } else if (ch == '}') {\n result = new GenToken(\"racc\");\n } else if (ch == '+') {\n char ach = ps.nextChar();\n if (ach=='=') result = new GenToken(\"plusassign\"); else {\n ps.returnChar(ach);\n result = opToken(\"+\");\n }\n } else if (ch == '-') {\n char ach = ps.nextChar();\n if (ach=='=') result = new GenToken(\"minusassign\"); else {\n ps.returnChar(ach);\n result = opToken(\"-\");\n }\n } else if (ch == '*') {\n result = opToken(\"*\");\n } else if (ch == '/') {\n result = opToken(\"/\");\n } else if (ch == '%') {\n result = opToken(\"%\");\n } else if (ch == '~') {\n result = opToken(\"~\");\n } else if (ch == '|') {\n char ach = ps.nextChar();\n if (ach == '|') result = opToken(\"||\"); else ps.returnChar(ach);\n } else if (ch == '&') {\n char ach = ps.nextChar();\n if (ach == '&') result = opToken(\"&&\"); else ps.returnChar(ach);\n } else if (ch == '=') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\"==\"); else\n if (ach == '>') result = opToken(\"=>\"); else {\n ps.returnChar(ach);\n result = new GenToken(\"assign\");\n }\n } else if (ch == '!') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\"!=\"); else {\n ps.returnChar(ach);\n result = opToken(\"!\");\n }\n } else if (ch == '<') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\"<=\"); else {\n ps.returnChar(ach);\n result = opToken(\"<\");\n }\n } else if (ch == '>') {\n char ach = ps.nextChar();\n if (ach == '=') result = opToken(\">=\"); else {\n ps.returnChar(ach);\n result = opToken(\">\");\n }\n } else if (ch == '\"') {\n StringBuffer aconst = new StringBuffer();\n char ach = ps.nextChar();\n while ( ach != '\"' ) {aconst.append(ach); ach = ps.nextChar();}\n result = new GenToken(\"const\");\n result.add(\"value\", aconst.toString());\n } else if (Character.isDigit(ch)) {\n StringBuffer aconst = new StringBuffer();\n aconst.append(ch);\n char ach = ps.nextChar();\n while ( (Character.isDigit(ach)) || (ch == '.') ) {aconst.append(ach); ach = ps.nextChar();}\n ps.returnChar(ach);\n\n float f = Float.parseFloat(aconst.toString());\n result = new GenToken(\"const\");\n result.add(\"value\", new Float(f));\n } else {\n ps.returnChar(ch);\n }\n return result;\n }",
"private void addToken(TokenType type, Object literal) {\n String text = source.substring(start, current);\n tokens.add(new Token(type, text, literal, line));\n }",
"public interface GoConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int integer_literal = 8;\n /** RegularExpression Id. */\n int floating_literal = 9;\n /** RegularExpression Id. */\n int boolean_literal = 10;\n /** RegularExpression Id. */\n int string_literal = 11;\n /** RegularExpression Id. */\n int numbers = 12;\n /** RegularExpression Id. */\n int valid_characters = 13;\n /** RegularExpression Id. */\n int double_quotes_in_string = 14;\n /** RegularExpression Id. */\n int back_slash = 15;\n /** RegularExpression Id. */\n int tabulations = 16;\n /** RegularExpression Id. */\n int addition = 17;\n /** RegularExpression Id. */\n int subtraction = 18;\n /** RegularExpression Id. */\n int multiplication = 19;\n /** RegularExpression Id. */\n int division = 20;\n /** RegularExpression Id. */\n int remainder = 21;\n /** RegularExpression Id. */\n int increment = 22;\n /** RegularExpression Id. */\n int decrement = 23;\n /** RegularExpression Id. */\n int equal = 24;\n /** RegularExpression Id. */\n int not_equal = 25;\n /** RegularExpression Id. */\n int greater_than = 26;\n /** RegularExpression Id. */\n int less_than = 27;\n /** RegularExpression Id. */\n int greater_than_or_equal = 28;\n /** RegularExpression Id. */\n int less_than_or_equal = 29;\n /** RegularExpression Id. */\n int bitwise_and = 30;\n /** RegularExpression Id. */\n int bitwise_inclusive_or = 31;\n /** RegularExpression Id. */\n int bitwise_exclusive_or = 32;\n /** RegularExpression Id. */\n int left_shift = 33;\n /** RegularExpression Id. */\n int right_shift = 34;\n /** RegularExpression Id. */\n int and = 35;\n /** RegularExpression Id. */\n int or = 36;\n /** RegularExpression Id. */\n int not = 37;\n /** RegularExpression Id. */\n int assignment = 38;\n /** RegularExpression Id. */\n int dynamic_assignment = 39;\n /** RegularExpression Id. */\n int addition_assignment = 40;\n /** RegularExpression Id. */\n int subtraction_assignment = 41;\n /** RegularExpression Id. */\n int multiplication_assignment = 42;\n /** RegularExpression Id. */\n int division_assignment = 43;\n /** RegularExpression Id. */\n int remainder_assignment = 44;\n /** RegularExpression Id. */\n int bitwise_and_assignment = 45;\n /** RegularExpression Id. */\n int bitwise_inclusive_or_assignment = 46;\n /** RegularExpression Id. */\n int bitwise_exclusive_or_assignment = 47;\n /** RegularExpression Id. */\n int left_shift_assignment = 48;\n /** RegularExpression Id. */\n int right_shift_assignment = 49;\n /** RegularExpression Id. */\n int opening_round_brackets = 50;\n /** RegularExpression Id. */\n int closing_round_brackets = 51;\n /** RegularExpression Id. */\n int opening_curly_brackets = 52;\n /** RegularExpression Id. */\n int closing_curly_brackets = 53;\n /** RegularExpression Id. */\n int opening_square_brackets = 54;\n /** RegularExpression Id. */\n int closing_square_brackets = 55;\n /** RegularExpression Id. */\n int semicolon = 56;\n /** RegularExpression Id. */\n int colon = 57;\n /** RegularExpression Id. */\n int dot = 58;\n /** RegularExpression Id. */\n int comma = 59;\n /** RegularExpression Id. */\n int double_quotes = 60;\n /** RegularExpression Id. */\n int quotes = 61;\n /** RegularExpression Id. */\n int rw_break = 62;\n /** RegularExpression Id. */\n int rw_default = 63;\n /** RegularExpression Id. */\n int rw_func = 64;\n /** RegularExpression Id. */\n int rw_interface = 65;\n /** RegularExpression Id. */\n int rw_select = 66;\n /** RegularExpression Id. */\n int rw_case = 67;\n /** RegularExpression Id. */\n int rw_defer = 68;\n /** RegularExpression Id. */\n int rw_go = 69;\n /** RegularExpression Id. */\n int rw_map = 70;\n /** RegularExpression Id. */\n int rw_struct = 71;\n /** RegularExpression Id. */\n int rw_chan = 72;\n /** RegularExpression Id. */\n int rw_else = 73;\n /** RegularExpression Id. */\n int rw_goto = 74;\n /** RegularExpression Id. */\n int rw_package = 75;\n /** RegularExpression Id. */\n int rw_switch = 76;\n /** RegularExpression Id. */\n int rw_const = 77;\n /** RegularExpression Id. */\n int rw_fallthrough = 78;\n /** RegularExpression Id. */\n int rw_if = 79;\n /** RegularExpression Id. */\n int rw_range = 80;\n /** RegularExpression Id. */\n int rw_type = 81;\n /** RegularExpression Id. */\n int rw_continue = 82;\n /** RegularExpression Id. */\n int rw_for = 83;\n /** RegularExpression Id. */\n int rw_import = 84;\n /** RegularExpression Id. */\n int rw_return = 85;\n /** RegularExpression Id. */\n int rw_var = 86;\n /** RegularExpression Id. */\n int dt_uint8 = 87;\n /** RegularExpression Id. */\n int dt_uint16 = 88;\n /** RegularExpression Id. */\n int dt_uint32 = 89;\n /** RegularExpression Id. */\n int dt_uint64 = 90;\n /** RegularExpression Id. */\n int dt_int8 = 91;\n /** RegularExpression Id. */\n int dt_int16 = 92;\n /** RegularExpression Id. */\n int dt_int32 = 93;\n /** RegularExpression Id. */\n int dt_int64 = 94;\n /** RegularExpression Id. */\n int dt_float32 = 95;\n /** RegularExpression Id. */\n int dt_float64 = 96;\n /** RegularExpression Id. */\n int dt_complex64 = 97;\n /** RegularExpression Id. */\n int dt_complex128 = 98;\n /** RegularExpression Id. */\n int dt_byte = 99;\n /** RegularExpression Id. */\n int dt_rune = 100;\n /** RegularExpression Id. */\n int dt_uint = 101;\n /** RegularExpression Id. */\n int dt_int = 102;\n /** RegularExpression Id. */\n int dt_uintptr = 103;\n /** RegularExpression Id. */\n int dt_string = 104;\n /** RegularExpression Id. */\n int dt_bool = 105;\n /** RegularExpression Id. */\n int main = 106;\n /** RegularExpression Id. */\n int library_fmt = 107;\n /** RegularExpression Id. */\n int rw_printf = 108;\n /** RegularExpression Id. */\n int rw_scanf = 109;\n /** RegularExpression Id. */\n int id = 110;\n /** RegularExpression Id. */\n int invalid_string = 111;\n /** RegularExpression Id. */\n int invalid_string_import = 112;\n /** RegularExpression Id. */\n int invalid_string_import_1 = 113;\n /** RegularExpression Id. */\n int invalid_string_import_2 = 114;\n /** RegularExpression Id. */\n int is_not_id = 115;\n /** RegularExpression Id. */\n int invalid_character = 116;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\r\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 6>\",\n \"<token of kind 7>\",\n \"<integer_literal>\",\n \"<floating_literal>\",\n \"<boolean_literal>\",\n \"<string_literal>\",\n \"<numbers>\",\n \"<valid_characters>\",\n \"\\\"\\\\\\\\\\\\\\\"\\\"\",\n \"\\\"\\\\\\\\\\\"\",\n \"<tabulations>\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\">=\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"&\\\"\",\n \"\\\"|\\\"\",\n \"\\\"^\\\"\",\n \"\\\"<<\\\"\",\n \"\\\">>\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"||\\\"\",\n \"\\\"!\\\"\",\n \"\\\"=\\\"\",\n \"\\\":=\\\"\",\n \"\\\"+=\\\"\",\n \"\\\"-=\\\"\",\n \"\\\"*=\\\"\",\n \"\\\"/=\\\"\",\n \"\\\"%=\\\"\",\n \"\\\"&=\\\"\",\n \"\\\"|=\\\"\",\n \"\\\"^=\\\"\",\n \"\\\"<<=\\\"\",\n \"\\\">>=\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\":\\\"\",\n \"\\\".\\\"\",\n \"\\\",\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"break\\\"\",\n \"\\\"default\\\"\",\n \"\\\"func\\\"\",\n \"\\\"interface\\\"\",\n \"\\\"select\\\"\",\n \"\\\"case\\\"\",\n \"\\\"defer\\\"\",\n \"\\\"go\\\"\",\n \"\\\"map\\\"\",\n \"\\\"struct\\\"\",\n \"\\\"chan\\\"\",\n \"\\\"else\\\"\",\n \"\\\"goto\\\"\",\n \"\\\"package\\\"\",\n \"\\\"switch\\\"\",\n \"\\\"const\\\"\",\n \"\\\"fallthrough\\\"\",\n \"\\\"if\\\"\",\n \"\\\"range\\\"\",\n \"\\\"type\\\"\",\n \"\\\"continue\\\"\",\n \"\\\"for\\\"\",\n \"\\\"import\\\"\",\n \"\\\"return\\\"\",\n \"\\\"var\\\"\",\n \"\\\"uint8\\\"\",\n \"\\\"uint16\\\"\",\n \"\\\"uint32\\\"\",\n \"\\\"uint64\\\"\",\n \"\\\"int8\\\"\",\n \"\\\"int16\\\"\",\n \"\\\"int32\\\"\",\n \"\\\"int64\\\"\",\n \"\\\"float32\\\"\",\n \"\\\"float64\\\"\",\n \"\\\"complex64\\\"\",\n \"\\\"complex128\\\"\",\n \"\\\"byte\\\"\",\n \"\\\"rune\\\"\",\n \"\\\"uint\\\"\",\n \"\\\"int\\\"\",\n \"\\\"uintptr\\\"\",\n \"\\\"string\\\"\",\n \"\\\"bool\\\"\",\n \"\\\"main\\\"\",\n \"\\\"fmt\\\"\",\n \"\\\"Printf\\\"\",\n \"\\\"Scanf\\\"\",\n \"<id>\",\n \"<invalid_string>\",\n \"<invalid_string_import>\",\n \"<invalid_string_import_1>\",\n \"<invalid_string_import_2>\",\n \"<is_not_id>\",\n \"<invalid_character>\",\n };\n\n}",
"public void visit(Literal literal) {}",
"Literal createLiteral();",
"Literal createLiteral();",
"private Token scanRealOrIntegerLiteral() {\n Token tok;\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n while (Character.isDigit(c) && c != '.' && c != -1) {\n buffer.add(c);\n c = in.read();\n }\n\n if (c == '.') {\n int nextChar = in.read();\n if (nextChar == '.') { // which means '..' operator was encountered\n tok = new Token(buffer.toString(),\n TokenType.INTEGER, pos);\n enqueuedToken = new Token(\"..\", TokenType.RANGE, pos);\n buffer.flush();\n c = in.read(); // reading in the next unprocessed character\n } else if (Character.isDigit(nextChar)) { // which means a real literal was encountered\n buffer.add(c);\n while (Character.isDigit(nextChar)) {\n buffer.add(nextChar);\n nextChar = in.read();\n }\n tok = new Token(buffer.toString(), TokenType.REAL_LITERAL, pos);\n buffer.flush();\n c = nextChar;\n\n } else { // which means a real literal without digits after dot (like 1. <=> 1.0)\n\n buffer.add(c);\n tok = new Token(buffer.toString(), TokenType.REAL_LITERAL, pos);\n buffer.flush();\n c = nextChar;\n\n }\n } else {\n tok = new Token(buffer.toString(), TokenType.INTEGER_LITERAL, pos);\n buffer.flush();\n }\n return tok;\n }",
"Token next();",
"Rule Literal() {\n // Push 1 LiteralNode onto the value stack\n return Sequence(\n FirstOf(\n SingleQuotedLiteral(),\n DoubleQuotedLiteral()),\n actions.pushLiteralNode());\n }",
"public LiteralOPToken(String s, int nTypeCode)\n {\n super(s);\n m_nType = nTypeCode;\n setBindingPower(OPToken.PRECEDENCE_IDENTIFIER);\n }",
"private ProgrammingLanguage(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"public interface LogoParserConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int PROC = 6;\r\n /** RegularExpression Id. */\r\n int END = 7;\r\n /** RegularExpression Id. */\r\n int MAKE = 8;\r\n /** RegularExpression Id. */\r\n int VARNAME = 9;\r\n /** RegularExpression Id. */\r\n int RPT = 10;\r\n /** RegularExpression Id. */\r\n int RT = 11;\r\n /** RegularExpression Id. */\r\n int FD = 12;\r\n /** RegularExpression Id. */\r\n int ID = 13;\r\n /** RegularExpression Id. */\r\n int DECPOINT = 14;\r\n /** RegularExpression Id. */\r\n int PLUS = 15;\r\n /** RegularExpression Id. */\r\n int MINUS = 16;\r\n /** RegularExpression Id. */\r\n int TIMES = 17;\r\n /** RegularExpression Id. */\r\n int DIVIDE = 18;\r\n /** RegularExpression Id. */\r\n int COLON = 19;\r\n /** RegularExpression Id. */\r\n int COMMA = 20;\r\n /** RegularExpression Id. */\r\n int LBRACKET = 21;\r\n /** RegularExpression Id. */\r\n int RBRACKET = 22;\r\n /** RegularExpression Id. */\r\n int LSQR = 23;\r\n /** RegularExpression Id. */\r\n int RSQR = 24;\r\n /** RegularExpression Id. */\r\n int NUMBER = 25;\r\n /** RegularExpression Id. */\r\n int DIGIT = 26;\r\n /** RegularExpression Id. */\r\n int ALPHA = 27;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"\\\\r\\\\n\\\"\",\r\n \"\\\"proc\\\"\",\r\n \"\\\"end\\\"\",\r\n \"\\\"make\\\"\",\r\n \"<VARNAME>\",\r\n \"\\\"rpt\\\"\",\r\n \"\\\"rt\\\"\",\r\n \"\\\"fd\\\"\",\r\n \"<ID>\",\r\n \"\\\".\\\"\",\r\n \"\\\"+\\\"\",\r\n \"\\\"-\\\"\",\r\n \"\\\"*\\\"\",\r\n \"\\\"/\\\"\",\r\n \"\\\":\\\"\",\r\n \"\\\",\\\"\",\r\n \"\\\"(\\\"\",\r\n \"\\\")\\\"\",\r\n \"\\\"[\\\"\",\r\n \"\\\"]\\\"\",\r\n \"<NUMBER>\",\r\n \"<DIGIT>\",\r\n \"<ALPHA>\",\r\n };\r\n\r\n}",
"public LiteralOPToken(String s, int nTypeCode, String sNudASTName)\n {\n this(s, nTypeCode);\n m_sNudASTName = sNudASTName;\n }",
"public final ValueNode literal() throws RecognitionException {\n ValueNode value = null;\n\n CommonTree NUMBER11=null;\n CommonTree FPNUMBER12=null;\n CommonTree STRING13=null;\n\n try {\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:3: ( NUMBER | FPNUMBER | STRING | TRUE | FALSE | NULL )\n int alt9=6;\n switch ( input.LA(1) ) {\n case NUMBER:\n {\n alt9=1;\n }\n break;\n case FPNUMBER:\n {\n alt9=2;\n }\n break;\n case STRING:\n {\n alt9=3;\n }\n break;\n case TRUE:\n {\n alt9=4;\n }\n break;\n case FALSE:\n {\n alt9=5;\n }\n break;\n case NULL:\n {\n alt9=6;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n\n throw nvae;\n }\n\n switch (alt9) {\n case 1 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:47:5: NUMBER\n {\n NUMBER11=(CommonTree)match(input,NUMBER,FOLLOW_NUMBER_in_literal248); \n value = new ValueNode((NUMBER11!=null?NUMBER11.getText():null), \"int\");\n\n }\n break;\n case 2 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:48:5: FPNUMBER\n {\n FPNUMBER12=(CommonTree)match(input,FPNUMBER,FOLLOW_FPNUMBER_in_literal256); \n value = new ValueNode((FPNUMBER12!=null?FPNUMBER12.getText():null), \"double\");\n\n }\n break;\n case 3 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:49:5: STRING\n {\n STRING13=(CommonTree)match(input,STRING,FOLLOW_STRING_in_literal264); \n value = new ValueNode((STRING13!=null?STRING13.getText():null), \"string\");\n\n }\n break;\n case 4 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:50:5: TRUE\n {\n match(input,TRUE,FOLLOW_TRUE_in_literal272); \n value = new ValueNode(\"true\", \"boolean\");\n\n }\n break;\n case 5 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:51:5: FALSE\n {\n match(input,FALSE,FOLLOW_FALSE_in_literal280); \n value = new ValueNode(\"false\", \"boolean\");\n\n }\n break;\n case 6 :\n // C:\\\\Users\\\\Lyle\\\\BitTorrent Sync\\\\workspace\\\\SIDSL\\\\src\\\\JSONHandler\\\\JSONTreeConstruct.g:52:5: NULL\n {\n match(input,NULL,FOLLOW_NULL_in_literal288); \n value = new ValueNode(\"null\", \"null\");\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return value;\n }",
"private Token () { }",
"public Snippet visit(InitializableConstantDeclaration n, Snippet argu) {\n\t Snippet _ret=new Snippet(\"\",\"\", null, false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t Snippet f2 = n.type.accept(this, argu);\n\t Snippet f3 = n.identifier.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t _ret.returnTemp += f2.expType.getTypeName()+\" \"+f3.returnTemp+\";\";\n\t\t\t//?? possible here\n\t tPlasmaCode=\"\";\n\t\t\t//tPlasmaCode += \n\t\t\tcurrentClassBody.initConstants+=generateTabs(0)+\"public final \" + f2.expType.getTypeName()+\" \"+f3.returnTemp+\";\\n\";;\n\t\t\ttPlasmaCode=\"\";\n\t return _ret;\n\t }",
"private static void testAllTokens() throws IOException {\n\t// open input and output files\n\tFileReader inFile = null;\n\tPrintWriter outFile = null;\n\ttry {\n\t inFile = new FileReader(\"inTokens\");\n\t outFile = new PrintWriter(new FileWriter(\"inTokens.out\"));\n\t} catch (FileNotFoundException ex) {\n\t System.err.println(\"File inTokens not found.\");\n\t System.exit(-1);\n\t} catch (IOException ex) {\n\t System.err.println(\"inTokens.out cannot be opened.\");\n\t System.exit(-1);\n\t}\n\n\tSystem.err.println(\"TESTING ALL TOKENS: COMPARE inTokens and inTokens.out\\n\");\n\n\t// create and call the scanner\n\tYylex scanner = new Yylex(inFile);\n\tSymbol token = scanner.next_token();\n\twhile (token.sym != sym.EOF) {\n\t switch (token.sym) {\n\t case sym.INT:\n\t\toutFile.println(\"int\");\n\t\tbreak;\n\t case sym.DBL:\n\t\toutFile.println(\"double\");\n\t\tbreak;\n\t case sym.VOID:\n\t\toutFile.println(\"void\");\n\t\tbreak;\n\t case sym.IF:\n\t\toutFile.println(\"if\");\n\t\tbreak;\n\t case sym.ELSE:\n\t\toutFile.println(\"else\");\n\t\tbreak;\n\t case sym.WHILE:\n\t\toutFile.println(\"while\");\n\t\tbreak;\n\t case sym.RETURN:\n\t\toutFile.println(\"return\");\n\t\tbreak;\n\t case sym.SCANF:\n\t\toutFile.println(\"scanf\");\n\t\tbreak;\n\t case sym.PRINTF:\n\t\toutFile.println(\"printf\");\n\t\tbreak;\n\t case sym.ID:\n\t\toutFile.println(((IdTokenVal)token.value).idVal);\n\t\tbreak;\n\t case sym.INTLITERAL:\n\t\toutFile.println(((IntLitTokenVal)token.value).intVal);\n\t\tbreak;\n\t case sym.DBLLITERAL:\n\t\toutFile.println(((DblLitTokenVal)token.value).dblVal);\n\t\tbreak;\n\t case sym.STRINGLITERAL:\n\t\toutFile.println(((StrLitTokenVal)token.value).strVal);\n\t\tbreak;\n\t case sym.LCURLY:\n\t\toutFile.println(\"{\");\n\t\tbreak;\n\t case sym.RCURLY:\n\t\toutFile.println(\"}\");\n\t\tbreak;\n\t case sym.LPAREN:\n\t\toutFile.println(\"(\");\n\t\tbreak;\n\t case sym.RPAREN:\n\t\toutFile.println(\")\");\n\t\tbreak;\n\t case sym.COMMA:\n\t\toutFile.println(\",\");\n\t\tbreak;\n\t case sym.ASSIGN:\n\t\toutFile.println(\"=\");\n\t\tbreak;\n\t case sym.SEMICOLON:\n\t\toutFile.println(\";\");\n\t\tbreak;\n\t case sym.PLUS:\n\t\toutFile.println(\"+\");\n\t\tbreak;\n\t case sym.MINUS:\n\t\toutFile.println(\"-\");\n\t\tbreak;\n\t case sym.STAR:\n\t\toutFile.println(\"*\");\n\t\tbreak;\n\t case sym.DIVIDE:\n\t\toutFile.println(\"/\");\n\t\tbreak;\n\t case sym.PLUSPLUS:\n\t\toutFile.println(\"++\");\n\t\tbreak;\n\t case sym.MINUSMINUS:\n\t\toutFile.println(\"--\");\n\t\tbreak;\n\t case sym.NOT:\n\t\toutFile.println(\"!\");\n\t\tbreak;\n\t case sym.AND:\n\t\toutFile.println(\"&&\");\n\t\tbreak;\n\t case sym.OR:\n\t\toutFile.println(\"||\");\n\t\tbreak;\n\t case sym.EQUALS:\n\t\toutFile.println(\"==\");\n\t\tbreak;\n\t case sym.NOTEQUALS:\n\t\toutFile.println(\"!=\");\n\t\tbreak;\n\t case sym.LESS:\n\t\toutFile.println(\"<\");\n\t\tbreak;\n\t case sym.GREATER:\n\t\toutFile.println(\">\");\n\t\tbreak;\n\t case sym.LESSEQ:\n\t\toutFile.println(\"<=\");\n\t\tbreak;\n\t case sym.GREATEREQ:\n\t\toutFile.println(\">=\");\n\t\tbreak;\n\t case sym.AMPERSAND:\n\t\toutFile.println(\"&\");\n\t\tbreak;\n\t case sym.INT_FORMAT:\n\t\toutFile.println(\"\\\"%d\\\"\");\n\t\tbreak;\n\t case sym.DBL_FORMAT:\n\t\toutFile.println(\"\\\"%f\\\"\");\n\t\tbreak;\n\t }\n\n\t token = scanner.next_token();\n\t}\n\toutFile.close();\n }",
"public interface SalsaParserConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int SINGLE_LINE_COMMENT = 9;\n /** RegularExpression Id. */\n int FORMAL_COMMENT = 10;\n /** RegularExpression Id. */\n int MULTI_LINE_COMMENT = 11;\n /** RegularExpression Id. */\n int ABSTRACT = 13;\n /** RegularExpression Id. */\n int ACK = 14;\n /** RegularExpression Id. */\n int AT = 15;\n /** RegularExpression Id. */\n int BEHAVIOR = 16;\n /** RegularExpression Id. */\n int BOOLEAN = 17;\n /** RegularExpression Id. */\n int BREAK = 18;\n /** RegularExpression Id. */\n int BYTE = 19;\n /** RegularExpression Id. */\n int CALLED = 20;\n /** RegularExpression Id. */\n int CASE = 21;\n /** RegularExpression Id. */\n int CATCH = 22;\n /** RegularExpression Id. */\n int CHAR = 23;\n /** RegularExpression Id. */\n int CONST = 24;\n /** RegularExpression Id. */\n int CONTINUE = 25;\n /** RegularExpression Id. */\n int _DEFAULT = 26;\n /** RegularExpression Id. */\n int DELAY = 27;\n /** RegularExpression Id. */\n int DOUBLE = 28;\n /** RegularExpression Id. */\n int ENUM = 29;\n /** RegularExpression Id. */\n int ELSE = 30;\n /** RegularExpression Id. */\n int ENDIF = 31;\n /** RegularExpression Id. */\n int EXTENDS = 32;\n /** RegularExpression Id. */\n int FALSE = 33;\n /** RegularExpression Id. */\n int FLOAT = 34;\n /** RegularExpression Id. */\n int FOR = 35;\n /** RegularExpression Id. */\n int IF = 36;\n /** RegularExpression Id. */\n int IMPLEMENTS = 37;\n /** RegularExpression Id. */\n int IMPORT = 38;\n /** RegularExpression Id. */\n int INSTANCEOF = 39;\n /** RegularExpression Id. */\n int INT = 40;\n /** RegularExpression Id. */\n int INTERFACE = 41;\n /** RegularExpression Id. */\n int LATER = 42;\n /** RegularExpression Id. */\n int LONG = 43;\n /** RegularExpression Id. */\n int LOOP = 44;\n /** RegularExpression Id. */\n int MODULE = 45;\n /** RegularExpression Id. */\n int NEW = 46;\n /** RegularExpression Id. */\n int NULL = 47;\n /** RegularExpression Id. */\n int OBJECT = 48;\n /** RegularExpression Id. */\n int ON = 49;\n /** RegularExpression Id. */\n int PASS = 50;\n /** RegularExpression Id. */\n int PARENT = 51;\n /** RegularExpression Id. */\n int PUBLIC = 52;\n /** RegularExpression Id. */\n int REFERENCE = 53;\n /** RegularExpression Id. */\n int SELF = 54;\n /** RegularExpression Id. */\n int SHORT = 55;\n /** RegularExpression Id. */\n int SUPER = 56;\n /** RegularExpression Id. */\n int SYNCHRONIZED = 57;\n /** RegularExpression Id. */\n int SWITCH = 58;\n /** RegularExpression Id. */\n int _TOKEN = 59;\n /** RegularExpression Id. */\n int TRUE = 60;\n /** RegularExpression Id. */\n int TRY = 61;\n /** RegularExpression Id. */\n int USING = 62;\n /** RegularExpression Id. */\n int WAITFOR = 63;\n /** RegularExpression Id. */\n int WHILE = 64;\n /** RegularExpression Id. */\n int INTEGER_LITERAL = 65;\n /** RegularExpression Id. */\n int DECIMAL_LITERAL = 66;\n /** RegularExpression Id. */\n int HEX_LITERAL = 67;\n /** RegularExpression Id. */\n int OCTAL_LITERAL = 68;\n /** RegularExpression Id. */\n int FLOATING_POINT_LITERAL = 69;\n /** RegularExpression Id. */\n int EXPONENT = 70;\n /** RegularExpression Id. */\n int CHARACTER_LITERAL = 71;\n /** RegularExpression Id. */\n int STRING_LITERAL = 72;\n /** RegularExpression Id. */\n int IDENTIFIER = 73;\n /** RegularExpression Id. */\n int LETTER = 74;\n /** RegularExpression Id. */\n int DIGIT = 75;\n /** RegularExpression Id. */\n int LPAREN = 76;\n /** RegularExpression Id. */\n int RPAREN = 77;\n /** RegularExpression Id. */\n int LBRACE = 78;\n /** RegularExpression Id. */\n int RBRACE = 79;\n /** RegularExpression Id. */\n int LBRACKET = 80;\n /** RegularExpression Id. */\n int RBRACKET = 81;\n /** RegularExpression Id. */\n int SEMICOLON = 82;\n /** RegularExpression Id. */\n int COMMA = 83;\n /** RegularExpression Id. */\n int DOT = 84;\n /** RegularExpression Id. */\n int MSG = 85;\n /** RegularExpression Id. */\n int ASSIGN = 86;\n /** RegularExpression Id. */\n int GT = 87;\n /** RegularExpression Id. */\n int LT = 88;\n /** RegularExpression Id. */\n int BANG = 89;\n /** RegularExpression Id. */\n int TILDE = 90;\n /** RegularExpression Id. */\n int COLON = 91;\n /** RegularExpression Id. */\n int EQ = 92;\n /** RegularExpression Id. */\n int LE = 93;\n /** RegularExpression Id. */\n int GE = 94;\n /** RegularExpression Id. */\n int NE = 95;\n /** RegularExpression Id. */\n int SC_OR = 96;\n /** RegularExpression Id. */\n int SC_AND = 97;\n /** RegularExpression Id. */\n int INCR = 98;\n /** RegularExpression Id. */\n int DECR = 99;\n /** RegularExpression Id. */\n int PLUS = 100;\n /** RegularExpression Id. */\n int MINUS = 101;\n /** RegularExpression Id. */\n int STAR = 102;\n /** RegularExpression Id. */\n int SLASH = 103;\n /** RegularExpression Id. */\n int BIT_AND = 104;\n /** RegularExpression Id. */\n int BIT_OR = 105;\n /** RegularExpression Id. */\n int XOR = 106;\n /** RegularExpression Id. */\n int REM = 107;\n /** RegularExpression Id. */\n int LSHIFT = 108;\n /** RegularExpression Id. */\n int RSIGNEDSHIFT = 109;\n /** RegularExpression Id. */\n int RUNSIGNEDSHIFT = 110;\n /** RegularExpression Id. */\n int PLUSASSIGN = 111;\n /** RegularExpression Id. */\n int MINUSASSIGN = 112;\n /** RegularExpression Id. */\n int STARASSIGN = 113;\n /** RegularExpression Id. */\n int SLASHASSIGN = 114;\n /** RegularExpression Id. */\n int ANDASSIGN = 115;\n /** RegularExpression Id. */\n int ORASSIGN = 116;\n /** RegularExpression Id. */\n int XORASSIGN = 117;\n /** RegularExpression Id. */\n int REMASSIGN = 118;\n /** RegularExpression Id. */\n int LSHIFTASSIGN = 119;\n /** RegularExpression Id. */\n int RSIGNEDSHIFTASSIGN = 120;\n /** RegularExpression Id. */\n int RUNSIGNEDSHIFTASSIGN = 121;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int IN_SINGLE_LINE_COMMENT = 1;\n /** Lexical state. */\n int IN_FORMAL_COMMENT = 2;\n /** Lexical state. */\n int IN_MULTI_LINE_COMMENT = 3;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"//\\\"\",\n \"<token of kind 7>\",\n \"\\\"/*\\\"\",\n \"<SINGLE_LINE_COMMENT>\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"<token of kind 12>\",\n \"\\\"abstract\\\"\",\n \"\\\"ack\\\"\",\n \"\\\"at\\\"\",\n \"\\\"behavior\\\"\",\n \"\\\"boolean\\\"\",\n \"\\\"break\\\"\",\n \"\\\"byte\\\"\",\n \"\\\"called\\\"\",\n \"\\\"case\\\"\",\n \"\\\"catch\\\"\",\n \"\\\"char\\\"\",\n \"\\\"const\\\"\",\n \"\\\"continue\\\"\",\n \"\\\"default\\\"\",\n \"\\\"delay\\\"\",\n \"\\\"double\\\"\",\n \"\\\"enum\\\"\",\n \"\\\"else\\\"\",\n \"\\\"endif\\\"\",\n \"\\\"extends\\\"\",\n \"\\\"false\\\"\",\n \"\\\"float\\\"\",\n \"\\\"for\\\"\",\n \"\\\"if\\\"\",\n \"\\\"implements\\\"\",\n \"\\\"import\\\"\",\n \"\\\"instanceof\\\"\",\n \"\\\"int\\\"\",\n \"\\\"interface\\\"\",\n \"\\\"later\\\"\",\n \"\\\"long\\\"\",\n \"\\\"loop\\\"\",\n \"\\\"module\\\"\",\n \"\\\"new\\\"\",\n \"\\\"null\\\"\",\n \"\\\"object\\\"\",\n \"\\\"on\\\"\",\n \"\\\"pass\\\"\",\n \"\\\"parent\\\"\",\n \"\\\"public\\\"\",\n \"\\\"reference\\\"\",\n \"\\\"self\\\"\",\n \"\\\"short\\\"\",\n \"\\\"super\\\"\",\n \"\\\"synchronized\\\"\",\n \"\\\"switch\\\"\",\n \"\\\"token\\\"\",\n \"\\\"true\\\"\",\n \"\\\"try\\\"\",\n \"\\\"using\\\"\",\n \"\\\"waitfor\\\"\",\n \"\\\"while\\\"\",\n \"<INTEGER_LITERAL>\",\n \"<DECIMAL_LITERAL>\",\n \"<HEX_LITERAL>\",\n \"<OCTAL_LITERAL>\",\n \"<FLOATING_POINT_LITERAL>\",\n \"<EXPONENT>\",\n \"<CHARACTER_LITERAL>\",\n \"<STRING_LITERAL>\",\n \"<IDENTIFIER>\",\n \"<LETTER>\",\n \"<DIGIT>\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"\\\"<-\\\"\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\"!\\\"\",\n \"\\\"~\\\"\",\n \"\\\":\\\"\",\n \"\\\"==\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"||\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"&\\\"\",\n \"\\\"|\\\"\",\n \"\\\"^\\\"\",\n \"\\\"%\\\"\",\n \"\\\"<<\\\"\",\n \"\\\">>\\\"\",\n \"\\\">>>\\\"\",\n \"\\\"+=\\\"\",\n \"\\\"-=\\\"\",\n \"\\\"*=\\\"\",\n \"\\\"/=\\\"\",\n \"\\\"&=\\\"\",\n \"\\\"|=\\\"\",\n \"\\\"^=\\\"\",\n \"\\\"%=\\\"\",\n \"\\\"<<=\\\"\",\n \"\\\">>=\\\"\",\n \"\\\">>>=\\\"\",\n \"\\\"?\\\"\",\n \"\\\"@\\\"\",\n };\n\n}",
"Token(Type ttype, String v, int p, int l) {\n type = ttype;\n value = v;\n pos = p;\n line = l;\n }",
"public LiteralOPToken(LiteralBaseToken bt)\n {\n this(bt.getValue(), bt.getType());\n }",
"public interface BibtexConstants {\r\n\r\n /** End of File. */\r\n int EOF = 0;\r\n /** RegularExpression Id. */\r\n int COMMENT = 5;\r\n /** RegularExpression Id. */\r\n int COMMENT_START = 6;\r\n /** RegularExpression Id. */\r\n int PREAMBLE_START = 7;\r\n /** RegularExpression Id. */\r\n int STRING_START = 8;\r\n /** RegularExpression Id. */\r\n int COMMENT_ENTRY = 9;\r\n /** RegularExpression Id. */\r\n int OPEN_ENTRY = 11;\r\n /** RegularExpression Id. */\r\n int CLOSE_ENTRY = 12;\r\n /** RegularExpression Id. */\r\n int START_B_CONTENT = 14;\r\n /** RegularExpression Id. */\r\n int CLOSE_B_CONTENT = 15;\r\n /** RegularExpression Id. */\r\n int START_Q_CONTENT = 18;\r\n /** RegularExpression Id. */\r\n int CLOSE_Q_CONTENT = 19;\r\n /** RegularExpression Id. */\r\n int CONTENT_TEXT = 20;\r\n /** RegularExpression Id. */\r\n int ID = 21;\r\n /** RegularExpression Id. */\r\n int SEPARATOR = 22;\r\n /** RegularExpression Id. */\r\n int EQUALS = 23;\r\n /** RegularExpression Id. */\r\n int NUMBER = 24;\r\n\r\n /** Lexical state. */\r\n int DEFAULT = 0;\r\n /** Lexical state. */\r\n int IN_ENTRY = 1;\r\n /** Lexical state. */\r\n int IN_ENTRY_TYPE = 2;\r\n /** Lexical state. */\r\n int IN_COMMENT_ENTRY = 3;\r\n /** Lexical state. */\r\n int IN_PREAMBLE = 4;\r\n /** Lexical state. */\r\n int IN_BRACED_CONTENT = 5;\r\n /** Lexical state. */\r\n int IN_BRACED_NESTED_CONTENT = 6;\r\n /** Lexical state. */\r\n int IN_QUOTED_CONTENT = 7;\r\n\r\n /** Literal token values. */\r\n String[] tokenImage = {\r\n \"<EOF>\",\r\n \"\\\" \\\"\",\r\n \"\\\"\\\\r\\\"\",\r\n \"\\\"\\\\t\\\"\",\r\n \"\\\"\\\\n\\\"\",\r\n \"<COMMENT>\",\r\n \"\\\"comment\\\"\",\r\n \"\\\"preamble\\\"\",\r\n \"\\\"string\\\"\",\r\n \"<COMMENT_ENTRY>\",\r\n \"<token of kind 10>\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"<token of kind 13>\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"\\\"{\\\"\",\r\n \"\\\"}\\\"\",\r\n \"\\\"\\\\\\\"\\\"\",\r\n \"\\\"\\\\\\\"\\\"\",\r\n \"<CONTENT_TEXT>\",\r\n \"<ID>\",\r\n \"\\\",\\\"\",\r\n \"\\\"=\\\"\",\r\n \"<NUMBER>\",\r\n \"\\\"#\\\"\",\r\n };\r\n\r\n}",
"public final EncodedValue literal() throws RecognitionException {\n EncodedValue encodedValue = null;\n\n\n int integer_literal24 = 0;\n long long_literal25 = 0;\n short short_literal26 = 0;\n byte byte_literal27 = 0;\n float float_literal28 = 0.0f;\n double double_literal29 = 0.0;\n char char_literal30 = 0;\n String string_literal31 = null;\n boolean bool_literal32 = false;\n String type_descriptor33 = null;\n List<EncodedValue> array_literal34 = null;\n TreeRuleReturnScope subannotation35 = null;\n FieldReference field_literal36 = null;\n MethodReference method_literal37 = null;\n FieldReference enum_literal38 = null;\n\n try {\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:272:3: ( integer_literal | long_literal | short_literal | byte_literal | float_literal | double_literal | char_literal | string_literal | bool_literal | NULL_LITERAL | type_descriptor | array_literal | subannotation | field_literal | method_literal | enum_literal )\n int alt9 = 16;\n switch (input.LA(1)) {\n case INTEGER_LITERAL: {\n alt9 = 1;\n }\n break;\n case LONG_LITERAL: {\n alt9 = 2;\n }\n break;\n case SHORT_LITERAL: {\n alt9 = 3;\n }\n break;\n case BYTE_LITERAL: {\n alt9 = 4;\n }\n break;\n case FLOAT_LITERAL: {\n alt9 = 5;\n }\n break;\n case DOUBLE_LITERAL: {\n alt9 = 6;\n }\n break;\n case CHAR_LITERAL: {\n alt9 = 7;\n }\n break;\n case STRING_LITERAL: {\n alt9 = 8;\n }\n break;\n case BOOL_LITERAL: {\n alt9 = 9;\n }\n break;\n case NULL_LITERAL: {\n alt9 = 10;\n }\n break;\n case ARRAY_DESCRIPTOR:\n case CLASS_DESCRIPTOR:\n case PRIMITIVE_TYPE:\n case VOID_TYPE: {\n alt9 = 11;\n }\n break;\n case I_ENCODED_ARRAY: {\n alt9 = 12;\n }\n break;\n case I_SUBANNOTATION: {\n alt9 = 13;\n }\n break;\n case I_ENCODED_FIELD: {\n alt9 = 14;\n }\n break;\n case I_ENCODED_METHOD: {\n alt9 = 15;\n }\n break;\n case I_ENCODED_ENUM: {\n alt9 = 16;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 9, 0, input);\n throw nvae;\n }\n switch (alt9) {\n case 1:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:272:5: integer_literal\n {\n pushFollow(FOLLOW_integer_literal_in_literal442);\n integer_literal24 = integer_literal();\n state._fsp--;\n\n encodedValue = new ImmutableIntEncodedValue(integer_literal24);\n }\n break;\n case 2:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:273:5: long_literal\n {\n pushFollow(FOLLOW_long_literal_in_literal450);\n long_literal25 = long_literal();\n state._fsp--;\n\n encodedValue = new ImmutableLongEncodedValue(long_literal25);\n }\n break;\n case 3:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:274:5: short_literal\n {\n pushFollow(FOLLOW_short_literal_in_literal458);\n short_literal26 = short_literal();\n state._fsp--;\n\n encodedValue = new ImmutableShortEncodedValue(short_literal26);\n }\n break;\n case 4:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:275:5: byte_literal\n {\n pushFollow(FOLLOW_byte_literal_in_literal466);\n byte_literal27 = byte_literal();\n state._fsp--;\n\n encodedValue = new ImmutableByteEncodedValue(byte_literal27);\n }\n break;\n case 5:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:276:5: float_literal\n {\n pushFollow(FOLLOW_float_literal_in_literal474);\n float_literal28 = float_literal();\n state._fsp--;\n\n encodedValue = new ImmutableFloatEncodedValue(float_literal28);\n }\n break;\n case 6:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:277:5: double_literal\n {\n pushFollow(FOLLOW_double_literal_in_literal482);\n double_literal29 = double_literal();\n state._fsp--;\n\n encodedValue = new ImmutableDoubleEncodedValue(double_literal29);\n }\n break;\n case 7:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:278:5: char_literal\n {\n pushFollow(FOLLOW_char_literal_in_literal490);\n char_literal30 = char_literal();\n state._fsp--;\n\n encodedValue = new ImmutableCharEncodedValue(char_literal30);\n }\n break;\n case 8:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:279:5: string_literal\n {\n pushFollow(FOLLOW_string_literal_in_literal498);\n string_literal31 = string_literal();\n state._fsp--;\n\n encodedValue = new ImmutableStringEncodedValue(string_literal31);\n }\n break;\n case 9:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:280:5: bool_literal\n {\n pushFollow(FOLLOW_bool_literal_in_literal506);\n bool_literal32 = bool_literal();\n state._fsp--;\n\n encodedValue = ImmutableBooleanEncodedValue.forBoolean(bool_literal32);\n }\n break;\n case 10:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:281:5: NULL_LITERAL\n {\n match(input, NULL_LITERAL, FOLLOW_NULL_LITERAL_in_literal514);\n encodedValue = ImmutableNullEncodedValue.INSTANCE;\n }\n break;\n case 11:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:282:5: type_descriptor\n {\n pushFollow(FOLLOW_type_descriptor_in_literal522);\n type_descriptor33 = type_descriptor();\n state._fsp--;\n\n encodedValue = new ImmutableTypeEncodedValue(type_descriptor33);\n }\n break;\n case 12:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:283:5: array_literal\n {\n pushFollow(FOLLOW_array_literal_in_literal530);\n array_literal34 = array_literal();\n state._fsp--;\n\n encodedValue = new ImmutableArrayEncodedValue(array_literal34);\n }\n break;\n case 13:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:284:5: subannotation\n {\n pushFollow(FOLLOW_subannotation_in_literal538);\n subannotation35 = subannotation();\n state._fsp--;\n\n encodedValue = new ImmutableAnnotationEncodedValue((subannotation35 != null ? ((smaliTreeWalker.subannotation_return) subannotation35).annotationType : null), (subannotation35 != null ? ((smaliTreeWalker.subannotation_return) subannotation35).elements : null));\n }\n break;\n case 14:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:285:5: field_literal\n {\n pushFollow(FOLLOW_field_literal_in_literal546);\n field_literal36 = field_literal();\n state._fsp--;\n\n encodedValue = new ImmutableFieldEncodedValue(field_literal36);\n }\n break;\n case 15:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:286:5: method_literal\n {\n pushFollow(FOLLOW_method_literal_in_literal554);\n method_literal37 = method_literal();\n state._fsp--;\n\n encodedValue = new ImmutableMethodEncodedValue(method_literal37);\n }\n break;\n case 16:\n // D:\\\\decomplier_tools\\\\smali\\\\smali\\\\smali\\\\src\\\\main\\\\antlr3\\\\smaliTreeWalker.g:287:5: enum_literal\n {\n pushFollow(FOLLOW_enum_literal_in_literal562);\n enum_literal38 = enum_literal();\n state._fsp--;\n\n encodedValue = new ImmutableEnumEncodedValue(enum_literal38);\n }\n break;\n\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return encodedValue;\n }",
"@Override\r\n\tpublic JavaToken nextToken() {\r\n\t\tif (!ready())\r\n\t\t\treturn null;\r\n\t\tint oldPos = this.pos;\r\n\t\tint type = PLAIN;\r\n\t\tif (LL(0) == ' ' || LL(0) == '\\t' || LL(0) == '\\n' || LL(0) == '\\r') {\r\n\t\t\tconsumeWhiteSpace();\r\n\t\t\ttype = WHITESPACE;\r\n\t\t} else if (Character.isJavaIdentifierStart(LL(0))) {\r\n\t\t\tconsumeIdentifier();\r\n\t\t} else if (LL(0) == '#') {\r\n\t\t\tconsumeSingleLineComment();\r\n\t\t\ttype = COMMENT;\r\n\t\t} else if (LL(0) == '\\\"') {\r\n\t\t\tif (LL(1) == '\\\"' && LL(2) == '\\\"') {\r\n\t\t\t\tconsumeMultiLineComment();\r\n\t\t\t\ttype = COMMENT;\r\n\t\t\t} else {\r\n\t\t\t\tconsumeStringLiteral();\r\n\t\t\t\ttype = LITERAL;\r\n\t\t\t}\r\n\t\t} else if (LL(0) == '\\'') {\r\n\t\t\tconsumeCharacterLiteral();\r\n\t\t\ttype = LITERAL;\r\n\t\t} else {\r\n\t\t\tconsumeCharacter();\r\n\t\t}\r\n\t\tString t = text.substring(oldPos, pos);\r\n\t\tif (type == PLAIN) {\r\n\t\t\tif (keywords.get(t) != null)\r\n\t\t\t\ttype = KEYWORD;\r\n\t\t}\r\n\t\treturn new JavaToken(t, off + oldPos, type);\r\n\t}",
"public Token(Type t, String c) {\r\n this.t = t;\r\n this.c = c;\r\n }",
"public Token nextToken() throws ScanErrorException\n {\n skipWhiteSpace();\n if (eof) \n return new Token(\"eof\", \"eof\");\n else if (isDigit(currentChar))\n return new Token(scanNumber(), \"number\");\n else if (isLetter(currentChar))\n {\n return Token.verifyKeywordLexeme(scanIdentifier());\n }\n else if (isArithmeticOperand(currentChar))\n {\n String result = \"\";\n result += currentChar;\n eat(currentChar);\n return new Token(result, \"arithmetic_operand\");\n }\n else if (isParentheses(currentChar))\n {\n String result = \"\";\n result += currentChar;\n eat(currentChar);\n return new Token(result, \"parentheses\");\n }\n else if(currentChar == '<' || currentChar == '>' || currentChar == '=')\n {\n String result = \"\";\n result += currentChar;\n if(currentChar == '=')\n eat(currentChar);\n else if(currentChar == '>')\n {\n eat(currentChar);\n if(currentChar == '=')\n {\n result += currentChar;\n eat(currentChar);\n }\n }\n else\n {\n eat(currentChar);\n if(currentChar == '>' || currentChar == '=')\n {\n result += currentChar;\n eat(currentChar);\n }\n }\n\n return new Token(result, \"relational_operand\");\n }\n\n System.out.println(\"Error in reading token. Char <\" + currentChar \n + \"> not part of regular language.\");\n eat(currentChar);\n return null;\n }",
"private static void testAllTokens(String arg) throws IOException \r\n {\r\n\t// open input file\r\n\tFileReader inFile = null;\r\n\tPrintWriter outFile = null;\r\n /**\r\n * Returns the file after testing to a .out file which contains the output else throws FileNotFoundException\r\n */\r\n\ttry {\r\n\t inFile = new FileReader(arg);\r\n\t outFile = new PrintWriter(new FileWriter(arg+\".out\"));\r\n\t } catch (FileNotFoundException ex) \r\n {\r\n\t System.err.println(\"File \" + arg + \" not found.\");\r\n\t System.exit(-1);\r\n\t } catch (IOException ex)\r\n {\r\n\t\tSystem.err.println(arg + \" cannot be opened. ------SKIPPED\");\r\n\t\treturn;\r\n }\r\n \r\n // create and call the scanner\r\n Yylex scanner = new Yylex(inFile);\r\n Symbol token = scanner.next_token();\r\n while (token.sym != sym.EOF) {\r\n switch (token.sym) {\r\n case sym.INT:\r\n outFile.println(\"Type: INT\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.BOOL:\r\n outFile.println(\"Type: BOOL\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\"); \r\n break;\r\n case sym.VOID:\r\n outFile.println(\"Type: VOID\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.TRUE:\r\n outFile.println(\"Type: TRUE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.FALSE:\r\n outFile.println(\"Type: FALSE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.IF:\r\n outFile.println(\"Type: IF\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.ELSE:\r\n outFile.println(\"Type: ELSE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.WHILE:\r\n outFile.println(\"Type: WHILE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.RETURN:\r\n outFile.println(\"Type: RETURN\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.CIN:\r\n outFile.println(\"Type: CIN\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.COUT:\r\n outFile.println(\"Type: COUT\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.ID:\r\n outFile.println(\"Type: ID\\nLineNum: \" + ((IdTokenVal)token.value).linenum + \"\\nCharNum: \" + ((IdTokenVal)token.value).charnum \r\n\t\t\t\t+ \"\\nValue: \" + ((IdTokenVal)token.value).idVal + \"\\n\");\r\n break;\r\n case sym.INTLITERAL: \r\n outFile.println(\"Type: INTLITERAL\\nLineNum: \" + ((IntLitTokenVal)token.value).linenum + \"\\nCharNum: \" + ((IntLitTokenVal)token.value).charnum \r\n\t\t\t\t+ \"\\nValue: \" + ((IntLitTokenVal)token.value).intVal + \"\\n\");\r\n break;\r\n case sym.STRINGLITERAL: \r\n outFile.println(\"Type: STRINGLITERAL\\nLineNum: \" + ((StrLitTokenVal)token.value).linenum + \"\\nCharNum: \" + ((StrLitTokenVal)token.value).charnum \r\n\t\t\t\t+ \"\\nValue: \" + ((StrLitTokenVal)token.value).strVal + \"\\n\");\r\n break; \r\n case sym.LCURLY:\r\n outFile.println(\"Type: LCURLY\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.RCURLY:\r\n outFile.println(\"Type: RCURLY\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.LPAREN:\r\n outFile.println(\"Type: LPAREN\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.RPAREN:\r\n outFile.println(\"Type: RPAREN\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.LSQBRACKET:\r\n outFile.println(\"Type: LSQBRACKET\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.RSQBRACKET:\r\n outFile.println(\"Type: RSQBRACKET\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.COMMA:\r\n outFile.println(\"Type: COMMA\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.ASSIGN:\r\n outFile.println(\"Type: ASSIGN\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.SEMICOLON:\r\n outFile.println(\"Type: SEMICOLON\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.PLUS:\r\n outFile.println(\"Type: PLUS\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.MINUS:\r\n outFile.println(\"Type: MINUS\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.TIMES:\r\n outFile.println(\"Type: TIMES\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.DIVIDE:\r\n outFile.println(\"Type: DIVIDE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.NOT:\r\n outFile.println(\"Type: NOT\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.AND:\r\n outFile.println(\"Type: AND\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.OR:\r\n outFile.println(\"Type: OR\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.EQUALS:\r\n outFile.println(\"Type: EQUALS\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.NOTEQUALS:\r\n outFile.println(\"Type: NOTEQUALS\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.LESS:\r\n outFile.println(\"Type: LESS\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.GREATER:\r\n outFile.println(\"Type: GREATER\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.LESSEQ:\r\n outFile.println(\"Type: LESSEQ\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.GREATEREQ:\r\n outFile.println(\"Type: GREATEREQ\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.WRITE:\r\n outFile.println(\"Type: WRITE\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n case sym.READ:\r\n outFile.println(\"Type: READ\\nLineNum: \" + ((TokenVal)token.value).linenum + \"\\nCharNum: \" + ((TokenVal)token.value).charnum + \"\\n\");\r\n break;\r\n } // end switch\r\n\r\n token = scanner.next_token();\r\n } // end while\r\n outFile.close();\r\n }",
"private Token(int code)\n {\n myCode = code;\n }",
"public interface PreprocessorConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int PEDAGOGICALMARKUP2 = 1;\n /** RegularExpression Id. */\n int PEDAGOGICALMARKUP3 = 2;\n /** RegularExpression Id. */\n int PEDAGOGICALMARKUP4 = 3;\n /** RegularExpression Id. */\n int PEDAGOGICALMARKUP_INVISIBLE_ALL = 4;\n /** RegularExpression Id. */\n int KEEP_SPACE = 9;\n /** RegularExpression Id. */\n int CSTYLECOMMENTSTART = 10;\n /** RegularExpression Id. */\n int NEWLINE = 11;\n /** RegularExpression Id. */\n int LINECOMMENTSTART = 12;\n /** RegularExpression Id. */\n int STARTDIRECTIVE = 13;\n /** RegularExpression Id. */\n int PPINCLUDE = 19;\n /** RegularExpression Id. */\n int PPIF = 20;\n /** RegularExpression Id. */\n int PPIFDEF = 21;\n /** RegularExpression Id. */\n int PPIFNDEF = 22;\n /** RegularExpression Id. */\n int PPELIF = 23;\n /** RegularExpression Id. */\n int PPELSE = 24;\n /** RegularExpression Id. */\n int PPENDIF = 25;\n /** RegularExpression Id. */\n int PPDEFINE = 26;\n /** RegularExpression Id. */\n int PPUNDEF = 27;\n /** RegularExpression Id. */\n int PPLINE = 28;\n /** RegularExpression Id. */\n int PPERROR = 29;\n /** RegularExpression Id. */\n int PPPRAGMA = 30;\n /** RegularExpression Id. */\n int UNEXPECTED = 31;\n /** RegularExpression Id. */\n int DQFILENAME = 32;\n /** RegularExpression Id. */\n int AQFILENAME = 33;\n /** RegularExpression Id. */\n int KEEP_KEYWORD = 34;\n /** RegularExpression Id. */\n int KEEP_NCONST = 35;\n /** RegularExpression Id. */\n int INT = 36;\n /** RegularExpression Id. */\n int INTSUFFIX = 37;\n /** RegularExpression Id. */\n int FLOATCONST = 38;\n /** RegularExpression Id. */\n int LOCAL_FLOATCONST = 39;\n /** RegularExpression Id. */\n int DIGITS = 40;\n /** RegularExpression Id. */\n int EXPPART = 41;\n /** RegularExpression Id. */\n int KEEP_ACONST = 42;\n /** RegularExpression Id. */\n int CHARACTER = 43;\n /** RegularExpression Id. */\n int STRING = 44;\n /** RegularExpression Id. */\n int SIMPLEESCAPESEQ = 45;\n /** RegularExpression Id. */\n int OCTALESCAPESEQ = 46;\n /** RegularExpression Id. */\n int HEXESCAPESEQ = 47;\n /** RegularExpression Id. */\n int UCODENAME = 48;\n /** RegularExpression Id. */\n int HEXQUAD = 49;\n /** RegularExpression Id. */\n int HEXDIG = 50;\n /** RegularExpression Id. */\n int KEEP_ID = 51;\n /** RegularExpression Id. */\n int KEEP_REST = 52;\n\n /** Lexical state. */\n int AFTERINCLUDE = 0;\n /** Lexical state. */\n int DIRECTIVE0 = 1;\n /** Lexical state. */\n int IN_C_COMMENT = 2;\n /** Lexical state. */\n int IN_LINE_COMMENT = 3;\n /** Lexical state. */\n int IN_PEDAGOGICAL_COMMENT = 4;\n /** Lexical state. */\n int MIDLINE = 5;\n /** Lexical state. */\n int DEFAULT = 6;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<PEDAGOGICALMARKUP2>\",\n \"<PEDAGOGICALMARKUP3>\",\n \"\\\"/*#\\\"\",\n \"\\\"/*#I\\\"\",\n \"\\\"*/\\\"\",\n \"\\\"*/\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 8>\",\n \"<KEEP_SPACE>\",\n \"\\\"/*\\\"\",\n \"<NEWLINE>\",\n \"\\\"//\\\"\",\n \"\\\"#\\\"\",\n \"\\\"\\\\n\\\"\",\n \"<token of kind 15>\",\n \"\\\"*/\\\"\",\n \"<token of kind 17>\",\n \"<token of kind 18>\",\n \"\\\"include\\\"\",\n \"\\\"if\\\"\",\n \"\\\"ifdef\\\"\",\n \"\\\"ifndef\\\"\",\n \"\\\"elif\\\"\",\n \"\\\"else\\\"\",\n \"\\\"endif\\\"\",\n \"\\\"define\\\"\",\n \"\\\"undef\\\"\",\n \"\\\"line\\\"\",\n \"\\\"error\\\"\",\n \"\\\"pragma\\\"\",\n \"<UNEXPECTED>\",\n \"<DQFILENAME>\",\n \"<AQFILENAME>\",\n \"<KEEP_KEYWORD>\",\n \"<KEEP_NCONST>\",\n \"<INT>\",\n \"<INTSUFFIX>\",\n \"<FLOATCONST>\",\n \"<LOCAL_FLOATCONST>\",\n \"<DIGITS>\",\n \"<EXPPART>\",\n \"<KEEP_ACONST>\",\n \"<CHARACTER>\",\n \"<STRING>\",\n \"<SIMPLEESCAPESEQ>\",\n \"<OCTALESCAPESEQ>\",\n \"<HEXESCAPESEQ>\",\n \"<UCODENAME>\",\n \"<HEXQUAD>\",\n \"<HEXDIG>\",\n \"<KEEP_ID>\",\n \"<KEEP_REST>\",\n };\n\n}",
"public static StringLiteral fromToken (String pToken)\n {\n return new StringLiteral (getValueFromToken (pToken));\n }",
"public interface PerlTokenSets extends PerlElementTypes, MooseElementTypes {\n TokenSet OPERATORS_TOKENSET = TokenSet.create(\n OPERATOR_CMP_NUMERIC,\n OPERATOR_LT_NUMERIC,\n OPERATOR_GT_NUMERIC,\n\n OPERATOR_CMP_STR,\n OPERATOR_LE_STR,\n OPERATOR_GE_STR,\n OPERATOR_EQ_STR,\n OPERATOR_NE_STR,\n OPERATOR_LT_STR,\n OPERATOR_GT_STR,\n\n OPERATOR_HELLIP,\n OPERATOR_FLIP_FLOP,\n OPERATOR_CONCAT,\n\n OPERATOR_PLUS_PLUS,\n OPERATOR_MINUS_MINUS,\n OPERATOR_POW,\n\n OPERATOR_RE,\n OPERATOR_NOT_RE,\n\n //\t\t\tOPERATOR_HEREDOC, // this is an artificial operator, not the real one; fixme uncommenting breaks parsing of print $of <<EOM\n OPERATOR_SHIFT_LEFT,\n OPERATOR_SHIFT_RIGHT,\n\n OPERATOR_AND,\n OPERATOR_OR,\n OPERATOR_OR_DEFINED,\n OPERATOR_NOT,\n\n OPERATOR_ASSIGN,\n\n QUESTION,\n COLON,\n\n OPERATOR_REFERENCE,\n\n OPERATOR_DIV,\n OPERATOR_MUL,\n OPERATOR_MOD,\n OPERATOR_PLUS,\n OPERATOR_MINUS,\n\n OPERATOR_BITWISE_NOT,\n OPERATOR_BITWISE_AND,\n OPERATOR_BITWISE_OR,\n OPERATOR_BITWISE_XOR,\n\n OPERATOR_AND_LP,\n OPERATOR_OR_LP,\n OPERATOR_XOR_LP,\n OPERATOR_NOT_LP,\n\n COMMA,\n FAT_COMMA,\n\n OPERATOR_DEREFERENCE,\n\n OPERATOR_X,\n OPERATOR_FILETEST,\n\n // syntax operators\n OPERATOR_POW_ASSIGN,\n OPERATOR_PLUS_ASSIGN,\n OPERATOR_MINUS_ASSIGN,\n OPERATOR_MUL_ASSIGN,\n OPERATOR_DIV_ASSIGN,\n OPERATOR_MOD_ASSIGN,\n OPERATOR_CONCAT_ASSIGN,\n OPERATOR_X_ASSIGN,\n OPERATOR_BITWISE_AND_ASSIGN,\n OPERATOR_BITWISE_OR_ASSIGN,\n OPERATOR_BITWISE_XOR_ASSIGN,\n OPERATOR_SHIFT_LEFT_ASSIGN,\n OPERATOR_SHIFT_RIGHT_ASSIGN,\n OPERATOR_AND_ASSIGN,\n OPERATOR_OR_ASSIGN,\n OPERATOR_OR_DEFINED_ASSIGN,\n\n OPERATOR_GE_NUMERIC,\n OPERATOR_LE_NUMERIC,\n OPERATOR_EQ_NUMERIC,\n OPERATOR_NE_NUMERIC,\n OPERATOR_SMARTMATCH\n );\n\n TokenSet DEFAULT_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_MY,\n RESERVED_OUR,\n RESERVED_STATE,\n RESERVED_LOCAL,\n RESERVED_ELSIF,\n RESERVED_ELSE,\n RESERVED_GIVEN,\n RESERVED_DEFAULT,\n RESERVED_CONTINUE,\n RESERVED_FORMAT,\n RESERVED_SUB,\n RESERVED_PACKAGE,\n RESERVED_USE,\n RESERVED_NO,\n RESERVED_REQUIRE,\n RESERVED_UNDEF,\n RESERVED_PRINT,\n RESERVED_PRINTF,\n RESERVED_SAY,\n RESERVED_GREP,\n RESERVED_MAP,\n RESERVED_SORT,\n RESERVED_DO,\n RESERVED_EVAL,\n RESERVED_GOTO,\n RESERVED_REDO,\n RESERVED_NEXT,\n RESERVED_LAST,\n RESERVED_RETURN,\n\n RESERVED_Y,\n RESERVED_TR,\n RESERVED_Q,\n RESERVED_S,\n RESERVED_M,\n RESERVED_QW,\n RESERVED_QQ,\n RESERVED_QR,\n RESERVED_QX,\n\n RESERVED_IF,\n RESERVED_UNTIL,\n RESERVED_UNLESS,\n RESERVED_FOR,\n RESERVED_FOREACH,\n RESERVED_WHEN,\n RESERVED_WHILE\n );\n\n TokenSet TRY_CATCH_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_TRY,\n RESERVED_CATCH,\n RESERVED_FINALLY,\n RESERVED_CATCH_WITH,\n RESERVED_EXCEPT,\n RESERVED_OTHERWISE,\n RESERVED_CONTINUATION\n );\n\n TokenSet METHOD_SIGNATURES_KEYWORDS_TOKENSET = TokenSet.create(\n RESERVED_METHOD,\n RESERVED_FUNC\n );\n\n TokenSet KEYWORDS_TOKENSET = TokenSet.orSet(\n DEFAULT_KEYWORDS_TOKENSET,\n MOOSE_RESERVED_TOKENSET,\n METHOD_SIGNATURES_KEYWORDS_TOKENSET,\n TRY_CATCH_KEYWORDS_TOKENSET\n );\n\n TokenSet ANNOTATIONS_KEYS = TokenSet.create(\n ANNOTATION_DEPRECATED_KEY,\n ANNOTATION_RETURNS_KEY,\n ANNOTATION_OVERRIDE_KEY,\n ANNOTATION_METHOD_KEY,\n ANNOTATION_ABSTRACT_KEY,\n ANNOTATION_INJECT_KEY,\n ANNOTATION_NOINSPECTION_KEY,\n ANNOTATION_TYPE_KEY\n\n );\n\n TokenSet STRING_CONTENT_TOKENSET = TokenSet.create(\n STRING_CONTENT,\n STRING_CONTENT_XQ,\n STRING_CONTENT_QQ\n );\n\n TokenSet HEREDOC_BODIES_TOKENSET = TokenSet.create(\n HEREDOC,\n HEREDOC_QQ,\n HEREDOC_QX\n );\n\n\n TokenSet QUOTE_MIDDLE = TokenSet.create(REGEX_QUOTE, REGEX_QUOTE_E);\n\n TokenSet QUOTE_OPEN_ANY = TokenSet.orSet(\n TokenSet.create(REGEX_QUOTE_OPEN, REGEX_QUOTE_OPEN_E),\n PerlParserUtil.OPEN_QUOTES,\n QUOTE_MIDDLE\n );\n\n TokenSet QUOTE_CLOSE_FIRST_ANY = TokenSet.orSet(\n TokenSet.create(REGEX_QUOTE_CLOSE),\n QUOTE_MIDDLE,\n CLOSE_QUOTES\n );\n\n TokenSet QUOTE_CLOSE_PAIRED = TokenSet.orSet(\n CLOSE_QUOTES,\n TokenSet.create(REGEX_QUOTE_CLOSE)\n );\n\n TokenSet SIGILS = TokenSet.create(\n SIGIL_SCALAR, SIGIL_ARRAY, SIGIL_HASH, SIGIL_GLOB, SIGIL_CODE, SIGIL_SCALAR_INDEX\n );\n\n TokenSet STATEMENTS = TokenSet.create(\n STATEMENT, USE_STATEMENT, NO_STATEMENT\n );\n\n TokenSet LAZY_CODE_BLOCKS = TokenSet.create(LP_CODE_BLOCK, LP_CODE_BLOCK_WITH_TRYCATCH);\n\n TokenSet LAZY_PARSABLE_REGEXPS = TokenSet.create(\n LP_REGEX_REPLACEMENT,\n LP_REGEX,\n LP_REGEX_X,\n LP_REGEX_XX\n );\n\n TokenSet HEREDOC_ENDS = TokenSet.create(HEREDOC_END, HEREDOC_END_INDENTABLE);\n /**\n * Quote openers with three or four quotes\n */\n TokenSet COMPLEX_QUOTE_OPENERS = TokenSet.create(\n RESERVED_S,\n RESERVED_TR,\n RESERVED_Y\n );\n TokenSet SIMPLE_QUOTE_OPENERS = TokenSet.create(\n RESERVED_Q,\n RESERVED_QQ,\n RESERVED_QX,\n RESERVED_QW,\n RESERVED_QR,\n RESERVED_M\n );\n}",
"String getLiteral();",
"String getLiteral();",
"public ConstDecl(Token identifier, Type constType, Token literal) {\n super(identifier, constType);\n this.literal = literal;\n }",
"public BSJRuleJavaOperators(IToken token) {\n\t\tfToken= token;\n\t}",
"private void tokenStart() {\n tokenStartIndex = zzStartRead;\n }",
"void isToken(String p) {\r\n\t\tint n = 0;\r\n\t\t// switch statement that finds lexemes and tokens and add them to an arrayList\r\n\t\tString x = p;\r\n\t\tswitch (x) {\r\n\r\n\t\tcase \"int\":\r\n\t\t\tlexemes.add(\"int\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"double\":\r\n\t\t\tlexemes.add(\"double\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"<\":\r\n\t\t\tlexemes.add(\"<\");\r\n\t\t\ttokens.add(\"LESS_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"{\":\r\n\t\t\tlexemes.add(\"{\");\r\n\t\t\ttokens.add(\"OPEN_CURLB\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"String\":\r\n\t\t\tlexemes.add(\"String\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"char\":\r\n\t\t\tlexemes.add(\"char\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"=\":\r\n\t\t\tlexemes.add(\"=\");\r\n\t\t\ttokens.add(\"ASSIGN_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"float\":\r\n\t\t\tlexemes.add(\"float\");\r\n\t\t\ttokens.add(\"DATA_TYPE\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"-\":\r\n\t\t\tlexemes.add(\"-\");\r\n\t\t\ttokens.add(\"SUB_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"+\":\r\n\t\t\tlexemes.add(\"+\");\r\n\t\t\ttokens.add(\"ADD_OPP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"*\":\r\n\t\t\tlexemes.add(\"*\");\r\n\t\t\ttokens.add(\"MUL_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"/\":\r\n\t\t\tlexemes.add(\"/\");\r\n\t\t\ttokens.add(\"DIV_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"%\":\r\n\t\t\tlexemes.add(\"%\");\r\n\t\t\ttokens.add(\"MOD_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \">\":\r\n\t\t\tlexemes.add(\">\");\r\n\t\t\ttokens.add(\"GREAT_OP\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"}\":\r\n\t\t\tlexemes.add(\"}\");\r\n\t\t\ttokens.add(\"CLOSE_CULRB\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"[\":\r\n\t\t\tlexemes.add(\"[\");\r\n\t\t\ttokens.add(\"OPEN_BRACK\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \":\":\r\n\t\t\tlexemes.add(\":\");\r\n\t\t\ttokens.add(\"COLON\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"]\":\r\n\t\t\tlexemes.add(\"]\");\r\n\t\t\ttokens.add(\"CLOSED_BRACK\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \"(\":\r\n\t\t\tlexemes.add(\"(\");\r\n\t\t\ttokens.add(\"OPEN_PAR\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \",\":\r\n\t\t\tlexemes.add(\",\");\r\n\t\t\ttokens.add(\"COMMA\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \")\":\r\n\t\t\tlexemes.add(\")\");\r\n\t\t\ttokens.add(\"CLOSED_PAR\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase \";\":\r\n\t\t\tlexemes.add(\";\");\r\n\t\t\ttokens.add(\"SEMICOLON\");\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tlexemes.add(x);\r\n\t\t\ttokens.add(\"IDENT\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}",
"public String getTokenValue() { return tok; }",
"TokenDef(String tokenname, String ANTLRCODE) {\n this.tokenname = tokenname;\n this.ANTLRCODE = ANTLRCODE;\n }",
"private Token nextTokenBasic() throws LexerException {\n \n if( Character.isLetter( data[currentIndex] ) || data[currentIndex] == '\\\\' ) {\n if(data[currentIndex] == '\\\\' ) {\n backslash();\n }\n stringToken.append( data[ currentIndex++ ] );\n \n type = TokenType.WORD;\n \n while( currentIndex < dataLength \n && ( Character.isLetter( data[currentIndex] ) || data[currentIndex] == '\\\\' ) ) {\n if(data[currentIndex] == '\\\\' ) {\n backslash();\n }\n \n stringToken.append( data[ currentIndex++ ] );\n\n }\n \n token = new Token(type, stringToken.toString());\n stringToken = new StringBuilder();\n \n \n return token;\n \n } else if( Character.isDigit( data[currentIndex] ) ) {\n\n stringToken.append( data[ currentIndex++ ] );\n type = TokenType.NUMBER;\n\n while( currentIndex < dataLength && Character.isDigit( data[currentIndex] ) ) {\n \n stringToken.append( data[ currentIndex++ ] );\n\n }\n \n try {\n token = new Token( type, Long.parseLong( stringToken.toString() ) );\n stringToken = new StringBuilder();\n return token;\n } catch(NumberFormatException e) {\n throw new LexerException(\"Too big Long type.\");\n }\n } else {\n token = new Token(TokenType.SYMBOL, data[ currentIndex++ ]);\n stringToken = new StringBuilder();\n return token;\n }\n }",
"public VariableToken(String text) {\n super(text);\n }",
"public interface PhpTokenTypes extends TokenType\n{\n\tIElementType PHP_OPENING_TAG = new PhpElementType(\"php opening tag\"); // <?php or <?\n\tIElementType PHP_ECHO_OPENING_TAG = new PhpElementType(\"php echo opening tag\"); // <?=\n\tIElementType PHP_CLOSING_TAG = new PhpElementType(\"php closing tag\"); // ?>\n\tIElementType UNKNOWN_SYMBOL = new PhpElementType(\"dunno what's that\");\n\tIElementType SYNTAX_ERROR = new PhpElementType(\"syntax error\");\n\n\tIElementType HTML = new PhpElementType(\"html\");\n\n\tIElementType kwIF = new PhpElementType(\"if\");\n\tIElementType kwELSEIF = new PhpElementType(\"elseif\");\n\tIElementType kwELSE = new PhpElementType(\"else\");\n\tIElementType kwFOR = new PhpElementType(\"for\");\n\tIElementType kwFOREACH = new PhpElementType(\"foreach keyword\");\n\tIElementType kwWHILE = new PhpElementType(\"while\");\n\tIElementType kwDO = new PhpElementType(\"do\");\n\tIElementType kwSWITCH = new PhpElementType(\"switch\");\n\tIElementType kwCASE = new PhpElementType(\"case\");\n\tIElementType kwDEFAULT = new PhpElementType(\"default keyword\");\n\tIElementType kwTRY = new PhpElementType(\"try\");\n\tIElementType kwCATCH = new PhpElementType(\"catch\");\n\tIElementType FINALLY_KEYWORD = new PhpElementType(\"FINALLY_KEYWORD\");\n\tIElementType kwDECLARE = new PhpElementType(\"declare\");\n\tIElementType kwBREAK = new PhpElementType(\"break\");\n\tIElementType kwENDIF = new PhpElementType(\"endif\");\n\tIElementType kwENDFOR = new PhpElementType(\"endfor\");\n\tIElementType kwENDFOREACH = new PhpElementType(\"endforeach\");\n\tIElementType kwENDWHILE = new PhpElementType(\"endwhile\");\n\tIElementType kwENDSWITCH = new PhpElementType(\"endswitch\");\n\tIElementType kwENDDECLARE = new PhpElementType(\"enddeclare\");\n\n\tIElementType kwEXIT = new PhpElementType(\"exit\");\n\tIElementType NAMESPACE_KEYWORD = new PhpElementType(\"NAMESPACE_KEYWORD\");\n\tIElementType USE_KEYWORD = new PhpElementType(\"USE_KEYWORD\");\n\tIElementType PRIVATE_KEYWORD = new PhpElementType(\"PRIVATE_KEYWORD\");\n\tIElementType kwFUNCTION = new PhpElementType(\"FUNCTION_KEYWORD\");\n\tIElementType kwNEW = new PhpElementType(\"new\");\n\tIElementType kwINSTANCEOF = new PhpElementType(\"instanceof\");\n\tIElementType kwCONST = new PhpElementType(\"CONST_KEYWORD\");\n\tIElementType kwLIST = new PhpElementType(\"list\");\n\tIElementType kwIMPLEMENTS = new PhpElementType(\"implements\");\n\tIElementType kwEVAL = new PhpElementType(\"eval\");\n\tIElementType FINAL_KEYWORD = new PhpElementType(\"final\");\n\tIElementType kwAS = new PhpElementType(\"as\");\n\tIElementType kwTHROW = new PhpElementType(\"throw\");\n\tIElementType kwEXCEPTION = new PhpElementType(\"exception\");\n\tIElementType kwINCLUDE_ONCE = new PhpElementType(\"include once\");\n\tIElementType kwCLASS = new PhpElementType(\"class\");\n\tIElementType ABSTRACT_KEYWORD = new PhpElementType(\"ABSTRACT_KEYWORD\");\n\tIElementType INTERFACE_KEYWORD = new PhpElementType(\"INTERFACE_KEYWORD\");\n\tIElementType TRAIT_KEYWORD = new PhpElementType(\"TRAIT_KEYWORD\");\n\tIElementType PUBLIC_KEYWORD = new PhpElementType(\"PUBLIC_KEYWORD\");\n\tIElementType STATIC_KEYWORD = new PhpElementType(\"STATIC_KEYWORD\");\n\tIElementType YIELD_KEYWORD = new PhpElementType(\"YIELD_KEYWORD\");\n\tIElementType FROM_KEYWORD = new PhpElementType(\"FROM_KEYWORD\");\n\tIElementType kwCLONE = new PhpElementType(\"clone keyword\");\n\tIElementType kwISSET = new PhpElementType(\"isset keyword\");\n\tIElementType kwEMPTY = new PhpElementType(\"empty keyword\");\n\tIElementType kwRETURN = new PhpElementType(\"return\");\n\tIElementType kwVAR = new PhpElementType(\"var\");\n\tIElementType kwPHP_USER_FILTER = new PhpElementType(\"php user filter\");\n\tIElementType kwCONTINUE = new PhpElementType(\"continue\");\n\tIElementType kwDIE = new PhpElementType(\"die\");\n\tIElementType PROTECTED_KEYWORD = new PhpElementType(\"PROTECTED_KEYWORD\");\n\tIElementType kwPRINT = new PhpElementType(\"print\");\n\tIElementType kwECHO = new PhpElementType(\"echo\");\n\tIElementType kwINCLUDE = new PhpElementType(\"include\");\n\tIElementType kwGLOBAL = new PhpElementType(\"global\");\n\tIElementType kwEXTENDS = new PhpElementType(\"extends\");\n\tIElementType kwUNSET = new PhpElementType(\"unset\");\n\tIElementType kwREQUIRE_ONCE = new PhpElementType(\"require once\");\n\tIElementType kwARRAY = new PhpElementType(\"array\");\n\tIElementType kwREQUIRE = new PhpElementType(\"require\");\n\n\n\tIElementType LINE_COMMENT = new PhpElementType(\"line comment\");\n\t//\tIElementType DOC_COMMENT = new PhpElementType(\"doc comment\");\n\tIElementType C_STYLE_COMMENT = new PhpElementType(\"C style comment\");\n\tIElementType VARIABLE = new PhpElementType(\"variable\");\n\tIElementType VARIABLE_NAME = new PhpElementType(\"variable name\"); // ???\n\tIElementType VARIABLE_OFFSET_NUMBER = new PhpElementType(\"array index\"); // ???\n\tIElementType DOLLAR_LBRACE = new PhpElementType(\"${\"); // ???\n\tIElementType IDENTIFIER = new PhpElementType(\"identifier\");\n\tIElementType ARROW = new PhpElementType(\"arrow\");\n\tIElementType SCOPE_RESOLUTION = new PhpElementType(\"scope resolution\");\n\tIElementType FLOAT_LITERAL = new PhpElementType(\"float\");\n\tIElementType INTEGER_LITERAL = new PhpElementType(\"integer\");\n\tIElementType BINARY_LITERAL = new PhpElementType(\"BINARY_LITERAL\");\n\tIElementType STRING_LITERAL = new PhpElementType(\"string\");\n\tIElementType STRING_LITERAL_SINGLE_QUOTE = new PhpElementType(\"single quoted string\");\n\tIElementType EXEC_COMMAND = new PhpElementType(\"exec command\");\n\tIElementType ESCAPE_SEQUENCE = new PhpElementType(\"escape sequence\");\n\tIElementType HEREDOC_START = new PhpElementType(\"HEREDOC_START\");\n\tIElementType HEREDOC_CONTENTS = new PhpElementType(\"HEREDOC_CONTENTS\");\n\tIElementType HEREDOC_END = new PhpElementType(\"HEREDOC_END\");\n\n\n\tIElementType chDOUBLE_QUOTE = new PhpElementType(\"double quote\");\n\tIElementType chSINGLE_QUOTE = new PhpElementType(\"single quote\");\n\tIElementType chBACKTRICK = new PhpElementType(\"backtrick\");\n\tIElementType LBRACE = new PhpElementType(\"{\");\n\tIElementType RBRACE = new PhpElementType(\"}\");\n\tIElementType LPAREN = new PhpElementType(\"(\");\n\tIElementType RPAREN = new PhpElementType(\")\");\n\tIElementType LBRACKET = new PhpElementType(\"[\");\n\tIElementType RBRACKET = new PhpElementType(\"]\");\n\tIElementType ELVIS = new PhpElementType(\"ELVIS\");\n\n\n\tIElementType opPLUS = new PhpElementType(\"plus\"); //+\n\tIElementType opUNARY_PLUS = new PhpElementType(\"unary plus\"); //+\n\tIElementType opMINUS = new PhpElementType(\"minus\"); //-\n\tIElementType opNEGATE = new PhpElementType(\"negate\"); //-\n\tIElementType opINCREMENT = new PhpElementType(\"increment\"); //++\n\tIElementType opDECREMENT = new PhpElementType(\"decrement\"); //--\n\tIElementType opASGN = new PhpElementType(\"assign\"); //=\n\tIElementType opNOT = new PhpElementType(\"not\"); //!\n\tIElementType opQUEST = new PhpElementType(\"ternary\"); //?\n\tIElementType opCOMMA = new PhpElementType(\"comma\"); //,\n\tIElementType opCONCAT = new PhpElementType(\"dot\"); //.\n\tIElementType opCOLON = new PhpElementType(\"colon\"); //:\n\tIElementType opSEMICOLON = new PhpElementType(\"semicolon\"); //;\n\tIElementType opBIT_AND = new PhpElementType(\"bit and\"); //&\n\tIElementType opBIT_OR = new PhpElementType(\"bit or\"); //|\n\tIElementType opBIT_XOR = new PhpElementType(\"bit xor\"); //^\n\tIElementType opBIT_NOT = new PhpElementType(\"bit not\"); //~\n\tIElementType opLIT_AND = new PhpElementType(\"literal and\"); //and\n\tIElementType opLIT_OR = new PhpElementType(\"literal or\"); //or\n\tIElementType opLIT_XOR = new PhpElementType(\"literal xor\"); //xor\n\tIElementType opEQUAL = new PhpElementType(\"equals\"); //==\n\tIElementType opNOT_EQUAL = new PhpElementType(\"not equals\"); //!=\n\tIElementType opIDENTICAL = new PhpElementType(\"identical\"); //===\n\tIElementType opNOT_IDENTICAL = new PhpElementType(\"not identical\"); //!==\n\tIElementType opPLUS_ASGN = new PhpElementType(\"plus assign\"); //+=\n\tIElementType opMINUS_ASGN = new PhpElementType(\"minus assign\"); //-=\n\tIElementType opMUL_ASGN = new PhpElementType(\"multiply assign\"); //*=\n\tIElementType opDIV_ASGN = new PhpElementType(\"division assign\"); ///=\n\tIElementType opREM_ASGN = new PhpElementType(\"division remainder assign\"); //%=\n\tIElementType opSHIFT_RIGHT = new PhpElementType(\"shift right\"); //>>\n\tIElementType opSHIFT_RIGHT_ASGN = new PhpElementType(\"shift right assign\"); //>>=\n\tIElementType opSHIFT_LEFT = new PhpElementType(\"shift left\"); //<<\n\tIElementType opSHIFT_LEFT_ASGN = new PhpElementType(\"shift left assign\"); //<<=\n\tIElementType opAND_ASGN = new PhpElementType(\"and assign\"); //&&=\n\tIElementType opOR_ASGN = new PhpElementType(\"or assign\"); //||=\n\tIElementType opBIT_AND_ASGN = new PhpElementType(\"bit and assign\"); //&=\n\tIElementType opBIT_OR_ASGN = new PhpElementType(\"bit or assign\"); //|=\n\tIElementType opBIT_XOR_ASGN = new PhpElementType(\"bit xor assign\"); //^=\n\tIElementType opAND = new PhpElementType(\"and\"); //&&\n\tIElementType opOR = new PhpElementType(\"or\"); //||\n\tIElementType opLESS = new PhpElementType(\"less than\"); //<\n\tIElementType opLESS_OR_EQUAL = new PhpElementType(\"less than or equal\"); //<=\n\tIElementType opGREATER = new PhpElementType(\"greater than\"); //>\n\tIElementType opGREATER_OR_EQUAL = new PhpElementType(\"greater than or equal\"); //>=\n\tIElementType opCONCAT_ASGN = new PhpElementType(\"concatenation assign\"); //.=\n\tIElementType opSILENCE = new PhpElementType(\"error silence\"); //@\n\tIElementType opDIV = new PhpElementType(\"division\"); ///\n\tIElementType SLASH = new PhpElementType(\"SLASH\"); // \\\n\tIElementType opMUL = new PhpElementType(\"multiply\"); //*\n\tIElementType opREM = new PhpElementType(\"remainder\"); //%\n\tIElementType HASH_ARRAY = new PhpElementType(\"HASH_ARRAY\"); //=>\n\tIElementType ELLIPSIS = new PhpElementType(\"ELLIPSIS\"); //...\n\n\t//casting\n\tIElementType opINTEGER_CAST = new PhpElementType(\"integer cast\");\n\tIElementType opFLOAT_CAST = new PhpElementType(\"float cast\");\n\tIElementType opBOOLEAN_CAST = new PhpElementType(\"boolean cast\");\n\tIElementType opSTRING_CAST = new PhpElementType(\"string cast\");\n\tIElementType opARRAY_CAST = new PhpElementType(\"array cast\");\n\tIElementType opOBJECT_CAST = new PhpElementType(\"object cast\");\n\tIElementType opUNSET_CAST = new PhpElementType(\"unset cast\");\n\n\tIElementType DOLLAR = new PhpElementType(\"dollar\");\n\n\tIElementType EXPR_SUBST_BEGIN = new PhpElementType(\"expression substitution begin\");\n\tIElementType EXPR_SUBST_END = new PhpElementType(\"expression substitution end\");\n\n\n\tTokenSet tsPHP_OPENING_TAGS = TokenSet.create(PHP_OPENING_TAG, PHP_ECHO_OPENING_TAG);\n\n\tTokenSet tsSTATEMENT_PRIMARY = TokenSet.create(kwIF, kwFOR, kwFOREACH, kwWHILE, kwDO, kwBREAK, kwCONTINUE, kwECHO, kwGLOBAL, kwFUNCTION, kwUNSET, kwSWITCH, kwTRY\n\n\t);\n\n\tTokenSet SOFT_KEYWORDS = TokenSet.create(FROM_KEYWORD);\n\n\tTokenSet KEYWORDS = TokenSet.orSet(tsSTATEMENT_PRIMARY, TokenSet.create(ABSTRACT_KEYWORD, kwARRAY, kwAS, kwBREAK, kwCASE, kwCATCH, kwCLASS, TRAIT_KEYWORD, kwCLONE, kwCONST, kwCONTINUE,\n\t\t\tkwDEFAULT, kwDIE, kwECHO, kwELSE, kwELSEIF, kwEMPTY, kwENDDECLARE, kwENDFOR, kwENDFOREACH, kwENDIF, kwENDSWITCH, kwENDWHILE, kwEVAL, kwEXCEPTION, kwEXIT, kwEXTENDS, FINAL_KEYWORD,\n\t\t\tkwFUNCTION, kwGLOBAL, kwIMPLEMENTS, kwINCLUDE, kwINCLUDE_ONCE, INTERFACE_KEYWORD, kwISSET, kwLIST, kwPHP_USER_FILTER, kwPRINT, PRIVATE_KEYWORD, PROTECTED_KEYWORD, PUBLIC_KEYWORD,\n\t\t\tkwREQUIRE, kwREQUIRE_ONCE, kwRETURN, STATIC_KEYWORD, kwTHROW, kwUNSET, kwVAR, kwNEW, kwINSTANCEOF, NAMESPACE_KEYWORD, USE_KEYWORD, FINALLY_KEYWORD, YIELD_KEYWORD));\n\n\tTokenSet tsMATH_OPS = TokenSet.create(opPLUS, opMINUS, opMUL, opDIV, opNEGATE, opREM);\n\n\tTokenSet tsBIT_OPS = TokenSet.create(opBIT_AND, opBIT_NOT, opBIT_OR, opBIT_XOR, opSHIFT_LEFT, opSHIFT_RIGHT);\n\n\tTokenSet tsASGN_OPS = TokenSet.create(opAND_ASGN, opBIT_AND_ASGN, opBIT_OR_ASGN, opBIT_XOR_ASGN, opCONCAT_ASGN, opMINUS_ASGN, opMUL_ASGN, opOR_ASGN, opPLUS_ASGN, opSHIFT_RIGHT_ASGN,\n\t\t\topSHIFT_LEFT_ASGN, opREM_ASGN, opASGN);\n\n\tTokenSet tsCAST_OPS = TokenSet.create(opINTEGER_CAST, opFLOAT_CAST, opBOOLEAN_CAST, opSTRING_CAST, opARRAY_CAST, opOBJECT_CAST, opUNSET_CAST);\n\n\tTokenSet tsUNARY_PREFIX_OPS = TokenSet.orSet(TokenSet.create(opNOT, opDECREMENT, opINCREMENT, opNEGATE, opBIT_NOT, opSILENCE, opUNARY_PLUS, kwNEW, kwPRINT), tsCAST_OPS);\n\n\tTokenSet tsUNARY_POSTFIX_OPS = TokenSet.create(opDECREMENT, opINCREMENT);\n\n\tTokenSet tsUNARY_OPS = TokenSet.orSet(tsUNARY_PREFIX_OPS, tsUNARY_POSTFIX_OPS);\n\n\tTokenSet tsCOMPARE_OPS = TokenSet.create(opEQUAL, opNOT_EQUAL, opIDENTICAL, opNOT_IDENTICAL, opGREATER, opLESS, opGREATER_OR_EQUAL, opLESS_OR_EQUAL);\n\n\tTokenSet tsLOGICAL_OPS = TokenSet.create(opAND, opOR);\n\n\tTokenSet tsTERNARY_OPS = TokenSet.create(opQUEST/*, opCOLON*/);\n\n\tTokenSet tsBINARY_OPS = TokenSet.orSet(TokenSet.create(opLIT_AND, opLIT_OR, opLIT_XOR, opCONCAT, kwINSTANCEOF), tsASGN_OPS, tsBIT_OPS, tsCOMPARE_OPS, tsMATH_OPS, tsLOGICAL_OPS, tsTERNARY_OPS);\n\n\tTokenSet tsOPERATORS = TokenSet.orSet(tsBINARY_OPS, tsUNARY_OPS);\n\n\tTokenSet tsNUMBERS = TokenSet.create(INTEGER_LITERAL, BINARY_LITERAL, FLOAT_LITERAL);\n\n\tTokenSet tsSTRINGS = TokenSet.create(STRING_LITERAL, STRING_LITERAL_SINGLE_QUOTE);\n\n\tTokenSet tsSTRING_EDGE = TokenSet.create(chDOUBLE_QUOTE, chSINGLE_QUOTE, chBACKTRICK);\n\n\tTokenSet tsEXPR_SUBST_MARKS = TokenSet.create(EXPR_SUBST_BEGIN, EXPR_SUBST_END);\n\n\tTokenSet tsOPENING_BRACKETS = TokenSet.create(LBRACE, LBRACKET, LPAREN);\n\n\tTokenSet tsCLOSING_BRACKETS = TokenSet.create(RBRACE, RBRACKET, RPAREN);\n\n\tTokenSet tsBRACKETS = TokenSet.orSet(tsOPENING_BRACKETS, tsCLOSING_BRACKETS);\n\n\tTokenSet tsREFERENCE_FIRST_TOKENS = TokenSet.create(VARIABLE, IDENTIFIER, DOLLAR);\n\n\tTokenSet tsOPERAND_FIRST_TOKENS = TokenSet.orSet(tsREFERENCE_FIRST_TOKENS, tsNUMBERS, tsSTRING_EDGE, TokenSet.create(kwARRAY, kwEMPTY, kwEXIT, kwISSET));\n\n\tTokenSet tsPRIMARY_TOKENS = TokenSet.orSet(tsOPERAND_FIRST_TOKENS, tsUNARY_OPS, TokenSet.create(LPAREN));\n\n\tTokenSet tsTERMINATOR = TokenSet.create(opSEMICOLON, PHP_CLOSING_TAG);\n\n\tTokenSet tsHEREDOC_IDS = TokenSet.create(HEREDOC_START, HEREDOC_END);\n\n\tTokenSet tsCOMMON_SCALARS = TokenSet.orSet(tsNUMBERS, TokenSet.create(STRING_LITERAL, STRING_LITERAL_SINGLE_QUOTE));\n\n\tTokenSet tsJUNKS = TokenSet.create(HTML, PHP_OPENING_TAG, PHP_ECHO_OPENING_TAG);\n\n\tTokenSet tsMODIFIERS = TokenSet.create(PRIVATE_KEYWORD, PROTECTED_KEYWORD, PUBLIC_KEYWORD, ABSTRACT_KEYWORD, FINAL_KEYWORD, STATIC_KEYWORD);\n\n\tTokenSet tsVARIABLE_MODIFIERS = TokenSet.orSet(tsMODIFIERS, TokenSet.create(kwVAR));\n\n\tTokenSet tsEXPRESSION_FIRST_TOKENS = TokenSet.orSet(tsCOMMON_SCALARS, tsCAST_OPS, TokenSet.create(kwPRINT, kwARRAY, kwEXIT, kwREQUIRE, kwREQUIRE_ONCE, kwINCLUDE, kwINCLUDE_ONCE, kwEVAL, kwEMPTY,\n\t\t\tkwISSET, kwNEW, kwCLONE, kwLIST), TokenSet.create(VARIABLE, VARIABLE_NAME, DOLLAR, IDENTIFIER, opINCREMENT, opDECREMENT, opPLUS, opMINUS, opNOT, opBIT_NOT, opSILENCE, LPAREN,\n\t\t\tchDOUBLE_QUOTE, chBACKTRICK, HEREDOC_START));\n\n\tTokenSet tsSTATEMENT_FIRST_TOKENS = TokenSet.create(kwIF, kwWHILE, kwDO, kwFOR, kwSWITCH, kwBREAK, kwCONTINUE, kwRETURN, kwGLOBAL, STATIC_KEYWORD, kwECHO, kwUNSET, kwFOREACH, kwDECLARE, kwTRY,\n\t\t\tkwTHROW);\n}",
"private TypeOfContext(int value, String name, String literal) {\r\n\t\tthis.value = value;\r\n\t\tthis.name = name;\r\n\t\tthis.literal = literal;\r\n\t}",
"public static CharacterLiteralExpression parse(TokenStream tokens)\n\t{\n\t\tPosition pos = tokens.getPosition();\n\t\ttokens.pushMark();\n\t\tCharacterLiteralExpression charExpr = null;\n\n\t\tToken token = tokens.read();\n\t\tif (token instanceof CharacterLiteralToken) {\n\t\t\tCharacterLiteralToken charToken = (CharacterLiteralToken) token;\n\t\t\tcharExpr = new CharacterLiteralExpression(charToken.getValues(), pos);\n\t\t}\n\n\t\ttokens.popMark(charExpr == null);\n\t\treturn charExpr;\n\t}",
"LWordConstant createLWordConstant();",
"public interface ITerminalSymbols {\n\n\tint TokenNameWHITESPACE = 1000;\n\tint TokenNameCOMMENT_LINE = 1001;\n\tint TokenNameCOMMENT_BLOCK = 1002;\n\tint TokenNameCOMMENT_JAVADOC = 1003;\n\n\tint TokenNameIdentifier = 5;\n\tint TokenNameabstract = 98;\n\n /**\n * \"assert\" token (added in J2SE 1.4).\n */\n\tint TokenNameassert = 118;\n\tint TokenNameboolean = 18;\n\tint TokenNamebreak = 119;\n\tint TokenNamebyte = 19;\n\tint TokenNamecase = 211;\n\tint TokenNamecatch = 225;\n\tint TokenNamechar = 20;\n\tint TokenNameclass = 165;\n\tint TokenNamecontinue = 120;\n\tint TokenNamedefault = 212;\n\tint TokenNamedo = 121;\n\tint TokenNamedouble = 21;\n\tint TokenNameelse = 213;\n\tint TokenNameextends = 243;\n\tint TokenNamefalse = 37;\n\tint TokenNamefinal = 99;\n\tint TokenNamefinally = 226;\n\tint TokenNamefloat = 22;\n\tint TokenNamefor = 122;\n\tint TokenNameif = 123;\n\tint TokenNameimplements = 268;\n\tint TokenNameimport = 191;\n\tint TokenNameinstanceof = 65;\n\tint TokenNameint = 23;\n\tint TokenNameinterface = 180;\n\tint TokenNamelong = 24;\n\tint TokenNamenative = 100;\n\tint TokenNamenew = 32;\n\tint TokenNamenull = 38;\n\tint TokenNamepackage = 214;\n\tint TokenNameprivate = 101;\n\tint TokenNameprotected = 102;\n\tint TokenNamepublic = 103;\n\tint TokenNamereturn = 124;\n\tint TokenNameshort = 25;\n\tint TokenNamestatic = 94;\n\tint TokenNamestrictfp = 104;\n\tint TokenNamesuper = 33;\n\tint TokenNameswitch = 125;\n\tint TokenNamesynchronized = 85;\n\tint TokenNamethis = 34;\n\tint TokenNamethrow = 126;\n\tint TokenNamethrows = 227;\n\tint TokenNametransient = 105;\n\tint TokenNametrue = 39;\n\tint TokenNametry = 127;\n\tint TokenNamevoid = 26;\n\tint TokenNamevolatile = 106;\n\tint TokenNamewhile = 117;\n\tint TokenNameIntegerLiteral = 40;\n\tint TokenNameLongLiteral = 41;\n\tint TokenNameFloatingPointLiteral = 42;\n\tint TokenNameDoubleLiteral = 43;\n\tint TokenNameCharacterLiteral = 44;\n\tint TokenNameStringLiteral = 45;\n\tint TokenNamePLUS_PLUS = 1;\n\tint TokenNameMINUS_MINUS = 2;\n\tint TokenNameEQUAL_EQUAL = 35;\n\tint TokenNameLESS_EQUAL = 66;\n\tint TokenNameGREATER_EQUAL = 67;\n\tint TokenNameNOT_EQUAL = 36;\n\tint TokenNameLEFT_SHIFT = 14;\n\tint TokenNameRIGHT_SHIFT = 11;\n\tint TokenNameUNSIGNED_RIGHT_SHIFT = 12;\n\tint TokenNamePLUS_EQUAL = 168;\n\tint TokenNameMINUS_EQUAL = 169;\n\tint TokenNameMULTIPLY_EQUAL = 170;\n\tint TokenNameDIVIDE_EQUAL = 171;\n\tint TokenNameAND_EQUAL = 172;\n\tint TokenNameOR_EQUAL = 173;\n\tint TokenNameXOR_EQUAL = 174;\n\tint TokenNameREMAINDER_EQUAL = 175;\n\tint TokenNameLEFT_SHIFT_EQUAL = 176;\n\tint TokenNameRIGHT_SHIFT_EQUAL = 177;\n\tint TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL = 178;\n\tint TokenNameOR_OR = 80;\n\tint TokenNameAND_AND = 79;\n\tint TokenNamePLUS = 3;\n\tint TokenNameMINUS = 4;\n\tint TokenNameNOT = 71;\n\tint TokenNameREMAINDER = 9;\n\tint TokenNameXOR = 63;\n\tint TokenNameAND = 62;\n\tint TokenNameMULTIPLY = 8;\n\tint TokenNameOR = 70;\n\tint TokenNameTWIDDLE = 72;\n\tint TokenNameDIVIDE = 10;\n\tint TokenNameGREATER = 68;\n\tint TokenNameLESS = 69;\n\tint TokenNameLPAREN = 7;\n\tint TokenNameRPAREN = 86;\n\tint TokenNameLBRACE = 110;\n\tint TokenNameRBRACE = 95;\n\tint TokenNameLBRACKET = 15;\n\tint TokenNameRBRACKET = 166;\n\tint TokenNameSEMICOLON = 64;\n\tint TokenNameQUESTION = 81;\n\tint TokenNameCOLON = 154;\n\tint TokenNameCOMMA = 90;\n\tint TokenNameDOT = 6;\n\tint TokenNameEQUAL = 167;\n\tint TokenNameEOF = 158;\n\tint TokenNameERROR = 309;\n\n /**\n * \"enum\" keyword (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameenum = 400;\n\n /**\n * \"@\" token (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameAT = 401;\n\n /**\n * \"...\" token (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameELLIPSIS = 402;\n\n\t/**\n\t * @since 3.1\n\t */\n\tint TokenNameconst = 403;\n\n\t/**\n\t * @since 3.1\n\t */\n\tint TokenNamegoto = 404; // goto not found in Java ? :)\n\n\t/**\n\t * @since 3.10\n\t */\n\tint TokenNameARROW = 405;\n\t/**\n\t * @since 3.10\n\t */\n\tint TokenNameCOLON_COLON = 406;\n\t\n\t\n}",
"public LiteralExpression (String str){\n _value = str;\n }",
"@Test\n public void LexerTest1() {\n String test = \"^^C B [ABC] %Hi \\r [GF_B] \\r % own line comment \\r\";\n for(Token t:(new Lexer(test)).getTokens()){\n System.out.println(t.type+\" : \"+t.value);\n }\n }",
"public StringLiteralToken(String id, String literal, boolean optional, boolean caseInsensitive) {\n\t\tthis.id = id;\n\t\tthis.literal = literal;\n\t\tthis.optional = optional;\n\t\tthis.caseInsensitive = caseInsensitive;\n\t}",
"private void scanToken() {\n char c = advance();\n switch (c) {\n case '(':\n addToken(LEFT_PAREN);\n break;\n case ')':\n addToken(RIGHT_PAREN);\n break;\n case '{':\n addToken(LEFT_BRACE);\n break;\n case '}':\n addToken(RIGHT_BRACE);\n break;\n case ',':\n addToken(COMMA);\n break;\n case '.':\n addToken(DOT);\n break;\n case '-':\n addToken(MINUS);\n break;\n case '+':\n addToken(PLUS);\n break;\n case ';':\n addToken(SEMICOLON);\n break;\n case '*':\n addToken(STAR);\n break;\n case '?':\n addToken(QUERY);\n break;\n case ':':\n addToken(COLON);\n break;\n\n case '!': // These characters could be part of a 2-char lexeme, so must check the second char.\n addToken(secondCharIs('=') ? BANG_EQUAL : BANG);\n break;\n case '=':\n addToken(secondCharIs('=') ? EQUAL_EQUAL : EQUAL);\n break;\n case '<':\n addToken(secondCharIs('=') ? LESS_EQUAL : LESS);\n break;\n case '>':\n addToken(secondCharIs('=') ? GREATER_EQUAL : GREATER);\n break;\n\n case '/': // The / char could be the beginning of a comment\n handleSlash();\n break;\n\n case ' ': // Ignore whitespace\n case '\\r':\n case '\\t':\n break;\n\n case '\\n': // Ignore newline but increase line count\n line++;\n break;\n\n case '\"': // Beginning of a string\n handleString();\n break;\n\n default:\n if (isDigit(c)) {\n handleNumber();\n } else if (isAlpha(c)) {\n handleIdentifier();\n } else {\n Rune.error(line, \"Unexpected character.\");\n }\n break;\n }\n }",
"public interface CupGeneratedPotTokenCodes {\n /* terminals */\n public static final int NONASSOC = 20;\n public static final int CLASS = 13;\n public static final int SEMICOLON = 3;\n public static final int ASTERISK = 5;\n public static final int PLUS = 8;\n public static final int QUESTION_MARK = 2;\n public static final int IDENTIFIER = 21;\n public static final int PRECEDENCE = 17;\n public static final int PERCENT_PREC = 11;\n public static final int COLON = 9;\n public static final int RIGHT = 19;\n public static final int TERMINAL = 14;\n public static final int LEFT = 18;\n public static final int COLON_COLON_EQUALS = 10;\n public static final int COMMA = 4;\n public static final int NONTERMINAL = 15;\n public static final int EOF = 0;\n public static final int error = 1;\n public static final int DOT = 6;\n public static final int START = 16;\n public static final int PACKAGE = 12;\n public static final int BAR = 7;\n public static final String[] terminalNames = new String[] {\n \"EOF\",\n \"error\",\n \"QUESTION_MARK\",\n \"SEMICOLON\",\n \"COMMA\",\n \"ASTERISK\",\n \"DOT\",\n \"BAR\",\n \"PLUS\",\n \"COLON\",\n \"COLON_COLON_EQUALS\",\n \"PERCENT_PREC\",\n \"PACKAGE\",\n \"CLASS\",\n \"TERMINAL\",\n \"NONTERMINAL\",\n \"START\",\n \"PRECEDENCE\",\n \"LEFT\",\n \"RIGHT\",\n \"NONASSOC\",\n \"IDENTIFIER\"\n };\n}",
"public Literal getLiteral();",
"public Literal getLiteral();",
"public Token getToken() throws IOException {\n\t\t// check if peek() was called\n\t\tif (nextToken != null) {\n\t\t\tToken token = nextToken;\n\t\t\tnextToken = null; // allow peek to call for next token\n\t\t\treturn token;\n\t\t}\n\n\t\t// skip whitespace character\n\t\twhile (Character.isWhitespace(nextChar)) {\n\t\t\t// check if whitespace char is a newline\n\t\t\tif (!skipNewline()) {\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\t// offset colNum for tab chars\n\t\t\tif (nextChar == '\\t')\n\t\t\t\tcolumnNumber += 3;\n\t\t}\n\t\t//skips comments\n\t\tif (nextChar == '@') {\n\t\t\tnextChar = getChar();\n\t\t\twhile (!skipNewline()) {\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\tnextChar = getChar();\n\t\t}\n\n\t\t// identifier or reserved word ([a-zA-Z][a-zA-Z0-9_]*)\n\n\t\tif (Character.isLetter(nextChar)) {\n\t\t\t// create new idVal starting with first char of identifier\n\t\t\tString current = Character.toString((char) nextChar);\n\t\t\tcolumnNumber++;\n\t\t\tnextChar = getChar();\n\n\t\t\t// include remaining sequence of chars that are letters, digits, or _\n\t\t\twhile (Character.isLetterOrDigit(nextChar)) {\n\t\t\t\tcurrent += (char) nextChar;\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\t// check if identifier is a reserved word\n\t\t\tTokenType type = reservedWords.get(current);\n\n\t\t\tif (type != null)\n\t\t\t\treturn new Token(type, new TokenAttribute());\n\n\n\n\t\t\t// token is an identifier\n\t\t\tresult.add(new Token(TokenType.IDENTIFIER, new TokenAttribute(current))); // adding token to results\n\t\t\treturn new Token(TokenType.IDENTIFIER, new TokenAttribute(current));\n\t\t}\n\n\t\t// integer literal ([0-9]+) OR float literal ([0-9]+.[0-9]+)\n\t\tif (Character.isDigit(nextChar)) {\n\n\t\t\t// create string representation of number\n\t\t\tString numString = Character.toString((char) nextChar);\n\t\t\tcolumnNumber++;\n\t\t\tnextChar = getChar();\n\n\t\t\t// concatenate remaining sequence of digits\n\t\t\twhile (Character.isDigit(nextChar)) {\n\t\t\t\tnumString += (char) nextChar;\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t}\n\n\t\t\tif (nextChar == '.') {\n\t\t\t\t//stream.mark(0);\n\t\t\t\tnextChar = getChar();\n\t\t\t\tcolumnNumber++;\n\n\t\t\t\tif (Character.isDigit(nextChar)) {\n\t\t\t\t\tnumString += '.';\n\t\t\t\t\t// concatenate remaining sequence of digits\n\t\t\t\t\twhile (Character.isDigit(nextChar)) {\n\t\t\t\t\t\tnumString += (char) nextChar;\n\t\t\t\t\t\tcolumnNumber++;\n\t\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\t}\n\t\t\t\t\tresult.add(new Token(TokenType.FLOAT_CONST, new TokenAttribute(Float.parseFloat(numString))));\n\t\t\t\t\treturn new Token(TokenType.FLOAT_CONST, new TokenAttribute(Float.parseFloat(numString)));\n\t\t\t\t}\n\t\t\t\twhile (!Character.isWhitespace(nextChar)) {\n\t\t\t\t\tcolumnNumber++;\n\t\t\t\t\tnumString += nextChar;\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t}\n\n\t\t\t\t//return new Token(TokenType.UNKNOWN, new TokenAttribute());\n\t\t\t}\n\n\t\t\t// return integer literal token\n\t\t\tresult.add(new Token(TokenType.INT_CONST, new TokenAttribute(Integer.parseInt(numString))));\n\t\t\treturn new Token(TokenType.INT_CONST, new TokenAttribute(Integer.parseInt(numString)));\n\t\t}\n\n\n\t\t//EOF --> end of file reached\n\t\tif (nextChar == -1) {\n\t\t\treturn new Token(TokenType.EOF, new TokenAttribute());\n\t\t}\n\n\n\t\t// check for binops\n\t\tswitch (nextChar) {\n\n\t\t\t//Checks for strings\n\t\t\tcase '\"':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tString current = Character.toString((char) nextChar);\n\t\t\t\tnextChar = getChar();\n\t\t\t\tcurrent += (char)nextChar;\n\n\t\t\t\twhile (nextChar != '\"') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tcurrent += (char)nextChar;\n\t\t\t\t}\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.STRING, new TokenAttribute(current)));\n\t\t\t\treturn new Token(TokenType.STRING, new TokenAttribute(current));\n\n\t\t\tcase '=':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '=' to match '==' binop\n\t\t\t\tif (nextChar == '=') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.EQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.EQ, new TokenAttribute());\n\t\t\t\t} else\n\t\t\t\t\tresult.add(new Token(TokenType.ASSIGN, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.ASSIGN, new TokenAttribute());\n\n\t\t\tcase '!':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '!' to match '!=' binop\n\t\t\t\tif (nextChar == '^') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.NEQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.NEQ, new TokenAttribute());\n\t\t\t\t}\n\n\t\t\tcase '<':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '<' to match '<=' binop\n\t\t\t\tif (nextChar == '=') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.LT_EQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.LT_EQ, new TokenAttribute());\n\t\t\t\t} else\n\t\t\t\t\tresult.add(new Token(TokenType.LT, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.LT, new TokenAttribute());\n\n\t\t\tcase '>':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\n\t\t\t\t// check if next char is '<' to match '<=' binop\n\t\t\t\tif (nextChar == '=') {\n\t\t\t\t\tnextChar = getChar();\n\t\t\t\t\tresult.add(new Token(TokenType.GT_EQ, new TokenAttribute()));\n\t\t\t\t\treturn new Token(TokenType.GT_EQ, new TokenAttribute());\n\t\t\t\t} else\n\t\t\t\t\tresult.add(new Token(TokenType.RT, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.RT, new TokenAttribute());\n\n\t\t\tcase '+':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.PLUS, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.PLUS, new TokenAttribute());\n\n\t\t\tcase '-':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.MINUS, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.MINUS, new TokenAttribute());\n\n\t\t\tcase '*':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.MULTIPLY, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.MULTIPLY, new TokenAttribute());\n\n\t\t\tcase '/':\n\t\t\t\tcolumnNumber++;\n\t\t\t\tnextChar = getChar();\n\t\t\t\tresult.add(new Token(TokenType.DIVIDE, new TokenAttribute()));\n\t\t\t\treturn new Token(TokenType.DIVIDE, new TokenAttribute());\n\n\n\t\t}\n\n\t\t// check for punctuation\n\t\tTokenType type = punctuation.get((char) nextChar);\n\t\tcolumnNumber++;\n\t\tnextChar = getChar();\n\n\t\t// found punctuation token\n\t\tif (type != null) {\n\t\t\tresult.add(new Token(type, new TokenAttribute()));\n\t\t\treturn new Token(type, new TokenAttribute());\n\t\t}\n\n\t\t// token type is unknown\n\t\tresult.add(new Token(TokenType.UNKNOWN, new TokenAttribute()));\n\t\treturn new Token(TokenType.UNKNOWN, new TokenAttribute());\n\t}",
"private void getToken(){\n\t\tboolean primaryFirst=false;\t\t\t// determines whether the current token is a primary (true) or an operator (false)\n\t\tboolean primaryIsReal=false;\t\t// determines whether the current primary is a numerical number (true) or a name (false)\n\t\tboolean checkedPrimaryType=false;\t// determine whether the primary type has already been checked (true) or not (false)\n\t\t\n\t\twhile(true){\n\t\t\tcurr_pos++;\n\t\t\tif(curr_pos>input.length()-1){\n\t\t\t\tcurr_tok=token_value.END;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(\n\t\t\t\tinput.charAt(curr_pos)=='+' ||\n\t\t\t\tinput.charAt(curr_pos)=='-' ||\n\t\t\t\tinput.charAt(curr_pos)=='*'\t||\t\n\t\t\t\tinput.charAt(curr_pos)=='/'\t||\n\t\t\t\tinput.charAt(curr_pos)=='('\t||\n\t\t\t\tinput.charAt(curr_pos)==')'\t||\n\t\t\t\tinput.charAt(curr_pos)=='^'\t||\n\t\t\t\tinput.charAt(curr_pos)=='_'\t||\n\t\t\t\tinput.charAt(curr_pos)=='='\n\t\t\t){\n\t\t\t\tif(!primaryFirst){\n\t\t\t\t\tfor(int i=0; i<charToEnum.length; i++){\n\t\t\t\t\t\tif(input.charAt(curr_pos) == charToEnum[i]){\n\t\t\t\t\t\t\tcurr_tok=token_value.values()[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcurr_pos--;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(!checkedPrimaryType){\n\t\t\t\t\tcheckedPrimaryType=true;\n\t\t\t\t\tint num = (int)input.charAt(curr_pos);\n\t\t\t\t\tif(num > 47 && num < 58){ // number case\n\t\t\t\t\t\tprimaryIsReal=true;\n\t\t\t\t\t}\n\t\t\t\t\tstring_value=\"\";\n\t\t\t\t}\n\t\t\t\tprimaryFirst=true;\n\t\t\t\tstring_value+=input.charAt(curr_pos);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(primaryFirst){\n\t\t\tif(primaryIsReal){\n\t\t\t\tnumber_value = Double.parseDouble(string_value);\n\t\t\t\tcurr_tok=token_value.NUMBER;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcurr_tok=token_value.NAME;\n\t\t\t}\n\t\t}\n\t}",
"final public void ClassName() throws ParseException {\n jj_consume_token(IDENTIFIER);\n label_24:\n while (true) {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case 88:\n case 98:\n ;\n break;\n default:\n jj_la1[104] = jj_gen;\n break label_24;\n }\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case 88:\n jj_consume_token(88);\n jj_consume_token(IDENTIFIER);\n break;\n case 98:\n jj_consume_token(98);\n jj_consume_token(IDENTIFIER);\n break;\n default:\n jj_la1[105] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n }\n }",
"public Snippet visit(ConstantDeclaration n, Snippet argu) {\n\t\t Snippet _ret= new Snippet(\"\",\"public static final \",null, false);\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t Snippet f3 = n.type.accept(this, argu);\n\t Snippet f4 = n.identifier.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t Snippet f6 = n.methodCall.accept(this, argu);\n\t n.nodeToken4.accept(this, argu);\n\t _ret.returnTemp += f3.returnTemp+\" \"+f4.returnTemp+\" = \"+f6.returnTemp+\";\\n\";\n\t\t\tcurrentClassBody.constants += _ret.returnTemp;\n\t\t\treturn _ret;\n\t }",
"public Token getNextToken() \n{\n Token specialToken = null;\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n jjmatchedPos = -1;\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n return matchedToken;\n }\n image = jjimage;\n image.setLength(0);\n jjimageLen = 0;\n\n for (;;)\n {\n switch(curLexState)\n {\n case 0:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n if (jjmatchedPos == 0 && jjmatchedKind > 204)\n {\n jjmatchedKind = 204;\n }\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n if (jjmatchedPos == 0 && jjmatchedKind > 12)\n {\n jjmatchedKind = 12;\n }\n break;\n case 2:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_2();\n if (jjmatchedPos == 0 && jjmatchedKind > 12)\n {\n jjmatchedKind = 12;\n }\n break;\n case 3:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_3();\n if (jjmatchedPos == 0 && jjmatchedKind > 12)\n {\n jjmatchedKind = 12;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n }\n else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n if (specialToken == null)\n specialToken = matchedToken;\n else\n {\n matchedToken.specialToken = specialToken;\n specialToken = (specialToken.next = matchedToken);\n }\n SkipLexicalActions(matchedToken);\n }\n else\n SkipLexicalActions(null);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n MoreLexicalActions();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n }\n catch (java.io.IOException e1) { }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n}",
"final public IASTLiteralTextNode Argument() throws ParseException {\r\n IASTLiteralTextNode node = null;\r\n Token lastToken = null;\r\n Token equalToken = null;\r\n Token firstToken = null;\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case INT:\r\n firstToken = jj_consume_token(INT);\r\n if (jj_2_3(2147483647)) {\r\n equalToken = jj_consume_token(EQUAL);\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case MINUS:\r\n jj_consume_token(MINUS);\r\n break;\r\n default:\r\n jj_la1[16] = jj_gen;\r\n ;\r\n }\r\n lastToken = jj_consume_token(INT);\r\n } else {\r\n ;\r\n }\r\n if (equalToken == null) {\r\n lastToken = firstToken;\r\n }\r\n break;\r\n case ASTERISK:\r\n case WORD:\r\n case STRING:\r\n case PACKAGE_OPTION:\r\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\r\n case ASTERISK:\r\n firstToken = jj_consume_token(ASTERISK);\r\n break;\r\n case PACKAGE_OPTION:\r\n firstToken = jj_consume_token(PACKAGE_OPTION);\r\n break;\r\n case WORD:\r\n firstToken = jj_consume_token(WORD);\r\n break;\r\n case STRING:\r\n firstToken = jj_consume_token(STRING);\r\n break;\r\n default:\r\n jj_la1[17] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n lastToken = firstToken;\r\n break;\r\n default:\r\n jj_la1[18] = jj_gen;\r\n jj_consume_token(-1);\r\n throw new ParseException();\r\n }\r\n node = getRawLiteralTextNodeSpanning(firstToken, lastToken);\r\n {if (true) return node;}\r\n throw new Error(\"Missing return statement in function\");\r\n }",
"public Token(int start)\n {\n this.start = start;\n }",
"Token readToken() throws SyntaxException;",
"public static Token getNextToken() \n{\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n matchedToken = jjFillToken();\n return matchedToken;\n }\n\n for (;;)\n {\n switch(curLexState)\n {\n case 0:\n try { input_stream.backup(0);\n while (curChar <= 32 && (0x100002200L & (1L << curChar)) != 0L)\n curChar = input_stream.BeginToken();\n }\n catch (java.io.IOException e1) { continue EOFLoop; }\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n if (jjmatchedPos == 0 && jjmatchedKind > 6)\n {\n jjmatchedKind = 6;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n }\n else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n }\n catch (java.io.IOException e1) { }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n}",
"private ELOperandToken readVarToken() {\r\n \t\tfState = STATE_VAR;\r\n \t\tint endOfToken = index;\r\n \t\tint ch;\r\n \t\tint type = ELOperandToken.EL_PROPERTY_NAME_TOKEN;\r\n \t\twhile((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isJavaIdentifierPart(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t\t\t}\r\n \t\t}\r\n \t\treleaseChar();\r\n \t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t}",
"public Token() {\n this.clitic = \"none\";\n }",
"final public Token IdentifierOrReserved() throws ParseException {\n /*@bgen(jjtree) IdentifierOrReserved */\n SimpleNode jjtn000 = new SimpleNode(JJTIDENTIFIERORRESERVED);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);Token t1;\n log.trace(\"Entering IdentifierOrReserved\");\n try {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case DEFINE:\n t1 = jj_consume_token(DEFINE);\n break;\n case LOAD:\n t1 = jj_consume_token(LOAD);\n break;\n case FILTER:\n t1 = jj_consume_token(FILTER);\n break;\n case FOREACH:\n t1 = jj_consume_token(FOREACH);\n break;\n case MATCHES:\n t1 = jj_consume_token(MATCHES);\n break;\n case ORDER:\n t1 = jj_consume_token(ORDER);\n break;\n case ARRANGE:\n t1 = jj_consume_token(ARRANGE);\n break;\n case DISTINCT:\n t1 = jj_consume_token(DISTINCT);\n break;\n case COGROUP:\n t1 = jj_consume_token(COGROUP);\n break;\n case JOIN:\n t1 = jj_consume_token(JOIN);\n break;\n case CROSS:\n t1 = jj_consume_token(CROSS);\n break;\n case UNION:\n t1 = jj_consume_token(UNION);\n break;\n case SPLIT:\n t1 = jj_consume_token(SPLIT);\n break;\n case INTO:\n t1 = jj_consume_token(INTO);\n break;\n case IF:\n t1 = jj_consume_token(IF);\n break;\n case ALL:\n t1 = jj_consume_token(ALL);\n break;\n case ANY:\n t1 = jj_consume_token(ANY);\n break;\n case AS:\n t1 = jj_consume_token(AS);\n break;\n case BY:\n t1 = jj_consume_token(BY);\n break;\n case USING:\n t1 = jj_consume_token(USING);\n break;\n case INNER:\n t1 = jj_consume_token(INNER);\n break;\n case OUTER:\n t1 = jj_consume_token(OUTER);\n break;\n case PARALLEL:\n t1 = jj_consume_token(PARALLEL);\n break;\n case GROUP:\n t1 = jj_consume_token(GROUP);\n break;\n case AND:\n t1 = jj_consume_token(AND);\n break;\n case OR:\n t1 = jj_consume_token(OR);\n break;\n case NOT:\n t1 = jj_consume_token(NOT);\n break;\n case GENERATE:\n t1 = jj_consume_token(GENERATE);\n break;\n case FLATTEN:\n t1 = jj_consume_token(FLATTEN);\n break;\n case EVAL:\n t1 = jj_consume_token(EVAL);\n break;\n case ASC:\n t1 = jj_consume_token(ASC);\n break;\n case DESC:\n t1 = jj_consume_token(DESC);\n break;\n case INT:\n t1 = jj_consume_token(INT);\n break;\n case LONG:\n t1 = jj_consume_token(LONG);\n break;\n case FLOAT:\n t1 = jj_consume_token(FLOAT);\n break;\n case DOUBLE:\n t1 = jj_consume_token(DOUBLE);\n break;\n case CHARARRAY:\n t1 = jj_consume_token(CHARARRAY);\n break;\n case BYTEARRAY:\n t1 = jj_consume_token(BYTEARRAY);\n break;\n case BAG:\n t1 = jj_consume_token(BAG);\n break;\n case TUPLE:\n t1 = jj_consume_token(TUPLE);\n break;\n case MAP:\n t1 = jj_consume_token(MAP);\n break;\n case IS:\n t1 = jj_consume_token(IS);\n break;\n case NULL:\n t1 = jj_consume_token(NULL);\n break;\n case STREAM:\n t1 = jj_consume_token(STREAM);\n break;\n case THROUGH:\n t1 = jj_consume_token(THROUGH);\n break;\n case STORE:\n t1 = jj_consume_token(STORE);\n break;\n case SHIP:\n t1 = jj_consume_token(SHIP);\n break;\n case CACHE:\n t1 = jj_consume_token(CACHE);\n break;\n case INPUT:\n t1 = jj_consume_token(INPUT);\n break;\n case OUTPUT:\n t1 = jj_consume_token(OUTPUT);\n break;\n case ERROR:\n t1 = jj_consume_token(ERROR);\n break;\n case STDIN:\n t1 = jj_consume_token(STDIN);\n break;\n case STDOUT:\n t1 = jj_consume_token(STDOUT);\n break;\n case LIMIT:\n t1 = jj_consume_token(LIMIT);\n break;\n case SAMPLE:\n t1 = jj_consume_token(SAMPLE);\n break;\n case IDENTIFIER:\n t1 = jj_consume_token(IDENTIFIER);\n break;\n default:\n jj_la1[7] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n {if (true) return t1;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }",
"private Token scanSingleCharacterToken() {\n TokenType type;\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n switch (c) {\n case '(' -> type = TokenType.LPAREN;\n case ')' -> type = TokenType.RPAREN;\n case '[' -> type = TokenType.LBRACKET;\n case ']' -> type = TokenType.RBRACKET;\n case '+' -> type = TokenType.ADD;\n case '-' -> type = TokenType.MINUS;\n case '*' -> type = TokenType.MULTIPLY;\n case '%' -> type = TokenType.REMAINDER;\n case '=' -> type = TokenType.EQUALS;\n case ',' -> type = TokenType.COMMA;\n case ';' -> type = TokenType.SEPARATOR;\n default -> type = null;\n }\n\n buffer.add(c);\n Token tok = new Token(buffer.toString(), type, pos);\n buffer.flush();\n c = in.read();\n return tok;\n }",
"@NotNull\n private SyntaxToken<?> maybeConstant() {\n final SyntaxToken<?> token = peek();\n final SyntaxToken<?> t;\n if (token.getValue().equals(Keyword.CONSTANT)) {\n tokens.add(next());\n t = parseDefinitionBody(SyntaxColor.CONSTANT);\n constants.add(t.getValue().toString());\n } else {\n t = parseDefinitionBody(SyntaxColor.REFERENCE);\n references.add(t.getValue().toString());\n }\n return t;\n }",
"public static List<Token> tokenize(String source) {\n List<Token> tokens = new ArrayList<>();\n\n String token = \"\";\n TokenizeState state = TokenizeState.DEFAULT;\n\n // Many tokens are a single character, like operators and ().\n String charTokens = \"\\n=+-*/<>(),\";\n TokenType[] tokenTypes = {LINE, EQUALS,\n OPERATOR, OPERATOR, OPERATOR,\n OPERATOR, OPERATOR, OPERATOR,\n LEFT_PAREN, RIGHT_PAREN,COMMA\n };\n\n // Scan through the code one character at a time, building up the list\n // of tokens.\n for (int i = 0; i < source.length(); i++) {\n char c = source.charAt(i);\n switch (state) {\n case DEFAULT:\n // Our comment is two -- tokens so we need to check before\n // assuming its a minus sign\n if ( c == '-' && source.charAt(i+1 ) == '-') {\n state = TokenizeState.COMMENT;\n } else if (charTokens.indexOf(c) != -1) {\n tokens.add(new Token(Character.toString(c),\n tokenTypes[charTokens.indexOf(c)]));\n } else if (Character.isLetter(c) || c=='_') { // We support underbars as WORD start.\n token += c;\n state = TokenizeState.WORD;\n } else if (Character.isDigit(c)) {\n token += c;\n state = TokenizeState.NUMBER;\n } else if (c == '\"') {\n state = TokenizeState.STRING;\n } else if (c == '\\'') {\n state = TokenizeState.COMMENT; // TODO Depricated. Delete me.\n }\n break;\n\n case WORD:\n if (Character.isLetterOrDigit(c) || c=='_' ) { // We allow underbars\n token += c;\n } else if (c == ':') {\n tokens.add(new Token(token, TokenType.LABEL));\n token = \"\";\n state = TokenizeState.DEFAULT;\n } else {\n tokens.add(new Token(token, TokenType.WORD));\n token = \"\";\n state = TokenizeState.DEFAULT;\n i--; // Reprocess this character in the default state.\n }\n break;\n\n case NUMBER:\n // HACK: Negative numbers and floating points aren't supported.\n // To get a negative number, just do 0 - <your number>.\n // To get a floating point, divide.\n if (Character.isDigit(c)) {\n token += c;\n } else {\n tokens.add(new Token(token, TokenType.NUMBER));\n token = \"\";\n state = TokenizeState.DEFAULT;\n i--; // Reprocess this character in the default state.\n }\n break;\n\n case STRING:\n if (c == '\"') {\n tokens.add(new Token(token, TokenType.STRING));\n token = \"\";\n state = TokenizeState.DEFAULT;\n } else {\n token += c;\n }\n break;\n\n case COMMENT:\n if (c == '\\n') {\n state = TokenizeState.DEFAULT;\n }\n break;\n }\n }\n\n // HACK: Silently ignore any in-progress token when we run out of\n // characters. This means that, for example, if a script has a string\n // that's missing the closing \", it will just ditch it.\n return tokens;\n }",
"TypeLiteralExp createTypeLiteralExp();",
"Syntax.Node ParseConstFactor(Token t) throws Exception{\n if(t.type==TokenType.INTEGER){\n return new Syntax.NodeInteger((int)t.token);\n }\n if(t.type==TokenType.DOUBLE){\n return new Syntax.NodeDouble((double)t.token);\n }\n if(t.type==TokenType.IDENTIFIER){\n return new Syntax.NodeVar((String)t.token);\n }\n if(t.token.equals(\"nil\")){\n //lexer.next();\n return new Syntax.NodeNil(\"nil\");\n }\n if (t.type==TokenType.BOOLEAN){\n return new Syntax.Nodeboolean((String) t.token);\n }\n\n throw new Exception(\"Error in ParseConstFactor !!! \");\n }",
"private Token scanKeywordOrIdentifier() {\n Token tok;\n Pair<Integer, Integer> pos = new Pair<>(in.line(), in.pos());\n while ((Character.isLetterOrDigit(c) || c == '_') && c != -1) {\n buffer.add(c);\n c = in.read();\n }\n\n String st = buffer.toString();\n TokenType type;\n buffer.flush();\n\n if ((type = Token.KEYWORD_TABLE.get(st)) != null) {\n tok = new Token(st, type, pos);\n } else {\n tok = new Token(st, TokenType.IDENTIFIER, pos);\n }\n return tok;\n }",
"private Token(TokenType type, String value, Expression expression, TokenLine tokens) {\n TYPE = type;\n VALUE = value;\n EXPRESSION = expression;\n CHILDREN = tokens;\n }",
"private FileType(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"public ValueWrapper parseConstant(String t) {\n \tthrow new UnsupportedOperationException();\n }",
"SimpleLiteral createSimpleLiteral();",
"public static Token getNextToken() {\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop:\n for (; ; ) {\n try {\n curChar = input_stream.BeginToken();\n } catch (java.io.IOException e) {\n jjmatchedKind = 0;\n jjmatchedPos = -1;\n matchedToken = jjFillToken();\n return matchedToken;\n }\n\n for (; ; ) {\n switch (curLexState) {\n case 0:\n try {\n input_stream.backup(0);\n while (curChar <= 32 && (0x100002600L & (1L << curChar)) != 0L)\n curChar = input_stream.BeginToken();\n } catch (java.io.IOException e1) {\n continue EOFLoop;\n }\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n if (jjmatchedPos == 0 && jjmatchedKind > 10) {\n jjmatchedKind = 10;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff) {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {\n matchedToken = jjFillToken();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n } else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) {\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n } catch (java.io.IOException e1) {\n }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try {\n input_stream.readChar();\n input_stream.backup(1);\n } catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n } else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n }",
"public BasicParser(BasicParserTokenManager tm) {\n\t token_source = tm;\n\t token = new Token();\n\t jj_ntk = -1;\n\t jj_gen = 0;\n\t for (int i = 0; i < 13; i++) jj_la1[i] = -1;\n }",
"public Token getNextToken() \n{\n Token specialToken = null;\n Token matchedToken;\n int curPos = 0;\n\n EOFLoop :\n for (;;)\n {\n try\n {\n curChar = input_stream.BeginToken();\n }\n catch(java.io.IOException e)\n {\n jjmatchedKind = 0;\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n return matchedToken;\n }\n image = jjimage;\n image.setLength(0);\n jjimageLen = 0;\n\n for (;;)\n {\n switch(curLexState)\n {\n case 0:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_0();\n if (jjmatchedPos == 0 && jjmatchedKind > 121)\n {\n jjmatchedKind = 121;\n }\n break;\n case 1:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_1();\n break;\n case 2:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_2();\n if (jjmatchedPos == 0 && jjmatchedKind > 9)\n {\n jjmatchedKind = 9;\n }\n break;\n case 3:\n jjmatchedKind = 0x7fffffff;\n jjmatchedPos = 0;\n curPos = jjMoveStringLiteralDfa0_3();\n if (jjmatchedPos == 0 && jjmatchedKind > 9)\n {\n jjmatchedKind = 9;\n }\n break;\n }\n if (jjmatchedKind != 0x7fffffff)\n {\n if (jjmatchedPos + 1 < curPos)\n input_stream.backup(curPos - jjmatchedPos - 1);\n if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n matchedToken.specialToken = specialToken;\n TokenLexicalActions(matchedToken);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n return matchedToken;\n }\n else if ((jjtoSkip[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n if ((jjtoSpecial[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L)\n {\n matchedToken = jjFillToken();\n if (specialToken == null)\n specialToken = matchedToken;\n else\n {\n matchedToken.specialToken = specialToken;\n specialToken = (specialToken.next = matchedToken);\n }\n SkipLexicalActions(matchedToken);\n }\n else\n SkipLexicalActions(null);\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n continue EOFLoop;\n }\n MoreLexicalActions();\n if (jjnewLexState[jjmatchedKind] != -1)\n curLexState = jjnewLexState[jjmatchedKind];\n curPos = 0;\n jjmatchedKind = 0x7fffffff;\n try {\n curChar = input_stream.readChar();\n continue;\n }\n catch (java.io.IOException e1) { }\n }\n int error_line = input_stream.getEndLine();\n int error_column = input_stream.getEndColumn();\n String error_after = null;\n boolean EOFSeen = false;\n try { input_stream.readChar(); input_stream.backup(1); }\n catch (java.io.IOException e1) {\n EOFSeen = true;\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n if (curChar == '\\n' || curChar == '\\r') {\n error_line++;\n error_column = 0;\n }\n else\n error_column++;\n }\n if (!EOFSeen) {\n input_stream.backup(1);\n error_after = curPos <= 1 ? \"\" : input_stream.GetImage();\n }\n throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR);\n }\n }\n}"
] | [
"0.71155787",
"0.70305866",
"0.6956046",
"0.6914663",
"0.6850541",
"0.6840152",
"0.6662246",
"0.6583701",
"0.64419836",
"0.64267457",
"0.63652784",
"0.631383",
"0.629485",
"0.6287227",
"0.6269712",
"0.62518096",
"0.624475",
"0.62288386",
"0.622461",
"0.62202245",
"0.61992085",
"0.61654663",
"0.61360043",
"0.61210775",
"0.61113423",
"0.6060178",
"0.60411197",
"0.5971658",
"0.5971658",
"0.59606266",
"0.5938627",
"0.5925746",
"0.5924348",
"0.5923062",
"0.5918272",
"0.5904419",
"0.58856213",
"0.5884798",
"0.58738315",
"0.5861565",
"0.58298564",
"0.58041114",
"0.57492447",
"0.57411873",
"0.5737567",
"0.56993514",
"0.56972826",
"0.568117",
"0.56751025",
"0.567405",
"0.5664551",
"0.56603384",
"0.5649162",
"0.56386024",
"0.56386024",
"0.5636544",
"0.5635712",
"0.56200004",
"0.5613047",
"0.56109333",
"0.56050736",
"0.5602118",
"0.56003094",
"0.5594247",
"0.55910915",
"0.5570781",
"0.5551528",
"0.5547997",
"0.5542193",
"0.5537922",
"0.55357265",
"0.55333054",
"0.55328006",
"0.55234",
"0.55234",
"0.5505193",
"0.549521",
"0.5462191",
"0.5460615",
"0.5458566",
"0.5447812",
"0.54475737",
"0.5431557",
"0.54104066",
"0.5409216",
"0.5404376",
"0.54041064",
"0.5403204",
"0.5401231",
"0.5398554",
"0.5392514",
"0.5391756",
"0.5389641",
"0.5378224",
"0.5353048",
"0.53362066",
"0.5328893",
"0.53272015",
"0.5326709",
"0.53214467"
] | 0.6670924 | 6 |
Establecemos los metodos de cada caso | public void ParImpar() throws IOException{
System.out.println("Ingrese un numero: ");
numero = leer.nextInt();
if (numero % 2 == 0)
System.out.println("El numero " + numero + " es par");
else
System.out.println("El numero " + numero + " es impar");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mostrarDados() {\n txtId.setText(\"\" + lista.get(indice).getId());\n txtNome.setText(lista.get(indice).getNome());\n txtEmail.setText(lista.get(indice).getEmail());\n txtSenha.setText(lista.get(indice).getSenha());\n preencheTabela();\n }",
"public void marcarTodos() {\r\n\t\tfor (int i = 0; i < listaPlantaCargoDto.size(); i++) {\r\n\t\t\tPlantaCargoDetDTO p = new PlantaCargoDetDTO();\r\n\t\t\tp = listaPlantaCargoDto.get(i);\r\n\t\t\tif (!obtenerCategoria(p.getPlantaCargoDet())\r\n\t\t\t\t\t.equals(\"Sin Categoria\"))\r\n\t\t\t\tp.setReservar(true);\r\n\t\t\tlistaPlantaCargoDto.set(i, p);\r\n\t\t}\r\n\t\tcantReservados = listaPlantaCargoDto.size();\r\n\t}",
"private void mostradados() {\r\n\t\tint in = 0;\r\n\r\n\t\tfor (Estado e : Estado.values()) {\r\n\t\t\tif (in == 0) {\r\n\t\t\t\tcmbx_estado.addItem(\"\");\r\n\t\t\t\tin = 1;\r\n\t\t\t}\r\n\t\t\tcmbx_estado.addItem(e.getNome());\r\n\t\t}\r\n\r\n\t\tfor (int x = 0; x < listacliente.size(); x++) {\r\n\t\t\tin = 0;\r\n\t\t\tif (x == 0) {\r\n\t\t\t\tcmbx_cidade.addItem(\"\");\r\n\t\t\t}\r\n\r\n\t\t\tfor (int y = 0; y < cmbx_cidade.getItemCount(); y++) {\r\n\t\t\t\tif (listacliente.get(x).getCidade().equals(cmbx_cidade.getItemAt(y).toString()))\r\n\t\t\t\t\tin++;\r\n\t\t\t\tif (in > 1)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (in < 1)\r\n\t\t\t\tcmbx_cidade.addItem(listacliente.get(x).getCidade());\r\n\t\t}\r\n\t}",
"private void limpiarDatos() {\n\t\t\n\t}",
"public void MostrarDatos(){\n // En este caso, estamos mostrando la informacion necesaria del objeto\n // podemos acceder a la informacion de la persona y de su arreglo de Carros por medio de un recorrido\n System.out.println(\"Hola, me llamo \" + nombre);\n System.out.println(\"Tengo \" + contador + \" carros.\");\n for (int i = 0; i < contador; i++) {\n System.out.println(\"Tengo un carro marca: \" + carros[i].getMarca());\n System.out.println(\"El numero de placa es: \" + carros[i].getPlaca()); \n System.out.println(\"----------------------------------------------\");\n }\n }",
"private void carregarAgendamentos() {\n agendamentos.clear();\n\n // Carregar os agendamentos do banco de dados\n agendamentos = new AgendamentoDAO(this).select();\n\n // Atualizar a lista\n setupRecyclerView();\n }",
"@Override\n\tpublic void mostrarDados() {\n\t\t\n\t}",
"@Override\r\n public ArrayList<Mensaje> leerTodosLosMensajes() {\n ArrayList<Mensaje> m = (ArrayList<Mensaje>) session.createCriteria(Mensaje.class).list();\r\n cerrarTodo();\r\n return m;\r\n }",
"@Override\r\n public List<Assunto> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"FROM Assunto As a\");\r\n return query.getResultList();\r\n }",
"public void loadTodosMensajes() {\r\n\t\t// Carga mensajes\r\n\t\tinfoDebug(\"Vista\", \"Cargando mensajes\");\r\n\t\tmensajesEntrantes = getTodosMensajesEntrantes(getEmpleadoActual().getEmplId());\r\n\t\tinfoDebug(\"Vista\", \"Acabado\");\r\n\t}",
"private void populaDiasTreinoCat()\n {\n DiasTreinoCat dias1 = new DiasTreinoCat(\"1 vez por semana\", 1);\n diasTreinoCatDAO.insert(dias1);\n DiasTreinoCat dias2 = new DiasTreinoCat(\"2 vez por semana\", 2);\n diasTreinoCatDAO.insert(dias2);\n DiasTreinoCat dias3 = new DiasTreinoCat(\"3 vez por semana\", 3);\n diasTreinoCatDAO.insert(dias3);\n DiasTreinoCat dias4 = new DiasTreinoCat(\"4 vez por semana\", 4);\n diasTreinoCatDAO.insert(dias4);\n DiasTreinoCat dias5 = new DiasTreinoCat(\"5 vez por semana\", 5);\n diasTreinoCatDAO.insert(dias5);\n DiasTreinoCat dias6 = new DiasTreinoCat(\"6 vez por semana\", 6);\n diasTreinoCatDAO.insert(dias6);\n DiasTreinoCat dias7 = new DiasTreinoCat(\"7 vez por semana\", 7);\n diasTreinoCatDAO.insert(dias7);\n\n }",
"public static void main(String[] args) {\n Perro perro = new Perro(1, \"Juanito\", \"Frespuder\", 'M');\n Gato gato = new Gato(2, \"Catya\", \"Egipcio\", 'F', true);\n Tortuga paquita = new Tortuga(3, \"Pquita\", \"Terracota\", 'F', 12345857);\n\n SetJuego equipo = new SetJuego(4, \"Gato equipo\", 199900, \"Variado\", \"16*16*60\", 15, \"Gatos\");\n PelotaMorder pelotita = new PelotaMorder(1, \"bola loca\", 15000, \"Azul\", \"60 diam\");\n\n System.out.println(perro.toString());//ToString original de \"mascotas\"\n System.out.println(gato.toString());//ToString sobrescrito\n System.out.println(paquita.toString());\n\n System.out.println(equipo);//ToString sobrescrito (tambien se ejecuta sin especificarlo)\n System.out.println(pelotita.toString());//Original de \"Juguetes\"\n\n //metodos clase mascota\n perro.darCredito();//aplicado de la interface darcredito\n paquita.darDeAlta(\"Terracota\",\"Paquita\");\n equipo.devolucion(4,\"Gato Equipo\");\n\n //vamos a crear un arraylist\n ArrayList<String> servicios = new ArrayList<String>();\n servicios.add(\"Inyectologia\");\n servicios.add(\"Peluqueria\");\n servicios.add(\"Baño\");\n servicios.add(\"Desparacitacion\");\n servicios.add(\"Castracion\");\n\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n servicios.remove(3);//removemos el indice 3 \"Desparacitacion\"\n\n System.out.println(\"Se ha removido un servicio..................\");\n System.out.println(\"Lista de servicios: \" + servicios + \", con un total de \" + servicios.size());\n\n\n //creamos un vector\n Vector<String> promociones = new Vector<String>();\n\n promociones.addElement(\"Dia perruno\");\n promociones.addElement(\"Gatutodo\");\n promociones.addElement(\"10% Descuento disfraz de perro\");\n promociones.addElement(\"Jornada de vacunacion\");\n promociones.addElement(\"Serpiente-Promo\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n promociones.remove(4);//removemos 4 \"Serpiente-Promo\"\n System.out.println(\"Se ha removido una promocion..................\");\n\n System.out.println(\"Lista de promos: \" + promociones);\n System.out.println(\"Total de promos: \" + promociones.size());\n\n String[] dias_Semana = {\"Lunes\",\"Martes\",\"Miercoles\",\"Jueves\",\"Viernes\", \"Sabado\",\"Domingo\"};\n\n try{\n System.out.println(\"Elemento 6 de servicios: \" + dias_Semana[8]);\n } catch (ArrayIndexOutOfBoundsException e){\n System.out.println(\"Ey te pasaste del indice, solo hay 5 elementos\");\n } catch (Exception e){\n System.out.println(\"Algo paso, el problema es que no se que...\");\n System.out.println(\"La siguiente linea ayudara a ver el error\");\n e.printStackTrace();//solo para desarrolladores\n }finally {\n System.out.println(\"------------------------El curso termino! Pero sigue el de Intro a Android!!!!--------------------------\");\n }\n\n }",
"@Test\n public void deberiaMostrarListaDeCtaMayor() {\n log.debug(\"Debiera mostrar lista de ctaMayor\");\n Ejercicio ejercicio = new Ejercicio(\"test\", \"A\");\n currentSession().save(ejercicio);\n assertNotNull(ejercicio);\n log.debug(\"ejercicio >>\" + ejercicio);\n for (int i = 0; i < 20; i++) {\n CuentaMayor ctaMayor = new CuentaMayor(\"test\" + i, \"test\");\n currentSession().save(ctaMayor);\n assertNotNull(ctaMayor);\n log.debug(\"ctaMayor>>\" + ctaMayor);\n }\n\n Map<String, Object> params = null;\n Map result = instance.lista(params);\n assertNotNull(result.get(\"ctaMayores\"));\n assertNotNull(result.get(\"cantidad\"));\n\n assertEquals(10, ((List<Empresa>) result.get(\"ctaMayores\")).size());\n assertEquals(20, ((Long) result.get(\"cantidad\")).intValue());\n }",
"public void mostrarFatura() {\n\n int i;\n System.err.println(\"Fatura do contrato:\\n\");\n\n if (hospedesCadastrados.isEmpty()) {//caso nao existam hospedes\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n\n } else {\n System.err.println(\"Digite o cpf do hospede:\\n\");\n\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {//roda os hospedes cadastrados\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o hospede pelo cpf\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//caso a situacao do contrato ainda estaja ativa\n\n System.err.println(\"Nome do hospede:\" + hospedesCadastrados.get(i).getNome());\n System.err.println(\"CPF:\" + hospedesCadastrados.get(i).getCpf() + \"\\n\");\n System.err.println(\"Servicos pedidos:\\nCarros:\");\n if (!(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().toString());\n System.err.println(\"Total do serviço de aluguel de carros R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalCarros() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui carros cadastrados!\\n\");\n }\n System.err.println(\"Quartos:\");\n if (!(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().toString());\n System.err.println(\"Total do servico de quartos R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalQuartos() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui Quartos cadastrados!\\n\");\n }\n System.err.println(\"Restaurante:\");\n System.err.println(\"Total do servico de restaurante R$: \" + hospedesCadastrados.get(i).getContrato().getValorRestaurante() + \"\\n\");\n System.err.println(\"Total de horas de BabySitter contratatas:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() / 45 + \"\\n\"\n + \"Total do servico de BabySitter R$:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() + \"\\n\");\n System.err.println(\"Total Fatura final: R$\" + hospedesCadastrados.get(i).getContrato().getContaFinal());\n //para limpar as disponibilidades dos servicos\n //carros, quarto, contrato e hospede\n //é necessario remover o hospede?\n// \n\n } else {//caso o contrato esteja fechado\n System.err.println(\"O hospede encontra-se com o contrato fechado!\");\n }\n }\n\n }\n }\n }",
"public void MostrarListas (){\n Nodo recorrer=inicio; // esto sirve para que el elemento de la lista vaya recorriendo conforme se inserta un elemento\r\n System.out.println(); // esto nos sirve para dar espacio a la codificacion de la lista al imprimir \r\n while (recorrer!=null){ // esta secuencia iterativa nos sirve para repetir las opciones del menu\r\n System.out.print(\"[\" + recorrer.dato +\"]--->\");\r\n recorrer=recorrer.siguiente;\r\n }\r\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n DAOLivro d = new DAOLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\"); \n \n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"List<O> obtenertodos() throws DAOException;",
"private void llenarEntidadConLosDatosDeLosControles() {\n clienteActual.setNombre(txtNombre.getText());\n clienteActual.setApellido(txtApellido.getText());\n clienteActual.setDui(txtDui.getText());\n //clienteActual.setNumero(txtNumero.getText());\n //clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n clienteActual.setNumero(Integer.parseInt(this.txtNumero.getText()));\n }",
"public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}",
"private void listar() throws Exception{\n int resId=1;\n List<PlatoDia> lista = this.servicioRestaurante.listarMenuDia(resId);\n this.modelListEspecial.clear();\n lista.forEach(lse -> {\n this.modelListEspecial.addElement(\"ID: \" + lse.getId() \n + \" NOMBRE: \" + lse.getNombre()\n + \" DESCRIPCION: \" + lse.getDescripcion()\n + \" PRECIO: \" + lse.getPrecio()\n + \" ENTRADA: \"+lse.getEntrada() \n + \" PRINCIPIO: \"+lse.getPrincipio()\n + \" CARNE: \"+lse.getCarne()\n + \" BEBIDA: \"+lse.getBebida()\n + \" DIA: \"+lse.getDiaSemana());\n });\n }",
"private void listaContatos() throws SQLException {\n limpaCampos();\n BdLivro d = new BdLivro();\n livros = d.getLista(\"%\" + jTPesquisar.getText() + \"%\");\n\n // Após pesquisar os contatos, executa o método p/ exibir o resultado na tabela pesquisa\n mostraPesquisa(livros);\n livros.clear();\n }",
"public DAOPedidoMesa() {\n\t\trecursos = new ArrayList<Object>();\n\t}",
"public void inicializarListaMascotas()\n {\n //creamos un arreglo de objetos y le cargamos datos\n mascotas = new ArrayList<>();\n mascotas.add(new Mascota(R.drawable.elefante,\"Elefantin\",0));\n mascotas.add(new Mascota(R.drawable.conejo,\"Conejo\",0));\n mascotas.add(new Mascota(R.drawable.tortuga,\"Tortuga\",0));\n mascotas.add(new Mascota(R.drawable.caballo,\"Caballo\",0));\n mascotas.add(new Mascota(R.drawable.rana,\"Rana\",0));\n }",
"void testeAcessos() {\n System.out.println(formaDeFalar);// acessa por herança\n System.out.println(todosSabem);\n }",
"@Override\n\tprotected void doListado() throws Exception {\n\t\tList<Department> deptos = new DepartmentDAO().getAllWithManager();\n//\t\tList<Department> deptos = new DepartmentDAO().getAll();\n\t\tthis.addColumn(\"Codigo\").addColumn(\"Nombre\").addColumn(\"Manager\").newLine();\n\t\t\n\t\tfor(Department d: deptos){\n\t\t\taddColumn(d.getNumber());\n\t\t\taddColumn(d.getName());\n\t\t\taddColumn(d.getManager().getFullName());\n\t\t\tnewLine();\n\t\t}\n\t}",
"public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}",
"private void getMuestras(){\n mMuestras = estudioAdapter.getListaMuestrasSinEnviar();\n //ca.close();\n }",
"public List<Listas_de_las_Solicitudes> Mostrar_las_peticiones_que_han_llegado_al_Usuario_Administrador(int cedula) {\n\t\t//paso3: Obtener el listado de peticiones realizadas por el usuario\n\t\tEntityManagerFactory entitymanagerfactory = Persistence.createEntityManagerFactory(\"LeyTransparencia\");\n\t\tEntityManager entitymanager = entitymanagerfactory.createEntityManager();\n\t\tentitymanager.getEntityManagerFactory().getCache().evictAll();\n\t\tQuery consulta4=entitymanager.createQuery(\"SELECT g FROM Gestionador g WHERE g.cedulaGestionador =\"+cedula);\n\t\tGestionador Gestionador=(Gestionador) consulta4.getSingleResult();\n\t\t//paso4: Obtener por peticion la id, fecha y el estado\n\t\tList<Peticion> peticion=Gestionador.getEmpresa().getPeticions();\n\t\tList<Listas_de_las_Solicitudes> peticion2 = new ArrayList();\n\t\t//paso5: buscar el area de cada peticion\n\t\tfor(int i=0;i<peticion.size();i++){\n\t\t\tString almcena=\"\";\n\t\t\tString sarea=\"no posee\";\n\t\t\tBufferedReader in;\n\t\t\ttry{\n\t\t\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\"C:/area/area\"+String.valueOf(peticion.get(i).getIdPeticion())+\".txt\"), \"utf-8\"));\n\t\t\t\ttry {\n\t\t\t\t\twhile((sarea=in.readLine())!=null){\n\t\t\t\t\t\tint s=0;\n\t\t\t\t\t\talmcena=sarea;\n\t\t\t\t\t}\n\t\t\t\t\tin.close();\n\t\t\t\t\tSystem.out.println(almcena);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\t//paso6: Mostrar un listado de peticiones observando el id, la fecha de realizacion de la peticion, hora de realizacion de la peticion, y el estado actual de la peticion\n\t\t\tListas_de_las_Solicitudes agregar=new Listas_de_las_Solicitudes();\n\t\t\tagregar.setId(String.valueOf(peticion.get(i).getIdPeticion()));\n\t\t\tagregar.setFechaPeticion(peticion.get(i).getFechaPeticion());\n\t\t\tagregar.setNombreestado(peticion.get(i).getEstado().getTipoEstado());\n\t\t\tagregar.setArea(almcena);\n\t\t\tpeticion2.add(agregar);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"el usuario existe\");\n\t\treturn peticion2;\n\t\t//aun no se\n\t}",
"private void habilitarCamposModif() {\n\n listarPromotoresModif();\n //limpiarListaCrear();\n }",
"public void cargarTablas(){\n ControladorEmpleados empleados= new ControladorEmpleados();\n ControladorProyectos proyectos= new ControladorProyectos();\n ControladorCasos casos= new ControladorCasos();\n actualizarListadoObservable(empleados.consultarEmpleadosAdminProyectos(ESTADO_ASIGNADO, TIPO_3),casos.consultarCasos(devolverUser()),casos.consultarTiposCaso());\n }",
"public ArrayList<Equipamento> todos() {\n return new ArrayList<>(lista.values());\n }",
"private void mueveObjetos()\n {\n // Mueve las naves Ufo\n for (Ufo ufo : ufos) {\n ufo.moverUfo();\n }\n \n // Cambia el movimiento de los Ufos\n if (cambiaUfos) {\n for (Ufo ufo : ufos) {\n ufo.cambiaMoverUfo();\n }\n cambiaUfos = false;\n }\n\n // Mueve los disparos y los elimina los disparos de la nave Guardian\n if (disparoGuardian.getVisible()) {\n disparoGuardian.moverArriba();\n if (disparoGuardian.getPosicionY() <= 0) {\n disparoGuardian.setVisible(false);\n }\n }\n\n // Dispara, mueve y elimina los disparos de las naves Ufo\n disparaUfo();\n if (disparoUfo.getVisible()) {\n disparoUfo.moverAbajo();\n if (disparoUfo.getPosicionY() >= altoVentana) {\n disparoUfo.setVisible(false);\n }\n }\n\n // Mueve la nave Guardian hacia la izquierda\n if (moverIzquierda) {\n guardian.moverIzquierda();\n }\n // Mueve la nave Guardian hacia la derecha\n if (moverDerecha) {\n guardian.moverDerecha();\n }\n // Hace que la nave Guardian dispare\n if (disparar) {\n disparaGuardian();\n }\n }",
"public void Listar() {\n try {\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n this.listaApelaciones.clear();\n setListaApelaciones(apelacionesDao.cargaApelaciones());\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }",
"private void mostrarDatosInterfaz() {\n\t\tif (this.opcion == CREAR) {\n\t\t\tthis.campoTextoNombreUsuario.setUserData(\"\");\n\t\t\tthis.campoTextoNombreUsuario.setDisable(false);\n\t\t\tthis.campoContrasena.setUserData(\"\");\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setUserData(\"\");\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.getSelectionModel().select(\"\");\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.getSelectionModel().select(\"\");\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == EDITAR) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(false);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(false);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(false);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(false);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(false);\n\t\t} else if (this.opcion == VER) {\n\t\t\tthis.campoTextoNombreUsuario.setText(this.usuario.getUsuario());\n\t\t\tthis.campoTextoNombreUsuario.setDisable(true);\n\t\t\tthis.campoContrasena.setText(this.usuario.getContrasena());\n\t\t\tthis.campoContrasena.setDisable(true);\n\t\t\tthis.campoCorreo.setText(this.usuario.getCorreoElectronico());\n\t\t\tthis.campoCorreo.setDisable(true);\n\t\t\tthis.comboGrupoUsuario.setValue(this.usuario.getNombreGrupoUsuario());\n\t\t\tthis.comboGrupoUsuario.setDisable(true);\n\t\t\tthis.comboStatus.setValue(this.usuario.getDescripcionStatus());\n\t\t\tthis.comboStatus.setDisable(true);\n\t\t\tthis.comboEmpleados.setValue(this.usuario.getNombreEmpleado());\n\t\t\tthis.comboEmpleados.setDisable(true);\n\t\t}//FIN IF ELSE\n\t}",
"public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}",
"private void mostraPesquisa(List<BeansLivro> livros) {\n // Limpa a tabela sempre que for solicitado uma nova pesquisa\n limparTabela();\n \n if (livros.isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nenhum registro encontrado.\");\n } else { \n // Linha em branco usada no for, para cada registro é criada uma nova linha \n String[] linha = new String[] {null, null, null, null, null, null, null};\n // P/ cada registro é criada uma nova linha, cada linha recebe os campos do registro\n for (int i = 0; i < livros.size(); i++) {\n tmLivro.addRow(linha);\n tmLivro.setValueAt(livros.get(i).getId(), i, 0);\n tmLivro.setValueAt(livros.get(i).getExemplar(), i, 1);\n tmLivro.setValueAt(livros.get(i).getAutor(), i, 2);\n tmLivro.setValueAt(livros.get(i).getEdicao(), i, 3);\n tmLivro.setValueAt(livros.get(i).getAno(), i, 4);\n tmLivro.setValueAt(livros.get(i).getDisponibilidade(), i, 5); \n } \n }\n }",
"@Override\n\tpublic List<Materia> recuperarTodo() throws DataAccessException {\n\t\treturn null;\n\t}",
"private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }",
"public static void main(String[] args) {\n\n aluno exemplo1 = new aluno();//objeto do tipo aluno\n aluno exemplo2 = new aluno();\n exemplo1.nome = \"EPAMINONDAS\";\n exemplo1.matricula = \"MAT-1\";\n exemplo1.nota = 5;\n exemplo1.anoNacimento = 2005;\n\n\n exemplo2.nome = \"MARIA\";\n exemplo2.matricula = \"MAT-2\";\n exemplo2.nota = 10;\n exemplo2.anoNacimento = 2000;\n\n\n System.out.println(\"Nome: \"+exemplo1.nome + \" matricula: \" + exemplo1.matricula + \" nota: \" + exemplo1.nota);\n System.out.println(\"Nome: \"+exemplo2.nome + \" matricula: \" + exemplo2.matricula + \" nota: \" + exemplo2.nota);\n\n exemplo1.mostraIdade(2030);//metodos\n exemplo2.mostraIdade(2021);\n exemplo2.mostraIdade(2003, 2021);\n }",
"public ArrayList<ProductoDTO> mostrartodos() {\r\n\r\n\r\n PreparedStatement ps;\r\n ResultSet res;\r\n ArrayList<ProductoDTO> arr = new ArrayList();\r\n try {\r\n\r\n ps = conn.getConn().prepareStatement(SQL_READALL);\r\n res = ps.executeQuery();\r\n while (res.next()) {\r\n\r\n arr.add(new ProductoDTO(res.getInt(1), res.getString(2), res.getString(3), res.getInt(4), res.getInt(5), res.getString(6), res.getString(7), res.getString(8), res.getString(9)));\r\n }\r\n } catch (SQLException ex) {\r\n JOptionPane.showMessageDialog(null, \"error vuelva a intentar\");\r\n } finally {\r\n conn.cerrarconexion();\r\n\r\n }\r\n return arr;\r\n\r\n }",
"public void teclas() {\r\n\t\tif (app.key == '1') {\r\n\t\t\ttipoCom = 1;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso1.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '2') {\r\n\t\t\ttipoCom = 2;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso2.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '3') {\r\n\t\t\ttipoCom = 3;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso3.addAll(persona);\r\n\t\t}\r\n\t\tif (app.key == '4') {\r\n\t\t\ttipoCom = 4;\r\n\t\t\tcaso1.clear();\r\n\t\t\tcaso2.clear();\r\n\t\t\tcaso3.clear();\r\n\t\t\tcaso4.clear();\r\n\t\t\tcaso4.addAll(persona);\r\n\t\t}\r\n\t}",
"@Override\n public List<Caja> buscarMovimientos(){\n List<Caja> listaCaja= cajaRepository.findAll();\n\n return listaCaja;\n\n }",
"protected void exibirMedicos(){\n System.out.println(\"--- MEDICOS CADASTRADOS ----\");\r\n String comando = \"select * from medico order by id\";\r\n ResultSet rs = cb.buscaDados(comando);\r\n try{\r\n while(rs.next()){\r\n int id = rs.getInt(\"id\");\r\n String nome = rs.getString(\"nome\");\r\n System.out.println(\"[\"+id+\"] \"+nome);\r\n }\r\n }\r\n catch (Exception e){\r\n e.printStackTrace();\r\n }\r\n }",
"public List<MascotaEntity> darMascotasPorEstado (String estado) throws Exception{\n if(!estado.equals(MascotaEntity.Estados_mascota.ADOPTADO.name()) \n && !estado.equals(MascotaEntity.Estados_mascota.EXTRAVIADO.name())\n && !estado.equals(MascotaEntity.Estados_mascota.ENCONTRADO.name()) \n && !estado.equals(MascotaEntity.Estados_mascota.EN_ADOPCION.name()))\n {\n throw new BusinessLogicException(\"El estado de la mascota no es correcto\");\n }\n \n List<MascotaEntity> mascotas = mascotaPersistence.findAll();\n List<MascotaEntity> mascotasFiltrados = new LinkedList<>();\n \n for(MascotaEntity m : mascotas){\n if(m.getEstado().name().equals(estado)){\n mascotasFiltrados.add(m);\n }\n }\n return mascotasFiltrados;\n }",
"public void mostrarLista(){\n Nodo recorrer = inicio;\n while(recorrer!=null){\n System.out.print(\"[\"+recorrer.edad+\"]-->\");\n recorrer=recorrer.siguiente;\n }\n System.out.println(recorrer);\n }",
"public void llenarOpciones(Manejador m ){\n\n for(int i = 0 ; i < m.getTextos().size(); i++){\n opciones.addItem(m.getTextos().get(i));\n }\n\n\n }",
"public void adicionarServicos() {\n int i;\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Não existem hospedes cadastrados!\\n\");\n } else {\n\n System.err.println(\"Digite o cpf do hospede que deseja adicionar servicos:\");\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o indice i do objeo pessoa, pega o id da pessoa e compara com o id da pessoa digitada\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//verifica se a situaçao do contrato ainda está aberta para esse hospede\n\n System.err.println(\"O que deseja editar do contrato\\n\");\n //adicionar carro, trocar de quarto, adicionar conta de restaurante,\n //encerrar contrato\n\n System.err.println(\"Adicionar carro (1):\\nAdicionar restaurante (2):\\n\"\n + \"Adicionar horas de BabySitter (3):\\nAdicionar quarto(4):\\n\");\n int caso = verifica();\n switch (caso) {\n case 1://carro\n if (carrosCadastrados.isEmpty()) {\n System.err.println(\"Nao existem carros cadastrados!\\n\");\n } else {\n listarCarros();\n System.err.println(\"Digite o id do carro que deseja contratar:\\n\");\n int idCarro = verifica();\n\n for (int j = 0; j < carrosCadastrados.size(); j++) {\n if (carrosCadastrados.get(j).getId() == idCarro) {\n if (carrosCadastrados.get(j).isEstado()) {\n System.err.println(\"Esse carro já está cadastrado.\\n\");\n } else {\n hospedesCadastrados.get(i).getContrato().setCarros(carrosCadastrados.get(j));\n carrosCadastrados.get(j).setEstado(true);\n }\n }\n }\n }\n break;\n\n case 2://restaurante\n System.err.println(\"Digite o quanto deseja gastar no restaurente\\n\");\n double valorRestaurante = ler.nextDouble();\n// idd();\n// int idRestaurante = id;\n// Restaurante restaurante = new Restaurante(idRestaurante, valorRestaurante);\n hospedesCadastrados.get(i).getContrato().setValorRestaurante(valorRestaurante);\n break;\n case 3://babysitter\n System.err.println(\"Digite o tempo gasto no BabySytter em horas\\n\");\n double tempoBaby = ler.nextDouble();\n hospedesCadastrados.get(i).getContrato().setHorasBaby(tempoBaby);\n break;\n case 4://quartos\n\n if (quartosCadastrados.isEmpty()) {\n\n } else {\n System.err.println(\"Digite o numero do quarto que deseja contratar:\\n\");\n listarQuartos();\n int num = verifica();\n System.err.println(\"Digite a quantidade de dis que pretente alugar o quarto:\\n\");\n int dias = verifica();\n for (int j = 0; j < quartosCadastrados.size(); j++) {\n if (num == quartosCadastrados.get(j).getNumero()) {//verifica se o numero digitado é igual ao numero do quarto do laco\n if (quartosCadastrados.get(j).getEstado()) {//verifica se o estado do quarto está como true\n System.err.println(\"Este quarto já está cadastrado em um contrato\");\n } else {//se o estado tiver em true é porque o quarto ja está cadastrado\n\n hospedesCadastrados.get(i).getContrato().setQuartos(quartosCadastrados.get(j));\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(j).setDias(dias);\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(j).setEstado(true);//seta o estado do quarto como ocupado\n System.err.println(\"Quarto cadastrado!\\n\");\n }\n\n }\n\n }\n\n//remove all remove todas as pessoas com tal nome\t\n }\n break;\n\n }\n } else {\n System.err.println(\"O contrato deste Hospede encontra-se encerrado\");\n break;\n }\n }\n }\n }\n }",
"public List<PerfilTO> buscarTodos();",
"private void doNovo() {\n contato = new ContatoDTO();\n popularTela();\n }",
"public void llenarDatos() {\n String nombre = \"\";\n String descripcion = \"\";\n try {\n ResultSet resultado = buscador.getResultSet(\"select nombre, descripcion from NODO where ID = \" + IDNodoPadre + \";\");\n if (resultado.next()) {\n nombre = resultado.getObject(\"nombre\").toString();\n descripcion = resultado.getObject(\"descripcion\").toString();\n }\n } catch (SQLException e) {\n System.out.println(\"*SQL Exception: *\" + e.toString());\n }\n campoNombre.setText(nombre);\n campoDescripcion.setText(descripcion);\n //Si esta asociada a categorias\n if(conCategorias)\n llenarComboCategoria();\n else{\n comboCategoria.setVisible(false);\n labelCategoria.setVisible(false);\n }\n }",
"private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}",
"private void carregarAlunosTurma() {\n AcessoFirebase.getFirebase().addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n getUidUsuariosTurma(dataSnapshot);\n montandoArrayListUsuarios(dataSnapshot);\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n }\n });\n }",
"public void listar(){\n if (!esVacia()) {\n // Crea una copia de la lista.\n NodoEmpleado aux = inicio;\n // Posicion de los elementos de la lista.\n int i = 0;\n System.out.print(\"-> \");\n // Recorre la lista hasta llegar nuevamente al incio de la lista.\n do{\n // Imprime en pantalla el valor del nodo.\n System.out.print(i + \".[ \" + aux.getEmpleado() + \" ]\" + \" -> \");\n // Avanza al siguiente nodo.\n aux = aux.getSiguiente();\n // Incrementa el contador de la posi�n.\n i++;\n }while(aux != inicio);\n }\n }",
"private void listarItems() {\r\n // Cabecera\r\n System.out.println(\"Listado de Items\");\r\n System.out.println(\"================\");\r\n\r\n // Criterio de Ordenación/Filtrado\r\n System.out.printf(\"Criterio de Ordenación .: %S%n\", criOrd.getNombre());\r\n System.out.printf(\"Criterio de Filtrado ...: %S%n\", criFil.getNombre());\r\n\r\n // Separados\r\n System.out.println(\"---\");\r\n\r\n // Filtrado > Selección Colección\r\n List<Item> lista = criFil.equals(Criterio.NINGUNO) ? CARRITO : FILTRO;\r\n\r\n // Recorrido Colección\r\n for (Item item : lista) {\r\n System.out.println(item.toString());\r\n }\r\n\r\n // Pausai\r\n UtilesEntrada.hacerPausa();\r\n }",
"private void mostrarEstadoObjetosUsados() {\n Beneficiario beneficiario = null;\n FichaSocial fichaSocial = null;\n SolicitudBeneficio solicitudBeneficio = null;\n AspectoHabitacional aspectoHabitacional = null;\n AspectoEconomico aspectoEconomico = null;\n\n // CAMBIAR: Obtener datos del Request y asignarlos a los textField\n if (this.getRequestBean1().getObjetoABM() != null) {\n fichaSocial = (FichaSocial) this.getRequestBean1().getObjetoABM();\n aspectoHabitacional = (AspectoHabitacional) fichaSocial.getAspectoHabitacional();\n aspectoEconomico = (AspectoEconomico) fichaSocial.getAspectoEconomico();\n this.getElementoPila().getObjetos().set(0, fichaSocial);\n this.getElementoPila().getObjetos().set(1, aspectoHabitacional);\n this.getElementoPila().getObjetos().set(2, aspectoEconomico);\n }\n\n int ind = 0;\n fichaSocial = (FichaSocial) this.obtenerObjetoDelElementoPila(ind++, FichaSocial.class);\n aspectoHabitacional = (AspectoHabitacional) this.obtenerObjetoDelElementoPila(ind++, AspectoHabitacional.class);\n aspectoEconomico = (AspectoEconomico) this.obtenerObjetoDelElementoPila(ind++, AspectoEconomico.class);\n\n\n this.getTfCodigo().setText(fichaSocial.getNumero());\n this.getTfFecha().setText(Conversor.getStringDeFechaCorta(fichaSocial.getFecha()));\n ////\n //Beneficiarios:\n if (fichaSocial.getTitular() != null) {\n this.getTfTitular().setText(fichaSocial.toString());\n }\n\n this.setListaDelCommunication(new ArrayList(fichaSocial.getGrupoFamiliar()));\n this.getObjectListDataProvider().setList(new ArrayList(fichaSocial.getGrupoFamiliar()));\n\n //Aspecto habitacional:\n if (aspectoHabitacional.getNumeroPersonas() != null) {\n this.getTfNroPersonas().setText(aspectoHabitacional.getNumeroPersonas().toString());\n }\n this.getTfVivienda().setText(aspectoHabitacional.getVivienda());\n this.getTfTenencia().setText(aspectoHabitacional.getTenencia());\n this.getTfNroCamas().setText(aspectoHabitacional.getNumeroCamas());\n this.getTfNroAmbientes().setText(aspectoHabitacional.getNumeroAmbientes());\n this.getCbBanioCompleto().setValue(new Boolean(aspectoHabitacional.isBanioCompleto()));\n this.getCbBanioInterno().setValue(new Boolean(aspectoHabitacional.isBanioInterno()));\n this.getCbAgua().setValue(new Boolean(aspectoHabitacional.isAgua()));\n this.getCbLuz().setValue(new Boolean(aspectoHabitacional.isLuz()));\n this.getCbCloaca().setValue(new Boolean(aspectoHabitacional.isCloaca()));\n this.getCbGasNatural().setValue(new Boolean(aspectoHabitacional.isGasNatural()));\n\n //Aspecto Economico:\n this.getTfNroCasas().setText(aspectoEconomico.getNumeroCasas());\n this.getTfNroTerrenos().setText(aspectoEconomico.getNumeroTerrenos());\n this.getTfNroCampos().setText(aspectoEconomico.getNumeroCampos());\n this.getTfVehiculo().setText(aspectoEconomico.getVehiculo());\n this.getTfIndustria().setText(aspectoEconomico.getIndustria());\n this.getTfActividadLaboral().setText(aspectoEconomico.getActividadLaboral());\n this.getTfComercio().setText(aspectoEconomico.getComercio());\n\n //Solicitud Beneficio\n this.setListaDelCommunication2(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n this.getObjectListDataProvider2().setList(new ArrayList(fichaSocial.getListaSolicitudBeneficio()));\n }",
"public void popularDoctores(){\n doctores = new ArrayList<>();\r\n doctores.add(new Doctor(22, \"Victor\", \"Gonzalez\", \"Romero\"));\r\n doctores.add(new Doctor(38, \"Jose\", \"Ramirez\", \"Bagarin\"));\r\n doctores.add(new Doctor(15, \"Patricio\", \"Arellano\", \"Vega\"));\r\n }",
"public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }",
"private List<Produto> todosProdutos() {\n\t\treturn produtoService.todosProdutos();\n\t}",
"public void cargaDeDatos(List<List<Object>> Musuarios,List<List<Object>> Mtareas, List<List<Object>> Mrequisitos) {\r\n\tfor (List<Object> l: Musuarios) {\r\n\t\tam.addMiembro(new MiembroDeEquipo((int)l.get(0),(String)l.get(1)));\r\n\t}\r\n\t/**\r\n\t * Cargamos a la lista de administrador de tareas todas las tareas que se encuentran en la base de datos, \r\n\t * si no tiene miembro se le pone a null sino se le añade un miembro.\r\n\t */\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\tat.addTarea(new Tarea((String)l.get(0),(int)l.get(1),(int)l.get(2),(int)l.get(3),(int)l.get(6)));\r\n\t\t//Si tiene un miembro asignado (cualquier id mayor que cero) le añade el miembro de equipo, sino null\r\n\t\tif(0 < (int)l.get(5)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(am.BuscarMiembro((int) l.get(5)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setAsignadoA(null);\r\n\t\t}\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t\tat.BuscarTarea((int)l.get(1)).setDescripcion((String)l.get(7));\r\n\t}\r\n\t/**\r\n\t * Cargamos la lista del administrador de requisitos con todos los requisitos que tenemos,\r\n\t * si el requisito tiene 5 atributos, será un defecto, sino será una historia de usuario\r\n\t */\r\n\tfor (List<Object> l: Mrequisitos) {\r\n\t\tHashSet<Tarea> lista = new HashSet<Tarea>();\r\n\t\t//Buscamos todas las tareas que tengan este requisito, para tener una lista de las tareas que este tiene\r\n\t\tfor(List<Object> t: Mtareas) {\r\n\t\t\t\r\n\t\t\tif((int)l.get(2)==(int)t.get(4)) {\r\n\t\t\t\tlista.add(at.BuscarTarea((int)t.get(1)));\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Creamos defecto o historiaDeUsuario, según sea el caso y lo añadimos a la lista generica de Requisitos.\r\n\t\tif(l.size()==5) {\r\n\t\t\tDefecto req = new Defecto((String)l.get(4),(String) l.get(0), (String)l.get(1),(int)l.get(2),lista);\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\r\n\t\t}else {\r\n\t\t\tRequisito req = new HistoriaDeUsuario((String) l.get(0), (String)l.get(1),(int)l.get(2));\r\n\t\t\tif(!lista.isEmpty()) {\r\n\t\t\t\treq.setRequisitos(lista);\r\n\t\t\t}\r\n\t\t\tif((int)l.get(3)==1) {\r\n\t\t\treq.finalizar();\r\n\t\t\t}\r\n\t\t\tar.addRequisito(req);\t\t\r\n\t\t}\r\n\t}\r\n\tfor (List<Object> l: Mtareas) {\r\n\t\t//Si tiene un requisito (cualquier id maor que cero) le añade el requisito, sino null\r\n\t\tif(0 < (int)l.get(4)) {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(ar.BuscarRequisito((int) l.get(4)));\r\n\t\t}else {\r\n\t\t\tat.BuscarTarea((int)l.get(1)).setRequisito(null);\r\n\t\t}\r\n\t}\r\n}",
"private void populaAlimento()\n {\n Alimento a = new Alimento(\"Arroz\", 100d, 5d, 0.4d, 30d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Abacaxi\", 96.2d, 1.2d, 2.3d, 6d, 100d, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Carne moida - Acem\", 212.4d, 26.7d, 9.8d, 0d, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pernil Assado\", 262.3d, 32.1d, 13.1d, 0, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n a = new Alimento(\"Pao de forma integral\", 253.2d, 9.4d, 2.9d, 49, 100, new UnidadeMedida(1));\n alimentoDAO.insert(a);\n }",
"public void generTirarDados() {\n\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ItemMedicamentoEntity> listaTodos(){\r\n\r\n\t\treturn this.entityManager.createQuery(\"SELECT * FROM ItemMedicamentoEntity ORDER BY codigo\").getResultList();\r\n\t}",
"public JanelaTipoContato() {\r\n initComponents();\r\n try {\r\n\r\n List<TipoContato> tipoContatos = (List<TipoContato>) (Object) tipoContatoDao.pesquisarTodos();\r\n adicionarListaTipoContatosTabela(tipoContatos);\r\n } catch (Exception exception) {\r\n }\r\n }",
"public void llenadoDeCombos() {\n PerfilDAO asignaciondao = new PerfilDAO();\n List<Perfil> asignacion = asignaciondao.listar();\n cbox_perfiles.addItem(\"\");\n for (int i = 0; i < asignacion.size(); i++) {\n cbox_perfiles.addItem(Integer.toString(asignacion.get(i).getPk_id_perfil()));\n }\n \n }",
"public void limpiarDatos() {\r\n FormularioUtil.limpiarComponentes(groupboxEditar, idsExcluyentes);\r\n tbxNro_identificacion.setValue(\"\");\r\n tbxNro_identificacion.setDisabled(false);\r\n deshabilitarCampos(true);\r\n\r\n }",
"public void listar(){\r\n // Verifica si la lista contiene elementoa.\r\n if (!esVacia()) {\r\n // Crea una copia de la lista.\r\n Nodo aux = inicio;\r\n // Posicion de los elementos de la lista.\r\n int i = 0;\r\n // Recorre la lista hasta el final.\r\n while(aux != null){\r\n // Imprime en pantalla el valor del nodo.\r\n System.out.print(i + \".[ \" + aux.getValor() + \" ]\" + \" -> \");\r\n // Avanza al siguiente nodo.\r\n aux = aux.getSiguiente();\r\n // Incrementa el contador de la posión.\r\n i++;\r\n }\r\n }\r\n }",
"private void guardarEstadoObjetosUsados() {\n }",
"private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}",
"public void cargaDatosInicialesSoloParaModificacionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n selectAuxiliarParaAsignacionModificacion = cntEntidadesService.listaDeAuxiliaresPorEntidad(selectedEntidad);\n //Obtien Ajuste Fin\n\n //Activa formulario para automatico modifica \n switch (selectedEntidad.getNivel()) {\n case 1:\n swParAutomatico = true;\n numeroEspaciador = 200;\n break;\n case 2:\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciador = 200;\n break;\n case 3:\n swParAutomatico = false;\n numeroEspaciador = 1;\n break;\n default:\n break;\n }\n\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n }",
"public void obterDados() {\r\n\r\n\t\tidade = Integer.parseInt(JOptionPane.showInputDialog(\"Informe a idade\"));\r\n\t\taltura = Double.parseDouble(JOptionPane.showInputDialog(\"Informe a altura\"));\r\n\t\tpeso = Double.parseDouble(JOptionPane.showInputDialog(\"Informe o peso\"));\r\n\t\t\r\n\t\tjogCadastrados ++;\r\n totalaltura += altura;\r\n\r\n\t}",
"@Override\n\tpublic List<ExamenDTO> obtenerTodos() {\n\t\tList<ExamenDTO> examenes= new ArrayList<ExamenDTO>();\n\t\tdao.findAll().forEach(e -> examenes.add(Mapper.getDTOFromEntity(e)));\n\t\treturn examenes;\n\t}",
"private void mostraPesquisa(List<Livro> livros) {\n // Limpa a tabela sempre que for solicitado uma nova pesquisa\n limparTabela();\n\n if (livros.isEmpty()) {\n JOptionPane.showMessageDialog(rootPane, \"Nenhum registro encontrado.\");\n } else {\n // Linha em branco usada no for, para cada registro é criada uma nova linha \n String[] linha = new String[]{null, null, null, null, null, null, null, null, null};\n // P/ cada registro é criada uma nova linha, cada linha recebe os campos do registro\n for (int i = 0; i < livros.size(); i++) {\n tmLivro.addRow(linha);\n tmLivro.setValueAt(livros.get(i).getId(), i, 0);\n tmLivro.setValueAt(livros.get(i).getId_genero(), i, 1);\n tmLivro.setValueAt(livros.get(i).getExemplar(), i, 2);\n tmLivro.setValueAt(livros.get(i).getAutor(), i, 3);\n tmLivro.setValueAt(livros.get(i).getEdicao(), i, 4);\n tmLivro.setValueAt(livros.get(i).getAno(), i, 5);\n tmLivro.setValueAt(livros.get(i).getDisponibilidade(), i, 6);\n }\n }\n }",
"@Override\n\tpublic List<Aluno> carregar() {\n\t\tList<Aluno> lista = new ArrayList<Aluno>();\n\t\ttry {\n\t\t\tConnection con = DBUtil.getInstance().getConnection();\n\t\t\tString cmd = \"SELECT * FROM Aluno \";\n\t\t\tPreparedStatement stmt = con.prepareStatement( cmd );\n\t\t\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\twhile (rs.next()) { \n\t\t\t\tAluno a = new Aluno();\n\t\t\t\ta.setNome( rs.getString(\"Nome\") );\n\t\t\t\ta.setNumero(Integer.parseInt(rs.getString(\"idAluno\")) );\n\t\t\t\tlista.add( a );\n\t\t\t}\t\n\t\t} catch (SQLException e) {\n\t\t\tJOptionPane.showMessageDialog(null, \"Erro no Sql, verifique o banco\", \"ERRO\", JOptionPane.ERROR_MESSAGE);\n\n\t\t}\n\t\treturn lista;\n\t}",
"public ArrayList<Mascota> obtenerDatos(){\n\n BaseDatos db = new BaseDatos(context);\n\n ArrayList<Mascota> aux = db.obtenerTodoslosContactos();\n\n if(aux.size()==0){\n insertarMascotas(db);\n aux = db.obtenerTodoslosContactos();\n }\n\n return aux;\n }",
"private void listarEntidades() {\r\n\t\tsetListEntidades(new ArrayList<EntidadDTO>());\r\n\t\tgetListEntidades().addAll(entidadController.encontrarTodos());\r\n\t\tif (!getListEntidades().isEmpty()) {\r\n\t\t\tfor (EntidadDTO entidadDTO : getListEntidades()) {\r\n\t\t\t\t// Conversión de decimales.\r\n\t\t\t\tDouble porcentaje = entidadDTO.getPorcentajeValorAsegurable() * 100;\r\n\t\t\t\tdouble por = Math.round(porcentaje * Math.pow(10, 2)) / Math.pow(10, 2);\r\n\t\t\t\tentidadDTO.setPorcentajeValorAsegurable(por);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n public List<Prova> consultarTodosProva() throws Exception {\n return rnProva.consultarTodos();\r\n }",
"public void limpiarCampos() {\n\t\ttema = new Tema();\n\t\ttemaSeleccionado = new Tema();\n\t\tmultimedia = new Multimedia();\n\t}",
"public List<Aluno> buscarTodos() {\n\t\treturn null;\n\t}",
"public static void main(String[] args) {\n Alumno aaDatos []; // El identificador es nulo\n \n aaDatos = new Alumno[tam];//Creamos un arreglo de 10 \n //alumnos - AQUI HABRA PREGUNTA\n for (int i = 0; i < aaDatos.length; i++) {\n aaDatos[i]= new Alumno(\"Dany\",\"16550518\", 0);//Para cada lugar de arreglo se crea un objeto de la clase alumno\n \n }\n for (Alumno aaDatos1: aaDatos) {\n System.out.println(\"Nombre: \"+ aaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaDatos1.getiCar());\n \n }\n \n \n //CREAMOS UNA COPIA DEL ARREGLO\n Alumno aaCopiaDatos [];\n aaCopiaDatos = new Alumno [tam];\n \n for (int i = 0; i < aaCopiaDatos.length; i++) {\n aaCopiaDatos[i]= new Alumno(aaDatos[i].getsNom(), // <<<Se llenan todos los datos que pide el constructor por argumentos\n aaDatos[i].getsMatri(), \n aaDatos[i].getiCar());\n \n }\n for (Alumno aaCopiaDatos1 : aaCopiaDatos) {\n System.out.println(\"Nombre: \"+ aaCopiaDatos1.getsNom());\n System.out.println(\"Marticula: \"+ aaCopiaDatos1.getsMatri());\n System.out.println(\"Carrera: \"+ aaCopiaDatos1.getiCar());\n }\n System.out.println(aaDatos);\n System.out.println(aaCopiaDatos);\n }",
"public void borrarTodo() {\n fondoJuego1 = null;\n fondoJuego2 = null;\n regresar = null;\n highLight = null;\n juegoNuevo = null;\n continuar = null;\n }",
"public void cargaDatosInicialesSoloParaAdicionDeCuenta() throws Exception {\n GestionContableWrapper gestionContableWrapper = parParametricasService.factoryGestionContable();\n gestionContableWrapper.getNormaContable3();\n parAjustesList = parParametricasService.listaTiposDeAjuste(obtieneEnumTipoAjuste(gestionContableWrapper.getNormaContable3()));\n //Obtien Ajuste Fin\n //Activa formulario para automatico modifica \n if (selectedEntidad.getNivel() >= 3) {\n numeroEspaciadorAdicionar = 260;\n }\n\n if (selectedEntidad.getNivel() == 3) {\n swParAutomatico = false;\n numeroEspaciadorAdicionar = 230;\n }\n if (selectedEntidad.getNivel() == 2) {\n swParAutomatico = true;\n swActivaBoton = true;\n numeroEspaciadorAdicionar = 200;\n }\n if (selectedEntidad.getNivel() == 1) {\n swParAutomatico = true;\n numeroEspaciadorAdicionar = 130;\n cntParametroAutomaticoDeNivel2 = cntParametroAutomaticoService.obtieneObjetoDeParametroAutomatico(selectedEntidad);\n }\n\n mascaraNuevoOpcion = \"N\";\n cntEntidad = (CntEntidad) getCntEntidadesService().find(CntEntidad.class, selectedEntidad.getIdEntidad());\n mascaraNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"N\");\n mascaraSubNivel = getCntEntidadesService().generaCodigoNivelesSubAndPadre(selectedEntidad, \"S\");\n longitudNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"N\");\n longitudSubNivel = getCntEntidadesService().controlaLongitudNumero(selectedEntidad, \"S\");\n }",
"List<Persona> obtenerTodasLasPersona();",
"public void listaFuncionarios() {\n this.telaFuncionario.mensagemListaFuncionarios();\n for (Funcionario funcionarioCadastrado : funcionarioDAO.getList()) { //funcionariosDAO list - coloca tudo em um arrayzao e depois manda pra tela\n int matricula = funcionarioCadastrado.getMatricula();\n String nome = funcionarioCadastrado.getNome();\n String dataNascimento = funcionarioCadastrado.getDataNascimento();\n int telefone = funcionarioCadastrado.getTelefone();\n int salario = funcionarioCadastrado.getSalario();\n Cargo cargo = funcionarioCadastrado.getCargo();\n this.telaFuncionario.exibeFuncionario(matricula, nome, dataNascimento, telefone, salario, cargo);\n }\n exibeMenuFuncionario();\n }",
"public void borrarTodo(){\n diccionario.clear();\n }",
"public void listar_mais_pedidos(String tipo_pedido){\n \n \n OrdemCorteDAO dao = new OrdemCorteDAO();\n DefaultTableModel model = (DefaultTableModel) jTable_MaisPedidos.getModel(); \n \n model.setNumRows(0);\n \n for (OrdemCorteDTO mp : dao.getMaisPedidos(tipo_pedido)) {\n \n model.addRow(new Object[]{mp.getCodigo(), mp.getQtd_pedido()});\n }\n \n \n }",
"private void mostrarLibros() {\n dlmLibros.clear();\n for (Libro libro : modelo.getLibros()) {\n dlmLibros.addElement(libro);\n }\n seleccionarLibrosOriginales();\n }",
"@Override\n\tvoid geraDados() {\n\n\t}",
"private void getObsequios(){\n mObsequios = estudioAdapter.getListaObsequiosSinEnviar();\n //ca.close();\n }",
"public void llenarOpciones(ArrayList<String> mezcales,ArrayList<String> porcentajes,ArrayList<String> tipos){\n for (String p : porcentajes) {\n alcohol.addItem(p + \"%\");\n }\n for (String t : tipos) {\n tipo.addItem(t);\n }\n String nombreMezcales[] = new String[mezcales.size()];\n for (int i = 0; i < mezcales.size(); i++) {\n nombreMezcales[i] = mezcales.get(i);\n }\n eleccion.setTextos(nombreMezcales);\n revalidate();\n }",
"private void listadoEstados() {\r\n sessionProyecto.getEstados().clear();\r\n sessionProyecto.setEstados(itemService.buscarPorCatalogo(CatalogoEnum.ESTADOPROYECTO.getTipo()));\r\n }",
"public void mostrarLista() {\n\n Nodo recorrer = temp;\n while (recorrer != null) {\n\n System.out.println(\"[ \" + recorrer.getDato() + \"]\");\n recorrer = recorrer.getSiguiente();\n\n }\n\n }",
"private void setearOpcionesMenuCobros()\r\n\t{\r\n\t\tArrayList<FormularioVO> lstFormsMenuCobros = new ArrayList<FormularioVO>();\r\n\t\t\r\n\t\r\n\t\t\r\n\t\t/*Buscamos los Formulairos correspondientes a este TAB*/\r\n\t\tfor (FormularioVO formularioVO : this.permisos.getLstPermisos().values()) {\r\n\t\t\t\r\n\t\t\tif(\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_GASTOS) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_DEPOSITO) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_CONCILIACION) ||\r\n\t\t\t\tformularioVO.getCodigo().equals(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO))\r\n\t\t\t\t\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tlstFormsMenuCobros.add(formularioVO);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t/*Si hay formularios para el tab*/\r\n\t\tif(lstFormsMenuCobros.size()> 0)\r\n\t\t{\r\n\r\n\t\t\tthis.layoutMenu = new VerticalLayout();\r\n\t\t\t//this.tabMantenimientos.setMargin(true);\r\n\t\t\t\r\n\t\t\tthis.lbCobros.setVisible(true);\r\n\t\t\tthis.layoutMenu.addComponent(this.lbCobros);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tfor (FormularioVO formularioVO : lstFormsMenuCobros) {\r\n\t\t\t\t\r\n\t\t\t\tswitch(formularioVO.getCodigo())\r\n\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_COBRO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroCobro();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroCobro);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarIngresoEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.ingEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_INGRESO_EGRESO_OTRO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarOtroEgreso();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.otroEgreso);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_GASTOS:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_GASTOS, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarGastos();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.gastos);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tbreak;\r\n\r\n\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_DEPOSITO:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_DEPOSITO, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarDeposito();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.deposito);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\t\tcase VariablesPermisos.FORMULARIO_CONCILIACION:\r\n\t\t\t\t\t\tif(this.permisos.permisoEnFormulaior(VariablesPermisos.FORMULARIO_CONCILIACION, VariablesPermisos.OPERACION_LEER)){\r\n\t\t\t\t\t\t\tthis.habilitarConciliacion();\r\n\t\t\t\t\t\t\tthis.layoutMenu.addComponent(this.conciliacion);\r\n\t\t\t\t\t\t}\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\t\t\t\r\n\t\t\tthis.menuItems.addComponent(this.layoutMenu);\r\n\t\t\t\r\n\t\t}\r\n\t}",
"List<Entidade> listarTodos();",
"public void addDicas(){\n\t\tMetaDica metaDicaOac = new MetaDica(oac, \"user1\", \"Não falte as aulas, toda aula tem ponto extra!\");\n\t\tmetaDicaOac.setConcordancias(5);\n\t\tdao.persist(metaDicaOac);\n\n\t\tdicaExerciciosOac = new DicaConselho(\"Os exercicios extras valem muitos pontos, nao deixe de fazer\");\n\t\tdicaExerciciosOac.setTema(temaOacExercicios);\n\t\ttemaOacExercicios.setDisciplina(oac);\n\t\tdicaExerciciosOac.setUser(\"user5\");\n\t\tdicaExerciciosOac.addUsuarioQueVotou(\"user1\");\n\t\tdicaExerciciosOac.addUsuarioQueVotou(\"user2\");\n\n\t\t//adiciona pontos a dica\n\t\tfor (int i = 0; i < 20;i++){\n\t\t\tdicaExerciciosOac.incrementaConcordancias();\n\t\t}\n\t\tfor (int i = 0; i < 5;i++){\n\t\t\tdicaExerciciosOac.incrementaDiscordancias();\n\t\t}\n\n\t\t//adiciona pontos a dica\n\t\tfor (int i = 0; i < 5;i++){\n\t\t\tdicaExerciciosOac.incrementaConcordancias();\n\t\t}\n\t\tfor (int i = 0; i < 25;i++){\n\t\t\tdicaExerciciosOac.incrementaDiscordancias();\n\t\t}\n\t\tdao.persist(dicaExerciciosOac);\n\n\t\tdicaRevisaoIcOac = new DicaAssunto(\"Antes das aulas faça uma boa revisao de IC\");\n\t\ttemaOacRevisaoIC.setDisciplina(oac);\n\t\tdicaRevisaoIcOac.setTema(temaOacRevisaoIC);\n\t\tdicaRevisaoIcOac.setUser(\"user4\");\n\t\tdicaRevisaoIcOac.addUsuarioQueVotou(\"user5\");\n\t\tdicaRevisaoIcOac.addUsuarioQueVotou(\"user1\");\n\t\tdicaRevisaoIcOac.incrementaConcordancias();\n\t\tdicaRevisaoIcOac.incrementaConcordancias();\n\n\t\t//cria meta dica em si\n\t\tMetaDica metaDicaSi1 = new MetaDica(si1, \"user2\", \"Seja autodidata! Procure por cursos online\");\n\t\tdao.persist(metaDicaSi1);\n\n\t\tdicaLabSi = new DicaConselho(\"Faça todo os labs, não deixe acumular\");\n\t\ttemaMinitestesSi.setDisciplina(si1);\n\t\tdicaLabSi.setTema(temaMinitestesSi);\n\t\tdicaLabSi.setUser(\"user1\");\n\t\tdicaLabSi.addUsuarioQueVotou(\"user2\");\n\t\tdicaLabSi.addUsuarioQueVotou(\"user3\");\n\t\tdicaLabSi.incrementaConcordancias();\n\t\tdicaLabSi.incrementaConcordancias();\n\t\tdao.persist(dicaLabSi);\n\n\t\tdicaPlaySi = new DicaConselho(\"Comece a configurar o Play no primeiro dia de aula, pois dá muuuito trabalho\");\n\t\ttemaPlaySi.setDisciplina(si1);\n\t\tdicaPlaySi.setTema(temaPlaySi);\n\t\tdicaPlaySi.setUser(\"user2\");\n\t\tdicaPlaySi.addUsuarioQueVotou(\"user5\");\n\t\tdicaPlaySi.addUsuarioQueVotou(\"user4\");\n\t\tdicaPlaySi.incrementaConcordancias();\n\t\tdicaPlaySi.incrementaConcordancias();\n\t\tdao.persist(dicaPlaySi);\n\n\t\tdicaMaterialSi = new DicaMaterial(\"http://www.wthreex.com/rup/process/workflow/ana_desi/co_swarch.htm\");\n\t\ttemaMaterialSi.setDisciplina(si1);\n\t\tdicaMaterialSi.setTema(temaMaterialSi);\n\t\tdicaMaterialSi.setUser(\"user2\");\n\t\tdicaMaterialSi.addUsuarioQueVotou(\"user5\");\n\t\tdicaMaterialSi.addUsuarioQueVotou(\"user4\");\n\t\tdicaMaterialSi.incrementaConcordancias();\n\t\tdicaMaterialSi.incrementaConcordancias();\n\t\tdao.persist(dicaMaterialSi);\n\n\n\t\t//cria meta dica logica\n\t\tMetaDica metaDicaLogica = new MetaDica(logica, \"user3\", \"Copie para o seu caderno tudo que o professor copiar no quadro, TUDO!\");\n\t\tdao.persist(metaDicaLogica);\n\n\t\tdicaListasLogica = new DicaConselho(\"Faça todas as listas possíveis\");\n\t\ttemaListasLogica.setDisciplina(logica);\n\t\tdicaListasLogica.setTema(temaListasLogica);\n\t\tdicaListasLogica.setTema(temaListasLogica);\n\t\tdicaListasLogica.setUser(\"user6\");\n\t\tdicaListasLogica.addUsuarioQueVotou(\"user3\");\n\t\tdicaListasLogica.addUsuarioQueVotou(\"user5\");\n\t\tdicaListasLogica.incrementaConcordancias();\n\t\tdicaListasLogica.incrementaConcordancias();\n\t\tdao.persist(dicaListasLogica);\n\n\t\tdicaProjetoLogica = new DicaAssunto(\"Peça ajuda ao monitor responsável por seu grupo, começe o projeto assim que for lançado!\");\n\t\ttemaProjetoLogica.setDisciplina(logica);\n\t\tdicaProjetoLogica.setTema(temaProjetoLogica);\n\t\tdicaProjetoLogica.setTema(temaProjetoLogica);\n\t\tdicaProjetoLogica.setUser(\"user4\");\n\t\tdicaProjetoLogica.addUsuarioQueVotou(\"user1\");\n\t\tdicaProjetoLogica.addUsuarioQueVotou(\"user2\");\n\t\tdicaProjetoLogica.incrementaConcordancias();\n\t\tdicaProjetoLogica.incrementaConcordancias();\n\t\tdao.persist(dicaProjetoLogica);\n\n\t\tdao.flush();\n\n\t}",
"public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }",
"public Artefato() {\r\n\t\tthis.membros = new ArrayList<Membro>();\r\n\t\tthis.servicos = new ArrayList<IServico>();\r\n\t}",
"private void reposicionarPersonajes() {\n // TODO implement here\n }",
"private static void listaProdutosCadastrados() throws Exception {\r\n String nomeCategoria;\r\n ArrayList<Produto> lista = arqProdutos.toList();\r\n if (!lista.isEmpty()) {\r\n System.out.println(\"\\t** Lista dos produtos cadastrados **\\n\");\r\n }\r\n for (Produto p : lista) {\r\n if (p != null && p.getID() != -1) {\r\n nomeCategoria = getNomeCategoria(p.idCategoria - 1);\r\n System.out.println(\r\n \"Id: \" + p.getID()\r\n + \"\\nNome: \" + p.nomeProduto\r\n + \"\\nDescricao: \" + p.descricao\r\n + \"\\nPreco: \" + tf.format(p.preco)\r\n + \"\\nMarca: \" + p.marca\r\n + \"\\nOrigem: \" + p.origem\r\n );\r\n if (nomeCategoria != null) {\r\n System.out.println(\"Categoria: \" + nomeCategoria);\r\n } else {\r\n System.out.println(\"Categoria: \" + p.idCategoria);\r\n }\r\n System.out.println();\r\n Thread.sleep(500);\r\n }\r\n }\r\n }",
"@Override\n\tpublic void cadastrar(Cliente o) {\n\t\t\n\t}",
"public void SolicitarDatos() {\n\t\t\r\n\t\tSystem.out.println(\"nombre:\");\r\n\t\tSystem.out.println(\"apellido\");\r\n\t\tSystem.out.println(\"numCedula\");\r\n\t\t\r\n\t}"
] | [
"0.683546",
"0.6817625",
"0.67044526",
"0.6700371",
"0.66272444",
"0.6593755",
"0.65903467",
"0.6565204",
"0.6563739",
"0.6514349",
"0.6513149",
"0.6466959",
"0.64006597",
"0.63955724",
"0.63943964",
"0.6349256",
"0.63424885",
"0.63396055",
"0.633455",
"0.6334129",
"0.63307685",
"0.63117737",
"0.630748",
"0.6306874",
"0.6304273",
"0.6299594",
"0.6298191",
"0.62705636",
"0.6250284",
"0.6245212",
"0.6240182",
"0.62353176",
"0.62329537",
"0.62288105",
"0.6212678",
"0.6211656",
"0.61985034",
"0.61909634",
"0.61897165",
"0.61895096",
"0.6182292",
"0.61821294",
"0.6180819",
"0.6176412",
"0.6160746",
"0.61575997",
"0.61532533",
"0.6149126",
"0.6148034",
"0.61414844",
"0.6141324",
"0.61346483",
"0.61341155",
"0.6122002",
"0.6117677",
"0.611512",
"0.6107923",
"0.6105098",
"0.6103108",
"0.6101639",
"0.6091702",
"0.60908324",
"0.6078097",
"0.60770595",
"0.60763097",
"0.60762674",
"0.60715723",
"0.6064557",
"0.6058256",
"0.60542756",
"0.6052426",
"0.60507643",
"0.6045846",
"0.6044023",
"0.6033342",
"0.60298723",
"0.60277855",
"0.60269606",
"0.6025802",
"0.60138565",
"0.6011712",
"0.60116875",
"0.6008035",
"0.60073483",
"0.6005487",
"0.6004285",
"0.6003281",
"0.6002607",
"0.6001885",
"0.5998521",
"0.59961784",
"0.5984013",
"0.5982903",
"0.59817594",
"0.5981055",
"0.5974522",
"0.5962232",
"0.5954191",
"0.59536606",
"0.5950431",
"0.594762"
] | 0.0 | -1 |
subclasses may override subclasses may override | public void completeResourceAdapter_ConfComplete(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\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 public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"protected void checkSubclass() {\n }",
"protected abstract void switchOnCustom();",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void override() {\n isOverridden = true;\n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\n\tpublic void dosomething2() {\n\t\t\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\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 anularFact() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }",
"@Override\r\n\tpublic void method() {\n\t\tsuper.method();\r\n\t\tSystem.out.println(\"Iam in a subclass\");\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void type() {\n\t\t\n\t}",
"@Override // opcional\n public void init(){\n\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"abstract void method();",
"@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void memoria() {\n \n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"public abstract void process(final EClass Super, final EClass Sub);",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }"
] | [
"0.71218264",
"0.6902035",
"0.684619",
"0.6821538",
"0.6796264",
"0.6723408",
"0.66966224",
"0.66966224",
"0.66966224",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6688979",
"0.6685842",
"0.66785777",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66371596",
"0.66212314",
"0.66212314",
"0.66212314",
"0.65031475",
"0.64765906",
"0.64671963",
"0.6432132",
"0.64193434",
"0.6406349",
"0.6395991",
"0.6368767",
"0.6368767",
"0.63500905",
"0.63500905",
"0.63475084",
"0.634162",
"0.6335355",
"0.6335355",
"0.6335355",
"0.6331848",
"0.63266903",
"0.62742484",
"0.62635255",
"0.6223522",
"0.6220119",
"0.620542",
"0.6205003",
"0.61997116",
"0.6191563",
"0.6179913",
"0.617591",
"0.61721027",
"0.6167264",
"0.61602706",
"0.6134541",
"0.613421",
"0.61236733",
"0.6117178",
"0.6106716",
"0.60999453",
"0.6090903",
"0.6088127",
"0.6086523",
"0.60840815",
"0.6083345",
"0.60657966",
"0.6058582",
"0.6050552",
"0.6039474",
"0.6033137",
"0.6026486",
"0.6025742",
"0.6025742",
"0.6025742",
"0.6017271",
"0.6010292",
"0.60084915",
"0.6001087",
"0.5995128"
] | 0.0 | -1 |
subclasses may override subclasses may override subclasses may override subclasses may override subclasses may override | public void completeParameterType_PName(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
// subclasses may override
// subclasses may override
// subclasses may override
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"public void override() {\n isOverridden = true;\n }",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"protected void checkSubclass() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );",
"@Override\n\tpublic void dosomething2() {\n\t\t\n\t}",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"protected abstract void switchOnCustom();",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void method_6349() {\r\n super.method_6349();\r\n }",
"@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"public abstract void process(final EClass Super, final EClass Sub);",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void method() {\n\t\tsuper.method();\r\n\t\tSystem.out.println(\"Iam in a subclass\");\r\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 grabar() {\n\t\t\n\t}",
"@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override //this is optional\n public void eat(int amount) {\n\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"abstract void method();",
"@Override\n\tpublic void effetCase() {\n\t\t\n\t}",
"public void setupAbstract() {\n \r\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"@Override\n\tpublic void A() {\n\t\t\n\t}",
"abstract int pregnancy();",
"@Override\n\tprotected void logic() {\n\n\t}",
"public static void main(String[] args) {\n\r\n\t\tOverrideTest tu=new OverrideTest();\r\n\t\tOverride rr=new Override();\r\n\t\ttu.eat();//얘 class가보면 super키워드를 사용해서 부모클래스에 접근.\r\n\t\trr.eat();//여기서 그냥 부모 클래스의 메소드 호출해도 된다\r\n\t\ttu.eat(10);\t\t\r\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"@Override\n\tpublic void type() {\n\t\t\n\t}",
"@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}",
"@Override\r\n\tpublic void a() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void visit() {\n\r\n\t}"
] | [
"0.70165783",
"0.68576187",
"0.68155885",
"0.6793122",
"0.67270035",
"0.67254835",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6664915",
"0.6644294",
"0.6643199",
"0.6643199",
"0.6643199",
"0.6631994",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.66082996",
"0.6573802",
"0.65586853",
"0.65586853",
"0.65586853",
"0.6544956",
"0.6480461",
"0.642568",
"0.64242387",
"0.64037555",
"0.63976616",
"0.6385821",
"0.6384609",
"0.63830113",
"0.63830113",
"0.63830113",
"0.6329945",
"0.63142574",
"0.62956077",
"0.6283903",
"0.6268637",
"0.62428844",
"0.62156105",
"0.62068194",
"0.61789787",
"0.6174401",
"0.6167485",
"0.6167485",
"0.6140039",
"0.61275667",
"0.6125821",
"0.6106141",
"0.61004615",
"0.60756457",
"0.6073945",
"0.6063735",
"0.60541266",
"0.6045061",
"0.60430217",
"0.603825",
"0.6035962",
"0.6035962",
"0.6035962",
"0.6033789",
"0.60194695",
"0.6011121",
"0.60048544",
"0.5981383",
"0.59748083",
"0.59748083",
"0.59733605",
"0.59733605",
"0.59707135",
"0.5970308",
"0.594909",
"0.59462243",
"0.5943835",
"0.59419453",
"0.59415936",
"0.59415066"
] | 0.0 | -1 |
subclasses may override subclasses may override | public void completeRuleHTTP_HMethod(EObject model, Assignment assignment, ContentAssistContext context, ICompletionProposalAcceptor acceptor) {
// subclasses may override
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void prot() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n protected void checkSubclass() {\n }",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tprotected void checkSubclass() {\n\t}",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n\tprotected void checkSubclass() {\n\t}",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\r\n protected void checkSubclass() {\n }",
"@Override\n\tvoid methodAbstractAndSubclassIsAbstract() {\n\t\t\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\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 public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"protected void checkSubclass() {\n }",
"protected abstract void switchOnCustom();",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"protected void checkSubclass() {\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void classroom() {\n\t\t\n\t}",
"public void method_6349() {\r\n super.method_6349();\r\n }",
"public void override() {\n isOverridden = true;\n }",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"@Override\n\tvoid methodabstract() {\n\t\t\n\t}",
"@Override\n\tpublic void some() {\n\t\t\n\t}",
"@Override\n\tpublic void dosomething2() {\n\t\t\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n\tpublic void verkaufen() {\n\t}",
"protected abstract void _extends( ClassOutlineImpl derived, ClassOutlineImpl base );",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n public void matiz() {\n System.out.println(\"New not Abstract method\");\n }",
"@Override\r\n\tpublic void method() {\n\t\tsuper.method();\r\n\t\tSystem.out.println(\"Iam in a subclass\");\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void type() {\n\t\t\n\t}",
"@Override // opcional\n public void init(){\n\n }",
"@Override\n\tpublic void buscar() {\n\t\t\n\t}",
"@Override\n\tpublic void extends_(JDefinedClass cls) {\n\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}",
"abstract void method();",
"@Override\r\n\tprotected void intializeSpecific() {\n\r\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n public void memoria() {\n \n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"public void method_1449() {\r\n super.method_1449();\r\n }",
"protected void method_3848() {\r\n super.method_3848();\r\n }",
"public abstract void process(final EClass Super, final EClass Sub);",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"@Override\r\n\tpublic void method() {\n\t\r\n\t}",
"_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }"
] | [
"0.71202815",
"0.69011277",
"0.6844959",
"0.6820635",
"0.6796313",
"0.6722267",
"0.66956747",
"0.66956747",
"0.66956747",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66881394",
"0.66859436",
"0.66774833",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.66362333",
"0.6620243",
"0.6620243",
"0.6620243",
"0.65032107",
"0.6475837",
"0.6466488",
"0.6430762",
"0.64185596",
"0.64058924",
"0.6395744",
"0.6367612",
"0.6367612",
"0.63494647",
"0.63494647",
"0.63471085",
"0.6342103",
"0.6334846",
"0.6334846",
"0.6334846",
"0.63304317",
"0.6325759",
"0.62735444",
"0.6263365",
"0.6222863",
"0.62197727",
"0.62053734",
"0.6205317",
"0.6198421",
"0.6190893",
"0.6179218",
"0.6177264",
"0.6172469",
"0.6166657",
"0.61589056",
"0.6134392",
"0.6133388",
"0.6122714",
"0.61156803",
"0.6106791",
"0.6100056",
"0.60892075",
"0.6087078",
"0.6085009",
"0.60835105",
"0.60833615",
"0.6064953",
"0.6058238",
"0.60512996",
"0.60387474",
"0.603068",
"0.60257393",
"0.60249233",
"0.60249233",
"0.60249233",
"0.60161215",
"0.6011731",
"0.6007693",
"0.6000715",
"0.5994594"
] | 0.0 | -1 |
Creates new form CurrentCashBoxPanel | public CashBoxPanel(SaleController saleController, UsersDAO usersDAO, CashBoxesDAO cashBoxesDAO) {
this.saleController = saleController;
this.usersDAO = usersDAO;
this.cashBoxesDAO = cashBoxesDAO;
initComponents();
jButton_history.setVisible(User.getCurrentUser().hasPermissionOrIsRoot(User.Permission.CashBoxesHistory));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public JPanel getNewClientAccountPanel() {\n clientAccountView = new ClientAccountView();\n clientAccountView.setAccNum(smCntr.getID());\n clientAccountView.setFormToAdd();\n return clientAccountView;\n }",
"private static void createAndShowGUI() {\n frame = new JFrame(\"Shopping Cart\");\n frame.setLocation(600,300);\n frame.setPreferredSize(new Dimension(800,700));\n frame.setResizable(false);\n //frame.setLayout(new GridLayout(2,2,5,5));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new shoppingCartTableGui();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n //Display the window.\n frame.pack();\n \n // inserting the login dialogPane here\n loginPane newLoginPane = new loginPane(frame);\n clientID = newLoginPane.getClientID();\n }",
"private JPanel createTradeInPanel(Player p){\n\t\t\n\t\tJPanel tradeInPanel = new JPanel();\t\t\t\t// panel for trading in cards\n\t\tthis.add(tradeInPanel);\t\t\t\t\t\t\n\t\ttradeInPanel.add( labels[ 8 ] );\n\t\t\t\n\t\tJCheckBox cardBoxes;\n\t\tfinal JCheckBox[] boxes = new JCheckBox[MainPlayScreen.this.game.getCurrentPlayer().cards.size()];\n\t\t\n\t\tfinal ArrayList<Card> playerCard = MainPlayScreen.this.game.getCurrentPlayer().cards;\n\t\tthis.cardBoxes = new JCheckBox[playerCard.size()];\n\t\t\n\t\tfor (int i = 0; i < playerCard.size(); i++){\n\t\t\tboxes[i] = new JCheckBox(MainPlayScreen.this.game.getCurrentPlayer().cards.get(i).getCountry() + \"--\" + MainPlayScreen.this.game.getCurrentPlayer().cards.get(i).getDesign().toString());\t\t//Sets up the check boxes to select cards\n\t\t\ttradeInPanel.add(boxes[i]);\n\t\t} // end of for loops\t\t\n\t\ttradeInPanel.add(button);\n\t\t\n\t\ttradeInPanel.setVisible(false);\t\t\n\t\treturn tradeInPanel;\n\t\n\t}",
"private static ISInspectorGui createNewInstance(ISInspectorController controller) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(ISInspectorGui.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n Holder<ISInspectorGui> result = new Holder();\n try {\n /* Create and display the form */\n java.awt.EventQueue.invokeAndWait(new Runnable() {\n @Override\n public void run() {\n result.setValue(new ISInspectorGui(controller));\n result.getValue().setVisible(true);\n }\n });\n } catch (InterruptedException | InvocationTargetException ex) {\n Logger.getLogger(ISInspectorGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n return result.getValue();\n }",
"@Override\n\tpublic void constructContent() {\n\t\t((JPanel)withdrawFrame.getContentPane()).setBorder(BorderFactory.createEmptyBorder(50,50,50,50));\n\t\tContainer defaultPanel = withdrawFrame.getContentPane();\n\t\tdefaultPanel.setLayout(new BorderLayout());\n\t\tJPanel subPanel1 = new JPanel();\n\t\tJLabel money = new JLabel(\"Number:\");\n\t\tsubPanel1.add(money);\n\t\tdefaultPanel.add(subPanel1, BorderLayout.NORTH);\n\t\tJPanel subPanel2 = new JPanel();\n\t\tsubPanel2.setBorder(BorderFactory.createEmptyBorder(80,50,50,50));\n\t\twithdrawMoney = new JTextField();\n\t\twithdrawMoney.setPreferredSize(new Dimension(350, 50));\n\t\tsubPanel2.add(withdrawMoney);\n\t\tdefaultPanel.add(subPanel2, BorderLayout.CENTER);\n\t\tJPanel subPanel3 = new JPanel();\n\t\tconfirmButton = new JButton(\"Confirm\");\n\t\tbackButton = new JButton(\"Back\");\n\t\tconfirmButton.setPreferredSize(new Dimension(200, 50));\n\t\tbackButton.setPreferredSize(new Dimension(200,50));\n\t\tconfirmButton.addActionListener(this);\n\t\tbackButton.addActionListener(this);\n\t\tsubPanel3.add(confirmButton);\n\t\tsubPanel3.add(backButton);\n\t\tdefaultPanel.add(subPanel3, BorderLayout.SOUTH);\n\t\t//moneyNum.\n\t}",
"public NewJFrame() {\n initComponents();\n \n \n //combo box\n comboCompet.addItem(\"Séléction officielle\");\n comboCompet.addItem(\"Un certain regard\");\n comboCompet.addItem(\"Cannes Courts métrages\");\n comboCompet.addItem(\"Hors compétitions\");\n comboCompet.addItem(\"Cannes Classics\");\n \n \n //redimension\n this.setResizable(false);\n \n planning = new Planning();\n \n \n }",
"private void buildCheckout() {\n\t\t\n\t\t//clears the New Customer JFrame components\n\t\tgetContentPane().removeAll();\n\t\t\n\t\t//creates panel objects for Checkout window\n\t\tpanel1 = new JPanel();\n\t\tpanel2 = new JPanel();\n\t\tpanel3 = new JPanel();\n\t\tpanel4 = new JPanel();\n\t\tpanel5 = new JPanel();\n\t\tpanel6 = new JPanel();\n\t\tpanel7 = new JPanel();\n\t\tpanel8 = new JPanel();\n\t\tpanel9 = new JPanel();\n\t\tpanel10 = new JPanel();\n\t\tpanel11 = new JPanel();\n\t\tpanel12 = new JPanel();\n\t\t\n\t\t//creates main panel object for Checkout window\n\t\tmainPanel = new JPanel();\n\t\t\n\t\t//button to open New Customer window\n\t\taddNewCustomerButton = new JButton(\"Add New Customer\");\n\t\t\n\t\t//button to pay for presented transaction amount\n\t\tpayButton = new JButton(\"Pay\");\n\t\t\n\t\t//combo box for Checkout window, attains value from namesArray, initialized to unselected, sets dimension manually\n\t\tnameBox = new JComboBox(namesArray.toArray());\n\t\tnameBox.setSelectedIndex(-1);\n\t\tnameBox.setPreferredSize(new Dimension(115, 25));\n\t\t\n\t\t//creates descriptive labels for Checkout window\n\t\tcustomerLabel = \t\tnew JLabel(\"Customer \");\n\t\tcurrentSpentLabel = \tnew JLabel(\"Current Spent \");\n\t\tcurrentDiscountLabel = \tnew JLabel(\"Current Discount \");\n\t\ttransactionAmountLabel =new JLabel(\"Transaction Amount \");\n\t\tamountDiscountedLabel =\tnew JLabel(\"Discounted \");\n\t\tpendingPaymentLabel = \tnew JLabel(\"Pending Payment \");\n\t\t\n\t\t//creates error labels for Checkout window\n\t\ttransactionAmountLabelError = \tnew JLabel(\"\");\n\t\tcheckoutWindowError = \t\tnew JLabel(\"\");\n\t\tcheckoutWindowError.setPreferredSize(new Dimension(180, 25));\n\t\t\n\t\t//sets color for error labels\n\t\ttransactionAmountLabelError.setForeground(Color.RED);\n\t\tcheckoutWindowError.setForeground(Color.RED);\n\t\t\n\t\t//creates text fields for Checkout window\n\t\tcurrentSpentField = \tnew JTextField(10);\n\t\tcurrentDiscountField = \tnew JTextField(10);\n\t\ttransactionAmountField =new JTextField(10);\n\t\tamountDiscountedField =\tnew JTextField(10);\n\t\tpendingPaymentField = \tnew JTextField(10);\n\t\t\n\t\t//changes specific text fields as unEditable\n\t\tcurrentSpentField.setEditable(false);\n\t\tcurrentDiscountField.setEditable(false);\n\t\tamountDiscountedField.setEditable(false);\n\t\tpendingPaymentField.setEditable(false);\n\t\t\n\t\t//creates listeners for buttons, ComboBox, and text fields\n\t\taddNewCustomerButton.addActionListener(new addNewCusButtonListener());\n\t\tnameBox.addActionListener(new nameComboBoxListener());\n\t\ttransactionAmountField.addActionListener(new transactionAmountFieldListener());\n\t\tpayButton.addActionListener(new payButtonListener());\n\t\t\n\t\t//adds Add New Customer button component to the top panel\n\t\tpanel1.add(addNewCustomerButton);\n\t\t\n\t\t//adds components to the main panel set\n\t\tpanel2.add(customerLabel);\n\t\tpanel2.add(nameBox);\n\t\t\n\t\tpanel3.add(currentSpentLabel);\n\t\tpanel3.add(currentSpentField);\n\t\t\n\t\tpanel4.add(currentDiscountLabel);\n\t\tpanel4.add(currentDiscountField);\n\t\t\n\t\tpanel5.add(transactionAmountLabel);\n\t\tpanel5.add(transactionAmountLabelError);\n\t\tpanel5.add(transactionAmountField);\n\t\t\n\t\tpanel6.add(amountDiscountedLabel);\n\t\tpanel6.add(amountDiscountedField);\n\t\t\n\t\tpanel7.add(pendingPaymentLabel);\n\t\tpanel7.add(pendingPaymentField);\n\t\t\n\t\tpanel8.add(checkoutWindowError);\n\n\t\t//adds Pay button component to the bottom panel\n\t\tpanel9.add(payButton);\n\t\t\n\t\t//adds the main panel set to the main panel\n\t\tmainPanel.add(panel2);\n\t\tmainPanel.add(panel3);\n\t\tmainPanel.add(panel4);\n\t\tmainPanel.add(panel5);\n\t\tmainPanel.add(panel6);\n\t\tmainPanel.add(panel7);\n\t\tmainPanel.add(panel8);\n\t\t\n\t\t//sets the main panel's flow characteristics\n\t\tmainPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tmainPanel.setPreferredSize(new Dimension(260, 250));\n\t\t\n\t\t//adds the first panel directly to the top of the Checkout JFrame\n\t\tadd(panel1);\n\t\t\n\t\t//adds the main panel in the middle of the Checkout JFrame \n\t\tadd(mainPanel);\n\t\t\n\t\t//adds the last panel directly to the bottom of the Checkout JFrame \n\t\tadd(panel9);\n\t\t\n\t\t//redisplays the Checkout JFrame over the New Customer JFrame\n\t\trevalidate();\n\t\trepaint();\n\t}",
"public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}",
"public JPanelTicket_backUp() {\n\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n copyButton = new com.cosmos.swingb.JBButton();\n closeButton = new com.cosmos.swingb.JBButton();\n jBLabel3 = new com.cosmos.swingb.JBLabel();\n invoiceField = new com.cosmos.acacia.gui.AcaciaComboList();\n invoiceItemsHolderPanel = new com.cosmos.acacia.gui.TableHolderPanel();\n orderItemsHolderPanel = new com.cosmos.acacia.gui.TableHolderPanel();\n\n setName(\"Form\"); // NOI18N\n\n copyButton.setMnemonic('A');\n org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(com.cosmos.acacia.crm.gui.AcaciaApplication.class).getContext().getResourceMap(OrderItemsCopyForm.class);\n copyButton.setText(resourceMap.getString(\"copyButton.text\")); // NOI18N\n copyButton.setToolTipText(resourceMap.getString(\"copyButton.toolTipText\")); // NOI18N\n copyButton.setName(\"copyButton\"); // NOI18N\n\n closeButton.setIcon(resourceMap.getIcon(\"closeButton.icon\")); // NOI18N\n closeButton.setText(resourceMap.getString(\"closeButton.text\")); // NOI18N\n closeButton.setName(\"closeButton\"); // NOI18N\n\n jBLabel3.setText(resourceMap.getString(\"jBLabel3.text\")); // NOI18N\n jBLabel3.setName(\"jBLabel3\"); // NOI18N\n\n invoiceField.setName(\"invoiceField\"); // NOI18N\n\n invoiceItemsHolderPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString(\"invoiceItemsHolderPanel.border.title\"))); // NOI18N\n invoiceItemsHolderPanel.setName(\"invoiceItemsHolderPanel\"); // NOI18N\n\n javax.swing.GroupLayout invoiceItemsHolderPanelLayout = new javax.swing.GroupLayout(invoiceItemsHolderPanel);\n invoiceItemsHolderPanel.setLayout(invoiceItemsHolderPanelLayout);\n invoiceItemsHolderPanelLayout.setHorizontalGroup(\n invoiceItemsHolderPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 977, Short.MAX_VALUE)\n );\n invoiceItemsHolderPanelLayout.setVerticalGroup(\n invoiceItemsHolderPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 339, Short.MAX_VALUE)\n );\n\n orderItemsHolderPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString(\"orderItemsHolderPanel.border.title\"))); // NOI18N\n orderItemsHolderPanel.setName(\"orderItemsHolderPanel\"); // NOI18N\n\n javax.swing.GroupLayout orderItemsHolderPanelLayout = new javax.swing.GroupLayout(orderItemsHolderPanel);\n orderItemsHolderPanel.setLayout(orderItemsHolderPanelLayout);\n orderItemsHolderPanelLayout.setHorizontalGroup(\n orderItemsHolderPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 977, Short.MAX_VALUE)\n );\n orderItemsHolderPanelLayout.setVerticalGroup(\n orderItemsHolderPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 335, Short.MAX_VALUE)\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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(invoiceItemsHolderPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addComponent(jBLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 132, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(invoiceField, javax.swing.GroupLayout.PREFERRED_SIZE, 339, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(orderItemsHolderPanel, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createSequentialGroup()\n .addGap(423, 423, 423)\n .addComponent(copyButton, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jBLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(invoiceField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(invoiceItemsHolderPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(copyButton, javax.swing.GroupLayout.PREFERRED_SIZE, 29, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(orderItemsHolderPanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(closeButton, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n }",
"public CreateAccountPanel() {\n initComponents();\n initializeDateChooser();\n }",
"private void butAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_butAddActionPerformed\n AddBorrower ab = new AddBorrower();\n ab.setVisiblePanel(0);\n ab.setVisible(true);\n }",
"FORM createFORM();",
"public CreateAccount_GUI() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel8 = new javax.swing.JPanel();\n jLabel11 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n rdoIssueGoods = new javax.swing.JRadioButton();\n jLabel13 = new javax.swing.JLabel();\n cardPanel = new javax.swing.JPanel();\n jLabel12 = new javax.swing.JLabel();\n txtCashAmount = new com.sv.visionplus.util.component.textfield.CDoubleField();\n txtInvoiceValue = new com.sv.visionplus.util.component.textfield.CDoubleField();\n txtPayAmount = new com.sv.visionplus.util.component.textfield.CDoubleField();\n txtNewBalance = new com.sv.visionplus.util.component.textfield.CDoubleField();\n cardPanel1 = new javax.swing.JPanel();\n jLabel18 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n rdoCardPayment = new javax.swing.JRadioButton();\n cmboCardBank = new com.sv.visionplus.util.component.combobox.CComboBox(){\n @Override\n public List getComboData(){\n return allBankBranch();\n }\n };\n txtCardAmount = new com.sv.visionplus.util.component.textfield.CDoubleField();\n txtCardNo = new com.sv.visionplus.util.component.textfield.CIntegerField();\n chequePanel = new javax.swing.JPanel();\n rdoChequePayment = new javax.swing.JRadioButton();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n cmboChequeBank = new com.sv.visionplus.util.component.combobox.CComboBox(){\n @Override\n public List getComboData(){\n return allBankBranch();\n }\n };\n txtChequeAmount = new com.sv.visionplus.util.component.textfield.CDoubleField();\n txtChequeNo = new com.sv.visionplus.util.component.textfield.CIntegerField();\n jButton2 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n rdoPrintBill = new javax.swing.JRadioButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n jLabel11.setText(\"Pay Amount :\");\n\n jLabel7.setText(\"Invoice Value :\");\n\n rdoIssueGoods.setText(\"Issue Goods\");\n\n jLabel13.setText(\"New Balance :\");\n\n cardPanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Cash Payment\"));\n\n jLabel12.setText(\" Amount :\");\n\n txtCashAmount.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtCashAmountKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout cardPanelLayout = new javax.swing.GroupLayout(cardPanel);\n cardPanel.setLayout(cardPanelLayout);\n cardPanelLayout.setHorizontalGroup(\n cardPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cardPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel12)\n .addGap(27, 27, 27)\n .addComponent(txtCashAmount, javax.swing.GroupLayout.PREFERRED_SIZE, 139, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(26, Short.MAX_VALUE))\n );\n cardPanelLayout.setVerticalGroup(\n cardPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cardPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(cardPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel12)\n .addComponent(txtCashAmount, 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\n txtInvoiceValue.setText(\"1000.00\");\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel11)\n .addComponent(jLabel13))\n .addGap(38, 38, 38)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(rdoIssueGoods, javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE)\n .addComponent(txtInvoiceValue, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtPayAmount, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtNewBalance, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cardPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(283, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addContainerGap(21, Short.MAX_VALUE)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel7)\n .addComponent(txtInvoiceValue, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(txtPayAmount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel13)\n .addComponent(txtNewBalance, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(cardPanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rdoIssueGoods)\n .addContainerGap())\n );\n\n cardPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Card Payment\"));\n\n jLabel18.setText(\" Amount :\");\n\n jLabel19.setText(\"Bank :\");\n\n jLabel20.setText(\" Card No :\");\n\n rdoCardPayment.setText(\"Card Payment\");\n rdoCardPayment.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rdoCardPaymentActionPerformed(evt);\n }\n });\n\n txtCardAmount.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtCardAmountKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout cardPanel1Layout = new javax.swing.GroupLayout(cardPanel1);\n cardPanel1.setLayout(cardPanel1Layout);\n cardPanel1Layout.setHorizontalGroup(\n cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cardPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cardPanel1Layout.createSequentialGroup()\n .addComponent(rdoCardPayment, javax.swing.GroupLayout.DEFAULT_SIZE, 107, Short.MAX_VALUE)\n .addGap(274, 274, 274))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, cardPanel1Layout.createSequentialGroup()\n .addGap(4, 4, 4)\n .addGroup(cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jLabel20))\n .addGap(27, 27, 27)\n .addGroup(cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(cmboCardBank, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtCardAmount, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtCardNo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(22, 22, 22))))\n );\n cardPanel1Layout.setVerticalGroup(\n cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, cardPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(rdoCardPayment)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 5, Short.MAX_VALUE)\n .addGroup(cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel18)\n .addComponent(txtCardAmount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel19)\n .addComponent(cmboCardBank, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(cardPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel20)\n .addComponent(txtCardNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34))\n );\n\n chequePanel.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Cheque Payment\"));\n\n rdoChequePayment.setText(\"Cheque Payment\");\n rdoChequePayment.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rdoChequePaymentActionPerformed(evt);\n }\n });\n\n jLabel15.setText(\" Amount :\");\n\n jLabel16.setText(\"Bank :\");\n\n jLabel17.setText(\" Cheque No :\");\n\n txtChequeAmount.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n txtChequeAmountKeyReleased(evt);\n }\n });\n\n javax.swing.GroupLayout chequePanelLayout = new javax.swing.GroupLayout(chequePanel);\n chequePanel.setLayout(chequePanelLayout);\n chequePanelLayout.setHorizontalGroup(\n chequePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(chequePanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(chequePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(chequePanelLayout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addGroup(chequePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel16, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel15, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(chequePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(cmboChequeBank, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtChequeAmount, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtChequeNo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(43, 43, 43))\n .addGroup(chequePanelLayout.createSequentialGroup()\n .addComponent(rdoChequePayment, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(212, 212, 212))))\n );\n chequePanelLayout.setVerticalGroup(\n chequePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, chequePanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(rdoChequePayment)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 5, Short.MAX_VALUE)\n .addGroup(chequePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel15)\n .addComponent(txtChequeAmount, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(chequePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel16)\n .addComponent(cmboChequeBank, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(chequePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel17)\n .addComponent(txtChequeNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(34, 34, 34))\n );\n\n jButton2.setText(\"Refresh\");\n\n jButton1.setText(\"Save \");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n rdoPrintBill.setText(\"Print Bill\");\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 .addComponent(cardPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(chequePanel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(4, 4, 4))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(rdoPrintBill)\n .addGap(18, 18, 18)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jPanel8, 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.TRAILING)\n .addComponent(cardPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(chequePanel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(rdoPrintBill)\n .addComponent(jButton2))\n .addContainerGap(28, Short.MAX_VALUE))\n );\n\n pack();\n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"private void buildAmountPanel1() // buildAmountPanel1 method start\n\t\t{\n\t\t\t// creating panel objects\n\t\t\tamountLabel1 = new JLabel(\"Amount: $\");\n\t\t\tamountField1 = new JTextField(\"0.00\", 10);\n\t\t\tamountField1.setEditable(false);\n\t\t\t\n\t\t\t// adding objects to panel\n\t\t\tamountPanel1.add(amountLabel1);\n\t\t\tamountPanel1.add(amountField1);\n\t\t}",
"@SuppressWarnings(\"unchecked\")\r\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\"> \r\n private void initComponents() {\r\n\r\n jPanel1 = new javax.swing.JPanel();\r\n jLabel1 = new javax.swing.JLabel();\r\n jLabel2 = new javax.swing.JLabel();\r\n jComboBox1 = new javax.swing.JComboBox<>();\r\n jLabel3 = new javax.swing.JLabel();\r\n jTextField1 = new javax.swing.JTextField();\r\n jButton1 = new javax.swing.JButton();\r\n jPanel2 = new javax.swing.JPanel();\r\n jLabel4 = new javax.swing.JLabel();\r\n jTextField2 = new javax.swing.JTextField();\r\n jTextField3 = new javax.swing.JTextField();\r\n jButton2 = new javax.swing.JButton();\r\n jButton3 = new javax.swing.JButton();\r\n jTextField4 = new javax.swing.JTextField();\r\n jButton4 = new javax.swing.JButton();\r\n jTextField5 = new javax.swing.JTextField();\r\n jLabel7 = new javax.swing.JLabel();\r\n jPanel3 = new javax.swing.JPanel();\r\n jLabel5 = new javax.swing.JLabel();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n jTextPane1 = new javax.swing.JTextPane();\r\n\r\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\r\n\r\n jLabel1.setText(\"Create New Account\");\r\n\r\n jLabel2.setText(\"Select Account Type\");\r\n\r\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Savings account\", \"checking account\" }));\r\n jComboBox1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jComboBox1MouseClicked(evt);\r\n }\r\n });\r\n jComboBox1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jComboBox1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel3.setText(\"initial deposit\");\r\n\r\n jButton1.setText(\"Create\");\r\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton1MouseClicked(evt);\r\n }\r\n });\r\n jButton1.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jButton1ActionPerformed(evt);\r\n }\r\n });\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addGap(53, 53, 53)\r\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addComponent(jComboBox1, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\r\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)))))\r\n .addContainerGap(50, Short.MAX_VALUE))\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel1)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel2)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jLabel3)\r\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGap(18, 18, 18)\r\n .addComponent(jButton1)\r\n .addContainerGap(40, Short.MAX_VALUE))\r\n );\r\n\r\n jLabel4.setText(\"Access Existing Account\");\r\n\r\n jButton2.setText(\"Select Acc\");\r\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton2MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton3.setText(\"Deposit\");\r\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton3MouseClicked(evt);\r\n }\r\n });\r\n\r\n jButton4.setText(\"Withdraw\");\r\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\r\n public void mouseClicked(java.awt.event.MouseEvent evt) {\r\n jButton4MouseClicked(evt);\r\n }\r\n });\r\n\r\n jTextField5.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent evt) {\r\n jTextField5ActionPerformed(evt);\r\n }\r\n });\r\n\r\n jLabel7.setText(\"Balance\");\r\n\r\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\r\n jPanel2.setLayout(jPanel2Layout);\r\n jPanel2Layout.setHorizontalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGap(42, 42, 42)\r\n .addComponent(jLabel4))\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addGap(19, 19, 19)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jTextField2)\r\n .addComponent(jTextField3)\r\n .addComponent(jTextField4)\r\n .addComponent(jLabel7, javax.swing.GroupLayout.DEFAULT_SIZE, 72, Short.MAX_VALUE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton2)\r\n .addComponent(jButton4)\r\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE))))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n jPanel2Layout.setVerticalGroup(\r\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel2Layout.createSequentialGroup()\r\n .addComponent(jLabel4)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton2))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton3))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jButton4))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addComponent(jLabel7))\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n jLabel5.setText(\"Account List\");\r\n\r\n jTextPane1.setText(\"Savings account 1: balance = $100 Interest Checking account 6: balance = $520 Regular checking account 9: balance = $199 Interest checking account 3: balance = $ 123\");\r\n jScrollPane1.setViewportView(jTextPane1);\r\n\r\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\r\n jPanel3.setLayout(jPanel3Layout);\r\n jPanel3Layout.setHorizontalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\r\n .addGap(0, 0, Short.MAX_VALUE)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 218, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGap(73, 73, 73))\r\n );\r\n jPanel3Layout.setVerticalGroup(\r\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel3Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(jLabel5)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n );\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\r\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n pack();\r\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public POSLogin(JFrame currentFrame, Store store) {\n\t\t\n\t\t\n\t\tJLabel label_1 = new JLabel(\"\");\n\t\tlabel_1.setBounds(113, 42, 286, 16);\n\t\tadd(label_1);\n\t\tlabel_1.setForeground(Color.RED);;\n\t\tsetLayout(null);\n\t\t\n\t\t\n\t\t\n\t\tJLabel lblLogin = new JLabel(\"Login\");\n\t\tlblLogin.setBounds(154, 13, 56, 16);\n\t\tadd(lblLogin);\n\t\t//Cashier comboBox\n\t\t//JComboBox comboBox = new JComboBox();\n\t\tComboBoxModel = new DefaultComboBoxModel<Cashier>();\n\t\tfor(Cashier cashier:store.getCashiers().values())\n\t\t ComboBoxModel.addElement(cashier);\n\t\tJComboBox<Cashier> comboBox = new JComboBox<Cashier>(ComboBoxModel);\n\t\tcomboBox.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tcomboBox.setBounds(113, 73, 90, 22);\n\t\tadd(comboBox);\n\t\t\n\t\tJLabel lblCashier = new JLabel(\"Cashier Number:\");\n\t\tlblCashier.setBounds(27, 76, 56, 16);\n\t\tadd(lblCashier);\n\t\t//Register comboBox\n\t\tJLabel lblRegister = new JLabel(\"Register Number:\");\n\t\tlblRegister.setBounds(27, 127, 56, 16);\n\t\tadd(lblRegister);\n\t\t\n\t\t//JComboBox comboBox_1 = new JComboBox();\n\t\tComboBoxModel_1 = new DefaultComboBoxModel<Register>();\n\t\tfor(Register register:store.getRegisters().values())\n\t\t ComboBoxModel_1.addElement(register);\n\t\tJComboBox<Register> comboBox_1 = new JComboBox<Register>(ComboBoxModel_1);\n\t\tcomboBox_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tcomboBox_1.setBounds(113, 124, 90, 22);\n\t\tadd(comboBox_1);\n\t\t//Starting Cash \n\t\tJLabel lblStartingCash = new JLabel(\"Starting Cash:\");\n\t\tlblStartingCash.setBounds(27, 176, 110, 16);\n\t\tadd(lblStartingCash);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(124, 173, 116, 22);\n\t\tadd(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tJLabel lblPassword = new JLabel(\"Password:\");\n\t\tlblPassword.setBounds(27, 215, 76, 16);\n\t\tadd(lblPassword);\n\t\t\n\t\tpasswordField = new JPasswordField();\n\t\tpasswordField.setBounds(134, 212, 106, 22);\n\t \tadd(passwordField);\n\t\tCashier cashier1 = (Cashier)comboBox.getSelectedItem();\n\t\tJButton btnLogin = new JButton(\"Login\");\n\t\tbtnLogin.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif(cashier1.isAuthorized(passwordField.getText()))\n\t\t\t\t{\n\t\t\t\t\tlabel_1.setText(\"\");\n\t\t\t\t\t\n\t\t\t\t\tcurrentFrame.getContentPane().removeAll();\n\t\t\t\t\tCashier cashier=(Cashier)comboBox.getSelectedItem();\n\t\t\t\t\tRegister register=(Register)comboBox_1.getSelectedItem();\n\t\t\t\t\tif(!textField.getText().trim().isEmpty())\n\t\t\t\t\t{\n\t\t\t\t\t\tCashDrawer cashDrawer=new CashDrawer(new BigDecimal(textField.getText()),1);\n\t\t\t\t\t register.setCashDrawer(cashDrawer);\n\t\t\t\t\t}\n\t\t\t\t\tSession session = new Session(cashier,register);\n\t\t\t\t\tstore.addSession(session);\n\t\t\t\t\tcashier.addSession(session);\n\t\t\t\t\tcurrentFrame.getContentPane().add(new POSSale(currentFrame,store, new Sale(), session));\n\t\t\t\t\tcurrentFrame.getContentPane().revalidate();\n\t\t\t\t}\n\t\t\t\telse if(!cashier1.isAuthorized(passwordField.getText()))\n\t\t\t\t\tlabel_1.setText(\"Error! Incorrect Login info!\");\n\t\t\t\telse if((textField.getText()==null))\n\t\t\t\t\t label_1.setText(\"Error! Enter Starting Cash!\");\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnLogin.setBounds(40, 262, 97, 25);\n\t\tadd(btnLogin);\n\t\t\n\t\tJButton btnCancel = new JButton(\"Cancel\");\n\t\tbtnCancel.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcurrentFrame.getContentPane().removeAll();\n\t\t\t\tcurrentFrame.getContentPane().add(new POSHomePanel(store));\n\t\t\t\tcurrentFrame.getContentPane().revalidate();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setBounds(265, 262, 97, 25);\n\t\tadd(btnCancel);\n\t\t\n\t\t\n\n\t}",
"private void btnNewActionPerformed(java.awt.event.ActionEvent evt) {\n\n initPanel();\n }",
"public Deposit_WithdrawPanel() {\n initComponents();\n }",
"public BankPanel() {\r\n\t super();\r\n\t}",
"public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}",
"private void buildAmountPanel1() // buildAmountPanel1 method start\n\t\t{\n\t\t\t// creating panel objects\n\t\t\tamountLabel1 = new JLabel(\"Amount: $\");\n\t\t\tamountField1 = new JTextField(\"0.00\", 10);\n\t\t\tamountField1.setEditable(false);\n\n\t\t\t// adding objects to panel\n\t\t\tamountPanel1.add(amountLabel1);\n\t\t\tamountPanel1.add(amountField1);\n\t\t}",
"public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Title = new javax.swing.JLabel();\n NAME = new javax.swing.JLabel();\n txt_name = new javax.swing.JTextField();\n PROVIDER = new javax.swing.JLabel();\n ComboBox_provider = new javax.swing.JComboBox<>();\n CATEGORY = new javax.swing.JLabel();\n ComboBox_category = new javax.swing.JComboBox<>();\n Trademark = new javax.swing.JLabel();\n ComboBox_trademark = new javax.swing.JComboBox<>();\n COLOR = new javax.swing.JLabel();\n ComboBox_color = new javax.swing.JComboBox<>();\n SIZE = new javax.swing.JLabel();\n ComboBox_size = new javax.swing.JComboBox<>();\n MATERIAL = new javax.swing.JLabel();\n ComboBox_material = new javax.swing.JComboBox<>();\n PRICE = new javax.swing.JLabel();\n txt_price = new javax.swing.JTextField();\n SAVE = new javax.swing.JButton();\n CANCEL = new javax.swing.JButton();\n Background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Title.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n Title.setForeground(new java.awt.Color(255, 255, 255));\n Title.setText(\"NEW PRODUCT\");\n getContentPane().add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 33, -1, -1));\n\n NAME.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NAME.setForeground(new java.awt.Color(255, 255, 255));\n NAME.setText(\"Name\");\n getContentPane().add(NAME, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 70, 30));\n\n txt_name.setBackground(new java.awt.Color(51, 51, 51));\n txt_name.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(txt_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 100, 30));\n\n PROVIDER.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PROVIDER.setForeground(new java.awt.Color(255, 255, 255));\n PROVIDER.setText(\"Provider\");\n getContentPane().add(PROVIDER, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 70, 30));\n\n ComboBox_provider.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_provider.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_provider.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_provider, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 200, 100, 30));\n\n CATEGORY.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n CATEGORY.setForeground(new java.awt.Color(255, 255, 255));\n CATEGORY.setText(\"Category\");\n getContentPane().add(CATEGORY, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 70, 30));\n\n ComboBox_category.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_category.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_category, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 100, 30));\n\n Trademark.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n Trademark.setForeground(new java.awt.Color(255, 255, 255));\n Trademark.setText(\"Trademark\");\n getContentPane().add(Trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 70, 30));\n\n ComboBox_trademark.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_trademark.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_trademark.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n ComboBox_trademark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBox_trademarkActionPerformed(evt);\n }\n });\n getContentPane().add(ComboBox_trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 300, 100, 30));\n\n COLOR.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n COLOR.setForeground(new java.awt.Color(255, 255, 255));\n COLOR.setText(\"Color\");\n getContentPane().add(COLOR, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 70, 30));\n\n ComboBox_color.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_color.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_color.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_color, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 150, 100, 30));\n\n SIZE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n SIZE.setForeground(new java.awt.Color(255, 255, 255));\n SIZE.setText(\"Size\");\n getContentPane().add(SIZE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 70, 30));\n\n ComboBox_size.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_size.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_size, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 200, 100, 30));\n\n MATERIAL.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n MATERIAL.setForeground(new java.awt.Color(255, 255, 255));\n MATERIAL.setText(\"Material\");\n getContentPane().add(MATERIAL, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 250, 70, 30));\n\n ComboBox_material.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_material.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_material.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_material, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 100, 30));\n\n PRICE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PRICE.setForeground(new java.awt.Color(255, 255, 255));\n PRICE.setText(\"Price\");\n getContentPane().add(PRICE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 300, 70, 30));\n\n txt_price.setBackground(new java.awt.Color(51, 51, 51));\n txt_price.setForeground(new java.awt.Color(255, 255, 255));\n txt_price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_priceActionPerformed(evt);\n }\n });\n getContentPane().add(txt_price, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, 100, 30));\n\n SAVE.setBackground(new java.awt.Color(25, 25, 25));\n SAVE.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-A.png\"))); // NOI18N\n SAVE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n SAVE.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-B.png\"))); // NOI18N\n SAVE.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar.png\"))); // NOI18N\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 480, 50, 50));\n\n CANCEL.setBackground(new java.awt.Color(25, 25, 25));\n CANCEL.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-A.png\"))); // NOI18N\n CANCEL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n CANCEL.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-B.png\"))); // NOI18N\n CANCEL.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no.png\"))); // NOI18N\n CANCEL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CANCELActionPerformed(evt);\n }\n });\n getContentPane().add(CANCEL, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 480, 50, 50));\n\n Background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fondo_windows2.jpg\"))); // NOI18N\n getContentPane().add(Background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Combo box editabel\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //2. kreirati kontrole i pobacati kako nam kaže neki manager LayoutManager\n JComponent comboBoxPanel = new ComboBoxPanel2();\n comboBoxPanel.setOpaque(true);\n frame.setContentPane(comboBoxPanel);\n\n //3. prikazati prozor\n frame.pack();\n frame.setVisible(true);\n }",
"public void createCheckoutView() {\n JPanel creditCartJPanel = new JPanel();\n creditCartJPanel.setBorder(new LineBorder(Color.RED));\n creditCardView = new CreditCardView(creditCartJPanel);\n\n getMainPanel().setLayout(new GridLayout(1, 2, 10, 10));\n int rows = (int) (myShoppingCart.getSize() + 2 - 1) / 2;\n shoppingCartPanel = new JPanel(new GridLayout(rows, 2, 10, 10));\n\n for (int i = 0; i < myShoppingCart.getSize(); i++) {\n //Creating a JPanel for a product\n cartProducts[i] = new JPanel(new BorderLayout(10, 10));\n //Product Information\n Product p = myShoppingCart.getProductAt(i);\n //Creating textArea with product information\n cartProductInfo[i] = new JTextArea(p.toString());\n cartProductInfo[i].setEditable(false);\n cartProductInfo[i].setOpaque(false);\n cartProductInfo[i].setBorder(new EmptyBorder(10, 10, 10, 10));\n //Adding Components to the JPanel\n cartProducts[i].add(cartProductInfo[i], BorderLayout.NORTH);\n cartProducts[i].setBorder(new LineBorder(Color.GRAY));\n //Add to shoppingCartPanel Panel\n shoppingCartPanel.add(cartProducts[i]);\n }//EOF for loop\n\n //Add scrollPanel to shoppingCart\n if (myShoppingCart.getSize() > 8) {\n createScrollPanel(shoppingCartPanel);\n //Adding to Main Panel\n getMainPanel().add(scrollPanel);\n getMainPanel().add(creditCartJPanel);\n } else {\n //Adding to Main Panel\n getMainPanel().add(shoppingCartPanel);\n getMainPanel().add(creditCartJPanel);\n }\n }",
"private JPanel withdrawMoney() {\n JPanel withdraw = new JPanel();\n currentMoneyLabel = new JLabel(String.format(\"<html>Current Available Money in Machine:<b>$%.2f</html>\", moneyInMachine));\n withdraw.add(currentMoneyLabel);\n withdraw.add(Box.createHorizontalStrut(15));\n JButton withdrawButton = new JButton(\"withdraw funds\");\n withdrawButton.addActionListener(new withdrawMoneyListen());\n withdraw.add(withdrawButton);\n return withdraw;\n }",
"private void buildAddCus() {\n\t\t\n\t\t//clears the Checkout JFrame components\n\t\tgetContentPane().removeAll();\n\t\t\n\t\t//creates panel objects for Checkout window\n\t\tpanel1 = new JPanel();\n\t\tpanel2 = new JPanel();\n\t\tpanel3 = new JPanel();\n\t\tpanel4 = new JPanel();\n\t\tpanel5 = new JPanel();\n\t\tpanel6 = new JPanel();\n\t\tpanel7 = new JPanel();\n\t\tpanel8 = new JPanel();\n\t\tpanel9 = new JPanel();\n\t\tpanel10 = new JPanel();\n\t\tpanel11 = new JPanel();\n\t\tpanel12 = new JPanel();\n\t\t\n\t\t//creates main panel object for Checkout window\n\t\tmainPanel = new JPanel();\n\t\t\n\t\t//button to clear error labels and text fields\n\t\tclearButton = new JButton(\"Clear\");\n\t\t\n\t\t//button to add New Customer details to the PreferredCustomer array\n\t\taddCusButton = new JButton(\"Add Customer\");\n\t\t\n\t\t//button to open the Checkout window\n\t\treturnButton = new JButton(\"Return to Checkout\");\n\t\t\n\t\t//radio buttons to choose customer's mail listing preference\n\t\tradio1 = new JRadioButton(\"Yes\", true);\n\t\tradio2 = new JRadioButton(\"No\");\n\t\t\n\t\t//creates mail list button group and adds the buttons to it\n\t\tmailListRadioGroup = new ButtonGroup();\n\t\tmailListRadioGroup.add(radio1);\n\t\tmailListRadioGroup.add(radio2);\n\t\t\n\t\t//creates descriptive labels for Checkout window\n\t\tfirstNameLabel = \tnew JLabel(\"First Name \");\n\t\tlastNameLabel = \tnew JLabel(\"Last Name \");\n\t\taddressLabel = \t\tnew JLabel(\"Street Address \");\n\t\tcityLabel =\t\t\tnew JLabel(\"City \");\n\t\tstateLabel =\t\tnew JLabel(\"State (2 letters) \");\n\t\tzipLabel =\t\t\tnew JLabel(\"Zip \");\n\t\tphoneLabel =\t\tnew JLabel(\"Phone (10 digit)\");\n\t\tmoneySpentLabel =\tnew JLabel(\"Money Spent \");\n\t\tmailListLabel =\t\tnew JLabel(\"Mail List \");\n\t\t\n\t\t//creates error labels for Checkout window\n\t\tfirstNameLabelError = \tnew JLabel(\"\");\n\t\tlastNameLabelError = \tnew JLabel(\"\");\n\t\taddressLabelError = \tnew JLabel(\"\");\n\t\tcityLabelError = \t\tnew JLabel(\"\");\n\t\tstateLabelError = \t\tnew JLabel(\"\");\n\t\tzipLabelError = \t\tnew JLabel(\"\");\n\t\tphoneLabelError = \t\tnew JLabel(\"\");\n\t\tmoneySpentLabelError = \tnew JLabel(\"\");\n\t\taddCustomerWindowError = new JLabel(\"\");\n\t\t\n\t\t//sets color for error labels\n\t\tfirstNameLabelError.setForeground(Color.RED);\n\t\tlastNameLabelError.setForeground(Color.RED);\n\t\taddressLabelError.setForeground(Color.RED);\n\t\tcityLabelError.setForeground(Color.RED);\n\t\tstateLabelError.setForeground(Color.RED);\n\t\tzipLabelError.setForeground(Color.RED);\n\t\tphoneLabelError.setForeground(Color.RED);\n\t\tmoneySpentLabelError.setForeground(Color.RED);\n\t\taddCustomerWindowError.setForeground(Color.RED);\n\t\t\n\t\t//creates text fields for New Customer window\n\t\tfirstNameField = \tnew JTextField(10);\n\t\tlastNameField = \tnew JTextField(10);\n\t\taddressField =\t\tnew JTextField(10);\n\t\tcityField =\t\t\tnew JTextField(10);\n\t\tstateField =\t\tnew JTextField(10);\n\t\tzipField = \t\t\tnew JTextField(10);\n\t\tphoneField =\t\tnew JTextField(10);\n\t\tmoneySpentField = \tnew JTextField(10);\n\t\t\n\t\t//change ComboBox component size\n\t\tnameBox.setPreferredSize(new Dimension(115, 25));\n\t\t\n\t\t//creates listeners for buttons\n\t\tclearButton.addActionListener(new clearButtonListern());\n\t\taddCusButton.addActionListener(new addCusButtonListener());\n\t\treturnButton.addActionListener(new returnButtonListener());\n\t\t\n\t\t//adds components to the main panel set\n\t\tpanel1.add(firstNameLabel);\n\t\tpanel1.add(firstNameLabelError);\n\t\tpanel1.add(firstNameField);\n\t\t\n\t\tpanel2.add(lastNameLabel);\n\t\tpanel2.add(lastNameLabelError);\n\t\tpanel2.add(lastNameField);\n\t\t\n\t\tpanel3.add(addressLabel);\n\t\tpanel3.add(addressLabelError);\n\t\tpanel3.add(addressField);\n\t\t\n\t\tpanel4.add(cityLabel);\n\t\tpanel4.add(cityLabelError);\n\t\tpanel4.add(cityField);\n\t\t\n\t\tpanel5.add(stateLabel);\n\t\tpanel5.add(stateLabelError);\n\t\tpanel5.add(stateField);\n\t\t\n\t\tpanel6.add(zipLabel);\n\t\tpanel6.add(zipLabelError);\n\t\tpanel6.add(zipField);\n\t\t\n\t\tpanel7.add(phoneLabel);\n\t\tpanel7.add(phoneLabelError);\n\t\tpanel7.add(phoneField);\n\t\t\n\t\tpanel8.add(moneySpentLabel);\n\t\tpanel8.add(moneySpentLabelError);\n\t\tpanel8.add(moneySpentField);\n\t\t\n\t\tpanel9.add(mailListLabel);\n\t\tpanel9.add(radio1);\n\t\tpanel9.add(radio2);\n\t\tpanel9.setPreferredSize(new Dimension(280,30));\n\t\t\n\t\t//adds Add Customer Error Text component to middles panel\n\t\tpanel10.add(addCustomerWindowError);\n\t\t\n\t\t//adds Clear and Add Customer button components to lower panel\n\t\tpanel11.add(clearButton);\n\t\tpanel11.add(addCusButton);\n\n\t\t//adds Return to Checkout button component to lowest panel, sets its size\n\t\tpanel12.add(returnButton);\n\t\tpanel12.setPreferredSize(new Dimension(280,40));\n\t\t\n\t\t//adds the main panel set to the main panel\n\t\tmainPanel.add(panel1);\n\t\tmainPanel.add(panel2);\n\t\tmainPanel.add(panel3);\n\t\tmainPanel.add(panel4);\n\t\tmainPanel.add(panel5);\n\t\tmainPanel.add(panel6);\n\t\tmainPanel.add(panel7);\n\t\tmainPanel.add(panel8);\n\t\tmainPanel.add(panel9);\n\t\tmainPanel.add(panel10);\n\t\t\n\t\t//sets the main panel's flow characteristics\n\t\tmainPanel.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\tmainPanel.setPreferredSize(new Dimension(250, 350));\n\t\t\n\t\t//adds the main panel to the top of the New Customer JFrame\n\t\tadd(mainPanel);\n\t\t\n\t\t//adds the button panels to the bottom of the New Customer JFrame\n\t\tadd(panel11);\n\t\tadd(panel12);\n\t\t\n\t\t//redisplays the New Customer JFrame over the Checkout JFrame\n\t\trevalidate();\n\t\trepaint();\n\t}",
"public BillPopup() {\n initComponents();\n }",
"private void initComponents() {\n panel1 = new JPanel();\n jtpPflegeakte = new JTabbedPane();\n\n //======== this ========\n setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n\n //======== panel1 ========\n {\n panel1.setLayout(new FormLayout(\n \"default:grow\",\n \"default:grow\"));\n\n //======== jtpPflegeakte ========\n {\n jtpPflegeakte.setTabPlacement(SwingConstants.BOTTOM);\n jtpPflegeakte.addChangeListener(e -> jtpPflegeakteStateChanged(e));\n }\n panel1.add(jtpPflegeakte, CC.xy(1, 1, CC.FILL, CC.FILL));\n }\n add(panel1);\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }",
"public frmDashBoard() {\n initComponents();\n }",
"private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}",
"@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}",
"private void butNew_Click(Object sender, System.EventArgs e) throws Exception {\n FormProcCodeNew FormPCN = new FormProcCodeNew();\n FormPCN.ShowDialog();\n if (FormPCN.Changed)\n {\n changed = true;\n ProcedureCodes.refreshCache();\n fillGrid();\n }\n \n }",
"protected void addStock(ActionEvent ae) {\n\t\tStockFrm sca=new StockFrm(); \n\t\tsca.setVisible(true);\n\t\tdesktopPane.add(sca);\n\t}",
"public JPanelCreateClient() {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.title = new CustomLabel(ConstantView.TITLE_CREATE_CLIENT, null, Color.decode(\"#2E5569\"));\r\n\t\tthis.okButton = new JButton(\"REGISTRAR CLIENTE\");\r\n\t\tthis.returnButton = new JButton(ConstantView.BUTTON_RETURN_SIGNIN);\r\n\t\tthis.jPanelFormClient = new JPanelFormClient();\r\n\t\tControlClient.getInstance().setjPanelCreateClient(this);\r\n\t\tthis.init();\r\n\t}",
"public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }",
"public CreateAccout() {\n initComponents();\n showCT();\n ProcessCtr(true);\n }",
"public CadastroProdutoNew() {\n initComponents();\n }",
"public AccountDepositUI() {\n initComponents();\n }",
"private void buildAmountPanel2() // buildAmountPanel2 method start\n\t\t{\n\t\t\t// creating panel objects\n\t\t\tamountLabel2 = new JLabel(\"Amount: $\");\n\t\t\tamountField2 = new JTextField(\"0.00\", 10);\n\t\t\tamountField2.setEditable(false);\n\n\t\t\t// adding objects to panel\n\t\t\tamountPanel2.add(amountLabel2);\n\t\t\tamountPanel2.add(amountField2);\n\t\t}",
"private void buildAmountPanel2() // buildAmountPanel2 method start\n\t\t{\n\t\t\t// creating panel objects\n\t\t\tamountLabel2 = new JLabel(\"Amount: $\");\n\t\t\tamountField2 = new JTextField(\"0.00\", 10);\n\t\t\tamountField2.setEditable(false);\n\n\t\t\t// adding objects to panel\n\t\t\tamountPanel2.add(amountLabel2);\n\t\t\tamountPanel2.add(amountField2);\n\t\t}",
"private void initComponents() {\n\n jPanel4 = new javax.swing.JPanel();\n m_jLblTotalEuros1 = new javax.swing.JLabel();\n m_jTotalEuros = new javax.swing.JLabel();\n jPanel6 = new javax.swing.JPanel();\n m_jLblRemainingEuros = new javax.swing.JLabel();\n m_jRemaininglEuros = new javax.swing.JLabel();\n m_jButtonAdd = new javax.swing.JButton();\n m_jButtonRemove = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n m_jTabPayment = new javax.swing.JTabbedPane();\n jPanel5 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n m_jButtonPrint = new javax.swing.JToggleButton();\n jPanel1 = new javax.swing.JPanel();\n m_jButtonOK = new javax.swing.JButton();\n m_jButtonCancel = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(AppLocal.getIntString(\"payment.title\")); // NOI18N\n setResizable(false);\n\n m_jLblTotalEuros1.setText(AppLocal.getIntString(\"label.totalcash\")); // NOI18N\n jPanel4.add(m_jLblTotalEuros1);\n\n m_jTotalEuros.setBackground(java.awt.Color.white);\n m_jTotalEuros.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n m_jTotalEuros.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n m_jTotalEuros.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createLineBorder(javax.swing.UIManager.getDefaults().getColor(\"Button.darkShadow\")), javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));\n m_jTotalEuros.setOpaque(true);\n m_jTotalEuros.setPreferredSize(new java.awt.Dimension(125, 25));\n m_jTotalEuros.setRequestFocusEnabled(false);\n jPanel4.add(m_jTotalEuros);\n\n jPanel6.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.CENTER, 5, 0));\n\n m_jLblRemainingEuros.setText(AppLocal.getIntString(\"label.remainingcash\")); // NOI18N\n jPanel6.add(m_jLblRemainingEuros);\n\n m_jRemaininglEuros.setBackground(java.awt.Color.white);\n m_jRemaininglEuros.setFont(new java.awt.Font(\"Dialog\", 1, 14)); // NOI18N\n m_jRemaininglEuros.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n m_jRemaininglEuros.setBorder(javax.swing.BorderFactory.createCompoundBorder(javax.swing.BorderFactory.createLineBorder(javax.swing.UIManager.getDefaults().getColor(\"Button.darkShadow\")), javax.swing.BorderFactory.createEmptyBorder(1, 4, 1, 4)));\n m_jRemaininglEuros.setOpaque(true);\n m_jRemaininglEuros.setPreferredSize(new java.awt.Dimension(125, 25));\n m_jRemaininglEuros.setRequestFocusEnabled(false);\n jPanel6.add(m_jRemaininglEuros);\n\n m_jButtonAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/openbravo/images/btnplus.png\"))); // NOI18N\n m_jButtonAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n m_jButtonAddActionPerformed(evt);\n }\n });\n jPanel6.add(m_jButtonAdd);\n\n m_jButtonRemove.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/openbravo/images/btnminus.png\"))); // NOI18N\n m_jButtonRemove.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n m_jButtonRemoveActionPerformed(evt);\n }\n });\n jPanel6.add(m_jButtonRemove);\n\n jPanel4.add(jPanel6);\n\n getContentPane().add(jPanel4, java.awt.BorderLayout.NORTH);\n\n jPanel3.setLayout(new java.awt.BorderLayout());\n\n m_jTabPayment.setBorder(javax.swing.BorderFactory.createEmptyBorder(5, 5, 5, 5));\n m_jTabPayment.setTabPlacement(javax.swing.JTabbedPane.LEFT);\n m_jTabPayment.setFocusable(false);\n m_jTabPayment.setRequestFocusEnabled(false);\n m_jTabPayment.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n m_jTabPaymentStateChanged(evt);\n }\n });\n jPanel3.add(m_jTabPayment, java.awt.BorderLayout.CENTER);\n\n getContentPane().add(jPanel3, java.awt.BorderLayout.CENTER);\n\n jPanel5.setLayout(new java.awt.BorderLayout());\n\n m_jButtonPrint.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/openbravo/images/fileprint.png\"))); // NOI18N\n m_jButtonPrint.setSelected(true);\n m_jButtonPrint.setFocusPainted(false);\n m_jButtonPrint.setFocusable(false);\n m_jButtonPrint.setMargin(new java.awt.Insets(8, 16, 8, 16));\n m_jButtonPrint.setRequestFocusEnabled(false);\n jPanel2.add(m_jButtonPrint);\n jPanel2.add(jPanel1);\n\n m_jButtonOK.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/openbravo/images/button_ok.png\"))); // NOI18N\n m_jButtonOK.setText(AppLocal.getIntString(\"Button.OK\")); // NOI18N\n m_jButtonOK.setFocusPainted(false);\n m_jButtonOK.setFocusable(false);\n m_jButtonOK.setMargin(new java.awt.Insets(8, 16, 8, 16));\n m_jButtonOK.setRequestFocusEnabled(false);\n m_jButtonOK.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n m_jButtonOKActionPerformed(evt);\n }\n });\n jPanel2.add(m_jButtonOK);\n\n m_jButtonCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/com/openbravo/images/button_cancel.png\"))); // NOI18N\n m_jButtonCancel.setText(AppLocal.getIntString(\"Button.Cancel\")); // NOI18N\n m_jButtonCancel.setFocusPainted(false);\n m_jButtonCancel.setFocusable(false);\n m_jButtonCancel.setMargin(new java.awt.Insets(8, 16, 8, 16));\n m_jButtonCancel.setRequestFocusEnabled(false);\n m_jButtonCancel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n m_jButtonCancelActionPerformed(evt);\n }\n });\n jPanel2.add(m_jButtonCancel);\n\n jPanel5.add(jPanel2, java.awt.BorderLayout.LINE_END);\n\n getContentPane().add(jPanel5, java.awt.BorderLayout.SOUTH);\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-672)/2, (screenSize.height-497)/2, 672, 497);\n }",
"private void initComponents() {\n createUIComponents();\n\n panel6 = new JPanel();\n scrollPane1 = new JScrollPane();\n resumeList = new JList();\n swapPanel = new JPanel();\n payPartialCard = new JPanel();\n panel1 = new JPanel();\n displayPartial = new JTextField();\n partialPayment = new JTextField();\n payTotalCard = new JPanel();\n panel2 = new JPanel();\n displayTotal = new JTextField();\n totalPayment = new JTextField();\n\n //======== this ========\n setName(\"this\");\n\n //======== panel6 ========\n {\n panel6.setName(\"panel6\");\n\n //======== scrollPane1 ========\n {\n scrollPane1.setName(\"scrollPane1\");\n\n //---- resumeList ----\n resumeList.setName(\"resumeList\");\n scrollPane1.setViewportView(resumeList);\n }\n\n PanelBuilder panel6Builder = new PanelBuilder(new FormLayout(\n \"[75dlu,default]:grow\",\n \"default:grow, $lgap, [35dlu,default]:grow, $lgap, [35dlu,default]\"), panel6);\n\n panel6Builder.add(scrollPane1, CC.xywh(1, 1, 1, 5, CC.FILL, CC.FILL));\n }\n\n //======== swapPanel ========\n {\n swapPanel.setName(\"swapPanel\");\n swapPanel.setLayout(new CardLayout());\n\n //======== payPartialCard ========\n {\n payPartialCard.setBorder(null);\n payPartialCard.setName(\"payPartialCard\");\n\n //======== panel1 ========\n {\n panel1.setBorder(new TitledBorder(\"Paga acconto\"));\n panel1.setName(\"panel1\");\n\n //---- label5 ----\n label5.setText(\"Acconto\");\n label5.setName(\"label5\");\n\n //---- displayPartial ----\n displayPartial.setEditable(false);\n displayPartial.setName(\"displayPartial\");\n\n //---- label6 ----\n label6.setText(\"Pagamento\");\n label6.setName(\"label6\");\n\n //---- partialPayment ----\n partialPayment.setName(\"partialPayment\");\n\n PanelBuilder panel1Builder = new PanelBuilder(new FormLayout(\n \"[50dlu,default], $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,default], $lgap, fill:[35dlu,min]\"), panel1);\n\n panel1Builder.add(label5, CC.xy (1, 1));\n panel1Builder.add(displayPartial, CC.xywh(3, 1, 3, 1));\n panel1Builder.add(label6, CC.xy (1, 3));\n panel1Builder.add(partialPayment, CC.xywh(3, 3, 3, 1));\n }\n\n //---- payPartialButton ----\n payPartialButton.setText(\"Paga Acconto\");\n payPartialButton.setName(\"payPartialButton\");\n payPartialButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n payPartialButtonActionPerformed(e);\n }\n });\n\n PanelBuilder payPartialCardBuilder = new PanelBuilder(new FormLayout(\n \"[50dlu,default], $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,default], $lgap, default:grow, $lgap, fill:[35dlu,min]\"), payPartialCard);\n\n payPartialCardBuilder.add(panel1, CC.xywh(1, 1, 5, 1));\n payPartialCardBuilder.add(payPartialButton, CC.xy (5, 5));\n }\n swapPanel.add(payPartialCard, \"card1\");\n\n //======== payTotalCard ========\n {\n payTotalCard.setBorder(null);\n payTotalCard.setName(\"payTotalCard\");\n\n //======== panel2 ========\n {\n panel2.setBorder(new TitledBorder(\"Paga totale\"));\n panel2.setName(\"panel2\");\n\n //---- label7 ----\n label7.setText(\"Totale\");\n label7.setName(\"label7\");\n\n //---- displayTotal ----\n displayTotal.setEditable(false);\n displayTotal.setName(\"displayTotal\");\n\n //---- label8 ----\n label8.setText(\"Pagamento\");\n label8.setName(\"label8\");\n\n //---- totalPayment ----\n totalPayment.setName(\"totalPayment\");\n\n PanelBuilder panel2Builder = new PanelBuilder(new FormLayout(\n \"50dlu, $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,min], $lgap, fill:[35dlu,min]\"), panel2);\n\n panel2Builder.add(label7, CC.xy (1, 1));\n panel2Builder.add(displayTotal, CC.xywh(3, 1, 3, 1));\n panel2Builder.add(label8, CC.xy (1, 3));\n panel2Builder.add(totalPayment, CC.xywh(3, 3, 3, 1));\n }\n\n //---- payTotalButton ----\n payTotalButton.setText(\"Paga Totale\");\n payTotalButton.setName(\"payTotalButton\");\n payTotalButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n payTotalButtonActionPerformed(e);\n }\n });\n\n PanelBuilder payTotalCardBuilder = new PanelBuilder(new FormLayout(\n \"50dlu, $lcgap, [10dlu,default]:grow, $lcgap, [75dlu,default]\",\n \"fill:[35dlu,min], $lgap, default:grow, $lgap, [35dlu,default]\"), payTotalCard);\n\n payTotalCardBuilder.add(panel2, CC.xywh(1, 1, 5, 1));\n payTotalCardBuilder.add(payTotalButton, CC.xy (5, 5, CC.FILL, CC.FILL));\n }\n swapPanel.add(payTotalCard, \"card2\");\n }\n\n //---- button2 ----\n button2.setText(\"Indietro\");\n button2.setName(\"button2\");\n button2.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n indietroActionPerformed(e);\n }\n });\n\n PanelBuilder builder = new PanelBuilder(new FormLayout(\n \"$rgap, [75dlu,default], $lcgap, [150dlu,default]:grow, $lcgap, right:[72dlu,default,112dlu], $lcgap, [75dlu,default,75dlu], $rgap\",\n \"$rgap, 90dlu, $lgap, 90dlu:grow, $rgap, bottom:[35dlu,default], $rgap\"), this);\n\n builder.add(panel6, CC.xywh(2, 2, 3, 3, CC.FILL, CC.FILL));\n builder.add(swapPanel, CC.xywh(6, 2, 3, 5, CC.FILL, CC.FILL));\n builder.add(button2, CC.xy (2, 6, CC.DEFAULT, CC.FILL));\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }",
"public AddExpensesForm() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel_openDate = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel_User = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel_initial = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel_sold = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel_debited = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel_totalCash = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel_payments = new javax.swing.JLabel();\n jButton_closeCashBox = new javax.swing.JButton();\n jButton_history = new javax.swing.JButton();\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 0, 18)); // NOI18N\n jLabel1.setText(\"Caja\");\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setText(\"Apertura:\");\n\n jLabel_openDate.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel_openDate.setText(\"fecha\");\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel3.setText(\"Usuario:\");\n\n jLabel_User.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel_User.setText(\"usuario\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setText(\"Monto Inicial:\");\n\n jLabel_initial.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel_initial.setText(\"0\");\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setText(\"Vendido:\");\n\n jLabel_sold.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel_sold.setText(\"0\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel6.setText(\"A Cobrar:\");\n\n jLabel_debited.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel_debited.setText(\"0\");\n\n jLabel7.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel7.setText(\"$\");\n\n jLabel8.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel8.setText(\"$\");\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel9.setText(\"$\");\n\n jLabel10.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n jLabel10.setText(\"Total en Caja:\");\n\n jLabel11.setFont(new java.awt.Font(\"Tahoma\", 1, 16)); // NOI18N\n jLabel11.setText(\"$\");\n\n jLabel_totalCash.setFont(new java.awt.Font(\"Tahoma\", 1, 16)); // NOI18N\n jLabel_totalCash.setText(\"0\");\n\n jLabel12.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel12.setText(\"Deudas Cobradas:\");\n\n jLabel13.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel13.setText(\"$\");\n\n jLabel_payments.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel_payments.setText(\"0\");\n\n jButton_closeCashBox.setText(\"Cerrar Caja\");\n jButton_closeCashBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton_closeCashBoxActionPerformed(evt);\n }\n });\n\n jButton_history.setText(\"Historial de Cajas\");\n jButton_history.setActionCommand(\"Historial de Cajas\");\n jButton_history.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton_historyActionPerformed(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 .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton_history))\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel5)\n .addComponent(jLabel6)\n .addComponent(jLabel10)\n .addComponent(jLabel12))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel_openDate)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel_totalCash))\n .addComponent(jLabel_User)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel_initial))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel_sold))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel_debited))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel_payments)))\n .addGap(0, 203, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButton_closeCashBox)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jButton_history))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jLabel_openDate))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jLabel_User))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(jLabel_initial)\n .addComponent(jLabel7))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(jLabel_sold)\n .addComponent(jLabel8))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(jLabel_debited)\n .addComponent(jLabel9))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel_payments)\n .addComponent(jLabel13))\n .addComponent(jLabel12))\n .addGap(9, 9, 9)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel10)\n .addComponent(jLabel_totalCash)\n .addComponent(jLabel11))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)\n .addComponent(jButton_closeCashBox)\n .addContainerGap())\n );\n }",
"private void createFrame(){\n JPanel jPanelID = new JPanel();\n jPanelID.setLayout(new GridBagLayout());\n JLabel labelText = new JLabel(this.dialogName);\n labelText.setHorizontalAlignment(JLabel.CENTER);\n AddComponent.add(jPanelID,labelText, 0, 0, 2, 1);\n for (int field = 0; field < labelString.length; field++) {\n labelText = new JLabel(labelString[field]);\n AddComponent.add(jPanelID, labelText, 0, field + 1, 1, 1);\n AddComponent.add(jPanelID, fieldID.get(labelString[field]), 1, field + 1, 1, 1);\n }\n int offset = labelString.length + 1;\n labelText = new JLabel(DATE_OF_BIRTH);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, jDateChooser, 1, offset, 1, 1);\n offset++;\n labelText = new JLabel(GROUP);\n AddComponent.add(jPanelID, labelText, 0, offset, 1, 1);\n AddComponent.add(jPanelID, group, 1, offset, 1, 1);\n dialog.add(jPanelID, BorderLayout.NORTH);\n JButton okButton = new JButton(dialogName);\n okButton.addActionListener(actionEvent -> checkAndSave());\n dialog.add(okButton, BorderLayout.SOUTH);\n }",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public void openOrderBalanceDialog() {\n\t\torderBalanceDialogBox = new DialogBox(true);\n\t\torderBalanceDialogBox.setGlassEnabled(true);\n\t\torderBalanceDialogBox.setText(\"Rentabilidad Pedido\");\n\t\torderBalanceDialogBox.setSize(\"250px\", \"150px\");\n\n\t\tVerticalPanel vp = new VerticalPanel();\n\t\tvp.setSize(\"250px\", \"150px\");\n\t\torderBalanceDialogBox.setWidget(vp);\n\n\t\tFlowPanel orderPanel = new FlowPanel();\n\t\torderPanel.setWidth(\"250px\");\n\n\t\t// Obten info del filtro forzado\n\t\tBmFilter forceFilter = getUiParams().getUiProgramParams(getBmObject().getProgramCode()).getForceFilter();\n\n\t\tUiRequisitionOrderView uiRequisitionOrderView = new UiRequisitionOrderView(getUiParams(), orderPanel, forceFilter.getValue());\n\t\tuiRequisitionOrderView.show();\t\t\t\t\t\n\n\t\tHorizontalPanel buttonPanel = new HorizontalPanel();\n\t\tbuttonPanel.add(orderBalanceCloseDialogButton);\n\n\t\tvp.add(orderPanel);\n\t\tvp.add(buttonPanel);\n\n\t\torderBalanceDialogBox.center();\n\t\torderBalanceDialogBox.show();\n\t}",
"public AddNewJobPanel() {\n initComponents();\n\n DateTime now = new DateTime();\n initializeComboBoxes();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n dateTbox = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n branchTbox = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n debitTbox = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n creditTbox = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n amountTbox = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n narrationTbox = new javax.swing.JTextField();\n exitButton = new javax.swing.JButton();\n headButton = new javax.swing.JButton();\n\n setTitle(\"Transactions Data Entry\");\n\n jPanel1.setLayout(new java.awt.GridLayout(7, 2, 20, 20));\n\n jLabel1.setText(\"Date\");\n jPanel1.add(jLabel1);\n jPanel1.add(dateTbox);\n\n jLabel2.setText(\"Branch\");\n jPanel1.add(jLabel2);\n jPanel1.add(branchTbox);\n\n jLabel3.setText(\"Debit ( R )\");\n jPanel1.add(jLabel3);\n jPanel1.add(debitTbox);\n\n jLabel4.setText(\"Credit ( P )\");\n jPanel1.add(jLabel4);\n jPanel1.add(creditTbox);\n\n jLabel5.setText(\"Amount\");\n jPanel1.add(jLabel5);\n jPanel1.add(amountTbox);\n\n jLabel6.setText(\"Narration\");\n jPanel1.add(jLabel6);\n jPanel1.add(narrationTbox);\n\n exitButton.setText(\"Esc : Exit\");\n jPanel1.add(exitButton);\n\n headButton.setText(\"F10 : A/c Head\");\n jPanel1.add(headButton);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.CENTER);\n\n pack();\n }",
"public void createPartyPanel()\n {\n setPartyLabel(game.getPartyPane(), 0);\n //setPartyLabel(\"EMPTY\", 1);\n //setPartyLabel(\"EMPTY\", 2);\n //setPartyLabel(\"EMPTY\", 3);\n reloadPartyPanel();\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tMoneyManagement moneyManagement = new MoneyManagement();\n\t\t\t\tmoneyManagement.setModal(true);\n\t\t\t\tmoneyManagement.setVisible(true);\n\t\t\t}",
"public CentralAC_GUI(HVACGUI hvacForm) {\n\n //setting the content pane\n setContentPane(rootPanel);\n\n setPreferredSize(new Dimension(500, 500));\n pack();\n setVisible(true);\n //using the dispose on close to close the form\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n //setting the hvac form to false so its not the active form\n hvacForm.setEnabled(false);\n //calling the addToList method\n addToList();\n //making the hvac gui form active\n hvacForm.setEnabled(true);\n\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialogCards = new javax.swing.JDialog();\n jButton10 = new javax.swing.JButton();\n jButton11 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jList1 = new javax.swing.JList(ClassSale.allCards().toArray());\n jPanel1 = new javax.swing.JPanel();\n jPanel2 = new javax.swing.JPanel();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jButton4 = new javax.swing.JButton();\n jButton5 = new javax.swing.JButton();\n jButton6 = new javax.swing.JButton();\n jButton7 = new javax.swing.JButton();\n jButton8 = new javax.swing.JButton();\n jButton9 = new javax.swing.JButton();\n jButtonPagCartao = new javax.swing.JButton();\n jButton12 = new javax.swing.JButton();\n jButton50Reais = new javax.swing.JButton();\n jButton10Reais = new javax.swing.JButton();\n jButton20Reais = new javax.swing.JButton();\n jPanel3 = new javax.swing.JPanel();\n jButtonFinalizaCalculoPagameto = new javax.swing.JButton();\n jButtonLimpaCalculoPagamento = new javax.swing.JButton();\n jButtonSairCalculoPagamento = new javax.swing.JButton();\n jPanel4 = new javax.swing.JPanel();\n jTextValueTotalCoupon = new javax.swing.JTextField();\n jTextValueDiscontCoupon = new javax.swing.JTextField();\n jTextCash = new javax.swing.JTextField();\n jTextSmallCash = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n jList2 = new javax.swing.JList();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItemPaymentCardCredit = new javax.swing.JMenuItem();\n jMenuItemDiscount = new javax.swing.JMenuItem();\n jMenuIteExactCash = new javax.swing.JMenuItem();\n jMenuExit = new javax.swing.JMenuItem();\n\n jDialogCards.addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n jDialogCardsWindowActivated(evt);\n }\n public void windowClosed(java.awt.event.WindowEvent evt) {\n jDialogCardsWindowClosed(evt);\n }\n });\n\n jButton10.setText(\"OK [Enter]\");\n jButton10.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton10ActionPerformed(evt);\n }\n });\n\n jButton11.setText(\"Cancelar [Esc]\");\n jButton11.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton11ActionPerformed(evt);\n }\n });\n\n jList1.setToolTipText(\"\");\n jList1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jList1MouseClicked(evt);\n }\n });\n jList1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n jList1KeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(jList1);\n\n javax.swing.GroupLayout jDialogCardsLayout = new javax.swing.GroupLayout(jDialogCards.getContentPane());\n jDialogCards.getContentPane().setLayout(jDialogCardsLayout);\n jDialogCardsLayout.setHorizontalGroup(\n jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialogCardsLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addGroup(jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addGroup(jDialogCardsLayout.createSequentialGroup()\n .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(5, 5, 5))\n );\n jDialogCardsLayout.setVerticalGroup(\n jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialogCardsLayout.createSequentialGroup()\n .addGap(5, 5, 5)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 222, Short.MAX_VALUE)\n .addGap(5, 5, 5)\n .addGroup(jDialogCardsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton10, javax.swing.GroupLayout.DEFAULT_SIZE, 30, Short.MAX_VALUE)\n .addComponent(jButton11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(5, 5, 5))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n public void windowClosed(java.awt.event.WindowEvent evt) {\n formWindowClosed(evt);\n }\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Pagamento\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N\n\n jPanel2.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jButton1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton1.setForeground(new java.awt.Color(102, 102, 102));\n jButton1.setText(\"1\");\n jButton1.setName(\"1\"); // NOI18N\n jButton1.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton1MouseClicked(evt);\n }\n });\n\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton2.setForeground(new java.awt.Color(102, 102, 102));\n jButton2.setText(\"2\");\n jButton2.setName(\"2\"); // NOI18N\n jButton2.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton2jButton1MouseClicked(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton3.setForeground(new java.awt.Color(102, 102, 102));\n jButton3.setText(\"3\");\n jButton3.setName(\"3\"); // NOI18N\n jButton3.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton3jButton1MouseClicked(evt);\n }\n });\n\n jButton4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton4.setForeground(new java.awt.Color(102, 102, 102));\n jButton4.setText(\"4\");\n jButton4.setName(\"4\"); // NOI18N\n jButton4.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton4jButton1MouseClicked(evt);\n }\n });\n\n jButton5.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton5.setForeground(new java.awt.Color(102, 102, 102));\n jButton5.setText(\"5\");\n jButton5.setName(\"5\"); // NOI18N\n jButton5.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton5jButton1MouseClicked(evt);\n }\n });\n\n jButton6.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton6.setForeground(new java.awt.Color(102, 102, 102));\n jButton6.setText(\"6\");\n jButton6.setName(\"6\"); // NOI18N\n jButton6.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton6jButton1MouseClicked(evt);\n }\n });\n\n jButton7.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton7.setForeground(new java.awt.Color(102, 102, 102));\n jButton7.setText(\"7\");\n jButton7.setName(\"7\"); // NOI18N\n jButton7.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton7jButton1MouseClicked(evt);\n }\n });\n\n jButton8.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton8.setForeground(new java.awt.Color(102, 102, 102));\n jButton8.setText(\"8\");\n jButton8.setName(\"8\"); // NOI18N\n jButton8.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton8jButton1MouseClicked(evt);\n }\n });\n\n jButton9.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton9.setForeground(new java.awt.Color(102, 102, 102));\n jButton9.setText(\"9\");\n jButton9.setName(\"9\"); // NOI18N\n jButton9.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton9jButton1MouseClicked(evt);\n }\n });\n jButton9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton9ActionPerformed(evt);\n }\n });\n\n jButtonPagCartao.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButtonPagCartao.setForeground(new java.awt.Color(102, 102, 102));\n jButtonPagCartao.setText(\"Cartão ( F1 )\");\n jButtonPagCartao.setPreferredSize(new java.awt.Dimension(75, 23));\n jButtonPagCartao.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonPagCartaoActionPerformed(evt);\n }\n });\n\n jButton12.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton12.setForeground(new java.awt.Color(102, 102, 102));\n jButton12.setText(\"0\");\n jButton12.setName(\"0\"); // NOI18N\n jButton12.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jButton12jButton1MouseClicked(evt);\n }\n });\n\n jButton50Reais.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton50Reais.setForeground(new java.awt.Color(102, 102, 102));\n jButton50Reais.setText(\"50\");\n jButton50Reais.setName(\"50.00\"); // NOI18N\n jButton50Reais.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton50Reais.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton50ReaisActionPerformed(evt);\n }\n });\n\n jButton10Reais.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton10Reais.setForeground(new java.awt.Color(102, 102, 102));\n jButton10Reais.setText(\"10\");\n jButton10Reais.setName(\"10.00\"); // NOI18N\n jButton10Reais.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton10Reais.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton10ReaisActionPerformed(evt);\n }\n });\n\n jButton20Reais.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton20Reais.setForeground(new java.awt.Color(102, 102, 102));\n jButton20Reais.setText(\"20\");\n jButton20Reais.setName(\"20.00\"); // NOI18N\n jButton20Reais.setPreferredSize(new java.awt.Dimension(75, 23));\n jButton20Reais.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton20ReaisActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jButton12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButtonPagCartao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jButton50Reais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton10Reais, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton20Reais, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton5, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton6, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton9, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jButton12, javax.swing.GroupLayout.DEFAULT_SIZE, 59, Short.MAX_VALUE)\n .addComponent(jButtonPagCartao, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 10, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)\n .addComponent(jButton50Reais, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton10Reais, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jButton20Reais, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Ações\", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N\n jPanel3.setLayout(new java.awt.GridLayout(1, 0));\n\n jButtonFinalizaCalculoPagameto.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jButtonFinalizaCalculoPagameto.setForeground(new java.awt.Color(102, 102, 102));\n jButtonFinalizaCalculoPagameto.setText(\"Fim\");\n jButtonFinalizaCalculoPagameto.setEnabled(false);\n jButtonFinalizaCalculoPagameto.setPreferredSize(new java.awt.Dimension(83, 18));\n jButtonFinalizaCalculoPagameto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonFinalizaCalculoPagametoActionPerformed(evt);\n }\n });\n jPanel3.add(jButtonFinalizaCalculoPagameto);\n\n jButtonLimpaCalculoPagamento.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jButtonLimpaCalculoPagamento.setForeground(new java.awt.Color(102, 102, 102));\n jButtonLimpaCalculoPagamento.setText(\"Limpa\");\n jButtonLimpaCalculoPagamento.setPreferredSize(new java.awt.Dimension(83, 18));\n jButtonLimpaCalculoPagamento.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonLimpaCalculoPagamentoActionPerformed(evt);\n }\n });\n jPanel3.add(jButtonLimpaCalculoPagamento);\n\n jButtonSairCalculoPagamento.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jButtonSairCalculoPagamento.setForeground(new java.awt.Color(102, 102, 102));\n jButtonSairCalculoPagamento.setText(\"Sair(Esc)\");\n jButtonSairCalculoPagamento.setPreferredSize(new java.awt.Dimension(83, 18));\n jButtonSairCalculoPagamento.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSairCalculoPagamentoActionPerformed(evt);\n }\n });\n jPanel3.add(jButtonSairCalculoPagamento);\n\n jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n jPanel4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jPanel4MouseClicked(evt);\n }\n });\n\n jTextValueTotalCoupon.setEditable(false);\n jTextValueTotalCoupon.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jTextValueTotalCoupon.setForeground(new java.awt.Color(102, 102, 102));\n jTextValueTotalCoupon.setHorizontalAlignment(javax.swing.JTextField.TRAILING);\n jTextValueTotalCoupon.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Total R$:\", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N\n jTextValueTotalCoupon.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jTextValueTotalCouponMouseClicked(evt);\n }\n });\n jTextValueTotalCoupon.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextValueTotalCouponActionPerformed(evt);\n }\n });\n\n jTextValueDiscontCoupon.setEditable(false);\n jTextValueDiscontCoupon.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jTextValueDiscontCoupon.setForeground(new java.awt.Color(102, 102, 102));\n jTextValueDiscontCoupon.setHorizontalAlignment(javax.swing.JTextField.TRAILING);\n jTextValueDiscontCoupon.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Desconto R$:\", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N\n jTextValueDiscontCoupon.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextValueDiscontCouponActionPerformed(evt);\n }\n });\n jTextValueDiscontCoupon.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n jTextValueDiscontCouponFocusLost(evt);\n }\n });\n jTextValueDiscontCoupon.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n jTextValueDiscontCouponKeyReleased(evt);\n }\n });\n\n jTextCash.setBackground(javax.swing.UIManager.getDefaults().getColor(\"Button.background\"));\n jTextCash.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jTextCash.setForeground(new java.awt.Color(102, 102, 102));\n jTextCash.setHorizontalAlignment(javax.swing.JTextField.TRAILING);\n jTextCash.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Pagamento R$:\", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N\n jTextCash.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextCashActionPerformed(evt);\n }\n });\n jTextCash.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyReleased(java.awt.event.KeyEvent evt) {\n jTextCashKeyReleased(evt);\n }\n });\n\n jTextSmallCash.setEditable(false);\n jTextSmallCash.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jTextSmallCash.setForeground(new java.awt.Color(102, 102, 102));\n jTextSmallCash.setHorizontalAlignment(javax.swing.JTextField.TRAILING);\n jTextSmallCash.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Troco R$:\", javax.swing.border.TitledBorder.RIGHT, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font(\"Tahoma\", 0, 12), new java.awt.Color(102, 102, 102))); // NOI18N\n\n jScrollPane2.setBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1));\n\n jList2.setBackground(javax.swing.UIManager.getDefaults().getColor(\"Button.background\"));\n jList2.setFont(new java.awt.Font(\"Tahoma\", 0, 10)); // NOI18N\n jList2.setForeground(new java.awt.Color(102, 102, 102));\n jList2.setModel(listModel);\n jList2.setAutoscrolls(false);\n jList2.setEnabled(false);\n jScrollPane2.setViewportView(jList2);\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTextCash, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)\n .addComponent(jTextValueDiscontCoupon, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jTextSmallCash)\n .addComponent(jTextValueTotalCoupon, javax.swing.GroupLayout.Alignment.TRAILING))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addComponent(jTextValueTotalCoupon, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(11, 11, 11)\n .addComponent(jTextValueDiscontCoupon, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextCash, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTextSmallCash, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jScrollPane2))\n .addContainerGap())\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.TRAILING)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 271, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n\n jMenuBar1.setPreferredSize(new java.awt.Dimension(20, 20));\n jMenuBar1.setRequestFocusEnabled(false);\n\n jMenu1.setForeground(new java.awt.Color(102, 102, 102));\n jMenu1.setText(\"Ações\");\n\n jMenuItemPaymentCardCredit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F1, 0));\n jMenuItemPaymentCardCredit.setText(\"Pag. Cartão\");\n jMenuItemPaymentCardCredit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemPaymentCardCreditActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItemPaymentCardCredit);\n\n jMenuItemDiscount.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F2, 0));\n jMenuItemDiscount.setText(\"Desconto\");\n jMenuItemDiscount.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemDiscountActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItemDiscount);\n\n jMenuIteExactCash.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_D, 0));\n jMenuIteExactCash.setText(\"Dinheiro Certo\");\n jMenuIteExactCash.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuIteExactCashActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuIteExactCash);\n\n jMenuExit.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_ESCAPE, 0));\n jMenuExit.setText(\"Sair\");\n jMenuExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuExitActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuExit);\n\n jMenuBar1.add(jMenu1);\n\n setJMenuBar(jMenuBar1);\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 .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n setLocationRelativeTo(null);\n }",
"public NewJFrame() {\n Connect();\n initComponents();\n }",
"public void switchToCreateAccount() {\r\n\t\tlayout.show(this, \"createPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}",
"public JPanel createNewVersionPanel()\n\t{\n\t\t// Create and configure JPanels\n\t\tnewVersionPanel = new JPanel();\n\t\tnewVersionPanel.setLayout(new BoxLayout(newVersionPanel, BoxLayout.PAGE_AXIS));\n\t\tnewVersionPanel.setBorder(new CompoundBorder(new TitledBorder(\"New version\"), new EmptyBorder(8, 0, 0, 0)));\n\n\t\tnewVersionDescriptionPanel = new JPanel();\n\t\tnewVersionDescriptionPanel.setLayout(new BoxLayout(newVersionDescriptionPanel, BoxLayout.PAGE_AXIS));\n\t\t\n\t\t// Create components\n\t\tlabelVersionNumber = new JLabel(\"Version number:\");\n\t\t\n\t\tlabelDescription = new JLabel(\"Descriptions:\");\n\n\t\ttextFieldVersionNumber = new JTextField(20);\n\t\ttextFieldVersionNumber.setMaximumSize(textFieldVersionNumber.getPreferredSize());\n\t\ttextFieldVersionNumber.setAlignmentX(JLabel.LEFT_ALIGNMENT);\n\t\t\n\t\tbuttonAddTextFieldDescription = new JButton(\"+\");\n\t\tbuttonAddTextFieldDescription.addActionListener(this);\n\t\t\n\t\tbuttonAddVersion = new JButton(\"Add version\");\n\t\tbuttonAddVersion.addActionListener(this);\n\n\t\t// Attach components to JPanels\n\t\tnewVersionPanel.add(labelVersionNumber);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\tnewVersionPanel.add(textFieldVersionNumber);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tnewVersionPanel.add(labelDescription);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 10)));\n\t\tnewVersionPanel.add(newVersionDescriptionPanel);\n\t\tnewVersionPanel.add(buttonAddTextFieldDescription);\n\t\tnewVersionPanel.add(Box.createRigidArea(new Dimension(0, 20)));\n\t\tnewVersionPanel.add(buttonAddVersion);\n\t\t\n\t\treturn newVersionPanel;\n\t}",
"private void initialize()\n\t{\n\n\t\tfrmCustomers = new JFrame();\n\t\tfrmCustomers.setResizable(false);\n\t\tfrmCustomers.setTitle(\"Guitar Builder - Customers\");\n\t\tfrmCustomers.setBounds(100, 100, 499, 354);\n\t\tfrmCustomers.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmCustomers.getContentPane().setLayout(new GridLayout(0, 1, 0, 0));\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tfrmCustomers.setLocation(\n\t\t\t\tdim.width / 2 - frmCustomers.getSize().width / 2,\n\t\t\t\tdim.height / 2 - frmCustomers.getSize().height / 2); // launches window in center of the screen.\n\n\t\tJTabbedPane tabbedPane = new JTabbedPane(SwingConstants.TOP); // creates a tabbed pane\n\t\tfrmCustomers.getContentPane().add(tabbedPane);\n\n\t\t// -----------------------------------------------------------------------------------\n\t\t// ---------------------------------CREATE CUSTOMER-----------------------------------\n\t\t// -----------------------------------------------------------------------------------\n\n\t\tJPanel pnlCreateCustomer = new JPanel();\n\t\ttabbedPane.addTab(\"Create Customer\", null, pnlCreateCustomer, null);\n\t\tpnlCreateCustomer.setLayout(null);\n\n\t\t// labels on create customer tab\n\t\tJLabel lblCustomerID = new JLabel(\"Enter Customer ID:\");\n\t\tlblCustomerID.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblCustomerID.setBounds(10, 11, 126, 14);\n\t\tpnlCreateCustomer.add(lblCustomerID);\n\n\t\tJLabel lblFirstName = new JLabel(\"First Name:\");\n\t\tlblFirstName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblFirstName.setBounds(10, 36, 126, 14);\n\t\tpnlCreateCustomer.add(lblFirstName);\n\n\t\tJLabel lblLastName = new JLabel(\"Last Name:\");\n\t\tlblLastName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblLastName.setBounds(10, 62, 126, 14);\n\t\tpnlCreateCustomer.add(lblLastName);\n\n\t\tJLabel lblPhoneNumber = new JLabel(\"Phone Number:\");\n\t\tlblPhoneNumber.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblPhoneNumber.setBounds(10, 87, 126, 14);\n\t\tpnlCreateCustomer.add(lblPhoneNumber);\n\n\t\tJLabel lblEmail = new JLabel(\"Email:\");\n\t\tlblEmail.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblEmail.setBounds(10, 112, 126, 14);\n\t\tpnlCreateCustomer.add(lblEmail);\n\n\t\tJLabel lblAddress = new JLabel(\"Address:\");\n\t\tlblAddress.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblAddress.setBounds(10, 137, 126, 14);\n\t\tpnlCreateCustomer.add(lblAddress);\n\n\t\tJLabel lblReturnCustomer = new JLabel(\"Return Customer:\");\n\t\tlblReturnCustomer.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblReturnCustomer.setBounds(10, 162, 126, 14);\n\t\tpnlCreateCustomer.add(lblReturnCustomer);\n\n\t\t// input objects on create customer tab\n\t\ttxtCustomerID = new JTextField(\"\");\n\t\ttxtCustomerID.setToolTipText(\n\t\t\t\t\"Enter a customer ID that is 5 digits or less.\");\n\t\ttxtCustomerID.setBounds(146, 10, 332, 20);\n\t\tpnlCreateCustomer.add(txtCustomerID);\n\t\ttxtCustomerID.setColumns(10);\n\n\t\ttxtFirstName = new JTextField(\"\");\n\t\ttxtFirstName.setToolTipText(\"Enter a First Name\");\n\t\ttxtFirstName.setBounds(146, 35, 332, 20);\n\t\tpnlCreateCustomer.add(txtFirstName);\n\t\ttxtFirstName.setColumns(10);\n\n\t\ttxtLastName = new JTextField(\"\");\n\t\ttxtLastName.setToolTipText(\"Enter a Last Name\");\n\t\ttxtLastName.setColumns(10);\n\t\ttxtLastName.setBounds(146, 61, 332, 20);\n\t\tpnlCreateCustomer.add(txtLastName);\n\n\t\ttxtPhoneNumber = new JTextField(\"\");\n\t\ttxtPhoneNumber.setToolTipText(\"Enter a Phone Number\");\n\t\ttxtPhoneNumber.setColumns(10);\n\t\ttxtPhoneNumber.setBounds(146, 86, 332, 20);\n\t\tpnlCreateCustomer.add(txtPhoneNumber);\n\n\t\ttxtEmail = new JTextField(\"\");\n\t\ttxtEmail.setToolTipText(\"Enter an Email Address\");\n\t\ttxtEmail.setColumns(10);\n\t\ttxtEmail.setBounds(146, 111, 332, 20);\n\t\tpnlCreateCustomer.add(txtEmail);\n\n\t\ttxtAddress = new JTextField(\"\");\n\t\ttxtAddress.setToolTipText(\"Enter an Adress\");\n\t\ttxtAddress.setColumns(10);\n\t\ttxtAddress.setBounds(146, 136, 332, 20);\n\t\tpnlCreateCustomer.add(txtAddress);\n\n\t\tJRadioButton rdbtnNo = new JRadioButton(\"No\");\n\t\treturnCustomerButtonGroup.add(rdbtnNo);\n\t\trdbtnNo.setSelected(true);\n\t\trdbtnNo.setBounds(146, 160, 45, 23);\n\t\tpnlCreateCustomer.add(rdbtnNo);\n\n\t\tJRadioButton rdbtnYes = new JRadioButton(\"Yes\");\n\t\treturnCustomerButtonGroup.add(rdbtnYes);\n\t\trdbtnYes.setBounds(193, 160, 53, 23);\n\t\tpnlCreateCustomer.add(rdbtnYes);\n\n\t\t// stores information in database\n\t\tJButton btnCreateCustomer = new JButton(\"Create Customer\");\n\t\tbtnCreateCustomer.addActionListener(new ActionListener()\n\t\t{\n\t\t\t// event handler for create customer button\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tint ID = 0;\n\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tID = Integer.parseInt(txtCustomerID.getText());\n\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e1) // ensures ID is integer\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"ID must consist of only numbers\", \"Error\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// Gather user input\n\t\t\t\tString first = txtFirstName.getText();\n\t\t\t\tString last = txtLastName.getText();\n\t\t\t\tString phone = txtPhoneNumber.getText();\n\t\t\t\tString address = txtAddress.getText();\n\t\t\t\tString email = txtEmail.getText();\n\n\t\t\t\tif(first.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfirst = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(last.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tlast = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(phone.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tphone = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(address.isEmpty())\n\t\t\t\t{\n\t\t\t\t\taddress = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(email.isEmpty())\n\t\t\t\t{\n\t\t\t\t\temail = \"N/A\";\n\t\t\t\t}\n\n\t\t\t\tchar returnCustomer;\n\n\t\t\t\tif(rdbtnYes.isSelected())\n\t\t\t\t\treturnCustomer = 'Y';\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnCustomer = 'N';\n\t\t\t\t}\n\n\t\t\t\t// confirmation dialog\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\t\"Is The Following Information Correct?\" + \"\\nID: \" + ID\n\t\t\t\t\t\t\t\t+ \"\\nFirst Name: \" + first + \"\\nLast Name: \"\n\t\t\t\t\t\t\t\t+ last + \"\\nPhone Number: \" + phone\n\t\t\t\t\t\t\t\t+ \"\\nAddress: \" + address + \"\\nEmail: \" + email\n\t\t\t\t\t\t\t\t+ \"\\nReturn Customer: \" + returnCustomer,\n\t\t\t\t\t\t\"Confirmation\", JOptionPane.YES_NO_OPTION);\n\n\t\t\t\t// if information confirmed, commits data to database.\n\t\t\t\tif(choice == 0)\n\t\t\t\t{\n\n\t\t\t\t\t// creates customer object\n\t\t\t\t\tCustomer create = new Customer(ID, first, last, phone,\n\t\t\t\t\t\t\taddress, email, returnCustomer);\n\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tOracleJDBC.writeCustomer(create); // passes to method that writes customer to database\n\t\t\t\t\t}\n\t\t\t\t\tcatch(SQLException e1)\n\t\t\t\t\t{\n\n\t\t\t\t\t\tif(e1.getErrorCode() == 12899)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString message = e1.getMessage();\n\n\t\t\t\t\t\t\tif(message.contains(\n\t\t\t\t\t\t\t\t\t\"ORA-12899: value too large for column \\\"DYLAN\\\".\\\"CUSTOMER\\\".\\\"FIRSTNAME\\\"\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\"First name is too Long, Max Length = 12\",\n\t\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull); // sql error that email is too long\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(message.contains(\n\t\t\t\t\t\t\t\t\t\"ORA-12899: value too large for column \\\"DYLAN\\\".\\\"CUSTOMER\\\".\\\"LASTNAME\\\"\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\"Last name is too Long, Max Length = 50\",\n\t\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull); // sql error that email is too long\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(message.contains(\n\t\t\t\t\t\t\t\t\t\"ORA-12899: value too large for column \\\"DYLAN\\\".\\\"CUSTOMER\\\".\\\"PHONE\\\"\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\"Phone number is too Long, Max Length = 14\",\n\t\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull); // sql error that email is too long\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(message.contains(\n\t\t\t\t\t\t\t\t\t\"ORA-12899: value too large for column \\\"DYLAN\\\".\\\"CUSTOMER\\\".\\\"ADDRESS\\\"\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\"Address is too Long, Max Length = 50\",\n\t\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull); // sql error that email is too long\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if(message.contains(\n\t\t\t\t\t\t\t\t\t\"ORA-12899: value too large for column \\\"DYLAN\\\".\\\"CUSTOMER\\\".\\\"EMAIL\\\"\"))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\t\"EMAIL is too Long, Max Length = 50\",\n\t\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE,\n\t\t\t\t\t\t\t\t\t\tnull); // sql error that email is too long\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\telse if(e1.getErrorCode() == 00001) // sql error for PK constraint violation\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\"Customer ID already in use\", \"Error\",\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\t\telse if(e1.getErrorCode() == 1438) // sql error for customer ID too long\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\"Customer ID to long, must be 5 digits or less\",\n\t\t\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\t\telse // unaccounted for error (should not happen)\n\t\t\t\t\t\t\te1.printStackTrace();\n\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Customer Created\",\n\t\t\t\t\t\t\t\"Success\", JOptionPane.INFORMATION_MESSAGE, null);\n\n\t\t\t\t\t// clears form\n\t\t\t\t\tclearForm();\n\t\t\t\t\trdbtnNo.isSelected();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn;\n\n\t\t\t}\n\t\t});\n\t\tbtnCreateCustomer.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnCreateCustomer.setBounds(10, 199, 226, 86);\n\t\tpnlCreateCustomer.add(btnCreateCustomer);\n\n\t\t// main menu button\n\t\tJButton btnMainMenu = new JButton(\"Main Menu\");\n\t\tbtnMainMenu.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tGuitarBuilderMainMenu.createMainMenu(); // opens main menu screen\n\t\t\t\tfrmCustomers.dispose(); // closes current screen without exiting application\n\t\t\t}\n\t\t});\n\t\tbtnMainMenu.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnMainMenu.setBounds(252, 199, 226, 86);\n\t\tpnlCreateCustomer.add(btnMainMenu);\n\n\t\t// --------------------------------------------------------------------------------------------------\n\t\t// ---------------------------------------UPDATE CUSTOMER--------------------------------------------\n\t\t// --------------------------------------------------------------------------------------------------\n\n\t\tJPanel pnlUpdateCustomer = new JPanel();\n\t\ttabbedPane.addTab(\"Update Customer\", null, pnlUpdateCustomer, null);\n\t\tpnlUpdateCustomer.setLayout(null);\n\n\t\t// main menu button\n\t\tJButton btnUpdateMainMenu = new JButton(\"Main Menu\");\n\t\tbtnUpdateMainMenu.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tGuitarBuilderMainMenu.createMainMenu(); // opens main menu screen\n\t\t\t\tfrmCustomers.dispose(); // closes current screen without exiting application\n\t\t\t}\n\t\t});\n\t\tbtnUpdateMainMenu.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnUpdateMainMenu.setBounds(252, 199, 226, 86);\n\t\tpnlUpdateCustomer.add(btnUpdateMainMenu);\n\n\t\tJRadioButton radUpdateNo = new JRadioButton(\"No\");\n\t\tradUpdateNo.setSelected(true);\n\t\tupdateReturnCustomerButtonGroup.add(radUpdateNo);\n\t\tradUpdateNo.setBounds(146, 160, 45, 23);\n\t\tpnlUpdateCustomer.add(radUpdateNo);\n\n\t\tJRadioButton radUpdateYes = new JRadioButton(\"Yes\");\n\t\tupdateReturnCustomerButtonGroup.add(radUpdateYes);\n\t\tradUpdateYes.setBounds(193, 160, 57, 23);\n\t\tpnlUpdateCustomer.add(radUpdateYes);\n\n\t\t// update customer button\n\t\tJButton btnUpdateCustomer = new JButton(\"Update Customer\");\n\t\tbtnUpdateCustomer.setEnabled(false);\n\t\tbtnUpdateCustomer.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\n\t\t\t\t// Gather user input\n\t\t\t\tint ID = Integer.parseInt(txtUpdateID.getText());\n\t\t\t\tString first = txtUpdateFirstName.getText();\n\t\t\t\tString last = txtUpdateLastName.getText();\n\t\t\t\tString phone = txtUpdatePhoneNumber.getText();\n\t\t\t\tString address = txtUpdateAddress.getText();\n\t\t\t\tString email = txtUpdateEmail.getText();\n\t\t\t\tchar returnCustomer;\n\n\t\t\t\tif(first.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfirst = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(last.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tlast = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(phone.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tphone = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(address.isEmpty())\n\t\t\t\t{\n\t\t\t\t\taddress = \"N/A\";\n\t\t\t\t}\n\t\t\t\tif(email.isEmpty())\n\t\t\t\t{\n\t\t\t\t\temail = \"N/A\";\n\t\t\t\t}\n\n\t\t\t\tif(radUpdateYes.isSelected())\n\t\t\t\t\treturnCustomer = 'Y';\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\treturnCustomer = 'N';\n\t\t\t\t}\n\n\t\t\t\t// confirms information\n\t\t\t\tint choice = JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\t\"Is The Following Information Correct?\" + \"\\nID: \" + ID\n\t\t\t\t\t\t\t\t+ \"\\nFirst Name: \" + first + \"\\nLast Name: \"\n\t\t\t\t\t\t\t\t+ last + \"\\nPhone Number: \" + phone\n\t\t\t\t\t\t\t\t+ \"\\nAddress: \" + address + \"\\nEmail: \" + email\n\t\t\t\t\t\t\t\t+ \"\\nReturn Customer: \" + returnCustomer,\n\t\t\t\t\t\t\"Confirmation\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(choice == 0)\n\t\t\t\t{\n\n\t\t\t\t\tCustomer update = new Customer(ID, first, last, phone,\n\t\t\t\t\t\t\taddress, email, returnCustomer);\n\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tOracleJDBC.updateCustomer(update);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(SQLException e1)\n\t\t\t\t\t{\n\n\t\t\t\t\t\te1.printStackTrace();\n\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Customer Updated\",\n\t\t\t\t\t\t\t\"Success\", JOptionPane.INFORMATION_MESSAGE, null);\n\n\t\t\t\t\t// clears form\n\t\t\t\t\tclearForm();\n\t\t\t\t\trdbtnNo.isSelected();\n\t\t\t\t\tbtnUpdateCustomer.setEnabled(false);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t});\n\t\tbtnUpdateCustomer.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnUpdateCustomer.setBounds(10, 199, 226, 86);\n\t\tpnlUpdateCustomer.add(btnUpdateCustomer);\n\n\t\t// update tab labels\n\t\tJLabel lblUpdateReturnCustomer = new JLabel(\"Return Customer:\");\n\t\tlblUpdateReturnCustomer.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUpdateReturnCustomer.setBounds(10, 162, 126, 14);\n\t\tpnlUpdateCustomer.add(lblUpdateReturnCustomer);\n\n\t\tJLabel lblUpdateAddress = new JLabel(\"Address:\");\n\t\tlblUpdateAddress.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUpdateAddress.setBounds(10, 137, 126, 14);\n\t\tpnlUpdateCustomer.add(lblUpdateAddress);\n\n\t\tJLabel lblUpdateEmail = new JLabel(\"Email:\");\n\t\tlblUpdateEmail.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUpdateEmail.setBounds(10, 112, 126, 14);\n\t\tpnlUpdateCustomer.add(lblUpdateEmail);\n\n\t\tJLabel lblUpdatePhoneNumber = new JLabel(\"Phone Number:\");\n\t\tlblUpdatePhoneNumber.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUpdatePhoneNumber.setBounds(10, 87, 126, 14);\n\t\tpnlUpdateCustomer.add(lblUpdatePhoneNumber);\n\n\t\tJLabel lblUpdateLastName = new JLabel(\"Last Name:\");\n\t\tlblUpdateLastName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUpdateLastName.setBounds(10, 62, 126, 14);\n\t\tpnlUpdateCustomer.add(lblUpdateLastName);\n\n\t\tJLabel lblUpdateFirstName = new JLabel(\"First Name:\");\n\t\tlblUpdateFirstName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblUpdateFirstName.setBounds(10, 36, 126, 14);\n\t\tpnlUpdateCustomer.add(lblUpdateFirstName);\n\n\t\tJLabel lblEnterCustomerId = new JLabel(\"Enter Customer ID For Update:\");\n\t\tlblEnterCustomerId.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblEnterCustomerId.setBounds(10, 11, 204, 14);\n\t\tpnlUpdateCustomer.add(lblEnterCustomerId);\n\n\t\t// input objects for update\n\t\ttxtUpdateAddress = new JTextField();\n\t\ttxtUpdateAddress.setColumns(10);\n\t\ttxtUpdateAddress.setBounds(146, 136, 332, 20);\n\t\tpnlUpdateCustomer.add(txtUpdateAddress);\n\t\ttxtUpdateEmail = new JTextField();\n\t\ttxtUpdateEmail.setColumns(10);\n\t\ttxtUpdateEmail.setBounds(146, 111, 332, 20);\n\t\tpnlUpdateCustomer.add(txtUpdateEmail);\n\t\ttxtUpdatePhoneNumber = new JTextField();\n\t\ttxtUpdatePhoneNumber.setColumns(10);\n\t\ttxtUpdatePhoneNumber.setBounds(146, 86, 332, 20);\n\t\tpnlUpdateCustomer.add(txtUpdatePhoneNumber);\n\t\ttxtUpdateLastName = new JTextField();\n\t\ttxtUpdateLastName.setColumns(10);\n\t\ttxtUpdateLastName.setBounds(146, 61, 332, 20);\n\t\tpnlUpdateCustomer.add(txtUpdateLastName);\n\t\ttxtUpdateFirstName = new JTextField();\n\t\ttxtUpdateFirstName.setColumns(10);\n\t\ttxtUpdateFirstName.setBounds(146, 35, 332, 20);\n\t\tpnlUpdateCustomer.add(txtUpdateFirstName);\n\t\ttxtUpdateID = new JTextField();\n\t\ttxtUpdateID.setColumns(10);\n\t\ttxtUpdateID.setBounds(224, 10, 180, 20);\n\t\tpnlUpdateCustomer.add(txtUpdateID);\n\n\t\t// Brings current info into text fields for editing, and enables the update button\n\t\tJButton btnUpdateEnterID = new JButton(\"Enter\");\n\t\tbtnUpdateEnterID.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tint ID = Integer.parseInt(txtUpdateID.getText());\n\t\t\t\tint returnID = 0;\n\t\t\t\tString first = null;\n\t\t\t\tString last = null;\n\t\t\t\tString phone = null;\n\t\t\t\tString address = null;\n\t\t\t\tString email = null;\n\t\t\t\tString returnCustomer = null;\n\n\t\t\t\t// gets current info\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\treturnID = OracleJDBC.readCustomerID(ID);\n\t\t\t\t\tfirst = OracleJDBC.readCustomerFirstName(ID);\n\t\t\t\t\tlast = OracleJDBC.readCustomerLastName(ID);\n\t\t\t\t\tphone = OracleJDBC.readCustomerPhoneNumber(ID);\n\t\t\t\t\taddress = OracleJDBC.readCustomerAddress(ID);\n\t\t\t\t\temail = OracleJDBC.readCustomerEmail(ID);\n\t\t\t\t\treturnCustomer = OracleJDBC.readReturnCustomer(ID);\n\n\t\t\t\t}\n\t\t\t\tcatch(SQLException e1)\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"Could Not Retrieve Customer Info\", \"Error\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tif(returnID != 0) // checks if customer exists\n\t\t\t\t{\n\n\t\t\t\t\ttxtUpdateFirstName.setText(first);\n\t\t\t\t\ttxtUpdateLastName.setText(last);\n\t\t\t\t\ttxtUpdatePhoneNumber.setText(phone);\n\t\t\t\t\ttxtUpdateAddress.setText(address);\n\t\t\t\t\ttxtUpdateEmail.setText(email);\n\n\t\t\t\t\tif(returnCustomer.equals(\"Y\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tradUpdateYes.setSelected(true);\n\t\t\t\t\t}\n\n\t\t\t\t\tbtnUpdateCustomer.setEnabled(true);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"Could Not Retrieve Customer Info, Customer ID \"\n\t\t\t\t\t\t\t\t\t+ ID + \" does not exist\",\n\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE, null);\n\n\t\t\t\t\tclearForm();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tbtnUpdateEnterID.setBounds(414, 9, 64, 21);\n\t\tpnlUpdateCustomer.add(btnUpdateEnterID);\n\n\t\t// -------------------------------------------------------------------------------------\n\t\t// -------------------------------------REVIEW CUSTOMER---------------------------------\n\t\t// -------------------------------------------------------------------------------------\n\n\t\tJPanel pnlReviewCustomer = new JPanel();\n\t\ttabbedPane.addTab(\"Review Customer\", null, pnlReviewCustomer, null);\n\t\tpnlReviewCustomer.setLayout(null);\n\n\t\t// Customer Review Labels\n\t\tJLabel lblReviewCustomerID = new JLabel(\n\t\t\t\t\"Enter Customer ID To Review Information\");\n\t\tlblReviewCustomerID.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblReviewCustomerID.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblReviewCustomerID.setBounds(10, 12, 468, 19);\n\t\tpnlReviewCustomer.add(lblReviewCustomerID);\n\n\t\ttxtReviewCustomerID = new JTextField();\n\t\ttxtReviewCustomerID.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtReviewCustomerID.setColumns(10);\n\t\ttxtReviewCustomerID.setBounds(10, 34, 468, 20);\n\t\tpnlReviewCustomer.add(txtReviewCustomerID);\n\n\t\tJLabel lblReviewFirstName = new JLabel(\"First Name:\");\n\t\tlblReviewFirstName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblReviewFirstName.setBounds(10, 130, 74, 14);\n\t\tpnlReviewCustomer.add(lblReviewFirstName);\n\n\t\tJLabel lblReviewLastName = new JLabel(\"Last Name:\");\n\t\tlblReviewLastName.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblReviewLastName.setBounds(10, 156, 74, 14);\n\t\tpnlReviewCustomer.add(lblReviewLastName);\n\n\t\tJLabel lblReviewPhoneNumber = new JLabel(\"Phone Number:\");\n\t\tlblReviewPhoneNumber.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblReviewPhoneNumber.setBounds(10, 181, 97, 14);\n\t\tpnlReviewCustomer.add(lblReviewPhoneNumber);\n\n\t\tJLabel lblReviewEmail = new JLabel(\"Email:\");\n\t\tlblReviewEmail.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblReviewEmail.setBounds(10, 206, 44, 14);\n\t\tpnlReviewCustomer.add(lblReviewEmail);\n\n\t\tJLabel lblReviewAddress = new JLabel(\"Address:\");\n\t\tlblReviewAddress.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblReviewAddress.setBounds(10, 231, 74, 14);\n\t\tpnlReviewCustomer.add(lblReviewAddress);\n\n\t\tJLabel lblReviewReturnCustomer = new JLabel(\"Return Customer:\");\n\t\tlblReviewReturnCustomer.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblReviewReturnCustomer.setBounds(10, 256, 117, 14);\n\t\tpnlReviewCustomer.add(lblReviewReturnCustomer);\n\n\t\t// Labels to display information\n\t\tJLabel lblShowFirstName = new JLabel(\"\");\n\t\tlblShowFirstName.setBackground(Color.WHITE);\n\t\tlblShowFirstName.setBounds(94, 130, 356, 14);\n\t\tpnlReviewCustomer.add(lblShowFirstName);\n\n\t\tJLabel lblShowLastName = new JLabel(\"\");\n\t\tlblShowLastName.setBackground(Color.WHITE);\n\t\tlblShowLastName.setBounds(94, 158, 356, 14);\n\t\tpnlReviewCustomer.add(lblShowLastName);\n\n\t\tJLabel lblShowPhoneNumber = new JLabel(\"\");\n\t\tlblShowPhoneNumber.setBackground(Color.WHITE);\n\t\tlblShowPhoneNumber.setBounds(117, 183, 333, 14);\n\t\tpnlReviewCustomer.add(lblShowPhoneNumber);\n\n\t\tJLabel lblShowEmail = new JLabel(\"\");\n\t\tlblShowEmail.setBackground(Color.WHITE);\n\t\tlblShowEmail.setBounds(64, 206, 386, 14);\n\t\tpnlReviewCustomer.add(lblShowEmail);\n\n\t\tJLabel lblShowAddress = new JLabel(\"\");\n\t\tlblShowAddress.setBackground(Color.WHITE);\n\t\tlblShowAddress.setBounds(74, 233, 376, 14);\n\t\tpnlReviewCustomer.add(lblShowAddress);\n\n\t\tJLabel lblShowReturnCustomer = new JLabel(\"\");\n\t\tlblShowReturnCustomer.setBackground(Color.WHITE);\n\t\tlblShowReturnCustomer.setBounds(123, 258, 327, 14);\n\t\tpnlReviewCustomer.add(lblShowReturnCustomer);\n\n\t\t// gets data from database\n\t\tJButton btnReviewCustomer = new JButton(\"Review Customer\");\n\t\tbtnReviewCustomer.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tint ID = Integer.parseInt(txtReviewCustomerID.getText());\n\t\t\t\tint returnID = 0;\n\t\t\t\tString first = null;\n\t\t\t\tString last = null;\n\t\t\t\tString phone = null;\n\t\t\t\tString address = null;\n\t\t\t\tString email = null;\n\t\t\t\tString returnCustomer = null;\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t// Store data to values\n\t\t\t\t\treturnID = OracleJDBC.readCustomerID(ID);\n\t\t\t\t\tfirst = OracleJDBC.readCustomerFirstName(ID);\n\t\t\t\t\tlast = OracleJDBC.readCustomerLastName(ID);\n\t\t\t\t\tphone = OracleJDBC.readCustomerPhoneNumber(ID);\n\t\t\t\t\taddress = OracleJDBC.readCustomerAddress(ID);\n\t\t\t\t\temail = OracleJDBC.readCustomerEmail(ID);\n\t\t\t\t\treturnCustomer = OracleJDBC.readReturnCustomer(ID);\n\n\t\t\t\t}\n\t\t\t\tcatch(SQLException e1)\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"Could Not Retrieve Customer First Name\", \"Error\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tif(returnID != 0) // checks if customer exists\n\t\t\t\t{\n\t\t\t\t\t// Displays data\n\t\t\t\t\tlblShowFirstName.setText(first);\n\t\t\t\t\tlblShowLastName.setText(last);\n\t\t\t\t\tlblShowPhoneNumber.setText(phone);\n\t\t\t\t\tlblShowAddress.setText(address);\n\t\t\t\t\tlblShowEmail.setText(email);\n\t\t\t\t\tif(returnCustomer.equals(\"N\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tlblShowReturnCustomer.setText(\"No\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tlblShowReturnCustomer.setText(\"Yes\");\n\t\t\t\t\t}\n\t\t\t\t\t;\n\t\t\t\t}\n\t\t\t\telse // customer does not exist\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"Customer with ID \" + ID + \" does not exist\",\n\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnReviewCustomer.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnReviewCustomer.setBounds(10, 65, 227, 54);\n\t\tpnlReviewCustomer.add(btnReviewCustomer);\n\n\t\tJButton btnReviewMainMenu = new JButton(\"Main Menu\");\n\t\tbtnReviewMainMenu.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tGuitarBuilderMainMenu.createMainMenu();\n\t\t\t\tfrmCustomers.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnReviewMainMenu.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnReviewMainMenu.setBounds(251, 65, 227, 54);\n\t\tpnlReviewCustomer.add(btnReviewMainMenu);\n\n\t\t// -------------------------------------------------------------------------------\n\t\t// ------------------------------DELETE CUSTOMER----------------------------------\n\t\t// -------------------------------------------------------------------------------\n\t\tJPanel pnlDeleteCustomer = new JPanel();\n\t\ttabbedPane.addTab(\"Delete Customer\", null, pnlDeleteCustomer, null);\n\t\tpnlDeleteCustomer.setLayout(null);\n\n\t\t// Labels for the customer deletion window\n\t\tJLabel lblDeleteCustomerID = new JLabel(\"Enter Customer ID To Delete\");\n\t\tlblDeleteCustomerID.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblDeleteCustomerID.setFont(new Font(\"Tahoma\", Font.PLAIN, 14));\n\t\tlblDeleteCustomerID.setBounds(10, 11, 468, 19);\n\t\tpnlDeleteCustomer.add(lblDeleteCustomerID);\n\n\t\ttxtDeleteCustomerID = new JTextField();\n\t\ttxtDeleteCustomerID.setHorizontalAlignment(SwingConstants.CENTER);\n\t\ttxtDeleteCustomerID.setColumns(10);\n\t\ttxtDeleteCustomerID.setBounds(10, 33, 468, 20);\n\t\tpnlDeleteCustomer.add(txtDeleteCustomerID);\n\n\t\tJButton btnDeleteCustomer = new JButton(\"Delete Customer\");\n\t\tbtnDeleteCustomer.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\n\t\t\t\tint ID = Integer.parseInt(txtDeleteCustomerID.getText());\n\t\t\t\tint returnID = 0;\n\t\t\t\tString first = null;\n\t\t\t\tString last = null;\n\t\t\t\tString phone = null;\n\t\t\t\tString address = null;\n\t\t\t\tString email = null;\n\t\t\t\tString returnCustomer = null;\n\t\t\t\ttry\n\t\t\t\t{\n\n\t\t\t\t\t// Gathers data from database\n\t\t\t\t\treturnID = OracleJDBC.readCustomerID(ID);\n\t\t\t\t\tfirst = OracleJDBC.readCustomerFirstName(ID);\n\t\t\t\t\tlast = OracleJDBC.readCustomerLastName(ID);\n\t\t\t\t\tphone = OracleJDBC.readCustomerPhoneNumber(ID);\n\t\t\t\t\taddress = OracleJDBC.readCustomerAddress(ID);\n\t\t\t\t\temail = OracleJDBC.readCustomerEmail(ID);\n\t\t\t\t\treturnCustomer = OracleJDBC.readReturnCustomer(ID);\n\n\t\t\t\t}\n\t\t\t\tcatch(SQLException e1)\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"Could Not Delete Customer\", \"Error\",\n\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tif(returnID == 0)\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\"Customer with ID \" + ID + \" does not exist!\",\n\t\t\t\t\t\t\t\"Error\", JOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tint choice = JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\t\t\"Are you sure you want to delete the following customer?\"\n\t\t\t\t\t\t\t\t\t+ \"\\nID: \" + returnID + \"\\nFirst Name: \"\n\t\t\t\t\t\t\t\t\t+ first + \"\\nLast Name: \" + last\n\t\t\t\t\t\t\t\t\t+ \"\\nPhone Number: \" + phone + \"\\nAddress: \"\n\t\t\t\t\t\t\t\t\t+ address + \"\\nEmail: \" + email\n\t\t\t\t\t\t\t\t\t+ \"\\nReturn Customer: \" + returnCustomer,\n\t\t\t\t\t\t\t\"Confirmation\", JOptionPane.YES_NO_OPTION);\n\n\t\t\t\t\tif(choice == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tOracleJDBC.deleteCustomer(ID);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(SQLException e1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\"Couldn't Delete Customer\", \"Error\",\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE, null);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Customer Deleted\",\n\t\t\t\t\t\t\t\t\"Sucess\", JOptionPane.INFORMATION_MESSAGE,\n\t\t\t\t\t\t\t\tnull);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tbtnDeleteCustomer\n\t\t\t\t.setBackground(UIManager.getColor(\"Button.background\"));\n\t\tbtnDeleteCustomer.setForeground(Color.RED);\n\t\tbtnDeleteCustomer.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnDeleteCustomer.setBounds(10, 64, 226, 73);\n\t\tpnlDeleteCustomer.add(btnDeleteCustomer);\n\n\t\tJButton btnDeleteMainMenu = new JButton(\"Main Menu\");\n\t\tbtnDeleteMainMenu.addActionListener(new ActionListener()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tGuitarBuilderMainMenu.createMainMenu();\n\t\t\t\tfrmCustomers.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnDeleteMainMenu.setFont(new Font(\"Tahoma\", Font.PLAIN, 15));\n\t\tbtnDeleteMainMenu.setBounds(252, 64, 226, 73);\n\t\tpnlDeleteCustomer.add(btnDeleteMainMenu);\n\t}",
"public ContractorInfoPanel() {\n\t\tinitComponents();\n\t}",
"public IndividualStockDetailsPage() {\n this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));\n this.add(new JLabel(\"ENTER TICKER SYMBOL\"));\n this.add(ticker);\n this.add(new JLabel(\"ENTER AMOUNT\"));\n this.add(amount);\n this.add(new JLabel(\"ENTER YEAR\"));\n this.add(year);\n this.add(new JLabel(\"ENTER MONTH( Number between 1 - 12)\"));\n this.add(month);\n this.add(new JLabel(\"ENTER DAY( Number between 1 - 7)\"));\n this.add(day);\n this.add(new JLabel(\"ENTER COMMISSION\"));\n this.add(commission);\n buyStockButton.setActionCommand(\"IndividualStockDetailsPage:buyStockButton\");\n this.add(buyStockButton);\n backButton.setActionCommand(\"IndividualStockDetailsPage:backButton\");\n this.add(backButton);\n }",
"public NewFetureKeyPanel() {\n initComponents();\n }",
"public InvoiceCreate() {\n initComponents();\n }",
"protected static void create(String[] userDataInput, String billboardID, String currentName) {\n JFrame frame = new RenameBillboard(\"Billboard Client\", userDataInput, billboardID, currentName);\n frame.setVisible(true);\n }",
"public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }",
"private JPanel moneyButtons() {\n JPanel moneyIn = new JPanel();\n centButton.addActionListener(new moneyListener());\n nickelButton.addActionListener(new moneyListener());\n dimeButton.addActionListener(new moneyListener());\n quarterButton.addActionListener(new moneyListener());\n moneyIn.setLayout(new GridLayout(2,2,2,2));\n moneyIn.add(centButton);\n moneyIn.add(nickelButton);\n moneyIn.add(dimeButton);\n moneyIn.add(quarterButton);\n return moneyIn;\n }",
"private void showLocksForm() throws edu.mit.coeus.exception.CoeusException{\r\n CurrentLockForm currentLockForm = new CurrentLockForm(mdiForm,true);\r\n currentLockForm.display();\r\n }",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel2 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n cvv_txt = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n nameoncard_txt = new javax.swing.JTextField();\n year_cb = new javax.swing.JComboBox();\n month_cb = new javax.swing.JComboBox();\n jLabel8 = new javax.swing.JLabel();\n crdno_txt = new javax.swing.JTextField();\n link_btn = new javax.swing.JButton();\n back_btn = new javax.swing.JButton();\n uid_LB = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Enter Debit/Credit Card Details \", javax.swing.border.TitledBorder.LEFT, javax.swing.border.TitledBorder.ABOVE_TOP, new java.awt.Font(\"Tahoma\", 3, 18))); // NOI18N\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel4.setFont(new java.awt.Font(\"Times New Roman\", 1, 14));\n jLabel4.setText(\"CVV(3-Digit Verification Number)\");\n jPanel2.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 150, 220, -1));\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 14));\n jLabel5.setText(\"Your card details will be secure and will not be shared with anyone.\");\n jPanel2.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 30, -1, -1));\n\n cvv_txt.setFont(new java.awt.Font(\"Times New Roman\", 0, 14));\n jPanel2.add(cvv_txt, new org.netbeans.lib.awtextra.AbsoluteConstraints(260, 170, 70, 30));\n\n jLabel6.setFont(new java.awt.Font(\"Times New Roman\", 1, 14));\n jLabel6.setText(\"Card No\");\n jPanel2.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 90, 50, -1));\n\n jLabel7.setFont(new java.awt.Font(\"Times New Roman\", 1, 14));\n jLabel7.setText(\"Name On Card (As it appears on card)\");\n jPanel2.add(jLabel7, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 210, 250, -1));\n\n nameoncard_txt.setFont(new java.awt.Font(\"Times New Roman\", 0, 14));\n jPanel2.add(nameoncard_txt, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 230, 450, 30));\n\n year_cb.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Year\", \"2017\", \"2018\", \"2019\", \"2020\", \"2021\", \"2022\", \"2023\", \"2024\", \"2025\", \"2026\", \"2027\", \"2028\", \"2029\", \"2030\" }));\n year_cb.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n year_cbActionPerformed(evt);\n }\n });\n jPanel2.add(year_cb, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 180, -1, -1));\n\n month_cb.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Month\", \"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\" }));\n month_cb.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n month_cbActionPerformed(evt);\n }\n });\n jPanel2.add(month_cb, new org.netbeans.lib.awtextra.AbsoluteConstraints(90, 180, -1, -1));\n\n jLabel8.setFont(new java.awt.Font(\"Times New Roman\", 1, 14));\n jLabel8.setText(\"Expiry Date(Valid Thru)\");\n jPanel2.add(jLabel8, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 150, 150, -1));\n\n crdno_txt.setFont(new java.awt.Font(\"Times New Roman\", 0, 14));\n jPanel2.add(crdno_txt, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 110, 240, 30));\n\n link_btn.setBackground(new java.awt.Color(0, 255, 0));\n link_btn.setFont(new java.awt.Font(\"Times New Roman\", 1, 24));\n link_btn.setText(\"Link Bank Account\");\n link_btn.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 5, true));\n link_btn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n link_btnActionPerformed(evt);\n }\n });\n jPanel2.add(link_btn, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 270, 450, 40));\n\n back_btn.setBackground(new java.awt.Color(255, 0, 0));\n back_btn.setFont(new java.awt.Font(\"Times New Roman\", 1, 24));\n back_btn.setText(\"Back\");\n back_btn.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0), 5, true));\n back_btn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n back_btnActionPerformed(evt);\n }\n });\n jPanel2.add(back_btn, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 330, 450, 40));\n\n uid_LB.setText(\"jLabel1\");\n jPanel2.add(uid_LB, new org.netbeans.lib.awtextra.AbsoluteConstraints(610, 240, -1, -1));\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Image/mini_kb_4_02.jpg\"))); // NOI18N\n jPanel2.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 110, -1, 30));\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Image/cvv.jpg\"))); // NOI18N\n jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(330, 160, 80, 50));\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 20, 790, 450));\n\n pack();\n }",
"@Override\n\tprotected JPanel renderForm(AddWindow window) {\n\n\t\tthis.panel = new JPanel(new FlowLayout(FlowLayout.LEADING));\n\n\t\tthis.nameLabel = new JLabel(\"Nom de la catégorie\");\n\t\tthis.nameInput = new TabbedTextField(null, \"name\", 19);\n\t\tthis.components.add(this.nameInput);\n\n\t\tthis.gameLabel = new JLabel(\"Jeu parent\");\n\t\tthis.gamesList = new TabbedComboBox(\"game\", this.getGamesList());\n\t\tthis.components.add(this.gamesList);\n\n\t\tTabbedButton cancel = new TabbedButton(\"Annuler\", \"cancel\");\n\t\tcancel.addActionListener(window);\n\n\t\tTabbedButton submit = new TabbedButton(\"Enregistrer\", \"submit\");\n\t\tsubmit.addActionListener(window);\n\n\t\tthis.panel.add(this.nameLabel);\n\t\tthis.panel.add(this.nameInput);\n\t\tthis.panel.add(this.gameLabel);\n\t\tthis.panel.add(this.gamesList);\n\t\tthis.panel.add(cancel);\n\t\tthis.panel.add(submit);\n\n\t\tthis.panel.validate();\n\n\t\treturn panel;\n\n\t}",
"public NewJFrame() {\r\n initComponents();\r\n }",
"private void create() {\n\t\tGridLayout grid = new GridLayout(3,2);\n\t\tthis.setLayout(grid);\n\t\tthis.setBackground(Color.WHITE);\n\t\t\n\t\tadd(new JLabel(\"Username/Library Card #:\", SwingConstants.LEFT), grid);\n\t\tusername.setPreferredSize(new Dimension(1, 12));\n\t\tadd(username,grid);\n\t\t\n\t\tadd(new JLabel(\"Password:\", SwingConstants.LEFT), grid);\n\t\tadd(password, grid);\n\t\t\n\t\tLoginAction();\n\t\tadd(submit, grid);\n\t}",
"public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}",
"public CreateAccount() {\n initComponents();\n selectionall();\n }",
"private void initComponents() {\n jPanel1 = new javax.swing.JPanel();\n jSeparator1 = new javax.swing.JSeparator();\n jPanel3 = new javax.swing.JPanel();\n xActionBar1 = new com.rameses.rcp.control.XActionBar();\n jPanel2 = new javax.swing.JPanel();\n formPanel1 = new com.rameses.rcp.util.FormPanel();\n xComboBox1 = new com.rameses.rcp.control.XComboBox();\n xNumberField1 = new com.rameses.rcp.control.XNumberField();\n xNumberField2 = new com.rameses.rcp.control.XNumberField();\n\n setLayout(new java.awt.BorderLayout());\n\n setPreferredSize(new java.awt.Dimension(306, 156));\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jPanel1.add(jSeparator1, java.awt.BorderLayout.NORTH);\n\n jPanel3.setBorder(javax.swing.BorderFactory.createCompoundBorder(null, javax.swing.BorderFactory.createEtchedBorder()));\n xActionBar1.setName(\"formActions\");\n xActionBar1.setUseToolBar(false);\n\n org.jdesktop.layout.GroupLayout jPanel3Layout = new org.jdesktop.layout.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jPanel3Layout.createSequentialGroup()\n .addContainerGap(215, Short.MAX_VALUE)\n .add(xActionBar1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(xActionBar1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 32, Short.MAX_VALUE)\n );\n jPanel1.add(jPanel3, java.awt.BorderLayout.SOUTH);\n\n add(jPanel1, java.awt.BorderLayout.SOUTH);\n\n jPanel2.setLayout(new java.awt.BorderLayout());\n\n com.rameses.rcp.control.border.XTitledBorder xTitledBorder1 = new com.rameses.rcp.control.border.XTitledBorder();\n xTitledBorder1.setTitle(\"Add Item\");\n formPanel1.setBorder(xTitledBorder1);\n xComboBox1.setCaption(\"AF No.\");\n xComboBox1.setCaptionWidth(100);\n xComboBox1.setImmediate(true);\n xComboBox1.setItems(\"afList\");\n xComboBox1.setName(\"afId\");\n xComboBox1.setPreferredSize(new java.awt.Dimension(0, 21));\n xComboBox1.setRequired(true);\n formPanel1.add(xComboBox1);\n\n xNumberField1.setCaption(\"Remaining Qty\");\n xNumberField1.setCaptionWidth(100);\n xNumberField1.setName(\"item.qtyremaining\");\n xNumberField1.setPreferredSize(new java.awt.Dimension(0, 21));\n xNumberField1.setReadonly(true);\n xNumberField1.setRequired(true);\n formPanel1.add(xNumberField1);\n\n xNumberField2.setCaption(\"Received Qty\");\n xNumberField2.setCaptionWidth(100);\n xNumberField2.setName(\"item.qtyreceived\");\n xNumberField2.setPreferredSize(new java.awt.Dimension(0, 21));\n xNumberField2.setRequired(true);\n formPanel1.add(xNumberField2);\n\n jPanel2.add(formPanel1, java.awt.BorderLayout.CENTER);\n\n add(jPanel2, java.awt.BorderLayout.CENTER);\n\n }",
"public NewJFrame() {\n initComponents();\n \n }",
"private void createTopPanel(){\n computerPaquetView = new ViewDeckVisible(true);\n this.getContentPane().add(computerPaquetView);\n }",
"private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }",
"public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcustomerFrame cf = new customerFrame(user);\r\n\t\t\t\tcf.setVisible(true);\r\n\t\t\t\tsetVisible(false);\r\n\t\t\t}",
"public PizzaPalacePanel() \r\n\t{\t\t\r\n\t\tcustomer = new JButton (\"Order Form\");\r\n\t\tmanager = new JButton (\"Inventory Manger\");\r\n\t\tnewStock = new JButton (\"New Inventory\");\r\n\t\t\r\n\t\tadd (customer);\r\n\t\tadd (manager);\r\n\t\tadd (newStock);\r\n\r\n\t\tcustomer.addActionListener (buttonListener);\r\n\t\tmanager.addActionListener (buttonListener);\r\n\t\tnewStock.addActionListener (buttonListener);\r\n\t}",
"private void createComponents() {\n \n Dimension thisSize = this.getSize();\n \n this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));\n \n ArrayList<Integer> numbers = new ArrayList<>();\n for (int i = 0; i < recordCount; ++i) {\n numbers.add(i);\n }\n \n recordList = new JList(numbers.toArray());\n recordList.addListSelectionListener(selectionListener);\n JScrollPane listPane = new JScrollPane(recordList);\n listPane.setPreferredSize(new Dimension(thisSize.width / 3, thisSize.height));\n \n select(0, 0);\n \n this.add(listPane);\n \n recordForm = new RecordForm(fields, thisSize);\n entryForm = new JScrollPane(recordForm);\n \n this.add(entryForm);\n \n selectionAction = WAITING_ON_SELECTION;\n \n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tRegistroPlanCapacitacion plan = new RegistroPlanCapacitacion();\r\n\t\t\t\tplan.setVisible(true);\r\n\t\t\t}",
"private void initComponents() {\n addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent windowEvent) {\n setVisible(false);\n storeGUI.setVisible(true);\n }\n });\n\n int fontSize = 20; // Buttons' font size\n\n // Set up transaction label\n transactionLabel = new JLabel(\"Pick transaction number: \");\n newGUI.setButtonFontSize(transactionLabel, fontSize);\n\n int totalTransactions = storeGUI.store.dailySalesManager.getTotalTransactions();\n String[] transactionList; //= new String[storeGUI.store.dailySalesManager.getTotalTransactions() - 1];\n transactionList = new String[storeGUI.store.dailySalesManager.getTotalTransactions()];\n\n for(int i = 1; i <= storeGUI.store.dailySalesManager.getTotalTransactions(); i++) {\n transactionList[i - 1] = (new Integer(i)).toString();\n }\n\n // Set up quantity Combo Box\n transactionNumbers = new JComboBox<>(transactionList);\n transactionNumbers.setEditable(false);\n newGUI.setButtonFontSize(transactionNumbers, fontSize);\n transactionNumbers.addActionListener(this);\n\n currentTransactionNumber = Integer.parseInt(transactionNumbers.getItemAt(0));\n\n // Set up refund button\n refundButton = new JButton(\"Refund\");\n newGUI.setButtonFontSize(refundButton, fontSize);\n refundButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n refundButtonActionPerformed(evt);\n }\n });\n\n addComponents(getContentPane());\n }",
"public DepositMoneyStudentFrame() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n lblPrice = new javax.swing.JLabel();\n cmbName = new javax.swing.JComboBox<>();\n lblAmount = new javax.swing.JLabel();\n txtQTY = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jButton3 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBackground(new java.awt.Color(0, 0, 0));\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 36)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 153, 51));\n jLabel1.setText(\"E - Chanelling System\");\n\n jPanel2.setBackground(new java.awt.Color(0, 0, 51));\n jPanel2.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(0, 0, 51));\n jLabel2.setText(\"PRICE\");\n jPanel2.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 200, 160, 42));\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(0, 0, 51));\n jLabel3.setText(\"AMOUNT\");\n jPanel2.add(jLabel3, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 330, 160, 42));\n\n lblPrice.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n lblPrice.setText(\"zz\");\n jPanel2.add(lblPrice, new org.netbeans.lib.awtextra.AbsoluteConstraints(760, 210, 200, 41));\n\n cmbName.setForeground(new java.awt.Color(255, 0, 51));\n cmbName.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cmbNameActionPerformed(evt);\n }\n });\n jPanel2.add(cmbName, new org.netbeans.lib.awtextra.AbsoluteConstraints(760, 140, 200, 40));\n\n lblAmount.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n lblAmount.setText(\"0.00\");\n jPanel2.add(lblAmount, new org.netbeans.lib.awtextra.AbsoluteConstraints(760, 350, 199, 41));\n jPanel2.add(txtQTY, new org.netbeans.lib.awtextra.AbsoluteConstraints(760, 280, 199, 40));\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(0, 0, 51));\n jLabel5.setText(\"QUTY\");\n jPanel2.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 270, 160, 42));\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(0, 0, 51));\n jLabel6.setText(\"MEDICIN NAME\");\n jPanel2.add(jLabel6, new org.netbeans.lib.awtextra.AbsoluteConstraints(380, 130, 160, 42));\n\n jLabel9.setFont(new java.awt.Font(\"Tahoma\", 1, 24)); // NOI18N\n jLabel9.setText(\"MEDICIN BILL\");\n jPanel2.add(jLabel9, new org.netbeans.lib.awtextra.AbsoluteConstraints(540, 20, 260, 50));\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/chanelling/Untitled-design-17.jpg\"))); // NOI18N\n jLabel4.setText(\"jLabel4\");\n jPanel2.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, -10, 1400, 470));\n\n jButton3.setBackground(new java.awt.Color(255, 0, 102));\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton3.setText(\"SUBMIT\");\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n jPanel2.add(jButton3, new org.netbeans.lib.awtextra.AbsoluteConstraints(440, 530, 110, 40));\n\n jButton2.setBackground(new java.awt.Color(51, 153, 255));\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jButton2.setText(\"BACK\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n jPanel2.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(850, 530, 110, 40));\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 .addGap(470, 470, 470)\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, 603, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 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 .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n\n pack();\n }",
"public NewJPanel() {\n initComponents();\n }",
"public NewJPanel() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public PnNewCustomer() {\n initComponents();\n }",
"private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }"
] | [
"0.644407",
"0.6300586",
"0.6231423",
"0.61121583",
"0.6104547",
"0.60676146",
"0.60535026",
"0.6053214",
"0.6006447",
"0.6004968",
"0.6004012",
"0.59620225",
"0.5957141",
"0.59515995",
"0.5950893",
"0.593553",
"0.59111816",
"0.59111655",
"0.59100914",
"0.5910078",
"0.5906077",
"0.5900285",
"0.58942294",
"0.5888859",
"0.5887409",
"0.5884986",
"0.58823663",
"0.5875046",
"0.5870649",
"0.58694893",
"0.58623165",
"0.5832558",
"0.5831931",
"0.5824959",
"0.5819355",
"0.5812161",
"0.58081514",
"0.58079255",
"0.57948124",
"0.5793931",
"0.5789716",
"0.578559",
"0.57705414",
"0.5758978",
"0.5758978",
"0.57579273",
"0.5749499",
"0.5736814",
"0.57317156",
"0.5718943",
"0.57181674",
"0.57157",
"0.57056427",
"0.5698617",
"0.569728",
"0.56890297",
"0.5687869",
"0.5687312",
"0.5682483",
"0.5678591",
"0.5678469",
"0.5677706",
"0.5672193",
"0.56554806",
"0.56526524",
"0.564643",
"0.5645397",
"0.56434315",
"0.56420106",
"0.5635365",
"0.5615211",
"0.56110835",
"0.5610785",
"0.56100166",
"0.56096816",
"0.5609096",
"0.5605236",
"0.56034184",
"0.5602688",
"0.5601121",
"0.55967367",
"0.5595289",
"0.559411",
"0.55940145",
"0.55899787",
"0.5589127",
"0.5589012",
"0.558666",
"0.5584378",
"0.5583601",
"0.5583601",
"0.557954",
"0.557954",
"0.557954",
"0.557954",
"0.557954",
"0.557954",
"0.557954",
"0.5577687",
"0.55762607"
] | 0.6521183 | 0 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel_openDate = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel_User = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel_initial = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel_sold = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel_debited = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel_totalCash = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jLabel_payments = new javax.swing.JLabel();
jButton_closeCashBox = new javax.swing.JButton();
jButton_history = new javax.swing.JButton();
jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
jLabel1.setText("Caja");
jLabel2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel2.setText("Apertura:");
jLabel_openDate.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel_openDate.setText("fecha");
jLabel3.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel3.setText("Usuario:");
jLabel_User.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel_User.setText("usuario");
jLabel4.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel4.setText("Monto Inicial:");
jLabel_initial.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel_initial.setText("0");
jLabel5.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel5.setText("Vendido:");
jLabel_sold.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel_sold.setText("0");
jLabel6.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel6.setText("A Cobrar:");
jLabel_debited.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel_debited.setText("0");
jLabel7.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel7.setText("$");
jLabel8.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel8.setText("$");
jLabel9.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel9.setText("$");
jLabel10.setFont(new java.awt.Font("Tahoma", 0, 16)); // NOI18N
jLabel10.setText("Total en Caja:");
jLabel11.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
jLabel11.setText("$");
jLabel_totalCash.setFont(new java.awt.Font("Tahoma", 1, 16)); // NOI18N
jLabel_totalCash.setText("0");
jLabel12.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel12.setText("Deudas Cobradas:");
jLabel13.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel13.setText("$");
jLabel_payments.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N
jLabel_payments.setText("0");
jButton_closeCashBox.setText("Cerrar Caja");
jButton_closeCashBox.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton_closeCashBoxActionPerformed(evt);
}
});
jButton_history.setText("Historial de Cajas");
jButton_history.setActionCommand("Historial de Cajas");
jButton_history.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton_historyActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton_history))
.addGroup(layout.createSequentialGroup()
.addGap(10, 10, 10)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel3)
.addComponent(jLabel4)
.addComponent(jLabel5)
.addComponent(jLabel6)
.addComponent(jLabel10)
.addComponent(jLabel12))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel_openDate)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel11)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel_totalCash))
.addComponent(jLabel_User)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel_initial))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel_sold))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel9)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel_debited))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel13)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel_payments)))
.addGap(0, 203, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(0, 0, Short.MAX_VALUE)
.addComponent(jButton_closeCashBox)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(jButton_history))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(jLabel_openDate))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(jLabel_User))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(jLabel_initial)
.addComponent(jLabel7))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(jLabel_sold)
.addComponent(jLabel8))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6)
.addComponent(jLabel_debited)
.addComponent(jLabel9))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel_payments)
.addComponent(jLabel13))
.addComponent(jLabel12))
.addGap(9, 9, 9)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(jLabel_totalCash)
.addComponent(jLabel11))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 62, Short.MAX_VALUE)
.addComponent(jButton_closeCashBox)
.addContainerGap())
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public 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 FrmMenu() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.73195875",
"0.7291065",
"0.7291065",
"0.7291065",
"0.7286258",
"0.7248489",
"0.7213822",
"0.7208757",
"0.7195916",
"0.7190243",
"0.7184025",
"0.71591616",
"0.7148041",
"0.70930153",
"0.7080625",
"0.7056986",
"0.6987694",
"0.69770867",
"0.6955136",
"0.69538426",
"0.69452894",
"0.6942365",
"0.6935255",
"0.69317245",
"0.6928022",
"0.6924961",
"0.6924691",
"0.6911908",
"0.6911051",
"0.6892464",
"0.6892285",
"0.6890819",
"0.6890592",
"0.688895",
"0.6882979",
"0.68822217",
"0.688142",
"0.68779635",
"0.68758005",
"0.6873809",
"0.6871587",
"0.68597937",
"0.6855975",
"0.68553025",
"0.685517",
"0.68546903",
"0.6853679",
"0.6852941",
"0.6852941",
"0.68433666",
"0.6837067",
"0.68358743",
"0.6828493",
"0.68284714",
"0.6826015",
"0.6824099",
"0.68229824",
"0.68168867",
"0.6816564",
"0.6810073",
"0.68090576",
"0.6808398",
"0.68083",
"0.68070155",
"0.6803015",
"0.6794736",
"0.67938805",
"0.6792195",
"0.6790488",
"0.67894924",
"0.67889225",
"0.6787931",
"0.67813647",
"0.6766285",
"0.676601",
"0.6765171",
"0.67574227",
"0.6755563",
"0.6752438",
"0.6752084",
"0.6742885",
"0.67392796",
"0.6737635",
"0.6736323",
"0.67334515",
"0.67276573",
"0.67266935",
"0.6719731",
"0.6715714",
"0.6715036",
"0.67141175",
"0.6708368",
"0.6707287",
"0.6703903",
"0.67010856",
"0.6700051",
"0.6698535",
"0.66982317",
"0.66940516",
"0.6691627",
"0.6689702"
] | 0.0 | -1 |
Service interface containing methods to manage warehouses. | public interface WarehouseService {
/**
* This method returns all warehouses data from database by calling respective repository methods.
*
* @return set of {@link Warehouse}s
*/
Set<Warehouse> getAllWarehouses();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public interface WarehouseManipulator {\n int newWarehouseRequest(String s, NewWarehouseModalBottomSheet mbs);\n int editWarehouseRequest(Warehouse w,String newName, EditWarehouseModalBottomSheet mbs);\n int removeWarehouseRequest(Warehouse w);\n List<Warehouse> getWarehouses(String role);\n int showEditModalBottomSheet(EditWarehouseModalBottomSheet mbs);\n int openWarehouse(Warehouse w);\n}",
"public WarehousesResource() {\n ws = new WarehouseWebService();\n }",
"public IWarehouse getWarehouse(){\n \treturn this.warehouse;\n }",
"public interface WarehouseMigrationService {\n \n void initiateWarehouseMigration(Properties testDataProperties, String[] sitesToBeMigrated) throws GloriaApplicationException;\n\n MigrationStatusDTO getstatus();\n}",
"public List<Warehouse> findWarehouseAll() {\n\t\t return warehouseDAO.findWarehouseAll();\r\n\t}",
"protected Warehouse() {\n super();\n }",
"@Override\n\tpublic void Update(Warehouse ware) {\n\t\ttry {\n\t\t\t success=0;\n\t\t\t success=1;\n\t\t\tgetSqlMapClientTemplate().update(\"Warehouse.updateWarehouse\", ware);\n\t\t\t\n\n\t\t} catch (Exception ex) {\n\t\t\n\t\t\t success=0;\n\n\t\t}\n\n\t}",
"public void connectWarehouses(){\n//\t\tWarehouseInterface wh1 = new WareHouseImpl(\"wh1\");\n//\n//\t\tWarehouseInterface wh2 = new WareHouseImpl(\"wh2\");\n//\t\twarehouseList.add(wh1);\n//\t\twarehouseList.add(wh2);\n\t\t\n\t\tScanner in = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tSystem.out.print(\"Please input the port number of the warehouse service to establish connection (q to finish):\");\n\t\t\t\n\t\t\tString port = in.nextLine();\n\t\t\tif(port.equals(\"q\")){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tString urlStr = \"http://localhost:\" + port + \"/ws/warehouse?wsdl\";\n\t\t\t\ttry {\n\t\t\t\t\tURL url = new URL(urlStr);\n\t\t\t\t\tQName qname = new QName(\"http://warehouse/\", \"WarehouseImplService\");\n\t\t\t\t\tWarehouseInterface warehouse;\n\t\t\t\t\tService service = Service.create(url, qname);\n\t\t\t\t\twarehouse = service.getPort(WarehouseInterface.class);\n\t\t\t\t\tSystem.out.println(\"Obtained a handle on server object: \" + warehouse.getName());\n\t\t\t\t\twarehouseList.add(warehouse);\n\t\t\t\t}catch (MalformedURLException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}catch (Exception e) {\n\t\t\t\t\t//System.out.println(\"Failed to access the WSDL at:\" + urlStr);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\tin.close();\n\t}",
"public interface SKUsService {\r\n\r\n /**\r\n * 添加SKU\r\n * \r\n * @param credential\r\n * @param skuInfoEntity\r\n */\r\n Integer add(String appId, SKUInfoEntity skuInfoEntity) throws Exception;\r\n \r\n /**\r\n * 根据skuID删除SKU\r\n * \r\n * @param appId\r\n * @param skuId\r\n */\r\n void delete(String appId, String skuId) throws Exception;\r\n \r\n /**\r\n * 根据skuID 查询SKU\r\n * \r\n * @param credential\r\n * @param skuId\r\n * @return\r\n */\r\n SKUInfoEntity findById(CredentialEntity credential, String skuId) throws Exception;\r\n\r\n /**\r\n * 更新SKU\r\n * \r\n * @param appId\r\n * @param skuInfoEntity\r\n */\r\n void update(String appId, SKUInfoEntity skuInfoEntity) throws Exception;\r\n \r\n /**\r\n * 查询SKU库存所有信息\r\n * \r\n * @param credential\r\n * @param skuId\r\n * @return\r\n */\r\n SKUAllWarehouseInfoEntity findSKUALLWarehouseInfosById(CredentialEntity credential, String skuId) throws Exception;\r\n \r\n}",
"public void setWarehouseid(Integer warehouseid) {\n this.warehouseid = warehouseid;\n }",
"public interface AdminService extends PersonService {\n\n long createItem(Item item) throws DBException;\n\n void updateItem(Item item) throws DBException;\n\n void deleteItem(long id) throws DBException;\n\n void deleteAllItems() throws DBException;\n\n void deleteAllPersons() throws DBException;\n\n void deleteAllPurchases() throws DBException;\n\n List<Purchase> getPurchases() throws DBException;\n}",
"@Override\n\tpublic int Insert(Warehouse ware) {\n\t\ttry {\n\t\t\t\n\t\t\t System.out.println(\"WarehouseDAOManager is working\");\n\t\t\t success=0;\n\t\t\t success=1;\n\t\t\t return (int)getSqlMapClientTemplate().insert(\"Warehouse.insertWarehouse\", ware);\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\t\n\t\t\tex.printStackTrace();\n\t\t\tSystem.out.println(\"WarehouseDAOManager is not working\");\n\t\t\tsuccess=0;\n\n\t\t}\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic Warehouse findById(int id) {\n\t\treturn warehouseDao.findById(id);\r\n\t}",
"public ArrayList<Warehouse> getUserWarehouses(){\r\n try{\r\n ArrayList<Warehouse> mWarehouses = new ArrayList<Warehouse>();\r\n UserManager mydb= new UserManager(activity);\r\n String[] allColumns = { DBManager.Warehouse_Key, DBManager.Warehouse_LABEL };\r\n\r\n mydb.open();\r\n Cursor cursor = mydb.getDb().query(DBManager.Warehouse_TABLE_NAME,\r\n allColumns, null, null, null, null, null);\r\n\r\n cursor.moveToFirst();\r\n while (!cursor.isAfterLast()) {\r\n Warehouse dp = new Warehouse(cursor.getString(0),cursor.getString(1));\r\n mWarehouses.add(dp);\r\n cursor.moveToNext();\r\n }\r\n // closing the cursor\r\n cursor.close();\r\n mydb.close();\r\n\r\n return mWarehouses;\r\n } catch (Exception e) {\r\n return null;\r\n }\r\n }",
"public interface OmcSchemaManagementService {\n public void txnSchemaUpload(\n OmcEnvironment.Environment envionment,\n String schemaDir,\n boolean isClassAttrUpload,\n boolean isMenuUpload,\n boolean isLifeCycleUpload,\n boolean isEtcUpload,\n boolean isConstantUpload,\n boolean isTemporaryOnly,\n Map<String,String> schemaExcelScheet);\n public void synchronizeClassProcess(OmcEnvironment.Environment envionment, String propertyUtilClass, String objectRootVOClass);\n public void dumpTableScripts(OmcEnvironment.Environment envionment,boolean isFull, boolean includeCreateIndex, long targetDBMSType);\n public void txnInitialSchemaSetupMain(OmcEnvironment.Environment envionment,String defaultSite);\n //public void secondSchemaSetupMain(OmcEnvironment.Environment envionment);\n public void dumpIndexScriptsAll(OmcEnvironment.Environment envionment, boolean isParallelOption);\n}",
"public void addWarehouseStock(String name, int amount);",
"public interface RegisterAdminService {\n\n\tHashMap<String, Item> INVENTORY = new HashMap<String, Item>();\n\tHashMap<String, Special> SPECIALS = new HashMap<String, Special>();\n\tHashMap<String, Markdown> MARKDOWNS = new HashMap<String, Markdown>();\n\n\t/**\n\t * Creates a new {@link Item} using the item name, item price, and if <code>true</code>\n\t * setting item as charge by weight.\n\t * \n\t * @param itemName\t\t\tname of the item being created.\n\t * @param itemPrice\t\t\tdefault price of the item.\n\t * @param isChargeByWeight\t<code>true</code> if the item will need to be scaled\n\t * \t\t\t\t\t\t\twhen completing the {@link CartItem} creation.\n\t */\n\tvoid createItem(String itemName, String itemPrice, boolean isChargeByWeight);\n\n\t/**\n\t * Gets item from <code>INVENTORY</code>. Used whenever we need to verify that an item\n\t * exists in inventory. Returns the item by using the <code>itemName</code> as the key\n\t * in the map.\n\t * \n\t * @param itemName\t\t\tname of the item to search for.\n\t * @return\t\t\t\t\t{@link Item}\n\t */\n\tItem getItem(String itemName);\n\n\t/**\n\t * Creates a new {@link Special} of type {@link BuyNForX} using the special name, minimum\n\t * quantity of items required to buy, and the price amount for the group.\n\t * \n\t * @param specialName\t\tidentifying name of the special.\n\t * @param buyQtyRequirement\tminimum quantity of items needed in cart\n\t * \t\t\t\t\t\t\tbefore Special applies. \n\t * @param discountPrice \tprice to return for group of items purchased.\n\t */\n\tvoid createSpecialBuyNForX(String specialName, int buyQtyRequirement, String discountPrice);\n\n\t/**\n\t * Creates a new {@link Special} of type {@link BuyNGetMatXPercentOff} using the special name, minimum\n\t * quantity of items required to buy, number of items to receive at discounted percentage \n\t * and the discount percentage.\n\t * \n\t * @param specialName\t\tidentifying name of the special.\n\t * @param buyQtyRequirement\tminimum quantity of items needed in cart\n\t * \t\t\t\t\t\t\tbefore Special applies. \n\t * @param receiveQtyItems\tnumber of items to receive at discounted rate.\n\t * @param percentOff\t\tdiscount percentage entered as a whole number.\n\t * \t\t\t\t\t\t\t<strong>Example:</strong> 50% is entered as\n\t * \t\t\t\t\t\t\t50 or 50.0.\n\t */\n\tvoid createSpecialBuyNGetMAtXPercentOff(String specialName, int buyQtyRequirement, \n\t\t\tint receiveQtyItems, double percentOff); \n\t\n\t/**\n\t * Gets special from <code>SPECIALS</code> using name of the special \n\t * as a key for the object map.\n\t * \n\t * @param specialName\t\tname of the special to search for.\n\t * @return\t\t\t\t\t{@link Special}\n\t * @see \t\t\t\t\tSpecial\n\t * @see\t\t\t\t\t\tBuyNGetMatXPercentOff\n\t * @see\t\t\t\t\t\tBuyNForX\n\t */\n\tSpecial getSpecial(String specialName);\n\n\t/**\n\t * Creates a new {@link Markdown} using a mark down description and price.\n\t * \n\t * @param description\t\tdescription of the markdown for reference.\n\t * @param markdownAmount\trepresents the amount to subtract from the default price.\n\t */\n\tvoid createMarkdown(String description, String markdownAmount);\n\n\t/**\n\t * Gets mark-down from <code>MARKDOWNS</code> using the name of the mark-down\n\t * as a key for the object map.\n\t * \n\t * @param markdownDescription\tname of the mark-down to search for.\n\t * @return\t\t\t\t\t\t{@link Markdown}\n\t * @see \t\t\t\t\t\tMarkdown\n\t */\n\tMarkdown getMarkdown(String markdownDescription);\n\n\t/**\n\t * Gets the inventory collection for referencing items within \n\t * the collection.\n\t * \n\t * @return\t\t\t\t\t\tCollection of Items within <code>INVENTORY</code>.\n\t */\n\tCollection<Item> getInventory();\n\n\t/**\n\t * Gets the collection of Specials for referencing the specials stored.\n\t * \n\t * @return\t\t\t\t\tCollection of Specials which can be any type of \n\t * \t\t\t\t\t\t\t{@link Special} such as,{@link BuyNGetMatXPercentOff} \n\t * \t\t\t\t\t\t\tor {@link BuyNForX}.\n\t */\n\tCollection<? extends Special> getSpecials();\n\n\t/**\n\t * Gets the collection of Markdowns for referencing the markdowns available for\n\t * use.\n\t * \n\t * @return\t\t\t\tCollection of Markdowns.\n\t */\n\tCollection<Markdown> getMarkdowns();\n\n\t/**\n\t * Updates {@link Item}'s default price or adds {@link Markdown} or \n\t * assigns {@link Special}. <code>itemName</code> is required.\n\t * \n\t * @param itemName\t\t\t\tname of item to search for.\n\t * @param newDefaultPrice\t\tassignment of new default price.\n\t * @param markdownDescription\tname of mark-down to search for and apply.\n\t * @param specialName\t\t\tname of special to search for and apply.\n\t */\n\tvoid updateItem(String itemName, String newDefaultPrice, String markdownDescription\n\t\t\t, String specialName);\n\n\t/**\n\t * Adds a limit to {@limit Special} using the <code>specialName</code>\n\t * to search for the special and uses <code>limitQty</code> to assign\n\t * the limit quantity.\n\t * \n\t * @param specialName\t\t\tname of special to search for.\n\t * @param limitQty\t\t\t\tamount to set limit to\n\t */\n\tvoid addLimitToSpecial(String specialName, int limitQty);\n\n\n}",
"public interface IShopManagerService {\n\t\n\t// --- returns list of all aids, weapons and armors into database ---\n\tList <Aid> getAllAids();\t\n\tList <Weapon> getAllWeapons();\t\n\tList <Armor> getAllArmors();\n\t// ---\t\n\t\n\t// --- allow to sell/buy items\n\tboolean sellWeaponsForUser(int uid, List<Integer> wIds);\n\tboolean sellArmorsForUser(int uid, List<Integer> arIds);\n\tboolean sellAidsForUser(int uid, List<Integer> aidIds);\n\t\n\tboolean buyWeaponsForUser(int uid, List<Integer> wIds);\n\tboolean buyArmorsForUser(int uid, List<Integer> arIds);\n\tboolean buyAidsForUser(int uid, List<Integer> aidIds);\n\t// ---\n\t\n}",
"public interface WarehousesHistoryService extends BaseService<WarehousesHistory, Integer> {\n}",
"public interface InventoryService {\n\n /**\n * Lists the inventory.\n * @return List of the inventory\n */\n List<Inventory> getInventoryList();\n\n /**\n * Executes an order using an OrderForm.\n * @param orderForm\n * @return\n * @throws Exception\n */\n List<Inventory> executeOrder(OrderForm orderForm) throws Exception;\n\n /**\n * Resets the data.\n */\n void reset();\n\n}",
"public Warehouse find(Integer id) {\n\t\t return warehouseDAO.find(id);\r\n\t\t\r\n\t}",
"public String getWarehouseid() {\n return warehouseid;\n }",
"@Override\n\tpublic void Delete(Warehouse wid) {\n\n\t\ttry {\n\t\t\t success=0;\n\t\t\t success=1;\n\t\t\t// getSqlMapClientTemplate().delete(\"Warehouse.deleteWarehouse\", wid);\n\t\t\tgetSqlMapClientTemplate().update(\"Warehouse.deleteWarehouse\",wid);\n\t\t\t\n\t\t\t\n\t\t} catch (Exception ex) {\n\t\t\t\n\t\t\t success=0;\n\n\t\t}\n\n\t}",
"public interface SalesRepresentativeService {\n void addEmployee(Context context, SalesRepresentative employee);\n void updateEmployee(Context context, SalesRepresentative employee);\n}",
"@Override\n\tpublic Warehouse selectwarehouse(int warehouse_id) {\n\t\ttry {\n \t\t\treturn (Warehouse)getSqlMapClientTemplate().queryForObject(\"Warehouse.selectwarehouse\",warehouse_id);\n \t\t\t\n\t} catch (Exception ex) {\n\t\tex.printStackTrace();\n\t}\n\t\treturn null;\n\t}",
"@BeforeEach\n\tprotected void setUp() throws Exception {\n\t\twarehouseMock = createMock(Warehouse.class);\n\t}",
"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}",
"public interface DataWarehouseRepository {\n\tList<DwPerson> searchPeople(String query);\n\n\tList<DwTerm> getTerms();\n\n\tDwPerson getPersonByLoginId(String loginId);\n\n\tDwCourse findCourse(String subjectCode, String courseNumber, String effectiveTermCode);\n\n\tList<DwCourse> searchCourses(String query);\n\n\tList<DwSection> getSectionsByTermCodeAndUniqueKeys(String termCode, List<String> uniqueKeys);\n\n\tList<DwSection> getSectionsBySubjectCodeAndYear(String subjectCode, Long year);\n\n\tList<DwSection> getSectionsBySubjectCodeAndTermCode(String subjectCode, String termCode);\n\n\tList<DwCensus> getCensusBySubjectCodeAndTermCode(String subjectCode, String termCode);\n\n\tList<DwCensus> getCensusBySubjectCodeAndCourseNumber(String subjectCode, String courseNumber);\n}",
"public interface GoodsTypeService {\n /**\n * 更新商品类型\n *\n * @param gtn\n * @return\n */\n public int updateGoodsTypeTN(GoodsType gtn);\n /**\n * 添加商品规格关系\n * @param goodsType\n * @return\n */\n public int addGoodsType(GoodsType goodsType);\n}",
"public interface EnterpriseService extends GenericManager<Enterprise> {\n\n public Result saveEnterprise(Enterprise enterprise);\n\n}",
"public Warehouse() {\n this.addMouseListener(new MouseAdapter() {\n @Override\n public void mousePressed(MouseEvent e) {\n for (Transporter t : warehouseModel.TRANSPORTERS) {\n if (t.isClicked(e.getPoint())) {\n clickedObject = t;\n return;\n }\n }\n for (Shelf s : warehouseModel.SHELVES) {\n if (s.isClicked(e.getPoint())) {\n clickedObject = s;\n return;\n }\n }\n clickedObject = null;\n }\n });\n }",
"void updateWarehouseDepot(String username, LightWarehouseDepot warehouseDepot);",
"public Integer getWarehouseid() {\n return warehouseid;\n }",
"@Override\n\tpublic void modifyWarehouseInfo(WarehouseTO warehouseTO) {\n\t\t\n\t}",
"public interface GoodsService {\n List<GoodsVo> getGoodsVoList();\n\n GoodsVo getGoodsVoByGoodsId(long goodsId);\n\n boolean reduceStock(Goods g);\n}",
"public interface ProductService {\n /**\n * Returns all the products\n *\n * @return a list with all the products\n */\n List<Product> retrieveProducts();\n\n /***\n * Service to store the products\n * @param product the product to be stored\n * @return the stored product\n */\n Product storeProduct(Product product);\n}",
"@Override\n\tpublic Warehouse selectWarehouse(int wid) {\n\t\ttry {\n\t\t\treturn (Warehouse) getSqlMapClientTemplate().queryForObject(\n\t\t\t\t\t\"Warehouse.selectWarehouse\", wid);\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public interface ShopManageService {\n\n //查询\n Map<String, Object> selectAll(int offset, int limit);\n\n Map<String, Object> selectAll();\n\n Map<String, Object> selectBySID(int sid);\n\n Map<String, Object> selectByPIC(String job, int offset, int limit);\n\n Map<String, Object> selectShopName(String name, int offset, int limit);\n\n //------------------------------------------------------------------------------\n //添加\n boolean addShop(Shop form);\n //修改\n boolean updateShop(Shop form);\n //删除\n boolean deleteShop(int sid);\n\n}",
"public Warehouse(int capacity) {\n\t\tsuper();\n\t\tthis.capacity = capacity;\n\t\twharehouseData = new Object[capacity];\n\t}",
"@Inject\n\tpublic StoreManagement(Store store) {\n\t\tsuper(store.shardId(), store.indexSettings());\n\t\tthis.store = store;\n\t}",
"public String getWarehouseID() {\r\n\t\treturn this.name;\r\n\t}",
"public void updateWarehouse(Warehouse warehouse, boolean inverse) ;",
"public interface AppStandardService {\n\n int addStanard(AppStandard appStandard) throws MilkTeaException;\n\n\n //int updataStandard(AppStandard appStandard) throws MilkTeaException;\n\n AppStandard selectById(String id);\n\n // List<AppStandard> selectByGoodsId(String id);\n\n}",
"public interface DistributorManager {\n\n List<DistShopDTO> queryShop(DistShopQTO distShopQTO, String appKey) throws MarketingException;\n \n GainsSetDTO getGainsSet(String appKey) throws MarketingException;\n \n List<ItemSkuDistPlanDTO> getItemSkuDistPlanList(Long itemId , String appKey) throws MarketingException;\n \n}",
"public interface ProductCategoryService\n{\n /**\n * 列出相应商铺的商品分类列表\n *\n * @param shopId 商铺ID\n * @return 商品分类列表\n */\n List<ProductCategory> list(Long shopId);\n\n /**\n * 批量插入商品分类\n *\n * @param productCategories 待添加分类列表\n * @return top.ywlog.o2o.dto.ProductCategoryExecution\n */\n ProductCategoryExecution batchInsert(List<ProductCategory> productCategories) throws ProductCategoryOperationException;\n\n /**\n * 将该分类下的所有商品的分类Id置为空,再删除商品分类\n *\n * @param productCategoryId 分类Id\n * @param shopId 分类所属店铺Id\n * @return top.ywlog.o2o.dto.ProductCategoryExecution\n */\n ProductCategoryExecution deleteProductCategory(Long productCategoryId, Long shopId);\n}",
"public interface ItemService {\n\n /**\n * 导入商品数据到索引库\n * @return\n */\n TaotaoResult importAllItems() throws SolrServerException, IOException;\n}",
"@POST\n @Consumes(\"application/json\")\n @Produces(\"application/json\")\n public AddWarehouseResponse addWarehouse(WarehouseType content,\n @QueryParam(\"token\") String token) {\n AddWarehouseRequest request = new AddWarehouseRequest();\n request.setToken(token);\n request.setWarehouseName(content.getWarehouseName());\n request.setWarehouseAddress(content.getWarehouseAddress());\n request.setWarehouseCapacity(content.getWarehouseCapacity());\n request.setWarehouseArea(content.getWarehouseArea());\n return ws.addWarehouse(request); \n }",
"public interface MaterialService extends Service<Material> {\n\n /**\n * 批量更新原材料编码的更新状态\n *\n * @param materialList\n * @return\n */\n int updateSyncStatus(String[] materialList);\n\n /**\n * 获取原材料同步时的全部数据\n * @param codes\n * @return\n */\n SyncMaterial getSyncMaterial(String[] codes);\n\n /**\n * 查找物料列表\n * @return\n */\n List<MaterialVO> findByQueryCondition(String materialNameOrNo);\n\n\n /**\n * 导出物料列表\n * @param list\n * @return\n */\n Workbook exportMaterialExExcel(List <MaterialVO> list);\n\n /**\n * 获取产品类别表数据\n * @return\n */\n List<Map<String,Object>> getCatalogList();\n\n /**\n * 获取物料类型列表\n * @return\n */\n List<Map<String,Object>> getMaterialTypeList();\n\n /**\n * 获取获取列表数据\n * @return\n */\n List<Map<String,Object>> getCurrencyList();\n}",
"public abstract void setWarehouseAmount(int productID, int newAmount) throws GettingDataFailedException;",
"public interface StorageTakeRecService {\n\n\n /**\n * 根据库位查询两天之内的盘点单信息\n * @return\n */\n StorageTakeRec getStorageTakeRecByStorLocaCode(StorageLocation storageLocation);\n /**\n * 更新盘点单信息\n * @return\n */\n StorageTakeRec addStorageTakeRec(StorageTakeRec storageTakeRec);\n\n /**\n * 清空库位此种扫描状态下的单据扫描信息\n * @param storageTakeRec\n * @return\n */\n boolean clearByStorageTakeRec(StorageTakeRec storageTakeRec);\n}",
"public interface WorkPlaceService {\n void saveWorkPlace(WorkPlace workPlace);\n void deleteWorkPlace(Integer id);\n void updateIsCurrent(WorkBook workbook);\n void test();\n\n WorkPlace getWorkPlaceById(Integer id);\n void updateWorkPlace(Set<WorkPlace> workPlaces, WorkPlace workPlace);\n}",
"public interface PlanService {\n\n public List<Plan> getAllPlans() throws SQLException;\n public boolean deletePlanById(Integer id) throws SQLException;\n void addPlan(Date date, Integer idProduct, Integer quantity, Integer cost) throws SQLException;\n void updatePlan(Integer idPlan, Date date, Integer idProduct, Integer quantity, Integer cost) throws SQLException;\n}",
"public interface AdminService {\n public void addAdmin(Admin admin);\n\n public Admin queryAdmin(String username, String password);\n\n public void deleteAdmin(Admin admin);\n}",
"public interface MultiDepartsService {\n\n int insertMultiDeparts(MultiDeparts multiDeparts);\n\n int countByEcode(String eCode);\n\n int deleteByEcode(String eCode);\n}",
"public interface WarehouseOperativeObserver {\n void updateOrder(OrderComponent orderComponent) throws OrderUpdateException;\n}",
"public interface ProductService {\n void add(String productName, String model, String description, int cost);\n\n List<Product> findAll();\n\n Product findById(int id);\n}",
"public interface InventoryDataManager{\n\n /**\n * Returns the Lot records with entity type matching the given parameter.\n * \n * @param type\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityType(String type, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type matching the given\n * parameter.\n * \n * @param type\n * @return\n */\n public long countLotsByEntityType(String type) throws MiddlewareQueryException;\n\n /**\n * Returns the Lot records with entity type and entity id matching the given\n * parameters.\n * \n * @param type\n * @param entityId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityTypeAndEntityId(String type, Integer entityId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type and entity id matching\n * the given parameters.\n * \n * @param type\n * @param entityId\n * @return\n */\n public long countLotsByEntityTypeAndEntityId(String type, Integer entityId) throws MiddlewareQueryException;\n\n /**\n * Returns the Lot records with entity type and location id matching the\n * given parameters.\n * \n * @param type\n * @param locationId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityTypeAndLocationId(String type, Integer locationId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type and location id\n * matching the given parameters.\n * \n * @param type\n * @param locationId\n * @return\n */\n public long countLotsByEntityTypeAndLocationId(String type, Integer locationId) throws MiddlewareQueryException;\n\n /**\n * Returns the Lot records with entity type, entity id, and location id\n * matching the given parameters.\n * \n * @param type\n * @param entityId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * \n * @return List of Lot POJOs\n */\n public List<Lot> getLotsByEntityTypeAndEntityIdAndLocationId(String type, \n Integer entityId, Integer locationId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Lot records with entity type, entity id, and\n * location id matching the given parameters.\n * \n * @param type\n * @param entityId\n * @param locationId\n * @return\n */\n public long countLotsByEntityTypeAndEntityIdAndLocationId(String type, Integer entityId, Integer locationId) throws MiddlewareQueryException;\n\n /**\n * Returns the actual transaction balance of the Lot with the specified\n * lotId. Lot balance is computed from the sum of all its related\n * transaction records' quantity. Only committed transactions (nstat=1) are\n * included in the computation.\n * \n * @param lotId\n * - id of the Lot record\n * @return The actual transaction balance of all the specified Lot\n */\n public Long getActualLotBalance(Integer lotId) throws MiddlewareQueryException;\n\n /**\n * Returns the available transaction balance of the Lot with the specified\n * lotId. Lot balance is computed from the sum of all its related\n * transaction records' quantity. All non-cancelled transactions (nstat!=9)\n * are included in the computation.\n * \n * @param lotId\n * - id of the Lot record\n * @return The available transaction balance of all the specified Lot\n */\n public Long getAvailableLotBalance(Integer lotId) throws MiddlewareQueryException;\n\n /**\n * Given a valid Lot object, add it as a new record to the database. It is\n * assumed that the entity referenced by the Lot is already present in the\n * database.\n * \n * @param lot\n * @return Returns the id of the {@code Lot} record added\n * @throws MiddlewareQueryException\n */\n public Integer addLot(Lot lot) throws MiddlewareQueryException;\n\n /**\n * Given a List of valid Lot objects, add them as new records to the\n * database. It is assumed that the entities referenced by the lots are\n * already present in the database.\n * \n * @param lots\n * @return Returns the ids of the {@code Lot} records added\n * @throws MiddlewareQueryException\n */\n public List<Integer> addLot(List<Lot> lots) throws MiddlewareQueryException;\n\n /**\n * Given a valid Lot object which represents an existing record in the\n * database, update the record to the changes contained in the given object.\n * \n * @param lot\n * @return Returns the id of the updated {@code Lot} record\n * @throws MiddlewareQueryException\n */\n public Integer updateLot(Lot lot) throws MiddlewareQueryException;\n\n /**\n * Given a List of valid Lot objects, each of them representing an existing\n * record in the database, update the records to the changes contained in\n * the given objects.\n * \n * @param lots\n * @return Returns the ids of the updated {@code Lot} records\n * @throws MiddlewareQueryException\n */\n public List<Integer> updateLot(List<Lot> lots) throws MiddlewareQueryException;\n\n /**\n * Given a valid Transaction record, add it as a new record to the database.\n * \n * @param transaction\n * @return Returns the id of the {@code Transaction} record added\n * @throws MiddlewareQueryException\n */\n public Integer addTransaction(Transaction transaction) throws MiddlewareQueryException;\n\n /**\n * Given a List of valid Transaction records, add them as new records to the\n * database.\n * \n * @param transactions\n * @return Returns the ids of the {@code Transaction} records added\n * @throws MiddlewareQueryException\n */\n public List<Integer> addTransaction(List<Transaction> transactions) throws MiddlewareQueryException;\n\n /**\n * Given a valid Transaction record, update the database to the changes from\n * the object. Note that the Lot can not be changed.\n * \n * @param transaction\n * @return Returns the id of the updated {@code Transaction} record\n * @throws MiddlewareQueryException\n */\n public Integer updateTransaction(Transaction transaction) throws MiddlewareQueryException;\n\n /**\n * Givan a List of valid Transaction objects, update their corresponding\n * records in the database. Note that the Lot of the Transactions can not be\n * changed.\n * \n * @param transactions\n * @return Returns the ids of the updated {@code Transaction} records\n * @throws MiddlewareQueryException\n */\n public List<Integer> updateTransaction(List<Transaction> transactions) throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction object which represents the record identified by\n * the given id.\n * \n * @param id\n * @return\n */\n public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;\n\n /**\n * Return all Transaction records associated with the Lot identified by the\n * given parameter.\n * \n * @param id\n * @return Set of Transaction POJOs representing the records\n */\n public Set<Transaction> getTransactionsByLotId(Integer id) throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as reserve\n * transactions. The records have status = 0 and negative quantities.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return\n */\n public List<Transaction> getAllReserveTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as reserve\n * transactions. The records have status = 0 and negative quantities.\n * \n * @return\n */\n public long countAllReserveTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as deposit\n * transactions. The records have status = 0 and positive quantities.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Transaction POJOs\n */\n public List<Transaction> getAllDepositTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as deposit\n * transactions. The records have status = 0 and positive quantities.\n * \n * @return\n */\n public long countAllDepositTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as reserve\n * transactions (the records have status = 0 and negative quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Transaction POJOs\n */\n public List<Transaction> getAllReserveTransactionsByRequestor(Integer personId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as reserve\n * transactions (the records have status = 0 and negative quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @return\n */\n public long countAllReserveTransactionsByRequestor(Integer personId) throws MiddlewareQueryException;\n\n /**\n * Returns the Transaction records which are classified as deposit\n * transactions (the records have status = 0 and positive quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Transaction POJOs\n */\n public List<Transaction> getAllDepositTransactionsByDonor(Integer personId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records which are classified as deposit\n * transactions (the records have status = 0 and positive quantities) and\n * made by the person identified by the given id.\n * \n * @param personId\n * @return\n */\n public long countAllDepositTransactionsByDonor(Integer personId) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all uncommitted Transaction records. Included\n * information are: commitment date, quantity of transaction, scale of the\n * lot of the transaction, location of the lot, comment on the lot.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of TransactionReportRow objects\n */\n public List<TransactionReportRow> generateReportOnAllUncommittedTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Return the number of all Transaction records which are uncommitted\n * (status is equal to zero).\n * \n * @return\n */\n public long countAllUncommittedTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Transaction records classified as reserve\n * transactions. Included information are: commitment date, quantity of\n * transaction, scale of the lot of the transaction, location of the lot,\n * comment on the lot, entity id of the lot.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of TransactionReportRow objects\n */\n public List<TransactionReportRow> generateReportOnAllReserveTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Transaction records classified as withdrawal\n * transactions (quantity is negative). Included information are: commitment\n * date, quantity of transaction, scale of the lot of the transaction,\n * location of the lot, comment on the lot, entity id of the lot, person\n * responsible for the transaction.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of TransactionReportRow objects\n */\n public List<TransactionReportRow> generateReportOnAllWithdrawalTransactions(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns the number of Transaction records classified as withdrawal\n * transactions (quantity is negative).\n * \n * @return\n */\n public long countAllWithdrawalTransactions() throws MiddlewareQueryException;\n\n /**\n * Returns all Lot records in the database.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of Lot POJOs\n */\n public List<Lot> getAllLots(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Counts the lots in the database.\n * \n * @return The number of lots in the database.\n */\n public long countAllLots() throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records. Included information are: lot\n * balance, location of the lot, and scale of the lot.\n * \n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnAllLots(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all dormant Lot records given a specific year. All\n * lots with non-zero balance on or before the given year are retrieved as\n * dormant lots. Included information are: lot balance, location of the lot,\n * and scale of the lot.\n * \n * @param year\n * - filter dormant lots depending on the year specified\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnDormantLots(int year, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report about Lots with zero balance Included information are:\n * lot id of the lot, entity id of the lot, lot balance, location of the\n * lot, and scale of the lot.\n * \n * @return List of LotReportRow\n * @throws MiddlewareQueryException\n */\n public List<LotReportRow> generateReportOnEmptyLots(int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report about Lots with balance less than the amount specified\n * Included information are: lot id of the lot, entity id of the lot, lot\n * balance, location of the lot, and scale of the lot.\n * \n * @param minAmount\n * - value specified\n * @return List of LotReportRow objects\n * @throws MiddlewareQueryException\n */\n public List<LotReportRow> generateReportOnLotsWithMinimumAmount(long minimumAmount, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records associated with the given entity\n * type. Included information are: lot id of the lot, entity id of the lot,\n * lot balance, location of the lot, and scale of the lot.\n * \n * @param type\n * - entity type of the Lots to generate the report from\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnLotsByEntityType(String type, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records associated with the given entity type\n * and entityId. Included information are: lot id of the lot, entity id of\n * the lot, lot balance, location of the lot, and scale of the lot.\n * \n * @param type\n * - entity type of the Lots to generate the report from\n * @param entityId\n * - entity Id of the Lot to generate the report from\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnLotsByEntityTypeAndEntityId(String type, Integer entityId, int start, int numOfRows) throws MiddlewareQueryException;\n\n /**\n * Returns a report on all Lot records associated with the given entity type\n * and a list of entityIds. Included information are: lot id of the lot,\n * entity id of the lot, lot balance, location of the lot, and scale of the\n * lot.\n * \n * @param type\n * - entity type of the Lots to generate the report from\n * @param entityIds\n * - a List of entity Ids of the Lots to generate the report from\n * @param start\n * - the starting index of the sublist of results to be returned\n * @param numOfRows\n * - the number of rows to be included in the sublist of results\n * to be returned\n * @return List of LotReportRow objects\n */\n public List<LotReportRow> generateReportOnLotsByEntityTypeAndEntityId(String type, List<Integer> entityIds, int start, int numOfRows) throws MiddlewareQueryException;\n\n}",
"@Override\r\n\tpublic List<Warehouse> selectAll() {\n\t\treturn warehouseDao.selectAll();\r\n\t}",
"public List<Warehouse> search(String keyword) {\n\t\t return warehouseDAO.search(keyword);\r\n\t}",
"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}",
"@RemoteServiceRelativePath(\"solr-system\")\npublic interface SolrSystemService extends RemoteService {\n\n\t/**\n\t * Create a new system\n\t * \n\t * @param systemDTO\n\t * The system to create\n\t * @param userDTO\n\t * The user that creates the system\n\t */\n\tvoid createSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Update a selected system\n\t * \n\t * @param systemDTO\n\t * The system to update\n\t * @param userDTO\n\t * The user that updates the system\n\t */\n\tvoid updateSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Delete a system\n\t * \n\t * @param systemDTO\n\t * The system to delete\n\t * @param userDTO\n\t * The user that deletes the system\n\t */\n\tvoid deleteSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);\n\n\t/**\n\t * Show a list of all the systems the system can communicate with\n\t * \n\t * @param userDTO\n\t * the user that requested the systems\n\t * @return A list of all the available systems\n\t */\n\tList<SolrSystemDTO> showAllSolrSystems(UserDTO userDTO);\n\n\tboolean optimize(SolrSystemDTO sustemDTO, UserDTO userDTO);\n}",
"public interface AdminService {\n\n public Admin selectByPrimaryKey(int id);\n\n public int delete(int id);\n}",
"public interface ProductService extends WebService {\n\n /**\n * Get the Product Details for the specified product(s)\n * Note: Using v1 of ProductManager\n * @param productID - \"1-2-3\" returns Product details of products with Id = 1, Id = 2 & Id = 3;\n * @return Collection of {@link Product }\n *\n */\n public Collection<Product> getProductDetails(String productID) throws ProductNotFoundException, ProductDisabledException;\n\n /**\n * Gets reviews associated with a specific product\n * @param filter - The variable defined in the {@link ServiceFilterBean} can be over-ridden by\n * REQUEST parameters.\n * @param productID - Long - the product ID\n * @return Collection of {@link ProductReview}\n * @throws ProductNotFoundException, ProductDisabledException\n */\n public Collection<ProductReview> getProductReviews(ServiceFilterBean filter, Long productID) throws ProductNotFoundException, ProductDisabledException;\n\n /**\n * Search products against all Merchants (RetailerSites), by default. If a merchant(RetailerSite) name is specified then we\n * restrict the search for the products is restricted to a specific RetailerSite\n * @param filter variable defined in the {@link ServiceFilterBean} can be over-ridden by\n * REQUEST parameters\n * @param merchantName - String merchantName, which essentially is RetailerSite\n * @return Collection of {@link Product}\n * @throws WebServiceException - Exception is thrown, if the parameters 'q' & 'searchFields' are not set on the REQUEST.\n */\n public Collection<Product> searchProducts(ServiceFilterBean filter, String merchantName) throws WebServiceException;\n\n /**\n * TODO: Do we need to implement this on v2\n * @param productId\n * @return\n * @throws Exception\n */\n public Integer updateProductSales(Long productId) throws Exception;\n}",
"public interface AdminService {\n\n}",
"public interface PerformancesService {\n void create();\n List<Performances> findAll();\n}",
"public interface UniverseController {\n\n /**\n * 创建新的股票池\n * @param universeName\n * @param universe\n */\n public void createNewUniverse(String universeName, List<String> universe) throws DuplicateName;\n\n\n /**\n * 删除股票池\n * @param universeName\n */\n public void deleteUniverse(String universeName);\n\n\n /**\n * 获取所有自建的股票池\n * @return 所有自建的股票池\n */\n public List<UniverseVO> getAllUniverses();\n\n\n /**\n * 更新股票池\n * @param universeName 股票池名称\n * @param universe 股票池包含的股票代码\n */\n public void updateUniverse(String universeName, List<String> universe);\n\n\n /**\n * 获取股票的属性\n * @param code 股票代码\n * @return 股票的属性\n */\n public StockAttributesVO getStockAttributes(String code) throws StockNotFoundException;\n\n}",
"public interface IFsFarmStudyService {\n\n List<FsFarmStudy> getAllFarmStudy();\n\n FsFarmStudy getFarmStudyById(Integer farmstudyId);\n\n List<FsFarmStudy> getFsFarmnewsByName(String farmstudyName);\n\n int insertSelective(FsFarmStudy record);\n\n int updateByPrimaryKeySelective(FsFarmStudy record);\n\n}",
"public List<StockItem> loadWarehouseState(StockTableModel warehouse) {\n\t\t\n\t\tSession session = HibernateUtil.currentSession();\n\t\t\n\t\tQuery fromDB = session.createQuery(\"from StockItem\");\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tList<StockItem> wareHouseItems = fromDB.list();\n\t\t\n\t\treturn wareHouseItems;\n\t}",
"public interface IEnterpriseService {\n\n int create(Enterprise enterprise) throws ServiceException;\n\n int delete(long id) throws ServiceException;\n\n int update(Enterprise enterprise) throws ServiceException;\n\n List<Enterprise> getAll() throws ServiceException;\n\n Enterprise getEnterprise(long id) throws ServiceException;\n\n}",
"public interface OrderService {\n /**\n * Create new order object and put it to database\n *\n * @param cart cart with data about new order\n * @param user session user - order owner\n * @throws FlowerValidationException if flowers count in cart more then count in shop\n * @see Cart\n */\n void create(Cart cart, User user) throws FlowerValidationException;\n\n /**\n * Change order status in database to PAID\n *\n * @param order order to update\n * @see flowershop.backend.enums.OrderStatus\n */\n void pay(Order order);\n\n /**\n * Change order status in database to CLOSED\n *\n * @param order order to update\n * @see flowershop.backend.enums.OrderStatus\n */\n void close(Order order);\n\n /**\n * Delete corresponding order object from database\n *\n * @param id order id to delete\n */\n void delete(Long id);\n\n /**\n * Find order in database with given id\n *\n * @param id order id\n * @return Order dto\n */\n Order find(Long id);\n\n /**\n * Get all orders from database\n *\n * @return orders list\n */\n List<Order> getAll();\n\n /**\n * Get all orders of given user from database\n *\n * @param user orders owner\n * @return orders list\n */\n List<Order> getByUser(User user);\n\n /**\n * Get items list (bought flowers) of given order\n *\n * @param order order to get details\n * @return items list (bought flowers)\n * @see OrderFlowerData\n */\n List<OrderFlowerData> getFlowersData(Order order);\n\n /**\n * Generates detailed cart from regular cart to represent data\n *\n * @param cart Cart to be detailed\n * @return DetailedCart\n * @see Cart\n * @see DetailedCart\n */\n DetailedCart generateDetailedCart(Cart cart);\n}",
"public interface StorageService {\n\t\n\t/**\n\t * Storage.\n\t *\n\t * @param storage the storage\n\t * @return the storage state\n\t */\n\tpublic StorageState storage(ArrayList<StorageVO> storage);\n\t\n}",
"public interface ScenarioService {\n boolean isExist(int scenarioId);\n\n boolean isExist(int scenarioId, int strategyId);\n\n boolean isExist(int scenarioId, int strategyId, int farmId);\n\n boolean isExist(int scenarioId, int strategyId, int farmId, int userId);\n\n boolean isExistExcept(int scenarioId, int strategyId, int farmId, int userId, String scenarioName);\n\n boolean isExist(int strategyId, int farmId, int userId, String scenarioName);\n\n JSONObject getJsonFrom(FarmStrategyScenarioView farmStrategyScenarioView);\n\n JsonResponse saveScenario(String scenarioName, int farmId, String scenarioComment, String cropSpecificComment, int strategyId, int global_crop_price, int global_crop_yields, int global_crop_prod_cost, String cropSpecific);\n\n JsonResponse updateScenario(int scenarioId, String scenarioName, String scenarioComment, String cropSpecificComment, int farmId, int strategyId, int global_crop_price, int global_crop_yields, int global_crop_prod_cost, String cropSpecific);\n\n FarmStrategyScenarioView getScenarioById(int scenarioId);\n\n FarmStrategyScenarioView getScenarioByNameFarmStrategy(String scenarioName, int farmId, int strategyId);\n\n List<FarmStrategyScenarioView> getAllScenarioByStrategy(int strategyId);\n\n boolean deleteScenarioCropSpecificData(FarmStrategyScenario farmStrategyScenario);\n\n /**\n * @added - Abhishek\n * @date - 06-01-2016\n */\n List<CropTypeView> getScenarioCropValuesByStrategyBean(StrategyDataBean strategyDataBean, FarmStrategyScenarioView farmStrategyScenarioView);\n\n /**\n * @added - Abhishek\n * @date - 06-01-2016\n */\n JSONObject getFarmOutputDetails(StrategyDataBean strategyDataBean) throws JSONException;\n\n JSONObject getScenarioComparisonDetails(FarmInfoView farmInfoView, int scenarioId, int[] strategyIdArray);\n\n boolean deleteScenario(FarmStrategyScenario farmStrategyScenario);\n\n FarmStrategyScenario getFarmScenarioById(int scenarioId);\n}",
"public interface StoreManager {\n ConfigurationStore getConfigurationStore();\n EventStore getEventStore();\n}",
"public interface ProductService {\n /**\n * 查询所有产品\n */\n List<Product> getAllProduct();\n\n /**\n * 添加\n * @param product\n */\n void saveProduct(Product product);\n\n /**\n * 删除\n * @param id\n */\n void deleteProduct(Integer id);\n}",
"public interface NightlyOutService {\n\n /**\n * Deletes all the records that were copied to the GL.\n */\n public void deleteCopiedPendingLedgerEntries();\n\n /**\n * Copies the approved pending ledger entries to orign entry table\n */\n public void copyApprovedPendingLedgerEntries();\n}",
"public interface ProgramSeriesService {\n\n public void save(ProgramSeries programSeries);\n\n public void delete(Long id);\n}",
"public interface OrderSplitService {\n\n void initiateOrderSplitData(Properties openOrderProperties) throws GloriaApplicationException;\n\n}",
"@Override\r\n\tpublic String getId() {\n\t\treturn mWarehouseId;\r\n\t}",
"public interface ProductService {\n\n\t/**\n\t * Method gets a product based on the automatically generated productId\n\t * Primary Key\n\t * \n\t * @param productId\n\t * @return Product\n\t */\n\tProduct getProductById(Integer productId);\n\n\t/**\n\t * Method gets a product based on the provided product name\n\t * \n\t * @param productName\n\t * Name of the product\n\t * @return Product\n\t */\n\tProduct getProductByProductName(String productName);\n\n\t/**\n\t * Method registers a product based on the information filled on product\n\t * form\n\t * \n\t * @param userDTO\n\t * @return User\n\t */\n\tProduct registerProduct(ProductDTO productDTO);\n\n\t/**\n\t * Method marks a product record as deleted in the database based on the\n\t * provided productName and return true as boolean result on success\n\t * \n\t * @param productDTO\n\t * @param authentication\n\t * Spring Security Authentication object to acquire admin details\n\t * @return boolean\n\t */\n\tboolean deleteProduct(ProductDTO productDTO, Authentication authentication);\n\n\t/**\n\t * Method gets a list of all the products in the database\n\t * \n\t * @return List of all the products ordered by the productName\n\t */\n\tList<Product> getAllProducts();\n\n\t/**\n\t * Method gets a list of all the products in the database belonging to the\n\t * category provided\n\t * \n\t * @param category\n\t * Category of the product\n\t * @return List of all the products based on provided category\n\t */\n\tList<Product> getProductsByCategory(String category);\n\n\t/**\n\t * Method updates a product based on the information filled on product\n\t * update form\n\t * \n\t * @param productDTO\n\t * @param authentication\n\t * Spring Security Authentication object to acquire admin details\n\t * @return updated product\n\t */\n\n\tProduct updateProductDetails(ProductDTO productDTO, Authentication authentication);\n\n\t/**\n\t * Method finds top 5 products sorted in a descending order indicating which\n\t * products have the highest quantity sold\n\t * \n\t * @return List of products based sorted in a descending order based on the\n\t * quantity sold\n\t */\n\tList<Product> getTop5ProductsByQuantitySold();\n\n\t/**\n\t * Method gets a list of products whose productName or short description\n\t * containing the provided productName and short description\n\t * \n\t * @param productSearchString\n\t * The entered search string for product\n\t * @return The list of products containing the supplied search string\n\t */\n\tList<Product> getProductsContainingProductNameOrShortDescription(String productSearchString);\n\n\t/**\n\t * Method counts the number of products in the system\\database\n\t * \n\t * @return the number of products in the system\n\t */\n\tlong countNumberOfProductsInDatabase();\n}",
"public interface SysMerchantService extends IService<SysMerchantEntity> {\n PageUtils queryPage(Map<String, Object> params);\n\n void saveMerchant(SysMerchantEntity merchant);\n\n void updateMerchant(SysMerchantEntity merchant);\n\n List<SysMerchantEntity> queryList(Map<String, Object> params);\n\n List<SysMerchantEntity> findByMid(Long mid);\n}",
"public interface ProductService {\n\n// List<Product> getAllProduct();\n\n List<Product> getProduct(Product product);\n\n Product getProductById(Integer id);\n\n int insertProduct(Product product);\n\n int insertSelectiveProduct(Product product);\n\n int deleteProduct(Integer id );\n\n int updateProduct(Product product );\n}",
"public interface MaterialsService {\n\n List<Materials> getMaterialsByPage(int page);\n\n List<Materials> getMaterialsByName(String name);\n\n int getCounts();\n\n void addMaterials(Materials materials);\n\n void removeMaterials(String name);\n\n}",
"@PUT\n @Consumes(MediaType.APPLICATION_JSON)\n public void putJson(WarehouseType content) {\n }",
"public interface IngredientService {\n\n List<Ingredient> getAll();\n Ingredient save(Ingredient ingredient);\n\n}",
"public interface ZqhDiaryService {\n int insert(ZqhDiary zqhDiary);\n\n int save(ZqhDiary zqhDiary);\n\n List<ZqhDiary> selectAll();\n\n String getToken(String appId);\n}",
"public interface ItemService {\n\n //创建商品\n ItemModel createItem(ItemModel itemModel) throws BusinessException;\n\n //商品列表浏览\n List<ItemModel> listItem();\n\n //商品详情浏览\n ItemModel getItemById(Integer id);\n\n //验证item及其promo 缓存模型\n\n ItemModel getItemByIdInCache(Integer id);\n\n //库存扣减\n boolean decreaseStock(Integer itemId, Integer amount) throws BusinessException;\n\n //商品销量增加\n void increaseSales(Integer itemId, Integer amount) throws BusinessException;\n\n\n //异步更新库存\n boolean ansyDecreaseStock(Integer itemId, Integer amount);\n\n //库存回滚\n boolean increaseStock(Integer itemId, Integer amount) throws BusinessException;\n\n\n //初始化库存流水\n String initStockLog(Integer itemId,Integer amount);\n\n\n}",
"public interface ProvisioningService {\n\n StorageEntity registerStorage(String name, List<String> tags, Map<String, String> details);\n\n ZoneEntity registerZone(String zoneUuid, String name, String owner, List<String> tags, Map<String, String> details);\n\n PodEntity registerPod(String podUuid, String name, String owner, String zoneUuid, List<String> tags, Map<String, String> details);\n\n ClusterEntity registerCluster(String clusterUuid, String name, String owner, List<String> tags, Map<String, String> details);\n\n HostEntity registerHost(String uuid, String name, String owner, List<String> tags, Map<String, String> details);\n\n void deregisterStorage(String uuid);\n\n void deregisterZone(String uuid);\n\n void deregisterPod(String uuid);\n\n void deregisterCluster(String uuid);\n\n void deregisterHost(String uuid);\n\n void changeState(String type, String entity, Status state);\n\n List<Host> listHosts();\n\n List<PodEntity> listPods();\n\n List<ZoneEntity> listZones();\n\n List<StoragePool> listStorage();\n\n ZoneEntity getZone(String id);\n}",
"public interface HardwareServices\n{\n Hardware create(Hardware hardware);\n\n Hardware read(long id);\n\n Hardware update(Hardware hardware);\n\n void delete(long id);\n}",
"public interface WaterReportService {\n\n List<WaterReportDto> list(String code, Integer pageSize, Integer pageNum);\n\n List<WaterStation> listStation();\n\n WaterStation getStationInfoByName(String name);\n}",
"public interface RecipeManager {\n \n /** \n * creates a recipe in DB\n * @param recipe recipe to be created\n */\n void createRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * deletes a recipe from DB\n * @param recipe recipe to be deleted\n */\n void deleteRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * edit a recipe in DB\n * @param recipe recipe to be edited \n */\n void updateRecipe(Recipe recipe) throws ServiceFailureException;\n \n /**\n * find recipe by ID\n * @param id id of the searched recipe\n * @return recipe with entered ID\n */ \n Recipe findRecipeById(Long id) throws ServiceFailureException;\n \n /**\n * find recipes, that have this substring in their names\n * @param name name of the searched recipes\n * @return set of recipes with entered substring\n */\n SortedSet<Recipe> findRecipesByName(String name) throws ServiceFailureException;\n \n /**\n * find recipes by it's type\n * @param type type of the searched recipes\n * @return set of recipes with entered type\n */\n SortedSet<Recipe> findRecipesByType(MealType type) throws ServiceFailureException;\n \n /**\n * find recipes by it's category\n * @param category category of the searched recipes\n * @return set of recipes with entered category\n */\n SortedSet<Recipe> findRecipesByCategory(MealCategory category) throws ServiceFailureException;\n \n /**\n * find recipes by it's cooking time\n * @param fromTime lower border of the searched cooking time\n * @param toTime upper border of the searched cooking time\n * @return set of recipes with cooking time between lower and upper borders\n */\n SortedSet<Recipe> findRecipesByCookingTime(int fromTime, int toTime) throws ServiceFailureException;\n SortedSet<Recipe> findRecipesUptoCookingTime(int toTime) throws ServiceFailureException;\n SortedSet<Recipe> findRecipesFromCookingTime(int fromTime) throws ServiceFailureException;\n \n /**\n * find all recipes in the recipe book\n * @return all recipes in the system\n */\n SortedSet<Recipe> findAllRecipes() throws ServiceFailureException;\n}",
"public interface StoreFront {\n\tpublic String getName();\n\tpublic void setName(String name);\n\tpublic String getLocation();\n\tpublic void setLocation(String location);\n\tpublic InventoryManager getInventoryManager();\n\tpublic void setInventoryManager(InventoryManager inventoryManager);\n}",
"@Override\r\n\tpublic void setId(String id) {\n\t\tmWarehouseId = id;\r\n\t}",
"public interface StockExchangeService {\n\n void addSellOrder(String orderId, String stockName, Double price, int quantity, LocalTime time);\n\n void matchAndExecuteBuyOrder(String orderId, String stockName, Double price, int quantity, LocalTime time);\n}",
"public interface AppCarWashService {\n List<CarWash> selectByExample(CarWashExample example);\n\n /**\n * 洗车分页\n * @param map\n * @return\n */\n List<Map<String, Object>> selectCarWashList(Map<String,Object> map);\n\n /**\n * 洗车数统计\n * @param map\n * @return\n */\n List<Map<String, Object>> selectMouthCarWashSum(Map<String,Object> map);\n\n int countByExample(CarWashExample example);\n\n int countByToDay(CarWash record);\n}",
"@Transactional\n public void inboundReturnRequestAnsToWms(StockTransApplication sta, Warehouse wh) {\n\n }",
"@Override\n\tpublic List<Warehouse> selectAll() {\n\t\tList<Warehouse> userlist = null;\n\t\ttry {\n\t\t\treturn getSqlMapClientTemplate().queryForList(\"Warehouse.selectAllWarehouse\");\n\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\treturn null;\n\n\t\t\n\t}",
"public interface ShopService {\n\n\t//根据ID查询\n\tpublic Shop findById(Long id);\n\t\n\t//根据网点编号查询\n\tpublic Shop findByShopNo(String shopNo);\n\n\t//创建\n\tpublic Shop create(Shop shop);\n\t\n\t//更新\n\tpublic Shop update(Shop shop);\t\n\t\n}",
"@Local\npublic interface AdminService {\n /**\n * Creates a user of the system. The user is created with USER privileges.\n *\n * @param newUser the user to add.\n * @param token identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN permissions\n * @throws InvalidUserException when the user to add is not valid.\n */\n void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;\n\n /**\n * Deletes a user from the system.\n *\n * @param user the user that want to be deleted.\n * @param token identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void deleteUser(User user, String token) throws AuthenticationException;\n\n /**\n * Change the permissions of a user to a training. The permissions are: CREATE, READ.\n *\n * @param training the training.\n * @param user the user for whom the permissions will be changed.\n * @param permission the new permissions.\n * @param token the identifier of the session\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void changePermissions(Training training, User user, Permission permission, String token) throws AuthenticationException;\n\n /**\n * CHange the privileges of a user to the system. Roles are: ADMINISTRATOR, TRAINER, USER.\n *\n * @param user the user for whom the role will be changed.\n * @param role the new role.\n * @param token the identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void changeRole(User user, Role role, String token) throws AuthenticationException;\n\n /**\n * Add a new Device to the system.\n *\n * @param device the device to be added.\n * @param token the identifier of the session.\n * @throws InvalidDeviceException when the device to add is not a valid one.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n * @throws DeviceAlreadyExistsException thrown when the device is already on the database.\n */\n void addDevice(Device device, String token) throws InvalidDeviceException, AuthenticationException,\n DeviceAlreadyExistsException;\n\n /**\n * Disable a device from the System. This happens when the device is broken.\n *\n * @param device the device to be disabled.\n * @param token the identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void disableDevice(Device device, String token) throws AuthenticationException;\n\n /**\n * Gets a User from the database by its username.\n *\n * @param name the username.\n * @return The User with the username specified.\n * @throws InvalidUserException when there is no user with the username specified.\n */\n User getUserByUsername(String name) throws InvalidUserException;\n\n /**\n * Modifies a Device that already exists on the system.\n *\n * @param device the device to be changes.\n * @param token the identifier of the session.\n * @throws InvalidDeviceException when the device to modify isn' on the database.\n * @throws AuthenticationException when the caller has no privileges to perform this action.\n */\n void modifyDevice(Device device, String token) throws InvalidDeviceException, AuthenticationException;\n\n /**\n * @return all the devices of the system. Doesn't need a token because only the admin can call the service.\n */\n List<Device> getAllDevices();\n\n /**\n * @param token the identifier of the session.\n * @return all the users from the system.\n * @throws AuthenticationException\n */\n List<User> getAllUsers(String token) throws AuthenticationException;\n}",
"public interface ICookingTableService {\n public void saveOrder(int orderId);\n public List<CookingTable> findCookingTable();\n public void editOrderCookingNum(int orderId,int completeNum);\n public List<CookingTable> findNotServiceOrders();\n}",
"public interface MealService {\n\n MealDto addMeal(MealDto m) throws RegistrationException;\n List<MealDto> listMeals();\n List<MealDto> listMealByCompany(int companyId);\n MealDto updateMeal(MealDto m) throws RegistrationException;\n Meal getMealById(int id);\n void removeMeal(int id);\n}"
] | [
"0.6830508",
"0.6636139",
"0.6284013",
"0.62360275",
"0.61552125",
"0.61545825",
"0.5948793",
"0.5789638",
"0.5694451",
"0.56539536",
"0.56526285",
"0.56427443",
"0.56422544",
"0.56302243",
"0.5627802",
"0.5618553",
"0.56133765",
"0.55999506",
"0.5598217",
"0.5582973",
"0.5573646",
"0.55371374",
"0.5529124",
"0.54795486",
"0.5466763",
"0.54545814",
"0.5445107",
"0.54144734",
"0.53934723",
"0.53824484",
"0.53752196",
"0.5364237",
"0.5358792",
"0.5354442",
"0.53317714",
"0.5307586",
"0.52840066",
"0.5276337",
"0.52639574",
"0.525994",
"0.5254873",
"0.5239479",
"0.5239264",
"0.52361673",
"0.5229885",
"0.52245677",
"0.5209061",
"0.5207557",
"0.51982063",
"0.5197296",
"0.51957816",
"0.51833963",
"0.51825273",
"0.5175859",
"0.5173948",
"0.5165839",
"0.51554674",
"0.51462924",
"0.5139956",
"0.51384085",
"0.512766",
"0.51243573",
"0.5124139",
"0.5119642",
"0.5117565",
"0.51171243",
"0.51146775",
"0.5107265",
"0.51069355",
"0.51010424",
"0.5097002",
"0.50955486",
"0.5093174",
"0.5087267",
"0.5069991",
"0.5069951",
"0.50516397",
"0.50472796",
"0.5044891",
"0.5043636",
"0.5038291",
"0.50355273",
"0.50342023",
"0.5026794",
"0.5020643",
"0.5020106",
"0.50064796",
"0.5002879",
"0.49992487",
"0.49980903",
"0.4994274",
"0.49904677",
"0.49901944",
"0.49829668",
"0.49820596",
"0.4981513",
"0.4977925",
"0.49728015",
"0.4972714",
"0.49679062"
] | 0.7584068 | 0 |
This method was generated by MyBatis Generator. This method corresponds to the database table d_notifica_priorita | @Delete({ "delete from d_notifica_priorita", "where priorita_id = #{prioritaId,jdbcType=INTEGER}" })
int deleteByPrimaryKey(Integer prioritaId); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tList<DNotificaPriorita> selectAll();",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"@Insert({ \"insert into d_notifica_priorita (priorita_cod, priorita_desc, \", \"validita_inizio, validita_fine, \",\n\t\t\t\"utente_operazione, data_creazione, \", \"data_modifica, data_cancellazione)\",\n\t\t\t\"values (#{prioritaCod,jdbcType=VARCHAR}, #{prioritaDesc,jdbcType=VARCHAR}, \",\n\t\t\t\"#{validitaInizio,jdbcType=TIMESTAMP}, #{validitaFine,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{utenteOperazione,jdbcType=VARCHAR}, #{dataCreazione,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{dataModifica,jdbcType=TIMESTAMP}, #{dataCancellazione,jdbcType=TIMESTAMP})\" })\n\t@Options(useGeneratedKeys = true, keyProperty = \"prioritaId\")\n\tint insert(DNotificaPriorita record);",
"public List<PrioridadTicket> obtenerTodasLasPrioridades() {\n return this.prioridadTicketFacade.findAll();\n }",
"@Update({ \"update d_notifica_priorita\", \"set priorita_cod = #{prioritaCod,jdbcType=VARCHAR},\",\n\t\t\t\"priorita_desc = #{prioritaDesc,jdbcType=VARCHAR},\",\n\t\t\t\"validita_inizio = #{validitaInizio,jdbcType=TIMESTAMP},\",\n\t\t\t\"validita_fine = #{validitaFine,jdbcType=TIMESTAMP},\",\n\t\t\t\"utente_operazione = #{utenteOperazione,jdbcType=VARCHAR},\",\n\t\t\t\"data_creazione = #{dataCreazione,jdbcType=TIMESTAMP},\",\n\t\t\t\"data_modifica = #{dataModifica,jdbcType=TIMESTAMP},\",\n\t\t\t\"data_cancellazione = #{dataCancellazione,jdbcType=TIMESTAMP}\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\tint updateByPrimaryKey(DNotificaPriorita record);",
"@Query(\"select pu from ProcesoUsuario pu join pu.proceso p where p.estado = true and p.juzgado=?1 and p.prioritario = true\")\r\n\tPage<ProcesoUsuario> findAllByPrioritario(Juzgado juzgado, Pageable pageable);",
"public void setPriorite(java.lang.String priorite) {\r\n\t\tthis.priorite = priorite;\r\n\t}",
"public PrioritaetEntity findByNr(int prioID) throws Exception;",
"public List<PrioritaetEntity> findAll() throws Exception;",
"private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }",
"public java.lang.String getPriorite() {\r\n\t\treturn priorite;\r\n\t}",
"public java.lang.Long getId_cita_previa();",
"public int getIdPrestatario() {\n return idPrestatario;\n }",
"public Empleado(String nombre, Prioridad prioridad) {\n\t\tthis.nombre = nombre;\n\t\tthis.prioridad = prioridad;\n\t}",
"public String generarPrioridadVacunacion(){\n \n String aux = \" \"; \n \n if(EmpleadosPrioridadAlta.isEmpty() != true){\n aux += \"\\nLos empleados con mayor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n \n aux += \"\\n-------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMediaAlta.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media alta son: \";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMediaAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMediaAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMedia.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media son: \";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMedia.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMedia.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadBaja.isEmpty() != true){\n aux += \"\\nLos empleados con menor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadBaja.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadBaja.get(i).getIdentificacion();\n }\n }\n return aux;\n }",
"public Set<Prenotazione> getPrenotazione() {\n return prenotazione;\n }",
"public int getPrioritate() {\n return prioritate;\n }",
"public PrioridadTicket obtenerPrioridadTicket(int codigo) {\n return this.prioridadTicketFacade.find(codigo);\n }",
"public String empleadosPorPrioridad(ArrayList<Empleado> prioridad){\n String aux = \"los empleados son: \\n\";\n for (int i = 0; i < prioridad.size(); i++) {\n aux += \"nombre: \" + prioridad.get(i).getNombre() + \" -\" +\" Identificacion: \"+ prioridad.get(i).getIdentificacion() \n + \"\\n\";\n }\n return aux;\n }",
"public void setPrioritate(int value) {\n this.prioritate = value;\n }",
"@Optional\n @ImportColumn(\"AUSSTATTUNG\")\n Property<Integer> ausstattung();",
"public void setPrenotazione(Set<Prenotazione> aPrenotazione) {\n prenotazione = aPrenotazione;\n }",
"private List<PreDocumentoEntrata> getPreDocumentiEntrata() {\t\n\t\tif(req.getRicercaSinteticaPreDocumentoEntrata()!=null){\n\t\t\treturn ricercaSinteticaPreDocumentoEntrata();\n\t\t}\n\t\t\n\t\treturn req.getPreDocumentiEntrata();\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}",
"Date getPriorDate();",
"public void savePrioritaet(String bezeichnung) throws Exception;",
"public static void changePriority(Patient p, int prior){\r\n \t\tpatientArray.remove(p);\r\n \t\tlistModel.add(prior, p.getFirstName());\r\n \t}",
"public ListaPorMenuPK() {\r\n\t}",
"public void addProcesso(ProcessoPrioridade p) {\r\n\t\tthis.getEscalonadores().get(p.getPrioridade()-1).addProcesso(p);\r\n\t\tfor (int i=p.getPrioridade(); this.getEscalonadores().size()> i; i++) {\r\n\t\t\tif (this.getEscalonadores().get(i).temProcessosExecutando()) {\r\n\t\t\t\tthis.getEscalonadores().get(i).executandoVaiParaEspera();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.getEscalonadores().get(p.getPrioridade()-1).temProcessosExecutando()){\r\n\t\t\tfor (int i=p.getPrioridade()-2 ; 0 <= i; i--) {\r\n\t\t\t\tif(this.getEscalonadores().get(i).temProcessosExecutando()) {\r\n\t\t\t\t\tthis.getEscalonadores().get(p.getPrioridade()-1).executandoVaiParaEspera();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private List<PreDocumentoEntrata> ricercaSinteticaPreDocumentoEntrata() {\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = ricercaSinteticaPreDocumentoEntrata(0);\t\t\n\t\tList<PreDocumentoEntrata> result = resRSPD.getPreDocumenti();\n\t\t\n\t\tfor(int i = 1; i < resRSPD.getTotalePagine(); i++) {\t\t\t\n\t\t\tresRSPD = ricercaSinteticaPreDocumentoEntrata(i);\n\t\t\tresult.addAll(resRSPD.getPreDocumenti());\t\t\t\n\t\t}\n\t\treturn result;\n\t}",
"private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}",
"public List<Prevision> getListTipoPrevisionByFK(Integer Aux);",
"public final void prependGestiona(gest_proyectos.Proyecto succ) {\n prependSuccessor(getGestionaRelationship(getMtDatabase()), succ);\n }",
"private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }",
"private String getQuerySelecaoBonusPulaPula()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \" +\n\t\t\t\" ID_CODIGO_NACIONAL, \" +\n\t\t\t\" VLR_BONUS_MINUTO, \" +\n\t\t\t\" VLR_BONUS_MINUTO_FF \" +\n\t\t\t\"FROM \" +\n\t\t\t\" TBL_GER_BONUS_PULA_PULA \";\n\t\t\n\t\treturn result;\n\t}",
"@DISPID(123)\r\n\t// = 0x7b. The runtime will prefer the VTID if present\r\n\t@VTID(118)\r\n\tint predecessorID();",
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"public void editPrioritaet(int prioID, String bezeichnung) throws Exception;",
"public TableModel GetPagineOpera (int cod, String Opera) throws SQLException {\n\t\t\n Connection dbConnection = model.connectionDataBase.ConnectionDB.Connect();\n\n // Execute the query and get the ResultSet\n PreparedStatement stmt = dbConnection.prepareStatement(\"SELECT * FROM pagine_opera INNER JOIN opera ON pagine_opera.cod_opera = opera.cod WHERE opera.cod = ? AND opera.nome = ?\");\n stmt.setInt(1, cod);\n stmt.setString(2, Opera);\n \n ResultSet rs = stmt.executeQuery();\n TableModel tm = DbUtils.resultSetToTableModel(rs);\n dbConnection.close();\n\n return tm;\n\t\t\n\t}",
"public int guardarPreInscripcion( preInscripcion p ){\r\n\t\tString sql_guardar;\r\n int numFilas=0;\r\n \r\n sql_guardar=\"INSERT INTO pre_inscripcion VALUES ('\" +\r\n p.getNombreEvento() + \"', '\" + p.getNombreParticipante() + \"', '\" + \r\n \t\tp.getCedula() + \"', '\" + p.getfecha() + \"')\";\r\n \r\n try{\r\n Connection conn= fachada.getConnetion();\r\n Statement sentencia = conn.createStatement();\r\n\r\n numFilas = sentencia.executeUpdate(sql_guardar); \r\n System.out.println(\"up \" + numFilas);\r\n return numFilas;\r\n \r\n }\r\n catch(SQLException e){\r\n System.out.println(e); \r\n }\r\n catch(Exception e){ \r\n System.out.println(e);\r\n }\r\n return -1;\r\n\t}",
"public ColaPrioridad(int tam) {\r\n datos = new TDAPrioridad[tam];\r\n ini = fin = -1;\r\n }",
"public void setPrecioc(int p){\n this.precioc=p;\n \n }",
"public String preInsert() {\n\t\tSystem.out.println(\"--------preInsert\");\n\t\tsetProducto(new Producto());\n\t\tbanderaModif = \"false\";\n\t\treturn \"altaProd.xhtml?faces-redirect=true\";\n\t}",
"public List<Ticket> obtenerTodosLosTicketsPorUnaPrioridad(Usuario usuario, int prioridad) {\n PrioridadTicket prioridadTicket = this.prioridadTicketFacade.find(prioridad);\n if (prioridadTicket != null) {\n return usuario != null ? this.ticketFacade.obtenerTicketsPorPrioridadDePropietario(usuario, prioridadTicket) : this.ticketFacade.obtenerTodosLosTicketsPorPrioridad(prioridadTicket);\n } else {\n return null;\n }\n }",
"public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }",
"public TdOficioAfectacionPK() {\n }",
"public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }",
"public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }",
"public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }",
"@Override\r\n\t@Transactional\r\n\tpublic Integer restaPrestadoEventual() {\n\t\treturn dao.restaPrestadoEventual();\r\n\t}",
"public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }",
"public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}",
"private RicercaSinteticaPreDocumentoEntrataResponse ricercaSinteticaPreDocumentoEntrata(int numeroPagina){\n\t\tRicercaSinteticaPreDocumentoEntrata reqRSPD = req.getRicercaSinteticaPreDocumentoEntrata();\t\t\n\t\tParametriPaginazione pp = new ParametriPaginazione(numeroPagina);\n\t\tpp.setElementiPerPagina(100);\n\t\treqRSPD.setParametriPaginazione(pp);\n\t\treqRSPD.setRichiedente(req.getRichiedente());\t\t\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = executeExternalService(ricercaSinteticaPreDocumentoEntrata, reqRSPD);\n\t\treturn resRSPD;\n\t}",
"public void getSetVersionRowPresuTipoProyectoWithConnection()throws Exception {\n\t\tif(presutipoproyecto.getIsChangedAuxiliar() && Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t \t//TEMPORAL\r\n\t\t\t//if((presutipoproyecto.getIsDeleted() || (presutipoproyecto.getIsChanged()&&!presutipoproyecto.getIsNew()))&& Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t\tTimestamp timestamp=null;\r\n\t\t\t\r\n\t\t\ttry {\t\r\n\t\t\t\tconnexion=connexion.getNewConnexion(this.connexionType,this.parameterDbType,this.entityManagerFactory);connexion.begin();\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttimestamp=presutipoproyectoDataAccess.getSetVersionRowPresuTipoProyecto(connexion,presutipoproyecto.getId());\r\n\t\t\t\t\r\n\t\t\t\tif(!presutipoproyecto.getVersionRow().equals(timestamp)) {\t\r\n\t\t\t\t\tpresutipoproyecto.setVersionRow(timestamp);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconnexion.commit();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tpresutipoproyecto.setIsChangedAuxiliar(false);\r\n\t\t\t\t\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tconnexion.rollback();\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tthrow e;\r\n\t\t\t\t\r\n\t \t} finally {\r\n\t\t\t\tconnexion.close();\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }",
"@Override\n\tpublic ObservableList<prescription> findBypfID(int a) {\n\t\t// TODO Auto-generated method stub\n\t\tprescription p=null;\n\t\t\n\t\tObservableList<prescription> prescription =FXCollections.observableArrayList();\n\t\tString query = \"SELECT * FROM pmohan_prescription WHERE fid = ?;\";\n\t\ttry(PreparedStatement statement = connection.prepareStatement(query))\n\t\t{ \n\t\t\tSystem.out.println(a);\n\t\t\t statement.setInt(1, a);\n\t\t\t ResultSet resultSet = statement.executeQuery();\n\t\t\t while(resultSet.next()){\n\t\t\t\t p= new prescription();\n\t\t\t\t p.setDocId(resultSet.getInt(3));\n\t\t\t\t p.setMedcineName(resultSet.getString(4));\n\t\t\t\t p.setMedicinePurpose(resultSet.getString(5));\n\t\t\t\t p.setEat(resultSet.getString(6));\n\t\t\t\t p.setDocName(docName(resultSet.getInt(3)));\n\t\t\t\t p.setPname(resultSet.getString(7));\n\t\t\t\t prescription.add(p);\n\t\t }\n\t\t }\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn prescription;\n\t}",
"@Column(name = \"C_PRIMER_NOMBRE\")\n public String getPrimerNombre() {\n return primerNombre;\n }",
"public List<SiteNoticia> listarPorData() {\n List<SiteNoticia> result = new ArrayList<SiteNoticia>();\n EntityManager em1 = getEM();\n em1.getTransaction().begin();\n CriteriaBuilder builder = em1.getCriteriaBuilder();\n CriteriaQuery query = builder.createQuery(SiteNoticia.class);\n //EntityType type = em1.getMetamodel().entity(SiteNoticia.class);\n Root root = query.from(SiteNoticia.class);\n query.orderBy(builder.desc(root.get(\"hora2\")));\n result = em1.createQuery(query).getResultList();\n em1.close();\n return result;\n }",
"public Local_Prova getByIdLocal_Prova(Integer id);",
"public void setValuesJTableMatrizPrioridadesAlternativas(){\n int alternativas = views.useController().getProblema().getAlternativas();\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, criterios);\n jTableMatrizPrioridadesAlternativas.setModel(modelo);\n jTableMatrizPrioridadesAlternativas.setEnabled(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setResizingAllowed(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableMatrizPrioridadesAlternativas.getColumnCount();i++){\n jTableMatrizPrioridadesAlternativas.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n for(int c = 0; c < criterios; c++){ \n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getMainMatrix().get(f, c)), f, c);\n } \n }\n }",
"List<AdvertBundleEntity> findAllRequiredNewProforma();",
"public TreeSet<PrestamoFila> CargarDatos () {\n this.conexion.ConectarBD();\n \n String consulta = \"SELECT * FROM prestamos ORDER BY idprestamo\";\n this.rst = this.conexion.ConsultaBD(consulta);\n try {\n //Pasamos los datos recogidos de la BD al TreeSet\n while (this.rst.next()){\n PrestamoFila pf = new PrestamoFila(rst.getInt(\"IdPrestamo\"),rst.getInt(\"IdSocio\"),rst.getInt(\"IdLibro\"),rst.getDate(\"FechaInicio\"),rst.getDate(\"FechaFin\")); \n this.tPrestamos.add(pf);\n }\n } catch (SQLException e){\n throw new MisException(\"Error al cargar los datos del Prestamo.\\n\"+e.toString());\n \n }\n //Desconectamos de la BD\n this.conexion.DesconectarBD();\n return this.tPrestamos;\n }",
"public void getProdotti() {\r\n\t\tprodotti = ac.getProdotti();\r\n\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaProdotti != null) {\r\n\t\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codiceInteger\"));\r\n\t prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n\t descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n\t prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzoFloat\"));\r\n\t disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilitaInteger\"));\r\n\t \r\n\t Collections.sort(prodotti);\r\n\t tabellaProdotti.getItems().setAll(prodotti);\t \r\n\t tabellaProdotti.setOnMouseClicked(e -> {\r\n\t \tif(tabellaProdotti.getSelectionModel().getSelectedItem() != null)\r\n\t \t\taggiornaQuantita(tabellaProdotti.getSelectionModel().getSelectedItem().getDisponibilita());\r\n\t });\r\n\t\t}\r\n\t}",
"public String getPriInicio () {\n return PriInicio;\n }",
"private void setupPriorForSingleMotif(NumericSequenceData priorsequence, int motiflength, String useforprior) {\n int seqLength=priorsequence.getSize();\n if (!useforprior.equals(\"sum\")) {\n boolean maskStart=(useforprior.equals(\"relativeStartValue\") && priorsequence.getStrandOrientation()==Sequence.REVERSE);\n if (!maskStart) {\n for (int j=seqLength-motiflength+1;j<seqLength;j++) {\n priorsequence.setValueAtRelativePosition(j, 0);\n }\n } else {\n for (int j=0;j<motiflength-1;j++) {\n priorsequence.setValueAtRelativePosition(j, 0);\n }\n }\n }\n normalizePrior(priorsequence);\n }",
"public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\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\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }",
"@Override\r\n\tprotected void onPreLoadData() throws Exception {\n\r\n\t\tList<Linea> listaLinee = new LineaAPI().lista(getEmfShared(), getCurrentUser());\r\n\t\tlinee = SelectItemConverter.convert(listaLinee);\r\n\r\n\t\tlong idRinnovo = getParamObjectAsLong(\"idRinnovo\");\r\n\t\tif (idRinnovo > 0) {\r\n\t\t\telemento = new ContrattoAPI().rinnovoPrepara(getEmfShared(), getCurrentUser(), idRinnovo);\r\n\t\t} else {\r\n\t\t\taddErrorMessage(\"Impossibile trovare il contratto da rinnovare.\");\r\n\t\t}\r\n\r\n\t}",
"public Integer getCodTienda();",
"@Select({\n \"select\",\n \"code, process_name, types\",\n \"from basic_info_precursor_process_type\",\n \"where code = #{code,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n BasicInfoPrecursorProcessType selectByPrimaryKey(Integer code);",
"VentaJPA obtenerVenta(int comprobante);",
"public ArrayList<TypeProjet> listeInscr() throws RemoteException{\r\n\t\t\tArrayList<TypeProjet> list = new ArrayList<TypeProjet>();\r\n\t\t\t\r\n\t\t\t\r\n\t\t String requete = \"select * from typeprojet where t_cursus='\" + _etudiant.getCursus() +\r\n\t\t \t\t\t\t \"' and CURRENT_DATE >= t_debinscr AND CURRENT_DATE <= t_fininscr AND NOT EXISTS \" +\r\n\t\t \t\t\t\t \" (select a_idgroupe From association where a_idgroupe in (select ga_idgroupe from \" +\r\n\t\t \t\t\t\t \" groupeassoc, groupe where ga_idetudiant = \" + _etudiant.getId() + \" AND g_idtype = \" +\r\n\t\t \t\t\t\t \"t_id and ga_idgroupe = g_id) and a_idprojet in (select p_id from projet where \" +\r\n\t\t \t\t\t\t \" p_idType = t_id))\";\r\n\t\t System.out.println(\"requete : listeInscr\" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t TypeProjet tp = null;\r\n\t\t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tint id = Integer.parseInt(data.getColumnValue(\"t_id\"));\r\n\t\t\t\tString nom = data.getColumnValue(\"t_nom\");\r\n\t\t\t\tString deb_inscr = data.getColumnValue(\"t_debInscr\");\r\n\t\t\t\tString fin_incr = data.getColumnValue(\"t_finInscr\");\r\n\t\t\t\tString deb_projet = data.getColumnValue(\"t_debProjet\");\r\n\t\t\t\tString fin_projet = data.getColumnValue(\"t_finProjet\");\r\n\t\t \ttp = new TypeProjetImpl (id,nom,deb_inscr,fin_incr,deb_projet,fin_projet);\r\n\t\t \tlist.add(tp);\r\n\t\t }\r\n\t\t System.out.println(\"_____________________________________________\");\r\n\t\t for (TypeProjet i : list)\r\n\t\t \tSystem.out.println(i.get_nom());\r\n\t\t System.out.println(\"______________________________________________\");\r\n\t\t \r\n\t\t\treturn list;\r\n\t\t}",
"public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;",
"@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}",
"public void setId_cita_previa(java.lang.Long newId_cita_previa);",
"public ListaPrecios() {\n initComponents();\n listaListaPrecio();\n }",
"public ParametroPorParametroPK() {\r\n\t}",
"private int obtem_primeiro(int numero)\n {\n for (Map.Entry i : janela.entrySet()) if(((Estado)i.getValue()).getNumero_sequencia() == numero && !((Estado) i.getValue()).isEstado()) return (int) i.getKey();\n return 0;\n }",
"public void setFechaInsercion(String p) { this.fechaInsercion = p; }",
"public void setFechaInsercion(String p) { this.fechaInsercion = p; }",
"public BigDecimal premiacaoAberturaProduto(Produto p) {\n\t\tfor (PoliticaVendaConsignacaoTipoVendedorProduto politica : tipoVendedor.getPoliticasVCTVP()) {\n\t\t\tif (p.equals(politica.getProduto())) {\n\t\t\t\treturn politica.getAberturaPremiacao();\n\t\t\t}\n\t\t}\n\t\treturn BigDecimal.ZERO;\n\t}",
"public ConsultaPrimaNotaIntegrataGSAModel() {\n\t\tsetTitolo(\"Consulta prima nota integrata\");\n\t}",
"private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}",
"@Override\n @Transient\n public Integer getParentId()\n {\n return parentTblId;\n }",
"@Optional\n @ImportColumn(\"LAGEKL\")\n Property<Double> lageklasse();",
"private JTable itensNaoPagos() {\n\t\tinitConexao();\n\t\t\n try {\t \n\t String select = \"SELECT cod_item_d, nome_item_d, valor_item_d, data_vencimento_item_d FROM Item_despesa WHERE vencimento_item_d = '0'\";\n\t PreparedStatement ptStatement = c.prepareStatement(select);\n\t rs = ptStatement.executeQuery();\n\t \n\t Object[] colunas = {\"Item de despesa\", \"Valor total\", \"Data do vencimento\", \"\", \"code\"}; \t\t\n\t\t\t DefaultTableModel model = new DefaultTableModel();\t\t \n\t\t\t model.setColumnIdentifiers(colunas); \t\t \n\t\t\t Vector<Object[]> linhas = new Vector<Object[]>(); \n\t\t\t \n\t\t\t \n\t while (rs.next()){\n\t\t linhas.add(new Object[]{rs.getString(\"nome_item_d\"),rs.getString(\"valor_item_d\"),rs.getString(\"data_vencimento_item_d\"), \"Pagar\", rs.getString(\"cod_item_d\")}); \t \t\n\t \t } \n\t \n\t\t\t for (Object[] linha : linhas) { \n\t\t model.addRow(linha); \n\t\t } \t\t \n\t\t\t final JTable tarefasTable = new JTable(); \t\t \n\t\t\t tarefasTable.setModel(model); \t\t\n\t\t\t \n\t\t\t ButtonColumn buttonColumn = new ButtonColumn(tarefasTable, 3, \"itemPedido\");\n\t\t\t \n\t\t\t tarefasTable.removeColumn(tarefasTable.getColumn(\"code\")); \t \n\t return tarefasTable; \n } catch (SQLException ex) {\n System.out.println(\"ERRO: \" + ex);\n }\n\t\treturn null; \n\t}",
"private Map<String, List<PreDocumentoEntrata>> raggruppaPrimoLivelloConStatoCompleto(List<PreDocumentoEntrata> preDocumentiEntrata) {\n\t\tString methodName = \"raggruppaPrimoLivelloConStatoCompleto\";\n\t\t\n\t\tMap<String, List<PreDocumentoEntrata>> result = new HashMap<String, List<PreDocumentoEntrata>>();\n\t\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocumentiEntrata) {\n\t\t\t\n\t\t\tpreDoc = getDettaglioPreDocumentoEntrata(preDoc);\n\t\t\t\n\t\t\tString key = getDocumentoKey(preDoc);\n\t\t\t\t\t\t\n\t\t\tif(!isCompleto(preDoc)) {\t\n\t\t\t\tlog.info(methodName, \"Saltato perche' non completo: \"+key);\n\t\t\t\tinserisciDettaglioOperazioneAsinc(\"SALTATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.FALLIMENTO, \"Non completo\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tinserisciDettaglioOperazioneAsinc(\"AGGIORNATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.SUCCESSO);\n\t\t\t\n\t\t\t\n\t\t\tif(!result.containsKey(key)) {\n\t\t\t\tresult.put(key, new ArrayList<PreDocumentoEntrata>());\t\t\t\t\n\t\t\t\tlog.debug(methodName, \"Nuovo gruppo di primo livello: \"+key);\n\t\t\t}\n\t\t\t\n\t\t\tList<PreDocumentoEntrata> list = result.get(key);\t\t\t\n\t\t\tlist.add(preDoc);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}",
"public List<TonKho> getTonKhoHienTai(Integer dmtMaSo, Integer khoMaso, String priority) {\n try {\n //System.out.println(\"-------Begin getTonKhoHienTai-----------------\");\n List<TonKho> lstTonHt = new ArrayList<TonKho>();\n String sSQLLIFO_FIFO = \"SELECT TK.* FROM TON_KHO TK \"\n + \"LEFT JOIN PHIEU_NHAP_KHO P ON TK.PHIEUNHAPKHO_MA = P.PHIEUNHAPKHO_MA \"\n + \"INNER JOIN (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo +\" GROUP BY T.TONKHO_MALIENKET) TKMAX ON TK.TONKHO_MA = TKMAX.TONKHO_MA \"\n + \"WHERE TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n String sSQL_UUTIENCONLAI = \"SELECT TK.* FROM TON_KHO TK, (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo + \" GROUP BY T.TONKHO_MALIENKET) TKMAX \"\n + \"WHERE TK.TONKHO_MA = TKMAX.TONKHO_MA AND TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n\n //Dua vao do uu tien, de lay lo thuoc thich hop va so sanh so luong neu vua du thi hien thi thong tin cua lo thuoc do\n if(priority.equals(\"1\")){\n\t\t/*1:HSD: lo nao gan het han cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_NAMHANDUNG, TK.TONKHO_THANGHANDUNG, TK.TONKHO_NGAYHANDUNG\";\n }else if(priority.equals(\"2\")){\n\t\t/*2:LIFO: thuoc nao nhap vao kho sau cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN desc\";\n }else if(priority.equals(\"3\")){\n\t\t/*3:FIFO: thuoc nao nhap vao truoc cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN asc\";\n }else if(priority.equals(\"4\")){\n\t\t/*4:TONTHAP: uu tien so luong ton it xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON asc\";\n }else if(priority.equals(\"5\")){\n\t\t/*5:TONCAO: uu tien so luong ton nhieu xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON desc\";\n }else if(priority.equals(\"6\")){\n\t\t/*6:DONGIATHAP: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA asc\";\n }else{\n\t\t/*= 7: DONGIACAO: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA desc\";\n }\n\n\n if(priority.equals(\"2\") || priority.equals(\"3\")){\n Query q = getEm().createNativeQuery(sSQLLIFO_FIFO,TonKho.class);\n lstTonHt = q.getResultList();\n }else{\n Query q = getEm().createNativeQuery(sSQL_UUTIENCONLAI,TonKho.class);\n lstTonHt = q.getResultList();\n }\n \n if(lstTonHt != null && lstTonHt.size() > 0){\n //System.out.println(\"-------End getTonKhoHienTai-----------------\"+ lstTonHt.size());\n return lstTonHt;\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n return null;\n }\n return null;\n }",
"public int getLBR_NotaFiscal_ID();",
"@Override\n\t\tpublic Nota getNota(int notaid) {\n\n\t\t\tNota nota = null;\n\t\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t\tTransaction transaction = null;\n\n\t\t\ttry {\n\t\t\t\ttransaction = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"from Nota where NOTAS_ID = ' \"\n\t\t\t\t\t\t+ notaid + \"'\");\n\t\t\t\tSystem.out.println(query);\n\t\t\t\tnota = (Nota) query.uniqueResult();\n\t\t\t\t\n\t\t\t\tif (nota != null) {\n\t\t\t\t\ttransaction.commit();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"EEEEEEEEOOOOOOOOOO\");\n\t\t\t\tSystem.out.println(nota.getNota());\n\n\t\t\t} catch (HibernateException e) {\n\t\t\t\ttransaction.rollback();\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t\treturn nota;\n\t\t}",
"@PrePersist\r\n\tpublic void prePersist() {\n\t\ttry { Thread.sleep(1); } catch (Exception e) { System.out.println(\"Impossibile fermare il thread per 1 ms.\");}\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tdataArrivoFile = new Date(now.getTimeInMillis());\r\n\t\tannoOrdine = now.get(Calendar.YEAR);\r\n\t\tannodoc = now.get(Calendar.YEAR);\r\n\t\tgenMovUscita = \"NO\";\r\n\t\t// il numero di lista è necessario, se non c'è lo genero.\r\n\t\tif (nrLista == null || nrLista.isEmpty()) {\r\n\t\t\tnrLista = sdf.format(now.getTime());\r\n\t\t}\r\n\t\t// il raggruppamento stampe è necessario, se non c'è lo imposto uguale al numero di lista.\r\n\t\tif (ragstampe == null || ragstampe.isEmpty()) {\r\n\t\t\tragstampe = nrLista;\r\n\t\t}\r\n\t\tnrListaArrivato = 0; // TODO, in teoria sarebbe come un autoincrement\r\n\t\tif (nomeFileArrivo == null || nomeFileArrivo.isEmpty()) nomeFileArrivo = sdf.format(now.getTime());\r\n\t\t// Se non ho specificato l'operatore assumo che sia un servizio.\r\n\t\tif (operatore == null || operatore.isEmpty()) operatore = \"SERVIZIO\";\r\n\t\t// Priorita', se non valorizzata imposto il default.\r\n\t\tif (priorita <= 0) priorita = 1;\r\n\t\t// Contrassegno\r\n\t\tif (tipoIncasso == null) tipoIncasso = \"\";\r\n\t\tif (valContrassegno == null) valContrassegno = 0.0;\r\n\t\tif (valoreDoganale == null)\tvaloreDoganale = 0.0;\r\n\t\t// Corriere, se null imposto a stringa vuota.\r\n\t\tif (corriere == null) corriere = \"\";\r\n\t\t// Codice cliente per il corriere, se null imposto a stringa vuota.\r\n\t\tif (codiceClienteCorriere == null) codiceClienteCorriere = \"\";\r\n\t\tif (stato == null) stato = \"INSE\";\r\n\t\tif (sessioneLavoro == null) sessioneLavoro = \"\";\r\n\t\tif (tipoDoc == null) tipoDoc = \"ORDINE\";\r\n\t}",
"DefaultTableModel tmInfinitivos(String idVerbo){\n\t\tVerboBean veb=gerenteVerbos.seleccionaUno(idVerbo);\n\t\tDefaultTableModel tmInf=(DefaultTableModel) modeloInfinitivosBasico(veb);\n\t\treturn tmInf;\n\t}",
"@Override\r\n public int compareTo(QuestionInfo a) {\n \r\n if (this.grauDeEquilibrio > a.grauDeEquilibrio)\r\n return -1;\r\n \r\n else if (this.grauDeEquilibrio < a.grauDeEquilibrio)\r\n return 1;\r\n else\r\n return 0;\r\n }",
"public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }",
"public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}",
"@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}",
"public String getTitulo(int codProva) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"SELECT codigo, titulo FROM prova WHERE codigo=?\");\n\t\t\tps.setInt(1, codProva);\n\t\t\trs = ps.executeQuery();\n\t\t\t\n\t\t\treturn (rs.next()) ? rs.getString(2) : \"\";\n\t\t});\n\t}",
"public ParametroPorParametroPK(Integer idpadre, Integer idhijo) {\r\n\t\tparametroIdParametroPadre = idpadre;\r\n\t\tparametroIdParametroHijo = idhijo;\r\n\t}",
"public Integer getIdProfilo() {\n\t\treturn idProfilo;\n\t}",
"public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }",
"public List<Tb_Prod_Painel_PromoBeans> getProdPainelTabelas(Integer terminal, String painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \" INNER JOIN tb_prod ON(tb_prod_painel_promo.codigo=tb_prod.codigo) where terminal=? and painel in(\" + painel + \") order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal); \r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>(); \r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\n }"
] | [
"0.77601045",
"0.75835073",
"0.7036577",
"0.5956248",
"0.58587676",
"0.57645524",
"0.5692494",
"0.55224663",
"0.54399693",
"0.539614",
"0.5392722",
"0.53900665",
"0.53405434",
"0.5276605",
"0.5250458",
"0.5207004",
"0.5202744",
"0.51826584",
"0.5168523",
"0.5142875",
"0.51235527",
"0.5109098",
"0.50941825",
"0.5035626",
"0.50241137",
"0.5008646",
"0.49783307",
"0.49234077",
"0.49096096",
"0.4898727",
"0.4874382",
"0.48675436",
"0.48513037",
"0.48498306",
"0.48247007",
"0.482449",
"0.48237437",
"0.48118228",
"0.4811643",
"0.4792828",
"0.47827545",
"0.47573227",
"0.47403118",
"0.47312924",
"0.47188452",
"0.47108507",
"0.46997932",
"0.4690456",
"0.4687604",
"0.46828562",
"0.46735534",
"0.46547398",
"0.46498123",
"0.4645683",
"0.46363944",
"0.46347347",
"0.46295843",
"0.46243238",
"0.46159258",
"0.4615906",
"0.46156862",
"0.4610556",
"0.46072394",
"0.4603629",
"0.46023443",
"0.45870912",
"0.4586589",
"0.45683753",
"0.45682767",
"0.45680815",
"0.45631343",
"0.45623323",
"0.45588678",
"0.45554385",
"0.45519778",
"0.45419928",
"0.45413303",
"0.4541002",
"0.4541002",
"0.45377883",
"0.45366344",
"0.45340833",
"0.4532784",
"0.4532181",
"0.45239666",
"0.4513487",
"0.44967487",
"0.44950363",
"0.44917855",
"0.44865334",
"0.44814745",
"0.4477203",
"0.44689634",
"0.446799",
"0.44662774",
"0.4464579",
"0.446319",
"0.44575056",
"0.44551107",
"0.44503894"
] | 0.5355968 | 12 |
This method was generated by MyBatis Generator. This method corresponds to the database table d_notifica_priorita | @Insert({ "insert into d_notifica_priorita (priorita_cod, priorita_desc, ", "validita_inizio, validita_fine, ",
"utente_operazione, data_creazione, ", "data_modifica, data_cancellazione)",
"values (#{prioritaCod,jdbcType=VARCHAR}, #{prioritaDesc,jdbcType=VARCHAR}, ",
"#{validitaInizio,jdbcType=TIMESTAMP}, #{validitaFine,jdbcType=TIMESTAMP}, ",
"#{utenteOperazione,jdbcType=VARCHAR}, #{dataCreazione,jdbcType=TIMESTAMP}, ",
"#{dataModifica,jdbcType=TIMESTAMP}, #{dataCancellazione,jdbcType=TIMESTAMP})" })
@Options(useGeneratedKeys = true, keyProperty = "prioritaId")
int insert(DNotificaPriorita record); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tList<DNotificaPriorita> selectAll();",
"@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);",
"public List<PrioridadTicket> obtenerTodasLasPrioridades() {\n return this.prioridadTicketFacade.findAll();\n }",
"@Update({ \"update d_notifica_priorita\", \"set priorita_cod = #{prioritaCod,jdbcType=VARCHAR},\",\n\t\t\t\"priorita_desc = #{prioritaDesc,jdbcType=VARCHAR},\",\n\t\t\t\"validita_inizio = #{validitaInizio,jdbcType=TIMESTAMP},\",\n\t\t\t\"validita_fine = #{validitaFine,jdbcType=TIMESTAMP},\",\n\t\t\t\"utente_operazione = #{utenteOperazione,jdbcType=VARCHAR},\",\n\t\t\t\"data_creazione = #{dataCreazione,jdbcType=TIMESTAMP},\",\n\t\t\t\"data_modifica = #{dataModifica,jdbcType=TIMESTAMP},\",\n\t\t\t\"data_cancellazione = #{dataCancellazione,jdbcType=TIMESTAMP}\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\tint updateByPrimaryKey(DNotificaPriorita record);",
"@Query(\"select pu from ProcesoUsuario pu join pu.proceso p where p.estado = true and p.juzgado=?1 and p.prioritario = true\")\r\n\tPage<ProcesoUsuario> findAllByPrioritario(Juzgado juzgado, Pageable pageable);",
"public void setPriorite(java.lang.String priorite) {\r\n\t\tthis.priorite = priorite;\r\n\t}",
"public PrioritaetEntity findByNr(int prioID) throws Exception;",
"public List<PrioritaetEntity> findAll() throws Exception;",
"private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }",
"public java.lang.String getPriorite() {\r\n\t\treturn priorite;\r\n\t}",
"public java.lang.Long getId_cita_previa();",
"@Delete({ \"delete from d_notifica_priorita\", \"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\tint deleteByPrimaryKey(Integer prioritaId);",
"public int getIdPrestatario() {\n return idPrestatario;\n }",
"public Empleado(String nombre, Prioridad prioridad) {\n\t\tthis.nombre = nombre;\n\t\tthis.prioridad = prioridad;\n\t}",
"public String generarPrioridadVacunacion(){\n \n String aux = \" \"; \n \n if(EmpleadosPrioridadAlta.isEmpty() != true){\n aux += \"\\nLos empleados con mayor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n \n aux += \"\\n-------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMediaAlta.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media alta son: \";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMediaAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMediaAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMedia.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media son: \";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMedia.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMedia.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadBaja.isEmpty() != true){\n aux += \"\\nLos empleados con menor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadBaja.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadBaja.get(i).getIdentificacion();\n }\n }\n return aux;\n }",
"public Set<Prenotazione> getPrenotazione() {\n return prenotazione;\n }",
"public int getPrioritate() {\n return prioritate;\n }",
"public PrioridadTicket obtenerPrioridadTicket(int codigo) {\n return this.prioridadTicketFacade.find(codigo);\n }",
"public String empleadosPorPrioridad(ArrayList<Empleado> prioridad){\n String aux = \"los empleados son: \\n\";\n for (int i = 0; i < prioridad.size(); i++) {\n aux += \"nombre: \" + prioridad.get(i).getNombre() + \" -\" +\" Identificacion: \"+ prioridad.get(i).getIdentificacion() \n + \"\\n\";\n }\n return aux;\n }",
"public void setPrioritate(int value) {\n this.prioritate = value;\n }",
"@Optional\n @ImportColumn(\"AUSSTATTUNG\")\n Property<Integer> ausstattung();",
"public void setPrenotazione(Set<Prenotazione> aPrenotazione) {\n prenotazione = aPrenotazione;\n }",
"private List<PreDocumentoEntrata> getPreDocumentiEntrata() {\t\n\t\tif(req.getRicercaSinteticaPreDocumentoEntrata()!=null){\n\t\t\treturn ricercaSinteticaPreDocumentoEntrata();\n\t\t}\n\t\t\n\t\treturn req.getPreDocumentiEntrata();\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}",
"Date getPriorDate();",
"public void savePrioritaet(String bezeichnung) throws Exception;",
"public static void changePriority(Patient p, int prior){\r\n \t\tpatientArray.remove(p);\r\n \t\tlistModel.add(prior, p.getFirstName());\r\n \t}",
"public ListaPorMenuPK() {\r\n\t}",
"public void addProcesso(ProcessoPrioridade p) {\r\n\t\tthis.getEscalonadores().get(p.getPrioridade()-1).addProcesso(p);\r\n\t\tfor (int i=p.getPrioridade(); this.getEscalonadores().size()> i; i++) {\r\n\t\t\tif (this.getEscalonadores().get(i).temProcessosExecutando()) {\r\n\t\t\t\tthis.getEscalonadores().get(i).executandoVaiParaEspera();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.getEscalonadores().get(p.getPrioridade()-1).temProcessosExecutando()){\r\n\t\t\tfor (int i=p.getPrioridade()-2 ; 0 <= i; i--) {\r\n\t\t\t\tif(this.getEscalonadores().get(i).temProcessosExecutando()) {\r\n\t\t\t\t\tthis.getEscalonadores().get(p.getPrioridade()-1).executandoVaiParaEspera();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private List<PreDocumentoEntrata> ricercaSinteticaPreDocumentoEntrata() {\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = ricercaSinteticaPreDocumentoEntrata(0);\t\t\n\t\tList<PreDocumentoEntrata> result = resRSPD.getPreDocumenti();\n\t\t\n\t\tfor(int i = 1; i < resRSPD.getTotalePagine(); i++) {\t\t\t\n\t\t\tresRSPD = ricercaSinteticaPreDocumentoEntrata(i);\n\t\t\tresult.addAll(resRSPD.getPreDocumenti());\t\t\t\n\t\t}\n\t\treturn result;\n\t}",
"private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}",
"public List<Prevision> getListTipoPrevisionByFK(Integer Aux);",
"public final void prependGestiona(gest_proyectos.Proyecto succ) {\n prependSuccessor(getGestionaRelationship(getMtDatabase()), succ);\n }",
"private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }",
"@DISPID(123)\r\n\t// = 0x7b. The runtime will prefer the VTID if present\r\n\t@VTID(118)\r\n\tint predecessorID();",
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"private String getQuerySelecaoBonusPulaPula()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \" +\n\t\t\t\" ID_CODIGO_NACIONAL, \" +\n\t\t\t\" VLR_BONUS_MINUTO, \" +\n\t\t\t\" VLR_BONUS_MINUTO_FF \" +\n\t\t\t\"FROM \" +\n\t\t\t\" TBL_GER_BONUS_PULA_PULA \";\n\t\t\n\t\treturn result;\n\t}",
"public void editPrioritaet(int prioID, String bezeichnung) throws Exception;",
"public TableModel GetPagineOpera (int cod, String Opera) throws SQLException {\n\t\t\n Connection dbConnection = model.connectionDataBase.ConnectionDB.Connect();\n\n // Execute the query and get the ResultSet\n PreparedStatement stmt = dbConnection.prepareStatement(\"SELECT * FROM pagine_opera INNER JOIN opera ON pagine_opera.cod_opera = opera.cod WHERE opera.cod = ? AND opera.nome = ?\");\n stmt.setInt(1, cod);\n stmt.setString(2, Opera);\n \n ResultSet rs = stmt.executeQuery();\n TableModel tm = DbUtils.resultSetToTableModel(rs);\n dbConnection.close();\n\n return tm;\n\t\t\n\t}",
"public int guardarPreInscripcion( preInscripcion p ){\r\n\t\tString sql_guardar;\r\n int numFilas=0;\r\n \r\n sql_guardar=\"INSERT INTO pre_inscripcion VALUES ('\" +\r\n p.getNombreEvento() + \"', '\" + p.getNombreParticipante() + \"', '\" + \r\n \t\tp.getCedula() + \"', '\" + p.getfecha() + \"')\";\r\n \r\n try{\r\n Connection conn= fachada.getConnetion();\r\n Statement sentencia = conn.createStatement();\r\n\r\n numFilas = sentencia.executeUpdate(sql_guardar); \r\n System.out.println(\"up \" + numFilas);\r\n return numFilas;\r\n \r\n }\r\n catch(SQLException e){\r\n System.out.println(e); \r\n }\r\n catch(Exception e){ \r\n System.out.println(e);\r\n }\r\n return -1;\r\n\t}",
"public ColaPrioridad(int tam) {\r\n datos = new TDAPrioridad[tam];\r\n ini = fin = -1;\r\n }",
"public void setPrecioc(int p){\n this.precioc=p;\n \n }",
"public String preInsert() {\n\t\tSystem.out.println(\"--------preInsert\");\n\t\tsetProducto(new Producto());\n\t\tbanderaModif = \"false\";\n\t\treturn \"altaProd.xhtml?faces-redirect=true\";\n\t}",
"public List<Ticket> obtenerTodosLosTicketsPorUnaPrioridad(Usuario usuario, int prioridad) {\n PrioridadTicket prioridadTicket = this.prioridadTicketFacade.find(prioridad);\n if (prioridadTicket != null) {\n return usuario != null ? this.ticketFacade.obtenerTicketsPorPrioridadDePropietario(usuario, prioridadTicket) : this.ticketFacade.obtenerTodosLosTicketsPorPrioridad(prioridadTicket);\n } else {\n return null;\n }\n }",
"public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }",
"public TdOficioAfectacionPK() {\n }",
"public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }",
"public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }",
"public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }",
"@Override\r\n\t@Transactional\r\n\tpublic Integer restaPrestadoEventual() {\n\t\treturn dao.restaPrestadoEventual();\r\n\t}",
"public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }",
"public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}",
"private RicercaSinteticaPreDocumentoEntrataResponse ricercaSinteticaPreDocumentoEntrata(int numeroPagina){\n\t\tRicercaSinteticaPreDocumentoEntrata reqRSPD = req.getRicercaSinteticaPreDocumentoEntrata();\t\t\n\t\tParametriPaginazione pp = new ParametriPaginazione(numeroPagina);\n\t\tpp.setElementiPerPagina(100);\n\t\treqRSPD.setParametriPaginazione(pp);\n\t\treqRSPD.setRichiedente(req.getRichiedente());\t\t\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = executeExternalService(ricercaSinteticaPreDocumentoEntrata, reqRSPD);\n\t\treturn resRSPD;\n\t}",
"public void getSetVersionRowPresuTipoProyectoWithConnection()throws Exception {\n\t\tif(presutipoproyecto.getIsChangedAuxiliar() && Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t \t//TEMPORAL\r\n\t\t\t//if((presutipoproyecto.getIsDeleted() || (presutipoproyecto.getIsChanged()&&!presutipoproyecto.getIsNew()))&& Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t\tTimestamp timestamp=null;\r\n\t\t\t\r\n\t\t\ttry {\t\r\n\t\t\t\tconnexion=connexion.getNewConnexion(this.connexionType,this.parameterDbType,this.entityManagerFactory);connexion.begin();\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttimestamp=presutipoproyectoDataAccess.getSetVersionRowPresuTipoProyecto(connexion,presutipoproyecto.getId());\r\n\t\t\t\t\r\n\t\t\t\tif(!presutipoproyecto.getVersionRow().equals(timestamp)) {\t\r\n\t\t\t\t\tpresutipoproyecto.setVersionRow(timestamp);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconnexion.commit();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tpresutipoproyecto.setIsChangedAuxiliar(false);\r\n\t\t\t\t\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tconnexion.rollback();\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tthrow e;\r\n\t\t\t\t\r\n\t \t} finally {\r\n\t\t\t\tconnexion.close();\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }",
"@Override\n\tpublic ObservableList<prescription> findBypfID(int a) {\n\t\t// TODO Auto-generated method stub\n\t\tprescription p=null;\n\t\t\n\t\tObservableList<prescription> prescription =FXCollections.observableArrayList();\n\t\tString query = \"SELECT * FROM pmohan_prescription WHERE fid = ?;\";\n\t\ttry(PreparedStatement statement = connection.prepareStatement(query))\n\t\t{ \n\t\t\tSystem.out.println(a);\n\t\t\t statement.setInt(1, a);\n\t\t\t ResultSet resultSet = statement.executeQuery();\n\t\t\t while(resultSet.next()){\n\t\t\t\t p= new prescription();\n\t\t\t\t p.setDocId(resultSet.getInt(3));\n\t\t\t\t p.setMedcineName(resultSet.getString(4));\n\t\t\t\t p.setMedicinePurpose(resultSet.getString(5));\n\t\t\t\t p.setEat(resultSet.getString(6));\n\t\t\t\t p.setDocName(docName(resultSet.getInt(3)));\n\t\t\t\t p.setPname(resultSet.getString(7));\n\t\t\t\t prescription.add(p);\n\t\t }\n\t\t }\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn prescription;\n\t}",
"@Column(name = \"C_PRIMER_NOMBRE\")\n public String getPrimerNombre() {\n return primerNombre;\n }",
"public List<SiteNoticia> listarPorData() {\n List<SiteNoticia> result = new ArrayList<SiteNoticia>();\n EntityManager em1 = getEM();\n em1.getTransaction().begin();\n CriteriaBuilder builder = em1.getCriteriaBuilder();\n CriteriaQuery query = builder.createQuery(SiteNoticia.class);\n //EntityType type = em1.getMetamodel().entity(SiteNoticia.class);\n Root root = query.from(SiteNoticia.class);\n query.orderBy(builder.desc(root.get(\"hora2\")));\n result = em1.createQuery(query).getResultList();\n em1.close();\n return result;\n }",
"public void setValuesJTableMatrizPrioridadesAlternativas(){\n int alternativas = views.useController().getProblema().getAlternativas();\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, criterios);\n jTableMatrizPrioridadesAlternativas.setModel(modelo);\n jTableMatrizPrioridadesAlternativas.setEnabled(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setResizingAllowed(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableMatrizPrioridadesAlternativas.getColumnCount();i++){\n jTableMatrizPrioridadesAlternativas.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n for(int c = 0; c < criterios; c++){ \n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getMainMatrix().get(f, c)), f, c);\n } \n }\n }",
"public Local_Prova getByIdLocal_Prova(Integer id);",
"List<AdvertBundleEntity> findAllRequiredNewProforma();",
"public TreeSet<PrestamoFila> CargarDatos () {\n this.conexion.ConectarBD();\n \n String consulta = \"SELECT * FROM prestamos ORDER BY idprestamo\";\n this.rst = this.conexion.ConsultaBD(consulta);\n try {\n //Pasamos los datos recogidos de la BD al TreeSet\n while (this.rst.next()){\n PrestamoFila pf = new PrestamoFila(rst.getInt(\"IdPrestamo\"),rst.getInt(\"IdSocio\"),rst.getInt(\"IdLibro\"),rst.getDate(\"FechaInicio\"),rst.getDate(\"FechaFin\")); \n this.tPrestamos.add(pf);\n }\n } catch (SQLException e){\n throw new MisException(\"Error al cargar los datos del Prestamo.\\n\"+e.toString());\n \n }\n //Desconectamos de la BD\n this.conexion.DesconectarBD();\n return this.tPrestamos;\n }",
"public void getProdotti() {\r\n\t\tprodotti = ac.getProdotti();\r\n\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaProdotti != null) {\r\n\t\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codiceInteger\"));\r\n\t prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n\t descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n\t prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzoFloat\"));\r\n\t disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilitaInteger\"));\r\n\t \r\n\t Collections.sort(prodotti);\r\n\t tabellaProdotti.getItems().setAll(prodotti);\t \r\n\t tabellaProdotti.setOnMouseClicked(e -> {\r\n\t \tif(tabellaProdotti.getSelectionModel().getSelectedItem() != null)\r\n\t \t\taggiornaQuantita(tabellaProdotti.getSelectionModel().getSelectedItem().getDisponibilita());\r\n\t });\r\n\t\t}\r\n\t}",
"public String getPriInicio () {\n return PriInicio;\n }",
"private void setupPriorForSingleMotif(NumericSequenceData priorsequence, int motiflength, String useforprior) {\n int seqLength=priorsequence.getSize();\n if (!useforprior.equals(\"sum\")) {\n boolean maskStart=(useforprior.equals(\"relativeStartValue\") && priorsequence.getStrandOrientation()==Sequence.REVERSE);\n if (!maskStart) {\n for (int j=seqLength-motiflength+1;j<seqLength;j++) {\n priorsequence.setValueAtRelativePosition(j, 0);\n }\n } else {\n for (int j=0;j<motiflength-1;j++) {\n priorsequence.setValueAtRelativePosition(j, 0);\n }\n }\n }\n normalizePrior(priorsequence);\n }",
"@Override\r\n\tprotected void onPreLoadData() throws Exception {\n\r\n\t\tList<Linea> listaLinee = new LineaAPI().lista(getEmfShared(), getCurrentUser());\r\n\t\tlinee = SelectItemConverter.convert(listaLinee);\r\n\r\n\t\tlong idRinnovo = getParamObjectAsLong(\"idRinnovo\");\r\n\t\tif (idRinnovo > 0) {\r\n\t\t\telemento = new ContrattoAPI().rinnovoPrepara(getEmfShared(), getCurrentUser(), idRinnovo);\r\n\t\t} else {\r\n\t\t\taddErrorMessage(\"Impossibile trovare il contratto da rinnovare.\");\r\n\t\t}\r\n\r\n\t}",
"public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\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\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }",
"public Integer getCodTienda();",
"VentaJPA obtenerVenta(int comprobante);",
"@Select({\n \"select\",\n \"code, process_name, types\",\n \"from basic_info_precursor_process_type\",\n \"where code = #{code,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n BasicInfoPrecursorProcessType selectByPrimaryKey(Integer code);",
"public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;",
"public ArrayList<TypeProjet> listeInscr() throws RemoteException{\r\n\t\t\tArrayList<TypeProjet> list = new ArrayList<TypeProjet>();\r\n\t\t\t\r\n\t\t\t\r\n\t\t String requete = \"select * from typeprojet where t_cursus='\" + _etudiant.getCursus() +\r\n\t\t \t\t\t\t \"' and CURRENT_DATE >= t_debinscr AND CURRENT_DATE <= t_fininscr AND NOT EXISTS \" +\r\n\t\t \t\t\t\t \" (select a_idgroupe From association where a_idgroupe in (select ga_idgroupe from \" +\r\n\t\t \t\t\t\t \" groupeassoc, groupe where ga_idetudiant = \" + _etudiant.getId() + \" AND g_idtype = \" +\r\n\t\t \t\t\t\t \"t_id and ga_idgroupe = g_id) and a_idprojet in (select p_id from projet where \" +\r\n\t\t \t\t\t\t \" p_idType = t_id))\";\r\n\t\t System.out.println(\"requete : listeInscr\" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t TypeProjet tp = null;\r\n\t\t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tint id = Integer.parseInt(data.getColumnValue(\"t_id\"));\r\n\t\t\t\tString nom = data.getColumnValue(\"t_nom\");\r\n\t\t\t\tString deb_inscr = data.getColumnValue(\"t_debInscr\");\r\n\t\t\t\tString fin_incr = data.getColumnValue(\"t_finInscr\");\r\n\t\t\t\tString deb_projet = data.getColumnValue(\"t_debProjet\");\r\n\t\t\t\tString fin_projet = data.getColumnValue(\"t_finProjet\");\r\n\t\t \ttp = new TypeProjetImpl (id,nom,deb_inscr,fin_incr,deb_projet,fin_projet);\r\n\t\t \tlist.add(tp);\r\n\t\t }\r\n\t\t System.out.println(\"_____________________________________________\");\r\n\t\t for (TypeProjet i : list)\r\n\t\t \tSystem.out.println(i.get_nom());\r\n\t\t System.out.println(\"______________________________________________\");\r\n\t\t \r\n\t\t\treturn list;\r\n\t\t}",
"@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}",
"public void setId_cita_previa(java.lang.Long newId_cita_previa);",
"public ListaPrecios() {\n initComponents();\n listaListaPrecio();\n }",
"public ParametroPorParametroPK() {\r\n\t}",
"private int obtem_primeiro(int numero)\n {\n for (Map.Entry i : janela.entrySet()) if(((Estado)i.getValue()).getNumero_sequencia() == numero && !((Estado) i.getValue()).isEstado()) return (int) i.getKey();\n return 0;\n }",
"public void setFechaInsercion(String p) { this.fechaInsercion = p; }",
"public void setFechaInsercion(String p) { this.fechaInsercion = p; }",
"public BigDecimal premiacaoAberturaProduto(Produto p) {\n\t\tfor (PoliticaVendaConsignacaoTipoVendedorProduto politica : tipoVendedor.getPoliticasVCTVP()) {\n\t\t\tif (p.equals(politica.getProduto())) {\n\t\t\t\treturn politica.getAberturaPremiacao();\n\t\t\t}\n\t\t}\n\t\treturn BigDecimal.ZERO;\n\t}",
"private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}",
"public ConsultaPrimaNotaIntegrataGSAModel() {\n\t\tsetTitolo(\"Consulta prima nota integrata\");\n\t}",
"@Override\n @Transient\n public Integer getParentId()\n {\n return parentTblId;\n }",
"@Optional\n @ImportColumn(\"LAGEKL\")\n Property<Double> lageklasse();",
"private JTable itensNaoPagos() {\n\t\tinitConexao();\n\t\t\n try {\t \n\t String select = \"SELECT cod_item_d, nome_item_d, valor_item_d, data_vencimento_item_d FROM Item_despesa WHERE vencimento_item_d = '0'\";\n\t PreparedStatement ptStatement = c.prepareStatement(select);\n\t rs = ptStatement.executeQuery();\n\t \n\t Object[] colunas = {\"Item de despesa\", \"Valor total\", \"Data do vencimento\", \"\", \"code\"}; \t\t\n\t\t\t DefaultTableModel model = new DefaultTableModel();\t\t \n\t\t\t model.setColumnIdentifiers(colunas); \t\t \n\t\t\t Vector<Object[]> linhas = new Vector<Object[]>(); \n\t\t\t \n\t\t\t \n\t while (rs.next()){\n\t\t linhas.add(new Object[]{rs.getString(\"nome_item_d\"),rs.getString(\"valor_item_d\"),rs.getString(\"data_vencimento_item_d\"), \"Pagar\", rs.getString(\"cod_item_d\")}); \t \t\n\t \t } \n\t \n\t\t\t for (Object[] linha : linhas) { \n\t\t model.addRow(linha); \n\t\t } \t\t \n\t\t\t final JTable tarefasTable = new JTable(); \t\t \n\t\t\t tarefasTable.setModel(model); \t\t\n\t\t\t \n\t\t\t ButtonColumn buttonColumn = new ButtonColumn(tarefasTable, 3, \"itemPedido\");\n\t\t\t \n\t\t\t tarefasTable.removeColumn(tarefasTable.getColumn(\"code\")); \t \n\t return tarefasTable; \n } catch (SQLException ex) {\n System.out.println(\"ERRO: \" + ex);\n }\n\t\treturn null; \n\t}",
"private Map<String, List<PreDocumentoEntrata>> raggruppaPrimoLivelloConStatoCompleto(List<PreDocumentoEntrata> preDocumentiEntrata) {\n\t\tString methodName = \"raggruppaPrimoLivelloConStatoCompleto\";\n\t\t\n\t\tMap<String, List<PreDocumentoEntrata>> result = new HashMap<String, List<PreDocumentoEntrata>>();\n\t\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocumentiEntrata) {\n\t\t\t\n\t\t\tpreDoc = getDettaglioPreDocumentoEntrata(preDoc);\n\t\t\t\n\t\t\tString key = getDocumentoKey(preDoc);\n\t\t\t\t\t\t\n\t\t\tif(!isCompleto(preDoc)) {\t\n\t\t\t\tlog.info(methodName, \"Saltato perche' non completo: \"+key);\n\t\t\t\tinserisciDettaglioOperazioneAsinc(\"SALTATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.FALLIMENTO, \"Non completo\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tinserisciDettaglioOperazioneAsinc(\"AGGIORNATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.SUCCESSO);\n\t\t\t\n\t\t\t\n\t\t\tif(!result.containsKey(key)) {\n\t\t\t\tresult.put(key, new ArrayList<PreDocumentoEntrata>());\t\t\t\t\n\t\t\t\tlog.debug(methodName, \"Nuovo gruppo di primo livello: \"+key);\n\t\t\t}\n\t\t\t\n\t\t\tList<PreDocumentoEntrata> list = result.get(key);\t\t\t\n\t\t\tlist.add(preDoc);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}",
"public List<TonKho> getTonKhoHienTai(Integer dmtMaSo, Integer khoMaso, String priority) {\n try {\n //System.out.println(\"-------Begin getTonKhoHienTai-----------------\");\n List<TonKho> lstTonHt = new ArrayList<TonKho>();\n String sSQLLIFO_FIFO = \"SELECT TK.* FROM TON_KHO TK \"\n + \"LEFT JOIN PHIEU_NHAP_KHO P ON TK.PHIEUNHAPKHO_MA = P.PHIEUNHAPKHO_MA \"\n + \"INNER JOIN (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo +\" GROUP BY T.TONKHO_MALIENKET) TKMAX ON TK.TONKHO_MA = TKMAX.TONKHO_MA \"\n + \"WHERE TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n String sSQL_UUTIENCONLAI = \"SELECT TK.* FROM TON_KHO TK, (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo + \" GROUP BY T.TONKHO_MALIENKET) TKMAX \"\n + \"WHERE TK.TONKHO_MA = TKMAX.TONKHO_MA AND TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n\n //Dua vao do uu tien, de lay lo thuoc thich hop va so sanh so luong neu vua du thi hien thi thong tin cua lo thuoc do\n if(priority.equals(\"1\")){\n\t\t/*1:HSD: lo nao gan het han cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_NAMHANDUNG, TK.TONKHO_THANGHANDUNG, TK.TONKHO_NGAYHANDUNG\";\n }else if(priority.equals(\"2\")){\n\t\t/*2:LIFO: thuoc nao nhap vao kho sau cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN desc\";\n }else if(priority.equals(\"3\")){\n\t\t/*3:FIFO: thuoc nao nhap vao truoc cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN asc\";\n }else if(priority.equals(\"4\")){\n\t\t/*4:TONTHAP: uu tien so luong ton it xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON asc\";\n }else if(priority.equals(\"5\")){\n\t\t/*5:TONCAO: uu tien so luong ton nhieu xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON desc\";\n }else if(priority.equals(\"6\")){\n\t\t/*6:DONGIATHAP: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA asc\";\n }else{\n\t\t/*= 7: DONGIACAO: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA desc\";\n }\n\n\n if(priority.equals(\"2\") || priority.equals(\"3\")){\n Query q = getEm().createNativeQuery(sSQLLIFO_FIFO,TonKho.class);\n lstTonHt = q.getResultList();\n }else{\n Query q = getEm().createNativeQuery(sSQL_UUTIENCONLAI,TonKho.class);\n lstTonHt = q.getResultList();\n }\n \n if(lstTonHt != null && lstTonHt.size() > 0){\n //System.out.println(\"-------End getTonKhoHienTai-----------------\"+ lstTonHt.size());\n return lstTonHt;\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n return null;\n }\n return null;\n }",
"public int getLBR_NotaFiscal_ID();",
"@Override\n\t\tpublic Nota getNota(int notaid) {\n\n\t\t\tNota nota = null;\n\t\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t\tTransaction transaction = null;\n\n\t\t\ttry {\n\t\t\t\ttransaction = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"from Nota where NOTAS_ID = ' \"\n\t\t\t\t\t\t+ notaid + \"'\");\n\t\t\t\tSystem.out.println(query);\n\t\t\t\tnota = (Nota) query.uniqueResult();\n\t\t\t\t\n\t\t\t\tif (nota != null) {\n\t\t\t\t\ttransaction.commit();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"EEEEEEEEOOOOOOOOOO\");\n\t\t\t\tSystem.out.println(nota.getNota());\n\n\t\t\t} catch (HibernateException e) {\n\t\t\t\ttransaction.rollback();\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t\treturn nota;\n\t\t}",
"@PrePersist\r\n\tpublic void prePersist() {\n\t\ttry { Thread.sleep(1); } catch (Exception e) { System.out.println(\"Impossibile fermare il thread per 1 ms.\");}\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tdataArrivoFile = new Date(now.getTimeInMillis());\r\n\t\tannoOrdine = now.get(Calendar.YEAR);\r\n\t\tannodoc = now.get(Calendar.YEAR);\r\n\t\tgenMovUscita = \"NO\";\r\n\t\t// il numero di lista è necessario, se non c'è lo genero.\r\n\t\tif (nrLista == null || nrLista.isEmpty()) {\r\n\t\t\tnrLista = sdf.format(now.getTime());\r\n\t\t}\r\n\t\t// il raggruppamento stampe è necessario, se non c'è lo imposto uguale al numero di lista.\r\n\t\tif (ragstampe == null || ragstampe.isEmpty()) {\r\n\t\t\tragstampe = nrLista;\r\n\t\t}\r\n\t\tnrListaArrivato = 0; // TODO, in teoria sarebbe come un autoincrement\r\n\t\tif (nomeFileArrivo == null || nomeFileArrivo.isEmpty()) nomeFileArrivo = sdf.format(now.getTime());\r\n\t\t// Se non ho specificato l'operatore assumo che sia un servizio.\r\n\t\tif (operatore == null || operatore.isEmpty()) operatore = \"SERVIZIO\";\r\n\t\t// Priorita', se non valorizzata imposto il default.\r\n\t\tif (priorita <= 0) priorita = 1;\r\n\t\t// Contrassegno\r\n\t\tif (tipoIncasso == null) tipoIncasso = \"\";\r\n\t\tif (valContrassegno == null) valContrassegno = 0.0;\r\n\t\tif (valoreDoganale == null)\tvaloreDoganale = 0.0;\r\n\t\t// Corriere, se null imposto a stringa vuota.\r\n\t\tif (corriere == null) corriere = \"\";\r\n\t\t// Codice cliente per il corriere, se null imposto a stringa vuota.\r\n\t\tif (codiceClienteCorriere == null) codiceClienteCorriere = \"\";\r\n\t\tif (stato == null) stato = \"INSE\";\r\n\t\tif (sessioneLavoro == null) sessioneLavoro = \"\";\r\n\t\tif (tipoDoc == null) tipoDoc = \"ORDINE\";\r\n\t}",
"DefaultTableModel tmInfinitivos(String idVerbo){\n\t\tVerboBean veb=gerenteVerbos.seleccionaUno(idVerbo);\n\t\tDefaultTableModel tmInf=(DefaultTableModel) modeloInfinitivosBasico(veb);\n\t\treturn tmInf;\n\t}",
"@Override\r\n public int compareTo(QuestionInfo a) {\n \r\n if (this.grauDeEquilibrio > a.grauDeEquilibrio)\r\n return -1;\r\n \r\n else if (this.grauDeEquilibrio < a.grauDeEquilibrio)\r\n return 1;\r\n else\r\n return 0;\r\n }",
"public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }",
"public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}",
"public String getTitulo(int codProva) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"SELECT codigo, titulo FROM prova WHERE codigo=?\");\n\t\t\tps.setInt(1, codProva);\n\t\t\trs = ps.executeQuery();\n\t\t\t\n\t\t\treturn (rs.next()) ? rs.getString(2) : \"\";\n\t\t});\n\t}",
"@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}",
"public ParametroPorParametroPK(Integer idpadre, Integer idhijo) {\r\n\t\tparametroIdParametroPadre = idpadre;\r\n\t\tparametroIdParametroHijo = idhijo;\r\n\t}",
"public Integer getIdProfilo() {\n\t\treturn idProfilo;\n\t}",
"public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }",
"@Override\n\t\tpublic String getParentPKFieldName() {\n\t\t\treturn null;\n\t\t}"
] | [
"0.7758712",
"0.7581938",
"0.5958643",
"0.58574814",
"0.57657635",
"0.56951547",
"0.5524052",
"0.5440901",
"0.53976667",
"0.53955",
"0.5390703",
"0.5356333",
"0.5341127",
"0.5278638",
"0.5251762",
"0.52072173",
"0.5205692",
"0.51847464",
"0.51694494",
"0.5145082",
"0.5121546",
"0.5109242",
"0.5094651",
"0.50350857",
"0.5028025",
"0.5010621",
"0.49801686",
"0.49237683",
"0.49107045",
"0.48991323",
"0.48756796",
"0.48672163",
"0.48517236",
"0.48488492",
"0.48270494",
"0.48245633",
"0.48225582",
"0.48133674",
"0.481093",
"0.47906613",
"0.47849968",
"0.47560903",
"0.47403947",
"0.47328508",
"0.47167435",
"0.47113633",
"0.46991056",
"0.4689783",
"0.46864498",
"0.46825165",
"0.46732703",
"0.46537068",
"0.46504864",
"0.46441406",
"0.46348408",
"0.46318734",
"0.46297625",
"0.4622083",
"0.4616189",
"0.4614836",
"0.46144387",
"0.4611356",
"0.4606674",
"0.46038055",
"0.4603542",
"0.45860845",
"0.45848393",
"0.45679063",
"0.45676634",
"0.45664313",
"0.45614666",
"0.45595455",
"0.4555463",
"0.4554914",
"0.45519942",
"0.45423406",
"0.4541581",
"0.45398673",
"0.45398673",
"0.4539205",
"0.453546",
"0.45346618",
"0.45338592",
"0.45309892",
"0.45230907",
"0.45139316",
"0.44959882",
"0.4494123",
"0.44889632",
"0.44862905",
"0.44799528",
"0.4478859",
"0.4468026",
"0.4466359",
"0.44645584",
"0.4462765",
"0.44622606",
"0.44568112",
"0.44533408",
"0.44508418"
] | 0.70364726 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.